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 makedat 0.60. |
d9898ee8 | 4 | # |
5 | # Report bugs to <courier-users@lists.sourceforge.net>. | |
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' | |
56 | else | |
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' | |
69 | fi | |
70 | export as_echo_body | |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
dd184caf | 74 | # The user is always right. |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
8d138742 CE |
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 | |
dd184caf | 134 | # CDPATH. |
b0322a85 | 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
d9898ee8 | 136 | |
b0322a85 CE |
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;} | |
dd184caf | 162 | if test "x$CONFIG_SHELL" = x; then |
b0322a85 CE |
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 | |
dd184caf | 170 | else |
b0322a85 CE |
171 | case \`(set -o) 2>/dev/null\` in #( |
172 | *posix*) : | |
173 | set -o posix ;; #( | |
174 | *) : | |
175 | ;; | |
176 | esac | |
d9898ee8 | 177 | fi |
b0322a85 CE |
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; } | |
d9898ee8 | 184 | |
dd184caf | 185 | exitcode=0 |
b0322a85 CE |
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 | |
dd184caf | 212 | else |
b0322a85 | 213 | as_have_required=no |
dd184caf | 214 | fi |
b0322a85 | 215 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
dd184caf | 216 | |
dd184caf | 217 | else |
b0322a85 CE |
218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
219 | as_found=false | |
d9898ee8 | 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=. | |
b0322a85 CE |
224 | as_found=: |
225 | case $as_dir in #( | |
d9898ee8 | 226 | /*) |
dd184caf | 227 | for as_base in sh bash ksh sh5; do |
b0322a85 CE |
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 | |
dd184caf | 237 | done;; |
238 | esac | |
b0322a85 | 239 | as_found=false |
dd184caf | 240 | done |
b0322a85 CE |
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; } | |
dd184caf | 245 | IFS=$as_save_IFS |
246 | ||
247 | ||
b0322a85 CE |
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= ;; | |
dd184caf | 262 | esac |
b0322a85 CE |
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 | |
dd184caf | 284 | fi |
dd184caf | 285 | fi |
dd184caf | 286 | fi |
b0322a85 CE |
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 | |
dd184caf | 292 | |
b0322a85 CE |
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 | |
dd184caf | 304 | |
b0322a85 CE |
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 | |
dd184caf | 312 | |
b0322a85 CE |
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 | { | |
dd184caf | 328 | |
b0322a85 CE |
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" | |
dd184caf | 367 | |
dd184caf | 368 | |
b0322a85 | 369 | } # as_fn_mkdir_p |
dd184caf | 370 | |
b0322a85 CE |
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 | |
dd184caf | 412 | |
413 | ||
b0322a85 CE |
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 | |
dd184caf | 429 | |
b0322a85 CE |
430 | if expr a : '\(a\)' >/dev/null 2>&1 && |
431 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
432 | as_expr=expr | |
dd184caf | 433 | else |
b0322a85 | 434 | as_expr=false |
dd184caf | 435 | fi |
436 | ||
b0322a85 CE |
437 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
438 | as_basename=basename | |
dd184caf | 439 | else |
b0322a85 | 440 | as_basename=false |
dd184caf | 441 | fi |
442 | ||
b0322a85 CE |
443 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
444 | as_dirname=dirname | |
dd184caf | 445 | else |
b0322a85 | 446 | as_dirname=false |
dd184caf | 447 | fi |
448 | ||
b0322a85 CE |
449 | as_me=`$as_basename -- "$0" || |
450 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
451 | X"$0" : 'X\(//\)$' \| \ | |
452 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
453 | $as_echo X/"$0" | | |
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'` | |
dd184caf | 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 | |
dd184caf | 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. :-) | |
dd184caf | 481 | sed -n ' |
482 | p | |
483 | /[$]LINENO/= | |
484 | ' <$as_myself | | |
d9898ee8 | 485 | sed ' |
dd184caf | 486 | s/[$]LINENO.*/&-/ |
487 | t lineno | |
488 | b | |
489 | :lineno | |
d9898ee8 | 490 | N |
dd184caf | 491 | :loop |
492 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
d9898ee8 | 493 | t loop |
dd184caf | 494 | s/-\n.*// |
d9898ee8 | 495 | ' >$as_me.lineno && |
dd184caf | 496 | chmod +x "$as_me.lineno" || |
b0322a85 | 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 | |
d9898ee8 | 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 | |
dd184caf | 505 | # original and so on. Autoconf is especially sensitive to this). |
506 | . "./$as_me.lineno" | |
d9898ee8 | 507 | # Exit status is that of the last command. |
508 | exit | |
509 | } | |
510 | ||
dd184caf | 511 | ECHO_C= ECHO_N= ECHO_T= |
b0322a85 | 512 | case `echo -n x` in #((((( |
dd184caf | 513 | -n*) |
b0322a85 | 514 | case `echo 'xy\c'` in |
dd184caf | 515 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
b0322a85 CE |
516 | xy) ECHO_C='\c';; |
517 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
518 | ECHO_T=' ';; | |
dd184caf | 519 | esac;; |
520 | *) | |
521 | ECHO_N='-n';; | |
d9898ee8 | 522 | esac |
d9898ee8 | 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 | |
527 | else | |
528 | rm -f conf$$.dir | |
529 | mkdir conf$$.dir 2>/dev/null | |
530 | fi | |
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' | |
d9898ee8 | 544 | fi |
b0322a85 CE |
545 | else |
546 | as_ln_s='cp -pR' | |
d9898ee8 | 547 | fi |
b0322a85 CE |
548 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
549 | rmdir conf$$.dir 2>/dev/null | |
d9898ee8 | 550 | |
b0322a85 CE |
551 | if mkdir -p . 2>/dev/null; then |
552 | as_mkdir_p='mkdir -p "$as_dir"' | |
553 | else | |
554 | test -d ./-p && rmdir ./-p | |
555 | as_mkdir_p=false | |
d9898ee8 | 556 | fi |
557 | ||
b0322a85 CE |
558 | as_test_x='test -x' |
559 | as_executable_p=as_fn_executable_p | |
560 | ||
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'" | |
563 | ||
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'" | |
d9898ee8 | 566 | |
b0322a85 | 567 | SHELL=${CONFIG_SHELL-/bin/sh} |
d9898ee8 | 568 | |
569 | ||
b0322a85 CE |
570 | test -n "$DJDIR" || exec 7<&0 </dev/null |
571 | exec 6>&1 | |
dd184caf | 572 | |
d9898ee8 | 573 | # Name of the host. |
b0322a85 | 574 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
d9898ee8 | 575 | # so uname gets run too. |
576 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
577 | ||
d9898ee8 | 578 | # |
579 | # Initializations. | |
580 | # | |
581 | ac_default_prefix=/usr/local | |
dd184caf | 582 | ac_clean_files= |
d9898ee8 | 583 | ac_config_libobj_dir=. |
dd184caf | 584 | LIBOBJS= |
d9898ee8 | 585 | cross_compiling=no |
586 | subdirs= | |
587 | MFLAGS= | |
588 | MAKEFLAGS= | |
d9898ee8 | 589 | |
d9898ee8 | 590 | # Identity of this package. |
591 | PACKAGE_NAME='makedat' | |
592 | PACKAGE_TARNAME='makedat' | |
593 | PACKAGE_VERSION='0.60' | |
594 | PACKAGE_STRING='makedat 0.60' | |
595 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' | |
b0322a85 | 596 | PACKAGE_URL='' |
d9898ee8 | 597 | |
598 | ac_unique_file="makedatprog.c" | |
599 | # Factoring default headers for most tests. | |
600 | ac_includes_default="\ | |
601 | #include <stdio.h> | |
dd184caf | 602 | #ifdef HAVE_SYS_TYPES_H |
d9898ee8 | 603 | # include <sys/types.h> |
604 | #endif | |
dd184caf | 605 | #ifdef HAVE_SYS_STAT_H |
d9898ee8 | 606 | # include <sys/stat.h> |
607 | #endif | |
dd184caf | 608 | #ifdef STDC_HEADERS |
d9898ee8 | 609 | # include <stdlib.h> |
610 | # include <stddef.h> | |
611 | #else | |
dd184caf | 612 | # ifdef HAVE_STDLIB_H |
d9898ee8 | 613 | # include <stdlib.h> |
614 | # endif | |
615 | #endif | |
dd184caf | 616 | #ifdef HAVE_STRING_H |
617 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
d9898ee8 | 618 | # include <memory.h> |
619 | # endif | |
620 | # include <string.h> | |
621 | #endif | |
dd184caf | 622 | #ifdef HAVE_STRINGS_H |
d9898ee8 | 623 | # include <strings.h> |
624 | #endif | |
dd184caf | 625 | #ifdef HAVE_INTTYPES_H |
d9898ee8 | 626 | # include <inttypes.h> |
d9898ee8 | 627 | #endif |
dd184caf | 628 | #ifdef HAVE_STDINT_H |
629 | # include <stdint.h> | |
630 | #endif | |
631 | #ifdef HAVE_UNISTD_H | |
d9898ee8 | 632 | # include <unistd.h> |
633 | #endif" | |
634 | ||
8d138742 CE |
635 | ac_subst_vars='am__EXEEXT_FALSE |
636 | am__EXEEXT_TRUE | |
637 | LTLIBOBJS | |
638 | LIBOBJS | |
639 | makedatprogpath | |
640 | makedatprog_target | |
641 | dblibrary | |
642 | CPP | |
d50284c4 | 643 | LT_SYS_LIBRARY_PATH |
8d138742 CE |
644 | OTOOL64 |
645 | OTOOL | |
646 | LIPO | |
647 | NMEDIT | |
648 | DSYMUTIL | |
b0322a85 | 649 | MANIFEST_TOOL |
8d138742 | 650 | RANLIB |
b0322a85 | 651 | ac_ct_AR |
8d138742 | 652 | AR |
b0322a85 | 653 | DLLTOOL |
8d138742 CE |
654 | OBJDUMP |
655 | NM | |
656 | ac_ct_DUMPBIN | |
657 | DUMPBIN | |
658 | LD | |
659 | FGREP | |
660 | EGREP | |
661 | GREP | |
662 | SED | |
663 | host_os | |
664 | host_vendor | |
665 | host_cpu | |
666 | host | |
667 | build_os | |
668 | build_vendor | |
669 | build_cpu | |
670 | build | |
671 | LIBTOOL | |
672 | CAT | |
673 | PERL | |
674 | LN_S | |
675 | am__fastdepCC_FALSE | |
676 | am__fastdepCC_TRUE | |
677 | CCDEPMODE | |
b0322a85 | 678 | am__nodep |
8d138742 CE |
679 | AMDEPBACKSLASH |
680 | AMDEP_FALSE | |
681 | AMDEP_TRUE | |
682 | am__quote | |
683 | am__include | |
684 | DEPDIR | |
685 | OBJEXT | |
686 | EXEEXT | |
687 | ac_ct_CC | |
688 | CPPFLAGS | |
689 | LDFLAGS | |
690 | CFLAGS | |
691 | CC | |
b0322a85 CE |
692 | AM_BACKSLASH |
693 | AM_DEFAULT_VERBOSITY | |
694 | AM_DEFAULT_V | |
695 | AM_V | |
8d138742 CE |
696 | am__untar |
697 | am__tar | |
698 | AMTAR | |
699 | am__leading_dot | |
700 | SET_MAKE | |
701 | AWK | |
702 | mkdir_p | |
703 | MKDIR_P | |
704 | INSTALL_STRIP_PROGRAM | |
705 | STRIP | |
706 | install_sh | |
707 | MAKEINFO | |
708 | AUTOHEADER | |
709 | AUTOMAKE | |
710 | AUTOCONF | |
711 | ACLOCAL | |
712 | VERSION | |
713 | PACKAGE | |
714 | CYGPATH_W | |
715 | am__isrc | |
716 | INSTALL_DATA | |
717 | INSTALL_SCRIPT | |
718 | INSTALL_PROGRAM | |
719 | target_alias | |
720 | host_alias | |
dd184caf | 721 | build_alias |
8d138742 CE |
722 | LIBS |
723 | ECHO_T | |
724 | ECHO_N | |
725 | ECHO_C | |
726 | DEFS | |
727 | mandir | |
728 | localedir | |
729 | libdir | |
730 | psdir | |
731 | pdfdir | |
732 | dvidir | |
733 | htmldir | |
734 | infodir | |
735 | docdir | |
736 | oldincludedir | |
737 | includedir | |
738 | localstatedir | |
739 | sharedstatedir | |
740 | sysconfdir | |
741 | datadir | |
742 | datarootdir | |
743 | libexecdir | |
744 | sbindir | |
745 | bindir | |
746 | program_transform_name | |
747 | prefix | |
748 | exec_prefix | |
b0322a85 | 749 | PACKAGE_URL |
8d138742 CE |
750 | PACKAGE_BUGREPORT |
751 | PACKAGE_STRING | |
752 | PACKAGE_VERSION | |
753 | PACKAGE_TARNAME | |
754 | PACKAGE_NAME | |
755 | PATH_SEPARATOR | |
756 | SHELL' | |
757 | ac_subst_files='' | |
758 | ac_user_opts=' | |
759 | enable_option_checking | |
b0322a85 | 760 | enable_silent_rules |
8d138742 CE |
761 | enable_dependency_tracking |
762 | enable_shared | |
763 | enable_static | |
764 | with_pic | |
765 | enable_fast_install | |
d50284c4 | 766 | with_aix_soname |
8d138742 | 767 | with_gnu_ld |
b0322a85 | 768 | with_sysroot |
8d138742 | 769 | enable_libtool_lock |
b0322a85 | 770 | enable_largefile |
8d138742 CE |
771 | with_makedatprog |
772 | ' | |
773 | ac_precious_vars='build_alias | |
dd184caf | 774 | host_alias |
775 | target_alias | |
dd184caf | 776 | CC |
777 | CFLAGS | |
778 | LDFLAGS | |
8d138742 | 779 | LIBS |
dd184caf | 780 | CPPFLAGS |
d50284c4 | 781 | LT_SYS_LIBRARY_PATH |
8d138742 | 782 | CPP' |
dd184caf | 783 | |
d9898ee8 | 784 | |
785 | # Initialize some variables set by options. | |
786 | ac_init_help= | |
787 | ac_init_version=false | |
8d138742 CE |
788 | ac_unrecognized_opts= |
789 | ac_unrecognized_sep= | |
d9898ee8 | 790 | # The variables have the same names as the options, with |
791 | # dashes changed to underlines. | |
792 | cache_file=/dev/null | |
793 | exec_prefix=NONE | |
794 | no_create= | |
795 | no_recursion= | |
796 | prefix=NONE | |
797 | program_prefix=NONE | |
798 | program_suffix=NONE | |
799 | program_transform_name=s,x,x, | |
800 | silent= | |
801 | site= | |
802 | srcdir= | |
803 | verbose= | |
804 | x_includes=NONE | |
805 | x_libraries=NONE | |
806 | ||
807 | # Installation directory options. | |
808 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
809 | # and all the variables that are supposed to be based on exec_prefix | |
810 | # by default will actually change. | |
811 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
dd184caf | 812 | # (The list follows the same order as the GNU Coding Standards.) |
d9898ee8 | 813 | bindir='${exec_prefix}/bin' |
814 | sbindir='${exec_prefix}/sbin' | |
815 | libexecdir='${exec_prefix}/libexec' | |
dd184caf | 816 | datarootdir='${prefix}/share' |
817 | datadir='${datarootdir}' | |
d9898ee8 | 818 | sysconfdir='${prefix}/etc' |
819 | sharedstatedir='${prefix}/com' | |
820 | localstatedir='${prefix}/var' | |
d9898ee8 | 821 | includedir='${prefix}/include' |
822 | oldincludedir='/usr/include' | |
dd184caf | 823 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
824 | infodir='${datarootdir}/info' | |
825 | htmldir='${docdir}' | |
826 | dvidir='${docdir}' | |
827 | pdfdir='${docdir}' | |
828 | psdir='${docdir}' | |
829 | libdir='${exec_prefix}/lib' | |
830 | localedir='${datarootdir}/locale' | |
831 | mandir='${datarootdir}/man' | |
d9898ee8 | 832 | |
833 | ac_prev= | |
dd184caf | 834 | ac_dashdash= |
d9898ee8 | 835 | for ac_option |
836 | do | |
837 | # If the previous option needs an argument, assign it. | |
838 | if test -n "$ac_prev"; then | |
dd184caf | 839 | eval $ac_prev=\$ac_option |
d9898ee8 | 840 | ac_prev= |
841 | continue | |
842 | fi | |
843 | ||
dd184caf | 844 | case $ac_option in |
b0322a85 CE |
845 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
846 | *=) ac_optarg= ;; | |
847 | *) ac_optarg=yes ;; | |
dd184caf | 848 | esac |
d9898ee8 | 849 | |
850 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
851 | ||
dd184caf | 852 | case $ac_dashdash$ac_option in |
853 | --) | |
854 | ac_dashdash=yes ;; | |
d9898ee8 | 855 | |
856 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
857 | ac_prev=bindir ;; | |
858 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
859 | bindir=$ac_optarg ;; | |
860 | ||
861 | -build | --build | --buil | --bui | --bu) | |
862 | ac_prev=build_alias ;; | |
863 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
864 | build_alias=$ac_optarg ;; | |
865 | ||
866 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
867 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
868 | ac_prev=cache_file ;; | |
869 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
870 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
871 | cache_file=$ac_optarg ;; | |
872 | ||
873 | --config-cache | -C) | |
874 | cache_file=config.cache ;; | |
875 | ||
dd184caf | 876 | -datadir | --datadir | --datadi | --datad) |
d9898ee8 | 877 | ac_prev=datadir ;; |
dd184caf | 878 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
d9898ee8 | 879 | datadir=$ac_optarg ;; |
880 | ||
dd184caf | 881 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
882 | | --dataroo | --dataro | --datar) | |
883 | ac_prev=datarootdir ;; | |
884 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
885 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
886 | datarootdir=$ac_optarg ;; | |
887 | ||
d9898ee8 | 888 | -disable-* | --disable-*) |
8d138742 | 889 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
d9898ee8 | 890 | # Reject names that are not valid shell variable names. |
8d138742 | 891 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 892 | as_fn_error $? "invalid feature name: $ac_useropt" |
8d138742 CE |
893 | ac_useropt_orig=$ac_useropt |
894 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
895 | case $ac_user_opts in | |
896 | *" | |
897 | "enable_$ac_useropt" | |
898 | "*) ;; | |
899 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
900 | ac_unrecognized_sep=', ';; | |
901 | esac | |
902 | eval enable_$ac_useropt=no ;; | |
dd184caf | 903 | |
904 | -docdir | --docdir | --docdi | --doc | --do) | |
905 | ac_prev=docdir ;; | |
906 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
907 | docdir=$ac_optarg ;; | |
908 | ||
909 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
910 | ac_prev=dvidir ;; | |
911 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
912 | dvidir=$ac_optarg ;; | |
d9898ee8 | 913 | |
914 | -enable-* | --enable-*) | |
8d138742 | 915 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
d9898ee8 | 916 | # Reject names that are not valid shell variable names. |
8d138742 | 917 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 918 | as_fn_error $? "invalid feature name: $ac_useropt" |
8d138742 CE |
919 | ac_useropt_orig=$ac_useropt |
920 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
921 | case $ac_user_opts in | |
922 | *" | |
923 | "enable_$ac_useropt" | |
924 | "*) ;; | |
925 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
926 | ac_unrecognized_sep=', ';; | |
927 | esac | |
928 | eval enable_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 929 | |
930 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
931 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
932 | | --exec | --exe | --ex) | |
933 | ac_prev=exec_prefix ;; | |
934 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
935 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
936 | | --exec=* | --exe=* | --ex=*) | |
937 | exec_prefix=$ac_optarg ;; | |
938 | ||
939 | -gas | --gas | --ga | --g) | |
940 | # Obsolete; use --with-gas. | |
941 | with_gas=yes ;; | |
942 | ||
943 | -help | --help | --hel | --he | -h) | |
944 | ac_init_help=long ;; | |
945 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
946 | ac_init_help=recursive ;; | |
947 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
948 | ac_init_help=short ;; | |
949 | ||
950 | -host | --host | --hos | --ho) | |
951 | ac_prev=host_alias ;; | |
952 | -host=* | --host=* | --hos=* | --ho=*) | |
953 | host_alias=$ac_optarg ;; | |
954 | ||
dd184caf | 955 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
956 | ac_prev=htmldir ;; | |
957 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
958 | | --ht=*) | |
959 | htmldir=$ac_optarg ;; | |
960 | ||
d9898ee8 | 961 | -includedir | --includedir | --includedi | --included | --include \ |
962 | | --includ | --inclu | --incl | --inc) | |
963 | ac_prev=includedir ;; | |
964 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
965 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
966 | includedir=$ac_optarg ;; | |
967 | ||
968 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
969 | ac_prev=infodir ;; | |
970 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
971 | infodir=$ac_optarg ;; | |
972 | ||
973 | -libdir | --libdir | --libdi | --libd) | |
974 | ac_prev=libdir ;; | |
975 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
976 | libdir=$ac_optarg ;; | |
977 | ||
978 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
979 | | --libexe | --libex | --libe) | |
980 | ac_prev=libexecdir ;; | |
981 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
982 | | --libexe=* | --libex=* | --libe=*) | |
983 | libexecdir=$ac_optarg ;; | |
984 | ||
dd184caf | 985 | -localedir | --localedir | --localedi | --localed | --locale) |
986 | ac_prev=localedir ;; | |
987 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
988 | localedir=$ac_optarg ;; | |
989 | ||
d9898ee8 | 990 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
dd184caf | 991 | | --localstate | --localstat | --localsta | --localst | --locals) |
d9898ee8 | 992 | ac_prev=localstatedir ;; |
993 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
dd184caf | 994 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
d9898ee8 | 995 | localstatedir=$ac_optarg ;; |
996 | ||
997 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
998 | ac_prev=mandir ;; | |
999 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1000 | mandir=$ac_optarg ;; | |
1001 | ||
1002 | -nfp | --nfp | --nf) | |
1003 | # Obsolete; use --without-fp. | |
1004 | with_fp=no ;; | |
1005 | ||
1006 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1007 | | --no-cr | --no-c | -n) | |
1008 | no_create=yes ;; | |
1009 | ||
1010 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1011 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1012 | no_recursion=yes ;; | |
1013 | ||
1014 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1015 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1016 | | --oldin | --oldi | --old | --ol | --o) | |
1017 | ac_prev=oldincludedir ;; | |
1018 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1019 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1020 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1021 | oldincludedir=$ac_optarg ;; | |
1022 | ||
1023 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1024 | ac_prev=prefix ;; | |
1025 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1026 | prefix=$ac_optarg ;; | |
1027 | ||
1028 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1029 | | --program-pre | --program-pr | --program-p) | |
1030 | ac_prev=program_prefix ;; | |
1031 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1032 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1033 | program_prefix=$ac_optarg ;; | |
1034 | ||
1035 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1036 | | --program-suf | --program-su | --program-s) | |
1037 | ac_prev=program_suffix ;; | |
1038 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1039 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1040 | program_suffix=$ac_optarg ;; | |
1041 | ||
1042 | -program-transform-name | --program-transform-name \ | |
1043 | | --program-transform-nam | --program-transform-na \ | |
1044 | | --program-transform-n | --program-transform- \ | |
1045 | | --program-transform | --program-transfor \ | |
1046 | | --program-transfo | --program-transf \ | |
1047 | | --program-trans | --program-tran \ | |
1048 | | --progr-tra | --program-tr | --program-t) | |
1049 | ac_prev=program_transform_name ;; | |
1050 | -program-transform-name=* | --program-transform-name=* \ | |
1051 | | --program-transform-nam=* | --program-transform-na=* \ | |
1052 | | --program-transform-n=* | --program-transform-=* \ | |
1053 | | --program-transform=* | --program-transfor=* \ | |
1054 | | --program-transfo=* | --program-transf=* \ | |
1055 | | --program-trans=* | --program-tran=* \ | |
1056 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1057 | program_transform_name=$ac_optarg ;; | |
1058 | ||
dd184caf | 1059 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1060 | ac_prev=pdfdir ;; | |
1061 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1062 | pdfdir=$ac_optarg ;; | |
1063 | ||
1064 | -psdir | --psdir | --psdi | --psd | --ps) | |
1065 | ac_prev=psdir ;; | |
1066 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1067 | psdir=$ac_optarg ;; | |
1068 | ||
d9898ee8 | 1069 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1070 | | -silent | --silent | --silen | --sile | --sil) | |
1071 | silent=yes ;; | |
1072 | ||
1073 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1074 | ac_prev=sbindir ;; | |
1075 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1076 | | --sbi=* | --sb=*) | |
1077 | sbindir=$ac_optarg ;; | |
1078 | ||
1079 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1080 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1081 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1082 | | --sha | --sh) | |
1083 | ac_prev=sharedstatedir ;; | |
1084 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1085 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1086 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1087 | | --sha=* | --sh=*) | |
1088 | sharedstatedir=$ac_optarg ;; | |
1089 | ||
1090 | -site | --site | --sit) | |
1091 | ac_prev=site ;; | |
1092 | -site=* | --site=* | --sit=*) | |
1093 | site=$ac_optarg ;; | |
1094 | ||
1095 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1096 | ac_prev=srcdir ;; | |
1097 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1098 | srcdir=$ac_optarg ;; | |
1099 | ||
1100 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1101 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1102 | ac_prev=sysconfdir ;; | |
1103 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1104 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1105 | sysconfdir=$ac_optarg ;; | |
1106 | ||
1107 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1108 | ac_prev=target_alias ;; | |
1109 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1110 | target_alias=$ac_optarg ;; | |
1111 | ||
1112 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1113 | verbose=yes ;; | |
1114 | ||
1115 | -version | --version | --versio | --versi | --vers | -V) | |
1116 | ac_init_version=: ;; | |
1117 | ||
1118 | -with-* | --with-*) | |
8d138742 | 1119 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
d9898ee8 | 1120 | # Reject names that are not valid shell variable names. |
8d138742 | 1121 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 1122 | as_fn_error $? "invalid package name: $ac_useropt" |
8d138742 CE |
1123 | ac_useropt_orig=$ac_useropt |
1124 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1125 | case $ac_user_opts in | |
1126 | *" | |
1127 | "with_$ac_useropt" | |
1128 | "*) ;; | |
1129 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1130 | ac_unrecognized_sep=', ';; | |
1131 | esac | |
1132 | eval with_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 1133 | |
1134 | -without-* | --without-*) | |
8d138742 | 1135 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
d9898ee8 | 1136 | # Reject names that are not valid shell variable names. |
8d138742 | 1137 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 1138 | as_fn_error $? "invalid package name: $ac_useropt" |
8d138742 CE |
1139 | ac_useropt_orig=$ac_useropt |
1140 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1141 | case $ac_user_opts in | |
1142 | *" | |
1143 | "with_$ac_useropt" | |
1144 | "*) ;; | |
1145 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1146 | ac_unrecognized_sep=', ';; | |
1147 | esac | |
1148 | eval with_$ac_useropt=no ;; | |
d9898ee8 | 1149 | |
1150 | --x) | |
1151 | # Obsolete; use --with-x. | |
1152 | with_x=yes ;; | |
1153 | ||
1154 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1155 | | --x-incl | --x-inc | --x-in | --x-i) | |
1156 | ac_prev=x_includes ;; | |
1157 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1158 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1159 | x_includes=$ac_optarg ;; | |
1160 | ||
1161 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1162 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1163 | ac_prev=x_libraries ;; | |
1164 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1165 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1166 | x_libraries=$ac_optarg ;; | |
1167 | ||
b0322a85 CE |
1168 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1169 | Try \`$0 --help' for more information" | |
d9898ee8 | 1170 | ;; |
1171 | ||
1172 | *=*) | |
1173 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1174 | # Reject names that are not valid shell variable names. | |
b0322a85 CE |
1175 | case $ac_envvar in #( |
1176 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1177 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1178 | esac | |
dd184caf | 1179 | eval $ac_envvar=\$ac_optarg |
d9898ee8 | 1180 | export $ac_envvar ;; |
1181 | ||
1182 | *) | |
1183 | # FIXME: should be removed in autoconf 3.0. | |
8d138742 | 1184 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
d9898ee8 | 1185 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
8d138742 | 1186 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b0322a85 | 1187 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
d9898ee8 | 1188 | ;; |
1189 | ||
1190 | esac | |
1191 | done | |
1192 | ||
1193 | if test -n "$ac_prev"; then | |
1194 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
b0322a85 | 1195 | as_fn_error $? "missing argument to $ac_option" |
d9898ee8 | 1196 | fi |
1197 | ||
8d138742 CE |
1198 | if test -n "$ac_unrecognized_opts"; then |
1199 | case $enable_option_checking in | |
1200 | no) ;; | |
b0322a85 | 1201 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
8d138742 CE |
1202 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1203 | esac | |
1204 | fi | |
1205 | ||
1206 | # Check all directory arguments for consistency. | |
dd184caf | 1207 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1208 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1209 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1210 | libdir localedir mandir | |
d9898ee8 | 1211 | do |
dd184caf | 1212 | eval ac_val=\$$ac_var |
8d138742 CE |
1213 | # Remove trailing slashes. |
1214 | case $ac_val in | |
1215 | */ ) | |
1216 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1217 | eval $ac_var=\$ac_val;; | |
1218 | esac | |
1219 | # Be sure to have absolute directory names. | |
d9898ee8 | 1220 | case $ac_val in |
dd184caf | 1221 | [\\/$]* | ?:[\\/]* ) continue;; |
1222 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
d9898ee8 | 1223 | esac |
b0322a85 | 1224 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
d9898ee8 | 1225 | done |
1226 | ||
1227 | # There might be people who depend on the old broken behavior: `$host' | |
1228 | # used to hold the argument of --host etc. | |
1229 | # FIXME: To remove some day. | |
1230 | build=$build_alias | |
1231 | host=$host_alias | |
1232 | target=$target_alias | |
1233 | ||
1234 | # FIXME: To remove some day. | |
1235 | if test "x$host_alias" != x; then | |
1236 | if test "x$build_alias" = x; then | |
1237 | cross_compiling=maybe | |
d9898ee8 | 1238 | elif test "x$build_alias" != "x$host_alias"; then |
1239 | cross_compiling=yes | |
1240 | fi | |
1241 | fi | |
1242 | ||
1243 | ac_tool_prefix= | |
1244 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1245 | ||
1246 | test "$silent" = yes && exec 6>/dev/null | |
1247 | ||
1248 | ||
dd184caf | 1249 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1250 | ac_ls_di=`ls -di .` && | |
1251 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
b0322a85 | 1252 | as_fn_error $? "working directory cannot be determined" |
dd184caf | 1253 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
b0322a85 | 1254 | as_fn_error $? "pwd does not report name of working directory" |
dd184caf | 1255 | |
1256 | ||
d9898ee8 | 1257 | # Find the source files, if location was not specified. |
1258 | if test -z "$srcdir"; then | |
1259 | ac_srcdir_defaulted=yes | |
dd184caf | 1260 | # Try the directory containing this script, then the parent directory. |
8d138742 CE |
1261 | ac_confdir=`$as_dirname -- "$as_myself" || |
1262 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1263 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1264 | X"$as_myself" : 'X\(//\)$' \| \ | |
1265 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1266 | $as_echo X"$as_myself" | | |
dd184caf | 1267 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1268 | s//\1/ | |
1269 | q | |
1270 | } | |
1271 | /^X\(\/\/\)[^/].*/{ | |
1272 | s//\1/ | |
1273 | q | |
1274 | } | |
1275 | /^X\(\/\/\)$/{ | |
1276 | s//\1/ | |
1277 | q | |
1278 | } | |
1279 | /^X\(\/\).*/{ | |
1280 | s//\1/ | |
1281 | q | |
1282 | } | |
1283 | s/.*/./; q'` | |
d9898ee8 | 1284 | srcdir=$ac_confdir |
dd184caf | 1285 | if test ! -r "$srcdir/$ac_unique_file"; then |
d9898ee8 | 1286 | srcdir=.. |
1287 | fi | |
1288 | else | |
1289 | ac_srcdir_defaulted=no | |
1290 | fi | |
dd184caf | 1291 | if test ! -r "$srcdir/$ac_unique_file"; then |
1292 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
b0322a85 | 1293 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
d9898ee8 | 1294 | fi |
dd184caf | 1295 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1296 | ac_abs_confdir=`( | |
b0322a85 | 1297 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
dd184caf | 1298 | pwd)` |
1299 | # When building in place, set srcdir=. | |
1300 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1301 | srcdir=. | |
1302 | fi | |
1303 | # Remove unnecessary trailing slashes from srcdir. | |
1304 | # Double slashes in file names in object file debugging info | |
1305 | # mess up M-x gdb in Emacs. | |
1306 | case $srcdir in | |
1307 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1308 | esac | |
1309 | for ac_var in $ac_precious_vars; do | |
1310 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1311 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1312 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1313 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1314 | done | |
d9898ee8 | 1315 | |
1316 | # | |
1317 | # Report the --help message. | |
1318 | # | |
1319 | if test "$ac_init_help" = "long"; then | |
1320 | # Omit some internal or obsolete options to make the list less imposing. | |
1321 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1322 | cat <<_ACEOF | |
1323 | \`configure' configures makedat 0.60 to adapt to many kinds of systems. | |
1324 | ||
1325 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1326 | ||
1327 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1328 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1329 | ||
1330 | Defaults for the options are specified in brackets. | |
1331 | ||
1332 | Configuration: | |
1333 | -h, --help display this help and exit | |
1334 | --help=short display options specific to this package | |
1335 | --help=recursive display the short help of all the included packages | |
1336 | -V, --version display version information and exit | |
b0322a85 | 1337 | -q, --quiet, --silent do not print \`checking ...' messages |
d9898ee8 | 1338 | --cache-file=FILE cache test results in FILE [disabled] |
1339 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1340 | -n, --no-create do not create output files | |
1341 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1342 | ||
d9898ee8 | 1343 | Installation directories: |
1344 | --prefix=PREFIX install architecture-independent files in PREFIX | |
8d138742 | 1345 | [$ac_default_prefix] |
d9898ee8 | 1346 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
8d138742 | 1347 | [PREFIX] |
d9898ee8 | 1348 | |
1349 | By default, \`make install' will install all the files in | |
1350 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1351 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1352 | for instance \`--prefix=\$HOME'. | |
1353 | ||
1354 | For better control, use the options below. | |
1355 | ||
1356 | Fine tuning of the installation directories: | |
8d138742 CE |
1357 | --bindir=DIR user executables [EPREFIX/bin] |
1358 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1359 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1360 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1361 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1362 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1363 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1364 | --includedir=DIR C header files [PREFIX/include] | |
1365 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1366 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1367 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1368 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1369 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1370 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1371 | --docdir=DIR documentation root [DATAROOTDIR/doc/makedat] | |
1372 | --htmldir=DIR html documentation [DOCDIR] | |
1373 | --dvidir=DIR dvi documentation [DOCDIR] | |
1374 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1375 | --psdir=DIR ps documentation [DOCDIR] | |
d9898ee8 | 1376 | _ACEOF |
1377 | ||
b0322a85 CE |
1378 | cat <<\_ACEOF |
1379 | ||
1380 | Program names: | |
1381 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1382 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1383 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1384 | ||
1385 | System types: | |
1386 | --build=BUILD configure for building on BUILD [guessed] | |
1387 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1388 | _ACEOF | |
1389 | fi | |
1390 | ||
1391 | if test -n "$ac_init_help"; then | |
1392 | case $ac_init_help in | |
1393 | short | recursive ) echo "Configuration of makedat 0.60:";; | |
1394 | esac | |
1395 | cat <<\_ACEOF | |
1396 | ||
1397 | Optional Features: | |
1398 | --disable-option-checking ignore unrecognized --enable/--with options | |
1399 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1400 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1401 | --enable-silent-rules less verbose build output (undo: "make V=1") | |
1402 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1403 | --enable-dependency-tracking | |
1404 | do not reject slow dependency extractors | |
1405 | --disable-dependency-tracking | |
1406 | speeds up one-time build | |
1407 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1408 | --enable-static[=PKGS] build static libraries [default=yes] | |
1409 | --enable-fast-install[=PKGS] | |
1410 | optimize for fast installation [default=yes] | |
1411 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1412 | --disable-largefile omit support for large files | |
1413 | ||
1414 | Optional Packages: | |
1415 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1416 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1417 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use | |
1418 | both] | |
d50284c4 CE |
1419 | --with-aix-soname=aix|svr4|both |
1420 | shared library versioning (aka "SONAME") variant to | |
1421 | provide on AIX, [default=aix]. | |
b0322a85 | 1422 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
d50284c4 CE |
1423 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
1424 | compiler's sysroot if not specified). | |
b0322a85 CE |
1425 | --with-makedatprog=filename Installed location and name of makedatprog |
1426 | ||
1427 | Some influential environment variables: | |
1428 | CC C compiler command | |
1429 | CFLAGS C compiler flags | |
1430 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1431 | nonstandard directory <lib dir> | |
1432 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1433 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1434 | you have headers in a nonstandard directory <include dir> | |
d50284c4 CE |
1435 | LT_SYS_LIBRARY_PATH |
1436 | User-defined run-time library search path. | |
b0322a85 CE |
1437 | CPP C preprocessor |
1438 | ||
1439 | Use these variables to override the choices made by `configure' or to help | |
1440 | it to find libraries and programs with nonstandard names/locations. | |
1441 | ||
1442 | Report bugs to <courier-users@lists.sourceforge.net>. | |
1443 | _ACEOF | |
1444 | ac_status=$? | |
1445 | fi | |
1446 | ||
1447 | if test "$ac_init_help" = "recursive"; then | |
1448 | # If there are subdirs, report their specific --help. | |
1449 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1450 | test -d "$ac_dir" || | |
1451 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1452 | continue | |
1453 | ac_builddir=. | |
1454 | ||
1455 | case "$ac_dir" in | |
1456 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1457 | *) | |
1458 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1459 | # A ".." for each directory in $ac_dir_suffix. | |
1460 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1461 | case $ac_top_builddir_sub in | |
1462 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1463 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1464 | esac ;; | |
1465 | esac | |
1466 | ac_abs_top_builddir=$ac_pwd | |
1467 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1468 | # for backward compatibility: | |
1469 | ac_top_builddir=$ac_top_build_prefix | |
1470 | ||
1471 | case $srcdir in | |
1472 | .) # We are building in place. | |
1473 | ac_srcdir=. | |
1474 | ac_top_srcdir=$ac_top_builddir_sub | |
1475 | ac_abs_top_srcdir=$ac_pwd ;; | |
1476 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1477 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1478 | ac_top_srcdir=$srcdir | |
1479 | ac_abs_top_srcdir=$srcdir ;; | |
1480 | *) # Relative name. | |
1481 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1482 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1483 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1484 | esac | |
1485 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1486 | ||
1487 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1488 | # Check for guested configure. | |
1489 | if test -f "$ac_srcdir/configure.gnu"; then | |
1490 | echo && | |
1491 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1492 | elif test -f "$ac_srcdir/configure"; then | |
1493 | echo && | |
1494 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1495 | else | |
1496 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1497 | fi || ac_status=$? | |
1498 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1499 | done | |
1500 | fi | |
1501 | ||
1502 | test -n "$ac_init_help" && exit $ac_status | |
1503 | if $ac_init_version; then | |
1504 | cat <<\_ACEOF | |
1505 | makedat configure 0.60 | |
1506 | generated by GNU Autoconf 2.69 | |
1507 | ||
1508 | Copyright (C) 2012 Free Software Foundation, Inc. | |
1509 | This configure script is free software; the Free Software Foundation | |
1510 | gives unlimited permission to copy, distribute and modify it. | |
1511 | _ACEOF | |
1512 | exit | |
1513 | fi | |
1514 | ||
1515 | ## ------------------------ ## | |
1516 | ## Autoconf initialization. ## | |
1517 | ## ------------------------ ## | |
1518 | ||
1519 | # ac_fn_c_try_compile LINENO | |
1520 | # -------------------------- | |
1521 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1522 | ac_fn_c_try_compile () | |
1523 | { | |
1524 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1525 | rm -f conftest.$ac_objext | |
1526 | if { { ac_try="$ac_compile" | |
1527 | case "(($ac_try" in | |
1528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1529 | *) ac_try_echo=$ac_try;; | |
1530 | esac | |
1531 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1532 | $as_echo "$ac_try_echo"; } >&5 | |
1533 | (eval "$ac_compile") 2>conftest.err | |
1534 | ac_status=$? | |
1535 | if test -s conftest.err; then | |
1536 | grep -v '^ *+' conftest.err >conftest.er1 | |
1537 | cat conftest.er1 >&5 | |
1538 | mv -f conftest.er1 conftest.err | |
1539 | fi | |
1540 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1541 | test $ac_status = 0; } && { | |
1542 | test -z "$ac_c_werror_flag" || | |
1543 | test ! -s conftest.err | |
1544 | } && test -s conftest.$ac_objext; then : | |
1545 | ac_retval=0 | |
1546 | else | |
1547 | $as_echo "$as_me: failed program was:" >&5 | |
1548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1549 | ||
1550 | ac_retval=1 | |
1551 | fi | |
1552 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1553 | as_fn_set_status $ac_retval | |
1554 | ||
1555 | } # ac_fn_c_try_compile | |
1556 | ||
1557 | # ac_fn_c_try_link LINENO | |
1558 | # ----------------------- | |
1559 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1560 | ac_fn_c_try_link () | |
1561 | { | |
1562 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1563 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1564 | if { { ac_try="$ac_link" | |
1565 | case "(($ac_try" in | |
1566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1567 | *) ac_try_echo=$ac_try;; | |
1568 | esac | |
1569 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1570 | $as_echo "$ac_try_echo"; } >&5 | |
1571 | (eval "$ac_link") 2>conftest.err | |
1572 | ac_status=$? | |
1573 | if test -s conftest.err; then | |
1574 | grep -v '^ *+' conftest.err >conftest.er1 | |
1575 | cat conftest.er1 >&5 | |
1576 | mv -f conftest.er1 conftest.err | |
1577 | fi | |
1578 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1579 | test $ac_status = 0; } && { | |
1580 | test -z "$ac_c_werror_flag" || | |
1581 | test ! -s conftest.err | |
1582 | } && test -s conftest$ac_exeext && { | |
1583 | test "$cross_compiling" = yes || | |
1584 | test -x conftest$ac_exeext | |
1585 | }; then : | |
1586 | ac_retval=0 | |
1587 | else | |
1588 | $as_echo "$as_me: failed program was:" >&5 | |
1589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1590 | ||
1591 | ac_retval=1 | |
1592 | fi | |
1593 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1594 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1595 | # interfere with the next link command; also delete a directory that is | |
1596 | # left behind by Apple's compiler. We do this before executing the actions. | |
1597 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1598 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1599 | as_fn_set_status $ac_retval | |
1600 | ||
1601 | } # ac_fn_c_try_link | |
1602 | ||
1603 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1604 | # ------------------------------------------------------- | |
1605 | # Tests whether HEADER exists and can be compiled using the include files in | |
1606 | # INCLUDES, setting the cache variable VAR accordingly. | |
1607 | ac_fn_c_check_header_compile () | |
1608 | { | |
1609 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1611 | $as_echo_n "checking for $2... " >&6; } | |
1612 | if eval \${$3+:} false; then : | |
1613 | $as_echo_n "(cached) " >&6 | |
1614 | else | |
1615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1616 | /* end confdefs.h. */ | |
1617 | $4 | |
1618 | #include <$2> | |
1619 | _ACEOF | |
1620 | if ac_fn_c_try_compile "$LINENO"; then : | |
1621 | eval "$3=yes" | |
1622 | else | |
1623 | eval "$3=no" | |
1624 | fi | |
1625 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1626 | fi | |
1627 | eval ac_res=\$$3 | |
1628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1629 | $as_echo "$ac_res" >&6; } | |
1630 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1631 | ||
1632 | } # ac_fn_c_check_header_compile | |
1633 | ||
1634 | # ac_fn_c_try_cpp LINENO | |
1635 | # ---------------------- | |
1636 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1637 | ac_fn_c_try_cpp () | |
1638 | { | |
1639 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1640 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1641 | case "(($ac_try" in | |
1642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1643 | *) ac_try_echo=$ac_try;; | |
1644 | esac | |
1645 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1646 | $as_echo "$ac_try_echo"; } >&5 | |
1647 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1648 | ac_status=$? | |
1649 | if test -s conftest.err; then | |
1650 | grep -v '^ *+' conftest.err >conftest.er1 | |
1651 | cat conftest.er1 >&5 | |
1652 | mv -f conftest.er1 conftest.err | |
1653 | fi | |
1654 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1655 | test $ac_status = 0; } > conftest.i && { | |
1656 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1657 | test ! -s conftest.err | |
1658 | }; then : | |
1659 | ac_retval=0 | |
1660 | else | |
1661 | $as_echo "$as_me: failed program was:" >&5 | |
1662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1663 | ||
1664 | ac_retval=1 | |
1665 | fi | |
1666 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1667 | as_fn_set_status $ac_retval | |
1668 | ||
1669 | } # ac_fn_c_try_cpp | |
1670 | ||
1671 | # ac_fn_c_try_run LINENO | |
1672 | # ---------------------- | |
1673 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1674 | # that executables *can* be run. | |
1675 | ac_fn_c_try_run () | |
1676 | { | |
1677 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1678 | if { { ac_try="$ac_link" | |
1679 | case "(($ac_try" in | |
1680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1681 | *) ac_try_echo=$ac_try;; | |
1682 | esac | |
1683 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1684 | $as_echo "$ac_try_echo"; } >&5 | |
1685 | (eval "$ac_link") 2>&5 | |
1686 | ac_status=$? | |
1687 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1688 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1689 | { { case "(($ac_try" in | |
1690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1691 | *) ac_try_echo=$ac_try;; | |
1692 | esac | |
1693 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1694 | $as_echo "$ac_try_echo"; } >&5 | |
1695 | (eval "$ac_try") 2>&5 | |
1696 | ac_status=$? | |
1697 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1698 | test $ac_status = 0; }; }; then : | |
1699 | ac_retval=0 | |
1700 | else | |
1701 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1702 | $as_echo "$as_me: failed program was:" >&5 | |
1703 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1704 | ||
1705 | ac_retval=$ac_status | |
1706 | fi | |
1707 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1708 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1709 | as_fn_set_status $ac_retval | |
1710 | ||
1711 | } # ac_fn_c_try_run | |
1712 | ||
1713 | # ac_fn_c_check_func LINENO FUNC VAR | |
1714 | # ---------------------------------- | |
1715 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1716 | ac_fn_c_check_func () | |
1717 | { | |
1718 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1720 | $as_echo_n "checking for $2... " >&6; } | |
1721 | if eval \${$3+:} false; then : | |
1722 | $as_echo_n "(cached) " >&6 | |
1723 | else | |
1724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1725 | /* end confdefs.h. */ | |
1726 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1727 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1728 | #define $2 innocuous_$2 | |
1729 | ||
1730 | /* System header to define __stub macros and hopefully few prototypes, | |
1731 | which can conflict with char $2 (); below. | |
1732 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1733 | <limits.h> exists even on freestanding compilers. */ | |
1734 | ||
1735 | #ifdef __STDC__ | |
1736 | # include <limits.h> | |
1737 | #else | |
1738 | # include <assert.h> | |
1739 | #endif | |
1740 | ||
1741 | #undef $2 | |
d9898ee8 | 1742 | |
b0322a85 CE |
1743 | /* Override any GCC internal prototype to avoid an error. |
1744 | Use char because int might match the return type of a GCC | |
1745 | builtin and then its argument prototype would still apply. */ | |
1746 | #ifdef __cplusplus | |
1747 | extern "C" | |
1748 | #endif | |
1749 | char $2 (); | |
1750 | /* The GNU C library defines this for functions which it implements | |
1751 | to always fail with ENOSYS. Some functions are actually named | |
1752 | something starting with __ and the normal name is an alias. */ | |
1753 | #if defined __stub_$2 || defined __stub___$2 | |
1754 | choke me | |
1755 | #endif | |
d9898ee8 | 1756 | |
b0322a85 CE |
1757 | int |
1758 | main () | |
1759 | { | |
1760 | return $2 (); | |
1761 | ; | |
1762 | return 0; | |
1763 | } | |
d9898ee8 | 1764 | _ACEOF |
b0322a85 CE |
1765 | if ac_fn_c_try_link "$LINENO"; then : |
1766 | eval "$3=yes" | |
1767 | else | |
1768 | eval "$3=no" | |
d9898ee8 | 1769 | fi |
b0322a85 CE |
1770 | rm -f core conftest.err conftest.$ac_objext \ |
1771 | conftest$ac_exeext conftest.$ac_ext | |
1772 | fi | |
1773 | eval ac_res=\$$3 | |
1774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1775 | $as_echo "$ac_res" >&6; } | |
1776 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
d9898ee8 | 1777 | |
b0322a85 | 1778 | } # ac_fn_c_check_func |
d9898ee8 | 1779 | |
b0322a85 CE |
1780 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1781 | # ------------------------------------------------------- | |
1782 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1783 | # the include files in INCLUDES and setting the cache variable VAR | |
1784 | # accordingly. | |
1785 | ac_fn_c_check_header_mongrel () | |
1786 | { | |
1787 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1788 | if eval \${$3+:} false; then : | |
1789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1790 | $as_echo_n "checking for $2... " >&6; } | |
1791 | if eval \${$3+:} false; then : | |
1792 | $as_echo_n "(cached) " >&6 | |
1793 | fi | |
1794 | eval ac_res=\$$3 | |
1795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1796 | $as_echo "$ac_res" >&6; } | |
1797 | else | |
1798 | # Is the header compilable? | |
1799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1800 | $as_echo_n "checking $2 usability... " >&6; } | |
1801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1802 | /* end confdefs.h. */ | |
1803 | $4 | |
1804 | #include <$2> | |
d9898ee8 | 1805 | _ACEOF |
b0322a85 CE |
1806 | if ac_fn_c_try_compile "$LINENO"; then : |
1807 | ac_header_compiler=yes | |
1808 | else | |
1809 | ac_header_compiler=no | |
d9898ee8 | 1810 | fi |
b0322a85 CE |
1811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1813 | $as_echo "$ac_header_compiler" >&6; } | |
d9898ee8 | 1814 | |
b0322a85 CE |
1815 | # Is the header present? |
1816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1817 | $as_echo_n "checking $2 presence... " >&6; } | |
1818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1819 | /* end confdefs.h. */ | |
1820 | #include <$2> | |
1821 | _ACEOF | |
1822 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1823 | ac_header_preproc=yes | |
1824 | else | |
1825 | ac_header_preproc=no | |
1826 | fi | |
1827 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1829 | $as_echo "$ac_header_preproc" >&6; } | |
d9898ee8 | 1830 | |
b0322a85 CE |
1831 | # So? What about this header? |
1832 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1833 | yes:no: ) | |
1834 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1835 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1836 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1837 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1838 | ;; | |
1839 | no:yes:* ) | |
1840 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1841 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1842 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1843 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1844 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1845 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1846 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1847 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1848 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1849 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1850 | ( $as_echo "## -------------------------------------------------- ## | |
1851 | ## Report this to courier-users@lists.sourceforge.net ## | |
1852 | ## -------------------------------------------------- ##" | |
1853 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
1854 | ;; | |
d9898ee8 | 1855 | esac |
b0322a85 CE |
1856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1857 | $as_echo_n "checking for $2... " >&6; } | |
1858 | if eval \${$3+:} false; then : | |
1859 | $as_echo_n "(cached) " >&6 | |
1860 | else | |
1861 | eval "$3=\$ac_header_compiler" | |
d9898ee8 | 1862 | fi |
b0322a85 CE |
1863 | eval ac_res=\$$3 |
1864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1865 | $as_echo "$ac_res" >&6; } | |
d9898ee8 | 1866 | fi |
b0322a85 CE |
1867 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1868 | ||
1869 | } # ac_fn_c_check_header_mongrel | |
dd184caf | 1870 | cat >config.log <<_ACEOF |
d9898ee8 | 1871 | This file contains any messages produced by compilers while |
1872 | running configure, to aid debugging if configure makes a mistake. | |
1873 | ||
1874 | It was created by makedat $as_me 0.60, which was | |
b0322a85 | 1875 | generated by GNU Autoconf 2.69. Invocation command line was |
d9898ee8 | 1876 | |
1877 | $ $0 $@ | |
1878 | ||
1879 | _ACEOF | |
dd184caf | 1880 | exec 5>>config.log |
d9898ee8 | 1881 | { |
1882 | cat <<_ASUNAME | |
1883 | ## --------- ## | |
1884 | ## Platform. ## | |
1885 | ## --------- ## | |
1886 | ||
1887 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1888 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1889 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1890 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1891 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1892 | ||
1893 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1894 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1895 | ||
1896 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1897 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1898 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
dd184caf | 1899 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
d9898ee8 | 1900 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1901 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1902 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1903 | ||
1904 | _ASUNAME | |
1905 | ||
1906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1907 | for as_dir in $PATH | |
1908 | do | |
1909 | IFS=$as_save_IFS | |
1910 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
1911 | $as_echo "PATH: $as_dir" |
1912 | done | |
dd184caf | 1913 | IFS=$as_save_IFS |
d9898ee8 | 1914 | |
1915 | } >&5 | |
1916 | ||
1917 | cat >&5 <<_ACEOF | |
1918 | ||
1919 | ||
1920 | ## ----------- ## | |
1921 | ## Core tests. ## | |
1922 | ## ----------- ## | |
1923 | ||
1924 | _ACEOF | |
1925 | ||
1926 | ||
1927 | # Keep a trace of the command line. | |
1928 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1929 | # Strip out --silent because we don't want to record it for future runs. | |
1930 | # Also quote any args containing shell meta-characters. | |
1931 | # Make two passes to allow for proper duplicate-argument suppression. | |
1932 | ac_configure_args= | |
1933 | ac_configure_args0= | |
1934 | ac_configure_args1= | |
d9898ee8 | 1935 | ac_must_keep_next=false |
1936 | for ac_pass in 1 2 | |
1937 | do | |
1938 | for ac_arg | |
1939 | do | |
1940 | case $ac_arg in | |
1941 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1942 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1943 | | -silent | --silent | --silen | --sile | --sil) | |
1944 | continue ;; | |
dd184caf | 1945 | *\'*) |
8d138742 | 1946 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 1947 | esac |
1948 | case $ac_pass in | |
b0322a85 | 1949 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
d9898ee8 | 1950 | 2) |
b0322a85 | 1951 | as_fn_append ac_configure_args1 " '$ac_arg'" |
d9898ee8 | 1952 | if test $ac_must_keep_next = true; then |
1953 | ac_must_keep_next=false # Got value, back to normal. | |
1954 | else | |
1955 | case $ac_arg in | |
1956 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1957 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1958 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1959 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1960 | case "$ac_configure_args0 " in | |
1961 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1962 | esac | |
1963 | ;; | |
1964 | -* ) ac_must_keep_next=true ;; | |
1965 | esac | |
1966 | fi | |
b0322a85 | 1967 | as_fn_append ac_configure_args " '$ac_arg'" |
d9898ee8 | 1968 | ;; |
1969 | esac | |
1970 | done | |
1971 | done | |
b0322a85 CE |
1972 | { ac_configure_args0=; unset ac_configure_args0;} |
1973 | { ac_configure_args1=; unset ac_configure_args1;} | |
d9898ee8 | 1974 | |
1975 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1976 | # config.log. We remove comments because anyway the quotes in there | |
1977 | # would cause problems or look ugly. | |
dd184caf | 1978 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1979 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
d9898ee8 | 1980 | trap 'exit_status=$? |
1981 | # Save into config.log some information that might help in debugging. | |
1982 | { | |
1983 | echo | |
1984 | ||
b0322a85 | 1985 | $as_echo "## ---------------- ## |
d9898ee8 | 1986 | ## Cache variables. ## |
b0322a85 | 1987 | ## ---------------- ##" |
d9898ee8 | 1988 | echo |
1989 | # The following way of writing the cache mishandles newlines in values, | |
dd184caf | 1990 | ( |
1991 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1992 | eval ac_val=\$$ac_var | |
1993 | case $ac_val in #( | |
1994 | *${as_nl}*) | |
1995 | case $ac_var in #( | |
b0322a85 | 1996 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
8d138742 | 1997 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
dd184caf | 1998 | esac |
1999 | case $ac_var in #( | |
2000 | _ | IFS | as_nl) ;; #( | |
8d138742 | 2001 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
b0322a85 | 2002 | *) { eval $ac_var=; unset $ac_var;} ;; |
dd184caf | 2003 | esac ;; |
2004 | esac | |
2005 | done | |
d9898ee8 | 2006 | (set) 2>&1 | |
dd184caf | 2007 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2008 | *${as_nl}ac_space=\ *) | |
d9898ee8 | 2009 | sed -n \ |
dd184caf | 2010 | "s/'\''/'\''\\\\'\'''\''/g; |
2011 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2012 | ;; #( | |
d9898ee8 | 2013 | *) |
dd184caf | 2014 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 | 2015 | ;; |
dd184caf | 2016 | esac | |
2017 | sort | |
2018 | ) | |
d9898ee8 | 2019 | echo |
2020 | ||
b0322a85 | 2021 | $as_echo "## ----------------- ## |
d9898ee8 | 2022 | ## Output variables. ## |
b0322a85 | 2023 | ## ----------------- ##" |
d9898ee8 | 2024 | echo |
2025 | for ac_var in $ac_subst_vars | |
2026 | do | |
dd184caf | 2027 | eval ac_val=\$$ac_var |
2028 | case $ac_val in | |
8d138742 | 2029 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 2030 | esac |
8d138742 | 2031 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 2032 | done | sort |
2033 | echo | |
2034 | ||
2035 | if test -n "$ac_subst_files"; then | |
b0322a85 | 2036 | $as_echo "## ------------------- ## |
dd184caf | 2037 | ## File substitutions. ## |
b0322a85 | 2038 | ## ------------------- ##" |
d9898ee8 | 2039 | echo |
2040 | for ac_var in $ac_subst_files | |
2041 | do | |
dd184caf | 2042 | eval ac_val=\$$ac_var |
2043 | case $ac_val in | |
8d138742 | 2044 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 2045 | esac |
8d138742 | 2046 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 2047 | done | sort |
2048 | echo | |
2049 | fi | |
2050 | ||
2051 | if test -s confdefs.h; then | |
b0322a85 | 2052 | $as_echo "## ----------- ## |
d9898ee8 | 2053 | ## confdefs.h. ## |
b0322a85 | 2054 | ## ----------- ##" |
d9898ee8 | 2055 | echo |
dd184caf | 2056 | cat confdefs.h |
d9898ee8 | 2057 | echo |
2058 | fi | |
2059 | test "$ac_signal" != 0 && | |
8d138742 CE |
2060 | $as_echo "$as_me: caught signal $ac_signal" |
2061 | $as_echo "$as_me: exit $exit_status" | |
d9898ee8 | 2062 | } >&5 |
dd184caf | 2063 | rm -f core *.core core.conftest.* && |
2064 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
d9898ee8 | 2065 | exit $exit_status |
dd184caf | 2066 | ' 0 |
d9898ee8 | 2067 | for ac_signal in 1 2 13 15; do |
b0322a85 | 2068 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
d9898ee8 | 2069 | done |
2070 | ac_signal=0 | |
2071 | ||
2072 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
dd184caf | 2073 | rm -f -r conftest* confdefs.h |
d9898ee8 | 2074 | |
b0322a85 CE |
2075 | $as_echo "/* confdefs.h */" > confdefs.h |
2076 | ||
d9898ee8 | 2077 | # Predefined preprocessor variables. |
2078 | ||
2079 | cat >>confdefs.h <<_ACEOF | |
2080 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2081 | _ACEOF | |
2082 | ||
d9898ee8 | 2083 | cat >>confdefs.h <<_ACEOF |
2084 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2085 | _ACEOF | |
2086 | ||
d9898ee8 | 2087 | cat >>confdefs.h <<_ACEOF |
2088 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2089 | _ACEOF | |
2090 | ||
d9898ee8 | 2091 | cat >>confdefs.h <<_ACEOF |
2092 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2093 | _ACEOF | |
2094 | ||
d9898ee8 | 2095 | cat >>confdefs.h <<_ACEOF |
2096 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2097 | _ACEOF | |
2098 | ||
b0322a85 CE |
2099 | cat >>confdefs.h <<_ACEOF |
2100 | #define PACKAGE_URL "$PACKAGE_URL" | |
2101 | _ACEOF | |
2102 | ||
d9898ee8 | 2103 | |
2104 | # Let the site file select an alternate cache file if it wants to. | |
8d138742 CE |
2105 | # Prefer an explicitly selected file to automatically selected ones. |
2106 | ac_site_file1=NONE | |
2107 | ac_site_file2=NONE | |
dd184caf | 2108 | if test -n "$CONFIG_SITE"; then |
b0322a85 CE |
2109 | # We do not want a PATH search for config.site. |
2110 | case $CONFIG_SITE in #(( | |
2111 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2112 | */*) ac_site_file1=$CONFIG_SITE;; | |
2113 | *) ac_site_file1=./$CONFIG_SITE;; | |
2114 | esac | |
dd184caf | 2115 | elif test "x$prefix" != xNONE; then |
8d138742 CE |
2116 | ac_site_file1=$prefix/share/config.site |
2117 | ac_site_file2=$prefix/etc/config.site | |
dd184caf | 2118 | else |
8d138742 CE |
2119 | ac_site_file1=$ac_default_prefix/share/config.site |
2120 | ac_site_file2=$ac_default_prefix/etc/config.site | |
d9898ee8 | 2121 | fi |
8d138742 | 2122 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
dd184caf | 2123 | do |
8d138742 | 2124 | test "x$ac_site_file" = xNONE && continue |
b0322a85 CE |
2125 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
2126 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
8d138742 | 2127 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
d9898ee8 | 2128 | sed 's/^/| /' "$ac_site_file" >&5 |
b0322a85 CE |
2129 | . "$ac_site_file" \ |
2130 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2131 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2132 | as_fn_error $? "failed to load site script $ac_site_file | |
2133 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 2134 | fi |
2135 | done | |
2136 | ||
2137 | if test -r "$cache_file"; then | |
b0322a85 CE |
2138 | # Some versions of bash will fail to source /dev/null (special files |
2139 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2140 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2141 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
8d138742 | 2142 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
d9898ee8 | 2143 | case $cache_file in |
dd184caf | 2144 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2145 | *) . "./$cache_file";; | |
d9898ee8 | 2146 | esac |
2147 | fi | |
2148 | else | |
b0322a85 | 2149 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
8d138742 | 2150 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
d9898ee8 | 2151 | >$cache_file |
2152 | fi | |
2153 | ||
2154 | # Check that the precious variables saved in the cache have kept the same | |
2155 | # value. | |
2156 | ac_cache_corrupted=false | |
dd184caf | 2157 | for ac_var in $ac_precious_vars; do |
d9898ee8 | 2158 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2159 | eval ac_new_set=\$ac_env_${ac_var}_set | |
dd184caf | 2160 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2161 | eval ac_new_val=\$ac_env_${ac_var}_value | |
d9898ee8 | 2162 | case $ac_old_set,$ac_new_set in |
2163 | set,) | |
b0322a85 | 2164 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
8d138742 | 2165 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
d9898ee8 | 2166 | ac_cache_corrupted=: ;; |
2167 | ,set) | |
b0322a85 | 2168 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
8d138742 | 2169 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
d9898ee8 | 2170 | ac_cache_corrupted=: ;; |
2171 | ,);; | |
2172 | *) | |
2173 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
8d138742 CE |
2174 | # differences in whitespace do not lead to failure. |
2175 | ac_old_val_w=`echo x $ac_old_val` | |
2176 | ac_new_val_w=`echo x $ac_new_val` | |
2177 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
b0322a85 | 2178 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
8d138742 CE |
2179 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2180 | ac_cache_corrupted=: | |
2181 | else | |
b0322a85 | 2182 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
8d138742 CE |
2183 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2184 | eval $ac_var=\$ac_old_val | |
2185 | fi | |
b0322a85 | 2186 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
8d138742 | 2187 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
b0322a85 | 2188 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
8d138742 | 2189 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
d9898ee8 | 2190 | fi;; |
2191 | esac | |
2192 | # Pass precious variables to config.status. | |
2193 | if test "$ac_new_set" = set; then | |
2194 | case $ac_new_val in | |
8d138742 | 2195 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 2196 | *) ac_arg=$ac_var=$ac_new_val ;; |
2197 | esac | |
2198 | case " $ac_configure_args " in | |
2199 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
b0322a85 | 2200 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
d9898ee8 | 2201 | esac |
2202 | fi | |
2203 | done | |
2204 | if $ac_cache_corrupted; then | |
b0322a85 | 2205 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 2206 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 | 2207 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
8d138742 | 2208 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
b0322a85 | 2209 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
d9898ee8 | 2210 | fi |
b0322a85 CE |
2211 | ## -------------------- ## |
2212 | ## Main body of script. ## | |
2213 | ## -------------------- ## | |
d9898ee8 | 2214 | |
dd184caf | 2215 | ac_ext=c |
2216 | ac_cpp='$CPP $CPPFLAGS' | |
2217 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2218 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2219 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 2220 | |
2221 | ||
2222 | ||
2223 | >confdefs.h # Kill PACKAGE_ macros | |
2224 | ||
2225 | ||
d9898ee8 | 2226 | ac_aux_dir= |
b0322a85 | 2227 | for ac_dir in ../.. "$srcdir"/../..; do |
dd184caf | 2228 | if test -f "$ac_dir/install-sh"; then |
d9898ee8 | 2229 | ac_aux_dir=$ac_dir |
2230 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2231 | break | |
dd184caf | 2232 | elif test -f "$ac_dir/install.sh"; then |
d9898ee8 | 2233 | ac_aux_dir=$ac_dir |
2234 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2235 | break | |
dd184caf | 2236 | elif test -f "$ac_dir/shtool"; then |
d9898ee8 | 2237 | ac_aux_dir=$ac_dir |
2238 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2239 | break | |
2240 | fi | |
2241 | done | |
2242 | if test -z "$ac_aux_dir"; then | |
b0322a85 | 2243 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5 |
d9898ee8 | 2244 | fi |
dd184caf | 2245 | |
2246 | # These three variables are undocumented and unsupported, | |
2247 | # and are intended to be withdrawn in a future Autoconf release. | |
2248 | # They can cause serious problems if a builder's source tree is in a directory | |
2249 | # whose full name contains unusual characters. | |
2250 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2251 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2252 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2253 | ||
d9898ee8 | 2254 | |
d50284c4 | 2255 | am__api_version='1.15' |
b0322a85 | 2256 | |
d9898ee8 | 2257 | # Find a good install program. We prefer a C program (faster), |
2258 | # so one script is as good as another. But avoid the broken or | |
2259 | # incompatible versions: | |
2260 | # SysV /etc/install, /usr/sbin/install | |
2261 | # SunOS /usr/etc/install | |
2262 | # IRIX /sbin/install | |
2263 | # AIX /bin/install | |
2264 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2265 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2266 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2267 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2268 | # OS/2's system install, which has a completely different semantic | |
2269 | # ./install, which can be erroneously created by make from ./install.sh. | |
8d138742 | 2270 | # Reject install programs that cannot install multiple files. |
b0322a85 | 2271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
8d138742 | 2272 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
d9898ee8 | 2273 | if test -z "$INSTALL"; then |
b0322a85 | 2274 | if ${ac_cv_path_install+:} false; then : |
8d138742 | 2275 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2276 | else |
2277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2278 | for as_dir in $PATH | |
2279 | do | |
2280 | IFS=$as_save_IFS | |
2281 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2282 | # Account for people who put trailing slashes in PATH elements. |
2283 | case $as_dir/ in #(( | |
2284 | ./ | .// | /[cC]/* | \ | |
d9898ee8 | 2285 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
b0322a85 | 2286 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
d9898ee8 | 2287 | /usr/ucb/* ) ;; |
2288 | *) | |
2289 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2290 | # Don't use installbsd from OSF since it installs stuff as root | |
2291 | # by default. | |
2292 | for ac_prog in ginstall scoinst install; do | |
2293 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b0322a85 | 2294 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
d9898ee8 | 2295 | if test $ac_prog = install && |
2296 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2297 | # AIX install. It has an incompatible calling convention. | |
2298 | : | |
2299 | elif test $ac_prog = install && | |
2300 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2301 | # program-specific install script used by HP pwplus--don't use. | |
2302 | : | |
2303 | else | |
8d138742 CE |
2304 | rm -rf conftest.one conftest.two conftest.dir |
2305 | echo one > conftest.one | |
2306 | echo two > conftest.two | |
2307 | mkdir conftest.dir | |
2308 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2309 | test -s conftest.one && test -s conftest.two && | |
2310 | test -s conftest.dir/conftest.one && | |
2311 | test -s conftest.dir/conftest.two | |
2312 | then | |
2313 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2314 | break 3 | |
2315 | fi | |
d9898ee8 | 2316 | fi |
2317 | fi | |
2318 | done | |
2319 | done | |
2320 | ;; | |
2321 | esac | |
8d138742 | 2322 | |
b0322a85 | 2323 | done |
dd184caf | 2324 | IFS=$as_save_IFS |
d9898ee8 | 2325 | |
8d138742 | 2326 | rm -rf conftest.one conftest.two conftest.dir |
d9898ee8 | 2327 | |
2328 | fi | |
2329 | if test "${ac_cv_path_install+set}" = set; then | |
2330 | INSTALL=$ac_cv_path_install | |
2331 | else | |
dd184caf | 2332 | # As a last resort, use the slow shell script. Don't cache a |
2333 | # value for INSTALL within a source directory, because that will | |
d9898ee8 | 2334 | # break other packages using the cache if that directory is |
dd184caf | 2335 | # removed, or if the value is a relative name. |
d9898ee8 | 2336 | INSTALL=$ac_install_sh |
2337 | fi | |
2338 | fi | |
b0322a85 | 2339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
8d138742 | 2340 | $as_echo "$INSTALL" >&6; } |
d9898ee8 | 2341 | |
2342 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2343 | # It thinks the first close brace ends the variable substitution. | |
2344 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2345 | ||
2346 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2347 | ||
2348 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2349 | ||
b0322a85 | 2350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
8d138742 | 2351 | $as_echo_n "checking whether build environment is sane... " >&6; } |
8d138742 CE |
2352 | # Reject unsafe characters in $srcdir or the absolute working directory |
2353 | # name. Accept space and tab only in the latter. | |
2354 | am_lf=' | |
2355 | ' | |
2356 | case `pwd` in | |
2357 | *[\\\"\#\$\&\'\`$am_lf]*) | |
b0322a85 | 2358 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
8d138742 CE |
2359 | esac |
2360 | case $srcdir in | |
2361 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
b0322a85 | 2362 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
8d138742 CE |
2363 | esac |
2364 | ||
b0322a85 | 2365 | # Do 'set' in a subshell so we don't clobber the current shell's |
d9898ee8 | 2366 | # arguments. Must try -L first in case configure is actually a |
2367 | # symlink; some systems play weird games with the mod time of symlinks | |
2368 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2369 | # directory). | |
2370 | if ( | |
b0322a85 CE |
2371 | am_has_slept=no |
2372 | for am_try in 1 2; do | |
2373 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2374 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2375 | if test "$*" = "X"; then | |
2376 | # -L didn't work. | |
2377 | set X `ls -t "$srcdir/configure" conftest.file` | |
2378 | fi | |
2379 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2380 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2381 | ||
2382 | # If neither matched, then we have a broken ls. This can happen | |
2383 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2384 | # broken ls alias from the environment. This has actually | |
2385 | # happened. Such a system could not be considered "sane". | |
2386 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2387 | alias in your environment" "$LINENO" 5 | |
2388 | fi | |
2389 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2390 | break | |
2391 | fi | |
2392 | # Just in case. | |
2393 | sleep 1 | |
2394 | am_has_slept=yes | |
2395 | done | |
d9898ee8 | 2396 | test "$2" = conftest.file |
2397 | ) | |
2398 | then | |
2399 | # Ok. | |
2400 | : | |
2401 | else | |
b0322a85 CE |
2402 | as_fn_error $? "newly created file is older than distributed files! |
2403 | Check your system clock" "$LINENO" 5 | |
d9898ee8 | 2404 | fi |
b0322a85 | 2405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 2406 | $as_echo "yes" >&6; } |
b0322a85 CE |
2407 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
2408 | # generated files are strictly newer. | |
2409 | am_sleep_pid= | |
2410 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2411 | ( sleep 1 ) & | |
2412 | am_sleep_pid=$! | |
2413 | fi | |
2414 | ||
2415 | rm -f conftest.file | |
2416 | ||
d9898ee8 | 2417 | test "$program_prefix" != NONE && |
dd184caf | 2418 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
d9898ee8 | 2419 | # Use a double $ so make ignores it. |
2420 | test "$program_suffix" != NONE && | |
dd184caf | 2421 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
8d138742 | 2422 | # Double any \ or $. |
d9898ee8 | 2423 | # By default was `s,x,x', remove it if useless. |
8d138742 CE |
2424 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2425 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
d9898ee8 | 2426 | |
d50284c4 CE |
2427 | # Expand $ac_aux_dir to an absolute path. |
2428 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
d9898ee8 | 2429 | |
8d138742 CE |
2430 | if test x"${MISSING+set}" != xset; then |
2431 | case $am_aux_dir in | |
2432 | *\ * | *\ *) | |
2433 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2434 | *) | |
2435 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2436 | esac | |
2437 | fi | |
d9898ee8 | 2438 | # Use eval to expand $SHELL |
b0322a85 CE |
2439 | if eval "$MISSING --is-lightweight"; then |
2440 | am_missing_run="$MISSING " | |
d9898ee8 | 2441 | else |
2442 | am_missing_run= | |
b0322a85 CE |
2443 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2444 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
8d138742 CE |
2445 | fi |
2446 | ||
d50284c4 | 2447 | if test x"${install_sh+set}" != xset; then |
8d138742 CE |
2448 | case $am_aux_dir in |
2449 | *\ * | *\ *) | |
2450 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2451 | *) | |
2452 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2453 | esac | |
2454 | fi | |
2455 | ||
b0322a85 CE |
2456 | # Installed binaries are usually stripped using 'strip' when the user |
2457 | # run "make install-strip". However 'strip' might not be the right | |
8d138742 | 2458 | # tool to use in cross-compilation environments, therefore Automake |
b0322a85 | 2459 | # will honor the 'STRIP' environment variable to overrule this program. |
8d138742 CE |
2460 | if test "$cross_compiling" != no; then |
2461 | if test -n "$ac_tool_prefix"; then | |
2462 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2463 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
b0322a85 | 2464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2465 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2466 | if ${ac_cv_prog_STRIP+:} false; then : |
8d138742 CE |
2467 | $as_echo_n "(cached) " >&6 |
2468 | else | |
2469 | if test -n "$STRIP"; then | |
2470 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2471 | else | |
2472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2473 | for as_dir in $PATH | |
2474 | do | |
2475 | IFS=$as_save_IFS | |
2476 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2477 | for ac_exec_ext in '' $ac_executable_extensions; do |
2478 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 2479 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
b0322a85 | 2480 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
2481 | break 2 |
2482 | fi | |
2483 | done | |
b0322a85 | 2484 | done |
8d138742 CE |
2485 | IFS=$as_save_IFS |
2486 | ||
2487 | fi | |
2488 | fi | |
2489 | STRIP=$ac_cv_prog_STRIP | |
2490 | if test -n "$STRIP"; then | |
b0322a85 | 2491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8d138742 CE |
2492 | $as_echo "$STRIP" >&6; } |
2493 | else | |
b0322a85 | 2494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
2495 | $as_echo "no" >&6; } |
2496 | fi | |
2497 | ||
2498 | ||
2499 | fi | |
2500 | if test -z "$ac_cv_prog_STRIP"; then | |
2501 | ac_ct_STRIP=$STRIP | |
2502 | # Extract the first word of "strip", so it can be a program name with args. | |
2503 | set dummy strip; ac_word=$2 | |
b0322a85 | 2504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2505 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2506 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
8d138742 CE |
2507 | $as_echo_n "(cached) " >&6 |
2508 | else | |
2509 | if test -n "$ac_ct_STRIP"; then | |
2510 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2511 | else | |
2512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2513 | for as_dir in $PATH | |
2514 | do | |
2515 | IFS=$as_save_IFS | |
2516 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2517 | for ac_exec_ext in '' $ac_executable_extensions; do |
2518 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 2519 | ac_cv_prog_ac_ct_STRIP="strip" |
b0322a85 | 2520 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
2521 | break 2 |
2522 | fi | |
2523 | done | |
b0322a85 | 2524 | done |
8d138742 CE |
2525 | IFS=$as_save_IFS |
2526 | ||
2527 | fi | |
2528 | fi | |
2529 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2530 | if test -n "$ac_ct_STRIP"; then | |
b0322a85 | 2531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
8d138742 CE |
2532 | $as_echo "$ac_ct_STRIP" >&6; } |
2533 | else | |
b0322a85 | 2534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
2535 | $as_echo "no" >&6; } |
2536 | fi | |
2537 | ||
2538 | if test "x$ac_ct_STRIP" = x; then | |
2539 | STRIP=":" | |
2540 | else | |
2541 | case $cross_compiling:$ac_tool_warned in | |
2542 | yes:) | |
b0322a85 | 2543 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
2544 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2545 | ac_tool_warned=yes ;; | |
2546 | esac | |
2547 | STRIP=$ac_ct_STRIP | |
2548 | fi | |
2549 | else | |
2550 | STRIP="$ac_cv_prog_STRIP" | |
2551 | fi | |
2552 | ||
d9898ee8 | 2553 | fi |
8d138742 | 2554 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
d9898ee8 | 2555 | |
b0322a85 | 2556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
8d138742 | 2557 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
dd184caf | 2558 | if test -z "$MKDIR_P"; then |
b0322a85 | 2559 | if ${ac_cv_path_mkdir+:} false; then : |
8d138742 | 2560 | $as_echo_n "(cached) " >&6 |
dd184caf | 2561 | else |
2562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2563 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2564 | do | |
2565 | IFS=$as_save_IFS | |
2566 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 2567 | for ac_prog in mkdir gmkdir; do |
dd184caf | 2568 | for ac_exec_ext in '' $ac_executable_extensions; do |
b0322a85 | 2569 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
dd184caf | 2570 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2571 | 'mkdir (GNU coreutils) '* | \ | |
2572 | 'mkdir (coreutils) '* | \ | |
2573 | 'mkdir (fileutils) '4.1*) | |
2574 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2575 | break 3;; | |
2576 | esac | |
2577 | done | |
2578 | done | |
b0322a85 | 2579 | done |
dd184caf | 2580 | IFS=$as_save_IFS |
2581 | ||
2582 | fi | |
2583 | ||
b0322a85 | 2584 | test -d ./--version && rmdir ./--version |
dd184caf | 2585 | if test "${ac_cv_path_mkdir+set}" = set; then |
2586 | MKDIR_P="$ac_cv_path_mkdir -p" | |
d9898ee8 | 2587 | else |
dd184caf | 2588 | # As a last resort, use the slow shell script. Don't cache a |
2589 | # value for MKDIR_P within a source directory, because that will | |
2590 | # break other packages using the cache if that directory is | |
2591 | # removed, or if the value is a relative name. | |
dd184caf | 2592 | MKDIR_P="$ac_install_sh -d" |
d9898ee8 | 2593 | fi |
2594 | fi | |
b0322a85 | 2595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
8d138742 | 2596 | $as_echo "$MKDIR_P" >&6; } |
dd184caf | 2597 | |
d9898ee8 | 2598 | for ac_prog in gawk mawk nawk awk |
2599 | do | |
2600 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2601 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 2602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2603 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2604 | if ${ac_cv_prog_AWK+:} false; then : |
8d138742 | 2605 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2606 | else |
2607 | if test -n "$AWK"; then | |
2608 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2609 | else | |
2610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2611 | for as_dir in $PATH | |
2612 | do | |
2613 | IFS=$as_save_IFS | |
2614 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2615 | for ac_exec_ext in '' $ac_executable_extensions; do |
2616 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2617 | ac_cv_prog_AWK="$ac_prog" |
b0322a85 | 2618 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2619 | break 2 |
2620 | fi | |
2621 | done | |
b0322a85 | 2622 | done |
dd184caf | 2623 | IFS=$as_save_IFS |
d9898ee8 | 2624 | |
2625 | fi | |
2626 | fi | |
2627 | AWK=$ac_cv_prog_AWK | |
2628 | if test -n "$AWK"; then | |
b0322a85 | 2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
8d138742 | 2630 | $as_echo "$AWK" >&6; } |
d9898ee8 | 2631 | else |
b0322a85 | 2632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2633 | $as_echo "no" >&6; } |
d9898ee8 | 2634 | fi |
2635 | ||
dd184caf | 2636 | |
d9898ee8 | 2637 | test -n "$AWK" && break |
2638 | done | |
2639 | ||
b0322a85 | 2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
8d138742 CE |
2641 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2642 | set x ${MAKE-make} | |
2643 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
b0322a85 | 2644 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
8d138742 | 2645 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2646 | else |
2647 | cat >conftest.make <<\_ACEOF | |
dd184caf | 2648 | SHELL = /bin/sh |
d9898ee8 | 2649 | all: |
dd184caf | 2650 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
d9898ee8 | 2651 | _ACEOF |
b0322a85 | 2652 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
dd184caf | 2653 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2654 | *@@@%%%=?*=@@@%%%*) | |
2655 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2656 | *) | |
2657 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2658 | esac | |
d9898ee8 | 2659 | rm -f conftest.make |
2660 | fi | |
dd184caf | 2661 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
b0322a85 | 2662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 2663 | $as_echo "yes" >&6; } |
d9898ee8 | 2664 | SET_MAKE= |
2665 | else | |
b0322a85 | 2666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2667 | $as_echo "no" >&6; } |
d9898ee8 | 2668 | SET_MAKE="MAKE=${MAKE-make}" |
2669 | fi | |
2670 | ||
2671 | rm -rf .tst 2>/dev/null | |
2672 | mkdir .tst 2>/dev/null | |
2673 | if test -d .tst; then | |
2674 | am__leading_dot=. | |
2675 | else | |
2676 | am__leading_dot=_ | |
2677 | fi | |
2678 | rmdir .tst 2>/dev/null | |
2679 | ||
b0322a85 CE |
2680 | # Check whether --enable-silent-rules was given. |
2681 | if test "${enable_silent_rules+set}" = set; then : | |
2682 | enableval=$enable_silent_rules; | |
2683 | fi | |
2684 | ||
2685 | case $enable_silent_rules in # ((( | |
2686 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2687 | no) AM_DEFAULT_VERBOSITY=1;; | |
2688 | *) AM_DEFAULT_VERBOSITY=1;; | |
2689 | esac | |
2690 | am_make=${MAKE-make} | |
2691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2692 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2693 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2694 | $as_echo_n "(cached) " >&6 | |
2695 | else | |
2696 | if $as_echo 'TRUE=$(BAR$(V)) | |
2697 | BAR0=false | |
2698 | BAR1=true | |
2699 | V=1 | |
2700 | am__doit: | |
2701 | @$(TRUE) | |
2702 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2703 | am_cv_make_support_nested_variables=yes | |
2704 | else | |
2705 | am_cv_make_support_nested_variables=no | |
2706 | fi | |
2707 | fi | |
2708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2709 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2710 | if test $am_cv_make_support_nested_variables = yes; then | |
2711 | AM_V='$(V)' | |
2712 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2713 | else | |
2714 | AM_V=$AM_DEFAULT_VERBOSITY | |
2715 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2716 | fi | |
2717 | AM_BACKSLASH='\' | |
2718 | ||
dd184caf | 2719 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2720 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2721 | # is not polluted with repeated "-I." | |
2722 | am__isrc=' -I$(srcdir)' | |
2723 | # test to see if srcdir already configured | |
2724 | if test -f $srcdir/config.status; then | |
b0322a85 | 2725 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
dd184caf | 2726 | fi |
d9898ee8 | 2727 | fi |
2728 | ||
2729 | # test whether we have cygpath | |
2730 | if test -z "$CYGPATH_W"; then | |
2731 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2732 | CYGPATH_W='cygpath -w' | |
2733 | else | |
2734 | CYGPATH_W=echo | |
2735 | fi | |
2736 | fi | |
2737 | ||
2738 | ||
2739 | # Define the identity of the package. | |
2740 | PACKAGE='makedat' | |
2741 | VERSION='0.60' | |
2742 | ||
2743 | ||
2744 | # Some tools Automake needs. | |
2745 | ||
2746 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2747 | ||
2748 | ||
2749 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2750 | ||
2751 | ||
2752 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2753 | ||
2754 | ||
2755 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2756 | ||
2757 | ||
2758 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2759 | ||
b0322a85 CE |
2760 | # For better backward compatibility. To be removed once Automake 1.9.x |
2761 | # dies out for good. For more background, see: | |
2762 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
2763 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
2764 | mkdir_p='$(MKDIR_P)' | |
2765 | ||
d50284c4 CE |
2766 | # We need awk for the "check" target (and possibly the TAP driver). The |
2767 | # system "awk" is bad on some platforms. | |
b0322a85 CE |
2768 | # Always define AMTAR for backward compatibility. Yes, it's still used |
2769 | # in the wild :-( We should find a proper way to deprecate it ... | |
2770 | AMTAR='$${TAR-tar}' | |
2771 | ||
d9898ee8 | 2772 | |
b0322a85 CE |
2773 | # We'll loop over all known methods to create a tar archive until one works. |
2774 | _am_tools='gnutar pax cpio none' | |
2775 | ||
2776 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
d9898ee8 | 2777 | |
d9898ee8 | 2778 | |
2779 | ||
2780 | ||
2781 | ||
2782 | ||
d50284c4 CE |
2783 | # POSIX will say in a future version that running "rm -f" with no argument |
2784 | # is OK; and we want to be able to make that assumption in our Makefile | |
2785 | # recipes. So use an aggressive probe to check that the usage we want is | |
2786 | # actually supported "in the wild" to an acceptable degree. | |
2787 | # See automake bug#10828. | |
2788 | # To make any issue more visible, cause the running configure to be aborted | |
2789 | # by default if the 'rm' program in use doesn't match our expectations; the | |
2790 | # user can still override this though. | |
2791 | if rm -f && rm -fr && rm -rf; then : OK; else | |
2792 | cat >&2 <<'END' | |
2793 | Oops! | |
2794 | ||
2795 | Your 'rm' program seems unable to run without file operands specified | |
2796 | on the command line, even when the '-f' option is present. This is contrary | |
2797 | to the behaviour of most rm programs out there, and not conforming with | |
2798 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
2799 | ||
2800 | Please tell bug-automake@gnu.org about your system, including the value | |
2801 | of your $PATH and any error possibly output before this message. This | |
2802 | can help us improve future automake versions. | |
2803 | ||
2804 | END | |
2805 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
2806 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
2807 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
2808 | echo >&2 | |
2809 | else | |
2810 | cat >&2 <<'END' | |
2811 | Aborting the configuration process, to ensure you take notice of the issue. | |
2812 | ||
2813 | You can download and install GNU coreutils to get an 'rm' implementation | |
2814 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
2815 | ||
2816 | If you want to complete the configuration process using your problematic | |
2817 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
2818 | to "yes", and re-run configure. | |
2819 | ||
2820 | END | |
2821 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
2822 | fi | |
2823 | fi | |
2824 | ||
d9898ee8 | 2825 | LPATH="$PATH:/usr/local/bin" |
dd184caf | 2826 | ac_config_headers="$ac_config_headers config.h" |
d9898ee8 | 2827 | |
2828 | ||
2829 | ac_ext=c | |
2830 | ac_cpp='$CPP $CPPFLAGS' | |
2831 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2832 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2833 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2834 | if test -n "$ac_tool_prefix"; then | |
2835 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2836 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
b0322a85 | 2837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2838 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2839 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 2840 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2841 | else |
2842 | if test -n "$CC"; then | |
2843 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2844 | else | |
2845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2846 | for as_dir in $PATH | |
2847 | do | |
2848 | IFS=$as_save_IFS | |
2849 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2850 | for ac_exec_ext in '' $ac_executable_extensions; do |
2851 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2852 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
b0322a85 | 2853 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2854 | break 2 |
2855 | fi | |
2856 | done | |
b0322a85 | 2857 | done |
dd184caf | 2858 | IFS=$as_save_IFS |
d9898ee8 | 2859 | |
2860 | fi | |
2861 | fi | |
2862 | CC=$ac_cv_prog_CC | |
2863 | if test -n "$CC"; then | |
b0322a85 | 2864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 2865 | $as_echo "$CC" >&6; } |
d9898ee8 | 2866 | else |
b0322a85 | 2867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2868 | $as_echo "no" >&6; } |
d9898ee8 | 2869 | fi |
2870 | ||
dd184caf | 2871 | |
d9898ee8 | 2872 | fi |
2873 | if test -z "$ac_cv_prog_CC"; then | |
2874 | ac_ct_CC=$CC | |
2875 | # Extract the first word of "gcc", so it can be a program name with args. | |
2876 | set dummy gcc; ac_word=$2 | |
b0322a85 | 2877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2878 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2879 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8d138742 | 2880 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2881 | else |
2882 | if test -n "$ac_ct_CC"; then | |
2883 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2884 | else | |
2885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2886 | for as_dir in $PATH | |
2887 | do | |
2888 | IFS=$as_save_IFS | |
2889 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2890 | for ac_exec_ext in '' $ac_executable_extensions; do |
2891 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2892 | ac_cv_prog_ac_ct_CC="gcc" |
b0322a85 | 2893 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2894 | break 2 |
2895 | fi | |
2896 | done | |
b0322a85 | 2897 | done |
dd184caf | 2898 | IFS=$as_save_IFS |
d9898ee8 | 2899 | |
2900 | fi | |
2901 | fi | |
2902 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2903 | if test -n "$ac_ct_CC"; then | |
b0322a85 | 2904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
8d138742 | 2905 | $as_echo "$ac_ct_CC" >&6; } |
d9898ee8 | 2906 | else |
b0322a85 | 2907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2908 | $as_echo "no" >&6; } |
d9898ee8 | 2909 | fi |
2910 | ||
dd184caf | 2911 | if test "x$ac_ct_CC" = x; then |
2912 | CC="" | |
2913 | else | |
2914 | case $cross_compiling:$ac_tool_warned in | |
2915 | yes:) | |
b0322a85 | 2916 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 2917 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 2918 | ac_tool_warned=yes ;; |
2919 | esac | |
2920 | CC=$ac_ct_CC | |
2921 | fi | |
d9898ee8 | 2922 | else |
2923 | CC="$ac_cv_prog_CC" | |
2924 | fi | |
2925 | ||
2926 | if test -z "$CC"; then | |
dd184caf | 2927 | if test -n "$ac_tool_prefix"; then |
2928 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
d9898ee8 | 2929 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
b0322a85 | 2930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2931 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2932 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 2933 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2934 | else |
2935 | if test -n "$CC"; then | |
2936 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2937 | else | |
2938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2939 | for as_dir in $PATH | |
2940 | do | |
2941 | IFS=$as_save_IFS | |
2942 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2943 | for ac_exec_ext in '' $ac_executable_extensions; do |
2944 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2945 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
b0322a85 | 2946 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2947 | break 2 |
2948 | fi | |
2949 | done | |
b0322a85 | 2950 | done |
dd184caf | 2951 | IFS=$as_save_IFS |
d9898ee8 | 2952 | |
2953 | fi | |
2954 | fi | |
2955 | CC=$ac_cv_prog_CC | |
2956 | if test -n "$CC"; then | |
b0322a85 | 2957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 2958 | $as_echo "$CC" >&6; } |
d9898ee8 | 2959 | else |
b0322a85 | 2960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2961 | $as_echo "no" >&6; } |
d9898ee8 | 2962 | fi |
2963 | ||
d9898ee8 | 2964 | |
dd184caf | 2965 | fi |
d9898ee8 | 2966 | fi |
2967 | if test -z "$CC"; then | |
2968 | # Extract the first word of "cc", so it can be a program name with args. | |
2969 | set dummy cc; ac_word=$2 | |
b0322a85 | 2970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2971 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2972 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 2973 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2974 | else |
2975 | if test -n "$CC"; then | |
2976 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2977 | else | |
2978 | ac_prog_rejected=no | |
2979 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2980 | for as_dir in $PATH | |
2981 | do | |
2982 | IFS=$as_save_IFS | |
2983 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2984 | for ac_exec_ext in '' $ac_executable_extensions; do |
2985 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2986 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2987 | ac_prog_rejected=yes | |
2988 | continue | |
2989 | fi | |
2990 | ac_cv_prog_CC="cc" | |
b0322a85 | 2991 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2992 | break 2 |
2993 | fi | |
2994 | done | |
b0322a85 | 2995 | done |
dd184caf | 2996 | IFS=$as_save_IFS |
d9898ee8 | 2997 | |
2998 | if test $ac_prog_rejected = yes; then | |
2999 | # We found a bogon in the path, so make sure we never use it. | |
3000 | set dummy $ac_cv_prog_CC | |
3001 | shift | |
3002 | if test $# != 0; then | |
3003 | # We chose a different compiler from the bogus one. | |
3004 | # However, it has the same basename, so the bogon will be chosen | |
3005 | # first if we set CC to just the basename; use the full file name. | |
3006 | shift | |
3007 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3008 | fi | |
3009 | fi | |
3010 | fi | |
3011 | fi | |
3012 | CC=$ac_cv_prog_CC | |
3013 | if test -n "$CC"; then | |
b0322a85 | 3014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3015 | $as_echo "$CC" >&6; } |
d9898ee8 | 3016 | else |
b0322a85 | 3017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3018 | $as_echo "no" >&6; } |
d9898ee8 | 3019 | fi |
3020 | ||
dd184caf | 3021 | |
d9898ee8 | 3022 | fi |
3023 | if test -z "$CC"; then | |
3024 | if test -n "$ac_tool_prefix"; then | |
dd184caf | 3025 | for ac_prog in cl.exe |
d9898ee8 | 3026 | do |
3027 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3028 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b0322a85 | 3029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3030 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3031 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3032 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3033 | else |
3034 | if test -n "$CC"; then | |
3035 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3036 | else | |
3037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3038 | for as_dir in $PATH | |
3039 | do | |
3040 | IFS=$as_save_IFS | |
3041 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3042 | for ac_exec_ext in '' $ac_executable_extensions; do |
3043 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3044 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
b0322a85 | 3045 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3046 | break 2 |
3047 | fi | |
3048 | done | |
b0322a85 | 3049 | done |
dd184caf | 3050 | IFS=$as_save_IFS |
d9898ee8 | 3051 | |
3052 | fi | |
3053 | fi | |
3054 | CC=$ac_cv_prog_CC | |
3055 | if test -n "$CC"; then | |
b0322a85 | 3056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3057 | $as_echo "$CC" >&6; } |
d9898ee8 | 3058 | else |
b0322a85 | 3059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3060 | $as_echo "no" >&6; } |
d9898ee8 | 3061 | fi |
3062 | ||
dd184caf | 3063 | |
d9898ee8 | 3064 | test -n "$CC" && break |
3065 | done | |
3066 | fi | |
3067 | if test -z "$CC"; then | |
3068 | ac_ct_CC=$CC | |
dd184caf | 3069 | for ac_prog in cl.exe |
d9898ee8 | 3070 | do |
3071 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3072 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 3073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3074 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3075 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8d138742 | 3076 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3077 | else |
3078 | if test -n "$ac_ct_CC"; then | |
3079 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3080 | else | |
3081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3082 | for as_dir in $PATH | |
3083 | do | |
3084 | IFS=$as_save_IFS | |
3085 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3086 | for ac_exec_ext in '' $ac_executable_extensions; do |
3087 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3088 | ac_cv_prog_ac_ct_CC="$ac_prog" |
b0322a85 | 3089 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3090 | break 2 |
3091 | fi | |
3092 | done | |
b0322a85 | 3093 | done |
dd184caf | 3094 | IFS=$as_save_IFS |
d9898ee8 | 3095 | |
3096 | fi | |
3097 | fi | |
3098 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3099 | if test -n "$ac_ct_CC"; then | |
b0322a85 | 3100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
8d138742 | 3101 | $as_echo "$ac_ct_CC" >&6; } |
d9898ee8 | 3102 | else |
b0322a85 | 3103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3104 | $as_echo "no" >&6; } |
d9898ee8 | 3105 | fi |
3106 | ||
dd184caf | 3107 | |
d9898ee8 | 3108 | test -n "$ac_ct_CC" && break |
3109 | done | |
3110 | ||
dd184caf | 3111 | if test "x$ac_ct_CC" = x; then |
3112 | CC="" | |
3113 | else | |
3114 | case $cross_compiling:$ac_tool_warned in | |
3115 | yes:) | |
b0322a85 | 3116 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 3117 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 3118 | ac_tool_warned=yes ;; |
3119 | esac | |
3120 | CC=$ac_ct_CC | |
3121 | fi | |
d9898ee8 | 3122 | fi |
3123 | ||
3124 | fi | |
3125 | ||
3126 | ||
b0322a85 | 3127 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3128 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3129 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3130 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3131 | |
3132 | # Provide some information about the compiler. | |
b0322a85 | 3133 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
8d138742 CE |
3134 | set X $ac_compile |
3135 | ac_compiler=$2 | |
b0322a85 CE |
3136 | for ac_option in --version -v -V -qversion; do |
3137 | { { ac_try="$ac_compiler $ac_option >&5" | |
dd184caf | 3138 | case "(($ac_try" in |
3139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3140 | *) ac_try_echo=$ac_try;; | |
3141 | esac | |
b0322a85 CE |
3142 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3143 | $as_echo "$ac_try_echo"; } >&5 | |
3144 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
d9898ee8 | 3145 | ac_status=$? |
b0322a85 CE |
3146 | if test -s conftest.err; then |
3147 | sed '10a\ | |
3148 | ... rest of stderr output deleted ... | |
3149 | 10q' conftest.err >conftest.er1 | |
3150 | cat conftest.er1 >&5 | |
3151 | fi | |
3152 | rm -f conftest.er1 conftest.err | |
3153 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3154 | test $ac_status = 0; } | |
3155 | done | |
d9898ee8 | 3156 | |
b0322a85 | 3157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3158 | /* end confdefs.h. */ |
3159 | ||
3160 | int | |
3161 | main () | |
3162 | { | |
3163 | ||
3164 | ; | |
3165 | return 0; | |
3166 | } | |
3167 | _ACEOF | |
3168 | ac_clean_files_save=$ac_clean_files | |
8d138742 | 3169 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
d9898ee8 | 3170 | # Try to create an executable without -o first, disregard a.out. |
3171 | # It will help us diagnose broken compilers, and finding out an intuition | |
3172 | # of exeext. | |
b0322a85 CE |
3173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3174 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
8d138742 CE |
3175 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3176 | ||
3177 | # The possible output files: | |
3178 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3179 | ||
dd184caf | 3180 | ac_rmfiles= |
3181 | for ac_file in $ac_files | |
3182 | do | |
3183 | case $ac_file in | |
8d138742 | 3184 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
dd184caf | 3185 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3186 | esac | |
3187 | done | |
3188 | rm -f $ac_rmfiles | |
3189 | ||
b0322a85 | 3190 | if { { ac_try="$ac_link_default" |
dd184caf | 3191 | case "(($ac_try" in |
3192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3193 | *) ac_try_echo=$ac_try;; | |
3194 | esac | |
b0322a85 CE |
3195 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3196 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3197 | (eval "$ac_link_default") 2>&5 |
d9898ee8 | 3198 | ac_status=$? |
b0322a85 CE |
3199 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3200 | test $ac_status = 0; }; then : | |
dd184caf | 3201 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3202 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3203 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3204 | # so that the user can short-circuit this test for compilers unknown to | |
3205 | # Autoconf. | |
3206 | for ac_file in $ac_files '' | |
d9898ee8 | 3207 | do |
3208 | test -f "$ac_file" || continue | |
3209 | case $ac_file in | |
8d138742 | 3210 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
d9898ee8 | 3211 | ;; |
3212 | [ab].out ) | |
3213 | # We found the default executable, but exeext='' is most | |
3214 | # certainly right. | |
3215 | break;; | |
3216 | *.* ) | |
b0322a85 | 3217 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
dd184caf | 3218 | then :; else |
3219 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3220 | fi | |
3221 | # We set ac_cv_exeext here because the later test for it is not | |
3222 | # safe: cross compilers may not add the suffix if given an `-o' | |
3223 | # argument, so we may need to know it at that point already. | |
3224 | # Even if this section looks crufty: it has the advantage of | |
3225 | # actually working. | |
d9898ee8 | 3226 | break;; |
3227 | * ) | |
3228 | break;; | |
3229 | esac | |
3230 | done | |
dd184caf | 3231 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3232 | ||
d9898ee8 | 3233 | else |
dd184caf | 3234 | ac_file='' |
3235 | fi | |
b0322a85 CE |
3236 | if test -z "$ac_file"; then : |
3237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3238 | $as_echo "no" >&6; } | |
3239 | $as_echo "$as_me: failed program was:" >&5 | |
d9898ee8 | 3240 | sed 's/^/| /' conftest.$ac_ext >&5 |
3241 | ||
b0322a85 | 3242 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3243 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3244 | as_fn_error 77 "C compiler cannot create executables |
3245 | See \`config.log' for more details" "$LINENO" 5; } | |
3246 | else | |
3247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3248 | $as_echo "yes" >&6; } | |
d9898ee8 | 3249 | fi |
b0322a85 CE |
3250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3251 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3253 | $as_echo "$ac_file" >&6; } | |
d9898ee8 | 3254 | ac_exeext=$ac_cv_exeext |
d9898ee8 | 3255 | |
8d138742 | 3256 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
d9898ee8 | 3257 | ac_clean_files=$ac_clean_files_save |
b0322a85 | 3258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
8d138742 | 3259 | $as_echo_n "checking for suffix of executables... " >&6; } |
b0322a85 | 3260 | if { { ac_try="$ac_link" |
dd184caf | 3261 | case "(($ac_try" in |
3262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3263 | *) ac_try_echo=$ac_try;; | |
3264 | esac | |
b0322a85 CE |
3265 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3266 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3267 | (eval "$ac_link") 2>&5 |
d9898ee8 | 3268 | ac_status=$? |
b0322a85 CE |
3269 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3270 | test $ac_status = 0; }; then : | |
d9898ee8 | 3271 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3272 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3273 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3274 | # `rm'. | |
3275 | for ac_file in conftest.exe conftest conftest.*; do | |
3276 | test -f "$ac_file" || continue | |
3277 | case $ac_file in | |
8d138742 | 3278 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
d9898ee8 | 3279 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
d9898ee8 | 3280 | break;; |
3281 | * ) break;; | |
3282 | esac | |
3283 | done | |
3284 | else | |
b0322a85 | 3285 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3286 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3287 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3288 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3289 | fi |
b0322a85 CE |
3290 | rm -f conftest conftest$ac_cv_exeext |
3291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
8d138742 | 3292 | $as_echo "$ac_cv_exeext" >&6; } |
d9898ee8 | 3293 | |
3294 | rm -f conftest.$ac_ext | |
3295 | EXEEXT=$ac_cv_exeext | |
3296 | ac_exeext=$EXEEXT | |
b0322a85 CE |
3297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3298 | /* end confdefs.h. */ | |
3299 | #include <stdio.h> | |
3300 | int | |
3301 | main () | |
3302 | { | |
3303 | FILE *f = fopen ("conftest.out", "w"); | |
3304 | return ferror (f) || fclose (f) != 0; | |
3305 | ||
3306 | ; | |
3307 | return 0; | |
3308 | } | |
3309 | _ACEOF | |
3310 | ac_clean_files="$ac_clean_files conftest.out" | |
3311 | # Check that the compiler produces executables we can run. If not, either | |
3312 | # the compiler is broken, or we cross compile. | |
3313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3314 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3315 | if test "$cross_compiling" != yes; then | |
3316 | { { ac_try="$ac_link" | |
3317 | case "(($ac_try" in | |
3318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3319 | *) ac_try_echo=$ac_try;; | |
3320 | esac | |
3321 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3322 | $as_echo "$ac_try_echo"; } >&5 | |
3323 | (eval "$ac_link") 2>&5 | |
3324 | ac_status=$? | |
3325 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3326 | test $ac_status = 0; } | |
3327 | if { ac_try='./conftest$ac_cv_exeext' | |
3328 | { { case "(($ac_try" in | |
3329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3330 | *) ac_try_echo=$ac_try;; | |
3331 | esac | |
3332 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3333 | $as_echo "$ac_try_echo"; } >&5 | |
3334 | (eval "$ac_try") 2>&5 | |
3335 | ac_status=$? | |
3336 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3337 | test $ac_status = 0; }; }; then | |
3338 | cross_compiling=no | |
3339 | else | |
3340 | if test "$cross_compiling" = maybe; then | |
3341 | cross_compiling=yes | |
3342 | else | |
3343 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3344 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3345 | as_fn_error $? "cannot run C compiled programs. | |
3346 | If you meant to cross compile, use \`--host'. | |
3347 | See \`config.log' for more details" "$LINENO" 5; } | |
3348 | fi | |
3349 | fi | |
3350 | fi | |
3351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3352 | $as_echo "$cross_compiling" >&6; } | |
3353 | ||
3354 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3355 | ac_clean_files=$ac_clean_files_save | |
3356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
8d138742 | 3357 | $as_echo_n "checking for suffix of object files... " >&6; } |
b0322a85 | 3358 | if ${ac_cv_objext+:} false; then : |
8d138742 | 3359 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3360 | else |
b0322a85 | 3361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3362 | /* end confdefs.h. */ |
3363 | ||
3364 | int | |
3365 | main () | |
3366 | { | |
3367 | ||
3368 | ; | |
3369 | return 0; | |
3370 | } | |
3371 | _ACEOF | |
3372 | rm -f conftest.o conftest.obj | |
b0322a85 | 3373 | if { { ac_try="$ac_compile" |
dd184caf | 3374 | case "(($ac_try" in |
3375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3376 | *) ac_try_echo=$ac_try;; | |
3377 | esac | |
b0322a85 CE |
3378 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3379 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3380 | (eval "$ac_compile") 2>&5 |
d9898ee8 | 3381 | ac_status=$? |
b0322a85 CE |
3382 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3383 | test $ac_status = 0; }; then : | |
dd184caf | 3384 | for ac_file in conftest.o conftest.obj conftest.*; do |
3385 | test -f "$ac_file" || continue; | |
d9898ee8 | 3386 | case $ac_file in |
8d138742 | 3387 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
d9898ee8 | 3388 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3389 | break;; | |
3390 | esac | |
3391 | done | |
3392 | else | |
8d138742 | 3393 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3394 | sed 's/^/| /' conftest.$ac_ext >&5 |
3395 | ||
b0322a85 | 3396 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3397 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3398 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3399 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3400 | fi |
d9898ee8 | 3401 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3402 | fi | |
b0322a85 | 3403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
8d138742 | 3404 | $as_echo "$ac_cv_objext" >&6; } |
d9898ee8 | 3405 | OBJEXT=$ac_cv_objext |
3406 | ac_objext=$OBJEXT | |
b0322a85 | 3407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
8d138742 | 3408 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
b0322a85 | 3409 | if ${ac_cv_c_compiler_gnu+:} false; then : |
8d138742 | 3410 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3411 | else |
b0322a85 | 3412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3413 | /* end confdefs.h. */ |
3414 | ||
3415 | int | |
3416 | main () | |
3417 | { | |
3418 | #ifndef __GNUC__ | |
3419 | choke me | |
3420 | #endif | |
3421 | ||
3422 | ; | |
3423 | return 0; | |
3424 | } | |
3425 | _ACEOF | |
b0322a85 | 3426 | if ac_fn_c_try_compile "$LINENO"; then : |
d9898ee8 | 3427 | ac_compiler_gnu=yes |
3428 | else | |
b0322a85 | 3429 | ac_compiler_gnu=no |
d9898ee8 | 3430 | fi |
dd184caf | 3431 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 3432 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3433 | ||
3434 | fi | |
b0322a85 | 3435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
8d138742 CE |
3436 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3437 | if test $ac_compiler_gnu = yes; then | |
3438 | GCC=yes | |
3439 | else | |
3440 | GCC= | |
3441 | fi | |
d9898ee8 | 3442 | ac_test_CFLAGS=${CFLAGS+set} |
3443 | ac_save_CFLAGS=$CFLAGS | |
b0322a85 | 3444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
8d138742 | 3445 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
b0322a85 | 3446 | if ${ac_cv_prog_cc_g+:} false; then : |
8d138742 | 3447 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3448 | else |
dd184caf | 3449 | ac_save_c_werror_flag=$ac_c_werror_flag |
3450 | ac_c_werror_flag=yes | |
3451 | ac_cv_prog_cc_g=no | |
3452 | CFLAGS="-g" | |
b0322a85 | 3453 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3454 | /* end confdefs.h. */ |
3455 | ||
3456 | int | |
3457 | main () | |
3458 | { | |
3459 | ||
3460 | ; | |
3461 | return 0; | |
3462 | } | |
3463 | _ACEOF | |
b0322a85 | 3464 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3465 | ac_cv_prog_cc_g=yes |
3466 | else | |
b0322a85 CE |
3467 | CFLAGS="" |
3468 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
dd184caf | 3469 | /* end confdefs.h. */ |
3470 | ||
3471 | int | |
3472 | main () | |
3473 | { | |
3474 | ||
3475 | ; | |
3476 | return 0; | |
3477 | } | |
3478 | _ACEOF | |
b0322a85 | 3479 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3480 | |
b0322a85 CE |
3481 | else |
3482 | ac_c_werror_flag=$ac_save_c_werror_flag | |
dd184caf | 3483 | CFLAGS="-g" |
b0322a85 | 3484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dd184caf | 3485 | /* end confdefs.h. */ |
3486 | ||
3487 | int | |
3488 | main () | |
3489 | { | |
3490 | ||
3491 | ; | |
3492 | return 0; | |
3493 | } | |
3494 | _ACEOF | |
b0322a85 | 3495 | if ac_fn_c_try_compile "$LINENO"; then : |
d9898ee8 | 3496 | ac_cv_prog_cc_g=yes |
dd184caf | 3497 | fi |
dd184caf | 3498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3499 | fi | |
dd184caf | 3500 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 3501 | fi |
dd184caf | 3502 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3503 | ac_c_werror_flag=$ac_save_c_werror_flag | |
d9898ee8 | 3504 | fi |
b0322a85 | 3505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
8d138742 | 3506 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
d9898ee8 | 3507 | if test "$ac_test_CFLAGS" = set; then |
3508 | CFLAGS=$ac_save_CFLAGS | |
3509 | elif test $ac_cv_prog_cc_g = yes; then | |
3510 | if test "$GCC" = yes; then | |
3511 | CFLAGS="-g -O2" | |
3512 | else | |
3513 | CFLAGS="-g" | |
3514 | fi | |
3515 | else | |
3516 | if test "$GCC" = yes; then | |
3517 | CFLAGS="-O2" | |
3518 | else | |
3519 | CFLAGS= | |
3520 | fi | |
3521 | fi | |
b0322a85 | 3522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
8d138742 | 3523 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
b0322a85 | 3524 | if ${ac_cv_prog_cc_c89+:} false; then : |
8d138742 | 3525 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3526 | else |
dd184caf | 3527 | ac_cv_prog_cc_c89=no |
d9898ee8 | 3528 | ac_save_CC=$CC |
b0322a85 | 3529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3530 | /* end confdefs.h. */ |
3531 | #include <stdarg.h> | |
3532 | #include <stdio.h> | |
b0322a85 | 3533 | struct stat; |
d9898ee8 | 3534 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3535 | struct buf { int x; }; | |
3536 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3537 | static char *e (p, i) | |
3538 | char **p; | |
3539 | int i; | |
3540 | { | |
3541 | return p[i]; | |
3542 | } | |
3543 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3544 | { | |
3545 | char *s; | |
3546 | va_list v; | |
3547 | va_start (v,p); | |
3548 | s = g (p, va_arg (v,int)); | |
3549 | va_end (v); | |
3550 | return s; | |
3551 | } | |
3552 | ||
3553 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3554 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3555 | These don't provoke an error unfortunately, instead are silently treated | |
dd184caf | 3556 | as 'x'. The following induces an error, until -std is added to get |
d9898ee8 | 3557 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3558 | array size at least. It's necessary to write '\x00'==0 to get something | |
dd184caf | 3559 | that's true only with -std. */ |
d9898ee8 | 3560 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3561 | ||
dd184caf | 3562 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3563 | inside strings and character constants. */ | |
3564 | #define FOO(x) 'x' | |
3565 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3566 | ||
d9898ee8 | 3567 | int test (int i, double x); |
3568 | struct s1 {int (*f) (int a);}; | |
3569 | struct s2 {int (*f) (double a);}; | |
3570 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3571 | int argc; | |
3572 | char **argv; | |
3573 | int | |
3574 | main () | |
3575 | { | |
3576 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3577 | ; | |
3578 | return 0; | |
3579 | } | |
3580 | _ACEOF | |
dd184caf | 3581 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3582 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
d9898ee8 | 3583 | do |
3584 | CC="$ac_save_CC $ac_arg" | |
b0322a85 | 3585 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3586 | ac_cv_prog_cc_c89=$ac_arg |
d9898ee8 | 3587 | fi |
dd184caf | 3588 | rm -f core conftest.err conftest.$ac_objext |
3589 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
d9898ee8 | 3590 | done |
dd184caf | 3591 | rm -f conftest.$ac_ext |
d9898ee8 | 3592 | CC=$ac_save_CC |
3593 | ||
3594 | fi | |
dd184caf | 3595 | # AC_CACHE_VAL |
3596 | case "x$ac_cv_prog_cc_c89" in | |
3597 | x) | |
b0322a85 | 3598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
8d138742 | 3599 | $as_echo "none needed" >&6; } ;; |
dd184caf | 3600 | xno) |
b0322a85 | 3601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
8d138742 | 3602 | $as_echo "unsupported" >&6; } ;; |
d9898ee8 | 3603 | *) |
dd184caf | 3604 | CC="$CC $ac_cv_prog_cc_c89" |
b0322a85 | 3605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
8d138742 | 3606 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
d9898ee8 | 3607 | esac |
b0322a85 | 3608 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
d9898ee8 | 3609 | |
b0322a85 | 3610 | fi |
d9898ee8 | 3611 | |
d9898ee8 | 3612 | ac_ext=c |
3613 | ac_cpp='$CPP $CPPFLAGS' | |
3614 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3615 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3616 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d50284c4 CE |
3617 | |
3618 | ac_ext=c | |
3619 | ac_cpp='$CPP $CPPFLAGS' | |
3620 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3621 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3622 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3624 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3625 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3626 | $as_echo_n "(cached) " >&6 | |
3627 | else | |
3628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3629 | /* end confdefs.h. */ | |
3630 | ||
3631 | int | |
3632 | main () | |
3633 | { | |
3634 | ||
3635 | ; | |
3636 | return 0; | |
3637 | } | |
3638 | _ACEOF | |
3639 | # Make sure it works both with $CC and with simple cc. | |
3640 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3641 | # compilers refuse to overwrite an existing .o file with -o, | |
3642 | # though they will create one. | |
3643 | am_cv_prog_cc_c_o=yes | |
3644 | for am_i in 1 2; do | |
3645 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3646 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3647 | ac_status=$? | |
3648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3649 | (exit $ac_status); } \ | |
3650 | && test -f conftest2.$ac_objext; then | |
3651 | : OK | |
3652 | else | |
3653 | am_cv_prog_cc_c_o=no | |
3654 | break | |
3655 | fi | |
3656 | done | |
3657 | rm -f core conftest* | |
3658 | unset am_i | |
3659 | fi | |
3660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3661 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3662 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3663 | # Losing compiler, so override with the script. | |
3664 | # FIXME: It is wrong to rewrite CC. | |
3665 | # But if we don't then we get into trouble of one sort or another. | |
3666 | # A longer-term fix would be to have automake use am__CC in this case, | |
3667 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3668 | CC="$am_aux_dir/compile $CC" | |
3669 | fi | |
3670 | ac_ext=c | |
3671 | ac_cpp='$CPP $CPPFLAGS' | |
3672 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3673 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3674 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3675 | ||
d9898ee8 | 3676 | DEPDIR="${am__leading_dot}deps" |
3677 | ||
dd184caf | 3678 | ac_config_commands="$ac_config_commands depfiles" |
d9898ee8 | 3679 | |
3680 | ||
3681 | am_make=${MAKE-make} | |
3682 | cat > confinc << 'END' | |
3683 | am__doit: | |
8d138742 | 3684 | @echo this is the am__doit target |
d9898ee8 | 3685 | .PHONY: am__doit |
3686 | END | |
3687 | # If we don't find an include directive, just comment out the code. | |
b0322a85 | 3688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
8d138742 | 3689 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
d9898ee8 | 3690 | am__include="#" |
3691 | am__quote= | |
3692 | _am_result=none | |
3693 | # First try GNU make style include. | |
3694 | echo "include confinc" > confmf | |
b0322a85 | 3695 | # Ignore all kinds of additional output from 'make'. |
8d138742 CE |
3696 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3697 | *the\ am__doit\ target*) | |
3698 | am__include=include | |
3699 | am__quote= | |
3700 | _am_result=GNU | |
3701 | ;; | |
3702 | esac | |
d9898ee8 | 3703 | # Now try BSD make style include. |
3704 | if test "$am__include" = "#"; then | |
3705 | echo '.include "confinc"' > confmf | |
8d138742 CE |
3706 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3707 | *the\ am__doit\ target*) | |
3708 | am__include=.include | |
3709 | am__quote="\"" | |
3710 | _am_result=BSD | |
3711 | ;; | |
3712 | esac | |
d9898ee8 | 3713 | fi |
3714 | ||
3715 | ||
b0322a85 | 3716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
8d138742 | 3717 | $as_echo "$_am_result" >&6; } |
d9898ee8 | 3718 | rm -f confinc confmf |
3719 | ||
dd184caf | 3720 | # Check whether --enable-dependency-tracking was given. |
b0322a85 | 3721 | if test "${enable_dependency_tracking+set}" = set; then : |
dd184caf | 3722 | enableval=$enable_dependency_tracking; |
3723 | fi | |
d9898ee8 | 3724 | |
d9898ee8 | 3725 | if test "x$enable_dependency_tracking" != xno; then |
3726 | am_depcomp="$ac_aux_dir/depcomp" | |
3727 | AMDEPBACKSLASH='\' | |
b0322a85 | 3728 | am__nodep='_no' |
d9898ee8 | 3729 | fi |
dd184caf | 3730 | if test "x$enable_dependency_tracking" != xno; then |
d9898ee8 | 3731 | AMDEP_TRUE= |
3732 | AMDEP_FALSE='#' | |
3733 | else | |
3734 | AMDEP_TRUE='#' | |
3735 | AMDEP_FALSE= | |
3736 | fi | |
3737 | ||
3738 | ||
3739 | ||
d9898ee8 | 3740 | depcc="$CC" am_compiler_list= |
3741 | ||
b0322a85 | 3742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
8d138742 | 3743 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
b0322a85 | 3744 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
8d138742 | 3745 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3746 | else |
3747 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3748 | # We make a subdir and do the tests there. Otherwise we can end up | |
3749 | # making bogus files that we don't know about and never remove. For | |
3750 | # instance it was reported that on HP-UX the gcc test will end up | |
b0322a85 CE |
3751 | # making a dummy file named 'D' -- because '-MD' means "put the output |
3752 | # in D". | |
3753 | rm -rf conftest.dir | |
d9898ee8 | 3754 | mkdir conftest.dir |
3755 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3756 | # using a relative directory. | |
3757 | cp "$am_depcomp" conftest.dir | |
3758 | cd conftest.dir | |
3759 | # We will build objects and dependencies in a subdirectory because | |
3760 | # it helps to detect inapplicable dependency modes. For instance | |
3761 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3762 | # side effect of compilation, but ICC will put the dependencies in | |
3763 | # the current directory while Tru64 will put them in the object | |
3764 | # directory. | |
3765 | mkdir sub | |
3766 | ||
3767 | am_cv_CC_dependencies_compiler_type=none | |
3768 | if test "$am_compiler_list" = ""; then | |
3769 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3770 | fi | |
8d138742 CE |
3771 | am__universal=false |
3772 | case " $depcc " in #( | |
3773 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3774 | esac | |
3775 | ||
d9898ee8 | 3776 | for depmode in $am_compiler_list; do |
3777 | # Setup a source with many dependencies, because some compilers | |
3778 | # like to wrap large dependency lists on column 80 (with \), and | |
3779 | # we should not choose a depcomp mode which is confused by this. | |
3780 | # | |
3781 | # We need to recreate these files for each test, as the compiler may | |
3782 | # overwrite some of them when testing with obscure command lines. | |
3783 | # This happens at least with the AIX C compiler. | |
3784 | : > sub/conftest.c | |
3785 | for i in 1 2 3 4 5 6; do | |
3786 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
b0322a85 CE |
3787 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
3788 | # Solaris 10 /bin/sh. | |
3789 | echo '/* dummy */' > sub/conftst$i.h | |
d9898ee8 | 3790 | done |
3791 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3792 | ||
b0322a85 | 3793 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
8d138742 | 3794 | # mode. It turns out that the SunPro C++ compiler does not properly |
b0322a85 CE |
3795 | # handle '-M -o', and we need to detect this. Also, some Intel |
3796 | # versions had trouble with output in subdirs. | |
8d138742 CE |
3797 | am__obj=sub/conftest.${OBJEXT-o} |
3798 | am__minus_obj="-o $am__obj" | |
d9898ee8 | 3799 | case $depmode in |
8d138742 CE |
3800 | gcc) |
3801 | # This depmode causes a compiler race in universal mode. | |
3802 | test "$am__universal" = false || continue | |
3803 | ;; | |
d9898ee8 | 3804 | nosideeffect) |
b0322a85 CE |
3805 | # After this tag, mechanisms are not by side-effect, so they'll |
3806 | # only be used when explicitly requested. | |
d9898ee8 | 3807 | if test "x$enable_dependency_tracking" = xyes; then |
3808 | continue | |
3809 | else | |
3810 | break | |
3811 | fi | |
3812 | ;; | |
b0322a85 CE |
3813 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
3814 | # This compiler won't grok '-c -o', but also, the minuso test has | |
8d138742 CE |
3815 | # not run yet. These depmodes are late enough in the game, and |
3816 | # so weak that their functioning should not be impacted. | |
3817 | am__obj=conftest.${OBJEXT-o} | |
3818 | am__minus_obj= | |
3819 | ;; | |
d9898ee8 | 3820 | none) break ;; |
3821 | esac | |
d9898ee8 | 3822 | if depmode=$depmode \ |
8d138742 | 3823 | source=sub/conftest.c object=$am__obj \ |
d9898ee8 | 3824 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
8d138742 | 3825 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
d9898ee8 | 3826 | >/dev/null 2>conftest.err && |
dd184caf | 3827 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 3828 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
8d138742 | 3829 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 3830 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3831 | # icc doesn't choke on unknown options, it will just issue warnings | |
3832 | # or remarks (even with -Werror). So we grep stderr for any message | |
3833 | # that says an option was ignored or not supported. | |
3834 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3835 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3836 | # The diagnosis changed in icc 8.0: | |
3837 | # icc: Command line remark: option '-MP' not supported | |
3838 | if (grep 'ignoring option' conftest.err || | |
3839 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3840 | am_cv_CC_dependencies_compiler_type=$depmode | |
3841 | break | |
3842 | fi | |
3843 | fi | |
3844 | done | |
3845 | ||
3846 | cd .. | |
3847 | rm -rf conftest.dir | |
3848 | else | |
3849 | am_cv_CC_dependencies_compiler_type=none | |
3850 | fi | |
3851 | ||
3852 | fi | |
b0322a85 | 3853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
8d138742 | 3854 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
d9898ee8 | 3855 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3856 | ||
dd184caf | 3857 | if |
d9898ee8 | 3858 | test "x$enable_dependency_tracking" != xno \ |
3859 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3860 | am__fastdepCC_TRUE= | |
3861 | am__fastdepCC_FALSE='#' | |
3862 | else | |
3863 | am__fastdepCC_TRUE='#' | |
3864 | am__fastdepCC_FALSE= | |
3865 | fi | |
3866 | ||
3867 | ||
d9898ee8 | 3868 | |
b0322a85 | 3869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
8d138742 | 3870 | $as_echo_n "checking whether ln -s works... " >&6; } |
d9898ee8 | 3871 | LN_S=$as_ln_s |
3872 | if test "$LN_S" = "ln -s"; then | |
b0322a85 | 3873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 3874 | $as_echo "yes" >&6; } |
d9898ee8 | 3875 | else |
b0322a85 | 3876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
8d138742 | 3877 | $as_echo "no, using $LN_S" >&6; } |
d9898ee8 | 3878 | fi |
3879 | ||
3880 | for ac_prog in perl5 perl | |
3881 | do | |
3882 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3883 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 3884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3885 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3886 | if ${ac_cv_path_PERL+:} false; then : |
8d138742 | 3887 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3888 | else |
3889 | case $PERL in | |
3890 | [\\/]* | ?:[\\/]*) | |
3891 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | |
3892 | ;; | |
3893 | *) | |
3894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3895 | for as_dir in $LPATH | |
3896 | do | |
3897 | IFS=$as_save_IFS | |
3898 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3899 | for ac_exec_ext in '' $ac_executable_extensions; do |
3900 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3901 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
b0322a85 | 3902 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3903 | break 2 |
3904 | fi | |
3905 | done | |
b0322a85 | 3906 | done |
dd184caf | 3907 | IFS=$as_save_IFS |
d9898ee8 | 3908 | |
3909 | ;; | |
3910 | esac | |
3911 | fi | |
3912 | PERL=$ac_cv_path_PERL | |
d9898ee8 | 3913 | if test -n "$PERL"; then |
b0322a85 | 3914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
8d138742 | 3915 | $as_echo "$PERL" >&6; } |
d9898ee8 | 3916 | else |
b0322a85 | 3917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3918 | $as_echo "no" >&6; } |
d9898ee8 | 3919 | fi |
3920 | ||
dd184caf | 3921 | |
d9898ee8 | 3922 | test -n "$PERL" && break |
3923 | done | |
3924 | test -n "$PERL" || PERL="perl" | |
3925 | ||
3926 | ||
3927 | for ac_prog in cat | |
3928 | do | |
3929 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3930 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 3931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3932 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3933 | if ${ac_cv_path_CAT+:} false; then : |
8d138742 | 3934 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3935 | else |
3936 | case $CAT in | |
3937 | [\\/]* | ?:[\\/]*) | |
3938 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. | |
3939 | ;; | |
3940 | *) | |
3941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3942 | for as_dir in $PATH | |
3943 | do | |
3944 | IFS=$as_save_IFS | |
3945 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3946 | for ac_exec_ext in '' $ac_executable_extensions; do |
3947 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3948 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" |
b0322a85 | 3949 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3950 | break 2 |
3951 | fi | |
3952 | done | |
b0322a85 | 3953 | done |
dd184caf | 3954 | IFS=$as_save_IFS |
d9898ee8 | 3955 | |
3956 | ;; | |
3957 | esac | |
3958 | fi | |
3959 | CAT=$ac_cv_path_CAT | |
d9898ee8 | 3960 | if test -n "$CAT"; then |
b0322a85 | 3961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 |
8d138742 | 3962 | $as_echo "$CAT" >&6; } |
d9898ee8 | 3963 | else |
b0322a85 | 3964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3965 | $as_echo "no" >&6; } |
d9898ee8 | 3966 | fi |
3967 | ||
dd184caf | 3968 | |
d9898ee8 | 3969 | test -n "$CAT" && break |
3970 | done | |
3971 | test -n "$CAT" || CAT="cat" | |
3972 | ||
8d138742 | 3973 | enable_dlopen=yes |
d9898ee8 | 3974 | |
3975 | ||
d9898ee8 | 3976 | |
8d138742 CE |
3977 | case `pwd` in |
3978 | *\ * | *\ *) | |
b0322a85 | 3979 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
8d138742 CE |
3980 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
3981 | esac | |
dd184caf | 3982 | |
d9898ee8 | 3983 | |
dd184caf | 3984 | |
d50284c4 CE |
3985 | macro_version='2.4.6' |
3986 | macro_revision='2.4.6' | |
dd184caf | 3987 | |
d9898ee8 | 3988 | |
8d138742 CE |
3989 | |
3990 | ||
3991 | ||
3992 | ||
3993 | ||
3994 | ||
3995 | ||
3996 | ||
3997 | ||
3998 | ||
3999 | ||
d50284c4 | 4000 | ltmain=$ac_aux_dir/ltmain.sh |
8d138742 | 4001 | |
d9898ee8 | 4002 | # Make sure we can run config.sub. |
dd184caf | 4003 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
b0322a85 | 4004 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
d9898ee8 | 4005 | |
b0322a85 | 4006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
8d138742 | 4007 | $as_echo_n "checking build system type... " >&6; } |
b0322a85 | 4008 | if ${ac_cv_build+:} false; then : |
8d138742 | 4009 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4010 | else |
dd184caf | 4011 | ac_build_alias=$build_alias |
4012 | test "x$ac_build_alias" = x && | |
4013 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
4014 | test "x$ac_build_alias" = x && | |
b0322a85 | 4015 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
dd184caf | 4016 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
b0322a85 | 4017 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
d9898ee8 | 4018 | |
4019 | fi | |
b0322a85 | 4020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
8d138742 | 4021 | $as_echo "$ac_cv_build" >&6; } |
dd184caf | 4022 | case $ac_cv_build in |
4023 | *-*-*) ;; | |
b0322a85 | 4024 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
dd184caf | 4025 | esac |
d9898ee8 | 4026 | build=$ac_cv_build |
dd184caf | 4027 | ac_save_IFS=$IFS; IFS='-' |
4028 | set x $ac_cv_build | |
4029 | shift | |
4030 | build_cpu=$1 | |
4031 | build_vendor=$2 | |
4032 | shift; shift | |
4033 | # Remember, the first character of IFS is used to create $*, | |
4034 | # except with old shells: | |
4035 | build_os=$* | |
4036 | IFS=$ac_save_IFS | |
4037 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
4038 | ||
4039 | ||
b0322a85 | 4040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
8d138742 | 4041 | $as_echo_n "checking host system type... " >&6; } |
b0322a85 | 4042 | if ${ac_cv_host+:} false; then : |
8d138742 | 4043 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4044 | else |
dd184caf | 4045 | if test "x$host_alias" = x; then |
4046 | ac_cv_host=$ac_cv_build | |
4047 | else | |
4048 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
b0322a85 | 4049 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
dd184caf | 4050 | fi |
d9898ee8 | 4051 | |
4052 | fi | |
b0322a85 | 4053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
8d138742 | 4054 | $as_echo "$ac_cv_host" >&6; } |
dd184caf | 4055 | case $ac_cv_host in |
4056 | *-*-*) ;; | |
b0322a85 | 4057 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
dd184caf | 4058 | esac |
d9898ee8 | 4059 | host=$ac_cv_host |
dd184caf | 4060 | ac_save_IFS=$IFS; IFS='-' |
4061 | set x $ac_cv_host | |
4062 | shift | |
4063 | host_cpu=$1 | |
4064 | host_vendor=$2 | |
4065 | shift; shift | |
4066 | # Remember, the first character of IFS is used to create $*, | |
4067 | # except with old shells: | |
4068 | host_os=$* | |
4069 | IFS=$ac_save_IFS | |
4070 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
4071 | ||
4072 | ||
b0322a85 CE |
4073 | # Backslashify metacharacters that are still active within |
4074 | # double-quoted strings. | |
4075 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4076 | ||
4077 | # Same as above, but do not quote variable references. | |
4078 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4079 | ||
4080 | # Sed substitution to delay expansion of an escaped shell variable in a | |
4081 | # double_quote_subst'ed string. | |
4082 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4083 | ||
4084 | # Sed substitution to delay expansion of an escaped single quote. | |
4085 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4086 | ||
4087 | # Sed substitution to avoid accidental globbing in evaled expressions | |
4088 | no_glob_subst='s/\*/\\\*/g' | |
4089 | ||
4090 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4091 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4092 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4093 | ||
4094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4095 | $as_echo_n "checking how to print strings... " >&6; } | |
4096 | # Test print first, because it will be a builtin if present. | |
4097 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
4098 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4099 | ECHO='print -r --' | |
4100 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4101 | ECHO='printf %s\n' | |
4102 | else | |
4103 | # Use this function as a fallback that always works. | |
4104 | func_fallback_echo () | |
4105 | { | |
4106 | eval 'cat <<_LTECHO_EOF | |
4107 | $1 | |
4108 | _LTECHO_EOF' | |
4109 | } | |
4110 | ECHO='func_fallback_echo' | |
4111 | fi | |
4112 | ||
4113 | # func_echo_all arg... | |
4114 | # Invoke $ECHO with all args, space-separated. | |
4115 | func_echo_all () | |
4116 | { | |
4117 | $ECHO "" | |
4118 | } | |
4119 | ||
d50284c4 | 4120 | case $ECHO in |
b0322a85 CE |
4121 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
4122 | $as_echo "printf" >&6; } ;; | |
4123 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4124 | $as_echo "print -r" >&6; } ;; | |
4125 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4126 | $as_echo "cat" >&6; } ;; | |
4127 | esac | |
4128 | ||
4129 | ||
4130 | ||
4131 | ||
4132 | ||
4133 | ||
4134 | ||
4135 | ||
4136 | ||
4137 | ||
4138 | ||
4139 | ||
4140 | ||
4141 | ||
4142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
8d138742 | 4143 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
b0322a85 | 4144 | if ${ac_cv_path_SED+:} false; then : |
8d138742 CE |
4145 | $as_echo_n "(cached) " >&6 |
4146 | else | |
4147 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4148 | for ac_i in 1 2 3 4 5 6 7; do | |
4149 | ac_script="$ac_script$as_nl$ac_script" | |
4150 | done | |
4151 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
b0322a85 | 4152 | { ac_script=; unset ac_script;} |
8d138742 CE |
4153 | if test -z "$SED"; then |
4154 | ac_path_SED_found=false | |
4155 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d9898ee8 | 4157 | for as_dir in $PATH |
4158 | do | |
4159 | IFS=$as_save_IFS | |
4160 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4161 | for ac_prog in sed gsed; do |
d9898ee8 | 4162 | for ac_exec_ext in '' $ac_executable_extensions; do |
8d138742 | 4163 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
b0322a85 | 4164 | as_fn_executable_p "$ac_path_SED" || continue |
8d138742 CE |
4165 | # Check for GNU ac_path_SED and select it if it is found. |
4166 | # Check for GNU $ac_path_SED | |
4167 | case `"$ac_path_SED" --version 2>&1` in | |
4168 | *GNU*) | |
4169 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4170 | *) | |
4171 | ac_count=0 | |
4172 | $as_echo_n 0123456789 >"conftest.in" | |
4173 | while : | |
4174 | do | |
4175 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4176 | mv "conftest.tmp" "conftest.in" | |
4177 | cp "conftest.in" "conftest.nl" | |
4178 | $as_echo '' >> "conftest.nl" | |
4179 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4180 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4181 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
8d138742 CE |
4182 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
4183 | # Best one so far, save it but keep looking for a better one | |
4184 | ac_cv_path_SED="$ac_path_SED" | |
4185 | ac_path_SED_max=$ac_count | |
4186 | fi | |
4187 | # 10*(2^10) chars as input seems more than enough | |
4188 | test $ac_count -gt 10 && break | |
4189 | done | |
4190 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4191 | esac | |
4192 | ||
4193 | $ac_path_SED_found && break 3 | |
d9898ee8 | 4194 | done |
4195 | done | |
b0322a85 | 4196 | done |
d9898ee8 | 4197 | IFS=$as_save_IFS |
8d138742 | 4198 | if test -z "$ac_cv_path_SED"; then |
b0322a85 | 4199 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
d9898ee8 | 4200 | fi |
8d138742 CE |
4201 | else |
4202 | ac_cv_path_SED=$SED | |
4203 | fi | |
d9898ee8 | 4204 | |
4205 | fi | |
b0322a85 | 4206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
8d138742 CE |
4207 | $as_echo "$ac_cv_path_SED" >&6; } |
4208 | SED="$ac_cv_path_SED" | |
4209 | rm -f conftest.sed | |
4210 | ||
4211 | test -z "$SED" && SED=sed | |
4212 | Xsed="$SED -e 1s/^X//" | |
d9898ee8 | 4213 | |
d9898ee8 | 4214 | |
dd184caf | 4215 | |
8d138742 CE |
4216 | |
4217 | ||
4218 | ||
4219 | ||
4220 | ||
4221 | ||
4222 | ||
4223 | ||
b0322a85 | 4224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
8d138742 | 4225 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
b0322a85 | 4226 | if ${ac_cv_path_GREP+:} false; then : |
8d138742 | 4227 | $as_echo_n "(cached) " >&6 |
dd184caf | 4228 | else |
8d138742 | 4229 | if test -z "$GREP"; then |
dd184caf | 4230 | ac_path_GREP_found=false |
8d138742 CE |
4231 | # Loop through the user's path and test for each of PROGNAME-LIST |
4232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 4233 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4234 | do | |
4235 | IFS=$as_save_IFS | |
4236 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4237 | for ac_prog in grep ggrep; do |
8d138742 CE |
4238 | for ac_exec_ext in '' $ac_executable_extensions; do |
4239 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4240 | as_fn_executable_p "$ac_path_GREP" || continue |
8d138742 | 4241 | # Check for GNU ac_path_GREP and select it if it is found. |
dd184caf | 4242 | # Check for GNU $ac_path_GREP |
4243 | case `"$ac_path_GREP" --version 2>&1` in | |
4244 | *GNU*) | |
4245 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4246 | *) | |
4247 | ac_count=0 | |
8d138742 | 4248 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4249 | while : |
4250 | do | |
4251 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4252 | mv "conftest.tmp" "conftest.in" | |
4253 | cp "conftest.in" "conftest.nl" | |
8d138742 | 4254 | $as_echo 'GREP' >> "conftest.nl" |
dd184caf | 4255 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4256 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4257 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
dd184caf | 4258 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4259 | # Best one so far, save it but keep looking for a better one | |
4260 | ac_cv_path_GREP="$ac_path_GREP" | |
4261 | ac_path_GREP_max=$ac_count | |
4262 | fi | |
4263 | # 10*(2^10) chars as input seems more than enough | |
4264 | test $ac_count -gt 10 && break | |
4265 | done | |
4266 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4267 | esac | |
4268 | ||
8d138742 CE |
4269 | $ac_path_GREP_found && break 3 |
4270 | done | |
dd184caf | 4271 | done |
b0322a85 | 4272 | done |
dd184caf | 4273 | IFS=$as_save_IFS |
8d138742 | 4274 | if test -z "$ac_cv_path_GREP"; then |
b0322a85 | 4275 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 | 4276 | fi |
dd184caf | 4277 | else |
4278 | ac_cv_path_GREP=$GREP | |
4279 | fi | |
4280 | ||
dd184caf | 4281 | fi |
b0322a85 | 4282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
8d138742 | 4283 | $as_echo "$ac_cv_path_GREP" >&6; } |
dd184caf | 4284 | GREP="$ac_cv_path_GREP" |
4285 | ||
d9898ee8 | 4286 | |
b0322a85 | 4287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
8d138742 | 4288 | $as_echo_n "checking for egrep... " >&6; } |
b0322a85 | 4289 | if ${ac_cv_path_EGREP+:} false; then : |
8d138742 | 4290 | $as_echo_n "(cached) " >&6 |
dd184caf | 4291 | else |
4292 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4293 | then ac_cv_path_EGREP="$GREP -E" | |
4294 | else | |
8d138742 | 4295 | if test -z "$EGREP"; then |
dd184caf | 4296 | ac_path_EGREP_found=false |
8d138742 CE |
4297 | # Loop through the user's path and test for each of PROGNAME-LIST |
4298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 4299 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4300 | do | |
4301 | IFS=$as_save_IFS | |
4302 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4303 | for ac_prog in egrep; do |
8d138742 CE |
4304 | for ac_exec_ext in '' $ac_executable_extensions; do |
4305 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4306 | as_fn_executable_p "$ac_path_EGREP" || continue |
8d138742 | 4307 | # Check for GNU ac_path_EGREP and select it if it is found. |
dd184caf | 4308 | # Check for GNU $ac_path_EGREP |
4309 | case `"$ac_path_EGREP" --version 2>&1` in | |
4310 | *GNU*) | |
4311 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4312 | *) | |
4313 | ac_count=0 | |
8d138742 | 4314 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4315 | while : |
4316 | do | |
4317 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4318 | mv "conftest.tmp" "conftest.in" | |
4319 | cp "conftest.in" "conftest.nl" | |
8d138742 | 4320 | $as_echo 'EGREP' >> "conftest.nl" |
dd184caf | 4321 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4322 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4323 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
dd184caf | 4324 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4325 | # Best one so far, save it but keep looking for a better one | |
4326 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4327 | ac_path_EGREP_max=$ac_count | |
d9898ee8 | 4328 | fi |
dd184caf | 4329 | # 10*(2^10) chars as input seems more than enough |
4330 | test $ac_count -gt 10 && break | |
4331 | done | |
4332 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4333 | esac | |
4334 | ||
8d138742 CE |
4335 | $ac_path_EGREP_found && break 3 |
4336 | done | |
dd184caf | 4337 | done |
b0322a85 | 4338 | done |
dd184caf | 4339 | IFS=$as_save_IFS |
8d138742 | 4340 | if test -z "$ac_cv_path_EGREP"; then |
b0322a85 | 4341 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 CE |
4342 | fi |
4343 | else | |
4344 | ac_cv_path_EGREP=$EGREP | |
dd184caf | 4345 | fi |
4346 | ||
8d138742 | 4347 | fi |
dd184caf | 4348 | fi |
b0322a85 | 4349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
8d138742 CE |
4350 | $as_echo "$ac_cv_path_EGREP" >&6; } |
4351 | EGREP="$ac_cv_path_EGREP" | |
dd184caf | 4352 | |
8d138742 | 4353 | |
b0322a85 | 4354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
8d138742 | 4355 | $as_echo_n "checking for fgrep... " >&6; } |
b0322a85 | 4356 | if ${ac_cv_path_FGREP+:} false; then : |
8d138742 | 4357 | $as_echo_n "(cached) " >&6 |
dd184caf | 4358 | else |
8d138742 CE |
4359 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
4360 | then ac_cv_path_FGREP="$GREP -F" | |
4361 | else | |
4362 | if test -z "$FGREP"; then | |
4363 | ac_path_FGREP_found=false | |
4364 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4366 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4367 | do | |
4368 | IFS=$as_save_IFS | |
4369 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4370 | for ac_prog in fgrep; do |
8d138742 CE |
4371 | for ac_exec_ext in '' $ac_executable_extensions; do |
4372 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4373 | as_fn_executable_p "$ac_path_FGREP" || continue |
8d138742 CE |
4374 | # Check for GNU ac_path_FGREP and select it if it is found. |
4375 | # Check for GNU $ac_path_FGREP | |
4376 | case `"$ac_path_FGREP" --version 2>&1` in | |
4377 | *GNU*) | |
4378 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4379 | *) | |
4380 | ac_count=0 | |
4381 | $as_echo_n 0123456789 >"conftest.in" | |
4382 | while : | |
4383 | do | |
4384 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4385 | mv "conftest.tmp" "conftest.in" | |
4386 | cp "conftest.in" "conftest.nl" | |
4387 | $as_echo 'FGREP' >> "conftest.nl" | |
4388 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4389 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4390 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
8d138742 CE |
4391 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
4392 | # Best one so far, save it but keep looking for a better one | |
4393 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4394 | ac_path_FGREP_max=$ac_count | |
4395 | fi | |
4396 | # 10*(2^10) chars as input seems more than enough | |
4397 | test $ac_count -gt 10 && break | |
4398 | done | |
4399 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4400 | esac | |
dd184caf | 4401 | |
8d138742 CE |
4402 | $ac_path_FGREP_found && break 3 |
4403 | done | |
4404 | done | |
b0322a85 | 4405 | done |
8d138742 CE |
4406 | IFS=$as_save_IFS |
4407 | if test -z "$ac_cv_path_FGREP"; then | |
b0322a85 | 4408 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 CE |
4409 | fi |
4410 | else | |
4411 | ac_cv_path_FGREP=$FGREP | |
4412 | fi | |
dd184caf | 4413 | |
4414 | fi | |
d9898ee8 | 4415 | fi |
b0322a85 | 4416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
8d138742 CE |
4417 | $as_echo "$ac_cv_path_FGREP" >&6; } |
4418 | FGREP="$ac_cv_path_FGREP" | |
4419 | ||
4420 | ||
4421 | test -z "$GREP" && GREP=grep | |
4422 | ||
4423 | ||
4424 | ||
4425 | ||
4426 | ||
4427 | ||
4428 | ||
4429 | ||
4430 | ||
4431 | ||
4432 | ||
4433 | ||
4434 | ||
4435 | ||
4436 | ||
4437 | ||
d9898ee8 | 4438 | |
4439 | ||
4440 | ||
dd184caf | 4441 | # Check whether --with-gnu-ld was given. |
b0322a85 | 4442 | if test "${with_gnu_ld+set}" = set; then : |
d50284c4 | 4443 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
d9898ee8 | 4444 | else |
4445 | with_gnu_ld=no | |
dd184caf | 4446 | fi |
4447 | ||
d9898ee8 | 4448 | ac_prog=ld |
d50284c4 | 4449 | if test yes = "$GCC"; then |
d9898ee8 | 4450 | # Check if gcc -print-prog-name=ld gives a path. |
b0322a85 | 4451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
8d138742 | 4452 | $as_echo_n "checking for ld used by $CC... " >&6; } |
d9898ee8 | 4453 | case $host in |
4454 | *-*-mingw*) | |
d50284c4 | 4455 | # gcc leaves a trailing carriage return, which upsets mingw |
d9898ee8 | 4456 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
4457 | *) | |
4458 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4459 | esac | |
4460 | case $ac_prog in | |
4461 | # Accept absolute paths. | |
4462 | [\\/]* | ?:[\\/]*) | |
4463 | re_direlt='/[^/][^/]*/\.\./' | |
4464 | # Canonicalize the pathname of ld | |
8d138742 CE |
4465 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
4466 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4467 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
d9898ee8 | 4468 | done |
d50284c4 | 4469 | test -z "$LD" && LD=$ac_prog |
d9898ee8 | 4470 | ;; |
4471 | "") | |
4472 | # If it fails, then pretend we aren't using GCC. | |
4473 | ac_prog=ld | |
4474 | ;; | |
4475 | *) | |
4476 | # If it is relative, then search for the first ld in PATH. | |
4477 | with_gnu_ld=unknown | |
4478 | ;; | |
4479 | esac | |
d50284c4 | 4480 | elif test yes = "$with_gnu_ld"; then |
b0322a85 | 4481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
8d138742 | 4482 | $as_echo_n "checking for GNU ld... " >&6; } |
d9898ee8 | 4483 | else |
b0322a85 | 4484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
8d138742 | 4485 | $as_echo_n "checking for non-GNU ld... " >&6; } |
d9898ee8 | 4486 | fi |
b0322a85 | 4487 | if ${lt_cv_path_LD+:} false; then : |
8d138742 | 4488 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4489 | else |
4490 | if test -z "$LD"; then | |
d50284c4 | 4491 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
d9898ee8 | 4492 | for ac_dir in $PATH; do |
d50284c4 | 4493 | IFS=$lt_save_ifs |
d9898ee8 | 4494 | test -z "$ac_dir" && ac_dir=. |
4495 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
d50284c4 | 4496 | lt_cv_path_LD=$ac_dir/$ac_prog |
d9898ee8 | 4497 | # Check to see if the program is GNU ld. I'd rather use --version, |
4498 | # but apparently some variants of GNU ld only accept -v. | |
4499 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4500 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4501 | *GNU* | *'with BFD'*) | |
d50284c4 | 4502 | test no != "$with_gnu_ld" && break |
d9898ee8 | 4503 | ;; |
4504 | *) | |
d50284c4 | 4505 | test yes != "$with_gnu_ld" && break |
d9898ee8 | 4506 | ;; |
4507 | esac | |
4508 | fi | |
4509 | done | |
d50284c4 | 4510 | IFS=$lt_save_ifs |
d9898ee8 | 4511 | else |
d50284c4 | 4512 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
d9898ee8 | 4513 | fi |
4514 | fi | |
4515 | ||
d50284c4 | 4516 | LD=$lt_cv_path_LD |
d9898ee8 | 4517 | if test -n "$LD"; then |
b0322a85 | 4518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8d138742 | 4519 | $as_echo "$LD" >&6; } |
d9898ee8 | 4520 | else |
b0322a85 | 4521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 4522 | $as_echo "no" >&6; } |
d9898ee8 | 4523 | fi |
b0322a85 CE |
4524 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
4525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
8d138742 | 4526 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
b0322a85 | 4527 | if ${lt_cv_prog_gnu_ld+:} false; then : |
8d138742 | 4528 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4529 | else |
4530 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4531 | case `$LD -v 2>&1 </dev/null` in | |
4532 | *GNU* | *'with BFD'*) | |
4533 | lt_cv_prog_gnu_ld=yes | |
4534 | ;; | |
4535 | *) | |
4536 | lt_cv_prog_gnu_ld=no | |
4537 | ;; | |
4538 | esac | |
4539 | fi | |
b0322a85 | 4540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
8d138742 | 4541 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 | 4542 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4543 | ||
4544 | ||
d9898ee8 | 4545 | |
8d138742 CE |
4546 | |
4547 | ||
4548 | ||
4549 | ||
4550 | ||
4551 | ||
b0322a85 | 4552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
8d138742 | 4553 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
b0322a85 | 4554 | if ${lt_cv_path_NM+:} false; then : |
8d138742 | 4555 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4556 | else |
4557 | if test -n "$NM"; then | |
4558 | # Let the user override the test. | |
d50284c4 | 4559 | lt_cv_path_NM=$NM |
d9898ee8 | 4560 | else |
d50284c4 | 4561 | lt_nm_to_check=${ac_tool_prefix}nm |
d9898ee8 | 4562 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
4563 | lt_nm_to_check="$lt_nm_to_check nm" | |
4564 | fi | |
4565 | for lt_tmp_nm in $lt_nm_to_check; do | |
d50284c4 | 4566 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
d9898ee8 | 4567 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
d50284c4 | 4568 | IFS=$lt_save_ifs |
d9898ee8 | 4569 | test -z "$ac_dir" && ac_dir=. |
d50284c4 CE |
4570 | tmp_nm=$ac_dir/$lt_tmp_nm |
4571 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then | |
d9898ee8 | 4572 | # Check to see if the nm accepts a BSD-compat flag. |
d50284c4 | 4573 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
d9898ee8 | 4574 | # nm: unknown option "B" ignored |
4575 | # Tru64's nm complains that /dev/null is an invalid object file | |
d50284c4 CE |
4576 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
4577 | case $build_os in | |
4578 | mingw*) lt_bad_file=conftest.nm/nofile ;; | |
4579 | *) lt_bad_file=/dev/null ;; | |
4580 | esac | |
4581 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in | |
4582 | *$lt_bad_file* | *'Invalid file or object type'*) | |
d9898ee8 | 4583 | lt_cv_path_NM="$tmp_nm -B" |
d50284c4 | 4584 | break 2 |
d9898ee8 | 4585 | ;; |
4586 | *) | |
4587 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4588 | */dev/null*) | |
4589 | lt_cv_path_NM="$tmp_nm -p" | |
d50284c4 | 4590 | break 2 |
d9898ee8 | 4591 | ;; |
4592 | *) | |
4593 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4594 | continue # so that we can try to find one that supports BSD flags | |
4595 | ;; | |
4596 | esac | |
4597 | ;; | |
4598 | esac | |
4599 | fi | |
4600 | done | |
d50284c4 | 4601 | IFS=$lt_save_ifs |
d9898ee8 | 4602 | done |
8d138742 | 4603 | : ${lt_cv_path_NM=no} |
d9898ee8 | 4604 | fi |
4605 | fi | |
b0322a85 | 4606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
8d138742 | 4607 | $as_echo "$lt_cv_path_NM" >&6; } |
d50284c4 CE |
4608 | if test no != "$lt_cv_path_NM"; then |
4609 | NM=$lt_cv_path_NM | |
8d138742 CE |
4610 | else |
4611 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
b0322a85 CE |
4612 | if test -n "$DUMPBIN"; then : |
4613 | # Let the user override the test. | |
4614 | else | |
4615 | if test -n "$ac_tool_prefix"; then | |
4616 | for ac_prog in dumpbin "link -dump" | |
8d138742 CE |
4617 | do |
4618 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4619 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b0322a85 | 4620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4621 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4622 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
8d138742 CE |
4623 | $as_echo_n "(cached) " >&6 |
4624 | else | |
4625 | if test -n "$DUMPBIN"; then | |
4626 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4627 | else | |
4628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4629 | for as_dir in $PATH | |
4630 | do | |
4631 | IFS=$as_save_IFS | |
4632 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4633 | for ac_exec_ext in '' $ac_executable_extensions; do |
4634 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 4635 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
b0322a85 | 4636 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
4637 | break 2 |
4638 | fi | |
4639 | done | |
b0322a85 | 4640 | done |
8d138742 | 4641 | IFS=$as_save_IFS |
d9898ee8 | 4642 | |
8d138742 CE |
4643 | fi |
4644 | fi | |
4645 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4646 | if test -n "$DUMPBIN"; then | |
b0322a85 | 4647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
8d138742 | 4648 | $as_echo "$DUMPBIN" >&6; } |
d9898ee8 | 4649 | else |
b0322a85 | 4650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
4651 | $as_echo "no" >&6; } |
4652 | fi | |
d9898ee8 | 4653 | |
d9898ee8 | 4654 | |
8d138742 CE |
4655 | test -n "$DUMPBIN" && break |
4656 | done | |
4657 | fi | |
4658 | if test -z "$DUMPBIN"; then | |
4659 | ac_ct_DUMPBIN=$DUMPBIN | |
b0322a85 | 4660 | for ac_prog in dumpbin "link -dump" |
8d138742 CE |
4661 | do |
4662 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4663 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 4664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4665 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4666 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
8d138742 CE |
4667 | $as_echo_n "(cached) " >&6 |
4668 | else | |
4669 | if test -n "$ac_ct_DUMPBIN"; then | |
4670 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4671 | else | |
4672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4673 | for as_dir in $PATH | |
4674 | do | |
4675 | IFS=$as_save_IFS | |
4676 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4677 | for ac_exec_ext in '' $ac_executable_extensions; do |
4678 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 4679 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
b0322a85 | 4680 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
4681 | break 2 |
4682 | fi | |
4683 | done | |
b0322a85 | 4684 | done |
8d138742 | 4685 | IFS=$as_save_IFS |
d9898ee8 | 4686 | |
8d138742 CE |
4687 | fi |
4688 | fi | |
4689 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4690 | if test -n "$ac_ct_DUMPBIN"; then | |
b0322a85 | 4691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
8d138742 CE |
4692 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
4693 | else | |
b0322a85 | 4694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
4695 | $as_echo "no" >&6; } |
4696 | fi | |
d9898ee8 | 4697 | |
d9898ee8 | 4698 | |
8d138742 CE |
4699 | test -n "$ac_ct_DUMPBIN" && break |
4700 | done | |
4701 | ||
4702 | if test "x$ac_ct_DUMPBIN" = x; then | |
4703 | DUMPBIN=":" | |
ac40fd9e | 4704 | else |
8d138742 CE |
4705 | case $cross_compiling:$ac_tool_warned in |
4706 | yes:) | |
b0322a85 | 4707 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
4708 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
4709 | ac_tool_warned=yes ;; | |
4710 | esac | |
4711 | DUMPBIN=$ac_ct_DUMPBIN | |
ac40fd9e | 4712 | fi |
8d138742 | 4713 | fi |
d9898ee8 | 4714 | |
d50284c4 | 4715 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
b0322a85 | 4716 | *COFF*) |
d50284c4 | 4717 | DUMPBIN="$DUMPBIN -symbols -headers" |
b0322a85 CE |
4718 | ;; |
4719 | *) | |
4720 | DUMPBIN=: | |
4721 | ;; | |
4722 | esac | |
4723 | fi | |
d9898ee8 | 4724 | |
d50284c4 CE |
4725 | if test : != "$DUMPBIN"; then |
4726 | NM=$DUMPBIN | |
d9898ee8 | 4727 | fi |
8d138742 CE |
4728 | fi |
4729 | test -z "$NM" && NM=nm | |
d9898ee8 | 4730 | |
d9898ee8 | 4731 | |
d9898ee8 | 4732 | |
d9898ee8 | 4733 | |
d9898ee8 | 4734 | |
d9898ee8 | 4735 | |
b0322a85 | 4736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
8d138742 | 4737 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
b0322a85 | 4738 | if ${lt_cv_nm_interface+:} false; then : |
8d138742 CE |
4739 | $as_echo_n "(cached) " >&6 |
4740 | else | |
4741 | lt_cv_nm_interface="BSD nm" | |
4742 | echo "int some_variable = 0;" > conftest.$ac_ext | |
b0322a85 | 4743 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
8d138742 CE |
4744 | (eval "$ac_compile" 2>conftest.err) |
4745 | cat conftest.err >&5 | |
b0322a85 | 4746 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
8d138742 CE |
4747 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4748 | cat conftest.err >&5 | |
b0322a85 | 4749 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
8d138742 CE |
4750 | cat conftest.out >&5 |
4751 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4752 | lt_cv_nm_interface="MS dumpbin" | |
d9898ee8 | 4753 | fi |
8d138742 CE |
4754 | rm -f conftest* |
4755 | fi | |
b0322a85 | 4756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
8d138742 | 4757 | $as_echo "$lt_cv_nm_interface" >&6; } |
d9898ee8 | 4758 | |
8d138742 | 4759 | # find the maximum length of command line arguments |
b0322a85 | 4760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
8d138742 | 4761 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
b0322a85 | 4762 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
8d138742 CE |
4763 | $as_echo_n "(cached) " >&6 |
4764 | else | |
4765 | i=0 | |
d50284c4 | 4766 | teststring=ABCD |
d9898ee8 | 4767 | |
8d138742 CE |
4768 | case $build_os in |
4769 | msdosdjgpp*) | |
4770 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4771 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4772 | # during glob expansion). Even if it were fixed, the result of this | |
4773 | # check would be larger than it should be. | |
4774 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4775 | ;; | |
d9898ee8 | 4776 | |
8d138742 CE |
4777 | gnu*) |
4778 | # Under GNU Hurd, this test is not required because there is | |
4779 | # no limit to the length of command line arguments. | |
4780 | # Libtool will interpret -1 as no limit whatsoever | |
4781 | lt_cv_sys_max_cmd_len=-1; | |
4782 | ;; | |
d9898ee8 | 4783 | |
8d138742 CE |
4784 | cygwin* | mingw* | cegcc*) |
4785 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4786 | # about 5 minutes as the teststring grows exponentially. | |
4787 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4788 | # you end up with a "frozen" computer, even though with patience | |
4789 | # the test eventually succeeds (with a max line length of 256k). | |
4790 | # Instead, let's just punt: use the minimum linelength reported by | |
4791 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4792 | lt_cv_sys_max_cmd_len=8192; | |
4793 | ;; | |
ac40fd9e | 4794 | |
b0322a85 CE |
4795 | mint*) |
4796 | # On MiNT this can take a long time and run out of memory. | |
4797 | lt_cv_sys_max_cmd_len=8192; | |
4798 | ;; | |
4799 | ||
8d138742 CE |
4800 | amigaos*) |
4801 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4802 | # So we just punt and use a minimum line length of 8192. | |
4803 | lt_cv_sys_max_cmd_len=8192; | |
4804 | ;; | |
d9898ee8 | 4805 | |
d50284c4 | 4806 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
8d138742 CE |
4807 | # This has been around since 386BSD, at least. Likely further. |
4808 | if test -x /sbin/sysctl; then | |
4809 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4810 | elif test -x /usr/sbin/sysctl; then | |
4811 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4812 | else | |
4813 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4814 | fi | |
4815 | # And add a safety zone | |
4816 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4817 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
d9898ee8 | 4818 | ;; |
8d138742 CE |
4819 | |
4820 | interix*) | |
4821 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4822 | lt_cv_sys_max_cmd_len=196608 | |
d9898ee8 | 4823 | ;; |
8d138742 | 4824 | |
b0322a85 CE |
4825 | os2*) |
4826 | # The test takes a long time on OS/2. | |
4827 | lt_cv_sys_max_cmd_len=8192 | |
4828 | ;; | |
4829 | ||
8d138742 CE |
4830 | osf*) |
4831 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4832 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4833 | # nice to cause kernel panics so lets avoid the loop below. | |
4834 | # First set a reasonable default. | |
4835 | lt_cv_sys_max_cmd_len=16384 | |
4836 | # | |
4837 | if test -x /sbin/sysconfig; then | |
4838 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4839 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4840 | esac | |
4841 | fi | |
d9898ee8 | 4842 | ;; |
8d138742 CE |
4843 | sco3.2v5*) |
4844 | lt_cv_sys_max_cmd_len=102400 | |
d9898ee8 | 4845 | ;; |
8d138742 CE |
4846 | sysv5* | sco5v6* | sysv4.2uw2*) |
4847 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4848 | if test -n "$kargmax"; then | |
4849 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4850 | else | |
4851 | lt_cv_sys_max_cmd_len=32768 | |
4852 | fi | |
d9898ee8 | 4853 | ;; |
8d138742 CE |
4854 | *) |
4855 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
d50284c4 CE |
4856 | if test -n "$lt_cv_sys_max_cmd_len" && \ |
4857 | test undefined != "$lt_cv_sys_max_cmd_len"; then | |
8d138742 CE |
4858 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
4859 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4860 | else | |
4861 | # Make teststring a little bigger before we do anything with it. | |
4862 | # a 1K string should be a reasonable start. | |
d50284c4 | 4863 | for i in 1 2 3 4 5 6 7 8; do |
8d138742 CE |
4864 | teststring=$teststring$teststring |
4865 | done | |
4866 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4867 | # If test is not a shell built-in, we'll probably end up computing a | |
4868 | # maximum length that is only half of the actual maximum length, but | |
4869 | # we can't tell. | |
d50284c4 | 4870 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
b0322a85 | 4871 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
d50284c4 | 4872 | test 17 != "$i" # 1/2 MB should be enough |
8d138742 CE |
4873 | do |
4874 | i=`expr $i + 1` | |
4875 | teststring=$teststring$teststring | |
4876 | done | |
4877 | # Only check the string length outside the loop. | |
4878 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4879 | teststring= | |
4880 | # Add a significant safety factor because C++ compilers can tack on | |
4881 | # massive amounts of additional arguments before passing them to the | |
4882 | # linker. It appears as though 1/2 is a usable value. | |
4883 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4884 | fi | |
d9898ee8 | 4885 | ;; |
4886 | esac | |
d9898ee8 | 4887 | |
4888 | fi | |
d9898ee8 | 4889 | |
d50284c4 | 4890 | if test -n "$lt_cv_sys_max_cmd_len"; then |
b0322a85 | 4891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
8d138742 CE |
4892 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
4893 | else | |
b0322a85 | 4894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
8d138742 CE |
4895 | $as_echo "none" >&6; } |
4896 | fi | |
4897 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
d9898ee8 | 4898 | |
d9898ee8 | 4899 | |
d9898ee8 | 4900 | |
d9898ee8 | 4901 | |
4902 | ||
8d138742 CE |
4903 | |
4904 | : ${CP="cp -f"} | |
4905 | : ${MV="mv -f"} | |
4906 | : ${RM="rm -f"} | |
4907 | ||
8d138742 CE |
4908 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
4909 | lt_unset=unset | |
4910 | else | |
4911 | lt_unset=false | |
dd184caf | 4912 | fi |
d9898ee8 | 4913 | |
d9898ee8 | 4914 | |
8d138742 CE |
4915 | |
4916 | ||
4917 | ||
4918 | # test EBCDIC or ASCII | |
4919 | case `echo X|tr X '\101'` in | |
4920 | A) # ASCII based system | |
4921 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4922 | lt_SP2NL='tr \040 \012' | |
4923 | lt_NL2SP='tr \015\012 \040\040' | |
d9898ee8 | 4924 | ;; |
8d138742 CE |
4925 | *) # EBCDIC based system |
4926 | lt_SP2NL='tr \100 \n' | |
4927 | lt_NL2SP='tr \r\n \100\100' | |
d9898ee8 | 4928 | ;; |
8d138742 CE |
4929 | esac |
4930 | ||
d9898ee8 | 4931 | |
d9898ee8 | 4932 | |
d9898ee8 | 4933 | |
d9898ee8 | 4934 | |
d9898ee8 | 4935 | |
d9898ee8 | 4936 | |
dd184caf | 4937 | |
d9898ee8 | 4938 | |
b0322a85 CE |
4939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
4940 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
4941 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
4942 | $as_echo_n "(cached) " >&6 | |
4943 | else | |
4944 | case $host in | |
4945 | *-*-mingw* ) | |
4946 | case $build in | |
4947 | *-*-mingw* ) # actually msys | |
4948 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
4949 | ;; | |
4950 | *-*-cygwin* ) | |
4951 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
4952 | ;; | |
4953 | * ) # otherwise, assume *nix | |
4954 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
4955 | ;; | |
4956 | esac | |
4957 | ;; | |
4958 | *-*-cygwin* ) | |
4959 | case $build in | |
4960 | *-*-mingw* ) # actually msys | |
4961 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
4962 | ;; | |
4963 | *-*-cygwin* ) | |
4964 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
4965 | ;; | |
4966 | * ) # otherwise, assume *nix | |
4967 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
4968 | ;; | |
4969 | esac | |
4970 | ;; | |
4971 | * ) # unhandled hosts (and "normal" native builds) | |
4972 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
4973 | ;; | |
4974 | esac | |
4975 | ||
4976 | fi | |
4977 | ||
4978 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
4979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
4980 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
4981 | ||
4982 | ||
4983 | ||
4984 | ||
4985 | ||
4986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
4987 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
4988 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
4989 | $as_echo_n "(cached) " >&6 | |
4990 | else | |
4991 | #assume ordinary cross tools, or native build. | |
4992 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
4993 | case $host in | |
4994 | *-*-mingw* ) | |
4995 | case $build in | |
4996 | *-*-mingw* ) # actually msys | |
4997 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
4998 | ;; | |
4999 | esac | |
5000 | ;; | |
5001 | esac | |
5002 | ||
5003 | fi | |
5004 | ||
5005 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
5006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
5007 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
5008 | ||
5009 | ||
5010 | ||
5011 | ||
5012 | ||
5013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
8d138742 | 5014 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
b0322a85 | 5015 | if ${lt_cv_ld_reload_flag+:} false; then : |
8d138742 CE |
5016 | $as_echo_n "(cached) " >&6 |
5017 | else | |
5018 | lt_cv_ld_reload_flag='-r' | |
d9898ee8 | 5019 | fi |
b0322a85 | 5020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
8d138742 CE |
5021 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
5022 | reload_flag=$lt_cv_ld_reload_flag | |
5023 | case $reload_flag in | |
5024 | "" | " "*) ;; | |
5025 | *) reload_flag=" $reload_flag" ;; | |
5026 | esac | |
5027 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5028 | case $host_os in | |
b0322a85 | 5029 | cygwin* | mingw* | pw32* | cegcc*) |
d50284c4 | 5030 | if test yes != "$GCC"; then |
b0322a85 CE |
5031 | reload_cmds=false |
5032 | fi | |
5033 | ;; | |
8d138742 | 5034 | darwin*) |
d50284c4 CE |
5035 | if test yes = "$GCC"; then |
5036 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' | |
8d138742 CE |
5037 | else |
5038 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5039 | fi | |
5040 | ;; | |
5041 | esac | |
d9898ee8 | 5042 | |
5043 | ||
d9898ee8 | 5044 | |
d9898ee8 | 5045 | |
5046 | ||
8d138742 CE |
5047 | |
5048 | ||
5049 | ||
5050 | ||
5051 | if test -n "$ac_tool_prefix"; then | |
5052 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5053 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
b0322a85 | 5054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5055 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5056 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
8d138742 | 5057 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5058 | else |
8d138742 CE |
5059 | if test -n "$OBJDUMP"; then |
5060 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
d9898ee8 | 5061 | else |
8d138742 CE |
5062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5063 | for as_dir in $PATH | |
5064 | do | |
5065 | IFS=$as_save_IFS | |
5066 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5067 | for ac_exec_ext in '' $ac_executable_extensions; do |
5068 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5069 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
b0322a85 | 5070 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5071 | break 2 |
5072 | fi | |
5073 | done | |
b0322a85 | 5074 | done |
8d138742 | 5075 | IFS=$as_save_IFS |
d9898ee8 | 5076 | |
8d138742 CE |
5077 | fi |
5078 | fi | |
5079 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5080 | if test -n "$OBJDUMP"; then | |
b0322a85 | 5081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
8d138742 CE |
5082 | $as_echo "$OBJDUMP" >&6; } |
5083 | else | |
b0322a85 | 5084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5085 | $as_echo "no" >&6; } |
d9898ee8 | 5086 | fi |
dd184caf | 5087 | |
d9898ee8 | 5088 | |
d9898ee8 | 5089 | fi |
8d138742 CE |
5090 | if test -z "$ac_cv_prog_OBJDUMP"; then |
5091 | ac_ct_OBJDUMP=$OBJDUMP | |
5092 | # Extract the first word of "objdump", so it can be a program name with args. | |
5093 | set dummy objdump; ac_word=$2 | |
b0322a85 | 5094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5095 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5096 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
8d138742 CE |
5097 | $as_echo_n "(cached) " >&6 |
5098 | else | |
5099 | if test -n "$ac_ct_OBJDUMP"; then | |
5100 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5101 | else | |
5102 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5103 | for as_dir in $PATH | |
5104 | do | |
5105 | IFS=$as_save_IFS | |
5106 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5107 | for ac_exec_ext in '' $ac_executable_extensions; do |
5108 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5109 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
b0322a85 | 5110 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5111 | break 2 |
5112 | fi | |
d9898ee8 | 5113 | done |
b0322a85 | 5114 | done |
8d138742 | 5115 | IFS=$as_save_IFS |
d9898ee8 | 5116 | |
5117 | fi | |
d9898ee8 | 5118 | fi |
8d138742 CE |
5119 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
5120 | if test -n "$ac_ct_OBJDUMP"; then | |
b0322a85 | 5121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
8d138742 | 5122 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
d9898ee8 | 5123 | else |
b0322a85 | 5124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5125 | $as_echo "no" >&6; } |
d9898ee8 | 5126 | fi |
dd184caf | 5127 | |
8d138742 CE |
5128 | if test "x$ac_ct_OBJDUMP" = x; then |
5129 | OBJDUMP="false" | |
5130 | else | |
5131 | case $cross_compiling:$ac_tool_warned in | |
5132 | yes:) | |
b0322a85 | 5133 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
5134 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5135 | ac_tool_warned=yes ;; | |
dd184caf | 5136 | esac |
8d138742 CE |
5137 | OBJDUMP=$ac_ct_OBJDUMP |
5138 | fi | |
d9898ee8 | 5139 | else |
8d138742 | 5140 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
d9898ee8 | 5141 | fi |
dd184caf | 5142 | |
8d138742 | 5143 | test -z "$OBJDUMP" && OBJDUMP=objdump |
d9898ee8 | 5144 | |
d9898ee8 | 5145 | |
5146 | ||
d9898ee8 | 5147 | |
d9898ee8 | 5148 | |
d9898ee8 | 5149 | |
dd184caf | 5150 | |
d9898ee8 | 5151 | |
d9898ee8 | 5152 | |
b0322a85 | 5153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
8d138742 | 5154 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
b0322a85 | 5155 | if ${lt_cv_deplibs_check_method+:} false; then : |
8d138742 | 5156 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5157 | else |
8d138742 CE |
5158 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
5159 | lt_cv_file_magic_test_file= | |
5160 | lt_cv_deplibs_check_method='unknown' | |
5161 | # Need to set the preceding variable on all platforms that support | |
5162 | # interlibrary dependencies. | |
5163 | # 'none' -- dependencies not supported. | |
d50284c4 | 5164 | # 'unknown' -- same as none, but documents that we really don't know. |
8d138742 CE |
5165 | # 'pass_all' -- all dependencies passed with no checks. |
5166 | # 'test_compile' -- check by making test program. | |
5167 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
d50284c4 CE |
5168 | # that responds to the $file_magic_cmd with a given extended regex. |
5169 | # If you have 'file' or equivalent on your system and you're not sure | |
5170 | # whether 'pass_all' will *always* work, you probably want this one. | |
d9898ee8 | 5171 | |
8d138742 CE |
5172 | case $host_os in |
5173 | aix[4-9]*) | |
5174 | lt_cv_deplibs_check_method=pass_all | |
5175 | ;; | |
d9898ee8 | 5176 | |
8d138742 CE |
5177 | beos*) |
5178 | lt_cv_deplibs_check_method=pass_all | |
5179 | ;; | |
d9898ee8 | 5180 | |
8d138742 CE |
5181 | bsdi[45]*) |
5182 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5183 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5184 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5185 | ;; | |
d9898ee8 | 5186 | |
8d138742 CE |
5187 | cygwin*) |
5188 | # func_win32_libid is a shell function defined in ltmain.sh | |
5189 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5190 | lt_cv_file_magic_cmd='func_win32_libid' | |
5191 | ;; | |
d9898ee8 | 5192 | |
8d138742 CE |
5193 | mingw* | pw32*) |
5194 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5195 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5196 | # unless we find 'file', for example because we are cross-compiling. | |
d50284c4 | 5197 | if ( file / ) >/dev/null 2>&1; then |
8d138742 CE |
5198 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5199 | lt_cv_file_magic_cmd='func_win32_libid' | |
5200 | else | |
b0322a85 CE |
5201 | # Keep this pattern in sync with the one in func_win32_libid. |
5202 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
8d138742 CE |
5203 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
5204 | fi | |
5205 | ;; | |
d9898ee8 | 5206 | |
b0322a85 | 5207 | cegcc*) |
8d138742 CE |
5208 | # use the weaker test based on 'objdump'. See mingw*. |
5209 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5210 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5211 | ;; | |
d9898ee8 | 5212 | |
8d138742 CE |
5213 | darwin* | rhapsody*) |
5214 | lt_cv_deplibs_check_method=pass_all | |
5215 | ;; | |
dd184caf | 5216 | |
8d138742 CE |
5217 | freebsd* | dragonfly*) |
5218 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5219 | case $host_cpu in | |
5220 | i*86 ) | |
5221 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5222 | # Let's accept both of them until this is cleared up. | |
5223 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5224 | lt_cv_file_magic_cmd=/usr/bin/file | |
5225 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5226 | ;; | |
5227 | esac | |
5228 | else | |
5229 | lt_cv_deplibs_check_method=pass_all | |
5230 | fi | |
5231 | ;; | |
dd184caf | 5232 | |
b0322a85 CE |
5233 | haiku*) |
5234 | lt_cv_deplibs_check_method=pass_all | |
5235 | ;; | |
5236 | ||
8d138742 CE |
5237 | hpux10.20* | hpux11*) |
5238 | lt_cv_file_magic_cmd=/usr/bin/file | |
5239 | case $host_cpu in | |
5240 | ia64*) | |
5241 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5242 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5243 | ;; | |
5244 | hppa*64*) | |
b0322a85 | 5245 | 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 |
5246 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
5247 | ;; | |
5248 | *) | |
b0322a85 | 5249 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
8d138742 CE |
5250 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
5251 | ;; | |
5252 | esac | |
5253 | ;; | |
d9898ee8 | 5254 | |
8d138742 CE |
5255 | interix[3-9]*) |
5256 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5257 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5258 | ;; | |
d9898ee8 | 5259 | |
8d138742 CE |
5260 | irix5* | irix6* | nonstopux*) |
5261 | case $LD in | |
5262 | *-32|*"-32 ") libmagic=32-bit;; | |
5263 | *-n32|*"-n32 ") libmagic=N32;; | |
5264 | *-64|*"-64 ") libmagic=64-bit;; | |
5265 | *) libmagic=never-match;; | |
5266 | esac | |
5267 | lt_cv_deplibs_check_method=pass_all | |
5268 | ;; | |
d9898ee8 | 5269 | |
b0322a85 | 5270 | # This must be glibc/ELF. |
d50284c4 | 5271 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
8d138742 CE |
5272 | lt_cv_deplibs_check_method=pass_all |
5273 | ;; | |
d9898ee8 | 5274 | |
8d138742 CE |
5275 | netbsd*) |
5276 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5277 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5278 | else | |
5279 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5280 | fi | |
5281 | ;; | |
d9898ee8 | 5282 | |
8d138742 CE |
5283 | newos6*) |
5284 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5285 | lt_cv_file_magic_cmd=/usr/bin/file | |
5286 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5287 | ;; | |
d9898ee8 | 5288 | |
8d138742 CE |
5289 | *nto* | *qnx*) |
5290 | lt_cv_deplibs_check_method=pass_all | |
5291 | ;; | |
d9898ee8 | 5292 | |
d50284c4 CE |
5293 | openbsd* | bitrig*) |
5294 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
b0322a85 CE |
5295 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
5296 | else | |
5297 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5298 | fi | |
5299 | ;; | |
5300 | ||
5301 | osf3* | osf4* | osf5*) | |
5302 | lt_cv_deplibs_check_method=pass_all | |
5303 | ;; | |
5304 | ||
5305 | rdos*) | |
5306 | lt_cv_deplibs_check_method=pass_all | |
5307 | ;; | |
5308 | ||
5309 | solaris*) | |
5310 | lt_cv_deplibs_check_method=pass_all | |
5311 | ;; | |
5312 | ||
5313 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5314 | lt_cv_deplibs_check_method=pass_all | |
5315 | ;; | |
5316 | ||
5317 | sysv4 | sysv4.3*) | |
5318 | case $host_vendor in | |
5319 | motorola) | |
5320 | 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]' | |
5321 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5322 | ;; | |
5323 | ncr) | |
5324 | lt_cv_deplibs_check_method=pass_all | |
5325 | ;; | |
5326 | sequent) | |
5327 | lt_cv_file_magic_cmd='/bin/file' | |
5328 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5329 | ;; | |
5330 | sni) | |
5331 | lt_cv_file_magic_cmd='/bin/file' | |
5332 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5333 | lt_cv_file_magic_test_file=/lib/libc.so | |
5334 | ;; | |
5335 | siemens) | |
5336 | lt_cv_deplibs_check_method=pass_all | |
5337 | ;; | |
5338 | pc) | |
5339 | lt_cv_deplibs_check_method=pass_all | |
5340 | ;; | |
5341 | esac | |
5342 | ;; | |
5343 | ||
5344 | tpf*) | |
5345 | lt_cv_deplibs_check_method=pass_all | |
5346 | ;; | |
d50284c4 CE |
5347 | os2*) |
5348 | lt_cv_deplibs_check_method=pass_all | |
5349 | ;; | |
b0322a85 CE |
5350 | esac |
5351 | ||
5352 | fi | |
5353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
5354 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
5355 | ||
5356 | file_magic_glob= | |
5357 | want_nocaseglob=no | |
5358 | if test "$build" = "$host"; then | |
5359 | case $host_os in | |
5360 | mingw* | pw32*) | |
5361 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
5362 | want_nocaseglob=yes | |
5363 | else | |
5364 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
5365 | fi | |
5366 | ;; | |
5367 | esac | |
5368 | fi | |
5369 | ||
5370 | file_magic_cmd=$lt_cv_file_magic_cmd | |
5371 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5372 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
5373 | ||
5374 | ||
5375 | ||
5376 | ||
5377 | ||
5378 | ||
5379 | ||
5380 | ||
5381 | ||
5382 | ||
5383 | ||
5384 | ||
5385 | ||
5386 | ||
5387 | ||
5388 | ||
5389 | ||
5390 | ||
5391 | ||
5392 | ||
5393 | ||
5394 | ||
5395 | if test -n "$ac_tool_prefix"; then | |
5396 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
5397 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
5398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5399 | $as_echo_n "checking for $ac_word... " >&6; } | |
5400 | if ${ac_cv_prog_DLLTOOL+:} false; then : | |
5401 | $as_echo_n "(cached) " >&6 | |
5402 | else | |
5403 | if test -n "$DLLTOOL"; then | |
5404 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
5405 | else | |
5406 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5407 | for as_dir in $PATH | |
5408 | do | |
5409 | IFS=$as_save_IFS | |
5410 | test -z "$as_dir" && as_dir=. | |
5411 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5412 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5413 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
5414 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5415 | break 2 | |
5416 | fi | |
5417 | done | |
5418 | done | |
5419 | IFS=$as_save_IFS | |
5420 | ||
5421 | fi | |
5422 | fi | |
5423 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
5424 | if test -n "$DLLTOOL"; then | |
5425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
5426 | $as_echo "$DLLTOOL" >&6; } | |
5427 | else | |
5428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5429 | $as_echo "no" >&6; } | |
5430 | fi | |
5431 | ||
5432 | ||
5433 | fi | |
5434 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
5435 | ac_ct_DLLTOOL=$DLLTOOL | |
5436 | # Extract the first word of "dlltool", so it can be a program name with args. | |
5437 | set dummy dlltool; ac_word=$2 | |
5438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5439 | $as_echo_n "checking for $ac_word... " >&6; } | |
5440 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
5441 | $as_echo_n "(cached) " >&6 | |
5442 | else | |
5443 | if test -n "$ac_ct_DLLTOOL"; then | |
5444 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
5445 | else | |
5446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5447 | for as_dir in $PATH | |
5448 | do | |
5449 | IFS=$as_save_IFS | |
5450 | test -z "$as_dir" && as_dir=. | |
5451 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5452 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5453 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
5454 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5455 | break 2 | |
5456 | fi | |
5457 | done | |
5458 | done | |
5459 | IFS=$as_save_IFS | |
5460 | ||
5461 | fi | |
5462 | fi | |
5463 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
5464 | if test -n "$ac_ct_DLLTOOL"; then | |
5465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
5466 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
5467 | else | |
5468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5469 | $as_echo "no" >&6; } | |
5470 | fi | |
5471 | ||
5472 | if test "x$ac_ct_DLLTOOL" = x; then | |
5473 | DLLTOOL="false" | |
8d138742 | 5474 | else |
b0322a85 CE |
5475 | case $cross_compiling:$ac_tool_warned in |
5476 | yes:) | |
5477 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5478 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5479 | ac_tool_warned=yes ;; | |
5480 | esac | |
5481 | DLLTOOL=$ac_ct_DLLTOOL | |
8d138742 | 5482 | fi |
b0322a85 CE |
5483 | else |
5484 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
5485 | fi | |
d9898ee8 | 5486 | |
b0322a85 | 5487 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
d9898ee8 | 5488 | |
5489 | ||
5490 | ||
d9898ee8 | 5491 | |
b0322a85 CE |
5492 | |
5493 | ||
5494 | ||
5495 | ||
5496 | ||
5497 | ||
5498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
5499 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
5500 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
5501 | $as_echo_n "(cached) " >&6 | |
5502 | else | |
5503 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
5504 | ||
5505 | case $host_os in | |
5506 | cygwin* | mingw* | pw32* | cegcc*) | |
d50284c4 CE |
5507 | # two different shell functions defined in ltmain.sh; |
5508 | # decide which one to use based on capabilities of $DLLTOOL | |
b0322a85 CE |
5509 | case `$DLLTOOL --help 2>&1` in |
5510 | *--identify-strict*) | |
5511 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
8d138742 | 5512 | ;; |
b0322a85 CE |
5513 | *) |
5514 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
8d138742 CE |
5515 | ;; |
5516 | esac | |
5517 | ;; | |
b0322a85 CE |
5518 | *) |
5519 | # fallback: assume linklib IS sharedlib | |
d50284c4 | 5520 | lt_cv_sharedlib_from_linklib_cmd=$ECHO |
8d138742 | 5521 | ;; |
dd184caf | 5522 | esac |
d9898ee8 | 5523 | |
d9898ee8 | 5524 | fi |
b0322a85 CE |
5525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
5526 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
5527 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
5528 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
d9898ee8 | 5529 | |
5530 | ||
8d138742 CE |
5531 | |
5532 | ||
5533 | ||
5534 | ||
5535 | ||
5536 | ||
5537 | if test -n "$ac_tool_prefix"; then | |
b0322a85 CE |
5538 | for ac_prog in ar |
5539 | do | |
5540 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5541 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 5543 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5544 | if ${ac_cv_prog_AR+:} false; then : |
8d138742 | 5545 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5546 | else |
8d138742 CE |
5547 | if test -n "$AR"; then |
5548 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
d9898ee8 | 5549 | else |
8d138742 CE |
5550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5551 | for as_dir in $PATH | |
5552 | do | |
5553 | IFS=$as_save_IFS | |
5554 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5555 | for ac_exec_ext in '' $ac_executable_extensions; do |
5556 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5557 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
5558 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8d138742 CE |
5559 | break 2 |
5560 | fi | |
5561 | done | |
b0322a85 | 5562 | done |
8d138742 | 5563 | IFS=$as_save_IFS |
d9898ee8 | 5564 | |
8d138742 CE |
5565 | fi |
5566 | fi | |
5567 | AR=$ac_cv_prog_AR | |
5568 | if test -n "$AR"; then | |
b0322a85 | 5569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8d138742 CE |
5570 | $as_echo "$AR" >&6; } |
5571 | else | |
b0322a85 | 5572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5573 | $as_echo "no" >&6; } |
d9898ee8 | 5574 | fi |
dd184caf | 5575 | |
d9898ee8 | 5576 | |
b0322a85 CE |
5577 | test -n "$AR" && break |
5578 | done | |
8d138742 | 5579 | fi |
b0322a85 | 5580 | if test -z "$AR"; then |
8d138742 | 5581 | ac_ct_AR=$AR |
b0322a85 CE |
5582 | for ac_prog in ar |
5583 | do | |
5584 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5585 | set dummy $ac_prog; ac_word=$2 | |
5586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 5587 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5588 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
8d138742 | 5589 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5590 | else |
8d138742 CE |
5591 | if test -n "$ac_ct_AR"; then |
5592 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5593 | else | |
5594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5595 | for as_dir in $PATH | |
5596 | do | |
5597 | IFS=$as_save_IFS | |
5598 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5599 | for ac_exec_ext in '' $ac_executable_extensions; do |
5600 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5601 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
5602 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8d138742 CE |
5603 | break 2 |
5604 | fi | |
5605 | done | |
b0322a85 | 5606 | done |
8d138742 | 5607 | IFS=$as_save_IFS |
d9898ee8 | 5608 | |
8d138742 CE |
5609 | fi |
5610 | fi | |
5611 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5612 | if test -n "$ac_ct_AR"; then | |
b0322a85 | 5613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
8d138742 CE |
5614 | $as_echo "$ac_ct_AR" >&6; } |
5615 | else | |
b0322a85 | 5616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5617 | $as_echo "no" >&6; } |
d9898ee8 | 5618 | fi |
dd184caf | 5619 | |
b0322a85 CE |
5620 | |
5621 | test -n "$ac_ct_AR" && break | |
5622 | done | |
5623 | ||
8d138742 CE |
5624 | if test "x$ac_ct_AR" = x; then |
5625 | AR="false" | |
5626 | else | |
5627 | case $cross_compiling:$ac_tool_warned in | |
5628 | yes:) | |
b0322a85 | 5629 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
5630 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5631 | ac_tool_warned=yes ;; | |
d9898ee8 | 5632 | esac |
8d138742 CE |
5633 | AR=$ac_ct_AR |
5634 | fi | |
d9898ee8 | 5635 | fi |
d9898ee8 | 5636 | |
b0322a85 CE |
5637 | : ${AR=ar} |
5638 | : ${AR_FLAGS=cru} | |
5639 | ||
5640 | ||
5641 | ||
5642 | ||
5643 | ||
5644 | ||
5645 | ||
d9898ee8 | 5646 | |
d9898ee8 | 5647 | |
d9898ee8 | 5648 | |
8d138742 | 5649 | |
b0322a85 CE |
5650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
5651 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
5652 | if ${lt_cv_ar_at_file+:} false; then : | |
5653 | $as_echo_n "(cached) " >&6 | |
5654 | else | |
5655 | lt_cv_ar_at_file=no | |
5656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5657 | /* end confdefs.h. */ | |
5658 | ||
5659 | int | |
5660 | main () | |
5661 | { | |
5662 | ||
5663 | ; | |
5664 | return 0; | |
5665 | } | |
5666 | _ACEOF | |
5667 | if ac_fn_c_try_compile "$LINENO"; then : | |
5668 | echo conftest.$ac_objext > conftest.lst | |
5669 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
5670 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5671 | (eval $lt_ar_try) 2>&5 | |
5672 | ac_status=$? | |
5673 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5674 | test $ac_status = 0; } | |
d50284c4 | 5675 | if test 0 -eq "$ac_status"; then |
b0322a85 CE |
5676 | # Ensure the archiver fails upon bogus file names. |
5677 | rm -f conftest.$ac_objext libconftest.a | |
5678 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5679 | (eval $lt_ar_try) 2>&5 | |
5680 | ac_status=$? | |
5681 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5682 | test $ac_status = 0; } | |
d50284c4 | 5683 | if test 0 -ne "$ac_status"; then |
b0322a85 CE |
5684 | lt_cv_ar_at_file=@ |
5685 | fi | |
5686 | fi | |
5687 | rm -f conftest.* libconftest.a | |
5688 | ||
5689 | fi | |
5690 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5691 | ||
5692 | fi | |
5693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
5694 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
5695 | ||
d50284c4 | 5696 | if test no = "$lt_cv_ar_at_file"; then |
b0322a85 CE |
5697 | archiver_list_spec= |
5698 | else | |
5699 | archiver_list_spec=$lt_cv_ar_at_file | |
5700 | fi | |
8d138742 CE |
5701 | |
5702 | ||
5703 | ||
5704 | ||
5705 | ||
5706 | ||
5707 | ||
5708 | if test -n "$ac_tool_prefix"; then | |
5709 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5710 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
b0322a85 | 5711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5712 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5713 | if ${ac_cv_prog_STRIP+:} false; then : |
8d138742 | 5714 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5715 | else |
8d138742 CE |
5716 | if test -n "$STRIP"; then |
5717 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
d9898ee8 | 5718 | else |
5719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5720 | for as_dir in $PATH | |
5721 | do | |
5722 | IFS=$as_save_IFS | |
5723 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5724 | for ac_exec_ext in '' $ac_executable_extensions; do |
5725 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5726 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
b0322a85 | 5727 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 5728 | break 2 |
5729 | fi | |
5730 | done | |
b0322a85 | 5731 | done |
dd184caf | 5732 | IFS=$as_save_IFS |
d9898ee8 | 5733 | |
5734 | fi | |
5735 | fi | |
8d138742 CE |
5736 | STRIP=$ac_cv_prog_STRIP |
5737 | if test -n "$STRIP"; then | |
b0322a85 | 5738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8d138742 | 5739 | $as_echo "$STRIP" >&6; } |
d9898ee8 | 5740 | else |
b0322a85 | 5741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5742 | $as_echo "no" >&6; } |
d9898ee8 | 5743 | fi |
5744 | ||
dd184caf | 5745 | |
d9898ee8 | 5746 | fi |
8d138742 CE |
5747 | if test -z "$ac_cv_prog_STRIP"; then |
5748 | ac_ct_STRIP=$STRIP | |
5749 | # Extract the first word of "strip", so it can be a program name with args. | |
5750 | set dummy strip; ac_word=$2 | |
b0322a85 | 5751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5752 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5753 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
8d138742 | 5754 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5755 | else |
8d138742 CE |
5756 | if test -n "$ac_ct_STRIP"; then |
5757 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
d9898ee8 | 5758 | else |
5759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5760 | for as_dir in $PATH | |
5761 | do | |
5762 | IFS=$as_save_IFS | |
5763 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5764 | for ac_exec_ext in '' $ac_executable_extensions; do |
5765 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5766 | ac_cv_prog_ac_ct_STRIP="strip" |
b0322a85 | 5767 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 5768 | break 2 |
5769 | fi | |
5770 | done | |
b0322a85 | 5771 | done |
dd184caf | 5772 | IFS=$as_save_IFS |
d9898ee8 | 5773 | |
5774 | fi | |
5775 | fi | |
8d138742 CE |
5776 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
5777 | if test -n "$ac_ct_STRIP"; then | |
b0322a85 | 5778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
8d138742 | 5779 | $as_echo "$ac_ct_STRIP" >&6; } |
d9898ee8 | 5780 | else |
b0322a85 | 5781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5782 | $as_echo "no" >&6; } |
d9898ee8 | 5783 | fi |
5784 | ||
8d138742 CE |
5785 | if test "x$ac_ct_STRIP" = x; then |
5786 | STRIP=":" | |
dd184caf | 5787 | else |
5788 | case $cross_compiling:$ac_tool_warned in | |
5789 | yes:) | |
b0322a85 | 5790 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 5791 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 5792 | ac_tool_warned=yes ;; |
5793 | esac | |
8d138742 | 5794 | STRIP=$ac_ct_STRIP |
dd184caf | 5795 | fi |
8d138742 CE |
5796 | else |
5797 | STRIP="$ac_cv_prog_STRIP" | |
dd184caf | 5798 | fi |
d9898ee8 | 5799 | |
8d138742 | 5800 | test -z "$STRIP" && STRIP=: |
d9898ee8 | 5801 | |
d9898ee8 | 5802 | |
d9898ee8 | 5803 | |
dd184caf | 5804 | |
d9898ee8 | 5805 | |
d9898ee8 | 5806 | |
8d138742 CE |
5807 | if test -n "$ac_tool_prefix"; then |
5808 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5809 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
b0322a85 | 5810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5811 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5812 | if ${ac_cv_prog_RANLIB+:} false; then : |
8d138742 | 5813 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5814 | else |
8d138742 CE |
5815 | if test -n "$RANLIB"; then |
5816 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
d9898ee8 | 5817 | else |
8d138742 CE |
5818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5819 | for as_dir in $PATH | |
5820 | do | |
5821 | IFS=$as_save_IFS | |
5822 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5823 | for ac_exec_ext in '' $ac_executable_extensions; do |
5824 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5825 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
b0322a85 | 5826 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5827 | break 2 |
5828 | fi | |
5829 | done | |
b0322a85 | 5830 | done |
8d138742 | 5831 | IFS=$as_save_IFS |
dd184caf | 5832 | |
8d138742 CE |
5833 | fi |
5834 | fi | |
5835 | RANLIB=$ac_cv_prog_RANLIB | |
5836 | if test -n "$RANLIB"; then | |
b0322a85 | 5837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8d138742 | 5838 | $as_echo "$RANLIB" >&6; } |
d9898ee8 | 5839 | else |
b0322a85 | 5840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
5841 | $as_echo "no" >&6; } |
5842 | fi | |
d9898ee8 | 5843 | |
dd184caf | 5844 | |
d9898ee8 | 5845 | fi |
8d138742 CE |
5846 | if test -z "$ac_cv_prog_RANLIB"; then |
5847 | ac_ct_RANLIB=$RANLIB | |
5848 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5849 | set dummy ranlib; ac_word=$2 | |
b0322a85 | 5850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5851 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5852 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
8d138742 CE |
5853 | $as_echo_n "(cached) " >&6 |
5854 | else | |
5855 | if test -n "$ac_ct_RANLIB"; then | |
5856 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5857 | else | |
5858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5859 | for as_dir in $PATH | |
5860 | do | |
5861 | IFS=$as_save_IFS | |
5862 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5863 | for ac_exec_ext in '' $ac_executable_extensions; do |
5864 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5865 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
b0322a85 | 5866 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5867 | break 2 |
5868 | fi | |
5869 | done | |
b0322a85 | 5870 | done |
8d138742 | 5871 | IFS=$as_save_IFS |
dd184caf | 5872 | |
d9898ee8 | 5873 | fi |
8d138742 CE |
5874 | fi |
5875 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5876 | if test -n "$ac_ct_RANLIB"; then | |
b0322a85 | 5877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
8d138742 CE |
5878 | $as_echo "$ac_ct_RANLIB" >&6; } |
5879 | else | |
b0322a85 | 5880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5881 | $as_echo "no" >&6; } |
dd184caf | 5882 | fi |
5883 | ||
8d138742 CE |
5884 | if test "x$ac_ct_RANLIB" = x; then |
5885 | RANLIB=":" | |
dd184caf | 5886 | else |
8d138742 CE |
5887 | case $cross_compiling:$ac_tool_warned in |
5888 | yes:) | |
b0322a85 | 5889 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
5890 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5891 | ac_tool_warned=yes ;; | |
5892 | esac | |
5893 | RANLIB=$ac_ct_RANLIB | |
dd184caf | 5894 | fi |
5895 | else | |
8d138742 | 5896 | RANLIB="$ac_cv_prog_RANLIB" |
dd184caf | 5897 | fi |
d9898ee8 | 5898 | |
8d138742 | 5899 | test -z "$RANLIB" && RANLIB=: |
d9898ee8 | 5900 | |
d9898ee8 | 5901 | |
d9898ee8 | 5902 | |
d9898ee8 | 5903 | |
d9898ee8 | 5904 | |
d9898ee8 | 5905 | |
8d138742 CE |
5906 | # Determine commands to create old-style static archives. |
5907 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
5908 | old_postinstall_cmds='chmod 644 $oldlib' | |
5909 | old_postuninstall_cmds= | |
5910 | ||
5911 | if test -n "$RANLIB"; then | |
5912 | case $host_os in | |
d50284c4 | 5913 | bitrig* | openbsd*) |
b0322a85 | 5914 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
8d138742 CE |
5915 | ;; |
5916 | *) | |
b0322a85 | 5917 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
8d138742 CE |
5918 | ;; |
5919 | esac | |
b0322a85 | 5920 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
d9898ee8 | 5921 | fi |
5922 | ||
b0322a85 CE |
5923 | case $host_os in |
5924 | darwin*) | |
5925 | lock_old_archive_extraction=yes ;; | |
5926 | *) | |
5927 | lock_old_archive_extraction=no ;; | |
5928 | esac | |
5929 | ||
5930 | ||
5931 | ||
5932 | ||
5933 | ||
5934 | ||
d9898ee8 | 5935 | |
5936 | ||
5937 | ||
dd184caf | 5938 | |
d9898ee8 | 5939 | |
d9898ee8 | 5940 | |
dd184caf | 5941 | |
d9898ee8 | 5942 | |
d9898ee8 | 5943 | |
d9898ee8 | 5944 | |
d9898ee8 | 5945 | |
dd184caf | 5946 | |
d9898ee8 | 5947 | |
d9898ee8 | 5948 | |
dd184caf | 5949 | |
d9898ee8 | 5950 | |
d9898ee8 | 5951 | |
d9898ee8 | 5952 | |
d9898ee8 | 5953 | |
5954 | ||
d9898ee8 | 5955 | |
d9898ee8 | 5956 | |
dd184caf | 5957 | |
d9898ee8 | 5958 | |
d9898ee8 | 5959 | |
dd184caf | 5960 | |
d9898ee8 | 5961 | |
d9898ee8 | 5962 | |
5963 | ||
d9898ee8 | 5964 | |
d9898ee8 | 5965 | |
d9898ee8 | 5966 | |
d9898ee8 | 5967 | |
8d138742 CE |
5968 | # If no C compiler was specified, use CC. |
5969 | LTCC=${LTCC-"$CC"} | |
d9898ee8 | 5970 | |
8d138742 CE |
5971 | # If no C compiler flags were specified, use CFLAGS. |
5972 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d9898ee8 | 5973 | |
8d138742 CE |
5974 | # Allow CC to be a program name with arguments. |
5975 | compiler=$CC | |
d9898ee8 | 5976 | |
ac40fd9e | 5977 | |
d9898ee8 | 5978 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
b0322a85 | 5979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
8d138742 | 5980 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
b0322a85 | 5981 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
8d138742 | 5982 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5983 | else |
5984 | ||
5985 | # These are sane defaults that work on at least a few old systems. | |
5986 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5987 | ||
5988 | # Character class describing NM global symbol codes. | |
5989 | symcode='[BCDEGRST]' | |
5990 | ||
5991 | # Regexp to match symbols that can be accessed directly from C. | |
5992 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5993 | ||
d9898ee8 | 5994 | # Define system-specific variables. |
5995 | case $host_os in | |
5996 | aix*) | |
5997 | symcode='[BCDT]' | |
5998 | ;; | |
8d138742 | 5999 | cygwin* | mingw* | pw32* | cegcc*) |
d9898ee8 | 6000 | symcode='[ABCDGISTW]' |
6001 | ;; | |
8d138742 | 6002 | hpux*) |
d50284c4 | 6003 | if test ia64 = "$host_cpu"; then |
d9898ee8 | 6004 | symcode='[ABCDEGRST]' |
6005 | fi | |
d9898ee8 | 6006 | ;; |
6007 | irix* | nonstopux*) | |
6008 | symcode='[BCDEGRST]' | |
6009 | ;; | |
6010 | osf*) | |
6011 | symcode='[BCDEGQRST]' | |
6012 | ;; | |
6013 | solaris*) | |
6014 | symcode='[BDRT]' | |
6015 | ;; | |
6016 | sco3.2v5*) | |
6017 | symcode='[DT]' | |
6018 | ;; | |
6019 | sysv4.2uw2*) | |
6020 | symcode='[DT]' | |
6021 | ;; | |
6022 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6023 | symcode='[ABDT]' | |
6024 | ;; | |
6025 | sysv4) | |
6026 | symcode='[DFNSTU]' | |
6027 | ;; | |
6028 | esac | |
6029 | ||
8d138742 CE |
6030 | # If we're using GNU nm, then use its standard symbol codes. |
6031 | case `$NM -V 2>&1` in | |
6032 | *GNU* | *'with BFD'*) | |
6033 | symcode='[ABCDGIRSTW]' ;; | |
6034 | esac | |
6035 | ||
d50284c4 CE |
6036 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
6037 | # Gets list of data symbols to import. | |
6038 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" | |
6039 | # Adjust the below global symbol transforms to fixup imported variables. | |
6040 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" | |
6041 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" | |
6042 | lt_c_name_lib_hook="\ | |
6043 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ | |
6044 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" | |
6045 | else | |
6046 | # Disable hooks by default. | |
6047 | lt_cv_sys_global_symbol_to_import= | |
6048 | lt_cdecl_hook= | |
6049 | lt_c_name_hook= | |
6050 | lt_c_name_lib_hook= | |
6051 | fi | |
6052 | ||
8d138742 CE |
6053 | # Transform an extracted symbol line into a proper C declaration. |
6054 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6055 | # so use this general approach. | |
d50284c4 CE |
6056 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
6057 | $lt_cdecl_hook\ | |
6058 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ | |
6059 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" | |
8d138742 CE |
6060 | |
6061 | # Transform an extracted symbol line into symbol name and symbol address | |
d50284c4 CE |
6062 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
6063 | $lt_c_name_hook\ | |
6064 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
6065 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" | |
6066 | ||
6067 | # Transform an extracted symbol line into symbol name with lib prefix and | |
6068 | # symbol address. | |
6069 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ | |
6070 | $lt_c_name_lib_hook\ | |
6071 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
6072 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ | |
6073 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" | |
8d138742 | 6074 | |
d9898ee8 | 6075 | # Handle CRLF in mingw tool chain |
6076 | opt_cr= | |
6077 | case $build_os in | |
6078 | mingw*) | |
8d138742 | 6079 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
d9898ee8 | 6080 | ;; |
6081 | esac | |
6082 | ||
8d138742 | 6083 | # Try without a prefix underscore, then with it. |
d9898ee8 | 6084 | for ac_symprfx in "" "_"; do |
6085 | ||
6086 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6087 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6088 | ||
6089 | # Write the raw and C identifiers. | |
8d138742 | 6090 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
d50284c4 CE |
6091 | # Fake it for dumpbin and say T for any non-static function, |
6092 | # D for any global variable and I for any imported variable. | |
8d138742 CE |
6093 | # Also find C++ and __fastcall symbols from MSVC++, |
6094 | # which start with @ or ?. | |
6095 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6096 | " {last_section=section; section=\$ 3};"\ | |
b0322a85 | 6097 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
8d138742 | 6098 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
d50284c4 CE |
6099 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
6100 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ | |
6101 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ | |
8d138742 CE |
6102 | " \$ 0!~/External *\|/{next};"\ |
6103 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6104 | " {if(hide[section]) next};"\ | |
d50284c4 CE |
6105 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
6106 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ | |
6107 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ | |
6108 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ | |
8d138742 CE |
6109 | " ' prfx=^$ac_symprfx" |
6110 | else | |
6111 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6112 | fi | |
b0322a85 | 6113 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
d9898ee8 | 6114 | |
6115 | # Check to see that the pipe works correctly. | |
6116 | pipe_works=no | |
6117 | ||
6118 | rm -f conftest* | |
8d138742 | 6119 | cat > conftest.$ac_ext <<_LT_EOF |
d9898ee8 | 6120 | #ifdef __cplusplus |
6121 | extern "C" { | |
6122 | #endif | |
6123 | char nm_test_var; | |
8d138742 CE |
6124 | void nm_test_func(void); |
6125 | void nm_test_func(void){} | |
d9898ee8 | 6126 | #ifdef __cplusplus |
6127 | } | |
6128 | #endif | |
6129 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
8d138742 | 6130 | _LT_EOF |
d9898ee8 | 6131 | |
b0322a85 | 6132 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
d9898ee8 | 6133 | (eval $ac_compile) 2>&5 |
6134 | ac_status=$? | |
b0322a85 CE |
6135 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6136 | test $ac_status = 0; }; then | |
d9898ee8 | 6137 | # Now try to grab the symbols. |
6138 | nlist=conftest.nm | |
b0322a85 CE |
6139 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
6140 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
d9898ee8 | 6141 | ac_status=$? |
b0322a85 CE |
6142 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6143 | test $ac_status = 0; } && test -s "$nlist"; then | |
d9898ee8 | 6144 | # Try sorting and uniquifying the output. |
6145 | if sort "$nlist" | uniq > "$nlist"T; then | |
6146 | mv -f "$nlist"T "$nlist" | |
6147 | else | |
6148 | rm -f "$nlist"T | |
6149 | fi | |
6150 | ||
6151 | # Make sure that we snagged all the symbols we need. | |
8d138742 CE |
6152 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
6153 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6154 | cat <<_LT_EOF > conftest.$ac_ext | |
b0322a85 | 6155 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
d50284c4 CE |
6156 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
6157 | /* DATA imports from DLLs on WIN32 can't be const, because runtime | |
b0322a85 CE |
6158 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
6159 | # define LT_DLSYM_CONST | |
d50284c4 | 6160 | #elif defined __osf__ |
b0322a85 CE |
6161 | /* This system does not cope well with relocations in const data. */ |
6162 | # define LT_DLSYM_CONST | |
6163 | #else | |
6164 | # define LT_DLSYM_CONST const | |
6165 | #endif | |
6166 | ||
d9898ee8 | 6167 | #ifdef __cplusplus |
6168 | extern "C" { | |
6169 | #endif | |
6170 | ||
8d138742 | 6171 | _LT_EOF |
d9898ee8 | 6172 | # Now generate the symbol file. |
8d138742 | 6173 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
d9898ee8 | 6174 | |
8d138742 | 6175 | cat <<_LT_EOF >> conftest.$ac_ext |
d9898ee8 | 6176 | |
8d138742 | 6177 | /* The mapping between symbol names and symbols. */ |
b0322a85 | 6178 | LT_DLSYM_CONST struct { |
d9898ee8 | 6179 | const char *name; |
8d138742 | 6180 | void *address; |
d9898ee8 | 6181 | } |
8d138742 | 6182 | lt__PROGRAM__LTX_preloaded_symbols[] = |
d9898ee8 | 6183 | { |
8d138742 CE |
6184 | { "@PROGRAM@", (void *) 0 }, |
6185 | _LT_EOF | |
d50284c4 | 6186 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
8d138742 CE |
6187 | cat <<\_LT_EOF >> conftest.$ac_ext |
6188 | {0, (void *) 0} | |
d9898ee8 | 6189 | }; |
6190 | ||
8d138742 CE |
6191 | /* This works around a problem in FreeBSD linker */ |
6192 | #ifdef FREEBSD_WORKAROUND | |
6193 | static const void *lt_preloaded_setup() { | |
6194 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6195 | } | |
6196 | #endif | |
6197 | ||
d9898ee8 | 6198 | #ifdef __cplusplus |
6199 | } | |
6200 | #endif | |
8d138742 | 6201 | _LT_EOF |
d9898ee8 | 6202 | # Now try linking the two files. |
6203 | mv conftest.$ac_objext conftstm.$ac_objext | |
b0322a85 CE |
6204 | lt_globsym_save_LIBS=$LIBS |
6205 | lt_globsym_save_CFLAGS=$CFLAGS | |
d50284c4 | 6206 | LIBS=conftstm.$ac_objext |
d9898ee8 | 6207 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
b0322a85 | 6208 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
d9898ee8 | 6209 | (eval $ac_link) 2>&5 |
6210 | ac_status=$? | |
b0322a85 | 6211 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
d50284c4 | 6212 | test $ac_status = 0; } && test -s conftest$ac_exeext; then |
d9898ee8 | 6213 | pipe_works=yes |
6214 | fi | |
b0322a85 CE |
6215 | LIBS=$lt_globsym_save_LIBS |
6216 | CFLAGS=$lt_globsym_save_CFLAGS | |
d9898ee8 | 6217 | else |
6218 | echo "cannot find nm_test_func in $nlist" >&5 | |
6219 | fi | |
6220 | else | |
6221 | echo "cannot find nm_test_var in $nlist" >&5 | |
6222 | fi | |
6223 | else | |
6224 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6225 | fi | |
6226 | else | |
6227 | echo "$progname: failed program was:" >&5 | |
6228 | cat conftest.$ac_ext >&5 | |
6229 | fi | |
8d138742 | 6230 | rm -rf conftest* conftst* |
d9898ee8 | 6231 | |
6232 | # Do not use the global_symbol_pipe unless it works. | |
d50284c4 | 6233 | if test yes = "$pipe_works"; then |
d9898ee8 | 6234 | break |
6235 | else | |
6236 | lt_cv_sys_global_symbol_pipe= | |
6237 | fi | |
6238 | done | |
6239 | ||
6240 | fi | |
6241 | ||
6242 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6243 | lt_cv_sys_global_symbol_to_cdecl= | |
6244 | fi | |
6245 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
b0322a85 | 6246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
8d138742 | 6247 | $as_echo "failed" >&6; } |
d9898ee8 | 6248 | else |
b0322a85 | 6249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8d138742 | 6250 | $as_echo "ok" >&6; } |
d9898ee8 | 6251 | fi |
6252 | ||
b0322a85 CE |
6253 | # Response file support. |
6254 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6255 | nm_file_list_spec='@' | |
6256 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
6257 | nm_file_list_spec='@' | |
6258 | fi | |
6259 | ||
6260 | ||
6261 | ||
6262 | ||
6263 | ||
6264 | ||
6265 | ||
6266 | ||
6267 | ||
6268 | ||
6269 | ||
6270 | ||
6271 | ||
6272 | ||
d9898ee8 | 6273 | |
6274 | ||
d50284c4 CE |
6275 | |
6276 | ||
6277 | ||
6278 | ||
6279 | ||
6280 | ||
6281 | ||
6282 | ||
6283 | ||
6284 | ||
d9898ee8 | 6285 | |
6286 | ||
6287 | ||
d9898ee8 | 6288 | |
d9898ee8 | 6289 | |
d9898ee8 | 6290 | |
d9898ee8 | 6291 | |
d9898ee8 | 6292 | |
d9898ee8 | 6293 | |
d9898ee8 | 6294 | |
d9898ee8 | 6295 | |
b0322a85 CE |
6296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
6297 | $as_echo_n "checking for sysroot... " >&6; } | |
d9898ee8 | 6298 | |
b0322a85 CE |
6299 | # Check whether --with-sysroot was given. |
6300 | if test "${with_sysroot+set}" = set; then : | |
6301 | withval=$with_sysroot; | |
6302 | else | |
6303 | with_sysroot=no | |
6304 | fi | |
d9898ee8 | 6305 | |
dd184caf | 6306 | |
b0322a85 | 6307 | lt_sysroot= |
d50284c4 | 6308 | case $with_sysroot in #( |
b0322a85 | 6309 | yes) |
d50284c4 | 6310 | if test yes = "$GCC"; then |
b0322a85 CE |
6311 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
6312 | fi | |
6313 | ;; #( | |
6314 | /*) | |
6315 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
6316 | ;; #( | |
6317 | no|'') | |
6318 | ;; #( | |
6319 | *) | |
d50284c4 CE |
6320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
6321 | $as_echo "$with_sysroot" >&6; } | |
b0322a85 CE |
6322 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
6323 | ;; | |
6324 | esac | |
8d138742 | 6325 | |
b0322a85 CE |
6326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
6327 | $as_echo "${lt_sysroot:-no}" >&6; } | |
8d138742 CE |
6328 | |
6329 | ||
6330 | ||
6331 | ||
6332 | ||
d50284c4 CE |
6333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
6334 | $as_echo_n "checking for a working dd... " >&6; } | |
6335 | if ${ac_cv_path_lt_DD+:} false; then : | |
6336 | $as_echo_n "(cached) " >&6 | |
6337 | else | |
6338 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
6339 | cat conftest.i conftest.i >conftest2.i | |
6340 | : ${lt_DD:=$DD} | |
6341 | if test -z "$lt_DD"; then | |
6342 | ac_path_lt_DD_found=false | |
6343 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6345 | for as_dir in $PATH | |
6346 | do | |
6347 | IFS=$as_save_IFS | |
6348 | test -z "$as_dir" && as_dir=. | |
6349 | for ac_prog in dd; do | |
6350 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6351 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" | |
6352 | as_fn_executable_p "$ac_path_lt_DD" || continue | |
6353 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
6354 | cmp -s conftest.i conftest.out \ | |
6355 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: | |
6356 | fi | |
6357 | $ac_path_lt_DD_found && break 3 | |
6358 | done | |
6359 | done | |
6360 | done | |
6361 | IFS=$as_save_IFS | |
6362 | if test -z "$ac_cv_path_lt_DD"; then | |
6363 | : | |
6364 | fi | |
6365 | else | |
6366 | ac_cv_path_lt_DD=$lt_DD | |
6367 | fi | |
6368 | ||
6369 | rm -f conftest.i conftest2.i conftest.out | |
6370 | fi | |
6371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 | |
6372 | $as_echo "$ac_cv_path_lt_DD" >&6; } | |
6373 | ||
6374 | ||
6375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 | |
6376 | $as_echo_n "checking how to truncate binary pipes... " >&6; } | |
6377 | if ${lt_cv_truncate_bin+:} false; then : | |
6378 | $as_echo_n "(cached) " >&6 | |
6379 | else | |
6380 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
6381 | cat conftest.i conftest.i >conftest2.i | |
6382 | lt_cv_truncate_bin= | |
6383 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
6384 | cmp -s conftest.i conftest.out \ | |
6385 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" | |
6386 | fi | |
6387 | rm -f conftest.i conftest2.i conftest.out | |
6388 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" | |
6389 | fi | |
6390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 | |
6391 | $as_echo "$lt_cv_truncate_bin" >&6; } | |
6392 | ||
6393 | ||
6394 | ||
6395 | ||
6396 | ||
6397 | ||
6398 | ||
6399 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
6400 | func_cc_basename () | |
6401 | { | |
6402 | for cc_temp in $*""; do | |
6403 | case $cc_temp in | |
6404 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6405 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6406 | \-*) ;; | |
6407 | *) break;; | |
6408 | esac | |
6409 | done | |
6410 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
6411 | } | |
6412 | ||
8d138742 | 6413 | # Check whether --enable-libtool-lock was given. |
b0322a85 | 6414 | if test "${enable_libtool_lock+set}" = set; then : |
8d138742 | 6415 | enableval=$enable_libtool_lock; |
d9898ee8 | 6416 | fi |
8d138742 | 6417 | |
d50284c4 | 6418 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
8d138742 CE |
6419 | |
6420 | # Some flags need to be propagated to the compiler or linker for good | |
6421 | # libtool support. | |
6422 | case $host in | |
6423 | ia64-*-hpux*) | |
d50284c4 CE |
6424 | # Find out what ABI is being produced by ac_compile, and set mode |
6425 | # options accordingly. | |
8d138742 | 6426 | echo 'int i;' > conftest.$ac_ext |
b0322a85 | 6427 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
6428 | (eval $ac_compile) 2>&5 |
6429 | ac_status=$? | |
b0322a85 CE |
6430 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6431 | test $ac_status = 0; }; then | |
8d138742 CE |
6432 | case `/usr/bin/file conftest.$ac_objext` in |
6433 | *ELF-32*) | |
d50284c4 | 6434 | HPUX_IA64_MODE=32 |
8d138742 CE |
6435 | ;; |
6436 | *ELF-64*) | |
d50284c4 | 6437 | HPUX_IA64_MODE=64 |
8d138742 CE |
6438 | ;; |
6439 | esac | |
6440 | fi | |
6441 | rm -rf conftest* | |
6442 | ;; | |
6443 | *-*-irix6*) | |
d50284c4 CE |
6444 | # Find out what ABI is being produced by ac_compile, and set linker |
6445 | # options accordingly. | |
b0322a85 CE |
6446 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
6447 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8d138742 CE |
6448 | (eval $ac_compile) 2>&5 |
6449 | ac_status=$? | |
b0322a85 CE |
6450 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6451 | test $ac_status = 0; }; then | |
d50284c4 | 6452 | if test yes = "$lt_cv_prog_gnu_ld"; then |
8d138742 CE |
6453 | case `/usr/bin/file conftest.$ac_objext` in |
6454 | *32-bit*) | |
6455 | LD="${LD-ld} -melf32bsmip" | |
6456 | ;; | |
6457 | *N32*) | |
6458 | LD="${LD-ld} -melf32bmipn32" | |
6459 | ;; | |
6460 | *64-bit*) | |
6461 | LD="${LD-ld} -melf64bmip" | |
6462 | ;; | |
6463 | esac | |
6464 | else | |
6465 | case `/usr/bin/file conftest.$ac_objext` in | |
6466 | *32-bit*) | |
6467 | LD="${LD-ld} -32" | |
6468 | ;; | |
6469 | *N32*) | |
6470 | LD="${LD-ld} -n32" | |
6471 | ;; | |
6472 | *64-bit*) | |
6473 | LD="${LD-ld} -64" | |
6474 | ;; | |
6475 | esac | |
6476 | fi | |
6477 | fi | |
6478 | rm -rf conftest* | |
6479 | ;; | |
6480 | ||
d50284c4 CE |
6481 | mips64*-*linux*) |
6482 | # Find out what ABI is being produced by ac_compile, and set linker | |
6483 | # options accordingly. | |
6484 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
6485 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6486 | (eval $ac_compile) 2>&5 | |
6487 | ac_status=$? | |
6488 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6489 | test $ac_status = 0; }; then | |
6490 | emul=elf | |
6491 | case `/usr/bin/file conftest.$ac_objext` in | |
6492 | *32-bit*) | |
6493 | emul="${emul}32" | |
6494 | ;; | |
6495 | *64-bit*) | |
6496 | emul="${emul}64" | |
6497 | ;; | |
6498 | esac | |
6499 | case `/usr/bin/file conftest.$ac_objext` in | |
6500 | *MSB*) | |
6501 | emul="${emul}btsmip" | |
6502 | ;; | |
6503 | *LSB*) | |
6504 | emul="${emul}ltsmip" | |
6505 | ;; | |
6506 | esac | |
6507 | case `/usr/bin/file conftest.$ac_objext` in | |
6508 | *N32*) | |
6509 | emul="${emul}n32" | |
6510 | ;; | |
6511 | esac | |
6512 | LD="${LD-ld} -m $emul" | |
6513 | fi | |
6514 | rm -rf conftest* | |
6515 | ;; | |
6516 | ||
6517 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
8d138742 | 6518 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
d50284c4 CE |
6519 | # Find out what ABI is being produced by ac_compile, and set linker |
6520 | # options accordingly. Note that the listed cases only cover the | |
6521 | # situations where additional linker options are needed (such as when | |
6522 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or | |
6523 | # vice versa); the common cases where no linker options are needed do | |
6524 | # not appear in the list. | |
8d138742 | 6525 | echo 'int i;' > conftest.$ac_ext |
b0322a85 | 6526 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
6527 | (eval $ac_compile) 2>&5 |
6528 | ac_status=$? | |
b0322a85 CE |
6529 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6530 | test $ac_status = 0; }; then | |
8d138742 CE |
6531 | case `/usr/bin/file conftest.o` in |
6532 | *32-bit*) | |
6533 | case $host in | |
6534 | x86_64-*kfreebsd*-gnu) | |
6535 | LD="${LD-ld} -m elf_i386_fbsd" | |
6536 | ;; | |
6537 | x86_64-*linux*) | |
d50284c4 CE |
6538 | case `/usr/bin/file conftest.o` in |
6539 | *x86-64*) | |
6540 | LD="${LD-ld} -m elf32_x86_64" | |
6541 | ;; | |
6542 | *) | |
6543 | LD="${LD-ld} -m elf_i386" | |
6544 | ;; | |
6545 | esac | |
8d138742 | 6546 | ;; |
d50284c4 CE |
6547 | powerpc64le-*linux*) |
6548 | LD="${LD-ld} -m elf32lppclinux" | |
6549 | ;; | |
6550 | powerpc64-*linux*) | |
8d138742 CE |
6551 | LD="${LD-ld} -m elf32ppclinux" |
6552 | ;; | |
6553 | s390x-*linux*) | |
6554 | LD="${LD-ld} -m elf_s390" | |
6555 | ;; | |
6556 | sparc64-*linux*) | |
6557 | LD="${LD-ld} -m elf32_sparc" | |
6558 | ;; | |
6559 | esac | |
6560 | ;; | |
6561 | *64-bit*) | |
6562 | case $host in | |
6563 | x86_64-*kfreebsd*-gnu) | |
6564 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6565 | ;; | |
6566 | x86_64-*linux*) | |
6567 | LD="${LD-ld} -m elf_x86_64" | |
6568 | ;; | |
d50284c4 CE |
6569 | powerpcle-*linux*) |
6570 | LD="${LD-ld} -m elf64lppc" | |
6571 | ;; | |
6572 | powerpc-*linux*) | |
8d138742 CE |
6573 | LD="${LD-ld} -m elf64ppc" |
6574 | ;; | |
6575 | s390*-*linux*|s390*-*tpf*) | |
6576 | LD="${LD-ld} -m elf64_s390" | |
6577 | ;; | |
6578 | sparc*-*linux*) | |
6579 | LD="${LD-ld} -m elf64_sparc" | |
6580 | ;; | |
6581 | esac | |
6582 | ;; | |
6583 | esac | |
6584 | fi | |
6585 | rm -rf conftest* | |
6586 | ;; | |
6587 | ||
6588 | *-*-sco3.2v5*) | |
6589 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
d50284c4 | 6590 | SAVE_CFLAGS=$CFLAGS |
8d138742 | 6591 | CFLAGS="$CFLAGS -belf" |
b0322a85 | 6592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
8d138742 | 6593 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
b0322a85 | 6594 | if ${lt_cv_cc_needs_belf+:} false; then : |
8d138742 | 6595 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6596 | else |
8d138742 CE |
6597 | ac_ext=c |
6598 | ac_cpp='$CPP $CPPFLAGS' | |
6599 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6600 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6601 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6602 | ||
b0322a85 | 6603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
6604 | /* end confdefs.h. */ |
6605 | ||
6606 | int | |
6607 | main () | |
6608 | { | |
6609 | ||
b0322a85 CE |
6610 | ; |
6611 | return 0; | |
6612 | } | |
6613 | _ACEOF | |
6614 | if ac_fn_c_try_link "$LINENO"; then : | |
6615 | lt_cv_cc_needs_belf=yes | |
6616 | else | |
6617 | lt_cv_cc_needs_belf=no | |
6618 | fi | |
6619 | rm -f core conftest.err conftest.$ac_objext \ | |
6620 | conftest$ac_exeext conftest.$ac_ext | |
6621 | ac_ext=c | |
6622 | ac_cpp='$CPP $CPPFLAGS' | |
6623 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6624 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6625 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6626 | ||
6627 | fi | |
6628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
6629 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
d50284c4 | 6630 | if test yes != "$lt_cv_cc_needs_belf"; then |
b0322a85 | 6631 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
d50284c4 | 6632 | CFLAGS=$SAVE_CFLAGS |
b0322a85 CE |
6633 | fi |
6634 | ;; | |
6635 | *-*solaris*) | |
d50284c4 CE |
6636 | # Find out what ABI is being produced by ac_compile, and set linker |
6637 | # options accordingly. | |
b0322a85 CE |
6638 | echo 'int i;' > conftest.$ac_ext |
6639 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6640 | (eval $ac_compile) 2>&5 | |
6641 | ac_status=$? | |
6642 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6643 | test $ac_status = 0; }; then | |
6644 | case `/usr/bin/file conftest.o` in | |
6645 | *64-bit*) | |
6646 | case $lt_cv_prog_gnu_ld in | |
6647 | yes*) | |
6648 | case $host in | |
d50284c4 | 6649 | i?86-*-solaris*|x86_64-*-solaris*) |
b0322a85 CE |
6650 | LD="${LD-ld} -m elf_x86_64" |
6651 | ;; | |
6652 | sparc*-*-solaris*) | |
6653 | LD="${LD-ld} -m elf64_sparc" | |
6654 | ;; | |
6655 | esac | |
6656 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
6657 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
d50284c4 | 6658 | LD=${LD-ld}_sol2 |
b0322a85 CE |
6659 | fi |
6660 | ;; | |
6661 | *) | |
6662 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6663 | LD="${LD-ld} -64" | |
6664 | fi | |
6665 | ;; | |
6666 | esac | |
6667 | ;; | |
6668 | esac | |
6669 | fi | |
6670 | rm -rf conftest* | |
6671 | ;; | |
6672 | esac | |
6673 | ||
d50284c4 | 6674 | need_locks=$enable_libtool_lock |
b0322a85 CE |
6675 | |
6676 | if test -n "$ac_tool_prefix"; then | |
6677 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
6678 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
6679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6680 | $as_echo_n "checking for $ac_word... " >&6; } | |
6681 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
6682 | $as_echo_n "(cached) " >&6 | |
6683 | else | |
6684 | if test -n "$MANIFEST_TOOL"; then | |
6685 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
6686 | else | |
6687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6688 | for as_dir in $PATH | |
6689 | do | |
6690 | IFS=$as_save_IFS | |
6691 | test -z "$as_dir" && as_dir=. | |
6692 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6693 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6694 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
6695 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6696 | break 2 | |
6697 | fi | |
6698 | done | |
6699 | done | |
6700 | IFS=$as_save_IFS | |
6701 | ||
6702 | fi | |
6703 | fi | |
6704 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
6705 | if test -n "$MANIFEST_TOOL"; then | |
6706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
6707 | $as_echo "$MANIFEST_TOOL" >&6; } | |
6708 | else | |
6709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6710 | $as_echo "no" >&6; } | |
6711 | fi | |
6712 | ||
6713 | ||
6714 | fi | |
6715 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
6716 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
6717 | # Extract the first word of "mt", so it can be a program name with args. | |
6718 | set dummy mt; ac_word=$2 | |
6719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6720 | $as_echo_n "checking for $ac_word... " >&6; } | |
6721 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
6722 | $as_echo_n "(cached) " >&6 | |
6723 | else | |
6724 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6725 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
6726 | else | |
6727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6728 | for as_dir in $PATH | |
6729 | do | |
6730 | IFS=$as_save_IFS | |
6731 | test -z "$as_dir" && as_dir=. | |
6732 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6733 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6734 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
6735 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6736 | break 2 | |
6737 | fi | |
6738 | done | |
6739 | done | |
6740 | IFS=$as_save_IFS | |
6741 | ||
6742 | fi | |
6743 | fi | |
6744 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
6745 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
6747 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
6748 | else | |
6749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6750 | $as_echo "no" >&6; } | |
6751 | fi | |
6752 | ||
6753 | if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
6754 | MANIFEST_TOOL=":" | |
6755 | else | |
6756 | case $cross_compiling:$ac_tool_warned in | |
6757 | yes:) | |
6758 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6759 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6760 | ac_tool_warned=yes ;; | |
8d138742 | 6761 | esac |
b0322a85 CE |
6762 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
6763 | fi | |
8d138742 | 6764 | else |
b0322a85 CE |
6765 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
6766 | fi | |
8d138742 | 6767 | |
b0322a85 CE |
6768 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
6769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
6770 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
6771 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
6772 | $as_echo_n "(cached) " >&6 | |
6773 | else | |
6774 | lt_cv_path_mainfest_tool=no | |
6775 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
6776 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
6777 | cat conftest.err >&5 | |
6778 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
6779 | lt_cv_path_mainfest_tool=yes | |
6780 | fi | |
6781 | rm -f conftest* | |
6782 | fi | |
6783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
6784 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
d50284c4 | 6785 | if test yes != "$lt_cv_path_mainfest_tool"; then |
b0322a85 | 6786 | MANIFEST_TOOL=: |
8d138742 CE |
6787 | fi |
6788 | ||
8d138742 | 6789 | |
8d138742 | 6790 | |
b0322a85 | 6791 | |
8d138742 CE |
6792 | |
6793 | ||
6794 | case $host_os in | |
6795 | rhapsody* | darwin*) | |
6796 | if test -n "$ac_tool_prefix"; then | |
6797 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6798 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
b0322a85 | 6799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6800 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6801 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
8d138742 CE |
6802 | $as_echo_n "(cached) " >&6 |
6803 | else | |
6804 | if test -n "$DSYMUTIL"; then | |
6805 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
d9898ee8 | 6806 | else |
6807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6808 | for as_dir in $PATH | |
6809 | do | |
6810 | IFS=$as_save_IFS | |
6811 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6812 | for ac_exec_ext in '' $ac_executable_extensions; do |
6813 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6814 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
b0322a85 | 6815 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 6816 | break 2 |
6817 | fi | |
6818 | done | |
b0322a85 | 6819 | done |
dd184caf | 6820 | IFS=$as_save_IFS |
d9898ee8 | 6821 | |
d9898ee8 | 6822 | fi |
6823 | fi | |
8d138742 CE |
6824 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
6825 | if test -n "$DSYMUTIL"; then | |
b0322a85 | 6826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
8d138742 | 6827 | $as_echo "$DSYMUTIL" >&6; } |
d9898ee8 | 6828 | else |
b0322a85 | 6829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6830 | $as_echo "no" >&6; } |
d9898ee8 | 6831 | fi |
6832 | ||
8d138742 CE |
6833 | |
6834 | fi | |
6835 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
6836 | ac_ct_DSYMUTIL=$DSYMUTIL | |
6837 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
6838 | set dummy dsymutil; ac_word=$2 | |
b0322a85 | 6839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6840 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6841 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
8d138742 CE |
6842 | $as_echo_n "(cached) " >&6 |
6843 | else | |
6844 | if test -n "$ac_ct_DSYMUTIL"; then | |
6845 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
6846 | else | |
6847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6848 | for as_dir in $PATH | |
6849 | do | |
6850 | IFS=$as_save_IFS | |
6851 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6852 | for ac_exec_ext in '' $ac_executable_extensions; do |
6853 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6854 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
b0322a85 | 6855 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6856 | break 2 |
6857 | fi | |
6858 | done | |
b0322a85 | 6859 | done |
8d138742 CE |
6860 | IFS=$as_save_IFS |
6861 | ||
6862 | fi | |
6863 | fi | |
6864 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
6865 | if test -n "$ac_ct_DSYMUTIL"; then | |
b0322a85 | 6866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
8d138742 CE |
6867 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
6868 | else | |
b0322a85 | 6869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
6870 | $as_echo "no" >&6; } |
6871 | fi | |
6872 | ||
6873 | if test "x$ac_ct_DSYMUTIL" = x; then | |
6874 | DSYMUTIL=":" | |
dd184caf | 6875 | else |
6876 | case $cross_compiling:$ac_tool_warned in | |
6877 | yes:) | |
b0322a85 | 6878 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 6879 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 6880 | ac_tool_warned=yes ;; |
6881 | esac | |
8d138742 | 6882 | DSYMUTIL=$ac_ct_DSYMUTIL |
dd184caf | 6883 | fi |
d9898ee8 | 6884 | else |
8d138742 | 6885 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
d9898ee8 | 6886 | fi |
6887 | ||
8d138742 CE |
6888 | if test -n "$ac_tool_prefix"; then |
6889 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6890 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
b0322a85 | 6891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6892 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6893 | if ${ac_cv_prog_NMEDIT+:} false; then : |
8d138742 | 6894 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6895 | else |
8d138742 CE |
6896 | if test -n "$NMEDIT"; then |
6897 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
d9898ee8 | 6898 | else |
6899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6900 | for as_dir in $PATH | |
6901 | do | |
6902 | IFS=$as_save_IFS | |
6903 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6904 | for ac_exec_ext in '' $ac_executable_extensions; do |
6905 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6906 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
b0322a85 | 6907 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 6908 | break 2 |
6909 | fi | |
6910 | done | |
b0322a85 | 6911 | done |
dd184caf | 6912 | IFS=$as_save_IFS |
d9898ee8 | 6913 | |
6914 | fi | |
6915 | fi | |
8d138742 CE |
6916 | NMEDIT=$ac_cv_prog_NMEDIT |
6917 | if test -n "$NMEDIT"; then | |
b0322a85 | 6918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
8d138742 | 6919 | $as_echo "$NMEDIT" >&6; } |
d9898ee8 | 6920 | else |
b0322a85 | 6921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6922 | $as_echo "no" >&6; } |
d9898ee8 | 6923 | fi |
6924 | ||
dd184caf | 6925 | |
d9898ee8 | 6926 | fi |
8d138742 CE |
6927 | if test -z "$ac_cv_prog_NMEDIT"; then |
6928 | ac_ct_NMEDIT=$NMEDIT | |
6929 | # Extract the first word of "nmedit", so it can be a program name with args. | |
6930 | set dummy nmedit; ac_word=$2 | |
b0322a85 | 6931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6932 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6933 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
8d138742 | 6934 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6935 | else |
8d138742 CE |
6936 | if test -n "$ac_ct_NMEDIT"; then |
6937 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
d9898ee8 | 6938 | else |
6939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6940 | for as_dir in $PATH | |
6941 | do | |
6942 | IFS=$as_save_IFS | |
6943 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6944 | for ac_exec_ext in '' $ac_executable_extensions; do |
6945 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6946 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
b0322a85 | 6947 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 6948 | break 2 |
6949 | fi | |
6950 | done | |
b0322a85 | 6951 | done |
dd184caf | 6952 | IFS=$as_save_IFS |
d9898ee8 | 6953 | |
d9898ee8 | 6954 | fi |
6955 | fi | |
8d138742 CE |
6956 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
6957 | if test -n "$ac_ct_NMEDIT"; then | |
b0322a85 | 6958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
8d138742 | 6959 | $as_echo "$ac_ct_NMEDIT" >&6; } |
d9898ee8 | 6960 | else |
b0322a85 | 6961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6962 | $as_echo "no" >&6; } |
d9898ee8 | 6963 | fi |
6964 | ||
8d138742 CE |
6965 | if test "x$ac_ct_NMEDIT" = x; then |
6966 | NMEDIT=":" | |
dd184caf | 6967 | else |
6968 | case $cross_compiling:$ac_tool_warned in | |
6969 | yes:) | |
b0322a85 | 6970 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 6971 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 6972 | ac_tool_warned=yes ;; |
6973 | esac | |
8d138742 | 6974 | NMEDIT=$ac_ct_NMEDIT |
dd184caf | 6975 | fi |
d9898ee8 | 6976 | else |
8d138742 | 6977 | NMEDIT="$ac_cv_prog_NMEDIT" |
d9898ee8 | 6978 | fi |
6979 | ||
8d138742 CE |
6980 | if test -n "$ac_tool_prefix"; then |
6981 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
6982 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
b0322a85 | 6983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6984 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6985 | if ${ac_cv_prog_LIPO+:} false; then : |
8d138742 | 6986 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6987 | else |
8d138742 CE |
6988 | if test -n "$LIPO"; then |
6989 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
d9898ee8 | 6990 | else |
6991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6992 | for as_dir in $PATH | |
6993 | do | |
6994 | IFS=$as_save_IFS | |
6995 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6996 | for ac_exec_ext in '' $ac_executable_extensions; do |
6997 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6998 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
b0322a85 | 6999 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 7000 | break 2 |
7001 | fi | |
7002 | done | |
b0322a85 | 7003 | done |
dd184caf | 7004 | IFS=$as_save_IFS |
d9898ee8 | 7005 | |
7006 | fi | |
7007 | fi | |
8d138742 CE |
7008 | LIPO=$ac_cv_prog_LIPO |
7009 | if test -n "$LIPO"; then | |
b0322a85 | 7010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8d138742 | 7011 | $as_echo "$LIPO" >&6; } |
d9898ee8 | 7012 | else |
b0322a85 | 7013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7014 | $as_echo "no" >&6; } |
d9898ee8 | 7015 | fi |
7016 | ||
dd184caf | 7017 | |
d9898ee8 | 7018 | fi |
8d138742 CE |
7019 | if test -z "$ac_cv_prog_LIPO"; then |
7020 | ac_ct_LIPO=$LIPO | |
7021 | # Extract the first word of "lipo", so it can be a program name with args. | |
7022 | set dummy lipo; ac_word=$2 | |
b0322a85 | 7023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7024 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7025 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
8d138742 | 7026 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7027 | else |
8d138742 CE |
7028 | if test -n "$ac_ct_LIPO"; then |
7029 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
d9898ee8 | 7030 | else |
7031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7032 | for as_dir in $PATH | |
7033 | do | |
7034 | IFS=$as_save_IFS | |
7035 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7036 | for ac_exec_ext in '' $ac_executable_extensions; do |
7037 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7038 | ac_cv_prog_ac_ct_LIPO="lipo" |
b0322a85 | 7039 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 7040 | break 2 |
7041 | fi | |
7042 | done | |
b0322a85 | 7043 | done |
dd184caf | 7044 | IFS=$as_save_IFS |
d9898ee8 | 7045 | |
d9898ee8 | 7046 | fi |
7047 | fi | |
8d138742 CE |
7048 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
7049 | if test -n "$ac_ct_LIPO"; then | |
b0322a85 | 7050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
8d138742 | 7051 | $as_echo "$ac_ct_LIPO" >&6; } |
d9898ee8 | 7052 | else |
b0322a85 | 7053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7054 | $as_echo "no" >&6; } |
d9898ee8 | 7055 | fi |
7056 | ||
8d138742 CE |
7057 | if test "x$ac_ct_LIPO" = x; then |
7058 | LIPO=":" | |
dd184caf | 7059 | else |
7060 | case $cross_compiling:$ac_tool_warned in | |
7061 | yes:) | |
b0322a85 | 7062 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 7063 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 7064 | ac_tool_warned=yes ;; |
7065 | esac | |
8d138742 | 7066 | LIPO=$ac_ct_LIPO |
dd184caf | 7067 | fi |
d9898ee8 | 7068 | else |
8d138742 | 7069 | LIPO="$ac_cv_prog_LIPO" |
d9898ee8 | 7070 | fi |
7071 | ||
8d138742 CE |
7072 | if test -n "$ac_tool_prefix"; then |
7073 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7074 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
b0322a85 | 7075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7076 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7077 | if ${ac_cv_prog_OTOOL+:} false; then : |
8d138742 CE |
7078 | $as_echo_n "(cached) " >&6 |
7079 | else | |
7080 | if test -n "$OTOOL"; then | |
7081 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7082 | else | |
7083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7084 | for as_dir in $PATH | |
7085 | do | |
7086 | IFS=$as_save_IFS | |
7087 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7088 | for ac_exec_ext in '' $ac_executable_extensions; do |
7089 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7090 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
b0322a85 | 7091 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7092 | break 2 |
7093 | fi | |
7094 | done | |
b0322a85 | 7095 | done |
8d138742 | 7096 | IFS=$as_save_IFS |
d9898ee8 | 7097 | |
8d138742 CE |
7098 | fi |
7099 | fi | |
7100 | OTOOL=$ac_cv_prog_OTOOL | |
7101 | if test -n "$OTOOL"; then | |
b0322a85 | 7102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
8d138742 CE |
7103 | $as_echo "$OTOOL" >&6; } |
7104 | else | |
b0322a85 | 7105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7106 | $as_echo "no" >&6; } |
7107 | fi | |
d9898ee8 | 7108 | |
d9898ee8 | 7109 | |
d9898ee8 | 7110 | fi |
8d138742 CE |
7111 | if test -z "$ac_cv_prog_OTOOL"; then |
7112 | ac_ct_OTOOL=$OTOOL | |
7113 | # Extract the first word of "otool", so it can be a program name with args. | |
7114 | set dummy otool; ac_word=$2 | |
b0322a85 | 7115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7116 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7117 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
8d138742 CE |
7118 | $as_echo_n "(cached) " >&6 |
7119 | else | |
7120 | if test -n "$ac_ct_OTOOL"; then | |
7121 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7122 | else | |
7123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7124 | for as_dir in $PATH | |
7125 | do | |
7126 | IFS=$as_save_IFS | |
7127 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7128 | for ac_exec_ext in '' $ac_executable_extensions; do |
7129 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7130 | ac_cv_prog_ac_ct_OTOOL="otool" |
b0322a85 | 7131 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7132 | break 2 |
7133 | fi | |
d9898ee8 | 7134 | done |
b0322a85 | 7135 | done |
8d138742 | 7136 | IFS=$as_save_IFS |
d9898ee8 | 7137 | |
8d138742 CE |
7138 | fi |
7139 | fi | |
7140 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7141 | if test -n "$ac_ct_OTOOL"; then | |
b0322a85 | 7142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
8d138742 | 7143 | $as_echo "$ac_ct_OTOOL" >&6; } |
d9898ee8 | 7144 | else |
b0322a85 | 7145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7146 | $as_echo "no" >&6; } |
7147 | fi | |
d9898ee8 | 7148 | |
8d138742 CE |
7149 | if test "x$ac_ct_OTOOL" = x; then |
7150 | OTOOL=":" | |
7151 | else | |
7152 | case $cross_compiling:$ac_tool_warned in | |
7153 | yes:) | |
b0322a85 | 7154 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
7155 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7156 | ac_tool_warned=yes ;; | |
d9898ee8 | 7157 | esac |
8d138742 CE |
7158 | OTOOL=$ac_ct_OTOOL |
7159 | fi | |
7160 | else | |
7161 | OTOOL="$ac_cv_prog_OTOOL" | |
d9898ee8 | 7162 | fi |
7163 | ||
8d138742 CE |
7164 | if test -n "$ac_tool_prefix"; then |
7165 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7166 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
b0322a85 | 7167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7168 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7169 | if ${ac_cv_prog_OTOOL64+:} false; then : |
8d138742 | 7170 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7171 | else |
8d138742 CE |
7172 | if test -n "$OTOOL64"; then |
7173 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7174 | else | |
7175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7176 | for as_dir in $PATH | |
7177 | do | |
7178 | IFS=$as_save_IFS | |
7179 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7180 | for ac_exec_ext in '' $ac_executable_extensions; do |
7181 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7182 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
b0322a85 | 7183 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7184 | break 2 |
7185 | fi | |
7186 | done | |
b0322a85 | 7187 | done |
8d138742 | 7188 | IFS=$as_save_IFS |
d9898ee8 | 7189 | |
8d138742 CE |
7190 | fi |
7191 | fi | |
7192 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7193 | if test -n "$OTOOL64"; then | |
b0322a85 | 7194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
8d138742 | 7195 | $as_echo "$OTOOL64" >&6; } |
d9898ee8 | 7196 | else |
b0322a85 | 7197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7198 | $as_echo "no" >&6; } |
7199 | fi | |
d9898ee8 | 7200 | |
d9898ee8 | 7201 | |
d9898ee8 | 7202 | fi |
8d138742 CE |
7203 | if test -z "$ac_cv_prog_OTOOL64"; then |
7204 | ac_ct_OTOOL64=$OTOOL64 | |
7205 | # Extract the first word of "otool64", so it can be a program name with args. | |
7206 | set dummy otool64; ac_word=$2 | |
b0322a85 | 7207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7208 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7209 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
8d138742 CE |
7210 | $as_echo_n "(cached) " >&6 |
7211 | else | |
7212 | if test -n "$ac_ct_OTOOL64"; then | |
7213 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7214 | else | |
7215 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7216 | for as_dir in $PATH | |
7217 | do | |
7218 | IFS=$as_save_IFS | |
7219 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7220 | for ac_exec_ext in '' $ac_executable_extensions; do |
7221 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7222 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
b0322a85 | 7223 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7224 | break 2 |
7225 | fi | |
7226 | done | |
b0322a85 | 7227 | done |
8d138742 | 7228 | IFS=$as_save_IFS |
d9898ee8 | 7229 | |
8d138742 CE |
7230 | fi |
7231 | fi | |
7232 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7233 | if test -n "$ac_ct_OTOOL64"; then | |
b0322a85 | 7234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
8d138742 | 7235 | $as_echo "$ac_ct_OTOOL64" >&6; } |
d9898ee8 | 7236 | else |
b0322a85 | 7237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7238 | $as_echo "no" >&6; } |
d9898ee8 | 7239 | fi |
7240 | ||
8d138742 CE |
7241 | if test "x$ac_ct_OTOOL64" = x; then |
7242 | OTOOL64=":" | |
d9898ee8 | 7243 | else |
8d138742 CE |
7244 | case $cross_compiling:$ac_tool_warned in |
7245 | yes:) | |
b0322a85 | 7246 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
7247 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7248 | ac_tool_warned=yes ;; | |
7249 | esac | |
7250 | OTOOL64=$ac_ct_OTOOL64 | |
d9898ee8 | 7251 | fi |
8d138742 CE |
7252 | else |
7253 | OTOOL64="$ac_cv_prog_OTOOL64" | |
d9898ee8 | 7254 | fi |
7255 | ||
d9898ee8 | 7256 | |
d9898ee8 | 7257 | |
d9898ee8 | 7258 | |
d9898ee8 | 7259 | |
7260 | ||
dd184caf | 7261 | |
d9898ee8 | 7262 | |
d9898ee8 | 7263 | |
7264 | ||
d9898ee8 | 7265 | |
d9898ee8 | 7266 | |
d9898ee8 | 7267 | |
d9898ee8 | 7268 | |
7269 | ||
d9898ee8 | 7270 | |
d9898ee8 | 7271 | |
d9898ee8 | 7272 | |
7273 | ||
d9898ee8 | 7274 | |
d9898ee8 | 7275 | |
7276 | ||
7277 | ||
d9898ee8 | 7278 | |
d9898ee8 | 7279 | |
7280 | ||
8d138742 | 7281 | |
b0322a85 | 7282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
8d138742 | 7283 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
b0322a85 | 7284 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
8d138742 | 7285 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7286 | else |
8d138742 | 7287 | lt_cv_apple_cc_single_mod=no |
d50284c4 | 7288 | if test -z "$LT_MULTI_MODULE"; then |
8d138742 CE |
7289 | # By default we will add the -single_module flag. You can override |
7290 | # by either setting the environment variable LT_MULTI_MODULE | |
7291 | # non-empty at configure time, or by adding -multi_module to the | |
7292 | # link flags. | |
7293 | rm -rf libconftest.dylib* | |
7294 | echo "int foo(void){return 1;}" > conftest.c | |
7295 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7296 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7297 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7298 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7299 | _lt_result=$? | |
b0322a85 CE |
7300 | # If there is a non-empty error log, and "single_module" |
7301 | # appears in it, assume the flag caused a linker warning | |
7302 | if test -s conftest.err && $GREP single_module conftest.err; then | |
7303 | cat conftest.err >&5 | |
7304 | # Otherwise, if the output was created with a 0 exit code from | |
7305 | # the compiler, it worked. | |
d50284c4 | 7306 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
8d138742 CE |
7307 | lt_cv_apple_cc_single_mod=yes |
7308 | else | |
7309 | cat conftest.err >&5 | |
7310 | fi | |
7311 | rm -rf libconftest.dylib* | |
7312 | rm -f conftest.* | |
7313 | fi | |
d9898ee8 | 7314 | fi |
b0322a85 | 7315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
8d138742 | 7316 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
b0322a85 CE |
7317 | |
7318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8d138742 | 7319 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
b0322a85 | 7320 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
8d138742 CE |
7321 | $as_echo_n "(cached) " >&6 |
7322 | else | |
7323 | lt_cv_ld_exported_symbols_list=no | |
7324 | save_LDFLAGS=$LDFLAGS | |
7325 | echo "_main" > conftest.sym | |
7326 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
b0322a85 | 7327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 7328 | /* end confdefs.h. */ |
d9898ee8 | 7329 | |
8d138742 CE |
7330 | int |
7331 | main () | |
7332 | { | |
7333 | ||
7334 | ; | |
7335 | return 0; | |
7336 | } | |
7337 | _ACEOF | |
b0322a85 | 7338 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 | 7339 | lt_cv_ld_exported_symbols_list=yes |
d9898ee8 | 7340 | else |
b0322a85 | 7341 | lt_cv_ld_exported_symbols_list=no |
d9898ee8 | 7342 | fi |
b0322a85 CE |
7343 | rm -f core conftest.err conftest.$ac_objext \ |
7344 | conftest$ac_exeext conftest.$ac_ext | |
d50284c4 | 7345 | LDFLAGS=$save_LDFLAGS |
d9898ee8 | 7346 | |
8d138742 | 7347 | fi |
b0322a85 | 7348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8d138742 | 7349 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
b0322a85 CE |
7350 | |
7351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
7352 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
7353 | if ${lt_cv_ld_force_load+:} false; then : | |
7354 | $as_echo_n "(cached) " >&6 | |
7355 | else | |
7356 | lt_cv_ld_force_load=no | |
7357 | cat > conftest.c << _LT_EOF | |
7358 | int forced_loaded() { return 2;} | |
7359 | _LT_EOF | |
7360 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7361 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7362 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7363 | $AR cru libconftest.a conftest.o 2>&5 | |
7364 | echo "$RANLIB libconftest.a" >&5 | |
7365 | $RANLIB libconftest.a 2>&5 | |
7366 | cat > conftest.c << _LT_EOF | |
7367 | int main() { return 0;} | |
7368 | _LT_EOF | |
7369 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7370 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7371 | _lt_result=$? | |
7372 | if test -s conftest.err && $GREP force_load conftest.err; then | |
7373 | cat conftest.err >&5 | |
d50284c4 | 7374 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
b0322a85 CE |
7375 | lt_cv_ld_force_load=yes |
7376 | else | |
7377 | cat conftest.err >&5 | |
7378 | fi | |
7379 | rm -f conftest.err libconftest.a conftest conftest.c | |
7380 | rm -rf conftest.dSYM | |
7381 | ||
7382 | fi | |
7383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7384 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
d9898ee8 | 7385 | case $host_os in |
8d138742 | 7386 | rhapsody* | darwin1.[012]) |
d50284c4 | 7387 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
8d138742 | 7388 | darwin1.*) |
d50284c4 | 7389 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
8d138742 CE |
7390 | darwin*) # darwin 5.x on |
7391 | # if running on 10.5 or later, the deployment target defaults | |
7392 | # to the OS version, if on x86, and 10.4, the deployment | |
7393 | # target defaults to 10.4. Don't you love it? | |
7394 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7395 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
d50284c4 CE |
7396 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
7397 | 10.[012][,.]*) | |
7398 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
8d138742 | 7399 | 10.*) |
d50284c4 | 7400 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
8d138742 CE |
7401 | esac |
7402 | ;; | |
7403 | esac | |
d50284c4 | 7404 | if test yes = "$lt_cv_apple_cc_single_mod"; then |
8d138742 CE |
7405 | _lt_dar_single_mod='$single_module' |
7406 | fi | |
d50284c4 CE |
7407 | if test yes = "$lt_cv_ld_exported_symbols_list"; then |
7408 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' | |
8d138742 | 7409 | else |
d50284c4 | 7410 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
8d138742 | 7411 | fi |
d50284c4 | 7412 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
8d138742 CE |
7413 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
7414 | else | |
7415 | _lt_dsymutil= | |
7416 | fi | |
7417 | ;; | |
7418 | esac | |
d9898ee8 | 7419 | |
d50284c4 CE |
7420 | # func_munge_path_list VARIABLE PATH |
7421 | # ----------------------------------- | |
7422 | # VARIABLE is name of variable containing _space_ separated list of | |
7423 | # directories to be munged by the contents of PATH, which is string | |
7424 | # having a format: | |
7425 | # "DIR[:DIR]:" | |
7426 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
7427 | # ":DIR[:DIR]" | |
7428 | # string "DIR[ DIR]" will be appended to VARIABLE | |
7429 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
7430 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
7431 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
7432 | # "DIR[:DIR]" | |
7433 | # VARIABLE will be replaced by "DIR[ DIR]" | |
7434 | func_munge_path_list () | |
7435 | { | |
7436 | case x$2 in | |
7437 | x) | |
7438 | ;; | |
7439 | *:) | |
7440 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
7441 | ;; | |
7442 | x:*) | |
7443 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
7444 | ;; | |
7445 | *::*) | |
7446 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
7447 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
7448 | ;; | |
7449 | *) | |
7450 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
7451 | ;; | |
7452 | esac | |
7453 | } | |
7454 | ||
8d138742 CE |
7455 | ac_ext=c |
7456 | ac_cpp='$CPP $CPPFLAGS' | |
7457 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7458 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7459 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b0322a85 | 7460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
8d138742 CE |
7461 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
7462 | # On Suns, sometimes $CPP names a directory. | |
7463 | if test -n "$CPP" && test -d "$CPP"; then | |
7464 | CPP= | |
7465 | fi | |
7466 | if test -z "$CPP"; then | |
b0322a85 | 7467 | if ${ac_cv_prog_CPP+:} false; then : |
8d138742 CE |
7468 | $as_echo_n "(cached) " >&6 |
7469 | else | |
7470 | # Double quotes because CPP needs to be expanded | |
7471 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
7472 | do | |
7473 | ac_preproc_ok=false | |
7474 | for ac_c_preproc_warn_flag in '' yes | |
7475 | do | |
7476 | # Use a header file that comes with gcc, so configuring glibc | |
7477 | # with a fresh cross-compiler works. | |
7478 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7479 | # <limits.h> exists even on freestanding compilers. | |
7480 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7481 | # not just through cpp. "Syntax error" is here to catch this case. | |
b0322a85 | 7482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7483 | /* end confdefs.h. */ |
7484 | #ifdef __STDC__ | |
7485 | # include <limits.h> | |
7486 | #else | |
7487 | # include <assert.h> | |
7488 | #endif | |
7489 | Syntax error | |
7490 | _ACEOF | |
b0322a85 | 7491 | if ac_fn_c_try_cpp "$LINENO"; then : |
d9898ee8 | 7492 | |
b0322a85 | 7493 | else |
8d138742 CE |
7494 | # Broken: fails on valid input. |
7495 | continue | |
7496 | fi | |
b0322a85 | 7497 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 7498 | |
8d138742 CE |
7499 | # OK, works on sane cases. Now check whether nonexistent headers |
7500 | # can be detected and how. | |
b0322a85 | 7501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7502 | /* end confdefs.h. */ |
7503 | #include <ac_nonexistent.h> | |
7504 | _ACEOF | |
b0322a85 | 7505 | if ac_fn_c_try_cpp "$LINENO"; then : |
8d138742 CE |
7506 | # Broken: success on invalid input. |
7507 | continue | |
7508 | else | |
8d138742 CE |
7509 | # Passes both tests. |
7510 | ac_preproc_ok=: | |
7511 | break | |
7512 | fi | |
b0322a85 | 7513 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 7514 | |
8d138742 CE |
7515 | done |
7516 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
b0322a85 CE |
7517 | rm -f conftest.i conftest.err conftest.$ac_ext |
7518 | if $ac_preproc_ok; then : | |
8d138742 CE |
7519 | break |
7520 | fi | |
d9898ee8 | 7521 | |
8d138742 CE |
7522 | done |
7523 | ac_cv_prog_CPP=$CPP | |
d9898ee8 | 7524 | |
8d138742 CE |
7525 | fi |
7526 | CPP=$ac_cv_prog_CPP | |
7527 | else | |
7528 | ac_cv_prog_CPP=$CPP | |
7529 | fi | |
b0322a85 | 7530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
8d138742 CE |
7531 | $as_echo "$CPP" >&6; } |
7532 | ac_preproc_ok=false | |
7533 | for ac_c_preproc_warn_flag in '' yes | |
7534 | do | |
7535 | # Use a header file that comes with gcc, so configuring glibc | |
7536 | # with a fresh cross-compiler works. | |
7537 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7538 | # <limits.h> exists even on freestanding compilers. | |
7539 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7540 | # not just through cpp. "Syntax error" is here to catch this case. | |
b0322a85 | 7541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7542 | /* end confdefs.h. */ |
7543 | #ifdef __STDC__ | |
7544 | # include <limits.h> | |
7545 | #else | |
7546 | # include <assert.h> | |
7547 | #endif | |
7548 | Syntax error | |
7549 | _ACEOF | |
b0322a85 | 7550 | if ac_fn_c_try_cpp "$LINENO"; then : |
d9898ee8 | 7551 | |
b0322a85 | 7552 | else |
8d138742 CE |
7553 | # Broken: fails on valid input. |
7554 | continue | |
7555 | fi | |
b0322a85 | 7556 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 7557 | |
8d138742 CE |
7558 | # OK, works on sane cases. Now check whether nonexistent headers |
7559 | # can be detected and how. | |
b0322a85 | 7560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7561 | /* end confdefs.h. */ |
7562 | #include <ac_nonexistent.h> | |
7563 | _ACEOF | |
b0322a85 | 7564 | if ac_fn_c_try_cpp "$LINENO"; then : |
8d138742 CE |
7565 | # Broken: success on invalid input. |
7566 | continue | |
7567 | else | |
8d138742 CE |
7568 | # Passes both tests. |
7569 | ac_preproc_ok=: | |
7570 | break | |
7571 | fi | |
b0322a85 | 7572 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 7573 | |
8d138742 CE |
7574 | done |
7575 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
b0322a85 CE |
7576 | rm -f conftest.i conftest.err conftest.$ac_ext |
7577 | if $ac_preproc_ok; then : | |
7578 | ||
8d138742 | 7579 | else |
b0322a85 | 7580 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 7581 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
7582 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
7583 | See \`config.log' for more details" "$LINENO" 5; } | |
8d138742 | 7584 | fi |
d9898ee8 | 7585 | |
8d138742 CE |
7586 | ac_ext=c |
7587 | ac_cpp='$CPP $CPPFLAGS' | |
7588 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7589 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7590 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 7591 | |
d9898ee8 | 7592 | |
b0322a85 | 7593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
8d138742 | 7594 | $as_echo_n "checking for ANSI C header files... " >&6; } |
b0322a85 | 7595 | if ${ac_cv_header_stdc+:} false; then : |
8d138742 CE |
7596 | $as_echo_n "(cached) " >&6 |
7597 | else | |
b0322a85 | 7598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7599 | /* end confdefs.h. */ |
7600 | #include <stdlib.h> | |
7601 | #include <stdarg.h> | |
7602 | #include <string.h> | |
7603 | #include <float.h> | |
d9898ee8 | 7604 | |
8d138742 CE |
7605 | int |
7606 | main () | |
7607 | { | |
d9898ee8 | 7608 | |
8d138742 CE |
7609 | ; |
7610 | return 0; | |
7611 | } | |
7612 | _ACEOF | |
b0322a85 | 7613 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 CE |
7614 | ac_cv_header_stdc=yes |
7615 | else | |
b0322a85 | 7616 | ac_cv_header_stdc=no |
8d138742 | 7617 | fi |
8d138742 | 7618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 7619 | |
8d138742 CE |
7620 | if test $ac_cv_header_stdc = yes; then |
7621 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
b0322a85 | 7622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7623 | /* end confdefs.h. */ |
7624 | #include <string.h> | |
d9898ee8 | 7625 | |
8d138742 CE |
7626 | _ACEOF |
7627 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
7628 | $EGREP "memchr" >/dev/null 2>&1; then : |
7629 | ||
d9898ee8 | 7630 | else |
8d138742 CE |
7631 | ac_cv_header_stdc=no |
7632 | fi | |
7633 | rm -f conftest* | |
d9898ee8 | 7634 | |
7635 | fi | |
d9898ee8 | 7636 | |
8d138742 CE |
7637 | if test $ac_cv_header_stdc = yes; then |
7638 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
b0322a85 | 7639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7640 | /* end confdefs.h. */ |
7641 | #include <stdlib.h> | |
7642 | ||
7643 | _ACEOF | |
7644 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
7645 | $EGREP "free" >/dev/null 2>&1; then : |
7646 | ||
d9898ee8 | 7647 | else |
8d138742 | 7648 | ac_cv_header_stdc=no |
d9898ee8 | 7649 | fi |
8d138742 | 7650 | rm -f conftest* |
d9898ee8 | 7651 | |
7652 | fi | |
d9898ee8 | 7653 | |
8d138742 CE |
7654 | if test $ac_cv_header_stdc = yes; then |
7655 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
b0322a85 | 7656 | if test "$cross_compiling" = yes; then : |
8d138742 | 7657 | : |
d9898ee8 | 7658 | else |
b0322a85 | 7659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7660 | /* end confdefs.h. */ |
7661 | #include <ctype.h> | |
7662 | #include <stdlib.h> | |
7663 | #if ((' ' & 0x0FF) == 0x020) | |
7664 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7665 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7666 | #else | |
7667 | # define ISLOWER(c) \ | |
7668 | (('a' <= (c) && (c) <= 'i') \ | |
7669 | || ('j' <= (c) && (c) <= 'r') \ | |
7670 | || ('s' <= (c) && (c) <= 'z')) | |
7671 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7672 | #endif | |
d9898ee8 | 7673 | |
8d138742 CE |
7674 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
7675 | int | |
7676 | main () | |
7677 | { | |
7678 | int i; | |
7679 | for (i = 0; i < 256; i++) | |
7680 | if (XOR (islower (i), ISLOWER (i)) | |
7681 | || toupper (i) != TOUPPER (i)) | |
7682 | return 2; | |
7683 | return 0; | |
7684 | } | |
b0322a85 CE |
7685 | _ACEOF |
7686 | if ac_fn_c_try_run "$LINENO"; then : | |
7687 | ||
8d138742 | 7688 | else |
b0322a85 CE |
7689 | ac_cv_header_stdc=no |
7690 | fi | |
7691 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
7692 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7693 | fi | |
d9898ee8 | 7694 | |
8d138742 | 7695 | fi |
b0322a85 CE |
7696 | fi |
7697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
7698 | $as_echo "$ac_cv_header_stdc" >&6; } | |
7699 | if test $ac_cv_header_stdc = yes; then | |
7700 | ||
7701 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
d9898ee8 | 7702 | |
8d138742 | 7703 | fi |
b0322a85 CE |
7704 | |
7705 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
7706 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
7707 | inttypes.h stdint.h unistd.h | |
7708 | do : | |
7709 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7710 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
7711 | " | |
7712 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8d138742 CE |
7713 | cat >>confdefs.h <<_ACEOF |
7714 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7715 | _ACEOF | |
d9898ee8 | 7716 | |
8d138742 | 7717 | fi |
d9898ee8 | 7718 | |
8d138742 | 7719 | done |
d9898ee8 | 7720 | |
d9898ee8 | 7721 | |
8d138742 | 7722 | for ac_header in dlfcn.h |
b0322a85 CE |
7723 | do : |
7724 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7725 | " | |
7726 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8d138742 | 7727 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 7728 | #define HAVE_DLFCN_H 1 |
8d138742 | 7729 | _ACEOF |
d9898ee8 | 7730 | |
8d138742 | 7731 | fi |
d9898ee8 | 7732 | |
8d138742 | 7733 | done |
d9898ee8 | 7734 | |
d9898ee8 | 7735 | |
d9898ee8 | 7736 | |
b0322a85 CE |
7737 | |
7738 | ||
8d138742 CE |
7739 | # Set options |
7740 | ||
7741 | ||
7742 | ||
7743 | ||
7744 | enable_win32_dll=no | |
d9898ee8 | 7745 | |
8d138742 CE |
7746 | |
7747 | # Check whether --enable-shared was given. | |
b0322a85 | 7748 | if test "${enable_shared+set}" = set; then : |
8d138742 CE |
7749 | enableval=$enable_shared; p=${PACKAGE-default} |
7750 | case $enableval in | |
7751 | yes) enable_shared=yes ;; | |
7752 | no) enable_shared=no ;; | |
d9898ee8 | 7753 | *) |
8d138742 CE |
7754 | enable_shared=no |
7755 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 7756 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8d138742 | 7757 | for pkg in $enableval; do |
d50284c4 | 7758 | IFS=$lt_save_ifs |
8d138742 CE |
7759 | if test "X$pkg" = "X$p"; then |
7760 | enable_shared=yes | |
7761 | fi | |
7762 | done | |
d50284c4 | 7763 | IFS=$lt_save_ifs |
d9898ee8 | 7764 | ;; |
7765 | esac | |
8d138742 CE |
7766 | else |
7767 | enable_shared=yes | |
7768 | fi | |
d9898ee8 | 7769 | |
d9898ee8 | 7770 | |
d9898ee8 | 7771 | |
d9898ee8 | 7772 | |
d9898ee8 | 7773 | |
d9898ee8 | 7774 | |
d9898ee8 | 7775 | |
d9898ee8 | 7776 | |
d9898ee8 | 7777 | |
8d138742 | 7778 | # Check whether --enable-static was given. |
b0322a85 | 7779 | if test "${enable_static+set}" = set; then : |
8d138742 CE |
7780 | enableval=$enable_static; p=${PACKAGE-default} |
7781 | case $enableval in | |
7782 | yes) enable_static=yes ;; | |
7783 | no) enable_static=no ;; | |
7784 | *) | |
7785 | enable_static=no | |
7786 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 7787 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8d138742 | 7788 | for pkg in $enableval; do |
d50284c4 | 7789 | IFS=$lt_save_ifs |
8d138742 CE |
7790 | if test "X$pkg" = "X$p"; then |
7791 | enable_static=yes | |
7792 | fi | |
7793 | done | |
d50284c4 | 7794 | IFS=$lt_save_ifs |
8d138742 CE |
7795 | ;; |
7796 | esac | |
d9898ee8 | 7797 | else |
8d138742 CE |
7798 | enable_static=yes |
7799 | fi | |
7800 | ||
d9898ee8 | 7801 | |
dd184caf | 7802 | |
dd184caf | 7803 | |
d9898ee8 | 7804 | |
d9898ee8 | 7805 | |
d9898ee8 | 7806 | |
d9898ee8 | 7807 | |
d9898ee8 | 7808 | |
dd184caf | 7809 | |
8d138742 | 7810 | # Check whether --with-pic was given. |
b0322a85 CE |
7811 | if test "${with_pic+set}" = set; then : |
7812 | withval=$with_pic; lt_p=${PACKAGE-default} | |
7813 | case $withval in | |
7814 | yes|no) pic_mode=$withval ;; | |
7815 | *) | |
7816 | pic_mode=default | |
7817 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 7818 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
b0322a85 | 7819 | for lt_pkg in $withval; do |
d50284c4 | 7820 | IFS=$lt_save_ifs |
b0322a85 CE |
7821 | if test "X$lt_pkg" = "X$lt_p"; then |
7822 | pic_mode=yes | |
7823 | fi | |
7824 | done | |
d50284c4 | 7825 | IFS=$lt_save_ifs |
b0322a85 CE |
7826 | ;; |
7827 | esac | |
8d138742 CE |
7828 | else |
7829 | pic_mode=default | |
d9898ee8 | 7830 | fi |
dd184caf | 7831 | |
d9898ee8 | 7832 | |
d9898ee8 | 7833 | |
d9898ee8 | 7834 | |
d9898ee8 | 7835 | |
d9898ee8 | 7836 | |
d9898ee8 | 7837 | |
d9898ee8 | 7838 | |
8d138742 | 7839 | # Check whether --enable-fast-install was given. |
b0322a85 | 7840 | if test "${enable_fast_install+set}" = set; then : |
8d138742 CE |
7841 | enableval=$enable_fast_install; p=${PACKAGE-default} |
7842 | case $enableval in | |
7843 | yes) enable_fast_install=yes ;; | |
7844 | no) enable_fast_install=no ;; | |
7845 | *) | |
7846 | enable_fast_install=no | |
7847 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 7848 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8d138742 | 7849 | for pkg in $enableval; do |
d50284c4 | 7850 | IFS=$lt_save_ifs |
8d138742 CE |
7851 | if test "X$pkg" = "X$p"; then |
7852 | enable_fast_install=yes | |
7853 | fi | |
7854 | done | |
d50284c4 | 7855 | IFS=$lt_save_ifs |
d9898ee8 | 7856 | ;; |
8d138742 CE |
7857 | esac |
7858 | else | |
7859 | enable_fast_install=yes | |
7860 | fi | |
d9898ee8 | 7861 | |
d9898ee8 | 7862 | |
d9898ee8 | 7863 | |
d9898ee8 | 7864 | |
d9898ee8 | 7865 | |
d9898ee8 | 7866 | |
d9898ee8 | 7867 | |
d9898ee8 | 7868 | |
d50284c4 CE |
7869 | shared_archive_member_spec= |
7870 | case $host,$enable_shared in | |
7871 | power*-*-aix[5-9]*,yes) | |
7872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 | |
7873 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } | |
7874 | ||
7875 | # Check whether --with-aix-soname was given. | |
7876 | if test "${with_aix_soname+set}" = set; then : | |
7877 | withval=$with_aix_soname; case $withval in | |
7878 | aix|svr4|both) | |
7879 | ;; | |
7880 | *) | |
7881 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 | |
7882 | ;; | |
7883 | esac | |
7884 | lt_cv_with_aix_soname=$with_aix_soname | |
7885 | else | |
7886 | if ${lt_cv_with_aix_soname+:} false; then : | |
7887 | $as_echo_n "(cached) " >&6 | |
7888 | else | |
7889 | lt_cv_with_aix_soname=aix | |
7890 | fi | |
7891 | ||
7892 | with_aix_soname=$lt_cv_with_aix_soname | |
7893 | fi | |
7894 | ||
7895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 | |
7896 | $as_echo "$with_aix_soname" >&6; } | |
7897 | if test aix != "$with_aix_soname"; then | |
7898 | # For the AIX way of multilib, we name the shared archive member | |
7899 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', | |
7900 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. | |
7901 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, | |
7902 | # the AIX toolchain works better with OBJECT_MODE set (default 32). | |
7903 | if test 64 = "${OBJECT_MODE-32}"; then | |
7904 | shared_archive_member_spec=shr_64 | |
7905 | else | |
7906 | shared_archive_member_spec=shr | |
7907 | fi | |
7908 | fi | |
7909 | ;; | |
7910 | *) | |
7911 | with_aix_soname=aix | |
7912 | ;; | |
7913 | esac | |
7914 | ||
7915 | ||
7916 | ||
7917 | ||
7918 | ||
7919 | ||
7920 | ||
d9898ee8 | 7921 | |
d9898ee8 | 7922 | |
d9898ee8 | 7923 | |
8d138742 | 7924 | # This can be used to rebuild libtool when needed |
d50284c4 | 7925 | LIBTOOL_DEPS=$ltmain |
d9898ee8 | 7926 | |
8d138742 CE |
7927 | # Always use our own libtool. |
7928 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d9898ee8 | 7929 | |
d9898ee8 | 7930 | |
d9898ee8 | 7931 | |
d9898ee8 | 7932 | |
d9898ee8 | 7933 | |
d9898ee8 | 7934 | |
d9898ee8 | 7935 | |
d9898ee8 | 7936 | |
d9898ee8 | 7937 | |
d9898ee8 | 7938 | |
d9898ee8 | 7939 | |
d9898ee8 | 7940 | |
d9898ee8 | 7941 | |
d9898ee8 | 7942 | |
d9898ee8 | 7943 | |
d9898ee8 | 7944 | |
d9898ee8 | 7945 | |
d9898ee8 | 7946 | |
d9898ee8 | 7947 | |
b0322a85 CE |
7948 | |
7949 | ||
7950 | ||
7951 | ||
7952 | ||
d9898ee8 | 7953 | |
d9898ee8 | 7954 | |
d9898ee8 | 7955 | |
ac40fd9e | 7956 | |
d9898ee8 | 7957 | |
d9898ee8 | 7958 | |
8d138742 | 7959 | test -z "$LN_S" && LN_S="ln -s" |
d9898ee8 | 7960 | |
d9898ee8 | 7961 | |
d9898ee8 | 7962 | |
d9898ee8 | 7963 | |
d9898ee8 | 7964 | |
d9898ee8 | 7965 | |
d9898ee8 | 7966 | |
d9898ee8 | 7967 | |
d9898ee8 | 7968 | |
d9898ee8 | 7969 | |
ac40fd9e | 7970 | |
d9898ee8 | 7971 | |
d9898ee8 | 7972 | |
d9898ee8 | 7973 | |
d50284c4 | 7974 | if test -n "${ZSH_VERSION+set}"; then |
8d138742 CE |
7975 | setopt NO_GLOB_SUBST |
7976 | fi | |
d9898ee8 | 7977 | |
b0322a85 | 7978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8d138742 | 7979 | $as_echo_n "checking for objdir... " >&6; } |
b0322a85 | 7980 | if ${lt_cv_objdir+:} false; then : |
8d138742 CE |
7981 | $as_echo_n "(cached) " >&6 |
7982 | else | |
7983 | rm -f .libs 2>/dev/null | |
7984 | mkdir .libs 2>/dev/null | |
7985 | if test -d .libs; then | |
7986 | lt_cv_objdir=.libs | |
7987 | else | |
7988 | # MS-DOS does not allow filenames that begin with a dot. | |
7989 | lt_cv_objdir=_libs | |
7990 | fi | |
7991 | rmdir .libs 2>/dev/null | |
7992 | fi | |
b0322a85 | 7993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8d138742 CE |
7994 | $as_echo "$lt_cv_objdir" >&6; } |
7995 | objdir=$lt_cv_objdir | |
d9898ee8 | 7996 | |
d9898ee8 | 7997 | |
d9898ee8 | 7998 | |
d9898ee8 | 7999 | |
d9898ee8 | 8000 | |
8d138742 CE |
8001 | cat >>confdefs.h <<_ACEOF |
8002 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8003 | _ACEOF | |
d9898ee8 | 8004 | |
d9898ee8 | 8005 | |
d9898ee8 | 8006 | |
d9898ee8 | 8007 | |
8d138742 CE |
8008 | case $host_os in |
8009 | aix3*) | |
8010 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8011 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8012 | # vanish in a puff of smoke. | |
d50284c4 | 8013 | if test set != "${COLLECT_NAMES+set}"; then |
8d138742 CE |
8014 | COLLECT_NAMES= |
8015 | export COLLECT_NAMES | |
8016 | fi | |
d9898ee8 | 8017 | ;; |
8018 | esac | |
d9898ee8 | 8019 | |
8d138742 CE |
8020 | # Global variables: |
8021 | ofile=libtool | |
8022 | can_build_shared=yes | |
d9898ee8 | 8023 | |
d50284c4 | 8024 | # All known linkers require a '.a' archive for static linking (except MSVC, |
8d138742 CE |
8025 | # which needs '.lib'). |
8026 | libext=a | |
d9898ee8 | 8027 | |
d50284c4 | 8028 | with_gnu_ld=$lt_cv_prog_gnu_ld |
d9898ee8 | 8029 | |
d50284c4 CE |
8030 | old_CC=$CC |
8031 | old_CFLAGS=$CFLAGS | |
d9898ee8 | 8032 | |
8d138742 CE |
8033 | # Set sane defaults for various variables |
8034 | test -z "$CC" && CC=cc | |
8035 | test -z "$LTCC" && LTCC=$CC | |
8036 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8037 | test -z "$LD" && LD=ld | |
8038 | test -z "$ac_objext" && ac_objext=o | |
d9898ee8 | 8039 | |
d50284c4 CE |
8040 | func_cc_basename $compiler |
8041 | cc_basename=$func_cc_basename_result | |
d9898ee8 | 8042 | |
dd184caf | 8043 | |
8d138742 CE |
8044 | # Only perform the check for file, if the check method requires it |
8045 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8046 | case $deplibs_check_method in | |
8047 | file_magic*) | |
8048 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
b0322a85 | 8049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
8d138742 | 8050 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
b0322a85 | 8051 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8d138742 | 8052 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 8053 | else |
8d138742 CE |
8054 | case $MAGIC_CMD in |
8055 | [\\/*] | ?:[\\/]*) | |
d50284c4 | 8056 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
8d138742 CE |
8057 | ;; |
8058 | *) | |
d50284c4 CE |
8059 | lt_save_MAGIC_CMD=$MAGIC_CMD |
8060 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
8d138742 CE |
8061 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8062 | for ac_dir in $ac_dummy; do | |
d50284c4 | 8063 | IFS=$lt_save_ifs |
8d138742 | 8064 | test -z "$ac_dir" && ac_dir=. |
d50284c4 CE |
8065 | if test -f "$ac_dir/${ac_tool_prefix}file"; then |
8066 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" | |
8d138742 CE |
8067 | if test -n "$file_magic_test_file"; then |
8068 | case $deplibs_check_method in | |
8069 | "file_magic "*) | |
8070 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
d50284c4 | 8071 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 CE |
8072 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8073 | $EGREP "$file_magic_regex" > /dev/null; then | |
8074 | : | |
8075 | else | |
8076 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8077 | |
8d138742 CE |
8078 | *** Warning: the command libtool uses to detect shared libraries, |
8079 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8080 | *** The result is that libtool may fail to recognize shared libraries | |
8081 | *** as such. This will affect the creation of libtool libraries that | |
8082 | *** depend on shared libraries, but programs linked with such libtool | |
8083 | *** libraries will work regardless of this problem. Nevertheless, you | |
8084 | *** may want to report the problem to your system manager and/or to | |
8085 | *** bug-libtool@gnu.org | |
d9898ee8 | 8086 | |
8d138742 CE |
8087 | _LT_EOF |
8088 | fi ;; | |
8089 | esac | |
8090 | fi | |
8091 | break | |
8092 | fi | |
8093 | done | |
d50284c4 CE |
8094 | IFS=$lt_save_ifs |
8095 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
8d138742 CE |
8096 | ;; |
8097 | esac | |
d9898ee8 | 8098 | fi |
8099 | ||
d50284c4 | 8100 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 | 8101 | if test -n "$MAGIC_CMD"; then |
b0322a85 | 8102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8d138742 | 8103 | $as_echo "$MAGIC_CMD" >&6; } |
d9898ee8 | 8104 | else |
b0322a85 | 8105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
8106 | $as_echo "no" >&6; } |
8107 | fi | |
d9898ee8 | 8108 | |
d9898ee8 | 8109 | |
d9898ee8 | 8110 | |
d9898ee8 | 8111 | |
d9898ee8 | 8112 | |
8d138742 CE |
8113 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
8114 | if test -n "$ac_tool_prefix"; then | |
b0322a85 | 8115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8d138742 | 8116 | $as_echo_n "checking for file... " >&6; } |
b0322a85 | 8117 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8d138742 | 8118 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 8119 | else |
8d138742 CE |
8120 | case $MAGIC_CMD in |
8121 | [\\/*] | ?:[\\/]*) | |
d50284c4 | 8122 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
8d138742 CE |
8123 | ;; |
8124 | *) | |
d50284c4 CE |
8125 | lt_save_MAGIC_CMD=$MAGIC_CMD |
8126 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
8d138742 CE |
8127 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8128 | for ac_dir in $ac_dummy; do | |
d50284c4 | 8129 | IFS=$lt_save_ifs |
8d138742 | 8130 | test -z "$ac_dir" && ac_dir=. |
d50284c4 CE |
8131 | if test -f "$ac_dir/file"; then |
8132 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" | |
8d138742 CE |
8133 | if test -n "$file_magic_test_file"; then |
8134 | case $deplibs_check_method in | |
8135 | "file_magic "*) | |
8136 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
d50284c4 | 8137 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 CE |
8138 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8139 | $EGREP "$file_magic_regex" > /dev/null; then | |
8140 | : | |
8141 | else | |
8142 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8143 | |
8d138742 CE |
8144 | *** Warning: the command libtool uses to detect shared libraries, |
8145 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8146 | *** The result is that libtool may fail to recognize shared libraries | |
8147 | *** as such. This will affect the creation of libtool libraries that | |
8148 | *** depend on shared libraries, but programs linked with such libtool | |
8149 | *** libraries will work regardless of this problem. Nevertheless, you | |
8150 | *** may want to report the problem to your system manager and/or to | |
8151 | *** bug-libtool@gnu.org | |
dd184caf | 8152 | |
8d138742 CE |
8153 | _LT_EOF |
8154 | fi ;; | |
8155 | esac | |
8156 | fi | |
8157 | break | |
8158 | fi | |
8159 | done | |
d50284c4 CE |
8160 | IFS=$lt_save_ifs |
8161 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
8d138742 CE |
8162 | ;; |
8163 | esac | |
d9898ee8 | 8164 | fi |
d9898ee8 | 8165 | |
d50284c4 | 8166 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 | 8167 | if test -n "$MAGIC_CMD"; then |
b0322a85 | 8168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8d138742 | 8169 | $as_echo "$MAGIC_CMD" >&6; } |
d9898ee8 | 8170 | else |
b0322a85 | 8171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 8172 | $as_echo "no" >&6; } |
d9898ee8 | 8173 | fi |
dd184caf | 8174 | |
8d138742 CE |
8175 | |
8176 | else | |
8177 | MAGIC_CMD=: | |
8178 | fi | |
d9898ee8 | 8179 | fi |
d9898ee8 | 8180 | |
8d138742 CE |
8181 | fi |
8182 | ;; | |
8183 | esac | |
d9898ee8 | 8184 | |
8d138742 | 8185 | # Use C for the default configuration in the libtool script |
d9898ee8 | 8186 | |
d50284c4 | 8187 | lt_save_CC=$CC |
8d138742 CE |
8188 | ac_ext=c |
8189 | ac_cpp='$CPP $CPPFLAGS' | |
8190 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8191 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8192 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 8193 | |
d9898ee8 | 8194 | |
8d138742 CE |
8195 | # Source file extension for C test sources. |
8196 | ac_ext=c | |
d9898ee8 | 8197 | |
8d138742 CE |
8198 | # Object file extension for compiled C test sources. |
8199 | objext=o | |
8200 | objext=$objext | |
dd184caf | 8201 | |
8d138742 CE |
8202 | # Code to be used in simple compile tests |
8203 | lt_simple_compile_test_code="int some_variable = 0;" | |
d9898ee8 | 8204 | |
8d138742 CE |
8205 | # Code to be used in simple link tests |
8206 | lt_simple_link_test_code='int main(){return(0);}' | |
d9898ee8 | 8207 | |
dd184caf | 8208 | |
d9898ee8 | 8209 | |
d9898ee8 | 8210 | |
dd184caf | 8211 | |
d9898ee8 | 8212 | |
d9898ee8 | 8213 | |
8d138742 CE |
8214 | # If no C compiler was specified, use CC. |
8215 | LTCC=${LTCC-"$CC"} | |
dd184caf | 8216 | |
8d138742 CE |
8217 | # If no C compiler flags were specified, use CFLAGS. |
8218 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d9898ee8 | 8219 | |
8d138742 CE |
8220 | # Allow CC to be a program name with arguments. |
8221 | compiler=$CC | |
d9898ee8 | 8222 | |
8d138742 CE |
8223 | # Save the default compiler, since it gets overwritten when the other |
8224 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8225 | compiler_DEFAULT=$CC | |
d9898ee8 | 8226 | |
8d138742 CE |
8227 | # save warnings/boilerplate of simple test code |
8228 | ac_outfile=conftest.$ac_objext | |
8229 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8230 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8231 | _lt_compiler_boilerplate=`cat conftest.err` | |
8232 | $RM conftest* | |
d9898ee8 | 8233 | |
8d138742 CE |
8234 | ac_outfile=conftest.$ac_objext |
8235 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8236 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8237 | _lt_linker_boilerplate=`cat conftest.err` | |
8238 | $RM -r conftest* | |
d9898ee8 | 8239 | |
8240 | ||
8d138742 | 8241 | if test -n "$compiler"; then |
d9898ee8 | 8242 | |
8d138742 | 8243 | lt_prog_compiler_no_builtin_flag= |
d9898ee8 | 8244 | |
d50284c4 | 8245 | if test yes = "$GCC"; then |
b0322a85 CE |
8246 | case $cc_basename in |
8247 | nvcc*) | |
8248 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8249 | *) | |
8250 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8251 | esac | |
d9898ee8 | 8252 | |
b0322a85 | 8253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8d138742 | 8254 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
b0322a85 | 8255 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
8d138742 CE |
8256 | $as_echo_n "(cached) " >&6 |
8257 | else | |
8258 | lt_cv_prog_compiler_rtti_exceptions=no | |
8259 | ac_outfile=conftest.$ac_objext | |
8260 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d50284c4 | 8261 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
8d138742 CE |
8262 | # Insert the option either (1) after the last *FLAGS variable, or |
8263 | # (2) before a word containing "conftest.", or (3) at the end. | |
8264 | # Note that $ac_compile itself does not contain backslashes and begins | |
8265 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8266 | # The option is referenced via a variable to avoid confusing sed. | |
8267 | lt_compile=`echo "$ac_compile" | $SED \ | |
8268 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8269 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8270 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8271 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8272 | (eval "$lt_compile" 2>conftest.err) |
8273 | ac_status=$? | |
8274 | cat conftest.err >&5 | |
b0322a85 | 8275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8276 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8277 | # The compiler can only warn and ignore the option if not recognized | |
8278 | # So say no if there are warnings other than the usual output. | |
b0322a85 | 8279 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
8d138742 CE |
8280 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8281 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8282 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8283 | fi | |
8284 | fi | |
8285 | $RM conftest* | |
d9898ee8 | 8286 | |
8287 | fi | |
b0322a85 | 8288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8d138742 | 8289 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 | 8290 | |
d50284c4 | 8291 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
8d138742 CE |
8292 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
8293 | else | |
8294 | : | |
8295 | fi | |
d9898ee8 | 8296 | |
8d138742 | 8297 | fi |
d9898ee8 | 8298 | |
d9898ee8 | 8299 | |
d9898ee8 | 8300 | |
d9898ee8 | 8301 | |
d9898ee8 | 8302 | |
d9898ee8 | 8303 | |
8d138742 CE |
8304 | lt_prog_compiler_wl= |
8305 | lt_prog_compiler_pic= | |
8306 | lt_prog_compiler_static= | |
d9898ee8 | 8307 | |
d9898ee8 | 8308 | |
d50284c4 | 8309 | if test yes = "$GCC"; then |
8d138742 CE |
8310 | lt_prog_compiler_wl='-Wl,' |
8311 | lt_prog_compiler_static='-static' | |
d9898ee8 | 8312 | |
8d138742 CE |
8313 | case $host_os in |
8314 | aix*) | |
8315 | # All AIX code is PIC. | |
d50284c4 | 8316 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
8317 | # AIX 5 now supports IA64 processor |
8318 | lt_prog_compiler_static='-Bstatic' | |
8319 | fi | |
d50284c4 | 8320 | lt_prog_compiler_pic='-fPIC' |
8d138742 | 8321 | ;; |
d9898ee8 | 8322 | |
8d138742 CE |
8323 | amigaos*) |
8324 | case $host_cpu in | |
8325 | powerpc) | |
8326 | # see comment about AmigaOS4 .so support | |
8327 | lt_prog_compiler_pic='-fPIC' | |
8328 | ;; | |
8329 | m68k) | |
8330 | # FIXME: we need at least 68020 code to build shared libraries, but | |
d50284c4 CE |
8331 | # adding the '-m68020' flag to GCC prevents building anything better, |
8332 | # like '-m68040'. | |
8d138742 CE |
8333 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
8334 | ;; | |
8335 | esac | |
8336 | ;; | |
d9898ee8 | 8337 | |
8d138742 CE |
8338 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8339 | # PIC is the default for these OSes. | |
8340 | ;; | |
d9898ee8 | 8341 | |
8d138742 CE |
8342 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
8343 | # This hack is so that the source file can tell whether it is being | |
8344 | # built for inclusion in a dll (and should export symbols for example). | |
8345 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8346 | # (--disable-auto-import) libraries | |
8347 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d50284c4 CE |
8348 | case $host_os in |
8349 | os2*) | |
8350 | lt_prog_compiler_static='$wl-static' | |
8351 | ;; | |
8352 | esac | |
8d138742 | 8353 | ;; |
d9898ee8 | 8354 | |
8d138742 CE |
8355 | darwin* | rhapsody*) |
8356 | # PIC is the default on this platform | |
8357 | # Common symbols not allowed in MH_DYLIB files | |
8358 | lt_prog_compiler_pic='-fno-common' | |
8359 | ;; | |
d9898ee8 | 8360 | |
b0322a85 CE |
8361 | haiku*) |
8362 | # PIC is the default for Haiku. | |
8363 | # The "-static" flag exists, but is broken. | |
8364 | lt_prog_compiler_static= | |
8365 | ;; | |
8366 | ||
8d138742 CE |
8367 | hpux*) |
8368 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8369 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8370 | # sets the default TLS model and affects inlining. | |
8371 | case $host_cpu in | |
8372 | hppa*64*) | |
8373 | # +Z the default | |
8374 | ;; | |
8375 | *) | |
8376 | lt_prog_compiler_pic='-fPIC' | |
8377 | ;; | |
8378 | esac | |
8379 | ;; | |
d9898ee8 | 8380 | |
8d138742 CE |
8381 | interix[3-9]*) |
8382 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8383 | # Instead, we relocate shared libraries at runtime. | |
8384 | ;; | |
d9898ee8 | 8385 | |
8d138742 CE |
8386 | msdosdjgpp*) |
8387 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8388 | # on systems that don't support them. | |
8389 | lt_prog_compiler_can_build_shared=no | |
8390 | enable_shared=no | |
8391 | ;; | |
d9898ee8 | 8392 | |
8d138742 CE |
8393 | *nto* | *qnx*) |
8394 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8395 | # it will coredump. | |
8396 | lt_prog_compiler_pic='-fPIC -shared' | |
8397 | ;; | |
d9898ee8 | 8398 | |
8d138742 CE |
8399 | sysv4*MP*) |
8400 | if test -d /usr/nec; then | |
8401 | lt_prog_compiler_pic=-Kconform_pic | |
8402 | fi | |
8403 | ;; | |
d9898ee8 | 8404 | |
8d138742 CE |
8405 | *) |
8406 | lt_prog_compiler_pic='-fPIC' | |
8407 | ;; | |
8408 | esac | |
b0322a85 CE |
8409 | |
8410 | case $cc_basename in | |
8411 | nvcc*) # Cuda Compiler Driver 2.2 | |
8412 | lt_prog_compiler_wl='-Xlinker ' | |
8413 | if test -n "$lt_prog_compiler_pic"; then | |
8414 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
8415 | fi | |
8416 | ;; | |
8417 | esac | |
8d138742 CE |
8418 | else |
8419 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8420 | case $host_os in | |
8421 | aix*) | |
8422 | lt_prog_compiler_wl='-Wl,' | |
d50284c4 | 8423 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
8424 | # AIX 5 now supports IA64 processor |
8425 | lt_prog_compiler_static='-Bstatic' | |
8426 | else | |
8427 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8428 | fi | |
8429 | ;; | |
d9898ee8 | 8430 | |
d50284c4 CE |
8431 | darwin* | rhapsody*) |
8432 | # PIC is the default on this platform | |
8433 | # Common symbols not allowed in MH_DYLIB files | |
8434 | lt_prog_compiler_pic='-fno-common' | |
8435 | case $cc_basename in | |
8436 | nagfor*) | |
8437 | # NAG Fortran compiler | |
8438 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8439 | lt_prog_compiler_pic='-PIC' | |
8440 | lt_prog_compiler_static='-Bstatic' | |
8441 | ;; | |
8442 | esac | |
8443 | ;; | |
8444 | ||
8d138742 CE |
8445 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
8446 | # This hack is so that the source file can tell whether it is being | |
8447 | # built for inclusion in a dll (and should export symbols for example). | |
8448 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d50284c4 CE |
8449 | case $host_os in |
8450 | os2*) | |
8451 | lt_prog_compiler_static='$wl-static' | |
8452 | ;; | |
8453 | esac | |
8d138742 | 8454 | ;; |
d9898ee8 | 8455 | |
8d138742 CE |
8456 | hpux9* | hpux10* | hpux11*) |
8457 | lt_prog_compiler_wl='-Wl,' | |
8458 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8459 | # not for PA HP-UX. | |
8460 | case $host_cpu in | |
8461 | hppa*64*|ia64*) | |
8462 | # +Z the default | |
8463 | ;; | |
8464 | *) | |
8465 | lt_prog_compiler_pic='+Z' | |
8466 | ;; | |
8467 | esac | |
8468 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
d50284c4 | 8469 | lt_prog_compiler_static='$wl-a ${wl}archive' |
8d138742 | 8470 | ;; |
d9898ee8 | 8471 | |
8d138742 CE |
8472 | irix5* | irix6* | nonstopux*) |
8473 | lt_prog_compiler_wl='-Wl,' | |
8474 | # PIC (with -KPIC) is the default. | |
8475 | lt_prog_compiler_static='-non_shared' | |
8476 | ;; | |
d9898ee8 | 8477 | |
d50284c4 | 8478 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
8d138742 | 8479 | case $cc_basename in |
d50284c4 | 8480 | # old Intel for x86_64, which still supported -KPIC. |
8d138742 CE |
8481 | ecc*) |
8482 | lt_prog_compiler_wl='-Wl,' | |
8483 | lt_prog_compiler_pic='-KPIC' | |
8484 | lt_prog_compiler_static='-static' | |
8485 | ;; | |
8486 | # icc used to be incompatible with GCC. | |
8487 | # ICC 10 doesn't accept -KPIC any more. | |
8488 | icc* | ifort*) | |
8489 | lt_prog_compiler_wl='-Wl,' | |
8490 | lt_prog_compiler_pic='-fPIC' | |
8491 | lt_prog_compiler_static='-static' | |
8492 | ;; | |
8493 | # Lahey Fortran 8.1. | |
8494 | lf95*) | |
8495 | lt_prog_compiler_wl='-Wl,' | |
8496 | lt_prog_compiler_pic='--shared' | |
8497 | lt_prog_compiler_static='--static' | |
8498 | ;; | |
b0322a85 CE |
8499 | nagfor*) |
8500 | # NAG Fortran compiler | |
8501 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8502 | lt_prog_compiler_pic='-PIC' | |
8503 | lt_prog_compiler_static='-Bstatic' | |
8504 | ;; | |
d50284c4 CE |
8505 | tcc*) |
8506 | # Fabrice Bellard et al's Tiny C Compiler | |
8507 | lt_prog_compiler_wl='-Wl,' | |
8508 | lt_prog_compiler_pic='-fPIC' | |
8509 | lt_prog_compiler_static='-static' | |
8510 | ;; | |
b0322a85 | 8511 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
8d138742 CE |
8512 | # Portland Group compilers (*not* the Pentium gcc compiler, |
8513 | # which looks to be a dead project) | |
8514 | lt_prog_compiler_wl='-Wl,' | |
8515 | lt_prog_compiler_pic='-fpic' | |
8516 | lt_prog_compiler_static='-Bstatic' | |
8517 | ;; | |
8518 | ccc*) | |
8519 | lt_prog_compiler_wl='-Wl,' | |
8520 | # All Alpha code is PIC. | |
8521 | lt_prog_compiler_static='-non_shared' | |
8522 | ;; | |
b0322a85 CE |
8523 | xl* | bgxl* | bgf* | mpixl*) |
8524 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8d138742 CE |
8525 | lt_prog_compiler_wl='-Wl,' |
8526 | lt_prog_compiler_pic='-qpic' | |
8527 | lt_prog_compiler_static='-qstaticlink' | |
8528 | ;; | |
8529 | *) | |
8530 | case `$CC -V 2>&1 | sed 5q` in | |
b0322a85 CE |
8531 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
8532 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8533 | lt_prog_compiler_pic='-KPIC' | |
8534 | lt_prog_compiler_static='-Bstatic' | |
8535 | lt_prog_compiler_wl='' | |
8536 | ;; | |
8537 | *Sun\ F* | *Sun*Fortran*) | |
8538 | lt_prog_compiler_pic='-KPIC' | |
8539 | lt_prog_compiler_static='-Bstatic' | |
8540 | lt_prog_compiler_wl='-Qoption ld ' | |
8541 | ;; | |
8d138742 CE |
8542 | *Sun\ C*) |
8543 | # Sun C 5.9 | |
8544 | lt_prog_compiler_pic='-KPIC' | |
8545 | lt_prog_compiler_static='-Bstatic' | |
8546 | lt_prog_compiler_wl='-Wl,' | |
8547 | ;; | |
b0322a85 CE |
8548 | *Intel*\ [CF]*Compiler*) |
8549 | lt_prog_compiler_wl='-Wl,' | |
8550 | lt_prog_compiler_pic='-fPIC' | |
8551 | lt_prog_compiler_static='-static' | |
8552 | ;; | |
8553 | *Portland\ Group*) | |
8554 | lt_prog_compiler_wl='-Wl,' | |
8555 | lt_prog_compiler_pic='-fpic' | |
8d138742 | 8556 | lt_prog_compiler_static='-Bstatic' |
8d138742 CE |
8557 | ;; |
8558 | esac | |
8559 | ;; | |
8560 | esac | |
8561 | ;; | |
d9898ee8 | 8562 | |
8d138742 CE |
8563 | newsos6) |
8564 | lt_prog_compiler_pic='-KPIC' | |
8565 | lt_prog_compiler_static='-Bstatic' | |
8566 | ;; | |
d9898ee8 | 8567 | |
8d138742 CE |
8568 | *nto* | *qnx*) |
8569 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8570 | # it will coredump. | |
8571 | lt_prog_compiler_pic='-fPIC -shared' | |
8572 | ;; | |
d9898ee8 | 8573 | |
8d138742 CE |
8574 | osf3* | osf4* | osf5*) |
8575 | lt_prog_compiler_wl='-Wl,' | |
8576 | # All OSF/1 code is PIC. | |
8577 | lt_prog_compiler_static='-non_shared' | |
8578 | ;; | |
d9898ee8 | 8579 | |
8d138742 CE |
8580 | rdos*) |
8581 | lt_prog_compiler_static='-non_shared' | |
8582 | ;; | |
d9898ee8 | 8583 | |
8d138742 CE |
8584 | solaris*) |
8585 | lt_prog_compiler_pic='-KPIC' | |
8586 | lt_prog_compiler_static='-Bstatic' | |
8587 | case $cc_basename in | |
b0322a85 | 8588 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
8d138742 CE |
8589 | lt_prog_compiler_wl='-Qoption ld ';; |
8590 | *) | |
8591 | lt_prog_compiler_wl='-Wl,';; | |
8592 | esac | |
8593 | ;; | |
d9898ee8 | 8594 | |
8d138742 CE |
8595 | sunos4*) |
8596 | lt_prog_compiler_wl='-Qoption ld ' | |
8597 | lt_prog_compiler_pic='-PIC' | |
8598 | lt_prog_compiler_static='-Bstatic' | |
8599 | ;; | |
d9898ee8 | 8600 | |
8d138742 CE |
8601 | sysv4 | sysv4.2uw2* | sysv4.3*) |
8602 | lt_prog_compiler_wl='-Wl,' | |
8603 | lt_prog_compiler_pic='-KPIC' | |
8604 | lt_prog_compiler_static='-Bstatic' | |
8605 | ;; | |
d9898ee8 | 8606 | |
8d138742 | 8607 | sysv4*MP*) |
d50284c4 | 8608 | if test -d /usr/nec; then |
8d138742 CE |
8609 | lt_prog_compiler_pic='-Kconform_pic' |
8610 | lt_prog_compiler_static='-Bstatic' | |
8611 | fi | |
8612 | ;; | |
d9898ee8 | 8613 | |
8d138742 CE |
8614 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
8615 | lt_prog_compiler_wl='-Wl,' | |
8616 | lt_prog_compiler_pic='-KPIC' | |
8617 | lt_prog_compiler_static='-Bstatic' | |
8618 | ;; | |
d9898ee8 | 8619 | |
8d138742 CE |
8620 | unicos*) |
8621 | lt_prog_compiler_wl='-Wl,' | |
8622 | lt_prog_compiler_can_build_shared=no | |
8623 | ;; | |
8624 | ||
8625 | uts4*) | |
8626 | lt_prog_compiler_pic='-pic' | |
8627 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 8628 | ;; |
8d138742 | 8629 | |
d9898ee8 | 8630 | *) |
8d138742 | 8631 | lt_prog_compiler_can_build_shared=no |
d9898ee8 | 8632 | ;; |
8633 | esac | |
8d138742 | 8634 | fi |
d9898ee8 | 8635 | |
8d138742 | 8636 | case $host_os in |
d50284c4 | 8637 | # For platforms that do not support PIC, -DPIC is meaningless: |
8d138742 CE |
8638 | *djgpp*) |
8639 | lt_prog_compiler_pic= | |
d9898ee8 | 8640 | ;; |
8d138742 CE |
8641 | *) |
8642 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8643 | ;; | |
8644 | esac | |
d9898ee8 | 8645 | |
b0322a85 CE |
8646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8647 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8648 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
8649 | $as_echo_n "(cached) " >&6 | |
8650 | else | |
8651 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
8652 | fi | |
8653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
8654 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
8655 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
d9898ee8 | 8656 | |
d9898ee8 | 8657 | # |
8d138742 | 8658 | # Check to make sure the PIC flag actually works. |
d9898ee8 | 8659 | # |
8d138742 | 8660 | if test -n "$lt_prog_compiler_pic"; then |
b0322a85 | 8661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8d138742 | 8662 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
b0322a85 | 8663 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
8d138742 CE |
8664 | $as_echo_n "(cached) " >&6 |
8665 | else | |
8666 | lt_cv_prog_compiler_pic_works=no | |
8667 | ac_outfile=conftest.$ac_objext | |
8668 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d50284c4 | 8669 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
8d138742 CE |
8670 | # Insert the option either (1) after the last *FLAGS variable, or |
8671 | # (2) before a word containing "conftest.", or (3) at the end. | |
8672 | # Note that $ac_compile itself does not contain backslashes and begins | |
8673 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8674 | # The option is referenced via a variable to avoid confusing sed. | |
8675 | lt_compile=`echo "$ac_compile" | $SED \ | |
8676 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8677 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8678 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8679 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8680 | (eval "$lt_compile" 2>conftest.err) |
8681 | ac_status=$? | |
8682 | cat conftest.err >&5 | |
b0322a85 | 8683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8684 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8685 | # The compiler can only warn and ignore the option if not recognized | |
8686 | # So say no if there are warnings other than the usual output. | |
b0322a85 | 8687 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
8d138742 CE |
8688 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8689 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8690 | lt_cv_prog_compiler_pic_works=yes | |
8691 | fi | |
8692 | fi | |
8693 | $RM conftest* | |
d9898ee8 | 8694 | |
8d138742 | 8695 | fi |
b0322a85 | 8696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8d138742 | 8697 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
d9898ee8 | 8698 | |
d50284c4 | 8699 | if test yes = "$lt_cv_prog_compiler_pic_works"; then |
8d138742 CE |
8700 | case $lt_prog_compiler_pic in |
8701 | "" | " "*) ;; | |
8702 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8703 | esac | |
8704 | else | |
8705 | lt_prog_compiler_pic= | |
8706 | lt_prog_compiler_can_build_shared=no | |
8707 | fi | |
d9898ee8 | 8708 | |
8d138742 | 8709 | fi |
d9898ee8 | 8710 | |
d9898ee8 | 8711 | |
d9898ee8 | 8712 | |
d9898ee8 | 8713 | |
d9898ee8 | 8714 | |
d9898ee8 | 8715 | |
b0322a85 CE |
8716 | |
8717 | ||
8718 | ||
8719 | ||
8720 | ||
8d138742 CE |
8721 | # |
8722 | # Check to make sure the static flag actually works. | |
8723 | # | |
8724 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
b0322a85 | 8725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8d138742 | 8726 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
b0322a85 | 8727 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
8d138742 CE |
8728 | $as_echo_n "(cached) " >&6 |
8729 | else | |
8730 | lt_cv_prog_compiler_static_works=no | |
d50284c4 | 8731 | save_LDFLAGS=$LDFLAGS |
8d138742 CE |
8732 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
8733 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8734 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8735 | # The linker can only warn and ignore the option if not recognized | |
8736 | # So say no if there are warnings | |
8737 | if test -s conftest.err; then | |
8738 | # Append any errors to the config.log. | |
8739 | cat conftest.err 1>&5 | |
b0322a85 | 8740 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
8d138742 CE |
8741 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8742 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8743 | lt_cv_prog_compiler_static_works=yes | |
8744 | fi | |
8745 | else | |
8746 | lt_cv_prog_compiler_static_works=yes | |
8747 | fi | |
8748 | fi | |
8749 | $RM -r conftest* | |
d50284c4 | 8750 | LDFLAGS=$save_LDFLAGS |
d9898ee8 | 8751 | |
8d138742 | 8752 | fi |
b0322a85 | 8753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8d138742 | 8754 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
d9898ee8 | 8755 | |
d50284c4 | 8756 | if test yes = "$lt_cv_prog_compiler_static_works"; then |
8d138742 CE |
8757 | : |
8758 | else | |
8759 | lt_prog_compiler_static= | |
8760 | fi | |
d9898ee8 | 8761 | |
d9898ee8 | 8762 | |
d9898ee8 | 8763 | |
d9898ee8 | 8764 | |
d9898ee8 | 8765 | |
d9898ee8 | 8766 | |
d9898ee8 | 8767 | |
b0322a85 | 8768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8d138742 | 8769 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
b0322a85 | 8770 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
8d138742 CE |
8771 | $as_echo_n "(cached) " >&6 |
8772 | else | |
8773 | lt_cv_prog_compiler_c_o=no | |
8774 | $RM -r conftest 2>/dev/null | |
8775 | mkdir conftest | |
8776 | cd conftest | |
8777 | mkdir out | |
8778 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 8779 | |
8d138742 CE |
8780 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8781 | # Insert the option either (1) after the last *FLAGS variable, or | |
8782 | # (2) before a word containing "conftest.", or (3) at the end. | |
8783 | # Note that $ac_compile itself does not contain backslashes and begins | |
8784 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8785 | lt_compile=`echo "$ac_compile" | $SED \ | |
8786 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8787 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8788 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8789 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8790 | (eval "$lt_compile" 2>out/conftest.err) |
8791 | ac_status=$? | |
8792 | cat out/conftest.err >&5 | |
b0322a85 | 8793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8794 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8795 | then | |
8796 | # The compiler can only warn and ignore the option if not recognized | |
8797 | # So say no if there are warnings | |
b0322a85 | 8798 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
8d138742 CE |
8799 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8800 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8801 | lt_cv_prog_compiler_c_o=yes | |
8802 | fi | |
8803 | fi | |
8804 | chmod u+w . 2>&5 | |
8805 | $RM conftest* | |
8806 | # SGI C++ compiler will create directory out/ii_files/ for | |
8807 | # template instantiation | |
8808 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8809 | $RM out/* && rmdir out | |
8810 | cd .. | |
8811 | $RM -r conftest | |
8812 | $RM conftest* | |
d9898ee8 | 8813 | |
8d138742 | 8814 | fi |
b0322a85 | 8815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8d138742 | 8816 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
d9898ee8 | 8817 | |
d9898ee8 | 8818 | |
d9898ee8 | 8819 | |
d9898ee8 | 8820 | |
d9898ee8 | 8821 | |
d9898ee8 | 8822 | |
b0322a85 | 8823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8d138742 | 8824 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
b0322a85 | 8825 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
8d138742 CE |
8826 | $as_echo_n "(cached) " >&6 |
8827 | else | |
8828 | lt_cv_prog_compiler_c_o=no | |
8829 | $RM -r conftest 2>/dev/null | |
8830 | mkdir conftest | |
8831 | cd conftest | |
8832 | mkdir out | |
8833 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 8834 | |
8d138742 CE |
8835 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8836 | # Insert the option either (1) after the last *FLAGS variable, or | |
8837 | # (2) before a word containing "conftest.", or (3) at the end. | |
8838 | # Note that $ac_compile itself does not contain backslashes and begins | |
8839 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8840 | lt_compile=`echo "$ac_compile" | $SED \ | |
8841 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8842 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8843 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8844 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8845 | (eval "$lt_compile" 2>out/conftest.err) |
8846 | ac_status=$? | |
8847 | cat out/conftest.err >&5 | |
b0322a85 | 8848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8849 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8850 | then | |
8851 | # The compiler can only warn and ignore the option if not recognized | |
8852 | # So say no if there are warnings | |
b0322a85 | 8853 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
8d138742 CE |
8854 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8855 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8856 | lt_cv_prog_compiler_c_o=yes | |
8857 | fi | |
8858 | fi | |
8859 | chmod u+w . 2>&5 | |
8860 | $RM conftest* | |
8861 | # SGI C++ compiler will create directory out/ii_files/ for | |
8862 | # template instantiation | |
8863 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8864 | $RM out/* && rmdir out | |
8865 | cd .. | |
8866 | $RM -r conftest | |
8867 | $RM conftest* | |
d9898ee8 | 8868 | |
8d138742 | 8869 | fi |
b0322a85 | 8870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8d138742 | 8871 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
d9898ee8 | 8872 | |
d9898ee8 | 8873 | |
d9898ee8 | 8874 | |
d9898ee8 | 8875 | |
d50284c4 CE |
8876 | hard_links=nottested |
8877 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then | |
8d138742 | 8878 | # do not overwrite the value of need_locks provided by the user |
b0322a85 | 8879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8d138742 CE |
8880 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
8881 | hard_links=yes | |
8882 | $RM conftest* | |
8883 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8884 | touch conftest.a | |
8885 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8886 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
b0322a85 | 8887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8d138742 | 8888 | $as_echo "$hard_links" >&6; } |
d50284c4 CE |
8889 | if test no = "$hard_links"; then |
8890 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 | |
8891 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} | |
8d138742 CE |
8892 | need_locks=warn |
8893 | fi | |
8894 | else | |
8895 | need_locks=no | |
8896 | fi | |
d9898ee8 | 8897 | |
d9898ee8 | 8898 | |
d9898ee8 | 8899 | |
d9898ee8 | 8900 | |
d9898ee8 | 8901 | |
d9898ee8 | 8902 | |
b0322a85 | 8903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8d138742 | 8904 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
d9898ee8 | 8905 | |
8d138742 CE |
8906 | runpath_var= |
8907 | allow_undefined_flag= | |
8908 | always_export_symbols=no | |
8909 | archive_cmds= | |
8910 | archive_expsym_cmds= | |
8911 | compiler_needs_object=no | |
8912 | enable_shared_with_static_runtimes=no | |
8913 | export_dynamic_flag_spec= | |
8914 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8915 | hardcode_automatic=no | |
8916 | hardcode_direct=no | |
8917 | hardcode_direct_absolute=no | |
8918 | hardcode_libdir_flag_spec= | |
8d138742 CE |
8919 | hardcode_libdir_separator= |
8920 | hardcode_minus_L=no | |
8921 | hardcode_shlibpath_var=unsupported | |
8922 | inherit_rpath=no | |
8923 | link_all_deplibs=unknown | |
8924 | module_cmds= | |
8925 | module_expsym_cmds= | |
8926 | old_archive_from_new_cmds= | |
8927 | old_archive_from_expsyms_cmds= | |
8928 | thread_safe_flag_spec= | |
8929 | whole_archive_flag_spec= | |
8930 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8931 | # included in the symbol list | |
8932 | include_expsyms= | |
8933 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
d50284c4 CE |
8934 | # it will be wrapped by ' (' and ')$', so one must not match beginning or |
8935 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', | |
8936 | # as well as any symbol that contains 'd'. | |
8d138742 CE |
8937 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
8938 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
8939 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8940 | # the symbol is explicitly referenced. Since portable code cannot | |
8941 | # rely on this symbol name, it's probably fine to never include it in | |
8942 | # preloaded symbol tables. | |
8943 | # Exclude shared library initialization/finalization symbols. | |
8944 | extract_expsyms_cmds= | |
d9898ee8 | 8945 | |
8d138742 CE |
8946 | case $host_os in |
8947 | cygwin* | mingw* | pw32* | cegcc*) | |
8948 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
8949 | # When not using gcc, we currently assume that we are using | |
8950 | # Microsoft Visual C++. | |
d50284c4 | 8951 | if test yes != "$GCC"; then |
8d138742 CE |
8952 | with_gnu_ld=no |
8953 | fi | |
8954 | ;; | |
8955 | interix*) | |
8956 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8957 | with_gnu_ld=yes | |
8958 | ;; | |
d50284c4 | 8959 | openbsd* | bitrig*) |
8d138742 CE |
8960 | with_gnu_ld=no |
8961 | ;; | |
8962 | esac | |
d9898ee8 | 8963 | |
8d138742 | 8964 | ld_shlibs=yes |
b0322a85 CE |
8965 | |
8966 | # On some targets, GNU ld is compatible enough with the native linker | |
8967 | # that we're better off using the native interface for both. | |
8968 | lt_use_gnu_ld_interface=no | |
d50284c4 | 8969 | if test yes = "$with_gnu_ld"; then |
b0322a85 CE |
8970 | case $host_os in |
8971 | aix*) | |
8972 | # The AIX port of GNU ld has always aspired to compatibility | |
8973 | # with the native linker. However, as the warning in the GNU ld | |
8974 | # block says, versions before 2.19.5* couldn't really create working | |
8975 | # shared libraries, regardless of the interface used. | |
8976 | case `$LD -v 2>&1` in | |
8977 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
8978 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
8979 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
8980 | *) | |
8981 | lt_use_gnu_ld_interface=yes | |
8982 | ;; | |
8983 | esac | |
8984 | ;; | |
8985 | *) | |
8986 | lt_use_gnu_ld_interface=yes | |
8987 | ;; | |
8988 | esac | |
8989 | fi | |
8990 | ||
d50284c4 | 8991 | if test yes = "$lt_use_gnu_ld_interface"; then |
8d138742 | 8992 | # If archive_cmds runs LD, not CC, wlarc should be empty |
d50284c4 | 8993 | wlarc='$wl' |
d9898ee8 | 8994 | |
8d138742 CE |
8995 | # Set some defaults for GNU ld with shared library support. These |
8996 | # are reset later if shared libraries are not supported. Putting them | |
8997 | # here allows them to be overridden if necessary. | |
8998 | runpath_var=LD_RUN_PATH | |
d50284c4 CE |
8999 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9000 | export_dynamic_flag_spec='$wl--export-dynamic' | |
8d138742 CE |
9001 | # ancient GNU ld didn't support --whole-archive et. al. |
9002 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
d50284c4 | 9003 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
8d138742 CE |
9004 | else |
9005 | whole_archive_flag_spec= | |
9006 | fi | |
9007 | supports_anon_versioning=no | |
d50284c4 | 9008 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
b0322a85 | 9009 | *GNU\ gold*) supports_anon_versioning=yes ;; |
8d138742 CE |
9010 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
9011 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9012 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9013 | *\ 2.11.*) ;; # other 2.11 versions | |
9014 | *) supports_anon_versioning=yes ;; | |
9015 | esac | |
d9898ee8 | 9016 | |
8d138742 CE |
9017 | # See if GNU ld supports shared libraries. |
9018 | case $host_os in | |
9019 | aix[3-9]*) | |
9020 | # On AIX/PPC, the GNU linker is very broken | |
d50284c4 | 9021 | if test ia64 != "$host_cpu"; then |
8d138742 CE |
9022 | ld_shlibs=no |
9023 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 9024 | |
b0322a85 | 9025 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
8d138742 CE |
9026 | *** to be unable to reliably create shared libraries on AIX. |
9027 | *** Therefore, libtool is disabling shared libraries support. If you | |
b0322a85 CE |
9028 | *** really care for shared libraries, you may want to install binutils |
9029 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9030 | *** You will then need to restart the configuration process. | |
d9898ee8 | 9031 | |
8d138742 CE |
9032 | _LT_EOF |
9033 | fi | |
9034 | ;; | |
d9898ee8 | 9035 | |
8d138742 CE |
9036 | amigaos*) |
9037 | case $host_cpu in | |
9038 | powerpc) | |
9039 | # see comment about AmigaOS4 .so support | |
d50284c4 | 9040 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
8d138742 CE |
9041 | archive_expsym_cmds='' |
9042 | ;; | |
9043 | m68k) | |
9044 | 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)' | |
9045 | hardcode_libdir_flag_spec='-L$libdir' | |
9046 | hardcode_minus_L=yes | |
9047 | ;; | |
9048 | esac | |
9049 | ;; | |
d9898ee8 | 9050 | |
8d138742 CE |
9051 | beos*) |
9052 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9053 | allow_undefined_flag=unsupported | |
9054 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9055 | # support --undefined. This deserves some investigation. FIXME | |
d50284c4 | 9056 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
8d138742 CE |
9057 | else |
9058 | ld_shlibs=no | |
9059 | fi | |
9060 | ;; | |
d9898ee8 | 9061 | |
8d138742 CE |
9062 | cygwin* | mingw* | pw32* | cegcc*) |
9063 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9064 | # as there is no search path for DLLs. | |
9065 | hardcode_libdir_flag_spec='-L$libdir' | |
d50284c4 | 9066 | export_dynamic_flag_spec='$wl--export-all-symbols' |
8d138742 CE |
9067 | allow_undefined_flag=unsupported |
9068 | always_export_symbols=no | |
9069 | enable_shared_with_static_runtimes=yes | |
b0322a85 CE |
9070 | 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' |
9071 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
d9898ee8 | 9072 | |
8d138742 | 9073 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
d50284c4 CE |
9074 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
9075 | # If the export-symbols file already is a .def file, use it as | |
9076 | # is; otherwise, prepend EXPORTS... | |
9077 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
9078 | cp $export_symbols $output_objdir/$soname.def; | |
9079 | else | |
9080 | echo EXPORTS > $output_objdir/$soname.def; | |
9081 | cat $export_symbols >> $output_objdir/$soname.def; | |
9082 | fi~ | |
9083 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8d138742 CE |
9084 | else |
9085 | ld_shlibs=no | |
9086 | fi | |
9087 | ;; | |
d9898ee8 | 9088 | |
b0322a85 | 9089 | haiku*) |
d50284c4 | 9090 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
b0322a85 CE |
9091 | link_all_deplibs=yes |
9092 | ;; | |
9093 | ||
d50284c4 CE |
9094 | os2*) |
9095 | hardcode_libdir_flag_spec='-L$libdir' | |
9096 | hardcode_minus_L=yes | |
9097 | allow_undefined_flag=unsupported | |
9098 | shrext_cmds=.dll | |
9099 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9100 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9101 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9102 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9103 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
9104 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9105 | emximp -o $lib $output_objdir/$libname.def' | |
9106 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9107 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9108 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9109 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9110 | prefix_cmds="$SED"~ | |
9111 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
9112 | prefix_cmds="$prefix_cmds -e 1d"; | |
9113 | fi~ | |
9114 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
9115 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
9116 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9117 | emximp -o $lib $output_objdir/$libname.def' | |
9118 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
9119 | enable_shared_with_static_runtimes=yes | |
9120 | ;; | |
9121 | ||
8d138742 CE |
9122 | interix[3-9]*) |
9123 | hardcode_direct=no | |
9124 | hardcode_shlibpath_var=no | |
d50284c4 CE |
9125 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
9126 | export_dynamic_flag_spec='$wl-E' | |
8d138742 CE |
9127 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
9128 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9129 | # default) and relocated if they conflict, which is a slow very memory | |
9130 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9131 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9132 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
d50284c4 CE |
9133 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
9134 | 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' | |
8d138742 | 9135 | ;; |
d9898ee8 | 9136 | |
b0322a85 | 9137 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
8d138742 | 9138 | tmp_diet=no |
d50284c4 | 9139 | if test linux-dietlibc = "$host_os"; then |
8d138742 CE |
9140 | case $cc_basename in |
9141 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9142 | esac | |
9143 | fi | |
9144 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
d50284c4 | 9145 | && test no = "$tmp_diet" |
8d138742 | 9146 | then |
b0322a85 | 9147 | tmp_addflag=' $pic_flag' |
8d138742 CE |
9148 | tmp_sharedflag='-shared' |
9149 | case $cc_basename,$host_cpu in | |
9150 | pgcc*) # Portland Group C compiler | |
d50284c4 | 9151 | 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 |
9152 | tmp_addflag=' $pic_flag' |
9153 | ;; | |
b0322a85 CE |
9154 | pgf77* | pgf90* | pgf95* | pgfortran*) |
9155 | # Portland Group f77 and f90 compilers | |
d50284c4 | 9156 | 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 |
9157 | tmp_addflag=' $pic_flag -Mnomain' ;; |
9158 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9159 | tmp_addflag=' -i_dynamic' ;; | |
9160 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9161 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9162 | ifc* | ifort*) # Intel Fortran compiler | |
9163 | tmp_addflag=' -nofor_main' ;; | |
9164 | lf95*) # Lahey Fortran 8.1 | |
9165 | whole_archive_flag_spec= | |
9166 | tmp_sharedflag='--shared' ;; | |
d50284c4 CE |
9167 | nagfor*) # NAGFOR 5.3 |
9168 | tmp_sharedflag='-Wl,-shared' ;; | |
b0322a85 | 9169 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
8d138742 CE |
9170 | tmp_sharedflag='-qmkshrobj' |
9171 | tmp_addflag= ;; | |
b0322a85 | 9172 | nvcc*) # Cuda Compiler Driver 2.2 |
d50284c4 | 9173 | 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' |
b0322a85 CE |
9174 | compiler_needs_object=yes |
9175 | ;; | |
8d138742 CE |
9176 | esac |
9177 | case `$CC -V 2>&1 | sed 5q` in | |
9178 | *Sun\ C*) # Sun C 5.9 | |
d50284c4 | 9179 | 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 |
9180 | compiler_needs_object=yes |
9181 | tmp_sharedflag='-G' ;; | |
9182 | *Sun\ F*) # Sun Fortran 8.3 | |
9183 | tmp_sharedflag='-G' ;; | |
9184 | esac | |
d50284c4 | 9185 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
d9898ee8 | 9186 | |
d50284c4 | 9187 | if test yes = "$supports_anon_versioning"; then |
8d138742 | 9188 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
d50284c4 CE |
9189 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9190 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9191 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
8d138742 | 9192 | fi |
d9898ee8 | 9193 | |
8d138742 | 9194 | case $cc_basename in |
d50284c4 CE |
9195 | tcc*) |
9196 | export_dynamic_flag_spec='-rdynamic' | |
9197 | ;; | |
b0322a85 | 9198 | xlf* | bgf* | bgxlf* | mpixlf*) |
8d138742 CE |
9199 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
9200 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
d50284c4 | 9201 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
b0322a85 | 9202 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
d50284c4 | 9203 | if test yes = "$supports_anon_versioning"; then |
8d138742 | 9204 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
d50284c4 CE |
9205 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9206 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9207 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8d138742 CE |
9208 | fi |
9209 | ;; | |
9210 | esac | |
9211 | else | |
9212 | ld_shlibs=no | |
9213 | fi | |
9214 | ;; | |
d9898ee8 | 9215 | |
8d138742 CE |
9216 | netbsd*) |
9217 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9218 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9219 | wlarc= | |
9220 | else | |
d50284c4 CE |
9221 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9222 | 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 |
9223 | fi |
9224 | ;; | |
d9898ee8 | 9225 | |
8d138742 CE |
9226 | solaris*) |
9227 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9228 | ld_shlibs=no | |
9229 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 9230 | |
8d138742 CE |
9231 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
9232 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9233 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9234 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9235 | *** your PATH or compiler configuration so that the native linker is | |
9236 | *** used, and then restart. | |
d9898ee8 | 9237 | |
8d138742 CE |
9238 | _LT_EOF |
9239 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
d50284c4 CE |
9240 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9241 | 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 |
9242 | else |
9243 | ld_shlibs=no | |
9244 | fi | |
9245 | ;; | |
d9898ee8 | 9246 | |
8d138742 CE |
9247 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
9248 | case `$LD -v 2>&1` in | |
9249 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9250 | ld_shlibs=no | |
9251 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 9252 | |
d50284c4 | 9253 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
8d138742 CE |
9254 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
9255 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9256 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9257 | *** your PATH or compiler configuration so that the native linker is | |
9258 | *** used, and then restart. | |
d9898ee8 | 9259 | |
8d138742 CE |
9260 | _LT_EOF |
9261 | ;; | |
9262 | *) | |
9263 | # For security reasons, it is highly recommended that you always | |
9264 | # use absolute paths for naming shared libraries, and exclude the | |
9265 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9266 | # requires that you compile everything twice, which is a pain. | |
9267 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
d50284c4 CE |
9268 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9269 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9270 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
8d138742 CE |
9271 | else |
9272 | ld_shlibs=no | |
9273 | fi | |
9274 | ;; | |
9275 | esac | |
9276 | ;; | |
d9898ee8 | 9277 | |
8d138742 CE |
9278 | sunos4*) |
9279 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9280 | wlarc= | |
9281 | hardcode_direct=yes | |
9282 | hardcode_shlibpath_var=no | |
9283 | ;; | |
d9898ee8 | 9284 | |
8d138742 CE |
9285 | *) |
9286 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
d50284c4 CE |
9287 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9288 | 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 |
9289 | else |
9290 | ld_shlibs=no | |
9291 | fi | |
9292 | ;; | |
9293 | esac | |
d9898ee8 | 9294 | |
d50284c4 | 9295 | if test no = "$ld_shlibs"; then |
8d138742 CE |
9296 | runpath_var= |
9297 | hardcode_libdir_flag_spec= | |
9298 | export_dynamic_flag_spec= | |
9299 | whole_archive_flag_spec= | |
9300 | fi | |
9301 | else | |
9302 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9303 | case $host_os in | |
9304 | aix3*) | |
9305 | allow_undefined_flag=unsupported | |
9306 | always_export_symbols=yes | |
9307 | 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' | |
9308 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9309 | # are no directories specified by -L. | |
9310 | hardcode_minus_L=yes | |
d50284c4 | 9311 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
8d138742 CE |
9312 | # Neither direct hardcoding nor static linking is supported with a |
9313 | # broken collect2. | |
9314 | hardcode_direct=unsupported | |
9315 | fi | |
9316 | ;; | |
d9898ee8 | 9317 | |
8d138742 | 9318 | aix[4-9]*) |
d50284c4 | 9319 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
9320 | # On IA64, the linker does run time linking by default, so we don't |
9321 | # have to do anything special. | |
9322 | aix_use_runtimelinking=no | |
9323 | exp_sym_flag='-Bexport' | |
d50284c4 | 9324 | no_entry_flag= |
8d138742 CE |
9325 | else |
9326 | # If we're using GNU nm, then we don't want the "-C" option. | |
d50284c4 CE |
9327 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
9328 | # Without the "-l" option, or with the "-B" option, AIX nm treats | |
9329 | # weak defined symbols like other global defined symbols, whereas | |
9330 | # GNU nm marks them as "W". | |
9331 | # While the 'weak' keyword is ignored in the Export File, we need | |
9332 | # it in the Import File for the 'aix-soname' feature, so we have | |
9333 | # to replace the "-B" option with "-P" for AIX nm. | |
8d138742 | 9334 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
d50284c4 | 9335 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' |
8d138742 | 9336 | else |
d50284c4 | 9337 | export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' |
8d138742 CE |
9338 | fi |
9339 | aix_use_runtimelinking=no | |
d9898ee8 | 9340 | |
8d138742 CE |
9341 | # Test if we are trying to use run time linking or normal |
9342 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
d50284c4 CE |
9343 | # have runtime linking enabled, and use it for executables. |
9344 | # For shared libraries, we enable/disable runtime linking | |
9345 | # depending on the kind of the shared library created - | |
9346 | # when "with_aix_soname,aix_use_runtimelinking" is: | |
9347 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
9348 | # "aix,yes" lib.so shared, rtl:yes, for executables | |
9349 | # lib.a static archive | |
9350 | # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
9351 | # lib.a(lib.so.V) shared, rtl:no, for executables | |
9352 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
9353 | # lib.a(lib.so.V) shared, rtl:no | |
9354 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
9355 | # lib.a static archive | |
8d138742 CE |
9356 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
9357 | for ld_flag in $LDFLAGS; do | |
d50284c4 | 9358 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
8d138742 CE |
9359 | aix_use_runtimelinking=yes |
9360 | break | |
9361 | fi | |
9362 | done | |
d50284c4 CE |
9363 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
9364 | # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
9365 | # so we don't have lib.a shared libs to link our executables. | |
9366 | # We have to force runtime linking in this case. | |
9367 | aix_use_runtimelinking=yes | |
9368 | LDFLAGS="$LDFLAGS -Wl,-brtl" | |
9369 | fi | |
8d138742 CE |
9370 | ;; |
9371 | esac | |
d9898ee8 | 9372 | |
8d138742 CE |
9373 | exp_sym_flag='-bexport' |
9374 | no_entry_flag='-bnoentry' | |
9375 | fi | |
d9898ee8 | 9376 | |
8d138742 CE |
9377 | # When large executables or shared objects are built, AIX ld can |
9378 | # have problems creating the table of contents. If linking a library | |
9379 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9380 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9381 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
d9898ee8 | 9382 | |
8d138742 CE |
9383 | archive_cmds='' |
9384 | hardcode_direct=yes | |
9385 | hardcode_direct_absolute=yes | |
9386 | hardcode_libdir_separator=':' | |
9387 | link_all_deplibs=yes | |
d50284c4 CE |
9388 | file_list_spec='$wl-f,' |
9389 | case $with_aix_soname,$aix_use_runtimelinking in | |
9390 | aix,*) ;; # traditional, no import file | |
9391 | svr4,* | *,yes) # use import file | |
9392 | # The Import File defines what to hardcode. | |
9393 | hardcode_direct=no | |
9394 | hardcode_direct_absolute=no | |
9395 | ;; | |
9396 | esac | |
d9898ee8 | 9397 | |
d50284c4 | 9398 | if test yes = "$GCC"; then |
8d138742 CE |
9399 | case $host_os in aix4.[012]|aix4.[012].*) |
9400 | # We only want to do this on AIX 4.2 and lower, the check | |
9401 | # below for broken collect2 doesn't work under 4.3+ | |
d50284c4 | 9402 | collect2name=`$CC -print-prog-name=collect2` |
8d138742 CE |
9403 | if test -f "$collect2name" && |
9404 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9405 | then | |
9406 | # We have reworked collect2 | |
9407 | : | |
9408 | else | |
9409 | # We have old collect2 | |
9410 | hardcode_direct=unsupported | |
9411 | # It fails to find uninstalled libraries when the uninstalled | |
9412 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9413 | # to unsupported forces relinking | |
9414 | hardcode_minus_L=yes | |
9415 | hardcode_libdir_flag_spec='-L$libdir' | |
9416 | hardcode_libdir_separator= | |
9417 | fi | |
9418 | ;; | |
9419 | esac | |
9420 | shared_flag='-shared' | |
d50284c4 CE |
9421 | if test yes = "$aix_use_runtimelinking"; then |
9422 | shared_flag="$shared_flag "'$wl-G' | |
8d138742 | 9423 | fi |
d50284c4 CE |
9424 | # Need to ensure runtime linking is disabled for the traditional |
9425 | # shared library, or the linker may eventually find shared libraries | |
9426 | # /with/ Import File - we do not want to mix them. | |
9427 | shared_flag_aix='-shared' | |
9428 | shared_flag_svr4='-shared $wl-G' | |
8d138742 CE |
9429 | else |
9430 | # not using gcc | |
d50284c4 | 9431 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
9432 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
9433 | # chokes on -Wl,-G. The following line is correct: | |
9434 | shared_flag='-G' | |
9435 | else | |
d50284c4 CE |
9436 | if test yes = "$aix_use_runtimelinking"; then |
9437 | shared_flag='$wl-G' | |
8d138742 | 9438 | else |
d50284c4 | 9439 | shared_flag='$wl-bM:SRE' |
8d138742 | 9440 | fi |
d50284c4 CE |
9441 | shared_flag_aix='$wl-bM:SRE' |
9442 | shared_flag_svr4='$wl-G' | |
8d138742 CE |
9443 | fi |
9444 | fi | |
d9898ee8 | 9445 | |
d50284c4 | 9446 | export_dynamic_flag_spec='$wl-bexpall' |
8d138742 CE |
9447 | # It seems that -bexpall does not export symbols beginning with |
9448 | # underscore (_), so it is better to generate a list of symbols to export. | |
9449 | always_export_symbols=yes | |
d50284c4 | 9450 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
8d138742 CE |
9451 | # Warning - without using the other runtime loading flags (-brtl), |
9452 | # -berok will link without error, but may produce a broken library. | |
9453 | allow_undefined_flag='-berok' | |
9454 | # Determine the default libpath from the value encoded in an | |
9455 | # empty executable. | |
d50284c4 | 9456 | if test set = "${lt_cv_aix_libpath+set}"; then |
b0322a85 CE |
9457 | aix_libpath=$lt_cv_aix_libpath |
9458 | else | |
9459 | if ${lt_cv_aix_libpath_+:} false; then : | |
9460 | $as_echo_n "(cached) " >&6 | |
9461 | else | |
9462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 9463 | /* end confdefs.h. */ |
d9898ee8 | 9464 | |
8d138742 CE |
9465 | int |
9466 | main () | |
9467 | { | |
d9898ee8 | 9468 | |
8d138742 CE |
9469 | ; |
9470 | return 0; | |
9471 | } | |
9472 | _ACEOF | |
b0322a85 | 9473 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 9474 | |
b0322a85 CE |
9475 | lt_aix_libpath_sed=' |
9476 | /Import File Strings/,/^$/ { | |
9477 | /^0/ { | |
9478 | s/^0 *\([^ ]*\) *$/\1/ | |
9479 | p | |
9480 | } | |
9481 | }' | |
9482 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9483 | # Check for a 64-bit object if we didn't find anything. | |
9484 | if test -z "$lt_cv_aix_libpath_"; then | |
9485 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9486 | fi | |
9487 | fi | |
9488 | rm -f core conftest.err conftest.$ac_objext \ | |
9489 | conftest$ac_exeext conftest.$ac_ext | |
9490 | if test -z "$lt_cv_aix_libpath_"; then | |
d50284c4 | 9491 | lt_cv_aix_libpath_=/usr/lib:/lib |
b0322a85 | 9492 | fi |
d9898ee8 | 9493 | |
8d138742 | 9494 | fi |
d9898ee8 | 9495 | |
b0322a85 CE |
9496 | aix_libpath=$lt_cv_aix_libpath_ |
9497 | fi | |
d9898ee8 | 9498 | |
d50284c4 CE |
9499 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
9500 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag | |
8d138742 | 9501 | else |
d50284c4 CE |
9502 | if test ia64 = "$host_cpu"; then |
9503 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' | |
8d138742 | 9504 | allow_undefined_flag="-z nodefs" |
d50284c4 | 9505 | 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" |
8d138742 CE |
9506 | else |
9507 | # Determine the default libpath from the value encoded in an | |
9508 | # empty executable. | |
d50284c4 | 9509 | if test set = "${lt_cv_aix_libpath+set}"; then |
b0322a85 CE |
9510 | aix_libpath=$lt_cv_aix_libpath |
9511 | else | |
9512 | if ${lt_cv_aix_libpath_+:} false; then : | |
9513 | $as_echo_n "(cached) " >&6 | |
9514 | else | |
9515 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 9516 | /* end confdefs.h. */ |
d9898ee8 | 9517 | |
8d138742 CE |
9518 | int |
9519 | main () | |
9520 | { | |
d9898ee8 | 9521 | |
8d138742 CE |
9522 | ; |
9523 | return 0; | |
9524 | } | |
9525 | _ACEOF | |
b0322a85 | 9526 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 9527 | |
b0322a85 CE |
9528 | lt_aix_libpath_sed=' |
9529 | /Import File Strings/,/^$/ { | |
9530 | /^0/ { | |
9531 | s/^0 *\([^ ]*\) *$/\1/ | |
9532 | p | |
9533 | } | |
9534 | }' | |
9535 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9536 | # Check for a 64-bit object if we didn't find anything. | |
9537 | if test -z "$lt_cv_aix_libpath_"; then | |
9538 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9539 | fi | |
9540 | fi | |
9541 | rm -f core conftest.err conftest.$ac_objext \ | |
9542 | conftest$ac_exeext conftest.$ac_ext | |
9543 | if test -z "$lt_cv_aix_libpath_"; then | |
d50284c4 | 9544 | lt_cv_aix_libpath_=/usr/lib:/lib |
b0322a85 | 9545 | fi |
d9898ee8 | 9546 | |
8d138742 | 9547 | fi |
d9898ee8 | 9548 | |
b0322a85 CE |
9549 | aix_libpath=$lt_cv_aix_libpath_ |
9550 | fi | |
d9898ee8 | 9551 | |
d50284c4 | 9552 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
8d138742 CE |
9553 | # Warning - without using the other run time loading flags, |
9554 | # -berok will link without error, but may produce a broken library. | |
d50284c4 CE |
9555 | no_undefined_flag=' $wl-bernotok' |
9556 | allow_undefined_flag=' $wl-berok' | |
9557 | if test yes = "$with_gnu_ld"; then | |
b0322a85 | 9558 | # We only use this code for GNU lds that support --whole-archive. |
d50284c4 | 9559 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
b0322a85 CE |
9560 | else |
9561 | # Exported symbols can be pulled into shared objects from archives | |
9562 | whole_archive_flag_spec='$convenience' | |
9563 | fi | |
8d138742 | 9564 | archive_cmds_need_lc=yes |
d50284c4 CE |
9565 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
9566 | # -brtl affects multiple linker settings, -berok does not and is overridden later | |
9567 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' | |
9568 | if test svr4 != "$with_aix_soname"; then | |
9569 | # This is similar to how AIX traditionally builds its shared libraries. | |
9570 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' | |
9571 | fi | |
9572 | if test aix != "$with_aix_soname"; then | |
9573 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' | |
9574 | else | |
9575 | # used by -dlpreopen to get the symbols | |
9576 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
9577 | fi | |
9578 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' | |
8d138742 CE |
9579 | fi |
9580 | fi | |
9581 | ;; | |
d9898ee8 | 9582 | |
8d138742 CE |
9583 | amigaos*) |
9584 | case $host_cpu in | |
9585 | powerpc) | |
9586 | # see comment about AmigaOS4 .so support | |
d50284c4 | 9587 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
8d138742 CE |
9588 | archive_expsym_cmds='' |
9589 | ;; | |
9590 | m68k) | |
9591 | 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)' | |
9592 | hardcode_libdir_flag_spec='-L$libdir' | |
9593 | hardcode_minus_L=yes | |
9594 | ;; | |
9595 | esac | |
9596 | ;; | |
d9898ee8 | 9597 | |
8d138742 CE |
9598 | bsdi[45]*) |
9599 | export_dynamic_flag_spec=-rdynamic | |
9600 | ;; | |
d9898ee8 | 9601 | |
8d138742 CE |
9602 | cygwin* | mingw* | pw32* | cegcc*) |
9603 | # When not using gcc, we currently assume that we are using | |
9604 | # Microsoft Visual C++. | |
9605 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9606 | # no search path for DLLs. | |
b0322a85 CE |
9607 | case $cc_basename in |
9608 | cl*) | |
9609 | # Native MSVC | |
9610 | hardcode_libdir_flag_spec=' ' | |
9611 | allow_undefined_flag=unsupported | |
9612 | always_export_symbols=yes | |
9613 | file_list_spec='@' | |
9614 | # Tell ltmain to make .lib files, not .a files. | |
9615 | libext=lib | |
9616 | # Tell ltmain to make .dll files, not .so files. | |
d50284c4 | 9617 | shrext_cmds=.dll |
b0322a85 | 9618 | # FIXME: Setting linknames here is a bad hack. |
d50284c4 CE |
9619 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
9620 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
9621 | cp "$export_symbols" "$output_objdir/$soname.def"; | |
9622 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
9623 | else | |
9624 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
9625 | fi~ | |
9626 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
9627 | linknames=' | |
b0322a85 CE |
9628 | # The linker will not automatically build a static lib if we build a DLL. |
9629 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
9630 | enable_shared_with_static_runtimes=yes | |
9631 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
9632 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9633 | # Don't use ranlib | |
9634 | old_postinstall_cmds='chmod 644 $oldlib' | |
9635 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
d50284c4 CE |
9636 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
9637 | case $lt_outputfile in | |
9638 | *.exe|*.EXE) ;; | |
9639 | *) | |
9640 | lt_outputfile=$lt_outputfile.exe | |
9641 | lt_tool_outputfile=$lt_tool_outputfile.exe | |
9642 | ;; | |
9643 | esac~ | |
9644 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
9645 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
9646 | $RM "$lt_outputfile.manifest"; | |
9647 | fi' | |
b0322a85 CE |
9648 | ;; |
9649 | *) | |
9650 | # Assume MSVC wrapper | |
9651 | hardcode_libdir_flag_spec=' ' | |
9652 | allow_undefined_flag=unsupported | |
9653 | # Tell ltmain to make .lib files, not .a files. | |
9654 | libext=lib | |
9655 | # Tell ltmain to make .dll files, not .so files. | |
d50284c4 | 9656 | shrext_cmds=.dll |
b0322a85 CE |
9657 | # FIXME: Setting linknames here is a bad hack. |
9658 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9659 | # The linker will automatically build a .lib file if we build a DLL. | |
9660 | old_archive_from_new_cmds='true' | |
9661 | # FIXME: Should let the user specify the lib program. | |
9662 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9663 | enable_shared_with_static_runtimes=yes | |
9664 | ;; | |
9665 | esac | |
8d138742 | 9666 | ;; |
d9898ee8 | 9667 | |
8d138742 | 9668 | darwin* | rhapsody*) |
d9898ee8 | 9669 | |
d9898ee8 | 9670 | |
8d138742 CE |
9671 | archive_cmds_need_lc=no |
9672 | hardcode_direct=no | |
9673 | hardcode_automatic=yes | |
9674 | hardcode_shlibpath_var=unsupported | |
d50284c4 CE |
9675 | if test yes = "$lt_cv_ld_force_load"; then |
9676 | 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\"`' | |
b0322a85 CE |
9677 | |
9678 | else | |
9679 | whole_archive_flag_spec='' | |
9680 | fi | |
8d138742 | 9681 | link_all_deplibs=yes |
d50284c4 | 9682 | allow_undefined_flag=$_lt_dar_allow_undefined |
8d138742 | 9683 | case $cc_basename in |
d50284c4 | 9684 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
8d138742 | 9685 | *) _lt_dar_can_shared=$GCC ;; |
d9898ee8 | 9686 | esac |
d50284c4 | 9687 | if test yes = "$_lt_dar_can_shared"; then |
b0322a85 | 9688 | output_verbose_link_cmd=func_echo_all |
d50284c4 CE |
9689 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
9690 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
9691 | 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" | |
9692 | 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 | 9693 | |
8d138742 CE |
9694 | else |
9695 | ld_shlibs=no | |
d9898ee8 | 9696 | fi |
d9898ee8 | 9697 | |
8d138742 | 9698 | ;; |
d9898ee8 | 9699 | |
8d138742 CE |
9700 | dgux*) |
9701 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9702 | hardcode_libdir_flag_spec='-L$libdir' | |
9703 | hardcode_shlibpath_var=no | |
9704 | ;; | |
d9898ee8 | 9705 | |
8d138742 CE |
9706 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9707 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9708 | # does not break anything, and helps significantly (at the cost of a little | |
9709 | # extra space). | |
9710 | freebsd2.2*) | |
9711 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9712 | hardcode_libdir_flag_spec='-R$libdir' | |
9713 | hardcode_direct=yes | |
9714 | hardcode_shlibpath_var=no | |
9715 | ;; | |
dd184caf | 9716 | |
8d138742 | 9717 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
b0322a85 | 9718 | freebsd2.*) |
8d138742 CE |
9719 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9720 | hardcode_direct=yes | |
9721 | hardcode_minus_L=yes | |
9722 | hardcode_shlibpath_var=no | |
9723 | ;; | |
d9898ee8 | 9724 | |
8d138742 CE |
9725 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
9726 | freebsd* | dragonfly*) | |
b0322a85 | 9727 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9728 | hardcode_libdir_flag_spec='-R$libdir' |
9729 | hardcode_direct=yes | |
9730 | hardcode_shlibpath_var=no | |
9731 | ;; | |
d9898ee8 | 9732 | |
8d138742 | 9733 | hpux9*) |
d50284c4 CE |
9734 | if test yes = "$GCC"; then |
9735 | archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' | |
8d138742 | 9736 | else |
d50284c4 | 9737 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
8d138742 | 9738 | fi |
d50284c4 | 9739 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
8d138742 CE |
9740 | hardcode_libdir_separator=: |
9741 | hardcode_direct=yes | |
d9898ee8 | 9742 | |
8d138742 CE |
9743 | # hardcode_minus_L: Not really in the search PATH, |
9744 | # but as the default location of the library. | |
9745 | hardcode_minus_L=yes | |
d50284c4 | 9746 | export_dynamic_flag_spec='$wl-E' |
8d138742 | 9747 | ;; |
d9898ee8 | 9748 | |
8d138742 | 9749 | hpux10*) |
d50284c4 CE |
9750 | if test yes,no = "$GCC,$with_gnu_ld"; then |
9751 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 CE |
9752 | else |
9753 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9754 | fi | |
d50284c4 CE |
9755 | if test no = "$with_gnu_ld"; then |
9756 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
8d138742 CE |
9757 | hardcode_libdir_separator=: |
9758 | hardcode_direct=yes | |
9759 | hardcode_direct_absolute=yes | |
d50284c4 | 9760 | export_dynamic_flag_spec='$wl-E' |
8d138742 CE |
9761 | # hardcode_minus_L: Not really in the search PATH, |
9762 | # but as the default location of the library. | |
9763 | hardcode_minus_L=yes | |
9764 | fi | |
9765 | ;; | |
d9898ee8 | 9766 | |
b0322a85 | 9767 | hpux11*) |
d50284c4 | 9768 | if test yes,no = "$GCC,$with_gnu_ld"; then |
b0322a85 CE |
9769 | case $host_cpu in |
9770 | hppa*64*) | |
d50284c4 | 9771 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
b0322a85 CE |
9772 | ;; |
9773 | ia64*) | |
d50284c4 | 9774 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
b0322a85 CE |
9775 | ;; |
9776 | *) | |
d50284c4 | 9777 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
b0322a85 CE |
9778 | ;; |
9779 | esac | |
9780 | else | |
9781 | case $host_cpu in | |
9782 | hppa*64*) | |
d50284c4 | 9783 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
b0322a85 CE |
9784 | ;; |
9785 | ia64*) | |
d50284c4 | 9786 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
b0322a85 CE |
9787 | ;; |
9788 | *) | |
9789 | ||
9790 | # Older versions of the 11.00 compiler do not understand -b yet | |
9791 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9793 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
9794 | if ${lt_cv_prog_compiler__b+:} false; then : | |
9795 | $as_echo_n "(cached) " >&6 | |
9796 | else | |
9797 | lt_cv_prog_compiler__b=no | |
d50284c4 | 9798 | save_LDFLAGS=$LDFLAGS |
b0322a85 CE |
9799 | LDFLAGS="$LDFLAGS -b" |
9800 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9801 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9802 | # The linker can only warn and ignore the option if not recognized | |
9803 | # So say no if there are warnings | |
9804 | if test -s conftest.err; then | |
9805 | # Append any errors to the config.log. | |
9806 | cat conftest.err 1>&5 | |
9807 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9808 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9809 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9810 | lt_cv_prog_compiler__b=yes | |
9811 | fi | |
9812 | else | |
9813 | lt_cv_prog_compiler__b=yes | |
9814 | fi | |
9815 | fi | |
9816 | $RM -r conftest* | |
d50284c4 | 9817 | LDFLAGS=$save_LDFLAGS |
b0322a85 CE |
9818 | |
9819 | fi | |
9820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9821 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9822 | ||
d50284c4 CE |
9823 | if test yes = "$lt_cv_prog_compiler__b"; then |
9824 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
b0322a85 CE |
9825 | else |
9826 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9827 | fi | |
9828 | ||
8d138742 CE |
9829 | ;; |
9830 | esac | |
d9898ee8 | 9831 | fi |
d50284c4 CE |
9832 | if test no = "$with_gnu_ld"; then |
9833 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
8d138742 | 9834 | hardcode_libdir_separator=: |
d9898ee8 | 9835 | |
8d138742 CE |
9836 | case $host_cpu in |
9837 | hppa*64*|ia64*) | |
9838 | hardcode_direct=no | |
9839 | hardcode_shlibpath_var=no | |
9840 | ;; | |
9841 | *) | |
9842 | hardcode_direct=yes | |
9843 | hardcode_direct_absolute=yes | |
d50284c4 | 9844 | export_dynamic_flag_spec='$wl-E' |
d9898ee8 | 9845 | |
8d138742 CE |
9846 | # hardcode_minus_L: Not really in the search PATH, |
9847 | # but as the default location of the library. | |
9848 | hardcode_minus_L=yes | |
9849 | ;; | |
9850 | esac | |
9851 | fi | |
9852 | ;; | |
d9898ee8 | 9853 | |
8d138742 | 9854 | irix5* | irix6* | nonstopux*) |
d50284c4 CE |
9855 | if test yes = "$GCC"; then |
9856 | 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 |
9857 | # Try to use the -exported_symbol ld option, if it does not |
9858 | # work, assume that -exports_file does not work either and | |
9859 | # implicitly export all symbols. | |
b0322a85 CE |
9860 | # This should be the same for all languages, so no per-tag cache variable. |
9861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
9862 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
9863 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
9864 | $as_echo_n "(cached) " >&6 | |
9865 | else | |
d50284c4 CE |
9866 | save_LDFLAGS=$LDFLAGS |
9867 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" | |
b0322a85 CE |
9868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9869 | /* end confdefs.h. */ | |
9870 | int foo (void) { return 0; } | |
d9898ee8 | 9871 | _ACEOF |
b0322a85 CE |
9872 | if ac_fn_c_try_link "$LINENO"; then : |
9873 | lt_cv_irix_exported_symbol=yes | |
d9898ee8 | 9874 | else |
b0322a85 | 9875 | lt_cv_irix_exported_symbol=no |
d9898ee8 | 9876 | fi |
b0322a85 CE |
9877 | rm -f core conftest.err conftest.$ac_objext \ |
9878 | conftest$ac_exeext conftest.$ac_ext | |
d50284c4 | 9879 | LDFLAGS=$save_LDFLAGS |
b0322a85 CE |
9880 | fi |
9881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
9882 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
d50284c4 CE |
9883 | if test yes = "$lt_cv_irix_exported_symbol"; then |
9884 | 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' | |
b0322a85 | 9885 | fi |
d9898ee8 | 9886 | else |
d50284c4 CE |
9887 | 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' |
9888 | 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 |
9889 | fi |
9890 | archive_cmds_need_lc='no' | |
d50284c4 | 9891 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
8d138742 CE |
9892 | hardcode_libdir_separator=: |
9893 | inherit_rpath=yes | |
9894 | link_all_deplibs=yes | |
9895 | ;; | |
d9898ee8 | 9896 | |
d50284c4 CE |
9897 | linux*) |
9898 | case $cc_basename in | |
9899 | tcc*) | |
9900 | # Fabrice Bellard et al's Tiny C Compiler | |
9901 | ld_shlibs=yes | |
9902 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9903 | ;; | |
9904 | esac | |
9905 | ;; | |
9906 | ||
8d138742 CE |
9907 | netbsd*) |
9908 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9909 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9910 | else | |
9911 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
d9898ee8 | 9912 | fi |
8d138742 CE |
9913 | hardcode_libdir_flag_spec='-R$libdir' |
9914 | hardcode_direct=yes | |
9915 | hardcode_shlibpath_var=no | |
9916 | ;; | |
d9898ee8 | 9917 | |
8d138742 CE |
9918 | newsos6) |
9919 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9920 | hardcode_direct=yes | |
d50284c4 | 9921 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
8d138742 CE |
9922 | hardcode_libdir_separator=: |
9923 | hardcode_shlibpath_var=no | |
9924 | ;; | |
d9898ee8 | 9925 | |
8d138742 CE |
9926 | *nto* | *qnx*) |
9927 | ;; | |
d9898ee8 | 9928 | |
d50284c4 | 9929 | openbsd* | bitrig*) |
8d138742 CE |
9930 | if test -f /usr/libexec/ld.so; then |
9931 | hardcode_direct=yes | |
9932 | hardcode_shlibpath_var=no | |
9933 | hardcode_direct_absolute=yes | |
d50284c4 | 9934 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
8d138742 | 9935 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
d50284c4 CE |
9936 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
9937 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
9938 | export_dynamic_flag_spec='$wl-E' | |
8d138742 | 9939 | else |
d50284c4 CE |
9940 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
9941 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
8d138742 | 9942 | fi |
d9898ee8 | 9943 | else |
8d138742 | 9944 | ld_shlibs=no |
d9898ee8 | 9945 | fi |
d9898ee8 | 9946 | ;; |
8d138742 CE |
9947 | |
9948 | os2*) | |
9949 | hardcode_libdir_flag_spec='-L$libdir' | |
9950 | hardcode_minus_L=yes | |
9951 | allow_undefined_flag=unsupported | |
d50284c4 CE |
9952 | shrext_cmds=.dll |
9953 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9954 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9955 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9956 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9957 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
9958 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9959 | emximp -o $lib $output_objdir/$libname.def' | |
9960 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9961 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9962 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9963 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9964 | prefix_cmds="$SED"~ | |
9965 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
9966 | prefix_cmds="$prefix_cmds -e 1d"; | |
9967 | fi~ | |
9968 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
9969 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
9970 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9971 | emximp -o $lib $output_objdir/$libname.def' | |
9972 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
9973 | enable_shared_with_static_runtimes=yes | |
d9898ee8 | 9974 | ;; |
8d138742 CE |
9975 | |
9976 | osf3*) | |
d50284c4 CE |
9977 | if test yes = "$GCC"; then |
9978 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
9979 | 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' | |
d9898ee8 | 9980 | else |
8d138742 | 9981 | allow_undefined_flag=' -expect_unresolved \*' |
d50284c4 | 9982 | 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' |
d9898ee8 | 9983 | fi |
8d138742 | 9984 | archive_cmds_need_lc='no' |
d50284c4 | 9985 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
8d138742 | 9986 | hardcode_libdir_separator=: |
d9898ee8 | 9987 | ;; |
d9898ee8 | 9988 | |
8d138742 | 9989 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
d50284c4 CE |
9990 | if test yes = "$GCC"; then |
9991 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
9992 | 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' | |
9993 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
8d138742 CE |
9994 | else |
9995 | allow_undefined_flag=' -expect_unresolved \*' | |
d50284c4 | 9996 | 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 | 9997 | 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~ |
d50284c4 | 9998 | $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' |
8d138742 CE |
9999 | |
10000 | # Both c and cxx compiler support -rpath directly | |
10001 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10002 | fi | |
10003 | archive_cmds_need_lc='no' | |
10004 | hardcode_libdir_separator=: | |
d9898ee8 | 10005 | ;; |
d9898ee8 | 10006 | |
8d138742 CE |
10007 | solaris*) |
10008 | no_undefined_flag=' -z defs' | |
d50284c4 CE |
10009 | if test yes = "$GCC"; then |
10010 | wlarc='$wl' | |
10011 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10012 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
d50284c4 | 10013 | $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 |
10014 | else |
10015 | case `$CC -V 2>&1` in | |
10016 | *"Compilers 5.0"*) | |
10017 | wlarc='' | |
d50284c4 | 10018 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8d138742 | 10019 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
d50284c4 | 10020 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
d9898ee8 | 10021 | ;; |
10022 | *) | |
d50284c4 CE |
10023 | wlarc='$wl' |
10024 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10025 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
d50284c4 | 10026 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
d9898ee8 | 10027 | ;; |
10028 | esac | |
8d138742 CE |
10029 | fi |
10030 | hardcode_libdir_flag_spec='-R$libdir' | |
10031 | hardcode_shlibpath_var=no | |
10032 | case $host_os in | |
10033 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
d9898ee8 | 10034 | *) |
8d138742 | 10035 | # The compiler driver will combine and reorder linker options, |
d50284c4 | 10036 | # but understands '-z linker_flag'. GCC discards it without '$wl', |
8d138742 CE |
10037 | # but is careful enough not to reorder. |
10038 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
d50284c4 CE |
10039 | if test yes = "$GCC"; then |
10040 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' | |
d9898ee8 | 10041 | else |
8d138742 | 10042 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
d9898ee8 | 10043 | fi |
d9898ee8 | 10044 | ;; |
8d138742 CE |
10045 | esac |
10046 | link_all_deplibs=yes | |
10047 | ;; | |
10048 | ||
10049 | sunos4*) | |
d50284c4 | 10050 | if test sequent = "$host_vendor"; then |
8d138742 CE |
10051 | # Use $CC to link under sequent, because it throws in some extra .o |
10052 | # files that make .init and .fini sections work. | |
d50284c4 | 10053 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
10054 | else |
10055 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10056 | fi | |
10057 | hardcode_libdir_flag_spec='-L$libdir' | |
10058 | hardcode_direct=yes | |
10059 | hardcode_minus_L=yes | |
10060 | hardcode_shlibpath_var=no | |
10061 | ;; | |
10062 | ||
10063 | sysv4) | |
10064 | case $host_vendor in | |
10065 | sni) | |
10066 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10067 | hardcode_direct=yes # is this really true??? | |
d9898ee8 | 10068 | ;; |
8d138742 CE |
10069 | siemens) |
10070 | ## LD is ld it makes a PLAMLIB | |
10071 | ## CC just makes a GrossModule. | |
10072 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10073 | reload_cmds='$CC -r -o $output$reload_objs' | |
10074 | hardcode_direct=no | |
d9898ee8 | 10075 | ;; |
8d138742 CE |
10076 | motorola) |
10077 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10078 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10079 | ;; | |
10080 | esac | |
10081 | runpath_var='LD_RUN_PATH' | |
10082 | hardcode_shlibpath_var=no | |
10083 | ;; | |
10084 | ||
10085 | sysv4.3*) | |
10086 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10087 | hardcode_shlibpath_var=no | |
10088 | export_dynamic_flag_spec='-Bexport' | |
10089 | ;; | |
d9898ee8 | 10090 | |
8d138742 CE |
10091 | sysv4*MP*) |
10092 | if test -d /usr/nec; then | |
10093 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10094 | hardcode_shlibpath_var=no | |
d9898ee8 | 10095 | runpath_var=LD_RUN_PATH |
8d138742 CE |
10096 | hardcode_runpath_var=yes |
10097 | ld_shlibs=yes | |
ac40fd9e | 10098 | fi |
8d138742 | 10099 | ;; |
d9898ee8 | 10100 | |
8d138742 | 10101 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
d50284c4 | 10102 | no_undefined_flag='$wl-z,text' |
8d138742 CE |
10103 | archive_cmds_need_lc=no |
10104 | hardcode_shlibpath_var=no | |
10105 | runpath_var='LD_RUN_PATH' | |
d9898ee8 | 10106 | |
d50284c4 CE |
10107 | if test yes = "$GCC"; then |
10108 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10109 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10110 | else |
d50284c4 CE |
10111 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10112 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 CE |
10113 | fi |
10114 | ;; | |
d9898ee8 | 10115 | |
8d138742 | 10116 | sysv5* | sco3.2v5* | sco5v6*) |
d50284c4 | 10117 | # Note: We CANNOT use -z defs as we might desire, because we do not |
8d138742 CE |
10118 | # link with -lc, and that would cause any symbols used from libc to |
10119 | # always be unresolved, which means just about no library would | |
10120 | # ever link correctly. If we're not using GNU ld we use -z text | |
10121 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10122 | # as -z defs. | |
d50284c4 CE |
10123 | no_undefined_flag='$wl-z,text' |
10124 | allow_undefined_flag='$wl-z,nodefs' | |
8d138742 CE |
10125 | archive_cmds_need_lc=no |
10126 | hardcode_shlibpath_var=no | |
d50284c4 | 10127 | hardcode_libdir_flag_spec='$wl-R,$libdir' |
8d138742 CE |
10128 | hardcode_libdir_separator=':' |
10129 | link_all_deplibs=yes | |
d50284c4 | 10130 | export_dynamic_flag_spec='$wl-Bexport' |
8d138742 | 10131 | runpath_var='LD_RUN_PATH' |
d9898ee8 | 10132 | |
d50284c4 CE |
10133 | if test yes = "$GCC"; then |
10134 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10135 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10136 | else |
d50284c4 CE |
10137 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10138 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 CE |
10139 | fi |
10140 | ;; | |
d9898ee8 | 10141 | |
8d138742 CE |
10142 | uts4*) |
10143 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10144 | hardcode_libdir_flag_spec='-L$libdir' | |
10145 | hardcode_shlibpath_var=no | |
10146 | ;; | |
d9898ee8 | 10147 | |
8d138742 CE |
10148 | *) |
10149 | ld_shlibs=no | |
10150 | ;; | |
d9898ee8 | 10151 | esac |
d9898ee8 | 10152 | |
d50284c4 | 10153 | if test sni = "$host_vendor"; then |
8d138742 CE |
10154 | case $host in |
10155 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
d50284c4 | 10156 | export_dynamic_flag_spec='$wl-Blargedynsym' |
8d138742 CE |
10157 | ;; |
10158 | esac | |
10159 | fi | |
10160 | fi | |
d9898ee8 | 10161 | |
b0322a85 | 10162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
8d138742 | 10163 | $as_echo "$ld_shlibs" >&6; } |
d50284c4 | 10164 | test no = "$ld_shlibs" && can_build_shared=no |
d9898ee8 | 10165 | |
8d138742 | 10166 | with_gnu_ld=$with_gnu_ld |
d9898ee8 | 10167 | |
d9898ee8 | 10168 | |
d9898ee8 | 10169 | |
d9898ee8 | 10170 | |
d9898ee8 | 10171 | |
d9898ee8 | 10172 | |
10173 | ||
d9898ee8 | 10174 | |
d9898ee8 | 10175 | |
d9898ee8 | 10176 | |
d9898ee8 | 10177 | |
d9898ee8 | 10178 | |
d9898ee8 | 10179 | |
d9898ee8 | 10180 | |
d9898ee8 | 10181 | |
8d138742 CE |
10182 | # |
10183 | # Do we need to explicitly link libc? | |
10184 | # | |
10185 | case "x$archive_cmds_need_lc" in | |
10186 | x|xyes) | |
10187 | # Assume -lc should be added | |
10188 | archive_cmds_need_lc=yes | |
d9898ee8 | 10189 | |
d50284c4 | 10190 | if test yes,yes = "$GCC,$enable_shared"; then |
8d138742 CE |
10191 | case $archive_cmds in |
10192 | *'~'*) | |
10193 | # FIXME: we may have to deal with multi-command sequences. | |
ac40fd9e | 10194 | ;; |
8d138742 CE |
10195 | '$CC '*) |
10196 | # Test whether the compiler implicitly links with -lc since on some | |
10197 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10198 | # to ld, don't add -lc before -lgcc. | |
b0322a85 | 10199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
8d138742 | 10200 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
b0322a85 CE |
10201 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
10202 | $as_echo_n "(cached) " >&6 | |
10203 | else | |
10204 | $RM conftest* | |
10205 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
ac40fd9e | 10206 | |
b0322a85 | 10207 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
10208 | (eval $ac_compile) 2>&5 |
10209 | ac_status=$? | |
b0322a85 CE |
10210 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10211 | test $ac_status = 0; } 2>conftest.err; then | |
10212 | soname=conftest | |
10213 | lib=conftest | |
10214 | libobjs=conftest.$ac_objext | |
10215 | deplibs= | |
10216 | wl=$lt_prog_compiler_wl | |
10217 | pic_flag=$lt_prog_compiler_pic | |
10218 | compiler_flags=-v | |
10219 | linker_flags=-v | |
10220 | verstring= | |
10221 | output_objdir=. | |
10222 | libname=conftest | |
10223 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10224 | allow_undefined_flag= | |
10225 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
8d138742 CE |
10226 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
10227 | ac_status=$? | |
b0322a85 CE |
10228 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10229 | test $ac_status = 0; } | |
10230 | then | |
10231 | lt_cv_archive_cmds_need_lc=no | |
10232 | else | |
10233 | lt_cv_archive_cmds_need_lc=yes | |
10234 | fi | |
10235 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10236 | else | |
10237 | cat conftest.err 1>&5 | |
10238 | fi | |
10239 | $RM conftest* | |
10240 | ||
10241 | fi | |
10242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10243 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10244 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
ac40fd9e | 10245 | ;; |
10246 | esac | |
8d138742 | 10247 | fi |
d9898ee8 | 10248 | ;; |
10249 | esac | |
10250 | ||
10251 | ||
d9898ee8 | 10252 | |
d9898ee8 | 10253 | |
d9898ee8 | 10254 | |
d9898ee8 | 10255 | |
d9898ee8 | 10256 | |
d9898ee8 | 10257 | |
d9898ee8 | 10258 | |
d9898ee8 | 10259 | |
d9898ee8 | 10260 | |
d9898ee8 | 10261 | |
d9898ee8 | 10262 | |
d9898ee8 | 10263 | |
d9898ee8 | 10264 | |
d9898ee8 | 10265 | |
10266 | ||
d9898ee8 | 10267 | |
d9898ee8 | 10268 | |
d9898ee8 | 10269 | |
10270 | ||
d9898ee8 | 10271 | |
d9898ee8 | 10272 | |
d9898ee8 | 10273 | |
d9898ee8 | 10274 | |
d9898ee8 | 10275 | |
d9898ee8 | 10276 | |
d9898ee8 | 10277 | |
ac40fd9e | 10278 | |
8d138742 CE |
10279 | |
10280 | ||
10281 | ||
10282 | ||
10283 | ||
10284 | ||
10285 | ||
10286 | ||
10287 | ||
10288 | ||
10289 | ||
10290 | ||
10291 | ||
10292 | ||
10293 | ||
10294 | ||
10295 | ||
10296 | ||
10297 | ||
10298 | ||
10299 | ||
10300 | ||
10301 | ||
10302 | ||
10303 | ||
10304 | ||
10305 | ||
10306 | ||
10307 | ||
10308 | ||
10309 | ||
10310 | ||
10311 | ||
10312 | ||
10313 | ||
10314 | ||
10315 | ||
10316 | ||
10317 | ||
10318 | ||
10319 | ||
10320 | ||
10321 | ||
10322 | ||
10323 | ||
10324 | ||
10325 | ||
10326 | ||
10327 | ||
10328 | ||
10329 | ||
10330 | ||
10331 | ||
10332 | ||
10333 | ||
10334 | ||
10335 | ||
10336 | ||
10337 | ||
10338 | ||
10339 | ||
10340 | ||
10341 | ||
10342 | ||
10343 | ||
10344 | ||
10345 | ||
10346 | ||
10347 | ||
10348 | ||
10349 | ||
10350 | ||
10351 | ||
10352 | ||
10353 | ||
10354 | ||
10355 | ||
10356 | ||
10357 | ||
10358 | ||
10359 | ||
10360 | ||
10361 | ||
10362 | ||
10363 | ||
10364 | ||
10365 | ||
10366 | ||
10367 | ||
10368 | ||
10369 | ||
10370 | ||
10371 | ||
10372 | ||
10373 | ||
10374 | ||
10375 | ||
10376 | ||
10377 | ||
10378 | ||
10379 | ||
10380 | ||
10381 | ||
10382 | ||
10383 | ||
10384 | ||
10385 | ||
10386 | ||
10387 | ||
10388 | ||
10389 | ||
10390 | ||
10391 | ||
10392 | ||
10393 | ||
10394 | ||
10395 | ||
10396 | ||
10397 | ||
10398 | ||
10399 | ||
10400 | ||
10401 | ||
b0322a85 | 10402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
8d138742 CE |
10403 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
10404 | ||
d50284c4 | 10405 | if test yes = "$GCC"; then |
8d138742 | 10406 | case $host_os in |
d50284c4 CE |
10407 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
10408 | *) lt_awk_arg='/^libraries:/' ;; | |
8d138742 | 10409 | esac |
b0322a85 | 10410 | case $host_os in |
d50284c4 CE |
10411 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
10412 | *) lt_sed_strip_eq='s|=/|/|g' ;; | |
b0322a85 CE |
10413 | esac |
10414 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10415 | case $lt_search_path_spec in | |
10416 | *\;*) | |
8d138742 CE |
10417 | # if the path contains ";" then we assume it to be the separator |
10418 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10419 | # assumed that no part of a normal pathname contains ";" but that should | |
10420 | # okay in the real world where ";" in dirpaths is itself problematic. | |
b0322a85 CE |
10421 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
10422 | ;; | |
10423 | *) | |
10424 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10425 | ;; | |
10426 | esac | |
8d138742 | 10427 | # Ok, now we have the path, separated by spaces, we can step through it |
d50284c4 | 10428 | # and add multilib dir if necessary... |
8d138742 | 10429 | lt_tmp_lt_search_path_spec= |
d50284c4 CE |
10430 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
10431 | # ...but if some path component already ends with the multilib dir we assume | |
10432 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). | |
10433 | case "$lt_multi_os_dir; $lt_search_path_spec " in | |
10434 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) | |
10435 | lt_multi_os_dir= | |
10436 | ;; | |
10437 | esac | |
8d138742 | 10438 | for lt_sys_path in $lt_search_path_spec; do |
d50284c4 CE |
10439 | if test -d "$lt_sys_path$lt_multi_os_dir"; then |
10440 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" | |
10441 | elif test -n "$lt_multi_os_dir"; then | |
8d138742 CE |
10442 | test -d "$lt_sys_path" && \ |
10443 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10444 | fi | |
10445 | done | |
b0322a85 | 10446 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
d50284c4 CE |
10447 | BEGIN {RS = " "; FS = "/|\n";} { |
10448 | lt_foo = ""; | |
10449 | lt_count = 0; | |
8d138742 CE |
10450 | for (lt_i = NF; lt_i > 0; lt_i--) { |
10451 | if ($lt_i != "" && $lt_i != ".") { | |
10452 | if ($lt_i == "..") { | |
10453 | lt_count++; | |
10454 | } else { | |
10455 | if (lt_count == 0) { | |
d50284c4 | 10456 | lt_foo = "/" $lt_i lt_foo; |
8d138742 CE |
10457 | } else { |
10458 | lt_count--; | |
10459 | } | |
10460 | } | |
10461 | } | |
10462 | } | |
10463 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10464 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10465 | }'` | |
b0322a85 CE |
10466 | # AWK program above erroneously prepends '/' to C:/dos/paths |
10467 | # for these hosts. | |
10468 | case $host_os in | |
10469 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
d50284c4 | 10470 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
b0322a85 CE |
10471 | esac |
10472 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
8d138742 CE |
10473 | else |
10474 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10475 | fi | |
10476 | library_names_spec= | |
10477 | libname_spec='lib$name' | |
10478 | soname_spec= | |
d50284c4 | 10479 | shrext_cmds=.so |
8d138742 CE |
10480 | postinstall_cmds= |
10481 | postuninstall_cmds= | |
10482 | finish_cmds= | |
10483 | finish_eval= | |
10484 | shlibpath_var= | |
10485 | shlibpath_overrides_runpath=unknown | |
10486 | version_type=none | |
10487 | dynamic_linker="$host_os ld.so" | |
10488 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10489 | need_lib_prefix=unknown | |
d9898ee8 | 10490 | hardcode_into_libs=no |
10491 | ||
10492 | # when you set need_version to no, make sure it does not cause -set_version | |
10493 | # flags to be left without arguments | |
10494 | need_version=unknown | |
10495 | ||
d50284c4 CE |
10496 | |
10497 | ||
d9898ee8 | 10498 | case $host_os in |
10499 | aix3*) | |
b0322a85 | 10500 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 | 10501 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
d9898ee8 | 10502 | shlibpath_var=LIBPATH |
10503 | ||
10504 | # AIX 3 has no versioning support, so we append a major version to the name. | |
d50284c4 | 10505 | soname_spec='$libname$release$shared_ext$major' |
d9898ee8 | 10506 | ;; |
10507 | ||
8d138742 | 10508 | aix[4-9]*) |
b0322a85 | 10509 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10510 | need_lib_prefix=no |
10511 | need_version=no | |
10512 | hardcode_into_libs=yes | |
d50284c4 | 10513 | if test ia64 = "$host_cpu"; then |
d9898ee8 | 10514 | # AIX 5 supports IA64 |
d50284c4 | 10515 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
d9898ee8 | 10516 | shlibpath_var=LD_LIBRARY_PATH |
10517 | else | |
10518 | # With GCC up to 2.95.x, collect2 would create an import file | |
10519 | # for dependence libraries. The import file would start with | |
d50284c4 CE |
10520 | # the line '#! .'. This would cause the generated library to |
10521 | # depend on '.', always an invalid library. This was fixed in | |
d9898ee8 | 10522 | # development snapshots of GCC prior to 3.0. |
10523 | case $host_os in | |
10524 | aix4 | aix4.[01] | aix4.[01].*) | |
10525 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10526 | echo ' yes ' | |
d50284c4 | 10527 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
d9898ee8 | 10528 | : |
10529 | else | |
10530 | can_build_shared=no | |
10531 | fi | |
10532 | ;; | |
10533 | esac | |
d50284c4 CE |
10534 | # Using Import Files as archive members, it is possible to support |
10535 | # filename-based versioning of shared library archives on AIX. While | |
10536 | # this would work for both with and without runtime linking, it will | |
10537 | # prevent static linking of such archives. So we do filename-based | |
10538 | # shared library versioning with .so extension only, which is used | |
10539 | # when both runtime linking and shared linking is enabled. | |
10540 | # Unfortunately, runtime linking may impact performance, so we do | |
10541 | # not want this to be the default eventually. Also, we use the | |
10542 | # versioned .so libs for executables only if there is the -brtl | |
10543 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
10544 | # To allow for filename-based versioning support, we need to create | |
10545 | # libNAME.so.V as an archive file, containing: | |
10546 | # *) an Import File, referring to the versioned filename of the | |
10547 | # archive as well as the shared archive member, telling the | |
10548 | # bitwidth (32 or 64) of that shared object, and providing the | |
10549 | # list of exported symbols of that shared object, eventually | |
10550 | # decorated with the 'weak' keyword | |
10551 | # *) the shared object with the F_LOADONLY flag set, to really avoid | |
10552 | # it being seen by the linker. | |
10553 | # At run time we better use the real file rather than another symlink, | |
10554 | # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
10555 | ||
10556 | case $with_aix_soname,$aix_use_runtimelinking in | |
10557 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
d9898ee8 | 10558 | # soname into executable. Probably we can add versioning support to |
10559 | # collect2, so additional links can be useful in future. | |
d50284c4 CE |
10560 | aix,yes) # traditional libtool |
10561 | dynamic_linker='AIX unversionable lib.so' | |
d9898ee8 | 10562 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
10563 | # instead of lib<name>.a to let people know that these are not | |
10564 | # typical AIX shared libraries. | |
d50284c4 CE |
10565 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10566 | ;; | |
10567 | aix,no) # traditional AIX only | |
10568 | dynamic_linker='AIX lib.a(lib.so.V)' | |
d9898ee8 | 10569 | # We preserve .a as extension for shared libraries through AIX4.2 |
10570 | # and later when we are not doing run time linking. | |
d50284c4 CE |
10571 | library_names_spec='$libname$release.a $libname.a' |
10572 | soname_spec='$libname$release$shared_ext$major' | |
10573 | ;; | |
10574 | svr4,*) # full svr4 only | |
10575 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" | |
10576 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
10577 | # We do not specify a path in Import Files, so LIBPATH fires. | |
10578 | shlibpath_overrides_runpath=yes | |
10579 | ;; | |
10580 | *,yes) # both, prefer svr4 | |
10581 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" | |
10582 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
10583 | # unpreferred sharedlib libNAME.a needs extra handling | |
10584 | postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' | |
10585 | postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' | |
10586 | # We do not specify a path in Import Files, so LIBPATH fires. | |
10587 | shlibpath_overrides_runpath=yes | |
10588 | ;; | |
10589 | *,no) # both, prefer aix | |
10590 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" | |
10591 | library_names_spec='$libname$release.a $libname.a' | |
10592 | soname_spec='$libname$release$shared_ext$major' | |
10593 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
10594 | postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' | |
10595 | postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' | |
10596 | ;; | |
10597 | esac | |
d9898ee8 | 10598 | shlibpath_var=LIBPATH |
10599 | fi | |
10600 | ;; | |
10601 | ||
10602 | amigaos*) | |
8d138742 CE |
10603 | case $host_cpu in |
10604 | powerpc) | |
10605 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10606 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
d50284c4 | 10607 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
8d138742 CE |
10608 | ;; |
10609 | m68k) | |
10610 | library_names_spec='$libname.ixlibrary $libname.a' | |
10611 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
d50284c4 | 10612 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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 |
10613 | ;; |
10614 | esac | |
d9898ee8 | 10615 | ;; |
10616 | ||
10617 | beos*) | |
d50284c4 | 10618 | library_names_spec='$libname$shared_ext' |
d9898ee8 | 10619 | dynamic_linker="$host_os ld.so" |
10620 | shlibpath_var=LIBRARY_PATH | |
10621 | ;; | |
10622 | ||
10623 | bsdi[45]*) | |
b0322a85 | 10624 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10625 | need_version=no |
d50284c4 CE |
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' | |
d9898ee8 | 10628 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
10629 | shlibpath_var=LD_LIBRARY_PATH | |
10630 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10631 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10632 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10633 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10634 | # libtool to hard-code these into programs | |
10635 | ;; | |
10636 | ||
8d138742 | 10637 | cygwin* | mingw* | pw32* | cegcc*) |
d9898ee8 | 10638 | version_type=windows |
d50284c4 | 10639 | shrext_cmds=.dll |
d9898ee8 | 10640 | need_version=no |
10641 | need_lib_prefix=no | |
10642 | ||
b0322a85 CE |
10643 | case $GCC,$cc_basename in |
10644 | yes,*) | |
10645 | # gcc | |
d9898ee8 | 10646 | library_names_spec='$libname.dll.a' |
10647 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
d50284c4 CE |
10648 | postinstall_cmds='base_file=`basename \$file`~ |
10649 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
d9898ee8 | 10650 | dldir=$destdir/`dirname \$dlpath`~ |
10651 | test -d \$dldir || mkdir -p \$dldir~ | |
10652 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8d138742 CE |
10653 | chmod a+x \$dldir/$dlname~ |
10654 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10655 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10656 | fi' | |
d9898ee8 | 10657 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
10658 | dlpath=$dir/\$dldll~ | |
8d138742 | 10659 | $RM \$dlpath' |
d9898ee8 | 10660 | shlibpath_overrides_runpath=yes |
10661 | ||
10662 | case $host_os in | |
10663 | cygwin*) | |
10664 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
d50284c4 | 10665 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
b0322a85 CE |
10666 | |
10667 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
d9898ee8 | 10668 | ;; |
8d138742 | 10669 | mingw* | cegcc*) |
d9898ee8 | 10670 | # MinGW DLLs use traditional 'lib' prefix |
d50284c4 | 10671 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
d9898ee8 | 10672 | ;; |
10673 | pw32*) | |
10674 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
d50284c4 | 10675 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
d9898ee8 | 10676 | ;; |
10677 | esac | |
b0322a85 CE |
10678 | dynamic_linker='Win32 ld.exe' |
10679 | ;; | |
10680 | ||
10681 | *,cl*) | |
10682 | # Native MSVC | |
10683 | libname_spec='$name' | |
d50284c4 CE |
10684 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
10685 | library_names_spec='$libname.dll.lib' | |
b0322a85 CE |
10686 | |
10687 | case $build_os in | |
10688 | mingw*) | |
10689 | sys_lib_search_path_spec= | |
10690 | lt_save_ifs=$IFS | |
10691 | IFS=';' | |
10692 | for lt_path in $LIB | |
10693 | do | |
10694 | IFS=$lt_save_ifs | |
10695 | # Let DOS variable expansion print the short 8.3 style file name. | |
10696 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
10697 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
10698 | done | |
10699 | IFS=$lt_save_ifs | |
10700 | # Convert to MSYS style. | |
10701 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
10702 | ;; | |
10703 | cygwin*) | |
10704 | # Convert to unix form, then to dos form, then back to unix form | |
10705 | # but this time dos style (no spaces!) so that the unix form looks | |
10706 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
10707 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
10708 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
10709 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10710 | ;; | |
10711 | *) | |
d50284c4 | 10712 | sys_lib_search_path_spec=$LIB |
b0322a85 CE |
10713 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
10714 | # It is most probably a Windows format PATH. | |
10715 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10716 | else | |
10717 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10718 | fi | |
10719 | # FIXME: find the short name or the path components, as spaces are | |
10720 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
10721 | ;; | |
10722 | esac | |
10723 | ||
10724 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
d50284c4 CE |
10725 | postinstall_cmds='base_file=`basename \$file`~ |
10726 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
b0322a85 CE |
10727 | dldir=$destdir/`dirname \$dlpath`~ |
10728 | test -d \$dldir || mkdir -p \$dldir~ | |
10729 | $install_prog $dir/$dlname \$dldir/$dlname' | |
10730 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10731 | dlpath=$dir/\$dldll~ | |
10732 | $RM \$dlpath' | |
10733 | shlibpath_overrides_runpath=yes | |
10734 | dynamic_linker='Win32 link.exe' | |
d9898ee8 | 10735 | ;; |
10736 | ||
10737 | *) | |
b0322a85 | 10738 | # Assume MSVC wrapper |
d50284c4 | 10739 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
b0322a85 | 10740 | dynamic_linker='Win32 ld.exe' |
d9898ee8 | 10741 | ;; |
10742 | esac | |
d9898ee8 | 10743 | # FIXME: first we should search . and the directory the executable is in |
10744 | shlibpath_var=PATH | |
10745 | ;; | |
10746 | ||
10747 | darwin* | rhapsody*) | |
10748 | dynamic_linker="$host_os dyld" | |
10749 | version_type=darwin | |
10750 | need_lib_prefix=no | |
10751 | need_version=no | |
d50284c4 CE |
10752 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
10753 | soname_spec='$libname$release$major$shared_ext' | |
d9898ee8 | 10754 | shlibpath_overrides_runpath=yes |
10755 | shlibpath_var=DYLD_LIBRARY_PATH | |
10756 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
ac40fd9e | 10757 | |
8d138742 | 10758 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
d9898ee8 | 10759 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
10760 | ;; | |
10761 | ||
10762 | dgux*) | |
b0322a85 | 10763 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10764 | need_lib_prefix=no |
10765 | need_version=no | |
d50284c4 CE |
10766 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10767 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 10768 | shlibpath_var=LD_LIBRARY_PATH |
10769 | ;; | |
10770 | ||
d9898ee8 | 10771 | freebsd* | dragonfly*) |
10772 | # DragonFly does not have aout. When/if they implement a new | |
10773 | # versioning mechanism, adjust this. | |
10774 | if test -x /usr/bin/objformat; then | |
10775 | objformat=`/usr/bin/objformat` | |
10776 | else | |
10777 | case $host_os in | |
b0322a85 | 10778 | freebsd[23].*) objformat=aout ;; |
d9898ee8 | 10779 | *) objformat=elf ;; |
10780 | esac | |
10781 | fi | |
10782 | version_type=freebsd-$objformat | |
10783 | case $version_type in | |
10784 | freebsd-elf*) | |
d50284c4 CE |
10785 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10786 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 10787 | need_version=no |
10788 | need_lib_prefix=no | |
10789 | ;; | |
10790 | freebsd-*) | |
d50284c4 | 10791 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
d9898ee8 | 10792 | need_version=yes |
10793 | ;; | |
10794 | esac | |
10795 | shlibpath_var=LD_LIBRARY_PATH | |
10796 | case $host_os in | |
b0322a85 | 10797 | freebsd2.*) |
d9898ee8 | 10798 | shlibpath_overrides_runpath=yes |
10799 | ;; | |
10800 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10801 | shlibpath_overrides_runpath=yes | |
10802 | hardcode_into_libs=yes | |
10803 | ;; | |
10804 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10805 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10806 | shlibpath_overrides_runpath=no | |
10807 | hardcode_into_libs=yes | |
10808 | ;; | |
ac40fd9e | 10809 | *) # from 4.6 on, and DragonFly |
d9898ee8 | 10810 | shlibpath_overrides_runpath=yes |
10811 | hardcode_into_libs=yes | |
10812 | ;; | |
10813 | esac | |
10814 | ;; | |
10815 | ||
b0322a85 CE |
10816 | haiku*) |
10817 | version_type=linux # correct to gnu/linux during the next big refactor | |
10818 | need_lib_prefix=no | |
10819 | need_version=no | |
10820 | dynamic_linker="$host_os runtime_loader" | |
d50284c4 CE |
10821 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10822 | soname_spec='$libname$release$shared_ext$major' | |
b0322a85 | 10823 | shlibpath_var=LIBRARY_PATH |
d50284c4 | 10824 | shlibpath_overrides_runpath=no |
b0322a85 | 10825 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
d9898ee8 | 10826 | hardcode_into_libs=yes |
10827 | ;; | |
10828 | ||
10829 | hpux9* | hpux10* | hpux11*) | |
10830 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10831 | # link against other versions. | |
10832 | version_type=sunos | |
10833 | need_lib_prefix=no | |
10834 | need_version=no | |
10835 | case $host_cpu in | |
10836 | ia64*) | |
10837 | shrext_cmds='.so' | |
10838 | hardcode_into_libs=yes | |
10839 | dynamic_linker="$host_os dld.so" | |
10840 | shlibpath_var=LD_LIBRARY_PATH | |
10841 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
d50284c4 CE |
10842 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10843 | soname_spec='$libname$release$shared_ext$major' | |
10844 | if test 32 = "$HPUX_IA64_MODE"; then | |
d9898ee8 | 10845 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
d50284c4 | 10846 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
d9898ee8 | 10847 | else |
10848 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
d50284c4 | 10849 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
d9898ee8 | 10850 | fi |
d9898ee8 | 10851 | ;; |
8d138742 CE |
10852 | hppa*64*) |
10853 | shrext_cmds='.sl' | |
10854 | hardcode_into_libs=yes | |
10855 | dynamic_linker="$host_os dld.sl" | |
10856 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10857 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
d50284c4 CE |
10858 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10859 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
10860 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
10861 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10862 | ;; | |
10863 | *) | |
d9898ee8 | 10864 | shrext_cmds='.sl' |
10865 | dynamic_linker="$host_os dld.sl" | |
10866 | shlibpath_var=SHLIB_PATH | |
10867 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
d50284c4 CE |
10868 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10869 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 10870 | ;; |
10871 | esac | |
b0322a85 | 10872 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
d9898ee8 | 10873 | postinstall_cmds='chmod 555 $lib' |
b0322a85 CE |
10874 | # or fails outright, so override atomically: |
10875 | install_override_mode=555 | |
d9898ee8 | 10876 | ;; |
10877 | ||
ac40fd9e | 10878 | interix[3-9]*) |
b0322a85 | 10879 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10880 | need_lib_prefix=no |
10881 | need_version=no | |
d50284c4 CE |
10882 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10883 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 10884 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
10885 | shlibpath_var=LD_LIBRARY_PATH | |
10886 | shlibpath_overrides_runpath=no | |
10887 | hardcode_into_libs=yes | |
10888 | ;; | |
10889 | ||
10890 | irix5* | irix6* | nonstopux*) | |
10891 | case $host_os in | |
10892 | nonstopux*) version_type=nonstopux ;; | |
10893 | *) | |
d50284c4 | 10894 | if test yes = "$lt_cv_prog_gnu_ld"; then |
b0322a85 | 10895 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10896 | else |
10897 | version_type=irix | |
10898 | fi ;; | |
10899 | esac | |
10900 | need_lib_prefix=no | |
10901 | need_version=no | |
d50284c4 CE |
10902 | soname_spec='$libname$release$shared_ext$major' |
10903 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
d9898ee8 | 10904 | case $host_os in |
10905 | irix5* | nonstopux*) | |
10906 | libsuff= shlibsuff= | |
10907 | ;; | |
10908 | *) | |
10909 | case $LD in # libtool.m4 will add one of these switches to LD | |
10910 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10911 | libsuff= shlibsuff= libmagic=32-bit;; | |
10912 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10913 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10914 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10915 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10916 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10917 | esac | |
10918 | ;; | |
10919 | esac | |
10920 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10921 | shlibpath_overrides_runpath=no | |
d50284c4 CE |
10922 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
10923 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
d9898ee8 | 10924 | hardcode_into_libs=yes |
10925 | ;; | |
10926 | ||
10927 | # No shared lib support for Linux oldld, aout, or coff. | |
10928 | linux*oldld* | linux*aout* | linux*coff*) | |
10929 | dynamic_linker=no | |
10930 | ;; | |
10931 | ||
d50284c4 CE |
10932 | linux*android*) |
10933 | version_type=none # Android doesn't support versioned libraries. | |
10934 | need_lib_prefix=no | |
10935 | need_version=no | |
10936 | library_names_spec='$libname$release$shared_ext' | |
10937 | soname_spec='$libname$release$shared_ext' | |
10938 | finish_cmds= | |
10939 | shlibpath_var=LD_LIBRARY_PATH | |
10940 | shlibpath_overrides_runpath=yes | |
10941 | ||
10942 | # This implies no fast_install, which is unacceptable. | |
10943 | # Some rework will be needed to allow for fast_install | |
10944 | # before this can be enabled. | |
10945 | hardcode_into_libs=yes | |
10946 | ||
10947 | dynamic_linker='Android linker' | |
10948 | # Don't embed -rpath directories since the linker doesn't support them. | |
10949 | hardcode_libdir_flag_spec='-L$libdir' | |
10950 | ;; | |
10951 | ||
b0322a85 | 10952 | # This must be glibc/ELF. |
d50284c4 | 10953 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
b0322a85 | 10954 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10955 | need_lib_prefix=no |
10956 | need_version=no | |
d50284c4 CE |
10957 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10958 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 10959 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
10960 | shlibpath_var=LD_LIBRARY_PATH | |
10961 | shlibpath_overrides_runpath=no | |
b0322a85 | 10962 | |
8d138742 | 10963 | # Some binutils ld are patched to set DT_RUNPATH |
b0322a85 CE |
10964 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
10965 | $as_echo_n "(cached) " >&6 | |
10966 | else | |
10967 | lt_cv_shlibpath_overrides_runpath=no | |
10968 | save_LDFLAGS=$LDFLAGS | |
10969 | save_libdir=$libdir | |
10970 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10971 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 CE |
10973 | /* end confdefs.h. */ |
10974 | ||
10975 | int | |
10976 | main () | |
10977 | { | |
10978 | ||
10979 | ; | |
10980 | return 0; | |
10981 | } | |
10982 | _ACEOF | |
b0322a85 CE |
10983 | if ac_fn_c_try_link "$LINENO"; then : |
10984 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
10985 | lt_cv_shlibpath_overrides_runpath=yes | |
8d138742 | 10986 | fi |
b0322a85 CE |
10987 | fi |
10988 | rm -f core conftest.err conftest.$ac_objext \ | |
10989 | conftest$ac_exeext conftest.$ac_ext | |
10990 | LDFLAGS=$save_LDFLAGS | |
10991 | libdir=$save_libdir | |
8d138742 CE |
10992 | |
10993 | fi | |
10994 | ||
b0322a85 | 10995 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
8d138742 | 10996 | |
d9898ee8 | 10997 | # This implies no fast_install, which is unacceptable. |
10998 | # Some rework will be needed to allow for fast_install | |
10999 | # before this can be enabled. | |
11000 | hardcode_into_libs=yes | |
8d138742 CE |
11001 | |
11002 | # Add ABI-specific directories to the system library path. | |
11003 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | |
d9898ee8 | 11004 | |
d50284c4 CE |
11005 | # Ideally, we could use ldconfig to report *all* directores which are |
11006 | # searched for libraries, however this is still not possible. Aside from not | |
11007 | # being certain /sbin/ldconfig is available, command | |
11008 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
11009 | # even though it is searched at run-time. Try to do the best guess by | |
11010 | # appending ld.so.conf contents (and includes) to the search path. | |
d9898ee8 | 11011 | if test -f /etc/ld.so.conf; then |
b0322a85 | 11012 | 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 | 11013 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
d9898ee8 | 11014 | fi |
11015 | ||
11016 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
11017 | # powerpc, because MkLinux only supported shared libraries with the | |
11018 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11019 | # most powerpc-linux boxes support dynamic linking these days and | |
11020 | # people can always --disable-shared, the test was removed, and we | |
11021 | # assume the GNU/Linux dynamic linker is in use. | |
11022 | dynamic_linker='GNU/Linux ld.so' | |
11023 | ;; | |
11024 | ||
d9898ee8 | 11025 | netbsd*) |
11026 | version_type=sunos | |
11027 | need_lib_prefix=no | |
11028 | need_version=no | |
8d138742 | 11029 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
d50284c4 | 11030 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
d9898ee8 | 11031 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
11032 | dynamic_linker='NetBSD (a.out) ld.so' | |
11033 | else | |
d50284c4 CE |
11034 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11035 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11036 | dynamic_linker='NetBSD ld.elf_so' |
11037 | fi | |
11038 | shlibpath_var=LD_LIBRARY_PATH | |
11039 | shlibpath_overrides_runpath=yes | |
11040 | hardcode_into_libs=yes | |
11041 | ;; | |
11042 | ||
11043 | newsos6) | |
b0322a85 | 11044 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 | 11045 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
d9898ee8 | 11046 | shlibpath_var=LD_LIBRARY_PATH |
11047 | shlibpath_overrides_runpath=yes | |
11048 | ;; | |
11049 | ||
8d138742 CE |
11050 | *nto* | *qnx*) |
11051 | version_type=qnx | |
d9898ee8 | 11052 | need_lib_prefix=no |
11053 | need_version=no | |
d50284c4 CE |
11054 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11055 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11056 | shlibpath_var=LD_LIBRARY_PATH |
8d138742 CE |
11057 | shlibpath_overrides_runpath=no |
11058 | hardcode_into_libs=yes | |
11059 | dynamic_linker='ldqnx.so' | |
d9898ee8 | 11060 | ;; |
11061 | ||
d50284c4 | 11062 | openbsd* | bitrig*) |
d9898ee8 | 11063 | version_type=sunos |
d50284c4 | 11064 | sys_lib_dlsearch_path_spec=/usr/lib |
d9898ee8 | 11065 | need_lib_prefix=no |
d50284c4 CE |
11066 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
11067 | need_version=no | |
d9898ee8 | 11068 | else |
d50284c4 | 11069 | need_version=yes |
d9898ee8 | 11070 | fi |
d50284c4 CE |
11071 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
11072 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11073 | shlibpath_var=LD_LIBRARY_PATH | |
11074 | shlibpath_overrides_runpath=yes | |
d9898ee8 | 11075 | ;; |
11076 | ||
11077 | os2*) | |
11078 | libname_spec='$name' | |
d50284c4 CE |
11079 | version_type=windows |
11080 | shrext_cmds=.dll | |
11081 | need_version=no | |
d9898ee8 | 11082 | need_lib_prefix=no |
d50284c4 CE |
11083 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
11084 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
11085 | v=$($ECHO $release$versuffix | tr -d .-); | |
11086 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
11087 | $ECHO $n$v`$shared_ext' | |
11088 | library_names_spec='${libname}_dll.$libext' | |
d9898ee8 | 11089 | dynamic_linker='OS/2 ld.exe' |
d50284c4 CE |
11090 | shlibpath_var=BEGINLIBPATH |
11091 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11092 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11093 | postinstall_cmds='base_file=`basename \$file`~ | |
11094 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
11095 | dldir=$destdir/`dirname \$dlpath`~ | |
11096 | test -d \$dldir || mkdir -p \$dldir~ | |
11097 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11098 | chmod a+x \$dldir/$dlname~ | |
11099 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11100 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11101 | fi' | |
11102 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
11103 | dlpath=$dir/\$dldll~ | |
11104 | $RM \$dlpath' | |
d9898ee8 | 11105 | ;; |
11106 | ||
11107 | osf3* | osf4* | osf5*) | |
11108 | version_type=osf | |
11109 | need_lib_prefix=no | |
11110 | need_version=no | |
d50284c4 CE |
11111 | soname_spec='$libname$release$shared_ext$major' |
11112 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
d9898ee8 | 11113 | shlibpath_var=LD_LIBRARY_PATH |
11114 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
d50284c4 | 11115 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
d9898ee8 | 11116 | ;; |
11117 | ||
ac40fd9e | 11118 | rdos*) |
11119 | dynamic_linker=no | |
11120 | ;; | |
11121 | ||
d9898ee8 | 11122 | solaris*) |
b0322a85 | 11123 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 11124 | need_lib_prefix=no |
11125 | need_version=no | |
d50284c4 CE |
11126 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11127 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11128 | shlibpath_var=LD_LIBRARY_PATH |
11129 | shlibpath_overrides_runpath=yes | |
11130 | hardcode_into_libs=yes | |
11131 | # ldd complains unless libraries are executable | |
11132 | postinstall_cmds='chmod +x $lib' | |
11133 | ;; | |
11134 | ||
11135 | sunos4*) | |
11136 | version_type=sunos | |
d50284c4 | 11137 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
d9898ee8 | 11138 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
11139 | shlibpath_var=LD_LIBRARY_PATH | |
11140 | shlibpath_overrides_runpath=yes | |
d50284c4 | 11141 | if test yes = "$with_gnu_ld"; then |
d9898ee8 | 11142 | need_lib_prefix=no |
11143 | fi | |
11144 | need_version=yes | |
11145 | ;; | |
11146 | ||
11147 | sysv4 | sysv4.3*) | |
b0322a85 | 11148 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 CE |
11149 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11150 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11151 | shlibpath_var=LD_LIBRARY_PATH |
11152 | case $host_vendor in | |
11153 | sni) | |
11154 | shlibpath_overrides_runpath=no | |
11155 | need_lib_prefix=no | |
d9898ee8 | 11156 | runpath_var=LD_RUN_PATH |
11157 | ;; | |
11158 | siemens) | |
11159 | need_lib_prefix=no | |
11160 | ;; | |
11161 | motorola) | |
11162 | need_lib_prefix=no | |
11163 | need_version=no | |
11164 | shlibpath_overrides_runpath=no | |
11165 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11166 | ;; | |
11167 | esac | |
11168 | ;; | |
11169 | ||
11170 | sysv4*MP*) | |
d50284c4 | 11171 | if test -d /usr/nec; then |
b0322a85 | 11172 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 CE |
11173 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
11174 | soname_spec='$libname$shared_ext.$major' | |
d9898ee8 | 11175 | shlibpath_var=LD_LIBRARY_PATH |
11176 | fi | |
11177 | ;; | |
11178 | ||
11179 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
d50284c4 | 11180 | version_type=sco |
d9898ee8 | 11181 | need_lib_prefix=no |
11182 | need_version=no | |
d50284c4 CE |
11183 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
11184 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11185 | shlibpath_var=LD_LIBRARY_PATH |
8d138742 | 11186 | shlibpath_overrides_runpath=yes |
d9898ee8 | 11187 | hardcode_into_libs=yes |
d50284c4 | 11188 | if test yes = "$with_gnu_ld"; then |
d9898ee8 | 11189 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
d9898ee8 | 11190 | else |
11191 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
d9898ee8 | 11192 | case $host_os in |
11193 | sco3.2v5*) | |
11194 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11195 | ;; | |
11196 | esac | |
11197 | fi | |
11198 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11199 | ;; | |
11200 | ||
8d138742 CE |
11201 | tpf*) |
11202 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
b0322a85 | 11203 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 CE |
11204 | need_lib_prefix=no |
11205 | need_version=no | |
d50284c4 | 11206 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
8d138742 CE |
11207 | shlibpath_var=LD_LIBRARY_PATH |
11208 | shlibpath_overrides_runpath=no | |
11209 | hardcode_into_libs=yes | |
11210 | ;; | |
11211 | ||
d9898ee8 | 11212 | uts4*) |
b0322a85 | 11213 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 CE |
11214 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11215 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11216 | shlibpath_var=LD_LIBRARY_PATH |
11217 | ;; | |
11218 | ||
11219 | *) | |
11220 | dynamic_linker=no | |
11221 | ;; | |
11222 | esac | |
b0322a85 | 11223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
8d138742 | 11224 | $as_echo "$dynamic_linker" >&6; } |
d50284c4 | 11225 | test no = "$dynamic_linker" && can_build_shared=no |
d9898ee8 | 11226 | |
11227 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
d50284c4 | 11228 | if test yes = "$GCC"; then |
d9898ee8 | 11229 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
11230 | fi | |
11231 | ||
d50284c4 CE |
11232 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
11233 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
d9898ee8 | 11234 | fi |
d50284c4 CE |
11235 | |
11236 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
11237 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
d9898ee8 | 11238 | fi |
11239 | ||
d50284c4 CE |
11240 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
11241 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec | |
11242 | ||
11243 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code | |
11244 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
11245 | ||
11246 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool | |
11247 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH | |
11248 | ||
11249 | ||
11250 | ||
11251 | ||
11252 | ||
11253 | ||
d9898ee8 | 11254 | |
d9898ee8 | 11255 | |
d9898ee8 | 11256 | |
d9898ee8 | 11257 | |
d9898ee8 | 11258 | |
d9898ee8 | 11259 | |
d9898ee8 | 11260 | |
d9898ee8 | 11261 | |
d9898ee8 | 11262 | |
d9898ee8 | 11263 | |
d9898ee8 | 11264 | |
d9898ee8 | 11265 | |
d9898ee8 | 11266 | |
d9898ee8 | 11267 | |
d9898ee8 | 11268 | |
d9898ee8 | 11269 | |
d9898ee8 | 11270 | |
d9898ee8 | 11271 | |
d9898ee8 | 11272 | |
d9898ee8 | 11273 | |
d9898ee8 | 11274 | |
d9898ee8 | 11275 | |
d9898ee8 | 11276 | |
d9898ee8 | 11277 | |
d9898ee8 | 11278 | |
d9898ee8 | 11279 | |
d9898ee8 | 11280 | |
d9898ee8 | 11281 | |
d9898ee8 | 11282 | |
d9898ee8 | 11283 | |
d9898ee8 | 11284 | |
d9898ee8 | 11285 | |
d9898ee8 | 11286 | |
d9898ee8 | 11287 | |
d9898ee8 | 11288 | |
d9898ee8 | 11289 | |
d9898ee8 | 11290 | |
d9898ee8 | 11291 | |
d9898ee8 | 11292 | |
d9898ee8 | 11293 | |
d9898ee8 | 11294 | |
d9898ee8 | 11295 | |
d9898ee8 | 11296 | |
d9898ee8 | 11297 | |
d9898ee8 | 11298 | |
d9898ee8 | 11299 | |
d9898ee8 | 11300 | |
d9898ee8 | 11301 | |
d9898ee8 | 11302 | |
d9898ee8 | 11303 | |
d9898ee8 | 11304 | |
d9898ee8 | 11305 | |
d9898ee8 | 11306 | |
d9898ee8 | 11307 | |
d9898ee8 | 11308 | |
d9898ee8 | 11309 | |
d9898ee8 | 11310 | |
d9898ee8 | 11311 | |
d9898ee8 | 11312 | |
d9898ee8 | 11313 | |
d9898ee8 | 11314 | |
d9898ee8 | 11315 | |
d9898ee8 | 11316 | |
d9898ee8 | 11317 | |
d9898ee8 | 11318 | |
d9898ee8 | 11319 | |
d9898ee8 | 11320 | |
d9898ee8 | 11321 | |
d9898ee8 | 11322 | |
d9898ee8 | 11323 | |
d9898ee8 | 11324 | |
d9898ee8 | 11325 | |
d9898ee8 | 11326 | |
d9898ee8 | 11327 | |
d9898ee8 | 11328 | |
d9898ee8 | 11329 | |
d9898ee8 | 11330 | |
d9898ee8 | 11331 | |
d9898ee8 | 11332 | |
d9898ee8 | 11333 | |
d9898ee8 | 11334 | |
d9898ee8 | 11335 | |
d9898ee8 | 11336 | |
d9898ee8 | 11337 | |
d9898ee8 | 11338 | |
d9898ee8 | 11339 | |
b0322a85 CE |
11340 | |
11341 | ||
11342 | ||
11343 | ||
11344 | ||
11345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
8d138742 CE |
11346 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
11347 | hardcode_action= | |
11348 | if test -n "$hardcode_libdir_flag_spec" || | |
11349 | test -n "$runpath_var" || | |
d50284c4 | 11350 | test yes = "$hardcode_automatic"; then |
d9898ee8 | 11351 | |
8d138742 | 11352 | # We can hardcode non-existent directories. |
d50284c4 | 11353 | if test no != "$hardcode_direct" && |
8d138742 CE |
11354 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
11355 | # have to relink, otherwise we might link with an installed library | |
11356 | # when we should be linking with a yet-to-be-installed one | |
d50284c4 CE |
11357 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
11358 | test no != "$hardcode_minus_L"; then | |
8d138742 CE |
11359 | # Linking always hardcodes the temporary library directory. |
11360 | hardcode_action=relink | |
11361 | else | |
11362 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11363 | hardcode_action=immediate | |
11364 | fi | |
11365 | else | |
11366 | # We cannot hardcode anything, or else we can only hardcode existing | |
11367 | # directories. | |
11368 | hardcode_action=unsupported | |
11369 | fi | |
b0322a85 | 11370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
8d138742 | 11371 | $as_echo "$hardcode_action" >&6; } |
d9898ee8 | 11372 | |
d50284c4 CE |
11373 | if test relink = "$hardcode_action" || |
11374 | test yes = "$inherit_rpath"; then | |
8d138742 CE |
11375 | # Fast installation is not supported |
11376 | enable_fast_install=no | |
d50284c4 CE |
11377 | elif test yes = "$shlibpath_overrides_runpath" || |
11378 | test no = "$enable_shared"; then | |
8d138742 CE |
11379 | # Fast installation is not necessary |
11380 | enable_fast_install=needless | |
11381 | fi | |
d9898ee8 | 11382 | |
d9898ee8 | 11383 | |
d9898ee8 | 11384 | |
d9898ee8 | 11385 | |
d9898ee8 | 11386 | |
d9898ee8 | 11387 | |
d50284c4 | 11388 | if test yes != "$enable_dlopen"; then |
8d138742 CE |
11389 | enable_dlopen=unknown |
11390 | enable_dlopen_self=unknown | |
11391 | enable_dlopen_self_static=unknown | |
11392 | else | |
11393 | lt_cv_dlopen=no | |
11394 | lt_cv_dlopen_libs= | |
d9898ee8 | 11395 | |
8d138742 CE |
11396 | case $host_os in |
11397 | beos*) | |
d50284c4 | 11398 | lt_cv_dlopen=load_add_on |
8d138742 CE |
11399 | lt_cv_dlopen_libs= |
11400 | lt_cv_dlopen_self=yes | |
11401 | ;; | |
d9898ee8 | 11402 | |
8d138742 | 11403 | mingw* | pw32* | cegcc*) |
d50284c4 | 11404 | lt_cv_dlopen=LoadLibrary |
8d138742 CE |
11405 | lt_cv_dlopen_libs= |
11406 | ;; | |
d9898ee8 | 11407 | |
8d138742 | 11408 | cygwin*) |
d50284c4 | 11409 | lt_cv_dlopen=dlopen |
b0322a85 CE |
11410 | lt_cv_dlopen_libs= |
11411 | ;; | |
11412 | ||
11413 | darwin*) | |
d50284c4 | 11414 | # if libdl is installed we need to link against it |
b0322a85 CE |
11415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11416 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11417 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
8d138742 CE |
11418 | $as_echo_n "(cached) " >&6 |
11419 | else | |
11420 | ac_check_lib_save_LIBS=$LIBS | |
b0322a85 CE |
11421 | LIBS="-ldl $LIBS" |
11422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 11423 | /* end confdefs.h. */ |
d9898ee8 | 11424 | |
8d138742 CE |
11425 | /* Override any GCC internal prototype to avoid an error. |
11426 | Use char because int might match the return type of a GCC | |
11427 | builtin and then its argument prototype would still apply. */ | |
11428 | #ifdef __cplusplus | |
11429 | extern "C" | |
11430 | #endif | |
b0322a85 | 11431 | char dlopen (); |
8d138742 CE |
11432 | int |
11433 | main () | |
11434 | { | |
b0322a85 | 11435 | return dlopen (); |
8d138742 CE |
11436 | ; |
11437 | return 0; | |
11438 | } | |
11439 | _ACEOF | |
b0322a85 CE |
11440 | if ac_fn_c_try_link "$LINENO"; then : |
11441 | ac_cv_lib_dl_dlopen=yes | |
8d138742 | 11442 | else |
b0322a85 | 11443 | ac_cv_lib_dl_dlopen=no |
8d138742 | 11444 | fi |
b0322a85 CE |
11445 | rm -f core conftest.err conftest.$ac_objext \ |
11446 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11447 | LIBS=$ac_check_lib_save_LIBS |
11448 | fi | |
b0322a85 CE |
11449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11450 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11451 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
d50284c4 | 11452 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
8d138742 | 11453 | else |
d9898ee8 | 11454 | |
d50284c4 | 11455 | lt_cv_dlopen=dyld |
b0322a85 CE |
11456 | lt_cv_dlopen_libs= |
11457 | lt_cv_dlopen_self=yes | |
d9898ee8 | 11458 | |
b0322a85 CE |
11459 | fi |
11460 | ||
11461 | ;; | |
d9898ee8 | 11462 | |
d50284c4 CE |
11463 | tpf*) |
11464 | # Don't try to run any link tests for TPF. We know it's impossible | |
11465 | # because TPF is a cross-compiler, and we know how we open DSOs. | |
11466 | lt_cv_dlopen=dlopen | |
11467 | lt_cv_dlopen_libs= | |
11468 | lt_cv_dlopen_self=no | |
11469 | ;; | |
11470 | ||
b0322a85 CE |
11471 | *) |
11472 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
11473 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
d50284c4 | 11474 | lt_cv_dlopen=shl_load |
b0322a85 CE |
11475 | else |
11476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
11477 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11478 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
11479 | $as_echo_n "(cached) " >&6 | |
11480 | else | |
11481 | ac_check_lib_save_LIBS=$LIBS | |
11482 | LIBS="-ldld $LIBS" | |
11483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11484 | /* end confdefs.h. */ | |
d9898ee8 | 11485 | |
8d138742 CE |
11486 | /* Override any GCC internal prototype to avoid an error. |
11487 | Use char because int might match the return type of a GCC | |
11488 | builtin and then its argument prototype would still apply. */ | |
11489 | #ifdef __cplusplus | |
11490 | extern "C" | |
11491 | #endif | |
b0322a85 | 11492 | char shl_load (); |
8d138742 CE |
11493 | int |
11494 | main () | |
11495 | { | |
b0322a85 | 11496 | return shl_load (); |
8d138742 CE |
11497 | ; |
11498 | return 0; | |
11499 | } | |
11500 | _ACEOF | |
b0322a85 CE |
11501 | if ac_fn_c_try_link "$LINENO"; then : |
11502 | ac_cv_lib_dld_shl_load=yes | |
8d138742 | 11503 | else |
b0322a85 | 11504 | ac_cv_lib_dld_shl_load=no |
8d138742 | 11505 | fi |
b0322a85 CE |
11506 | rm -f core conftest.err conftest.$ac_objext \ |
11507 | conftest$ac_exeext conftest.$ac_ext | |
11508 | LIBS=$ac_check_lib_save_LIBS | |
8d138742 | 11509 | fi |
b0322a85 CE |
11510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
11511 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11512 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
d50284c4 | 11513 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
b0322a85 CE |
11514 | else |
11515 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
11516 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
d50284c4 | 11517 | lt_cv_dlopen=dlopen |
8d138742 | 11518 | else |
b0322a85 | 11519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
8d138742 | 11520 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
b0322a85 | 11521 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
8d138742 CE |
11522 | $as_echo_n "(cached) " >&6 |
11523 | else | |
11524 | ac_check_lib_save_LIBS=$LIBS | |
11525 | LIBS="-ldl $LIBS" | |
b0322a85 | 11526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 11527 | /* end confdefs.h. */ |
d9898ee8 | 11528 | |
8d138742 CE |
11529 | /* Override any GCC internal prototype to avoid an error. |
11530 | Use char because int might match the return type of a GCC | |
11531 | builtin and then its argument prototype would still apply. */ | |
11532 | #ifdef __cplusplus | |
11533 | extern "C" | |
11534 | #endif | |
11535 | char dlopen (); | |
11536 | int | |
11537 | main () | |
11538 | { | |
11539 | return dlopen (); | |
11540 | ; | |
11541 | return 0; | |
11542 | } | |
11543 | _ACEOF | |
b0322a85 | 11544 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
11545 | ac_cv_lib_dl_dlopen=yes |
11546 | else | |
b0322a85 | 11547 | ac_cv_lib_dl_dlopen=no |
8d138742 | 11548 | fi |
b0322a85 CE |
11549 | rm -f core conftest.err conftest.$ac_objext \ |
11550 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11551 | LIBS=$ac_check_lib_save_LIBS |
11552 | fi | |
b0322a85 | 11553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
8d138742 | 11554 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
b0322a85 | 11555 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
d50284c4 | 11556 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
8d138742 | 11557 | else |
b0322a85 | 11558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
8d138742 | 11559 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
b0322a85 | 11560 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
8d138742 CE |
11561 | $as_echo_n "(cached) " >&6 |
11562 | else | |
11563 | ac_check_lib_save_LIBS=$LIBS | |
11564 | LIBS="-lsvld $LIBS" | |
b0322a85 | 11565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 11566 | /* end confdefs.h. */ |
d9898ee8 | 11567 | |
8d138742 CE |
11568 | /* Override any GCC internal prototype to avoid an error. |
11569 | Use char because int might match the return type of a GCC | |
11570 | builtin and then its argument prototype would still apply. */ | |
11571 | #ifdef __cplusplus | |
11572 | extern "C" | |
11573 | #endif | |
11574 | char dlopen (); | |
11575 | int | |
11576 | main () | |
11577 | { | |
11578 | return dlopen (); | |
11579 | ; | |
11580 | return 0; | |
11581 | } | |
11582 | _ACEOF | |
b0322a85 | 11583 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
11584 | ac_cv_lib_svld_dlopen=yes |
11585 | else | |
b0322a85 | 11586 | ac_cv_lib_svld_dlopen=no |
8d138742 | 11587 | fi |
b0322a85 CE |
11588 | rm -f core conftest.err conftest.$ac_objext \ |
11589 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11590 | LIBS=$ac_check_lib_save_LIBS |
11591 | fi | |
b0322a85 | 11592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
8d138742 | 11593 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
b0322a85 | 11594 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
d50284c4 | 11595 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
8d138742 | 11596 | else |
b0322a85 | 11597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
8d138742 | 11598 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
b0322a85 | 11599 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
8d138742 CE |
11600 | $as_echo_n "(cached) " >&6 |
11601 | else | |
11602 | ac_check_lib_save_LIBS=$LIBS | |
11603 | LIBS="-ldld $LIBS" | |
b0322a85 | 11604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 11605 | /* end confdefs.h. */ |
d9898ee8 | 11606 | |
8d138742 CE |
11607 | /* Override any GCC internal prototype to avoid an error. |
11608 | Use char because int might match the return type of a GCC | |
11609 | builtin and then its argument prototype would still apply. */ | |
11610 | #ifdef __cplusplus | |
11611 | extern "C" | |
11612 | #endif | |
11613 | char dld_link (); | |
11614 | int | |
11615 | main () | |
11616 | { | |
11617 | return dld_link (); | |
11618 | ; | |
11619 | return 0; | |
11620 | } | |
11621 | _ACEOF | |
b0322a85 | 11622 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
11623 | ac_cv_lib_dld_dld_link=yes |
11624 | else | |
b0322a85 | 11625 | ac_cv_lib_dld_dld_link=no |
8d138742 | 11626 | fi |
b0322a85 CE |
11627 | rm -f core conftest.err conftest.$ac_objext \ |
11628 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11629 | LIBS=$ac_check_lib_save_LIBS |
11630 | fi | |
b0322a85 | 11631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
8d138742 | 11632 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
b0322a85 | 11633 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
d50284c4 | 11634 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
8d138742 | 11635 | fi |
d9898ee8 | 11636 | |
d9898ee8 | 11637 | |
8d138742 | 11638 | fi |
d9898ee8 | 11639 | |
d9898ee8 | 11640 | |
8d138742 | 11641 | fi |
d9898ee8 | 11642 | |
ac40fd9e | 11643 | |
8d138742 | 11644 | fi |
d9898ee8 | 11645 | |
d9898ee8 | 11646 | |
8d138742 | 11647 | fi |
d9898ee8 | 11648 | |
d9898ee8 | 11649 | |
8d138742 | 11650 | fi |
d9898ee8 | 11651 | |
8d138742 CE |
11652 | ;; |
11653 | esac | |
d9898ee8 | 11654 | |
d50284c4 | 11655 | if test no = "$lt_cv_dlopen"; then |
8d138742 | 11656 | enable_dlopen=no |
d50284c4 CE |
11657 | else |
11658 | enable_dlopen=yes | |
d9898ee8 | 11659 | fi |
11660 | ||
8d138742 CE |
11661 | case $lt_cv_dlopen in |
11662 | dlopen) | |
d50284c4 CE |
11663 | save_CPPFLAGS=$CPPFLAGS |
11664 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
d9898ee8 | 11665 | |
d50284c4 | 11666 | save_LDFLAGS=$LDFLAGS |
8d138742 | 11667 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
d9898ee8 | 11668 | |
d50284c4 | 11669 | save_LIBS=$LIBS |
8d138742 | 11670 | LIBS="$lt_cv_dlopen_libs $LIBS" |
d9898ee8 | 11671 | |
b0322a85 | 11672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
8d138742 | 11673 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
b0322a85 | 11674 | if ${lt_cv_dlopen_self+:} false; then : |
8d138742 | 11675 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 11676 | else |
d50284c4 | 11677 | if test yes = "$cross_compiling"; then : |
8d138742 | 11678 | lt_cv_dlopen_self=cross |
d9898ee8 | 11679 | else |
8d138742 CE |
11680 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11681 | lt_status=$lt_dlunknown | |
11682 | cat > conftest.$ac_ext <<_LT_EOF | |
b0322a85 | 11683 | #line $LINENO "configure" |
8d138742 | 11684 | #include "confdefs.h" |
d9898ee8 | 11685 | |
8d138742 CE |
11686 | #if HAVE_DLFCN_H |
11687 | #include <dlfcn.h> | |
11688 | #endif | |
d9898ee8 | 11689 | |
8d138742 | 11690 | #include <stdio.h> |
d9898ee8 | 11691 | |
8d138742 CE |
11692 | #ifdef RTLD_GLOBAL |
11693 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11694 | #else | |
11695 | # ifdef DL_GLOBAL | |
11696 | # define LT_DLGLOBAL DL_GLOBAL | |
11697 | # else | |
11698 | # define LT_DLGLOBAL 0 | |
11699 | # endif | |
11700 | #endif | |
d9898ee8 | 11701 | |
8d138742 CE |
11702 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11703 | find out it does not work in some platform. */ | |
11704 | #ifndef LT_DLLAZY_OR_NOW | |
11705 | # ifdef RTLD_LAZY | |
11706 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11707 | # else | |
11708 | # ifdef DL_LAZY | |
11709 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11710 | # else | |
11711 | # ifdef RTLD_NOW | |
11712 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11713 | # else | |
11714 | # ifdef DL_NOW | |
11715 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11716 | # else | |
11717 | # define LT_DLLAZY_OR_NOW 0 | |
11718 | # endif | |
11719 | # endif | |
11720 | # endif | |
11721 | # endif | |
11722 | #endif | |
d9898ee8 | 11723 | |
d50284c4 | 11724 | /* When -fvisibility=hidden is used, assume the code has been annotated |
b0322a85 | 11725 | correspondingly for the symbols needed. */ |
d50284c4 | 11726 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
b0322a85 CE |
11727 | int fnord () __attribute__((visibility("default"))); |
11728 | #endif | |
11729 | ||
11730 | int fnord () { return 42; } | |
8d138742 CE |
11731 | int main () |
11732 | { | |
11733 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11734 | int status = $lt_dlunknown; | |
11735 | ||
11736 | if (self) | |
11737 | { | |
11738 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
b0322a85 CE |
11739 | else |
11740 | { | |
11741 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11742 | else puts (dlerror ()); | |
11743 | } | |
8d138742 CE |
11744 | /* dlclose (self); */ |
11745 | } | |
11746 | else | |
11747 | puts (dlerror ()); | |
d9898ee8 | 11748 | |
8d138742 CE |
11749 | return status; |
11750 | } | |
11751 | _LT_EOF | |
b0322a85 | 11752 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
8d138742 CE |
11753 | (eval $ac_link) 2>&5 |
11754 | ac_status=$? | |
b0322a85 | 11755 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
d50284c4 | 11756 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
8d138742 CE |
11757 | (./conftest; exit; ) >&5 2>/dev/null |
11758 | lt_status=$? | |
11759 | case x$lt_status in | |
11760 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11761 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11762 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11763 | esac | |
11764 | else : | |
11765 | # compilation failed | |
11766 | lt_cv_dlopen_self=no | |
11767 | fi | |
d9898ee8 | 11768 | fi |
8d138742 | 11769 | rm -fr conftest* |
d9898ee8 | 11770 | |
11771 | ||
d9898ee8 | 11772 | fi |
b0322a85 | 11773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
8d138742 | 11774 | $as_echo "$lt_cv_dlopen_self" >&6; } |
d9898ee8 | 11775 | |
d50284c4 | 11776 | if test yes = "$lt_cv_dlopen_self"; then |
8d138742 | 11777 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
b0322a85 | 11778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
8d138742 | 11779 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
b0322a85 | 11780 | if ${lt_cv_dlopen_self_static+:} false; then : |
8d138742 CE |
11781 | $as_echo_n "(cached) " >&6 |
11782 | else | |
d50284c4 | 11783 | if test yes = "$cross_compiling"; then : |
8d138742 CE |
11784 | lt_cv_dlopen_self_static=cross |
11785 | else | |
11786 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11787 | lt_status=$lt_dlunknown | |
11788 | cat > conftest.$ac_ext <<_LT_EOF | |
b0322a85 | 11789 | #line $LINENO "configure" |
8d138742 | 11790 | #include "confdefs.h" |
d9898ee8 | 11791 | |
8d138742 CE |
11792 | #if HAVE_DLFCN_H |
11793 | #include <dlfcn.h> | |
11794 | #endif | |
d9898ee8 | 11795 | |
8d138742 | 11796 | #include <stdio.h> |
d9898ee8 | 11797 | |
8d138742 CE |
11798 | #ifdef RTLD_GLOBAL |
11799 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11800 | #else | |
11801 | # ifdef DL_GLOBAL | |
11802 | # define LT_DLGLOBAL DL_GLOBAL | |
11803 | # else | |
11804 | # define LT_DLGLOBAL 0 | |
11805 | # endif | |
11806 | #endif | |
d9898ee8 | 11807 | |
8d138742 CE |
11808 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11809 | find out it does not work in some platform. */ | |
11810 | #ifndef LT_DLLAZY_OR_NOW | |
11811 | # ifdef RTLD_LAZY | |
11812 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11813 | # else | |
11814 | # ifdef DL_LAZY | |
11815 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11816 | # else | |
11817 | # ifdef RTLD_NOW | |
11818 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11819 | # else | |
11820 | # ifdef DL_NOW | |
11821 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11822 | # else | |
11823 | # define LT_DLLAZY_OR_NOW 0 | |
11824 | # endif | |
11825 | # endif | |
11826 | # endif | |
11827 | # endif | |
11828 | #endif | |
11829 | ||
d50284c4 | 11830 | /* When -fvisibility=hidden is used, assume the code has been annotated |
b0322a85 | 11831 | correspondingly for the symbols needed. */ |
d50284c4 | 11832 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
b0322a85 CE |
11833 | int fnord () __attribute__((visibility("default"))); |
11834 | #endif | |
11835 | ||
11836 | int fnord () { return 42; } | |
8d138742 CE |
11837 | int main () |
11838 | { | |
11839 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11840 | int status = $lt_dlunknown; | |
11841 | ||
11842 | if (self) | |
11843 | { | |
11844 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
b0322a85 CE |
11845 | else |
11846 | { | |
11847 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11848 | else puts (dlerror ()); | |
11849 | } | |
8d138742 CE |
11850 | /* dlclose (self); */ |
11851 | } | |
11852 | else | |
11853 | puts (dlerror ()); | |
11854 | ||
11855 | return status; | |
11856 | } | |
11857 | _LT_EOF | |
b0322a85 | 11858 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
8d138742 CE |
11859 | (eval $ac_link) 2>&5 |
11860 | ac_status=$? | |
b0322a85 | 11861 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
d50284c4 | 11862 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
8d138742 CE |
11863 | (./conftest; exit; ) >&5 2>/dev/null |
11864 | lt_status=$? | |
11865 | case x$lt_status in | |
11866 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11867 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11868 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
d9898ee8 | 11869 | esac |
8d138742 CE |
11870 | else : |
11871 | # compilation failed | |
11872 | lt_cv_dlopen_self_static=no | |
11873 | fi | |
11874 | fi | |
11875 | rm -fr conftest* | |
d9898ee8 | 11876 | |
d9898ee8 | 11877 | |
8d138742 | 11878 | fi |
b0322a85 | 11879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
8d138742 CE |
11880 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
11881 | fi | |
d9898ee8 | 11882 | |
d50284c4 CE |
11883 | CPPFLAGS=$save_CPPFLAGS |
11884 | LDFLAGS=$save_LDFLAGS | |
11885 | LIBS=$save_LIBS | |
8d138742 CE |
11886 | ;; |
11887 | esac | |
d9898ee8 | 11888 | |
8d138742 CE |
11889 | case $lt_cv_dlopen_self in |
11890 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11891 | *) enable_dlopen_self=unknown ;; | |
11892 | esac | |
d9898ee8 | 11893 | |
8d138742 CE |
11894 | case $lt_cv_dlopen_self_static in |
11895 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11896 | *) enable_dlopen_self_static=unknown ;; | |
11897 | esac | |
11898 | fi | |
d9898ee8 | 11899 | |
d9898ee8 | 11900 | |
d9898ee8 | 11901 | |
d9898ee8 | 11902 | |
d9898ee8 | 11903 | |
d9898ee8 | 11904 | |
d9898ee8 | 11905 | |
d9898ee8 | 11906 | |
d9898ee8 | 11907 | |
d9898ee8 | 11908 | |
d9898ee8 | 11909 | |
d9898ee8 | 11910 | |
d9898ee8 | 11911 | |
d9898ee8 | 11912 | |
8d138742 CE |
11913 | |
11914 | ||
11915 | ||
11916 | striplib= | |
11917 | old_striplib= | |
b0322a85 | 11918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
8d138742 CE |
11919 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
11920 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11921 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11922 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
b0322a85 | 11923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 CE |
11924 | $as_echo "yes" >&6; } |
11925 | else | |
11926 | # FIXME - insert some real tests, host_os isn't really good enough | |
11927 | case $host_os in | |
11928 | darwin*) | |
d50284c4 | 11929 | if test -n "$STRIP"; then |
8d138742 CE |
11930 | striplib="$STRIP -x" |
11931 | old_striplib="$STRIP -S" | |
b0322a85 | 11932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 CE |
11933 | $as_echo "yes" >&6; } |
11934 | else | |
b0322a85 | 11935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 11936 | $as_echo "no" >&6; } |
d9898ee8 | 11937 | fi |
8d138742 CE |
11938 | ;; |
11939 | *) | |
b0322a85 | 11940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
11941 | $as_echo "no" >&6; } |
11942 | ;; | |
11943 | esac | |
11944 | fi | |
d9898ee8 | 11945 | |
d9898ee8 | 11946 | |
d9898ee8 | 11947 | |
d9898ee8 | 11948 | |
d9898ee8 | 11949 | |
d9898ee8 | 11950 | |
d9898ee8 | 11951 | |
d9898ee8 | 11952 | |
d9898ee8 | 11953 | |
d9898ee8 | 11954 | |
dd184caf | 11955 | |
dd184caf | 11956 | |
d50284c4 | 11957 | # Report what library types will actually be built |
b0322a85 | 11958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
8d138742 | 11959 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
b0322a85 | 11960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
8d138742 | 11961 | $as_echo "$can_build_shared" >&6; } |
d9898ee8 | 11962 | |
b0322a85 | 11963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
8d138742 | 11964 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
d50284c4 | 11965 | test no = "$can_build_shared" && enable_shared=no |
8d138742 CE |
11966 | |
11967 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11968 | # are all built from PIC. | |
11969 | case $host_os in | |
11970 | aix3*) | |
d50284c4 | 11971 | test yes = "$enable_shared" && enable_static=no |
8d138742 CE |
11972 | if test -n "$RANLIB"; then |
11973 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11974 | postinstall_cmds='$RANLIB $lib' | |
11975 | fi | |
11976 | ;; | |
11977 | ||
11978 | aix[4-9]*) | |
d50284c4 CE |
11979 | if test ia64 != "$host_cpu"; then |
11980 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in | |
11981 | yes,aix,yes) ;; # shared object as lib.so file only | |
11982 | yes,svr4,*) ;; # shared object as lib.so archive member only | |
11983 | yes,*) enable_static=no ;; # shared object in lib.a archive as well | |
11984 | esac | |
8d138742 CE |
11985 | fi |
11986 | ;; | |
11987 | esac | |
b0322a85 | 11988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
8d138742 CE |
11989 | $as_echo "$enable_shared" >&6; } |
11990 | ||
b0322a85 | 11991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
8d138742 CE |
11992 | $as_echo_n "checking whether to build static libraries... " >&6; } |
11993 | # Make sure either enable_shared or enable_static is yes. | |
d50284c4 | 11994 | test yes = "$enable_shared" || enable_static=yes |
b0322a85 | 11995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
8d138742 | 11996 | $as_echo "$enable_static" >&6; } |
d9898ee8 | 11997 | |
d9898ee8 | 11998 | |
d9898ee8 | 11999 | |
dd184caf | 12000 | |
d9898ee8 | 12001 | fi |
8d138742 CE |
12002 | ac_ext=c |
12003 | ac_cpp='$CPP $CPPFLAGS' | |
12004 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12005 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12006 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
dd184caf | 12007 | |
d50284c4 | 12008 | CC=$lt_save_CC |
d9898ee8 | 12009 | |
d9898ee8 | 12010 | |
d9898ee8 | 12011 | |
d9898ee8 | 12012 | |
d9898ee8 | 12013 | |
d9898ee8 | 12014 | |
d9898ee8 | 12015 | |
d9898ee8 | 12016 | |
d9898ee8 | 12017 | |
d9898ee8 | 12018 | |
d9898ee8 | 12019 | |
d9898ee8 | 12020 | |
d9898ee8 | 12021 | |
b0322a85 CE |
12022 | |
12023 | ||
8d138742 | 12024 | ac_config_commands="$ac_config_commands libtool" |
d9898ee8 | 12025 | |
d9898ee8 | 12026 | |
d9898ee8 | 12027 | |
d9898ee8 | 12028 | |
8d138742 | 12029 | # Only expand once: |
d9898ee8 | 12030 | |
d9898ee8 | 12031 | |
b0322a85 CE |
12032 | # Check whether --enable-largefile was given. |
12033 | if test "${enable_largefile+set}" = set; then : | |
12034 | enableval=$enable_largefile; | |
12035 | fi | |
12036 | ||
12037 | if test "$enable_largefile" != no; then | |
12038 | ||
12039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
12040 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
12041 | if ${ac_cv_sys_largefile_CC+:} false; then : | |
12042 | $as_echo_n "(cached) " >&6 | |
12043 | else | |
12044 | ac_cv_sys_largefile_CC=no | |
12045 | if test "$GCC" != yes; then | |
12046 | ac_save_CC=$CC | |
12047 | while :; do | |
12048 | # IRIX 6.2 and later do not support large files by default, | |
12049 | # so use the C compiler's -n32 option if that helps. | |
12050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12051 | /* end confdefs.h. */ | |
12052 | #include <sys/types.h> | |
12053 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12054 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12055 | since some C++ compilers masquerading as C compilers | |
12056 | incorrectly reject 9223372036854775807. */ | |
12057 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12058 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12059 | && LARGE_OFF_T % 2147483647 == 1) | |
12060 | ? 1 : -1]; | |
12061 | int | |
12062 | main () | |
12063 | { | |
12064 | ||
12065 | ; | |
12066 | return 0; | |
12067 | } | |
12068 | _ACEOF | |
12069 | if ac_fn_c_try_compile "$LINENO"; then : | |
12070 | break | |
12071 | fi | |
12072 | rm -f core conftest.err conftest.$ac_objext | |
12073 | CC="$CC -n32" | |
12074 | if ac_fn_c_try_compile "$LINENO"; then : | |
12075 | ac_cv_sys_largefile_CC=' -n32'; break | |
12076 | fi | |
12077 | rm -f core conftest.err conftest.$ac_objext | |
12078 | break | |
12079 | done | |
12080 | CC=$ac_save_CC | |
12081 | rm -f conftest.$ac_ext | |
12082 | fi | |
12083 | fi | |
12084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
12085 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
12086 | if test "$ac_cv_sys_largefile_CC" != no; then | |
12087 | CC=$CC$ac_cv_sys_largefile_CC | |
12088 | fi | |
12089 | ||
12090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
12091 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
12092 | if ${ac_cv_sys_file_offset_bits+:} false; then : | |
12093 | $as_echo_n "(cached) " >&6 | |
12094 | else | |
12095 | while :; do | |
12096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12097 | /* end confdefs.h. */ | |
12098 | #include <sys/types.h> | |
12099 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12100 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12101 | since some C++ compilers masquerading as C compilers | |
12102 | incorrectly reject 9223372036854775807. */ | |
12103 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12104 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12105 | && LARGE_OFF_T % 2147483647 == 1) | |
12106 | ? 1 : -1]; | |
12107 | int | |
12108 | main () | |
12109 | { | |
12110 | ||
12111 | ; | |
12112 | return 0; | |
12113 | } | |
12114 | _ACEOF | |
12115 | if ac_fn_c_try_compile "$LINENO"; then : | |
12116 | ac_cv_sys_file_offset_bits=no; break | |
12117 | fi | |
12118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12120 | /* end confdefs.h. */ | |
12121 | #define _FILE_OFFSET_BITS 64 | |
12122 | #include <sys/types.h> | |
12123 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12124 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12125 | since some C++ compilers masquerading as C compilers | |
12126 | incorrectly reject 9223372036854775807. */ | |
12127 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12128 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12129 | && LARGE_OFF_T % 2147483647 == 1) | |
12130 | ? 1 : -1]; | |
12131 | int | |
12132 | main () | |
12133 | { | |
12134 | ||
12135 | ; | |
12136 | return 0; | |
12137 | } | |
12138 | _ACEOF | |
12139 | if ac_fn_c_try_compile "$LINENO"; then : | |
12140 | ac_cv_sys_file_offset_bits=64; break | |
12141 | fi | |
12142 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12143 | ac_cv_sys_file_offset_bits=unknown | |
12144 | break | |
12145 | done | |
12146 | fi | |
12147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
12148 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
12149 | case $ac_cv_sys_file_offset_bits in #( | |
12150 | no | unknown) ;; | |
12151 | *) | |
12152 | cat >>confdefs.h <<_ACEOF | |
12153 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
12154 | _ACEOF | |
12155 | ;; | |
12156 | esac | |
12157 | rm -rf conftest* | |
12158 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
12159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
12160 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
12161 | if ${ac_cv_sys_large_files+:} false; then : | |
12162 | $as_echo_n "(cached) " >&6 | |
12163 | else | |
12164 | while :; do | |
12165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12166 | /* end confdefs.h. */ | |
12167 | #include <sys/types.h> | |
12168 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12169 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12170 | since some C++ compilers masquerading as C compilers | |
12171 | incorrectly reject 9223372036854775807. */ | |
12172 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12173 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12174 | && LARGE_OFF_T % 2147483647 == 1) | |
12175 | ? 1 : -1]; | |
12176 | int | |
12177 | main () | |
12178 | { | |
12179 | ||
12180 | ; | |
12181 | return 0; | |
12182 | } | |
12183 | _ACEOF | |
12184 | if ac_fn_c_try_compile "$LINENO"; then : | |
12185 | ac_cv_sys_large_files=no; break | |
12186 | fi | |
12187 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12189 | /* end confdefs.h. */ | |
12190 | #define _LARGE_FILES 1 | |
12191 | #include <sys/types.h> | |
12192 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12193 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12194 | since some C++ compilers masquerading as C compilers | |
12195 | incorrectly reject 9223372036854775807. */ | |
12196 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12197 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12198 | && LARGE_OFF_T % 2147483647 == 1) | |
12199 | ? 1 : -1]; | |
12200 | int | |
12201 | main () | |
12202 | { | |
12203 | ||
12204 | ; | |
12205 | return 0; | |
12206 | } | |
12207 | _ACEOF | |
12208 | if ac_fn_c_try_compile "$LINENO"; then : | |
12209 | ac_cv_sys_large_files=1; break | |
12210 | fi | |
12211 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12212 | ac_cv_sys_large_files=unknown | |
12213 | break | |
12214 | done | |
12215 | fi | |
12216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
12217 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
12218 | case $ac_cv_sys_large_files in #( | |
12219 | no | unknown) ;; | |
12220 | *) | |
12221 | cat >>confdefs.h <<_ACEOF | |
12222 | #define _LARGE_FILES $ac_cv_sys_large_files | |
12223 | _ACEOF | |
12224 | ;; | |
12225 | esac | |
12226 | rm -rf conftest* | |
12227 | fi | |
12228 | ||
12229 | ||
12230 | fi | |
12231 | ||
d9898ee8 | 12232 | |
8d138742 CE |
12233 | if test x$GCC = xyes |
12234 | then | |
12235 | CFLAGS="-Wall $CFLAGS" | |
12236 | fi | |
12237 | if test x$GXX = xyes | |
12238 | then | |
12239 | CXXFLAGS="-Wall $CXXFLAGS" | |
12240 | fi | |
d9898ee8 | 12241 | |
b0322a85 CE |
12242 | CFLAGS="-I$srcdir/.. -I.. -I$srcdir/../.. -I../.. $CFLAGS" |
12243 | CXXFLAGS="-I$srcdir/.. -I.. -I$srcdir/../.. -I../.. $CXXFLAGS" | |
d9898ee8 | 12244 | |
d9898ee8 | 12245 | |
b0322a85 | 12246 | . ../../dbobj.config |
8d138742 CE |
12247 | if test "$dblibrary" != "" |
12248 | then | |
b0322a85 | 12249 | dblibrary="../../$dblibrary" |
8d138742 | 12250 | fi |
d9898ee8 | 12251 | |
d9898ee8 | 12252 | |
8d138742 CE |
12253 | makedatprog_target="" |
12254 | if test "$dblibrary" != "" | |
12255 | then | |
12256 | makedatprog_target=makedatprog | |
12257 | fi | |
d9898ee8 | 12258 | |
d9898ee8 | 12259 | |
d9898ee8 | 12260 | |
b0322a85 | 12261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
8d138742 | 12262 | $as_echo_n "checking for ANSI C header files... " >&6; } |
b0322a85 | 12263 | if ${ac_cv_header_stdc+:} false; then : |
8d138742 CE |
12264 | $as_echo_n "(cached) " >&6 |
12265 | else | |
b0322a85 | 12266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
12267 | /* end confdefs.h. */ |
12268 | #include <stdlib.h> | |
12269 | #include <stdarg.h> | |
12270 | #include <string.h> | |
12271 | #include <float.h> | |
d9898ee8 | 12272 | |
8d138742 CE |
12273 | int |
12274 | main () | |
b0322a85 CE |
12275 | { |
12276 | ||
12277 | ; | |
12278 | return 0; | |
12279 | } | |
12280 | _ACEOF | |
12281 | if ac_fn_c_try_compile "$LINENO"; then : | |
8d138742 CE |
12282 | ac_cv_header_stdc=yes |
12283 | else | |
b0322a85 | 12284 | ac_cv_header_stdc=no |
8d138742 | 12285 | fi |
8d138742 | 12286 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 12287 | |
8d138742 CE |
12288 | if test $ac_cv_header_stdc = yes; then |
12289 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
b0322a85 | 12290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
12291 | /* end confdefs.h. */ |
12292 | #include <string.h> | |
d9898ee8 | 12293 | |
8d138742 CE |
12294 | _ACEOF |
12295 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
12296 | $EGREP "memchr" >/dev/null 2>&1; then : |
12297 | ||
8d138742 CE |
12298 | else |
12299 | ac_cv_header_stdc=no | |
12300 | fi | |
12301 | rm -f conftest* | |
d9898ee8 | 12302 | |
8d138742 | 12303 | fi |
d9898ee8 | 12304 | |
8d138742 CE |
12305 | if test $ac_cv_header_stdc = yes; then |
12306 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
b0322a85 | 12307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
12308 | /* end confdefs.h. */ |
12309 | #include <stdlib.h> | |
d9898ee8 | 12310 | |
8d138742 CE |
12311 | _ACEOF |
12312 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
12313 | $EGREP "free" >/dev/null 2>&1; then : |
12314 | ||
8d138742 CE |
12315 | else |
12316 | ac_cv_header_stdc=no | |
12317 | fi | |
12318 | rm -f conftest* | |
d9898ee8 | 12319 | |
8d138742 | 12320 | fi |
d9898ee8 | 12321 | |
8d138742 CE |
12322 | if test $ac_cv_header_stdc = yes; then |
12323 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
b0322a85 | 12324 | if test "$cross_compiling" = yes; then : |
8d138742 CE |
12325 | : |
12326 | else | |
b0322a85 | 12327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
12328 | /* end confdefs.h. */ |
12329 | #include <ctype.h> | |
12330 | #include <stdlib.h> | |
12331 | #if ((' ' & 0x0FF) == 0x020) | |
12332 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12333 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12334 | #else | |
12335 | # define ISLOWER(c) \ | |
12336 | (('a' <= (c) && (c) <= 'i') \ | |
12337 | || ('j' <= (c) && (c) <= 'r') \ | |
12338 | || ('s' <= (c) && (c) <= 'z')) | |
12339 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
12340 | #endif | |
d9898ee8 | 12341 | |
8d138742 CE |
12342 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
12343 | int | |
12344 | main () | |
12345 | { | |
12346 | int i; | |
12347 | for (i = 0; i < 256; i++) | |
12348 | if (XOR (islower (i), ISLOWER (i)) | |
12349 | || toupper (i) != TOUPPER (i)) | |
12350 | return 2; | |
12351 | return 0; | |
12352 | } | |
12353 | _ACEOF | |
b0322a85 | 12354 | if ac_fn_c_try_run "$LINENO"; then : |
d9898ee8 | 12355 | |
b0322a85 CE |
12356 | else |
12357 | ac_cv_header_stdc=no | |
8d138742 | 12358 | fi |
b0322a85 CE |
12359 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12360 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8d138742 | 12361 | fi |
ac40fd9e | 12362 | |
8d138742 CE |
12363 | fi |
12364 | fi | |
b0322a85 | 12365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
8d138742 CE |
12366 | $as_echo "$ac_cv_header_stdc" >&6; } |
12367 | if test $ac_cv_header_stdc = yes; then | |
d9898ee8 | 12368 | |
b0322a85 | 12369 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
d9898ee8 | 12370 | |
8d138742 | 12371 | fi |
d9898ee8 | 12372 | |
8d138742 | 12373 | for ac_header in unistd.h |
b0322a85 CE |
12374 | do : |
12375 | ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" | |
12376 | if test "x$ac_cv_header_unistd_h" = xyes; then : | |
8d138742 | 12377 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 12378 | #define HAVE_UNISTD_H 1 |
8d138742 | 12379 | _ACEOF |
ac40fd9e | 12380 | |
8d138742 | 12381 | fi |
d9898ee8 | 12382 | |
8d138742 | 12383 | done |
d9898ee8 | 12384 | |
d9898ee8 | 12385 | |
d9898ee8 | 12386 | |
d9898ee8 | 12387 | |
d9898ee8 | 12388 | |
8d138742 | 12389 | # Check whether --with-makedatprog was given. |
b0322a85 | 12390 | if test "${with_makedatprog+set}" = set; then : |
8d138742 CE |
12391 | withval=$with_makedatprog; makedatprog="$withval" |
12392 | else | |
12393 | makedatprog="$bindir/makedatprog" | |
12394 | fi | |
d9898ee8 | 12395 | |
d9898ee8 | 12396 | |
8d138742 | 12397 | makedatprogpath="$makedatprog" |
d9898ee8 | 12398 | |
d9898ee8 | 12399 | |
8d138742 | 12400 | ac_config_files="$ac_config_files Makefile makedat" |
d9898ee8 | 12401 | |
8d138742 CE |
12402 | cat >confcache <<\_ACEOF |
12403 | # This file is a shell script that caches the results of configure | |
12404 | # tests run on this system so they can be shared between configure | |
12405 | # scripts and configure runs, see configure's option --config-cache. | |
12406 | # It is not useful on other systems. If it contains results you don't | |
12407 | # want to keep, you may remove or edit it. | |
12408 | # | |
12409 | # config.status only pays attention to the cache file if you give it | |
12410 | # the --recheck option to rerun configure. | |
12411 | # | |
12412 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
12413 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12414 | # following values. | |
d9898ee8 | 12415 | |
8d138742 CE |
12416 | _ACEOF |
12417 | ||
12418 | # The following way of writing the cache mishandles newlines in values, | |
12419 | # but we know of no workaround that is simple, portable, and efficient. | |
12420 | # So, we kill variables containing newlines. | |
12421 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
12422 | # and sets the high bit in the cache file unless we assign to the vars. | |
12423 | ( | |
12424 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
12425 | eval ac_val=\$$ac_var | |
12426 | case $ac_val in #( | |
12427 | *${as_nl}*) | |
12428 | case $ac_var in #( | |
b0322a85 | 12429 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
8d138742 CE |
12430 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
12431 | esac | |
12432 | case $ac_var in #( | |
12433 | _ | IFS | as_nl) ;; #( | |
12434 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
b0322a85 | 12435 | *) { eval $ac_var=; unset $ac_var;} ;; |
8d138742 CE |
12436 | esac ;; |
12437 | esac | |
12438 | done | |
12439 | ||
12440 | (set) 2>&1 | | |
12441 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
12442 | *${as_nl}ac_space=\ *) | |
b0322a85 CE |
12443 | # `set' does not quote correctly, so add quotes: double-quote |
12444 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
8d138742 CE |
12445 | sed -n \ |
12446 | "s/'/'\\\\''/g; | |
12447 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
12448 | ;; #( | |
12449 | *) | |
12450 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
12451 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
12452 | ;; | |
12453 | esac | | |
12454 | sort | |
12455 | ) | | |
12456 | sed ' | |
12457 | /^ac_cv_env_/b end | |
12458 | t clear | |
12459 | :clear | |
12460 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
12461 | t end | |
12462 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
12463 | :end' >>confcache | |
12464 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
12465 | if test -w "$cache_file"; then | |
b0322a85 CE |
12466 | if test "x$cache_file" != "x/dev/null"; then |
12467 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
8d138742 | 12468 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
b0322a85 CE |
12469 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
12470 | cat confcache >"$cache_file" | |
12471 | else | |
12472 | case $cache_file in #( | |
12473 | */* | ?:*) | |
12474 | mv -f confcache "$cache_file"$$ && | |
12475 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
12476 | *) | |
12477 | mv -f confcache "$cache_file" ;; | |
12478 | esac | |
12479 | fi | |
12480 | fi | |
d9898ee8 | 12481 | else |
b0322a85 | 12482 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
8d138742 | 12483 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
d9898ee8 | 12484 | fi |
8d138742 CE |
12485 | fi |
12486 | rm -f confcache | |
d9898ee8 | 12487 | |
8d138742 CE |
12488 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
12489 | # Let make expand exec_prefix. | |
12490 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
d9898ee8 | 12491 | |
8d138742 | 12492 | DEFS=-DHAVE_CONFIG_H |
d9898ee8 | 12493 | |
8d138742 CE |
12494 | ac_libobjs= |
12495 | ac_ltlibobjs= | |
d50284c4 | 12496 | U= |
8d138742 CE |
12497 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
12498 | # 1. Remove the extension, and $U if already installed. | |
12499 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
12500 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
12501 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
12502 | # will be set to the directory where LIBOBJS objects are built. | |
b0322a85 CE |
12503 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
12504 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
8d138742 CE |
12505 | done |
12506 | LIBOBJS=$ac_libobjs | |
d9898ee8 | 12507 | |
8d138742 | 12508 | LTLIBOBJS=$ac_ltlibobjs |
ac40fd9e | 12509 | |
d9898ee8 | 12510 | |
b0322a85 CE |
12511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
12512 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
12513 | if test -n "$am_sleep_pid"; then | |
12514 | # Hide warnings about reused PIDs. | |
12515 | wait $am_sleep_pid 2>/dev/null | |
12516 | fi | |
12517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
12518 | $as_echo "done" >&6; } | |
8d138742 CE |
12519 | if test -n "$EXEEXT"; then |
12520 | am__EXEEXT_TRUE= | |
12521 | am__EXEEXT_FALSE='#' | |
12522 | else | |
12523 | am__EXEEXT_TRUE='#' | |
12524 | am__EXEEXT_FALSE= | |
12525 | fi | |
d9898ee8 | 12526 | |
8d138742 | 12527 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
b0322a85 CE |
12528 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
12529 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
12530 | fi |
12531 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
b0322a85 CE |
12532 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
12533 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 | 12534 | fi |
d9898ee8 | 12535 | |
b0322a85 | 12536 | : "${CONFIG_STATUS=./config.status}" |
8d138742 CE |
12537 | ac_write_fail=0 |
12538 | ac_clean_files_save=$ac_clean_files | |
12539 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
b0322a85 | 12540 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
8d138742 | 12541 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
b0322a85 CE |
12542 | as_write_fail=0 |
12543 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
8d138742 CE |
12544 | #! $SHELL |
12545 | # Generated by $as_me. | |
12546 | # Run this file to recreate the current configuration. | |
12547 | # Compiler output produced by configure, useful for debugging | |
12548 | # configure, is in config.log if it exists. | |
d9898ee8 | 12549 | |
8d138742 CE |
12550 | debug=false |
12551 | ac_cs_recheck=false | |
12552 | ac_cs_silent=false | |
d9898ee8 | 12553 | |
b0322a85 CE |
12554 | SHELL=\${CONFIG_SHELL-$SHELL} |
12555 | export SHELL | |
12556 | _ASEOF | |
12557 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
12558 | ## -------------------- ## | |
12559 | ## M4sh Initialization. ## | |
12560 | ## -------------------- ## | |
d9898ee8 | 12561 | |
8d138742 CE |
12562 | # Be more Bourne compatible |
12563 | DUALCASE=1; export DUALCASE # for MKS sh | |
b0322a85 | 12564 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
8d138742 CE |
12565 | emulate sh |
12566 | NULLCMD=: | |
12567 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
12568 | # is contrary to our usage. Disable this feature. | |
12569 | alias -g '${1+"$@"}'='"$@"' | |
12570 | setopt NO_GLOB_SUBST | |
12571 | else | |
b0322a85 CE |
12572 | case `(set -o) 2>/dev/null` in #( |
12573 | *posix*) : | |
12574 | set -o posix ;; #( | |
12575 | *) : | |
12576 | ;; | |
d9898ee8 | 12577 | esac |
d9898ee8 | 12578 | fi |
12579 | ||
d9898ee8 | 12580 | |
8d138742 CE |
12581 | as_nl=' |
12582 | ' | |
12583 | export as_nl | |
12584 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
12585 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
12586 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
12587 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
b0322a85 CE |
12588 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
12589 | # but without wasting forks for bash or zsh. | |
12590 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
12591 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
12592 | as_echo='print -r --' | |
12593 | as_echo_n='print -rn --' | |
12594 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
8d138742 CE |
12595 | as_echo='printf %s\n' |
12596 | as_echo_n='printf %s' | |
12597 | else | |
12598 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
12599 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
12600 | as_echo_n='/usr/ucb/echo -n' | |
d9898ee8 | 12601 | else |
8d138742 CE |
12602 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
12603 | as_echo_n_body='eval | |
12604 | arg=$1; | |
b0322a85 | 12605 | case $arg in #( |
8d138742 CE |
12606 | *"$as_nl"*) |
12607 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
12608 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
12609 | esac; | |
12610 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
12611 | ' | |
12612 | export as_echo_n_body | |
12613 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
12614 | fi | |
12615 | export as_echo_body | |
12616 | as_echo='sh -c $as_echo_body as_echo' | |
d9898ee8 | 12617 | fi |
d9898ee8 | 12618 | |
8d138742 CE |
12619 | # The user is always right. |
12620 | if test "${PATH_SEPARATOR+set}" != set; then | |
12621 | PATH_SEPARATOR=: | |
12622 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
12623 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
12624 | PATH_SEPARATOR=';' | |
12625 | } | |
d9898ee8 | 12626 | fi |
12627 | ||
d9898ee8 | 12628 | |
8d138742 CE |
12629 | # IFS |
12630 | # We need space, tab and new line, in precisely that order. Quoting is | |
12631 | # there to prevent editors from complaining about space-tab. | |
12632 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
12633 | # splitting by setting IFS to empty value.) | |
12634 | IFS=" "" $as_nl" | |
d9898ee8 | 12635 | |
8d138742 | 12636 | # Find who we are. Look in the path if we contain no directory separator. |
b0322a85 CE |
12637 | as_myself= |
12638 | case $0 in #(( | |
8d138742 CE |
12639 | *[\\/]* ) as_myself=$0 ;; |
12640 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12641 | for as_dir in $PATH | |
12642 | do | |
12643 | IFS=$as_save_IFS | |
12644 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
12645 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
12646 | done | |
8d138742 | 12647 | IFS=$as_save_IFS |
d9898ee8 | 12648 | |
8d138742 CE |
12649 | ;; |
12650 | esac | |
12651 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
12652 | # in which case we are not to be found in the path. | |
12653 | if test "x$as_myself" = x; then | |
12654 | as_myself=$0 | |
12655 | fi | |
12656 | if test ! -f "$as_myself"; then | |
12657 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
b0322a85 | 12658 | exit 1 |
8d138742 | 12659 | fi |
d9898ee8 | 12660 | |
b0322a85 CE |
12661 | # Unset variables that we do not need and which cause bugs (e.g. in |
12662 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
12663 | # suppresses any "Segmentation fault" message there. '((' could | |
12664 | # trigger a bug in pdksh 5.2.14. | |
12665 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
12666 | do eval test x\${$as_var+set} = xset \ | |
12667 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
8d138742 CE |
12668 | done |
12669 | PS1='$ ' | |
12670 | PS2='> ' | |
12671 | PS4='+ ' | |
d9898ee8 | 12672 | |
8d138742 CE |
12673 | # NLS nuisances. |
12674 | LC_ALL=C | |
12675 | export LC_ALL | |
12676 | LANGUAGE=C | |
12677 | export LANGUAGE | |
d9898ee8 | 12678 | |
b0322a85 CE |
12679 | # CDPATH. |
12680 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
12681 | ||
12682 | ||
12683 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
12684 | # ---------------------------------------- | |
12685 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
12686 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
12687 | # script with STATUS, using 1 if that was 0. | |
12688 | as_fn_error () | |
12689 | { | |
12690 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
12691 | if test "$4"; then | |
12692 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
12693 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
12694 | fi | |
12695 | $as_echo "$as_me: error: $2" >&2 | |
12696 | as_fn_exit $as_status | |
12697 | } # as_fn_error | |
12698 | ||
12699 | ||
12700 | # as_fn_set_status STATUS | |
12701 | # ----------------------- | |
12702 | # Set $? to STATUS, without forking. | |
12703 | as_fn_set_status () | |
12704 | { | |
12705 | return $1 | |
12706 | } # as_fn_set_status | |
12707 | ||
12708 | # as_fn_exit STATUS | |
12709 | # ----------------- | |
12710 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
12711 | as_fn_exit () | |
12712 | { | |
12713 | set +e | |
12714 | as_fn_set_status $1 | |
12715 | exit $1 | |
12716 | } # as_fn_exit | |
12717 | ||
12718 | # as_fn_unset VAR | |
12719 | # --------------- | |
12720 | # Portably unset VAR. | |
12721 | as_fn_unset () | |
12722 | { | |
12723 | { eval $1=; unset $1;} | |
12724 | } | |
12725 | as_unset=as_fn_unset | |
12726 | # as_fn_append VAR VALUE | |
12727 | # ---------------------- | |
12728 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
12729 | # advantage of any shell optimizations that allow amortized linear growth over | |
12730 | # repeated appends, instead of the typical quadratic growth present in naive | |
12731 | # implementations. | |
12732 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
12733 | eval 'as_fn_append () | |
12734 | { | |
12735 | eval $1+=\$2 | |
12736 | }' | |
12737 | else | |
12738 | as_fn_append () | |
12739 | { | |
12740 | eval $1=\$$1\$2 | |
12741 | } | |
12742 | fi # as_fn_append | |
12743 | ||
12744 | # as_fn_arith ARG... | |
12745 | # ------------------ | |
12746 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
12747 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
12748 | # must be portable across $(()) and expr. | |
12749 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
12750 | eval 'as_fn_arith () | |
12751 | { | |
12752 | as_val=$(( $* )) | |
12753 | }' | |
12754 | else | |
12755 | as_fn_arith () | |
12756 | { | |
12757 | as_val=`expr "$@" || test $? -eq 1` | |
12758 | } | |
12759 | fi # as_fn_arith | |
12760 | ||
12761 | ||
8d138742 CE |
12762 | if expr a : '\(a\)' >/dev/null 2>&1 && |
12763 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
12764 | as_expr=expr | |
12765 | else | |
12766 | as_expr=false | |
12767 | fi | |
d9898ee8 | 12768 | |
8d138742 CE |
12769 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
12770 | as_basename=basename | |
12771 | else | |
12772 | as_basename=false | |
12773 | fi | |
d9898ee8 | 12774 | |
b0322a85 CE |
12775 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
12776 | as_dirname=dirname | |
12777 | else | |
12778 | as_dirname=false | |
12779 | fi | |
d9898ee8 | 12780 | |
8d138742 CE |
12781 | as_me=`$as_basename -- "$0" || |
12782 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
12783 | X"$0" : 'X\(//\)$' \| \ | |
12784 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
12785 | $as_echo X/"$0" | | |
12786 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
12787 | s//\1/ | |
12788 | q | |
12789 | } | |
12790 | /^X\/\(\/\/\)$/{ | |
12791 | s//\1/ | |
12792 | q | |
12793 | } | |
12794 | /^X\/\(\/\).*/{ | |
12795 | s//\1/ | |
12796 | q | |
12797 | } | |
12798 | s/.*/./; q'` | |
d9898ee8 | 12799 | |
b0322a85 CE |
12800 | # Avoid depending upon Character Ranges. |
12801 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12802 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
12803 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
12804 | as_cr_digits='0123456789' | |
12805 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
d9898ee8 | 12806 | |
8d138742 | 12807 | ECHO_C= ECHO_N= ECHO_T= |
b0322a85 | 12808 | case `echo -n x` in #((((( |
8d138742 | 12809 | -n*) |
b0322a85 | 12810 | case `echo 'xy\c'` in |
8d138742 | 12811 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
b0322a85 CE |
12812 | xy) ECHO_C='\c';; |
12813 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
12814 | ECHO_T=' ';; | |
8d138742 CE |
12815 | esac;; |
12816 | *) | |
12817 | ECHO_N='-n';; | |
12818 | esac | |
b0322a85 CE |
12819 | |
12820 | rm -f conf$$ conf$$.exe conf$$.file | |
12821 | if test -d conf$$.dir; then | |
12822 | rm -f conf$$.dir/conf$$.file | |
8d138742 | 12823 | else |
b0322a85 CE |
12824 | rm -f conf$$.dir |
12825 | mkdir conf$$.dir 2>/dev/null | |
12826 | fi | |
12827 | if (echo >conf$$.file) 2>/dev/null; then | |
12828 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
12829 | as_ln_s='ln -s' | |
12830 | # ... but there are two gotchas: | |
12831 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
12832 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
12833 | # In both cases, we have to default to `cp -pR'. | |
12834 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
12835 | as_ln_s='cp -pR' | |
12836 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
12837 | as_ln_s=ln | |
12838 | else | |
12839 | as_ln_s='cp -pR' | |
12840 | fi | |
12841 | else | |
12842 | as_ln_s='cp -pR' | |
8d138742 | 12843 | fi |
b0322a85 CE |
12844 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
12845 | rmdir conf$$.dir 2>/dev/null | |
12846 | ||
12847 | ||
12848 | # as_fn_mkdir_p | |
12849 | # ------------- | |
12850 | # Create "$as_dir" as a directory, including parents if necessary. | |
12851 | as_fn_mkdir_p () | |
12852 | { | |
12853 | ||
12854 | case $as_dir in #( | |
12855 | -*) as_dir=./$as_dir;; | |
12856 | esac | |
12857 | test -d "$as_dir" || eval $as_mkdir_p || { | |
12858 | as_dirs= | |
12859 | while :; do | |
12860 | case $as_dir in #( | |
12861 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
12862 | *) as_qdir=$as_dir;; | |
12863 | esac | |
12864 | as_dirs="'$as_qdir' $as_dirs" | |
12865 | as_dir=`$as_dirname -- "$as_dir" || | |
12866 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12867 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12868 | X"$as_dir" : 'X\(//\)$' \| \ | |
12869 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
12870 | $as_echo X"$as_dir" | | |
12871 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
12872 | s//\1/ | |
12873 | q | |
12874 | } | |
12875 | /^X\(\/\/\)[^/].*/{ | |
12876 | s//\1/ | |
12877 | q | |
12878 | } | |
12879 | /^X\(\/\/\)$/{ | |
12880 | s//\1/ | |
12881 | q | |
12882 | } | |
12883 | /^X\(\/\).*/{ | |
12884 | s//\1/ | |
12885 | q | |
12886 | } | |
12887 | s/.*/./; q'` | |
12888 | test -d "$as_dir" && break | |
12889 | done | |
12890 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
12891 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
d9898ee8 | 12892 | |
d9898ee8 | 12893 | |
b0322a85 | 12894 | } # as_fn_mkdir_p |
8d138742 | 12895 | if mkdir -p . 2>/dev/null; then |
b0322a85 | 12896 | as_mkdir_p='mkdir -p "$as_dir"' |
8d138742 CE |
12897 | else |
12898 | test -d ./-p && rmdir ./-p | |
12899 | as_mkdir_p=false | |
12900 | fi | |
d9898ee8 | 12901 | |
b0322a85 CE |
12902 | |
12903 | # as_fn_executable_p FILE | |
12904 | # ----------------------- | |
12905 | # Test if FILE is an executable regular file. | |
12906 | as_fn_executable_p () | |
12907 | { | |
12908 | test -f "$1" && test -x "$1" | |
12909 | } # as_fn_executable_p | |
12910 | as_test_x='test -x' | |
12911 | as_executable_p=as_fn_executable_p | |
d9898ee8 | 12912 | |
8d138742 CE |
12913 | # Sed expression to map a string onto a valid CPP name. |
12914 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 12915 | |
8d138742 CE |
12916 | # Sed expression to map a string onto a valid variable name. |
12917 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 12918 | |
d9898ee8 | 12919 | |
8d138742 | 12920 | exec 6>&1 |
b0322a85 CE |
12921 | ## ----------------------------------- ## |
12922 | ## Main body of $CONFIG_STATUS script. ## | |
12923 | ## ----------------------------------- ## | |
12924 | _ASEOF | |
12925 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
d9898ee8 | 12926 | |
b0322a85 CE |
12927 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12928 | # Save the log message, to keep $0 and so on meaningful, and to | |
8d138742 CE |
12929 | # report actual input values of CONFIG_FILES etc. instead of their |
12930 | # values after options handling. | |
12931 | ac_log=" | |
12932 | This file was extended by makedat $as_me 0.60, which was | |
b0322a85 | 12933 | generated by GNU Autoconf 2.69. Invocation command line was |
d9898ee8 | 12934 | |
8d138742 CE |
12935 | CONFIG_FILES = $CONFIG_FILES |
12936 | CONFIG_HEADERS = $CONFIG_HEADERS | |
12937 | CONFIG_LINKS = $CONFIG_LINKS | |
12938 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12939 | $ $0 $@ | |
d9898ee8 | 12940 | |
8d138742 CE |
12941 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
12942 | " | |
d9898ee8 | 12943 | |
8d138742 | 12944 | _ACEOF |
d9898ee8 | 12945 | |
8d138742 CE |
12946 | case $ac_config_files in *" |
12947 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
12948 | esac | |
d9898ee8 | 12949 | |
8d138742 CE |
12950 | case $ac_config_headers in *" |
12951 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
12952 | esac | |
d9898ee8 | 12953 | |
d9898ee8 | 12954 | |
8d138742 CE |
12955 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
12956 | # Files that config.status was made for. | |
12957 | config_files="$ac_config_files" | |
12958 | config_headers="$ac_config_headers" | |
12959 | config_commands="$ac_config_commands" | |
d9898ee8 | 12960 | |
8d138742 | 12961 | _ACEOF |
d9898ee8 | 12962 | |
8d138742 CE |
12963 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12964 | ac_cs_usage="\ | |
b0322a85 CE |
12965 | \`$as_me' instantiates files and other configuration actions |
12966 | from templates according to the current configuration. Unless the files | |
12967 | and actions are specified as TAGs, all are instantiated by default. | |
d9898ee8 | 12968 | |
b0322a85 | 12969 | Usage: $0 [OPTION]... [TAG]... |
d9898ee8 | 12970 | |
8d138742 CE |
12971 | -h, --help print this help, then exit |
12972 | -V, --version print version number and configuration settings, then exit | |
b0322a85 | 12973 | --config print configuration, then exit |
8d138742 CE |
12974 | -q, --quiet, --silent |
12975 | do not print progress messages | |
12976 | -d, --debug don't remove temporary files | |
12977 | --recheck update $as_me by reconfiguring in the same conditions | |
12978 | --file=FILE[:TEMPLATE] | |
12979 | instantiate the configuration file FILE | |
12980 | --header=FILE[:TEMPLATE] | |
12981 | instantiate the configuration header FILE | |
d9898ee8 | 12982 | |
8d138742 CE |
12983 | Configuration files: |
12984 | $config_files | |
d9898ee8 | 12985 | |
8d138742 CE |
12986 | Configuration headers: |
12987 | $config_headers | |
d9898ee8 | 12988 | |
8d138742 CE |
12989 | Configuration commands: |
12990 | $config_commands | |
d9898ee8 | 12991 | |
b0322a85 | 12992 | Report bugs to <courier-users@lists.sourceforge.net>." |
d9898ee8 | 12993 | |
8d138742 CE |
12994 | _ACEOF |
12995 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b0322a85 | 12996 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
8d138742 CE |
12997 | ac_cs_version="\\ |
12998 | makedat config.status 0.60 | |
b0322a85 CE |
12999 | configured by $0, generated by GNU Autoconf 2.69, |
13000 | with options \\"\$ac_cs_config\\" | |
d9898ee8 | 13001 | |
b0322a85 | 13002 | Copyright (C) 2012 Free Software Foundation, Inc. |
8d138742 CE |
13003 | This config.status script is free software; the Free Software Foundation |
13004 | gives unlimited permission to copy, distribute and modify it." | |
d9898ee8 | 13005 | |
8d138742 CE |
13006 | ac_pwd='$ac_pwd' |
13007 | srcdir='$srcdir' | |
13008 | INSTALL='$INSTALL' | |
13009 | MKDIR_P='$MKDIR_P' | |
13010 | AWK='$AWK' | |
13011 | test -n "\$AWK" || AWK=awk | |
13012 | _ACEOF | |
d9898ee8 | 13013 | |
8d138742 CE |
13014 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13015 | # The default lists apply if the user does not specify any file. | |
13016 | ac_need_defaults=: | |
13017 | while test $# != 0 | |
13018 | do | |
13019 | case $1 in | |
b0322a85 | 13020 | --*=?*) |
8d138742 CE |
13021 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
13022 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
13023 | ac_shift=: | |
13024 | ;; | |
b0322a85 CE |
13025 | --*=) |
13026 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
13027 | ac_optarg= | |
13028 | ac_shift=: | |
13029 | ;; | |
8d138742 CE |
13030 | *) |
13031 | ac_option=$1 | |
13032 | ac_optarg=$2 | |
13033 | ac_shift=shift | |
13034 | ;; | |
13035 | esac | |
d9898ee8 | 13036 | |
8d138742 CE |
13037 | case $ac_option in |
13038 | # Handling of the options. | |
13039 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
13040 | ac_cs_recheck=: ;; | |
13041 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
13042 | $as_echo "$ac_cs_version"; exit ;; | |
b0322a85 CE |
13043 | --config | --confi | --conf | --con | --co | --c ) |
13044 | $as_echo "$ac_cs_config"; exit ;; | |
8d138742 CE |
13045 | --debug | --debu | --deb | --de | --d | -d ) |
13046 | debug=: ;; | |
13047 | --file | --fil | --fi | --f ) | |
13048 | $ac_shift | |
13049 | case $ac_optarg in | |
13050 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b0322a85 | 13051 | '') as_fn_error $? "missing file argument" ;; |
8d138742 | 13052 | esac |
b0322a85 | 13053 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
8d138742 CE |
13054 | ac_need_defaults=false;; |
13055 | --header | --heade | --head | --hea ) | |
13056 | $ac_shift | |
13057 | case $ac_optarg in | |
13058 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13059 | esac | |
b0322a85 | 13060 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
8d138742 CE |
13061 | ac_need_defaults=false;; |
13062 | --he | --h) | |
13063 | # Conflict between --help and --header | |
b0322a85 CE |
13064 | as_fn_error $? "ambiguous option: \`$1' |
13065 | Try \`$0 --help' for more information.";; | |
8d138742 CE |
13066 | --help | --hel | -h ) |
13067 | $as_echo "$ac_cs_usage"; exit ;; | |
13068 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
13069 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
13070 | ac_cs_silent=: ;; | |
d9898ee8 | 13071 | |
8d138742 | 13072 | # This is an error. |
b0322a85 CE |
13073 | -*) as_fn_error $? "unrecognized option: \`$1' |
13074 | Try \`$0 --help' for more information." ;; | |
d9898ee8 | 13075 | |
b0322a85 | 13076 | *) as_fn_append ac_config_targets " $1" |
8d138742 | 13077 | ac_need_defaults=false ;; |
d9898ee8 | 13078 | |
8d138742 CE |
13079 | esac |
13080 | shift | |
13081 | done | |
d9898ee8 | 13082 | |
8d138742 | 13083 | ac_configure_extra_args= |
d9898ee8 | 13084 | |
8d138742 CE |
13085 | if $ac_cs_silent; then |
13086 | exec 6>/dev/null | |
13087 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
13088 | fi | |
d9898ee8 | 13089 | |
8d138742 CE |
13090 | _ACEOF |
13091 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13092 | if \$ac_cs_recheck; then | |
b0322a85 | 13093 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
8d138742 CE |
13094 | shift |
13095 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
13096 | CONFIG_SHELL='$SHELL' | |
13097 | export CONFIG_SHELL | |
13098 | exec "\$@" | |
13099 | fi | |
d9898ee8 | 13100 | |
8d138742 CE |
13101 | _ACEOF |
13102 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13103 | exec 5>>config.log | |
13104 | { | |
13105 | echo | |
13106 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
13107 | ## Running $as_me. ## | |
13108 | _ASBOX | |
13109 | $as_echo "$ac_log" | |
13110 | } >&5 | |
d9898ee8 | 13111 | |
8d138742 CE |
13112 | _ACEOF |
13113 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13114 | # | |
13115 | # INIT-COMMANDS | |
13116 | # | |
13117 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
d9898ee8 | 13118 | |
d9898ee8 | 13119 | |
8d138742 CE |
13120 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
13121 | # if CDPATH is set. | |
13122 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
d9898ee8 | 13123 | |
8d138742 CE |
13124 | sed_quote_subst='$sed_quote_subst' |
13125 | double_quote_subst='$double_quote_subst' | |
13126 | delay_variable_subst='$delay_variable_subst' | |
b0322a85 CE |
13127 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
13128 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
13129 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
13130 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
13131 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
13132 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
d50284c4 | 13133 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
13134 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
13135 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
13136 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
13137 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
13138 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
13139 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
13140 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
13141 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
13142 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
13143 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
13144 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
13145 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
13146 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
13147 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
13148 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
13149 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
13150 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
13151 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
13152 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
13153 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
13154 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
13155 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
13156 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
13157 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
13158 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
13159 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
13160 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
13161 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
13162 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
13163 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
13164 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
13165 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
13166 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
13167 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
13168 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
13169 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
13170 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
13171 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
13172 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
13173 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13174 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13175 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
13176 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
13177 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
13178 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
13179 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
13180 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
13181 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
13182 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
d50284c4 | 13183 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
13184 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
13185 | 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"`' | |
d50284c4 | 13186 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
13187 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
13188 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
d50284c4 | 13189 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
13190 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
13191 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
13192 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
13193 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
13194 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
13195 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
13196 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
13197 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
13198 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
13199 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
13200 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
13201 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
13202 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
13203 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
13204 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
13205 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
13206 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
13207 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
13208 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
13209 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13210 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13211 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
13212 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
13213 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
13214 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
13215 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
13216 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
13217 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
13218 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
13219 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
13220 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
13221 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13222 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
13223 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
13224 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
13225 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
13226 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
13227 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
13228 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
13229 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
13230 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
13231 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
13232 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
13233 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
13234 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
13235 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
13236 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
13237 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
13238 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
13239 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
13240 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
13241 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
13242 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
13243 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
13244 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
13245 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
13246 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
13247 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
13248 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13249 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13250 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
13251 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
13252 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
13253 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
d50284c4 CE |
13254 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
13255 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' | |
b0322a85 CE |
13256 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
13257 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
13258 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
13259 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
13260 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
13261 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
8d138742 CE |
13262 | |
13263 | LTCC='$LTCC' | |
13264 | LTCFLAGS='$LTCFLAGS' | |
13265 | compiler='$compiler_DEFAULT' | |
13266 | ||
b0322a85 CE |
13267 | # A function that is used when there is no print builtin or printf. |
13268 | func_fallback_echo () | |
13269 | { | |
13270 | eval 'cat <<_LTECHO_EOF | |
13271 | \$1 | |
13272 | _LTECHO_EOF' | |
13273 | } | |
13274 | ||
8d138742 | 13275 | # Quote evaled strings. |
b0322a85 CE |
13276 | for var in SHELL \ |
13277 | ECHO \ | |
13278 | PATH_SEPARATOR \ | |
13279 | SED \ | |
8d138742 CE |
13280 | GREP \ |
13281 | EGREP \ | |
13282 | FGREP \ | |
13283 | LD \ | |
13284 | NM \ | |
13285 | LN_S \ | |
13286 | lt_SP2NL \ | |
13287 | lt_NL2SP \ | |
13288 | reload_flag \ | |
13289 | OBJDUMP \ | |
13290 | deplibs_check_method \ | |
13291 | file_magic_cmd \ | |
b0322a85 CE |
13292 | file_magic_glob \ |
13293 | want_nocaseglob \ | |
13294 | DLLTOOL \ | |
13295 | sharedlib_from_linklib_cmd \ | |
8d138742 CE |
13296 | AR \ |
13297 | AR_FLAGS \ | |
b0322a85 | 13298 | archiver_list_spec \ |
8d138742 CE |
13299 | STRIP \ |
13300 | RANLIB \ | |
13301 | CC \ | |
13302 | CFLAGS \ | |
13303 | compiler \ | |
13304 | lt_cv_sys_global_symbol_pipe \ | |
13305 | lt_cv_sys_global_symbol_to_cdecl \ | |
d50284c4 | 13306 | lt_cv_sys_global_symbol_to_import \ |
8d138742 CE |
13307 | lt_cv_sys_global_symbol_to_c_name_address \ |
13308 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
d50284c4 | 13309 | lt_cv_nm_interface \ |
b0322a85 | 13310 | nm_file_list_spec \ |
d50284c4 | 13311 | lt_cv_truncate_bin \ |
8d138742 | 13312 | lt_prog_compiler_no_builtin_flag \ |
8d138742 | 13313 | lt_prog_compiler_pic \ |
b0322a85 | 13314 | lt_prog_compiler_wl \ |
8d138742 CE |
13315 | lt_prog_compiler_static \ |
13316 | lt_cv_prog_compiler_c_o \ | |
13317 | need_locks \ | |
b0322a85 | 13318 | MANIFEST_TOOL \ |
8d138742 CE |
13319 | DSYMUTIL \ |
13320 | NMEDIT \ | |
13321 | LIPO \ | |
13322 | OTOOL \ | |
13323 | OTOOL64 \ | |
13324 | shrext_cmds \ | |
13325 | export_dynamic_flag_spec \ | |
13326 | whole_archive_flag_spec \ | |
13327 | compiler_needs_object \ | |
13328 | with_gnu_ld \ | |
13329 | allow_undefined_flag \ | |
13330 | no_undefined_flag \ | |
13331 | hardcode_libdir_flag_spec \ | |
8d138742 | 13332 | hardcode_libdir_separator \ |
8d138742 CE |
13333 | exclude_expsyms \ |
13334 | include_expsyms \ | |
13335 | file_list_spec \ | |
13336 | variables_saved_for_relink \ | |
13337 | libname_spec \ | |
13338 | library_names_spec \ | |
13339 | soname_spec \ | |
b0322a85 | 13340 | install_override_mode \ |
8d138742 CE |
13341 | finish_eval \ |
13342 | old_striplib \ | |
13343 | striplib; do | |
b0322a85 | 13344 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
8d138742 | 13345 | *[\\\\\\\`\\"\\\$]*) |
d50284c4 | 13346 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
8d138742 CE |
13347 | ;; |
13348 | *) | |
13349 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13350 | ;; | |
13351 | esac | |
13352 | done | |
d9898ee8 | 13353 | |
8d138742 CE |
13354 | # Double-quote double-evaled strings. |
13355 | for var in reload_cmds \ | |
13356 | old_postinstall_cmds \ | |
13357 | old_postuninstall_cmds \ | |
13358 | old_archive_cmds \ | |
13359 | extract_expsyms_cmds \ | |
13360 | old_archive_from_new_cmds \ | |
13361 | old_archive_from_expsyms_cmds \ | |
13362 | archive_cmds \ | |
13363 | archive_expsym_cmds \ | |
13364 | module_cmds \ | |
13365 | module_expsym_cmds \ | |
13366 | export_symbols_cmds \ | |
13367 | prelink_cmds \ | |
b0322a85 | 13368 | postlink_cmds \ |
8d138742 CE |
13369 | postinstall_cmds \ |
13370 | postuninstall_cmds \ | |
13371 | finish_cmds \ | |
13372 | sys_lib_search_path_spec \ | |
d50284c4 CE |
13373 | configure_time_dlsearch_path \ |
13374 | configure_time_lt_sys_library_path; do | |
b0322a85 | 13375 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
8d138742 | 13376 | *[\\\\\\\`\\"\\\$]*) |
d50284c4 | 13377 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
8d138742 CE |
13378 | ;; |
13379 | *) | |
13380 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13381 | ;; | |
13382 | esac | |
13383 | done | |
d9898ee8 | 13384 | |
8d138742 | 13385 | ac_aux_dir='$ac_aux_dir' |
d9898ee8 | 13386 | |
d50284c4 | 13387 | # See if we are running on zsh, and set the options that allow our |
8d138742 | 13388 | # commands through without removal of \ escapes INIT. |
d50284c4 | 13389 | if test -n "\${ZSH_VERSION+set}"; then |
8d138742 CE |
13390 | setopt NO_GLOB_SUBST |
13391 | fi | |
d9898ee8 | 13392 | |
d9898ee8 | 13393 | |
8d138742 CE |
13394 | PACKAGE='$PACKAGE' |
13395 | VERSION='$VERSION' | |
8d138742 CE |
13396 | RM='$RM' |
13397 | ofile='$ofile' | |
d9898ee8 | 13398 | |
d9898ee8 | 13399 | |
d9898ee8 | 13400 | |
d9898ee8 | 13401 | |
8d138742 | 13402 | _ACEOF |
d9898ee8 | 13403 | |
8d138742 | 13404 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
d9898ee8 | 13405 | |
8d138742 CE |
13406 | # Handling of arguments. |
13407 | for ac_config_target in $ac_config_targets | |
13408 | do | |
13409 | case $ac_config_target in | |
13410 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
13411 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
13412 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
13413 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
13414 | "makedat") CONFIG_FILES="$CONFIG_FILES makedat" ;; | |
d9898ee8 | 13415 | |
b0322a85 | 13416 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
8d138742 CE |
13417 | esac |
13418 | done | |
d9898ee8 | 13419 | |
d9898ee8 | 13420 | |
8d138742 CE |
13421 | # If the user did not use the arguments to specify the items to instantiate, |
13422 | # then the envvar interface is used. Set only those that are not. | |
13423 | # We use the long form for the default assignment because of an extremely | |
13424 | # bizarre bug on SunOS 4.1.3. | |
13425 | if $ac_need_defaults; then | |
13426 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
13427 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
13428 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
13429 | fi | |
d9898ee8 | 13430 | |
8d138742 CE |
13431 | # Have a temporary directory for convenience. Make it in the build tree |
13432 | # simply because there is no reason against having it here, and in addition, | |
13433 | # creating and moving files from /tmp can sometimes cause problems. | |
13434 | # Hook for its removal unless debugging. | |
13435 | # Note that there is a small window in which the directory will not be cleaned: | |
13436 | # after its creation but before its name has been assigned to `$tmp'. | |
13437 | $debug || | |
13438 | { | |
b0322a85 | 13439 | tmp= ac_tmp= |
8d138742 | 13440 | trap 'exit_status=$? |
b0322a85 CE |
13441 | : "${ac_tmp:=$tmp}" |
13442 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
8d138742 | 13443 | ' 0 |
b0322a85 | 13444 | trap 'as_fn_exit 1' 1 2 13 15 |
8d138742 CE |
13445 | } |
13446 | # Create a (secure) tmp directory for tmp files. | |
d9898ee8 | 13447 | |
8d138742 CE |
13448 | { |
13449 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
b0322a85 | 13450 | test -d "$tmp" |
8d138742 CE |
13451 | } || |
13452 | { | |
13453 | tmp=./conf$$-$RANDOM | |
13454 | (umask 077 && mkdir "$tmp") | |
b0322a85 CE |
13455 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
13456 | ac_tmp=$tmp | |
d9898ee8 | 13457 | |
8d138742 CE |
13458 | # Set up the scripts for CONFIG_FILES section. |
13459 | # No need to generate them if there are no CONFIG_FILES. | |
13460 | # This happens for instance with `./config.status config.h'. | |
13461 | if test -n "$CONFIG_FILES"; then | |
d9898ee8 | 13462 | |
13463 | ||
b0322a85 CE |
13464 | ac_cr=`echo X | tr X '\015'` |
13465 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
13466 | # But we know of no other shell where ac_cr would be empty at this | |
13467 | # point, so we can use a bashism as a fallback. | |
13468 | if test "x$ac_cr" = x; then | |
13469 | eval ac_cr=\$\'\\r\' | |
13470 | fi | |
8d138742 CE |
13471 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
13472 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
13473 | ac_cs_awk_cr='\\r' | |
d9898ee8 | 13474 | else |
8d138742 | 13475 | ac_cs_awk_cr=$ac_cr |
d9898ee8 | 13476 | fi |
13477 | ||
b0322a85 | 13478 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
8d138742 | 13479 | _ACEOF |
d9898ee8 | 13480 | |
d9898ee8 | 13481 | |
8d138742 CE |
13482 | { |
13483 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
13484 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
13485 | echo "_ACEOF" | |
13486 | } >conf$$subs.sh || | |
b0322a85 CE |
13487 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
13488 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
8d138742 CE |
13489 | ac_delim='%!_!# ' |
13490 | for ac_last_try in false false false false false :; do | |
13491 | . ./conf$$subs.sh || | |
b0322a85 | 13492 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
d9898ee8 | 13493 | |
8d138742 CE |
13494 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
13495 | if test $ac_delim_n = $ac_delim_num; then | |
13496 | break | |
13497 | elif $ac_last_try; then | |
b0322a85 | 13498 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
8d138742 CE |
13499 | else |
13500 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13501 | fi | |
13502 | done | |
13503 | rm -f conf$$subs.sh | |
13504 | ||
13505 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b0322a85 | 13506 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
8d138742 CE |
13507 | _ACEOF |
13508 | sed -n ' | |
13509 | h | |
13510 | s/^/S["/; s/!.*/"]=/ | |
13511 | p | |
13512 | g | |
13513 | s/^[^!]*!// | |
13514 | :repl | |
13515 | t repl | |
13516 | s/'"$ac_delim"'$// | |
13517 | t delim | |
13518 | :nl | |
13519 | h | |
b0322a85 | 13520 | s/\(.\{148\}\)..*/\1/ |
8d138742 CE |
13521 | t more1 |
13522 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
13523 | p | |
13524 | n | |
13525 | b repl | |
13526 | :more1 | |
13527 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13528 | p | |
13529 | g | |
13530 | s/.\{148\}// | |
13531 | t nl | |
13532 | :delim | |
13533 | h | |
b0322a85 | 13534 | s/\(.\{148\}\)..*/\1/ |
8d138742 CE |
13535 | t more2 |
13536 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
13537 | p | |
13538 | b | |
13539 | :more2 | |
13540 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13541 | p | |
13542 | g | |
13543 | s/.\{148\}// | |
13544 | t delim | |
13545 | ' <conf$$subs.awk | sed ' | |
13546 | /^[^""]/{ | |
13547 | N | |
13548 | s/\n// | |
13549 | } | |
13550 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
13551 | rm -f conf$$subs.awk | |
13552 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13553 | _ACAWK | |
b0322a85 | 13554 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
8d138742 CE |
13555 | for (key in S) S_is_set[key] = 1 |
13556 | FS = "\a" | |
d9898ee8 | 13557 | |
8d138742 CE |
13558 | } |
13559 | { | |
13560 | line = $ 0 | |
13561 | nfields = split(line, field, "@") | |
13562 | substed = 0 | |
13563 | len = length(field[1]) | |
13564 | for (i = 2; i < nfields; i++) { | |
13565 | key = field[i] | |
13566 | keylen = length(key) | |
13567 | if (S_is_set[key]) { | |
13568 | value = S[key] | |
13569 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
13570 | len += length(value) + length(field[++i]) | |
13571 | substed = 1 | |
13572 | } else | |
13573 | len += 1 + keylen | |
13574 | } | |
d9898ee8 | 13575 | |
8d138742 CE |
13576 | print line |
13577 | } | |
d9898ee8 | 13578 | |
8d138742 CE |
13579 | _ACAWK |
13580 | _ACEOF | |
13581 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13582 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
13583 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
13584 | else | |
13585 | cat | |
b0322a85 CE |
13586 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
13587 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
8d138742 | 13588 | _ACEOF |
d9898ee8 | 13589 | |
b0322a85 CE |
13590 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
13591 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
8d138742 CE |
13592 | # trailing colons and then remove the whole line if VPATH becomes empty |
13593 | # (actually we leave an empty line to preserve line numbers). | |
13594 | if test "x$srcdir" = x.; then | |
b0322a85 CE |
13595 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
13596 | h | |
13597 | s/// | |
13598 | s/^/:/ | |
13599 | s/[ ]*$/:/ | |
13600 | s/:\$(srcdir):/:/g | |
13601 | s/:\${srcdir}:/:/g | |
13602 | s/:@srcdir@:/:/g | |
13603 | s/^:*// | |
8d138742 | 13604 | s/:*$// |
b0322a85 CE |
13605 | x |
13606 | s/\(=[ ]*\).*/\1/ | |
13607 | G | |
13608 | s/\n// | |
8d138742 CE |
13609 | s/^[^=]*=[ ]*$// |
13610 | }' | |
13611 | fi | |
d9898ee8 | 13612 | |
8d138742 CE |
13613 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13614 | fi # test -n "$CONFIG_FILES" | |
d9898ee8 | 13615 | |
8d138742 CE |
13616 | # Set up the scripts for CONFIG_HEADERS section. |
13617 | # No need to generate them if there are no CONFIG_HEADERS. | |
13618 | # This happens for instance with `./config.status Makefile'. | |
13619 | if test -n "$CONFIG_HEADERS"; then | |
b0322a85 | 13620 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
8d138742 CE |
13621 | BEGIN { |
13622 | _ACEOF | |
d9898ee8 | 13623 | |
8d138742 CE |
13624 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
13625 | # here-document in config.status, that substitutes the proper values into | |
13626 | # config.h.in to produce config.h. | |
d9898ee8 | 13627 | |
8d138742 CE |
13628 | # Create a delimiter string that does not exist in confdefs.h, to ease |
13629 | # handling of long lines. | |
13630 | ac_delim='%!_!# ' | |
13631 | for ac_last_try in false false :; do | |
b0322a85 CE |
13632 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
13633 | if test -z "$ac_tt"; then | |
8d138742 CE |
13634 | break |
13635 | elif $ac_last_try; then | |
b0322a85 | 13636 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
8d138742 CE |
13637 | else |
13638 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13639 | fi | |
13640 | done | |
d9898ee8 | 13641 | |
8d138742 CE |
13642 | # For the awk script, D is an array of macro values keyed by name, |
13643 | # likewise P contains macro parameters if any. Preserve backslash | |
13644 | # newline sequences. | |
d9898ee8 | 13645 | |
8d138742 CE |
13646 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
13647 | sed -n ' | |
13648 | s/.\{148\}/&'"$ac_delim"'/g | |
13649 | t rset | |
13650 | :rset | |
13651 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
13652 | t def | |
13653 | d | |
13654 | :def | |
13655 | s/\\$// | |
13656 | t bsnl | |
13657 | s/["\\]/\\&/g | |
13658 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13659 | D["\1"]=" \3"/p | |
13660 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
13661 | d | |
13662 | :bsnl | |
13663 | s/["\\]/\\&/g | |
13664 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13665 | D["\1"]=" \3\\\\\\n"\\/p | |
13666 | t cont | |
13667 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
13668 | t cont | |
13669 | d | |
13670 | :cont | |
13671 | n | |
13672 | s/.\{148\}/&'"$ac_delim"'/g | |
13673 | t clear | |
13674 | :clear | |
13675 | s/\\$// | |
13676 | t bsnlc | |
13677 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
13678 | d | |
13679 | :bsnlc | |
13680 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
13681 | b cont | |
13682 | ' <confdefs.h | sed ' | |
13683 | s/'"$ac_delim"'/"\\\ | |
13684 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
13685 | ||
13686 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13687 | for (key in D) D_is_set[key] = 1 | |
13688 | FS = "\a" | |
13689 | } | |
13690 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
13691 | line = \$ 0 | |
13692 | split(line, arg, " ") | |
13693 | if (arg[1] == "#") { | |
13694 | defundef = arg[2] | |
13695 | mac1 = arg[3] | |
13696 | } else { | |
13697 | defundef = substr(arg[1], 2) | |
13698 | mac1 = arg[2] | |
13699 | } | |
13700 | split(mac1, mac2, "(") #) | |
13701 | macro = mac2[1] | |
13702 | prefix = substr(line, 1, index(line, defundef) - 1) | |
13703 | if (D_is_set[macro]) { | |
13704 | # Preserve the white space surrounding the "#". | |
13705 | print prefix "define", macro P[macro] D[macro] | |
13706 | next | |
13707 | } else { | |
13708 | # Replace #undef with comments. This is necessary, for example, | |
13709 | # in the case of _POSIX_SOURCE, which is predefined and required | |
13710 | # on some systems where configure will not decide to define it. | |
13711 | if (defundef == "undef") { | |
13712 | print "/*", prefix defundef, macro, "*/" | |
13713 | next | |
13714 | } | |
13715 | } | |
13716 | } | |
13717 | { print } | |
13718 | _ACAWK | |
13719 | _ACEOF | |
13720 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
b0322a85 | 13721 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
8d138742 | 13722 | fi # test -n "$CONFIG_HEADERS" |
d9898ee8 | 13723 | |
13724 | ||
8d138742 CE |
13725 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
13726 | shift | |
13727 | for ac_tag | |
13728 | do | |
13729 | case $ac_tag in | |
13730 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
13731 | esac | |
13732 | case $ac_mode$ac_tag in | |
13733 | :[FHL]*:*);; | |
b0322a85 | 13734 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
8d138742 CE |
13735 | :[FH]-) ac_tag=-:-;; |
13736 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
13737 | esac | |
13738 | ac_save_IFS=$IFS | |
13739 | IFS=: | |
13740 | set x $ac_tag | |
13741 | IFS=$ac_save_IFS | |
13742 | shift | |
13743 | ac_file=$1 | |
13744 | shift | |
dd184caf | 13745 | |
8d138742 CE |
13746 | case $ac_mode in |
13747 | :L) ac_source=$1;; | |
13748 | :[FH]) | |
13749 | ac_file_inputs= | |
13750 | for ac_f | |
13751 | do | |
13752 | case $ac_f in | |
b0322a85 | 13753 | -) ac_f="$ac_tmp/stdin";; |
8d138742 CE |
13754 | *) # Look for the file first in the build tree, then in the source tree |
13755 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
13756 | # because $ac_f cannot contain `:'. | |
13757 | test -f "$ac_f" || | |
13758 | case $ac_f in | |
13759 | [\\/$]*) false;; | |
13760 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
13761 | esac || | |
b0322a85 | 13762 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
8d138742 CE |
13763 | esac |
13764 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
b0322a85 | 13765 | as_fn_append ac_file_inputs " '$ac_f'" |
8d138742 | 13766 | done |
dd184caf | 13767 | |
8d138742 CE |
13768 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
13769 | # use $as_me), people would be surprised to read: | |
13770 | # /* config.h. Generated by config.status. */ | |
13771 | configure_input='Generated from '` | |
13772 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
13773 | `' by configure.' | |
13774 | if test x"$ac_file" != x-; then | |
13775 | configure_input="$ac_file. $configure_input" | |
b0322a85 | 13776 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
8d138742 CE |
13777 | $as_echo "$as_me: creating $ac_file" >&6;} |
13778 | fi | |
13779 | # Neutralize special characters interpreted by sed in replacement strings. | |
13780 | case $configure_input in #( | |
13781 | *\&* | *\|* | *\\* ) | |
13782 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
13783 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
13784 | *) ac_sed_conf_input=$configure_input;; | |
13785 | esac | |
d9898ee8 | 13786 | |
8d138742 | 13787 | case $ac_tag in |
b0322a85 CE |
13788 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
13789 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
8d138742 CE |
13790 | esac |
13791 | ;; | |
13792 | esac | |
d9898ee8 | 13793 | |
8d138742 CE |
13794 | ac_dir=`$as_dirname -- "$ac_file" || |
13795 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13796 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
13797 | X"$ac_file" : 'X\(//\)$' \| \ | |
13798 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
13799 | $as_echo X"$ac_file" | | |
13800 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13801 | s//\1/ | |
13802 | q | |
13803 | } | |
13804 | /^X\(\/\/\)[^/].*/{ | |
13805 | s//\1/ | |
13806 | q | |
13807 | } | |
13808 | /^X\(\/\/\)$/{ | |
13809 | s//\1/ | |
13810 | q | |
13811 | } | |
13812 | /^X\(\/\).*/{ | |
13813 | s//\1/ | |
13814 | q | |
13815 | } | |
13816 | s/.*/./; q'` | |
b0322a85 | 13817 | as_dir="$ac_dir"; as_fn_mkdir_p |
8d138742 | 13818 | ac_builddir=. |
d9898ee8 | 13819 | |
8d138742 CE |
13820 | case "$ac_dir" in |
13821 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13822 | *) | |
13823 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
13824 | # A ".." for each directory in $ac_dir_suffix. | |
13825 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
13826 | case $ac_top_builddir_sub in | |
13827 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13828 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
13829 | esac ;; | |
13830 | esac | |
13831 | ac_abs_top_builddir=$ac_pwd | |
13832 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
13833 | # for backward compatibility: | |
13834 | ac_top_builddir=$ac_top_build_prefix | |
d9898ee8 | 13835 | |
8d138742 CE |
13836 | case $srcdir in |
13837 | .) # We are building in place. | |
13838 | ac_srcdir=. | |
13839 | ac_top_srcdir=$ac_top_builddir_sub | |
13840 | ac_abs_top_srcdir=$ac_pwd ;; | |
13841 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
13842 | ac_srcdir=$srcdir$ac_dir_suffix; | |
13843 | ac_top_srcdir=$srcdir | |
13844 | ac_abs_top_srcdir=$srcdir ;; | |
13845 | *) # Relative name. | |
13846 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
13847 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
13848 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
dd184caf | 13849 | esac |
8d138742 | 13850 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
d9898ee8 | 13851 | |
dd184caf | 13852 | |
8d138742 CE |
13853 | case $ac_mode in |
13854 | :F) | |
13855 | # | |
13856 | # CONFIG_FILE | |
13857 | # | |
d9898ee8 | 13858 | |
8d138742 CE |
13859 | case $INSTALL in |
13860 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
13861 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
13862 | esac | |
13863 | ac_MKDIR_P=$MKDIR_P | |
13864 | case $MKDIR_P in | |
13865 | [\\/$]* | ?:[\\/]* ) ;; | |
13866 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
13867 | esac | |
d9898ee8 | 13868 | _ACEOF |
dd184caf | 13869 | |
8d138742 CE |
13870 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13871 | # If the template does not know about datarootdir, expand it. | |
13872 | # FIXME: This hack should be removed a few years after 2.60. | |
13873 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8d138742 CE |
13874 | ac_sed_dataroot=' |
13875 | /datarootdir/ { | |
13876 | p | |
13877 | q | |
13878 | } | |
13879 | /@datadir@/p | |
13880 | /@docdir@/p | |
13881 | /@infodir@/p | |
13882 | /@localedir@/p | |
b0322a85 | 13883 | /@mandir@/p' |
8d138742 CE |
13884 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
13885 | *datarootdir*) ac_datarootdir_seen=yes;; | |
13886 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
b0322a85 | 13887 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
8d138742 CE |
13888 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
13889 | _ACEOF | |
13890 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13891 | ac_datarootdir_hack=' | |
13892 | s&@datadir@&$datadir&g | |
13893 | s&@docdir@&$docdir&g | |
13894 | s&@infodir@&$infodir&g | |
13895 | s&@localedir@&$localedir&g | |
13896 | s&@mandir@&$mandir&g | |
b0322a85 | 13897 | s&\\\${datarootdir}&$datarootdir&g' ;; |
d9898ee8 | 13898 | esac |
8d138742 | 13899 | _ACEOF |
d9898ee8 | 13900 | |
8d138742 CE |
13901 | # Neutralize VPATH when `$srcdir' = `.'. |
13902 | # Shell code in configure.ac might set extrasub. | |
13903 | # FIXME: do we really want to maintain this feature? | |
13904 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13905 | ac_sed_extra="$ac_vpsub | |
13906 | $extrasub | |
d9898ee8 | 13907 | _ACEOF |
8d138742 CE |
13908 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13909 | :t | |
13910 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
13911 | s|@configure_input@|$ac_sed_conf_input|;t t | |
13912 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
13913 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
13914 | s&@srcdir@&$ac_srcdir&;t t | |
13915 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
13916 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
13917 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
13918 | s&@builddir@&$ac_builddir&;t t | |
13919 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
13920 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
13921 | s&@INSTALL@&$ac_INSTALL&;t t | |
13922 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
13923 | $ac_datarootdir_hack | |
13924 | " | |
b0322a85 CE |
13925 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
13926 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
d9898ee8 | 13927 | |
8d138742 | 13928 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
b0322a85 CE |
13929 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
13930 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
13931 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
13932 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
13933 | which seems to be undefined. Please make sure it is defined" >&5 | |
8d138742 | 13934 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b0322a85 | 13935 | which seems to be undefined. Please make sure it is defined" >&2;} |
d9898ee8 | 13936 | |
b0322a85 | 13937 | rm -f "$ac_tmp/stdin" |
8d138742 | 13938 | case $ac_file in |
b0322a85 CE |
13939 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
13940 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
8d138742 | 13941 | esac \ |
b0322a85 | 13942 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
8d138742 CE |
13943 | ;; |
13944 | :H) | |
13945 | # | |
13946 | # CONFIG_HEADER | |
13947 | # | |
13948 | if test x"$ac_file" != x-; then | |
13949 | { | |
13950 | $as_echo "/* $configure_input */" \ | |
b0322a85 CE |
13951 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
13952 | } >"$ac_tmp/config.h" \ | |
13953 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
13954 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
13955 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
8d138742 CE |
13956 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
13957 | else | |
13958 | rm -f "$ac_file" | |
b0322a85 CE |
13959 | mv "$ac_tmp/config.h" "$ac_file" \ |
13960 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8d138742 CE |
13961 | fi |
13962 | else | |
13963 | $as_echo "/* $configure_input */" \ | |
b0322a85 CE |
13964 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
13965 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
8d138742 CE |
13966 | fi |
13967 | # Compute "$ac_file"'s index in $config_headers. | |
13968 | _am_arg="$ac_file" | |
13969 | _am_stamp_count=1 | |
13970 | for _am_header in $config_headers :; do | |
13971 | case $_am_header in | |
13972 | $_am_arg | $_am_arg:* ) | |
13973 | break ;; | |
13974 | * ) | |
13975 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
13976 | esac | |
d9898ee8 | 13977 | done |
8d138742 CE |
13978 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
13979 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13980 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
13981 | X"$_am_arg" : 'X\(//\)$' \| \ | |
13982 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
13983 | $as_echo X"$_am_arg" | | |
13984 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13985 | s//\1/ | |
13986 | q | |
13987 | } | |
13988 | /^X\(\/\/\)[^/].*/{ | |
13989 | s//\1/ | |
13990 | q | |
13991 | } | |
13992 | /^X\(\/\/\)$/{ | |
13993 | s//\1/ | |
13994 | q | |
13995 | } | |
13996 | /^X\(\/\).*/{ | |
13997 | s//\1/ | |
13998 | q | |
13999 | } | |
14000 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
14001 | ;; | |
d9898ee8 | 14002 | |
b0322a85 | 14003 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
8d138742 CE |
14004 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
14005 | ;; | |
14006 | esac | |
d9898ee8 | 14007 | |
14008 | ||
8d138742 CE |
14009 | case $ac_file$ac_mode in |
14010 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
b0322a85 | 14011 | # Older Autoconf quotes --file arguments for eval, but not when files |
8d138742 CE |
14012 | # are listed without --file. Let's play safe and only enable the eval |
14013 | # if we detect the quoting. | |
14014 | case $CONFIG_FILES in | |
14015 | *\'*) eval set x "$CONFIG_FILES" ;; | |
14016 | *) set x $CONFIG_FILES ;; | |
14017 | esac | |
14018 | shift | |
14019 | for mf | |
14020 | do | |
14021 | # Strip MF so we end up with the name of the file. | |
14022 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
14023 | # Check whether this is an Automake generated Makefile or not. | |
b0322a85 | 14024 | # We used to match only the files named 'Makefile.in', but |
8d138742 CE |
14025 | # some people rename them; so instead we look at the file content. |
14026 | # Grep'ing the first line is not enough: some people post-process | |
14027 | # each Makefile.in and add a new line on top of each file to say so. | |
14028 | # Grep'ing the whole file is not good either: AIX grep has a line | |
14029 | # limit of 2048, but all sed's we know have understand at least 4000. | |
14030 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
14031 | dirpart=`$as_dirname -- "$mf" || | |
14032 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14033 | X"$mf" : 'X\(//\)[^/]' \| \ | |
14034 | X"$mf" : 'X\(//\)$' \| \ | |
14035 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
14036 | $as_echo X"$mf" | | |
14037 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14038 | s//\1/ | |
14039 | q | |
14040 | } | |
14041 | /^X\(\/\/\)[^/].*/{ | |
14042 | s//\1/ | |
14043 | q | |
14044 | } | |
14045 | /^X\(\/\/\)$/{ | |
14046 | s//\1/ | |
14047 | q | |
14048 | } | |
14049 | /^X\(\/\).*/{ | |
14050 | s//\1/ | |
14051 | q | |
14052 | } | |
14053 | s/.*/./; q'` | |
14054 | else | |
14055 | continue | |
14056 | fi | |
14057 | # Extract the definition of DEPDIR, am__include, and am__quote | |
b0322a85 | 14058 | # from the Makefile without running 'make'. |
8d138742 CE |
14059 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
14060 | test -z "$DEPDIR" && continue | |
14061 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
b0322a85 | 14062 | test -z "$am__include" && continue |
8d138742 | 14063 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
8d138742 CE |
14064 | # Find all dependency output files, they are included files with |
14065 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
14066 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
14067 | # expansion. | |
14068 | for file in `sed -n " | |
14069 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
b0322a85 | 14070 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
8d138742 CE |
14071 | # Make sure the directory exists. |
14072 | test -f "$dirpart/$file" && continue | |
14073 | fdir=`$as_dirname -- "$file" || | |
14074 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14075 | X"$file" : 'X\(//\)[^/]' \| \ | |
14076 | X"$file" : 'X\(//\)$' \| \ | |
14077 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
14078 | $as_echo X"$file" | | |
14079 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14080 | s//\1/ | |
14081 | q | |
14082 | } | |
14083 | /^X\(\/\/\)[^/].*/{ | |
14084 | s//\1/ | |
14085 | q | |
14086 | } | |
14087 | /^X\(\/\/\)$/{ | |
14088 | s//\1/ | |
14089 | q | |
14090 | } | |
14091 | /^X\(\/\).*/{ | |
14092 | s//\1/ | |
14093 | q | |
14094 | } | |
14095 | s/.*/./; q'` | |
b0322a85 | 14096 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
8d138742 CE |
14097 | # echo "creating $dirpart/$file" |
14098 | echo '# dummy' > "$dirpart/$file" | |
14099 | done | |
14100 | done | |
14101 | } | |
14102 | ;; | |
14103 | "libtool":C) | |
d9898ee8 | 14104 | |
d50284c4 | 14105 | # See if we are running on zsh, and set the options that allow our |
8d138742 | 14106 | # commands through without removal of \ escapes. |
d50284c4 | 14107 | if test -n "${ZSH_VERSION+set}"; then |
8d138742 CE |
14108 | setopt NO_GLOB_SUBST |
14109 | fi | |
d9898ee8 | 14110 | |
d50284c4 | 14111 | cfgfile=${ofile}T |
8d138742 CE |
14112 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
14113 | $RM "$cfgfile" | |
d9898ee8 | 14114 | |
8d138742 CE |
14115 | cat <<_LT_EOF >> "$cfgfile" |
14116 | #! $SHELL | |
d50284c4 | 14117 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
8d138742 CE |
14118 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
14119 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
d50284c4 CE |
14120 | |
14121 | # Provide generalized library-building support services. | |
14122 | # Written by Gordon Matzigkeit, 1996 | |
14123 | ||
14124 | # Copyright (C) 2014 Free Software Foundation, Inc. | |
14125 | # This is free software; see the source for copying conditions. There is NO | |
14126 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
14127 | ||
14128 | # GNU Libtool is free software; you can redistribute it and/or modify | |
14129 | # it under the terms of the GNU General Public License as published by | |
14130 | # the Free Software Foundation; either version 2 of of the License, or | |
14131 | # (at your option) any later version. | |
d9898ee8 | 14132 | # |
d50284c4 CE |
14133 | # As a special exception to the GNU General Public License, if you |
14134 | # distribute this file as part of a program or library that is built | |
14135 | # using GNU Libtool, you may include this file under the same | |
14136 | # distribution terms that you use for the rest of that program. | |
8d138742 | 14137 | # |
d50284c4 CE |
14138 | # GNU Libtool is distributed in the hope that it will be useful, but |
14139 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
8d138742 CE |
14140 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14141 | # GNU General Public License for more details. | |
14142 | # | |
14143 | # You should have received a copy of the GNU General Public License | |
d50284c4 | 14144 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
dd184caf | 14145 | |
d9898ee8 | 14146 | |
8d138742 | 14147 | # The names of the tagged configurations supported by this script. |
d50284c4 CE |
14148 | available_tags='' |
14149 | ||
14150 | # Configured defaults for sys_lib_dlsearch_path munging. | |
14151 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} | |
d9898ee8 | 14152 | |
8d138742 | 14153 | # ### BEGIN LIBTOOL CONFIG |
d9898ee8 | 14154 | |
8d138742 CE |
14155 | # Which release of libtool.m4 was used? |
14156 | macro_version=$macro_version | |
14157 | macro_revision=$macro_revision | |
d9898ee8 | 14158 | |
8d138742 CE |
14159 | # Whether or not to build shared libraries. |
14160 | build_libtool_libs=$enable_shared | |
d9898ee8 | 14161 | |
8d138742 CE |
14162 | # Whether or not to build static libraries. |
14163 | build_old_libs=$enable_static | |
d9898ee8 | 14164 | |
8d138742 CE |
14165 | # What type of objects to build. |
14166 | pic_mode=$pic_mode | |
d9898ee8 | 14167 | |
8d138742 CE |
14168 | # Whether or not to optimize for fast installation. |
14169 | fast_install=$enable_fast_install | |
d9898ee8 | 14170 | |
d50284c4 CE |
14171 | # Shared archive member basename,for filename based shared library versioning on AIX. |
14172 | shared_archive_member_spec=$shared_archive_member_spec | |
14173 | ||
b0322a85 CE |
14174 | # Shell to use when invoking shell scripts. |
14175 | SHELL=$lt_SHELL | |
14176 | ||
14177 | # An echo program that protects backslashes. | |
14178 | ECHO=$lt_ECHO | |
14179 | ||
14180 | # The PATH separator for the build system. | |
14181 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
14182 | ||
8d138742 CE |
14183 | # The host system. |
14184 | host_alias=$host_alias | |
14185 | host=$host | |
14186 | host_os=$host_os | |
d9898ee8 | 14187 | |
8d138742 CE |
14188 | # The build system. |
14189 | build_alias=$build_alias | |
14190 | build=$build | |
14191 | build_os=$build_os | |
d9898ee8 | 14192 | |
8d138742 CE |
14193 | # A sed program that does not truncate output. |
14194 | SED=$lt_SED | |
dd184caf | 14195 | |
8d138742 CE |
14196 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
14197 | Xsed="\$SED -e 1s/^X//" | |
dd184caf | 14198 | |
8d138742 CE |
14199 | # A grep program that handles long lines. |
14200 | GREP=$lt_GREP | |
dd184caf | 14201 | |
8d138742 CE |
14202 | # An ERE matcher. |
14203 | EGREP=$lt_EGREP | |
dd184caf | 14204 | |
8d138742 CE |
14205 | # A literal string matcher. |
14206 | FGREP=$lt_FGREP | |
dd184caf | 14207 | |
8d138742 CE |
14208 | # A BSD- or MS-compatible name lister. |
14209 | NM=$lt_NM | |
dd184caf | 14210 | |
8d138742 CE |
14211 | # Whether we need soft or hard links. |
14212 | LN_S=$lt_LN_S | |
d9898ee8 | 14213 | |
8d138742 CE |
14214 | # What is the maximum length of a command? |
14215 | max_cmd_len=$max_cmd_len | |
d9898ee8 | 14216 | |
8d138742 CE |
14217 | # Object file suffix (normally "o"). |
14218 | objext=$ac_objext | |
d9898ee8 | 14219 | |
8d138742 CE |
14220 | # Executable file suffix (normally ""). |
14221 | exeext=$exeext | |
dd184caf | 14222 | |
8d138742 CE |
14223 | # whether the shell understands "unset". |
14224 | lt_unset=$lt_unset | |
dd184caf | 14225 | |
8d138742 CE |
14226 | # turn spaces into newlines. |
14227 | SP2NL=$lt_lt_SP2NL | |
dd184caf | 14228 | |
8d138742 CE |
14229 | # turn newlines into spaces. |
14230 | NL2SP=$lt_lt_NL2SP | |
d9898ee8 | 14231 | |
b0322a85 CE |
14232 | # convert \$build file names to \$host format. |
14233 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
14234 | ||
14235 | # convert \$build files to toolchain format. | |
14236 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
d9898ee8 | 14237 | |
8d138742 CE |
14238 | # An object symbol dumper. |
14239 | OBJDUMP=$lt_OBJDUMP | |
d9898ee8 | 14240 | |
8d138742 CE |
14241 | # Method to check whether dependent libraries are shared objects. |
14242 | deplibs_check_method=$lt_deplibs_check_method | |
d9898ee8 | 14243 | |
b0322a85 | 14244 | # Command to use when deplibs_check_method = "file_magic". |
8d138742 | 14245 | file_magic_cmd=$lt_file_magic_cmd |
d9898ee8 | 14246 | |
b0322a85 CE |
14247 | # How to find potential files when deplibs_check_method = "file_magic". |
14248 | file_magic_glob=$lt_file_magic_glob | |
14249 | ||
14250 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
14251 | want_nocaseglob=$lt_want_nocaseglob | |
14252 | ||
14253 | # DLL creation program. | |
14254 | DLLTOOL=$lt_DLLTOOL | |
14255 | ||
14256 | # Command to associate shared and link libraries. | |
14257 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
14258 | ||
8d138742 CE |
14259 | # The archiver. |
14260 | AR=$lt_AR | |
b0322a85 CE |
14261 | |
14262 | # Flags to create an archive. | |
8d138742 | 14263 | AR_FLAGS=$lt_AR_FLAGS |
d9898ee8 | 14264 | |
b0322a85 CE |
14265 | # How to feed a file listing to the archiver. |
14266 | archiver_list_spec=$lt_archiver_list_spec | |
14267 | ||
8d138742 CE |
14268 | # A symbol stripping program. |
14269 | STRIP=$lt_STRIP | |
d9898ee8 | 14270 | |
8d138742 CE |
14271 | # Commands used to install an old-style archive. |
14272 | RANLIB=$lt_RANLIB | |
14273 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
14274 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
d9898ee8 | 14275 | |
b0322a85 CE |
14276 | # Whether to use a lock for old archive extraction. |
14277 | lock_old_archive_extraction=$lock_old_archive_extraction | |
14278 | ||
8d138742 CE |
14279 | # A C compiler. |
14280 | LTCC=$lt_CC | |
d9898ee8 | 14281 | |
8d138742 CE |
14282 | # LTCC compiler flags. |
14283 | LTCFLAGS=$lt_CFLAGS | |
d9898ee8 | 14284 | |
8d138742 CE |
14285 | # Take the output of nm and produce a listing of raw symbols and C names. |
14286 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
d9898ee8 | 14287 | |
8d138742 CE |
14288 | # Transform the output of nm in a proper C declaration. |
14289 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
d9898ee8 | 14290 | |
d50284c4 CE |
14291 | # Transform the output of nm into a list of symbols to manually relocate. |
14292 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import | |
14293 | ||
8d138742 CE |
14294 | # Transform the output of nm in a C name address pair. |
14295 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
d9898ee8 | 14296 | |
8d138742 CE |
14297 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
14298 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
dd184caf | 14299 | |
d50284c4 CE |
14300 | # The name lister interface. |
14301 | nm_interface=$lt_lt_cv_nm_interface | |
14302 | ||
b0322a85 CE |
14303 | # Specify filename containing input files for \$NM. |
14304 | nm_file_list_spec=$lt_nm_file_list_spec | |
8d138742 | 14305 | |
d50284c4 | 14306 | # The root where to search for dependent libraries,and where our libraries should be installed. |
b0322a85 | 14307 | lt_sysroot=$lt_sysroot |
8d138742 | 14308 | |
d50284c4 CE |
14309 | # Command to truncate a binary pipe. |
14310 | lt_truncate_bin=$lt_lt_cv_truncate_bin | |
14311 | ||
b0322a85 CE |
14312 | # The name of the directory that contains temporary libtool files. |
14313 | objdir=$objdir | |
d9898ee8 | 14314 | |
8d138742 CE |
14315 | # Used to examine libraries when file_magic_cmd begins with "file". |
14316 | MAGIC_CMD=$MAGIC_CMD | |
d9898ee8 | 14317 | |
8d138742 CE |
14318 | # Must we lock files when doing compilation? |
14319 | need_locks=$lt_need_locks | |
d9898ee8 | 14320 | |
b0322a85 CE |
14321 | # Manifest tool. |
14322 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
14323 | ||
8d138742 CE |
14324 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
14325 | DSYMUTIL=$lt_DSYMUTIL | |
d9898ee8 | 14326 | |
8d138742 CE |
14327 | # Tool to change global to local symbols on Mac OS X. |
14328 | NMEDIT=$lt_NMEDIT | |
d9898ee8 | 14329 | |
8d138742 CE |
14330 | # Tool to manipulate fat objects and archives on Mac OS X. |
14331 | LIPO=$lt_LIPO | |
d9898ee8 | 14332 | |
8d138742 CE |
14333 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
14334 | OTOOL=$lt_OTOOL | |
d9898ee8 | 14335 | |
8d138742 CE |
14336 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
14337 | OTOOL64=$lt_OTOOL64 | |
d9898ee8 | 14338 | |
8d138742 CE |
14339 | # Old archive suffix (normally "a"). |
14340 | libext=$libext | |
d9898ee8 | 14341 | |
8d138742 CE |
14342 | # Shared library suffix (normally ".so"). |
14343 | shrext_cmds=$lt_shrext_cmds | |
d9898ee8 | 14344 | |
8d138742 CE |
14345 | # The commands to extract the exported symbol list from a shared archive. |
14346 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
d9898ee8 | 14347 | |
8d138742 CE |
14348 | # Variables whose values should be saved in libtool wrapper scripts and |
14349 | # restored at link time. | |
14350 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
dd184caf | 14351 | |
8d138742 CE |
14352 | # Do we need the "lib" prefix for modules? |
14353 | need_lib_prefix=$need_lib_prefix | |
d9898ee8 | 14354 | |
8d138742 CE |
14355 | # Do we need a version for libraries? |
14356 | need_version=$need_version | |
d9898ee8 | 14357 | |
8d138742 CE |
14358 | # Library versioning type. |
14359 | version_type=$version_type | |
d9898ee8 | 14360 | |
8d138742 CE |
14361 | # Shared library runtime path variable. |
14362 | runpath_var=$runpath_var | |
d9898ee8 | 14363 | |
8d138742 CE |
14364 | # Shared library path variable. |
14365 | shlibpath_var=$shlibpath_var | |
d9898ee8 | 14366 | |
8d138742 CE |
14367 | # Is shlibpath searched before the hard-coded library search path? |
14368 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
d9898ee8 | 14369 | |
8d138742 CE |
14370 | # Format of library name prefix. |
14371 | libname_spec=$lt_libname_spec | |
d9898ee8 | 14372 | |
8d138742 CE |
14373 | # List of archive names. First name is the real one, the rest are links. |
14374 | # The last name is the one that the linker finds with -lNAME | |
14375 | library_names_spec=$lt_library_names_spec | |
d9898ee8 | 14376 | |
8d138742 CE |
14377 | # The coded name of the library, if different from the real name. |
14378 | soname_spec=$lt_soname_spec | |
d9898ee8 | 14379 | |
b0322a85 CE |
14380 | # Permission mode override for installation of shared libraries. |
14381 | install_override_mode=$lt_install_override_mode | |
14382 | ||
8d138742 CE |
14383 | # Command to use after installation of a shared archive. |
14384 | postinstall_cmds=$lt_postinstall_cmds | |
d9898ee8 | 14385 | |
8d138742 CE |
14386 | # Command to use after uninstallation of a shared archive. |
14387 | postuninstall_cmds=$lt_postuninstall_cmds | |
d9898ee8 | 14388 | |
8d138742 CE |
14389 | # Commands used to finish a libtool library installation in a directory. |
14390 | finish_cmds=$lt_finish_cmds | |
dd184caf | 14391 | |
8d138742 CE |
14392 | # As "finish_cmds", except a single script fragment to be evaled but |
14393 | # not shown. | |
14394 | finish_eval=$lt_finish_eval | |
d9898ee8 | 14395 | |
8d138742 CE |
14396 | # Whether we should hardcode library paths into libraries. |
14397 | hardcode_into_libs=$hardcode_into_libs | |
d9898ee8 | 14398 | |
8d138742 CE |
14399 | # Compile-time system search path for libraries. |
14400 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
d9898ee8 | 14401 | |
d50284c4 CE |
14402 | # Detected run-time system search path for libraries. |
14403 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path | |
14404 | ||
14405 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. | |
14406 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path | |
d9898ee8 | 14407 | |
8d138742 CE |
14408 | # Whether dlopen is supported. |
14409 | dlopen_support=$enable_dlopen | |
d9898ee8 | 14410 | |
8d138742 CE |
14411 | # Whether dlopen of programs is supported. |
14412 | dlopen_self=$enable_dlopen_self | |
d9898ee8 | 14413 | |
8d138742 CE |
14414 | # Whether dlopen of statically linked programs is supported. |
14415 | dlopen_self_static=$enable_dlopen_self_static | |
d9898ee8 | 14416 | |
8d138742 CE |
14417 | # Commands to strip libraries. |
14418 | old_striplib=$lt_old_striplib | |
14419 | striplib=$lt_striplib | |
d9898ee8 | 14420 | |
d9898ee8 | 14421 | |
8d138742 CE |
14422 | # The linker used to build libraries. |
14423 | LD=$lt_LD | |
d9898ee8 | 14424 | |
b0322a85 CE |
14425 | # How to create reloadable object files. |
14426 | reload_flag=$lt_reload_flag | |
14427 | reload_cmds=$lt_reload_cmds | |
14428 | ||
8d138742 CE |
14429 | # Commands used to build an old-style archive. |
14430 | old_archive_cmds=$lt_old_archive_cmds | |
d9898ee8 | 14431 | |
8d138742 CE |
14432 | # A language specific compiler. |
14433 | CC=$lt_compiler | |
d9898ee8 | 14434 | |
8d138742 CE |
14435 | # Is the compiler the GNU compiler? |
14436 | with_gcc=$GCC | |
dd184caf | 14437 | |
8d138742 CE |
14438 | # Compiler flag to turn off builtin functions. |
14439 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dd184caf | 14440 | |
8d138742 CE |
14441 | # Additional compiler flags for building library objects. |
14442 | pic_flag=$lt_lt_prog_compiler_pic | |
dd184caf | 14443 | |
b0322a85 CE |
14444 | # How to pass a linker flag through the compiler. |
14445 | wl=$lt_lt_prog_compiler_wl | |
14446 | ||
8d138742 CE |
14447 | # Compiler flag to prevent dynamic linking. |
14448 | link_static_flag=$lt_lt_prog_compiler_static | |
d9898ee8 | 14449 | |
8d138742 CE |
14450 | # Does compiler simultaneously support -c and -o options? |
14451 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
14452 | ||
14453 | # Whether or not to add -lc for building shared libraries. | |
14454 | build_libtool_need_lc=$archive_cmds_need_lc | |
14455 | ||
14456 | # Whether or not to disallow shared libs when runtime libs are static. | |
14457 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
14458 | ||
14459 | # Compiler flag to allow reflexive dlopens. | |
14460 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
d9898ee8 | 14461 | |
8d138742 CE |
14462 | # Compiler flag to generate shared objects directly from archives. |
14463 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
d9898ee8 | 14464 | |
8d138742 CE |
14465 | # Whether the compiler copes with passing no objects directly. |
14466 | compiler_needs_object=$lt_compiler_needs_object | |
d9898ee8 | 14467 | |
8d138742 CE |
14468 | # Create an old-style archive from a shared archive. |
14469 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
d9898ee8 | 14470 | |
8d138742 CE |
14471 | # Create a temporary old-style archive to link instead of a shared archive. |
14472 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
d9898ee8 | 14473 | |
8d138742 CE |
14474 | # Commands used to build a shared archive. |
14475 | archive_cmds=$lt_archive_cmds | |
14476 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
dd184caf | 14477 | |
8d138742 CE |
14478 | # Commands used to build a loadable module if different from building |
14479 | # a shared archive. | |
14480 | module_cmds=$lt_module_cmds | |
14481 | module_expsym_cmds=$lt_module_expsym_cmds | |
dd184caf | 14482 | |
8d138742 CE |
14483 | # Whether we are building with GNU ld or not. |
14484 | with_gnu_ld=$lt_with_gnu_ld | |
dd184caf | 14485 | |
8d138742 CE |
14486 | # Flag that allows shared libraries with undefined symbols to be built. |
14487 | allow_undefined_flag=$lt_allow_undefined_flag | |
dd184caf | 14488 | |
8d138742 CE |
14489 | # Flag that enforces no undefined symbols. |
14490 | no_undefined_flag=$lt_no_undefined_flag | |
dd184caf | 14491 | |
8d138742 CE |
14492 | # Flag to hardcode \$libdir into a binary during linking. |
14493 | # This must work even if \$libdir does not exist | |
14494 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
dd184caf | 14495 | |
8d138742 CE |
14496 | # Whether we need a single "-rpath" flag with a separated argument. |
14497 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
dd184caf | 14498 | |
d50284c4 | 14499 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
8d138742 CE |
14500 | # DIR into the resulting binary. |
14501 | hardcode_direct=$hardcode_direct | |
dd184caf | 14502 | |
d50284c4 | 14503 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
8d138742 | 14504 | # DIR into the resulting binary and the resulting library dependency is |
d50284c4 | 14505 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
8d138742 CE |
14506 | # library is relocated. |
14507 | hardcode_direct_absolute=$hardcode_direct_absolute | |
d9898ee8 | 14508 | |
8d138742 CE |
14509 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
14510 | # into the resulting binary. | |
14511 | hardcode_minus_L=$hardcode_minus_L | |
dd184caf | 14512 | |
8d138742 CE |
14513 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
14514 | # into the resulting binary. | |
14515 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
dd184caf | 14516 | |
8d138742 CE |
14517 | # Set to "yes" if building a shared library automatically hardcodes DIR |
14518 | # into the library and all subsequent libraries and executables linked | |
14519 | # against it. | |
14520 | hardcode_automatic=$hardcode_automatic | |
dd184caf | 14521 | |
8d138742 CE |
14522 | # Set to yes if linker adds runtime paths of dependent libraries |
14523 | # to runtime path list. | |
14524 | inherit_rpath=$inherit_rpath | |
dd184caf | 14525 | |
8d138742 CE |
14526 | # Whether libtool must link a program against all its dependency libraries. |
14527 | link_all_deplibs=$link_all_deplibs | |
dd184caf | 14528 | |
8d138742 CE |
14529 | # Set to "yes" if exported symbols are required. |
14530 | always_export_symbols=$always_export_symbols | |
dd184caf | 14531 | |
8d138742 CE |
14532 | # The commands to list exported symbols. |
14533 | export_symbols_cmds=$lt_export_symbols_cmds | |
d9898ee8 | 14534 | |
8d138742 CE |
14535 | # Symbols that should not be listed in the preloaded symbols. |
14536 | exclude_expsyms=$lt_exclude_expsyms | |
dd184caf | 14537 | |
8d138742 CE |
14538 | # Symbols that must always be exported. |
14539 | include_expsyms=$lt_include_expsyms | |
d9898ee8 | 14540 | |
8d138742 CE |
14541 | # Commands necessary for linking programs (against libraries) with templates. |
14542 | prelink_cmds=$lt_prelink_cmds | |
d9898ee8 | 14543 | |
b0322a85 CE |
14544 | # Commands necessary for finishing linking programs. |
14545 | postlink_cmds=$lt_postlink_cmds | |
14546 | ||
8d138742 CE |
14547 | # Specify filename containing input files. |
14548 | file_list_spec=$lt_file_list_spec | |
14549 | ||
14550 | # How to hardcode a shared library path into an executable. | |
14551 | hardcode_action=$hardcode_action | |
d9898ee8 | 14552 | |
8d138742 | 14553 | # ### END LIBTOOL CONFIG |
d9898ee8 | 14554 | |
d50284c4 CE |
14555 | _LT_EOF |
14556 | ||
14557 | cat <<'_LT_EOF' >> "$cfgfile" | |
14558 | ||
14559 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE | |
14560 | ||
14561 | # func_munge_path_list VARIABLE PATH | |
14562 | # ----------------------------------- | |
14563 | # VARIABLE is name of variable containing _space_ separated list of | |
14564 | # directories to be munged by the contents of PATH, which is string | |
14565 | # having a format: | |
14566 | # "DIR[:DIR]:" | |
14567 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
14568 | # ":DIR[:DIR]" | |
14569 | # string "DIR[ DIR]" will be appended to VARIABLE | |
14570 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
14571 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
14572 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
14573 | # "DIR[:DIR]" | |
14574 | # VARIABLE will be replaced by "DIR[ DIR]" | |
14575 | func_munge_path_list () | |
14576 | { | |
14577 | case x$2 in | |
14578 | x) | |
14579 | ;; | |
14580 | *:) | |
14581 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
14582 | ;; | |
14583 | x:*) | |
14584 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
14585 | ;; | |
14586 | *::*) | |
14587 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
14588 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
14589 | ;; | |
14590 | *) | |
14591 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
14592 | ;; | |
14593 | esac | |
14594 | } | |
14595 | ||
14596 | ||
14597 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
14598 | func_cc_basename () | |
14599 | { | |
14600 | for cc_temp in $*""; do | |
14601 | case $cc_temp in | |
14602 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
14603 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
14604 | \-*) ;; | |
14605 | *) break;; | |
14606 | esac | |
14607 | done | |
14608 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
14609 | } | |
14610 | ||
14611 | ||
14612 | # ### END FUNCTIONS SHARED WITH CONFIGURE | |
14613 | ||
8d138742 | 14614 | _LT_EOF |
d9898ee8 | 14615 | |
8d138742 CE |
14616 | case $host_os in |
14617 | aix3*) | |
14618 | cat <<\_LT_EOF >> "$cfgfile" | |
14619 | # AIX sometimes has problems with the GCC collect2 program. For some | |
14620 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
14621 | # vanish in a puff of smoke. | |
d50284c4 | 14622 | if test set != "${COLLECT_NAMES+set}"; then |
8d138742 CE |
14623 | COLLECT_NAMES= |
14624 | export COLLECT_NAMES | |
14625 | fi | |
14626 | _LT_EOF | |
14627 | ;; | |
d9898ee8 | 14628 | esac |
8d138742 CE |
14629 | |
14630 | ||
d50284c4 | 14631 | ltmain=$ac_aux_dir/ltmain.sh |
8d138742 CE |
14632 | |
14633 | ||
14634 | # We use sed instead of cat because bash on DJGPP gets confused if | |
14635 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
14636 | # text mode, it properly converts lines to CR/LF. This bash problem | |
14637 | # is reportedly fixed, but why not run on old versions too? | |
b0322a85 CE |
14638 | sed '$q' "$ltmain" >> "$cfgfile" \ |
14639 | || (rm -f "$cfgfile"; exit 1) | |
14640 | ||
b0322a85 | 14641 | mv -f "$cfgfile" "$ofile" || |
8d138742 CE |
14642 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
14643 | chmod +x "$ofile" | |
14644 | ||
d9898ee8 | 14645 | ;; |
dd184caf | 14646 | |
d9898ee8 | 14647 | esac |
dd184caf | 14648 | done # for ac_tag |
d9898ee8 | 14649 | |
d9898ee8 | 14650 | |
b0322a85 | 14651 | as_fn_exit 0 |
d9898ee8 | 14652 | _ACEOF |
d9898ee8 | 14653 | ac_clean_files=$ac_clean_files_save |
14654 | ||
8d138742 | 14655 | test $ac_write_fail = 0 || |
b0322a85 | 14656 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
8d138742 | 14657 | |
d9898ee8 | 14658 | |
14659 | # configure is writing to config.log, and then calls config.status. | |
14660 | # config.status does its own redirection, appending to config.log. | |
14661 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
14662 | # by configure, so config.status won't be able to write to it; its | |
14663 | # output is simply discarded. So we exec the FD to /dev/null, | |
14664 | # effectively closing config.log, so it can be properly (re)opened and | |
14665 | # appended to by config.status. When coming back to configure, we | |
14666 | # need to make the FD available again. | |
14667 | if test "$no_create" != yes; then | |
14668 | ac_cs_success=: | |
14669 | ac_config_status_args= | |
14670 | test "$silent" = yes && | |
14671 | ac_config_status_args="$ac_config_status_args --quiet" | |
14672 | exec 5>/dev/null | |
14673 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
14674 | exec 5>>config.log | |
14675 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
14676 | # would make configure fail if this is the last instruction. | |
b0322a85 | 14677 | $ac_cs_success || as_fn_exit 1 |
d9898ee8 | 14678 | fi |
8d138742 | 14679 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
b0322a85 | 14680 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
8d138742 CE |
14681 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
14682 | fi | |
d9898ee8 | 14683 |