Commit | Line | Data |
---|---|---|
d9898ee8 | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
b0322a85 | 3 | # Generated by GNU Autoconf 2.69 for courier-authlib 0.66.1. |
d9898ee8 | 4 | # |
8d138742 | 5 | # Report bugs to <courier-users@lists.sourceforge.net>. |
d9898ee8 | 6 | # |
b0322a85 CE |
7 | # |
8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
9 | # | |
10 | # | |
d9898ee8 | 11 | # This configure script is free software; the Free Software Foundation |
12 | # gives unlimited permission to copy, distribute and modify it. | |
b0322a85 CE |
13 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
d9898ee8 | 16 | |
dd184caf | 17 | # Be more Bourne compatible |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
b0322a85 | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
d9898ee8 | 20 | emulate sh |
21 | NULLCMD=: | |
8d138742 | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
d9898ee8 | 23 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | |
dd184caf | 25 | setopt NO_GLOB_SUBST |
26 | else | |
b0322a85 CE |
27 | case `(set -o) 2>/dev/null` in #( |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
dd184caf | 32 | esac |
dd184caf | 33 | fi |
34 | ||
35 | ||
8d138742 CE |
36 | as_nl=' |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
b0322a85 CE |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
8d138742 CE |
50 | as_echo='printf %s\n' |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
dd184caf | 56 | else |
8d138742 CE |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
b0322a85 | 60 | case $arg in #( |
8d138742 CE |
61 | *"$as_nl"*) |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
dd184caf | 69 | fi |
8d138742 CE |
70 | export as_echo_body |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
d9898ee8 | 81 | fi |
d9898ee8 | 82 | |
d9898ee8 | 83 | |
dd184caf | 84 | # IFS |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
dd184caf | 89 | IFS=" "" $as_nl" |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
b0322a85 CE |
92 | as_myself= |
93 | case $0 in #(( | |
dd184caf | 94 | *[\\/]* ) as_myself=$0 ;; |
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 | for as_dir in $PATH | |
97 | do | |
98 | IFS=$as_save_IFS | |
99 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
101 | done | |
dd184caf | 102 | IFS=$as_save_IFS |
103 | ||
104 | ;; | |
105 | esac | |
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 | # in which case we are not to be found in the path. | |
108 | if test "x$as_myself" = x; then | |
109 | as_myself=$0 | |
110 | fi | |
111 | if test ! -f "$as_myself"; then | |
8d138742 | 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
b0322a85 | 113 | exit 1 |
dd184caf | 114 | fi |
115 | ||
b0322a85 CE |
116 | # Unset variables that we do not need and which cause bugs (e.g. in |
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 | # suppresses any "Segmentation fault" message there. '((' could | |
119 | # trigger a bug in pdksh 5.2.14. | |
120 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 | do eval test x\${$as_var+set} = xset \ | |
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
dd184caf | 123 | done |
d9898ee8 | 124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
8d138742 CE |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
d9898ee8 | 133 | |
b0322a85 CE |
134 | # CDPATH. |
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | ||
137 | # Use a proper internal environment variable to ensure we don't fall | |
138 | # into an infinite loop, continuously re-executing ourselves. | |
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
140 | _as_can_reexec=no; export _as_can_reexec; | |
141 | # We cannot yet assume a decent shell, so we have to provide a | |
142 | # neutralization value for shells without unset; and this also | |
143 | # works around shells that cannot unset nonexistent variables. | |
144 | # Preserve -v and -x to the replacement shell. | |
145 | BASH_ENV=/dev/null | |
146 | ENV=/dev/null | |
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
148 | case $- in # (((( | |
149 | *v*x* | *x*v* ) as_opts=-vx ;; | |
150 | *v* ) as_opts=-v ;; | |
151 | *x* ) as_opts=-x ;; | |
152 | * ) as_opts= ;; | |
153 | esac | |
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
155 | # Admittedly, this is quite paranoid, since all the known shells bail | |
156 | # out after a failed `exec'. | |
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
158 | as_fn_exit 255 | |
159 | fi | |
160 | # We don't want this to propagate to other subprocesses. | |
161 | { _as_can_reexec=; unset _as_can_reexec;} | |
162 | if test "x$CONFIG_SHELL" = x; then | |
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
164 | emulate sh | |
165 | NULLCMD=: | |
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
167 | # is contrary to our usage. Disable this feature. | |
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
169 | setopt NO_GLOB_SUBST | |
170 | else | |
171 | case \`(set -o) 2>/dev/null\` in #( | |
172 | *posix*) : | |
173 | set -o posix ;; #( | |
174 | *) : | |
175 | ;; | |
176 | esac | |
177 | fi | |
178 | " | |
179 | as_required="as_fn_return () { (exit \$1); } | |
180 | as_fn_success () { as_fn_return 0; } | |
181 | as_fn_failure () { as_fn_return 1; } | |
182 | as_fn_ret_success () { return 0; } | |
183 | as_fn_ret_failure () { return 1; } | |
184 | ||
185 | exitcode=0 | |
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
191 | ||
192 | else | |
193 | exitcode=1; echo positional parameters were not saved. | |
194 | fi | |
195 | test x\$exitcode = x0 || exit 1 | |
196 | test -x / || exit 1" | |
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
201 | ||
202 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
203 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
204 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
205 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
206 | PATH=/empty FPATH=/empty; export PATH FPATH | |
207 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
208 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 | |
209 | test \$(( 1 + 1 )) = 2 || exit 1" | |
210 | if (eval "$as_required") 2>/dev/null; then : | |
211 | as_have_required=yes | |
212 | else | |
213 | as_have_required=no | |
214 | fi | |
215 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
216 | ||
217 | else | |
218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
219 | as_found=false | |
220 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
221 | do | |
222 | IFS=$as_save_IFS | |
223 | test -z "$as_dir" && as_dir=. | |
224 | as_found=: | |
225 | case $as_dir in #( | |
226 | /*) | |
227 | for as_base in sh bash ksh sh5; do | |
228 | # Try only shells that exist, to save several forks. | |
229 | as_shell=$as_dir/$as_base | |
230 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
231 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
232 | CONFIG_SHELL=$as_shell as_have_required=yes | |
233 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
234 | break 2 | |
235 | fi | |
236 | fi | |
237 | done;; | |
238 | esac | |
239 | as_found=false | |
240 | done | |
241 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
242 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
243 | CONFIG_SHELL=$SHELL as_have_required=yes | |
244 | fi; } | |
245 | IFS=$as_save_IFS | |
246 | ||
247 | ||
248 | if test "x$CONFIG_SHELL" != x; then : | |
249 | export CONFIG_SHELL | |
250 | # We cannot yet assume a decent shell, so we have to provide a | |
251 | # neutralization value for shells without unset; and this also | |
252 | # works around shells that cannot unset nonexistent variables. | |
253 | # Preserve -v and -x to the replacement shell. | |
254 | BASH_ENV=/dev/null | |
255 | ENV=/dev/null | |
256 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
257 | case $- in # (((( | |
258 | *v*x* | *x*v* ) as_opts=-vx ;; | |
259 | *v* ) as_opts=-v ;; | |
260 | *x* ) as_opts=-x ;; | |
261 | * ) as_opts= ;; | |
262 | esac | |
263 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
264 | # Admittedly, this is quite paranoid, since all the known shells bail | |
265 | # out after a failed `exec'. | |
266 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
267 | exit 255 | |
268 | fi | |
269 | ||
270 | if test x$as_have_required = xno; then : | |
271 | $as_echo "$0: This script requires a shell more modern than all" | |
272 | $as_echo "$0: the shells that I found on your system." | |
273 | if test x${ZSH_VERSION+set} = xset ; then | |
274 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
275 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
276 | else | |
277 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | |
278 | $0: courier-users@lists.sourceforge.net about your system, | |
279 | $0: including any error possibly output before this | |
280 | $0: message. Then install a modern shell, or manually run | |
281 | $0: the script under such a shell if you do have one." | |
282 | fi | |
283 | exit 1 | |
284 | fi | |
285 | fi | |
286 | fi | |
287 | SHELL=${CONFIG_SHELL-/bin/sh} | |
288 | export SHELL | |
289 | # Unset more variables known to interfere with behavior of common tools. | |
290 | CLICOLOR_FORCE= GREP_OPTIONS= | |
291 | unset CLICOLOR_FORCE GREP_OPTIONS | |
292 | ||
293 | ## --------------------- ## | |
294 | ## M4sh Shell Functions. ## | |
295 | ## --------------------- ## | |
296 | # as_fn_unset VAR | |
297 | # --------------- | |
298 | # Portably unset VAR. | |
299 | as_fn_unset () | |
300 | { | |
301 | { eval $1=; unset $1;} | |
302 | } | |
303 | as_unset=as_fn_unset | |
304 | ||
305 | # as_fn_set_status STATUS | |
306 | # ----------------------- | |
307 | # Set $? to STATUS, without forking. | |
308 | as_fn_set_status () | |
309 | { | |
310 | return $1 | |
311 | } # as_fn_set_status | |
312 | ||
313 | # as_fn_exit STATUS | |
314 | # ----------------- | |
315 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
316 | as_fn_exit () | |
317 | { | |
318 | set +e | |
319 | as_fn_set_status $1 | |
320 | exit $1 | |
321 | } # as_fn_exit | |
322 | ||
323 | # as_fn_mkdir_p | |
324 | # ------------- | |
325 | # Create "$as_dir" as a directory, including parents if necessary. | |
326 | as_fn_mkdir_p () | |
327 | { | |
328 | ||
329 | case $as_dir in #( | |
330 | -*) as_dir=./$as_dir;; | |
331 | esac | |
332 | test -d "$as_dir" || eval $as_mkdir_p || { | |
333 | as_dirs= | |
334 | while :; do | |
335 | case $as_dir in #( | |
336 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
337 | *) as_qdir=$as_dir;; | |
338 | esac | |
339 | as_dirs="'$as_qdir' $as_dirs" | |
340 | as_dir=`$as_dirname -- "$as_dir" || | |
341 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
342 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
343 | X"$as_dir" : 'X\(//\)$' \| \ | |
344 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
345 | $as_echo X"$as_dir" | | |
346 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
347 | s//\1/ | |
348 | q | |
349 | } | |
350 | /^X\(\/\/\)[^/].*/{ | |
351 | s//\1/ | |
352 | q | |
353 | } | |
354 | /^X\(\/\/\)$/{ | |
355 | s//\1/ | |
356 | q | |
357 | } | |
358 | /^X\(\/\).*/{ | |
359 | s//\1/ | |
360 | q | |
361 | } | |
362 | s/.*/./; q'` | |
363 | test -d "$as_dir" && break | |
364 | done | |
365 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
366 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
367 | ||
368 | ||
369 | } # as_fn_mkdir_p | |
370 | ||
371 | # as_fn_executable_p FILE | |
372 | # ----------------------- | |
373 | # Test if FILE is an executable regular file. | |
374 | as_fn_executable_p () | |
375 | { | |
376 | test -f "$1" && test -x "$1" | |
377 | } # as_fn_executable_p | |
378 | # as_fn_append VAR VALUE | |
379 | # ---------------------- | |
380 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
381 | # advantage of any shell optimizations that allow amortized linear growth over | |
382 | # repeated appends, instead of the typical quadratic growth present in naive | |
383 | # implementations. | |
384 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
385 | eval 'as_fn_append () | |
386 | { | |
387 | eval $1+=\$2 | |
388 | }' | |
389 | else | |
390 | as_fn_append () | |
391 | { | |
392 | eval $1=\$$1\$2 | |
393 | } | |
394 | fi # as_fn_append | |
395 | ||
396 | # as_fn_arith ARG... | |
397 | # ------------------ | |
398 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
399 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
400 | # must be portable across $(()) and expr. | |
401 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
402 | eval 'as_fn_arith () | |
403 | { | |
404 | as_val=$(( $* )) | |
405 | }' | |
406 | else | |
407 | as_fn_arith () | |
408 | { | |
409 | as_val=`expr "$@" || test $? -eq 1` | |
410 | } | |
411 | fi # as_fn_arith | |
412 | ||
413 | ||
414 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
415 | # ---------------------------------------- | |
416 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
417 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
418 | # script with STATUS, using 1 if that was 0. | |
419 | as_fn_error () | |
420 | { | |
421 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
422 | if test "$4"; then | |
423 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
424 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
425 | fi | |
426 | $as_echo "$as_me: error: $2" >&2 | |
427 | as_fn_exit $as_status | |
428 | } # as_fn_error | |
429 | ||
dd184caf | 430 | if expr a : '\(a\)' >/dev/null 2>&1 && |
431 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
d9898ee8 | 432 | as_expr=expr |
433 | else | |
434 | as_expr=false | |
435 | fi | |
436 | ||
dd184caf | 437 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
d9898ee8 | 438 | as_basename=basename |
439 | else | |
440 | as_basename=false | |
441 | fi | |
442 | ||
b0322a85 CE |
443 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
444 | as_dirname=dirname | |
445 | else | |
446 | as_dirname=false | |
447 | fi | |
d9898ee8 | 448 | |
dd184caf | 449 | as_me=`$as_basename -- "$0" || |
d9898ee8 | 450 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
451 | X"$0" : 'X\(//\)$' \| \ | |
dd184caf | 452 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
8d138742 | 453 | $as_echo X/"$0" | |
dd184caf | 454 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
455 | s//\1/ | |
456 | q | |
457 | } | |
458 | /^X\/\(\/\/\)$/{ | |
459 | s//\1/ | |
460 | q | |
461 | } | |
462 | /^X\/\(\/\).*/{ | |
463 | s//\1/ | |
464 | q | |
465 | } | |
466 | s/.*/./; q'` | |
d9898ee8 | 467 | |
b0322a85 CE |
468 | # Avoid depending upon Character Ranges. |
469 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
470 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
471 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
472 | as_cr_digits='0123456789' | |
473 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
d9898ee8 | 474 | |
d9898ee8 | 475 | |
b0322a85 CE |
476 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
477 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
478 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
479 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
480 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
481 | sed -n ' | |
482 | p | |
483 | /[$]LINENO/= | |
484 | ' <$as_myself | | |
485 | sed ' | |
486 | s/[$]LINENO.*/&-/ | |
487 | t lineno | |
488 | b | |
489 | :lineno | |
490 | N | |
491 | :loop | |
492 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
493 | t loop | |
494 | s/-\n.*// | |
495 | ' >$as_me.lineno && | |
496 | chmod +x "$as_me.lineno" || | |
497 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
d9898ee8 | 498 | |
b0322a85 CE |
499 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
500 | # already done that, so ensure we don't try to do so again and fall | |
501 | # in an infinite loop. This has already happened in practice. | |
502 | _as_can_reexec=no; export _as_can_reexec | |
503 | # Don't try to exec as it changes $[0], causing all sort of problems | |
504 | # (the dirname of $[0] is not the place where we might find the | |
505 | # original and so on. Autoconf is especially sensitive to this). | |
506 | . "./$as_me.lineno" | |
507 | # Exit status is that of the last command. | |
508 | exit | |
dd184caf | 509 | } |
d9898ee8 | 510 | |
b0322a85 CE |
511 | ECHO_C= ECHO_N= ECHO_T= |
512 | case `echo -n x` in #((((( | |
513 | -n*) | |
514 | case `echo 'xy\c'` in | |
515 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
516 | xy) ECHO_C='\c';; | |
517 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
518 | ECHO_T=' ';; | |
519 | esac;; | |
520 | *) | |
521 | ECHO_N='-n';; | |
522 | esac | |
dd184caf | 523 | |
b0322a85 CE |
524 | rm -f conf$$ conf$$.exe conf$$.file |
525 | if test -d conf$$.dir; then | |
526 | rm -f conf$$.dir/conf$$.file | |
dd184caf | 527 | else |
b0322a85 CE |
528 | rm -f conf$$.dir |
529 | mkdir conf$$.dir 2>/dev/null | |
dd184caf | 530 | fi |
b0322a85 CE |
531 | if (echo >conf$$.file) 2>/dev/null; then |
532 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
533 | as_ln_s='ln -s' | |
534 | # ... but there are two gotchas: | |
535 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
536 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
537 | # In both cases, we have to default to `cp -pR'. | |
538 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
539 | as_ln_s='cp -pR' | |
540 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
541 | as_ln_s=ln | |
542 | else | |
543 | as_ln_s='cp -pR' | |
544 | fi | |
545 | else | |
546 | as_ln_s='cp -pR' | |
dd184caf | 547 | fi |
b0322a85 CE |
548 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
549 | rmdir conf$$.dir 2>/dev/null | |
dd184caf | 550 | |
b0322a85 CE |
551 | if mkdir -p . 2>/dev/null; then |
552 | as_mkdir_p='mkdir -p "$as_dir"' | |
dd184caf | 553 | else |
b0322a85 CE |
554 | test -d ./-p && rmdir ./-p |
555 | as_mkdir_p=false | |
dd184caf | 556 | fi |
557 | ||
b0322a85 CE |
558 | as_test_x='test -x' |
559 | as_executable_p=as_fn_executable_p | |
dd184caf | 560 | |
b0322a85 CE |
561 | # Sed expression to map a string onto a valid CPP name. |
562 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
dd184caf | 563 | |
b0322a85 CE |
564 | # Sed expression to map a string onto a valid variable name. |
565 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
dd184caf | 566 | |
b0322a85 | 567 | SHELL=${CONFIG_SHELL-/bin/sh} |
dd184caf | 568 | |
b0322a85 | 569 | lt_ltdl_dir='libltdl' |
dd184caf | 570 | |
b0322a85 | 571 | lt_dlopen_dir="$lt_ltdl_dir" |
dd184caf | 572 | |
dd184caf | 573 | |
b0322a85 CE |
574 | test -n "$DJDIR" || exec 7<&0 </dev/null |
575 | exec 6>&1 | |
dd184caf | 576 | |
d9898ee8 | 577 | # Name of the host. |
b0322a85 | 578 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
d9898ee8 | 579 | # so uname gets run too. |
580 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
581 | ||
d9898ee8 | 582 | # |
583 | # Initializations. | |
584 | # | |
585 | ac_default_prefix=/usr/local | |
dd184caf | 586 | ac_clean_files= |
d9898ee8 | 587 | ac_config_libobj_dir=. |
dd184caf | 588 | LIBOBJS= |
d9898ee8 | 589 | cross_compiling=no |
590 | subdirs= | |
591 | MFLAGS= | |
592 | MAKEFLAGS= | |
d9898ee8 | 593 | |
d9898ee8 | 594 | # Identity of this package. |
595 | PACKAGE_NAME='courier-authlib' | |
596 | PACKAGE_TARNAME='courier-authlib' | |
b0322a85 CE |
597 | PACKAGE_VERSION='0.66.1' |
598 | PACKAGE_STRING='courier-authlib 0.66.1' | |
8d138742 | 599 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' |
b0322a85 | 600 | PACKAGE_URL='' |
d9898ee8 | 601 | |
602 | ac_unique_file="courierauth.h" | |
603 | # Factoring default headers for most tests. | |
604 | ac_includes_default="\ | |
605 | #include <stdio.h> | |
dd184caf | 606 | #ifdef HAVE_SYS_TYPES_H |
d9898ee8 | 607 | # include <sys/types.h> |
608 | #endif | |
dd184caf | 609 | #ifdef HAVE_SYS_STAT_H |
d9898ee8 | 610 | # include <sys/stat.h> |
611 | #endif | |
dd184caf | 612 | #ifdef STDC_HEADERS |
d9898ee8 | 613 | # include <stdlib.h> |
614 | # include <stddef.h> | |
615 | #else | |
dd184caf | 616 | # ifdef HAVE_STDLIB_H |
d9898ee8 | 617 | # include <stdlib.h> |
618 | # endif | |
619 | #endif | |
dd184caf | 620 | #ifdef HAVE_STRING_H |
621 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
d9898ee8 | 622 | # include <memory.h> |
623 | # endif | |
624 | # include <string.h> | |
625 | #endif | |
dd184caf | 626 | #ifdef HAVE_STRINGS_H |
d9898ee8 | 627 | # include <strings.h> |
628 | #endif | |
dd184caf | 629 | #ifdef HAVE_INTTYPES_H |
d9898ee8 | 630 | # include <inttypes.h> |
d9898ee8 | 631 | #endif |
dd184caf | 632 | #ifdef HAVE_STDINT_H |
633 | # include <stdint.h> | |
634 | #endif | |
635 | #ifdef HAVE_UNISTD_H | |
d9898ee8 | 636 | # include <unistd.h> |
637 | #endif" | |
638 | ||
8d138742 CE |
639 | enable_option_checking=no |
640 | ac_subst_vars='ltdl_LTLIBOBJS | |
641 | ltdl_LIBOBJS | |
642 | am__EXEEXT_FALSE | |
643 | am__EXEEXT_TRUE | |
644 | LTLIBOBJS | |
645 | LIBOBJS | |
646 | HAVE_SGML_FALSE | |
647 | HAVE_SGML_TRUE | |
648 | REPOSITORY | |
649 | mailgroup | |
650 | mailuser | |
651 | LIBM | |
652 | authdaemonvar | |
653 | authdaemonrc | |
654 | CRYPTLIBS | |
655 | LIBAUTHPIPE | |
656 | HAVE_PIPE_FALSE | |
657 | HAVE_PIPE_TRUE | |
658 | authProg | |
659 | LIBAUTHCUSTOM | |
660 | HAVE_CUSTOM_FALSE | |
661 | HAVE_CUSTOM_TRUE | |
b0322a85 CE |
662 | HAVE_AUTHSQLITE_FALSE |
663 | HAVE_AUTHSQLITE_TRUE | |
664 | LIBAUTHSQLITE | |
665 | SQLITE_LIBS | |
666 | authsqliterc | |
8d138742 CE |
667 | HAVE_AUTHMYSQL_FALSE |
668 | HAVE_AUTHMYSQL_TRUE | |
669 | MYSQL_LIBS | |
670 | LIBAUTHMYSQL | |
671 | MYSQL_CONFIG | |
672 | authmysqlrc | |
673 | HAVE_AUTHPGSQL_FALSE | |
674 | HAVE_AUTHPGSQL_TRUE | |
675 | LIBAUTHPGSQL | |
676 | PGSQL_LIBS | |
677 | PG_CONFIG | |
678 | authpgsqlrc | |
679 | LIBAUTHPWD | |
680 | LIBAUTHSHADOW | |
681 | SHADOWLIBS | |
682 | HAVE_LDAP_FALSE | |
683 | HAVE_LDAP_TRUE | |
684 | LIBAUTHLDAP | |
685 | LDAPLIBS | |
686 | authldaprc | |
687 | LIBAUTHPAM | |
688 | AUTHPAMCRYPT | |
689 | LIBDL | |
690 | userdb | |
691 | LIBAUTHUSERDB | |
692 | LIBDB | |
693 | LIBGDBM | |
694 | dblibrary | |
695 | USE_DB | |
696 | USE_GDBM | |
697 | NETLIBS | |
698 | PASSWD | |
699 | EXPECT | |
700 | COURIERCONFIG | |
701 | PERL | |
702 | LTDLOPEN | |
703 | LT_CONFIG_H | |
704 | subdirs | |
705 | CONVENIENCE_LTDL_FALSE | |
706 | CONVENIENCE_LTDL_TRUE | |
707 | INSTALL_LTDL_FALSE | |
708 | INSTALL_LTDL_TRUE | |
709 | ARGZ_H | |
710 | sys_symbol_underscore | |
711 | LIBADD_DL | |
712 | LT_DLPREOPEN | |
713 | LIBADD_DLD_LINK | |
714 | LIBADD_SHL_LOAD | |
715 | LIBADD_DLOPEN | |
716 | LT_DLLOADERS | |
717 | INCLTDL | |
718 | LTDLINCL | |
719 | LTDLDEPS | |
720 | LIBLTDL | |
721 | OTOOL64 | |
722 | OTOOL | |
723 | LIPO | |
724 | NMEDIT | |
725 | DSYMUTIL | |
b0322a85 | 726 | MANIFEST_TOOL |
8d138742 | 727 | RANLIB |
b0322a85 | 728 | ac_ct_AR |
8d138742 | 729 | AR |
b0322a85 | 730 | DLLTOOL |
8d138742 CE |
731 | OBJDUMP |
732 | NM | |
733 | ac_ct_DUMPBIN | |
734 | DUMPBIN | |
735 | LD | |
736 | FGREP | |
737 | EGREP | |
738 | GREP | |
739 | SED | |
740 | host_os | |
741 | host_vendor | |
742 | host_cpu | |
743 | host | |
744 | build_os | |
745 | build_vendor | |
746 | build_cpu | |
747 | build | |
748 | LIBTOOL | |
749 | SYSCONFTOOL | |
750 | SYSCONFTOOL_PERL | |
751 | LN_S | |
752 | CPP | |
753 | am__fastdepCC_FALSE | |
754 | am__fastdepCC_TRUE | |
755 | CCDEPMODE | |
b0322a85 | 756 | am__nodep |
8d138742 CE |
757 | AMDEPBACKSLASH |
758 | AMDEP_FALSE | |
759 | AMDEP_TRUE | |
760 | am__quote | |
761 | am__include | |
762 | DEPDIR | |
763 | OBJEXT | |
764 | EXEEXT | |
765 | ac_ct_CC | |
766 | CPPFLAGS | |
767 | LDFLAGS | |
768 | CFLAGS | |
769 | CC | |
b0322a85 CE |
770 | AM_BACKSLASH |
771 | AM_DEFAULT_VERBOSITY | |
772 | AM_DEFAULT_V | |
773 | AM_V | |
8d138742 CE |
774 | am__untar |
775 | am__tar | |
776 | AMTAR | |
777 | am__leading_dot | |
778 | SET_MAKE | |
779 | AWK | |
780 | mkdir_p | |
781 | MKDIR_P | |
782 | INSTALL_STRIP_PROGRAM | |
783 | STRIP | |
784 | install_sh | |
785 | MAKEINFO | |
786 | AUTOHEADER | |
787 | AUTOMAKE | |
788 | AUTOCONF | |
789 | ACLOCAL | |
790 | VERSION | |
791 | PACKAGE | |
792 | CYGPATH_W | |
793 | am__isrc | |
794 | INSTALL_DATA | |
795 | INSTALL_SCRIPT | |
796 | INSTALL_PROGRAM | |
797 | target_alias | |
798 | host_alias | |
dd184caf | 799 | build_alias |
8d138742 CE |
800 | LIBS |
801 | ECHO_T | |
802 | ECHO_N | |
803 | ECHO_C | |
804 | DEFS | |
805 | mandir | |
806 | localedir | |
807 | libdir | |
808 | psdir | |
809 | pdfdir | |
810 | dvidir | |
811 | htmldir | |
812 | infodir | |
813 | docdir | |
814 | oldincludedir | |
815 | includedir | |
816 | localstatedir | |
817 | sharedstatedir | |
818 | sysconfdir | |
819 | datadir | |
820 | datarootdir | |
821 | libexecdir | |
822 | sbindir | |
823 | bindir | |
824 | program_transform_name | |
825 | prefix | |
826 | exec_prefix | |
b0322a85 | 827 | PACKAGE_URL |
8d138742 CE |
828 | PACKAGE_BUGREPORT |
829 | PACKAGE_STRING | |
830 | PACKAGE_VERSION | |
831 | PACKAGE_TARNAME | |
832 | PACKAGE_NAME | |
833 | PATH_SEPARATOR | |
834 | SHELL' | |
835 | ac_subst_files='' | |
836 | ac_user_opts=' | |
837 | enable_option_checking | |
b0322a85 | 838 | enable_silent_rules |
8d138742 CE |
839 | enable_dependency_tracking |
840 | enable_shared | |
841 | enable_static | |
842 | with_pic | |
843 | enable_fast_install | |
844 | with_gnu_ld | |
b0322a85 | 845 | with_sysroot |
8d138742 CE |
846 | enable_libtool_lock |
847 | with_included_ltdl | |
848 | with_ltdl_include | |
849 | with_ltdl_lib | |
850 | enable_ltdl_install | |
8d138742 CE |
851 | with_pkgconfdir |
852 | with_db | |
853 | with_authuserdb | |
854 | with_makedatprog | |
855 | with_userdb | |
856 | with_authpam | |
857 | with_authpam_libraries | |
858 | with_authldap | |
859 | with_authldaprc | |
860 | with_authpwd | |
861 | with_authshadow | |
862 | with_authpgsqlrc | |
863 | with_authpgsql | |
864 | with_pgsql_libs | |
865 | with_pgsql_includes | |
866 | with_authmysqlrc | |
867 | with_authmysql | |
868 | with_mysql_libs | |
869 | with_mysql_includes | |
b0322a85 CE |
870 | with_authsqliterc |
871 | with_authsqlite | |
872 | with_sqlite_libs | |
873 | with_sqlite_includes | |
8d138742 CE |
874 | with_authcustom |
875 | with_pipeprog | |
876 | with_authpipe | |
877 | with_authdaemonrc | |
878 | with_authdaemonvar | |
879 | with_mailuser | |
880 | with_mailgroup | |
881 | with_stdheaderdir | |
882 | with_repository | |
883 | ' | |
884 | ac_precious_vars='build_alias | |
dd184caf | 885 | host_alias |
886 | target_alias | |
887 | CC | |
888 | CFLAGS | |
889 | LDFLAGS | |
890 | LIBS | |
891 | CPPFLAGS | |
8d138742 CE |
892 | CPP' |
893 | ac_subdirs_all='libltdl | |
b0322a85 | 894 | libs/bdbobj libs/gdbmobj libs/md5 libs/sha1 libs/libhmac libs/numlib libs/makedat userdb libs/unicode libs/rfc822 libs/random128 libs/liblock liblog' |
d9898ee8 | 895 | |
896 | # Initialize some variables set by options. | |
897 | ac_init_help= | |
898 | ac_init_version=false | |
8d138742 CE |
899 | ac_unrecognized_opts= |
900 | ac_unrecognized_sep= | |
d9898ee8 | 901 | # The variables have the same names as the options, with |
902 | # dashes changed to underlines. | |
903 | cache_file=/dev/null | |
904 | exec_prefix=NONE | |
905 | no_create= | |
906 | no_recursion= | |
907 | prefix=NONE | |
908 | program_prefix=NONE | |
909 | program_suffix=NONE | |
910 | program_transform_name=s,x,x, | |
911 | silent= | |
912 | site= | |
913 | srcdir= | |
914 | verbose= | |
915 | x_includes=NONE | |
916 | x_libraries=NONE | |
917 | ||
918 | # Installation directory options. | |
919 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
920 | # and all the variables that are supposed to be based on exec_prefix | |
921 | # by default will actually change. | |
922 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
dd184caf | 923 | # (The list follows the same order as the GNU Coding Standards.) |
d9898ee8 | 924 | bindir='${exec_prefix}/bin' |
925 | sbindir='${exec_prefix}/sbin' | |
926 | libexecdir='${exec_prefix}/libexec' | |
dd184caf | 927 | datarootdir='${prefix}/share' |
928 | datadir='${datarootdir}' | |
d9898ee8 | 929 | sysconfdir='${prefix}/etc' |
930 | sharedstatedir='${prefix}/com' | |
931 | localstatedir='${prefix}/var' | |
d9898ee8 | 932 | includedir='${prefix}/include' |
933 | oldincludedir='/usr/include' | |
dd184caf | 934 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
935 | infodir='${datarootdir}/info' | |
936 | htmldir='${docdir}' | |
937 | dvidir='${docdir}' | |
938 | pdfdir='${docdir}' | |
939 | psdir='${docdir}' | |
940 | libdir='${exec_prefix}/lib' | |
941 | localedir='${datarootdir}/locale' | |
942 | mandir='${datarootdir}/man' | |
d9898ee8 | 943 | |
944 | ac_prev= | |
dd184caf | 945 | ac_dashdash= |
d9898ee8 | 946 | for ac_option |
947 | do | |
948 | # If the previous option needs an argument, assign it. | |
949 | if test -n "$ac_prev"; then | |
dd184caf | 950 | eval $ac_prev=\$ac_option |
d9898ee8 | 951 | ac_prev= |
952 | continue | |
953 | fi | |
954 | ||
dd184caf | 955 | case $ac_option in |
b0322a85 CE |
956 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
957 | *=) ac_optarg= ;; | |
958 | *) ac_optarg=yes ;; | |
dd184caf | 959 | esac |
d9898ee8 | 960 | |
961 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
962 | ||
dd184caf | 963 | case $ac_dashdash$ac_option in |
964 | --) | |
965 | ac_dashdash=yes ;; | |
d9898ee8 | 966 | |
967 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
968 | ac_prev=bindir ;; | |
969 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
970 | bindir=$ac_optarg ;; | |
971 | ||
972 | -build | --build | --buil | --bui | --bu) | |
973 | ac_prev=build_alias ;; | |
974 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
975 | build_alias=$ac_optarg ;; | |
976 | ||
977 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
978 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
979 | ac_prev=cache_file ;; | |
980 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
981 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
982 | cache_file=$ac_optarg ;; | |
983 | ||
984 | --config-cache | -C) | |
985 | cache_file=config.cache ;; | |
986 | ||
dd184caf | 987 | -datadir | --datadir | --datadi | --datad) |
d9898ee8 | 988 | ac_prev=datadir ;; |
dd184caf | 989 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
d9898ee8 | 990 | datadir=$ac_optarg ;; |
991 | ||
dd184caf | 992 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
993 | | --dataroo | --dataro | --datar) | |
994 | ac_prev=datarootdir ;; | |
995 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
996 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
997 | datarootdir=$ac_optarg ;; | |
998 | ||
d9898ee8 | 999 | -disable-* | --disable-*) |
8d138742 | 1000 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
d9898ee8 | 1001 | # Reject names that are not valid shell variable names. |
8d138742 | 1002 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 1003 | as_fn_error $? "invalid feature name: $ac_useropt" |
8d138742 CE |
1004 | ac_useropt_orig=$ac_useropt |
1005 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1006 | case $ac_user_opts in | |
1007 | *" | |
1008 | "enable_$ac_useropt" | |
1009 | "*) ;; | |
1010 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1011 | ac_unrecognized_sep=', ';; | |
1012 | esac | |
1013 | eval enable_$ac_useropt=no ;; | |
dd184caf | 1014 | |
1015 | -docdir | --docdir | --docdi | --doc | --do) | |
1016 | ac_prev=docdir ;; | |
1017 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1018 | docdir=$ac_optarg ;; | |
1019 | ||
1020 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1021 | ac_prev=dvidir ;; | |
1022 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1023 | dvidir=$ac_optarg ;; | |
d9898ee8 | 1024 | |
1025 | -enable-* | --enable-*) | |
8d138742 | 1026 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
d9898ee8 | 1027 | # Reject names that are not valid shell variable names. |
8d138742 | 1028 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 1029 | as_fn_error $? "invalid feature name: $ac_useropt" |
8d138742 CE |
1030 | ac_useropt_orig=$ac_useropt |
1031 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1032 | case $ac_user_opts in | |
1033 | *" | |
1034 | "enable_$ac_useropt" | |
1035 | "*) ;; | |
1036 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1037 | ac_unrecognized_sep=', ';; | |
1038 | esac | |
1039 | eval enable_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 1040 | |
1041 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1042 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1043 | | --exec | --exe | --ex) | |
1044 | ac_prev=exec_prefix ;; | |
1045 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1046 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1047 | | --exec=* | --exe=* | --ex=*) | |
1048 | exec_prefix=$ac_optarg ;; | |
1049 | ||
1050 | -gas | --gas | --ga | --g) | |
1051 | # Obsolete; use --with-gas. | |
1052 | with_gas=yes ;; | |
1053 | ||
1054 | -help | --help | --hel | --he | -h) | |
1055 | ac_init_help=long ;; | |
1056 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1057 | ac_init_help=recursive ;; | |
1058 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1059 | ac_init_help=short ;; | |
1060 | ||
1061 | -host | --host | --hos | --ho) | |
1062 | ac_prev=host_alias ;; | |
1063 | -host=* | --host=* | --hos=* | --ho=*) | |
1064 | host_alias=$ac_optarg ;; | |
1065 | ||
dd184caf | 1066 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1067 | ac_prev=htmldir ;; | |
1068 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1069 | | --ht=*) | |
1070 | htmldir=$ac_optarg ;; | |
1071 | ||
d9898ee8 | 1072 | -includedir | --includedir | --includedi | --included | --include \ |
1073 | | --includ | --inclu | --incl | --inc) | |
1074 | ac_prev=includedir ;; | |
1075 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1076 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1077 | includedir=$ac_optarg ;; | |
1078 | ||
1079 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1080 | ac_prev=infodir ;; | |
1081 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1082 | infodir=$ac_optarg ;; | |
1083 | ||
1084 | -libdir | --libdir | --libdi | --libd) | |
1085 | ac_prev=libdir ;; | |
1086 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1087 | libdir=$ac_optarg ;; | |
1088 | ||
1089 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1090 | | --libexe | --libex | --libe) | |
1091 | ac_prev=libexecdir ;; | |
1092 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1093 | | --libexe=* | --libex=* | --libe=*) | |
1094 | libexecdir=$ac_optarg ;; | |
1095 | ||
dd184caf | 1096 | -localedir | --localedir | --localedi | --localed | --locale) |
1097 | ac_prev=localedir ;; | |
1098 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1099 | localedir=$ac_optarg ;; | |
1100 | ||
d9898ee8 | 1101 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
dd184caf | 1102 | | --localstate | --localstat | --localsta | --localst | --locals) |
d9898ee8 | 1103 | ac_prev=localstatedir ;; |
1104 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
dd184caf | 1105 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
d9898ee8 | 1106 | localstatedir=$ac_optarg ;; |
1107 | ||
1108 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1109 | ac_prev=mandir ;; | |
1110 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1111 | mandir=$ac_optarg ;; | |
1112 | ||
1113 | -nfp | --nfp | --nf) | |
1114 | # Obsolete; use --without-fp. | |
1115 | with_fp=no ;; | |
1116 | ||
1117 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1118 | | --no-cr | --no-c | -n) | |
1119 | no_create=yes ;; | |
1120 | ||
1121 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1122 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1123 | no_recursion=yes ;; | |
1124 | ||
1125 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1126 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1127 | | --oldin | --oldi | --old | --ol | --o) | |
1128 | ac_prev=oldincludedir ;; | |
1129 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1130 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1131 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1132 | oldincludedir=$ac_optarg ;; | |
1133 | ||
1134 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1135 | ac_prev=prefix ;; | |
1136 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1137 | prefix=$ac_optarg ;; | |
1138 | ||
1139 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1140 | | --program-pre | --program-pr | --program-p) | |
1141 | ac_prev=program_prefix ;; | |
1142 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1143 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1144 | program_prefix=$ac_optarg ;; | |
1145 | ||
1146 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1147 | | --program-suf | --program-su | --program-s) | |
1148 | ac_prev=program_suffix ;; | |
1149 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1150 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1151 | program_suffix=$ac_optarg ;; | |
1152 | ||
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 | ac_prev=program_transform_name ;; | |
1161 | -program-transform-name=* | --program-transform-name=* \ | |
1162 | | --program-transform-nam=* | --program-transform-na=* \ | |
1163 | | --program-transform-n=* | --program-transform-=* \ | |
1164 | | --program-transform=* | --program-transfor=* \ | |
1165 | | --program-transfo=* | --program-transf=* \ | |
1166 | | --program-trans=* | --program-tran=* \ | |
1167 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1168 | program_transform_name=$ac_optarg ;; | |
1169 | ||
dd184caf | 1170 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1171 | ac_prev=pdfdir ;; | |
1172 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1173 | pdfdir=$ac_optarg ;; | |
1174 | ||
1175 | -psdir | --psdir | --psdi | --psd | --ps) | |
1176 | ac_prev=psdir ;; | |
1177 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1178 | psdir=$ac_optarg ;; | |
1179 | ||
d9898ee8 | 1180 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1181 | | -silent | --silent | --silen | --sile | --sil) | |
1182 | silent=yes ;; | |
1183 | ||
1184 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1185 | ac_prev=sbindir ;; | |
1186 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1187 | | --sbi=* | --sb=*) | |
1188 | sbindir=$ac_optarg ;; | |
1189 | ||
1190 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1191 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1192 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1193 | | --sha | --sh) | |
1194 | ac_prev=sharedstatedir ;; | |
1195 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1196 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1197 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1198 | | --sha=* | --sh=*) | |
1199 | sharedstatedir=$ac_optarg ;; | |
1200 | ||
1201 | -site | --site | --sit) | |
1202 | ac_prev=site ;; | |
1203 | -site=* | --site=* | --sit=*) | |
1204 | site=$ac_optarg ;; | |
1205 | ||
1206 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1207 | ac_prev=srcdir ;; | |
1208 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1209 | srcdir=$ac_optarg ;; | |
1210 | ||
1211 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1212 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1213 | ac_prev=sysconfdir ;; | |
1214 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1215 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1216 | sysconfdir=$ac_optarg ;; | |
1217 | ||
1218 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1219 | ac_prev=target_alias ;; | |
1220 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1221 | target_alias=$ac_optarg ;; | |
1222 | ||
1223 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1224 | verbose=yes ;; | |
1225 | ||
1226 | -version | --version | --versio | --versi | --vers | -V) | |
1227 | ac_init_version=: ;; | |
1228 | ||
1229 | -with-* | --with-*) | |
8d138742 | 1230 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
d9898ee8 | 1231 | # Reject names that are not valid shell variable names. |
8d138742 | 1232 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 1233 | as_fn_error $? "invalid package name: $ac_useropt" |
8d138742 CE |
1234 | ac_useropt_orig=$ac_useropt |
1235 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1236 | case $ac_user_opts in | |
1237 | *" | |
1238 | "with_$ac_useropt" | |
1239 | "*) ;; | |
1240 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1241 | ac_unrecognized_sep=', ';; | |
1242 | esac | |
1243 | eval with_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 1244 | |
1245 | -without-* | --without-*) | |
8d138742 | 1246 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
d9898ee8 | 1247 | # Reject names that are not valid shell variable names. |
8d138742 | 1248 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 1249 | as_fn_error $? "invalid package name: $ac_useropt" |
8d138742 CE |
1250 | ac_useropt_orig=$ac_useropt |
1251 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1252 | case $ac_user_opts in | |
1253 | *" | |
1254 | "with_$ac_useropt" | |
1255 | "*) ;; | |
1256 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1257 | ac_unrecognized_sep=', ';; | |
1258 | esac | |
1259 | eval with_$ac_useropt=no ;; | |
d9898ee8 | 1260 | |
1261 | --x) | |
1262 | # Obsolete; use --with-x. | |
1263 | with_x=yes ;; | |
1264 | ||
1265 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1266 | | --x-incl | --x-inc | --x-in | --x-i) | |
1267 | ac_prev=x_includes ;; | |
1268 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1269 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1270 | x_includes=$ac_optarg ;; | |
1271 | ||
1272 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1273 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1274 | ac_prev=x_libraries ;; | |
1275 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1276 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1277 | x_libraries=$ac_optarg ;; | |
1278 | ||
b0322a85 CE |
1279 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1280 | Try \`$0 --help' for more information" | |
d9898ee8 | 1281 | ;; |
1282 | ||
1283 | *=*) | |
1284 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1285 | # Reject names that are not valid shell variable names. | |
b0322a85 CE |
1286 | case $ac_envvar in #( |
1287 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1288 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1289 | esac | |
dd184caf | 1290 | eval $ac_envvar=\$ac_optarg |
d9898ee8 | 1291 | export $ac_envvar ;; |
1292 | ||
1293 | *) | |
1294 | # FIXME: should be removed in autoconf 3.0. | |
8d138742 | 1295 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
d9898ee8 | 1296 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
8d138742 | 1297 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b0322a85 | 1298 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
d9898ee8 | 1299 | ;; |
1300 | ||
1301 | esac | |
1302 | done | |
1303 | ||
1304 | if test -n "$ac_prev"; then | |
1305 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
b0322a85 | 1306 | as_fn_error $? "missing argument to $ac_option" |
d9898ee8 | 1307 | fi |
1308 | ||
8d138742 CE |
1309 | if test -n "$ac_unrecognized_opts"; then |
1310 | case $enable_option_checking in | |
1311 | no) ;; | |
b0322a85 | 1312 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
8d138742 CE |
1313 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1314 | esac | |
1315 | fi | |
1316 | ||
1317 | # Check all directory arguments for consistency. | |
dd184caf | 1318 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1319 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1320 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1321 | libdir localedir mandir | |
d9898ee8 | 1322 | do |
dd184caf | 1323 | eval ac_val=\$$ac_var |
8d138742 CE |
1324 | # Remove trailing slashes. |
1325 | case $ac_val in | |
1326 | */ ) | |
1327 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1328 | eval $ac_var=\$ac_val;; | |
1329 | esac | |
1330 | # Be sure to have absolute directory names. | |
d9898ee8 | 1331 | case $ac_val in |
dd184caf | 1332 | [\\/$]* | ?:[\\/]* ) continue;; |
1333 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
d9898ee8 | 1334 | esac |
b0322a85 | 1335 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
d9898ee8 | 1336 | done |
1337 | ||
1338 | # There might be people who depend on the old broken behavior: `$host' | |
1339 | # used to hold the argument of --host etc. | |
1340 | # FIXME: To remove some day. | |
1341 | build=$build_alias | |
1342 | host=$host_alias | |
1343 | target=$target_alias | |
1344 | ||
1345 | # FIXME: To remove some day. | |
1346 | if test "x$host_alias" != x; then | |
1347 | if test "x$build_alias" = x; then | |
1348 | cross_compiling=maybe | |
d9898ee8 | 1349 | elif test "x$build_alias" != "x$host_alias"; then |
1350 | cross_compiling=yes | |
1351 | fi | |
1352 | fi | |
1353 | ||
1354 | ac_tool_prefix= | |
1355 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1356 | ||
1357 | test "$silent" = yes && exec 6>/dev/null | |
1358 | ||
1359 | ||
dd184caf | 1360 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1361 | ac_ls_di=`ls -di .` && | |
1362 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
b0322a85 | 1363 | as_fn_error $? "working directory cannot be determined" |
dd184caf | 1364 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
b0322a85 | 1365 | as_fn_error $? "pwd does not report name of working directory" |
dd184caf | 1366 | |
1367 | ||
d9898ee8 | 1368 | # Find the source files, if location was not specified. |
1369 | if test -z "$srcdir"; then | |
1370 | ac_srcdir_defaulted=yes | |
dd184caf | 1371 | # Try the directory containing this script, then the parent directory. |
8d138742 CE |
1372 | ac_confdir=`$as_dirname -- "$as_myself" || |
1373 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1374 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1375 | X"$as_myself" : 'X\(//\)$' \| \ | |
1376 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1377 | $as_echo X"$as_myself" | | |
dd184caf | 1378 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1379 | s//\1/ | |
1380 | q | |
1381 | } | |
1382 | /^X\(\/\/\)[^/].*/{ | |
1383 | s//\1/ | |
1384 | q | |
1385 | } | |
1386 | /^X\(\/\/\)$/{ | |
1387 | s//\1/ | |
1388 | q | |
1389 | } | |
1390 | /^X\(\/\).*/{ | |
1391 | s//\1/ | |
1392 | q | |
1393 | } | |
1394 | s/.*/./; q'` | |
d9898ee8 | 1395 | srcdir=$ac_confdir |
dd184caf | 1396 | if test ! -r "$srcdir/$ac_unique_file"; then |
d9898ee8 | 1397 | srcdir=.. |
1398 | fi | |
1399 | else | |
1400 | ac_srcdir_defaulted=no | |
1401 | fi | |
dd184caf | 1402 | if test ! -r "$srcdir/$ac_unique_file"; then |
1403 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
b0322a85 | 1404 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
d9898ee8 | 1405 | fi |
dd184caf | 1406 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1407 | ac_abs_confdir=`( | |
b0322a85 | 1408 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
dd184caf | 1409 | pwd)` |
1410 | # When building in place, set srcdir=. | |
1411 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1412 | srcdir=. | |
1413 | fi | |
1414 | # Remove unnecessary trailing slashes from srcdir. | |
1415 | # Double slashes in file names in object file debugging info | |
1416 | # mess up M-x gdb in Emacs. | |
1417 | case $srcdir in | |
1418 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1419 | esac | |
1420 | for ac_var in $ac_precious_vars; do | |
1421 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1422 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1423 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1424 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1425 | done | |
d9898ee8 | 1426 | |
1427 | # | |
1428 | # Report the --help message. | |
1429 | # | |
1430 | if test "$ac_init_help" = "long"; then | |
1431 | # Omit some internal or obsolete options to make the list less imposing. | |
1432 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1433 | cat <<_ACEOF | |
b0322a85 | 1434 | \`configure' configures courier-authlib 0.66.1 to adapt to many kinds of systems. |
d9898ee8 | 1435 | |
1436 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1437 | ||
1438 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1439 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1440 | ||
1441 | Defaults for the options are specified in brackets. | |
1442 | ||
1443 | Configuration: | |
1444 | -h, --help display this help and exit | |
1445 | --help=short display options specific to this package | |
1446 | --help=recursive display the short help of all the included packages | |
1447 | -V, --version display version information and exit | |
b0322a85 | 1448 | -q, --quiet, --silent do not print \`checking ...' messages |
d9898ee8 | 1449 | --cache-file=FILE cache test results in FILE [disabled] |
1450 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1451 | -n, --no-create do not create output files | |
1452 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1453 | ||
d9898ee8 | 1454 | Installation directories: |
1455 | --prefix=PREFIX install architecture-independent files in PREFIX | |
8d138742 | 1456 | [$ac_default_prefix] |
d9898ee8 | 1457 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
8d138742 | 1458 | [PREFIX] |
d9898ee8 | 1459 | |
1460 | By default, \`make install' will install all the files in | |
1461 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1462 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1463 | for instance \`--prefix=\$HOME'. | |
1464 | ||
1465 | For better control, use the options below. | |
1466 | ||
1467 | Fine tuning of the installation directories: | |
8d138742 CE |
1468 | --bindir=DIR user executables [EPREFIX/bin] |
1469 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1470 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1471 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1472 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1473 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1474 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1475 | --includedir=DIR C header files [PREFIX/include] | |
1476 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1477 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1478 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1479 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1480 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1481 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1482 | --docdir=DIR documentation root [DATAROOTDIR/doc/courier-authlib] | |
1483 | --htmldir=DIR html documentation [DOCDIR] | |
1484 | --dvidir=DIR dvi documentation [DOCDIR] | |
1485 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1486 | --psdir=DIR ps documentation [DOCDIR] | |
d9898ee8 | 1487 | _ACEOF |
1488 | ||
1489 | cat <<\_ACEOF | |
1490 | ||
1491 | Program names: | |
1492 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1493 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1494 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1495 | ||
1496 | System types: | |
1497 | --build=BUILD configure for building on BUILD [guessed] | |
1498 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1499 | _ACEOF | |
1500 | fi | |
1501 | ||
1502 | if test -n "$ac_init_help"; then | |
1503 | case $ac_init_help in | |
b0322a85 | 1504 | short | recursive ) echo "Configuration of courier-authlib 0.66.1:";; |
d9898ee8 | 1505 | esac |
1506 | cat <<\_ACEOF | |
1507 | ||
1508 | Optional Features: | |
8d138742 | 1509 | --disable-option-checking ignore unrecognized --enable/--with options |
d9898ee8 | 1510 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1511 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
b0322a85 CE |
1512 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1513 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1514 | --enable-dependency-tracking | |
1515 | do not reject slow dependency extractors | |
1516 | --disable-dependency-tracking | |
1517 | speeds up one-time build | |
dd184caf | 1518 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1519 | --enable-static[=PKGS] build static libraries [default=yes] | |
d9898ee8 | 1520 | --enable-fast-install[=PKGS] |
1521 | optimize for fast installation [default=yes] | |
1522 | --disable-libtool-lock avoid locking (might break parallel builds) | |
8d138742 | 1523 | --enable-ltdl-install install libltdl |
d9898ee8 | 1524 | |
1525 | Optional Packages: | |
1526 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1527 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
b0322a85 | 1528 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
d9898ee8 | 1529 | both] |
8d138742 | 1530 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
b0322a85 CE |
1531 | --with-sysroot=DIR Search for dependent libraries within DIR |
1532 | (or the compiler's sysroot if not specified). | |
8d138742 CE |
1533 | --with-included-ltdl use the GNU ltdl sources included here |
1534 | --with-ltdl-include=DIR use the ltdl headers installed in DIR | |
1535 | --with-ltdl-lib=DIR use the libltdl.la installed in DIR | |
d9898ee8 | 1536 | --with-pkgconfdir=d Install config files in directory |
1537 | --with-db=gdbm Use the GDBM library. | |
1538 | --with-db=db Use the libdb.a library. | |
1539 | --without-authuserdb Do not include the authuserdb module | |
1540 | ||
b0322a85 | 1541 | |
d9898ee8 | 1542 | --without-authpam Do not include the authpam module |
1543 | --with-authpam-libraries="libs" Link 'libs' with authpam, this may be | |
1544 | required for FreeBSD 3.3 | |
1545 | --without-authldap Do not include the authldap module | |
1546 | --with-authldaprc=filename Expect to find authldaprc here | |
1547 | --without-authpwd Do not include the authpwd module | |
1548 | --without-authshadow Do not include the authshadow module | |
d9898ee8 | 1549 | --with-authpgsqlrc=filename Expect to find authpgsql here |
1550 | --without-authpgsql Do not include the authpgsql module | |
1551 | --with-pgsql-libs=DIR Look for pgsql libs in this dir | |
1552 | --with-pgsql-includes=DIR Look for pgsql includes in this dir | |
1553 | --with-authmysqlrc=filename Expect to find authmysql here | |
1554 | --without-authmysql Do not include the authmysql module | |
1555 | --with-mysql-libs=DIR Look for mysql libs in this dir | |
1556 | --with-mysql-includes=DIR Look for mysql includes in this dir | |
b0322a85 CE |
1557 | --with-authsqliterc=filename Expect to find authmysql here |
1558 | --without-authsqlite Do not include the authsqlite module | |
1559 | --with-sqlite-libs=DIR Look for sqlite libs in this dir | |
1560 | --with-sqlite-includes=DIR Look for sqlite includes in this dir | |
d9898ee8 | 1561 | --without-authcustom Do not include the authcustom module |
1562 | --with-pipeprog=filename Expect to find the pipe-prog here | |
1563 | --without-authpipe Do not include the authpipe module | |
1564 | --with-authdaemonrc=filename Expect to find authdaemonrc here | |
1565 | --with-authdaemonvar=directory Directory where authdaemon.pid and | |
1566 | the listening socket is created | |
1567 | --with-mailuser=user Specify mail user name (defaults to | |
1568 | courier, daemon, admin, bin, or root) | |
1569 | --with-mailgroup=group Specify mail group name (defaults to courier, | |
1570 | daemon, sys, adm, or root) | |
1571 | --without-stdheaderdir Header files will be installed into a directory | |
1572 | not in the compiler's default search path. | |
1573 | ||
1574 | Some influential environment variables: | |
1575 | CC C compiler command | |
1576 | CFLAGS C compiler flags | |
1577 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1578 | nonstandard directory <lib dir> | |
dd184caf | 1579 | LIBS libraries to pass to the linker, e.g. -l<library> |
b0322a85 | 1580 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
dd184caf | 1581 | you have headers in a nonstandard directory <include dir> |
d9898ee8 | 1582 | CPP C preprocessor |
d9898ee8 | 1583 | |
1584 | Use these variables to override the choices made by `configure' or to help | |
1585 | it to find libraries and programs with nonstandard names/locations. | |
1586 | ||
8d138742 | 1587 | Report bugs to <courier-users@lists.sourceforge.net>. |
d9898ee8 | 1588 | _ACEOF |
dd184caf | 1589 | ac_status=$? |
d9898ee8 | 1590 | fi |
1591 | ||
1592 | if test "$ac_init_help" = "recursive"; then | |
1593 | # If there are subdirs, report their specific --help. | |
d9898ee8 | 1594 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
8d138742 CE |
1595 | test -d "$ac_dir" || |
1596 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1597 | continue | |
d9898ee8 | 1598 | ac_builddir=. |
1599 | ||
dd184caf | 1600 | case "$ac_dir" in |
1601 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1602 | *) | |
8d138742 | 1603 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
dd184caf | 1604 | # A ".." for each directory in $ac_dir_suffix. |
8d138742 | 1605 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
dd184caf | 1606 | case $ac_top_builddir_sub in |
1607 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1608 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1609 | esac ;; | |
1610 | esac | |
1611 | ac_abs_top_builddir=$ac_pwd | |
1612 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1613 | # for backward compatibility: | |
1614 | ac_top_builddir=$ac_top_build_prefix | |
d9898ee8 | 1615 | |
1616 | case $srcdir in | |
dd184caf | 1617 | .) # We are building in place. |
d9898ee8 | 1618 | ac_srcdir=. |
dd184caf | 1619 | ac_top_srcdir=$ac_top_builddir_sub |
1620 | ac_abs_top_srcdir=$ac_pwd ;; | |
1621 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
d9898ee8 | 1622 | ac_srcdir=$srcdir$ac_dir_suffix; |
dd184caf | 1623 | ac_top_srcdir=$srcdir |
1624 | ac_abs_top_srcdir=$srcdir ;; | |
1625 | *) # Relative name. | |
1626 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1627 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1628 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
d9898ee8 | 1629 | esac |
dd184caf | 1630 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1631 | ||
1632 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1633 | # Check for guested configure. | |
1634 | if test -f "$ac_srcdir/configure.gnu"; then | |
1635 | echo && | |
1636 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1637 | elif test -f "$ac_srcdir/configure"; then | |
1638 | echo && | |
1639 | $SHELL "$ac_srcdir/configure" --help=recursive | |
d9898ee8 | 1640 | else |
8d138742 | 1641 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
dd184caf | 1642 | fi || ac_status=$? |
1643 | cd "$ac_pwd" || { ac_status=$?; break; } | |
d9898ee8 | 1644 | done |
1645 | fi | |
1646 | ||
dd184caf | 1647 | test -n "$ac_init_help" && exit $ac_status |
d9898ee8 | 1648 | if $ac_init_version; then |
1649 | cat <<\_ACEOF | |
b0322a85 CE |
1650 | courier-authlib configure 0.66.1 |
1651 | generated by GNU Autoconf 2.69 | |
d9898ee8 | 1652 | |
b0322a85 | 1653 | Copyright (C) 2012 Free Software Foundation, Inc. |
d9898ee8 | 1654 | This configure script is free software; the Free Software Foundation |
1655 | gives unlimited permission to copy, distribute and modify it. | |
1656 | _ACEOF | |
dd184caf | 1657 | exit |
d9898ee8 | 1658 | fi |
d9898ee8 | 1659 | |
b0322a85 CE |
1660 | ## ------------------------ ## |
1661 | ## Autoconf initialization. ## | |
1662 | ## ------------------------ ## | |
d9898ee8 | 1663 | |
b0322a85 CE |
1664 | # ac_fn_c_try_compile LINENO |
1665 | # -------------------------- | |
1666 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1667 | ac_fn_c_try_compile () | |
d9898ee8 | 1668 | { |
b0322a85 CE |
1669 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1670 | rm -f conftest.$ac_objext | |
1671 | if { { ac_try="$ac_compile" | |
1672 | case "(($ac_try" in | |
1673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1674 | *) ac_try_echo=$ac_try;; | |
1675 | esac | |
1676 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1677 | $as_echo "$ac_try_echo"; } >&5 | |
1678 | (eval "$ac_compile") 2>conftest.err | |
1679 | ac_status=$? | |
1680 | if test -s conftest.err; then | |
1681 | grep -v '^ *+' conftest.err >conftest.er1 | |
1682 | cat conftest.er1 >&5 | |
1683 | mv -f conftest.er1 conftest.err | |
1684 | fi | |
1685 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1686 | test $ac_status = 0; } && { | |
1687 | test -z "$ac_c_werror_flag" || | |
1688 | test ! -s conftest.err | |
1689 | } && test -s conftest.$ac_objext; then : | |
1690 | ac_retval=0 | |
1691 | else | |
1692 | $as_echo "$as_me: failed program was:" >&5 | |
1693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 1694 | |
b0322a85 CE |
1695 | ac_retval=1 |
1696 | fi | |
1697 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1698 | as_fn_set_status $ac_retval | |
1699 | ||
1700 | } # ac_fn_c_try_compile | |
1701 | ||
1702 | # ac_fn_c_try_cpp LINENO | |
1703 | # ---------------------- | |
1704 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1705 | ac_fn_c_try_cpp () | |
1706 | { | |
1707 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1708 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1709 | case "(($ac_try" in | |
1710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1711 | *) ac_try_echo=$ac_try;; | |
1712 | esac | |
1713 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1714 | $as_echo "$ac_try_echo"; } >&5 | |
1715 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1716 | ac_status=$? | |
1717 | if test -s conftest.err; then | |
1718 | grep -v '^ *+' conftest.err >conftest.er1 | |
1719 | cat conftest.er1 >&5 | |
1720 | mv -f conftest.er1 conftest.err | |
1721 | fi | |
1722 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1723 | test $ac_status = 0; } > conftest.i && { | |
1724 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1725 | test ! -s conftest.err | |
1726 | }; then : | |
1727 | ac_retval=0 | |
1728 | else | |
1729 | $as_echo "$as_me: failed program was:" >&5 | |
1730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1731 | ||
1732 | ac_retval=1 | |
1733 | fi | |
1734 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1735 | as_fn_set_status $ac_retval | |
1736 | ||
1737 | } # ac_fn_c_try_cpp | |
1738 | ||
1739 | # ac_fn_c_try_link LINENO | |
1740 | # ----------------------- | |
1741 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1742 | ac_fn_c_try_link () | |
1743 | { | |
1744 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1745 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1746 | if { { ac_try="$ac_link" | |
1747 | case "(($ac_try" in | |
1748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1749 | *) ac_try_echo=$ac_try;; | |
1750 | esac | |
1751 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1752 | $as_echo "$ac_try_echo"; } >&5 | |
1753 | (eval "$ac_link") 2>conftest.err | |
1754 | ac_status=$? | |
1755 | if test -s conftest.err; then | |
1756 | grep -v '^ *+' conftest.err >conftest.er1 | |
1757 | cat conftest.er1 >&5 | |
1758 | mv -f conftest.er1 conftest.err | |
1759 | fi | |
1760 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1761 | test $ac_status = 0; } && { | |
1762 | test -z "$ac_c_werror_flag" || | |
1763 | test ! -s conftest.err | |
1764 | } && test -s conftest$ac_exeext && { | |
1765 | test "$cross_compiling" = yes || | |
1766 | test -x conftest$ac_exeext | |
1767 | }; then : | |
1768 | ac_retval=0 | |
1769 | else | |
1770 | $as_echo "$as_me: failed program was:" >&5 | |
1771 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1772 | ||
1773 | ac_retval=1 | |
1774 | fi | |
1775 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1776 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1777 | # interfere with the next link command; also delete a directory that is | |
1778 | # left behind by Apple's compiler. We do this before executing the actions. | |
1779 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1780 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1781 | as_fn_set_status $ac_retval | |
1782 | ||
1783 | } # ac_fn_c_try_link | |
1784 | ||
1785 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1786 | # ------------------------------------------------------- | |
1787 | # Tests whether HEADER exists and can be compiled using the include files in | |
1788 | # INCLUDES, setting the cache variable VAR accordingly. | |
1789 | ac_fn_c_check_header_compile () | |
1790 | { | |
1791 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1793 | $as_echo_n "checking for $2... " >&6; } | |
1794 | if eval \${$3+:} false; then : | |
1795 | $as_echo_n "(cached) " >&6 | |
1796 | else | |
1797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1798 | /* end confdefs.h. */ | |
1799 | $4 | |
1800 | #include <$2> | |
1801 | _ACEOF | |
1802 | if ac_fn_c_try_compile "$LINENO"; then : | |
1803 | eval "$3=yes" | |
1804 | else | |
1805 | eval "$3=no" | |
1806 | fi | |
1807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1808 | fi | |
1809 | eval ac_res=\$$3 | |
1810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1811 | $as_echo "$ac_res" >&6; } | |
1812 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1813 | ||
1814 | } # ac_fn_c_check_header_compile | |
1815 | ||
1816 | # ac_fn_c_try_run LINENO | |
1817 | # ---------------------- | |
1818 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1819 | # that executables *can* be run. | |
1820 | ac_fn_c_try_run () | |
1821 | { | |
1822 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1823 | if { { ac_try="$ac_link" | |
1824 | case "(($ac_try" in | |
1825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1826 | *) ac_try_echo=$ac_try;; | |
1827 | esac | |
1828 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1829 | $as_echo "$ac_try_echo"; } >&5 | |
1830 | (eval "$ac_link") 2>&5 | |
1831 | ac_status=$? | |
1832 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1833 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1834 | { { case "(($ac_try" in | |
1835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1836 | *) ac_try_echo=$ac_try;; | |
1837 | esac | |
1838 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1839 | $as_echo "$ac_try_echo"; } >&5 | |
1840 | (eval "$ac_try") 2>&5 | |
1841 | ac_status=$? | |
1842 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1843 | test $ac_status = 0; }; }; then : | |
1844 | ac_retval=0 | |
1845 | else | |
1846 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1847 | $as_echo "$as_me: failed program was:" >&5 | |
1848 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1849 | ||
1850 | ac_retval=$ac_status | |
1851 | fi | |
1852 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1853 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1854 | as_fn_set_status $ac_retval | |
1855 | ||
1856 | } # ac_fn_c_try_run | |
1857 | ||
1858 | # ac_fn_c_check_func LINENO FUNC VAR | |
1859 | # ---------------------------------- | |
1860 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1861 | ac_fn_c_check_func () | |
1862 | { | |
1863 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1865 | $as_echo_n "checking for $2... " >&6; } | |
1866 | if eval \${$3+:} false; then : | |
1867 | $as_echo_n "(cached) " >&6 | |
1868 | else | |
1869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1870 | /* end confdefs.h. */ | |
1871 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1872 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1873 | #define $2 innocuous_$2 | |
1874 | ||
1875 | /* System header to define __stub macros and hopefully few prototypes, | |
1876 | which can conflict with char $2 (); below. | |
1877 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1878 | <limits.h> exists even on freestanding compilers. */ | |
1879 | ||
1880 | #ifdef __STDC__ | |
1881 | # include <limits.h> | |
1882 | #else | |
1883 | # include <assert.h> | |
1884 | #endif | |
1885 | ||
1886 | #undef $2 | |
1887 | ||
1888 | /* Override any GCC internal prototype to avoid an error. | |
1889 | Use char because int might match the return type of a GCC | |
1890 | builtin and then its argument prototype would still apply. */ | |
1891 | #ifdef __cplusplus | |
1892 | extern "C" | |
1893 | #endif | |
1894 | char $2 (); | |
1895 | /* The GNU C library defines this for functions which it implements | |
1896 | to always fail with ENOSYS. Some functions are actually named | |
1897 | something starting with __ and the normal name is an alias. */ | |
1898 | #if defined __stub_$2 || defined __stub___$2 | |
1899 | choke me | |
1900 | #endif | |
1901 | ||
1902 | int | |
1903 | main () | |
1904 | { | |
1905 | return $2 (); | |
1906 | ; | |
1907 | return 0; | |
1908 | } | |
1909 | _ACEOF | |
1910 | if ac_fn_c_try_link "$LINENO"; then : | |
1911 | eval "$3=yes" | |
1912 | else | |
1913 | eval "$3=no" | |
1914 | fi | |
1915 | rm -f core conftest.err conftest.$ac_objext \ | |
1916 | conftest$ac_exeext conftest.$ac_ext | |
1917 | fi | |
1918 | eval ac_res=\$$3 | |
1919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1920 | $as_echo "$ac_res" >&6; } | |
1921 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1922 | ||
1923 | } # ac_fn_c_check_func | |
1924 | ||
1925 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | |
1926 | # --------------------------------------------- | |
1927 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
1928 | # accordingly. | |
1929 | ac_fn_c_check_decl () | |
1930 | { | |
1931 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1932 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
1933 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
1934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
1935 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
1936 | if eval \${$3+:} false; then : | |
1937 | $as_echo_n "(cached) " >&6 | |
1938 | else | |
1939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1940 | /* end confdefs.h. */ | |
1941 | $4 | |
1942 | int | |
1943 | main () | |
1944 | { | |
1945 | #ifndef $as_decl_name | |
1946 | #ifdef __cplusplus | |
1947 | (void) $as_decl_use; | |
1948 | #else | |
1949 | (void) $as_decl_name; | |
1950 | #endif | |
1951 | #endif | |
1952 | ||
1953 | ; | |
1954 | return 0; | |
1955 | } | |
1956 | _ACEOF | |
1957 | if ac_fn_c_try_compile "$LINENO"; then : | |
1958 | eval "$3=yes" | |
1959 | else | |
1960 | eval "$3=no" | |
1961 | fi | |
1962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1963 | fi | |
1964 | eval ac_res=\$$3 | |
1965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1966 | $as_echo "$ac_res" >&6; } | |
1967 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1968 | ||
1969 | } # ac_fn_c_check_decl | |
1970 | ||
1971 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
1972 | # ------------------------------------------- | |
1973 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1974 | # variable VAR accordingly. | |
1975 | ac_fn_c_check_type () | |
1976 | { | |
1977 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1979 | $as_echo_n "checking for $2... " >&6; } | |
1980 | if eval \${$3+:} false; then : | |
1981 | $as_echo_n "(cached) " >&6 | |
1982 | else | |
1983 | eval "$3=no" | |
1984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1985 | /* end confdefs.h. */ | |
1986 | $4 | |
1987 | int | |
1988 | main () | |
1989 | { | |
1990 | if (sizeof ($2)) | |
1991 | return 0; | |
1992 | ; | |
1993 | return 0; | |
1994 | } | |
1995 | _ACEOF | |
1996 | if ac_fn_c_try_compile "$LINENO"; then : | |
1997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1998 | /* end confdefs.h. */ | |
1999 | $4 | |
2000 | int | |
2001 | main () | |
2002 | { | |
2003 | if (sizeof (($2))) | |
2004 | return 0; | |
2005 | ; | |
2006 | return 0; | |
2007 | } | |
2008 | _ACEOF | |
2009 | if ac_fn_c_try_compile "$LINENO"; then : | |
2010 | ||
2011 | else | |
2012 | eval "$3=yes" | |
2013 | fi | |
2014 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2015 | fi | |
2016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2017 | fi | |
2018 | eval ac_res=\$$3 | |
2019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2020 | $as_echo "$ac_res" >&6; } | |
2021 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2022 | ||
2023 | } # ac_fn_c_check_type | |
2024 | ||
2025 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
2026 | # ------------------------------------------------------- | |
2027 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2028 | # the include files in INCLUDES and setting the cache variable VAR | |
2029 | # accordingly. | |
2030 | ac_fn_c_check_header_mongrel () | |
2031 | { | |
2032 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2033 | if eval \${$3+:} false; then : | |
2034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2035 | $as_echo_n "checking for $2... " >&6; } | |
2036 | if eval \${$3+:} false; then : | |
2037 | $as_echo_n "(cached) " >&6 | |
2038 | fi | |
2039 | eval ac_res=\$$3 | |
2040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2041 | $as_echo "$ac_res" >&6; } | |
2042 | else | |
2043 | # Is the header compilable? | |
2044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2045 | $as_echo_n "checking $2 usability... " >&6; } | |
2046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2047 | /* end confdefs.h. */ | |
2048 | $4 | |
2049 | #include <$2> | |
2050 | _ACEOF | |
2051 | if ac_fn_c_try_compile "$LINENO"; then : | |
2052 | ac_header_compiler=yes | |
2053 | else | |
2054 | ac_header_compiler=no | |
2055 | fi | |
2056 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2058 | $as_echo "$ac_header_compiler" >&6; } | |
2059 | ||
2060 | # Is the header present? | |
2061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2062 | $as_echo_n "checking $2 presence... " >&6; } | |
2063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2064 | /* end confdefs.h. */ | |
2065 | #include <$2> | |
2066 | _ACEOF | |
2067 | if ac_fn_c_try_cpp "$LINENO"; then : | |
2068 | ac_header_preproc=yes | |
2069 | else | |
2070 | ac_header_preproc=no | |
2071 | fi | |
2072 | rm -f conftest.err conftest.i conftest.$ac_ext | |
2073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
2074 | $as_echo "$ac_header_preproc" >&6; } | |
2075 | ||
2076 | # So? What about this header? | |
2077 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
2078 | yes:no: ) | |
2079 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2080 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2081 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2082 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2083 | ;; | |
2084 | no:yes:* ) | |
2085 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2086 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2087 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2088 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2089 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2090 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2091 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2092 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2093 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2094 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2095 | ( $as_echo "## -------------------------------------------------- ## | |
2096 | ## Report this to courier-users@lists.sourceforge.net ## | |
2097 | ## -------------------------------------------------- ##" | |
2098 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
2099 | ;; | |
2100 | esac | |
2101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2102 | $as_echo_n "checking for $2... " >&6; } | |
2103 | if eval \${$3+:} false; then : | |
2104 | $as_echo_n "(cached) " >&6 | |
2105 | else | |
2106 | eval "$3=\$ac_header_compiler" | |
2107 | fi | |
2108 | eval ac_res=\$$3 | |
2109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2110 | $as_echo "$ac_res" >&6; } | |
2111 | fi | |
2112 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2113 | ||
2114 | } # ac_fn_c_check_header_mongrel | |
2115 | cat >config.log <<_ACEOF | |
2116 | This file contains any messages produced by compilers while | |
2117 | running configure, to aid debugging if configure makes a mistake. | |
2118 | ||
2119 | It was created by courier-authlib $as_me 0.66.1, which was | |
2120 | generated by GNU Autoconf 2.69. Invocation command line was | |
2121 | ||
2122 | $ $0 $@ | |
2123 | ||
2124 | _ACEOF | |
2125 | exec 5>>config.log | |
2126 | { | |
2127 | cat <<_ASUNAME | |
2128 | ## --------- ## | |
2129 | ## Platform. ## | |
2130 | ## --------- ## | |
2131 | ||
2132 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
d9898ee8 | 2133 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
2134 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2135 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2136 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2137 | ||
2138 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2139 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2140 | ||
2141 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2142 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2143 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
dd184caf | 2144 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
d9898ee8 | 2145 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2146 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2147 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2148 | ||
2149 | _ASUNAME | |
2150 | ||
2151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2152 | for as_dir in $PATH | |
2153 | do | |
2154 | IFS=$as_save_IFS | |
2155 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2156 | $as_echo "PATH: $as_dir" |
2157 | done | |
dd184caf | 2158 | IFS=$as_save_IFS |
d9898ee8 | 2159 | |
2160 | } >&5 | |
2161 | ||
2162 | cat >&5 <<_ACEOF | |
2163 | ||
2164 | ||
2165 | ## ----------- ## | |
2166 | ## Core tests. ## | |
2167 | ## ----------- ## | |
2168 | ||
2169 | _ACEOF | |
2170 | ||
2171 | ||
2172 | # Keep a trace of the command line. | |
2173 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2174 | # Strip out --silent because we don't want to record it for future runs. | |
2175 | # Also quote any args containing shell meta-characters. | |
2176 | # Make two passes to allow for proper duplicate-argument suppression. | |
2177 | ac_configure_args= | |
2178 | ac_configure_args0= | |
2179 | ac_configure_args1= | |
d9898ee8 | 2180 | ac_must_keep_next=false |
2181 | for ac_pass in 1 2 | |
2182 | do | |
2183 | for ac_arg | |
2184 | do | |
2185 | case $ac_arg in | |
2186 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2187 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2188 | | -silent | --silent | --silen | --sile | --sil) | |
2189 | continue ;; | |
dd184caf | 2190 | *\'*) |
8d138742 | 2191 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 2192 | esac |
2193 | case $ac_pass in | |
b0322a85 | 2194 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
d9898ee8 | 2195 | 2) |
b0322a85 | 2196 | as_fn_append ac_configure_args1 " '$ac_arg'" |
d9898ee8 | 2197 | if test $ac_must_keep_next = true; then |
2198 | ac_must_keep_next=false # Got value, back to normal. | |
2199 | else | |
2200 | case $ac_arg in | |
2201 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2202 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2203 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2204 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2205 | case "$ac_configure_args0 " in | |
2206 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2207 | esac | |
2208 | ;; | |
2209 | -* ) ac_must_keep_next=true ;; | |
2210 | esac | |
2211 | fi | |
b0322a85 | 2212 | as_fn_append ac_configure_args " '$ac_arg'" |
d9898ee8 | 2213 | ;; |
2214 | esac | |
2215 | done | |
2216 | done | |
b0322a85 CE |
2217 | { ac_configure_args0=; unset ac_configure_args0;} |
2218 | { ac_configure_args1=; unset ac_configure_args1;} | |
d9898ee8 | 2219 | |
2220 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2221 | # config.log. We remove comments because anyway the quotes in there | |
2222 | # would cause problems or look ugly. | |
dd184caf | 2223 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2224 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
d9898ee8 | 2225 | trap 'exit_status=$? |
2226 | # Save into config.log some information that might help in debugging. | |
2227 | { | |
2228 | echo | |
2229 | ||
b0322a85 | 2230 | $as_echo "## ---------------- ## |
d9898ee8 | 2231 | ## Cache variables. ## |
b0322a85 | 2232 | ## ---------------- ##" |
d9898ee8 | 2233 | echo |
2234 | # The following way of writing the cache mishandles newlines in values, | |
dd184caf | 2235 | ( |
2236 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2237 | eval ac_val=\$$ac_var | |
2238 | case $ac_val in #( | |
2239 | *${as_nl}*) | |
2240 | case $ac_var in #( | |
b0322a85 | 2241 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
8d138742 | 2242 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
dd184caf | 2243 | esac |
2244 | case $ac_var in #( | |
2245 | _ | IFS | as_nl) ;; #( | |
8d138742 | 2246 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
b0322a85 | 2247 | *) { eval $ac_var=; unset $ac_var;} ;; |
dd184caf | 2248 | esac ;; |
2249 | esac | |
2250 | done | |
d9898ee8 | 2251 | (set) 2>&1 | |
dd184caf | 2252 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2253 | *${as_nl}ac_space=\ *) | |
d9898ee8 | 2254 | sed -n \ |
dd184caf | 2255 | "s/'\''/'\''\\\\'\'''\''/g; |
2256 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2257 | ;; #( | |
d9898ee8 | 2258 | *) |
dd184caf | 2259 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 | 2260 | ;; |
dd184caf | 2261 | esac | |
2262 | sort | |
2263 | ) | |
d9898ee8 | 2264 | echo |
2265 | ||
b0322a85 | 2266 | $as_echo "## ----------------- ## |
d9898ee8 | 2267 | ## Output variables. ## |
b0322a85 | 2268 | ## ----------------- ##" |
d9898ee8 | 2269 | echo |
2270 | for ac_var in $ac_subst_vars | |
2271 | do | |
dd184caf | 2272 | eval ac_val=\$$ac_var |
2273 | case $ac_val in | |
8d138742 | 2274 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 2275 | esac |
8d138742 | 2276 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 2277 | done | sort |
2278 | echo | |
2279 | ||
2280 | if test -n "$ac_subst_files"; then | |
b0322a85 | 2281 | $as_echo "## ------------------- ## |
dd184caf | 2282 | ## File substitutions. ## |
b0322a85 | 2283 | ## ------------------- ##" |
d9898ee8 | 2284 | echo |
2285 | for ac_var in $ac_subst_files | |
2286 | do | |
dd184caf | 2287 | eval ac_val=\$$ac_var |
2288 | case $ac_val in | |
8d138742 | 2289 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 2290 | esac |
8d138742 | 2291 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 2292 | done | sort |
2293 | echo | |
2294 | fi | |
2295 | ||
2296 | if test -s confdefs.h; then | |
b0322a85 | 2297 | $as_echo "## ----------- ## |
d9898ee8 | 2298 | ## confdefs.h. ## |
b0322a85 | 2299 | ## ----------- ##" |
d9898ee8 | 2300 | echo |
dd184caf | 2301 | cat confdefs.h |
d9898ee8 | 2302 | echo |
2303 | fi | |
2304 | test "$ac_signal" != 0 && | |
8d138742 CE |
2305 | $as_echo "$as_me: caught signal $ac_signal" |
2306 | $as_echo "$as_me: exit $exit_status" | |
d9898ee8 | 2307 | } >&5 |
dd184caf | 2308 | rm -f core *.core core.conftest.* && |
2309 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
d9898ee8 | 2310 | exit $exit_status |
dd184caf | 2311 | ' 0 |
d9898ee8 | 2312 | for ac_signal in 1 2 13 15; do |
b0322a85 | 2313 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
d9898ee8 | 2314 | done |
2315 | ac_signal=0 | |
2316 | ||
2317 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
dd184caf | 2318 | rm -f -r conftest* confdefs.h |
d9898ee8 | 2319 | |
b0322a85 CE |
2320 | $as_echo "/* confdefs.h */" > confdefs.h |
2321 | ||
d9898ee8 | 2322 | # Predefined preprocessor variables. |
2323 | ||
2324 | cat >>confdefs.h <<_ACEOF | |
2325 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2326 | _ACEOF | |
2327 | ||
d9898ee8 | 2328 | cat >>confdefs.h <<_ACEOF |
2329 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2330 | _ACEOF | |
2331 | ||
d9898ee8 | 2332 | cat >>confdefs.h <<_ACEOF |
2333 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2334 | _ACEOF | |
2335 | ||
d9898ee8 | 2336 | cat >>confdefs.h <<_ACEOF |
2337 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2338 | _ACEOF | |
2339 | ||
d9898ee8 | 2340 | cat >>confdefs.h <<_ACEOF |
2341 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2342 | _ACEOF | |
2343 | ||
b0322a85 CE |
2344 | cat >>confdefs.h <<_ACEOF |
2345 | #define PACKAGE_URL "$PACKAGE_URL" | |
2346 | _ACEOF | |
2347 | ||
d9898ee8 | 2348 | |
2349 | # Let the site file select an alternate cache file if it wants to. | |
8d138742 CE |
2350 | # Prefer an explicitly selected file to automatically selected ones. |
2351 | ac_site_file1=NONE | |
2352 | ac_site_file2=NONE | |
dd184caf | 2353 | if test -n "$CONFIG_SITE"; then |
b0322a85 CE |
2354 | # We do not want a PATH search for config.site. |
2355 | case $CONFIG_SITE in #(( | |
2356 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2357 | */*) ac_site_file1=$CONFIG_SITE;; | |
2358 | *) ac_site_file1=./$CONFIG_SITE;; | |
2359 | esac | |
dd184caf | 2360 | elif test "x$prefix" != xNONE; then |
8d138742 CE |
2361 | ac_site_file1=$prefix/share/config.site |
2362 | ac_site_file2=$prefix/etc/config.site | |
dd184caf | 2363 | else |
8d138742 CE |
2364 | ac_site_file1=$ac_default_prefix/share/config.site |
2365 | ac_site_file2=$ac_default_prefix/etc/config.site | |
d9898ee8 | 2366 | fi |
8d138742 | 2367 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
dd184caf | 2368 | do |
8d138742 | 2369 | test "x$ac_site_file" = xNONE && continue |
b0322a85 CE |
2370 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
2371 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
8d138742 | 2372 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
d9898ee8 | 2373 | sed 's/^/| /' "$ac_site_file" >&5 |
b0322a85 CE |
2374 | . "$ac_site_file" \ |
2375 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2376 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2377 | as_fn_error $? "failed to load site script $ac_site_file | |
2378 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 2379 | fi |
2380 | done | |
2381 | ||
2382 | if test -r "$cache_file"; then | |
b0322a85 CE |
2383 | # Some versions of bash will fail to source /dev/null (special files |
2384 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2385 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2386 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
8d138742 | 2387 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
d9898ee8 | 2388 | case $cache_file in |
dd184caf | 2389 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2390 | *) . "./$cache_file";; | |
d9898ee8 | 2391 | esac |
2392 | fi | |
2393 | else | |
b0322a85 | 2394 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
8d138742 | 2395 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
d9898ee8 | 2396 | >$cache_file |
2397 | fi | |
2398 | ||
2399 | # Check that the precious variables saved in the cache have kept the same | |
2400 | # value. | |
2401 | ac_cache_corrupted=false | |
dd184caf | 2402 | for ac_var in $ac_precious_vars; do |
d9898ee8 | 2403 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2404 | eval ac_new_set=\$ac_env_${ac_var}_set | |
dd184caf | 2405 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2406 | eval ac_new_val=\$ac_env_${ac_var}_value | |
d9898ee8 | 2407 | case $ac_old_set,$ac_new_set in |
2408 | set,) | |
b0322a85 | 2409 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
8d138742 | 2410 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
d9898ee8 | 2411 | ac_cache_corrupted=: ;; |
2412 | ,set) | |
b0322a85 | 2413 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
8d138742 | 2414 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
d9898ee8 | 2415 | ac_cache_corrupted=: ;; |
2416 | ,);; | |
2417 | *) | |
2418 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
8d138742 CE |
2419 | # differences in whitespace do not lead to failure. |
2420 | ac_old_val_w=`echo x $ac_old_val` | |
2421 | ac_new_val_w=`echo x $ac_new_val` | |
2422 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
b0322a85 | 2423 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
8d138742 CE |
2424 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2425 | ac_cache_corrupted=: | |
2426 | else | |
b0322a85 | 2427 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
8d138742 CE |
2428 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2429 | eval $ac_var=\$ac_old_val | |
2430 | fi | |
b0322a85 | 2431 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
8d138742 | 2432 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
b0322a85 | 2433 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
8d138742 | 2434 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
d9898ee8 | 2435 | fi;; |
2436 | esac | |
2437 | # Pass precious variables to config.status. | |
2438 | if test "$ac_new_set" = set; then | |
2439 | case $ac_new_val in | |
8d138742 | 2440 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 2441 | *) ac_arg=$ac_var=$ac_new_val ;; |
2442 | esac | |
2443 | case " $ac_configure_args " in | |
2444 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
b0322a85 | 2445 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
d9898ee8 | 2446 | esac |
2447 | fi | |
2448 | done | |
2449 | if $ac_cache_corrupted; then | |
b0322a85 | 2450 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 2451 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 | 2452 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
8d138742 | 2453 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
b0322a85 | 2454 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
d9898ee8 | 2455 | fi |
b0322a85 CE |
2456 | ## -------------------- ## |
2457 | ## Main body of script. ## | |
2458 | ## -------------------- ## | |
d9898ee8 | 2459 | |
b0322a85 CE |
2460 | ac_ext=c |
2461 | ac_cpp='$CPP $CPPFLAGS' | |
2462 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2463 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2464 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 2465 | |
2466 | ||
2467 | ||
2468 | ||
2469 | ||
b0322a85 | 2470 | am__api_version='1.13' |
d9898ee8 | 2471 | |
d9898ee8 | 2472 | ac_aux_dir= |
dd184caf | 2473 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2474 | if test -f "$ac_dir/install-sh"; then | |
d9898ee8 | 2475 | ac_aux_dir=$ac_dir |
2476 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2477 | break | |
dd184caf | 2478 | elif test -f "$ac_dir/install.sh"; then |
d9898ee8 | 2479 | ac_aux_dir=$ac_dir |
2480 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2481 | break | |
dd184caf | 2482 | elif test -f "$ac_dir/shtool"; then |
d9898ee8 | 2483 | ac_aux_dir=$ac_dir |
2484 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2485 | break | |
2486 | fi | |
2487 | done | |
2488 | if test -z "$ac_aux_dir"; then | |
b0322a85 | 2489 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
d9898ee8 | 2490 | fi |
dd184caf | 2491 | |
2492 | # These three variables are undocumented and unsupported, | |
2493 | # and are intended to be withdrawn in a future Autoconf release. | |
2494 | # They can cause serious problems if a builder's source tree is in a directory | |
2495 | # whose full name contains unusual characters. | |
2496 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2497 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2498 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2499 | ||
d9898ee8 | 2500 | |
2501 | # Find a good install program. We prefer a C program (faster), | |
2502 | # so one script is as good as another. But avoid the broken or | |
2503 | # incompatible versions: | |
2504 | # SysV /etc/install, /usr/sbin/install | |
2505 | # SunOS /usr/etc/install | |
2506 | # IRIX /sbin/install | |
2507 | # AIX /bin/install | |
2508 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2509 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2510 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2511 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2512 | # OS/2's system install, which has a completely different semantic | |
2513 | # ./install, which can be erroneously created by make from ./install.sh. | |
8d138742 | 2514 | # Reject install programs that cannot install multiple files. |
b0322a85 | 2515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
8d138742 | 2516 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
d9898ee8 | 2517 | if test -z "$INSTALL"; then |
b0322a85 | 2518 | if ${ac_cv_path_install+:} false; then : |
8d138742 | 2519 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2520 | else |
2521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2522 | for as_dir in $PATH | |
2523 | do | |
2524 | IFS=$as_save_IFS | |
2525 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2526 | # Account for people who put trailing slashes in PATH elements. |
2527 | case $as_dir/ in #(( | |
2528 | ./ | .// | /[cC]/* | \ | |
d9898ee8 | 2529 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
b0322a85 | 2530 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
d9898ee8 | 2531 | /usr/ucb/* ) ;; |
2532 | *) | |
2533 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2534 | # Don't use installbsd from OSF since it installs stuff as root | |
2535 | # by default. | |
2536 | for ac_prog in ginstall scoinst install; do | |
2537 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b0322a85 | 2538 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
d9898ee8 | 2539 | if test $ac_prog = install && |
2540 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2541 | # AIX install. It has an incompatible calling convention. | |
2542 | : | |
2543 | elif test $ac_prog = install && | |
2544 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2545 | # program-specific install script used by HP pwplus--don't use. | |
2546 | : | |
2547 | else | |
8d138742 CE |
2548 | rm -rf conftest.one conftest.two conftest.dir |
2549 | echo one > conftest.one | |
2550 | echo two > conftest.two | |
2551 | mkdir conftest.dir | |
2552 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2553 | test -s conftest.one && test -s conftest.two && | |
2554 | test -s conftest.dir/conftest.one && | |
2555 | test -s conftest.dir/conftest.two | |
2556 | then | |
2557 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2558 | break 3 | |
2559 | fi | |
d9898ee8 | 2560 | fi |
2561 | fi | |
2562 | done | |
2563 | done | |
2564 | ;; | |
2565 | esac | |
8d138742 | 2566 | |
b0322a85 | 2567 | done |
dd184caf | 2568 | IFS=$as_save_IFS |
d9898ee8 | 2569 | |
8d138742 | 2570 | rm -rf conftest.one conftest.two conftest.dir |
d9898ee8 | 2571 | |
2572 | fi | |
2573 | if test "${ac_cv_path_install+set}" = set; then | |
2574 | INSTALL=$ac_cv_path_install | |
2575 | else | |
dd184caf | 2576 | # As a last resort, use the slow shell script. Don't cache a |
2577 | # value for INSTALL within a source directory, because that will | |
d9898ee8 | 2578 | # break other packages using the cache if that directory is |
dd184caf | 2579 | # removed, or if the value is a relative name. |
d9898ee8 | 2580 | INSTALL=$ac_install_sh |
2581 | fi | |
2582 | fi | |
b0322a85 | 2583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
8d138742 | 2584 | $as_echo "$INSTALL" >&6; } |
d9898ee8 | 2585 | |
2586 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2587 | # It thinks the first close brace ends the variable substitution. | |
2588 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2589 | ||
2590 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2591 | ||
2592 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2593 | ||
b0322a85 | 2594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
8d138742 | 2595 | $as_echo_n "checking whether build environment is sane... " >&6; } |
8d138742 CE |
2596 | # Reject unsafe characters in $srcdir or the absolute working directory |
2597 | # name. Accept space and tab only in the latter. | |
2598 | am_lf=' | |
2599 | ' | |
2600 | case `pwd` in | |
2601 | *[\\\"\#\$\&\'\`$am_lf]*) | |
b0322a85 | 2602 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
8d138742 CE |
2603 | esac |
2604 | case $srcdir in | |
2605 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
b0322a85 | 2606 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
8d138742 CE |
2607 | esac |
2608 | ||
b0322a85 | 2609 | # Do 'set' in a subshell so we don't clobber the current shell's |
d9898ee8 | 2610 | # arguments. Must try -L first in case configure is actually a |
2611 | # symlink; some systems play weird games with the mod time of symlinks | |
2612 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2613 | # directory). | |
2614 | if ( | |
b0322a85 CE |
2615 | am_has_slept=no |
2616 | for am_try in 1 2; do | |
2617 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2618 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2619 | if test "$*" = "X"; then | |
2620 | # -L didn't work. | |
2621 | set X `ls -t "$srcdir/configure" conftest.file` | |
2622 | fi | |
2623 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2624 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2625 | ||
2626 | # If neither matched, then we have a broken ls. This can happen | |
2627 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2628 | # broken ls alias from the environment. This has actually | |
2629 | # happened. Such a system could not be considered "sane". | |
2630 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2631 | alias in your environment" "$LINENO" 5 | |
2632 | fi | |
2633 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2634 | break | |
2635 | fi | |
2636 | # Just in case. | |
2637 | sleep 1 | |
2638 | am_has_slept=yes | |
2639 | done | |
d9898ee8 | 2640 | test "$2" = conftest.file |
2641 | ) | |
2642 | then | |
2643 | # Ok. | |
2644 | : | |
2645 | else | |
b0322a85 CE |
2646 | as_fn_error $? "newly created file is older than distributed files! |
2647 | Check your system clock" "$LINENO" 5 | |
d9898ee8 | 2648 | fi |
b0322a85 | 2649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 2650 | $as_echo "yes" >&6; } |
b0322a85 CE |
2651 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
2652 | # generated files are strictly newer. | |
2653 | am_sleep_pid= | |
2654 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2655 | ( sleep 1 ) & | |
2656 | am_sleep_pid=$! | |
2657 | fi | |
2658 | ||
2659 | rm -f conftest.file | |
2660 | ||
d9898ee8 | 2661 | test "$program_prefix" != NONE && |
dd184caf | 2662 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
d9898ee8 | 2663 | # Use a double $ so make ignores it. |
2664 | test "$program_suffix" != NONE && | |
dd184caf | 2665 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
8d138742 | 2666 | # Double any \ or $. |
d9898ee8 | 2667 | # By default was `s,x,x', remove it if useless. |
8d138742 CE |
2668 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2669 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
d9898ee8 | 2670 | |
2671 | # expand $ac_aux_dir to an absolute path | |
2672 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2673 | ||
8d138742 CE |
2674 | if test x"${MISSING+set}" != xset; then |
2675 | case $am_aux_dir in | |
2676 | *\ * | *\ *) | |
2677 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2678 | *) | |
2679 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2680 | esac | |
2681 | fi | |
d9898ee8 | 2682 | # Use eval to expand $SHELL |
b0322a85 CE |
2683 | if eval "$MISSING --is-lightweight"; then |
2684 | am_missing_run="$MISSING " | |
d9898ee8 | 2685 | else |
2686 | am_missing_run= | |
b0322a85 CE |
2687 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2688 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
8d138742 CE |
2689 | fi |
2690 | ||
2691 | if test x"${install_sh}" != xset; then | |
2692 | case $am_aux_dir in | |
2693 | *\ * | *\ *) | |
2694 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2695 | *) | |
2696 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2697 | esac | |
2698 | fi | |
2699 | ||
b0322a85 CE |
2700 | # Installed binaries are usually stripped using 'strip' when the user |
2701 | # run "make install-strip". However 'strip' might not be the right | |
8d138742 | 2702 | # tool to use in cross-compilation environments, therefore Automake |
b0322a85 | 2703 | # will honor the 'STRIP' environment variable to overrule this program. |
8d138742 CE |
2704 | if test "$cross_compiling" != no; then |
2705 | if test -n "$ac_tool_prefix"; then | |
2706 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2707 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
b0322a85 | 2708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2709 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2710 | if ${ac_cv_prog_STRIP+:} false; then : |
8d138742 CE |
2711 | $as_echo_n "(cached) " >&6 |
2712 | else | |
2713 | if test -n "$STRIP"; then | |
2714 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2715 | else | |
2716 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2717 | for as_dir in $PATH | |
2718 | do | |
2719 | IFS=$as_save_IFS | |
2720 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2721 | for ac_exec_ext in '' $ac_executable_extensions; do |
2722 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 2723 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
b0322a85 | 2724 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
2725 | break 2 |
2726 | fi | |
2727 | done | |
b0322a85 | 2728 | done |
8d138742 CE |
2729 | IFS=$as_save_IFS |
2730 | ||
2731 | fi | |
2732 | fi | |
2733 | STRIP=$ac_cv_prog_STRIP | |
2734 | if test -n "$STRIP"; then | |
b0322a85 | 2735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8d138742 CE |
2736 | $as_echo "$STRIP" >&6; } |
2737 | else | |
b0322a85 | 2738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
2739 | $as_echo "no" >&6; } |
2740 | fi | |
2741 | ||
2742 | ||
2743 | fi | |
2744 | if test -z "$ac_cv_prog_STRIP"; then | |
2745 | ac_ct_STRIP=$STRIP | |
2746 | # Extract the first word of "strip", so it can be a program name with args. | |
2747 | set dummy strip; ac_word=$2 | |
b0322a85 | 2748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2749 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2750 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
8d138742 CE |
2751 | $as_echo_n "(cached) " >&6 |
2752 | else | |
2753 | if test -n "$ac_ct_STRIP"; then | |
2754 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2755 | else | |
2756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2757 | for as_dir in $PATH | |
2758 | do | |
2759 | IFS=$as_save_IFS | |
2760 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2761 | for ac_exec_ext in '' $ac_executable_extensions; do |
2762 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 2763 | ac_cv_prog_ac_ct_STRIP="strip" |
b0322a85 | 2764 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
2765 | break 2 |
2766 | fi | |
2767 | done | |
b0322a85 | 2768 | done |
8d138742 CE |
2769 | IFS=$as_save_IFS |
2770 | ||
2771 | fi | |
2772 | fi | |
2773 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2774 | if test -n "$ac_ct_STRIP"; then | |
b0322a85 | 2775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
8d138742 CE |
2776 | $as_echo "$ac_ct_STRIP" >&6; } |
2777 | else | |
b0322a85 | 2778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
2779 | $as_echo "no" >&6; } |
2780 | fi | |
2781 | ||
2782 | if test "x$ac_ct_STRIP" = x; then | |
2783 | STRIP=":" | |
2784 | else | |
2785 | case $cross_compiling:$ac_tool_warned in | |
2786 | yes:) | |
b0322a85 | 2787 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
2788 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2789 | ac_tool_warned=yes ;; | |
2790 | esac | |
2791 | STRIP=$ac_ct_STRIP | |
2792 | fi | |
2793 | else | |
2794 | STRIP="$ac_cv_prog_STRIP" | |
2795 | fi | |
2796 | ||
d9898ee8 | 2797 | fi |
8d138742 | 2798 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
d9898ee8 | 2799 | |
b0322a85 | 2800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
8d138742 | 2801 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
dd184caf | 2802 | if test -z "$MKDIR_P"; then |
b0322a85 | 2803 | if ${ac_cv_path_mkdir+:} false; then : |
8d138742 | 2804 | $as_echo_n "(cached) " >&6 |
dd184caf | 2805 | else |
2806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2807 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2808 | do | |
2809 | IFS=$as_save_IFS | |
2810 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 2811 | for ac_prog in mkdir gmkdir; do |
dd184caf | 2812 | for ac_exec_ext in '' $ac_executable_extensions; do |
b0322a85 | 2813 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
dd184caf | 2814 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2815 | 'mkdir (GNU coreutils) '* | \ | |
2816 | 'mkdir (coreutils) '* | \ | |
2817 | 'mkdir (fileutils) '4.1*) | |
2818 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2819 | break 3;; | |
2820 | esac | |
2821 | done | |
2822 | done | |
b0322a85 | 2823 | done |
dd184caf | 2824 | IFS=$as_save_IFS |
2825 | ||
2826 | fi | |
2827 | ||
b0322a85 | 2828 | test -d ./--version && rmdir ./--version |
dd184caf | 2829 | if test "${ac_cv_path_mkdir+set}" = set; then |
2830 | MKDIR_P="$ac_cv_path_mkdir -p" | |
d9898ee8 | 2831 | else |
dd184caf | 2832 | # As a last resort, use the slow shell script. Don't cache a |
2833 | # value for MKDIR_P within a source directory, because that will | |
2834 | # break other packages using the cache if that directory is | |
2835 | # removed, or if the value is a relative name. | |
dd184caf | 2836 | MKDIR_P="$ac_install_sh -d" |
d9898ee8 | 2837 | fi |
2838 | fi | |
b0322a85 | 2839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
8d138742 | 2840 | $as_echo "$MKDIR_P" >&6; } |
dd184caf | 2841 | |
d9898ee8 | 2842 | for ac_prog in gawk mawk nawk awk |
2843 | do | |
2844 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2845 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 2846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2847 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2848 | if ${ac_cv_prog_AWK+:} false; then : |
8d138742 | 2849 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2850 | else |
2851 | if test -n "$AWK"; then | |
2852 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2853 | else | |
2854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2855 | for as_dir in $PATH | |
2856 | do | |
2857 | IFS=$as_save_IFS | |
2858 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2859 | for ac_exec_ext in '' $ac_executable_extensions; do |
2860 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2861 | ac_cv_prog_AWK="$ac_prog" |
b0322a85 | 2862 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2863 | break 2 |
2864 | fi | |
2865 | done | |
b0322a85 | 2866 | done |
dd184caf | 2867 | IFS=$as_save_IFS |
d9898ee8 | 2868 | |
2869 | fi | |
2870 | fi | |
2871 | AWK=$ac_cv_prog_AWK | |
2872 | if test -n "$AWK"; then | |
b0322a85 | 2873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
8d138742 | 2874 | $as_echo "$AWK" >&6; } |
d9898ee8 | 2875 | else |
b0322a85 | 2876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2877 | $as_echo "no" >&6; } |
d9898ee8 | 2878 | fi |
2879 | ||
dd184caf | 2880 | |
d9898ee8 | 2881 | test -n "$AWK" && break |
2882 | done | |
2883 | ||
b0322a85 | 2884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
8d138742 CE |
2885 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2886 | set x ${MAKE-make} | |
2887 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
b0322a85 | 2888 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
8d138742 | 2889 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2890 | else |
2891 | cat >conftest.make <<\_ACEOF | |
dd184caf | 2892 | SHELL = /bin/sh |
d9898ee8 | 2893 | all: |
dd184caf | 2894 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
d9898ee8 | 2895 | _ACEOF |
b0322a85 | 2896 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
dd184caf | 2897 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2898 | *@@@%%%=?*=@@@%%%*) | |
2899 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2900 | *) | |
2901 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2902 | esac | |
d9898ee8 | 2903 | rm -f conftest.make |
2904 | fi | |
dd184caf | 2905 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
b0322a85 | 2906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 2907 | $as_echo "yes" >&6; } |
d9898ee8 | 2908 | SET_MAKE= |
2909 | else | |
b0322a85 | 2910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2911 | $as_echo "no" >&6; } |
d9898ee8 | 2912 | SET_MAKE="MAKE=${MAKE-make}" |
2913 | fi | |
2914 | ||
2915 | rm -rf .tst 2>/dev/null | |
2916 | mkdir .tst 2>/dev/null | |
2917 | if test -d .tst; then | |
2918 | am__leading_dot=. | |
2919 | else | |
2920 | am__leading_dot=_ | |
2921 | fi | |
2922 | rmdir .tst 2>/dev/null | |
2923 | ||
b0322a85 CE |
2924 | # Check whether --enable-silent-rules was given. |
2925 | if test "${enable_silent_rules+set}" = set; then : | |
2926 | enableval=$enable_silent_rules; | |
2927 | fi | |
2928 | ||
2929 | case $enable_silent_rules in # ((( | |
2930 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2931 | no) AM_DEFAULT_VERBOSITY=1;; | |
2932 | *) AM_DEFAULT_VERBOSITY=1;; | |
2933 | esac | |
2934 | am_make=${MAKE-make} | |
2935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2936 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2937 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2938 | $as_echo_n "(cached) " >&6 | |
2939 | else | |
2940 | if $as_echo 'TRUE=$(BAR$(V)) | |
2941 | BAR0=false | |
2942 | BAR1=true | |
2943 | V=1 | |
2944 | am__doit: | |
2945 | @$(TRUE) | |
2946 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2947 | am_cv_make_support_nested_variables=yes | |
2948 | else | |
2949 | am_cv_make_support_nested_variables=no | |
2950 | fi | |
2951 | fi | |
2952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2953 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2954 | if test $am_cv_make_support_nested_variables = yes; then | |
2955 | AM_V='$(V)' | |
2956 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2957 | else | |
2958 | AM_V=$AM_DEFAULT_VERBOSITY | |
2959 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2960 | fi | |
2961 | AM_BACKSLASH='\' | |
2962 | ||
dd184caf | 2963 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2964 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2965 | # is not polluted with repeated "-I." | |
2966 | am__isrc=' -I$(srcdir)' | |
2967 | # test to see if srcdir already configured | |
2968 | if test -f $srcdir/config.status; then | |
b0322a85 | 2969 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
dd184caf | 2970 | fi |
d9898ee8 | 2971 | fi |
2972 | ||
2973 | # test whether we have cygpath | |
2974 | if test -z "$CYGPATH_W"; then | |
2975 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2976 | CYGPATH_W='cygpath -w' | |
2977 | else | |
2978 | CYGPATH_W=echo | |
2979 | fi | |
2980 | fi | |
2981 | ||
2982 | ||
2983 | # Define the identity of the package. | |
2984 | PACKAGE='courier-authlib' | |
b0322a85 | 2985 | VERSION='0.66.1' |
d9898ee8 | 2986 | |
2987 | ||
2988 | cat >>confdefs.h <<_ACEOF | |
2989 | #define PACKAGE "$PACKAGE" | |
2990 | _ACEOF | |
2991 | ||
2992 | ||
2993 | cat >>confdefs.h <<_ACEOF | |
2994 | #define VERSION "$VERSION" | |
2995 | _ACEOF | |
2996 | ||
2997 | # Some tools Automake needs. | |
2998 | ||
2999 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3000 | ||
3001 | ||
3002 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3003 | ||
3004 | ||
3005 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3006 | ||
3007 | ||
3008 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3009 | ||
3010 | ||
3011 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3012 | ||
b0322a85 CE |
3013 | # For better backward compatibility. To be removed once Automake 1.9.x |
3014 | # dies out for good. For more background, see: | |
3015 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3016 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3017 | mkdir_p='$(MKDIR_P)' | |
3018 | ||
8d138742 CE |
3019 | # We need awk for the "check" target. The system "awk" is bad on |
3020 | # some platforms. | |
b0322a85 CE |
3021 | # Always define AMTAR for backward compatibility. Yes, it's still used |
3022 | # in the wild :-( We should find a proper way to deprecate it ... | |
3023 | AMTAR='$${TAR-tar}' | |
3024 | ||
3025 | ||
3026 | # We'll loop over all known methods to create a tar archive until one works. | |
3027 | _am_tools='gnutar pax cpio none' | |
d9898ee8 | 3028 | |
b0322a85 | 3029 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
d9898ee8 | 3030 | |
d9898ee8 | 3031 | |
3032 | ||
3033 | ||
3034 | ||
3035 | ||
b0322a85 CE |
3036 | ac_config_headers="$ac_config_headers courier_auth_config.h" |
3037 | ||
d9898ee8 | 3038 | >confdefs.h # Kill PACKAGE_ macros |
3039 | ||
3040 | LPATH="$PATH:/usr/local/bin" | |
3041 | ||
3042 | for ac_prog in gawk mawk nawk awk | |
3043 | do | |
3044 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3045 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 3046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3047 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3048 | if ${ac_cv_prog_AWK+:} false; then : |
8d138742 | 3049 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3050 | else |
3051 | if test -n "$AWK"; then | |
3052 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3053 | else | |
3054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3055 | for as_dir in $PATH | |
3056 | do | |
3057 | IFS=$as_save_IFS | |
3058 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3059 | for ac_exec_ext in '' $ac_executable_extensions; do |
3060 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3061 | ac_cv_prog_AWK="$ac_prog" |
b0322a85 | 3062 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3063 | break 2 |
3064 | fi | |
3065 | done | |
b0322a85 | 3066 | done |
dd184caf | 3067 | IFS=$as_save_IFS |
d9898ee8 | 3068 | |
3069 | fi | |
3070 | fi | |
3071 | AWK=$ac_cv_prog_AWK | |
3072 | if test -n "$AWK"; then | |
b0322a85 | 3073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
8d138742 | 3074 | $as_echo "$AWK" >&6; } |
d9898ee8 | 3075 | else |
b0322a85 | 3076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3077 | $as_echo "no" >&6; } |
d9898ee8 | 3078 | fi |
3079 | ||
dd184caf | 3080 | |
d9898ee8 | 3081 | test -n "$AWK" && break |
3082 | done | |
3083 | ||
3084 | ac_ext=c | |
3085 | ac_cpp='$CPP $CPPFLAGS' | |
3086 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3087 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3088 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3089 | if test -n "$ac_tool_prefix"; then | |
3090 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3091 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
b0322a85 | 3092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3093 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3094 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3095 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3096 | else |
3097 | if test -n "$CC"; then | |
3098 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3099 | else | |
3100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3101 | for as_dir in $PATH | |
3102 | do | |
3103 | IFS=$as_save_IFS | |
3104 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3105 | for ac_exec_ext in '' $ac_executable_extensions; do |
3106 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3107 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
b0322a85 | 3108 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3109 | break 2 |
3110 | fi | |
3111 | done | |
b0322a85 | 3112 | done |
dd184caf | 3113 | IFS=$as_save_IFS |
d9898ee8 | 3114 | |
3115 | fi | |
3116 | fi | |
3117 | CC=$ac_cv_prog_CC | |
3118 | if test -n "$CC"; then | |
b0322a85 | 3119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3120 | $as_echo "$CC" >&6; } |
d9898ee8 | 3121 | else |
b0322a85 | 3122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3123 | $as_echo "no" >&6; } |
d9898ee8 | 3124 | fi |
3125 | ||
dd184caf | 3126 | |
d9898ee8 | 3127 | fi |
3128 | if test -z "$ac_cv_prog_CC"; then | |
3129 | ac_ct_CC=$CC | |
3130 | # Extract the first word of "gcc", so it can be a program name with args. | |
3131 | set dummy gcc; ac_word=$2 | |
b0322a85 | 3132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3133 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3134 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8d138742 | 3135 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3136 | else |
3137 | if test -n "$ac_ct_CC"; then | |
3138 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3139 | else | |
3140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3141 | for as_dir in $PATH | |
3142 | do | |
3143 | IFS=$as_save_IFS | |
3144 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3145 | for ac_exec_ext in '' $ac_executable_extensions; do |
3146 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3147 | ac_cv_prog_ac_ct_CC="gcc" |
b0322a85 | 3148 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3149 | break 2 |
3150 | fi | |
3151 | done | |
b0322a85 | 3152 | done |
dd184caf | 3153 | IFS=$as_save_IFS |
d9898ee8 | 3154 | |
3155 | fi | |
3156 | fi | |
3157 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3158 | if test -n "$ac_ct_CC"; then | |
b0322a85 | 3159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
8d138742 | 3160 | $as_echo "$ac_ct_CC" >&6; } |
d9898ee8 | 3161 | else |
b0322a85 | 3162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3163 | $as_echo "no" >&6; } |
d9898ee8 | 3164 | fi |
3165 | ||
dd184caf | 3166 | if test "x$ac_ct_CC" = x; then |
3167 | CC="" | |
3168 | else | |
3169 | case $cross_compiling:$ac_tool_warned in | |
3170 | yes:) | |
b0322a85 | 3171 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 3172 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 3173 | ac_tool_warned=yes ;; |
3174 | esac | |
3175 | CC=$ac_ct_CC | |
3176 | fi | |
d9898ee8 | 3177 | else |
3178 | CC="$ac_cv_prog_CC" | |
3179 | fi | |
3180 | ||
3181 | if test -z "$CC"; then | |
dd184caf | 3182 | if test -n "$ac_tool_prefix"; then |
3183 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
d9898ee8 | 3184 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
b0322a85 | 3185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3186 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3187 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3188 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3189 | else |
3190 | if test -n "$CC"; then | |
3191 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3192 | else | |
3193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3194 | for as_dir in $PATH | |
3195 | do | |
3196 | IFS=$as_save_IFS | |
3197 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3198 | for ac_exec_ext in '' $ac_executable_extensions; do |
3199 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3200 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
b0322a85 | 3201 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3202 | break 2 |
3203 | fi | |
3204 | done | |
b0322a85 | 3205 | done |
dd184caf | 3206 | IFS=$as_save_IFS |
d9898ee8 | 3207 | |
3208 | fi | |
3209 | fi | |
3210 | CC=$ac_cv_prog_CC | |
3211 | if test -n "$CC"; then | |
b0322a85 | 3212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3213 | $as_echo "$CC" >&6; } |
d9898ee8 | 3214 | else |
b0322a85 | 3215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3216 | $as_echo "no" >&6; } |
d9898ee8 | 3217 | fi |
3218 | ||
d9898ee8 | 3219 | |
dd184caf | 3220 | fi |
d9898ee8 | 3221 | fi |
3222 | if test -z "$CC"; then | |
3223 | # Extract the first word of "cc", so it can be a program name with args. | |
3224 | set dummy cc; ac_word=$2 | |
b0322a85 | 3225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3226 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3227 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3228 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3229 | else |
3230 | if test -n "$CC"; then | |
3231 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3232 | else | |
3233 | ac_prog_rejected=no | |
3234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3235 | for as_dir in $PATH | |
3236 | do | |
3237 | IFS=$as_save_IFS | |
3238 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3239 | for ac_exec_ext in '' $ac_executable_extensions; do |
3240 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3241 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3242 | ac_prog_rejected=yes | |
3243 | continue | |
3244 | fi | |
3245 | ac_cv_prog_CC="cc" | |
b0322a85 | 3246 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3247 | break 2 |
3248 | fi | |
3249 | done | |
b0322a85 | 3250 | done |
dd184caf | 3251 | IFS=$as_save_IFS |
d9898ee8 | 3252 | |
3253 | if test $ac_prog_rejected = yes; then | |
3254 | # We found a bogon in the path, so make sure we never use it. | |
3255 | set dummy $ac_cv_prog_CC | |
3256 | shift | |
3257 | if test $# != 0; then | |
3258 | # We chose a different compiler from the bogus one. | |
3259 | # However, it has the same basename, so the bogon will be chosen | |
3260 | # first if we set CC to just the basename; use the full file name. | |
3261 | shift | |
3262 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3263 | fi | |
3264 | fi | |
3265 | fi | |
3266 | fi | |
3267 | CC=$ac_cv_prog_CC | |
3268 | if test -n "$CC"; then | |
b0322a85 | 3269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3270 | $as_echo "$CC" >&6; } |
d9898ee8 | 3271 | else |
b0322a85 | 3272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3273 | $as_echo "no" >&6; } |
d9898ee8 | 3274 | fi |
3275 | ||
dd184caf | 3276 | |
d9898ee8 | 3277 | fi |
3278 | if test -z "$CC"; then | |
3279 | if test -n "$ac_tool_prefix"; then | |
dd184caf | 3280 | for ac_prog in cl.exe |
d9898ee8 | 3281 | do |
3282 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3283 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b0322a85 | 3284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3285 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3286 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3287 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3288 | else |
3289 | if test -n "$CC"; then | |
3290 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3291 | else | |
3292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3293 | for as_dir in $PATH | |
3294 | do | |
3295 | IFS=$as_save_IFS | |
3296 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3297 | for ac_exec_ext in '' $ac_executable_extensions; do |
3298 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3299 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
b0322a85 | 3300 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3301 | break 2 |
3302 | fi | |
3303 | done | |
b0322a85 | 3304 | done |
dd184caf | 3305 | IFS=$as_save_IFS |
d9898ee8 | 3306 | |
3307 | fi | |
3308 | fi | |
3309 | CC=$ac_cv_prog_CC | |
3310 | if test -n "$CC"; then | |
b0322a85 | 3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3312 | $as_echo "$CC" >&6; } |
d9898ee8 | 3313 | else |
b0322a85 | 3314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3315 | $as_echo "no" >&6; } |
d9898ee8 | 3316 | fi |
3317 | ||
dd184caf | 3318 | |
d9898ee8 | 3319 | test -n "$CC" && break |
3320 | done | |
3321 | fi | |
3322 | if test -z "$CC"; then | |
3323 | ac_ct_CC=$CC | |
dd184caf | 3324 | for ac_prog in cl.exe |
d9898ee8 | 3325 | do |
3326 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3327 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 3328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3329 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3330 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8d138742 | 3331 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3332 | else |
3333 | if test -n "$ac_ct_CC"; then | |
3334 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3335 | else | |
3336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3337 | for as_dir in $PATH | |
3338 | do | |
3339 | IFS=$as_save_IFS | |
3340 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3341 | for ac_exec_ext in '' $ac_executable_extensions; do |
3342 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3343 | ac_cv_prog_ac_ct_CC="$ac_prog" |
b0322a85 | 3344 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3345 | break 2 |
3346 | fi | |
3347 | done | |
b0322a85 | 3348 | done |
dd184caf | 3349 | IFS=$as_save_IFS |
d9898ee8 | 3350 | |
3351 | fi | |
3352 | fi | |
3353 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3354 | if test -n "$ac_ct_CC"; then | |
b0322a85 | 3355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
8d138742 | 3356 | $as_echo "$ac_ct_CC" >&6; } |
d9898ee8 | 3357 | else |
b0322a85 | 3358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3359 | $as_echo "no" >&6; } |
d9898ee8 | 3360 | fi |
3361 | ||
dd184caf | 3362 | |
d9898ee8 | 3363 | test -n "$ac_ct_CC" && break |
3364 | done | |
3365 | ||
dd184caf | 3366 | if test "x$ac_ct_CC" = x; then |
3367 | CC="" | |
3368 | else | |
3369 | case $cross_compiling:$ac_tool_warned in | |
3370 | yes:) | |
b0322a85 | 3371 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 3372 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 3373 | ac_tool_warned=yes ;; |
3374 | esac | |
3375 | CC=$ac_ct_CC | |
3376 | fi | |
d9898ee8 | 3377 | fi |
3378 | ||
3379 | fi | |
3380 | ||
3381 | ||
b0322a85 | 3382 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3383 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3384 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3385 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3386 | |
3387 | # Provide some information about the compiler. | |
b0322a85 | 3388 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
8d138742 CE |
3389 | set X $ac_compile |
3390 | ac_compiler=$2 | |
b0322a85 CE |
3391 | for ac_option in --version -v -V -qversion; do |
3392 | { { ac_try="$ac_compiler $ac_option >&5" | |
dd184caf | 3393 | case "(($ac_try" in |
3394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3395 | *) ac_try_echo=$ac_try;; | |
3396 | esac | |
b0322a85 CE |
3397 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3398 | $as_echo "$ac_try_echo"; } >&5 | |
3399 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
d9898ee8 | 3400 | ac_status=$? |
b0322a85 CE |
3401 | if test -s conftest.err; then |
3402 | sed '10a\ | |
3403 | ... rest of stderr output deleted ... | |
3404 | 10q' conftest.err >conftest.er1 | |
3405 | cat conftest.er1 >&5 | |
3406 | fi | |
3407 | rm -f conftest.er1 conftest.err | |
3408 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3409 | test $ac_status = 0; } | |
3410 | done | |
d9898ee8 | 3411 | |
b0322a85 | 3412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3413 | /* end confdefs.h. */ |
3414 | ||
3415 | int | |
3416 | main () | |
3417 | { | |
3418 | ||
3419 | ; | |
3420 | return 0; | |
3421 | } | |
3422 | _ACEOF | |
3423 | ac_clean_files_save=$ac_clean_files | |
8d138742 | 3424 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
d9898ee8 | 3425 | # Try to create an executable without -o first, disregard a.out. |
3426 | # It will help us diagnose broken compilers, and finding out an intuition | |
3427 | # of exeext. | |
b0322a85 CE |
3428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3429 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
8d138742 CE |
3430 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3431 | ||
3432 | # The possible output files: | |
3433 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3434 | ||
dd184caf | 3435 | ac_rmfiles= |
3436 | for ac_file in $ac_files | |
3437 | do | |
3438 | case $ac_file in | |
8d138742 | 3439 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
dd184caf | 3440 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3441 | esac | |
3442 | done | |
3443 | rm -f $ac_rmfiles | |
3444 | ||
b0322a85 | 3445 | if { { ac_try="$ac_link_default" |
dd184caf | 3446 | case "(($ac_try" in |
3447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3448 | *) ac_try_echo=$ac_try;; | |
3449 | esac | |
b0322a85 CE |
3450 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3451 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3452 | (eval "$ac_link_default") 2>&5 |
d9898ee8 | 3453 | ac_status=$? |
b0322a85 CE |
3454 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3455 | test $ac_status = 0; }; then : | |
dd184caf | 3456 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3457 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3458 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3459 | # so that the user can short-circuit this test for compilers unknown to | |
3460 | # Autoconf. | |
3461 | for ac_file in $ac_files '' | |
d9898ee8 | 3462 | do |
3463 | test -f "$ac_file" || continue | |
3464 | case $ac_file in | |
8d138742 | 3465 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
d9898ee8 | 3466 | ;; |
3467 | [ab].out ) | |
3468 | # We found the default executable, but exeext='' is most | |
3469 | # certainly right. | |
3470 | break;; | |
3471 | *.* ) | |
b0322a85 | 3472 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
dd184caf | 3473 | then :; else |
3474 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3475 | fi | |
3476 | # We set ac_cv_exeext here because the later test for it is not | |
3477 | # safe: cross compilers may not add the suffix if given an `-o' | |
3478 | # argument, so we may need to know it at that point already. | |
3479 | # Even if this section looks crufty: it has the advantage of | |
3480 | # actually working. | |
d9898ee8 | 3481 | break;; |
3482 | * ) | |
3483 | break;; | |
3484 | esac | |
3485 | done | |
dd184caf | 3486 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3487 | ||
d9898ee8 | 3488 | else |
dd184caf | 3489 | ac_file='' |
3490 | fi | |
b0322a85 CE |
3491 | if test -z "$ac_file"; then : |
3492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3493 | $as_echo "no" >&6; } | |
3494 | $as_echo "$as_me: failed program was:" >&5 | |
d9898ee8 | 3495 | sed 's/^/| /' conftest.$ac_ext >&5 |
3496 | ||
b0322a85 | 3497 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3498 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3499 | as_fn_error 77 "C compiler cannot create executables |
3500 | See \`config.log' for more details" "$LINENO" 5; } | |
3501 | else | |
3502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3503 | $as_echo "yes" >&6; } | |
d9898ee8 | 3504 | fi |
b0322a85 CE |
3505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3506 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3508 | $as_echo "$ac_file" >&6; } | |
d9898ee8 | 3509 | ac_exeext=$ac_cv_exeext |
d9898ee8 | 3510 | |
8d138742 | 3511 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
d9898ee8 | 3512 | ac_clean_files=$ac_clean_files_save |
b0322a85 | 3513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
8d138742 | 3514 | $as_echo_n "checking for suffix of executables... " >&6; } |
b0322a85 | 3515 | if { { ac_try="$ac_link" |
dd184caf | 3516 | case "(($ac_try" in |
3517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3518 | *) ac_try_echo=$ac_try;; | |
3519 | esac | |
b0322a85 CE |
3520 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3521 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3522 | (eval "$ac_link") 2>&5 |
d9898ee8 | 3523 | ac_status=$? |
b0322a85 CE |
3524 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3525 | test $ac_status = 0; }; then : | |
d9898ee8 | 3526 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3527 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3528 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3529 | # `rm'. | |
3530 | for ac_file in conftest.exe conftest conftest.*; do | |
3531 | test -f "$ac_file" || continue | |
3532 | case $ac_file in | |
8d138742 | 3533 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
d9898ee8 | 3534 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
d9898ee8 | 3535 | break;; |
3536 | * ) break;; | |
3537 | esac | |
3538 | done | |
3539 | else | |
b0322a85 | 3540 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3541 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3542 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3543 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3544 | fi |
b0322a85 CE |
3545 | rm -f conftest conftest$ac_cv_exeext |
3546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
8d138742 | 3547 | $as_echo "$ac_cv_exeext" >&6; } |
d9898ee8 | 3548 | |
3549 | rm -f conftest.$ac_ext | |
3550 | EXEEXT=$ac_cv_exeext | |
3551 | ac_exeext=$EXEEXT | |
b0322a85 CE |
3552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3553 | /* end confdefs.h. */ | |
3554 | #include <stdio.h> | |
3555 | int | |
3556 | main () | |
3557 | { | |
3558 | FILE *f = fopen ("conftest.out", "w"); | |
3559 | return ferror (f) || fclose (f) != 0; | |
3560 | ||
3561 | ; | |
3562 | return 0; | |
3563 | } | |
3564 | _ACEOF | |
3565 | ac_clean_files="$ac_clean_files conftest.out" | |
3566 | # Check that the compiler produces executables we can run. If not, either | |
3567 | # the compiler is broken, or we cross compile. | |
3568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3569 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3570 | if test "$cross_compiling" != yes; then | |
3571 | { { ac_try="$ac_link" | |
3572 | case "(($ac_try" in | |
3573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3574 | *) ac_try_echo=$ac_try;; | |
3575 | esac | |
3576 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3577 | $as_echo "$ac_try_echo"; } >&5 | |
3578 | (eval "$ac_link") 2>&5 | |
3579 | ac_status=$? | |
3580 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3581 | test $ac_status = 0; } | |
3582 | if { ac_try='./conftest$ac_cv_exeext' | |
3583 | { { case "(($ac_try" in | |
3584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3585 | *) ac_try_echo=$ac_try;; | |
3586 | esac | |
3587 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3588 | $as_echo "$ac_try_echo"; } >&5 | |
3589 | (eval "$ac_try") 2>&5 | |
3590 | ac_status=$? | |
3591 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3592 | test $ac_status = 0; }; }; then | |
3593 | cross_compiling=no | |
3594 | else | |
3595 | if test "$cross_compiling" = maybe; then | |
3596 | cross_compiling=yes | |
3597 | else | |
3598 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3599 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3600 | as_fn_error $? "cannot run C compiled programs. | |
3601 | If you meant to cross compile, use \`--host'. | |
3602 | See \`config.log' for more details" "$LINENO" 5; } | |
3603 | fi | |
3604 | fi | |
3605 | fi | |
3606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3607 | $as_echo "$cross_compiling" >&6; } | |
3608 | ||
3609 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3610 | ac_clean_files=$ac_clean_files_save | |
3611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
8d138742 | 3612 | $as_echo_n "checking for suffix of object files... " >&6; } |
b0322a85 | 3613 | if ${ac_cv_objext+:} false; then : |
8d138742 | 3614 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3615 | else |
b0322a85 | 3616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3617 | /* end confdefs.h. */ |
3618 | ||
3619 | int | |
3620 | main () | |
3621 | { | |
3622 | ||
3623 | ; | |
3624 | return 0; | |
3625 | } | |
3626 | _ACEOF | |
3627 | rm -f conftest.o conftest.obj | |
b0322a85 | 3628 | if { { ac_try="$ac_compile" |
dd184caf | 3629 | case "(($ac_try" in |
3630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3631 | *) ac_try_echo=$ac_try;; | |
3632 | esac | |
b0322a85 CE |
3633 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3634 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3635 | (eval "$ac_compile") 2>&5 |
d9898ee8 | 3636 | ac_status=$? |
b0322a85 CE |
3637 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3638 | test $ac_status = 0; }; then : | |
dd184caf | 3639 | for ac_file in conftest.o conftest.obj conftest.*; do |
3640 | test -f "$ac_file" || continue; | |
d9898ee8 | 3641 | case $ac_file in |
8d138742 | 3642 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
d9898ee8 | 3643 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3644 | break;; | |
3645 | esac | |
3646 | done | |
3647 | else | |
8d138742 | 3648 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3649 | sed 's/^/| /' conftest.$ac_ext >&5 |
3650 | ||
b0322a85 | 3651 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3652 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3653 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3654 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3655 | fi |
d9898ee8 | 3656 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3657 | fi | |
b0322a85 | 3658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
8d138742 | 3659 | $as_echo "$ac_cv_objext" >&6; } |
d9898ee8 | 3660 | OBJEXT=$ac_cv_objext |
3661 | ac_objext=$OBJEXT | |
b0322a85 | 3662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
8d138742 | 3663 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
b0322a85 | 3664 | if ${ac_cv_c_compiler_gnu+:} false; then : |
8d138742 | 3665 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3666 | else |
b0322a85 | 3667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3668 | /* end confdefs.h. */ |
3669 | ||
3670 | int | |
3671 | main () | |
3672 | { | |
3673 | #ifndef __GNUC__ | |
3674 | choke me | |
3675 | #endif | |
3676 | ||
3677 | ; | |
3678 | return 0; | |
3679 | } | |
3680 | _ACEOF | |
b0322a85 | 3681 | if ac_fn_c_try_compile "$LINENO"; then : |
d9898ee8 | 3682 | ac_compiler_gnu=yes |
3683 | else | |
b0322a85 | 3684 | ac_compiler_gnu=no |
d9898ee8 | 3685 | fi |
dd184caf | 3686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 3687 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3688 | ||
3689 | fi | |
b0322a85 | 3690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
8d138742 CE |
3691 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3692 | if test $ac_compiler_gnu = yes; then | |
3693 | GCC=yes | |
3694 | else | |
3695 | GCC= | |
3696 | fi | |
d9898ee8 | 3697 | ac_test_CFLAGS=${CFLAGS+set} |
3698 | ac_save_CFLAGS=$CFLAGS | |
b0322a85 | 3699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
8d138742 | 3700 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
b0322a85 | 3701 | if ${ac_cv_prog_cc_g+:} false; then : |
8d138742 | 3702 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3703 | else |
dd184caf | 3704 | ac_save_c_werror_flag=$ac_c_werror_flag |
3705 | ac_c_werror_flag=yes | |
3706 | ac_cv_prog_cc_g=no | |
3707 | CFLAGS="-g" | |
b0322a85 | 3708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3709 | /* end confdefs.h. */ |
3710 | ||
3711 | int | |
3712 | main () | |
3713 | { | |
3714 | ||
3715 | ; | |
3716 | return 0; | |
3717 | } | |
3718 | _ACEOF | |
b0322a85 | 3719 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3720 | ac_cv_prog_cc_g=yes |
3721 | else | |
b0322a85 CE |
3722 | CFLAGS="" |
3723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
dd184caf | 3724 | /* end confdefs.h. */ |
3725 | ||
3726 | int | |
3727 | main () | |
3728 | { | |
3729 | ||
3730 | ; | |
3731 | return 0; | |
3732 | } | |
3733 | _ACEOF | |
b0322a85 | 3734 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3735 | |
b0322a85 CE |
3736 | else |
3737 | ac_c_werror_flag=$ac_save_c_werror_flag | |
dd184caf | 3738 | CFLAGS="-g" |
b0322a85 | 3739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dd184caf | 3740 | /* end confdefs.h. */ |
3741 | ||
3742 | int | |
3743 | main () | |
3744 | { | |
3745 | ||
3746 | ; | |
3747 | return 0; | |
3748 | } | |
3749 | _ACEOF | |
b0322a85 | 3750 | if ac_fn_c_try_compile "$LINENO"; then : |
d9898ee8 | 3751 | ac_cv_prog_cc_g=yes |
d9898ee8 | 3752 | fi |
dd184caf | 3753 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3754 | fi | |
dd184caf | 3755 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3756 | fi | |
dd184caf | 3757 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3758 | ac_c_werror_flag=$ac_save_c_werror_flag | |
d9898ee8 | 3759 | fi |
b0322a85 | 3760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
8d138742 | 3761 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
d9898ee8 | 3762 | if test "$ac_test_CFLAGS" = set; then |
3763 | CFLAGS=$ac_save_CFLAGS | |
3764 | elif test $ac_cv_prog_cc_g = yes; then | |
3765 | if test "$GCC" = yes; then | |
3766 | CFLAGS="-g -O2" | |
3767 | else | |
3768 | CFLAGS="-g" | |
3769 | fi | |
3770 | else | |
3771 | if test "$GCC" = yes; then | |
3772 | CFLAGS="-O2" | |
3773 | else | |
3774 | CFLAGS= | |
3775 | fi | |
3776 | fi | |
b0322a85 | 3777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
8d138742 | 3778 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
b0322a85 | 3779 | if ${ac_cv_prog_cc_c89+:} false; then : |
8d138742 | 3780 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3781 | else |
dd184caf | 3782 | ac_cv_prog_cc_c89=no |
d9898ee8 | 3783 | ac_save_CC=$CC |
b0322a85 | 3784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3785 | /* end confdefs.h. */ |
3786 | #include <stdarg.h> | |
3787 | #include <stdio.h> | |
b0322a85 | 3788 | struct stat; |
d9898ee8 | 3789 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3790 | struct buf { int x; }; | |
3791 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3792 | static char *e (p, i) | |
3793 | char **p; | |
3794 | int i; | |
3795 | { | |
3796 | return p[i]; | |
3797 | } | |
3798 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3799 | { | |
3800 | char *s; | |
3801 | va_list v; | |
3802 | va_start (v,p); | |
3803 | s = g (p, va_arg (v,int)); | |
3804 | va_end (v); | |
3805 | return s; | |
3806 | } | |
3807 | ||
3808 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3809 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3810 | These don't provoke an error unfortunately, instead are silently treated | |
dd184caf | 3811 | as 'x'. The following induces an error, until -std is added to get |
d9898ee8 | 3812 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3813 | array size at least. It's necessary to write '\x00'==0 to get something | |
dd184caf | 3814 | that's true only with -std. */ |
d9898ee8 | 3815 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3816 | ||
dd184caf | 3817 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3818 | inside strings and character constants. */ | |
3819 | #define FOO(x) 'x' | |
3820 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3821 | ||
d9898ee8 | 3822 | int test (int i, double x); |
3823 | struct s1 {int (*f) (int a);}; | |
3824 | struct s2 {int (*f) (double a);}; | |
3825 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3826 | int argc; | |
3827 | char **argv; | |
3828 | int | |
3829 | main () | |
3830 | { | |
3831 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3832 | ; | |
3833 | return 0; | |
3834 | } | |
3835 | _ACEOF | |
dd184caf | 3836 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3837 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
d9898ee8 | 3838 | do |
3839 | CC="$ac_save_CC $ac_arg" | |
b0322a85 | 3840 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3841 | ac_cv_prog_cc_c89=$ac_arg |
d9898ee8 | 3842 | fi |
dd184caf | 3843 | rm -f core conftest.err conftest.$ac_objext |
3844 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
d9898ee8 | 3845 | done |
dd184caf | 3846 | rm -f conftest.$ac_ext |
d9898ee8 | 3847 | CC=$ac_save_CC |
3848 | ||
3849 | fi | |
dd184caf | 3850 | # AC_CACHE_VAL |
3851 | case "x$ac_cv_prog_cc_c89" in | |
3852 | x) | |
b0322a85 | 3853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
8d138742 | 3854 | $as_echo "none needed" >&6; } ;; |
dd184caf | 3855 | xno) |
b0322a85 | 3856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
8d138742 | 3857 | $as_echo "unsupported" >&6; } ;; |
d9898ee8 | 3858 | *) |
dd184caf | 3859 | CC="$CC $ac_cv_prog_cc_c89" |
b0322a85 | 3860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
8d138742 | 3861 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
d9898ee8 | 3862 | esac |
b0322a85 | 3863 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
d9898ee8 | 3864 | |
b0322a85 | 3865 | fi |
d9898ee8 | 3866 | |
d9898ee8 | 3867 | ac_ext=c |
3868 | ac_cpp='$CPP $CPPFLAGS' | |
3869 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3870 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3871 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3872 | DEPDIR="${am__leading_dot}deps" | |
3873 | ||
dd184caf | 3874 | ac_config_commands="$ac_config_commands depfiles" |
d9898ee8 | 3875 | |
3876 | ||
3877 | am_make=${MAKE-make} | |
3878 | cat > confinc << 'END' | |
3879 | am__doit: | |
8d138742 | 3880 | @echo this is the am__doit target |
d9898ee8 | 3881 | .PHONY: am__doit |
3882 | END | |
3883 | # If we don't find an include directive, just comment out the code. | |
b0322a85 | 3884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
8d138742 | 3885 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
d9898ee8 | 3886 | am__include="#" |
3887 | am__quote= | |
3888 | _am_result=none | |
3889 | # First try GNU make style include. | |
3890 | echo "include confinc" > confmf | |
b0322a85 | 3891 | # Ignore all kinds of additional output from 'make'. |
8d138742 CE |
3892 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3893 | *the\ am__doit\ target*) | |
3894 | am__include=include | |
3895 | am__quote= | |
3896 | _am_result=GNU | |
3897 | ;; | |
3898 | esac | |
d9898ee8 | 3899 | # Now try BSD make style include. |
3900 | if test "$am__include" = "#"; then | |
3901 | echo '.include "confinc"' > confmf | |
8d138742 CE |
3902 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3903 | *the\ am__doit\ target*) | |
3904 | am__include=.include | |
3905 | am__quote="\"" | |
3906 | _am_result=BSD | |
3907 | ;; | |
3908 | esac | |
d9898ee8 | 3909 | fi |
3910 | ||
3911 | ||
b0322a85 | 3912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
8d138742 | 3913 | $as_echo "$_am_result" >&6; } |
d9898ee8 | 3914 | rm -f confinc confmf |
3915 | ||
dd184caf | 3916 | # Check whether --enable-dependency-tracking was given. |
b0322a85 | 3917 | if test "${enable_dependency_tracking+set}" = set; then : |
dd184caf | 3918 | enableval=$enable_dependency_tracking; |
3919 | fi | |
d9898ee8 | 3920 | |
d9898ee8 | 3921 | if test "x$enable_dependency_tracking" != xno; then |
3922 | am_depcomp="$ac_aux_dir/depcomp" | |
3923 | AMDEPBACKSLASH='\' | |
b0322a85 | 3924 | am__nodep='_no' |
d9898ee8 | 3925 | fi |
dd184caf | 3926 | if test "x$enable_dependency_tracking" != xno; then |
d9898ee8 | 3927 | AMDEP_TRUE= |
3928 | AMDEP_FALSE='#' | |
3929 | else | |
3930 | AMDEP_TRUE='#' | |
3931 | AMDEP_FALSE= | |
3932 | fi | |
3933 | ||
3934 | ||
3935 | ||
d9898ee8 | 3936 | depcc="$CC" am_compiler_list= |
3937 | ||
b0322a85 | 3938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
8d138742 | 3939 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
b0322a85 | 3940 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
8d138742 | 3941 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3942 | else |
3943 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3944 | # We make a subdir and do the tests there. Otherwise we can end up | |
3945 | # making bogus files that we don't know about and never remove. For | |
3946 | # instance it was reported that on HP-UX the gcc test will end up | |
b0322a85 CE |
3947 | # making a dummy file named 'D' -- because '-MD' means "put the output |
3948 | # in D". | |
3949 | rm -rf conftest.dir | |
d9898ee8 | 3950 | mkdir conftest.dir |
3951 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3952 | # using a relative directory. | |
3953 | cp "$am_depcomp" conftest.dir | |
3954 | cd conftest.dir | |
3955 | # We will build objects and dependencies in a subdirectory because | |
3956 | # it helps to detect inapplicable dependency modes. For instance | |
3957 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3958 | # side effect of compilation, but ICC will put the dependencies in | |
3959 | # the current directory while Tru64 will put them in the object | |
3960 | # directory. | |
3961 | mkdir sub | |
3962 | ||
3963 | am_cv_CC_dependencies_compiler_type=none | |
3964 | if test "$am_compiler_list" = ""; then | |
3965 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3966 | fi | |
8d138742 CE |
3967 | am__universal=false |
3968 | case " $depcc " in #( | |
3969 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3970 | esac | |
3971 | ||
d9898ee8 | 3972 | for depmode in $am_compiler_list; do |
3973 | # Setup a source with many dependencies, because some compilers | |
3974 | # like to wrap large dependency lists on column 80 (with \), and | |
3975 | # we should not choose a depcomp mode which is confused by this. | |
3976 | # | |
3977 | # We need to recreate these files for each test, as the compiler may | |
3978 | # overwrite some of them when testing with obscure command lines. | |
3979 | # This happens at least with the AIX C compiler. | |
3980 | : > sub/conftest.c | |
3981 | for i in 1 2 3 4 5 6; do | |
3982 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
b0322a85 CE |
3983 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
3984 | # Solaris 10 /bin/sh. | |
3985 | echo '/* dummy */' > sub/conftst$i.h | |
d9898ee8 | 3986 | done |
3987 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3988 | ||
b0322a85 | 3989 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
8d138742 | 3990 | # mode. It turns out that the SunPro C++ compiler does not properly |
b0322a85 CE |
3991 | # handle '-M -o', and we need to detect this. Also, some Intel |
3992 | # versions had trouble with output in subdirs. | |
8d138742 CE |
3993 | am__obj=sub/conftest.${OBJEXT-o} |
3994 | am__minus_obj="-o $am__obj" | |
d9898ee8 | 3995 | case $depmode in |
8d138742 CE |
3996 | gcc) |
3997 | # This depmode causes a compiler race in universal mode. | |
3998 | test "$am__universal" = false || continue | |
3999 | ;; | |
d9898ee8 | 4000 | nosideeffect) |
b0322a85 CE |
4001 | # After this tag, mechanisms are not by side-effect, so they'll |
4002 | # only be used when explicitly requested. | |
d9898ee8 | 4003 | if test "x$enable_dependency_tracking" = xyes; then |
4004 | continue | |
4005 | else | |
4006 | break | |
4007 | fi | |
4008 | ;; | |
b0322a85 CE |
4009 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
4010 | # This compiler won't grok '-c -o', but also, the minuso test has | |
8d138742 CE |
4011 | # not run yet. These depmodes are late enough in the game, and |
4012 | # so weak that their functioning should not be impacted. | |
4013 | am__obj=conftest.${OBJEXT-o} | |
4014 | am__minus_obj= | |
4015 | ;; | |
d9898ee8 | 4016 | none) break ;; |
4017 | esac | |
d9898ee8 | 4018 | if depmode=$depmode \ |
8d138742 | 4019 | source=sub/conftest.c object=$am__obj \ |
d9898ee8 | 4020 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
8d138742 | 4021 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
d9898ee8 | 4022 | >/dev/null 2>conftest.err && |
dd184caf | 4023 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 4024 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
8d138742 | 4025 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 4026 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4027 | # icc doesn't choke on unknown options, it will just issue warnings | |
4028 | # or remarks (even with -Werror). So we grep stderr for any message | |
4029 | # that says an option was ignored or not supported. | |
4030 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4031 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4032 | # The diagnosis changed in icc 8.0: | |
4033 | # icc: Command line remark: option '-MP' not supported | |
4034 | if (grep 'ignoring option' conftest.err || | |
4035 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4036 | am_cv_CC_dependencies_compiler_type=$depmode | |
4037 | break | |
4038 | fi | |
4039 | fi | |
4040 | done | |
4041 | ||
4042 | cd .. | |
4043 | rm -rf conftest.dir | |
4044 | else | |
4045 | am_cv_CC_dependencies_compiler_type=none | |
4046 | fi | |
4047 | ||
4048 | fi | |
b0322a85 | 4049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
8d138742 | 4050 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
d9898ee8 | 4051 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4052 | ||
dd184caf | 4053 | if |
d9898ee8 | 4054 | test "x$enable_dependency_tracking" != xno \ |
4055 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4056 | am__fastdepCC_TRUE= | |
4057 | am__fastdepCC_FALSE='#' | |
4058 | else | |
4059 | am__fastdepCC_TRUE='#' | |
4060 | am__fastdepCC_FALSE= | |
4061 | fi | |
4062 | ||
4063 | ||
4064 | ac_ext=c | |
4065 | ac_cpp='$CPP $CPPFLAGS' | |
4066 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4067 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4068 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b0322a85 | 4069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
8d138742 | 4070 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
d9898ee8 | 4071 | # On Suns, sometimes $CPP names a directory. |
4072 | if test -n "$CPP" && test -d "$CPP"; then | |
4073 | CPP= | |
4074 | fi | |
4075 | if test -z "$CPP"; then | |
b0322a85 | 4076 | if ${ac_cv_prog_CPP+:} false; then : |
8d138742 | 4077 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4078 | else |
4079 | # Double quotes because CPP needs to be expanded | |
4080 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4081 | do | |
4082 | ac_preproc_ok=false | |
4083 | for ac_c_preproc_warn_flag in '' yes | |
4084 | do | |
4085 | # Use a header file that comes with gcc, so configuring glibc | |
4086 | # with a fresh cross-compiler works. | |
4087 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4088 | # <limits.h> exists even on freestanding compilers. | |
4089 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4090 | # not just through cpp. "Syntax error" is here to catch this case. | |
b0322a85 | 4091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 4092 | /* end confdefs.h. */ |
4093 | #ifdef __STDC__ | |
4094 | # include <limits.h> | |
4095 | #else | |
4096 | # include <assert.h> | |
4097 | #endif | |
4098 | Syntax error | |
4099 | _ACEOF | |
b0322a85 | 4100 | if ac_fn_c_try_cpp "$LINENO"; then : |
d9898ee8 | 4101 | |
b0322a85 | 4102 | else |
d9898ee8 | 4103 | # Broken: fails on valid input. |
4104 | continue | |
4105 | fi | |
b0322a85 | 4106 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 4107 | |
dd184caf | 4108 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 | 4109 | # can be detected and how. |
b0322a85 | 4110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 4111 | /* end confdefs.h. */ |
4112 | #include <ac_nonexistent.h> | |
4113 | _ACEOF | |
b0322a85 | 4114 | if ac_fn_c_try_cpp "$LINENO"; then : |
d9898ee8 | 4115 | # Broken: success on invalid input. |
4116 | continue | |
4117 | else | |
d9898ee8 | 4118 | # Passes both tests. |
4119 | ac_preproc_ok=: | |
4120 | break | |
4121 | fi | |
b0322a85 | 4122 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 4123 | |
4124 | done | |
4125 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
b0322a85 CE |
4126 | rm -f conftest.i conftest.err conftest.$ac_ext |
4127 | if $ac_preproc_ok; then : | |
d9898ee8 | 4128 | break |
4129 | fi | |
4130 | ||
4131 | done | |
4132 | ac_cv_prog_CPP=$CPP | |
4133 | ||
4134 | fi | |
4135 | CPP=$ac_cv_prog_CPP | |
4136 | else | |
4137 | ac_cv_prog_CPP=$CPP | |
4138 | fi | |
b0322a85 | 4139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
8d138742 | 4140 | $as_echo "$CPP" >&6; } |
d9898ee8 | 4141 | ac_preproc_ok=false |
4142 | for ac_c_preproc_warn_flag in '' yes | |
4143 | do | |
4144 | # Use a header file that comes with gcc, so configuring glibc | |
4145 | # with a fresh cross-compiler works. | |
4146 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4147 | # <limits.h> exists even on freestanding compilers. | |
4148 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4149 | # not just through cpp. "Syntax error" is here to catch this case. | |
b0322a85 | 4150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 4151 | /* end confdefs.h. */ |
4152 | #ifdef __STDC__ | |
4153 | # include <limits.h> | |
4154 | #else | |
4155 | # include <assert.h> | |
4156 | #endif | |
4157 | Syntax error | |
4158 | _ACEOF | |
b0322a85 | 4159 | if ac_fn_c_try_cpp "$LINENO"; then : |
d9898ee8 | 4160 | |
b0322a85 | 4161 | else |
d9898ee8 | 4162 | # Broken: fails on valid input. |
4163 | continue | |
4164 | fi | |
b0322a85 | 4165 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 4166 | |
dd184caf | 4167 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 | 4168 | # can be detected and how. |
b0322a85 | 4169 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 4170 | /* end confdefs.h. */ |
4171 | #include <ac_nonexistent.h> | |
4172 | _ACEOF | |
b0322a85 | 4173 | if ac_fn_c_try_cpp "$LINENO"; then : |
d9898ee8 | 4174 | # Broken: success on invalid input. |
4175 | continue | |
4176 | else | |
d9898ee8 | 4177 | # Passes both tests. |
4178 | ac_preproc_ok=: | |
4179 | break | |
4180 | fi | |
b0322a85 | 4181 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 4182 | |
4183 | done | |
4184 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
b0322a85 CE |
4185 | rm -f conftest.i conftest.err conftest.$ac_ext |
4186 | if $ac_preproc_ok; then : | |
4187 | ||
d9898ee8 | 4188 | else |
b0322a85 | 4189 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 4190 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
4191 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4192 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 4193 | fi |
4194 | ||
4195 | ac_ext=c | |
4196 | ac_cpp='$CPP $CPPFLAGS' | |
4197 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4198 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4199 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4200 | ||
d9898ee8 | 4201 | |
b0322a85 | 4202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
8d138742 | 4203 | $as_echo_n "checking whether ln -s works... " >&6; } |
d9898ee8 | 4204 | LN_S=$as_ln_s |
4205 | if test "$LN_S" = "ln -s"; then | |
b0322a85 | 4206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 4207 | $as_echo "yes" >&6; } |
d9898ee8 | 4208 | else |
b0322a85 | 4209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
8d138742 | 4210 | $as_echo "no, using $LN_S" >&6; } |
d9898ee8 | 4211 | fi |
4212 | ||
4213 | ||
4214 | ||
4215 | for ac_prog in perl5 perl | |
4216 | do | |
4217 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4218 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 4219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4220 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4221 | if ${ac_cv_path_SYSCONFTOOL_PERL+:} false; then : |
8d138742 | 4222 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4223 | else |
4224 | case $SYSCONFTOOL_PERL in | |
4225 | [\\/]* | ?:[\\/]*) | |
4226 | ac_cv_path_SYSCONFTOOL_PERL="$SYSCONFTOOL_PERL" # Let the user override the test with a path. | |
4227 | ;; | |
4228 | *) | |
4229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4230 | for as_dir in $PATH | |
4231 | do | |
4232 | IFS=$as_save_IFS | |
4233 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4234 | for ac_exec_ext in '' $ac_executable_extensions; do |
4235 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 4236 | ac_cv_path_SYSCONFTOOL_PERL="$as_dir/$ac_word$ac_exec_ext" |
b0322a85 | 4237 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 4238 | break 2 |
4239 | fi | |
4240 | done | |
b0322a85 | 4241 | done |
dd184caf | 4242 | IFS=$as_save_IFS |
d9898ee8 | 4243 | |
4244 | ;; | |
4245 | esac | |
4246 | fi | |
4247 | SYSCONFTOOL_PERL=$ac_cv_path_SYSCONFTOOL_PERL | |
d9898ee8 | 4248 | if test -n "$SYSCONFTOOL_PERL"; then |
b0322a85 | 4249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSCONFTOOL_PERL" >&5 |
8d138742 | 4250 | $as_echo "$SYSCONFTOOL_PERL" >&6; } |
d9898ee8 | 4251 | else |
b0322a85 | 4252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 4253 | $as_echo "no" >&6; } |
d9898ee8 | 4254 | fi |
4255 | ||
dd184caf | 4256 | |
d9898ee8 | 4257 | test -n "$SYSCONFTOOL_PERL" && break |
4258 | done | |
4259 | test -n "$SYSCONFTOOL_PERL" || SYSCONFTOOL_PERL="perl" | |
4260 | ||
4261 | ||
4262 | if test "$SYSCONFTOOL_PERL" = "perl" | |
4263 | then | |
b0322a85 | 4264 | as_fn_error $? "perl not found - please install perl" "$LINENO" 5 |
d9898ee8 | 4265 | fi |
4266 | ||
b0322a85 | 4267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconftool..." >&5 |
8d138742 | 4268 | $as_echo_n "checking for sysconftool...... " >&6; } |
d9898ee8 | 4269 | SYSCONFTOOL="" |
4270 | for sysconf_dir in $ac_aux_dir . .. ../.. | |
4271 | do | |
4272 | if test -f $srcdir/$sysconf_dir/sysconftool | |
4273 | then | |
4274 | SYSCONFTOOL=$srcdir/$sysconf_dir/sysconftool | |
4275 | break | |
4276 | fi | |
4277 | done | |
4278 | ||
4279 | if test "$SYSCONFTOOL" = "" | |
4280 | then | |
b0322a85 | 4281 | as_fn_error $? "sysconftool missing - not in the package" "$LINENO" 5 |
d9898ee8 | 4282 | fi |
4283 | ||
b0322a85 | 4284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSCONFTOOL" >&5 |
8d138742 | 4285 | $as_echo "$SYSCONFTOOL" >&6; } |
d9898ee8 | 4286 | SYSCONFTOOL="$SYSCONFTOOL_PERL $SYSCONFTOOL" |
4287 | ||
4288 | ||
4289 | ||
8d138742 CE |
4290 | case `pwd` in |
4291 | *\ * | *\ *) | |
b0322a85 | 4292 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
8d138742 | 4293 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
dd184caf | 4294 | esac |
d9898ee8 | 4295 | |
dd184caf | 4296 | |
d9898ee8 | 4297 | |
b0322a85 CE |
4298 | macro_version='2.4.2' |
4299 | macro_revision='1.3337' | |
8d138742 CE |
4300 | |
4301 | ||
4302 | ||
4303 | ||
d9898ee8 | 4304 | |
d9898ee8 | 4305 | |
4306 | ||
4307 | ||
d9898ee8 | 4308 | |
dd184caf | 4309 | |
d9898ee8 | 4310 | |
dd184caf | 4311 | |
dd184caf | 4312 | |
8d138742 | 4313 | ltmain="$ac_aux_dir/ltmain.sh" |
d9898ee8 | 4314 | |
4315 | # Make sure we can run config.sub. | |
dd184caf | 4316 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
b0322a85 | 4317 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
d9898ee8 | 4318 | |
b0322a85 | 4319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
8d138742 | 4320 | $as_echo_n "checking build system type... " >&6; } |
b0322a85 | 4321 | if ${ac_cv_build+:} false; then : |
8d138742 | 4322 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4323 | else |
dd184caf | 4324 | ac_build_alias=$build_alias |
4325 | test "x$ac_build_alias" = x && | |
4326 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
4327 | test "x$ac_build_alias" = x && | |
b0322a85 | 4328 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
dd184caf | 4329 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
b0322a85 | 4330 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
d9898ee8 | 4331 | |
4332 | fi | |
b0322a85 | 4333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
8d138742 | 4334 | $as_echo "$ac_cv_build" >&6; } |
dd184caf | 4335 | case $ac_cv_build in |
4336 | *-*-*) ;; | |
b0322a85 | 4337 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
dd184caf | 4338 | esac |
d9898ee8 | 4339 | build=$ac_cv_build |
dd184caf | 4340 | ac_save_IFS=$IFS; IFS='-' |
4341 | set x $ac_cv_build | |
4342 | shift | |
4343 | build_cpu=$1 | |
4344 | build_vendor=$2 | |
4345 | shift; shift | |
4346 | # Remember, the first character of IFS is used to create $*, | |
4347 | # except with old shells: | |
4348 | build_os=$* | |
4349 | IFS=$ac_save_IFS | |
4350 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
4351 | ||
4352 | ||
b0322a85 | 4353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
8d138742 | 4354 | $as_echo_n "checking host system type... " >&6; } |
b0322a85 | 4355 | if ${ac_cv_host+:} false; then : |
8d138742 | 4356 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4357 | else |
dd184caf | 4358 | if test "x$host_alias" = x; then |
4359 | ac_cv_host=$ac_cv_build | |
4360 | else | |
4361 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
b0322a85 | 4362 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
dd184caf | 4363 | fi |
d9898ee8 | 4364 | |
4365 | fi | |
b0322a85 | 4366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
8d138742 | 4367 | $as_echo "$ac_cv_host" >&6; } |
dd184caf | 4368 | case $ac_cv_host in |
4369 | *-*-*) ;; | |
b0322a85 | 4370 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
dd184caf | 4371 | esac |
d9898ee8 | 4372 | host=$ac_cv_host |
dd184caf | 4373 | ac_save_IFS=$IFS; IFS='-' |
4374 | set x $ac_cv_host | |
4375 | shift | |
4376 | host_cpu=$1 | |
4377 | host_vendor=$2 | |
4378 | shift; shift | |
4379 | # Remember, the first character of IFS is used to create $*, | |
4380 | # except with old shells: | |
4381 | host_os=$* | |
4382 | IFS=$ac_save_IFS | |
4383 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
4384 | ||
4385 | ||
b0322a85 CE |
4386 | # Backslashify metacharacters that are still active within |
4387 | # double-quoted strings. | |
4388 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4389 | ||
4390 | # Same as above, but do not quote variable references. | |
4391 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4392 | ||
4393 | # Sed substitution to delay expansion of an escaped shell variable in a | |
4394 | # double_quote_subst'ed string. | |
4395 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4396 | ||
4397 | # Sed substitution to delay expansion of an escaped single quote. | |
4398 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4399 | ||
4400 | # Sed substitution to avoid accidental globbing in evaled expressions | |
4401 | no_glob_subst='s/\*/\\\*/g' | |
4402 | ||
4403 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4404 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4405 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4406 | ||
4407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4408 | $as_echo_n "checking how to print strings... " >&6; } | |
4409 | # Test print first, because it will be a builtin if present. | |
4410 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
4411 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4412 | ECHO='print -r --' | |
4413 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4414 | ECHO='printf %s\n' | |
4415 | else | |
4416 | # Use this function as a fallback that always works. | |
4417 | func_fallback_echo () | |
4418 | { | |
4419 | eval 'cat <<_LTECHO_EOF | |
4420 | $1 | |
4421 | _LTECHO_EOF' | |
4422 | } | |
4423 | ECHO='func_fallback_echo' | |
4424 | fi | |
4425 | ||
4426 | # func_echo_all arg... | |
4427 | # Invoke $ECHO with all args, space-separated. | |
4428 | func_echo_all () | |
4429 | { | |
4430 | $ECHO "" | |
4431 | } | |
4432 | ||
4433 | case "$ECHO" in | |
4434 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
4435 | $as_echo "printf" >&6; } ;; | |
4436 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4437 | $as_echo "print -r" >&6; } ;; | |
4438 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4439 | $as_echo "cat" >&6; } ;; | |
4440 | esac | |
4441 | ||
4442 | ||
4443 | ||
4444 | ||
4445 | ||
4446 | ||
4447 | ||
4448 | ||
4449 | ||
4450 | ||
4451 | ||
4452 | ||
4453 | ||
4454 | ||
4455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
8d138742 | 4456 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
b0322a85 | 4457 | if ${ac_cv_path_SED+:} false; then : |
8d138742 CE |
4458 | $as_echo_n "(cached) " >&6 |
4459 | else | |
4460 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4461 | for ac_i in 1 2 3 4 5 6 7; do | |
4462 | ac_script="$ac_script$as_nl$ac_script" | |
4463 | done | |
4464 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
b0322a85 | 4465 | { ac_script=; unset ac_script;} |
8d138742 CE |
4466 | if test -z "$SED"; then |
4467 | ac_path_SED_found=false | |
4468 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d9898ee8 | 4470 | for as_dir in $PATH |
4471 | do | |
4472 | IFS=$as_save_IFS | |
4473 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4474 | for ac_prog in sed gsed; do |
d9898ee8 | 4475 | for ac_exec_ext in '' $ac_executable_extensions; do |
8d138742 | 4476 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
b0322a85 | 4477 | as_fn_executable_p "$ac_path_SED" || continue |
8d138742 CE |
4478 | # Check for GNU ac_path_SED and select it if it is found. |
4479 | # Check for GNU $ac_path_SED | |
4480 | case `"$ac_path_SED" --version 2>&1` in | |
dd184caf | 4481 | *GNU*) |
8d138742 | 4482 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
dd184caf | 4483 | *) |
4484 | ac_count=0 | |
8d138742 | 4485 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4486 | while : |
4487 | do | |
4488 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4489 | mv "conftest.tmp" "conftest.in" | |
4490 | cp "conftest.in" "conftest.nl" | |
8d138742 CE |
4491 | $as_echo '' >> "conftest.nl" |
4492 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
dd184caf | 4493 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
b0322a85 | 4494 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
8d138742 | 4495 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
dd184caf | 4496 | # Best one so far, save it but keep looking for a better one |
8d138742 CE |
4497 | ac_cv_path_SED="$ac_path_SED" |
4498 | ac_path_SED_max=$ac_count | |
dd184caf | 4499 | fi |
4500 | # 10*(2^10) chars as input seems more than enough | |
4501 | test $ac_count -gt 10 && break | |
4502 | done | |
4503 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4504 | esac | |
4505 | ||
8d138742 CE |
4506 | $ac_path_SED_found && break 3 |
4507 | done | |
dd184caf | 4508 | done |
b0322a85 | 4509 | done |
dd184caf | 4510 | IFS=$as_save_IFS |
8d138742 | 4511 | if test -z "$ac_cv_path_SED"; then |
b0322a85 | 4512 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
8d138742 CE |
4513 | fi |
4514 | else | |
4515 | ac_cv_path_SED=$SED | |
dd184caf | 4516 | fi |
4517 | ||
dd184caf | 4518 | fi |
b0322a85 | 4519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
8d138742 CE |
4520 | $as_echo "$ac_cv_path_SED" >&6; } |
4521 | SED="$ac_cv_path_SED" | |
4522 | rm -f conftest.sed | |
4523 | ||
4524 | test -z "$SED" && SED=sed | |
4525 | Xsed="$SED -e 1s/^X//" | |
4526 | ||
4527 | ||
4528 | ||
4529 | ||
4530 | ||
4531 | ||
4532 | ||
4533 | ||
4534 | ||
4535 | ||
4536 | ||
b0322a85 | 4537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
8d138742 | 4538 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
b0322a85 | 4539 | if ${ac_cv_path_GREP+:} false; then : |
8d138742 CE |
4540 | $as_echo_n "(cached) " >&6 |
4541 | else | |
4542 | if test -z "$GREP"; then | |
4543 | ac_path_GREP_found=false | |
4544 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4546 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4547 | do | |
4548 | IFS=$as_save_IFS | |
4549 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4550 | for ac_prog in grep ggrep; do |
8d138742 CE |
4551 | for ac_exec_ext in '' $ac_executable_extensions; do |
4552 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4553 | as_fn_executable_p "$ac_path_GREP" || continue |
8d138742 CE |
4554 | # Check for GNU ac_path_GREP and select it if it is found. |
4555 | # Check for GNU $ac_path_GREP | |
4556 | case `"$ac_path_GREP" --version 2>&1` in | |
4557 | *GNU*) | |
4558 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4559 | *) | |
4560 | ac_count=0 | |
4561 | $as_echo_n 0123456789 >"conftest.in" | |
4562 | while : | |
4563 | do | |
4564 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4565 | mv "conftest.tmp" "conftest.in" | |
4566 | cp "conftest.in" "conftest.nl" | |
4567 | $as_echo 'GREP' >> "conftest.nl" | |
4568 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4569 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4570 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
8d138742 CE |
4571 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4572 | # Best one so far, save it but keep looking for a better one | |
4573 | ac_cv_path_GREP="$ac_path_GREP" | |
4574 | ac_path_GREP_max=$ac_count | |
4575 | fi | |
4576 | # 10*(2^10) chars as input seems more than enough | |
4577 | test $ac_count -gt 10 && break | |
4578 | done | |
4579 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4580 | esac | |
dd184caf | 4581 | |
8d138742 CE |
4582 | $ac_path_GREP_found && break 3 |
4583 | done | |
4584 | done | |
b0322a85 | 4585 | done |
8d138742 CE |
4586 | IFS=$as_save_IFS |
4587 | if test -z "$ac_cv_path_GREP"; then | |
b0322a85 | 4588 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 | 4589 | fi |
dd184caf | 4590 | else |
4591 | ac_cv_path_GREP=$GREP | |
4592 | fi | |
4593 | ||
dd184caf | 4594 | fi |
b0322a85 | 4595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
8d138742 | 4596 | $as_echo "$ac_cv_path_GREP" >&6; } |
dd184caf | 4597 | GREP="$ac_cv_path_GREP" |
4598 | ||
d9898ee8 | 4599 | |
b0322a85 | 4600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
8d138742 | 4601 | $as_echo_n "checking for egrep... " >&6; } |
b0322a85 | 4602 | if ${ac_cv_path_EGREP+:} false; then : |
8d138742 | 4603 | $as_echo_n "(cached) " >&6 |
dd184caf | 4604 | else |
4605 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4606 | then ac_cv_path_EGREP="$GREP -E" | |
4607 | else | |
8d138742 | 4608 | if test -z "$EGREP"; then |
dd184caf | 4609 | ac_path_EGREP_found=false |
8d138742 CE |
4610 | # Loop through the user's path and test for each of PROGNAME-LIST |
4611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 4612 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4613 | do | |
4614 | IFS=$as_save_IFS | |
4615 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4616 | for ac_prog in egrep; do |
8d138742 CE |
4617 | for ac_exec_ext in '' $ac_executable_extensions; do |
4618 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4619 | as_fn_executable_p "$ac_path_EGREP" || continue |
8d138742 | 4620 | # Check for GNU ac_path_EGREP and select it if it is found. |
dd184caf | 4621 | # Check for GNU $ac_path_EGREP |
4622 | case `"$ac_path_EGREP" --version 2>&1` in | |
4623 | *GNU*) | |
4624 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4625 | *) | |
4626 | ac_count=0 | |
8d138742 | 4627 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4628 | while : |
4629 | do | |
4630 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4631 | mv "conftest.tmp" "conftest.in" | |
4632 | cp "conftest.in" "conftest.nl" | |
8d138742 | 4633 | $as_echo 'EGREP' >> "conftest.nl" |
dd184caf | 4634 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4635 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4636 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
dd184caf | 4637 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4638 | # Best one so far, save it but keep looking for a better one | |
4639 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4640 | ac_path_EGREP_max=$ac_count | |
d9898ee8 | 4641 | fi |
dd184caf | 4642 | # 10*(2^10) chars as input seems more than enough |
4643 | test $ac_count -gt 10 && break | |
4644 | done | |
4645 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4646 | esac | |
4647 | ||
8d138742 CE |
4648 | $ac_path_EGREP_found && break 3 |
4649 | done | |
dd184caf | 4650 | done |
b0322a85 | 4651 | done |
dd184caf | 4652 | IFS=$as_save_IFS |
8d138742 | 4653 | if test -z "$ac_cv_path_EGREP"; then |
b0322a85 | 4654 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 CE |
4655 | fi |
4656 | else | |
4657 | ac_cv_path_EGREP=$EGREP | |
dd184caf | 4658 | fi |
4659 | ||
8d138742 | 4660 | fi |
dd184caf | 4661 | fi |
b0322a85 | 4662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
8d138742 CE |
4663 | $as_echo "$ac_cv_path_EGREP" >&6; } |
4664 | EGREP="$ac_cv_path_EGREP" | |
dd184caf | 4665 | |
8d138742 | 4666 | |
b0322a85 | 4667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
8d138742 | 4668 | $as_echo_n "checking for fgrep... " >&6; } |
b0322a85 | 4669 | if ${ac_cv_path_FGREP+:} false; then : |
8d138742 | 4670 | $as_echo_n "(cached) " >&6 |
dd184caf | 4671 | else |
8d138742 CE |
4672 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
4673 | then ac_cv_path_FGREP="$GREP -F" | |
4674 | else | |
4675 | if test -z "$FGREP"; then | |
4676 | ac_path_FGREP_found=false | |
4677 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4679 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4680 | do | |
4681 | IFS=$as_save_IFS | |
4682 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4683 | for ac_prog in fgrep; do |
8d138742 CE |
4684 | for ac_exec_ext in '' $ac_executable_extensions; do |
4685 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4686 | as_fn_executable_p "$ac_path_FGREP" || continue |
8d138742 CE |
4687 | # Check for GNU ac_path_FGREP and select it if it is found. |
4688 | # Check for GNU $ac_path_FGREP | |
4689 | case `"$ac_path_FGREP" --version 2>&1` in | |
4690 | *GNU*) | |
4691 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4692 | *) | |
4693 | ac_count=0 | |
4694 | $as_echo_n 0123456789 >"conftest.in" | |
4695 | while : | |
4696 | do | |
4697 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4698 | mv "conftest.tmp" "conftest.in" | |
4699 | cp "conftest.in" "conftest.nl" | |
4700 | $as_echo 'FGREP' >> "conftest.nl" | |
4701 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4702 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4703 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
8d138742 CE |
4704 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
4705 | # Best one so far, save it but keep looking for a better one | |
4706 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4707 | ac_path_FGREP_max=$ac_count | |
4708 | fi | |
4709 | # 10*(2^10) chars as input seems more than enough | |
4710 | test $ac_count -gt 10 && break | |
4711 | done | |
4712 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4713 | esac | |
dd184caf | 4714 | |
8d138742 CE |
4715 | $ac_path_FGREP_found && break 3 |
4716 | done | |
4717 | done | |
b0322a85 | 4718 | done |
8d138742 CE |
4719 | IFS=$as_save_IFS |
4720 | if test -z "$ac_cv_path_FGREP"; then | |
b0322a85 | 4721 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 CE |
4722 | fi |
4723 | else | |
4724 | ac_cv_path_FGREP=$FGREP | |
4725 | fi | |
dd184caf | 4726 | |
4727 | fi | |
d9898ee8 | 4728 | fi |
b0322a85 | 4729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
8d138742 CE |
4730 | $as_echo "$ac_cv_path_FGREP" >&6; } |
4731 | FGREP="$ac_cv_path_FGREP" | |
4732 | ||
4733 | ||
4734 | test -z "$GREP" && GREP=grep | |
4735 | ||
4736 | ||
4737 | ||
4738 | ||
4739 | ||
4740 | ||
4741 | ||
4742 | ||
4743 | ||
4744 | ||
4745 | ||
4746 | ||
4747 | ||
4748 | ||
4749 | ||
4750 | ||
d9898ee8 | 4751 | |
4752 | ||
4753 | ||
dd184caf | 4754 | # Check whether --with-gnu-ld was given. |
b0322a85 | 4755 | if test "${with_gnu_ld+set}" = set; then : |
dd184caf | 4756 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
d9898ee8 | 4757 | else |
4758 | with_gnu_ld=no | |
dd184caf | 4759 | fi |
4760 | ||
d9898ee8 | 4761 | ac_prog=ld |
4762 | if test "$GCC" = yes; then | |
4763 | # Check if gcc -print-prog-name=ld gives a path. | |
b0322a85 | 4764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
8d138742 | 4765 | $as_echo_n "checking for ld used by $CC... " >&6; } |
d9898ee8 | 4766 | case $host in |
4767 | *-*-mingw*) | |
4768 | # gcc leaves a trailing carriage return which upsets mingw | |
4769 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4770 | *) | |
4771 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4772 | esac | |
4773 | case $ac_prog in | |
4774 | # Accept absolute paths. | |
4775 | [\\/]* | ?:[\\/]*) | |
4776 | re_direlt='/[^/][^/]*/\.\./' | |
4777 | # Canonicalize the pathname of ld | |
8d138742 CE |
4778 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
4779 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4780 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
d9898ee8 | 4781 | done |
4782 | test -z "$LD" && LD="$ac_prog" | |
4783 | ;; | |
4784 | "") | |
4785 | # If it fails, then pretend we aren't using GCC. | |
4786 | ac_prog=ld | |
4787 | ;; | |
4788 | *) | |
4789 | # If it is relative, then search for the first ld in PATH. | |
4790 | with_gnu_ld=unknown | |
4791 | ;; | |
4792 | esac | |
4793 | elif test "$with_gnu_ld" = yes; then | |
b0322a85 | 4794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
8d138742 | 4795 | $as_echo_n "checking for GNU ld... " >&6; } |
d9898ee8 | 4796 | else |
b0322a85 | 4797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
8d138742 | 4798 | $as_echo_n "checking for non-GNU ld... " >&6; } |
d9898ee8 | 4799 | fi |
b0322a85 | 4800 | if ${lt_cv_path_LD+:} false; then : |
8d138742 | 4801 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4802 | else |
4803 | if test -z "$LD"; then | |
4804 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4805 | for ac_dir in $PATH; do | |
4806 | IFS="$lt_save_ifs" | |
4807 | test -z "$ac_dir" && ac_dir=. | |
4808 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4809 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
4810 | # Check to see if the program is GNU ld. I'd rather use --version, | |
4811 | # but apparently some variants of GNU ld only accept -v. | |
4812 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4813 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4814 | *GNU* | *'with BFD'*) | |
4815 | test "$with_gnu_ld" != no && break | |
4816 | ;; | |
4817 | *) | |
4818 | test "$with_gnu_ld" != yes && break | |
4819 | ;; | |
4820 | esac | |
4821 | fi | |
4822 | done | |
4823 | IFS="$lt_save_ifs" | |
4824 | else | |
4825 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4826 | fi | |
4827 | fi | |
4828 | ||
4829 | LD="$lt_cv_path_LD" | |
4830 | if test -n "$LD"; then | |
b0322a85 | 4831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8d138742 | 4832 | $as_echo "$LD" >&6; } |
d9898ee8 | 4833 | else |
b0322a85 | 4834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 4835 | $as_echo "no" >&6; } |
d9898ee8 | 4836 | fi |
b0322a85 CE |
4837 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
4838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
8d138742 | 4839 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
b0322a85 | 4840 | if ${lt_cv_prog_gnu_ld+:} false; then : |
8d138742 | 4841 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4842 | else |
4843 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4844 | case `$LD -v 2>&1 </dev/null` in | |
4845 | *GNU* | *'with BFD'*) | |
4846 | lt_cv_prog_gnu_ld=yes | |
4847 | ;; | |
4848 | *) | |
4849 | lt_cv_prog_gnu_ld=no | |
4850 | ;; | |
4851 | esac | |
4852 | fi | |
b0322a85 | 4853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
8d138742 | 4854 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 | 4855 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4856 | ||
4857 | ||
d9898ee8 | 4858 | |
8d138742 CE |
4859 | |
4860 | ||
4861 | ||
4862 | ||
4863 | ||
4864 | ||
b0322a85 | 4865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
8d138742 | 4866 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
b0322a85 | 4867 | if ${lt_cv_path_NM+:} false; then : |
8d138742 | 4868 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4869 | else |
4870 | if test -n "$NM"; then | |
4871 | # Let the user override the test. | |
4872 | lt_cv_path_NM="$NM" | |
4873 | else | |
4874 | lt_nm_to_check="${ac_tool_prefix}nm" | |
4875 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4876 | lt_nm_to_check="$lt_nm_to_check nm" | |
4877 | fi | |
4878 | for lt_tmp_nm in $lt_nm_to_check; do | |
4879 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4880 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4881 | IFS="$lt_save_ifs" | |
4882 | test -z "$ac_dir" && ac_dir=. | |
4883 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
4884 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4885 | # Check to see if the nm accepts a BSD-compat flag. | |
4886 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4887 | # nm: unknown option "B" ignored | |
4888 | # Tru64's nm complains that /dev/null is an invalid object file | |
4889 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4890 | */dev/null* | *'Invalid file or object type'*) | |
4891 | lt_cv_path_NM="$tmp_nm -B" | |
4892 | break | |
4893 | ;; | |
4894 | *) | |
4895 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4896 | */dev/null*) | |
4897 | lt_cv_path_NM="$tmp_nm -p" | |
4898 | break | |
4899 | ;; | |
4900 | *) | |
4901 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4902 | continue # so that we can try to find one that supports BSD flags | |
4903 | ;; | |
4904 | esac | |
4905 | ;; | |
4906 | esac | |
4907 | fi | |
4908 | done | |
4909 | IFS="$lt_save_ifs" | |
4910 | done | |
8d138742 | 4911 | : ${lt_cv_path_NM=no} |
d9898ee8 | 4912 | fi |
4913 | fi | |
b0322a85 | 4914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
8d138742 CE |
4915 | $as_echo "$lt_cv_path_NM" >&6; } |
4916 | if test "$lt_cv_path_NM" != "no"; then | |
4917 | NM="$lt_cv_path_NM" | |
4918 | else | |
4919 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
b0322a85 CE |
4920 | if test -n "$DUMPBIN"; then : |
4921 | # Let the user override the test. | |
4922 | else | |
4923 | if test -n "$ac_tool_prefix"; then | |
4924 | for ac_prog in dumpbin "link -dump" | |
8d138742 CE |
4925 | do |
4926 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4927 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b0322a85 | 4928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4929 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4930 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
8d138742 CE |
4931 | $as_echo_n "(cached) " >&6 |
4932 | else | |
4933 | if test -n "$DUMPBIN"; then | |
4934 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4935 | else | |
4936 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4937 | for as_dir in $PATH | |
4938 | do | |
4939 | IFS=$as_save_IFS | |
4940 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4941 | for ac_exec_ext in '' $ac_executable_extensions; do |
4942 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 4943 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
b0322a85 | 4944 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
4945 | break 2 |
4946 | fi | |
4947 | done | |
b0322a85 | 4948 | done |
8d138742 | 4949 | IFS=$as_save_IFS |
d9898ee8 | 4950 | |
8d138742 CE |
4951 | fi |
4952 | fi | |
4953 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4954 | if test -n "$DUMPBIN"; then | |
b0322a85 | 4955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
8d138742 | 4956 | $as_echo "$DUMPBIN" >&6; } |
d9898ee8 | 4957 | else |
b0322a85 | 4958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
4959 | $as_echo "no" >&6; } |
4960 | fi | |
d9898ee8 | 4961 | |
d9898ee8 | 4962 | |
8d138742 CE |
4963 | test -n "$DUMPBIN" && break |
4964 | done | |
4965 | fi | |
4966 | if test -z "$DUMPBIN"; then | |
4967 | ac_ct_DUMPBIN=$DUMPBIN | |
b0322a85 | 4968 | for ac_prog in dumpbin "link -dump" |
8d138742 CE |
4969 | do |
4970 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4971 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 4972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4973 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4974 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
8d138742 CE |
4975 | $as_echo_n "(cached) " >&6 |
4976 | else | |
4977 | if test -n "$ac_ct_DUMPBIN"; then | |
4978 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4979 | else | |
4980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4981 | for as_dir in $PATH | |
4982 | do | |
4983 | IFS=$as_save_IFS | |
4984 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4985 | for ac_exec_ext in '' $ac_executable_extensions; do |
4986 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 4987 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
b0322a85 | 4988 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
4989 | break 2 |
4990 | fi | |
4991 | done | |
b0322a85 | 4992 | done |
8d138742 | 4993 | IFS=$as_save_IFS |
d9898ee8 | 4994 | |
8d138742 CE |
4995 | fi |
4996 | fi | |
4997 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4998 | if test -n "$ac_ct_DUMPBIN"; then | |
b0322a85 | 4999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
8d138742 CE |
5000 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
5001 | else | |
b0322a85 | 5002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
5003 | $as_echo "no" >&6; } |
5004 | fi | |
d9898ee8 | 5005 | |
d9898ee8 | 5006 | |
8d138742 CE |
5007 | test -n "$ac_ct_DUMPBIN" && break |
5008 | done | |
5009 | ||
5010 | if test "x$ac_ct_DUMPBIN" = x; then | |
5011 | DUMPBIN=":" | |
ac40fd9e | 5012 | else |
8d138742 CE |
5013 | case $cross_compiling:$ac_tool_warned in |
5014 | yes:) | |
b0322a85 | 5015 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
5016 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5017 | ac_tool_warned=yes ;; | |
5018 | esac | |
5019 | DUMPBIN=$ac_ct_DUMPBIN | |
ac40fd9e | 5020 | fi |
8d138742 | 5021 | fi |
d9898ee8 | 5022 | |
b0322a85 CE |
5023 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
5024 | *COFF*) | |
5025 | DUMPBIN="$DUMPBIN -symbols" | |
5026 | ;; | |
5027 | *) | |
5028 | DUMPBIN=: | |
5029 | ;; | |
5030 | esac | |
5031 | fi | |
d9898ee8 | 5032 | |
8d138742 CE |
5033 | if test "$DUMPBIN" != ":"; then |
5034 | NM="$DUMPBIN" | |
d9898ee8 | 5035 | fi |
8d138742 CE |
5036 | fi |
5037 | test -z "$NM" && NM=nm | |
d9898ee8 | 5038 | |
d9898ee8 | 5039 | |
d9898ee8 | 5040 | |
d9898ee8 | 5041 | |
d9898ee8 | 5042 | |
d9898ee8 | 5043 | |
b0322a85 | 5044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
8d138742 | 5045 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
b0322a85 | 5046 | if ${lt_cv_nm_interface+:} false; then : |
8d138742 CE |
5047 | $as_echo_n "(cached) " >&6 |
5048 | else | |
5049 | lt_cv_nm_interface="BSD nm" | |
5050 | echo "int some_variable = 0;" > conftest.$ac_ext | |
b0322a85 | 5051 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
8d138742 CE |
5052 | (eval "$ac_compile" 2>conftest.err) |
5053 | cat conftest.err >&5 | |
b0322a85 | 5054 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
8d138742 CE |
5055 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5056 | cat conftest.err >&5 | |
b0322a85 | 5057 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
8d138742 CE |
5058 | cat conftest.out >&5 |
5059 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5060 | lt_cv_nm_interface="MS dumpbin" | |
d9898ee8 | 5061 | fi |
8d138742 CE |
5062 | rm -f conftest* |
5063 | fi | |
b0322a85 | 5064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
8d138742 | 5065 | $as_echo "$lt_cv_nm_interface" >&6; } |
d9898ee8 | 5066 | |
8d138742 | 5067 | # find the maximum length of command line arguments |
b0322a85 | 5068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
8d138742 | 5069 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
b0322a85 | 5070 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
8d138742 CE |
5071 | $as_echo_n "(cached) " >&6 |
5072 | else | |
5073 | i=0 | |
5074 | teststring="ABCD" | |
d9898ee8 | 5075 | |
8d138742 CE |
5076 | case $build_os in |
5077 | msdosdjgpp*) | |
5078 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5079 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5080 | # during glob expansion). Even if it were fixed, the result of this | |
5081 | # check would be larger than it should be. | |
5082 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5083 | ;; | |
d9898ee8 | 5084 | |
8d138742 CE |
5085 | gnu*) |
5086 | # Under GNU Hurd, this test is not required because there is | |
5087 | # no limit to the length of command line arguments. | |
5088 | # Libtool will interpret -1 as no limit whatsoever | |
5089 | lt_cv_sys_max_cmd_len=-1; | |
5090 | ;; | |
d9898ee8 | 5091 | |
8d138742 CE |
5092 | cygwin* | mingw* | cegcc*) |
5093 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5094 | # about 5 minutes as the teststring grows exponentially. | |
5095 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5096 | # you end up with a "frozen" computer, even though with patience | |
5097 | # the test eventually succeeds (with a max line length of 256k). | |
5098 | # Instead, let's just punt: use the minimum linelength reported by | |
5099 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5100 | lt_cv_sys_max_cmd_len=8192; | |
5101 | ;; | |
ac40fd9e | 5102 | |
b0322a85 CE |
5103 | mint*) |
5104 | # On MiNT this can take a long time and run out of memory. | |
5105 | lt_cv_sys_max_cmd_len=8192; | |
5106 | ;; | |
5107 | ||
8d138742 CE |
5108 | amigaos*) |
5109 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5110 | # So we just punt and use a minimum line length of 8192. | |
5111 | lt_cv_sys_max_cmd_len=8192; | |
5112 | ;; | |
d9898ee8 | 5113 | |
8d138742 CE |
5114 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
5115 | # This has been around since 386BSD, at least. Likely further. | |
5116 | if test -x /sbin/sysctl; then | |
5117 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5118 | elif test -x /usr/sbin/sysctl; then | |
5119 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5120 | else | |
5121 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5122 | fi | |
5123 | # And add a safety zone | |
5124 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5125 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
d9898ee8 | 5126 | ;; |
8d138742 CE |
5127 | |
5128 | interix*) | |
5129 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5130 | lt_cv_sys_max_cmd_len=196608 | |
d9898ee8 | 5131 | ;; |
8d138742 | 5132 | |
b0322a85 CE |
5133 | os2*) |
5134 | # The test takes a long time on OS/2. | |
5135 | lt_cv_sys_max_cmd_len=8192 | |
5136 | ;; | |
5137 | ||
8d138742 CE |
5138 | osf*) |
5139 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5140 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5141 | # nice to cause kernel panics so lets avoid the loop below. | |
5142 | # First set a reasonable default. | |
5143 | lt_cv_sys_max_cmd_len=16384 | |
5144 | # | |
5145 | if test -x /sbin/sysconfig; then | |
5146 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5147 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5148 | esac | |
5149 | fi | |
d9898ee8 | 5150 | ;; |
8d138742 CE |
5151 | sco3.2v5*) |
5152 | lt_cv_sys_max_cmd_len=102400 | |
d9898ee8 | 5153 | ;; |
8d138742 CE |
5154 | sysv5* | sco5v6* | sysv4.2uw2*) |
5155 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5156 | if test -n "$kargmax"; then | |
5157 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5158 | else | |
5159 | lt_cv_sys_max_cmd_len=32768 | |
5160 | fi | |
d9898ee8 | 5161 | ;; |
8d138742 CE |
5162 | *) |
5163 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
5164 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
5165 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5166 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5167 | else | |
5168 | # Make teststring a little bigger before we do anything with it. | |
5169 | # a 1K string should be a reasonable start. | |
5170 | for i in 1 2 3 4 5 6 7 8 ; do | |
5171 | teststring=$teststring$teststring | |
5172 | done | |
5173 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5174 | # If test is not a shell built-in, we'll probably end up computing a | |
5175 | # maximum length that is only half of the actual maximum length, but | |
5176 | # we can't tell. | |
b0322a85 CE |
5177 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
5178 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
8d138742 CE |
5179 | test $i != 17 # 1/2 MB should be enough |
5180 | do | |
5181 | i=`expr $i + 1` | |
5182 | teststring=$teststring$teststring | |
5183 | done | |
5184 | # Only check the string length outside the loop. | |
5185 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5186 | teststring= | |
5187 | # Add a significant safety factor because C++ compilers can tack on | |
5188 | # massive amounts of additional arguments before passing them to the | |
5189 | # linker. It appears as though 1/2 is a usable value. | |
5190 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5191 | fi | |
d9898ee8 | 5192 | ;; |
5193 | esac | |
d9898ee8 | 5194 | |
8d138742 | 5195 | fi |
d9898ee8 | 5196 | |
8d138742 | 5197 | if test -n $lt_cv_sys_max_cmd_len ; then |
b0322a85 | 5198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
8d138742 CE |
5199 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
5200 | else | |
b0322a85 | 5201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
8d138742 | 5202 | $as_echo "none" >&6; } |
d9898ee8 | 5203 | fi |
8d138742 | 5204 | max_cmd_len=$lt_cv_sys_max_cmd_len |
d9898ee8 | 5205 | |
5206 | ||
5207 | ||
5208 | ||
d9898ee8 | 5209 | |
d9898ee8 | 5210 | |
8d138742 CE |
5211 | : ${CP="cp -f"} |
5212 | : ${MV="mv -f"} | |
5213 | : ${RM="rm -f"} | |
d9898ee8 | 5214 | |
b0322a85 | 5215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
8d138742 CE |
5216 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
5217 | # Try some XSI features | |
5218 | xsi_shell=no | |
5219 | ( _lt_dummy="a/b/c" | |
b0322a85 CE |
5220 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
5221 | = c,a/b,b/c, \ | |
8d138742 CE |
5222 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
5223 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
5224 | && xsi_shell=yes | |
b0322a85 | 5225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
8d138742 CE |
5226 | $as_echo "$xsi_shell" >&6; } |
5227 | ||
5228 | ||
b0322a85 | 5229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
8d138742 CE |
5230 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
5231 | lt_shell_append=no | |
5232 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5233 | >/dev/null 2>&1 \ | |
5234 | && lt_shell_append=yes | |
b0322a85 | 5235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
8d138742 CE |
5236 | $as_echo "$lt_shell_append" >&6; } |
5237 | ||
5238 | ||
5239 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5240 | lt_unset=unset | |
5241 | else | |
5242 | lt_unset=false | |
dd184caf | 5243 | fi |
d9898ee8 | 5244 | |
d9898ee8 | 5245 | |
8d138742 CE |
5246 | |
5247 | ||
5248 | ||
5249 | # test EBCDIC or ASCII | |
5250 | case `echo X|tr X '\101'` in | |
5251 | A) # ASCII based system | |
5252 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5253 | lt_SP2NL='tr \040 \012' | |
5254 | lt_NL2SP='tr \015\012 \040\040' | |
d9898ee8 | 5255 | ;; |
8d138742 CE |
5256 | *) # EBCDIC based system |
5257 | lt_SP2NL='tr \100 \n' | |
5258 | lt_NL2SP='tr \r\n \100\100' | |
d9898ee8 | 5259 | ;; |
8d138742 | 5260 | esac |
d9898ee8 | 5261 | |
d9898ee8 | 5262 | |
d9898ee8 | 5263 | |
d9898ee8 | 5264 | |
d9898ee8 | 5265 | |
d9898ee8 | 5266 | |
dd184caf | 5267 | |
d9898ee8 | 5268 | |
8d138742 | 5269 | |
b0322a85 CE |
5270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
5271 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
5272 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
5273 | $as_echo_n "(cached) " >&6 | |
5274 | else | |
5275 | case $host in | |
5276 | *-*-mingw* ) | |
5277 | case $build in | |
5278 | *-*-mingw* ) # actually msys | |
5279 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
5280 | ;; | |
5281 | *-*-cygwin* ) | |
5282 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
5283 | ;; | |
5284 | * ) # otherwise, assume *nix | |
5285 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
5286 | ;; | |
5287 | esac | |
5288 | ;; | |
5289 | *-*-cygwin* ) | |
5290 | case $build in | |
5291 | *-*-mingw* ) # actually msys | |
5292 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
5293 | ;; | |
5294 | *-*-cygwin* ) | |
5295 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5296 | ;; | |
5297 | * ) # otherwise, assume *nix | |
5298 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
5299 | ;; | |
5300 | esac | |
5301 | ;; | |
5302 | * ) # unhandled hosts (and "normal" native builds) | |
5303 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5304 | ;; | |
5305 | esac | |
5306 | ||
5307 | fi | |
5308 | ||
5309 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
5310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
5311 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
5312 | ||
5313 | ||
5314 | ||
5315 | ||
5316 | ||
5317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
5318 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
5319 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
5320 | $as_echo_n "(cached) " >&6 | |
5321 | else | |
5322 | #assume ordinary cross tools, or native build. | |
5323 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
5324 | case $host in | |
5325 | *-*-mingw* ) | |
5326 | case $build in | |
5327 | *-*-mingw* ) # actually msys | |
5328 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
5329 | ;; | |
5330 | esac | |
5331 | ;; | |
5332 | esac | |
5333 | ||
5334 | fi | |
5335 | ||
5336 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
5337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
5338 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
5339 | ||
5340 | ||
5341 | ||
5342 | ||
5343 | ||
5344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
8d138742 | 5345 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
b0322a85 | 5346 | if ${lt_cv_ld_reload_flag+:} false; then : |
8d138742 CE |
5347 | $as_echo_n "(cached) " >&6 |
5348 | else | |
5349 | lt_cv_ld_reload_flag='-r' | |
d9898ee8 | 5350 | fi |
b0322a85 | 5351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
8d138742 CE |
5352 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
5353 | reload_flag=$lt_cv_ld_reload_flag | |
5354 | case $reload_flag in | |
5355 | "" | " "*) ;; | |
5356 | *) reload_flag=" $reload_flag" ;; | |
5357 | esac | |
5358 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5359 | case $host_os in | |
b0322a85 CE |
5360 | cygwin* | mingw* | pw32* | cegcc*) |
5361 | if test "$GCC" != yes; then | |
5362 | reload_cmds=false | |
5363 | fi | |
5364 | ;; | |
8d138742 CE |
5365 | darwin*) |
5366 | if test "$GCC" = yes; then | |
5367 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5368 | else | |
5369 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5370 | fi | |
5371 | ;; | |
5372 | esac | |
d9898ee8 | 5373 | |
5374 | ||
d9898ee8 | 5375 | |
d9898ee8 | 5376 | |
5377 | ||
5378 | ||
d9898ee8 | 5379 | |
d9898ee8 | 5380 | |
8d138742 CE |
5381 | |
5382 | if test -n "$ac_tool_prefix"; then | |
5383 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5384 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
b0322a85 | 5385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5386 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5387 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
8d138742 | 5388 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5389 | else |
8d138742 CE |
5390 | if test -n "$OBJDUMP"; then |
5391 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5392 | else | |
5393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5394 | for as_dir in $PATH | |
5395 | do | |
5396 | IFS=$as_save_IFS | |
5397 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5398 | for ac_exec_ext in '' $ac_executable_extensions; do |
5399 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5400 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
b0322a85 | 5401 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5402 | break 2 |
5403 | fi | |
5404 | done | |
b0322a85 | 5405 | done |
8d138742 | 5406 | IFS=$as_save_IFS |
d9898ee8 | 5407 | |
8d138742 CE |
5408 | fi |
5409 | fi | |
5410 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5411 | if test -n "$OBJDUMP"; then | |
b0322a85 | 5412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
8d138742 CE |
5413 | $as_echo "$OBJDUMP" >&6; } |
5414 | else | |
b0322a85 | 5415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5416 | $as_echo "no" >&6; } |
d9898ee8 | 5417 | fi |
dd184caf | 5418 | |
d9898ee8 | 5419 | |
8d138742 CE |
5420 | fi |
5421 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5422 | ac_ct_OBJDUMP=$OBJDUMP | |
5423 | # Extract the first word of "objdump", so it can be a program name with args. | |
5424 | set dummy objdump; ac_word=$2 | |
b0322a85 | 5425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5426 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5427 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
8d138742 CE |
5428 | $as_echo_n "(cached) " >&6 |
5429 | else | |
5430 | if test -n "$ac_ct_OBJDUMP"; then | |
5431 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5432 | else | |
5433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5434 | for as_dir in $PATH | |
5435 | do | |
5436 | IFS=$as_save_IFS | |
5437 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5438 | for ac_exec_ext in '' $ac_executable_extensions; do |
5439 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5440 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
b0322a85 | 5441 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5442 | break 2 |
5443 | fi | |
5444 | done | |
b0322a85 | 5445 | done |
8d138742 | 5446 | IFS=$as_save_IFS |
d9898ee8 | 5447 | |
8d138742 CE |
5448 | fi |
5449 | fi | |
5450 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5451 | if test -n "$ac_ct_OBJDUMP"; then | |
b0322a85 | 5452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
8d138742 | 5453 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
d9898ee8 | 5454 | else |
b0322a85 | 5455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5456 | $as_echo "no" >&6; } |
d9898ee8 | 5457 | fi |
d9898ee8 | 5458 | |
8d138742 CE |
5459 | if test "x$ac_ct_OBJDUMP" = x; then |
5460 | OBJDUMP="false" | |
5461 | else | |
5462 | case $cross_compiling:$ac_tool_warned in | |
5463 | yes:) | |
b0322a85 | 5464 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
5465 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5466 | ac_tool_warned=yes ;; | |
5467 | esac | |
5468 | OBJDUMP=$ac_ct_OBJDUMP | |
5469 | fi | |
5470 | else | |
5471 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
d9898ee8 | 5472 | fi |
5473 | ||
8d138742 | 5474 | test -z "$OBJDUMP" && OBJDUMP=objdump |
d9898ee8 | 5475 | |
d9898ee8 | 5476 | |
d9898ee8 | 5477 | |
d9898ee8 | 5478 | |
d9898ee8 | 5479 | |
dd184caf | 5480 | |
5481 | ||
d9898ee8 | 5482 | |
d9898ee8 | 5483 | |
b0322a85 | 5484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
8d138742 | 5485 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
b0322a85 | 5486 | if ${lt_cv_deplibs_check_method+:} false; then : |
8d138742 CE |
5487 | $as_echo_n "(cached) " >&6 |
5488 | else | |
5489 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5490 | lt_cv_file_magic_test_file= | |
5491 | lt_cv_deplibs_check_method='unknown' | |
5492 | # Need to set the preceding variable on all platforms that support | |
5493 | # interlibrary dependencies. | |
5494 | # 'none' -- dependencies not supported. | |
5495 | # `unknown' -- same as none, but documents that we really don't know. | |
5496 | # 'pass_all' -- all dependencies passed with no checks. | |
5497 | # 'test_compile' -- check by making test program. | |
5498 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5499 | # which responds to the $file_magic_cmd with a given extended regex. | |
5500 | # If you have `file' or equivalent on your system and you're not sure | |
5501 | # whether `pass_all' will *always* work, you probably want this one. | |
d9898ee8 | 5502 | |
8d138742 CE |
5503 | case $host_os in |
5504 | aix[4-9]*) | |
5505 | lt_cv_deplibs_check_method=pass_all | |
5506 | ;; | |
d9898ee8 | 5507 | |
8d138742 CE |
5508 | beos*) |
5509 | lt_cv_deplibs_check_method=pass_all | |
5510 | ;; | |
d9898ee8 | 5511 | |
8d138742 CE |
5512 | bsdi[45]*) |
5513 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5514 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5515 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5516 | ;; | |
d9898ee8 | 5517 | |
8d138742 CE |
5518 | cygwin*) |
5519 | # func_win32_libid is a shell function defined in ltmain.sh | |
5520 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5521 | lt_cv_file_magic_cmd='func_win32_libid' | |
5522 | ;; | |
d9898ee8 | 5523 | |
8d138742 CE |
5524 | mingw* | pw32*) |
5525 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5526 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5527 | # unless we find 'file', for example because we are cross-compiling. | |
b0322a85 CE |
5528 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
5529 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
8d138742 CE |
5530 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5531 | lt_cv_file_magic_cmd='func_win32_libid' | |
5532 | else | |
b0322a85 CE |
5533 | # Keep this pattern in sync with the one in func_win32_libid. |
5534 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
8d138742 CE |
5535 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
5536 | fi | |
5537 | ;; | |
d9898ee8 | 5538 | |
b0322a85 | 5539 | cegcc*) |
8d138742 CE |
5540 | # use the weaker test based on 'objdump'. See mingw*. |
5541 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5542 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5543 | ;; | |
d9898ee8 | 5544 | |
8d138742 CE |
5545 | darwin* | rhapsody*) |
5546 | lt_cv_deplibs_check_method=pass_all | |
5547 | ;; | |
d9898ee8 | 5548 | |
8d138742 CE |
5549 | freebsd* | dragonfly*) |
5550 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5551 | case $host_cpu in | |
5552 | i*86 ) | |
5553 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5554 | # Let's accept both of them until this is cleared up. | |
5555 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5556 | lt_cv_file_magic_cmd=/usr/bin/file | |
5557 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5558 | ;; | |
5559 | esac | |
5560 | else | |
5561 | lt_cv_deplibs_check_method=pass_all | |
5562 | fi | |
5563 | ;; | |
d9898ee8 | 5564 | |
8d138742 CE |
5565 | gnu*) |
5566 | lt_cv_deplibs_check_method=pass_all | |
5567 | ;; | |
d9898ee8 | 5568 | |
b0322a85 CE |
5569 | haiku*) |
5570 | lt_cv_deplibs_check_method=pass_all | |
5571 | ;; | |
5572 | ||
8d138742 CE |
5573 | hpux10.20* | hpux11*) |
5574 | lt_cv_file_magic_cmd=/usr/bin/file | |
5575 | case $host_cpu in | |
5576 | ia64*) | |
5577 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5578 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5579 | ;; | |
5580 | hppa*64*) | |
b0322a85 | 5581 | 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]' |
8d138742 CE |
5582 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
5583 | ;; | |
5584 | *) | |
b0322a85 | 5585 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
8d138742 CE |
5586 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
5587 | ;; | |
5588 | esac | |
5589 | ;; | |
d9898ee8 | 5590 | |
8d138742 CE |
5591 | interix[3-9]*) |
5592 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5593 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5594 | ;; | |
d9898ee8 | 5595 | |
8d138742 CE |
5596 | irix5* | irix6* | nonstopux*) |
5597 | case $LD in | |
5598 | *-32|*"-32 ") libmagic=32-bit;; | |
5599 | *-n32|*"-n32 ") libmagic=N32;; | |
5600 | *-64|*"-64 ") libmagic=64-bit;; | |
5601 | *) libmagic=never-match;; | |
5602 | esac | |
5603 | lt_cv_deplibs_check_method=pass_all | |
5604 | ;; | |
dd184caf | 5605 | |
b0322a85 CE |
5606 | # This must be glibc/ELF. |
5607 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
8d138742 CE |
5608 | lt_cv_deplibs_check_method=pass_all |
5609 | ;; | |
d9898ee8 | 5610 | |
8d138742 CE |
5611 | netbsd*) |
5612 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5613 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5614 | else | |
5615 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5616 | fi | |
5617 | ;; | |
d9898ee8 | 5618 | |
8d138742 CE |
5619 | newos6*) |
5620 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5621 | lt_cv_file_magic_cmd=/usr/bin/file | |
5622 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5623 | ;; | |
d9898ee8 | 5624 | |
8d138742 CE |
5625 | *nto* | *qnx*) |
5626 | lt_cv_deplibs_check_method=pass_all | |
5627 | ;; | |
d9898ee8 | 5628 | |
8d138742 CE |
5629 | openbsd*) |
5630 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5631 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5632 | else | |
5633 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5634 | fi | |
5635 | ;; | |
d9898ee8 | 5636 | |
8d138742 CE |
5637 | osf3* | osf4* | osf5*) |
5638 | lt_cv_deplibs_check_method=pass_all | |
5639 | ;; | |
d9898ee8 | 5640 | |
8d138742 CE |
5641 | rdos*) |
5642 | lt_cv_deplibs_check_method=pass_all | |
5643 | ;; | |
dd184caf | 5644 | |
8d138742 CE |
5645 | solaris*) |
5646 | lt_cv_deplibs_check_method=pass_all | |
5647 | ;; | |
d9898ee8 | 5648 | |
8d138742 CE |
5649 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
5650 | lt_cv_deplibs_check_method=pass_all | |
5651 | ;; | |
d9898ee8 | 5652 | |
8d138742 CE |
5653 | sysv4 | sysv4.3*) |
5654 | case $host_vendor in | |
5655 | motorola) | |
5656 | 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]' | |
5657 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
d9898ee8 | 5658 | ;; |
8d138742 CE |
5659 | ncr) |
5660 | lt_cv_deplibs_check_method=pass_all | |
5661 | ;; | |
5662 | sequent) | |
5663 | lt_cv_file_magic_cmd='/bin/file' | |
5664 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5665 | ;; | |
5666 | sni) | |
5667 | lt_cv_file_magic_cmd='/bin/file' | |
5668 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5669 | lt_cv_file_magic_test_file=/lib/libc.so | |
5670 | ;; | |
5671 | siemens) | |
5672 | lt_cv_deplibs_check_method=pass_all | |
d9898ee8 | 5673 | ;; |
8d138742 CE |
5674 | pc) |
5675 | lt_cv_deplibs_check_method=pass_all | |
5676 | ;; | |
5677 | esac | |
5678 | ;; | |
5679 | ||
5680 | tpf*) | |
5681 | lt_cv_deplibs_check_method=pass_all | |
5682 | ;; | |
d9898ee8 | 5683 | esac |
d9898ee8 | 5684 | |
5685 | fi | |
b0322a85 | 5686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
8d138742 | 5687 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
b0322a85 CE |
5688 | |
5689 | file_magic_glob= | |
5690 | want_nocaseglob=no | |
5691 | if test "$build" = "$host"; then | |
5692 | case $host_os in | |
5693 | mingw* | pw32*) | |
5694 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
5695 | want_nocaseglob=yes | |
5696 | else | |
5697 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
5698 | fi | |
5699 | ;; | |
5700 | esac | |
5701 | fi | |
5702 | ||
8d138742 CE |
5703 | file_magic_cmd=$lt_cv_file_magic_cmd |
5704 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5705 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
d9898ee8 | 5706 | |
d9898ee8 | 5707 | |
d9898ee8 | 5708 | |
8d138742 CE |
5709 | |
5710 | ||
5711 | ||
5712 | ||
5713 | ||
5714 | ||
5715 | ||
5716 | ||
5717 | ||
b0322a85 CE |
5718 | |
5719 | ||
5720 | ||
5721 | ||
5722 | ||
5723 | ||
5724 | ||
5725 | ||
5726 | ||
5727 | ||
5728 | if test -n "$ac_tool_prefix"; then | |
5729 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
5730 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
5731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5732 | $as_echo_n "checking for $ac_word... " >&6; } | |
5733 | if ${ac_cv_prog_DLLTOOL+:} false; then : | |
5734 | $as_echo_n "(cached) " >&6 | |
5735 | else | |
5736 | if test -n "$DLLTOOL"; then | |
5737 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
5738 | else | |
5739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5740 | for as_dir in $PATH | |
5741 | do | |
5742 | IFS=$as_save_IFS | |
5743 | test -z "$as_dir" && as_dir=. | |
5744 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5745 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5746 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
5747 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5748 | break 2 | |
5749 | fi | |
5750 | done | |
5751 | done | |
5752 | IFS=$as_save_IFS | |
5753 | ||
5754 | fi | |
5755 | fi | |
5756 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
5757 | if test -n "$DLLTOOL"; then | |
5758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
5759 | $as_echo "$DLLTOOL" >&6; } | |
5760 | else | |
5761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5762 | $as_echo "no" >&6; } | |
5763 | fi | |
5764 | ||
5765 | ||
5766 | fi | |
5767 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
5768 | ac_ct_DLLTOOL=$DLLTOOL | |
5769 | # Extract the first word of "dlltool", so it can be a program name with args. | |
5770 | set dummy dlltool; ac_word=$2 | |
5771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5772 | $as_echo_n "checking for $ac_word... " >&6; } | |
5773 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
5774 | $as_echo_n "(cached) " >&6 | |
5775 | else | |
5776 | if test -n "$ac_ct_DLLTOOL"; then | |
5777 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
5778 | else | |
5779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5780 | for as_dir in $PATH | |
5781 | do | |
5782 | IFS=$as_save_IFS | |
5783 | test -z "$as_dir" && as_dir=. | |
5784 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5785 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5786 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
5787 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5788 | break 2 | |
5789 | fi | |
5790 | done | |
5791 | done | |
5792 | IFS=$as_save_IFS | |
5793 | ||
5794 | fi | |
5795 | fi | |
5796 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
5797 | if test -n "$ac_ct_DLLTOOL"; then | |
5798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
5799 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
5800 | else | |
5801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5802 | $as_echo "no" >&6; } | |
5803 | fi | |
5804 | ||
5805 | if test "x$ac_ct_DLLTOOL" = x; then | |
5806 | DLLTOOL="false" | |
5807 | else | |
5808 | case $cross_compiling:$ac_tool_warned in | |
5809 | yes:) | |
5810 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5811 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5812 | ac_tool_warned=yes ;; | |
5813 | esac | |
5814 | DLLTOOL=$ac_ct_DLLTOOL | |
5815 | fi | |
5816 | else | |
5817 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
5818 | fi | |
5819 | ||
5820 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
5821 | ||
5822 | ||
5823 | ||
5824 | ||
5825 | ||
5826 | ||
5827 | ||
5828 | ||
5829 | ||
5830 | ||
5831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
5832 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
5833 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
5834 | $as_echo_n "(cached) " >&6 | |
5835 | else | |
5836 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
5837 | ||
5838 | case $host_os in | |
5839 | cygwin* | mingw* | pw32* | cegcc*) | |
5840 | # two different shell functions defined in ltmain.sh | |
5841 | # decide which to use based on capabilities of $DLLTOOL | |
5842 | case `$DLLTOOL --help 2>&1` in | |
5843 | *--identify-strict*) | |
5844 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
5845 | ;; | |
5846 | *) | |
5847 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
5848 | ;; | |
5849 | esac | |
5850 | ;; | |
5851 | *) | |
5852 | # fallback: assume linklib IS sharedlib | |
5853 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" | |
5854 | ;; | |
5855 | esac | |
5856 | ||
5857 | fi | |
5858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
5859 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
5860 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
5861 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
5862 | ||
5863 | ||
5864 | ||
5865 | ||
5866 | ||
5867 | ||
5868 | ||
5869 | ||
8d138742 | 5870 | if test -n "$ac_tool_prefix"; then |
b0322a85 CE |
5871 | for ac_prog in ar |
5872 | do | |
5873 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5874 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 5876 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5877 | if ${ac_cv_prog_AR+:} false; then : |
8d138742 | 5878 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5879 | else |
8d138742 CE |
5880 | if test -n "$AR"; then |
5881 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
d9898ee8 | 5882 | else |
5883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5884 | for as_dir in $PATH | |
5885 | do | |
5886 | IFS=$as_save_IFS | |
5887 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5888 | for ac_exec_ext in '' $ac_executable_extensions; do |
5889 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5890 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
5891 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 5892 | break 2 |
5893 | fi | |
5894 | done | |
b0322a85 | 5895 | done |
dd184caf | 5896 | IFS=$as_save_IFS |
d9898ee8 | 5897 | |
5898 | fi | |
5899 | fi | |
8d138742 CE |
5900 | AR=$ac_cv_prog_AR |
5901 | if test -n "$AR"; then | |
b0322a85 | 5902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8d138742 | 5903 | $as_echo "$AR" >&6; } |
d9898ee8 | 5904 | else |
b0322a85 | 5905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5906 | $as_echo "no" >&6; } |
d9898ee8 | 5907 | fi |
5908 | ||
dd184caf | 5909 | |
b0322a85 CE |
5910 | test -n "$AR" && break |
5911 | done | |
d9898ee8 | 5912 | fi |
b0322a85 | 5913 | if test -z "$AR"; then |
8d138742 | 5914 | ac_ct_AR=$AR |
b0322a85 CE |
5915 | for ac_prog in ar |
5916 | do | |
5917 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5918 | set dummy $ac_prog; ac_word=$2 | |
5919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 5920 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5921 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
8d138742 | 5922 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5923 | else |
8d138742 CE |
5924 | if test -n "$ac_ct_AR"; then |
5925 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
d9898ee8 | 5926 | else |
5927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5928 | for as_dir in $PATH | |
5929 | do | |
5930 | IFS=$as_save_IFS | |
5931 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5932 | for ac_exec_ext in '' $ac_executable_extensions; do |
5933 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5934 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
5935 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 5936 | break 2 |
5937 | fi | |
5938 | done | |
b0322a85 | 5939 | done |
dd184caf | 5940 | IFS=$as_save_IFS |
d9898ee8 | 5941 | |
5942 | fi | |
5943 | fi | |
8d138742 CE |
5944 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5945 | if test -n "$ac_ct_AR"; then | |
b0322a85 | 5946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
8d138742 | 5947 | $as_echo "$ac_ct_AR" >&6; } |
d9898ee8 | 5948 | else |
b0322a85 | 5949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5950 | $as_echo "no" >&6; } |
d9898ee8 | 5951 | fi |
5952 | ||
b0322a85 CE |
5953 | |
5954 | test -n "$ac_ct_AR" && break | |
5955 | done | |
5956 | ||
8d138742 CE |
5957 | if test "x$ac_ct_AR" = x; then |
5958 | AR="false" | |
dd184caf | 5959 | else |
5960 | case $cross_compiling:$ac_tool_warned in | |
5961 | yes:) | |
b0322a85 | 5962 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 5963 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 5964 | ac_tool_warned=yes ;; |
5965 | esac | |
8d138742 | 5966 | AR=$ac_ct_AR |
dd184caf | 5967 | fi |
8d138742 | 5968 | fi |
d9898ee8 | 5969 | |
b0322a85 CE |
5970 | : ${AR=ar} |
5971 | : ${AR_FLAGS=cru} | |
d9898ee8 | 5972 | |
d9898ee8 | 5973 | |
dd184caf | 5974 | |
d9898ee8 | 5975 | |
d9898ee8 | 5976 | |
d9898ee8 | 5977 | |
dd184caf | 5978 | |
dd184caf | 5979 | |
d9898ee8 | 5980 | |
dd184caf | 5981 | |
dd184caf | 5982 | |
b0322a85 CE |
5983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
5984 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
5985 | if ${lt_cv_ar_at_file+:} false; then : | |
5986 | $as_echo_n "(cached) " >&6 | |
5987 | else | |
5988 | lt_cv_ar_at_file=no | |
5989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5990 | /* end confdefs.h. */ | |
5991 | ||
5992 | int | |
5993 | main () | |
5994 | { | |
5995 | ||
5996 | ; | |
5997 | return 0; | |
5998 | } | |
5999 | _ACEOF | |
6000 | if ac_fn_c_try_compile "$LINENO"; then : | |
6001 | echo conftest.$ac_objext > conftest.lst | |
6002 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
6003 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6004 | (eval $lt_ar_try) 2>&5 | |
6005 | ac_status=$? | |
6006 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6007 | test $ac_status = 0; } | |
6008 | if test "$ac_status" -eq 0; then | |
6009 | # Ensure the archiver fails upon bogus file names. | |
6010 | rm -f conftest.$ac_objext libconftest.a | |
6011 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6012 | (eval $lt_ar_try) 2>&5 | |
6013 | ac_status=$? | |
6014 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6015 | test $ac_status = 0; } | |
6016 | if test "$ac_status" -ne 0; then | |
6017 | lt_cv_ar_at_file=@ | |
6018 | fi | |
6019 | fi | |
6020 | rm -f conftest.* libconftest.a | |
6021 | ||
6022 | fi | |
6023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6024 | ||
6025 | fi | |
6026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
6027 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
6028 | ||
6029 | if test "x$lt_cv_ar_at_file" = xno; then | |
6030 | archiver_list_spec= | |
6031 | else | |
6032 | archiver_list_spec=$lt_cv_ar_at_file | |
6033 | fi | |
6034 | ||
6035 | ||
6036 | ||
6037 | ||
6038 | ||
6039 | ||
6040 | ||
8d138742 CE |
6041 | if test -n "$ac_tool_prefix"; then |
6042 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6043 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
b0322a85 | 6044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6045 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6046 | if ${ac_cv_prog_STRIP+:} false; then : |
8d138742 | 6047 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6048 | else |
8d138742 CE |
6049 | if test -n "$STRIP"; then |
6050 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6051 | else | |
6052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6053 | for as_dir in $PATH | |
6054 | do | |
6055 | IFS=$as_save_IFS | |
6056 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6057 | for ac_exec_ext in '' $ac_executable_extensions; do |
6058 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6059 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
b0322a85 | 6060 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6061 | break 2 |
6062 | fi | |
6063 | done | |
b0322a85 | 6064 | done |
8d138742 | 6065 | IFS=$as_save_IFS |
dd184caf | 6066 | |
d9898ee8 | 6067 | fi |
8d138742 CE |
6068 | fi |
6069 | STRIP=$ac_cv_prog_STRIP | |
6070 | if test -n "$STRIP"; then | |
b0322a85 | 6071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8d138742 CE |
6072 | $as_echo "$STRIP" >&6; } |
6073 | else | |
b0322a85 | 6074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
6075 | $as_echo "no" >&6; } |
6076 | fi | |
6077 | ||
dd184caf | 6078 | |
d9898ee8 | 6079 | fi |
8d138742 CE |
6080 | if test -z "$ac_cv_prog_STRIP"; then |
6081 | ac_ct_STRIP=$STRIP | |
6082 | # Extract the first word of "strip", so it can be a program name with args. | |
6083 | set dummy strip; ac_word=$2 | |
b0322a85 | 6084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6085 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6086 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
8d138742 CE |
6087 | $as_echo_n "(cached) " >&6 |
6088 | else | |
6089 | if test -n "$ac_ct_STRIP"; then | |
6090 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6091 | else | |
6092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6093 | for as_dir in $PATH | |
6094 | do | |
6095 | IFS=$as_save_IFS | |
6096 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6097 | for ac_exec_ext in '' $ac_executable_extensions; do |
6098 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6099 | ac_cv_prog_ac_ct_STRIP="strip" |
b0322a85 | 6100 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6101 | break 2 |
6102 | fi | |
6103 | done | |
b0322a85 | 6104 | done |
8d138742 | 6105 | IFS=$as_save_IFS |
d9898ee8 | 6106 | |
8d138742 CE |
6107 | fi |
6108 | fi | |
6109 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6110 | if test -n "$ac_ct_STRIP"; then | |
b0322a85 | 6111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
8d138742 CE |
6112 | $as_echo "$ac_ct_STRIP" >&6; } |
6113 | else | |
b0322a85 | 6114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6115 | $as_echo "no" >&6; } |
dd184caf | 6116 | fi |
6117 | ||
8d138742 CE |
6118 | if test "x$ac_ct_STRIP" = x; then |
6119 | STRIP=":" | |
dd184caf | 6120 | else |
8d138742 CE |
6121 | case $cross_compiling:$ac_tool_warned in |
6122 | yes:) | |
b0322a85 | 6123 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
6124 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6125 | ac_tool_warned=yes ;; | |
6126 | esac | |
6127 | STRIP=$ac_ct_STRIP | |
dd184caf | 6128 | fi |
6129 | else | |
8d138742 | 6130 | STRIP="$ac_cv_prog_STRIP" |
dd184caf | 6131 | fi |
d9898ee8 | 6132 | |
8d138742 | 6133 | test -z "$STRIP" && STRIP=: |
d9898ee8 | 6134 | |
d9898ee8 | 6135 | |
d9898ee8 | 6136 | |
d9898ee8 | 6137 | |
8d138742 CE |
6138 | |
6139 | ||
6140 | if test -n "$ac_tool_prefix"; then | |
6141 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6142 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
b0322a85 | 6143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6144 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6145 | if ${ac_cv_prog_RANLIB+:} false; then : |
8d138742 | 6146 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6147 | else |
8d138742 CE |
6148 | if test -n "$RANLIB"; then |
6149 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6150 | else | |
6151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6152 | for as_dir in $PATH | |
6153 | do | |
6154 | IFS=$as_save_IFS | |
6155 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6156 | for ac_exec_ext in '' $ac_executable_extensions; do |
6157 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6158 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
b0322a85 | 6159 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6160 | break 2 |
6161 | fi | |
6162 | done | |
b0322a85 | 6163 | done |
8d138742 | 6164 | IFS=$as_save_IFS |
d9898ee8 | 6165 | |
6166 | fi | |
8d138742 CE |
6167 | fi |
6168 | RANLIB=$ac_cv_prog_RANLIB | |
6169 | if test -n "$RANLIB"; then | |
b0322a85 | 6170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8d138742 | 6171 | $as_echo "$RANLIB" >&6; } |
d9898ee8 | 6172 | else |
b0322a85 | 6173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6174 | $as_echo "no" >&6; } |
d9898ee8 | 6175 | fi |
6176 | ||
6177 | ||
8d138742 CE |
6178 | fi |
6179 | if test -z "$ac_cv_prog_RANLIB"; then | |
6180 | ac_ct_RANLIB=$RANLIB | |
6181 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6182 | set dummy ranlib; ac_word=$2 | |
b0322a85 | 6183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6184 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6185 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
8d138742 | 6186 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6187 | else |
8d138742 CE |
6188 | if test -n "$ac_ct_RANLIB"; then |
6189 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
d9898ee8 | 6190 | else |
8d138742 CE |
6191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6192 | for as_dir in $PATH | |
6193 | do | |
6194 | IFS=$as_save_IFS | |
6195 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6196 | for ac_exec_ext in '' $ac_executable_extensions; do |
6197 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6198 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
b0322a85 | 6199 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6200 | break 2 |
6201 | fi | |
6202 | done | |
b0322a85 | 6203 | done |
8d138742 | 6204 | IFS=$as_save_IFS |
d9898ee8 | 6205 | |
8d138742 CE |
6206 | fi |
6207 | fi | |
6208 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6209 | if test -n "$ac_ct_RANLIB"; then | |
b0322a85 | 6210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
8d138742 CE |
6211 | $as_echo "$ac_ct_RANLIB" >&6; } |
6212 | else | |
b0322a85 | 6213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6214 | $as_echo "no" >&6; } |
d9898ee8 | 6215 | fi |
dd184caf | 6216 | |
8d138742 CE |
6217 | if test "x$ac_ct_RANLIB" = x; then |
6218 | RANLIB=":" | |
6219 | else | |
6220 | case $cross_compiling:$ac_tool_warned in | |
6221 | yes:) | |
b0322a85 | 6222 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
6223 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6224 | ac_tool_warned=yes ;; | |
dd184caf | 6225 | esac |
8d138742 CE |
6226 | RANLIB=$ac_ct_RANLIB |
6227 | fi | |
d9898ee8 | 6228 | else |
8d138742 | 6229 | RANLIB="$ac_cv_prog_RANLIB" |
d9898ee8 | 6230 | fi |
dd184caf | 6231 | |
8d138742 | 6232 | test -z "$RANLIB" && RANLIB=: |
d9898ee8 | 6233 | |
d9898ee8 | 6234 | |
d9898ee8 | 6235 | |
d9898ee8 | 6236 | |
dd184caf | 6237 | |
d9898ee8 | 6238 | |
8d138742 CE |
6239 | # Determine commands to create old-style static archives. |
6240 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
6241 | old_postinstall_cmds='chmod 644 $oldlib' | |
6242 | old_postuninstall_cmds= | |
d9898ee8 | 6243 | |
8d138742 CE |
6244 | if test -n "$RANLIB"; then |
6245 | case $host_os in | |
6246 | openbsd*) | |
b0322a85 | 6247 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
8d138742 CE |
6248 | ;; |
6249 | *) | |
b0322a85 | 6250 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
8d138742 CE |
6251 | ;; |
6252 | esac | |
b0322a85 | 6253 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
d9898ee8 | 6254 | fi |
dd184caf | 6255 | |
b0322a85 CE |
6256 | case $host_os in |
6257 | darwin*) | |
6258 | lock_old_archive_extraction=yes ;; | |
6259 | *) | |
6260 | lock_old_archive_extraction=no ;; | |
6261 | esac | |
6262 | ||
6263 | ||
6264 | ||
6265 | ||
6266 | ||
6267 | ||
d9898ee8 | 6268 | |
d9898ee8 | 6269 | |
d9898ee8 | 6270 | |
d9898ee8 | 6271 | |
6272 | ||
d9898ee8 | 6273 | |
d9898ee8 | 6274 | |
dd184caf | 6275 | |
d9898ee8 | 6276 | |
d9898ee8 | 6277 | |
dd184caf | 6278 | |
d9898ee8 | 6279 | |
d9898ee8 | 6280 | |
6281 | ||
d9898ee8 | 6282 | |
d9898ee8 | 6283 | |
d9898ee8 | 6284 | |
dd184caf | 6285 | |
d9898ee8 | 6286 | |
d9898ee8 | 6287 | |
6288 | ||
6289 | ||
d9898ee8 | 6290 | |
d9898ee8 | 6291 | |
d9898ee8 | 6292 | |
d9898ee8 | 6293 | |
d9898ee8 | 6294 | |
d9898ee8 | 6295 | |
d9898ee8 | 6296 | |
d9898ee8 | 6297 | |
d9898ee8 | 6298 | |
d9898ee8 | 6299 | |
d9898ee8 | 6300 | |
8d138742 CE |
6301 | # If no C compiler was specified, use CC. |
6302 | LTCC=${LTCC-"$CC"} | |
d9898ee8 | 6303 | |
8d138742 CE |
6304 | # If no C compiler flags were specified, use CFLAGS. |
6305 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d9898ee8 | 6306 | |
8d138742 CE |
6307 | # Allow CC to be a program name with arguments. |
6308 | compiler=$CC | |
d9898ee8 | 6309 | |
ac40fd9e | 6310 | |
d9898ee8 | 6311 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
b0322a85 | 6312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
8d138742 | 6313 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
b0322a85 | 6314 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
8d138742 | 6315 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6316 | else |
6317 | ||
6318 | # These are sane defaults that work on at least a few old systems. | |
6319 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6320 | ||
6321 | # Character class describing NM global symbol codes. | |
6322 | symcode='[BCDEGRST]' | |
6323 | ||
6324 | # Regexp to match symbols that can be accessed directly from C. | |
6325 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6326 | ||
d9898ee8 | 6327 | # Define system-specific variables. |
6328 | case $host_os in | |
6329 | aix*) | |
6330 | symcode='[BCDT]' | |
6331 | ;; | |
8d138742 | 6332 | cygwin* | mingw* | pw32* | cegcc*) |
d9898ee8 | 6333 | symcode='[ABCDGISTW]' |
6334 | ;; | |
8d138742 | 6335 | hpux*) |
d9898ee8 | 6336 | if test "$host_cpu" = ia64; then |
6337 | symcode='[ABCDEGRST]' | |
6338 | fi | |
d9898ee8 | 6339 | ;; |
6340 | irix* | nonstopux*) | |
6341 | symcode='[BCDEGRST]' | |
6342 | ;; | |
6343 | osf*) | |
6344 | symcode='[BCDEGQRST]' | |
6345 | ;; | |
6346 | solaris*) | |
6347 | symcode='[BDRT]' | |
6348 | ;; | |
6349 | sco3.2v5*) | |
6350 | symcode='[DT]' | |
6351 | ;; | |
6352 | sysv4.2uw2*) | |
6353 | symcode='[DT]' | |
6354 | ;; | |
6355 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6356 | symcode='[ABDT]' | |
6357 | ;; | |
6358 | sysv4) | |
6359 | symcode='[DFNSTU]' | |
6360 | ;; | |
6361 | esac | |
6362 | ||
8d138742 CE |
6363 | # If we're using GNU nm, then use its standard symbol codes. |
6364 | case `$NM -V 2>&1` in | |
6365 | *GNU* | *'with BFD'*) | |
6366 | symcode='[ABCDGIRSTW]' ;; | |
6367 | esac | |
6368 | ||
6369 | # Transform an extracted symbol line into a proper C declaration. | |
6370 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6371 | # so use this general approach. | |
6372 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
6373 | ||
6374 | # Transform an extracted symbol line into symbol name and symbol address | |
b0322a85 CE |
6375 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
6376 | 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'" | |
8d138742 | 6377 | |
d9898ee8 | 6378 | # Handle CRLF in mingw tool chain |
6379 | opt_cr= | |
6380 | case $build_os in | |
6381 | mingw*) | |
8d138742 | 6382 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
d9898ee8 | 6383 | ;; |
6384 | esac | |
6385 | ||
8d138742 | 6386 | # Try without a prefix underscore, then with it. |
d9898ee8 | 6387 | for ac_symprfx in "" "_"; do |
6388 | ||
6389 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6390 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6391 | ||
6392 | # Write the raw and C identifiers. | |
8d138742 CE |
6393 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
6394 | # Fake it for dumpbin and say T for any non-static function | |
6395 | # and D for any global variable. | |
6396 | # Also find C++ and __fastcall symbols from MSVC++, | |
6397 | # which start with @ or ?. | |
6398 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6399 | " {last_section=section; section=\$ 3};"\ | |
b0322a85 | 6400 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
8d138742 CE |
6401 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
6402 | " \$ 0!~/External *\|/{next};"\ | |
6403 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6404 | " {if(hide[section]) next};"\ | |
6405 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6406 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6407 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6408 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6409 | " ' prfx=^$ac_symprfx" | |
6410 | else | |
6411 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6412 | fi | |
b0322a85 | 6413 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
d9898ee8 | 6414 | |
6415 | # Check to see that the pipe works correctly. | |
6416 | pipe_works=no | |
6417 | ||
6418 | rm -f conftest* | |
8d138742 | 6419 | cat > conftest.$ac_ext <<_LT_EOF |
d9898ee8 | 6420 | #ifdef __cplusplus |
6421 | extern "C" { | |
6422 | #endif | |
6423 | char nm_test_var; | |
8d138742 CE |
6424 | void nm_test_func(void); |
6425 | void nm_test_func(void){} | |
d9898ee8 | 6426 | #ifdef __cplusplus |
6427 | } | |
6428 | #endif | |
6429 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
8d138742 | 6430 | _LT_EOF |
d9898ee8 | 6431 | |
b0322a85 | 6432 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
d9898ee8 | 6433 | (eval $ac_compile) 2>&5 |
6434 | ac_status=$? | |
b0322a85 CE |
6435 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6436 | test $ac_status = 0; }; then | |
d9898ee8 | 6437 | # Now try to grab the symbols. |
6438 | nlist=conftest.nm | |
b0322a85 CE |
6439 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
6440 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
d9898ee8 | 6441 | ac_status=$? |
b0322a85 CE |
6442 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6443 | test $ac_status = 0; } && test -s "$nlist"; then | |
d9898ee8 | 6444 | # Try sorting and uniquifying the output. |
6445 | if sort "$nlist" | uniq > "$nlist"T; then | |
6446 | mv -f "$nlist"T "$nlist" | |
6447 | else | |
6448 | rm -f "$nlist"T | |
6449 | fi | |
6450 | ||
6451 | # Make sure that we snagged all the symbols we need. | |
8d138742 CE |
6452 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
6453 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6454 | cat <<_LT_EOF > conftest.$ac_ext | |
b0322a85 CE |
6455 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
6456 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | |
6457 | /* DATA imports from DLLs on WIN32 con't be const, because runtime | |
6458 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
6459 | # define LT_DLSYM_CONST | |
6460 | #elif defined(__osf__) | |
6461 | /* This system does not cope well with relocations in const data. */ | |
6462 | # define LT_DLSYM_CONST | |
6463 | #else | |
6464 | # define LT_DLSYM_CONST const | |
6465 | #endif | |
6466 | ||
d9898ee8 | 6467 | #ifdef __cplusplus |
6468 | extern "C" { | |
6469 | #endif | |
6470 | ||
8d138742 | 6471 | _LT_EOF |
d9898ee8 | 6472 | # Now generate the symbol file. |
8d138742 | 6473 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
d9898ee8 | 6474 | |
8d138742 | 6475 | cat <<_LT_EOF >> conftest.$ac_ext |
d9898ee8 | 6476 | |
8d138742 | 6477 | /* The mapping between symbol names and symbols. */ |
b0322a85 | 6478 | LT_DLSYM_CONST struct { |
d9898ee8 | 6479 | const char *name; |
8d138742 | 6480 | void *address; |
d9898ee8 | 6481 | } |
8d138742 | 6482 | lt__PROGRAM__LTX_preloaded_symbols[] = |
d9898ee8 | 6483 | { |
8d138742 CE |
6484 | { "@PROGRAM@", (void *) 0 }, |
6485 | _LT_EOF | |
6486 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6487 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6488 | {0, (void *) 0} | |
d9898ee8 | 6489 | }; |
6490 | ||
8d138742 CE |
6491 | /* This works around a problem in FreeBSD linker */ |
6492 | #ifdef FREEBSD_WORKAROUND | |
6493 | static const void *lt_preloaded_setup() { | |
6494 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6495 | } | |
6496 | #endif | |
6497 | ||
d9898ee8 | 6498 | #ifdef __cplusplus |
6499 | } | |
6500 | #endif | |
8d138742 | 6501 | _LT_EOF |
d9898ee8 | 6502 | # Now try linking the two files. |
6503 | mv conftest.$ac_objext conftstm.$ac_objext | |
b0322a85 CE |
6504 | lt_globsym_save_LIBS=$LIBS |
6505 | lt_globsym_save_CFLAGS=$CFLAGS | |
d9898ee8 | 6506 | LIBS="conftstm.$ac_objext" |
6507 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
b0322a85 | 6508 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
d9898ee8 | 6509 | (eval $ac_link) 2>&5 |
6510 | ac_status=$? | |
b0322a85 CE |
6511 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6512 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
d9898ee8 | 6513 | pipe_works=yes |
6514 | fi | |
b0322a85 CE |
6515 | LIBS=$lt_globsym_save_LIBS |
6516 | CFLAGS=$lt_globsym_save_CFLAGS | |
d9898ee8 | 6517 | else |
6518 | echo "cannot find nm_test_func in $nlist" >&5 | |
6519 | fi | |
6520 | else | |
6521 | echo "cannot find nm_test_var in $nlist" >&5 | |
6522 | fi | |
6523 | else | |
6524 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6525 | fi | |
6526 | else | |
6527 | echo "$progname: failed program was:" >&5 | |
6528 | cat conftest.$ac_ext >&5 | |
6529 | fi | |
8d138742 | 6530 | rm -rf conftest* conftst* |
d9898ee8 | 6531 | |
6532 | # Do not use the global_symbol_pipe unless it works. | |
6533 | if test "$pipe_works" = yes; then | |
6534 | break | |
6535 | else | |
6536 | lt_cv_sys_global_symbol_pipe= | |
6537 | fi | |
6538 | done | |
6539 | ||
6540 | fi | |
6541 | ||
6542 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6543 | lt_cv_sys_global_symbol_to_cdecl= | |
6544 | fi | |
6545 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
b0322a85 | 6546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
8d138742 | 6547 | $as_echo "failed" >&6; } |
d9898ee8 | 6548 | else |
b0322a85 | 6549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8d138742 | 6550 | $as_echo "ok" >&6; } |
d9898ee8 | 6551 | fi |
6552 | ||
b0322a85 CE |
6553 | # Response file support. |
6554 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6555 | nm_file_list_spec='@' | |
6556 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
6557 | nm_file_list_spec='@' | |
6558 | fi | |
6559 | ||
6560 | ||
6561 | ||
6562 | ||
6563 | ||
6564 | ||
6565 | ||
d9898ee8 | 6566 | |
6567 | ||
6568 | ||
6569 | ||
6570 | ||
d9898ee8 | 6571 | |
d9898ee8 | 6572 | |
d9898ee8 | 6573 | |
d9898ee8 | 6574 | |
d9898ee8 | 6575 | |
d9898ee8 | 6576 | |
d9898ee8 | 6577 | |
d9898ee8 | 6578 | |
d9898ee8 | 6579 | |
d9898ee8 | 6580 | |
dd184caf | 6581 | |
d9898ee8 | 6582 | |
b0322a85 CE |
6583 | |
6584 | ||
6585 | ||
6586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
6587 | $as_echo_n "checking for sysroot... " >&6; } | |
6588 | ||
6589 | # Check whether --with-sysroot was given. | |
6590 | if test "${with_sysroot+set}" = set; then : | |
6591 | withval=$with_sysroot; | |
6592 | else | |
6593 | with_sysroot=no | |
6594 | fi | |
6595 | ||
6596 | ||
6597 | lt_sysroot= | |
6598 | case ${with_sysroot} in #( | |
6599 | yes) | |
6600 | if test "$GCC" = yes; then | |
6601 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
6602 | fi | |
6603 | ;; #( | |
6604 | /*) | |
6605 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
6606 | ;; #( | |
6607 | no|'') | |
6608 | ;; #( | |
6609 | *) | |
6610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 | |
6611 | $as_echo "${with_sysroot}" >&6; } | |
6612 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
6613 | ;; | |
6614 | esac | |
6615 | ||
6616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
6617 | $as_echo "${lt_sysroot:-no}" >&6; } | |
8d138742 CE |
6618 | |
6619 | ||
6620 | ||
6621 | ||
6622 | ||
6623 | # Check whether --enable-libtool-lock was given. | |
b0322a85 | 6624 | if test "${enable_libtool_lock+set}" = set; then : |
8d138742 | 6625 | enableval=$enable_libtool_lock; |
d9898ee8 | 6626 | fi |
8d138742 CE |
6627 | |
6628 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
6629 | ||
6630 | # Some flags need to be propagated to the compiler or linker for good | |
6631 | # libtool support. | |
6632 | case $host in | |
6633 | ia64-*-hpux*) | |
6634 | # Find out which ABI we are using. | |
6635 | echo 'int i;' > conftest.$ac_ext | |
b0322a85 | 6636 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
6637 | (eval $ac_compile) 2>&5 |
6638 | ac_status=$? | |
b0322a85 CE |
6639 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6640 | test $ac_status = 0; }; then | |
8d138742 CE |
6641 | case `/usr/bin/file conftest.$ac_objext` in |
6642 | *ELF-32*) | |
6643 | HPUX_IA64_MODE="32" | |
6644 | ;; | |
6645 | *ELF-64*) | |
6646 | HPUX_IA64_MODE="64" | |
6647 | ;; | |
6648 | esac | |
6649 | fi | |
6650 | rm -rf conftest* | |
6651 | ;; | |
6652 | *-*-irix6*) | |
6653 | # Find out which ABI we are using. | |
b0322a85 CE |
6654 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
6655 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8d138742 CE |
6656 | (eval $ac_compile) 2>&5 |
6657 | ac_status=$? | |
b0322a85 CE |
6658 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6659 | test $ac_status = 0; }; then | |
8d138742 CE |
6660 | if test "$lt_cv_prog_gnu_ld" = yes; then |
6661 | case `/usr/bin/file conftest.$ac_objext` in | |
6662 | *32-bit*) | |
6663 | LD="${LD-ld} -melf32bsmip" | |
6664 | ;; | |
6665 | *N32*) | |
6666 | LD="${LD-ld} -melf32bmipn32" | |
6667 | ;; | |
6668 | *64-bit*) | |
6669 | LD="${LD-ld} -melf64bmip" | |
6670 | ;; | |
6671 | esac | |
6672 | else | |
6673 | case `/usr/bin/file conftest.$ac_objext` in | |
6674 | *32-bit*) | |
6675 | LD="${LD-ld} -32" | |
6676 | ;; | |
6677 | *N32*) | |
6678 | LD="${LD-ld} -n32" | |
6679 | ;; | |
6680 | *64-bit*) | |
6681 | LD="${LD-ld} -64" | |
6682 | ;; | |
6683 | esac | |
6684 | fi | |
6685 | fi | |
6686 | rm -rf conftest* | |
6687 | ;; | |
6688 | ||
b0322a85 | 6689 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
8d138742 CE |
6690 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
6691 | # Find out which ABI we are using. | |
6692 | echo 'int i;' > conftest.$ac_ext | |
b0322a85 | 6693 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
6694 | (eval $ac_compile) 2>&5 |
6695 | ac_status=$? | |
b0322a85 CE |
6696 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6697 | test $ac_status = 0; }; then | |
8d138742 CE |
6698 | case `/usr/bin/file conftest.o` in |
6699 | *32-bit*) | |
6700 | case $host in | |
6701 | x86_64-*kfreebsd*-gnu) | |
6702 | LD="${LD-ld} -m elf_i386_fbsd" | |
6703 | ;; | |
6704 | x86_64-*linux*) | |
6705 | LD="${LD-ld} -m elf_i386" | |
6706 | ;; | |
b0322a85 CE |
6707 | powerpcle-*linux*) |
6708 | LD="${LD-ld} -m elf32lppclinux" | |
6709 | ;; | |
6710 | powerpc-*linux*) | |
8d138742 CE |
6711 | LD="${LD-ld} -m elf32ppclinux" |
6712 | ;; | |
6713 | s390x-*linux*) | |
6714 | LD="${LD-ld} -m elf_s390" | |
6715 | ;; | |
6716 | sparc64-*linux*) | |
6717 | LD="${LD-ld} -m elf32_sparc" | |
6718 | ;; | |
6719 | esac | |
6720 | ;; | |
6721 | *64-bit*) | |
6722 | case $host in | |
6723 | x86_64-*kfreebsd*-gnu) | |
6724 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6725 | ;; | |
6726 | x86_64-*linux*) | |
6727 | LD="${LD-ld} -m elf_x86_64" | |
6728 | ;; | |
b0322a85 CE |
6729 | powerpcle-*linux*) |
6730 | LD="${LD-ld} -m elf64lppc" | |
6731 | ;; | |
6732 | powerpc-*linux*) | |
8d138742 CE |
6733 | LD="${LD-ld} -m elf64ppc" |
6734 | ;; | |
6735 | s390*-*linux*|s390*-*tpf*) | |
6736 | LD="${LD-ld} -m elf64_s390" | |
6737 | ;; | |
6738 | sparc*-*linux*) | |
6739 | LD="${LD-ld} -m elf64_sparc" | |
6740 | ;; | |
6741 | esac | |
6742 | ;; | |
6743 | esac | |
6744 | fi | |
6745 | rm -rf conftest* | |
6746 | ;; | |
6747 | ||
6748 | *-*-sco3.2v5*) | |
6749 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6750 | SAVE_CFLAGS="$CFLAGS" | |
6751 | CFLAGS="$CFLAGS -belf" | |
b0322a85 | 6752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
8d138742 | 6753 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
b0322a85 | 6754 | if ${lt_cv_cc_needs_belf+:} false; then : |
8d138742 | 6755 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6756 | else |
8d138742 CE |
6757 | ac_ext=c |
6758 | ac_cpp='$CPP $CPPFLAGS' | |
6759 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6760 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6761 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 6762 | |
b0322a85 | 6763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
6764 | /* end confdefs.h. */ |
6765 | ||
6766 | int | |
6767 | main () | |
6768 | { | |
6769 | ||
6770 | ; | |
6771 | return 0; | |
6772 | } | |
6773 | _ACEOF | |
b0322a85 | 6774 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 | 6775 | lt_cv_cc_needs_belf=yes |
d9898ee8 | 6776 | else |
b0322a85 | 6777 | lt_cv_cc_needs_belf=no |
d9898ee8 | 6778 | fi |
b0322a85 CE |
6779 | rm -f core conftest.err conftest.$ac_objext \ |
6780 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
6781 | ac_ext=c |
6782 | ac_cpp='$CPP $CPPFLAGS' | |
6783 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6784 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6785 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6786 | ||
6787 | fi | |
b0322a85 | 6788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
8d138742 CE |
6789 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
6790 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
6791 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6792 | CFLAGS="$SAVE_CFLAGS" | |
6793 | fi | |
6794 | ;; | |
b0322a85 | 6795 | *-*solaris*) |
8d138742 CE |
6796 | # Find out which ABI we are using. |
6797 | echo 'int i;' > conftest.$ac_ext | |
b0322a85 | 6798 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
6799 | (eval $ac_compile) 2>&5 |
6800 | ac_status=$? | |
b0322a85 CE |
6801 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6802 | test $ac_status = 0; }; then | |
8d138742 CE |
6803 | case `/usr/bin/file conftest.o` in |
6804 | *64-bit*) | |
6805 | case $lt_cv_prog_gnu_ld in | |
b0322a85 CE |
6806 | yes*) |
6807 | case $host in | |
6808 | i?86-*-solaris*) | |
6809 | LD="${LD-ld} -m elf_x86_64" | |
6810 | ;; | |
6811 | sparc*-*-solaris*) | |
6812 | LD="${LD-ld} -m elf64_sparc" | |
6813 | ;; | |
6814 | esac | |
6815 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
6816 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
6817 | LD="${LD-ld}_sol2" | |
6818 | fi | |
6819 | ;; | |
8d138742 CE |
6820 | *) |
6821 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6822 | LD="${LD-ld} -64" | |
6823 | fi | |
6824 | ;; | |
6825 | esac | |
6826 | ;; | |
6827 | esac | |
6828 | fi | |
6829 | rm -rf conftest* | |
6830 | ;; | |
6831 | esac | |
6832 | ||
6833 | need_locks="$enable_libtool_lock" | |
6834 | ||
b0322a85 CE |
6835 | if test -n "$ac_tool_prefix"; then |
6836 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
6837 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
6838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 6839 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6840 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
8d138742 | 6841 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6842 | else |
b0322a85 CE |
6843 | if test -n "$MANIFEST_TOOL"; then |
6844 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
d9898ee8 | 6845 | else |
6846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6847 | for as_dir in $PATH | |
6848 | do | |
6849 | IFS=$as_save_IFS | |
6850 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6851 | for ac_exec_ext in '' $ac_executable_extensions; do |
6852 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6853 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
6854 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6855 | break 2 |
6856 | fi | |
6857 | done | |
b0322a85 | 6858 | done |
dd184caf | 6859 | IFS=$as_save_IFS |
d9898ee8 | 6860 | |
6861 | fi | |
6862 | fi | |
b0322a85 CE |
6863 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
6864 | if test -n "$MANIFEST_TOOL"; then | |
6865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
6866 | $as_echo "$MANIFEST_TOOL" >&6; } | |
d9898ee8 | 6867 | else |
b0322a85 | 6868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6869 | $as_echo "no" >&6; } |
d9898ee8 | 6870 | fi |
6871 | ||
dd184caf | 6872 | |
d9898ee8 | 6873 | fi |
b0322a85 CE |
6874 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
6875 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
6876 | # Extract the first word of "mt", so it can be a program name with args. | |
6877 | set dummy mt; ac_word=$2 | |
6878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 6879 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6880 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
8d138742 | 6881 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6882 | else |
b0322a85 CE |
6883 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
6884 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
d9898ee8 | 6885 | else |
6886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6887 | for as_dir in $PATH | |
6888 | do | |
6889 | IFS=$as_save_IFS | |
6890 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6891 | for ac_exec_ext in '' $ac_executable_extensions; do |
6892 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6893 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
6894 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6895 | break 2 |
6896 | fi | |
6897 | done | |
b0322a85 | 6898 | done |
dd184caf | 6899 | IFS=$as_save_IFS |
d9898ee8 | 6900 | |
d9898ee8 | 6901 | fi |
6902 | fi | |
b0322a85 CE |
6903 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
6904 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
6906 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
d9898ee8 | 6907 | else |
b0322a85 | 6908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6909 | $as_echo "no" >&6; } |
d9898ee8 | 6910 | fi |
6911 | ||
b0322a85 CE |
6912 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
6913 | MANIFEST_TOOL=":" | |
dd184caf | 6914 | else |
6915 | case $cross_compiling:$ac_tool_warned in | |
6916 | yes:) | |
b0322a85 | 6917 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 6918 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 6919 | ac_tool_warned=yes ;; |
6920 | esac | |
b0322a85 | 6921 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
dd184caf | 6922 | fi |
d9898ee8 | 6923 | else |
b0322a85 | 6924 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
d9898ee8 | 6925 | fi |
6926 | ||
b0322a85 CE |
6927 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
6928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
6929 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
6930 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
6931 | $as_echo_n "(cached) " >&6 | |
6932 | else | |
6933 | lt_cv_path_mainfest_tool=no | |
6934 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
6935 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
6936 | cat conftest.err >&5 | |
6937 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
6938 | lt_cv_path_mainfest_tool=yes | |
6939 | fi | |
6940 | rm -f conftest* | |
6941 | fi | |
6942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
6943 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
6944 | if test "x$lt_cv_path_mainfest_tool" != xyes; then | |
6945 | MANIFEST_TOOL=: | |
6946 | fi | |
6947 | ||
6948 | ||
6949 | ||
6950 | ||
6951 | ||
6952 | ||
6953 | case $host_os in | |
6954 | rhapsody* | darwin*) | |
6955 | if test -n "$ac_tool_prefix"; then | |
6956 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6957 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
6958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6959 | $as_echo_n "checking for $ac_word... " >&6; } | |
6960 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
6961 | $as_echo_n "(cached) " >&6 | |
6962 | else | |
6963 | if test -n "$DSYMUTIL"; then | |
6964 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
6965 | else | |
6966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6967 | for as_dir in $PATH | |
6968 | do | |
6969 | IFS=$as_save_IFS | |
6970 | test -z "$as_dir" && as_dir=. | |
6971 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6972 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6973 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
6974 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6975 | break 2 | |
6976 | fi | |
6977 | done | |
6978 | done | |
6979 | IFS=$as_save_IFS | |
6980 | ||
6981 | fi | |
6982 | fi | |
6983 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
6984 | if test -n "$DSYMUTIL"; then | |
6985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
6986 | $as_echo "$DSYMUTIL" >&6; } | |
6987 | else | |
6988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6989 | $as_echo "no" >&6; } | |
6990 | fi | |
6991 | ||
6992 | ||
6993 | fi | |
6994 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
6995 | ac_ct_DSYMUTIL=$DSYMUTIL | |
6996 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
6997 | set dummy dsymutil; ac_word=$2 | |
6998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6999 | $as_echo_n "checking for $ac_word... " >&6; } | |
7000 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
7001 | $as_echo_n "(cached) " >&6 | |
7002 | else | |
7003 | if test -n "$ac_ct_DSYMUTIL"; then | |
7004 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7005 | else | |
7006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7007 | for as_dir in $PATH | |
7008 | do | |
7009 | IFS=$as_save_IFS | |
7010 | test -z "$as_dir" && as_dir=. | |
7011 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7012 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7013 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
7014 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7015 | break 2 | |
7016 | fi | |
7017 | done | |
7018 | done | |
7019 | IFS=$as_save_IFS | |
7020 | ||
7021 | fi | |
7022 | fi | |
7023 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7024 | if test -n "$ac_ct_DSYMUTIL"; then | |
7025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7026 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
7027 | else | |
7028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7029 | $as_echo "no" >&6; } | |
7030 | fi | |
7031 | ||
7032 | if test "x$ac_ct_DSYMUTIL" = x; then | |
7033 | DSYMUTIL=":" | |
7034 | else | |
7035 | case $cross_compiling:$ac_tool_warned in | |
7036 | yes:) | |
7037 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7038 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7039 | ac_tool_warned=yes ;; | |
7040 | esac | |
7041 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7042 | fi | |
7043 | else | |
7044 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7045 | fi | |
7046 | ||
7047 | if test -n "$ac_tool_prefix"; then | |
8d138742 CE |
7048 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
7049 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
b0322a85 | 7050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7051 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7052 | if ${ac_cv_prog_NMEDIT+:} false; then : |
8d138742 | 7053 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7054 | else |
8d138742 CE |
7055 | if test -n "$NMEDIT"; then |
7056 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
d9898ee8 | 7057 | else |
7058 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7059 | for as_dir in $PATH | |
7060 | do | |
7061 | IFS=$as_save_IFS | |
7062 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7063 | for ac_exec_ext in '' $ac_executable_extensions; do |
7064 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7065 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
b0322a85 | 7066 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 7067 | break 2 |
7068 | fi | |
7069 | done | |
b0322a85 | 7070 | done |
dd184caf | 7071 | IFS=$as_save_IFS |
d9898ee8 | 7072 | |
7073 | fi | |
7074 | fi | |
8d138742 CE |
7075 | NMEDIT=$ac_cv_prog_NMEDIT |
7076 | if test -n "$NMEDIT"; then | |
b0322a85 | 7077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
8d138742 | 7078 | $as_echo "$NMEDIT" >&6; } |
d9898ee8 | 7079 | else |
b0322a85 | 7080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7081 | $as_echo "no" >&6; } |
d9898ee8 | 7082 | fi |
7083 | ||
dd184caf | 7084 | |
d9898ee8 | 7085 | fi |
8d138742 CE |
7086 | if test -z "$ac_cv_prog_NMEDIT"; then |
7087 | ac_ct_NMEDIT=$NMEDIT | |
7088 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7089 | set dummy nmedit; ac_word=$2 | |
b0322a85 | 7090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7091 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7092 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
8d138742 | 7093 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7094 | else |
8d138742 CE |
7095 | if test -n "$ac_ct_NMEDIT"; then |
7096 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
d9898ee8 | 7097 | else |
7098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7099 | for as_dir in $PATH | |
7100 | do | |
7101 | IFS=$as_save_IFS | |
7102 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7103 | for ac_exec_ext in '' $ac_executable_extensions; do |
7104 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7105 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
b0322a85 | 7106 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 7107 | break 2 |
7108 | fi | |
7109 | done | |
b0322a85 | 7110 | done |
dd184caf | 7111 | IFS=$as_save_IFS |
d9898ee8 | 7112 | |
d9898ee8 | 7113 | fi |
7114 | fi | |
8d138742 CE |
7115 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
7116 | if test -n "$ac_ct_NMEDIT"; then | |
b0322a85 | 7117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
8d138742 | 7118 | $as_echo "$ac_ct_NMEDIT" >&6; } |
d9898ee8 | 7119 | else |
b0322a85 | 7120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7121 | $as_echo "no" >&6; } |
d9898ee8 | 7122 | fi |
7123 | ||
8d138742 CE |
7124 | if test "x$ac_ct_NMEDIT" = x; then |
7125 | NMEDIT=":" | |
dd184caf | 7126 | else |
7127 | case $cross_compiling:$ac_tool_warned in | |
7128 | yes:) | |
b0322a85 | 7129 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 7130 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 7131 | ac_tool_warned=yes ;; |
7132 | esac | |
8d138742 | 7133 | NMEDIT=$ac_ct_NMEDIT |
dd184caf | 7134 | fi |
d9898ee8 | 7135 | else |
8d138742 | 7136 | NMEDIT="$ac_cv_prog_NMEDIT" |
d9898ee8 | 7137 | fi |
7138 | ||
8d138742 CE |
7139 | if test -n "$ac_tool_prefix"; then |
7140 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7141 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
b0322a85 | 7142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7143 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7144 | if ${ac_cv_prog_LIPO+:} false; then : |
8d138742 CE |
7145 | $as_echo_n "(cached) " >&6 |
7146 | else | |
7147 | if test -n "$LIPO"; then | |
7148 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7149 | else | |
7150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7151 | for as_dir in $PATH | |
7152 | do | |
7153 | IFS=$as_save_IFS | |
7154 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7155 | for ac_exec_ext in '' $ac_executable_extensions; do |
7156 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7157 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
b0322a85 | 7158 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7159 | break 2 |
7160 | fi | |
7161 | done | |
b0322a85 | 7162 | done |
8d138742 | 7163 | IFS=$as_save_IFS |
d9898ee8 | 7164 | |
8d138742 CE |
7165 | fi |
7166 | fi | |
7167 | LIPO=$ac_cv_prog_LIPO | |
7168 | if test -n "$LIPO"; then | |
b0322a85 | 7169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8d138742 CE |
7170 | $as_echo "$LIPO" >&6; } |
7171 | else | |
b0322a85 | 7172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7173 | $as_echo "no" >&6; } |
7174 | fi | |
d9898ee8 | 7175 | |
d9898ee8 | 7176 | |
d9898ee8 | 7177 | fi |
8d138742 CE |
7178 | if test -z "$ac_cv_prog_LIPO"; then |
7179 | ac_ct_LIPO=$LIPO | |
7180 | # Extract the first word of "lipo", so it can be a program name with args. | |
7181 | set dummy lipo; ac_word=$2 | |
b0322a85 | 7182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7183 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7184 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
8d138742 CE |
7185 | $as_echo_n "(cached) " >&6 |
7186 | else | |
7187 | if test -n "$ac_ct_LIPO"; then | |
7188 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7189 | else | |
7190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7191 | for as_dir in $PATH | |
7192 | do | |
7193 | IFS=$as_save_IFS | |
7194 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7195 | for ac_exec_ext in '' $ac_executable_extensions; do |
7196 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7197 | ac_cv_prog_ac_ct_LIPO="lipo" |
b0322a85 | 7198 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7199 | break 2 |
7200 | fi | |
d9898ee8 | 7201 | done |
b0322a85 | 7202 | done |
8d138742 | 7203 | IFS=$as_save_IFS |
d9898ee8 | 7204 | |
8d138742 CE |
7205 | fi |
7206 | fi | |
7207 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7208 | if test -n "$ac_ct_LIPO"; then | |
b0322a85 | 7209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
8d138742 | 7210 | $as_echo "$ac_ct_LIPO" >&6; } |
d9898ee8 | 7211 | else |
b0322a85 | 7212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7213 | $as_echo "no" >&6; } |
7214 | fi | |
d9898ee8 | 7215 | |
8d138742 CE |
7216 | if test "x$ac_ct_LIPO" = x; then |
7217 | LIPO=":" | |
7218 | else | |
7219 | case $cross_compiling:$ac_tool_warned in | |
7220 | yes:) | |
b0322a85 | 7221 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
7222 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7223 | ac_tool_warned=yes ;; | |
d9898ee8 | 7224 | esac |
8d138742 CE |
7225 | LIPO=$ac_ct_LIPO |
7226 | fi | |
7227 | else | |
7228 | LIPO="$ac_cv_prog_LIPO" | |
d9898ee8 | 7229 | fi |
7230 | ||
8d138742 CE |
7231 | if test -n "$ac_tool_prefix"; then |
7232 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7233 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
b0322a85 | 7234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7235 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7236 | if ${ac_cv_prog_OTOOL+:} false; then : |
8d138742 | 7237 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7238 | else |
8d138742 CE |
7239 | if test -n "$OTOOL"; then |
7240 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7241 | else | |
7242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7243 | for as_dir in $PATH | |
7244 | do | |
7245 | IFS=$as_save_IFS | |
7246 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7247 | for ac_exec_ext in '' $ac_executable_extensions; do |
7248 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7249 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
b0322a85 | 7250 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7251 | break 2 |
7252 | fi | |
7253 | done | |
b0322a85 | 7254 | done |
8d138742 | 7255 | IFS=$as_save_IFS |
d9898ee8 | 7256 | |
8d138742 CE |
7257 | fi |
7258 | fi | |
7259 | OTOOL=$ac_cv_prog_OTOOL | |
7260 | if test -n "$OTOOL"; then | |
b0322a85 | 7261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
8d138742 | 7262 | $as_echo "$OTOOL" >&6; } |
d9898ee8 | 7263 | else |
b0322a85 | 7264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7265 | $as_echo "no" >&6; } |
7266 | fi | |
d9898ee8 | 7267 | |
d9898ee8 | 7268 | |
d9898ee8 | 7269 | fi |
8d138742 CE |
7270 | if test -z "$ac_cv_prog_OTOOL"; then |
7271 | ac_ct_OTOOL=$OTOOL | |
7272 | # Extract the first word of "otool", so it can be a program name with args. | |
7273 | set dummy otool; ac_word=$2 | |
b0322a85 | 7274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7275 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7276 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
8d138742 CE |
7277 | $as_echo_n "(cached) " >&6 |
7278 | else | |
7279 | if test -n "$ac_ct_OTOOL"; then | |
7280 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7281 | else | |
7282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7283 | for as_dir in $PATH | |
7284 | do | |
7285 | IFS=$as_save_IFS | |
7286 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7287 | for ac_exec_ext in '' $ac_executable_extensions; do |
7288 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7289 | ac_cv_prog_ac_ct_OTOOL="otool" |
b0322a85 | 7290 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7291 | break 2 |
7292 | fi | |
7293 | done | |
b0322a85 | 7294 | done |
8d138742 | 7295 | IFS=$as_save_IFS |
d9898ee8 | 7296 | |
8d138742 CE |
7297 | fi |
7298 | fi | |
7299 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7300 | if test -n "$ac_ct_OTOOL"; then | |
b0322a85 | 7301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
8d138742 | 7302 | $as_echo "$ac_ct_OTOOL" >&6; } |
d9898ee8 | 7303 | else |
b0322a85 | 7304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7305 | $as_echo "no" >&6; } |
d9898ee8 | 7306 | fi |
7307 | ||
8d138742 CE |
7308 | if test "x$ac_ct_OTOOL" = x; then |
7309 | OTOOL=":" | |
d9898ee8 | 7310 | else |
8d138742 CE |
7311 | case $cross_compiling:$ac_tool_warned in |
7312 | yes:) | |
b0322a85 | 7313 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
7314 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7315 | ac_tool_warned=yes ;; | |
7316 | esac | |
7317 | OTOOL=$ac_ct_OTOOL | |
d9898ee8 | 7318 | fi |
8d138742 CE |
7319 | else |
7320 | OTOOL="$ac_cv_prog_OTOOL" | |
d9898ee8 | 7321 | fi |
7322 | ||
8d138742 CE |
7323 | if test -n "$ac_tool_prefix"; then |
7324 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7325 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
b0322a85 | 7326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7327 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7328 | if ${ac_cv_prog_OTOOL64+:} false; then : |
8d138742 CE |
7329 | $as_echo_n "(cached) " >&6 |
7330 | else | |
7331 | if test -n "$OTOOL64"; then | |
7332 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7333 | else | |
7334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7335 | for as_dir in $PATH | |
7336 | do | |
7337 | IFS=$as_save_IFS | |
7338 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7339 | for ac_exec_ext in '' $ac_executable_extensions; do |
7340 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7341 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
b0322a85 | 7342 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 | 7343 | break 2 |
d9898ee8 | 7344 | fi |
8d138742 | 7345 | done |
b0322a85 | 7346 | done |
8d138742 | 7347 | IFS=$as_save_IFS |
d9898ee8 | 7348 | |
8d138742 CE |
7349 | fi |
7350 | fi | |
7351 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7352 | if test -n "$OTOOL64"; then | |
b0322a85 | 7353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
8d138742 CE |
7354 | $as_echo "$OTOOL64" >&6; } |
7355 | else | |
b0322a85 | 7356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7357 | $as_echo "no" >&6; } |
dd184caf | 7358 | fi |
d9898ee8 | 7359 | |
d9898ee8 | 7360 | |
8d138742 CE |
7361 | fi |
7362 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7363 | ac_ct_OTOOL64=$OTOOL64 | |
7364 | # Extract the first word of "otool64", so it can be a program name with args. | |
7365 | set dummy otool64; ac_word=$2 | |
b0322a85 | 7366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7367 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7368 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
8d138742 CE |
7369 | $as_echo_n "(cached) " >&6 |
7370 | else | |
7371 | if test -n "$ac_ct_OTOOL64"; then | |
7372 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7373 | else | |
7374 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7375 | for as_dir in $PATH | |
7376 | do | |
7377 | IFS=$as_save_IFS | |
7378 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7379 | for ac_exec_ext in '' $ac_executable_extensions; do |
7380 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7381 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
b0322a85 | 7382 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7383 | break 2 |
7384 | fi | |
7385 | done | |
b0322a85 | 7386 | done |
8d138742 | 7387 | IFS=$as_save_IFS |
d9898ee8 | 7388 | |
8d138742 CE |
7389 | fi |
7390 | fi | |
7391 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7392 | if test -n "$ac_ct_OTOOL64"; then | |
b0322a85 | 7393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
8d138742 | 7394 | $as_echo "$ac_ct_OTOOL64" >&6; } |
d9898ee8 | 7395 | else |
b0322a85 | 7396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7397 | $as_echo "no" >&6; } |
dd184caf | 7398 | fi |
7399 | ||
8d138742 CE |
7400 | if test "x$ac_ct_OTOOL64" = x; then |
7401 | OTOOL64=":" | |
7402 | else | |
7403 | case $cross_compiling:$ac_tool_warned in | |
7404 | yes:) | |
b0322a85 | 7405 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
7406 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7407 | ac_tool_warned=yes ;; | |
7408 | esac | |
7409 | OTOOL64=$ac_ct_OTOOL64 | |
7410 | fi | |
7411 | else | |
7412 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7413 | fi | |
d9898ee8 | 7414 | |
d9898ee8 | 7415 | |
7416 | ||
d9898ee8 | 7417 | |
d9898ee8 | 7418 | |
d9898ee8 | 7419 | |
d9898ee8 | 7420 | |
7421 | ||
d9898ee8 | 7422 | |
d9898ee8 | 7423 | |
d9898ee8 | 7424 | |
7425 | ||
d9898ee8 | 7426 | |
d9898ee8 | 7427 | |
7428 | ||
7429 | ||
d9898ee8 | 7430 | |
d9898ee8 | 7431 | |
7432 | ||
d9898ee8 | 7433 | |
d9898ee8 | 7434 | |
d9898ee8 | 7435 | |
d9898ee8 | 7436 | |
d9898ee8 | 7437 | |
d9898ee8 | 7438 | |
d9898ee8 | 7439 | |
8d138742 | 7440 | |
b0322a85 | 7441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
8d138742 | 7442 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
b0322a85 | 7443 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
8d138742 CE |
7444 | $as_echo_n "(cached) " >&6 |
7445 | else | |
7446 | lt_cv_apple_cc_single_mod=no | |
7447 | if test -z "${LT_MULTI_MODULE}"; then | |
7448 | # By default we will add the -single_module flag. You can override | |
7449 | # by either setting the environment variable LT_MULTI_MODULE | |
7450 | # non-empty at configure time, or by adding -multi_module to the | |
7451 | # link flags. | |
7452 | rm -rf libconftest.dylib* | |
7453 | echo "int foo(void){return 1;}" > conftest.c | |
7454 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7455 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7456 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7457 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7458 | _lt_result=$? | |
b0322a85 CE |
7459 | # If there is a non-empty error log, and "single_module" |
7460 | # appears in it, assume the flag caused a linker warning | |
7461 | if test -s conftest.err && $GREP single_module conftest.err; then | |
7462 | cat conftest.err >&5 | |
7463 | # Otherwise, if the output was created with a 0 exit code from | |
7464 | # the compiler, it worked. | |
7465 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then | |
8d138742 CE |
7466 | lt_cv_apple_cc_single_mod=yes |
7467 | else | |
7468 | cat conftest.err >&5 | |
7469 | fi | |
7470 | rm -rf libconftest.dylib* | |
7471 | rm -f conftest.* | |
d9898ee8 | 7472 | fi |
8d138742 | 7473 | fi |
b0322a85 | 7474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
8d138742 | 7475 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
b0322a85 CE |
7476 | |
7477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8d138742 | 7478 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
b0322a85 | 7479 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
8d138742 CE |
7480 | $as_echo_n "(cached) " >&6 |
7481 | else | |
7482 | lt_cv_ld_exported_symbols_list=no | |
7483 | save_LDFLAGS=$LDFLAGS | |
7484 | echo "_main" > conftest.sym | |
7485 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
b0322a85 | 7486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 7487 | /* end confdefs.h. */ |
d9898ee8 | 7488 | |
8d138742 CE |
7489 | int |
7490 | main () | |
7491 | { | |
d9898ee8 | 7492 | |
8d138742 CE |
7493 | ; |
7494 | return 0; | |
7495 | } | |
7496 | _ACEOF | |
b0322a85 | 7497 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
7498 | lt_cv_ld_exported_symbols_list=yes |
7499 | else | |
b0322a85 | 7500 | lt_cv_ld_exported_symbols_list=no |
8d138742 | 7501 | fi |
b0322a85 CE |
7502 | rm -f core conftest.err conftest.$ac_objext \ |
7503 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 | 7504 | LDFLAGS="$save_LDFLAGS" |
d9898ee8 | 7505 | |
8d138742 | 7506 | fi |
b0322a85 | 7507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8d138742 | 7508 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
b0322a85 CE |
7509 | |
7510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
7511 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
7512 | if ${lt_cv_ld_force_load+:} false; then : | |
7513 | $as_echo_n "(cached) " >&6 | |
7514 | else | |
7515 | lt_cv_ld_force_load=no | |
7516 | cat > conftest.c << _LT_EOF | |
7517 | int forced_loaded() { return 2;} | |
7518 | _LT_EOF | |
7519 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7520 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7521 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7522 | $AR cru libconftest.a conftest.o 2>&5 | |
7523 | echo "$RANLIB libconftest.a" >&5 | |
7524 | $RANLIB libconftest.a 2>&5 | |
7525 | cat > conftest.c << _LT_EOF | |
7526 | int main() { return 0;} | |
7527 | _LT_EOF | |
7528 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7529 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7530 | _lt_result=$? | |
7531 | if test -s conftest.err && $GREP force_load conftest.err; then | |
7532 | cat conftest.err >&5 | |
7533 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then | |
7534 | lt_cv_ld_force_load=yes | |
7535 | else | |
7536 | cat conftest.err >&5 | |
7537 | fi | |
7538 | rm -f conftest.err libconftest.a conftest conftest.c | |
7539 | rm -rf conftest.dSYM | |
7540 | ||
7541 | fi | |
7542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7543 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
8d138742 CE |
7544 | case $host_os in |
7545 | rhapsody* | darwin1.[012]) | |
7546 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7547 | darwin1.*) | |
7548 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7549 | darwin*) # darwin 5.x on | |
7550 | # if running on 10.5 or later, the deployment target defaults | |
7551 | # to the OS version, if on x86, and 10.4, the deployment | |
7552 | # target defaults to 10.4. Don't you love it? | |
7553 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7554 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7555 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7556 | 10.[012]*) | |
7557 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7558 | 10.*) | |
7559 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7560 | esac | |
7561 | ;; | |
7562 | esac | |
7563 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7564 | _lt_dar_single_mod='$single_module' | |
7565 | fi | |
7566 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7567 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7568 | else | |
7569 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7570 | fi | |
b0322a85 | 7571 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
8d138742 CE |
7572 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
7573 | else | |
7574 | _lt_dsymutil= | |
7575 | fi | |
7576 | ;; | |
7577 | esac | |
d9898ee8 | 7578 | |
d9898ee8 | 7579 | |
b0322a85 | 7580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
8d138742 | 7581 | $as_echo_n "checking for ANSI C header files... " >&6; } |
b0322a85 | 7582 | if ${ac_cv_header_stdc+:} false; then : |
8d138742 CE |
7583 | $as_echo_n "(cached) " >&6 |
7584 | else | |
b0322a85 | 7585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7586 | /* end confdefs.h. */ |
7587 | #include <stdlib.h> | |
7588 | #include <stdarg.h> | |
7589 | #include <string.h> | |
7590 | #include <float.h> | |
d9898ee8 | 7591 | |
8d138742 CE |
7592 | int |
7593 | main () | |
7594 | { | |
d9898ee8 | 7595 | |
8d138742 CE |
7596 | ; |
7597 | return 0; | |
7598 | } | |
7599 | _ACEOF | |
b0322a85 | 7600 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 CE |
7601 | ac_cv_header_stdc=yes |
7602 | else | |
b0322a85 | 7603 | ac_cv_header_stdc=no |
8d138742 | 7604 | fi |
8d138742 | 7605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 7606 | |
8d138742 CE |
7607 | if test $ac_cv_header_stdc = yes; then |
7608 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
b0322a85 | 7609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7610 | /* end confdefs.h. */ |
7611 | #include <string.h> | |
d9898ee8 | 7612 | |
8d138742 CE |
7613 | _ACEOF |
7614 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
7615 | $EGREP "memchr" >/dev/null 2>&1; then : |
7616 | ||
8d138742 CE |
7617 | else |
7618 | ac_cv_header_stdc=no | |
7619 | fi | |
7620 | rm -f conftest* | |
d9898ee8 | 7621 | |
8d138742 | 7622 | fi |
d9898ee8 | 7623 | |
8d138742 CE |
7624 | if test $ac_cv_header_stdc = yes; then |
7625 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
b0322a85 | 7626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7627 | /* end confdefs.h. */ |
7628 | #include <stdlib.h> | |
ac40fd9e | 7629 | |
8d138742 CE |
7630 | _ACEOF |
7631 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
7632 | $EGREP "free" >/dev/null 2>&1; then : |
7633 | ||
8d138742 CE |
7634 | else |
7635 | ac_cv_header_stdc=no | |
7636 | fi | |
7637 | rm -f conftest* | |
d9898ee8 | 7638 | |
8d138742 | 7639 | fi |
d9898ee8 | 7640 | |
8d138742 CE |
7641 | if test $ac_cv_header_stdc = yes; then |
7642 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
b0322a85 | 7643 | if test "$cross_compiling" = yes; then : |
8d138742 CE |
7644 | : |
7645 | else | |
b0322a85 | 7646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7647 | /* end confdefs.h. */ |
7648 | #include <ctype.h> | |
7649 | #include <stdlib.h> | |
7650 | #if ((' ' & 0x0FF) == 0x020) | |
7651 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7652 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7653 | #else | |
7654 | # define ISLOWER(c) \ | |
7655 | (('a' <= (c) && (c) <= 'i') \ | |
7656 | || ('j' <= (c) && (c) <= 'r') \ | |
7657 | || ('s' <= (c) && (c) <= 'z')) | |
7658 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7659 | #endif | |
d9898ee8 | 7660 | |
8d138742 CE |
7661 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
7662 | int | |
7663 | main () | |
7664 | { | |
7665 | int i; | |
7666 | for (i = 0; i < 256; i++) | |
7667 | if (XOR (islower (i), ISLOWER (i)) | |
7668 | || toupper (i) != TOUPPER (i)) | |
7669 | return 2; | |
7670 | return 0; | |
7671 | } | |
7672 | _ACEOF | |
b0322a85 | 7673 | if ac_fn_c_try_run "$LINENO"; then : |
d9898ee8 | 7674 | |
b0322a85 CE |
7675 | else |
7676 | ac_cv_header_stdc=no | |
8d138742 | 7677 | fi |
b0322a85 CE |
7678 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7679 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8d138742 | 7680 | fi |
d9898ee8 | 7681 | |
8d138742 CE |
7682 | fi |
7683 | fi | |
b0322a85 | 7684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
8d138742 CE |
7685 | $as_echo "$ac_cv_header_stdc" >&6; } |
7686 | if test $ac_cv_header_stdc = yes; then | |
d9898ee8 | 7687 | |
b0322a85 | 7688 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
d9898ee8 | 7689 | |
8d138742 | 7690 | fi |
d9898ee8 | 7691 | |
8d138742 | 7692 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
8d138742 CE |
7693 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
7694 | inttypes.h stdint.h unistd.h | |
b0322a85 CE |
7695 | do : |
7696 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7697 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
7698 | " | |
7699 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8d138742 CE |
7700 | cat >>confdefs.h <<_ACEOF |
7701 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7702 | _ACEOF | |
d9898ee8 | 7703 | |
8d138742 | 7704 | fi |
d9898ee8 | 7705 | |
8d138742 CE |
7706 | done |
7707 | ||
7708 | ||
8d138742 | 7709 | for ac_header in dlfcn.h |
b0322a85 CE |
7710 | do : |
7711 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7712 | " | |
7713 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8d138742 | 7714 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 7715 | #define HAVE_DLFCN_H 1 |
8d138742 CE |
7716 | _ACEOF |
7717 | ||
7718 | fi | |
d9898ee8 | 7719 | |
d9898ee8 | 7720 | done |
d9898ee8 | 7721 | |
d9898ee8 | 7722 | |
d9898ee8 | 7723 | |
b0322a85 CE |
7724 | |
7725 | ||
8d138742 CE |
7726 | # Set options |
7727 | enable_dlopen=yes | |
d9898ee8 | 7728 | |
d9898ee8 | 7729 | |
d9898ee8 | 7730 | |
d9898ee8 | 7731 | |
8d138742 | 7732 | enable_win32_dll=no |
d9898ee8 | 7733 | |
d9898ee8 | 7734 | |
8d138742 | 7735 | # Check whether --enable-shared was given. |
b0322a85 | 7736 | if test "${enable_shared+set}" = set; then : |
8d138742 CE |
7737 | enableval=$enable_shared; p=${PACKAGE-default} |
7738 | case $enableval in | |
7739 | yes) enable_shared=yes ;; | |
7740 | no) enable_shared=no ;; | |
7741 | *) | |
7742 | enable_shared=no | |
7743 | # Look at the argument we got. We use all the common list separators. | |
7744 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7745 | for pkg in $enableval; do | |
7746 | IFS="$lt_save_ifs" | |
7747 | if test "X$pkg" = "X$p"; then | |
7748 | enable_shared=yes | |
7749 | fi | |
7750 | done | |
7751 | IFS="$lt_save_ifs" | |
d9898ee8 | 7752 | ;; |
8d138742 CE |
7753 | esac |
7754 | else | |
7755 | enable_shared=yes | |
7756 | fi | |
7757 | ||
7758 | ||
d9898ee8 | 7759 | |
d9898ee8 | 7760 | |
d9898ee8 | 7761 | |
d9898ee8 | 7762 | |
d9898ee8 | 7763 | |
8d138742 CE |
7764 | |
7765 | ||
7766 | # Check whether --enable-static was given. | |
b0322a85 | 7767 | if test "${enable_static+set}" = set; then : |
8d138742 CE |
7768 | enableval=$enable_static; p=${PACKAGE-default} |
7769 | case $enableval in | |
7770 | yes) enable_static=yes ;; | |
7771 | no) enable_static=no ;; | |
7772 | *) | |
7773 | enable_static=no | |
7774 | # Look at the argument we got. We use all the common list separators. | |
7775 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7776 | for pkg in $enableval; do | |
7777 | IFS="$lt_save_ifs" | |
7778 | if test "X$pkg" = "X$p"; then | |
7779 | enable_static=yes | |
d9898ee8 | 7780 | fi |
8d138742 CE |
7781 | done |
7782 | IFS="$lt_save_ifs" | |
d9898ee8 | 7783 | ;; |
8d138742 CE |
7784 | esac |
7785 | else | |
7786 | enable_static=yes | |
7787 | fi | |
d9898ee8 | 7788 | |
d9898ee8 | 7789 | |
d9898ee8 | 7790 | |
d9898ee8 | 7791 | |
d9898ee8 | 7792 | |
d9898ee8 | 7793 | |
d9898ee8 | 7794 | |
d9898ee8 | 7795 | |
d9898ee8 | 7796 | |
8d138742 CE |
7797 | |
7798 | # Check whether --with-pic was given. | |
b0322a85 CE |
7799 | if test "${with_pic+set}" = set; then : |
7800 | withval=$with_pic; lt_p=${PACKAGE-default} | |
7801 | case $withval in | |
7802 | yes|no) pic_mode=$withval ;; | |
7803 | *) | |
7804 | pic_mode=default | |
7805 | # Look at the argument we got. We use all the common list separators. | |
7806 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7807 | for lt_pkg in $withval; do | |
7808 | IFS="$lt_save_ifs" | |
7809 | if test "X$lt_pkg" = "X$lt_p"; then | |
7810 | pic_mode=yes | |
7811 | fi | |
7812 | done | |
7813 | IFS="$lt_save_ifs" | |
7814 | ;; | |
7815 | esac | |
7816 | else | |
7817 | pic_mode=default | |
7818 | fi | |
7819 | ||
7820 | ||
7821 | test -z "$pic_mode" && pic_mode=default | |
8d138742 CE |
7822 | |
7823 | ||
7824 | ||
7825 | ||
7826 | ||
7827 | ||
7828 | ||
7829 | # Check whether --enable-fast-install was given. | |
b0322a85 | 7830 | if test "${enable_fast_install+set}" = set; then : |
8d138742 CE |
7831 | enableval=$enable_fast_install; p=${PACKAGE-default} |
7832 | case $enableval in | |
7833 | yes) enable_fast_install=yes ;; | |
7834 | no) enable_fast_install=no ;; | |
d9898ee8 | 7835 | *) |
8d138742 CE |
7836 | enable_fast_install=no |
7837 | # Look at the argument we got. We use all the common list separators. | |
7838 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7839 | for pkg in $enableval; do | |
7840 | IFS="$lt_save_ifs" | |
7841 | if test "X$pkg" = "X$p"; then | |
7842 | enable_fast_install=yes | |
7843 | fi | |
7844 | done | |
7845 | IFS="$lt_save_ifs" | |
d9898ee8 | 7846 | ;; |
7847 | esac | |
8d138742 CE |
7848 | else |
7849 | enable_fast_install=yes | |
7850 | fi | |
d9898ee8 | 7851 | |
d9898ee8 | 7852 | |
d9898ee8 | 7853 | |
d9898ee8 | 7854 | |
d9898ee8 | 7855 | |
d9898ee8 | 7856 | |
d9898ee8 | 7857 | |
d9898ee8 | 7858 | |
d9898ee8 | 7859 | |
d9898ee8 | 7860 | |
d9898ee8 | 7861 | |
8d138742 CE |
7862 | # This can be used to rebuild libtool when needed |
7863 | LIBTOOL_DEPS="$ltmain" | |
d9898ee8 | 7864 | |
8d138742 CE |
7865 | # Always use our own libtool. |
7866 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
dd184caf | 7867 | |
dd184caf | 7868 | |
d9898ee8 | 7869 | |
d9898ee8 | 7870 | |
d9898ee8 | 7871 | |
d9898ee8 | 7872 | |
d9898ee8 | 7873 | |
dd184caf | 7874 | |
dd184caf | 7875 | |
d9898ee8 | 7876 | |
d9898ee8 | 7877 | |
d9898ee8 | 7878 | |
d9898ee8 | 7879 | |
d9898ee8 | 7880 | |
d9898ee8 | 7881 | |
d9898ee8 | 7882 | |
d9898ee8 | 7883 | |
d9898ee8 | 7884 | |
d9898ee8 | 7885 | |
b0322a85 CE |
7886 | |
7887 | ||
7888 | ||
7889 | ||
7890 | ||
d9898ee8 | 7891 | |
d9898ee8 | 7892 | |
d9898ee8 | 7893 | |
d9898ee8 | 7894 | |
d9898ee8 | 7895 | |
d9898ee8 | 7896 | |
8d138742 | 7897 | test -z "$LN_S" && LN_S="ln -s" |
d9898ee8 | 7898 | |
d9898ee8 | 7899 | |
d9898ee8 | 7900 | |
d9898ee8 | 7901 | |
d9898ee8 | 7902 | |
d9898ee8 | 7903 | |
d9898ee8 | 7904 | |
d9898ee8 | 7905 | |
d9898ee8 | 7906 | |
d9898ee8 | 7907 | |
d9898ee8 | 7908 | |
d9898ee8 | 7909 | |
d9898ee8 | 7910 | |
d9898ee8 | 7911 | |
8d138742 CE |
7912 | if test -n "${ZSH_VERSION+set}" ; then |
7913 | setopt NO_GLOB_SUBST | |
7914 | fi | |
d9898ee8 | 7915 | |
b0322a85 | 7916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8d138742 | 7917 | $as_echo_n "checking for objdir... " >&6; } |
b0322a85 | 7918 | if ${lt_cv_objdir+:} false; then : |
8d138742 CE |
7919 | $as_echo_n "(cached) " >&6 |
7920 | else | |
7921 | rm -f .libs 2>/dev/null | |
7922 | mkdir .libs 2>/dev/null | |
7923 | if test -d .libs; then | |
7924 | lt_cv_objdir=.libs | |
7925 | else | |
7926 | # MS-DOS does not allow filenames that begin with a dot. | |
7927 | lt_cv_objdir=_libs | |
7928 | fi | |
7929 | rmdir .libs 2>/dev/null | |
7930 | fi | |
b0322a85 | 7931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8d138742 CE |
7932 | $as_echo "$lt_cv_objdir" >&6; } |
7933 | objdir=$lt_cv_objdir | |
d9898ee8 | 7934 | |
d9898ee8 | 7935 | |
d9898ee8 | 7936 | |
d9898ee8 | 7937 | |
d9898ee8 | 7938 | |
8d138742 CE |
7939 | cat >>confdefs.h <<_ACEOF |
7940 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7941 | _ACEOF | |
d9898ee8 | 7942 | |
d9898ee8 | 7943 | |
d9898ee8 | 7944 | |
d9898ee8 | 7945 | |
8d138742 CE |
7946 | case $host_os in |
7947 | aix3*) | |
7948 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7949 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7950 | # vanish in a puff of smoke. | |
7951 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7952 | COLLECT_NAMES= | |
7953 | export COLLECT_NAMES | |
d9898ee8 | 7954 | fi |
7955 | ;; | |
7956 | esac | |
7957 | ||
8d138742 CE |
7958 | # Global variables: |
7959 | ofile=libtool | |
7960 | can_build_shared=yes | |
7961 | ||
7962 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
7963 | # which needs '.lib'). | |
7964 | libext=a | |
7965 | ||
7966 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
7967 | ||
7968 | old_CC="$CC" | |
7969 | old_CFLAGS="$CFLAGS" | |
7970 | ||
7971 | # Set sane defaults for various variables | |
7972 | test -z "$CC" && CC=cc | |
7973 | test -z "$LTCC" && LTCC=$CC | |
7974 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7975 | test -z "$LD" && LD=ld | |
7976 | test -z "$ac_objext" && ac_objext=o | |
7977 | ||
7978 | for cc_temp in $compiler""; do | |
7979 | case $cc_temp in | |
7980 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7981 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7982 | \-*) ;; | |
7983 | *) break;; | |
7984 | esac | |
7985 | done | |
b0322a85 | 7986 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
8d138742 CE |
7987 | |
7988 | ||
7989 | # Only perform the check for file, if the check method requires it | |
7990 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7991 | case $deplibs_check_method in | |
7992 | file_magic*) | |
7993 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
b0322a85 | 7994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
8d138742 | 7995 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
b0322a85 | 7996 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8d138742 CE |
7997 | $as_echo_n "(cached) " >&6 |
7998 | else | |
7999 | case $MAGIC_CMD in | |
8000 | [\\/*] | ?:[\\/]*) | |
8001 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8002 | ;; | |
8003 | *) | |
8004 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8005 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8006 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8007 | for ac_dir in $ac_dummy; do | |
8008 | IFS="$lt_save_ifs" | |
8009 | test -z "$ac_dir" && ac_dir=. | |
8010 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8011 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8012 | if test -n "$file_magic_test_file"; then | |
8013 | case $deplibs_check_method in | |
8014 | "file_magic "*) | |
8015 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8016 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8017 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8018 | $EGREP "$file_magic_regex" > /dev/null; then | |
8019 | : | |
8020 | else | |
8021 | cat <<_LT_EOF 1>&2 | |
8022 | ||
8023 | *** Warning: the command libtool uses to detect shared libraries, | |
8024 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8025 | *** The result is that libtool may fail to recognize shared libraries | |
8026 | *** as such. This will affect the creation of libtool libraries that | |
8027 | *** depend on shared libraries, but programs linked with such libtool | |
8028 | *** libraries will work regardless of this problem. Nevertheless, you | |
8029 | *** may want to report the problem to your system manager and/or to | |
8030 | *** bug-libtool@gnu.org | |
8031 | ||
8032 | _LT_EOF | |
8033 | fi ;; | |
8034 | esac | |
8035 | fi | |
8036 | break | |
ac40fd9e | 8037 | fi |
8038 | done | |
8d138742 CE |
8039 | IFS="$lt_save_ifs" |
8040 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8041 | ;; | |
8042 | esac | |
8043 | fi | |
8044 | ||
8045 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8046 | if test -n "$MAGIC_CMD"; then | |
b0322a85 | 8047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8d138742 | 8048 | $as_echo "$MAGIC_CMD" >&6; } |
d9898ee8 | 8049 | else |
b0322a85 | 8050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 8051 | $as_echo "no" >&6; } |
d9898ee8 | 8052 | fi |
d9898ee8 | 8053 | |
d9898ee8 | 8054 | |
d9898ee8 | 8055 | |
8d138742 CE |
8056 | |
8057 | ||
8058 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8059 | if test -n "$ac_tool_prefix"; then | |
b0322a85 | 8060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8d138742 | 8061 | $as_echo_n "checking for file... " >&6; } |
b0322a85 | 8062 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8d138742 CE |
8063 | $as_echo_n "(cached) " >&6 |
8064 | else | |
8065 | case $MAGIC_CMD in | |
8066 | [\\/*] | ?:[\\/]*) | |
8067 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
d9898ee8 | 8068 | ;; |
8d138742 CE |
8069 | *) |
8070 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8071 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8072 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8073 | for ac_dir in $ac_dummy; do | |
8074 | IFS="$lt_save_ifs" | |
8075 | test -z "$ac_dir" && ac_dir=. | |
8076 | if test -f $ac_dir/file; then | |
8077 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8078 | if test -n "$file_magic_test_file"; then | |
8079 | case $deplibs_check_method in | |
8080 | "file_magic "*) | |
8081 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8082 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8083 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8084 | $EGREP "$file_magic_regex" > /dev/null; then | |
8085 | : | |
8086 | else | |
8087 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8088 | |
8d138742 CE |
8089 | *** Warning: the command libtool uses to detect shared libraries, |
8090 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8091 | *** The result is that libtool may fail to recognize shared libraries | |
8092 | *** as such. This will affect the creation of libtool libraries that | |
8093 | *** depend on shared libraries, but programs linked with such libtool | |
8094 | *** libraries will work regardless of this problem. Nevertheless, you | |
8095 | *** may want to report the problem to your system manager and/or to | |
8096 | *** bug-libtool@gnu.org | |
8097 | ||
8098 | _LT_EOF | |
8099 | fi ;; | |
8100 | esac | |
d9898ee8 | 8101 | fi |
8d138742 | 8102 | break |
d9898ee8 | 8103 | fi |
8d138742 CE |
8104 | done |
8105 | IFS="$lt_save_ifs" | |
8106 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
d9898ee8 | 8107 | ;; |
8d138742 CE |
8108 | esac |
8109 | fi | |
d9898ee8 | 8110 | |
8d138742 CE |
8111 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8112 | if test -n "$MAGIC_CMD"; then | |
b0322a85 | 8113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8d138742 CE |
8114 | $as_echo "$MAGIC_CMD" >&6; } |
8115 | else | |
b0322a85 | 8116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
8117 | $as_echo "no" >&6; } |
8118 | fi | |
d9898ee8 | 8119 | |
d9898ee8 | 8120 | |
8d138742 CE |
8121 | else |
8122 | MAGIC_CMD=: | |
8123 | fi | |
8124 | fi | |
8125 | ||
8126 | fi | |
d9898ee8 | 8127 | ;; |
8d138742 | 8128 | esac |
d9898ee8 | 8129 | |
8d138742 | 8130 | # Use C for the default configuration in the libtool script |
d9898ee8 | 8131 | |
8d138742 CE |
8132 | lt_save_CC="$CC" |
8133 | ac_ext=c | |
8134 | ac_cpp='$CPP $CPPFLAGS' | |
8135 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8136 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8137 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 8138 | |
d9898ee8 | 8139 | |
8d138742 CE |
8140 | # Source file extension for C test sources. |
8141 | ac_ext=c | |
d9898ee8 | 8142 | |
8d138742 CE |
8143 | # Object file extension for compiled C test sources. |
8144 | objext=o | |
8145 | objext=$objext | |
ac40fd9e | 8146 | |
8d138742 CE |
8147 | # Code to be used in simple compile tests |
8148 | lt_simple_compile_test_code="int some_variable = 0;" | |
d9898ee8 | 8149 | |
8d138742 CE |
8150 | # Code to be used in simple link tests |
8151 | lt_simple_link_test_code='int main(){return(0);}' | |
d9898ee8 | 8152 | |
d9898ee8 | 8153 | |
d9898ee8 | 8154 | |
d9898ee8 | 8155 | |
d9898ee8 | 8156 | |
d9898ee8 | 8157 | |
d9898ee8 | 8158 | |
8d138742 CE |
8159 | # If no C compiler was specified, use CC. |
8160 | LTCC=${LTCC-"$CC"} | |
d9898ee8 | 8161 | |
8d138742 CE |
8162 | # If no C compiler flags were specified, use CFLAGS. |
8163 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d9898ee8 | 8164 | |
8d138742 CE |
8165 | # Allow CC to be a program name with arguments. |
8166 | compiler=$CC | |
d9898ee8 | 8167 | |
8d138742 CE |
8168 | # Save the default compiler, since it gets overwritten when the other |
8169 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8170 | compiler_DEFAULT=$CC | |
d9898ee8 | 8171 | |
8d138742 CE |
8172 | # save warnings/boilerplate of simple test code |
8173 | ac_outfile=conftest.$ac_objext | |
8174 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8175 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8176 | _lt_compiler_boilerplate=`cat conftest.err` | |
8177 | $RM conftest* | |
d9898ee8 | 8178 | |
8d138742 CE |
8179 | ac_outfile=conftest.$ac_objext |
8180 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8181 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8182 | _lt_linker_boilerplate=`cat conftest.err` | |
8183 | $RM -r conftest* | |
d9898ee8 | 8184 | |
d9898ee8 | 8185 | |
8d138742 | 8186 | if test -n "$compiler"; then |
d9898ee8 | 8187 | |
8d138742 | 8188 | lt_prog_compiler_no_builtin_flag= |
d9898ee8 | 8189 | |
8d138742 | 8190 | if test "$GCC" = yes; then |
b0322a85 CE |
8191 | case $cc_basename in |
8192 | nvcc*) | |
8193 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8194 | *) | |
8195 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8196 | esac | |
d9898ee8 | 8197 | |
b0322a85 | 8198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8d138742 | 8199 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
b0322a85 | 8200 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
8d138742 CE |
8201 | $as_echo_n "(cached) " >&6 |
8202 | else | |
8203 | lt_cv_prog_compiler_rtti_exceptions=no | |
8204 | ac_outfile=conftest.$ac_objext | |
8205 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8206 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8207 | # Insert the option either (1) after the last *FLAGS variable, or | |
8208 | # (2) before a word containing "conftest.", or (3) at the end. | |
8209 | # Note that $ac_compile itself does not contain backslashes and begins | |
8210 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8211 | # The option is referenced via a variable to avoid confusing sed. | |
8212 | lt_compile=`echo "$ac_compile" | $SED \ | |
8213 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8214 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8215 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8216 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8217 | (eval "$lt_compile" 2>conftest.err) |
8218 | ac_status=$? | |
8219 | cat conftest.err >&5 | |
b0322a85 | 8220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8221 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8222 | # The compiler can only warn and ignore the option if not recognized | |
8223 | # So say no if there are warnings other than the usual output. | |
b0322a85 | 8224 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
8d138742 CE |
8225 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8226 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8227 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8228 | fi | |
8229 | fi | |
8230 | $RM conftest* | |
d9898ee8 | 8231 | |
d9898ee8 | 8232 | fi |
b0322a85 | 8233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8d138742 | 8234 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 | 8235 | |
8d138742 CE |
8236 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
8237 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
d9898ee8 | 8238 | else |
8d138742 | 8239 | : |
d9898ee8 | 8240 | fi |
d9898ee8 | 8241 | |
d9898ee8 | 8242 | fi |
8243 | ||
d9898ee8 | 8244 | |
d9898ee8 | 8245 | |
d9898ee8 | 8246 | |
d9898ee8 | 8247 | |
d9898ee8 | 8248 | |
8d138742 CE |
8249 | lt_prog_compiler_wl= |
8250 | lt_prog_compiler_pic= | |
8251 | lt_prog_compiler_static= | |
d9898ee8 | 8252 | |
d9898ee8 | 8253 | |
8d138742 CE |
8254 | if test "$GCC" = yes; then |
8255 | lt_prog_compiler_wl='-Wl,' | |
8256 | lt_prog_compiler_static='-static' | |
dd184caf | 8257 | |
8d138742 CE |
8258 | case $host_os in |
8259 | aix*) | |
8260 | # All AIX code is PIC. | |
8261 | if test "$host_cpu" = ia64; then | |
8262 | # AIX 5 now supports IA64 processor | |
8263 | lt_prog_compiler_static='-Bstatic' | |
8264 | fi | |
8265 | ;; | |
d9898ee8 | 8266 | |
8d138742 CE |
8267 | amigaos*) |
8268 | case $host_cpu in | |
8269 | powerpc) | |
8270 | # see comment about AmigaOS4 .so support | |
8271 | lt_prog_compiler_pic='-fPIC' | |
8272 | ;; | |
8273 | m68k) | |
8274 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8275 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8276 | # like `-m68040'. | |
8277 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8278 | ;; | |
8279 | esac | |
8280 | ;; | |
d9898ee8 | 8281 | |
8d138742 CE |
8282 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8283 | # PIC is the default for these OSes. | |
8284 | ;; | |
d9898ee8 | 8285 | |
8d138742 CE |
8286 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
8287 | # This hack is so that the source file can tell whether it is being | |
8288 | # built for inclusion in a dll (and should export symbols for example). | |
8289 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8290 | # (--disable-auto-import) libraries | |
8291 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8292 | ;; | |
d9898ee8 | 8293 | |
8d138742 CE |
8294 | darwin* | rhapsody*) |
8295 | # PIC is the default on this platform | |
8296 | # Common symbols not allowed in MH_DYLIB files | |
8297 | lt_prog_compiler_pic='-fno-common' | |
8298 | ;; | |
d9898ee8 | 8299 | |
b0322a85 CE |
8300 | haiku*) |
8301 | # PIC is the default for Haiku. | |
8302 | # The "-static" flag exists, but is broken. | |
8303 | lt_prog_compiler_static= | |
8304 | ;; | |
8305 | ||
8d138742 CE |
8306 | hpux*) |
8307 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8308 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8309 | # sets the default TLS model and affects inlining. | |
8310 | case $host_cpu in | |
8311 | hppa*64*) | |
8312 | # +Z the default | |
8313 | ;; | |
8314 | *) | |
8315 | lt_prog_compiler_pic='-fPIC' | |
8316 | ;; | |
8317 | esac | |
8318 | ;; | |
d9898ee8 | 8319 | |
8d138742 CE |
8320 | interix[3-9]*) |
8321 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8322 | # Instead, we relocate shared libraries at runtime. | |
8323 | ;; | |
d9898ee8 | 8324 | |
8d138742 CE |
8325 | msdosdjgpp*) |
8326 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8327 | # on systems that don't support them. | |
8328 | lt_prog_compiler_can_build_shared=no | |
8329 | enable_shared=no | |
8330 | ;; | |
d9898ee8 | 8331 | |
8d138742 CE |
8332 | *nto* | *qnx*) |
8333 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8334 | # it will coredump. | |
8335 | lt_prog_compiler_pic='-fPIC -shared' | |
8336 | ;; | |
d9898ee8 | 8337 | |
8d138742 CE |
8338 | sysv4*MP*) |
8339 | if test -d /usr/nec; then | |
8340 | lt_prog_compiler_pic=-Kconform_pic | |
8341 | fi | |
8342 | ;; | |
d9898ee8 | 8343 | |
8d138742 CE |
8344 | *) |
8345 | lt_prog_compiler_pic='-fPIC' | |
8346 | ;; | |
8347 | esac | |
b0322a85 CE |
8348 | |
8349 | case $cc_basename in | |
8350 | nvcc*) # Cuda Compiler Driver 2.2 | |
8351 | lt_prog_compiler_wl='-Xlinker ' | |
8352 | if test -n "$lt_prog_compiler_pic"; then | |
8353 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
8354 | fi | |
8355 | ;; | |
8356 | esac | |
8d138742 CE |
8357 | else |
8358 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8359 | case $host_os in | |
8360 | aix*) | |
8361 | lt_prog_compiler_wl='-Wl,' | |
8362 | if test "$host_cpu" = ia64; then | |
8363 | # AIX 5 now supports IA64 processor | |
8364 | lt_prog_compiler_static='-Bstatic' | |
8365 | else | |
8366 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8367 | fi | |
8368 | ;; | |
dd184caf | 8369 | |
8d138742 CE |
8370 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
8371 | # This hack is so that the source file can tell whether it is being | |
8372 | # built for inclusion in a dll (and should export symbols for example). | |
8373 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8374 | ;; | |
d9898ee8 | 8375 | |
8d138742 CE |
8376 | hpux9* | hpux10* | hpux11*) |
8377 | lt_prog_compiler_wl='-Wl,' | |
8378 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8379 | # not for PA HP-UX. | |
8380 | case $host_cpu in | |
8381 | hppa*64*|ia64*) | |
8382 | # +Z the default | |
8383 | ;; | |
8384 | *) | |
8385 | lt_prog_compiler_pic='+Z' | |
8386 | ;; | |
8387 | esac | |
8388 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8389 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8390 | ;; | |
d9898ee8 | 8391 | |
8d138742 CE |
8392 | irix5* | irix6* | nonstopux*) |
8393 | lt_prog_compiler_wl='-Wl,' | |
8394 | # PIC (with -KPIC) is the default. | |
8395 | lt_prog_compiler_static='-non_shared' | |
8396 | ;; | |
dd184caf | 8397 | |
b0322a85 | 8398 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
8d138742 CE |
8399 | case $cc_basename in |
8400 | # old Intel for x86_64 which still supported -KPIC. | |
8401 | ecc*) | |
8402 | lt_prog_compiler_wl='-Wl,' | |
8403 | lt_prog_compiler_pic='-KPIC' | |
8404 | lt_prog_compiler_static='-static' | |
8405 | ;; | |
8406 | # icc used to be incompatible with GCC. | |
8407 | # ICC 10 doesn't accept -KPIC any more. | |
8408 | icc* | ifort*) | |
8409 | lt_prog_compiler_wl='-Wl,' | |
8410 | lt_prog_compiler_pic='-fPIC' | |
8411 | lt_prog_compiler_static='-static' | |
8412 | ;; | |
8413 | # Lahey Fortran 8.1. | |
8414 | lf95*) | |
8415 | lt_prog_compiler_wl='-Wl,' | |
8416 | lt_prog_compiler_pic='--shared' | |
8417 | lt_prog_compiler_static='--static' | |
8418 | ;; | |
b0322a85 CE |
8419 | nagfor*) |
8420 | # NAG Fortran compiler | |
8421 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8422 | lt_prog_compiler_pic='-PIC' | |
8423 | lt_prog_compiler_static='-Bstatic' | |
8424 | ;; | |
8425 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
8d138742 CE |
8426 | # Portland Group compilers (*not* the Pentium gcc compiler, |
8427 | # which looks to be a dead project) | |
8428 | lt_prog_compiler_wl='-Wl,' | |
8429 | lt_prog_compiler_pic='-fpic' | |
8430 | lt_prog_compiler_static='-Bstatic' | |
8431 | ;; | |
8432 | ccc*) | |
8433 | lt_prog_compiler_wl='-Wl,' | |
8434 | # All Alpha code is PIC. | |
8435 | lt_prog_compiler_static='-non_shared' | |
8436 | ;; | |
b0322a85 CE |
8437 | xl* | bgxl* | bgf* | mpixl*) |
8438 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8d138742 CE |
8439 | lt_prog_compiler_wl='-Wl,' |
8440 | lt_prog_compiler_pic='-qpic' | |
8441 | lt_prog_compiler_static='-qstaticlink' | |
8442 | ;; | |
8443 | *) | |
8444 | case `$CC -V 2>&1 | sed 5q` in | |
b0322a85 CE |
8445 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
8446 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8447 | lt_prog_compiler_pic='-KPIC' | |
8448 | lt_prog_compiler_static='-Bstatic' | |
8449 | lt_prog_compiler_wl='' | |
8450 | ;; | |
8451 | *Sun\ F* | *Sun*Fortran*) | |
8452 | lt_prog_compiler_pic='-KPIC' | |
8453 | lt_prog_compiler_static='-Bstatic' | |
8454 | lt_prog_compiler_wl='-Qoption ld ' | |
8455 | ;; | |
8d138742 CE |
8456 | *Sun\ C*) |
8457 | # Sun C 5.9 | |
8458 | lt_prog_compiler_pic='-KPIC' | |
8459 | lt_prog_compiler_static='-Bstatic' | |
8460 | lt_prog_compiler_wl='-Wl,' | |
8461 | ;; | |
b0322a85 CE |
8462 | *Intel*\ [CF]*Compiler*) |
8463 | lt_prog_compiler_wl='-Wl,' | |
8464 | lt_prog_compiler_pic='-fPIC' | |
8465 | lt_prog_compiler_static='-static' | |
8466 | ;; | |
8467 | *Portland\ Group*) | |
8468 | lt_prog_compiler_wl='-Wl,' | |
8469 | lt_prog_compiler_pic='-fpic' | |
8d138742 | 8470 | lt_prog_compiler_static='-Bstatic' |
8d138742 CE |
8471 | ;; |
8472 | esac | |
8473 | ;; | |
8474 | esac | |
8475 | ;; | |
d9898ee8 | 8476 | |
8d138742 CE |
8477 | newsos6) |
8478 | lt_prog_compiler_pic='-KPIC' | |
8479 | lt_prog_compiler_static='-Bstatic' | |
8480 | ;; | |
d9898ee8 | 8481 | |
8d138742 CE |
8482 | *nto* | *qnx*) |
8483 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8484 | # it will coredump. | |
8485 | lt_prog_compiler_pic='-fPIC -shared' | |
8486 | ;; | |
d9898ee8 | 8487 | |
8d138742 CE |
8488 | osf3* | osf4* | osf5*) |
8489 | lt_prog_compiler_wl='-Wl,' | |
8490 | # All OSF/1 code is PIC. | |
8491 | lt_prog_compiler_static='-non_shared' | |
8492 | ;; | |
d9898ee8 | 8493 | |
8d138742 CE |
8494 | rdos*) |
8495 | lt_prog_compiler_static='-non_shared' | |
8496 | ;; | |
d9898ee8 | 8497 | |
8d138742 CE |
8498 | solaris*) |
8499 | lt_prog_compiler_pic='-KPIC' | |
8500 | lt_prog_compiler_static='-Bstatic' | |
8501 | case $cc_basename in | |
b0322a85 | 8502 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
8d138742 CE |
8503 | lt_prog_compiler_wl='-Qoption ld ';; |
8504 | *) | |
8505 | lt_prog_compiler_wl='-Wl,';; | |
8506 | esac | |
8507 | ;; | |
d9898ee8 | 8508 | |
8d138742 CE |
8509 | sunos4*) |
8510 | lt_prog_compiler_wl='-Qoption ld ' | |
8511 | lt_prog_compiler_pic='-PIC' | |
8512 | lt_prog_compiler_static='-Bstatic' | |
8513 | ;; | |
dd184caf | 8514 | |
8d138742 CE |
8515 | sysv4 | sysv4.2uw2* | sysv4.3*) |
8516 | lt_prog_compiler_wl='-Wl,' | |
8517 | lt_prog_compiler_pic='-KPIC' | |
8518 | lt_prog_compiler_static='-Bstatic' | |
8519 | ;; | |
d9898ee8 | 8520 | |
8d138742 CE |
8521 | sysv4*MP*) |
8522 | if test -d /usr/nec ;then | |
8523 | lt_prog_compiler_pic='-Kconform_pic' | |
8524 | lt_prog_compiler_static='-Bstatic' | |
8525 | fi | |
8526 | ;; | |
8527 | ||
8528 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8529 | lt_prog_compiler_wl='-Wl,' | |
8530 | lt_prog_compiler_pic='-KPIC' | |
8531 | lt_prog_compiler_static='-Bstatic' | |
8532 | ;; | |
8533 | ||
8534 | unicos*) | |
8535 | lt_prog_compiler_wl='-Wl,' | |
8536 | lt_prog_compiler_can_build_shared=no | |
8537 | ;; | |
8538 | ||
8539 | uts4*) | |
8540 | lt_prog_compiler_pic='-pic' | |
8541 | lt_prog_compiler_static='-Bstatic' | |
8542 | ;; | |
8543 | ||
8544 | *) | |
8545 | lt_prog_compiler_can_build_shared=no | |
8546 | ;; | |
8547 | esac | |
8548 | fi | |
8549 | ||
8550 | case $host_os in | |
8551 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8552 | *djgpp*) | |
8553 | lt_prog_compiler_pic= | |
8554 | ;; | |
8555 | *) | |
8556 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8557 | ;; | |
dd184caf | 8558 | esac |
dd184caf | 8559 | |
b0322a85 CE |
8560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8561 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8562 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
8563 | $as_echo_n "(cached) " >&6 | |
8564 | else | |
8565 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
8566 | fi | |
8567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
8568 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
8569 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
d9898ee8 | 8570 | |
8d138742 CE |
8571 | # |
8572 | # Check to make sure the PIC flag actually works. | |
8573 | # | |
8574 | if test -n "$lt_prog_compiler_pic"; then | |
b0322a85 | 8575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8d138742 | 8576 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
b0322a85 | 8577 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
8d138742 | 8578 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 8579 | else |
8d138742 CE |
8580 | lt_cv_prog_compiler_pic_works=no |
8581 | ac_outfile=conftest.$ac_objext | |
8582 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8583 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8584 | # Insert the option either (1) after the last *FLAGS variable, or | |
8585 | # (2) before a word containing "conftest.", or (3) at the end. | |
8586 | # Note that $ac_compile itself does not contain backslashes and begins | |
8587 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8588 | # The option is referenced via a variable to avoid confusing sed. | |
8589 | lt_compile=`echo "$ac_compile" | $SED \ | |
8590 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8591 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8592 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8593 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8594 | (eval "$lt_compile" 2>conftest.err) |
8595 | ac_status=$? | |
8596 | cat conftest.err >&5 | |
b0322a85 | 8597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8598 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8599 | # The compiler can only warn and ignore the option if not recognized | |
8600 | # So say no if there are warnings other than the usual output. | |
b0322a85 | 8601 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
8d138742 CE |
8602 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8603 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8604 | lt_cv_prog_compiler_pic_works=yes | |
8605 | fi | |
8606 | fi | |
8607 | $RM conftest* | |
d9898ee8 | 8608 | |
d9898ee8 | 8609 | fi |
b0322a85 | 8610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8d138742 | 8611 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
dd184caf | 8612 | |
8d138742 CE |
8613 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
8614 | case $lt_prog_compiler_pic in | |
8615 | "" | " "*) ;; | |
8616 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8617 | esac | |
8618 | else | |
8619 | lt_prog_compiler_pic= | |
8620 | lt_prog_compiler_can_build_shared=no | |
d9898ee8 | 8621 | fi |
8622 | ||
d9898ee8 | 8623 | fi |
8624 | ||
8625 | ||
d9898ee8 | 8626 | |
8627 | ||
d9898ee8 | 8628 | |
8629 | ||
b0322a85 CE |
8630 | |
8631 | ||
8632 | ||
8633 | ||
8634 | ||
8d138742 CE |
8635 | # |
8636 | # Check to make sure the static flag actually works. | |
8637 | # | |
8638 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
b0322a85 | 8639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8d138742 | 8640 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
b0322a85 | 8641 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
8d138742 CE |
8642 | $as_echo_n "(cached) " >&6 |
8643 | else | |
8644 | lt_cv_prog_compiler_static_works=no | |
8645 | save_LDFLAGS="$LDFLAGS" | |
8646 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8647 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8648 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8649 | # The linker can only warn and ignore the option if not recognized | |
8650 | # So say no if there are warnings | |
8651 | if test -s conftest.err; then | |
8652 | # Append any errors to the config.log. | |
8653 | cat conftest.err 1>&5 | |
b0322a85 | 8654 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
8d138742 CE |
8655 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8656 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8657 | lt_cv_prog_compiler_static_works=yes | |
8658 | fi | |
8659 | else | |
8660 | lt_cv_prog_compiler_static_works=yes | |
8661 | fi | |
8662 | fi | |
8663 | $RM -r conftest* | |
8664 | LDFLAGS="$save_LDFLAGS" | |
d9898ee8 | 8665 | |
8d138742 | 8666 | fi |
b0322a85 | 8667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8d138742 | 8668 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
d9898ee8 | 8669 | |
8d138742 CE |
8670 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
8671 | : | |
8672 | else | |
8673 | lt_prog_compiler_static= | |
d9898ee8 | 8674 | fi |
8675 | ||
d9898ee8 | 8676 | |
d9898ee8 | 8677 | |
d9898ee8 | 8678 | |
d9898ee8 | 8679 | |
d9898ee8 | 8680 | |
8d138742 | 8681 | |
b0322a85 | 8682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8d138742 | 8683 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
b0322a85 | 8684 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
8d138742 | 8685 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 8686 | else |
8d138742 CE |
8687 | lt_cv_prog_compiler_c_o=no |
8688 | $RM -r conftest 2>/dev/null | |
8689 | mkdir conftest | |
8690 | cd conftest | |
8691 | mkdir out | |
8692 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 8693 | |
8d138742 CE |
8694 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8695 | # Insert the option either (1) after the last *FLAGS variable, or | |
8696 | # (2) before a word containing "conftest.", or (3) at the end. | |
8697 | # Note that $ac_compile itself does not contain backslashes and begins | |
8698 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8699 | lt_compile=`echo "$ac_compile" | $SED \ | |
8700 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8701 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8702 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8703 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8704 | (eval "$lt_compile" 2>out/conftest.err) |
8705 | ac_status=$? | |
8706 | cat out/conftest.err >&5 | |
b0322a85 | 8707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8708 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8709 | then | |
8710 | # The compiler can only warn and ignore the option if not recognized | |
8711 | # So say no if there are warnings | |
b0322a85 | 8712 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
8d138742 CE |
8713 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8714 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8715 | lt_cv_prog_compiler_c_o=yes | |
8716 | fi | |
8717 | fi | |
8718 | chmod u+w . 2>&5 | |
8719 | $RM conftest* | |
8720 | # SGI C++ compiler will create directory out/ii_files/ for | |
8721 | # template instantiation | |
8722 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8723 | $RM out/* && rmdir out | |
8724 | cd .. | |
8725 | $RM -r conftest | |
8726 | $RM conftest* | |
d9898ee8 | 8727 | |
8d138742 | 8728 | fi |
b0322a85 | 8729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8d138742 | 8730 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
d9898ee8 | 8731 | |
d9898ee8 | 8732 | |
d9898ee8 | 8733 | |
d9898ee8 | 8734 | |
d9898ee8 | 8735 | |
d9898ee8 | 8736 | |
b0322a85 | 8737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8d138742 | 8738 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
b0322a85 | 8739 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
8d138742 CE |
8740 | $as_echo_n "(cached) " >&6 |
8741 | else | |
8742 | lt_cv_prog_compiler_c_o=no | |
8743 | $RM -r conftest 2>/dev/null | |
8744 | mkdir conftest | |
8745 | cd conftest | |
8746 | mkdir out | |
8747 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 8748 | |
8d138742 CE |
8749 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8750 | # Insert the option either (1) after the last *FLAGS variable, or | |
8751 | # (2) before a word containing "conftest.", or (3) at the end. | |
8752 | # Note that $ac_compile itself does not contain backslashes and begins | |
8753 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8754 | lt_compile=`echo "$ac_compile" | $SED \ | |
8755 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8756 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8757 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8758 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8759 | (eval "$lt_compile" 2>out/conftest.err) |
8760 | ac_status=$? | |
8761 | cat out/conftest.err >&5 | |
b0322a85 | 8762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8763 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8764 | then | |
8765 | # The compiler can only warn and ignore the option if not recognized | |
8766 | # So say no if there are warnings | |
b0322a85 | 8767 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
8d138742 CE |
8768 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8769 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8770 | lt_cv_prog_compiler_c_o=yes | |
8771 | fi | |
8772 | fi | |
8773 | chmod u+w . 2>&5 | |
8774 | $RM conftest* | |
8775 | # SGI C++ compiler will create directory out/ii_files/ for | |
8776 | # template instantiation | |
8777 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8778 | $RM out/* && rmdir out | |
8779 | cd .. | |
8780 | $RM -r conftest | |
8781 | $RM conftest* | |
d9898ee8 | 8782 | |
8783 | fi | |
b0322a85 | 8784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8d138742 | 8785 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
d9898ee8 | 8786 | |
d9898ee8 | 8787 | |
d9898ee8 | 8788 | |
d9898ee8 | 8789 | |
8d138742 CE |
8790 | hard_links="nottested" |
8791 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8792 | # do not overwrite the value of need_locks provided by the user | |
b0322a85 | 8793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8d138742 CE |
8794 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
8795 | hard_links=yes | |
8796 | $RM conftest* | |
8797 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8798 | touch conftest.a | |
8799 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8800 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
b0322a85 | 8801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8d138742 CE |
8802 | $as_echo "$hard_links" >&6; } |
8803 | if test "$hard_links" = no; then | |
b0322a85 | 8804 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
8d138742 CE |
8805 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
8806 | need_locks=warn | |
8807 | fi | |
8808 | else | |
8809 | need_locks=no | |
8810 | fi | |
d9898ee8 | 8811 | |
d9898ee8 | 8812 | |
d9898ee8 | 8813 | |
d9898ee8 | 8814 | |
d9898ee8 | 8815 | |
d9898ee8 | 8816 | |
b0322a85 | 8817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8d138742 | 8818 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
d9898ee8 | 8819 | |
8d138742 CE |
8820 | runpath_var= |
8821 | allow_undefined_flag= | |
8822 | always_export_symbols=no | |
8823 | archive_cmds= | |
8824 | archive_expsym_cmds= | |
8825 | compiler_needs_object=no | |
8826 | enable_shared_with_static_runtimes=no | |
8827 | export_dynamic_flag_spec= | |
8828 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8829 | hardcode_automatic=no | |
8830 | hardcode_direct=no | |
8831 | hardcode_direct_absolute=no | |
8832 | hardcode_libdir_flag_spec= | |
8d138742 CE |
8833 | hardcode_libdir_separator= |
8834 | hardcode_minus_L=no | |
8835 | hardcode_shlibpath_var=unsupported | |
8836 | inherit_rpath=no | |
8837 | link_all_deplibs=unknown | |
8838 | module_cmds= | |
8839 | module_expsym_cmds= | |
8840 | old_archive_from_new_cmds= | |
8841 | old_archive_from_expsyms_cmds= | |
8842 | thread_safe_flag_spec= | |
8843 | whole_archive_flag_spec= | |
8844 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8845 | # included in the symbol list | |
8846 | include_expsyms= | |
8847 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8848 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8849 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8850 | # as well as any symbol that contains `d'. | |
8851 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
8852 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
8853 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8854 | # the symbol is explicitly referenced. Since portable code cannot | |
8855 | # rely on this symbol name, it's probably fine to never include it in | |
8856 | # preloaded symbol tables. | |
8857 | # Exclude shared library initialization/finalization symbols. | |
8858 | extract_expsyms_cmds= | |
d9898ee8 | 8859 | |
8d138742 CE |
8860 | case $host_os in |
8861 | cygwin* | mingw* | pw32* | cegcc*) | |
8862 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
8863 | # When not using gcc, we currently assume that we are using | |
8864 | # Microsoft Visual C++. | |
8865 | if test "$GCC" != yes; then | |
8866 | with_gnu_ld=no | |
8867 | fi | |
8868 | ;; | |
8869 | interix*) | |
8870 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8871 | with_gnu_ld=yes | |
8872 | ;; | |
8873 | openbsd*) | |
8874 | with_gnu_ld=no | |
d9898ee8 | 8875 | ;; |
8876 | esac | |
8877 | ||
8d138742 | 8878 | ld_shlibs=yes |
b0322a85 CE |
8879 | |
8880 | # On some targets, GNU ld is compatible enough with the native linker | |
8881 | # that we're better off using the native interface for both. | |
8882 | lt_use_gnu_ld_interface=no | |
8d138742 | 8883 | if test "$with_gnu_ld" = yes; then |
b0322a85 CE |
8884 | case $host_os in |
8885 | aix*) | |
8886 | # The AIX port of GNU ld has always aspired to compatibility | |
8887 | # with the native linker. However, as the warning in the GNU ld | |
8888 | # block says, versions before 2.19.5* couldn't really create working | |
8889 | # shared libraries, regardless of the interface used. | |
8890 | case `$LD -v 2>&1` in | |
8891 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
8892 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
8893 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
8894 | *) | |
8895 | lt_use_gnu_ld_interface=yes | |
8896 | ;; | |
8897 | esac | |
8898 | ;; | |
8899 | *) | |
8900 | lt_use_gnu_ld_interface=yes | |
8901 | ;; | |
8902 | esac | |
8903 | fi | |
8904 | ||
8905 | if test "$lt_use_gnu_ld_interface" = yes; then | |
8d138742 CE |
8906 | # If archive_cmds runs LD, not CC, wlarc should be empty |
8907 | wlarc='${wl}' | |
d9898ee8 | 8908 | |
8d138742 CE |
8909 | # Set some defaults for GNU ld with shared library support. These |
8910 | # are reset later if shared libraries are not supported. Putting them | |
8911 | # here allows them to be overridden if necessary. | |
8912 | runpath_var=LD_RUN_PATH | |
8913 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8914 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8915 | # ancient GNU ld didn't support --whole-archive et. al. | |
8916 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8917 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8918 | else | |
8919 | whole_archive_flag_spec= | |
8920 | fi | |
8921 | supports_anon_versioning=no | |
8922 | case `$LD -v 2>&1` in | |
b0322a85 | 8923 | *GNU\ gold*) supports_anon_versioning=yes ;; |
8d138742 CE |
8924 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
8925 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8926 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8927 | *\ 2.11.*) ;; # other 2.11 versions | |
8928 | *) supports_anon_versioning=yes ;; | |
8929 | esac | |
d9898ee8 | 8930 | |
8d138742 CE |
8931 | # See if GNU ld supports shared libraries. |
8932 | case $host_os in | |
8933 | aix[3-9]*) | |
8934 | # On AIX/PPC, the GNU linker is very broken | |
8935 | if test "$host_cpu" != ia64; then | |
8936 | ld_shlibs=no | |
8937 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8938 | |
b0322a85 | 8939 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
8d138742 CE |
8940 | *** to be unable to reliably create shared libraries on AIX. |
8941 | *** Therefore, libtool is disabling shared libraries support. If you | |
b0322a85 CE |
8942 | *** really care for shared libraries, you may want to install binutils |
8943 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
8944 | *** You will then need to restart the configuration process. | |
d9898ee8 | 8945 | |
8d138742 CE |
8946 | _LT_EOF |
8947 | fi | |
8948 | ;; | |
d9898ee8 | 8949 | |
8d138742 CE |
8950 | amigaos*) |
8951 | case $host_cpu in | |
8952 | powerpc) | |
8953 | # see comment about AmigaOS4 .so support | |
8954 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8955 | archive_expsym_cmds='' | |
8956 | ;; | |
8957 | m68k) | |
8958 | 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)' | |
8959 | hardcode_libdir_flag_spec='-L$libdir' | |
8960 | hardcode_minus_L=yes | |
8961 | ;; | |
8962 | esac | |
d9898ee8 | 8963 | ;; |
8d138742 CE |
8964 | |
8965 | beos*) | |
8966 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8967 | allow_undefined_flag=unsupported | |
8968 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8969 | # support --undefined. This deserves some investigation. FIXME | |
8970 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8971 | else | |
8972 | ld_shlibs=no | |
8973 | fi | |
d9898ee8 | 8974 | ;; |
d9898ee8 | 8975 | |
8d138742 CE |
8976 | cygwin* | mingw* | pw32* | cegcc*) |
8977 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
8978 | # as there is no search path for DLLs. | |
8979 | hardcode_libdir_flag_spec='-L$libdir' | |
b0322a85 | 8980 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
8d138742 CE |
8981 | allow_undefined_flag=unsupported |
8982 | always_export_symbols=no | |
8983 | enable_shared_with_static_runtimes=yes | |
b0322a85 CE |
8984 | 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' |
8985 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
d9898ee8 | 8986 | |
8d138742 CE |
8987 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
8988 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8989 | # If the export-symbols file already is a .def file (1st line | |
8990 | # is EXPORTS), use it as is; otherwise, prepend... | |
8991 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8992 | cp $export_symbols $output_objdir/$soname.def; | |
8993 | else | |
8994 | echo EXPORTS > $output_objdir/$soname.def; | |
8995 | cat $export_symbols >> $output_objdir/$soname.def; | |
8996 | fi~ | |
8997 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8998 | else | |
8999 | ld_shlibs=no | |
9000 | fi | |
9001 | ;; | |
d9898ee8 | 9002 | |
b0322a85 CE |
9003 | haiku*) |
9004 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9005 | link_all_deplibs=yes | |
9006 | ;; | |
9007 | ||
8d138742 CE |
9008 | interix[3-9]*) |
9009 | hardcode_direct=no | |
9010 | hardcode_shlibpath_var=no | |
9011 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9012 | export_dynamic_flag_spec='${wl}-E' | |
9013 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9014 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9015 | # default) and relocated if they conflict, which is a slow very memory | |
9016 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9017 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9018 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9019 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9020 | 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' | |
9021 | ;; | |
d9898ee8 | 9022 | |
b0322a85 | 9023 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
8d138742 CE |
9024 | tmp_diet=no |
9025 | if test "$host_os" = linux-dietlibc; then | |
9026 | case $cc_basename in | |
9027 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9028 | esac | |
9029 | fi | |
9030 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9031 | && test "$tmp_diet" = no | |
9032 | then | |
b0322a85 | 9033 | tmp_addflag=' $pic_flag' |
8d138742 CE |
9034 | tmp_sharedflag='-shared' |
9035 | case $cc_basename,$host_cpu in | |
9036 | pgcc*) # Portland Group C compiler | |
b0322a85 | 9037 | 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' |
8d138742 CE |
9038 | tmp_addflag=' $pic_flag' |
9039 | ;; | |
b0322a85 CE |
9040 | pgf77* | pgf90* | pgf95* | pgfortran*) |
9041 | # Portland Group f77 and f90 compilers | |
9042 | 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' | |
8d138742 CE |
9043 | tmp_addflag=' $pic_flag -Mnomain' ;; |
9044 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9045 | tmp_addflag=' -i_dynamic' ;; | |
9046 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9047 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9048 | ifc* | ifort*) # Intel Fortran compiler | |
9049 | tmp_addflag=' -nofor_main' ;; | |
9050 | lf95*) # Lahey Fortran 8.1 | |
9051 | whole_archive_flag_spec= | |
9052 | tmp_sharedflag='--shared' ;; | |
b0322a85 | 9053 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
8d138742 CE |
9054 | tmp_sharedflag='-qmkshrobj' |
9055 | tmp_addflag= ;; | |
b0322a85 CE |
9056 | nvcc*) # Cuda Compiler Driver 2.2 |
9057 | 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' | |
9058 | compiler_needs_object=yes | |
9059 | ;; | |
8d138742 CE |
9060 | esac |
9061 | case `$CC -V 2>&1 | sed 5q` in | |
9062 | *Sun\ C*) # Sun C 5.9 | |
b0322a85 | 9063 | 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' |
8d138742 CE |
9064 | compiler_needs_object=yes |
9065 | tmp_sharedflag='-G' ;; | |
9066 | *Sun\ F*) # Sun Fortran 8.3 | |
9067 | tmp_sharedflag='-G' ;; | |
9068 | esac | |
9069 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
d9898ee8 | 9070 | |
8d138742 CE |
9071 | if test "x$supports_anon_versioning" = xyes; then |
9072 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9073 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9074 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9075 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9076 | fi | |
d9898ee8 | 9077 | |
8d138742 | 9078 | case $cc_basename in |
b0322a85 | 9079 | xlf* | bgf* | bgxlf* | mpixlf*) |
8d138742 CE |
9080 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
9081 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
b0322a85 CE |
9082 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9083 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
8d138742 CE |
9084 | if test "x$supports_anon_versioning" = xyes; then |
9085 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9086 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9087 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
b0322a85 | 9088 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
8d138742 CE |
9089 | fi |
9090 | ;; | |
9091 | esac | |
9092 | else | |
9093 | ld_shlibs=no | |
9094 | fi | |
9095 | ;; | |
d9898ee8 | 9096 | |
8d138742 CE |
9097 | netbsd*) |
9098 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9099 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9100 | wlarc= | |
9101 | else | |
b0322a85 CE |
9102 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9103 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8d138742 CE |
9104 | fi |
9105 | ;; | |
d9898ee8 | 9106 | |
8d138742 CE |
9107 | solaris*) |
9108 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9109 | ld_shlibs=no | |
9110 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 9111 | |
8d138742 CE |
9112 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
9113 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9114 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9115 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9116 | *** your PATH or compiler configuration so that the native linker is | |
9117 | *** used, and then restart. | |
d9898ee8 | 9118 | |
8d138742 CE |
9119 | _LT_EOF |
9120 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
b0322a85 CE |
9121 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9122 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8d138742 CE |
9123 | else |
9124 | ld_shlibs=no | |
9125 | fi | |
9126 | ;; | |
d9898ee8 | 9127 | |
8d138742 CE |
9128 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
9129 | case `$LD -v 2>&1` in | |
9130 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9131 | ld_shlibs=no | |
9132 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 9133 | |
8d138742 CE |
9134 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
9135 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9136 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9137 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9138 | *** your PATH or compiler configuration so that the native linker is | |
9139 | *** used, and then restart. | |
d9898ee8 | 9140 | |
8d138742 CE |
9141 | _LT_EOF |
9142 | ;; | |
9143 | *) | |
9144 | # For security reasons, it is highly recommended that you always | |
9145 | # use absolute paths for naming shared libraries, and exclude the | |
9146 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9147 | # requires that you compile everything twice, which is a pain. | |
9148 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9149 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9150 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9151 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9152 | else | |
9153 | ld_shlibs=no | |
9154 | fi | |
9155 | ;; | |
9156 | esac | |
9157 | ;; | |
d9898ee8 | 9158 | |
8d138742 CE |
9159 | sunos4*) |
9160 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9161 | wlarc= | |
9162 | hardcode_direct=yes | |
9163 | hardcode_shlibpath_var=no | |
9164 | ;; | |
d9898ee8 | 9165 | |
8d138742 CE |
9166 | *) |
9167 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
b0322a85 CE |
9168 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9169 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8d138742 CE |
9170 | else |
9171 | ld_shlibs=no | |
9172 | fi | |
9173 | ;; | |
9174 | esac | |
d9898ee8 | 9175 | |
8d138742 CE |
9176 | if test "$ld_shlibs" = no; then |
9177 | runpath_var= | |
9178 | hardcode_libdir_flag_spec= | |
9179 | export_dynamic_flag_spec= | |
9180 | whole_archive_flag_spec= | |
9181 | fi | |
9182 | else | |
9183 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9184 | case $host_os in | |
9185 | aix3*) | |
9186 | allow_undefined_flag=unsupported | |
9187 | always_export_symbols=yes | |
9188 | 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' | |
9189 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9190 | # are no directories specified by -L. | |
9191 | hardcode_minus_L=yes | |
9192 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9193 | # Neither direct hardcoding nor static linking is supported with a | |
9194 | # broken collect2. | |
9195 | hardcode_direct=unsupported | |
9196 | fi | |
9197 | ;; | |
d9898ee8 | 9198 | |
8d138742 CE |
9199 | aix[4-9]*) |
9200 | if test "$host_cpu" = ia64; then | |
9201 | # On IA64, the linker does run time linking by default, so we don't | |
9202 | # have to do anything special. | |
9203 | aix_use_runtimelinking=no | |
9204 | exp_sym_flag='-Bexport' | |
9205 | no_entry_flag="" | |
9206 | else | |
9207 | # If we're using GNU nm, then we don't want the "-C" option. | |
9208 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
b0322a85 CE |
9209 | # Also, AIX nm treats weak defined symbols like other global |
9210 | # defined symbols, whereas GNU nm marks them as "W". | |
8d138742 | 9211 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
b0322a85 | 9212 | 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' |
8d138742 CE |
9213 | else |
9214 | 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' | |
9215 | fi | |
9216 | aix_use_runtimelinking=no | |
d9898ee8 | 9217 | |
8d138742 CE |
9218 | # Test if we are trying to use run time linking or normal |
9219 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9220 | # need to do runtime linking. | |
9221 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
9222 | for ld_flag in $LDFLAGS; do | |
9223 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9224 | aix_use_runtimelinking=yes | |
9225 | break | |
9226 | fi | |
9227 | done | |
9228 | ;; | |
9229 | esac | |
d9898ee8 | 9230 | |
8d138742 CE |
9231 | exp_sym_flag='-bexport' |
9232 | no_entry_flag='-bnoentry' | |
9233 | fi | |
d9898ee8 | 9234 | |
8d138742 CE |
9235 | # When large executables or shared objects are built, AIX ld can |
9236 | # have problems creating the table of contents. If linking a library | |
9237 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9238 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9239 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
d9898ee8 | 9240 | |
8d138742 CE |
9241 | archive_cmds='' |
9242 | hardcode_direct=yes | |
9243 | hardcode_direct_absolute=yes | |
9244 | hardcode_libdir_separator=':' | |
9245 | link_all_deplibs=yes | |
9246 | file_list_spec='${wl}-f,' | |
d9898ee8 | 9247 | |
8d138742 CE |
9248 | if test "$GCC" = yes; then |
9249 | case $host_os in aix4.[012]|aix4.[012].*) | |
9250 | # We only want to do this on AIX 4.2 and lower, the check | |
9251 | # below for broken collect2 doesn't work under 4.3+ | |
9252 | collect2name=`${CC} -print-prog-name=collect2` | |
9253 | if test -f "$collect2name" && | |
9254 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9255 | then | |
9256 | # We have reworked collect2 | |
9257 | : | |
9258 | else | |
9259 | # We have old collect2 | |
9260 | hardcode_direct=unsupported | |
9261 | # It fails to find uninstalled libraries when the uninstalled | |
9262 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9263 | # to unsupported forces relinking | |
9264 | hardcode_minus_L=yes | |
9265 | hardcode_libdir_flag_spec='-L$libdir' | |
9266 | hardcode_libdir_separator= | |
9267 | fi | |
9268 | ;; | |
9269 | esac | |
9270 | shared_flag='-shared' | |
9271 | if test "$aix_use_runtimelinking" = yes; then | |
9272 | shared_flag="$shared_flag "'${wl}-G' | |
9273 | fi | |
9274 | else | |
9275 | # not using gcc | |
9276 | if test "$host_cpu" = ia64; then | |
9277 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9278 | # chokes on -Wl,-G. The following line is correct: | |
9279 | shared_flag='-G' | |
9280 | else | |
9281 | if test "$aix_use_runtimelinking" = yes; then | |
9282 | shared_flag='${wl}-G' | |
9283 | else | |
9284 | shared_flag='${wl}-bM:SRE' | |
9285 | fi | |
9286 | fi | |
9287 | fi | |
d9898ee8 | 9288 | |
8d138742 CE |
9289 | export_dynamic_flag_spec='${wl}-bexpall' |
9290 | # It seems that -bexpall does not export symbols beginning with | |
9291 | # underscore (_), so it is better to generate a list of symbols to export. | |
9292 | always_export_symbols=yes | |
9293 | if test "$aix_use_runtimelinking" = yes; then | |
9294 | # Warning - without using the other runtime loading flags (-brtl), | |
9295 | # -berok will link without error, but may produce a broken library. | |
9296 | allow_undefined_flag='-berok' | |
9297 | # Determine the default libpath from the value encoded in an | |
9298 | # empty executable. | |
b0322a85 CE |
9299 | if test "${lt_cv_aix_libpath+set}" = set; then |
9300 | aix_libpath=$lt_cv_aix_libpath | |
9301 | else | |
9302 | if ${lt_cv_aix_libpath_+:} false; then : | |
9303 | $as_echo_n "(cached) " >&6 | |
9304 | else | |
9305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 9306 | /* end confdefs.h. */ |
d9898ee8 | 9307 | |
8d138742 CE |
9308 | int |
9309 | main () | |
9310 | { | |
d9898ee8 | 9311 | |
8d138742 CE |
9312 | ; |
9313 | return 0; | |
9314 | } | |
9315 | _ACEOF | |
b0322a85 | 9316 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 9317 | |
b0322a85 CE |
9318 | lt_aix_libpath_sed=' |
9319 | /Import File Strings/,/^$/ { | |
9320 | /^0/ { | |
9321 | s/^0 *\([^ ]*\) *$/\1/ | |
9322 | p | |
9323 | } | |
9324 | }' | |
9325 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9326 | # Check for a 64-bit object if we didn't find anything. | |
9327 | if test -z "$lt_cv_aix_libpath_"; then | |
9328 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9329 | fi | |
9330 | fi | |
9331 | rm -f core conftest.err conftest.$ac_objext \ | |
9332 | conftest$ac_exeext conftest.$ac_ext | |
9333 | if test -z "$lt_cv_aix_libpath_"; then | |
9334 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
9335 | fi | |
d9898ee8 | 9336 | |
8d138742 | 9337 | fi |
d9898ee8 | 9338 | |
b0322a85 CE |
9339 | aix_libpath=$lt_cv_aix_libpath_ |
9340 | fi | |
d9898ee8 | 9341 | |
8d138742 | 9342 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
b0322a85 | 9343 | 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" |
8d138742 CE |
9344 | else |
9345 | if test "$host_cpu" = ia64; then | |
9346 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9347 | allow_undefined_flag="-z nodefs" | |
9348 | 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" | |
9349 | else | |
9350 | # Determine the default libpath from the value encoded in an | |
9351 | # empty executable. | |
b0322a85 CE |
9352 | if test "${lt_cv_aix_libpath+set}" = set; then |
9353 | aix_libpath=$lt_cv_aix_libpath | |
9354 | else | |
9355 | if ${lt_cv_aix_libpath_+:} false; then : | |
9356 | $as_echo_n "(cached) " >&6 | |
9357 | else | |
9358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 9359 | /* end confdefs.h. */ |
d9898ee8 | 9360 | |
8d138742 CE |
9361 | int |
9362 | main () | |
9363 | { | |
d9898ee8 | 9364 | |
8d138742 CE |
9365 | ; |
9366 | return 0; | |
9367 | } | |
9368 | _ACEOF | |
b0322a85 | 9369 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 9370 | |
b0322a85 CE |
9371 | lt_aix_libpath_sed=' |
9372 | /Import File Strings/,/^$/ { | |
9373 | /^0/ { | |
9374 | s/^0 *\([^ ]*\) *$/\1/ | |
9375 | p | |
9376 | } | |
9377 | }' | |
9378 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9379 | # Check for a 64-bit object if we didn't find anything. | |
9380 | if test -z "$lt_cv_aix_libpath_"; then | |
9381 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9382 | fi | |
9383 | fi | |
9384 | rm -f core conftest.err conftest.$ac_objext \ | |
9385 | conftest$ac_exeext conftest.$ac_ext | |
9386 | if test -z "$lt_cv_aix_libpath_"; then | |
9387 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
9388 | fi | |
d9898ee8 | 9389 | |
8d138742 | 9390 | fi |
d9898ee8 | 9391 | |
b0322a85 CE |
9392 | aix_libpath=$lt_cv_aix_libpath_ |
9393 | fi | |
d9898ee8 | 9394 | |
8d138742 CE |
9395 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9396 | # Warning - without using the other run time loading flags, | |
9397 | # -berok will link without error, but may produce a broken library. | |
9398 | no_undefined_flag=' ${wl}-bernotok' | |
9399 | allow_undefined_flag=' ${wl}-berok' | |
b0322a85 CE |
9400 | if test "$with_gnu_ld" = yes; then |
9401 | # We only use this code for GNU lds that support --whole-archive. | |
9402 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
9403 | else | |
9404 | # Exported symbols can be pulled into shared objects from archives | |
9405 | whole_archive_flag_spec='$convenience' | |
9406 | fi | |
8d138742 CE |
9407 | archive_cmds_need_lc=yes |
9408 | # This is similar to how AIX traditionally builds its shared libraries. | |
9409 | 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' | |
9410 | fi | |
9411 | fi | |
9412 | ;; | |
d9898ee8 | 9413 | |
8d138742 CE |
9414 | amigaos*) |
9415 | case $host_cpu in | |
9416 | powerpc) | |
9417 | # see comment about AmigaOS4 .so support | |
9418 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9419 | archive_expsym_cmds='' | |
9420 | ;; | |
9421 | m68k) | |
9422 | 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)' | |
9423 | hardcode_libdir_flag_spec='-L$libdir' | |
9424 | hardcode_minus_L=yes | |
9425 | ;; | |
9426 | esac | |
9427 | ;; | |
d9898ee8 | 9428 | |
8d138742 CE |
9429 | bsdi[45]*) |
9430 | export_dynamic_flag_spec=-rdynamic | |
9431 | ;; | |
d9898ee8 | 9432 | |
8d138742 CE |
9433 | cygwin* | mingw* | pw32* | cegcc*) |
9434 | # When not using gcc, we currently assume that we are using | |
9435 | # Microsoft Visual C++. | |
9436 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9437 | # no search path for DLLs. | |
b0322a85 CE |
9438 | case $cc_basename in |
9439 | cl*) | |
9440 | # Native MSVC | |
9441 | hardcode_libdir_flag_spec=' ' | |
9442 | allow_undefined_flag=unsupported | |
9443 | always_export_symbols=yes | |
9444 | file_list_spec='@' | |
9445 | # Tell ltmain to make .lib files, not .a files. | |
9446 | libext=lib | |
9447 | # Tell ltmain to make .dll files, not .so files. | |
9448 | shrext_cmds=".dll" | |
9449 | # FIXME: Setting linknames here is a bad hack. | |
9450 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
9451 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9452 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
9453 | else | |
9454 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
9455 | fi~ | |
9456 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
9457 | linknames=' | |
9458 | # The linker will not automatically build a static lib if we build a DLL. | |
9459 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
9460 | enable_shared_with_static_runtimes=yes | |
9461 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
9462 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9463 | # Don't use ranlib | |
9464 | old_postinstall_cmds='chmod 644 $oldlib' | |
9465 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
9466 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
9467 | case $lt_outputfile in | |
9468 | *.exe|*.EXE) ;; | |
9469 | *) | |
9470 | lt_outputfile="$lt_outputfile.exe" | |
9471 | lt_tool_outputfile="$lt_tool_outputfile.exe" | |
9472 | ;; | |
9473 | esac~ | |
9474 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
9475 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
9476 | $RM "$lt_outputfile.manifest"; | |
9477 | fi' | |
9478 | ;; | |
9479 | *) | |
9480 | # Assume MSVC wrapper | |
9481 | hardcode_libdir_flag_spec=' ' | |
9482 | allow_undefined_flag=unsupported | |
9483 | # Tell ltmain to make .lib files, not .a files. | |
9484 | libext=lib | |
9485 | # Tell ltmain to make .dll files, not .so files. | |
9486 | shrext_cmds=".dll" | |
9487 | # FIXME: Setting linknames here is a bad hack. | |
9488 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9489 | # The linker will automatically build a .lib file if we build a DLL. | |
9490 | old_archive_from_new_cmds='true' | |
9491 | # FIXME: Should let the user specify the lib program. | |
9492 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9493 | enable_shared_with_static_runtimes=yes | |
9494 | ;; | |
9495 | esac | |
8d138742 | 9496 | ;; |
d9898ee8 | 9497 | |
8d138742 | 9498 | darwin* | rhapsody*) |
d9898ee8 | 9499 | |
d9898ee8 | 9500 | |
8d138742 CE |
9501 | archive_cmds_need_lc=no |
9502 | hardcode_direct=no | |
9503 | hardcode_automatic=yes | |
9504 | hardcode_shlibpath_var=unsupported | |
b0322a85 CE |
9505 | if test "$lt_cv_ld_force_load" = "yes"; then |
9506 | 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\"`' | |
9507 | ||
9508 | else | |
9509 | whole_archive_flag_spec='' | |
9510 | fi | |
8d138742 CE |
9511 | link_all_deplibs=yes |
9512 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9513 | case $cc_basename in | |
9514 | ifort*) _lt_dar_can_shared=yes ;; | |
9515 | *) _lt_dar_can_shared=$GCC ;; | |
9516 | esac | |
9517 | if test "$_lt_dar_can_shared" = "yes"; then | |
b0322a85 | 9518 | output_verbose_link_cmd=func_echo_all |
8d138742 CE |
9519 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
9520 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9521 | 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}" | |
9522 | 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}" | |
d9898ee8 | 9523 | |
8d138742 CE |
9524 | else |
9525 | ld_shlibs=no | |
9526 | fi | |
d9898ee8 | 9527 | |
8d138742 | 9528 | ;; |
d9898ee8 | 9529 | |
8d138742 CE |
9530 | dgux*) |
9531 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9532 | hardcode_libdir_flag_spec='-L$libdir' | |
9533 | hardcode_shlibpath_var=no | |
9534 | ;; | |
d9898ee8 | 9535 | |
8d138742 CE |
9536 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9537 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9538 | # does not break anything, and helps significantly (at the cost of a little | |
9539 | # extra space). | |
9540 | freebsd2.2*) | |
9541 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9542 | hardcode_libdir_flag_spec='-R$libdir' | |
9543 | hardcode_direct=yes | |
9544 | hardcode_shlibpath_var=no | |
9545 | ;; | |
d9898ee8 | 9546 | |
8d138742 | 9547 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
b0322a85 | 9548 | freebsd2.*) |
8d138742 CE |
9549 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9550 | hardcode_direct=yes | |
9551 | hardcode_minus_L=yes | |
9552 | hardcode_shlibpath_var=no | |
9553 | ;; | |
d9898ee8 | 9554 | |
8d138742 CE |
9555 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
9556 | freebsd* | dragonfly*) | |
b0322a85 | 9557 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9558 | hardcode_libdir_flag_spec='-R$libdir' |
9559 | hardcode_direct=yes | |
9560 | hardcode_shlibpath_var=no | |
9561 | ;; | |
d9898ee8 | 9562 | |
8d138742 CE |
9563 | hpux9*) |
9564 | if test "$GCC" = yes; then | |
b0322a85 | 9565 | 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' |
8d138742 CE |
9566 | else |
9567 | 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' | |
9568 | fi | |
9569 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9570 | hardcode_libdir_separator=: | |
9571 | hardcode_direct=yes | |
d9898ee8 | 9572 | |
8d138742 CE |
9573 | # hardcode_minus_L: Not really in the search PATH, |
9574 | # but as the default location of the library. | |
9575 | hardcode_minus_L=yes | |
9576 | export_dynamic_flag_spec='${wl}-E' | |
9577 | ;; | |
d9898ee8 | 9578 | |
8d138742 | 9579 | hpux10*) |
b0322a85 CE |
9580 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
9581 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 CE |
9582 | else |
9583 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9584 | fi | |
9585 | if test "$with_gnu_ld" = no; then | |
9586 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8d138742 CE |
9587 | hardcode_libdir_separator=: |
9588 | hardcode_direct=yes | |
9589 | hardcode_direct_absolute=yes | |
9590 | export_dynamic_flag_spec='${wl}-E' | |
9591 | # hardcode_minus_L: Not really in the search PATH, | |
9592 | # but as the default location of the library. | |
9593 | hardcode_minus_L=yes | |
9594 | fi | |
9595 | ;; | |
d9898ee8 | 9596 | |
8d138742 | 9597 | hpux11*) |
b0322a85 | 9598 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
8d138742 CE |
9599 | case $host_cpu in |
9600 | hppa*64*) | |
9601 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9602 | ;; | |
9603 | ia64*) | |
b0322a85 | 9604 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9605 | ;; |
9606 | *) | |
b0322a85 | 9607 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9608 | ;; |
9609 | esac | |
9610 | else | |
9611 | case $host_cpu in | |
9612 | hppa*64*) | |
9613 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9614 | ;; | |
9615 | ia64*) | |
9616 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9617 | ;; | |
9618 | *) | |
b0322a85 CE |
9619 | |
9620 | # Older versions of the 11.00 compiler do not understand -b yet | |
9621 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9623 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
9624 | if ${lt_cv_prog_compiler__b+:} false; then : | |
9625 | $as_echo_n "(cached) " >&6 | |
9626 | else | |
9627 | lt_cv_prog_compiler__b=no | |
9628 | save_LDFLAGS="$LDFLAGS" | |
9629 | LDFLAGS="$LDFLAGS -b" | |
9630 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9631 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9632 | # The linker can only warn and ignore the option if not recognized | |
9633 | # So say no if there are warnings | |
9634 | if test -s conftest.err; then | |
9635 | # Append any errors to the config.log. | |
9636 | cat conftest.err 1>&5 | |
9637 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9638 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9639 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9640 | lt_cv_prog_compiler__b=yes | |
9641 | fi | |
9642 | else | |
9643 | lt_cv_prog_compiler__b=yes | |
9644 | fi | |
9645 | fi | |
9646 | $RM -r conftest* | |
9647 | LDFLAGS="$save_LDFLAGS" | |
9648 | ||
9649 | fi | |
9650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9651 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9652 | ||
9653 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
9654 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9655 | else | |
9656 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9657 | fi | |
9658 | ||
8d138742 CE |
9659 | ;; |
9660 | esac | |
9661 | fi | |
9662 | if test "$with_gnu_ld" = no; then | |
9663 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9664 | hardcode_libdir_separator=: | |
d9898ee8 | 9665 | |
8d138742 CE |
9666 | case $host_cpu in |
9667 | hppa*64*|ia64*) | |
9668 | hardcode_direct=no | |
9669 | hardcode_shlibpath_var=no | |
9670 | ;; | |
9671 | *) | |
9672 | hardcode_direct=yes | |
9673 | hardcode_direct_absolute=yes | |
9674 | export_dynamic_flag_spec='${wl}-E' | |
d9898ee8 | 9675 | |
8d138742 CE |
9676 | # hardcode_minus_L: Not really in the search PATH, |
9677 | # but as the default location of the library. | |
9678 | hardcode_minus_L=yes | |
9679 | ;; | |
9680 | esac | |
9681 | fi | |
9682 | ;; | |
d9898ee8 | 9683 | |
8d138742 CE |
9684 | irix5* | irix6* | nonstopux*) |
9685 | if test "$GCC" = yes; then | |
b0322a85 | 9686 | 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' |
8d138742 CE |
9687 | # Try to use the -exported_symbol ld option, if it does not |
9688 | # work, assume that -exports_file does not work either and | |
9689 | # implicitly export all symbols. | |
b0322a85 CE |
9690 | # This should be the same for all languages, so no per-tag cache variable. |
9691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
9692 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
9693 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
9694 | $as_echo_n "(cached) " >&6 | |
9695 | else | |
9696 | save_LDFLAGS="$LDFLAGS" | |
9697 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9699 | /* end confdefs.h. */ | |
9700 | int foo (void) { return 0; } | |
8d138742 | 9701 | _ACEOF |
b0322a85 CE |
9702 | if ac_fn_c_try_link "$LINENO"; then : |
9703 | lt_cv_irix_exported_symbol=yes | |
8d138742 | 9704 | else |
b0322a85 | 9705 | lt_cv_irix_exported_symbol=no |
8d138742 | 9706 | fi |
b0322a85 CE |
9707 | rm -f core conftest.err conftest.$ac_objext \ |
9708 | conftest$ac_exeext conftest.$ac_ext | |
9709 | LDFLAGS="$save_LDFLAGS" | |
9710 | fi | |
9711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
9712 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
9713 | if test "$lt_cv_irix_exported_symbol" = yes; then | |
9714 | 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' | |
9715 | fi | |
8d138742 | 9716 | else |
b0322a85 CE |
9717 | 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' |
9718 | 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' | |
8d138742 CE |
9719 | fi |
9720 | archive_cmds_need_lc='no' | |
9721 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9722 | hardcode_libdir_separator=: | |
9723 | inherit_rpath=yes | |
9724 | link_all_deplibs=yes | |
9725 | ;; | |
d9898ee8 | 9726 | |
8d138742 CE |
9727 | netbsd*) |
9728 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9729 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9730 | else | |
9731 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9732 | fi | |
9733 | hardcode_libdir_flag_spec='-R$libdir' | |
9734 | hardcode_direct=yes | |
9735 | hardcode_shlibpath_var=no | |
9736 | ;; | |
d9898ee8 | 9737 | |
8d138742 CE |
9738 | newsos6) |
9739 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9740 | hardcode_direct=yes | |
9741 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9742 | hardcode_libdir_separator=: | |
9743 | hardcode_shlibpath_var=no | |
9744 | ;; | |
d9898ee8 | 9745 | |
8d138742 CE |
9746 | *nto* | *qnx*) |
9747 | ;; | |
d9898ee8 | 9748 | |
8d138742 CE |
9749 | openbsd*) |
9750 | if test -f /usr/libexec/ld.so; then | |
9751 | hardcode_direct=yes | |
9752 | hardcode_shlibpath_var=no | |
9753 | hardcode_direct_absolute=yes | |
9754 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9755 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9756 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
9757 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9758 | export_dynamic_flag_spec='${wl}-E' | |
9759 | else | |
9760 | case $host_os in | |
9761 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9762 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9763 | hardcode_libdir_flag_spec='-R$libdir' | |
9764 | ;; | |
9765 | *) | |
9766 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9767 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9768 | ;; | |
9769 | esac | |
9770 | fi | |
9771 | else | |
9772 | ld_shlibs=no | |
9773 | fi | |
9774 | ;; | |
d9898ee8 | 9775 | |
8d138742 CE |
9776 | os2*) |
9777 | hardcode_libdir_flag_spec='-L$libdir' | |
9778 | hardcode_minus_L=yes | |
9779 | allow_undefined_flag=unsupported | |
b0322a85 | 9780 | 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' |
8d138742 CE |
9781 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
9782 | ;; | |
d9898ee8 | 9783 | |
8d138742 CE |
9784 | osf3*) |
9785 | if test "$GCC" = yes; then | |
9786 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
b0322a85 | 9787 | 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' |
8d138742 CE |
9788 | else |
9789 | allow_undefined_flag=' -expect_unresolved \*' | |
b0322a85 | 9790 | 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' |
8d138742 CE |
9791 | fi |
9792 | archive_cmds_need_lc='no' | |
9793 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9794 | hardcode_libdir_separator=: | |
9795 | ;; | |
d9898ee8 | 9796 | |
8d138742 CE |
9797 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
9798 | if test "$GCC" = yes; then | |
9799 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
b0322a85 | 9800 | 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' |
8d138742 CE |
9801 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9802 | else | |
9803 | allow_undefined_flag=' -expect_unresolved \*' | |
b0322a85 | 9804 | 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' |
8d138742 | 9805 | 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~ |
b0322a85 | 9806 | $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' |
d9898ee8 | 9807 | |
8d138742 CE |
9808 | # Both c and cxx compiler support -rpath directly |
9809 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9810 | fi | |
9811 | archive_cmds_need_lc='no' | |
9812 | hardcode_libdir_separator=: | |
9813 | ;; | |
d9898ee8 | 9814 | |
8d138742 CE |
9815 | solaris*) |
9816 | no_undefined_flag=' -z defs' | |
9817 | if test "$GCC" = yes; then | |
9818 | wlarc='${wl}' | |
b0322a85 | 9819 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 | 9820 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
b0322a85 | 9821 | $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' |
8d138742 CE |
9822 | else |
9823 | case `$CC -V 2>&1` in | |
9824 | *"Compilers 5.0"*) | |
9825 | wlarc='' | |
9826 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9827 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9828 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9829 | ;; | |
9830 | *) | |
9831 | wlarc='${wl}' | |
9832 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9833 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9834 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9835 | ;; | |
9836 | esac | |
9837 | fi | |
9838 | hardcode_libdir_flag_spec='-R$libdir' | |
9839 | hardcode_shlibpath_var=no | |
9840 | case $host_os in | |
9841 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9842 | *) | |
9843 | # The compiler driver will combine and reorder linker options, | |
9844 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9845 | # but is careful enough not to reorder. | |
9846 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9847 | if test "$GCC" = yes; then | |
9848 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9849 | else | |
9850 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9851 | fi | |
9852 | ;; | |
9853 | esac | |
9854 | link_all_deplibs=yes | |
9855 | ;; | |
d9898ee8 | 9856 | |
8d138742 CE |
9857 | sunos4*) |
9858 | if test "x$host_vendor" = xsequent; then | |
9859 | # Use $CC to link under sequent, because it throws in some extra .o | |
9860 | # files that make .init and .fini sections work. | |
9861 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9862 | else | |
9863 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9864 | fi | |
9865 | hardcode_libdir_flag_spec='-L$libdir' | |
9866 | hardcode_direct=yes | |
9867 | hardcode_minus_L=yes | |
9868 | hardcode_shlibpath_var=no | |
9869 | ;; | |
d9898ee8 | 9870 | |
8d138742 CE |
9871 | sysv4) |
9872 | case $host_vendor in | |
9873 | sni) | |
9874 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9875 | hardcode_direct=yes # is this really true??? | |
9876 | ;; | |
9877 | siemens) | |
9878 | ## LD is ld it makes a PLAMLIB | |
9879 | ## CC just makes a GrossModule. | |
9880 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9881 | reload_cmds='$CC -r -o $output$reload_objs' | |
9882 | hardcode_direct=no | |
9883 | ;; | |
9884 | motorola) | |
9885 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9886 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9887 | ;; | |
9888 | esac | |
9889 | runpath_var='LD_RUN_PATH' | |
9890 | hardcode_shlibpath_var=no | |
9891 | ;; | |
d9898ee8 | 9892 | |
8d138742 CE |
9893 | sysv4.3*) |
9894 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9895 | hardcode_shlibpath_var=no | |
9896 | export_dynamic_flag_spec='-Bexport' | |
9897 | ;; | |
d9898ee8 | 9898 | |
8d138742 CE |
9899 | sysv4*MP*) |
9900 | if test -d /usr/nec; then | |
9901 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9902 | hardcode_shlibpath_var=no | |
9903 | runpath_var=LD_RUN_PATH | |
9904 | hardcode_runpath_var=yes | |
9905 | ld_shlibs=yes | |
9906 | fi | |
9907 | ;; | |
d9898ee8 | 9908 | |
8d138742 CE |
9909 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
9910 | no_undefined_flag='${wl}-z,text' | |
9911 | archive_cmds_need_lc=no | |
9912 | hardcode_shlibpath_var=no | |
9913 | runpath_var='LD_RUN_PATH' | |
d9898ee8 | 9914 | |
8d138742 CE |
9915 | if test "$GCC" = yes; then |
9916 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9917 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9918 | else | |
9919 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9920 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9921 | fi | |
9922 | ;; | |
d9898ee8 | 9923 | |
8d138742 CE |
9924 | sysv5* | sco3.2v5* | sco5v6*) |
9925 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9926 | # link with -lc, and that would cause any symbols used from libc to | |
9927 | # always be unresolved, which means just about no library would | |
9928 | # ever link correctly. If we're not using GNU ld we use -z text | |
9929 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9930 | # as -z defs. | |
9931 | no_undefined_flag='${wl}-z,text' | |
9932 | allow_undefined_flag='${wl}-z,nodefs' | |
9933 | archive_cmds_need_lc=no | |
9934 | hardcode_shlibpath_var=no | |
9935 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9936 | hardcode_libdir_separator=':' | |
9937 | link_all_deplibs=yes | |
9938 | export_dynamic_flag_spec='${wl}-Bexport' | |
9939 | runpath_var='LD_RUN_PATH' | |
d9898ee8 | 9940 | |
8d138742 CE |
9941 | if test "$GCC" = yes; then |
9942 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9943 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9944 | else | |
9945 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9946 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9947 | fi | |
9948 | ;; | |
d9898ee8 | 9949 | |
8d138742 CE |
9950 | uts4*) |
9951 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9952 | hardcode_libdir_flag_spec='-L$libdir' | |
9953 | hardcode_shlibpath_var=no | |
9954 | ;; | |
d9898ee8 | 9955 | |
8d138742 CE |
9956 | *) |
9957 | ld_shlibs=no | |
9958 | ;; | |
9959 | esac | |
d9898ee8 | 9960 | |
8d138742 CE |
9961 | if test x$host_vendor = xsni; then |
9962 | case $host in | |
9963 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9964 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9965 | ;; | |
9966 | esac | |
9967 | fi | |
9968 | fi | |
d9898ee8 | 9969 | |
b0322a85 | 9970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
8d138742 CE |
9971 | $as_echo "$ld_shlibs" >&6; } |
9972 | test "$ld_shlibs" = no && can_build_shared=no | |
d9898ee8 | 9973 | |
8d138742 | 9974 | with_gnu_ld=$with_gnu_ld |
d9898ee8 | 9975 | |
9976 | ||
d9898ee8 | 9977 | |
d9898ee8 | 9978 | |
d9898ee8 | 9979 | |
d9898ee8 | 9980 | |
d9898ee8 | 9981 | |
9982 | ||
d9898ee8 | 9983 | |
d9898ee8 | 9984 | |
9985 | ||
dd184caf | 9986 | |
d9898ee8 | 9987 | |
d9898ee8 | 9988 | |
d9898ee8 | 9989 | |
8d138742 CE |
9990 | # |
9991 | # Do we need to explicitly link libc? | |
9992 | # | |
9993 | case "x$archive_cmds_need_lc" in | |
9994 | x|xyes) | |
9995 | # Assume -lc should be added | |
9996 | archive_cmds_need_lc=yes | |
d9898ee8 | 9997 | |
8d138742 CE |
9998 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
9999 | case $archive_cmds in | |
10000 | *'~'*) | |
10001 | # FIXME: we may have to deal with multi-command sequences. | |
10002 | ;; | |
10003 | '$CC '*) | |
10004 | # Test whether the compiler implicitly links with -lc since on some | |
10005 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10006 | # to ld, don't add -lc before -lgcc. | |
b0322a85 | 10007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
8d138742 | 10008 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
b0322a85 CE |
10009 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
10010 | $as_echo_n "(cached) " >&6 | |
10011 | else | |
10012 | $RM conftest* | |
10013 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8d138742 | 10014 | |
b0322a85 | 10015 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
10016 | (eval $ac_compile) 2>&5 |
10017 | ac_status=$? | |
b0322a85 CE |
10018 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10019 | test $ac_status = 0; } 2>conftest.err; then | |
10020 | soname=conftest | |
10021 | lib=conftest | |
10022 | libobjs=conftest.$ac_objext | |
10023 | deplibs= | |
10024 | wl=$lt_prog_compiler_wl | |
10025 | pic_flag=$lt_prog_compiler_pic | |
10026 | compiler_flags=-v | |
10027 | linker_flags=-v | |
10028 | verstring= | |
10029 | output_objdir=. | |
10030 | libname=conftest | |
10031 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10032 | allow_undefined_flag= | |
10033 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
8d138742 CE |
10034 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
10035 | ac_status=$? | |
b0322a85 CE |
10036 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10037 | test $ac_status = 0; } | |
10038 | then | |
10039 | lt_cv_archive_cmds_need_lc=no | |
10040 | else | |
10041 | lt_cv_archive_cmds_need_lc=yes | |
10042 | fi | |
10043 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10044 | else | |
10045 | cat conftest.err 1>&5 | |
10046 | fi | |
10047 | $RM conftest* | |
10048 | ||
10049 | fi | |
10050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10051 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10052 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
8d138742 | 10053 | ;; |
d9898ee8 | 10054 | esac |
8d138742 CE |
10055 | fi |
10056 | ;; | |
10057 | esac | |
d9898ee8 | 10058 | |
d9898ee8 | 10059 | |
d9898ee8 | 10060 | |
d9898ee8 | 10061 | |
d9898ee8 | 10062 | |
d9898ee8 | 10063 | |
d9898ee8 | 10064 | |
d9898ee8 | 10065 | |
d9898ee8 | 10066 | |
10067 | ||
d9898ee8 | 10068 | |
d9898ee8 | 10069 | |
10070 | ||
d9898ee8 | 10071 | |
10072 | ||
d9898ee8 | 10073 | |
d9898ee8 | 10074 | |
10075 | ||
dd184caf | 10076 | |
d9898ee8 | 10077 | |
d9898ee8 | 10078 | |
10079 | ||
10080 | ||
d9898ee8 | 10081 | |
d9898ee8 | 10082 | |
d9898ee8 | 10083 | |
d9898ee8 | 10084 | |
d9898ee8 | 10085 | |
d9898ee8 | 10086 | |
d9898ee8 | 10087 | |
d9898ee8 | 10088 | |
d9898ee8 | 10089 | |
d9898ee8 | 10090 | |
d9898ee8 | 10091 | |
d9898ee8 | 10092 | |
d9898ee8 | 10093 | |
dd184caf | 10094 | |
dd184caf | 10095 | |
d9898ee8 | 10096 | |
d9898ee8 | 10097 | |
d9898ee8 | 10098 | |
d9898ee8 | 10099 | |
d9898ee8 | 10100 | |
d9898ee8 | 10101 | |
dd184caf | 10102 | |
dd184caf | 10103 | |
d9898ee8 | 10104 | |
d9898ee8 | 10105 | |
d9898ee8 | 10106 | |
d9898ee8 | 10107 | |
d9898ee8 | 10108 | |
d9898ee8 | 10109 | |
d9898ee8 | 10110 | |
d9898ee8 | 10111 | |
d9898ee8 | 10112 | |
d9898ee8 | 10113 | |
d9898ee8 | 10114 | |
d9898ee8 | 10115 | |
d9898ee8 | 10116 | |
d9898ee8 | 10117 | |
d9898ee8 | 10118 | |
d9898ee8 | 10119 | |
d9898ee8 | 10120 | |
d9898ee8 | 10121 | |
d9898ee8 | 10122 | |
d9898ee8 | 10123 | |
d9898ee8 | 10124 | |
d9898ee8 | 10125 | |
d9898ee8 | 10126 | |
d9898ee8 | 10127 | |
10128 | ||
d9898ee8 | 10129 | |
d9898ee8 | 10130 | |
d9898ee8 | 10131 | |
d9898ee8 | 10132 | |
d9898ee8 | 10133 | |
d9898ee8 | 10134 | |
d9898ee8 | 10135 | |
d9898ee8 | 10136 | |
d9898ee8 | 10137 | |
ac40fd9e | 10138 | |
ac40fd9e | 10139 | |
d9898ee8 | 10140 | |
10141 | ||
d9898ee8 | 10142 | |
d9898ee8 | 10143 | |
d9898ee8 | 10144 | |
d9898ee8 | 10145 | |
d9898ee8 | 10146 | |
d9898ee8 | 10147 | |
d9898ee8 | 10148 | |
d9898ee8 | 10149 | |
d9898ee8 | 10150 | |
d9898ee8 | 10151 | |
d9898ee8 | 10152 | |
d9898ee8 | 10153 | |
d9898ee8 | 10154 | |
d9898ee8 | 10155 | |
10156 | ||
d9898ee8 | 10157 | |
d9898ee8 | 10158 | |
d9898ee8 | 10159 | |
10160 | ||
d9898ee8 | 10161 | |
d9898ee8 | 10162 | |
d9898ee8 | 10163 | |
d9898ee8 | 10164 | |
d9898ee8 | 10165 | |
d9898ee8 | 10166 | |
d9898ee8 | 10167 | |
ac40fd9e | 10168 | |
d9898ee8 | 10169 | |
d9898ee8 | 10170 | |
d9898ee8 | 10171 | |
d9898ee8 | 10172 | |
d9898ee8 | 10173 | |
d9898ee8 | 10174 | |
d9898ee8 | 10175 | |
8d138742 CE |
10176 | |
10177 | ||
10178 | ||
10179 | ||
10180 | ||
10181 | ||
10182 | ||
10183 | ||
10184 | ||
10185 | ||
10186 | ||
10187 | ||
10188 | ||
10189 | ||
10190 | ||
10191 | ||
10192 | ||
10193 | ||
10194 | ||
10195 | ||
10196 | ||
10197 | ||
10198 | ||
10199 | ||
10200 | ||
10201 | ||
10202 | ||
10203 | ||
10204 | ||
10205 | ||
10206 | ||
10207 | ||
10208 | ||
10209 | ||
b0322a85 | 10210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
8d138742 CE |
10211 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
10212 | ||
10213 | if test "$GCC" = yes; then | |
10214 | case $host_os in | |
10215 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10216 | *) lt_awk_arg="/^libraries:/" ;; | |
10217 | esac | |
b0322a85 CE |
10218 | case $host_os in |
10219 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10220 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10221 | esac | |
10222 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10223 | case $lt_search_path_spec in | |
10224 | *\;*) | |
8d138742 CE |
10225 | # if the path contains ";" then we assume it to be the separator |
10226 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10227 | # assumed that no part of a normal pathname contains ";" but that should | |
10228 | # okay in the real world where ";" in dirpaths is itself problematic. | |
b0322a85 CE |
10229 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
10230 | ;; | |
10231 | *) | |
10232 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10233 | ;; | |
10234 | esac | |
8d138742 CE |
10235 | # Ok, now we have the path, separated by spaces, we can step through it |
10236 | # and add multilib dir if necessary. | |
10237 | lt_tmp_lt_search_path_spec= | |
10238 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10239 | for lt_sys_path in $lt_search_path_spec; do | |
10240 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10241 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10242 | else | |
10243 | test -d "$lt_sys_path" && \ | |
10244 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10245 | fi | |
10246 | done | |
b0322a85 | 10247 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
8d138742 CE |
10248 | BEGIN {RS=" "; FS="/|\n";} { |
10249 | lt_foo=""; | |
10250 | lt_count=0; | |
10251 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10252 | if ($lt_i != "" && $lt_i != ".") { | |
10253 | if ($lt_i == "..") { | |
10254 | lt_count++; | |
10255 | } else { | |
10256 | if (lt_count == 0) { | |
10257 | lt_foo="/" $lt_i lt_foo; | |
10258 | } else { | |
10259 | lt_count--; | |
10260 | } | |
10261 | } | |
10262 | } | |
10263 | } | |
10264 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10265 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10266 | }'` | |
b0322a85 CE |
10267 | # AWK program above erroneously prepends '/' to C:/dos/paths |
10268 | # for these hosts. | |
10269 | case $host_os in | |
10270 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10271 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10272 | esac | |
10273 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
8d138742 CE |
10274 | else |
10275 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10276 | fi | |
10277 | library_names_spec= | |
10278 | libname_spec='lib$name' | |
10279 | soname_spec= | |
10280 | shrext_cmds=".so" | |
10281 | postinstall_cmds= | |
10282 | postuninstall_cmds= | |
10283 | finish_cmds= | |
10284 | finish_eval= | |
10285 | shlibpath_var= | |
10286 | shlibpath_overrides_runpath=unknown | |
10287 | version_type=none | |
10288 | dynamic_linker="$host_os ld.so" | |
10289 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10290 | need_lib_prefix=unknown | |
10291 | hardcode_into_libs=no | |
10292 | ||
10293 | # when you set need_version to no, make sure it does not cause -set_version | |
10294 | # flags to be left without arguments | |
10295 | need_version=unknown | |
10296 | ||
10297 | case $host_os in | |
10298 | aix3*) | |
b0322a85 | 10299 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 CE |
10300 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
10301 | shlibpath_var=LIBPATH | |
10302 | ||
10303 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10304 | soname_spec='${libname}${release}${shared_ext}$major' | |
10305 | ;; | |
10306 | ||
10307 | aix[4-9]*) | |
b0322a85 | 10308 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 CE |
10309 | need_lib_prefix=no |
10310 | need_version=no | |
10311 | hardcode_into_libs=yes | |
10312 | if test "$host_cpu" = ia64; then | |
10313 | # AIX 5 supports IA64 | |
10314 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10315 | shlibpath_var=LD_LIBRARY_PATH | |
10316 | else | |
10317 | # With GCC up to 2.95.x, collect2 would create an import file | |
10318 | # for dependence libraries. The import file would start with | |
10319 | # the line `#! .'. This would cause the generated library to | |
10320 | # depend on `.', always an invalid library. This was fixed in | |
10321 | # development snapshots of GCC prior to 3.0. | |
10322 | case $host_os in | |
10323 | aix4 | aix4.[01] | aix4.[01].*) | |
10324 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10325 | echo ' yes ' | |
10326 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10327 | : | |
10328 | else | |
10329 | can_build_shared=no | |
10330 | fi | |
10331 | ;; | |
10332 | esac | |
10333 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10334 | # soname into executable. Probably we can add versioning support to | |
10335 | # collect2, so additional links can be useful in future. | |
10336 | if test "$aix_use_runtimelinking" = yes; then | |
10337 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10338 | # instead of lib<name>.a to let people know that these are not | |
10339 | # typical AIX shared libraries. | |
10340 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10341 | else | |
10342 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10343 | # and later when we are not doing run time linking. | |
10344 | library_names_spec='${libname}${release}.a $libname.a' | |
10345 | soname_spec='${libname}${release}${shared_ext}$major' | |
10346 | fi | |
10347 | shlibpath_var=LIBPATH | |
10348 | fi | |
10349 | ;; | |
10350 | ||
10351 | amigaos*) | |
10352 | case $host_cpu in | |
10353 | powerpc) | |
10354 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10355 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10356 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10357 | ;; | |
10358 | m68k) | |
10359 | library_names_spec='$libname.ixlibrary $libname.a' | |
10360 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
b0322a85 | 10361 | 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' |
8d138742 CE |
10362 | ;; |
10363 | esac | |
10364 | ;; | |
10365 | ||
10366 | beos*) | |
10367 | library_names_spec='${libname}${shared_ext}' | |
10368 | dynamic_linker="$host_os ld.so" | |
10369 | shlibpath_var=LIBRARY_PATH | |
10370 | ;; | |
10371 | ||
10372 | bsdi[45]*) | |
b0322a85 | 10373 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 | 10374 | need_version=no |
d9898ee8 | 10375 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10376 | soname_spec='${libname}${release}${shared_ext}$major' | |
10377 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10378 | shlibpath_var=LD_LIBRARY_PATH | |
10379 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10380 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10381 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10382 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10383 | # libtool to hard-code these into programs | |
10384 | ;; | |
10385 | ||
8d138742 | 10386 | cygwin* | mingw* | pw32* | cegcc*) |
d9898ee8 | 10387 | version_type=windows |
10388 | shrext_cmds=".dll" | |
10389 | need_version=no | |
10390 | need_lib_prefix=no | |
10391 | ||
b0322a85 CE |
10392 | case $GCC,$cc_basename in |
10393 | yes,*) | |
10394 | # gcc | |
d9898ee8 | 10395 | library_names_spec='$libname.dll.a' |
10396 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10397 | postinstall_cmds='base_file=`basename \${file}`~ | |
8d138742 | 10398 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
d9898ee8 | 10399 | dldir=$destdir/`dirname \$dlpath`~ |
10400 | test -d \$dldir || mkdir -p \$dldir~ | |
10401 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8d138742 CE |
10402 | chmod a+x \$dldir/$dlname~ |
10403 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10404 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10405 | fi' | |
d9898ee8 | 10406 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
10407 | dlpath=$dir/\$dldll~ | |
8d138742 | 10408 | $RM \$dlpath' |
d9898ee8 | 10409 | shlibpath_overrides_runpath=yes |
10410 | ||
10411 | case $host_os in | |
10412 | cygwin*) | |
10413 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10414 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
b0322a85 CE |
10415 | |
10416 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
d9898ee8 | 10417 | ;; |
8d138742 | 10418 | mingw* | cegcc*) |
d9898ee8 | 10419 | # MinGW DLLs use traditional 'lib' prefix |
10420 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
d9898ee8 | 10421 | ;; |
10422 | pw32*) | |
10423 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10424 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10425 | ;; | |
10426 | esac | |
b0322a85 | 10427 | dynamic_linker='Win32 ld.exe' |
d9898ee8 | 10428 | ;; |
10429 | ||
b0322a85 CE |
10430 | *,cl*) |
10431 | # Native MSVC | |
10432 | libname_spec='$name' | |
10433 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10434 | library_names_spec='${libname}.dll.lib' | |
10435 | ||
10436 | case $build_os in | |
10437 | mingw*) | |
10438 | sys_lib_search_path_spec= | |
10439 | lt_save_ifs=$IFS | |
10440 | IFS=';' | |
10441 | for lt_path in $LIB | |
10442 | do | |
10443 | IFS=$lt_save_ifs | |
10444 | # Let DOS variable expansion print the short 8.3 style file name. | |
10445 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
10446 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
10447 | done | |
10448 | IFS=$lt_save_ifs | |
10449 | # Convert to MSYS style. | |
10450 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
10451 | ;; | |
10452 | cygwin*) | |
10453 | # Convert to unix form, then to dos form, then back to unix form | |
10454 | # but this time dos style (no spaces!) so that the unix form looks | |
10455 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
10456 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
10457 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
10458 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10459 | ;; | |
10460 | *) | |
10461 | sys_lib_search_path_spec="$LIB" | |
10462 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
10463 | # It is most probably a Windows format PATH. | |
10464 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10465 | else | |
10466 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10467 | fi | |
10468 | # FIXME: find the short name or the path components, as spaces are | |
10469 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
10470 | ;; | |
10471 | esac | |
10472 | ||
10473 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10474 | postinstall_cmds='base_file=`basename \${file}`~ | |
10475 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10476 | dldir=$destdir/`dirname \$dlpath`~ | |
10477 | test -d \$dldir || mkdir -p \$dldir~ | |
10478 | $install_prog $dir/$dlname \$dldir/$dlname' | |
10479 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10480 | dlpath=$dir/\$dldll~ | |
10481 | $RM \$dlpath' | |
10482 | shlibpath_overrides_runpath=yes | |
10483 | dynamic_linker='Win32 link.exe' | |
10484 | ;; | |
10485 | ||
10486 | *) | |
10487 | # Assume MSVC wrapper | |
10488 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10489 | dynamic_linker='Win32 ld.exe' | |
10490 | ;; | |
10491 | esac | |
d9898ee8 | 10492 | # FIXME: first we should search . and the directory the executable is in |
10493 | shlibpath_var=PATH | |
10494 | ;; | |
10495 | ||
10496 | darwin* | rhapsody*) | |
10497 | dynamic_linker="$host_os dyld" | |
10498 | version_type=darwin | |
10499 | need_lib_prefix=no | |
10500 | need_version=no | |
8d138742 | 10501 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
d9898ee8 | 10502 | soname_spec='${libname}${release}${major}$shared_ext' |
10503 | shlibpath_overrides_runpath=yes | |
10504 | shlibpath_var=DYLD_LIBRARY_PATH | |
10505 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
ac40fd9e | 10506 | |
8d138742 | 10507 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
d9898ee8 | 10508 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
10509 | ;; | |
10510 | ||
10511 | dgux*) | |
b0322a85 | 10512 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10513 | need_lib_prefix=no |
10514 | need_version=no | |
10515 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10516 | soname_spec='${libname}${release}${shared_ext}$major' | |
10517 | shlibpath_var=LD_LIBRARY_PATH | |
10518 | ;; | |
10519 | ||
d9898ee8 | 10520 | freebsd* | dragonfly*) |
10521 | # DragonFly does not have aout. When/if they implement a new | |
10522 | # versioning mechanism, adjust this. | |
10523 | if test -x /usr/bin/objformat; then | |
10524 | objformat=`/usr/bin/objformat` | |
10525 | else | |
10526 | case $host_os in | |
b0322a85 | 10527 | freebsd[23].*) objformat=aout ;; |
d9898ee8 | 10528 | *) objformat=elf ;; |
10529 | esac | |
10530 | fi | |
10531 | version_type=freebsd-$objformat | |
10532 | case $version_type in | |
10533 | freebsd-elf*) | |
10534 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10535 | need_version=no | |
10536 | need_lib_prefix=no | |
10537 | ;; | |
10538 | freebsd-*) | |
10539 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10540 | need_version=yes | |
10541 | ;; | |
10542 | esac | |
10543 | shlibpath_var=LD_LIBRARY_PATH | |
10544 | case $host_os in | |
b0322a85 | 10545 | freebsd2.*) |
d9898ee8 | 10546 | shlibpath_overrides_runpath=yes |
10547 | ;; | |
10548 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10549 | shlibpath_overrides_runpath=yes | |
10550 | hardcode_into_libs=yes | |
10551 | ;; | |
10552 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10553 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10554 | shlibpath_overrides_runpath=no | |
10555 | hardcode_into_libs=yes | |
10556 | ;; | |
ac40fd9e | 10557 | *) # from 4.6 on, and DragonFly |
d9898ee8 | 10558 | shlibpath_overrides_runpath=yes |
10559 | hardcode_into_libs=yes | |
10560 | ;; | |
10561 | esac | |
10562 | ;; | |
10563 | ||
10564 | gnu*) | |
b0322a85 | 10565 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10566 | need_lib_prefix=no |
10567 | need_version=no | |
10568 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10569 | soname_spec='${libname}${release}${shared_ext}$major' | |
10570 | shlibpath_var=LD_LIBRARY_PATH | |
b0322a85 CE |
10571 | shlibpath_overrides_runpath=no |
10572 | hardcode_into_libs=yes | |
10573 | ;; | |
10574 | ||
10575 | haiku*) | |
10576 | version_type=linux # correct to gnu/linux during the next big refactor | |
10577 | need_lib_prefix=no | |
10578 | need_version=no | |
10579 | dynamic_linker="$host_os runtime_loader" | |
10580 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10581 | soname_spec='${libname}${release}${shared_ext}$major' | |
10582 | shlibpath_var=LIBRARY_PATH | |
10583 | shlibpath_overrides_runpath=yes | |
10584 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
d9898ee8 | 10585 | hardcode_into_libs=yes |
10586 | ;; | |
10587 | ||
10588 | hpux9* | hpux10* | hpux11*) | |
10589 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10590 | # link against other versions. | |
10591 | version_type=sunos | |
10592 | need_lib_prefix=no | |
10593 | need_version=no | |
10594 | case $host_cpu in | |
10595 | ia64*) | |
10596 | shrext_cmds='.so' | |
10597 | hardcode_into_libs=yes | |
10598 | dynamic_linker="$host_os dld.so" | |
10599 | shlibpath_var=LD_LIBRARY_PATH | |
10600 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10601 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10602 | soname_spec='${libname}${release}${shared_ext}$major' | |
10603 | if test "X$HPUX_IA64_MODE" = X32; then | |
10604 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10605 | else | |
10606 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10607 | fi | |
10608 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10609 | ;; | |
8d138742 CE |
10610 | hppa*64*) |
10611 | shrext_cmds='.sl' | |
10612 | hardcode_into_libs=yes | |
10613 | dynamic_linker="$host_os dld.sl" | |
10614 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10615 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10616 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10617 | soname_spec='${libname}${release}${shared_ext}$major' | |
10618 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10619 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10620 | ;; | |
10621 | *) | |
d9898ee8 | 10622 | shrext_cmds='.sl' |
10623 | dynamic_linker="$host_os dld.sl" | |
10624 | shlibpath_var=SHLIB_PATH | |
10625 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10626 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10627 | soname_spec='${libname}${release}${shared_ext}$major' | |
10628 | ;; | |
10629 | esac | |
b0322a85 | 10630 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
d9898ee8 | 10631 | postinstall_cmds='chmod 555 $lib' |
b0322a85 CE |
10632 | # or fails outright, so override atomically: |
10633 | install_override_mode=555 | |
d9898ee8 | 10634 | ;; |
10635 | ||
ac40fd9e | 10636 | interix[3-9]*) |
b0322a85 | 10637 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10638 | need_lib_prefix=no |
10639 | need_version=no | |
10640 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10641 | soname_spec='${libname}${release}${shared_ext}$major' | |
10642 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10643 | shlibpath_var=LD_LIBRARY_PATH | |
10644 | shlibpath_overrides_runpath=no | |
10645 | hardcode_into_libs=yes | |
10646 | ;; | |
10647 | ||
10648 | irix5* | irix6* | nonstopux*) | |
10649 | case $host_os in | |
10650 | nonstopux*) version_type=nonstopux ;; | |
10651 | *) | |
10652 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
b0322a85 | 10653 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10654 | else |
10655 | version_type=irix | |
10656 | fi ;; | |
10657 | esac | |
10658 | need_lib_prefix=no | |
10659 | need_version=no | |
10660 | soname_spec='${libname}${release}${shared_ext}$major' | |
10661 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10662 | case $host_os in | |
10663 | irix5* | nonstopux*) | |
10664 | libsuff= shlibsuff= | |
10665 | ;; | |
10666 | *) | |
10667 | case $LD in # libtool.m4 will add one of these switches to LD | |
10668 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10669 | libsuff= shlibsuff= libmagic=32-bit;; | |
10670 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10671 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10672 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10673 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10674 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10675 | esac | |
10676 | ;; | |
10677 | esac | |
10678 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10679 | shlibpath_overrides_runpath=no | |
10680 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10681 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10682 | hardcode_into_libs=yes | |
10683 | ;; | |
10684 | ||
10685 | # No shared lib support for Linux oldld, aout, or coff. | |
10686 | linux*oldld* | linux*aout* | linux*coff*) | |
10687 | dynamic_linker=no | |
10688 | ;; | |
10689 | ||
b0322a85 CE |
10690 | # This must be glibc/ELF. |
10691 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
10692 | version_type=linux # correct to gnu/linux during the next big refactor | |
d9898ee8 | 10693 | need_lib_prefix=no |
10694 | need_version=no | |
10695 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10696 | soname_spec='${libname}${release}${shared_ext}$major' | |
10697 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10698 | shlibpath_var=LD_LIBRARY_PATH | |
10699 | shlibpath_overrides_runpath=no | |
b0322a85 | 10700 | |
8d138742 | 10701 | # Some binutils ld are patched to set DT_RUNPATH |
b0322a85 CE |
10702 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
10703 | $as_echo_n "(cached) " >&6 | |
10704 | else | |
10705 | lt_cv_shlibpath_overrides_runpath=no | |
10706 | save_LDFLAGS=$LDFLAGS | |
10707 | save_libdir=$libdir | |
10708 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10709 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 CE |
10711 | /* end confdefs.h. */ |
10712 | ||
10713 | int | |
10714 | main () | |
10715 | { | |
10716 | ||
10717 | ; | |
10718 | return 0; | |
10719 | } | |
10720 | _ACEOF | |
b0322a85 CE |
10721 | if ac_fn_c_try_link "$LINENO"; then : |
10722 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
10723 | lt_cv_shlibpath_overrides_runpath=yes | |
8d138742 | 10724 | fi |
b0322a85 CE |
10725 | fi |
10726 | rm -f core conftest.err conftest.$ac_objext \ | |
10727 | conftest$ac_exeext conftest.$ac_ext | |
10728 | LDFLAGS=$save_LDFLAGS | |
10729 | libdir=$save_libdir | |
8d138742 CE |
10730 | |
10731 | fi | |
10732 | ||
b0322a85 | 10733 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
8d138742 | 10734 | |
d9898ee8 | 10735 | # This implies no fast_install, which is unacceptable. |
10736 | # Some rework will be needed to allow for fast_install | |
10737 | # before this can be enabled. | |
10738 | hardcode_into_libs=yes | |
8d138742 CE |
10739 | |
10740 | # Add ABI-specific directories to the system library path. | |
10741 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | |
d9898ee8 | 10742 | |
10743 | # Append ld.so.conf contents to the search path | |
10744 | if test -f /etc/ld.so.conf; then | |
b0322a85 | 10745 | 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' ' '` |
ac40fd9e | 10746 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
b0322a85 | 10747 | |
d9898ee8 | 10748 | fi |
10749 | ||
10750 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10751 | # powerpc, because MkLinux only supported shared libraries with the | |
10752 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10753 | # most powerpc-linux boxes support dynamic linking these days and | |
10754 | # people can always --disable-shared, the test was removed, and we | |
10755 | # assume the GNU/Linux dynamic linker is in use. | |
10756 | dynamic_linker='GNU/Linux ld.so' | |
10757 | ;; | |
10758 | ||
d9898ee8 | 10759 | netbsd*) |
10760 | version_type=sunos | |
10761 | need_lib_prefix=no | |
10762 | need_version=no | |
8d138742 | 10763 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
d9898ee8 | 10764 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
10765 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10766 | dynamic_linker='NetBSD (a.out) ld.so' | |
10767 | else | |
10768 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10769 | soname_spec='${libname}${release}${shared_ext}$major' | |
10770 | dynamic_linker='NetBSD ld.elf_so' | |
10771 | fi | |
10772 | shlibpath_var=LD_LIBRARY_PATH | |
10773 | shlibpath_overrides_runpath=yes | |
10774 | hardcode_into_libs=yes | |
10775 | ;; | |
10776 | ||
10777 | newsos6) | |
b0322a85 | 10778 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10779 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10780 | shlibpath_var=LD_LIBRARY_PATH | |
10781 | shlibpath_overrides_runpath=yes | |
10782 | ;; | |
10783 | ||
8d138742 CE |
10784 | *nto* | *qnx*) |
10785 | version_type=qnx | |
d9898ee8 | 10786 | need_lib_prefix=no |
10787 | need_version=no | |
10788 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10789 | soname_spec='${libname}${release}${shared_ext}$major' | |
10790 | shlibpath_var=LD_LIBRARY_PATH | |
8d138742 CE |
10791 | shlibpath_overrides_runpath=no |
10792 | hardcode_into_libs=yes | |
10793 | dynamic_linker='ldqnx.so' | |
d9898ee8 | 10794 | ;; |
10795 | ||
10796 | openbsd*) | |
10797 | version_type=sunos | |
10798 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10799 | need_lib_prefix=no | |
10800 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10801 | case $host_os in | |
8d138742 CE |
10802 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
10803 | *) need_version=no ;; | |
d9898ee8 | 10804 | esac |
10805 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10806 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10807 | shlibpath_var=LD_LIBRARY_PATH | |
8d138742 | 10808 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
d9898ee8 | 10809 | case $host_os in |
10810 | openbsd2.[89] | openbsd2.[89].*) | |
10811 | shlibpath_overrides_runpath=no | |
10812 | ;; | |
10813 | *) | |
10814 | shlibpath_overrides_runpath=yes | |
10815 | ;; | |
10816 | esac | |
10817 | else | |
10818 | shlibpath_overrides_runpath=yes | |
10819 | fi | |
10820 | ;; | |
10821 | ||
10822 | os2*) | |
10823 | libname_spec='$name' | |
10824 | shrext_cmds=".dll" | |
10825 | need_lib_prefix=no | |
10826 | library_names_spec='$libname${shared_ext} $libname.a' | |
10827 | dynamic_linker='OS/2 ld.exe' | |
10828 | shlibpath_var=LIBPATH | |
10829 | ;; | |
10830 | ||
10831 | osf3* | osf4* | osf5*) | |
10832 | version_type=osf | |
10833 | need_lib_prefix=no | |
10834 | need_version=no | |
10835 | soname_spec='${libname}${release}${shared_ext}$major' | |
10836 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10837 | shlibpath_var=LD_LIBRARY_PATH | |
10838 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10839 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10840 | ;; | |
10841 | ||
ac40fd9e | 10842 | rdos*) |
10843 | dynamic_linker=no | |
10844 | ;; | |
10845 | ||
d9898ee8 | 10846 | solaris*) |
b0322a85 | 10847 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10848 | need_lib_prefix=no |
10849 | need_version=no | |
10850 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10851 | soname_spec='${libname}${release}${shared_ext}$major' | |
10852 | shlibpath_var=LD_LIBRARY_PATH | |
10853 | shlibpath_overrides_runpath=yes | |
10854 | hardcode_into_libs=yes | |
10855 | # ldd complains unless libraries are executable | |
10856 | postinstall_cmds='chmod +x $lib' | |
10857 | ;; | |
10858 | ||
10859 | sunos4*) | |
10860 | version_type=sunos | |
10861 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10862 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10863 | shlibpath_var=LD_LIBRARY_PATH | |
10864 | shlibpath_overrides_runpath=yes | |
10865 | if test "$with_gnu_ld" = yes; then | |
10866 | need_lib_prefix=no | |
10867 | fi | |
10868 | need_version=yes | |
10869 | ;; | |
10870 | ||
10871 | sysv4 | sysv4.3*) | |
b0322a85 | 10872 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10873 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10874 | soname_spec='${libname}${release}${shared_ext}$major' | |
10875 | shlibpath_var=LD_LIBRARY_PATH | |
10876 | case $host_vendor in | |
10877 | sni) | |
10878 | shlibpath_overrides_runpath=no | |
10879 | need_lib_prefix=no | |
d9898ee8 | 10880 | runpath_var=LD_RUN_PATH |
10881 | ;; | |
10882 | siemens) | |
10883 | need_lib_prefix=no | |
10884 | ;; | |
10885 | motorola) | |
10886 | need_lib_prefix=no | |
10887 | need_version=no | |
10888 | shlibpath_overrides_runpath=no | |
10889 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10890 | ;; | |
10891 | esac | |
10892 | ;; | |
10893 | ||
10894 | sysv4*MP*) | |
10895 | if test -d /usr/nec ;then | |
b0322a85 | 10896 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10897 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
10898 | soname_spec='$libname${shared_ext}.$major' | |
10899 | shlibpath_var=LD_LIBRARY_PATH | |
10900 | fi | |
10901 | ;; | |
10902 | ||
10903 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10904 | version_type=freebsd-elf | |
10905 | need_lib_prefix=no | |
10906 | need_version=no | |
10907 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10908 | soname_spec='${libname}${release}${shared_ext}$major' | |
10909 | shlibpath_var=LD_LIBRARY_PATH | |
8d138742 | 10910 | shlibpath_overrides_runpath=yes |
d9898ee8 | 10911 | hardcode_into_libs=yes |
10912 | if test "$with_gnu_ld" = yes; then | |
10913 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
d9898ee8 | 10914 | else |
10915 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
d9898ee8 | 10916 | case $host_os in |
10917 | sco3.2v5*) | |
10918 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10919 | ;; | |
10920 | esac | |
10921 | fi | |
10922 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10923 | ;; | |
10924 | ||
8d138742 CE |
10925 | tpf*) |
10926 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
b0322a85 | 10927 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 CE |
10928 | need_lib_prefix=no |
10929 | need_version=no | |
10930 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10931 | shlibpath_var=LD_LIBRARY_PATH | |
10932 | shlibpath_overrides_runpath=no | |
10933 | hardcode_into_libs=yes | |
10934 | ;; | |
10935 | ||
d9898ee8 | 10936 | uts4*) |
b0322a85 | 10937 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10938 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10939 | soname_spec='${libname}${release}${shared_ext}$major' | |
10940 | shlibpath_var=LD_LIBRARY_PATH | |
10941 | ;; | |
10942 | ||
10943 | *) | |
10944 | dynamic_linker=no | |
10945 | ;; | |
10946 | esac | |
b0322a85 | 10947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
8d138742 | 10948 | $as_echo "$dynamic_linker" >&6; } |
d9898ee8 | 10949 | test "$dynamic_linker" = no && can_build_shared=no |
10950 | ||
10951 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10952 | if test "$GCC" = yes; then | |
10953 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10954 | fi | |
10955 | ||
8d138742 CE |
10956 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10957 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10958 | fi | |
10959 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10960 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10961 | fi | |
d9898ee8 | 10962 | |
10963 | ||
d9898ee8 | 10964 | |
d9898ee8 | 10965 | |
d9898ee8 | 10966 | |
d9898ee8 | 10967 | |
d9898ee8 | 10968 | |
d9898ee8 | 10969 | |
d9898ee8 | 10970 | |
d9898ee8 | 10971 | |
d9898ee8 | 10972 | |
d9898ee8 | 10973 | |
d9898ee8 | 10974 | |
d9898ee8 | 10975 | |
d9898ee8 | 10976 | |
d9898ee8 | 10977 | |
d9898ee8 | 10978 | |
d9898ee8 | 10979 | |
d9898ee8 | 10980 | |
d9898ee8 | 10981 | |
d9898ee8 | 10982 | |
d9898ee8 | 10983 | |
d9898ee8 | 10984 | |
d9898ee8 | 10985 | |
d9898ee8 | 10986 | |
d9898ee8 | 10987 | |
d9898ee8 | 10988 | |
d9898ee8 | 10989 | |
d9898ee8 | 10990 | |
d9898ee8 | 10991 | |
d9898ee8 | 10992 | |
d9898ee8 | 10993 | |
d9898ee8 | 10994 | |
d9898ee8 | 10995 | |
d9898ee8 | 10996 | |
d9898ee8 | 10997 | |
d9898ee8 | 10998 | |
d9898ee8 | 10999 | |
d9898ee8 | 11000 | |
d9898ee8 | 11001 | |
d9898ee8 | 11002 | |
d9898ee8 | 11003 | |
d9898ee8 | 11004 | |
d9898ee8 | 11005 | |
d9898ee8 | 11006 | |
d9898ee8 | 11007 | |
d9898ee8 | 11008 | |
d9898ee8 | 11009 | |
d9898ee8 | 11010 | |
d9898ee8 | 11011 | |
d9898ee8 | 11012 | |
d9898ee8 | 11013 | |
d9898ee8 | 11014 | |
d9898ee8 | 11015 | |
d9898ee8 | 11016 | |
d9898ee8 | 11017 | |
d9898ee8 | 11018 | |
d9898ee8 | 11019 | |
d9898ee8 | 11020 | |
d9898ee8 | 11021 | |
d9898ee8 | 11022 | |
d9898ee8 | 11023 | |
d9898ee8 | 11024 | |
d9898ee8 | 11025 | |
d9898ee8 | 11026 | |
d9898ee8 | 11027 | |
d9898ee8 | 11028 | |
d9898ee8 | 11029 | |
d9898ee8 | 11030 | |
d9898ee8 | 11031 | |
d9898ee8 | 11032 | |
d9898ee8 | 11033 | |
d9898ee8 | 11034 | |
d9898ee8 | 11035 | |
d9898ee8 | 11036 | |
d9898ee8 | 11037 | |
d9898ee8 | 11038 | |
d9898ee8 | 11039 | |
d9898ee8 | 11040 | |
d9898ee8 | 11041 | |
d9898ee8 | 11042 | |
d9898ee8 | 11043 | |
d9898ee8 | 11044 | |
d9898ee8 | 11045 | |
d9898ee8 | 11046 | |
d9898ee8 | 11047 | |
d9898ee8 | 11048 | |
b0322a85 CE |
11049 | |
11050 | ||
11051 | ||
11052 | ||
11053 | ||
11054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
8d138742 CE |
11055 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
11056 | hardcode_action= | |
11057 | if test -n "$hardcode_libdir_flag_spec" || | |
11058 | test -n "$runpath_var" || | |
11059 | test "X$hardcode_automatic" = "Xyes" ; then | |
d9898ee8 | 11060 | |
8d138742 CE |
11061 | # We can hardcode non-existent directories. |
11062 | if test "$hardcode_direct" != no && | |
11063 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11064 | # have to relink, otherwise we might link with an installed library | |
11065 | # when we should be linking with a yet-to-be-installed one | |
11066 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11067 | test "$hardcode_minus_L" != no; then | |
11068 | # Linking always hardcodes the temporary library directory. | |
11069 | hardcode_action=relink | |
11070 | else | |
11071 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11072 | hardcode_action=immediate | |
11073 | fi | |
11074 | else | |
11075 | # We cannot hardcode anything, or else we can only hardcode existing | |
11076 | # directories. | |
11077 | hardcode_action=unsupported | |
11078 | fi | |
b0322a85 | 11079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
8d138742 | 11080 | $as_echo "$hardcode_action" >&6; } |
d9898ee8 | 11081 | |
8d138742 CE |
11082 | if test "$hardcode_action" = relink || |
11083 | test "$inherit_rpath" = yes; then | |
11084 | # Fast installation is not supported | |
11085 | enable_fast_install=no | |
11086 | elif test "$shlibpath_overrides_runpath" = yes || | |
11087 | test "$enable_shared" = no; then | |
11088 | # Fast installation is not necessary | |
11089 | enable_fast_install=needless | |
11090 | fi | |
d9898ee8 | 11091 | |
d9898ee8 | 11092 | |
d9898ee8 | 11093 | |
d9898ee8 | 11094 | |
d9898ee8 | 11095 | |
d9898ee8 | 11096 | |
8d138742 CE |
11097 | if test "x$enable_dlopen" != xyes; then |
11098 | enable_dlopen=unknown | |
11099 | enable_dlopen_self=unknown | |
11100 | enable_dlopen_self_static=unknown | |
11101 | else | |
11102 | lt_cv_dlopen=no | |
11103 | lt_cv_dlopen_libs= | |
d9898ee8 | 11104 | |
8d138742 CE |
11105 | case $host_os in |
11106 | beos*) | |
11107 | lt_cv_dlopen="load_add_on" | |
11108 | lt_cv_dlopen_libs= | |
11109 | lt_cv_dlopen_self=yes | |
11110 | ;; | |
d9898ee8 | 11111 | |
8d138742 CE |
11112 | mingw* | pw32* | cegcc*) |
11113 | lt_cv_dlopen="LoadLibrary" | |
11114 | lt_cv_dlopen_libs= | |
11115 | ;; | |
d9898ee8 | 11116 | |
8d138742 CE |
11117 | cygwin*) |
11118 | lt_cv_dlopen="dlopen" | |
11119 | lt_cv_dlopen_libs= | |
11120 | ;; | |
d9898ee8 | 11121 | |
8d138742 CE |
11122 | darwin*) |
11123 | # if libdl is installed we need to link against it | |
b0322a85 | 11124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
8d138742 | 11125 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
b0322a85 | 11126 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
8d138742 CE |
11127 | $as_echo_n "(cached) " >&6 |
11128 | else | |
11129 | ac_check_lib_save_LIBS=$LIBS | |
11130 | LIBS="-ldl $LIBS" | |
b0322a85 | 11131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 11132 | /* end confdefs.h. */ |
d9898ee8 | 11133 | |
8d138742 CE |
11134 | /* Override any GCC internal prototype to avoid an error. |
11135 | Use char because int might match the return type of a GCC | |
11136 | builtin and then its argument prototype would still apply. */ | |
11137 | #ifdef __cplusplus | |
11138 | extern "C" | |
11139 | #endif | |
11140 | char dlopen (); | |
11141 | int | |
11142 | main () | |
11143 | { | |
11144 | return dlopen (); | |
11145 | ; | |
11146 | return 0; | |
11147 | } | |
11148 | _ACEOF | |
b0322a85 | 11149 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 | 11150 | ac_cv_lib_dl_dlopen=yes |
d9898ee8 | 11151 | else |
b0322a85 | 11152 | ac_cv_lib_dl_dlopen=no |
d9898ee8 | 11153 | fi |
b0322a85 CE |
11154 | rm -f core conftest.err conftest.$ac_objext \ |
11155 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11156 | LIBS=$ac_check_lib_save_LIBS |
11157 | fi | |
b0322a85 | 11158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
8d138742 | 11159 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
b0322a85 | 11160 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
8d138742 CE |
11161 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11162 | else | |
d9898ee8 | 11163 | |
8d138742 CE |
11164 | lt_cv_dlopen="dyld" |
11165 | lt_cv_dlopen_libs= | |
11166 | lt_cv_dlopen_self=yes | |
d9898ee8 | 11167 | |
8d138742 | 11168 | fi |
d9898ee8 | 11169 | |
8d138742 | 11170 | ;; |
d9898ee8 | 11171 | |
8d138742 | 11172 | *) |
b0322a85 CE |
11173 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
11174 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
8d138742 CE |
11175 | lt_cv_dlopen="shl_load" |
11176 | else | |
b0322a85 | 11177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
8d138742 | 11178 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
b0322a85 | 11179 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
8d138742 CE |
11180 | $as_echo_n "(cached) " >&6 |
11181 | else | |
11182 | ac_check_lib_save_LIBS=$LIBS | |
11183 | LIBS="-ldld $LIBS" | |
b0322a85 | 11184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 11185 | /* end confdefs.h. */ |
d9898ee8 | 11186 | |
8d138742 CE |
11187 | /* Override any GCC internal prototype to avoid an error. |
11188 | Use char because int might match the return type of a GCC | |
11189 | builtin and then its argument prototype would still apply. */ | |
11190 | #ifdef __cplusplus | |
11191 | extern "C" | |
11192 | #endif | |
11193 | char shl_load (); | |
11194 | int | |
11195 | main () | |
11196 | { | |
11197 | return shl_load (); | |
11198 | ; | |
11199 | return 0; | |
11200 | } | |
11201 | _ACEOF | |
b0322a85 | 11202 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
11203 | ac_cv_lib_dld_shl_load=yes |
11204 | else | |
b0322a85 | 11205 | ac_cv_lib_dld_shl_load=no |
8d138742 | 11206 | fi |
b0322a85 CE |
11207 | rm -f core conftest.err conftest.$ac_objext \ |
11208 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11209 | LIBS=$ac_check_lib_save_LIBS |
11210 | fi | |
b0322a85 | 11211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
8d138742 | 11212 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
b0322a85 | 11213 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
8d138742 CE |
11214 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
11215 | else | |
b0322a85 CE |
11216 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
11217 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
8d138742 CE |
11218 | lt_cv_dlopen="dlopen" |
11219 | else | |
b0322a85 | 11220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
8d138742 | 11221 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
b0322a85 | 11222 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
8d138742 CE |
11223 | $as_echo_n "(cached) " >&6 |
11224 | else | |
11225 | ac_check_lib_save_LIBS=$LIBS | |
11226 | LIBS="-ldl $LIBS" | |
b0322a85 | 11227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 11228 | /* end confdefs.h. */ |
d9898ee8 | 11229 | |
8d138742 CE |
11230 | /* Override any GCC internal prototype to avoid an error. |
11231 | Use char because int might match the return type of a GCC | |
11232 | builtin and then its argument prototype would still apply. */ | |
11233 | #ifdef __cplusplus | |
11234 | extern "C" | |
11235 | #endif | |
11236 | char dlopen (); | |
11237 | int | |
11238 | main () | |
11239 | { | |
11240 | return dlopen (); | |
11241 | ; | |
11242 | return 0; | |
11243 | } | |
11244 | _ACEOF | |
b0322a85 | 11245 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
11246 | ac_cv_lib_dl_dlopen=yes |
11247 | else | |
b0322a85 | 11248 | ac_cv_lib_dl_dlopen=no |
8d138742 | 11249 | fi |
b0322a85 CE |
11250 | rm -f core conftest.err conftest.$ac_objext \ |
11251 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11252 | LIBS=$ac_check_lib_save_LIBS |
11253 | fi | |
b0322a85 | 11254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
8d138742 | 11255 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
b0322a85 | 11256 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
8d138742 CE |
11257 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11258 | else | |
b0322a85 | 11259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
8d138742 | 11260 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
b0322a85 | 11261 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
8d138742 CE |
11262 | $as_echo_n "(cached) " >&6 |
11263 | else | |
11264 | ac_check_lib_save_LIBS=$LIBS | |
11265 | LIBS="-lsvld $LIBS" | |
b0322a85 | 11266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 11267 | /* end confdefs.h. */ |
d9898ee8 | 11268 | |
8d138742 CE |
11269 | /* Override any GCC internal prototype to avoid an error. |
11270 | Use char because int might match the return type of a GCC | |
11271 | builtin and then its argument prototype would still apply. */ | |
11272 | #ifdef __cplusplus | |
11273 | extern "C" | |
11274 | #endif | |
11275 | char dlopen (); | |
11276 | int | |
11277 | main () | |
11278 | { | |
11279 | return dlopen (); | |
11280 | ; | |
11281 | return 0; | |
11282 | } | |
11283 | _ACEOF | |
b0322a85 | 11284 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
11285 | ac_cv_lib_svld_dlopen=yes |
11286 | else | |
b0322a85 | 11287 | ac_cv_lib_svld_dlopen=no |
8d138742 | 11288 | fi |
b0322a85 CE |
11289 | rm -f core conftest.err conftest.$ac_objext \ |
11290 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11291 | LIBS=$ac_check_lib_save_LIBS |
11292 | fi | |
b0322a85 | 11293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
8d138742 | 11294 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
b0322a85 | 11295 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
8d138742 CE |
11296 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
11297 | else | |
b0322a85 | 11298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
8d138742 | 11299 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
b0322a85 | 11300 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
8d138742 CE |
11301 | $as_echo_n "(cached) " >&6 |
11302 | else | |
11303 | ac_check_lib_save_LIBS=$LIBS | |
11304 | LIBS="-ldld $LIBS" | |
b0322a85 | 11305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 11306 | /* end confdefs.h. */ |
d9898ee8 | 11307 | |
8d138742 CE |
11308 | /* Override any GCC internal prototype to avoid an error. |
11309 | Use char because int might match the return type of a GCC | |
11310 | builtin and then its argument prototype would still apply. */ | |
11311 | #ifdef __cplusplus | |
11312 | extern "C" | |
11313 | #endif | |
11314 | char dld_link (); | |
11315 | int | |
11316 | main () | |
11317 | { | |
11318 | return dld_link (); | |
11319 | ; | |
11320 | return 0; | |
11321 | } | |
11322 | _ACEOF | |
b0322a85 | 11323 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
11324 | ac_cv_lib_dld_dld_link=yes |
11325 | else | |
b0322a85 | 11326 | ac_cv_lib_dld_dld_link=no |
8d138742 | 11327 | fi |
b0322a85 CE |
11328 | rm -f core conftest.err conftest.$ac_objext \ |
11329 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11330 | LIBS=$ac_check_lib_save_LIBS |
11331 | fi | |
b0322a85 | 11332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
8d138742 | 11333 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
b0322a85 | 11334 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
8d138742 CE |
11335 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
11336 | fi | |
d9898ee8 | 11337 | |
d9898ee8 | 11338 | |
8d138742 | 11339 | fi |
d9898ee8 | 11340 | |
d9898ee8 | 11341 | |
8d138742 | 11342 | fi |
d9898ee8 | 11343 | |
d9898ee8 | 11344 | |
8d138742 | 11345 | fi |
d9898ee8 | 11346 | |
d9898ee8 | 11347 | |
8d138742 | 11348 | fi |
d9898ee8 | 11349 | |
d9898ee8 | 11350 | |
8d138742 | 11351 | fi |
ac40fd9e | 11352 | |
8d138742 CE |
11353 | ;; |
11354 | esac | |
d9898ee8 | 11355 | |
8d138742 CE |
11356 | if test "x$lt_cv_dlopen" != xno; then |
11357 | enable_dlopen=yes | |
11358 | else | |
11359 | enable_dlopen=no | |
11360 | fi | |
d9898ee8 | 11361 | |
8d138742 CE |
11362 | case $lt_cv_dlopen in |
11363 | dlopen) | |
11364 | save_CPPFLAGS="$CPPFLAGS" | |
11365 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
d9898ee8 | 11366 | |
8d138742 CE |
11367 | save_LDFLAGS="$LDFLAGS" |
11368 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
d9898ee8 | 11369 | |
8d138742 CE |
11370 | save_LIBS="$LIBS" |
11371 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
d9898ee8 | 11372 | |
b0322a85 | 11373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
8d138742 | 11374 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
b0322a85 | 11375 | if ${lt_cv_dlopen_self+:} false; then : |
8d138742 CE |
11376 | $as_echo_n "(cached) " >&6 |
11377 | else | |
11378 | if test "$cross_compiling" = yes; then : | |
11379 | lt_cv_dlopen_self=cross | |
11380 | else | |
11381 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11382 | lt_status=$lt_dlunknown | |
11383 | cat > conftest.$ac_ext <<_LT_EOF | |
b0322a85 | 11384 | #line $LINENO "configure" |
8d138742 | 11385 | #include "confdefs.h" |
d9898ee8 | 11386 | |
8d138742 CE |
11387 | #if HAVE_DLFCN_H |
11388 | #include <dlfcn.h> | |
11389 | #endif | |
d9898ee8 | 11390 | |
8d138742 | 11391 | #include <stdio.h> |
d9898ee8 | 11392 | |
8d138742 CE |
11393 | #ifdef RTLD_GLOBAL |
11394 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11395 | #else | |
11396 | # ifdef DL_GLOBAL | |
11397 | # define LT_DLGLOBAL DL_GLOBAL | |
11398 | # else | |
11399 | # define LT_DLGLOBAL 0 | |
11400 | # endif | |
11401 | #endif | |
d9898ee8 | 11402 | |
8d138742 CE |
11403 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11404 | find out it does not work in some platform. */ | |
11405 | #ifndef LT_DLLAZY_OR_NOW | |
11406 | # ifdef RTLD_LAZY | |
11407 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11408 | # else | |
11409 | # ifdef DL_LAZY | |
11410 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11411 | # else | |
11412 | # ifdef RTLD_NOW | |
11413 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11414 | # else | |
11415 | # ifdef DL_NOW | |
11416 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11417 | # else | |
11418 | # define LT_DLLAZY_OR_NOW 0 | |
11419 | # endif | |
11420 | # endif | |
11421 | # endif | |
11422 | # endif | |
11423 | #endif | |
d9898ee8 | 11424 | |
b0322a85 CE |
11425 | /* When -fvisbility=hidden is used, assume the code has been annotated |
11426 | correspondingly for the symbols needed. */ | |
11427 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11428 | int fnord () __attribute__((visibility("default"))); | |
11429 | #endif | |
11430 | ||
11431 | int fnord () { return 42; } | |
8d138742 CE |
11432 | int main () |
11433 | { | |
11434 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11435 | int status = $lt_dlunknown; | |
d9898ee8 | 11436 | |
8d138742 CE |
11437 | if (self) |
11438 | { | |
11439 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
b0322a85 CE |
11440 | else |
11441 | { | |
11442 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11443 | else puts (dlerror ()); | |
11444 | } | |
11445 | /* dlclose (self); */ | |
8d138742 CE |
11446 | } |
11447 | else | |
11448 | puts (dlerror ()); | |
d9898ee8 | 11449 | |
8d138742 CE |
11450 | return status; |
11451 | } | |
11452 | _LT_EOF | |
b0322a85 | 11453 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
8d138742 CE |
11454 | (eval $ac_link) 2>&5 |
11455 | ac_status=$? | |
b0322a85 CE |
11456 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11457 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
8d138742 CE |
11458 | (./conftest; exit; ) >&5 2>/dev/null |
11459 | lt_status=$? | |
11460 | case x$lt_status in | |
11461 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11462 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11463 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11464 | esac | |
11465 | else : | |
11466 | # compilation failed | |
11467 | lt_cv_dlopen_self=no | |
11468 | fi | |
d9898ee8 | 11469 | fi |
8d138742 CE |
11470 | rm -fr conftest* |
11471 | ||
d9898ee8 | 11472 | |
11473 | fi | |
b0322a85 | 11474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
8d138742 | 11475 | $as_echo "$lt_cv_dlopen_self" >&6; } |
d9898ee8 | 11476 | |
8d138742 CE |
11477 | if test "x$lt_cv_dlopen_self" = xyes; then |
11478 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
b0322a85 | 11479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
8d138742 | 11480 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
b0322a85 | 11481 | if ${lt_cv_dlopen_self_static+:} false; then : |
8d138742 | 11482 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 11483 | else |
8d138742 CE |
11484 | if test "$cross_compiling" = yes; then : |
11485 | lt_cv_dlopen_self_static=cross | |
11486 | else | |
11487 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11488 | lt_status=$lt_dlunknown | |
11489 | cat > conftest.$ac_ext <<_LT_EOF | |
b0322a85 | 11490 | #line $LINENO "configure" |
8d138742 | 11491 | #include "confdefs.h" |
d9898ee8 | 11492 | |
8d138742 CE |
11493 | #if HAVE_DLFCN_H |
11494 | #include <dlfcn.h> | |
11495 | #endif | |
d9898ee8 | 11496 | |
8d138742 | 11497 | #include <stdio.h> |
d9898ee8 | 11498 | |
8d138742 CE |
11499 | #ifdef RTLD_GLOBAL |
11500 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11501 | #else | |
11502 | # ifdef DL_GLOBAL | |
11503 | # define LT_DLGLOBAL DL_GLOBAL | |
11504 | # else | |
11505 | # define LT_DLGLOBAL 0 | |
11506 | # endif | |
11507 | #endif | |
d9898ee8 | 11508 | |
8d138742 CE |
11509 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11510 | find out it does not work in some platform. */ | |
11511 | #ifndef LT_DLLAZY_OR_NOW | |
11512 | # ifdef RTLD_LAZY | |
11513 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11514 | # else | |
11515 | # ifdef DL_LAZY | |
11516 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11517 | # else | |
11518 | # ifdef RTLD_NOW | |
11519 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11520 | # else | |
11521 | # ifdef DL_NOW | |
11522 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11523 | # else | |
11524 | # define LT_DLLAZY_OR_NOW 0 | |
11525 | # endif | |
11526 | # endif | |
11527 | # endif | |
11528 | # endif | |
11529 | #endif | |
d9898ee8 | 11530 | |
b0322a85 CE |
11531 | /* When -fvisbility=hidden is used, assume the code has been annotated |
11532 | correspondingly for the symbols needed. */ | |
11533 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11534 | int fnord () __attribute__((visibility("default"))); | |
11535 | #endif | |
11536 | ||
11537 | int fnord () { return 42; } | |
8d138742 CE |
11538 | int main () |
11539 | { | |
11540 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11541 | int status = $lt_dlunknown; | |
11542 | ||
11543 | if (self) | |
11544 | { | |
11545 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
b0322a85 CE |
11546 | else |
11547 | { | |
11548 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11549 | else puts (dlerror ()); | |
11550 | } | |
8d138742 CE |
11551 | /* dlclose (self); */ |
11552 | } | |
11553 | else | |
11554 | puts (dlerror ()); | |
d9898ee8 | 11555 | |
8d138742 CE |
11556 | return status; |
11557 | } | |
11558 | _LT_EOF | |
b0322a85 | 11559 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
8d138742 CE |
11560 | (eval $ac_link) 2>&5 |
11561 | ac_status=$? | |
b0322a85 CE |
11562 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11563 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
8d138742 CE |
11564 | (./conftest; exit; ) >&5 2>/dev/null |
11565 | lt_status=$? | |
11566 | case x$lt_status in | |
11567 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11568 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11569 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11570 | esac | |
11571 | else : | |
11572 | # compilation failed | |
11573 | lt_cv_dlopen_self_static=no | |
11574 | fi | |
d9898ee8 | 11575 | fi |
8d138742 | 11576 | rm -fr conftest* |
d9898ee8 | 11577 | |
11578 | ||
d9898ee8 | 11579 | fi |
b0322a85 | 11580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
8d138742 CE |
11581 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
11582 | fi | |
d9898ee8 | 11583 | |
8d138742 CE |
11584 | CPPFLAGS="$save_CPPFLAGS" |
11585 | LDFLAGS="$save_LDFLAGS" | |
11586 | LIBS="$save_LIBS" | |
11587 | ;; | |
11588 | esac | |
d9898ee8 | 11589 | |
8d138742 CE |
11590 | case $lt_cv_dlopen_self in |
11591 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11592 | *) enable_dlopen_self=unknown ;; | |
d9898ee8 | 11593 | esac |
d9898ee8 | 11594 | |
8d138742 CE |
11595 | case $lt_cv_dlopen_self_static in |
11596 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11597 | *) enable_dlopen_self_static=unknown ;; | |
11598 | esac | |
11599 | fi | |
11600 | ||
11601 | ||
11602 | ||
11603 | ||
11604 | ||
11605 | ||
11606 | ||
11607 | ||
11608 | ||
11609 | ||
11610 | ||
11611 | ||
11612 | ||
11613 | ||
11614 | ||
11615 | ||
11616 | ||
11617 | striplib= | |
11618 | old_striplib= | |
b0322a85 | 11619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
8d138742 CE |
11620 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
11621 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11622 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11623 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
b0322a85 | 11624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 CE |
11625 | $as_echo "yes" >&6; } |
11626 | else | |
11627 | # FIXME - insert some real tests, host_os isn't really good enough | |
d9898ee8 | 11628 | case $host_os in |
8d138742 CE |
11629 | darwin*) |
11630 | if test -n "$STRIP" ; then | |
11631 | striplib="$STRIP -x" | |
11632 | old_striplib="$STRIP -S" | |
b0322a85 | 11633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 CE |
11634 | $as_echo "yes" >&6; } |
11635 | else | |
b0322a85 | 11636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 11637 | $as_echo "no" >&6; } |
d9898ee8 | 11638 | fi |
11639 | ;; | |
8d138742 | 11640 | *) |
b0322a85 | 11641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 11642 | $as_echo "no" >&6; } |
d9898ee8 | 11643 | ;; |
11644 | esac | |
8d138742 | 11645 | fi |
d9898ee8 | 11646 | |
d9898ee8 | 11647 | |
8d138742 CE |
11648 | |
11649 | ||
11650 | ||
11651 | ||
11652 | ||
11653 | ||
11654 | ||
11655 | ||
11656 | ||
11657 | ||
11658 | # Report which library types will actually be built | |
b0322a85 | 11659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
8d138742 | 11660 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
b0322a85 | 11661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
8d138742 CE |
11662 | $as_echo "$can_build_shared" >&6; } |
11663 | ||
b0322a85 | 11664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
8d138742 CE |
11665 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
11666 | test "$can_build_shared" = "no" && enable_shared=no | |
11667 | ||
11668 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11669 | # are all built from PIC. | |
11670 | case $host_os in | |
11671 | aix3*) | |
11672 | test "$enable_shared" = yes && enable_static=no | |
11673 | if test -n "$RANLIB"; then | |
11674 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11675 | postinstall_cmds='$RANLIB $lib' | |
d9898ee8 | 11676 | fi |
8d138742 | 11677 | ;; |
d9898ee8 | 11678 | |
8d138742 CE |
11679 | aix[4-9]*) |
11680 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
11681 | test "$enable_shared" = yes && enable_static=no | |
11682 | fi | |
11683 | ;; | |
11684 | esac | |
b0322a85 | 11685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
8d138742 | 11686 | $as_echo "$enable_shared" >&6; } |
d9898ee8 | 11687 | |
b0322a85 | 11688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
8d138742 CE |
11689 | $as_echo_n "checking whether to build static libraries... " >&6; } |
11690 | # Make sure either enable_shared or enable_static is yes. | |
11691 | test "$enable_shared" = yes || enable_static=yes | |
b0322a85 | 11692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
8d138742 | 11693 | $as_echo "$enable_static" >&6; } |
d9898ee8 | 11694 | |
d9898ee8 | 11695 | |
d9898ee8 | 11696 | |
d9898ee8 | 11697 | |
8d138742 CE |
11698 | fi |
11699 | ac_ext=c | |
11700 | ac_cpp='$CPP $CPPFLAGS' | |
11701 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11702 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11703 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 11704 | |
8d138742 | 11705 | CC="$lt_save_CC" |
d9898ee8 | 11706 | |
d9898ee8 | 11707 | |
d9898ee8 | 11708 | |
d9898ee8 | 11709 | |
d9898ee8 | 11710 | |
d9898ee8 | 11711 | |
d9898ee8 | 11712 | |
d9898ee8 | 11713 | |
d9898ee8 | 11714 | |
d9898ee8 | 11715 | |
d9898ee8 | 11716 | |
d9898ee8 | 11717 | |
d9898ee8 | 11718 | |
b0322a85 CE |
11719 | |
11720 | ||
8d138742 | 11721 | ac_config_commands="$ac_config_commands libtool" |
d9898ee8 | 11722 | |
d9898ee8 | 11723 | |
d9898ee8 | 11724 | |
d9898ee8 | 11725 | |
8d138742 | 11726 | # Only expand once: |
d9898ee8 | 11727 | |
d9898ee8 | 11728 | |
b0322a85 | 11729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5 |
8d138742 | 11730 | $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; } |
b0322a85 | 11731 | if ${libltdl_cv_shlibext+:} false; then : |
8d138742 CE |
11732 | $as_echo_n "(cached) " >&6 |
11733 | else | |
d9898ee8 | 11734 | |
8d138742 CE |
11735 | module=yes |
11736 | eval libltdl_cv_shlibext=$shrext_cmds | |
b0322a85 CE |
11737 | module=no |
11738 | eval libltdl_cv_shrext=$shrext_cmds | |
8d138742 CE |
11739 | |
11740 | fi | |
b0322a85 | 11741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5 |
8d138742 CE |
11742 | $as_echo "$libltdl_cv_shlibext" >&6; } |
11743 | if test -n "$libltdl_cv_shlibext"; then | |
11744 | ||
11745 | cat >>confdefs.h <<_ACEOF | |
11746 | #define LT_MODULE_EXT "$libltdl_cv_shlibext" | |
d9898ee8 | 11747 | _ACEOF |
8d138742 | 11748 | |
b0322a85 CE |
11749 | fi |
11750 | if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then | |
11751 | ||
11752 | cat >>confdefs.h <<_ACEOF | |
11753 | #define LT_SHARED_EXT "$libltdl_cv_shrext" | |
11754 | _ACEOF | |
11755 | ||
8d138742 CE |
11756 | fi |
11757 | ||
b0322a85 | 11758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5 |
8d138742 | 11759 | $as_echo_n "checking which variable specifies run-time module search path... " >&6; } |
b0322a85 | 11760 | if ${lt_cv_module_path_var+:} false; then : |
8d138742 CE |
11761 | $as_echo_n "(cached) " >&6 |
11762 | else | |
11763 | lt_cv_module_path_var="$shlibpath_var" | |
11764 | fi | |
b0322a85 | 11765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5 |
8d138742 CE |
11766 | $as_echo "$lt_cv_module_path_var" >&6; } |
11767 | if test -n "$lt_cv_module_path_var"; then | |
11768 | ||
11769 | cat >>confdefs.h <<_ACEOF | |
11770 | #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var" | |
11771 | _ACEOF | |
11772 | ||
11773 | fi | |
11774 | ||
b0322a85 | 11775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5 |
8d138742 | 11776 | $as_echo_n "checking for the default library search path... " >&6; } |
b0322a85 | 11777 | if ${lt_cv_sys_dlsearch_path+:} false; then : |
8d138742 CE |
11778 | $as_echo_n "(cached) " >&6 |
11779 | else | |
11780 | lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec" | |
11781 | fi | |
b0322a85 | 11782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5 |
8d138742 CE |
11783 | $as_echo "$lt_cv_sys_dlsearch_path" >&6; } |
11784 | if test -n "$lt_cv_sys_dlsearch_path"; then | |
11785 | sys_dlsearch_path= | |
11786 | for dir in $lt_cv_sys_dlsearch_path; do | |
11787 | if test -z "$sys_dlsearch_path"; then | |
11788 | sys_dlsearch_path="$dir" | |
11789 | else | |
11790 | sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" | |
11791 | fi | |
11792 | done | |
11793 | ||
11794 | cat >>confdefs.h <<_ACEOF | |
11795 | #define LT_DLSEARCH_PATH "$sys_dlsearch_path" | |
11796 | _ACEOF | |
11797 | ||
11798 | fi | |
11799 | ||
11800 | ||
11801 | LT_DLLOADERS= | |
11802 | ||
11803 | ||
11804 | ac_ext=c | |
11805 | ac_cpp='$CPP $CPPFLAGS' | |
11806 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11807 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11808 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11809 | ||
11810 | ||
11811 | LIBADD_DLOPEN= | |
b0322a85 | 11812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
8d138742 | 11813 | $as_echo_n "checking for library containing dlopen... " >&6; } |
b0322a85 | 11814 | if ${ac_cv_search_dlopen+:} false; then : |
8d138742 CE |
11815 | $as_echo_n "(cached) " >&6 |
11816 | else | |
11817 | ac_func_search_save_LIBS=$LIBS | |
b0322a85 | 11818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
11819 | /* end confdefs.h. */ |
11820 | ||
11821 | /* Override any GCC internal prototype to avoid an error. | |
11822 | Use char because int might match the return type of a GCC | |
11823 | builtin and then its argument prototype would still apply. */ | |
11824 | #ifdef __cplusplus | |
11825 | extern "C" | |
11826 | #endif | |
11827 | char dlopen (); | |
11828 | int | |
11829 | main () | |
11830 | { | |
11831 | return dlopen (); | |
11832 | ; | |
11833 | return 0; | |
11834 | } | |
11835 | _ACEOF | |
11836 | for ac_lib in '' dl; do | |
11837 | if test -z "$ac_lib"; then | |
11838 | ac_res="none required" | |
11839 | else | |
11840 | ac_res=-l$ac_lib | |
11841 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11842 | fi | |
b0322a85 | 11843 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 | 11844 | ac_cv_search_dlopen=$ac_res |
d9898ee8 | 11845 | fi |
b0322a85 CE |
11846 | rm -f core conftest.err conftest.$ac_objext \ |
11847 | conftest$ac_exeext | |
11848 | if ${ac_cv_search_dlopen+:} false; then : | |
8d138742 CE |
11849 | break |
11850 | fi | |
11851 | done | |
b0322a85 CE |
11852 | if ${ac_cv_search_dlopen+:} false; then : |
11853 | ||
8d138742 CE |
11854 | else |
11855 | ac_cv_search_dlopen=no | |
11856 | fi | |
11857 | rm conftest.$ac_ext | |
11858 | LIBS=$ac_func_search_save_LIBS | |
11859 | fi | |
b0322a85 | 11860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
8d138742 CE |
11861 | $as_echo "$ac_cv_search_dlopen" >&6; } |
11862 | ac_res=$ac_cv_search_dlopen | |
b0322a85 | 11863 | if test "$ac_res" != no; then : |
8d138742 | 11864 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
d9898ee8 | 11865 | |
b0322a85 | 11866 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
8d138742 CE |
11867 | |
11868 | if test "$ac_cv_search_dlopen" != "none required" ; then | |
11869 | LIBADD_DLOPEN="-ldl" | |
11870 | fi | |
11871 | libltdl_cv_lib_dl_dlopen="yes" | |
11872 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | |
11873 | else | |
b0322a85 | 11874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
11875 | /* end confdefs.h. */ |
11876 | #if HAVE_DLFCN_H | |
11877 | # include <dlfcn.h> | |
11878 | #endif | |
d9898ee8 | 11879 | |
8d138742 CE |
11880 | int |
11881 | main () | |
11882 | { | |
11883 | dlopen(0, 0); | |
11884 | ; | |
11885 | return 0; | |
11886 | } | |
d9898ee8 | 11887 | _ACEOF |
b0322a85 | 11888 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 11889 | |
b0322a85 | 11890 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
8d138742 CE |
11891 | |
11892 | libltdl_cv_func_dlopen="yes" | |
11893 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | |
d9898ee8 | 11894 | else |
b0322a85 | 11895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
8d138742 | 11896 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
b0322a85 | 11897 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
8d138742 CE |
11898 | $as_echo_n "(cached) " >&6 |
11899 | else | |
11900 | ac_check_lib_save_LIBS=$LIBS | |
11901 | LIBS="-lsvld $LIBS" | |
b0322a85 | 11902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
11903 | /* end confdefs.h. */ |
11904 | ||
11905 | /* Override any GCC internal prototype to avoid an error. | |
11906 | Use char because int might match the return type of a GCC | |
11907 | builtin and then its argument prototype would still apply. */ | |
11908 | #ifdef __cplusplus | |
11909 | extern "C" | |
11910 | #endif | |
11911 | char dlopen (); | |
11912 | int | |
11913 | main () | |
11914 | { | |
11915 | return dlopen (); | |
11916 | ; | |
11917 | return 0; | |
11918 | } | |
11919 | _ACEOF | |
b0322a85 | 11920 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
11921 | ac_cv_lib_svld_dlopen=yes |
11922 | else | |
b0322a85 | 11923 | ac_cv_lib_svld_dlopen=no |
d9898ee8 | 11924 | fi |
b0322a85 CE |
11925 | rm -f core conftest.err conftest.$ac_objext \ |
11926 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11927 | LIBS=$ac_check_lib_save_LIBS |
11928 | fi | |
b0322a85 | 11929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
8d138742 | 11930 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
b0322a85 | 11931 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
d9898ee8 | 11932 | |
b0322a85 | 11933 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
d9898ee8 | 11934 | |
8d138742 CE |
11935 | LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" |
11936 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | |
11937 | fi | |
d9898ee8 | 11938 | |
8d138742 | 11939 | fi |
b0322a85 CE |
11940 | rm -f core conftest.err conftest.$ac_objext \ |
11941 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 | 11942 | fi |
d9898ee8 | 11943 | |
8d138742 CE |
11944 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
11945 | then | |
11946 | lt_save_LIBS="$LIBS" | |
11947 | LIBS="$LIBS $LIBADD_DLOPEN" | |
b0322a85 CE |
11948 | for ac_func in dlerror |
11949 | do : | |
11950 | ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" | |
11951 | if test "x$ac_cv_func_dlerror" = xyes; then : | |
8d138742 | 11952 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 11953 | #define HAVE_DLERROR 1 |
8d138742 | 11954 | _ACEOF |
d9898ee8 | 11955 | |
8d138742 CE |
11956 | fi |
11957 | done | |
d9898ee8 | 11958 | |
8d138742 CE |
11959 | LIBS="$lt_save_LIBS" |
11960 | fi | |
d9898ee8 | 11961 | |
d9898ee8 | 11962 | |
8d138742 | 11963 | LIBADD_SHL_LOAD= |
b0322a85 CE |
11964 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
11965 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
d9898ee8 | 11966 | |
b0322a85 | 11967 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
d9898ee8 | 11968 | |
8d138742 CE |
11969 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
11970 | else | |
b0322a85 | 11971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
8d138742 | 11972 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
b0322a85 | 11973 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
8d138742 CE |
11974 | $as_echo_n "(cached) " >&6 |
11975 | else | |
11976 | ac_check_lib_save_LIBS=$LIBS | |
11977 | LIBS="-ldld $LIBS" | |
b0322a85 | 11978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 11979 | /* end confdefs.h. */ |
d9898ee8 | 11980 | |
8d138742 CE |
11981 | /* Override any GCC internal prototype to avoid an error. |
11982 | Use char because int might match the return type of a GCC | |
11983 | builtin and then its argument prototype would still apply. */ | |
11984 | #ifdef __cplusplus | |
11985 | extern "C" | |
11986 | #endif | |
11987 | char shl_load (); | |
11988 | int | |
11989 | main () | |
11990 | { | |
11991 | return shl_load (); | |
11992 | ; | |
11993 | return 0; | |
11994 | } | |
11995 | _ACEOF | |
b0322a85 | 11996 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
11997 | ac_cv_lib_dld_shl_load=yes |
11998 | else | |
b0322a85 | 11999 | ac_cv_lib_dld_shl_load=no |
8d138742 | 12000 | fi |
b0322a85 CE |
12001 | rm -f core conftest.err conftest.$ac_objext \ |
12002 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
12003 | LIBS=$ac_check_lib_save_LIBS |
12004 | fi | |
b0322a85 | 12005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
8d138742 | 12006 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
b0322a85 | 12007 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
d9898ee8 | 12008 | |
b0322a85 | 12009 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
d9898ee8 | 12010 | |
8d138742 CE |
12011 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
12012 | LIBADD_SHL_LOAD="-ldld" | |
12013 | fi | |
d9898ee8 | 12014 | |
8d138742 | 12015 | fi |
d9898ee8 | 12016 | |
d9898ee8 | 12017 | |
d9898ee8 | 12018 | |
8d138742 CE |
12019 | case $host_os in |
12020 | darwin[1567].*) | |
12021 | # We only want this for pre-Mac OS X 10.4. | |
b0322a85 CE |
12022 | ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup" |
12023 | if test "x$ac_cv_func__dyld_func_lookup" = xyes; then : | |
12024 | ||
12025 | $as_echo "#define HAVE_DYLD 1" >>confdefs.h | |
12026 | ||
12027 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" | |
12028 | fi | |
12029 | ||
12030 | ;; | |
12031 | beos*) | |
12032 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" | |
12033 | ;; | |
12034 | cygwin* | mingw* | os2* | pw32*) | |
12035 | ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h> | |
12036 | " | |
12037 | if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then : | |
12038 | ac_have_decl=1 | |
8d138742 | 12039 | else |
b0322a85 CE |
12040 | ac_have_decl=0 |
12041 | fi | |
d9898ee8 | 12042 | |
b0322a85 CE |
12043 | cat >>confdefs.h <<_ACEOF |
12044 | #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl | |
12045 | _ACEOF | |
d9898ee8 | 12046 | |
b0322a85 CE |
12047 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" |
12048 | ;; | |
12049 | esac | |
d9898ee8 | 12050 | |
b0322a85 CE |
12051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
12052 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
12053 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
12054 | $as_echo_n "(cached) " >&6 | |
12055 | else | |
12056 | ac_check_lib_save_LIBS=$LIBS | |
12057 | LIBS="-ldld $LIBS" | |
12058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12059 | /* end confdefs.h. */ | |
d9898ee8 | 12060 | |
8d138742 CE |
12061 | /* Override any GCC internal prototype to avoid an error. |
12062 | Use char because int might match the return type of a GCC | |
12063 | builtin and then its argument prototype would still apply. */ | |
12064 | #ifdef __cplusplus | |
12065 | extern "C" | |
12066 | #endif | |
b0322a85 | 12067 | char dld_link (); |
8d138742 CE |
12068 | int |
12069 | main () | |
12070 | { | |
b0322a85 | 12071 | return dld_link (); |
8d138742 CE |
12072 | ; |
12073 | return 0; | |
12074 | } | |
12075 | _ACEOF | |
b0322a85 CE |
12076 | if ac_fn_c_try_link "$LINENO"; then : |
12077 | ac_cv_lib_dld_dld_link=yes | |
8d138742 | 12078 | else |
b0322a85 | 12079 | ac_cv_lib_dld_dld_link=no |
8d138742 | 12080 | fi |
b0322a85 CE |
12081 | rm -f core conftest.err conftest.$ac_objext \ |
12082 | conftest$ac_exeext conftest.$ac_ext | |
12083 | LIBS=$ac_check_lib_save_LIBS | |
8d138742 | 12084 | fi |
b0322a85 CE |
12085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
12086 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
12087 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
d9898ee8 | 12088 | |
b0322a85 | 12089 | $as_echo "#define HAVE_DLD 1" >>confdefs.h |
d9898ee8 | 12090 | |
8d138742 CE |
12091 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" |
12092 | fi | |
d9898ee8 | 12093 | |
d9898ee8 | 12094 | |
d9898ee8 | 12095 | |
d9898ee8 | 12096 | |
8d138742 CE |
12097 | LT_DLPREOPEN= |
12098 | if test -n "$LT_DLLOADERS" | |
12099 | then | |
12100 | for lt_loader in $LT_DLLOADERS; do | |
12101 | LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " | |
12102 | done | |
d9898ee8 | 12103 | |
b0322a85 | 12104 | $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h |
d9898ee8 | 12105 | |
8d138742 | 12106 | fi |
d9898ee8 | 12107 | |
ac40fd9e | 12108 | |
8d138742 | 12109 | LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" |
d9898ee8 | 12110 | |
d9898ee8 | 12111 | |
8d138742 CE |
12112 | ac_ext=c |
12113 | ac_cpp='$CPP $CPPFLAGS' | |
12114 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12115 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12116 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 12117 | |
d9898ee8 | 12118 | |
b0322a85 | 12119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5 |
8d138742 | 12120 | $as_echo_n "checking for _ prefix in compiled symbols... " >&6; } |
b0322a85 | 12121 | if ${lt_cv_sys_symbol_underscore+:} false; then : |
8d138742 CE |
12122 | $as_echo_n "(cached) " >&6 |
12123 | else | |
12124 | lt_cv_sys_symbol_underscore=no | |
12125 | cat > conftest.$ac_ext <<_LT_EOF | |
12126 | void nm_test_func(){} | |
12127 | int main(){nm_test_func;return 0;} | |
12128 | _LT_EOF | |
b0322a85 | 12129 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
12130 | (eval $ac_compile) 2>&5 |
12131 | ac_status=$? | |
b0322a85 CE |
12132 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12133 | test $ac_status = 0; }; then | |
8d138742 CE |
12134 | # Now try to grab the symbols. |
12135 | ac_nlist=conftest.nm | |
b0322a85 | 12136 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5 |
8d138742 CE |
12137 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
12138 | ac_status=$? | |
b0322a85 CE |
12139 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12140 | test $ac_status = 0; } && test -s "$ac_nlist"; then | |
8d138742 CE |
12141 | # See whether the symbols have a leading underscore. |
12142 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then | |
12143 | lt_cv_sys_symbol_underscore=yes | |
12144 | else | |
12145 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then | |
12146 | : | |
12147 | else | |
12148 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 | |
12149 | fi | |
12150 | fi | |
12151 | else | |
12152 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
12153 | fi | |
d9898ee8 | 12154 | else |
8d138742 CE |
12155 | echo "configure: failed program was:" >&5 |
12156 | cat conftest.c >&5 | |
d9898ee8 | 12157 | fi |
8d138742 | 12158 | rm -rf conftest* |
d9898ee8 | 12159 | |
d9898ee8 | 12160 | fi |
b0322a85 | 12161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5 |
8d138742 CE |
12162 | $as_echo "$lt_cv_sys_symbol_underscore" >&6; } |
12163 | sys_symbol_underscore=$lt_cv_sys_symbol_underscore | |
d9898ee8 | 12164 | |
d9898ee8 | 12165 | |
8d138742 CE |
12166 | if test x"$lt_cv_sys_symbol_underscore" = xyes; then |
12167 | if test x"$libltdl_cv_func_dlopen" = xyes || | |
12168 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then | |
b0322a85 | 12169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 |
8d138742 | 12170 | $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } |
b0322a85 | 12171 | if ${libltdl_cv_need_uscore+:} false; then : |
8d138742 | 12172 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 12173 | else |
8d138742 CE |
12174 | libltdl_cv_need_uscore=unknown |
12175 | save_LIBS="$LIBS" | |
12176 | LIBS="$LIBS $LIBADD_DLOPEN" | |
12177 | if test "$cross_compiling" = yes; then : | |
12178 | libltdl_cv_need_uscore=cross | |
12179 | else | |
12180 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12181 | lt_status=$lt_dlunknown | |
12182 | cat > conftest.$ac_ext <<_LT_EOF | |
b0322a85 | 12183 | #line $LINENO "configure" |
8d138742 | 12184 | #include "confdefs.h" |
d9898ee8 | 12185 | |
8d138742 CE |
12186 | #if HAVE_DLFCN_H |
12187 | #include <dlfcn.h> | |
12188 | #endif | |
d9898ee8 | 12189 | |
8d138742 | 12190 | #include <stdio.h> |
d9898ee8 | 12191 | |
8d138742 CE |
12192 | #ifdef RTLD_GLOBAL |
12193 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12194 | #else | |
12195 | # ifdef DL_GLOBAL | |
12196 | # define LT_DLGLOBAL DL_GLOBAL | |
12197 | # else | |
12198 | # define LT_DLGLOBAL 0 | |
12199 | # endif | |
12200 | #endif | |
d9898ee8 | 12201 | |
8d138742 CE |
12202 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12203 | find out it does not work in some platform. */ | |
12204 | #ifndef LT_DLLAZY_OR_NOW | |
12205 | # ifdef RTLD_LAZY | |
12206 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12207 | # else | |
12208 | # ifdef DL_LAZY | |
12209 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12210 | # else | |
12211 | # ifdef RTLD_NOW | |
12212 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12213 | # else | |
12214 | # ifdef DL_NOW | |
12215 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12216 | # else | |
12217 | # define LT_DLLAZY_OR_NOW 0 | |
12218 | # endif | |
12219 | # endif | |
12220 | # endif | |
12221 | # endif | |
12222 | #endif | |
d9898ee8 | 12223 | |
b0322a85 CE |
12224 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12225 | correspondingly for the symbols needed. */ | |
12226 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12227 | int fnord () __attribute__((visibility("default"))); | |
12228 | #endif | |
12229 | ||
12230 | int fnord () { return 42; } | |
8d138742 CE |
12231 | int main () |
12232 | { | |
12233 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12234 | int status = $lt_dlunknown; | |
d9898ee8 | 12235 | |
8d138742 CE |
12236 | if (self) |
12237 | { | |
12238 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
b0322a85 CE |
12239 | else |
12240 | { | |
12241 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12242 | else puts (dlerror ()); | |
12243 | } | |
8d138742 CE |
12244 | /* dlclose (self); */ |
12245 | } | |
12246 | else | |
12247 | puts (dlerror ()); | |
d9898ee8 | 12248 | |
8d138742 CE |
12249 | return status; |
12250 | } | |
12251 | _LT_EOF | |
b0322a85 | 12252 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
8d138742 CE |
12253 | (eval $ac_link) 2>&5 |
12254 | ac_status=$? | |
b0322a85 CE |
12255 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12256 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
8d138742 CE |
12257 | (./conftest; exit; ) >&5 2>/dev/null |
12258 | lt_status=$? | |
12259 | case x$lt_status in | |
12260 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; | |
12261 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; | |
12262 | x$lt_dlunknown|x*) ;; | |
12263 | esac | |
12264 | else : | |
12265 | # compilation failed | |
d9898ee8 | 12266 | |
8d138742 CE |
12267 | fi |
12268 | fi | |
12269 | rm -fr conftest* | |
d9898ee8 | 12270 | |
8d138742 | 12271 | LIBS="$save_LIBS" |
d9898ee8 | 12272 | |
8d138742 | 12273 | fi |
b0322a85 | 12274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5 |
8d138742 CE |
12275 | $as_echo "$libltdl_cv_need_uscore" >&6; } |
12276 | fi | |
12277 | fi | |
d9898ee8 | 12278 | |
8d138742 | 12279 | if test x"$libltdl_cv_need_uscore" = xyes; then |
d9898ee8 | 12280 | |
b0322a85 | 12281 | $as_echo "#define NEED_USCORE 1" >>confdefs.h |
d9898ee8 | 12282 | |
8d138742 | 12283 | fi |
d9898ee8 | 12284 | |
b0322a85 | 12285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5 |
8d138742 | 12286 | $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; } |
b0322a85 | 12287 | if ${lt_cv_sys_dlopen_deplibs+:} false; then : |
8d138742 CE |
12288 | $as_echo_n "(cached) " >&6 |
12289 | else | |
12290 | # PORTME does your system automatically load deplibs for dlopen? | |
12291 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) | |
12292 | # For now, we just catch OSes we know something about -- in the | |
12293 | # future, we'll try test this programmatically. | |
12294 | lt_cv_sys_dlopen_deplibs=unknown | |
12295 | case $host_os in | |
12296 | aix3*|aix4.1.*|aix4.2.*) | |
12297 | # Unknown whether this is true for these versions of AIX, but | |
12298 | # we want this `case' here to explicitly catch those versions. | |
12299 | lt_cv_sys_dlopen_deplibs=unknown | |
12300 | ;; | |
12301 | aix[4-9]*) | |
12302 | lt_cv_sys_dlopen_deplibs=yes | |
12303 | ;; | |
12304 | amigaos*) | |
12305 | case $host_cpu in | |
12306 | powerpc) | |
12307 | lt_cv_sys_dlopen_deplibs=no | |
12308 | ;; | |
12309 | esac | |
12310 | ;; | |
12311 | darwin*) | |
12312 | # Assuming the user has installed a libdl from somewhere, this is true | |
12313 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat | |
12314 | lt_cv_sys_dlopen_deplibs=yes | |
12315 | ;; | |
12316 | freebsd* | dragonfly*) | |
12317 | lt_cv_sys_dlopen_deplibs=yes | |
12318 | ;; | |
b0322a85 | 12319 | gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
8d138742 CE |
12320 | # GNU and its variants, using gnu ld.so (Glibc) |
12321 | lt_cv_sys_dlopen_deplibs=yes | |
12322 | ;; | |
12323 | hpux10*|hpux11*) | |
12324 | lt_cv_sys_dlopen_deplibs=yes | |
12325 | ;; | |
12326 | interix*) | |
12327 | lt_cv_sys_dlopen_deplibs=yes | |
12328 | ;; | |
12329 | irix[12345]*|irix6.[01]*) | |
12330 | # Catch all versions of IRIX before 6.2, and indicate that we don't | |
12331 | # know how it worked for any of those versions. | |
12332 | lt_cv_sys_dlopen_deplibs=unknown | |
12333 | ;; | |
12334 | irix*) | |
12335 | # The case above catches anything before 6.2, and it's known that | |
12336 | # at 6.2 and later dlopen does load deplibs. | |
12337 | lt_cv_sys_dlopen_deplibs=yes | |
12338 | ;; | |
12339 | netbsd*) | |
12340 | lt_cv_sys_dlopen_deplibs=yes | |
12341 | ;; | |
12342 | openbsd*) | |
12343 | lt_cv_sys_dlopen_deplibs=yes | |
12344 | ;; | |
12345 | osf[1234]*) | |
12346 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, | |
12347 | # it did *not* use an RPATH in a shared library to find objects the | |
12348 | # library depends on, so we explicitly say `no'. | |
12349 | lt_cv_sys_dlopen_deplibs=no | |
12350 | ;; | |
12351 | osf5.0|osf5.0a|osf5.1) | |
12352 | # dlopen *does* load deplibs and with the right loader patch applied | |
12353 | # it even uses RPATH in a shared library to search for shared objects | |
12354 | # that the library depends on, but there's no easy way to know if that | |
12355 | # patch is installed. Since this is the case, all we can really | |
12356 | # say is unknown -- it depends on the patch being installed. If | |
12357 | # it is, this changes to `yes'. Without it, it would be `no'. | |
12358 | lt_cv_sys_dlopen_deplibs=unknown | |
12359 | ;; | |
12360 | osf*) | |
12361 | # the two cases above should catch all versions of osf <= 5.1. Read | |
12362 | # the comments above for what we know about them. | |
12363 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library | |
12364 | # is used to find them so we can finally say `yes'. | |
12365 | lt_cv_sys_dlopen_deplibs=yes | |
12366 | ;; | |
12367 | qnx*) | |
12368 | lt_cv_sys_dlopen_deplibs=yes | |
12369 | ;; | |
12370 | solaris*) | |
12371 | lt_cv_sys_dlopen_deplibs=yes | |
12372 | ;; | |
12373 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
12374 | libltdl_cv_sys_dlopen_deplibs=yes | |
12375 | ;; | |
12376 | esac | |
d9898ee8 | 12377 | |
8d138742 | 12378 | fi |
b0322a85 | 12379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5 |
8d138742 CE |
12380 | $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } |
12381 | if test "$lt_cv_sys_dlopen_deplibs" != yes; then | |
d9898ee8 | 12382 | |
b0322a85 | 12383 | $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h |
d9898ee8 | 12384 | |
8d138742 | 12385 | fi |
d9898ee8 | 12386 | |
8d138742 | 12387 | : |
d9898ee8 | 12388 | |
8d138742 | 12389 | for ac_header in argz.h |
b0322a85 CE |
12390 | do : |
12391 | ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default | |
12392 | " | |
12393 | if test "x$ac_cv_header_argz_h" = xyes; then : | |
8d138742 | 12394 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 12395 | #define HAVE_ARGZ_H 1 |
8d138742 | 12396 | _ACEOF |
d9898ee8 | 12397 | |
8d138742 | 12398 | fi |
d9898ee8 | 12399 | |
8d138742 | 12400 | done |
d9898ee8 | 12401 | |
d9898ee8 | 12402 | |
b0322a85 | 12403 | ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H) |
8d138742 CE |
12404 | # include <argz.h> |
12405 | #endif | |
b0322a85 CE |
12406 | " |
12407 | if test "x$ac_cv_type_error_t" = xyes; then : | |
d9898ee8 | 12408 | |
b0322a85 CE |
12409 | cat >>confdefs.h <<_ACEOF |
12410 | #define HAVE_ERROR_T 1 | |
8d138742 | 12411 | _ACEOF |
d9898ee8 | 12412 | |
b0322a85 | 12413 | |
8d138742 | 12414 | else |
d9898ee8 | 12415 | |
b0322a85 | 12416 | $as_echo "#define error_t int" >>confdefs.h |
d9898ee8 | 12417 | |
d9898ee8 | 12418 | |
b0322a85 | 12419 | $as_echo "#define __error_t_defined 1" >>confdefs.h |
d9898ee8 | 12420 | |
8d138742 | 12421 | fi |
d9898ee8 | 12422 | |
d9898ee8 | 12423 | |
b0322a85 CE |
12424 | ARGZ_H= |
12425 | for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ | |
12426 | argz_next argz_stringify | |
12427 | do : | |
12428 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12429 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
12430 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
12431 | cat >>confdefs.h <<_ACEOF | |
12432 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8d138742 | 12433 | _ACEOF |
d9898ee8 | 12434 | |
8d138742 | 12435 | else |
b0322a85 | 12436 | ARGZ_H=argz.h; |
d9898ee8 | 12437 | |
b0322a85 | 12438 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" |
d9898ee8 | 12439 | |
b0322a85 CE |
12440 | fi |
12441 | done | |
d9898ee8 | 12442 | |
d9898ee8 | 12443 | |
b0322a85 CE |
12444 | if test -z "$ARGZ_H"; then : |
12445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5 | |
12446 | $as_echo_n "checking if argz actually works... " >&6; } | |
12447 | if ${lt_cv_sys_argz_works+:} false; then : | |
12448 | $as_echo_n "(cached) " >&6 | |
12449 | else | |
12450 | case $host_os in #( | |
12451 | *cygwin*) | |
12452 | lt_cv_sys_argz_works=no | |
12453 | if test "$cross_compiling" != no; then | |
12454 | lt_cv_sys_argz_works="guessing no" | |
12455 | else | |
12456 | lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' | |
12457 | save_IFS=$IFS | |
12458 | IFS=-. | |
12459 | set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` | |
12460 | IFS=$save_IFS | |
12461 | lt_os_major=${2-0} | |
12462 | lt_os_minor=${3-0} | |
12463 | lt_os_micro=${4-0} | |
12464 | if test "$lt_os_major" -gt 1 \ | |
12465 | || { test "$lt_os_major" -eq 1 \ | |
12466 | && { test "$lt_os_minor" -gt 5 \ | |
12467 | || { test "$lt_os_minor" -eq 5 \ | |
12468 | && test "$lt_os_micro" -gt 24; }; }; }; then | |
12469 | lt_cv_sys_argz_works=yes | |
12470 | fi | |
12471 | fi | |
12472 | ;; #( | |
12473 | *) lt_cv_sys_argz_works=yes ;; | |
12474 | esac | |
8d138742 | 12475 | fi |
b0322a85 CE |
12476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5 |
12477 | $as_echo "$lt_cv_sys_argz_works" >&6; } | |
12478 | if test "$lt_cv_sys_argz_works" = yes; then : | |
d9898ee8 | 12479 | |
b0322a85 | 12480 | $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h |
d9898ee8 | 12481 | |
b0322a85 CE |
12482 | else |
12483 | ARGZ_H=argz.h | |
d9898ee8 | 12484 | |
d9898ee8 | 12485 | |
b0322a85 | 12486 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" |
d9898ee8 | 12487 | |
b0322a85 CE |
12488 | fi |
12489 | fi | |
d9898ee8 | 12490 | |
d9898ee8 | 12491 | |
d9898ee8 | 12492 | |
b0322a85 CE |
12493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
12494 | $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; } | |
12495 | if ${libltdl_cv_preloaded_symbols+:} false; then : | |
8d138742 CE |
12496 | $as_echo_n "(cached) " >&6 |
12497 | else | |
b0322a85 CE |
12498 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
12499 | libltdl_cv_preloaded_symbols=yes | |
12500 | else | |
12501 | libltdl_cv_preloaded_symbols=no | |
12502 | fi | |
d9898ee8 | 12503 | |
b0322a85 CE |
12504 | fi |
12505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5 | |
12506 | $as_echo "$libltdl_cv_preloaded_symbols" >&6; } | |
12507 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then | |
d9898ee8 | 12508 | |
b0322a85 | 12509 | $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h |
d9898ee8 | 12510 | |
8d138742 | 12511 | fi |
d9898ee8 | 12512 | |
d9898ee8 | 12513 | |
d9898ee8 | 12514 | |
8d138742 | 12515 | # Set options |
d9898ee8 | 12516 | |
d9898ee8 | 12517 | |
d9898ee8 | 12518 | |
d9898ee8 | 12519 | |
d9898ee8 | 12520 | |
d9898ee8 | 12521 | |
d9898ee8 | 12522 | |
d9898ee8 | 12523 | |
d9898ee8 | 12524 | |
d9898ee8 | 12525 | |
d9898ee8 | 12526 | |
12527 | ||
8d138742 | 12528 | # Check whether --with-included_ltdl was given. |
b0322a85 | 12529 | if test "${with_included_ltdl+set}" = set; then : |
8d138742 | 12530 | withval=$with_included_ltdl; |
d9898ee8 | 12531 | fi |
12532 | ||
12533 | ||
8d138742 CE |
12534 | if test "x$with_included_ltdl" != xyes; then |
12535 | # We are not being forced to use the included libltdl sources, so | |
12536 | # decide whether there is a useful installed version we can use. | |
b0322a85 | 12537 | ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default |
d9898ee8 | 12538 | |
b0322a85 CE |
12539 | " |
12540 | if test "x$ac_cv_header_ltdl_h" = xyes; then : | |
12541 | ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default | |
8d138742 | 12542 | #include <ltdl.h> |
b0322a85 CE |
12543 | " |
12544 | if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then : | |
12545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5 | |
8d138742 | 12546 | $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; } |
b0322a85 | 12547 | if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then : |
8d138742 CE |
12548 | $as_echo_n "(cached) " >&6 |
12549 | else | |
12550 | ac_check_lib_save_LIBS=$LIBS | |
12551 | LIBS="-lltdl $LIBS" | |
b0322a85 | 12552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
12553 | /* end confdefs.h. */ |
12554 | ||
12555 | /* Override any GCC internal prototype to avoid an error. | |
12556 | Use char because int might match the return type of a GCC | |
12557 | builtin and then its argument prototype would still apply. */ | |
12558 | #ifdef __cplusplus | |
12559 | extern "C" | |
12560 | #endif | |
12561 | char lt_dladvise_preload (); | |
12562 | int | |
12563 | main () | |
12564 | { | |
12565 | return lt_dladvise_preload (); | |
12566 | ; | |
12567 | return 0; | |
12568 | } | |
12569 | _ACEOF | |
b0322a85 | 12570 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
12571 | ac_cv_lib_ltdl_lt_dladvise_preload=yes |
12572 | else | |
b0322a85 | 12573 | ac_cv_lib_ltdl_lt_dladvise_preload=no |
8d138742 | 12574 | fi |
b0322a85 CE |
12575 | rm -f core conftest.err conftest.$ac_objext \ |
12576 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
12577 | LIBS=$ac_check_lib_save_LIBS |
12578 | fi | |
b0322a85 | 12579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5 |
8d138742 | 12580 | $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; } |
b0322a85 | 12581 | if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then : |
8d138742 CE |
12582 | with_included_ltdl=no |
12583 | else | |
12584 | with_included_ltdl=yes | |
12585 | fi | |
d9898ee8 | 12586 | |
8d138742 CE |
12587 | else |
12588 | with_included_ltdl=yes | |
12589 | fi | |
d9898ee8 | 12590 | |
8d138742 CE |
12591 | else |
12592 | with_included_ltdl=yes | |
12593 | fi | |
d9898ee8 | 12594 | |
12595 | ||
8d138742 | 12596 | fi |
d9898ee8 | 12597 | |
d9898ee8 | 12598 | |
12599 | ||
d9898ee8 | 12600 | |
b0322a85 CE |
12601 | |
12602 | ||
12603 | ||
12604 | ||
8d138742 | 12605 | # Check whether --with-ltdl_include was given. |
b0322a85 | 12606 | if test "${with_ltdl_include+set}" = set; then : |
8d138742 | 12607 | withval=$with_ltdl_include; |
d9898ee8 | 12608 | fi |
d9898ee8 | 12609 | |
8d138742 CE |
12610 | |
12611 | if test -n "$with_ltdl_include"; then | |
12612 | if test -f "$with_ltdl_include/ltdl.h"; then : | |
12613 | else | |
b0322a85 | 12614 | as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5 |
8d138742 | 12615 | fi |
d9898ee8 | 12616 | else |
8d138742 | 12617 | with_ltdl_include=no |
d9898ee8 | 12618 | fi |
12619 | ||
8d138742 CE |
12620 | |
12621 | # Check whether --with-ltdl_lib was given. | |
b0322a85 | 12622 | if test "${with_ltdl_lib+set}" = set; then : |
8d138742 | 12623 | withval=$with_ltdl_lib; |
d9898ee8 | 12624 | fi |
12625 | ||
d9898ee8 | 12626 | |
8d138742 CE |
12627 | if test -n "$with_ltdl_lib"; then |
12628 | if test -f "$with_ltdl_lib/libltdl.la"; then : | |
12629 | else | |
b0322a85 | 12630 | as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5 |
8d138742 CE |
12631 | fi |
12632 | else | |
12633 | with_ltdl_lib=no | |
12634 | fi | |
d9898ee8 | 12635 | |
8d138742 CE |
12636 | case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in |
12637 | ,yes,no,no,) | |
12638 | case $enable_ltdl_convenience in | |
b0322a85 | 12639 | no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;; |
8d138742 CE |
12640 | "") enable_ltdl_convenience=yes |
12641 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; | |
12642 | esac | |
12643 | LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" | |
12644 | LTDLDEPS=$LIBLTDL | |
12645 | LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" | |
d9898ee8 | 12646 | |
d9898ee8 | 12647 | |
d9898ee8 | 12648 | |
d9898ee8 | 12649 | |
d9898ee8 | 12650 | |
8d138742 CE |
12651 | # For backwards non-gettext consistent compatibility... |
12652 | INCLTDL="$LTDLINCL" | |
d9898ee8 | 12653 | |
d9898ee8 | 12654 | |
8d138742 CE |
12655 | ;; |
12656 | ,no,no,no,) | |
12657 | # If the included ltdl is not to be used, then use the | |
12658 | # preinstalled libltdl we found. | |
d9898ee8 | 12659 | |
b0322a85 | 12660 | $as_echo "#define HAVE_LTDL 1" >>confdefs.h |
d9898ee8 | 12661 | |
8d138742 CE |
12662 | LIBLTDL=-lltdl |
12663 | LTDLDEPS= | |
12664 | LTDLINCL= | |
d9898ee8 | 12665 | ;; |
8d138742 | 12666 | ,no*,no,*) |
b0322a85 | 12667 | as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5 |
d9898ee8 | 12668 | ;; |
8d138742 CE |
12669 | *) with_included_ltdl=no |
12670 | LIBLTDL="-L$with_ltdl_lib -lltdl" | |
12671 | LTDLDEPS= | |
12672 | LTDLINCL="-I$with_ltdl_include" | |
12673 | ;; | |
12674 | esac | |
12675 | INCLTDL="$LTDLINCL" | |
d9898ee8 | 12676 | |
8d138742 | 12677 | # Report our decision... |
b0322a85 | 12678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5 |
8d138742 | 12679 | $as_echo_n "checking where to find libltdl headers... " >&6; } |
b0322a85 | 12680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5 |
8d138742 | 12681 | $as_echo "$LTDLINCL" >&6; } |
b0322a85 | 12682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5 |
8d138742 | 12683 | $as_echo_n "checking where to find libltdl library... " >&6; } |
b0322a85 | 12684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5 |
8d138742 | 12685 | $as_echo "$LIBLTDL" >&6; } |
d9898ee8 | 12686 | |
d9898ee8 | 12687 | |
d9898ee8 | 12688 | |
8d138742 | 12689 | # Check whether --enable-ltdl-install was given. |
b0322a85 | 12690 | if test "${enable_ltdl_install+set}" = set; then : |
8d138742 CE |
12691 | enableval=$enable_ltdl_install; |
12692 | fi | |
d9898ee8 | 12693 | |
d9898ee8 | 12694 | |
8d138742 CE |
12695 | case ,${enable_ltdl_install},${enable_ltdl_convenience} in |
12696 | *yes*) ;; | |
12697 | *) enable_ltdl_convenience=yes ;; | |
12698 | esac | |
d9898ee8 | 12699 | |
8d138742 CE |
12700 | if test x"${enable_ltdl_install-no}" != xno; then |
12701 | INSTALL_LTDL_TRUE= | |
12702 | INSTALL_LTDL_FALSE='#' | |
12703 | else | |
12704 | INSTALL_LTDL_TRUE='#' | |
12705 | INSTALL_LTDL_FALSE= | |
12706 | fi | |
d9898ee8 | 12707 | |
8d138742 CE |
12708 | if test x"${enable_ltdl_convenience-no}" != xno; then |
12709 | CONVENIENCE_LTDL_TRUE= | |
12710 | CONVENIENCE_LTDL_FALSE='#' | |
12711 | else | |
12712 | CONVENIENCE_LTDL_TRUE='#' | |
12713 | CONVENIENCE_LTDL_FALSE= | |
12714 | fi | |
ac40fd9e | 12715 | |
d9898ee8 | 12716 | |
d9898ee8 | 12717 | |
8d138742 | 12718 | subdirs="$subdirs libltdl" |
d9898ee8 | 12719 | |
d9898ee8 | 12720 | |
d9898ee8 | 12721 | |
d9898ee8 | 12722 | |
8d138742 CE |
12723 | # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS |
12724 | # the user used. This is so that ltdl.h can pick up the parent projects | |
12725 | # config.h file, The first file in AC_CONFIG_HEADERS must contain the | |
12726 | # definitions required by ltdl.c. | |
12727 | # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). | |
d9898ee8 | 12728 | |
d9898ee8 | 12729 | |
d9898ee8 | 12730 | |
b0322a85 CE |
12731 | for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h |
12732 | do : | |
12733 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12734 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
12735 | " | |
12736 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
12737 | cat >>confdefs.h <<_ACEOF | |
12738 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12739 | _ACEOF | |
d9898ee8 | 12740 | |
b0322a85 | 12741 | fi |
d9898ee8 | 12742 | |
b0322a85 | 12743 | done |
d9898ee8 | 12744 | |
d9898ee8 | 12745 | |
b0322a85 CE |
12746 | for ac_func in closedir opendir readdir |
12747 | do : | |
12748 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12749 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
12750 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
12751 | cat >>confdefs.h <<_ACEOF | |
12752 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8d138742 | 12753 | _ACEOF |
d9898ee8 | 12754 | |
d9898ee8 | 12755 | else |
d9898ee8 | 12756 | |
d9898ee8 | 12757 | |
b0322a85 CE |
12758 | _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext" |
12759 | ||
d9898ee8 | 12760 | fi |
b0322a85 CE |
12761 | done |
12762 | ||
12763 | for ac_func in strlcat strlcpy | |
12764 | do : | |
12765 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12766 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
12767 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
8d138742 | 12768 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 12769 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
8d138742 | 12770 | _ACEOF |
d9898ee8 | 12771 | |
b0322a85 CE |
12772 | else |
12773 | ||
d9898ee8 | 12774 | |
b0322a85 CE |
12775 | _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext" |
12776 | ||
12777 | fi | |
d9898ee8 | 12778 | done |
d9898ee8 | 12779 | |
d9898ee8 | 12780 | |
d9898ee8 | 12781 | |
b0322a85 CE |
12782 | cat >>confdefs.h <<_ACEOF |
12783 | #define LT_LIBEXT "$libext" | |
12784 | _ACEOF | |
d9898ee8 | 12785 | |
d9898ee8 | 12786 | |
b0322a85 CE |
12787 | name= |
12788 | eval "lt_libprefix=\"$libname_spec\"" | |
12789 | ||
12790 | cat >>confdefs.h <<_ACEOF | |
12791 | #define LT_LIBPREFIX "$lt_libprefix" | |
d9898ee8 | 12792 | _ACEOF |
8d138742 | 12793 | |
8d138742 | 12794 | |
b0322a85 CE |
12795 | name=ltdl |
12796 | eval "LTDLOPEN=\"$libname_spec\"" | |
d9898ee8 | 12797 | |
d9898ee8 | 12798 | |
d9898ee8 | 12799 | |
d9898ee8 | 12800 | |
d9898ee8 | 12801 | |
d9898ee8 | 12802 | |
d9898ee8 | 12803 | |
d9898ee8 | 12804 | |
8d138742 | 12805 | # Only expand once: |
d9898ee8 | 12806 | |
d9898ee8 | 12807 | |
d9898ee8 | 12808 | |
d9898ee8 | 12809 | |
8d138742 CE |
12810 | for ac_prog in perl5 perl |
12811 | do | |
12812 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12813 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 12814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 12815 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 12816 | if ${ac_cv_path_PERL+:} false; then : |
8d138742 CE |
12817 | $as_echo_n "(cached) " >&6 |
12818 | else | |
12819 | case $PERL in | |
12820 | [\\/]* | ?:[\\/]*) | |
12821 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | |
12822 | ;; | |
12823 | *) | |
12824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12825 | for as_dir in $LPATH | |
12826 | do | |
12827 | IFS=$as_save_IFS | |
12828 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
12829 | for ac_exec_ext in '' $ac_executable_extensions; do |
12830 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 12831 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
b0322a85 | 12832 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
12833 | break 2 |
12834 | fi | |
12835 | done | |
b0322a85 | 12836 | done |
8d138742 | 12837 | IFS=$as_save_IFS |
d9898ee8 | 12838 | |
8d138742 CE |
12839 | ;; |
12840 | esac | |
12841 | fi | |
12842 | PERL=$ac_cv_path_PERL | |
12843 | if test -n "$PERL"; then | |
b0322a85 | 12844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
8d138742 CE |
12845 | $as_echo "$PERL" >&6; } |
12846 | else | |
b0322a85 | 12847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
12848 | $as_echo "no" >&6; } |
12849 | fi | |
d9898ee8 | 12850 | |
d9898ee8 | 12851 | |
8d138742 CE |
12852 | test -n "$PERL" && break |
12853 | done | |
12854 | test -n "$PERL" || PERL="perl" | |
d9898ee8 | 12855 | |
8d138742 CE |
12856 | for ac_prog in courier-config |
12857 | do | |
12858 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12859 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 12860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 12861 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 12862 | if ${ac_cv_path_COURIERCONFIG+:} false; then : |
8d138742 CE |
12863 | $as_echo_n "(cached) " >&6 |
12864 | else | |
12865 | case $COURIERCONFIG in | |
12866 | [\\/]* | ?:[\\/]*) | |
12867 | ac_cv_path_COURIERCONFIG="$COURIERCONFIG" # Let the user override the test with a path. | |
12868 | ;; | |
12869 | *) | |
12870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12871 | for as_dir in $LPATH | |
12872 | do | |
12873 | IFS=$as_save_IFS | |
12874 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
12875 | for ac_exec_ext in '' $ac_executable_extensions; do |
12876 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 12877 | ac_cv_path_COURIERCONFIG="$as_dir/$ac_word$ac_exec_ext" |
b0322a85 | 12878 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
12879 | break 2 |
12880 | fi | |
12881 | done | |
b0322a85 | 12882 | done |
8d138742 | 12883 | IFS=$as_save_IFS |
d9898ee8 | 12884 | |
8d138742 CE |
12885 | ;; |
12886 | esac | |
12887 | fi | |
12888 | COURIERCONFIG=$ac_cv_path_COURIERCONFIG | |
12889 | if test -n "$COURIERCONFIG"; then | |
b0322a85 | 12890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COURIERCONFIG" >&5 |
8d138742 CE |
12891 | $as_echo "$COURIERCONFIG" >&6; } |
12892 | else | |
b0322a85 | 12893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
12894 | $as_echo "no" >&6; } |
12895 | fi | |
d9898ee8 | 12896 | |
d9898ee8 | 12897 | |
8d138742 CE |
12898 | test -n "$COURIERCONFIG" && break |
12899 | done | |
12900 | test -n "$COURIERCONFIG" || COURIERCONFIG="courier-config" | |
d9898ee8 | 12901 | |
d9898ee8 | 12902 | |
b0322a85 CE |
12903 | ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default" |
12904 | if test "x$ac_cv_header_ltdl_h" = xyes; then : | |
12905 | : | |
12906 | else | |
12907 | as_fn_error $? "Unable to find ltdl.h. Please install Libtool's ltdl library" "$LINENO" 5 | |
12908 | fi | |
12909 | ||
12910 | ||
12911 | ||
8d138742 CE |
12912 | if test "$PERL" = "perl" |
12913 | then | |
b0322a85 | 12914 | as_fn_error $? "Perl is required" "$LINENO" 5 |
8d138742 | 12915 | fi |
d9898ee8 | 12916 | |
8d138742 CE |
12917 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
12918 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12919 | eval "prefix=$prefix" | |
12920 | eval "exec_prefix=$exec_prefix" | |
12921 | eval "sysconfdir=$sysconfdir" | |
12922 | eval "bindir=$bindir" | |
12923 | eval "sbindir=$sbindir" | |
12924 | eval "localstatedir=$localstatedir" | |
12925 | eval "libexecdir=$libexecdir" | |
b0322a85 CE |
12926 | eval "datarootdir=$datarootdir" |
12927 | eval "datedir=$datadir" | |
d9898ee8 | 12928 | |
8d138742 CE |
12929 | for ac_prog in expect |
12930 | do | |
12931 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12932 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 12933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 12934 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 12935 | if ${ac_cv_path_EXPECT+:} false; then : |
8d138742 CE |
12936 | $as_echo_n "(cached) " >&6 |
12937 | else | |
12938 | case $EXPECT in | |
12939 | [\\/]* | ?:[\\/]*) | |
12940 | ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path. | |
12941 | ;; | |
12942 | *) | |
12943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12944 | for as_dir in $LPATH | |
12945 | do | |
12946 | IFS=$as_save_IFS | |
12947 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
12948 | for ac_exec_ext in '' $ac_executable_extensions; do |
12949 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 12950 | ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext" |
b0322a85 | 12951 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 | 12952 | break 2 |
d9898ee8 | 12953 | fi |
8d138742 | 12954 | done |
b0322a85 | 12955 | done |
8d138742 | 12956 | IFS=$as_save_IFS |
d9898ee8 | 12957 | |
8d138742 CE |
12958 | ;; |
12959 | esac | |
12960 | fi | |
12961 | EXPECT=$ac_cv_path_EXPECT | |
12962 | if test -n "$EXPECT"; then | |
b0322a85 | 12963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
8d138742 CE |
12964 | $as_echo "$EXPECT" >&6; } |
12965 | else | |
b0322a85 | 12966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
12967 | $as_echo "no" >&6; } |
12968 | fi | |
d9898ee8 | 12969 | |
d9898ee8 | 12970 | |
8d138742 CE |
12971 | test -n "$EXPECT" && break |
12972 | done | |
12973 | test -n "$EXPECT" || EXPECT="expect" | |
d9898ee8 | 12974 | |
8d138742 CE |
12975 | |
12976 | if test "$EXPECT" = "expect" | |
12977 | then | |
b0322a85 | 12978 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -----------------------------------------------------" >&5 |
8d138742 | 12979 | $as_echo "$as_me: WARNING: -----------------------------------------------------" >&2;} |
b0322a85 | 12980 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expect not found - will not be able to change passwds" >&5 |
8d138742 | 12981 | $as_echo "$as_me: WARNING: expect not found - will not be able to change passwds" >&2;} |
b0322a85 | 12982 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: in webmail" >&5 |
8d138742 | 12983 | $as_echo "$as_me: WARNING: in webmail" >&2;} |
b0322a85 | 12984 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -----------------------------------------------------" >&5 |
8d138742 CE |
12985 | $as_echo "$as_me: WARNING: -----------------------------------------------------" >&2;} |
12986 | sleep 5 | |
12987 | else | |
12988 | ||
12989 | cat >>confdefs.h <<_ACEOF | |
12990 | #define HAVE_EXPECT 1 | |
12991 | _ACEOF | |
12992 | ||
12993 | fi | |
12994 | ||
12995 | for ac_prog in passwd | |
12996 | do | |
12997 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12998 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 12999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 13000 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 13001 | if ${ac_cv_path_PASSWD+:} false; then : |
8d138742 CE |
13002 | $as_echo_n "(cached) " >&6 |
13003 | else | |
13004 | case $PASSWD in | |
13005 | [\\/]* | ?:[\\/]*) | |
13006 | ac_cv_path_PASSWD="$PASSWD" # Let the user override the test with a path. | |
13007 | ;; | |
13008 | *) | |
13009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13010 | for as_dir in $LPATH | |
13011 | do | |
13012 | IFS=$as_save_IFS | |
13013 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
13014 | for ac_exec_ext in '' $ac_executable_extensions; do |
13015 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 13016 | ac_cv_path_PASSWD="$as_dir/$ac_word$ac_exec_ext" |
b0322a85 | 13017 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 | 13018 | break 2 |
d9898ee8 | 13019 | fi |
8d138742 | 13020 | done |
b0322a85 | 13021 | done |
8d138742 CE |
13022 | IFS=$as_save_IFS |
13023 | ||
d9898ee8 | 13024 | ;; |
13025 | esac | |
8d138742 CE |
13026 | fi |
13027 | PASSWD=$ac_cv_path_PASSWD | |
13028 | if test -n "$PASSWD"; then | |
b0322a85 | 13029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PASSWD" >&5 |
8d138742 CE |
13030 | $as_echo "$PASSWD" >&6; } |
13031 | else | |
b0322a85 | 13032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
13033 | $as_echo "no" >&6; } |
13034 | fi | |
d9898ee8 | 13035 | |
ac40fd9e | 13036 | |
8d138742 CE |
13037 | test -n "$PASSWD" && break |
13038 | done | |
13039 | test -n "$PASSWD" || PASSWD="passwd" | |
d9898ee8 | 13040 | |
d9898ee8 | 13041 | |
d9898ee8 | 13042 | |
8d138742 CE |
13043 | if test "$GCC" = "yes" |
13044 | then | |
13045 | CFLAGS="$CFLAGS -Wall" | |
13046 | fi | |
d9898ee8 | 13047 | |
b0322a85 | 13048 | CFLAGS="$CFLAGS -Ilibs -I${srcdir}/libs" |
d9898ee8 | 13049 | |
b0322a85 | 13050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lm is needed for floor" >&5 |
8d138742 | 13051 | $as_echo_n "checking whether -lm is needed for floor... " >&6; } |
b0322a85 | 13052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 13053 | /* end confdefs.h. */ |
d9898ee8 | 13054 | |
8d138742 CE |
13055 | /* Override any GCC internal prototype to avoid an error. |
13056 | Use char because int might match the return type of a GCC | |
13057 | builtin and then its argument prototype would still apply. */ | |
13058 | #ifdef __cplusplus | |
13059 | extern "C" | |
13060 | #endif | |
13061 | char floor (); | |
13062 | int | |
13063 | main () | |
13064 | { | |
13065 | return floor (); | |
13066 | ; | |
13067 | return 0; | |
13068 | } | |
13069 | _ACEOF | |
b0322a85 CE |
13070 | if ac_fn_c_try_link "$LINENO"; then : |
13071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8d138742 CE |
13072 | $as_echo "no" >&6; } |
13073 | else | |
b0322a85 CE |
13074 | LIBM="-lm" |
13075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8d138742 CE |
13076 | $as_echo "yes" >&6; } |
13077 | fi | |
b0322a85 CE |
13078 | rm -f core conftest.err conftest.$ac_objext \ |
13079 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 13080 | |
d9898ee8 | 13081 | |
8d138742 | 13082 | # Check whether --with-pkgconfdir was given. |
b0322a85 | 13083 | if test "${with_pkgconfdir+set}" = set; then : |
8d138742 CE |
13084 | withval=$with_pkgconfdir; pkgconfdir="$withval" |
13085 | else | |
13086 | pkgconfdir="$sysconfdir/authlib" | |
13087 | fi | |
d9898ee8 | 13088 | |
d9898ee8 | 13089 | |
8d138742 CE |
13090 | saveLIBS="$LIBS" |
13091 | NETLIBS="" | |
13092 | USENSL=no | |
ac40fd9e | 13093 | |
b0322a85 | 13094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
8d138742 | 13095 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
b0322a85 | 13096 | if ${ac_cv_lib_socket_socket+:} false; then : |
8d138742 CE |
13097 | $as_echo_n "(cached) " >&6 |
13098 | else | |
13099 | ac_check_lib_save_LIBS=$LIBS | |
13100 | LIBS="-lsocket $LIBS" | |
b0322a85 | 13101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 13102 | /* end confdefs.h. */ |
d9898ee8 | 13103 | |
8d138742 CE |
13104 | /* Override any GCC internal prototype to avoid an error. |
13105 | Use char because int might match the return type of a GCC | |
13106 | builtin and then its argument prototype would still apply. */ | |
13107 | #ifdef __cplusplus | |
13108 | extern "C" | |
13109 | #endif | |
13110 | char socket (); | |
13111 | int | |
13112 | main () | |
13113 | { | |
13114 | return socket (); | |
13115 | ; | |
13116 | return 0; | |
13117 | } | |
13118 | _ACEOF | |
b0322a85 | 13119 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
13120 | ac_cv_lib_socket_socket=yes |
13121 | else | |
b0322a85 | 13122 | ac_cv_lib_socket_socket=no |
8d138742 | 13123 | fi |
b0322a85 CE |
13124 | rm -f core conftest.err conftest.$ac_objext \ |
13125 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 13126 | LIBS=$ac_check_lib_save_LIBS |
13127 | fi | |
b0322a85 | 13128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
8d138742 | 13129 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
b0322a85 | 13130 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
d9898ee8 | 13131 | result=yes |
13132 | else | |
13133 | result=no | |
13134 | fi | |
13135 | ||
13136 | if test $result = yes; then | |
13137 | NETLIBS="-lsocket" | |
13138 | else | |
b0322a85 | 13139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
8d138742 | 13140 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
b0322a85 | 13141 | if ${ac_cv_lib_socket_socket+:} false; then : |
8d138742 | 13142 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 13143 | else |
13144 | ac_check_lib_save_LIBS=$LIBS | |
13145 | LIBS="-lsocket -lnsl $LIBS" | |
b0322a85 | 13146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 13147 | /* end confdefs.h. */ |
13148 | ||
dd184caf | 13149 | /* Override any GCC internal prototype to avoid an error. |
13150 | Use char because int might match the return type of a GCC | |
13151 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 13152 | #ifdef __cplusplus |
13153 | extern "C" | |
13154 | #endif | |
d9898ee8 | 13155 | char socket (); |
13156 | int | |
13157 | main () | |
13158 | { | |
dd184caf | 13159 | return socket (); |
d9898ee8 | 13160 | ; |
13161 | return 0; | |
13162 | } | |
13163 | _ACEOF | |
b0322a85 | 13164 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 13165 | ac_cv_lib_socket_socket=yes |
13166 | else | |
b0322a85 | 13167 | ac_cv_lib_socket_socket=no |
d9898ee8 | 13168 | fi |
b0322a85 CE |
13169 | rm -f core conftest.err conftest.$ac_objext \ |
13170 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 13171 | LIBS=$ac_check_lib_save_LIBS |
13172 | fi | |
b0322a85 | 13173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
8d138742 | 13174 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
b0322a85 | 13175 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
d9898ee8 | 13176 | result=yes |
13177 | else | |
13178 | result=no | |
13179 | fi | |
13180 | ||
13181 | if test $result = yes; then | |
13182 | NETLIBS = "-lsocket -lnsl" | |
13183 | USENSL=yes | |
13184 | else | |
b0322a85 | 13185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 |
8d138742 | 13186 | $as_echo_n "checking for connect in -lsocket... " >&6; } |
b0322a85 | 13187 | if ${ac_cv_lib_socket_connect+:} false; then : |
8d138742 | 13188 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 13189 | else |
13190 | ac_check_lib_save_LIBS=$LIBS | |
13191 | LIBS="-lsocket $LIBS" | |
b0322a85 | 13192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 13193 | /* end confdefs.h. */ |
13194 | ||
dd184caf | 13195 | /* Override any GCC internal prototype to avoid an error. |
13196 | Use char because int might match the return type of a GCC | |
13197 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 13198 | #ifdef __cplusplus |
13199 | extern "C" | |
13200 | #endif | |
d9898ee8 | 13201 | char connect (); |
13202 | int | |
13203 | main () | |
13204 | { | |
dd184caf | 13205 | return connect (); |
d9898ee8 | 13206 | ; |
13207 | return 0; | |
13208 | } | |
13209 | _ACEOF | |
b0322a85 | 13210 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 13211 | ac_cv_lib_socket_connect=yes |
13212 | else | |
b0322a85 | 13213 | ac_cv_lib_socket_connect=no |
d9898ee8 | 13214 | fi |
b0322a85 CE |
13215 | rm -f core conftest.err conftest.$ac_objext \ |
13216 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 13217 | LIBS=$ac_check_lib_save_LIBS |
13218 | fi | |
b0322a85 | 13219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 |
8d138742 | 13220 | $as_echo "$ac_cv_lib_socket_connect" >&6; } |
b0322a85 | 13221 | if test "x$ac_cv_lib_socket_connect" = xyes; then : |
d9898ee8 | 13222 | result=yes |
13223 | else | |
13224 | result=no | |
13225 | fi | |
13226 | ||
13227 | if test $result = yes; then | |
13228 | NETLIBS="-lsocket" | |
13229 | else | |
b0322a85 | 13230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 |
8d138742 | 13231 | $as_echo_n "checking for connect in -lsocket... " >&6; } |
b0322a85 | 13232 | if ${ac_cv_lib_socket_connect+:} false; then : |
8d138742 | 13233 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 13234 | else |
13235 | ac_check_lib_save_LIBS=$LIBS | |
13236 | LIBS="-lsocket -lnsl $LIBS" | |
b0322a85 | 13237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 13238 | /* end confdefs.h. */ |
13239 | ||
dd184caf | 13240 | /* Override any GCC internal prototype to avoid an error. |
13241 | Use char because int might match the return type of a GCC | |
13242 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 13243 | #ifdef __cplusplus |
13244 | extern "C" | |
13245 | #endif | |
d9898ee8 | 13246 | char connect (); |
13247 | int | |
13248 | main () | |
13249 | { | |
dd184caf | 13250 | return connect (); |
d9898ee8 | 13251 | ; |
13252 | return 0; | |
13253 | } | |
13254 | _ACEOF | |
b0322a85 | 13255 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 13256 | ac_cv_lib_socket_connect=yes |
13257 | else | |
b0322a85 | 13258 | ac_cv_lib_socket_connect=no |
d9898ee8 | 13259 | fi |
b0322a85 CE |
13260 | rm -f core conftest.err conftest.$ac_objext \ |
13261 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 13262 | LIBS=$ac_check_lib_save_LIBS |
13263 | fi | |
b0322a85 | 13264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 |
8d138742 | 13265 | $as_echo "$ac_cv_lib_socket_connect" >&6; } |
b0322a85 | 13266 | if test "x$ac_cv_lib_socket_connect" = xyes; then : |
d9898ee8 | 13267 | result=yes |
13268 | else | |
13269 | result=no | |
13270 | fi | |
13271 | ||
13272 | if test $result = yes; then | |
13273 | NETLIBS="-lsocket -lnsl" | |
13274 | USENSL=yes | |
13275 | fi | |
13276 | fi | |
13277 | fi | |
13278 | fi | |
13279 | ||
13280 | if test $USENSL != yes; then | |
13281 | LIBS="$LIBS $NETLIBS" | |
b0322a85 | 13282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 13283 | /* end confdefs.h. */ |
13284 | ||
dd184caf | 13285 | /* Override any GCC internal prototype to avoid an error. |
13286 | Use char because int might match the return type of a GCC | |
13287 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 13288 | #ifdef __cplusplus |
13289 | extern "C" | |
13290 | #endif | |
d9898ee8 | 13291 | char inet_addr (); |
13292 | int | |
13293 | main () | |
13294 | { | |
dd184caf | 13295 | return inet_addr (); |
d9898ee8 | 13296 | ; |
13297 | return 0; | |
13298 | } | |
13299 | _ACEOF | |
b0322a85 | 13300 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 13301 | : |
13302 | else | |
d9898ee8 | 13303 | |
b0322a85 | 13304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5 |
8d138742 | 13305 | $as_echo_n "checking for inet_addr in -lnsl... " >&6; } |
b0322a85 | 13306 | if ${ac_cv_lib_nsl_inet_addr+:} false; then : |
8d138742 | 13307 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 13308 | else |
13309 | ac_check_lib_save_LIBS=$LIBS | |
13310 | LIBS="-lnsl $LIBS" | |
b0322a85 | 13311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 13312 | /* end confdefs.h. */ |
13313 | ||
dd184caf | 13314 | /* Override any GCC internal prototype to avoid an error. |
13315 | Use char because int might match the return type of a GCC | |
13316 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 13317 | #ifdef __cplusplus |
13318 | extern "C" | |
13319 | #endif | |
d9898ee8 | 13320 | char inet_addr (); |
13321 | int | |
13322 | main () | |
13323 | { | |
dd184caf | 13324 | return inet_addr (); |
d9898ee8 | 13325 | ; |
13326 | return 0; | |
13327 | } | |
13328 | _ACEOF | |
b0322a85 | 13329 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 13330 | ac_cv_lib_nsl_inet_addr=yes |
13331 | else | |
b0322a85 | 13332 | ac_cv_lib_nsl_inet_addr=no |
d9898ee8 | 13333 | fi |
b0322a85 CE |
13334 | rm -f core conftest.err conftest.$ac_objext \ |
13335 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 13336 | LIBS=$ac_check_lib_save_LIBS |
13337 | fi | |
b0322a85 | 13338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5 |
8d138742 | 13339 | $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; } |
b0322a85 | 13340 | if test "x$ac_cv_lib_nsl_inet_addr" = xyes; then : |
d9898ee8 | 13341 | result=yes |
13342 | else | |
13343 | result=no | |
13344 | fi | |
13345 | ||
13346 | if test $result = yes; then | |
13347 | NETLIBS="$NETLIBS -lnsl" | |
13348 | fi | |
13349 | ||
13350 | fi | |
b0322a85 CE |
13351 | rm -f core conftest.err conftest.$ac_objext \ |
13352 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 13353 | fi |
13354 | ||
13355 | LIBS="$saveLIBS" | |
13356 | ||
13357 | ||
13358 | ||
13359 | ||
13360 | ||
13361 | ||
13362 | ||
dd184caf | 13363 | # Check whether --with-db was given. |
b0322a85 | 13364 | if test "${with_db+set}" = set; then : |
dd184caf | 13365 | withval=$with_db; db="$withval" |
d9898ee8 | 13366 | else |
13367 | needs_withdb=1 | |
dd184caf | 13368 | fi |
13369 | ||
d9898ee8 | 13370 | |
13371 | case "$db" in | |
13372 | gdbm) | |
13373 | ;; | |
13374 | db) | |
13375 | ;; | |
13376 | "") | |
13377 | ;; | |
13378 | *) | |
b0322a85 | 13379 | as_fn_error $? "Invalid --with-db option." "$LINENO" 5 |
d9898ee8 | 13380 | ;; |
13381 | esac | |
13382 | ||
13383 | saveLIBS="$LIBS" | |
13384 | ||
13385 | if test "$db" != "db" | |
13386 | then | |
b0322a85 | 13387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5 |
8d138742 | 13388 | $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; } |
b0322a85 | 13389 | if ${ac_cv_lib_gdbm_gdbm_open+:} false; then : |
8d138742 | 13390 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 13391 | else |
13392 | ac_check_lib_save_LIBS=$LIBS | |
13393 | LIBS="-lgdbm $LIBS" | |
b0322a85 | 13394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 13395 | /* end confdefs.h. */ |
13396 | ||
dd184caf | 13397 | /* Override any GCC internal prototype to avoid an error. |
13398 | Use char because int might match the return type of a GCC | |
13399 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 13400 | #ifdef __cplusplus |
13401 | extern "C" | |
13402 | #endif | |
d9898ee8 | 13403 | char gdbm_open (); |
13404 | int | |
13405 | main () | |
13406 | { | |
dd184caf | 13407 | return gdbm_open (); |
d9898ee8 | 13408 | ; |
13409 | return 0; | |
13410 | } | |
13411 | _ACEOF | |
b0322a85 | 13412 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 13413 | ac_cv_lib_gdbm_gdbm_open=yes |
13414 | else | |
b0322a85 | 13415 | ac_cv_lib_gdbm_gdbm_open=no |
d9898ee8 | 13416 | fi |
b0322a85 CE |
13417 | rm -f core conftest.err conftest.$ac_objext \ |
13418 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 13419 | LIBS=$ac_check_lib_save_LIBS |
13420 | fi | |
b0322a85 | 13421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5 |
8d138742 | 13422 | $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; } |
b0322a85 | 13423 | if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then : |
d9898ee8 | 13424 | LIBGDBM=-lgdbm ; LIBS="-lgdbm $LIBS" |
13425 | fi | |
13426 | ||
b0322a85 CE |
13427 | ac_fn_c_check_func "$LINENO" "gdbm_open" "ac_cv_func_gdbm_open" |
13428 | if test "x$ac_cv_func_gdbm_open" = xyes; then : | |
d9898ee8 | 13429 | HAVE_GDBM=y |
13430 | fi | |
13431 | ||
13432 | fi | |
13433 | ||
13434 | LIBS="$saveLIBS" | |
13435 | ||
13436 | if test "$db" != "gdbm" | |
13437 | then | |
b0322a85 | 13438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -ldb" >&5 |
8d138742 | 13439 | $as_echo_n "checking for dbopen in -ldb... " >&6; } |
b0322a85 | 13440 | if ${ac_cv_lib_db_dbopen+:} false; then : |
8d138742 | 13441 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 13442 | else |
13443 | ac_check_lib_save_LIBS=$LIBS | |
13444 | LIBS="-ldb $LIBS" | |
b0322a85 | 13445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 13446 | /* end confdefs.h. */ |
13447 | ||
dd184caf | 13448 | /* Override any GCC internal prototype to avoid an error. |
13449 | Use char because int might match the return type of a GCC | |
13450 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 13451 | #ifdef __cplusplus |
13452 | extern "C" | |
13453 | #endif | |
d9898ee8 | 13454 | char dbopen (); |
13455 | int | |
13456 | main () | |
13457 | { | |
dd184caf | 13458 | return dbopen (); |
d9898ee8 | 13459 | ; |
13460 | return 0; | |
13461 | } | |
13462 | _ACEOF | |
b0322a85 | 13463 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 13464 | ac_cv_lib_db_dbopen=yes |
13465 | else | |
b0322a85 | 13466 | ac_cv_lib_db_dbopen=no |
d9898ee8 | 13467 | fi |
b0322a85 CE |
13468 | rm -f core conftest.err conftest.$ac_objext \ |
13469 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 13470 | LIBS=$ac_check_lib_save_LIBS |
13471 | fi | |
b0322a85 | 13472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_dbopen" >&5 |
8d138742 | 13473 | $as_echo "$ac_cv_lib_db_dbopen" >&6; } |
b0322a85 | 13474 | if test "x$ac_cv_lib_db_dbopen" = xyes; then : |
d9898ee8 | 13475 | LIBDB=-ldb ; LIBS="-ldb $LIBS" |
13476 | else | |
b0322a85 | 13477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -ldb" >&5 |
8d138742 | 13478 | $as_echo_n "checking for db_open in -ldb... " >&6; } |
b0322a85 | 13479 | if ${ac_cv_lib_db_db_open+:} false; then : |
8d138742 | 13480 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 13481 | else |
13482 | ac_check_lib_save_LIBS=$LIBS | |
13483 | LIBS="-ldb $LIBS" | |
b0322a85 | 13484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 13485 | /* end confdefs.h. */ |
13486 | ||
dd184caf | 13487 | /* Override any GCC internal prototype to avoid an error. |
13488 | Use char because int might match the return type of a GCC | |
13489 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 13490 | #ifdef __cplusplus |
13491 | extern "C" | |
13492 | #endif | |
d9898ee8 | 13493 | char db_open (); |
13494 | int | |
13495 | main () | |
13496 | { | |
dd184caf | 13497 | return db_open (); |
d9898ee8 | 13498 | ; |
13499 | return 0; | |
13500 | } | |
13501 | _ACEOF | |
b0322a85 | 13502 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 13503 | ac_cv_lib_db_db_open=yes |
13504 | else | |
b0322a85 | 13505 | ac_cv_lib_db_db_open=no |
d9898ee8 | 13506 | fi |
b0322a85 CE |
13507 | rm -f core conftest.err conftest.$ac_objext \ |
13508 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 13509 | LIBS=$ac_check_lib_save_LIBS |
13510 | fi | |
b0322a85 | 13511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_db_open" >&5 |
8d138742 | 13512 | $as_echo "$ac_cv_lib_db_db_open" >&6; } |
b0322a85 | 13513 | if test "x$ac_cv_lib_db_db_open" = xyes; then : |
d9898ee8 | 13514 | LIBDB=-ldb ; LIBS="-ldb $LIBS" |
13515 | else | |
b0322a85 | 13516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb" >&5 |
8d138742 | 13517 | $as_echo_n "checking for db_env_create in -ldb... " >&6; } |
b0322a85 | 13518 | if ${ac_cv_lib_db_db_env_create+:} false; then : |
8d138742 | 13519 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 13520 | else |
13521 | ac_check_lib_save_LIBS=$LIBS | |
13522 | LIBS="-ldb $LIBS" | |
b0322a85 | 13523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 13524 | /* end confdefs.h. */ |
13525 | ||
dd184caf | 13526 | /* Override any GCC internal prototype to avoid an error. |
13527 | Use char because int might match the return type of a GCC | |
13528 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 13529 | #ifdef __cplusplus |
13530 | extern "C" | |
13531 | #endif | |
d9898ee8 | 13532 | char db_env_create (); |
13533 | int | |
13534 | main () | |
13535 | { | |
dd184caf | 13536 | return db_env_create (); |
d9898ee8 | 13537 | ; |
13538 | return 0; | |
13539 | } | |
13540 | _ACEOF | |
b0322a85 | 13541 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 13542 | ac_cv_lib_db_db_env_create=yes |
13543 | else | |
b0322a85 | 13544 | ac_cv_lib_db_db_env_create=no |
d9898ee8 | 13545 | fi |
b0322a85 CE |
13546 | rm -f core conftest.err conftest.$ac_objext \ |
13547 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 13548 | LIBS=$ac_check_lib_save_LIBS |
13549 | fi | |
b0322a85 | 13550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_db_env_create" >&5 |
8d138742 | 13551 | $as_echo "$ac_cv_lib_db_db_env_create" >&6; } |
b0322a85 | 13552 | if test "x$ac_cv_lib_db_db_env_create" = xyes; then : |
d9898ee8 | 13553 | LIBDB=-ldb; LIBS="-ldb $LIBS" |
13554 | fi | |
13555 | ||
13556 | ||
13557 | fi | |
13558 | ||
13559 | fi | |
13560 | ||
13561 | ||
b0322a85 CE |
13562 | ac_fn_c_check_func "$LINENO" "dbopen" "ac_cv_func_dbopen" |
13563 | if test "x$ac_cv_func_dbopen" = xyes; then : | |
13564 | HAVE_BDB=1 | |
13565 | fi | |
d9898ee8 | 13566 | |
b0322a85 CE |
13567 | ac_fn_c_check_func "$LINENO" "db_open" "ac_cv_func_db_open" |
13568 | if test "x$ac_cv_func_db_open" = xyes; then : | |
13569 | HAVE_BDB=1 | |
13570 | fi | |
d9898ee8 | 13571 | |
b0322a85 CE |
13572 | ac_fn_c_check_func "$LINENO" "db_env_create" "ac_cv_func_db_env_create" |
13573 | if test "x$ac_cv_func_db_env_create" = xyes; then : | |
13574 | HAVE_BDB=1 | |
13575 | fi | |
d9898ee8 | 13576 | |
b0322a85 | 13577 | fi |
d9898ee8 | 13578 | |
b0322a85 | 13579 | LIBS="$saveLIBS" |
d9898ee8 | 13580 | |
b0322a85 CE |
13581 | if test "$HAVE_GDBM$HAVE_BDB" = "" |
13582 | then | |
13583 | as_fn_error $? "Cannot find either the gdbm or the db library." "$LINENO" 5 | |
d9898ee8 | 13584 | fi |
dd184caf | 13585 | |
b0322a85 CE |
13586 | USE_GDBM=0 |
13587 | USE_DB=0 | |
d9898ee8 | 13588 | |
b0322a85 CE |
13589 | if test "$HAVE_GDBM" = "y" |
13590 | then | |
13591 | LIBDB="" | |
13592 | USE_GDBM=1 | |
13593 | if test "$needs_withdb" = 1 | |
13594 | then | |
13595 | ac_configure_args="$ac_configure_args --with-db=gdbm" | |
13596 | fi | |
13597 | dblibrary=libs/gdbmobj/libgdbmobj.la | |
d9898ee8 | 13598 | else |
b0322a85 CE |
13599 | LIBGDBM="" |
13600 | USE_DB=1 | |
13601 | if test "$needs_withdb" = 1 | |
13602 | then | |
13603 | ac_configure_args="$ac_configure_args --with-db=db" | |
13604 | fi | |
13605 | dblibrary=libs/bdbobj/libbdbobj.la | |
13606 | fi | |
d9898ee8 | 13607 | |
d9898ee8 | 13608 | |
d9898ee8 | 13609 | |
d9898ee8 | 13610 | |
d9898ee8 | 13611 | |
b0322a85 CE |
13612 | # Check whether --with-authuserdb was given. |
13613 | if test "${with_authuserdb+set}" = set; then : | |
13614 | withval=$with_authuserdb; doauthuserdb="$withval" | |
d9898ee8 | 13615 | else |
b0322a85 CE |
13616 | doauthuserdb="no" |
13617 | if test -d ${srcdir}/userdb | |
13618 | then | |
13619 | doauthuserdb="yes" | |
13620 | fi | |
dd184caf | 13621 | fi |
13622 | ||
d9898ee8 | 13623 | |
13624 | if test "$doauthuserdb" = "no" | |
13625 | then | |
13626 | AUTHUSERDB="" | |
13627 | else | |
13628 | AUTHUSERDB="authuserdb" | |
13629 | LIBAUTHUSERDB="libauthuserdb.la" | |
13630 | ||
13631 | fi | |
13632 | ||
13633 | ||
dd184caf | 13634 | # Check whether --with-makedatprog was given. |
b0322a85 | 13635 | if test "${with_makedatprog+set}" = set; then : |
dd184caf | 13636 | withval=$with_makedatprog; : |
d9898ee8 | 13637 | else |
13638 | ||
13639 | ac_configure_args="$ac_configure_args --with-makedatprog=$libexecdir/courier-authlib/makedatprog" | |
13640 | ||
dd184caf | 13641 | fi |
13642 | ||
d9898ee8 | 13643 | |
13644 | cat >dbobj.config <<EOF | |
13645 | LIBDB=$LIBDB | |
13646 | LIBGDBM=$LIBGDBM | |
13647 | dblibrary=$dblibrary | |
13648 | EOF | |
13649 | ||
13650 | ||
13651 | ||
13652 | ||
13653 | ||
13654 | ||
13655 | ||
13656 | ||
13657 | ||
13658 | userdb="$pkgconfdir/userdb" | |
13659 | ||
dd184caf | 13660 | # Check whether --with-userdb was given. |
b0322a85 | 13661 | if test "${with_userdb+set}" = set; then : |
dd184caf | 13662 | withval=$with_userdb; userdb="$withval" |
d9898ee8 | 13663 | else |
13664 | ac_configure_args="$ac_configure_args '--with-userdb=$userdb'" | |
dd184caf | 13665 | fi |
13666 | ||
d9898ee8 | 13667 | |
13668 | ||
13669 | cat >>confdefs.h <<_ACEOF | |
13670 | #define USERDB "$userdb" | |
13671 | _ACEOF | |
13672 | ||
13673 | ||
13674 | ||
d9898ee8 | 13675 | for ac_header in stdio.h |
b0322a85 CE |
13676 | do : |
13677 | ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" | |
13678 | if test "x$ac_cv_header_stdio_h" = xyes; then : | |
d9898ee8 | 13679 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 13680 | #define HAVE_STDIO_H 1 |
d9898ee8 | 13681 | _ACEOF |
13682 | ||
13683 | fi | |
13684 | ||
13685 | done | |
13686 | ||
13687 | ||
13688 | ||
13689 | ||
13690 | ||
13691 | ||
dd184caf | 13692 | # Check whether --with-authpam was given. |
b0322a85 | 13693 | if test "${with_authpam+set}" = set; then : |
dd184caf | 13694 | withval=$with_authpam; doauthpam="$withval" |
13695 | fi | |
13696 | ||
d9898ee8 | 13697 | |
d9898ee8 | 13698 | for ac_header in security/pam_appl.h Pam/pam_appl.h |
b0322a85 CE |
13699 | do : |
13700 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13701 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
13702 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
d9898ee8 | 13703 | cat >>confdefs.h <<_ACEOF |
8d138742 | 13704 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d9898ee8 | 13705 | _ACEOF |
13706 | ||
13707 | fi | |
13708 | ||
13709 | done | |
13710 | ||
13711 | if test "$doauthpam" = "no" | |
13712 | then | |
13713 | LIBDL="" | |
13714 | else | |
13715 | saveLIBS="$LIBS" | |
13716 | LIBDL="" | |
b0322a85 | 13717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
8d138742 | 13718 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
b0322a85 | 13719 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
8d138742 | 13720 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 13721 | else |
13722 | ac_check_lib_save_LIBS=$LIBS | |
13723 | LIBS="-ldl $LIBS" | |
b0322a85 | 13724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 13725 | /* end confdefs.h. */ |
13726 | ||
dd184caf | 13727 | /* Override any GCC internal prototype to avoid an error. |
13728 | Use char because int might match the return type of a GCC | |
13729 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 13730 | #ifdef __cplusplus |
13731 | extern "C" | |
13732 | #endif | |
d9898ee8 | 13733 | char dlopen (); |
13734 | int | |
13735 | main () | |
13736 | { | |
dd184caf | 13737 | return dlopen (); |
d9898ee8 | 13738 | ; |
13739 | return 0; | |
13740 | } | |
13741 | _ACEOF | |
b0322a85 | 13742 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 13743 | ac_cv_lib_dl_dlopen=yes |
13744 | else | |
b0322a85 | 13745 | ac_cv_lib_dl_dlopen=no |
d9898ee8 | 13746 | fi |
b0322a85 CE |
13747 | rm -f core conftest.err conftest.$ac_objext \ |
13748 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 13749 | LIBS=$ac_check_lib_save_LIBS |
13750 | fi | |
b0322a85 | 13751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
8d138742 | 13752 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
b0322a85 | 13753 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
d9898ee8 | 13754 | LIBDL="-ldl" |
13755 | fi | |
13756 | ||
13757 | LIBS="$saveLIBS" | |
13758 | ||
b0322a85 | 13759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 |
8d138742 | 13760 | $as_echo_n "checking for pam_start in -lpam... " >&6; } |
b0322a85 | 13761 | if ${ac_cv_lib_pam_pam_start+:} false; then : |
8d138742 | 13762 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 13763 | else |
13764 | ac_check_lib_save_LIBS=$LIBS | |
13765 | LIBS="-lpam $LIBDL $LIBS" | |
b0322a85 | 13766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 13767 | /* end confdefs.h. */ |
13768 | ||
dd184caf | 13769 | /* Override any GCC internal prototype to avoid an error. |
13770 | Use char because int might match the return type of a GCC | |
13771 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 13772 | #ifdef __cplusplus |
13773 | extern "C" | |
13774 | #endif | |
d9898ee8 | 13775 | char pam_start (); |
13776 | int | |
13777 | main () | |
13778 | { | |
dd184caf | 13779 | return pam_start (); |
d9898ee8 | 13780 | ; |
13781 | return 0; | |
13782 | } | |
13783 | _ACEOF | |
b0322a85 | 13784 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 13785 | ac_cv_lib_pam_pam_start=yes |
13786 | else | |
b0322a85 | 13787 | ac_cv_lib_pam_pam_start=no |
d9898ee8 | 13788 | fi |
b0322a85 CE |
13789 | rm -f core conftest.err conftest.$ac_objext \ |
13790 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 13791 | LIBS=$ac_check_lib_save_LIBS |
13792 | fi | |
b0322a85 | 13793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5 |
8d138742 | 13794 | $as_echo "$ac_cv_lib_pam_pam_start" >&6; } |
b0322a85 | 13795 | if test "x$ac_cv_lib_pam_pam_start" = xyes; then : |
d9898ee8 | 13796 | HAVE_PAM=1 |
13797 | LIBS="-lpam $LIBDL $LIBS" | |
b0322a85 CE |
13798 | for ac_func in pam_setcred |
13799 | do : | |
13800 | ac_fn_c_check_func "$LINENO" "pam_setcred" "ac_cv_func_pam_setcred" | |
13801 | if test "x$ac_cv_func_pam_setcred" = xyes; then : | |
d9898ee8 | 13802 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 13803 | #define HAVE_PAM_SETCRED 1 |
d9898ee8 | 13804 | _ACEOF |
13805 | ||
13806 | fi | |
13807 | done | |
13808 | ||
13809 | else | |
13810 | HAVE_PAM=0 | |
13811 | fi | |
13812 | ||
13813 | LIBS="$saveLIBS" | |
13814 | fi | |
13815 | ||
13816 | ||
13817 | LIBAUTHPAM="" | |
13818 | if test "$HAVE_PAM" = 1 | |
13819 | then | |
13820 | LIBAUTHPAM=libauthpam.la | |
13821 | fi | |
13822 | ||
13823 | ||
dd184caf | 13824 | # Check whether --with-authpam-libraries was given. |
b0322a85 | 13825 | if test "${with_authpam_libraries+set}" = set; then : |
dd184caf | 13826 | withval=$with_authpam_libraries; authpamcrypt="$withval" |
13827 | fi | |
13828 | ||
d9898ee8 | 13829 | |
13830 | AUTHPAMCRYPT="$authpamcrypt" | |
13831 | ||
13832 | ||
13833 | ||
13834 | ||
13835 | ||
13836 | ||
13837 | ||
dd184caf | 13838 | # Check whether --with-authldap was given. |
b0322a85 | 13839 | if test "${with_authldap+set}" = set; then : |
dd184caf | 13840 | withval=$with_authldap; doauthldap="$withval" |
d9898ee8 | 13841 | else |
13842 | doauthldap="yes" | |
dd184caf | 13843 | fi |
13844 | ||
d9898ee8 | 13845 | |
d9898ee8 | 13846 | for ac_header in lber.h |
b0322a85 CE |
13847 | do : |
13848 | ac_fn_c_check_header_mongrel "$LINENO" "lber.h" "ac_cv_header_lber_h" "$ac_includes_default" | |
13849 | if test "x$ac_cv_header_lber_h" = xyes; then : | |
d9898ee8 | 13850 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 13851 | #define HAVE_LBER_H 1 |
d9898ee8 | 13852 | _ACEOF |
13853 | ||
13854 | fi | |
13855 | ||
13856 | done | |
13857 | ||
d9898ee8 | 13858 | for ac_header in ldap.h |
b0322a85 CE |
13859 | do : |
13860 | ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default" | |
13861 | if test "x$ac_cv_header_ldap_h" = xyes; then : | |
d9898ee8 | 13862 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 13863 | #define HAVE_LDAP_H 1 |
d9898ee8 | 13864 | _ACEOF |
13865 | ||
13866 | fi | |
13867 | ||
13868 | done | |
13869 | ||
d9898ee8 | 13870 | for ac_header in netinet/in.h |
b0322a85 CE |
13871 | do : |
13872 | ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" | |
13873 | if test "x$ac_cv_header_netinet_in_h" = xyes; then : | |
d9898ee8 | 13874 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 13875 | #define HAVE_NETINET_IN_H 1 |
d9898ee8 | 13876 | _ACEOF |
13877 | ||
13878 | fi | |
13879 | ||
13880 | done | |
13881 | ||
13882 | ||
13883 | if test "$doauthldap" = "no" | |
13884 | then | |
13885 | HAVE_LDAP=0 | |
13886 | else | |
13887 | saveLIBS="$LIBS" | |
13888 | LIBS="$NETLIBS $LIBS" | |
13889 | LDAPLIBS="" | |
13890 | ||
b0322a85 | 13891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lresolv is needed for res_query" >&5 |
8d138742 | 13892 | $as_echo_n "checking whether -lresolv is needed for res_query... " >&6; } |
b0322a85 | 13893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 13894 | /* end confdefs.h. */ |
13895 | ||
13896 | #include <sys/types.h> | |
13897 | #if HAVE_NETINET_IN_H | |
13898 | #include <netinet/in.h> | |
13899 | #endif | |
13900 | #include <resolv.h> | |
13901 | ||
13902 | void (*func)()= (void (*)())res_query; | |
13903 | ||
13904 | int | |
13905 | main () | |
13906 | { | |
13907 | (*func)(); | |
13908 | ; | |
13909 | return 0; | |
13910 | } | |
13911 | _ACEOF | |
b0322a85 CE |
13912 | if ac_fn_c_try_link "$LINENO"; then : |
13913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8d138742 | 13914 | $as_echo "no" >&6; } |
d9898ee8 | 13915 | else |
d9898ee8 | 13916 | |
b0322a85 | 13917 | LIBS="-lresolv $LIBS" |
d9898ee8 | 13918 | |
b0322a85 CE |
13919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13920 | /* end confdefs.h. */ | |
13921 | ||
13922 | #include <sys/types.h> | |
13923 | #if HAVE_NETINET_IN_H | |
13924 | #include <netinet/in.h> | |
d9898ee8 | 13925 | #endif |
b0322a85 CE |
13926 | #include <resolv.h> |
13927 | ||
13928 | void (*func)()= (void (*)())res_query; | |
d9898ee8 | 13929 | |
13930 | int | |
13931 | main () | |
13932 | { | |
b0322a85 | 13933 | (*func)(); |
d9898ee8 | 13934 | ; |
13935 | return 0; | |
13936 | } | |
13937 | _ACEOF | |
b0322a85 | 13938 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 13939 | |
b0322a85 CE |
13940 | LDAPLIBS="-lresolv $LDAPLIBS" |
13941 | HAVE_LDAP=1 | |
13942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13943 | $as_echo "yes" >&6; } | |
dd184caf | 13944 | |
d9898ee8 | 13945 | else |
b0322a85 | 13946 | as_fn_error $? "Cannot find function res_query" "$LINENO" 5 |
d9898ee8 | 13947 | fi |
b0322a85 CE |
13948 | rm -f core conftest.err conftest.$ac_objext \ |
13949 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 13950 | |
b0322a85 CE |
13951 | fi |
13952 | rm -f core conftest.err conftest.$ac_objext \ | |
13953 | conftest$ac_exeext conftest.$ac_ext | |
13954 | ||
13955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_scanf in -llber" >&5 | |
13956 | $as_echo_n "checking for ber_scanf in -llber... " >&6; } | |
13957 | if ${ac_cv_lib_lber_ber_scanf+:} false; then : | |
8d138742 | 13958 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 13959 | else |
b0322a85 CE |
13960 | ac_check_lib_save_LIBS=$LIBS |
13961 | LIBS="-llber $LIBS" | |
13962 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d9898ee8 | 13963 | /* end confdefs.h. */ |
d9898ee8 | 13964 | |
dd184caf | 13965 | /* Override any GCC internal prototype to avoid an error. |
13966 | Use char because int might match the return type of a GCC | |
13967 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 13968 | #ifdef __cplusplus |
13969 | extern "C" | |
d9898ee8 | 13970 | #endif |
b0322a85 | 13971 | char ber_scanf (); |
d9898ee8 | 13972 | int |
13973 | main () | |
13974 | { | |
b0322a85 | 13975 | return ber_scanf (); |
d9898ee8 | 13976 | ; |
13977 | return 0; | |
13978 | } | |
13979 | _ACEOF | |
b0322a85 CE |
13980 | if ac_fn_c_try_link "$LINENO"; then : |
13981 | ac_cv_lib_lber_ber_scanf=yes | |
d9898ee8 | 13982 | else |
b0322a85 | 13983 | ac_cv_lib_lber_ber_scanf=no |
d9898ee8 | 13984 | fi |
b0322a85 CE |
13985 | rm -f core conftest.err conftest.$ac_objext \ |
13986 | conftest$ac_exeext conftest.$ac_ext | |
13987 | LIBS=$ac_check_lib_save_LIBS | |
d9898ee8 | 13988 | fi |
b0322a85 CE |
13989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_scanf" >&5 |
13990 | $as_echo "$ac_cv_lib_lber_ber_scanf" >&6; } | |
13991 | if test "x$ac_cv_lib_lber_ber_scanf" = xyes; then : | |
13992 | LDAPLIBS="-llber $LDAPLIBS" LIBS="-llber $LIBS" | |
d9898ee8 | 13993 | fi |
13994 | ||
b0322a85 CE |
13995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_open in -lldap" >&5 |
13996 | $as_echo_n "checking for ldap_open in -lldap... " >&6; } | |
13997 | if ${ac_cv_lib_ldap_ldap_open+:} false; then : | |
8d138742 | 13998 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 13999 | else |
b0322a85 CE |
14000 | ac_check_lib_save_LIBS=$LIBS |
14001 | LIBS="-lldap $LIBS" | |
14002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d9898ee8 | 14003 | /* end confdefs.h. */ |
d9898ee8 | 14004 | |
dd184caf | 14005 | /* Override any GCC internal prototype to avoid an error. |
14006 | Use char because int might match the return type of a GCC | |
14007 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 14008 | #ifdef __cplusplus |
14009 | extern "C" | |
d9898ee8 | 14010 | #endif |
b0322a85 | 14011 | char ldap_open (); |
d9898ee8 | 14012 | int |
14013 | main () | |
14014 | { | |
b0322a85 | 14015 | return ldap_open (); |
d9898ee8 | 14016 | ; |
14017 | return 0; | |
14018 | } | |
14019 | _ACEOF | |
b0322a85 CE |
14020 | if ac_fn_c_try_link "$LINENO"; then : |
14021 | ac_cv_lib_ldap_ldap_open=yes | |
d9898ee8 | 14022 | else |
b0322a85 CE |
14023 | ac_cv_lib_ldap_ldap_open=no |
14024 | fi | |
14025 | rm -f core conftest.err conftest.$ac_objext \ | |
14026 | conftest$ac_exeext conftest.$ac_ext | |
14027 | LIBS=$ac_check_lib_save_LIBS | |
14028 | fi | |
14029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_open" >&5 | |
14030 | $as_echo "$ac_cv_lib_ldap_ldap_open" >&6; } | |
14031 | if test "x$ac_cv_lib_ldap_ldap_open" = xyes; then : | |
14032 | LDAPLIBS="-lldap $LDAPLIBS" ; LIBS="-lldap $LIBS" | |
14033 | fi | |
14034 | ||
14035 | ac_fn_c_check_func "$LINENO" "ldap_search_st" "ac_cv_func_ldap_search_st" | |
14036 | if test "x$ac_cv_func_ldap_search_st" = xyes; then : | |
14037 | HAVE_LDAP=1 | |
14038 | else | |
14039 | HAVE_LDAP=0 | |
14040 | fi | |
d9898ee8 | 14041 | |
b0322a85 CE |
14042 | ac_fn_c_check_func "$LINENO" "ldap_start_tls_s" "ac_cv_func_ldap_start_tls_s" |
14043 | if test "x$ac_cv_func_ldap_start_tls_s" = xyes; then : | |
14044 | HAVE_LDAP_TLS=1 | |
14045 | else | |
14046 | HAVE_LDAP_TLS=0 | |
d9898ee8 | 14047 | fi |
dd184caf | 14048 | |
b0322a85 CE |
14049 | ac_fn_c_check_func "$LINENO" "ldap_result2error" "ac_cv_func_ldap_result2error" |
14050 | if test "x$ac_cv_func_ldap_result2error" = xyes; then : | |
14051 | HAVE_LDAP_RESULT2ERROR=1 | |
14052 | else | |
14053 | HAVE_LDAP_RESULT2ERROR=0 | |
d9898ee8 | 14054 | fi |
b0322a85 CE |
14055 | |
14056 | ac_fn_c_check_func "$LINENO" "ldap_parse_result" "ac_cv_func_ldap_parse_result" | |
14057 | if test "x$ac_cv_func_ldap_parse_result" = xyes; then : | |
d9898ee8 | 14058 | HAVE_LDAP_PARSE_RESULT=1 |
14059 | else | |
14060 | HAVE_LDAP_PARSE_RESULT=0 | |
14061 | fi | |
14062 | ||
14063 | LIBS="$saveLIBS" | |
14064 | fi | |
14065 | ||
14066 | ||
dd184caf | 14067 | # Check whether --with-authldaprc was given. |
b0322a85 | 14068 | if test "${with_authldaprc+set}" = set; then : |
dd184caf | 14069 | withval=$with_authldaprc; authldaprc="$withval" |
d9898ee8 | 14070 | else |
14071 | authldaprc="$pkgconfdir/authldaprc" | |
dd184caf | 14072 | fi |
14073 | ||
d9898ee8 | 14074 | |
14075 | ||
14076 | LIBAUTHLDAP="" | |
14077 | if test "$HAVE_LDAP" = 1 | |
14078 | then | |
14079 | LIBAUTHLDAP="libauthldap.la" | |
14080 | else | |
14081 | authldaprc="" | |
14082 | fi | |
14083 | ||
14084 | ||
14085 | ||
dd184caf | 14086 | if test "$HAVE_LDAP" = 1; then |
d9898ee8 | 14087 | HAVE_LDAP_TRUE= |
14088 | HAVE_LDAP_FALSE='#' | |
14089 | else | |
14090 | HAVE_LDAP_TRUE='#' | |
14091 | HAVE_LDAP_FALSE= | |
14092 | fi | |
14093 | ||
14094 | ||
14095 | cat >>confdefs.h <<_ACEOF | |
14096 | #define HAVE_LDAP_TLS $HAVE_LDAP_TLS | |
14097 | _ACEOF | |
14098 | ||
14099 | ||
14100 | cat >>confdefs.h <<_ACEOF | |
14101 | #define HAVE_LDAP_RESULT2ERROR $HAVE_LDAP_RESULT2ERROR | |
14102 | _ACEOF | |
14103 | ||
14104 | ||
14105 | cat >>confdefs.h <<_ACEOF | |
14106 | #define HAVE_LDAP_PARSE_RESULT $HAVE_LDAP_PARSE_RESULT | |
14107 | _ACEOF | |
14108 | ||
14109 | ||
14110 | ||
14111 | ||
14112 | ||
dd184caf | 14113 | # Check whether --with-authpwd was given. |
b0322a85 | 14114 | if test "${with_authpwd+set}" = set; then : |
dd184caf | 14115 | withval=$with_authpwd; doauthpwd="$withval" |
b0322a85 CE |
14116 | else |
14117 | doauthpwd="yes" | |
14118 | test "$HAVE_PAM" = 1 && doauthpwd="no" | |
14119 | test "$HAVE_LDAP" = 1 && doauthpwd="no" | |
d9898ee8 | 14120 | |
d9898ee8 | 14121 | fi |
dd184caf | 14122 | |
d9898ee8 | 14123 | |
b0322a85 CE |
14124 | HAVE_PWD=1 |
14125 | if test "$doauthpwd" = "no" | |
14126 | then | |
14127 | HAVE_PWD=0 | |
14128 | fi | |
14129 | for ac_func in endpwent | |
14130 | do : | |
14131 | ac_fn_c_check_func "$LINENO" "endpwent" "ac_cv_func_endpwent" | |
14132 | if test "x$ac_cv_func_endpwent" = xyes; then : | |
14133 | cat >>confdefs.h <<_ACEOF | |
14134 | #define HAVE_ENDPWENT 1 | |
d9898ee8 | 14135 | _ACEOF |
d9898ee8 | 14136 | |
d9898ee8 | 14137 | fi |
b0322a85 | 14138 | done |
dd184caf | 14139 | |
d9898ee8 | 14140 | |
b0322a85 CE |
14141 | |
14142 | ||
14143 | ||
14144 | ||
14145 | # Check whether --with-authshadow was given. | |
14146 | if test "${with_authshadow+set}" = set; then : | |
14147 | withval=$with_authshadow; doauthshadow="$withval" | |
d9898ee8 | 14148 | else |
b0322a85 CE |
14149 | doauthshadow="yes" |
14150 | test "$HAVE_PAM" = 1 && doauthshadow="no" | |
14151 | test "$HAVE_LDAP" = 1 && doauthshadow="no" | |
d9898ee8 | 14152 | fi |
d9898ee8 | 14153 | |
b0322a85 CE |
14154 | |
14155 | for ac_header in shadow.h | |
14156 | do : | |
14157 | ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default" | |
14158 | if test "x$ac_cv_header_shadow_h" = xyes; then : | |
d9898ee8 | 14159 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 14160 | #define HAVE_SHADOW_H 1 |
d9898ee8 | 14161 | _ACEOF |
14162 | ||
14163 | fi | |
14164 | ||
14165 | done | |
14166 | ||
14167 | saveLIBS="$LIBS" | |
14168 | SHADOWLIBS="" | |
b0322a85 | 14169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspent in -lshadow" >&5 |
8d138742 | 14170 | $as_echo_n "checking for getspent in -lshadow... " >&6; } |
b0322a85 | 14171 | if ${ac_cv_lib_shadow_getspent+:} false; then : |
8d138742 | 14172 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 14173 | else |
14174 | ac_check_lib_save_LIBS=$LIBS | |
14175 | LIBS="-lshadow $LIBS" | |
b0322a85 | 14176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 14177 | /* end confdefs.h. */ |
14178 | ||
dd184caf | 14179 | /* Override any GCC internal prototype to avoid an error. |
14180 | Use char because int might match the return type of a GCC | |
14181 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 14182 | #ifdef __cplusplus |
14183 | extern "C" | |
14184 | #endif | |
d9898ee8 | 14185 | char getspent (); |
14186 | int | |
14187 | main () | |
14188 | { | |
dd184caf | 14189 | return getspent (); |
d9898ee8 | 14190 | ; |
14191 | return 0; | |
14192 | } | |
14193 | _ACEOF | |
b0322a85 | 14194 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 14195 | ac_cv_lib_shadow_getspent=yes |
14196 | else | |
b0322a85 | 14197 | ac_cv_lib_shadow_getspent=no |
d9898ee8 | 14198 | fi |
b0322a85 CE |
14199 | rm -f core conftest.err conftest.$ac_objext \ |
14200 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 14201 | LIBS=$ac_check_lib_save_LIBS |
14202 | fi | |
b0322a85 | 14203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_shadow_getspent" >&5 |
8d138742 | 14204 | $as_echo "$ac_cv_lib_shadow_getspent" >&6; } |
b0322a85 | 14205 | if test "x$ac_cv_lib_shadow_getspent" = xyes; then : |
d9898ee8 | 14206 | SHADOWLIBS="-lshadow" ; LIBS="-lshadow $LIBS" |
14207 | fi | |
14208 | ||
d9898ee8 | 14209 | for ac_func in endspent getspent |
b0322a85 CE |
14210 | do : |
14211 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14212 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
14213 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
d9898ee8 | 14214 | cat >>confdefs.h <<_ACEOF |
8d138742 | 14215 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d9898ee8 | 14216 | _ACEOF |
14217 | ||
14218 | fi | |
14219 | done | |
14220 | ||
14221 | LIBS="$saveLIBS" | |
14222 | ||
14223 | if test "$doauthshadow" = "no" | |
14224 | then | |
14225 | HAVE_SHADOW=0 | |
14226 | else | |
14227 | ||
14228 | saveLIBS="$LIBS" | |
b0322a85 | 14229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspent in -lshadow" >&5 |
8d138742 | 14230 | $as_echo_n "checking for getspent in -lshadow... " >&6; } |
b0322a85 | 14231 | if ${ac_cv_lib_shadow_getspent+:} false; then : |
8d138742 | 14232 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 14233 | else |
14234 | ac_check_lib_save_LIBS=$LIBS | |
14235 | LIBS="-lshadow $LIBS" | |
b0322a85 | 14236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 14237 | /* end confdefs.h. */ |
14238 | ||
dd184caf | 14239 | /* Override any GCC internal prototype to avoid an error. |
14240 | Use char because int might match the return type of a GCC | |
14241 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 14242 | #ifdef __cplusplus |
14243 | extern "C" | |
14244 | #endif | |
d9898ee8 | 14245 | char getspent (); |
14246 | int | |
14247 | main () | |
14248 | { | |
dd184caf | 14249 | return getspent (); |
d9898ee8 | 14250 | ; |
14251 | return 0; | |
14252 | } | |
14253 | _ACEOF | |
b0322a85 | 14254 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 14255 | ac_cv_lib_shadow_getspent=yes |
14256 | else | |
b0322a85 | 14257 | ac_cv_lib_shadow_getspent=no |
d9898ee8 | 14258 | fi |
b0322a85 CE |
14259 | rm -f core conftest.err conftest.$ac_objext \ |
14260 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 14261 | LIBS=$ac_check_lib_save_LIBS |
14262 | fi | |
b0322a85 | 14263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_shadow_getspent" >&5 |
8d138742 | 14264 | $as_echo "$ac_cv_lib_shadow_getspent" >&6; } |
b0322a85 | 14265 | if test "x$ac_cv_lib_shadow_getspent" = xyes; then : |
d9898ee8 | 14266 | cat >>confdefs.h <<_ACEOF |
14267 | #define HAVE_LIBSHADOW 1 | |
14268 | _ACEOF | |
14269 | ||
14270 | LIBS="-lshadow $LIBS" | |
14271 | ||
14272 | fi | |
14273 | ||
b0322a85 CE |
14274 | ac_fn_c_check_func "$LINENO" "getspent" "ac_cv_func_getspent" |
14275 | if test "x$ac_cv_func_getspent" = xyes; then : | |
d9898ee8 | 14276 | HAVE_SHADOW=1 |
14277 | else | |
14278 | HAVE_SHADOW=0 | |
14279 | fi | |
14280 | ||
14281 | LIBS="$saveLIBS" | |
14282 | fi | |
14283 | ||
14284 | LIBAUTHSHADOW="" | |
14285 | if test "$HAVE_SHADOW" = 1 | |
14286 | then | |
14287 | LIBAUTHSHADOW="libauthshadow.la" | |
14288 | fi | |
14289 | ||
14290 | ||
14291 | ||
14292 | LIBAUTHPWD="" | |
14293 | if test "$HAVE_PWD" = 1 | |
14294 | then | |
14295 | LIBAUTHPWD="libauthpwd.la" | |
14296 | fi | |
14297 | ||
14298 | ||
14299 | ||
14300 | ||
14301 | ||
14302 | ||
dd184caf | 14303 | # Check whether --with-authpgsqlrc was given. |
b0322a85 | 14304 | if test "${with_authpgsqlrc+set}" = set; then : |
dd184caf | 14305 | withval=$with_authpgsqlrc; authpgsqlrc="$withval" |
d9898ee8 | 14306 | else |
14307 | authpgsqlrc="$pkgconfdir/authpgsqlrc" | |
dd184caf | 14308 | fi |
d9898ee8 | 14309 | |
14310 | ||
14311 | ||
dd184caf | 14312 | |
14313 | # Check whether --with-authpgsql was given. | |
b0322a85 | 14314 | if test "${with_authpgsql+set}" = set; then : |
dd184caf | 14315 | withval=$with_authpgsql; doauthpgsql="$withval" |
14316 | fi | |
14317 | ||
d9898ee8 | 14318 | |
14319 | for ac_prog in pg_config | |
14320 | do | |
14321 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14322 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 14323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 14324 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 14325 | if ${ac_cv_path_PG_CONFIG+:} false; then : |
8d138742 | 14326 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 14327 | else |
14328 | case $PG_CONFIG in | |
14329 | [\\/]* | ?:[\\/]*) | |
14330 | ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path. | |
14331 | ;; | |
14332 | *) | |
14333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14334 | for as_dir in $LPATH | |
14335 | do | |
14336 | IFS=$as_save_IFS | |
14337 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
14338 | for ac_exec_ext in '' $ac_executable_extensions; do |
14339 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 14340 | ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
b0322a85 | 14341 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 14342 | break 2 |
14343 | fi | |
14344 | done | |
b0322a85 | 14345 | done |
dd184caf | 14346 | IFS=$as_save_IFS |
d9898ee8 | 14347 | |
14348 | ;; | |
14349 | esac | |
14350 | fi | |
14351 | PG_CONFIG=$ac_cv_path_PG_CONFIG | |
d9898ee8 | 14352 | if test -n "$PG_CONFIG"; then |
b0322a85 | 14353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5 |
8d138742 | 14354 | $as_echo "$PG_CONFIG" >&6; } |
d9898ee8 | 14355 | else |
b0322a85 | 14356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 14357 | $as_echo "no" >&6; } |
d9898ee8 | 14358 | fi |
14359 | ||
dd184caf | 14360 | |
d9898ee8 | 14361 | test -n "$PG_CONFIG" && break |
14362 | done | |
14363 | test -n "$PG_CONFIG" || PG_CONFIG="pg_config" | |
14364 | ||
14365 | ||
14366 | PGSQL_LIBS="-lpq" | |
14367 | ||
dd184caf | 14368 | # Check whether --with-pgsql-libs was given. |
b0322a85 | 14369 | if test "${with_pgsql_libs+set}" = set; then : |
dd184caf | 14370 | withval=$with_pgsql_libs; PGSQL_LIBS="-L$withval $PGSQL_LIBS" |
d9898ee8 | 14371 | else |
14372 | if test -x $PG_CONFIG | |
14373 | then | |
14374 | PGSQL_LIBS="-L`$PG_CONFIG --libdir` $PGSQL_LIBS" | |
14375 | fi | |
14376 | ||
dd184caf | 14377 | fi |
14378 | ||
d9898ee8 | 14379 | |
dd184caf | 14380 | # Check whether --with-pgsql-includes was given. |
b0322a85 | 14381 | if test "${with_pgsql_includes+set}" = set; then : |
dd184caf | 14382 | withval=$with_pgsql_includes; PGSQL_CFLAGS="-I$withval" |
d9898ee8 | 14383 | else |
14384 | if test -x $PG_CONFIG | |
14385 | then | |
14386 | PGSQL_CFLAGS="-I`$PG_CONFIG --includedir`" | |
14387 | fi | |
14388 | ||
dd184caf | 14389 | fi |
14390 | ||
d9898ee8 | 14391 | |
14392 | if test "$doauthpgsql" = "" | |
b0322a85 CE |
14393 | then |
14394 | LIBS="$PGSQL_LIBS $LIBS" | |
14395 | ac_fn_c_check_func "$LINENO" "PQsetdbLogin" "ac_cv_func_PQsetdbLogin" | |
14396 | if test "x$ac_cv_func_PQsetdbLogin" = xyes; then : | |
d9898ee8 | 14397 | doauthpgsql="yes" |
14398 | ||
14399 | fi | |
14400 | ||
14401 | LIBS="$saveLIBS" | |
14402 | fi | |
14403 | ||
14404 | if test "$doauthpgsql" != "yes" | |
14405 | then | |
14406 | LIBAUTHPGSQL="" | |
14407 | HAVE_AUTHPGSQL=0 | |
14408 | else | |
14409 | saveLIBS="$LIBS" | |
14410 | LIBS="$PGSQL_LIBS $LIBS" | |
b0322a85 CE |
14411 | ac_fn_c_check_func "$LINENO" "PQsetdbLogin" "ac_cv_func_PQsetdbLogin" |
14412 | if test "x$ac_cv_func_PQsetdbLogin" = xyes; then : | |
d9898ee8 | 14413 | AUTHPGSQL="authpgsql" |
14414 | HAVE_AUTHPGSQL=1 | |
14415 | else | |
b0322a85 | 14416 | as_fn_error $? "--with-authpgsql specified but no libpq.so" "$LINENO" 5 |
d9898ee8 | 14417 | fi |
14418 | ||
14419 | LIBS="$saveLIBS" | |
14420 | HAVE_AUTHPGSQL=1 | |
14421 | CFLAGS="$PGSQL_CFLAGS $CFLAGS" | |
14422 | LIBAUTHPGSQL="libauthpgsql.la" | |
14423 | fi | |
14424 | ||
14425 | ||
14426 | ||
dd184caf | 14427 | if test "$HAVE_AUTHPGSQL" = 1; then |
d9898ee8 | 14428 | HAVE_AUTHPGSQL_TRUE= |
14429 | HAVE_AUTHPGSQL_FALSE='#' | |
14430 | else | |
14431 | HAVE_AUTHPGSQL_TRUE='#' | |
14432 | HAVE_AUTHPGSQL_FALSE= | |
14433 | fi | |
14434 | ||
14435 | ||
14436 | ||
14437 | ||
14438 | ||
14439 | ||
dd184caf | 14440 | # Check whether --with-authmysqlrc was given. |
b0322a85 | 14441 | if test "${with_authmysqlrc+set}" = set; then : |
dd184caf | 14442 | withval=$with_authmysqlrc; authmysqlrc="$withval" |
d9898ee8 | 14443 | else |
14444 | authmysqlrc="$pkgconfdir/authmysqlrc" | |
dd184caf | 14445 | fi |
14446 | ||
d9898ee8 | 14447 | |
14448 | ||
14449 | ||
dd184caf | 14450 | # Check whether --with-authmysql was given. |
b0322a85 | 14451 | if test "${with_authmysql+set}" = set; then : |
dd184caf | 14452 | withval=$with_authmysql; doauthmysql="$withval" |
14453 | fi | |
14454 | ||
d9898ee8 | 14455 | |
dd184caf | 14456 | # Check whether --with-mysql-libs was given. |
b0322a85 | 14457 | if test "${with_mysql_libs+set}" = set; then : |
dd184caf | 14458 | withval=$with_mysql_libs; MYSQL_LIBS="-L$withval -lmysqlclient" |
14459 | ||
14460 | fi | |
d9898ee8 | 14461 | |
d9898ee8 | 14462 | |
dd184caf | 14463 | # Check whether --with-mysql-includes was given. |
b0322a85 | 14464 | if test "${with_mysql_includes+set}" = set; then : |
dd184caf | 14465 | withval=$with_mysql_includes; MYSQL_CFLAGS="-I$withval" |
14466 | ||
14467 | fi | |
d9898ee8 | 14468 | |
d9898ee8 | 14469 | |
14470 | for ac_prog in mysql_config | |
14471 | do | |
14472 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14473 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 14474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 14475 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 14476 | if ${ac_cv_path_MYSQL_CONFIG+:} false; then : |
8d138742 | 14477 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 14478 | else |
14479 | case $MYSQL_CONFIG in | |
14480 | [\\/]* | ?:[\\/]*) | |
14481 | ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path. | |
14482 | ;; | |
14483 | *) | |
14484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14485 | for as_dir in $LPATH | |
14486 | do | |
14487 | IFS=$as_save_IFS | |
14488 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
14489 | for ac_exec_ext in '' $ac_executable_extensions; do |
14490 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 14491 | ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
b0322a85 | 14492 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 14493 | break 2 |
14494 | fi | |
14495 | done | |
b0322a85 | 14496 | done |
dd184caf | 14497 | IFS=$as_save_IFS |
d9898ee8 | 14498 | |
8d138742 CE |
14499 | ;; |
14500 | esac | |
14501 | fi | |
14502 | MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG | |
14503 | if test -n "$MYSQL_CONFIG"; then | |
b0322a85 | 14504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5 |
8d138742 CE |
14505 | $as_echo "$MYSQL_CONFIG" >&6; } |
14506 | else | |
b0322a85 | 14507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
14508 | $as_echo "no" >&6; } |
14509 | fi | |
14510 | ||
14511 | ||
14512 | test -n "$MYSQL_CONFIG" && break | |
14513 | done | |
14514 | test -n "$MYSQL_CONFIG" || MYSQL_CONFIG="mysql_config" | |
14515 | ||
14516 | ||
14517 | if test -x "$MYSQL_CONFIG" | |
14518 | then | |
14519 | MYSQL_CFLAGS="`$MYSQL_CONFIG --cflags`" | |
14520 | MYSQL_LIBS="`$MYSQL_CONFIG --libs`" | |
14521 | ||
b0322a85 CE |
14522 | eval "MYSQL_CFLAGS=\"\`echo $MYSQL_CFLAGS\`\"" |
14523 | eval "MYSQL_LIBS=\"\`echo $MYSQL_LIBS\`\"" | |
14524 | fi | |
d9898ee8 | 14525 | |
b0322a85 CE |
14526 | if test "$doauthmysql" = "" |
14527 | then | |
14528 | LIBS="$MYSQL_LIBS $LIBS" | |
14529 | ac_fn_c_check_func "$LINENO" "mysql_connect" "ac_cv_func_mysql_connect" | |
14530 | if test "x$ac_cv_func_mysql_connect" = xyes; then : | |
14531 | doauthmysql="yes" | |
d9898ee8 | 14532 | |
b0322a85 | 14533 | fi |
d9898ee8 | 14534 | |
b0322a85 CE |
14535 | ac_fn_c_check_func "$LINENO" "mysql_real_connect" "ac_cv_func_mysql_real_connect" |
14536 | if test "x$ac_cv_func_mysql_real_connect" = xyes; then : | |
14537 | doauthmysql="yes" | |
d9898ee8 | 14538 | |
d9898ee8 | 14539 | fi |
dd184caf | 14540 | |
b0322a85 | 14541 | LIBS="$saveLIBS" |
d9898ee8 | 14542 | fi |
b0322a85 CE |
14543 | |
14544 | if test "$doauthmysql" != "yes" | |
14545 | then | |
14546 | LIBAUTHMYSQL="" | |
14547 | HAVE_AUTHMYSQL=0 | |
14548 | else | |
14549 | saveLIBS="$LIBS" | |
14550 | LIBS="$MYSQL_LIBS $LIBS" | |
14551 | ac_fn_c_check_func "$LINENO" "mysql_connect" "ac_cv_func_mysql_connect" | |
14552 | if test "x$ac_cv_func_mysql_connect" = xyes; then : | |
14553 | LIBAUTHMYSQL="libauthmysql.la" | |
14554 | HAVE_AUTHMYSQL=1 | |
14555 | else | |
14556 | ||
14557 | ac_fn_c_check_func "$LINENO" "mysql_real_connect" "ac_cv_func_mysql_real_connect" | |
14558 | if test "x$ac_cv_func_mysql_real_connect" = xyes; then : | |
8d138742 CE |
14559 | LIBAUTHMYSQL="libauthmysql.la" |
14560 | HAVE_AUTHMYSQL=1 | |
14561 | else | |
b0322a85 | 14562 | as_fn_error $? "--with-authmysql specified but no mysqlclient.so" "$LINENO" 5 |
8d138742 CE |
14563 | |
14564 | fi | |
14565 | ||
14566 | ||
d9898ee8 | 14567 | |
14568 | fi | |
14569 | ||
14570 | LIBS="$saveLIBS" | |
8d138742 CE |
14571 | HAVE_AUTHMYSQL=1 |
14572 | CFLAGS="$MYSQL_CFLAGS $CFLAGS" | |
d9898ee8 | 14573 | fi |
14574 | ||
8d138742 CE |
14575 | |
14576 | if test "$HAVE_AUTHMYSQL" = 1; then | |
14577 | HAVE_AUTHMYSQL_TRUE= | |
14578 | HAVE_AUTHMYSQL_FALSE='#' | |
14579 | else | |
14580 | HAVE_AUTHMYSQL_TRUE='#' | |
14581 | HAVE_AUTHMYSQL_FALSE= | |
14582 | fi | |
14583 | ||
14584 | ||
14585 | ||
14586 | ||
14587 | ||
14588 | ||
b0322a85 CE |
14589 | # Check whether --with-authsqliterc was given. |
14590 | if test "${with_authsqliterc+set}" = set; then : | |
14591 | withval=$with_authsqliterc; authsqliterc="$withval" | |
14592 | else | |
14593 | authsqliterc="$pkgconfdir/authsqliterc" | |
14594 | fi | |
14595 | ||
14596 | ||
14597 | ||
14598 | ||
14599 | # Check whether --with-authsqlite was given. | |
14600 | if test "${with_authsqlite+set}" = set; then : | |
14601 | withval=$with_authsqlite; doauthsqlite="$withval" | |
14602 | fi | |
14603 | ||
14604 | ||
14605 | ||
14606 | # Check whether --with-sqlite-libs was given. | |
14607 | if test "${with_sqlite_libs+set}" = set; then : | |
14608 | withval=$with_sqlite_libs; SQLITE_LIBS="-lsqlite3" | |
14609 | ||
14610 | fi | |
14611 | ||
14612 | ||
14613 | # Check whether --with-sqlite-includes was given. | |
14614 | if test "${with_sqlite_includes+set}" = set; then : | |
14615 | withval=$with_sqlite_includes; SQLITE_CFLAGS="-I$withval" | |
14616 | ||
14617 | fi | |
14618 | ||
14619 | ||
14620 | if test "$doauthsqlite" = "" | |
14621 | then | |
14622 | SQLITE_CFLAGS="`pkg-config --cflags sqlite3 2>/dev/null`" | |
14623 | SQLITE_LIBS="`pkg-config --libs sqlite3 2>/dev/null`" | |
14624 | saveLIBS="$LIBS" | |
14625 | LIBS="$SQLITE_LIBS $LIBS" | |
14626 | ac_fn_c_check_func "$LINENO" "sqlite3_version" "ac_cv_func_sqlite3_version" | |
14627 | if test "x$ac_cv_func_sqlite3_version" = xyes; then : | |
14628 | doauthsqlite="yes" | |
14629 | ||
14630 | fi | |
14631 | ||
14632 | LIBS="$saveLIBS" | |
14633 | fi | |
14634 | ||
14635 | if test "$doauthsqlite" != "yes" | |
14636 | then | |
14637 | SQLITE_LIBS="" | |
14638 | SQLITE_CFLAGS="" | |
14639 | HAVE_AUTHSQLITE=0 | |
14640 | LIBAUTHSQLITE="" | |
14641 | else | |
14642 | saveLIBS="$LIBS" | |
14643 | LIBS="$SQLITE_LIBS $LIBS" | |
14644 | ac_fn_c_check_func "$LINENO" "sqlite3_version" "ac_cv_func_sqlite3_version" | |
14645 | if test "x$ac_cv_func_sqlite3_version" = xyes; then : | |
14646 | : | |
14647 | else | |
14648 | as_fn_error $? "Cannot link with $SQLITE_LIBS" "$LINENO" 5 | |
14649 | ||
14650 | fi | |
14651 | ||
14652 | LIBS="$saveLIBS" | |
14653 | HAVE_AUTHSQLITE=1 | |
14654 | CFLAGS="$SQLITE_CFLAGS $CFLAGS" | |
14655 | LIBAUTHSQLITE="libauthsqlite.la" | |
14656 | ||
14657 | fi | |
14658 | ||
14659 | ||
14660 | if test "$HAVE_AUTHSQLITE" = 1; then | |
14661 | HAVE_AUTHSQLITE_TRUE= | |
14662 | HAVE_AUTHSQLITE_FALSE='#' | |
14663 | else | |
14664 | HAVE_AUTHSQLITE_TRUE='#' | |
14665 | HAVE_AUTHSQLITE_FALSE= | |
14666 | fi | |
14667 | ||
14668 | ||
14669 | ||
14670 | ||
14671 | ||
8d138742 CE |
14672 | |
14673 | ||
14674 | # Check whether --with-authcustom was given. | |
b0322a85 | 14675 | if test "${with_authcustom+set}" = set; then : |
8d138742 CE |
14676 | withval=$with_authcustom; doauthcustom="$withval" |
14677 | else | |
14678 | doauthcustom=yes | |
14679 | fi | |
14680 | ||
14681 | ||
14682 | LIBAUTHCUSTOM="" | |
14683 | ||
14684 | if test "$doauthcustom" = "yes" | |
d9898ee8 | 14685 | then |
8d138742 CE |
14686 | LIBAUTHCUSTOM="libauthcustom.la" |
14687 | fi | |
14688 | ||
14689 | if test "$AUTHCUSTOM" != ""; then | |
14690 | HAVE_CUSTOM_TRUE= | |
14691 | HAVE_CUSTOM_FALSE='#' | |
d9898ee8 | 14692 | else |
8d138742 CE |
14693 | HAVE_CUSTOM_TRUE='#' |
14694 | HAVE_CUSTOM_FALSE= | |
14695 | fi | |
14696 | ||
14697 | ||
14698 | ||
14699 | ||
14700 | ||
14701 | ||
14702 | ||
14703 | ||
14704 | ||
14705 | # Check whether --with-pipeprog was given. | |
b0322a85 | 14706 | if test "${with_pipeprog+set}" = set; then : |
8d138742 CE |
14707 | withval=$with_pipeprog; authProg="$withval" |
14708 | else | |
14709 | authProg="$pkgconfdir/authProg" | |
14710 | fi | |
14711 | ||
14712 | ||
14713 | ||
14714 | ||
14715 | # Check whether --with-authpipe was given. | |
b0322a85 | 14716 | if test "${with_authpipe+set}" = set; then : |
8d138742 CE |
14717 | withval=$with_authpipe; doauthpipe="$withval" |
14718 | else | |
14719 | doauthpipe=yes | |
14720 | fi | |
14721 | ||
14722 | ||
14723 | LIBAUTHPIPE="" | |
14724 | ||
14725 | if test "$doauthpipe" = "yes" | |
14726 | then | |
14727 | LIBAUTHPIPE="libauthpipe.la" | |
14728 | fi | |
14729 | ||
14730 | if test "$AUTHPIPE" != ""; then | |
14731 | HAVE_PIPE_TRUE= | |
14732 | HAVE_PIPE_FALSE='#' | |
14733 | else | |
14734 | HAVE_PIPE_TRUE='#' | |
14735 | HAVE_PIPE_FALSE= | |
14736 | fi | |
14737 | ||
14738 | ||
14739 | ||
14740 | ||
14741 | ||
b0322a85 | 14742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
8d138742 | 14743 | $as_echo_n "checking for ANSI C header files... " >&6; } |
b0322a85 | 14744 | if ${ac_cv_header_stdc+:} false; then : |
8d138742 CE |
14745 | $as_echo_n "(cached) " >&6 |
14746 | else | |
b0322a85 | 14747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
14748 | /* end confdefs.h. */ |
14749 | #include <stdlib.h> | |
14750 | #include <stdarg.h> | |
14751 | #include <string.h> | |
14752 | #include <float.h> | |
14753 | ||
14754 | int | |
14755 | main () | |
14756 | { | |
14757 | ||
14758 | ; | |
14759 | return 0; | |
14760 | } | |
14761 | _ACEOF | |
b0322a85 | 14762 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 CE |
14763 | ac_cv_header_stdc=yes |
14764 | else | |
b0322a85 | 14765 | ac_cv_header_stdc=no |
8d138742 | 14766 | fi |
8d138742 CE |
14767 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14768 | ||
14769 | if test $ac_cv_header_stdc = yes; then | |
14770 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
b0322a85 | 14771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
14772 | /* end confdefs.h. */ |
14773 | #include <string.h> | |
14774 | ||
14775 | _ACEOF | |
14776 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
14777 | $EGREP "memchr" >/dev/null 2>&1; then : |
14778 | ||
8d138742 CE |
14779 | else |
14780 | ac_cv_header_stdc=no | |
14781 | fi | |
14782 | rm -f conftest* | |
14783 | ||
14784 | fi | |
14785 | ||
14786 | if test $ac_cv_header_stdc = yes; then | |
14787 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
b0322a85 | 14788 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
14789 | /* end confdefs.h. */ |
14790 | #include <stdlib.h> | |
14791 | ||
14792 | _ACEOF | |
14793 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
14794 | $EGREP "free" >/dev/null 2>&1; then : |
14795 | ||
8d138742 CE |
14796 | else |
14797 | ac_cv_header_stdc=no | |
14798 | fi | |
14799 | rm -f conftest* | |
14800 | ||
14801 | fi | |
14802 | ||
14803 | if test $ac_cv_header_stdc = yes; then | |
14804 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
b0322a85 | 14805 | if test "$cross_compiling" = yes; then : |
8d138742 | 14806 | : |
d9898ee8 | 14807 | else |
b0322a85 | 14808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 14809 | /* end confdefs.h. */ |
8d138742 CE |
14810 | #include <ctype.h> |
14811 | #include <stdlib.h> | |
14812 | #if ((' ' & 0x0FF) == 0x020) | |
14813 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
14814 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
d9898ee8 | 14815 | #else |
8d138742 CE |
14816 | # define ISLOWER(c) \ |
14817 | (('a' <= (c) && (c) <= 'i') \ | |
14818 | || ('j' <= (c) && (c) <= 'r') \ | |
14819 | || ('s' <= (c) && (c) <= 'z')) | |
14820 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
d9898ee8 | 14821 | #endif |
14822 | ||
8d138742 | 14823 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
d9898ee8 | 14824 | int |
14825 | main () | |
14826 | { | |
8d138742 CE |
14827 | int i; |
14828 | for (i = 0; i < 256; i++) | |
14829 | if (XOR (islower (i), ISLOWER (i)) | |
b0322a85 CE |
14830 | || toupper (i) != TOUPPER (i)) |
14831 | return 2; | |
14832 | return 0; | |
14833 | } | |
14834 | _ACEOF | |
14835 | if ac_fn_c_try_run "$LINENO"; then : | |
14836 | ||
d9898ee8 | 14837 | else |
b0322a85 CE |
14838 | ac_cv_header_stdc=no |
14839 | fi | |
14840 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14841 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14842 | fi | |
d9898ee8 | 14843 | |
8d138742 | 14844 | fi |
b0322a85 CE |
14845 | fi |
14846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
14847 | $as_echo "$ac_cv_header_stdc" >&6; } | |
14848 | if test $ac_cv_header_stdc = yes; then | |
d9898ee8 | 14849 | |
b0322a85 | 14850 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
dd184caf | 14851 | |
b0322a85 CE |
14852 | fi |
14853 | ||
14854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 | |
14855 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
14856 | if ${ac_cv_header_sys_wait_h+:} false; then : | |
8d138742 | 14857 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 14858 | else |
b0322a85 CE |
14859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14860 | /* end confdefs.h. */ | |
14861 | #include <sys/types.h> | |
14862 | #include <sys/wait.h> | |
14863 | #ifndef WEXITSTATUS | |
14864 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | |
14865 | #endif | |
14866 | #ifndef WIFEXITED | |
14867 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
14868 | #endif | |
14869 | ||
14870 | int | |
14871 | main () | |
14872 | { | |
14873 | int s; | |
14874 | wait (&s); | |
14875 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
14876 | ; | |
14877 | return 0; | |
14878 | } | |
14879 | _ACEOF | |
14880 | if ac_fn_c_try_compile "$LINENO"; then : | |
14881 | ac_cv_header_sys_wait_h=yes | |
14882 | else | |
14883 | ac_cv_header_sys_wait_h=no | |
dd184caf | 14884 | fi |
b0322a85 CE |
14885 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14886 | fi | |
14887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 | |
14888 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
14889 | if test $ac_cv_header_sys_wait_h = yes; then | |
14890 | ||
14891 | $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h | |
dd184caf | 14892 | |
d9898ee8 | 14893 | fi |
b0322a85 CE |
14894 | |
14895 | for ac_header in sys/stat.h sys/time.h sys/wait.h sys/select.h unistd.h fcntl.h crypt.h termios.h | |
14896 | do : | |
14897 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14898 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
14899 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8d138742 CE |
14900 | cat >>confdefs.h <<_ACEOF |
14901 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14902 | _ACEOF | |
d9898ee8 | 14903 | |
d9898ee8 | 14904 | fi |
14905 | ||
8d138742 | 14906 | done |
d9898ee8 | 14907 | |
14908 | ||
b0322a85 | 14909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
8d138742 | 14910 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
b0322a85 | 14911 | if ${ac_cv_c_const+:} false; then : |
8d138742 | 14912 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 14913 | else |
b0322a85 | 14914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 14915 | /* end confdefs.h. */ |
d9898ee8 | 14916 | |
14917 | int | |
14918 | main () | |
14919 | { | |
b0322a85 | 14920 | |
8d138742 | 14921 | #ifndef __cplusplus |
b0322a85 | 14922 | /* Ultrix mips cc rejects this sort of thing. */ |
8d138742 | 14923 | typedef int charset[2]; |
b0322a85 | 14924 | const charset cs = { 0, 0 }; |
8d138742 CE |
14925 | /* SunOS 4.1.1 cc rejects this. */ |
14926 | char const *const *pcpcc; | |
14927 | char **ppc; | |
14928 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14929 | struct point {int x, y;}; | |
14930 | static struct point const zero = {0,0}; | |
14931 | /* AIX XL C 1.02.0.0 rejects this. | |
14932 | It does not let you subtract one const X* pointer from another in | |
14933 | an arm of an if-expression whose if-part is not a constant | |
14934 | expression */ | |
14935 | const char *g = "string"; | |
14936 | pcpcc = &g + (g ? g-g : 0); | |
14937 | /* HPUX 7.0 cc rejects these. */ | |
14938 | ++pcpcc; | |
14939 | ppc = (char**) pcpcc; | |
14940 | pcpcc = (char const *const *) ppc; | |
b0322a85 CE |
14941 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
14942 | char tx; | |
14943 | char *t = &tx; | |
8d138742 CE |
14944 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
14945 | ||
14946 | *t++ = 0; | |
14947 | if (s) return 0; | |
14948 | } | |
14949 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
14950 | int x[] = {25, 17}; | |
14951 | const int *foo = &x[0]; | |
14952 | ++foo; | |
14953 | } | |
14954 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
14955 | typedef const int *iptr; | |
14956 | iptr p = 0; | |
14957 | ++p; | |
14958 | } | |
b0322a85 | 14959 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
8d138742 | 14960 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
b0322a85 CE |
14961 | struct s { int j; const int *ap[3]; } bx; |
14962 | struct s *b = &bx; b->j = 5; | |
8d138742 CE |
14963 | } |
14964 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
14965 | const int foo = 10; | |
14966 | if (!foo) return 0; | |
14967 | } | |
14968 | return !cs[0] && !zero.x; | |
14969 | #endif | |
d9898ee8 | 14970 | |
14971 | ; | |
14972 | return 0; | |
14973 | } | |
14974 | _ACEOF | |
b0322a85 | 14975 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 | 14976 | ac_cv_c_const=yes |
d9898ee8 | 14977 | else |
b0322a85 | 14978 | ac_cv_c_const=no |
d9898ee8 | 14979 | fi |
dd184caf | 14980 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8d138742 | 14981 | fi |
b0322a85 | 14982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
8d138742 CE |
14983 | $as_echo "$ac_cv_c_const" >&6; } |
14984 | if test $ac_cv_c_const = no; then | |
d9898ee8 | 14985 | |
b0322a85 | 14986 | $as_echo "#define const /**/" >>confdefs.h |
d9898ee8 | 14987 | |
d9898ee8 | 14988 | fi |
8d138742 | 14989 | |
b0322a85 CE |
14990 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
14991 | if test "x$ac_cv_type_pid_t" = xyes; then : | |
8d138742 | 14992 | |
8d138742 CE |
14993 | else |
14994 | ||
14995 | cat >>confdefs.h <<_ACEOF | |
14996 | #define pid_t int | |
14997 | _ACEOF | |
14998 | ||
d9898ee8 | 14999 | fi |
dd184caf | 15000 | |
b0322a85 | 15001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
8d138742 | 15002 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
b0322a85 | 15003 | if ${ac_cv_type_uid_t+:} false; then : |
8d138742 CE |
15004 | $as_echo_n "(cached) " >&6 |
15005 | else | |
b0322a85 | 15006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
15007 | /* end confdefs.h. */ |
15008 | #include <sys/types.h> | |
dd184caf | 15009 | |
8d138742 CE |
15010 | _ACEOF |
15011 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 | 15012 | $EGREP "uid_t" >/dev/null 2>&1; then : |
8d138742 CE |
15013 | ac_cv_type_uid_t=yes |
15014 | else | |
15015 | ac_cv_type_uid_t=no | |
d9898ee8 | 15016 | fi |
8d138742 CE |
15017 | rm -f conftest* |
15018 | ||
d9898ee8 | 15019 | fi |
b0322a85 | 15020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
8d138742 CE |
15021 | $as_echo "$ac_cv_type_uid_t" >&6; } |
15022 | if test $ac_cv_type_uid_t = no; then | |
d9898ee8 | 15023 | |
b0322a85 | 15024 | $as_echo "#define uid_t int" >>confdefs.h |
8d138742 CE |
15025 | |
15026 | ||
b0322a85 | 15027 | $as_echo "#define gid_t int" >>confdefs.h |
d9898ee8 | 15028 | |
15029 | fi | |
15030 | ||
8d138742 | 15031 | for ac_func in setsid setlogin |
b0322a85 CE |
15032 | do : |
15033 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15034 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
15035 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
15036 | cat >>confdefs.h <<_ACEOF | |
15037 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15038 | _ACEOF | |
15039 | ||
15040 | fi | |
15041 | done | |
8d138742 | 15042 | |
b0322a85 CE |
15043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 |
15044 | $as_echo_n "checking for crypt in -lcrypt... " >&6; } | |
15045 | if ${ac_cv_lib_crypt_crypt+:} false; then : | |
15046 | $as_echo_n "(cached) " >&6 | |
15047 | else | |
15048 | ac_check_lib_save_LIBS=$LIBS | |
15049 | LIBS="-lcrypt $LIBS" | |
15050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15051 | /* end confdefs.h. */ | |
8d138742 CE |
15052 | |
15053 | /* Override any GCC internal prototype to avoid an error. | |
15054 | Use char because int might match the return type of a GCC | |
15055 | builtin and then its argument prototype would still apply. */ | |
15056 | #ifdef __cplusplus | |
15057 | extern "C" | |
15058 | #endif | |
15059 | char crypt (); | |
8d138742 CE |
15060 | int |
15061 | main () | |
15062 | { | |
15063 | return crypt (); | |
15064 | ; | |
15065 | return 0; | |
15066 | } | |
d9898ee8 | 15067 | _ACEOF |
b0322a85 CE |
15068 | if ac_fn_c_try_link "$LINENO"; then : |
15069 | ac_cv_lib_crypt_crypt=yes | |
d9898ee8 | 15070 | else |
b0322a85 | 15071 | ac_cv_lib_crypt_crypt=no |
d9898ee8 | 15072 | fi |
b0322a85 CE |
15073 | rm -f core conftest.err conftest.$ac_objext \ |
15074 | conftest$ac_exeext conftest.$ac_ext | |
15075 | LIBS=$ac_check_lib_save_LIBS | |
15076 | fi | |
15077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 | |
15078 | $as_echo "$ac_cv_lib_crypt_crypt" >&6; } | |
15079 | if test "x$ac_cv_lib_crypt_crypt" = xyes; then : | |
15080 | CRYPTLIBS="-lcrypt" | |
d9898ee8 | 15081 | fi |
b0322a85 CE |
15082 | |
15083 | saveLIBS="$LIBS" | |
15084 | LIBS="$CRYPTLIBS $LIBS" | |
15085 | ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt" | |
15086 | if test "x$ac_cv_func_crypt" = xyes; then : | |
d9898ee8 | 15087 | |
8d138742 CE |
15088 | cat >>confdefs.h <<_ACEOF |
15089 | #define HAVE_CRYPT 1 | |
d9898ee8 | 15090 | _ACEOF |
15091 | ||
15092 | fi | |
15093 | ||
8d138742 | 15094 | LIBS="$saveLIBS" |
b0322a85 | 15095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt() prototype" >&5 |
8d138742 | 15096 | $as_echo_n "checking for crypt() prototype... " >&6; } |
b0322a85 | 15097 | if ${userdb_cv_NEED_CRYPT_PROTOTYPE+:} false; then : |
8d138742 | 15098 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 15099 | else |
b0322a85 | 15100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
15101 | /* end confdefs.h. */ |
15102 | ||
15103 | #if HAVE_CRYPT_H | |
15104 | #include <crypt.h> | |
15105 | #endif | |
15106 | #if HAVE_UNISTD_H | |
15107 | #include <unistd.h> | |
15108 | #endif | |
15109 | int crypt(int, int); | |
15110 | ||
15111 | ||
15112 | int | |
15113 | main () | |
15114 | { | |
d9898ee8 | 15115 | |
15116 | ; | |
15117 | return 0; | |
15118 | } | |
15119 | _ACEOF | |
b0322a85 | 15120 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 | 15121 | userdb_cv_NEED_CRYPT_PROTOTYPE=1 |
d9898ee8 | 15122 | else |
b0322a85 | 15123 | userdb_cv_NEED_CRYPT_PROTOTYPE=0 |
d9898ee8 | 15124 | fi |
dd184caf | 15125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8d138742 CE |
15126 | |
15127 | ||
d9898ee8 | 15128 | fi |
b0322a85 | 15129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $userdb_cv_NEED_CRYPT_PROTOTYPE" >&5 |
8d138742 | 15130 | $as_echo "$userdb_cv_NEED_CRYPT_PROTOTYPE" >&6; } |
d9898ee8 | 15131 | |
8d138742 CE |
15132 | |
15133 | cat >>confdefs.h <<_ACEOF | |
15134 | #define NEED_CRYPT_PROTOTYPE $userdb_cv_NEED_CRYPT_PROTOTYPE | |
d9898ee8 | 15135 | _ACEOF |
15136 | ||
8d138742 CE |
15137 | |
15138 | ||
15139 | ||
15140 | ||
15141 | ||
15142 | ||
15143 | # Check whether --with-authdaemonrc was given. | |
b0322a85 | 15144 | if test "${with_authdaemonrc+set}" = set; then : |
8d138742 CE |
15145 | withval=$with_authdaemonrc; authdaemonrc="$withval" |
15146 | else | |
15147 | authdaemonrc="$pkgconfdir/authdaemonrc" | |
15148 | fi | |
15149 | ||
15150 | ||
15151 | ||
15152 | ||
15153 | # Check whether --with-authdaemonvar was given. | |
b0322a85 | 15154 | if test "${with_authdaemonvar+set}" = set; then : |
8d138742 CE |
15155 | withval=$with_authdaemonvar; authdaemonvar="$withval" |
15156 | else | |
15157 | authdaemonvar="$localstatedir/spool/authdaemon" | |
d9898ee8 | 15158 | fi |
15159 | ||
8d138742 CE |
15160 | |
15161 | ||
15162 | ||
15163 | ||
15164 | ||
15165 | rm -f authdaemonrc.h authldaprc.h authmysqlrc.h authpgsqlrc.h vpopmail_config.h | |
15166 | ||
15167 | ||
15168 | result="" | |
15169 | ||
15170 | if test -x "$COURIERCONFIG" | |
15171 | then | |
15172 | $COURIERCONFIG >conftest.out || exit 1 | |
15173 | sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1 | |
15174 | . ./conftest2.out | |
15175 | rm -f conftest.out conftest2.out | |
15176 | ||
15177 | cmailuser="$mailuser" | |
15178 | cmailgroup="$mailgroup" | |
15179 | result=" (from courier-config)" | |
15180 | fi | |
15181 | ||
15182 | if test -x "$bindir/courierauthconfig" | |
15183 | then | |
15184 | $bindir/courierauthconfig --configfiles >conftest.out || exit 1 | |
15185 | sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1 | |
15186 | . ./conftest2.out | |
15187 | rm -f conftest.out conftest2.out | |
15188 | ||
15189 | cmailuser="$mailuser" | |
15190 | cmailgroup="$mailgroup" | |
15191 | result=" (from previous courierauthconfig)" | |
15192 | fi | |
15193 | ||
15194 | ||
15195 | ||
15196 | LB='[' | |
15197 | RB=']' | |
15198 | ||
15199 | ||
15200 | ||
b0322a85 | 15201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mail userid" >&5 |
8d138742 CE |
15202 | $as_echo_n "checking for mail userid... " >&6; } |
15203 | ||
15204 | ||
15205 | # Check whether --with-mailuser was given. | |
b0322a85 | 15206 | if test "${with_mailuser+set}" = set; then : |
8d138742 CE |
15207 | withval=$with_mailuser; mailuser="$withval" |
15208 | else | |
15209 | if test "$cmailuser" = "" | |
15210 | then | |
b0322a85 CE |
15211 | if test "$cross_compiling" = yes; then : |
15212 | as_fn_error $? "Must use --with-mailuser when cross compiling." "$LINENO" 5 | |
d9898ee8 | 15213 | else |
b0322a85 | 15214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 15215 | /* end confdefs.h. */ |
8d138742 CE |
15216 | |
15217 | #include <stdio.h> | |
15218 | #include <pwd.h> | |
15219 | #include <stdlib.h> | |
15220 | ||
15221 | static const char *ids $LB $RB={"courier","daemon","adm","bin","root", 0}; | |
15222 | ||
15223 | int main() | |
d9898ee8 | 15224 | { |
8d138742 CE |
15225 | int i; |
15226 | FILE *f; | |
15227 | char *p; | |
15228 | ||
15229 | for (i=0; ids $LB i $RB; i++) | |
15230 | if (getpwnam(ids $LB i $RB)) break; | |
15231 | ||
15232 | f=fopen("conftest.out", "w"); | |
15233 | if (f && ids $LB i $RB) | |
15234 | { | |
15235 | fprintf(f, "%s\n", ids $LB i $RB); | |
15236 | fclose(f); | |
15237 | exit(0); | |
15238 | } | |
15239 | fclose(f); | |
15240 | exit (1); | |
15241 | return (1); | |
d9898ee8 | 15242 | } |
8d138742 | 15243 | |
d9898ee8 | 15244 | _ACEOF |
b0322a85 | 15245 | if ac_fn_c_try_run "$LINENO"; then : |
8d138742 | 15246 | mailuser=`cat conftest.out` |
d9898ee8 | 15247 | else |
b0322a85 | 15248 | as_fn_error use --with-mailuser. "Cannot determine mail user" "$LINENO" 5 |
d9898ee8 | 15249 | fi |
b0322a85 CE |
15250 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15251 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
d9898ee8 | 15252 | fi |
d9898ee8 | 15253 | |
8d138742 CE |
15254 | else |
15255 | mailuser="$cmailuser" | |
15256 | fi | |
15257 | ac_configure_args="$ac_configure_args --with-mailuser=$mailuser" | |
d9898ee8 | 15258 | fi |
15259 | ||
8d138742 | 15260 | |
b0322a85 | 15261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailuser $result" >&5 |
8d138742 CE |
15262 | $as_echo "$mailuser $result" >&6; } |
15263 | ||
b0322a85 | 15264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mail group id" >&5 |
8d138742 CE |
15265 | $as_echo_n "checking for mail group id... " >&6; } |
15266 | ||
15267 | ||
15268 | # Check whether --with-mailgroup was given. | |
b0322a85 | 15269 | if test "${with_mailgroup+set}" = set; then : |
8d138742 CE |
15270 | withval=$with_mailgroup; mailgroup="$withval" |
15271 | else | |
15272 | if test "$cmailgroup" = "" | |
15273 | then | |
b0322a85 CE |
15274 | if test "$cross_compiling" = yes; then : |
15275 | as_fn_error $? "Must use --with-mailgroup when cross compiling." "$LINENO" 5 | |
d9898ee8 | 15276 | else |
b0322a85 | 15277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 15278 | /* end confdefs.h. */ |
8d138742 CE |
15279 | |
15280 | #include <stdio.h> | |
15281 | #include <grp.h> | |
15282 | #include <stdlib.h> | |
15283 | ||
15284 | static const char *ids $LB $RB={"courier", "daemon","sys","adm", "root", 0}; | |
15285 | ||
15286 | int main() | |
15287 | { | |
15288 | int i; | |
15289 | FILE *f; | |
15290 | ||
15291 | for (i=0; ids $LB i $RB; i++) | |
15292 | if (getgrnam(ids $LB i $RB)) break; | |
15293 | ||
15294 | f=fopen("conftest.out", "w"); | |
15295 | if (f && ids $LB i $RB) | |
15296 | { | |
15297 | fprintf(f, "%s\n", ids $LB i $RB); | |
15298 | fclose(f); | |
15299 | exit(0); | |
15300 | } | |
15301 | fclose(f); | |
15302 | exit (1); | |
15303 | return (1); | |
15304 | } | |
d9898ee8 | 15305 | |
15306 | _ACEOF | |
b0322a85 | 15307 | if ac_fn_c_try_run "$LINENO"; then : |
8d138742 | 15308 | mailgroup=`cat conftest.out` |
d9898ee8 | 15309 | else |
b0322a85 | 15310 | as_fn_error use --with-mailgroup. "Cannot determine mail group" "$LINENO" 5 |
d9898ee8 | 15311 | fi |
b0322a85 CE |
15312 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15313 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8d138742 CE |
15314 | fi |
15315 | ||
8d138742 CE |
15316 | else |
15317 | mailgroup="$cmailgroup" | |
15318 | fi | |
15319 | ac_configure_args="$ac_configure_args --with-mailgroup=$mailgroup" | |
d9898ee8 | 15320 | |
15321 | fi | |
d9898ee8 | 15322 | |
b0322a85 | 15323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailgroup $result" >&5 |
8d138742 | 15324 | $as_echo "$mailgroup $result" >&6; } |
d9898ee8 | 15325 | |
15326 | ||
8d138742 CE |
15327 | rm -f conftest.out |
15328 | ||
15329 | ||
15330 | # Check whether --with-stdheaderdir was given. | |
b0322a85 | 15331 | if test "${with_stdheaderdir+set}" = set; then : |
8d138742 CE |
15332 | withval=$with_stdheaderdir; |
15333 | if test "$withval" = "no" | |
15334 | then | |
15335 | ||
15336 | cat >>confdefs.h <<_ACEOF | |
15337 | #define HAVE_NOSTDHEADERDIR 1 | |
d9898ee8 | 15338 | _ACEOF |
15339 | ||
8d138742 CE |
15340 | fi |
15341 | ||
d9898ee8 | 15342 | fi |
15343 | ||
8d138742 | 15344 | |
b0322a85 | 15345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 |
8d138742 | 15346 | $as_echo_n "checking for socklen_t... " >&6; } |
b0322a85 | 15347 | if ${authlib_cv_hassocklen_t+:} false; then : |
8d138742 | 15348 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 15349 | else |
b0322a85 | 15350 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 15351 | /* end confdefs.h. */ |
8d138742 | 15352 | |
b0322a85 | 15353 | |
d9898ee8 | 15354 | #include <sys/types.h> |
8d138742 CE |
15355 | #include <sys/socket.h> |
15356 | ||
15357 | socklen_t sl_t; | |
d9898ee8 | 15358 | |
d9898ee8 | 15359 | _ACEOF |
b0322a85 | 15360 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 | 15361 | authlib_cv_hassocklen_t=yes |
d9898ee8 | 15362 | else |
b0322a85 | 15363 | authlib_cv_hassocklen_t=no |
d9898ee8 | 15364 | fi |
dd184caf | 15365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8d138742 | 15366 | |
d9898ee8 | 15367 | fi |
b0322a85 | 15368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $authlib_cv_hassocklen_t" >&5 |
8d138742 CE |
15369 | $as_echo "$authlib_cv_hassocklen_t" >&6; } |
15370 | ||
15371 | socklen_t="int" | |
15372 | ||
15373 | if test $authlib_cv_hassocklen_t = yes | |
15374 | then | |
15375 | : | |
15376 | else | |
d9898ee8 | 15377 | |
15378 | cat >>confdefs.h <<_ACEOF | |
8d138742 | 15379 | #define socklen_t int |
d9898ee8 | 15380 | _ACEOF |
15381 | ||
8d138742 CE |
15382 | fi |
15383 | ||
d9898ee8 | 15384 | |
8d138742 | 15385 | # Check whether --with-repository was given. |
b0322a85 | 15386 | if test "${with_repository+set}" = set; then : |
8d138742 CE |
15387 | withval=$with_repository; REPOSITORY="$withval" |
15388 | fi | |
d9898ee8 | 15389 | |
15390 | ||
15391 | ||
b0322a85 | 15392 | if test -d ${srcdir}/libs/docbook; then |
8d138742 CE |
15393 | HAVE_SGML_TRUE= |
15394 | HAVE_SGML_FALSE='#' | |
d9898ee8 | 15395 | else |
8d138742 CE |
15396 | HAVE_SGML_TRUE='#' |
15397 | HAVE_SGML_FALSE= | |
15398 | fi | |
d9898ee8 | 15399 | |
b0322a85 | 15400 | subdirs="$subdirs libs/bdbobj libs/gdbmobj libs/md5 libs/sha1 libs/libhmac libs/numlib libs/makedat userdb libs/unicode libs/rfc822 libs/random128 libs/liblock liblog" |
d9898ee8 | 15401 | |
d9898ee8 | 15402 | |
b0322a85 | 15403 | ac_config_files="$ac_config_files Makefile authdaemond authdaemonrc authsystem.passwd README.authdebug.html dbobj.config dbobj.h authmigrate courier-authlib.spec courier-authlib.lpspec courier-authlib.sysvinit courier-authlib.service userdb-test-cram-md5.pl" |
d9898ee8 | 15404 | |
8d138742 CE |
15405 | cat >confcache <<\_ACEOF |
15406 | # This file is a shell script that caches the results of configure | |
15407 | # tests run on this system so they can be shared between configure | |
15408 | # scripts and configure runs, see configure's option --config-cache. | |
15409 | # It is not useful on other systems. If it contains results you don't | |
15410 | # want to keep, you may remove or edit it. | |
15411 | # | |
15412 | # config.status only pays attention to the cache file if you give it | |
15413 | # the --recheck option to rerun configure. | |
15414 | # | |
15415 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
15416 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
15417 | # following values. | |
d9898ee8 | 15418 | |
d9898ee8 | 15419 | _ACEOF |
d9898ee8 | 15420 | |
8d138742 CE |
15421 | # The following way of writing the cache mishandles newlines in values, |
15422 | # but we know of no workaround that is simple, portable, and efficient. | |
15423 | # So, we kill variables containing newlines. | |
15424 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
15425 | # and sets the high bit in the cache file unless we assign to the vars. | |
15426 | ( | |
15427 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
15428 | eval ac_val=\$$ac_var | |
15429 | case $ac_val in #( | |
15430 | *${as_nl}*) | |
15431 | case $ac_var in #( | |
b0322a85 | 15432 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
8d138742 CE |
15433 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
15434 | esac | |
15435 | case $ac_var in #( | |
15436 | _ | IFS | as_nl) ;; #( | |
15437 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
b0322a85 | 15438 | *) { eval $ac_var=; unset $ac_var;} ;; |
8d138742 CE |
15439 | esac ;; |
15440 | esac | |
15441 | done | |
dd184caf | 15442 | |
8d138742 CE |
15443 | (set) 2>&1 | |
15444 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
15445 | *${as_nl}ac_space=\ *) | |
b0322a85 CE |
15446 | # `set' does not quote correctly, so add quotes: double-quote |
15447 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
8d138742 CE |
15448 | sed -n \ |
15449 | "s/'/'\\\\''/g; | |
15450 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
15451 | ;; #( | |
15452 | *) | |
15453 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
15454 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
15455 | ;; | |
15456 | esac | | |
15457 | sort | |
15458 | ) | | |
15459 | sed ' | |
15460 | /^ac_cv_env_/b end | |
15461 | t clear | |
15462 | :clear | |
15463 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
15464 | t end | |
15465 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
15466 | :end' >>confcache | |
15467 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
15468 | if test -w "$cache_file"; then | |
b0322a85 CE |
15469 | if test "x$cache_file" != "x/dev/null"; then |
15470 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
8d138742 | 15471 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
b0322a85 CE |
15472 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
15473 | cat confcache >"$cache_file" | |
15474 | else | |
15475 | case $cache_file in #( | |
15476 | */* | ?:*) | |
15477 | mv -f confcache "$cache_file"$$ && | |
15478 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
15479 | *) | |
15480 | mv -f confcache "$cache_file" ;; | |
15481 | esac | |
15482 | fi | |
15483 | fi | |
8d138742 | 15484 | else |
b0322a85 | 15485 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
8d138742 CE |
15486 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
15487 | fi | |
d9898ee8 | 15488 | fi |
8d138742 | 15489 | rm -f confcache |
d9898ee8 | 15490 | |
8d138742 CE |
15491 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
15492 | # Let make expand exec_prefix. | |
15493 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
15494 | ||
15495 | DEFS=-DHAVE_CONFIG_H | |
15496 | ||
15497 | ac_libobjs= | |
15498 | ac_ltlibobjs= | |
15499 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
15500 | # 1. Remove the extension, and $U if already installed. | |
15501 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
15502 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
15503 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
15504 | # will be set to the directory where LIBOBJS objects are built. | |
b0322a85 CE |
15505 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
15506 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
d9898ee8 | 15507 | done |
8d138742 | 15508 | LIBOBJS=$ac_libobjs |
d9898ee8 | 15509 | |
8d138742 | 15510 | LTLIBOBJS=$ac_ltlibobjs |
d9898ee8 | 15511 | |
8d138742 | 15512 | |
b0322a85 CE |
15513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
15514 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
15515 | if test -n "$am_sleep_pid"; then | |
15516 | # Hide warnings about reused PIDs. | |
15517 | wait $am_sleep_pid 2>/dev/null | |
15518 | fi | |
15519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
15520 | $as_echo "done" >&6; } | |
8d138742 CE |
15521 | if test -n "$EXEEXT"; then |
15522 | am__EXEEXT_TRUE= | |
15523 | am__EXEEXT_FALSE='#' | |
d9898ee8 | 15524 | else |
8d138742 CE |
15525 | am__EXEEXT_TRUE='#' |
15526 | am__EXEEXT_FALSE= | |
15527 | fi | |
d9898ee8 | 15528 | |
8d138742 | 15529 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
b0322a85 CE |
15530 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
15531 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
15532 | fi |
15533 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
b0322a85 CE |
15534 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
15535 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
15536 | fi |
15537 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then | |
b0322a85 CE |
15538 | as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined. |
15539 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
15540 | fi |
15541 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then | |
b0322a85 CE |
15542 | as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined. |
15543 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
15544 | fi |
15545 | LT_CONFIG_H=courier_auth_config.h | |
15546 | ||
15547 | _ltdl_libobjs= | |
15548 | _ltdl_ltlibobjs= | |
15549 | if test -n "$_LT_LIBOBJS"; then | |
15550 | # Remove the extension. | |
15551 | _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' | |
15552 | for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do | |
15553 | _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" | |
15554 | _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" | |
15555 | done | |
15556 | fi | |
15557 | ltdl_LIBOBJS=$_ltdl_libobjs | |
15558 | ||
15559 | ltdl_LTLIBOBJS=$_ltdl_ltlibobjs | |
15560 | ||
15561 | ||
15562 | if test -z "${HAVE_LDAP_TRUE}" && test -z "${HAVE_LDAP_FALSE}"; then | |
b0322a85 CE |
15563 | as_fn_error $? "conditional \"HAVE_LDAP\" was never defined. |
15564 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
d9898ee8 | 15565 | fi |
8d138742 | 15566 | if test -z "${HAVE_AUTHPGSQL_TRUE}" && test -z "${HAVE_AUTHPGSQL_FALSE}"; then |
b0322a85 CE |
15567 | as_fn_error $? "conditional \"HAVE_AUTHPGSQL\" was never defined. |
15568 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
d9898ee8 | 15569 | fi |
8d138742 | 15570 | if test -z "${HAVE_AUTHMYSQL_TRUE}" && test -z "${HAVE_AUTHMYSQL_FALSE}"; then |
b0322a85 CE |
15571 | as_fn_error $? "conditional \"HAVE_AUTHMYSQL\" was never defined. |
15572 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15573 | fi | |
15574 | if test -z "${HAVE_AUTHSQLITE_TRUE}" && test -z "${HAVE_AUTHSQLITE_FALSE}"; then | |
15575 | as_fn_error $? "conditional \"HAVE_AUTHSQLITE\" was never defined. | |
15576 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
15577 | fi |
15578 | if test -z "${HAVE_CUSTOM_TRUE}" && test -z "${HAVE_CUSTOM_FALSE}"; then | |
b0322a85 CE |
15579 | as_fn_error $? "conditional \"HAVE_CUSTOM\" was never defined. |
15580 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
15581 | fi |
15582 | if test -z "${HAVE_PIPE_TRUE}" && test -z "${HAVE_PIPE_FALSE}"; then | |
b0322a85 CE |
15583 | as_fn_error $? "conditional \"HAVE_PIPE\" was never defined. |
15584 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
15585 | fi |
15586 | if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then | |
b0322a85 CE |
15587 | as_fn_error $? "conditional \"HAVE_SGML\" was never defined. |
15588 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
d9898ee8 | 15589 | fi |
15590 | ||
b0322a85 | 15591 | : "${CONFIG_STATUS=./config.status}" |
8d138742 CE |
15592 | ac_write_fail=0 |
15593 | ac_clean_files_save=$ac_clean_files | |
15594 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
b0322a85 | 15595 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
8d138742 | 15596 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
b0322a85 CE |
15597 | as_write_fail=0 |
15598 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
8d138742 CE |
15599 | #! $SHELL |
15600 | # Generated by $as_me. | |
15601 | # Run this file to recreate the current configuration. | |
15602 | # Compiler output produced by configure, useful for debugging | |
15603 | # configure, is in config.log if it exists. | |
15604 | ||
15605 | debug=false | |
15606 | ac_cs_recheck=false | |
15607 | ac_cs_silent=false | |
d9898ee8 | 15608 | |
b0322a85 CE |
15609 | SHELL=\${CONFIG_SHELL-$SHELL} |
15610 | export SHELL | |
15611 | _ASEOF | |
15612 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
15613 | ## -------------------- ## | |
15614 | ## M4sh Initialization. ## | |
15615 | ## -------------------- ## | |
d9898ee8 | 15616 | |
8d138742 CE |
15617 | # Be more Bourne compatible |
15618 | DUALCASE=1; export DUALCASE # for MKS sh | |
b0322a85 | 15619 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
8d138742 CE |
15620 | emulate sh |
15621 | NULLCMD=: | |
15622 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
15623 | # is contrary to our usage. Disable this feature. | |
15624 | alias -g '${1+"$@"}'='"$@"' | |
15625 | setopt NO_GLOB_SUBST | |
15626 | else | |
b0322a85 CE |
15627 | case `(set -o) 2>/dev/null` in #( |
15628 | *posix*) : | |
15629 | set -o posix ;; #( | |
15630 | *) : | |
15631 | ;; | |
8d138742 | 15632 | esac |
8d138742 | 15633 | fi |
d9898ee8 | 15634 | |
d9898ee8 | 15635 | |
8d138742 CE |
15636 | as_nl=' |
15637 | ' | |
15638 | export as_nl | |
15639 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15640 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15641 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15642 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
b0322a85 CE |
15643 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
15644 | # but without wasting forks for bash or zsh. | |
15645 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
15646 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15647 | as_echo='print -r --' | |
15648 | as_echo_n='print -rn --' | |
15649 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
8d138742 CE |
15650 | as_echo='printf %s\n' |
15651 | as_echo_n='printf %s' | |
15652 | else | |
15653 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15654 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15655 | as_echo_n='/usr/ucb/echo -n' | |
15656 | else | |
15657 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
15658 | as_echo_n_body='eval | |
15659 | arg=$1; | |
b0322a85 | 15660 | case $arg in #( |
8d138742 CE |
15661 | *"$as_nl"*) |
15662 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15663 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15664 | esac; | |
15665 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15666 | ' | |
15667 | export as_echo_n_body | |
15668 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
15669 | fi | |
15670 | export as_echo_body | |
15671 | as_echo='sh -c $as_echo_body as_echo' | |
15672 | fi | |
d9898ee8 | 15673 | |
8d138742 CE |
15674 | # The user is always right. |
15675 | if test "${PATH_SEPARATOR+set}" != set; then | |
15676 | PATH_SEPARATOR=: | |
15677 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15678 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15679 | PATH_SEPARATOR=';' | |
15680 | } | |
d9898ee8 | 15681 | fi |
15682 | ||
d9898ee8 | 15683 | |
8d138742 CE |
15684 | # IFS |
15685 | # We need space, tab and new line, in precisely that order. Quoting is | |
15686 | # there to prevent editors from complaining about space-tab. | |
15687 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15688 | # splitting by setting IFS to empty value.) | |
15689 | IFS=" "" $as_nl" | |
d9898ee8 | 15690 | |
8d138742 | 15691 | # Find who we are. Look in the path if we contain no directory separator. |
b0322a85 CE |
15692 | as_myself= |
15693 | case $0 in #(( | |
8d138742 CE |
15694 | *[\\/]* ) as_myself=$0 ;; |
15695 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15696 | for as_dir in $PATH | |
15697 | do | |
15698 | IFS=$as_save_IFS | |
15699 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
15700 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
15701 | done | |
8d138742 | 15702 | IFS=$as_save_IFS |
d9898ee8 | 15703 | |
8d138742 | 15704 | ;; |
dd184caf | 15705 | esac |
8d138742 CE |
15706 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
15707 | # in which case we are not to be found in the path. | |
15708 | if test "x$as_myself" = x; then | |
15709 | as_myself=$0 | |
15710 | fi | |
15711 | if test ! -f "$as_myself"; then | |
15712 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
b0322a85 | 15713 | exit 1 |
d9898ee8 | 15714 | fi |
dd184caf | 15715 | |
b0322a85 CE |
15716 | # Unset variables that we do not need and which cause bugs (e.g. in |
15717 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
15718 | # suppresses any "Segmentation fault" message there. '((' could | |
15719 | # trigger a bug in pdksh 5.2.14. | |
15720 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
15721 | do eval test x\${$as_var+set} = xset \ | |
15722 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
8d138742 CE |
15723 | done |
15724 | PS1='$ ' | |
15725 | PS2='> ' | |
15726 | PS4='+ ' | |
d9898ee8 | 15727 | |
8d138742 CE |
15728 | # NLS nuisances. |
15729 | LC_ALL=C | |
15730 | export LC_ALL | |
15731 | LANGUAGE=C | |
15732 | export LANGUAGE | |
15733 | ||
b0322a85 CE |
15734 | # CDPATH. |
15735 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15736 | ||
15737 | ||
15738 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
15739 | # ---------------------------------------- | |
15740 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
15741 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
15742 | # script with STATUS, using 1 if that was 0. | |
15743 | as_fn_error () | |
15744 | { | |
15745 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
15746 | if test "$4"; then | |
15747 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
15748 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
15749 | fi | |
15750 | $as_echo "$as_me: error: $2" >&2 | |
15751 | as_fn_exit $as_status | |
15752 | } # as_fn_error | |
15753 | ||
15754 | ||
15755 | # as_fn_set_status STATUS | |
15756 | # ----------------------- | |
15757 | # Set $? to STATUS, without forking. | |
15758 | as_fn_set_status () | |
15759 | { | |
15760 | return $1 | |
15761 | } # as_fn_set_status | |
15762 | ||
15763 | # as_fn_exit STATUS | |
15764 | # ----------------- | |
15765 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15766 | as_fn_exit () | |
15767 | { | |
15768 | set +e | |
15769 | as_fn_set_status $1 | |
15770 | exit $1 | |
15771 | } # as_fn_exit | |
15772 | ||
15773 | # as_fn_unset VAR | |
15774 | # --------------- | |
15775 | # Portably unset VAR. | |
15776 | as_fn_unset () | |
15777 | { | |
15778 | { eval $1=; unset $1;} | |
15779 | } | |
15780 | as_unset=as_fn_unset | |
15781 | # as_fn_append VAR VALUE | |
15782 | # ---------------------- | |
15783 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15784 | # advantage of any shell optimizations that allow amortized linear growth over | |
15785 | # repeated appends, instead of the typical quadratic growth present in naive | |
15786 | # implementations. | |
15787 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
15788 | eval 'as_fn_append () | |
15789 | { | |
15790 | eval $1+=\$2 | |
15791 | }' | |
15792 | else | |
15793 | as_fn_append () | |
15794 | { | |
15795 | eval $1=\$$1\$2 | |
15796 | } | |
15797 | fi # as_fn_append | |
15798 | ||
15799 | # as_fn_arith ARG... | |
15800 | # ------------------ | |
15801 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15802 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15803 | # must be portable across $(()) and expr. | |
15804 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15805 | eval 'as_fn_arith () | |
15806 | { | |
15807 | as_val=$(( $* )) | |
15808 | }' | |
15809 | else | |
15810 | as_fn_arith () | |
15811 | { | |
15812 | as_val=`expr "$@" || test $? -eq 1` | |
15813 | } | |
15814 | fi # as_fn_arith | |
15815 | ||
15816 | ||
8d138742 CE |
15817 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15818 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
15819 | as_expr=expr | |
15820 | else | |
15821 | as_expr=false | |
15822 | fi | |
d9898ee8 | 15823 | |
8d138742 CE |
15824 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
15825 | as_basename=basename | |
15826 | else | |
15827 | as_basename=false | |
d9898ee8 | 15828 | fi |
d9898ee8 | 15829 | |
b0322a85 CE |
15830 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15831 | as_dirname=dirname | |
15832 | else | |
15833 | as_dirname=false | |
15834 | fi | |
d9898ee8 | 15835 | |
8d138742 CE |
15836 | as_me=`$as_basename -- "$0" || |
15837 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
15838 | X"$0" : 'X\(//\)$' \| \ | |
15839 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
15840 | $as_echo X/"$0" | | |
15841 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15842 | s//\1/ | |
15843 | q | |
15844 | } | |
15845 | /^X\/\(\/\/\)$/{ | |
15846 | s//\1/ | |
15847 | q | |
15848 | } | |
15849 | /^X\/\(\/\).*/{ | |
15850 | s//\1/ | |
15851 | q | |
15852 | } | |
15853 | s/.*/./; q'` | |
15854 | ||
b0322a85 CE |
15855 | # Avoid depending upon Character Ranges. |
15856 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15857 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15858 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15859 | as_cr_digits='0123456789' | |
15860 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
d9898ee8 | 15861 | |
8d138742 | 15862 | ECHO_C= ECHO_N= ECHO_T= |
b0322a85 | 15863 | case `echo -n x` in #((((( |
8d138742 | 15864 | -n*) |
b0322a85 | 15865 | case `echo 'xy\c'` in |
8d138742 | 15866 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
b0322a85 CE |
15867 | xy) ECHO_C='\c';; |
15868 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15869 | ECHO_T=' ';; | |
8d138742 CE |
15870 | esac;; |
15871 | *) | |
15872 | ECHO_N='-n';; | |
15873 | esac | |
dd184caf | 15874 | |
8d138742 CE |
15875 | rm -f conf$$ conf$$.exe conf$$.file |
15876 | if test -d conf$$.dir; then | |
15877 | rm -f conf$$.dir/conf$$.file | |
15878 | else | |
15879 | rm -f conf$$.dir | |
15880 | mkdir conf$$.dir 2>/dev/null | |
15881 | fi | |
15882 | if (echo >conf$$.file) 2>/dev/null; then | |
15883 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
15884 | as_ln_s='ln -s' | |
15885 | # ... but there are two gotchas: | |
15886 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15887 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
b0322a85 | 15888 | # In both cases, we have to default to `cp -pR'. |
8d138742 | 15889 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
b0322a85 | 15890 | as_ln_s='cp -pR' |
8d138742 CE |
15891 | elif ln conf$$.file conf$$ 2>/dev/null; then |
15892 | as_ln_s=ln | |
15893 | else | |
b0322a85 | 15894 | as_ln_s='cp -pR' |
8d138742 CE |
15895 | fi |
15896 | else | |
b0322a85 | 15897 | as_ln_s='cp -pR' |
8d138742 CE |
15898 | fi |
15899 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
15900 | rmdir conf$$.dir 2>/dev/null | |
d9898ee8 | 15901 | |
15902 | ||
b0322a85 CE |
15903 | # as_fn_mkdir_p |
15904 | # ------------- | |
15905 | # Create "$as_dir" as a directory, including parents if necessary. | |
15906 | as_fn_mkdir_p () | |
15907 | { | |
15908 | ||
15909 | case $as_dir in #( | |
15910 | -*) as_dir=./$as_dir;; | |
15911 | esac | |
15912 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15913 | as_dirs= | |
15914 | while :; do | |
15915 | case $as_dir in #( | |
15916 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15917 | *) as_qdir=$as_dir;; | |
15918 | esac | |
15919 | as_dirs="'$as_qdir' $as_dirs" | |
15920 | as_dir=`$as_dirname -- "$as_dir" || | |
15921 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15922 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15923 | X"$as_dir" : 'X\(//\)$' \| \ | |
15924 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15925 | $as_echo X"$as_dir" | | |
15926 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15927 | s//\1/ | |
15928 | q | |
15929 | } | |
15930 | /^X\(\/\/\)[^/].*/{ | |
15931 | s//\1/ | |
15932 | q | |
15933 | } | |
15934 | /^X\(\/\/\)$/{ | |
15935 | s//\1/ | |
15936 | q | |
15937 | } | |
15938 | /^X\(\/\).*/{ | |
15939 | s//\1/ | |
15940 | q | |
15941 | } | |
15942 | s/.*/./; q'` | |
15943 | test -d "$as_dir" && break | |
15944 | done | |
15945 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
15946 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
15947 | ||
15948 | ||
15949 | } # as_fn_mkdir_p | |
15950 | if mkdir -p . 2>/dev/null; then | |
15951 | as_mkdir_p='mkdir -p "$as_dir"' | |
8d138742 | 15952 | else |
b0322a85 CE |
15953 | test -d ./-p && rmdir ./-p |
15954 | as_mkdir_p=false | |
8d138742 | 15955 | fi |
b0322a85 CE |
15956 | |
15957 | ||
15958 | # as_fn_executable_p FILE | |
15959 | # ----------------------- | |
15960 | # Test if FILE is an executable regular file. | |
15961 | as_fn_executable_p () | |
15962 | { | |
15963 | test -f "$1" && test -x "$1" | |
15964 | } # as_fn_executable_p | |
15965 | as_test_x='test -x' | |
15966 | as_executable_p=as_fn_executable_p | |
d9898ee8 | 15967 | |
8d138742 CE |
15968 | # Sed expression to map a string onto a valid CPP name. |
15969 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 15970 | |
8d138742 CE |
15971 | # Sed expression to map a string onto a valid variable name. |
15972 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 15973 | |
d9898ee8 | 15974 | |
8d138742 | 15975 | exec 6>&1 |
b0322a85 CE |
15976 | ## ----------------------------------- ## |
15977 | ## Main body of $CONFIG_STATUS script. ## | |
15978 | ## ----------------------------------- ## | |
15979 | _ASEOF | |
15980 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
d9898ee8 | 15981 | |
b0322a85 CE |
15982 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15983 | # Save the log message, to keep $0 and so on meaningful, and to | |
8d138742 CE |
15984 | # report actual input values of CONFIG_FILES etc. instead of their |
15985 | # values after options handling. | |
15986 | ac_log=" | |
b0322a85 CE |
15987 | This file was extended by courier-authlib $as_me 0.66.1, which was |
15988 | generated by GNU Autoconf 2.69. Invocation command line was | |
d9898ee8 | 15989 | |
8d138742 CE |
15990 | CONFIG_FILES = $CONFIG_FILES |
15991 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15992 | CONFIG_LINKS = $CONFIG_LINKS | |
15993 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15994 | $ $0 $@ | |
d9898ee8 | 15995 | |
8d138742 CE |
15996 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15997 | " | |
d9898ee8 | 15998 | |
8d138742 | 15999 | _ACEOF |
d9898ee8 | 16000 | |
8d138742 CE |
16001 | case $ac_config_files in *" |
16002 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
16003 | esac | |
d9898ee8 | 16004 | |
8d138742 CE |
16005 | case $ac_config_headers in *" |
16006 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
16007 | esac | |
d9898ee8 | 16008 | |
16009 | ||
8d138742 CE |
16010 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16011 | # Files that config.status was made for. | |
16012 | config_files="$ac_config_files" | |
16013 | config_headers="$ac_config_headers" | |
16014 | config_commands="$ac_config_commands" | |
d9898ee8 | 16015 | |
8d138742 | 16016 | _ACEOF |
d9898ee8 | 16017 | |
8d138742 CE |
16018 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16019 | ac_cs_usage="\ | |
b0322a85 CE |
16020 | \`$as_me' instantiates files and other configuration actions |
16021 | from templates according to the current configuration. Unless the files | |
16022 | and actions are specified as TAGs, all are instantiated by default. | |
d9898ee8 | 16023 | |
b0322a85 | 16024 | Usage: $0 [OPTION]... [TAG]... |
d9898ee8 | 16025 | |
8d138742 CE |
16026 | -h, --help print this help, then exit |
16027 | -V, --version print version number and configuration settings, then exit | |
b0322a85 | 16028 | --config print configuration, then exit |
8d138742 CE |
16029 | -q, --quiet, --silent |
16030 | do not print progress messages | |
16031 | -d, --debug don't remove temporary files | |
16032 | --recheck update $as_me by reconfiguring in the same conditions | |
16033 | --file=FILE[:TEMPLATE] | |
16034 | instantiate the configuration file FILE | |
16035 | --header=FILE[:TEMPLATE] | |
16036 | instantiate the configuration header FILE | |
d9898ee8 | 16037 | |
8d138742 CE |
16038 | Configuration files: |
16039 | $config_files | |
d9898ee8 | 16040 | |
8d138742 CE |
16041 | Configuration headers: |
16042 | $config_headers | |
d9898ee8 | 16043 | |
8d138742 CE |
16044 | Configuration commands: |
16045 | $config_commands | |
d9898ee8 | 16046 | |
b0322a85 | 16047 | Report bugs to <courier-users@lists.sourceforge.net>." |
d9898ee8 | 16048 | |
8d138742 CE |
16049 | _ACEOF |
16050 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b0322a85 | 16051 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
8d138742 | 16052 | ac_cs_version="\\ |
b0322a85 CE |
16053 | courier-authlib config.status 0.66.1 |
16054 | configured by $0, generated by GNU Autoconf 2.69, | |
16055 | with options \\"\$ac_cs_config\\" | |
d9898ee8 | 16056 | |
b0322a85 | 16057 | Copyright (C) 2012 Free Software Foundation, Inc. |
8d138742 CE |
16058 | This config.status script is free software; the Free Software Foundation |
16059 | gives unlimited permission to copy, distribute and modify it." | |
d9898ee8 | 16060 | |
8d138742 CE |
16061 | ac_pwd='$ac_pwd' |
16062 | srcdir='$srcdir' | |
16063 | INSTALL='$INSTALL' | |
16064 | MKDIR_P='$MKDIR_P' | |
16065 | AWK='$AWK' | |
16066 | test -n "\$AWK" || AWK=awk | |
d9898ee8 | 16067 | _ACEOF |
d9898ee8 | 16068 | |
8d138742 CE |
16069 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16070 | # The default lists apply if the user does not specify any file. | |
16071 | ac_need_defaults=: | |
16072 | while test $# != 0 | |
16073 | do | |
16074 | case $1 in | |
b0322a85 | 16075 | --*=?*) |
8d138742 CE |
16076 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
16077 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
16078 | ac_shift=: | |
16079 | ;; | |
b0322a85 CE |
16080 | --*=) |
16081 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
16082 | ac_optarg= | |
16083 | ac_shift=: | |
16084 | ;; | |
8d138742 CE |
16085 | *) |
16086 | ac_option=$1 | |
16087 | ac_optarg=$2 | |
16088 | ac_shift=shift | |
16089 | ;; | |
16090 | esac | |
16091 | ||
16092 | case $ac_option in | |
16093 | # Handling of the options. | |
16094 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
16095 | ac_cs_recheck=: ;; | |
16096 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
16097 | $as_echo "$ac_cs_version"; exit ;; | |
b0322a85 CE |
16098 | --config | --confi | --conf | --con | --co | --c ) |
16099 | $as_echo "$ac_cs_config"; exit ;; | |
8d138742 CE |
16100 | --debug | --debu | --deb | --de | --d | -d ) |
16101 | debug=: ;; | |
16102 | --file | --fil | --fi | --f ) | |
16103 | $ac_shift | |
16104 | case $ac_optarg in | |
16105 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b0322a85 | 16106 | '') as_fn_error $? "missing file argument" ;; |
8d138742 | 16107 | esac |
b0322a85 | 16108 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
8d138742 CE |
16109 | ac_need_defaults=false;; |
16110 | --header | --heade | --head | --hea ) | |
16111 | $ac_shift | |
16112 | case $ac_optarg in | |
16113 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
16114 | esac | |
b0322a85 | 16115 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
8d138742 CE |
16116 | ac_need_defaults=false;; |
16117 | --he | --h) | |
16118 | # Conflict between --help and --header | |
b0322a85 CE |
16119 | as_fn_error $? "ambiguous option: \`$1' |
16120 | Try \`$0 --help' for more information.";; | |
8d138742 CE |
16121 | --help | --hel | -h ) |
16122 | $as_echo "$ac_cs_usage"; exit ;; | |
16123 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
16124 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
16125 | ac_cs_silent=: ;; | |
dd184caf | 16126 | |
8d138742 | 16127 | # This is an error. |
b0322a85 CE |
16128 | -*) as_fn_error $? "unrecognized option: \`$1' |
16129 | Try \`$0 --help' for more information." ;; | |
dd184caf | 16130 | |
b0322a85 | 16131 | *) as_fn_append ac_config_targets " $1" |
8d138742 | 16132 | ac_need_defaults=false ;; |
d9898ee8 | 16133 | |
8d138742 CE |
16134 | esac |
16135 | shift | |
16136 | done | |
d9898ee8 | 16137 | |
8d138742 | 16138 | ac_configure_extra_args= |
d9898ee8 | 16139 | |
8d138742 CE |
16140 | if $ac_cs_silent; then |
16141 | exec 6>/dev/null | |
16142 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
16143 | fi | |
d9898ee8 | 16144 | |
8d138742 CE |
16145 | _ACEOF |
16146 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16147 | if \$ac_cs_recheck; then | |
b0322a85 | 16148 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
8d138742 CE |
16149 | shift |
16150 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
16151 | CONFIG_SHELL='$SHELL' | |
16152 | export CONFIG_SHELL | |
16153 | exec "\$@" | |
16154 | fi | |
dd184caf | 16155 | |
d9898ee8 | 16156 | _ACEOF |
8d138742 CE |
16157 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16158 | exec 5>>config.log | |
16159 | { | |
16160 | echo | |
16161 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
16162 | ## Running $as_me. ## | |
16163 | _ASBOX | |
16164 | $as_echo "$ac_log" | |
16165 | } >&5 | |
d9898ee8 | 16166 | |
8d138742 CE |
16167 | _ACEOF |
16168 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16169 | # | |
16170 | # INIT-COMMANDS | |
16171 | # | |
16172 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
d9898ee8 | 16173 | |
d9898ee8 | 16174 | |
8d138742 CE |
16175 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
16176 | # if CDPATH is set. | |
16177 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
d9898ee8 | 16178 | |
8d138742 CE |
16179 | sed_quote_subst='$sed_quote_subst' |
16180 | double_quote_subst='$double_quote_subst' | |
16181 | delay_variable_subst='$delay_variable_subst' | |
b0322a85 CE |
16182 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
16183 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
16184 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
16185 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
16186 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
16187 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
16188 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
16189 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
16190 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
16191 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
16192 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
16193 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
16194 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
16195 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
16196 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
16197 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
16198 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
16199 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
16200 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
16201 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
16202 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
16203 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
16204 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
16205 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
16206 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
16207 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
16208 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
16209 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
16210 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
16211 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
16212 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
16213 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
16214 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
16215 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
16216 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
16217 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
16218 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
16219 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
16220 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
16221 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
16222 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
16223 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
16224 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
16225 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
16226 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
16227 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16228 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16229 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
16230 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
16231 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
16232 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
16233 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
16234 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
16235 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
16236 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
16237 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
16238 | 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"`' | |
16239 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
16240 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
16241 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
16242 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
16243 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
16244 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
16245 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
16246 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
16247 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
16248 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
16249 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
16250 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
16251 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
16252 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
16253 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
16254 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
16255 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
16256 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
16257 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
16258 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
16259 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
16260 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
16261 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
16262 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
16263 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
16264 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
16265 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
16266 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
16267 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
16268 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
16269 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
16270 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
16271 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
16272 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
16273 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
16274 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
16275 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
16276 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
16277 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
16278 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
16279 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
16280 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
16281 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
16282 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
16283 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
16284 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
16285 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
16286 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
16287 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
16288 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
16289 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
16290 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
16291 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
16292 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
16293 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
16294 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
16295 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
16296 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
16297 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
16298 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
16299 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16300 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16301 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
16302 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
16303 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
16304 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
16305 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
16306 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
16307 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
16308 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
16309 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
16310 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
16311 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
8d138742 CE |
16312 | |
16313 | LTCC='$LTCC' | |
16314 | LTCFLAGS='$LTCFLAGS' | |
16315 | compiler='$compiler_DEFAULT' | |
16316 | ||
b0322a85 CE |
16317 | # A function that is used when there is no print builtin or printf. |
16318 | func_fallback_echo () | |
16319 | { | |
16320 | eval 'cat <<_LTECHO_EOF | |
16321 | \$1 | |
16322 | _LTECHO_EOF' | |
16323 | } | |
16324 | ||
8d138742 | 16325 | # Quote evaled strings. |
b0322a85 CE |
16326 | for var in SHELL \ |
16327 | ECHO \ | |
16328 | PATH_SEPARATOR \ | |
16329 | SED \ | |
8d138742 CE |
16330 | GREP \ |
16331 | EGREP \ | |
16332 | FGREP \ | |
16333 | LD \ | |
16334 | NM \ | |
16335 | LN_S \ | |
16336 | lt_SP2NL \ | |
16337 | lt_NL2SP \ | |
16338 | reload_flag \ | |
16339 | OBJDUMP \ | |
16340 | deplibs_check_method \ | |
16341 | file_magic_cmd \ | |
b0322a85 CE |
16342 | file_magic_glob \ |
16343 | want_nocaseglob \ | |
16344 | DLLTOOL \ | |
16345 | sharedlib_from_linklib_cmd \ | |
8d138742 CE |
16346 | AR \ |
16347 | AR_FLAGS \ | |
b0322a85 | 16348 | archiver_list_spec \ |
8d138742 CE |
16349 | STRIP \ |
16350 | RANLIB \ | |
16351 | CC \ | |
16352 | CFLAGS \ | |
16353 | compiler \ | |
16354 | lt_cv_sys_global_symbol_pipe \ | |
16355 | lt_cv_sys_global_symbol_to_cdecl \ | |
16356 | lt_cv_sys_global_symbol_to_c_name_address \ | |
16357 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
b0322a85 | 16358 | nm_file_list_spec \ |
8d138742 | 16359 | lt_prog_compiler_no_builtin_flag \ |
8d138742 | 16360 | lt_prog_compiler_pic \ |
b0322a85 | 16361 | lt_prog_compiler_wl \ |
8d138742 CE |
16362 | lt_prog_compiler_static \ |
16363 | lt_cv_prog_compiler_c_o \ | |
16364 | need_locks \ | |
b0322a85 | 16365 | MANIFEST_TOOL \ |
8d138742 CE |
16366 | DSYMUTIL \ |
16367 | NMEDIT \ | |
16368 | LIPO \ | |
16369 | OTOOL \ | |
16370 | OTOOL64 \ | |
16371 | shrext_cmds \ | |
16372 | export_dynamic_flag_spec \ | |
16373 | whole_archive_flag_spec \ | |
16374 | compiler_needs_object \ | |
16375 | with_gnu_ld \ | |
16376 | allow_undefined_flag \ | |
16377 | no_undefined_flag \ | |
16378 | hardcode_libdir_flag_spec \ | |
8d138742 | 16379 | hardcode_libdir_separator \ |
8d138742 CE |
16380 | exclude_expsyms \ |
16381 | include_expsyms \ | |
16382 | file_list_spec \ | |
16383 | variables_saved_for_relink \ | |
16384 | libname_spec \ | |
16385 | library_names_spec \ | |
16386 | soname_spec \ | |
b0322a85 | 16387 | install_override_mode \ |
8d138742 CE |
16388 | finish_eval \ |
16389 | old_striplib \ | |
16390 | striplib; do | |
b0322a85 | 16391 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
8d138742 | 16392 | *[\\\\\\\`\\"\\\$]*) |
b0322a85 | 16393 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
8d138742 CE |
16394 | ;; |
16395 | *) | |
16396 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
16397 | ;; | |
16398 | esac | |
16399 | done | |
d9898ee8 | 16400 | |
8d138742 CE |
16401 | # Double-quote double-evaled strings. |
16402 | for var in reload_cmds \ | |
16403 | old_postinstall_cmds \ | |
16404 | old_postuninstall_cmds \ | |
16405 | old_archive_cmds \ | |
16406 | extract_expsyms_cmds \ | |
16407 | old_archive_from_new_cmds \ | |
16408 | old_archive_from_expsyms_cmds \ | |
16409 | archive_cmds \ | |
16410 | archive_expsym_cmds \ | |
16411 | module_cmds \ | |
16412 | module_expsym_cmds \ | |
16413 | export_symbols_cmds \ | |
16414 | prelink_cmds \ | |
b0322a85 | 16415 | postlink_cmds \ |
8d138742 CE |
16416 | postinstall_cmds \ |
16417 | postuninstall_cmds \ | |
16418 | finish_cmds \ | |
16419 | sys_lib_search_path_spec \ | |
16420 | sys_lib_dlsearch_path_spec; do | |
b0322a85 | 16421 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
8d138742 | 16422 | *[\\\\\\\`\\"\\\$]*) |
b0322a85 | 16423 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
8d138742 CE |
16424 | ;; |
16425 | *) | |
16426 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
16427 | ;; | |
16428 | esac | |
16429 | done | |
d9898ee8 | 16430 | |
8d138742 CE |
16431 | ac_aux_dir='$ac_aux_dir' |
16432 | xsi_shell='$xsi_shell' | |
16433 | lt_shell_append='$lt_shell_append' | |
16434 | ||
16435 | # See if we are running on zsh, and set the options which allow our | |
16436 | # commands through without removal of \ escapes INIT. | |
16437 | if test -n "\${ZSH_VERSION+set}" ; then | |
16438 | setopt NO_GLOB_SUBST | |
d9898ee8 | 16439 | fi |
dd184caf | 16440 | |
16441 | ||
8d138742 CE |
16442 | PACKAGE='$PACKAGE' |
16443 | VERSION='$VERSION' | |
16444 | TIMESTAMP='$TIMESTAMP' | |
16445 | RM='$RM' | |
16446 | ofile='$ofile' | |
d9898ee8 | 16447 | |
dd184caf | 16448 | |
d9898ee8 | 16449 | |
16450 | ||
8d138742 | 16451 | _ACEOF |
d9898ee8 | 16452 | |
8d138742 | 16453 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
d9898ee8 | 16454 | |
8d138742 CE |
16455 | # Handling of arguments. |
16456 | for ac_config_target in $ac_config_targets | |
16457 | do | |
16458 | case $ac_config_target in | |
16459 | "courier_auth_config.h") CONFIG_HEADERS="$CONFIG_HEADERS courier_auth_config.h" ;; | |
16460 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
16461 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
16462 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
16463 | "authdaemond") CONFIG_FILES="$CONFIG_FILES authdaemond" ;; | |
16464 | "authdaemonrc") CONFIG_FILES="$CONFIG_FILES authdaemonrc" ;; | |
16465 | "authsystem.passwd") CONFIG_FILES="$CONFIG_FILES authsystem.passwd" ;; | |
16466 | "README.authdebug.html") CONFIG_FILES="$CONFIG_FILES README.authdebug.html" ;; | |
16467 | "dbobj.config") CONFIG_FILES="$CONFIG_FILES dbobj.config" ;; | |
16468 | "dbobj.h") CONFIG_FILES="$CONFIG_FILES dbobj.h" ;; | |
16469 | "authmigrate") CONFIG_FILES="$CONFIG_FILES authmigrate" ;; | |
16470 | "courier-authlib.spec") CONFIG_FILES="$CONFIG_FILES courier-authlib.spec" ;; | |
16471 | "courier-authlib.lpspec") CONFIG_FILES="$CONFIG_FILES courier-authlib.lpspec" ;; | |
16472 | "courier-authlib.sysvinit") CONFIG_FILES="$CONFIG_FILES courier-authlib.sysvinit" ;; | |
b0322a85 | 16473 | "courier-authlib.service") CONFIG_FILES="$CONFIG_FILES courier-authlib.service" ;; |
8d138742 | 16474 | "userdb-test-cram-md5.pl") CONFIG_FILES="$CONFIG_FILES userdb-test-cram-md5.pl" ;; |
d9898ee8 | 16475 | |
b0322a85 | 16476 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
8d138742 CE |
16477 | esac |
16478 | done | |
d9898ee8 | 16479 | |
d9898ee8 | 16480 | |
8d138742 CE |
16481 | # If the user did not use the arguments to specify the items to instantiate, |
16482 | # then the envvar interface is used. Set only those that are not. | |
16483 | # We use the long form for the default assignment because of an extremely | |
16484 | # bizarre bug on SunOS 4.1.3. | |
16485 | if $ac_need_defaults; then | |
16486 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
16487 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
16488 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
dd184caf | 16489 | fi |
16490 | ||
8d138742 CE |
16491 | # Have a temporary directory for convenience. Make it in the build tree |
16492 | # simply because there is no reason against having it here, and in addition, | |
16493 | # creating and moving files from /tmp can sometimes cause problems. | |
16494 | # Hook for its removal unless debugging. | |
16495 | # Note that there is a small window in which the directory will not be cleaned: | |
16496 | # after its creation but before its name has been assigned to `$tmp'. | |
16497 | $debug || | |
16498 | { | |
b0322a85 | 16499 | tmp= ac_tmp= |
8d138742 | 16500 | trap 'exit_status=$? |
b0322a85 CE |
16501 | : "${ac_tmp:=$tmp}" |
16502 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
8d138742 | 16503 | ' 0 |
b0322a85 | 16504 | trap 'as_fn_exit 1' 1 2 13 15 |
8d138742 CE |
16505 | } |
16506 | # Create a (secure) tmp directory for tmp files. | |
d9898ee8 | 16507 | |
8d138742 CE |
16508 | { |
16509 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
b0322a85 | 16510 | test -d "$tmp" |
8d138742 CE |
16511 | } || |
16512 | { | |
16513 | tmp=./conf$$-$RANDOM | |
16514 | (umask 077 && mkdir "$tmp") | |
b0322a85 CE |
16515 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
16516 | ac_tmp=$tmp | |
d9898ee8 | 16517 | |
8d138742 CE |
16518 | # Set up the scripts for CONFIG_FILES section. |
16519 | # No need to generate them if there are no CONFIG_FILES. | |
16520 | # This happens for instance with `./config.status config.h'. | |
16521 | if test -n "$CONFIG_FILES"; then | |
d9898ee8 | 16522 | |
d9898ee8 | 16523 | |
b0322a85 CE |
16524 | ac_cr=`echo X | tr X '\015'` |
16525 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
16526 | # But we know of no other shell where ac_cr would be empty at this | |
16527 | # point, so we can use a bashism as a fallback. | |
16528 | if test "x$ac_cr" = x; then | |
16529 | eval ac_cr=\$\'\\r\' | |
16530 | fi | |
8d138742 CE |
16531 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
16532 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
16533 | ac_cs_awk_cr='\\r' | |
d9898ee8 | 16534 | else |
8d138742 | 16535 | ac_cs_awk_cr=$ac_cr |
d9898ee8 | 16536 | fi |
dd184caf | 16537 | |
b0322a85 | 16538 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
8d138742 | 16539 | _ACEOF |
d9898ee8 | 16540 | |
d9898ee8 | 16541 | |
8d138742 CE |
16542 | { |
16543 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
16544 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
16545 | echo "_ACEOF" | |
16546 | } >conf$$subs.sh || | |
b0322a85 CE |
16547 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
16548 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
8d138742 CE |
16549 | ac_delim='%!_!# ' |
16550 | for ac_last_try in false false false false false :; do | |
16551 | . ./conf$$subs.sh || | |
b0322a85 | 16552 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
8d138742 CE |
16553 | |
16554 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
16555 | if test $ac_delim_n = $ac_delim_num; then | |
16556 | break | |
16557 | elif $ac_last_try; then | |
b0322a85 | 16558 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
8d138742 CE |
16559 | else |
16560 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16561 | fi | |
16562 | done | |
16563 | rm -f conf$$subs.sh | |
16564 | ||
16565 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b0322a85 | 16566 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
8d138742 CE |
16567 | _ACEOF |
16568 | sed -n ' | |
16569 | h | |
16570 | s/^/S["/; s/!.*/"]=/ | |
16571 | p | |
16572 | g | |
16573 | s/^[^!]*!// | |
16574 | :repl | |
16575 | t repl | |
16576 | s/'"$ac_delim"'$// | |
16577 | t delim | |
16578 | :nl | |
16579 | h | |
b0322a85 | 16580 | s/\(.\{148\}\)..*/\1/ |
8d138742 CE |
16581 | t more1 |
16582 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
16583 | p | |
16584 | n | |
16585 | b repl | |
16586 | :more1 | |
16587 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16588 | p | |
16589 | g | |
16590 | s/.\{148\}// | |
16591 | t nl | |
16592 | :delim | |
16593 | h | |
b0322a85 | 16594 | s/\(.\{148\}\)..*/\1/ |
8d138742 CE |
16595 | t more2 |
16596 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
16597 | p | |
16598 | b | |
16599 | :more2 | |
16600 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16601 | p | |
16602 | g | |
16603 | s/.\{148\}// | |
16604 | t delim | |
16605 | ' <conf$$subs.awk | sed ' | |
16606 | /^[^""]/{ | |
16607 | N | |
16608 | s/\n// | |
16609 | } | |
16610 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
16611 | rm -f conf$$subs.awk | |
16612 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16613 | _ACAWK | |
b0322a85 | 16614 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
8d138742 CE |
16615 | for (key in S) S_is_set[key] = 1 |
16616 | FS = "\a" | |
16617 | ||
16618 | } | |
16619 | { | |
16620 | line = $ 0 | |
16621 | nfields = split(line, field, "@") | |
16622 | substed = 0 | |
16623 | len = length(field[1]) | |
16624 | for (i = 2; i < nfields; i++) { | |
16625 | key = field[i] | |
16626 | keylen = length(key) | |
16627 | if (S_is_set[key]) { | |
16628 | value = S[key] | |
16629 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
16630 | len += length(value) + length(field[++i]) | |
16631 | substed = 1 | |
16632 | } else | |
16633 | len += 1 + keylen | |
16634 | } | |
16635 | ||
16636 | print line | |
16637 | } | |
d9898ee8 | 16638 | |
8d138742 CE |
16639 | _ACAWK |
16640 | _ACEOF | |
16641 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16642 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
16643 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
d9898ee8 | 16644 | else |
8d138742 | 16645 | cat |
b0322a85 CE |
16646 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
16647 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
d9898ee8 | 16648 | _ACEOF |
16649 | ||
b0322a85 CE |
16650 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
16651 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
8d138742 CE |
16652 | # trailing colons and then remove the whole line if VPATH becomes empty |
16653 | # (actually we leave an empty line to preserve line numbers). | |
16654 | if test "x$srcdir" = x.; then | |
b0322a85 CE |
16655 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
16656 | h | |
16657 | s/// | |
16658 | s/^/:/ | |
16659 | s/[ ]*$/:/ | |
16660 | s/:\$(srcdir):/:/g | |
16661 | s/:\${srcdir}:/:/g | |
16662 | s/:@srcdir@:/:/g | |
16663 | s/^:*// | |
8d138742 | 16664 | s/:*$// |
b0322a85 CE |
16665 | x |
16666 | s/\(=[ ]*\).*/\1/ | |
16667 | G | |
16668 | s/\n// | |
8d138742 CE |
16669 | s/^[^=]*=[ ]*$// |
16670 | }' | |
d9898ee8 | 16671 | fi |
16672 | ||
8d138742 CE |
16673 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16674 | fi # test -n "$CONFIG_FILES" | |
d9898ee8 | 16675 | |
8d138742 CE |
16676 | # Set up the scripts for CONFIG_HEADERS section. |
16677 | # No need to generate them if there are no CONFIG_HEADERS. | |
16678 | # This happens for instance with `./config.status Makefile'. | |
16679 | if test -n "$CONFIG_HEADERS"; then | |
b0322a85 | 16680 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
8d138742 CE |
16681 | BEGIN { |
16682 | _ACEOF | |
d9898ee8 | 16683 | |
8d138742 CE |
16684 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
16685 | # here-document in config.status, that substitutes the proper values into | |
16686 | # config.h.in to produce config.h. | |
d9898ee8 | 16687 | |
8d138742 CE |
16688 | # Create a delimiter string that does not exist in confdefs.h, to ease |
16689 | # handling of long lines. | |
16690 | ac_delim='%!_!# ' | |
16691 | for ac_last_try in false false :; do | |
b0322a85 CE |
16692 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
16693 | if test -z "$ac_tt"; then | |
8d138742 CE |
16694 | break |
16695 | elif $ac_last_try; then | |
b0322a85 | 16696 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
8d138742 CE |
16697 | else |
16698 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16699 | fi | |
16700 | done | |
d9898ee8 | 16701 | |
8d138742 CE |
16702 | # For the awk script, D is an array of macro values keyed by name, |
16703 | # likewise P contains macro parameters if any. Preserve backslash | |
16704 | # newline sequences. | |
d9898ee8 | 16705 | |
8d138742 CE |
16706 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
16707 | sed -n ' | |
16708 | s/.\{148\}/&'"$ac_delim"'/g | |
16709 | t rset | |
16710 | :rset | |
16711 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
16712 | t def | |
16713 | d | |
16714 | :def | |
16715 | s/\\$// | |
16716 | t bsnl | |
16717 | s/["\\]/\\&/g | |
16718 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16719 | D["\1"]=" \3"/p | |
16720 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
16721 | d | |
16722 | :bsnl | |
16723 | s/["\\]/\\&/g | |
16724 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16725 | D["\1"]=" \3\\\\\\n"\\/p | |
16726 | t cont | |
16727 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
16728 | t cont | |
16729 | d | |
16730 | :cont | |
16731 | n | |
16732 | s/.\{148\}/&'"$ac_delim"'/g | |
16733 | t clear | |
16734 | :clear | |
16735 | s/\\$// | |
16736 | t bsnlc | |
16737 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
16738 | d | |
16739 | :bsnlc | |
16740 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
16741 | b cont | |
16742 | ' <confdefs.h | sed ' | |
16743 | s/'"$ac_delim"'/"\\\ | |
16744 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
16745 | ||
16746 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16747 | for (key in D) D_is_set[key] = 1 | |
16748 | FS = "\a" | |
16749 | } | |
16750 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
16751 | line = \$ 0 | |
16752 | split(line, arg, " ") | |
16753 | if (arg[1] == "#") { | |
16754 | defundef = arg[2] | |
16755 | mac1 = arg[3] | |
16756 | } else { | |
16757 | defundef = substr(arg[1], 2) | |
16758 | mac1 = arg[2] | |
16759 | } | |
16760 | split(mac1, mac2, "(") #) | |
16761 | macro = mac2[1] | |
16762 | prefix = substr(line, 1, index(line, defundef) - 1) | |
16763 | if (D_is_set[macro]) { | |
16764 | # Preserve the white space surrounding the "#". | |
16765 | print prefix "define", macro P[macro] D[macro] | |
16766 | next | |
16767 | } else { | |
16768 | # Replace #undef with comments. This is necessary, for example, | |
16769 | # in the case of _POSIX_SOURCE, which is predefined and required | |
16770 | # on some systems where configure will not decide to define it. | |
16771 | if (defundef == "undef") { | |
16772 | print "/*", prefix defundef, macro, "*/" | |
16773 | next | |
16774 | } | |
16775 | } | |
16776 | } | |
16777 | { print } | |
16778 | _ACAWK | |
16779 | _ACEOF | |
16780 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
b0322a85 | 16781 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
8d138742 | 16782 | fi # test -n "$CONFIG_HEADERS" |
d9898ee8 | 16783 | |
16784 | ||
8d138742 CE |
16785 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
16786 | shift | |
16787 | for ac_tag | |
16788 | do | |
16789 | case $ac_tag in | |
16790 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
16791 | esac | |
16792 | case $ac_mode$ac_tag in | |
16793 | :[FHL]*:*);; | |
b0322a85 | 16794 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
8d138742 CE |
16795 | :[FH]-) ac_tag=-:-;; |
16796 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
16797 | esac | |
16798 | ac_save_IFS=$IFS | |
16799 | IFS=: | |
16800 | set x $ac_tag | |
16801 | IFS=$ac_save_IFS | |
16802 | shift | |
16803 | ac_file=$1 | |
16804 | shift | |
d9898ee8 | 16805 | |
8d138742 CE |
16806 | case $ac_mode in |
16807 | :L) ac_source=$1;; | |
16808 | :[FH]) | |
16809 | ac_file_inputs= | |
16810 | for ac_f | |
16811 | do | |
16812 | case $ac_f in | |
b0322a85 | 16813 | -) ac_f="$ac_tmp/stdin";; |
8d138742 CE |
16814 | *) # Look for the file first in the build tree, then in the source tree |
16815 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
16816 | # because $ac_f cannot contain `:'. | |
16817 | test -f "$ac_f" || | |
16818 | case $ac_f in | |
16819 | [\\/$]*) false;; | |
16820 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
16821 | esac || | |
b0322a85 | 16822 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
8d138742 CE |
16823 | esac |
16824 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
b0322a85 | 16825 | as_fn_append ac_file_inputs " '$ac_f'" |
8d138742 | 16826 | done |
d9898ee8 | 16827 | |
8d138742 CE |
16828 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
16829 | # use $as_me), people would be surprised to read: | |
16830 | # /* config.h. Generated by config.status. */ | |
16831 | configure_input='Generated from '` | |
16832 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
16833 | `' by configure.' | |
16834 | if test x"$ac_file" != x-; then | |
16835 | configure_input="$ac_file. $configure_input" | |
b0322a85 | 16836 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
8d138742 CE |
16837 | $as_echo "$as_me: creating $ac_file" >&6;} |
16838 | fi | |
16839 | # Neutralize special characters interpreted by sed in replacement strings. | |
16840 | case $configure_input in #( | |
16841 | *\&* | *\|* | *\\* ) | |
16842 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
16843 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
16844 | *) ac_sed_conf_input=$configure_input;; | |
16845 | esac | |
d9898ee8 | 16846 | |
8d138742 | 16847 | case $ac_tag in |
b0322a85 CE |
16848 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
16849 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
dd184caf | 16850 | esac |
8d138742 CE |
16851 | ;; |
16852 | esac | |
dd184caf | 16853 | |
8d138742 CE |
16854 | ac_dir=`$as_dirname -- "$ac_file" || |
16855 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16856 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
16857 | X"$ac_file" : 'X\(//\)$' \| \ | |
16858 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
16859 | $as_echo X"$ac_file" | | |
16860 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16861 | s//\1/ | |
16862 | q | |
16863 | } | |
16864 | /^X\(\/\/\)[^/].*/{ | |
16865 | s//\1/ | |
16866 | q | |
16867 | } | |
16868 | /^X\(\/\/\)$/{ | |
16869 | s//\1/ | |
16870 | q | |
16871 | } | |
16872 | /^X\(\/\).*/{ | |
16873 | s//\1/ | |
16874 | q | |
16875 | } | |
16876 | s/.*/./; q'` | |
b0322a85 | 16877 | as_dir="$ac_dir"; as_fn_mkdir_p |
8d138742 CE |
16878 | ac_builddir=. |
16879 | ||
16880 | case "$ac_dir" in | |
16881 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16882 | *) | |
16883 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
16884 | # A ".." for each directory in $ac_dir_suffix. | |
16885 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
16886 | case $ac_top_builddir_sub in | |
16887 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16888 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
16889 | esac ;; | |
16890 | esac | |
16891 | ac_abs_top_builddir=$ac_pwd | |
16892 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
16893 | # for backward compatibility: | |
16894 | ac_top_builddir=$ac_top_build_prefix | |
16895 | ||
16896 | case $srcdir in | |
16897 | .) # We are building in place. | |
16898 | ac_srcdir=. | |
16899 | ac_top_srcdir=$ac_top_builddir_sub | |
16900 | ac_abs_top_srcdir=$ac_pwd ;; | |
16901 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
16902 | ac_srcdir=$srcdir$ac_dir_suffix; | |
16903 | ac_top_srcdir=$srcdir | |
16904 | ac_abs_top_srcdir=$srcdir ;; | |
16905 | *) # Relative name. | |
16906 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
16907 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
16908 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
16909 | esac | |
16910 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
d9898ee8 | 16911 | |
d9898ee8 | 16912 | |
8d138742 CE |
16913 | case $ac_mode in |
16914 | :F) | |
16915 | # | |
16916 | # CONFIG_FILE | |
16917 | # | |
d9898ee8 | 16918 | |
8d138742 CE |
16919 | case $INSTALL in |
16920 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
16921 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
16922 | esac | |
16923 | ac_MKDIR_P=$MKDIR_P | |
16924 | case $MKDIR_P in | |
16925 | [\\/$]* | ?:[\\/]* ) ;; | |
16926 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
16927 | esac | |
16928 | _ACEOF | |
d9898ee8 | 16929 | |
8d138742 CE |
16930 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16931 | # If the template does not know about datarootdir, expand it. | |
16932 | # FIXME: This hack should be removed a few years after 2.60. | |
16933 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8d138742 CE |
16934 | ac_sed_dataroot=' |
16935 | /datarootdir/ { | |
16936 | p | |
16937 | q | |
16938 | } | |
16939 | /@datadir@/p | |
16940 | /@docdir@/p | |
16941 | /@infodir@/p | |
16942 | /@localedir@/p | |
b0322a85 | 16943 | /@mandir@/p' |
8d138742 CE |
16944 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
16945 | *datarootdir*) ac_datarootdir_seen=yes;; | |
16946 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
b0322a85 | 16947 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
8d138742 CE |
16948 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
16949 | _ACEOF | |
16950 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16951 | ac_datarootdir_hack=' | |
16952 | s&@datadir@&$datadir&g | |
16953 | s&@docdir@&$docdir&g | |
16954 | s&@infodir@&$infodir&g | |
16955 | s&@localedir@&$localedir&g | |
16956 | s&@mandir@&$mandir&g | |
b0322a85 | 16957 | s&\\\${datarootdir}&$datarootdir&g' ;; |
8d138742 CE |
16958 | esac |
16959 | _ACEOF | |
d9898ee8 | 16960 | |
8d138742 CE |
16961 | # Neutralize VPATH when `$srcdir' = `.'. |
16962 | # Shell code in configure.ac might set extrasub. | |
16963 | # FIXME: do we really want to maintain this feature? | |
16964 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16965 | ac_sed_extra="$ac_vpsub | |
16966 | $extrasub | |
16967 | _ACEOF | |
16968 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16969 | :t | |
16970 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
16971 | s|@configure_input@|$ac_sed_conf_input|;t t | |
16972 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
16973 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
16974 | s&@srcdir@&$ac_srcdir&;t t | |
16975 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16976 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16977 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16978 | s&@builddir@&$ac_builddir&;t t | |
16979 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16980 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16981 | s&@INSTALL@&$ac_INSTALL&;t t | |
16982 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
16983 | $ac_datarootdir_hack | |
16984 | " | |
b0322a85 CE |
16985 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
16986 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8d138742 CE |
16987 | |
16988 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
b0322a85 CE |
16989 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
16990 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
16991 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
16992 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
16993 | which seems to be undefined. Please make sure it is defined" >&5 | |
8d138742 | 16994 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b0322a85 | 16995 | which seems to be undefined. Please make sure it is defined" >&2;} |
8d138742 | 16996 | |
b0322a85 | 16997 | rm -f "$ac_tmp/stdin" |
8d138742 | 16998 | case $ac_file in |
b0322a85 CE |
16999 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
17000 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
8d138742 | 17001 | esac \ |
b0322a85 | 17002 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
8d138742 CE |
17003 | ;; |
17004 | :H) | |
17005 | # | |
17006 | # CONFIG_HEADER | |
17007 | # | |
17008 | if test x"$ac_file" != x-; then | |
17009 | { | |
17010 | $as_echo "/* $configure_input */" \ | |
b0322a85 CE |
17011 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
17012 | } >"$ac_tmp/config.h" \ | |
17013 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
17014 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
17015 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
8d138742 CE |
17016 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
17017 | else | |
17018 | rm -f "$ac_file" | |
b0322a85 CE |
17019 | mv "$ac_tmp/config.h" "$ac_file" \ |
17020 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8d138742 CE |
17021 | fi |
17022 | else | |
17023 | $as_echo "/* $configure_input */" \ | |
b0322a85 CE |
17024 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
17025 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
8d138742 CE |
17026 | fi |
17027 | # Compute "$ac_file"'s index in $config_headers. | |
17028 | _am_arg="$ac_file" | |
17029 | _am_stamp_count=1 | |
17030 | for _am_header in $config_headers :; do | |
17031 | case $_am_header in | |
17032 | $_am_arg | $_am_arg:* ) | |
17033 | break ;; | |
17034 | * ) | |
17035 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
17036 | esac | |
17037 | done | |
17038 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
17039 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17040 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
17041 | X"$_am_arg" : 'X\(//\)$' \| \ | |
17042 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
17043 | $as_echo X"$_am_arg" | | |
17044 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17045 | s//\1/ | |
17046 | q | |
17047 | } | |
17048 | /^X\(\/\/\)[^/].*/{ | |
17049 | s//\1/ | |
17050 | q | |
17051 | } | |
17052 | /^X\(\/\/\)$/{ | |
17053 | s//\1/ | |
17054 | q | |
17055 | } | |
17056 | /^X\(\/\).*/{ | |
17057 | s//\1/ | |
17058 | q | |
17059 | } | |
17060 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
17061 | ;; | |
17062 | ||
b0322a85 | 17063 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
8d138742 CE |
17064 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
17065 | ;; | |
17066 | esac | |
17067 | ||
17068 | ||
17069 | case $ac_file$ac_mode in | |
17070 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
b0322a85 | 17071 | # Older Autoconf quotes --file arguments for eval, but not when files |
8d138742 CE |
17072 | # are listed without --file. Let's play safe and only enable the eval |
17073 | # if we detect the quoting. | |
17074 | case $CONFIG_FILES in | |
17075 | *\'*) eval set x "$CONFIG_FILES" ;; | |
17076 | *) set x $CONFIG_FILES ;; | |
17077 | esac | |
17078 | shift | |
17079 | for mf | |
17080 | do | |
17081 | # Strip MF so we end up with the name of the file. | |
17082 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
17083 | # Check whether this is an Automake generated Makefile or not. | |
b0322a85 | 17084 | # We used to match only the files named 'Makefile.in', but |
8d138742 CE |
17085 | # some people rename them; so instead we look at the file content. |
17086 | # Grep'ing the first line is not enough: some people post-process | |
17087 | # each Makefile.in and add a new line on top of each file to say so. | |
17088 | # Grep'ing the whole file is not good either: AIX grep has a line | |
17089 | # limit of 2048, but all sed's we know have understand at least 4000. | |
17090 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
17091 | dirpart=`$as_dirname -- "$mf" || | |
17092 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17093 | X"$mf" : 'X\(//\)[^/]' \| \ | |
17094 | X"$mf" : 'X\(//\)$' \| \ | |
17095 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
17096 | $as_echo X"$mf" | | |
17097 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17098 | s//\1/ | |
17099 | q | |
17100 | } | |
17101 | /^X\(\/\/\)[^/].*/{ | |
17102 | s//\1/ | |
17103 | q | |
17104 | } | |
17105 | /^X\(\/\/\)$/{ | |
17106 | s//\1/ | |
17107 | q | |
17108 | } | |
17109 | /^X\(\/\).*/{ | |
17110 | s//\1/ | |
17111 | q | |
17112 | } | |
17113 | s/.*/./; q'` | |
17114 | else | |
17115 | continue | |
17116 | fi | |
17117 | # Extract the definition of DEPDIR, am__include, and am__quote | |
b0322a85 | 17118 | # from the Makefile without running 'make'. |
8d138742 CE |
17119 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
17120 | test -z "$DEPDIR" && continue | |
17121 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
b0322a85 | 17122 | test -z "$am__include" && continue |
8d138742 | 17123 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
8d138742 CE |
17124 | # Find all dependency output files, they are included files with |
17125 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
17126 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
17127 | # expansion. | |
17128 | for file in `sed -n " | |
17129 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
b0322a85 | 17130 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
8d138742 CE |
17131 | # Make sure the directory exists. |
17132 | test -f "$dirpart/$file" && continue | |
17133 | fdir=`$as_dirname -- "$file" || | |
17134 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17135 | X"$file" : 'X\(//\)[^/]' \| \ | |
17136 | X"$file" : 'X\(//\)$' \| \ | |
17137 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
17138 | $as_echo X"$file" | | |
17139 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17140 | s//\1/ | |
17141 | q | |
17142 | } | |
17143 | /^X\(\/\/\)[^/].*/{ | |
17144 | s//\1/ | |
17145 | q | |
17146 | } | |
17147 | /^X\(\/\/\)$/{ | |
17148 | s//\1/ | |
17149 | q | |
17150 | } | |
17151 | /^X\(\/\).*/{ | |
17152 | s//\1/ | |
17153 | q | |
17154 | } | |
17155 | s/.*/./; q'` | |
b0322a85 | 17156 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
8d138742 CE |
17157 | # echo "creating $dirpart/$file" |
17158 | echo '# dummy' > "$dirpart/$file" | |
17159 | done | |
17160 | done | |
17161 | } | |
17162 | ;; | |
17163 | "libtool":C) | |
d9898ee8 | 17164 | |
8d138742 CE |
17165 | # See if we are running on zsh, and set the options which allow our |
17166 | # commands through without removal of \ escapes. | |
17167 | if test -n "${ZSH_VERSION+set}" ; then | |
17168 | setopt NO_GLOB_SUBST | |
17169 | fi | |
17170 | ||
17171 | cfgfile="${ofile}T" | |
17172 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
17173 | $RM "$cfgfile" | |
17174 | ||
17175 | cat <<_LT_EOF >> "$cfgfile" | |
d9898ee8 | 17176 | #! $SHELL |
d9898ee8 | 17177 | |
8d138742 CE |
17178 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
17179 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
17180 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
17181 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
17182 | # | |
17183 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
b0322a85 CE |
17184 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
17185 | # Foundation, Inc. | |
8d138742 CE |
17186 | # Written by Gordon Matzigkeit, 1996 |
17187 | # | |
17188 | # This file is part of GNU Libtool. | |
17189 | # | |
17190 | # GNU Libtool is free software; you can redistribute it and/or | |
17191 | # modify it under the terms of the GNU General Public License as | |
17192 | # published by the Free Software Foundation; either version 2 of | |
17193 | # the License, or (at your option) any later version. | |
17194 | # | |
17195 | # As a special exception to the GNU General Public License, | |
17196 | # if you distribute this file as part of a program or library that | |
17197 | # is built using GNU Libtool, you may include this file under the | |
17198 | # same distribution terms that you use for the rest of that program. | |
17199 | # | |
17200 | # GNU Libtool is distributed in the hope that it will be useful, | |
17201 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17202 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17203 | # GNU General Public License for more details. | |
17204 | # | |
17205 | # You should have received a copy of the GNU General Public License | |
17206 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
17207 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
17208 | # obtained by writing to the Free Software Foundation, Inc., | |
17209 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
d9898ee8 | 17210 | |
d9898ee8 | 17211 | |
8d138742 CE |
17212 | # The names of the tagged configurations supported by this script. |
17213 | available_tags="" | |
dd184caf | 17214 | |
8d138742 | 17215 | # ### BEGIN LIBTOOL CONFIG |
dd184caf | 17216 | |
8d138742 CE |
17217 | # Which release of libtool.m4 was used? |
17218 | macro_version=$macro_version | |
17219 | macro_revision=$macro_revision | |
dd184caf | 17220 | |
8d138742 CE |
17221 | # Whether or not to build shared libraries. |
17222 | build_libtool_libs=$enable_shared | |
dd184caf | 17223 | |
8d138742 CE |
17224 | # Whether or not to build static libraries. |
17225 | build_old_libs=$enable_static | |
dd184caf | 17226 | |
8d138742 CE |
17227 | # What type of objects to build. |
17228 | pic_mode=$pic_mode | |
dd184caf | 17229 | |
8d138742 CE |
17230 | # Whether or not to optimize for fast installation. |
17231 | fast_install=$enable_fast_install | |
d9898ee8 | 17232 | |
b0322a85 CE |
17233 | # Shell to use when invoking shell scripts. |
17234 | SHELL=$lt_SHELL | |
17235 | ||
17236 | # An echo program that protects backslashes. | |
17237 | ECHO=$lt_ECHO | |
17238 | ||
17239 | # The PATH separator for the build system. | |
17240 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
17241 | ||
8d138742 CE |
17242 | # The host system. |
17243 | host_alias=$host_alias | |
17244 | host=$host | |
17245 | host_os=$host_os | |
d9898ee8 | 17246 | |
8d138742 CE |
17247 | # The build system. |
17248 | build_alias=$build_alias | |
17249 | build=$build | |
17250 | build_os=$build_os | |
d9898ee8 | 17251 | |
8d138742 CE |
17252 | # A sed program that does not truncate output. |
17253 | SED=$lt_SED | |
dd184caf | 17254 | |
8d138742 CE |
17255 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
17256 | Xsed="\$SED -e 1s/^X//" | |
dd184caf | 17257 | |
8d138742 CE |
17258 | # A grep program that handles long lines. |
17259 | GREP=$lt_GREP | |
dd184caf | 17260 | |
8d138742 CE |
17261 | # An ERE matcher. |
17262 | EGREP=$lt_EGREP | |
d9898ee8 | 17263 | |
8d138742 CE |
17264 | # A literal string matcher. |
17265 | FGREP=$lt_FGREP | |
d9898ee8 | 17266 | |
8d138742 CE |
17267 | # A BSD- or MS-compatible name lister. |
17268 | NM=$lt_NM | |
d9898ee8 | 17269 | |
8d138742 CE |
17270 | # Whether we need soft or hard links. |
17271 | LN_S=$lt_LN_S | |
d9898ee8 | 17272 | |
8d138742 CE |
17273 | # What is the maximum length of a command? |
17274 | max_cmd_len=$max_cmd_len | |
d9898ee8 | 17275 | |
8d138742 CE |
17276 | # Object file suffix (normally "o"). |
17277 | objext=$ac_objext | |
d9898ee8 | 17278 | |
8d138742 CE |
17279 | # Executable file suffix (normally ""). |
17280 | exeext=$exeext | |
d9898ee8 | 17281 | |
8d138742 CE |
17282 | # whether the shell understands "unset". |
17283 | lt_unset=$lt_unset | |
d9898ee8 | 17284 | |
8d138742 CE |
17285 | # turn spaces into newlines. |
17286 | SP2NL=$lt_lt_SP2NL | |
d9898ee8 | 17287 | |
8d138742 CE |
17288 | # turn newlines into spaces. |
17289 | NL2SP=$lt_lt_NL2SP | |
d9898ee8 | 17290 | |
b0322a85 CE |
17291 | # convert \$build file names to \$host format. |
17292 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
17293 | ||
17294 | # convert \$build files to toolchain format. | |
17295 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
d9898ee8 | 17296 | |
8d138742 CE |
17297 | # An object symbol dumper. |
17298 | OBJDUMP=$lt_OBJDUMP | |
d9898ee8 | 17299 | |
8d138742 CE |
17300 | # Method to check whether dependent libraries are shared objects. |
17301 | deplibs_check_method=$lt_deplibs_check_method | |
d9898ee8 | 17302 | |
b0322a85 | 17303 | # Command to use when deplibs_check_method = "file_magic". |
8d138742 | 17304 | file_magic_cmd=$lt_file_magic_cmd |
dd184caf | 17305 | |
b0322a85 CE |
17306 | # How to find potential files when deplibs_check_method = "file_magic". |
17307 | file_magic_glob=$lt_file_magic_glob | |
17308 | ||
17309 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
17310 | want_nocaseglob=$lt_want_nocaseglob | |
17311 | ||
17312 | # DLL creation program. | |
17313 | DLLTOOL=$lt_DLLTOOL | |
17314 | ||
17315 | # Command to associate shared and link libraries. | |
17316 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
17317 | ||
8d138742 CE |
17318 | # The archiver. |
17319 | AR=$lt_AR | |
b0322a85 CE |
17320 | |
17321 | # Flags to create an archive. | |
8d138742 | 17322 | AR_FLAGS=$lt_AR_FLAGS |
d9898ee8 | 17323 | |
b0322a85 CE |
17324 | # How to feed a file listing to the archiver. |
17325 | archiver_list_spec=$lt_archiver_list_spec | |
17326 | ||
8d138742 CE |
17327 | # A symbol stripping program. |
17328 | STRIP=$lt_STRIP | |
17329 | ||
17330 | # Commands used to install an old-style archive. | |
17331 | RANLIB=$lt_RANLIB | |
17332 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
17333 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
17334 | ||
b0322a85 CE |
17335 | # Whether to use a lock for old archive extraction. |
17336 | lock_old_archive_extraction=$lock_old_archive_extraction | |
17337 | ||
8d138742 CE |
17338 | # A C compiler. |
17339 | LTCC=$lt_CC | |
17340 | ||
17341 | # LTCC compiler flags. | |
17342 | LTCFLAGS=$lt_CFLAGS | |
17343 | ||
17344 | # Take the output of nm and produce a listing of raw symbols and C names. | |
17345 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
17346 | ||
17347 | # Transform the output of nm in a proper C declaration. | |
17348 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
17349 | ||
17350 | # Transform the output of nm in a C name address pair. | |
17351 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
17352 | ||
17353 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
17354 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
17355 | ||
b0322a85 CE |
17356 | # Specify filename containing input files for \$NM. |
17357 | nm_file_list_spec=$lt_nm_file_list_spec | |
8d138742 | 17358 | |
b0322a85 CE |
17359 | # The root where to search for dependent libraries,and in which our libraries should be installed. |
17360 | lt_sysroot=$lt_sysroot | |
8d138742 | 17361 | |
b0322a85 CE |
17362 | # The name of the directory that contains temporary libtool files. |
17363 | objdir=$objdir | |
8d138742 CE |
17364 | |
17365 | # Used to examine libraries when file_magic_cmd begins with "file". | |
17366 | MAGIC_CMD=$MAGIC_CMD | |
17367 | ||
17368 | # Must we lock files when doing compilation? | |
17369 | need_locks=$lt_need_locks | |
d9898ee8 | 17370 | |
b0322a85 CE |
17371 | # Manifest tool. |
17372 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
17373 | ||
8d138742 CE |
17374 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
17375 | DSYMUTIL=$lt_DSYMUTIL | |
d9898ee8 | 17376 | |
8d138742 CE |
17377 | # Tool to change global to local symbols on Mac OS X. |
17378 | NMEDIT=$lt_NMEDIT | |
d9898ee8 | 17379 | |
8d138742 CE |
17380 | # Tool to manipulate fat objects and archives on Mac OS X. |
17381 | LIPO=$lt_LIPO | |
d9898ee8 | 17382 | |
8d138742 CE |
17383 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
17384 | OTOOL=$lt_OTOOL | |
d9898ee8 | 17385 | |
8d138742 CE |
17386 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
17387 | OTOOL64=$lt_OTOOL64 | |
d9898ee8 | 17388 | |
8d138742 CE |
17389 | # Old archive suffix (normally "a"). |
17390 | libext=$libext | |
d9898ee8 | 17391 | |
8d138742 CE |
17392 | # Shared library suffix (normally ".so"). |
17393 | shrext_cmds=$lt_shrext_cmds | |
d9898ee8 | 17394 | |
8d138742 CE |
17395 | # The commands to extract the exported symbol list from a shared archive. |
17396 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
d9898ee8 | 17397 | |
8d138742 CE |
17398 | # Variables whose values should be saved in libtool wrapper scripts and |
17399 | # restored at link time. | |
17400 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
d9898ee8 | 17401 | |
8d138742 CE |
17402 | # Do we need the "lib" prefix for modules? |
17403 | need_lib_prefix=$need_lib_prefix | |
dd184caf | 17404 | |
8d138742 CE |
17405 | # Do we need a version for libraries? |
17406 | need_version=$need_version | |
d9898ee8 | 17407 | |
8d138742 CE |
17408 | # Library versioning type. |
17409 | version_type=$version_type | |
d9898ee8 | 17410 | |
8d138742 CE |
17411 | # Shared library runtime path variable. |
17412 | runpath_var=$runpath_var | |
d9898ee8 | 17413 | |
8d138742 CE |
17414 | # Shared library path variable. |
17415 | shlibpath_var=$shlibpath_var | |
d9898ee8 | 17416 | |
8d138742 CE |
17417 | # Is shlibpath searched before the hard-coded library search path? |
17418 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
d9898ee8 | 17419 | |
8d138742 CE |
17420 | # Format of library name prefix. |
17421 | libname_spec=$lt_libname_spec | |
d9898ee8 | 17422 | |
8d138742 CE |
17423 | # List of archive names. First name is the real one, the rest are links. |
17424 | # The last name is the one that the linker finds with -lNAME | |
17425 | library_names_spec=$lt_library_names_spec | |
d9898ee8 | 17426 | |
8d138742 CE |
17427 | # The coded name of the library, if different from the real name. |
17428 | soname_spec=$lt_soname_spec | |
d9898ee8 | 17429 | |
b0322a85 CE |
17430 | # Permission mode override for installation of shared libraries. |
17431 | install_override_mode=$lt_install_override_mode | |
17432 | ||
8d138742 CE |
17433 | # Command to use after installation of a shared archive. |
17434 | postinstall_cmds=$lt_postinstall_cmds | |
d9898ee8 | 17435 | |
8d138742 CE |
17436 | # Command to use after uninstallation of a shared archive. |
17437 | postuninstall_cmds=$lt_postuninstall_cmds | |
d9898ee8 | 17438 | |
8d138742 CE |
17439 | # Commands used to finish a libtool library installation in a directory. |
17440 | finish_cmds=$lt_finish_cmds | |
d9898ee8 | 17441 | |
8d138742 CE |
17442 | # As "finish_cmds", except a single script fragment to be evaled but |
17443 | # not shown. | |
17444 | finish_eval=$lt_finish_eval | |
dd184caf | 17445 | |
8d138742 CE |
17446 | # Whether we should hardcode library paths into libraries. |
17447 | hardcode_into_libs=$hardcode_into_libs | |
d9898ee8 | 17448 | |
8d138742 CE |
17449 | # Compile-time system search path for libraries. |
17450 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
d9898ee8 | 17451 | |
8d138742 CE |
17452 | # Run-time system search path for libraries. |
17453 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
d9898ee8 | 17454 | |
8d138742 CE |
17455 | # Whether dlopen is supported. |
17456 | dlopen_support=$enable_dlopen | |
d9898ee8 | 17457 | |
8d138742 CE |
17458 | # Whether dlopen of programs is supported. |
17459 | dlopen_self=$enable_dlopen_self | |
d9898ee8 | 17460 | |
8d138742 CE |
17461 | # Whether dlopen of statically linked programs is supported. |
17462 | dlopen_self_static=$enable_dlopen_self_static | |
d9898ee8 | 17463 | |
8d138742 CE |
17464 | # Commands to strip libraries. |
17465 | old_striplib=$lt_old_striplib | |
17466 | striplib=$lt_striplib | |
d9898ee8 | 17467 | |
d9898ee8 | 17468 | |
8d138742 CE |
17469 | # The linker used to build libraries. |
17470 | LD=$lt_LD | |
d9898ee8 | 17471 | |
b0322a85 CE |
17472 | # How to create reloadable object files. |
17473 | reload_flag=$lt_reload_flag | |
17474 | reload_cmds=$lt_reload_cmds | |
17475 | ||
8d138742 CE |
17476 | # Commands used to build an old-style archive. |
17477 | old_archive_cmds=$lt_old_archive_cmds | |
d9898ee8 | 17478 | |
8d138742 CE |
17479 | # A language specific compiler. |
17480 | CC=$lt_compiler | |
d9898ee8 | 17481 | |
8d138742 CE |
17482 | # Is the compiler the GNU compiler? |
17483 | with_gcc=$GCC | |
d9898ee8 | 17484 | |
8d138742 CE |
17485 | # Compiler flag to turn off builtin functions. |
17486 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dd184caf | 17487 | |
8d138742 CE |
17488 | # Additional compiler flags for building library objects. |
17489 | pic_flag=$lt_lt_prog_compiler_pic | |
d9898ee8 | 17490 | |
b0322a85 CE |
17491 | # How to pass a linker flag through the compiler. |
17492 | wl=$lt_lt_prog_compiler_wl | |
17493 | ||
8d138742 CE |
17494 | # Compiler flag to prevent dynamic linking. |
17495 | link_static_flag=$lt_lt_prog_compiler_static | |
dd184caf | 17496 | |
8d138742 CE |
17497 | # Does compiler simultaneously support -c and -o options? |
17498 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
d9898ee8 | 17499 | |
8d138742 CE |
17500 | # Whether or not to add -lc for building shared libraries. |
17501 | build_libtool_need_lc=$archive_cmds_need_lc | |
17502 | ||
17503 | # Whether or not to disallow shared libs when runtime libs are static. | |
17504 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
17505 | ||
17506 | # Compiler flag to allow reflexive dlopens. | |
17507 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
17508 | ||
17509 | # Compiler flag to generate shared objects directly from archives. | |
17510 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
d9898ee8 | 17511 | |
8d138742 CE |
17512 | # Whether the compiler copes with passing no objects directly. |
17513 | compiler_needs_object=$lt_compiler_needs_object | |
d9898ee8 | 17514 | |
8d138742 CE |
17515 | # Create an old-style archive from a shared archive. |
17516 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
d9898ee8 | 17517 | |
8d138742 CE |
17518 | # Create a temporary old-style archive to link instead of a shared archive. |
17519 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
dd184caf | 17520 | |
8d138742 CE |
17521 | # Commands used to build a shared archive. |
17522 | archive_cmds=$lt_archive_cmds | |
17523 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
dd184caf | 17524 | |
8d138742 CE |
17525 | # Commands used to build a loadable module if different from building |
17526 | # a shared archive. | |
17527 | module_cmds=$lt_module_cmds | |
17528 | module_expsym_cmds=$lt_module_expsym_cmds | |
dd184caf | 17529 | |
8d138742 CE |
17530 | # Whether we are building with GNU ld or not. |
17531 | with_gnu_ld=$lt_with_gnu_ld | |
dd184caf | 17532 | |
8d138742 CE |
17533 | # Flag that allows shared libraries with undefined symbols to be built. |
17534 | allow_undefined_flag=$lt_allow_undefined_flag | |
d9898ee8 | 17535 | |
8d138742 CE |
17536 | # Flag that enforces no undefined symbols. |
17537 | no_undefined_flag=$lt_no_undefined_flag | |
dd184caf | 17538 | |
8d138742 CE |
17539 | # Flag to hardcode \$libdir into a binary during linking. |
17540 | # This must work even if \$libdir does not exist | |
17541 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
dd184caf | 17542 | |
8d138742 CE |
17543 | # Whether we need a single "-rpath" flag with a separated argument. |
17544 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
dd184caf | 17545 | |
8d138742 CE |
17546 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
17547 | # DIR into the resulting binary. | |
17548 | hardcode_direct=$hardcode_direct | |
dd184caf | 17549 | |
8d138742 CE |
17550 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
17551 | # DIR into the resulting binary and the resulting library dependency is | |
17552 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
17553 | # library is relocated. | |
17554 | hardcode_direct_absolute=$hardcode_direct_absolute | |
dd184caf | 17555 | |
8d138742 CE |
17556 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
17557 | # into the resulting binary. | |
17558 | hardcode_minus_L=$hardcode_minus_L | |
dd184caf | 17559 | |
8d138742 CE |
17560 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
17561 | # into the resulting binary. | |
17562 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
dd184caf | 17563 | |
8d138742 CE |
17564 | # Set to "yes" if building a shared library automatically hardcodes DIR |
17565 | # into the library and all subsequent libraries and executables linked | |
17566 | # against it. | |
17567 | hardcode_automatic=$hardcode_automatic | |
dd184caf | 17568 | |
8d138742 CE |
17569 | # Set to yes if linker adds runtime paths of dependent libraries |
17570 | # to runtime path list. | |
17571 | inherit_rpath=$inherit_rpath | |
dd184caf | 17572 | |
8d138742 CE |
17573 | # Whether libtool must link a program against all its dependency libraries. |
17574 | link_all_deplibs=$link_all_deplibs | |
dd184caf | 17575 | |
8d138742 CE |
17576 | # Set to "yes" if exported symbols are required. |
17577 | always_export_symbols=$always_export_symbols | |
dd184caf | 17578 | |
8d138742 CE |
17579 | # The commands to list exported symbols. |
17580 | export_symbols_cmds=$lt_export_symbols_cmds | |
d9898ee8 | 17581 | |
8d138742 CE |
17582 | # Symbols that should not be listed in the preloaded symbols. |
17583 | exclude_expsyms=$lt_exclude_expsyms | |
d9898ee8 | 17584 | |
8d138742 CE |
17585 | # Symbols that must always be exported. |
17586 | include_expsyms=$lt_include_expsyms | |
d9898ee8 | 17587 | |
8d138742 CE |
17588 | # Commands necessary for linking programs (against libraries) with templates. |
17589 | prelink_cmds=$lt_prelink_cmds | |
d9898ee8 | 17590 | |
b0322a85 CE |
17591 | # Commands necessary for finishing linking programs. |
17592 | postlink_cmds=$lt_postlink_cmds | |
17593 | ||
8d138742 CE |
17594 | # Specify filename containing input files. |
17595 | file_list_spec=$lt_file_list_spec | |
d9898ee8 | 17596 | |
8d138742 CE |
17597 | # How to hardcode a shared library path into an executable. |
17598 | hardcode_action=$hardcode_action | |
d9898ee8 | 17599 | |
8d138742 CE |
17600 | # ### END LIBTOOL CONFIG |
17601 | ||
17602 | _LT_EOF | |
17603 | ||
17604 | case $host_os in | |
17605 | aix3*) | |
17606 | cat <<\_LT_EOF >> "$cfgfile" | |
17607 | # AIX sometimes has problems with the GCC collect2 program. For some | |
17608 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
17609 | # vanish in a puff of smoke. | |
17610 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
17611 | COLLECT_NAMES= | |
17612 | export COLLECT_NAMES | |
17613 | fi | |
17614 | _LT_EOF | |
17615 | ;; | |
d9898ee8 | 17616 | esac |
8d138742 CE |
17617 | |
17618 | ||
17619 | ltmain="$ac_aux_dir/ltmain.sh" | |
17620 | ||
17621 | ||
17622 | # We use sed instead of cat because bash on DJGPP gets confused if | |
17623 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
17624 | # text mode, it properly converts lines to CR/LF. This bash problem | |
17625 | # is reportedly fixed, but why not run on old versions too? | |
b0322a85 CE |
17626 | sed '$q' "$ltmain" >> "$cfgfile" \ |
17627 | || (rm -f "$cfgfile"; exit 1) | |
17628 | ||
17629 | if test x"$xsi_shell" = xyes; then | |
17630 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | |
17631 | func_dirname ()\ | |
17632 | {\ | |
17633 | \ case ${1} in\ | |
17634 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
17635 | \ * ) func_dirname_result="${3}" ;;\ | |
17636 | \ esac\ | |
17637 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | |
17638 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17639 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17640 | test 0 -eq $? || _lt_function_replace_fail=: | |
17641 | ||
17642 | ||
17643 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ | |
17644 | func_basename ()\ | |
17645 | {\ | |
17646 | \ func_basename_result="${1##*/}"\ | |
17647 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
17648 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17649 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17650 | test 0 -eq $? || _lt_function_replace_fail=: | |
17651 | ||
17652 | ||
17653 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | |
17654 | func_dirname_and_basename ()\ | |
17655 | {\ | |
17656 | \ case ${1} in\ | |
17657 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
17658 | \ * ) func_dirname_result="${3}" ;;\ | |
17659 | \ esac\ | |
17660 | \ func_basename_result="${1##*/}"\ | |
17661 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
17662 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17663 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17664 | test 0 -eq $? || _lt_function_replace_fail=: | |
17665 | ||
17666 | ||
17667 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | |
17668 | func_stripname ()\ | |
17669 | {\ | |
17670 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | |
17671 | \ # positional parameters, so assign one to ordinary parameter first.\ | |
17672 | \ func_stripname_result=${3}\ | |
17673 | \ func_stripname_result=${func_stripname_result#"${1}"}\ | |
17674 | \ func_stripname_result=${func_stripname_result%"${2}"}\ | |
17675 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | |
17676 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17677 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17678 | test 0 -eq $? || _lt_function_replace_fail=: | |
17679 | ||
17680 | ||
17681 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | |
17682 | func_split_long_opt ()\ | |
17683 | {\ | |
17684 | \ func_split_long_opt_name=${1%%=*}\ | |
17685 | \ func_split_long_opt_arg=${1#*=}\ | |
17686 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
17687 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17688 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17689 | test 0 -eq $? || _lt_function_replace_fail=: | |
17690 | ||
17691 | ||
17692 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | |
17693 | func_split_short_opt ()\ | |
17694 | {\ | |
17695 | \ func_split_short_opt_arg=${1#??}\ | |
17696 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | |
17697 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
17698 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17699 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17700 | test 0 -eq $? || _lt_function_replace_fail=: | |
17701 | ||
17702 | ||
17703 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | |
17704 | func_lo2o ()\ | |
17705 | {\ | |
17706 | \ case ${1} in\ | |
17707 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | |
17708 | \ *) func_lo2o_result=${1} ;;\ | |
17709 | \ esac\ | |
17710 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | |
17711 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17712 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17713 | test 0 -eq $? || _lt_function_replace_fail=: | |
17714 | ||
17715 | ||
17716 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ | |
17717 | func_xform ()\ | |
17718 | {\ | |
17719 | func_xform_result=${1%.*}.lo\ | |
17720 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | |
17721 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17722 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17723 | test 0 -eq $? || _lt_function_replace_fail=: | |
17724 | ||
17725 | ||
17726 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ | |
17727 | func_arith ()\ | |
17728 | {\ | |
17729 | func_arith_result=$(( $* ))\ | |
17730 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | |
17731 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17732 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17733 | test 0 -eq $? || _lt_function_replace_fail=: | |
17734 | ||
17735 | ||
17736 | sed -e '/^func_len ()$/,/^} # func_len /c\ | |
17737 | func_len ()\ | |
17738 | {\ | |
17739 | func_len_result=${#1}\ | |
17740 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | |
17741 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17742 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17743 | test 0 -eq $? || _lt_function_replace_fail=: | |
17744 | ||
17745 | fi | |
17746 | ||
17747 | if test x"$lt_shell_append" = xyes; then | |
17748 | sed -e '/^func_append ()$/,/^} # func_append /c\ | |
17749 | func_append ()\ | |
17750 | {\ | |
17751 | eval "${1}+=\\${2}"\ | |
17752 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | |
17753 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17754 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17755 | test 0 -eq $? || _lt_function_replace_fail=: | |
17756 | ||
17757 | ||
17758 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | |
17759 | func_append_quoted ()\ | |
17760 | {\ | |
17761 | \ func_quote_for_eval "${2}"\ | |
17762 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | |
17763 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | |
17764 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17765 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17766 | test 0 -eq $? || _lt_function_replace_fail=: | |
17767 | ||
17768 | ||
17769 | # Save a `func_append' function call where possible by direct use of '+=' | |
17770 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | |
17771 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17772 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17773 | test 0 -eq $? || _lt_function_replace_fail=: | |
17774 | else | |
17775 | # Save a `func_append' function call even when '+=' is not available | |
17776 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | |
17777 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17778 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17779 | test 0 -eq $? || _lt_function_replace_fail=: | |
17780 | fi | |
17781 | ||
17782 | if test x"$_lt_function_replace_fail" = x":"; then | |
17783 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | |
17784 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | |
17785 | fi | |
17786 | ||
17787 | ||
17788 | mv -f "$cfgfile" "$ofile" || | |
8d138742 CE |
17789 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
17790 | chmod +x "$ofile" | |
17791 | ||
d9898ee8 | 17792 | ;; |
dd184caf | 17793 | |
d9898ee8 | 17794 | esac |
dd184caf | 17795 | done # for ac_tag |
d9898ee8 | 17796 | |
d9898ee8 | 17797 | |
b0322a85 | 17798 | as_fn_exit 0 |
d9898ee8 | 17799 | _ACEOF |
d9898ee8 | 17800 | ac_clean_files=$ac_clean_files_save |
17801 | ||
8d138742 | 17802 | test $ac_write_fail = 0 || |
b0322a85 | 17803 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
8d138742 | 17804 | |
d9898ee8 | 17805 | |
17806 | # configure is writing to config.log, and then calls config.status. | |
17807 | # config.status does its own redirection, appending to config.log. | |
17808 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
17809 | # by configure, so config.status won't be able to write to it; its | |
17810 | # output is simply discarded. So we exec the FD to /dev/null, | |
17811 | # effectively closing config.log, so it can be properly (re)opened and | |
17812 | # appended to by config.status. When coming back to configure, we | |
17813 | # need to make the FD available again. | |
17814 | if test "$no_create" != yes; then | |
17815 | ac_cs_success=: | |
17816 | ac_config_status_args= | |
17817 | test "$silent" = yes && | |
17818 | ac_config_status_args="$ac_config_status_args --quiet" | |
17819 | exec 5>/dev/null | |
17820 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
17821 | exec 5>>config.log | |
17822 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
17823 | # would make configure fail if this is the last instruction. | |
b0322a85 | 17824 | $ac_cs_success || as_fn_exit 1 |
d9898ee8 | 17825 | fi |
17826 | ||
17827 | # | |
17828 | # CONFIG_SUBDIRS section. | |
17829 | # | |
17830 | if test "$no_recursion" != yes; then | |
17831 | ||
8d138742 CE |
17832 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
17833 | # so they do not pile up. | |
d9898ee8 | 17834 | ac_sub_configure_args= |
17835 | ac_prev= | |
dd184caf | 17836 | eval "set x $ac_configure_args" |
17837 | shift | |
17838 | for ac_arg | |
17839 | do | |
d9898ee8 | 17840 | if test -n "$ac_prev"; then |
17841 | ac_prev= | |
17842 | continue | |
17843 | fi | |
17844 | case $ac_arg in | |
17845 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
17846 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
17847 | ac_prev=cache_file ;; | |
17848 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
17849 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
17850 | | --c=*) | |
17851 | ;; | |
17852 | --config-cache | -C) | |
17853 | ;; | |
17854 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
17855 | ac_prev=srcdir ;; | |
17856 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
17857 | ;; | |
17858 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
17859 | ac_prev=prefix ;; | |
17860 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
17861 | ;; | |
8d138742 CE |
17862 | --disable-option-checking) |
17863 | ;; | |
dd184caf | 17864 | *) |
17865 | case $ac_arg in | |
8d138742 | 17866 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
dd184caf | 17867 | esac |
b0322a85 | 17868 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; |
d9898ee8 | 17869 | esac |
17870 | done | |
17871 | ||
17872 | # Always prepend --prefix to ensure using the same prefix | |
17873 | # in subdir configurations. | |
dd184caf | 17874 | ac_arg="--prefix=$prefix" |
17875 | case $ac_arg in | |
8d138742 | 17876 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
dd184caf | 17877 | esac |
17878 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
17879 | ||
17880 | # Pass --silent | |
17881 | if test "$silent" = yes; then | |
17882 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
17883 | fi | |
d9898ee8 | 17884 | |
8d138742 CE |
17885 | # Always prepend --disable-option-checking to silence warnings, since |
17886 | # different subdirs can have different --enable and --with options. | |
17887 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
17888 | ||
d9898ee8 | 17889 | ac_popdir=`pwd` |
17890 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
17891 | ||
17892 | # Do not complain, so a configure script can configure whichever | |
17893 | # parts of a large source tree are present. | |
dd184caf | 17894 | test -d "$srcdir/$ac_dir" || continue |
17895 | ||
17896 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
b0322a85 | 17897 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 |
8d138742 | 17898 | $as_echo "$ac_msg" >&6 |
b0322a85 | 17899 | as_dir="$ac_dir"; as_fn_mkdir_p |
d9898ee8 | 17900 | ac_builddir=. |
17901 | ||
dd184caf | 17902 | case "$ac_dir" in |
17903 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17904 | *) | |
8d138742 | 17905 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
dd184caf | 17906 | # A ".." for each directory in $ac_dir_suffix. |
8d138742 | 17907 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
dd184caf | 17908 | case $ac_top_builddir_sub in |
17909 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17910 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
17911 | esac ;; | |
17912 | esac | |
17913 | ac_abs_top_builddir=$ac_pwd | |
17914 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
17915 | # for backward compatibility: | |
17916 | ac_top_builddir=$ac_top_build_prefix | |
d9898ee8 | 17917 | |
17918 | case $srcdir in | |
dd184caf | 17919 | .) # We are building in place. |
d9898ee8 | 17920 | ac_srcdir=. |
dd184caf | 17921 | ac_top_srcdir=$ac_top_builddir_sub |
17922 | ac_abs_top_srcdir=$ac_pwd ;; | |
17923 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
d9898ee8 | 17924 | ac_srcdir=$srcdir$ac_dir_suffix; |
dd184caf | 17925 | ac_top_srcdir=$srcdir |
17926 | ac_abs_top_srcdir=$srcdir ;; | |
17927 | *) # Relative name. | |
17928 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
17929 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
17930 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
d9898ee8 | 17931 | esac |
dd184caf | 17932 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
d9898ee8 | 17933 | |
17934 | ||
dd184caf | 17935 | cd "$ac_dir" |
d9898ee8 | 17936 | |
17937 | # Check for guested configure; otherwise get Cygnus style configure. | |
dd184caf | 17938 | if test -f "$ac_srcdir/configure.gnu"; then |
17939 | ac_sub_configure=$ac_srcdir/configure.gnu | |
17940 | elif test -f "$ac_srcdir/configure"; then | |
17941 | ac_sub_configure=$ac_srcdir/configure | |
17942 | elif test -f "$ac_srcdir/configure.in"; then | |
17943 | # This should be Cygnus configure. | |
17944 | ac_sub_configure=$ac_aux_dir/configure | |
d9898ee8 | 17945 | else |
b0322a85 | 17946 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 |
8d138742 | 17947 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
d9898ee8 | 17948 | ac_sub_configure= |
17949 | fi | |
17950 | ||
17951 | # The recursion is here. | |
17952 | if test -n "$ac_sub_configure"; then | |
17953 | # Make the cache file name correct relative to the subdirectory. | |
17954 | case $cache_file in | |
17955 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
dd184caf | 17956 | *) # Relative name. |
17957 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
d9898ee8 | 17958 | esac |
17959 | ||
b0322a85 | 17960 | { $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 |
8d138742 | 17961 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
d9898ee8 | 17962 | # The eval makes quoting arguments work. |
dd184caf | 17963 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
17964 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
b0322a85 | 17965 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 |
d9898ee8 | 17966 | fi |
17967 | ||
dd184caf | 17968 | cd "$ac_popdir" |
d9898ee8 | 17969 | done |
17970 | fi | |
8d138742 | 17971 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
b0322a85 | 17972 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
8d138742 CE |
17973 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
17974 | fi | |
d9898ee8 | 17975 | |
17976 |