]>
Commit | Line | Data |
---|---|---|
dfac8a13 | 1 | #! /bin/sh |
dfac8a13 | 2 | # Guess values for system-dependent variables and create Makefiles. |
22e05272 JM |
3 | # Generated by GNU Autoconf 2.69 for zlib 1.1.4. |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
5213506e | 7 | # |
c45f211e | 8 | # |
dfac8a13 TT |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
5213506e RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
a8aea176 | 14 | |
5213506e RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
a8aea176 NN |
18 | emulate sh |
19 | NULLCMD=: | |
5213506e | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
a8aea176 NN |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
a8aea176 | 31 | fi |
a8aea176 | 32 | |
5213506e RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
a8aea176 NN |
79 | fi |
80 | ||
81 | ||
5213506e RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 90 | as_myself= |
5213506e RW |
91 | case $0 in #(( |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
a8aea176 NN |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
5213506e RW |
127 | LC_ALL=C |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
22e05272 JM |
135 | # Use a proper internal environment variable to ensure we don't fall |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
5213506e RW |
160 | if test "x$CONFIG_SHELL" = x; then |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
22e05272 JM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
5213506e RW |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
43e02a8a RW |
199 | |
200 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
201 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
202 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
203 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
204 | PATH=/empty FPATH=/empty; export PATH FPATH | |
205 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
206 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 | |
5213506e RW |
207 | test \$(( 1 + 1 )) = 2 || exit 1" |
208 | if (eval "$as_required") 2>/dev/null; then : | |
209 | as_have_required=yes | |
210 | else | |
211 | as_have_required=no | |
212 | fi | |
213 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
214 | ||
215 | else | |
216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
217 | as_found=false | |
218 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
a8aea176 | 219 | do |
5213506e RW |
220 | IFS=$as_save_IFS |
221 | test -z "$as_dir" && as_dir=. | |
222 | as_found=: | |
223 | case $as_dir in #( | |
224 | /*) | |
225 | for as_base in sh bash ksh sh5; do | |
226 | # Try only shells that exist, to save several forks. | |
227 | as_shell=$as_dir/$as_base | |
228 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
229 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
230 | CONFIG_SHELL=$as_shell as_have_required=yes | |
231 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
232 | break 2 | |
233 | fi | |
234 | fi | |
235 | done;; | |
236 | esac | |
237 | as_found=false | |
238 | done | |
239 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
240 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
241 | CONFIG_SHELL=$SHELL as_have_required=yes | |
242 | fi; } | |
243 | IFS=$as_save_IFS | |
244 | ||
245 | ||
246 | if test "x$CONFIG_SHELL" != x; then : | |
22e05272 JM |
247 | export CONFIG_SHELL |
248 | # We cannot yet assume a decent shell, so we have to provide a | |
249 | # neutralization value for shells without unset; and this also | |
250 | # works around shells that cannot unset nonexistent variables. | |
251 | # Preserve -v and -x to the replacement shell. | |
252 | BASH_ENV=/dev/null | |
253 | ENV=/dev/null | |
254 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
255 | case $- in # (((( | |
256 | *v*x* | *x*v* ) as_opts=-vx ;; | |
257 | *v* ) as_opts=-v ;; | |
258 | *x* ) as_opts=-x ;; | |
259 | * ) as_opts= ;; | |
260 | esac | |
261 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
262 | # Admittedly, this is quite paranoid, since all the known shells bail | |
263 | # out after a failed `exec'. | |
264 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
265 | exit 255 | |
5213506e RW |
266 | fi |
267 | ||
268 | if test x$as_have_required = xno; then : | |
269 | $as_echo "$0: This script requires a shell more modern than all" | |
270 | $as_echo "$0: the shells that I found on your system." | |
271 | if test x${ZSH_VERSION+set} = xset ; then | |
272 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
273 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
a8aea176 | 274 | else |
5213506e RW |
275 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
276 | $0: including any error possibly output before this | |
277 | $0: message. Then install a modern shell, or manually run | |
278 | $0: the script under such a shell if you do have one." | |
a8aea176 | 279 | fi |
5213506e RW |
280 | exit 1 |
281 | fi | |
282 | fi | |
283 | fi | |
284 | SHELL=${CONFIG_SHELL-/bin/sh} | |
285 | export SHELL | |
286 | # Unset more variables known to interfere with behavior of common tools. | |
287 | CLICOLOR_FORCE= GREP_OPTIONS= | |
288 | unset CLICOLOR_FORCE GREP_OPTIONS | |
289 | ||
290 | ## --------------------- ## | |
291 | ## M4sh Shell Functions. ## | |
292 | ## --------------------- ## | |
293 | # as_fn_unset VAR | |
294 | # --------------- | |
295 | # Portably unset VAR. | |
296 | as_fn_unset () | |
297 | { | |
298 | { eval $1=; unset $1;} | |
299 | } | |
300 | as_unset=as_fn_unset | |
301 | ||
302 | # as_fn_set_status STATUS | |
303 | # ----------------------- | |
304 | # Set $? to STATUS, without forking. | |
305 | as_fn_set_status () | |
306 | { | |
307 | return $1 | |
308 | } # as_fn_set_status | |
309 | ||
310 | # as_fn_exit STATUS | |
311 | # ----------------- | |
312 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
313 | as_fn_exit () | |
314 | { | |
315 | set +e | |
316 | as_fn_set_status $1 | |
317 | exit $1 | |
318 | } # as_fn_exit | |
319 | ||
320 | # as_fn_mkdir_p | |
321 | # ------------- | |
322 | # Create "$as_dir" as a directory, including parents if necessary. | |
323 | as_fn_mkdir_p () | |
324 | { | |
325 | ||
326 | case $as_dir in #( | |
327 | -*) as_dir=./$as_dir;; | |
328 | esac | |
329 | test -d "$as_dir" || eval $as_mkdir_p || { | |
330 | as_dirs= | |
331 | while :; do | |
332 | case $as_dir in #( | |
333 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
334 | *) as_qdir=$as_dir;; | |
335 | esac | |
336 | as_dirs="'$as_qdir' $as_dirs" | |
337 | as_dir=`$as_dirname -- "$as_dir" || | |
338 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
339 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
340 | X"$as_dir" : 'X\(//\)$' \| \ | |
341 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
342 | $as_echo X"$as_dir" | | |
343 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\/\)[^/].*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | /^X\(\/\/\)$/{ | |
352 | s//\1/ | |
353 | q | |
354 | } | |
355 | /^X\(\/\).*/{ | |
356 | s//\1/ | |
357 | q | |
358 | } | |
359 | s/.*/./; q'` | |
360 | test -d "$as_dir" && break | |
361 | done | |
362 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 363 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e RW |
364 | |
365 | ||
366 | } # as_fn_mkdir_p | |
22e05272 JM |
367 | |
368 | # as_fn_executable_p FILE | |
369 | # ----------------------- | |
370 | # Test if FILE is an executable regular file. | |
371 | as_fn_executable_p () | |
372 | { | |
373 | test -f "$1" && test -x "$1" | |
374 | } # as_fn_executable_p | |
5213506e RW |
375 | # as_fn_append VAR VALUE |
376 | # ---------------------- | |
377 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
378 | # advantage of any shell optimizations that allow amortized linear growth over | |
379 | # repeated appends, instead of the typical quadratic growth present in naive | |
380 | # implementations. | |
381 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
382 | eval 'as_fn_append () | |
383 | { | |
384 | eval $1+=\$2 | |
385 | }' | |
386 | else | |
387 | as_fn_append () | |
388 | { | |
389 | eval $1=\$$1\$2 | |
390 | } | |
391 | fi # as_fn_append | |
392 | ||
393 | # as_fn_arith ARG... | |
394 | # ------------------ | |
395 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
396 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
397 | # must be portable across $(()) and expr. | |
398 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
399 | eval 'as_fn_arith () | |
400 | { | |
401 | as_val=$(( $* )) | |
402 | }' | |
403 | else | |
404 | as_fn_arith () | |
405 | { | |
406 | as_val=`expr "$@" || test $? -eq 1` | |
407 | } | |
408 | fi # as_fn_arith | |
a8aea176 | 409 | |
5213506e | 410 | |
22e05272 JM |
411 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
412 | # ---------------------------------------- | |
5213506e RW |
413 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
414 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 415 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
416 | as_fn_error () |
417 | { | |
22e05272 JM |
418 | as_status=$1; test $as_status -eq 0 && as_status=1 |
419 | if test "$4"; then | |
420 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
421 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
5213506e | 422 | fi |
22e05272 | 423 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
424 | as_fn_exit $as_status |
425 | } # as_fn_error | |
426 | ||
427 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
428 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
a8aea176 NN |
429 | as_expr=expr |
430 | else | |
431 | as_expr=false | |
432 | fi | |
433 | ||
5213506e | 434 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
a8aea176 NN |
435 | as_basename=basename |
436 | else | |
437 | as_basename=false | |
438 | fi | |
439 | ||
5213506e RW |
440 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
441 | as_dirname=dirname | |
442 | else | |
443 | as_dirname=false | |
444 | fi | |
a8aea176 | 445 | |
5213506e | 446 | as_me=`$as_basename -- "$0" || |
a8aea176 NN |
447 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
448 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
449 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
450 | $as_echo X/"$0" | | |
451 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | /^X\/\(\/\/\)$/{ | |
456 | s//\1/ | |
457 | q | |
458 | } | |
459 | /^X\/\(\/\).*/{ | |
460 | s//\1/ | |
461 | q | |
462 | } | |
463 | s/.*/./; q'` | |
a8aea176 | 464 | |
a8aea176 NN |
465 | # Avoid depending upon Character Ranges. |
466 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
467 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
468 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
469 | as_cr_digits='0123456789' | |
470 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
471 | ||
a8aea176 | 472 | |
5213506e RW |
473 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
474 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
475 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
476 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
477 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
478 | sed -n ' | |
479 | p | |
480 | /[$]LINENO/= | |
481 | ' <$as_myself | | |
a8aea176 | 482 | sed ' |
5213506e RW |
483 | s/[$]LINENO.*/&-/ |
484 | t lineno | |
485 | b | |
486 | :lineno | |
a8aea176 | 487 | N |
5213506e RW |
488 | :loop |
489 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
a8aea176 | 490 | t loop |
5213506e | 491 | s/-\n.*// |
a8aea176 | 492 | ' >$as_me.lineno && |
5213506e RW |
493 | chmod +x "$as_me.lineno" || |
494 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
a8aea176 | 495 | |
22e05272 JM |
496 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
497 | # already done that, so ensure we don't try to do so again and fall | |
498 | # in an infinite loop. This has already happened in practice. | |
499 | _as_can_reexec=no; export _as_can_reexec | |
a8aea176 NN |
500 | # Don't try to exec as it changes $[0], causing all sort of problems |
501 | # (the dirname of $[0] is not the place where we might find the | |
5213506e RW |
502 | # original and so on. Autoconf is especially sensitive to this). |
503 | . "./$as_me.lineno" | |
a8aea176 NN |
504 | # Exit status is that of the last command. |
505 | exit | |
506 | } | |
dfac8a13 | 507 | |
5213506e RW |
508 | ECHO_C= ECHO_N= ECHO_T= |
509 | case `echo -n x` in #((((( | |
510 | -n*) | |
511 | case `echo 'xy\c'` in | |
512 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
513 | xy) ECHO_C='\c';; | |
514 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
515 | ECHO_T=' ';; | |
516 | esac;; | |
517 | *) | |
518 | ECHO_N='-n';; | |
a8aea176 NN |
519 | esac |
520 | ||
5213506e RW |
521 | rm -f conf$$ conf$$.exe conf$$.file |
522 | if test -d conf$$.dir; then | |
523 | rm -f conf$$.dir/conf$$.file | |
a8aea176 | 524 | else |
5213506e RW |
525 | rm -f conf$$.dir |
526 | mkdir conf$$.dir 2>/dev/null | |
a8aea176 | 527 | fi |
5213506e RW |
528 | if (echo >conf$$.file) 2>/dev/null; then |
529 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
a8aea176 | 530 | as_ln_s='ln -s' |
5213506e RW |
531 | # ... but there are two gotchas: |
532 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
533 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 534 | # In both cases, we have to default to `cp -pR'. |
5213506e | 535 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 536 | as_ln_s='cp -pR' |
5213506e RW |
537 | elif ln conf$$.file conf$$ 2>/dev/null; then |
538 | as_ln_s=ln | |
539 | else | |
22e05272 | 540 | as_ln_s='cp -pR' |
a8aea176 | 541 | fi |
a8aea176 | 542 | else |
22e05272 | 543 | as_ln_s='cp -pR' |
a8aea176 | 544 | fi |
5213506e RW |
545 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
546 | rmdir conf$$.dir 2>/dev/null | |
a8aea176 NN |
547 | |
548 | if mkdir -p . 2>/dev/null; then | |
5213506e | 549 | as_mkdir_p='mkdir -p "$as_dir"' |
a8aea176 NN |
550 | else |
551 | test -d ./-p && rmdir ./-p | |
552 | as_mkdir_p=false | |
553 | fi | |
554 | ||
22e05272 JM |
555 | as_test_x='test -x' |
556 | as_executable_p=as_fn_executable_p | |
a8aea176 NN |
557 | |
558 | # Sed expression to map a string onto a valid CPP name. | |
559 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
560 | ||
561 | # Sed expression to map a string onto a valid variable name. | |
562 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
563 | ||
1cf3d07d SE |
564 | SHELL=${CONFIG_SHELL-/bin/sh} |
565 | ||
1cf3d07d | 566 | |
22e05272 JM |
567 | test -n "$DJDIR" || exec 7<&0 </dev/null |
568 | exec 6>&1 | |
5213506e | 569 | |
a8aea176 | 570 | # Name of the host. |
22e05272 | 571 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
a8aea176 NN |
572 | # so uname gets run too. |
573 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
574 | ||
a8aea176 NN |
575 | # |
576 | # Initializations. | |
577 | # | |
dfac8a13 | 578 | ac_default_prefix=/usr/local |
5213506e | 579 | ac_clean_files= |
a8aea176 | 580 | ac_config_libobj_dir=. |
5213506e | 581 | LIBOBJS= |
a8aea176 NN |
582 | cross_compiling=no |
583 | subdirs= | |
584 | MFLAGS= | |
585 | MAKEFLAGS= | |
a8aea176 NN |
586 | |
587 | # Identity of this package. | |
22e05272 JM |
588 | PACKAGE_NAME='zlib' |
589 | PACKAGE_TARNAME='zlib' | |
590 | PACKAGE_VERSION='1.1.4' | |
591 | PACKAGE_STRING='zlib 1.1.4' | |
592 | PACKAGE_BUGREPORT='' | |
593 | PACKAGE_URL='' | |
a8aea176 NN |
594 | |
595 | ac_unique_file="zlib.h" | |
596 | # Factoring default headers for most tests. | |
597 | ac_includes_default="\ | |
598 | #include <stdio.h> | |
5213506e | 599 | #ifdef HAVE_SYS_TYPES_H |
a8aea176 NN |
600 | # include <sys/types.h> |
601 | #endif | |
5213506e | 602 | #ifdef HAVE_SYS_STAT_H |
a8aea176 NN |
603 | # include <sys/stat.h> |
604 | #endif | |
5213506e | 605 | #ifdef STDC_HEADERS |
a8aea176 NN |
606 | # include <stdlib.h> |
607 | # include <stddef.h> | |
608 | #else | |
5213506e | 609 | # ifdef HAVE_STDLIB_H |
a8aea176 NN |
610 | # include <stdlib.h> |
611 | # endif | |
612 | #endif | |
5213506e RW |
613 | #ifdef HAVE_STRING_H |
614 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
a8aea176 NN |
615 | # include <memory.h> |
616 | # endif | |
617 | # include <string.h> | |
618 | #endif | |
5213506e | 619 | #ifdef HAVE_STRINGS_H |
a8aea176 NN |
620 | # include <strings.h> |
621 | #endif | |
5213506e | 622 | #ifdef HAVE_INTTYPES_H |
a8aea176 | 623 | # include <inttypes.h> |
a8aea176 | 624 | #endif |
5213506e RW |
625 | #ifdef HAVE_STDINT_H |
626 | # include <stdint.h> | |
627 | #endif | |
628 | #ifdef HAVE_UNISTD_H | |
a8aea176 NN |
629 | # include <unistd.h> |
630 | #endif" | |
631 | ||
22e05272 | 632 | ac_header_list= |
5213506e RW |
633 | ac_subst_vars='am__EXEEXT_FALSE |
634 | am__EXEEXT_TRUE | |
635 | LTLIBOBJS | |
636 | LIBOBJS | |
459260ec | 637 | PICFLAG |
b6cb10af MP |
638 | enable_host_pie |
639 | enable_host_shared | |
5213506e RW |
640 | TARGET_LIBRARY_FALSE |
641 | TARGET_LIBRARY_TRUE | |
642 | toolexeclibdir | |
643 | toolexecdir | |
5213506e RW |
644 | CPP |
645 | OTOOL64 | |
646 | OTOOL | |
647 | LIPO | |
648 | NMEDIT | |
649 | DSYMUTIL | |
5213506e RW |
650 | RANLIB |
651 | AR | |
652 | OBJDUMP | |
653 | LN_S | |
654 | NM | |
655 | ac_ct_DUMPBIN | |
656 | DUMPBIN | |
657 | LD | |
658 | FGREP | |
659 | EGREP | |
660 | GREP | |
661 | SED | |
662 | LIBTOOL | |
c0827870 | 663 | CET_FLAGS |
5213506e RW |
664 | am__fastdepCC_FALSE |
665 | am__fastdepCC_TRUE | |
666 | CCDEPMODE | |
39ba2a0e | 667 | am__nodep |
5213506e RW |
668 | AMDEPBACKSLASH |
669 | AMDEP_FALSE | |
670 | AMDEP_TRUE | |
671 | am__quote | |
672 | am__include | |
673 | DEPDIR | |
674 | OBJEXT | |
675 | EXEEXT | |
676 | ac_ct_CC | |
677 | CPPFLAGS | |
678 | LDFLAGS | |
679 | CFLAGS | |
680 | CC | |
681 | COMPPATH | |
682 | MAINT | |
683 | MAINTAINER_MODE_FALSE | |
684 | MAINTAINER_MODE_TRUE | |
22e05272 JM |
685 | AM_BACKSLASH |
686 | AM_DEFAULT_VERBOSITY | |
687 | AM_DEFAULT_V | |
688 | AM_V | |
5213506e RW |
689 | am__untar |
690 | am__tar | |
691 | AMTAR | |
692 | am__leading_dot | |
693 | SET_MAKE | |
694 | AWK | |
695 | mkdir_p | |
696 | MKDIR_P | |
697 | INSTALL_STRIP_PROGRAM | |
698 | STRIP | |
699 | install_sh | |
700 | MAKEINFO | |
701 | AUTOHEADER | |
702 | AUTOMAKE | |
703 | AUTOCONF | |
704 | ACLOCAL | |
705 | VERSION | |
706 | PACKAGE | |
707 | CYGPATH_W | |
708 | am__isrc | |
709 | INSTALL_DATA | |
710 | INSTALL_SCRIPT | |
711 | INSTALL_PROGRAM | |
712 | mkinstalldirs | |
713 | target_os | |
714 | target_vendor | |
715 | target_cpu | |
716 | target | |
717 | host_os | |
718 | host_vendor | |
719 | host_cpu | |
720 | host | |
721 | build_os | |
722 | build_vendor | |
723 | build_cpu | |
724 | build | |
725 | multi_basedir | |
726 | target_alias | |
727 | host_alias | |
728 | build_alias | |
729 | LIBS | |
730 | ECHO_T | |
731 | ECHO_N | |
732 | ECHO_C | |
733 | DEFS | |
734 | mandir | |
735 | localedir | |
736 | libdir | |
737 | psdir | |
738 | pdfdir | |
739 | dvidir | |
740 | htmldir | |
741 | infodir | |
742 | docdir | |
743 | oldincludedir | |
744 | includedir | |
745 | localstatedir | |
746 | sharedstatedir | |
747 | sysconfdir | |
748 | datadir | |
749 | datarootdir | |
750 | libexecdir | |
751 | sbindir | |
752 | bindir | |
753 | program_transform_name | |
754 | prefix | |
755 | exec_prefix | |
756 | PACKAGE_URL | |
757 | PACKAGE_BUGREPORT | |
758 | PACKAGE_STRING | |
759 | PACKAGE_VERSION | |
760 | PACKAGE_TARNAME | |
761 | PACKAGE_NAME | |
762 | PATH_SEPARATOR | |
763 | SHELL' | |
a8aea176 | 764 | ac_subst_files='' |
5213506e RW |
765 | ac_user_opts=' |
766 | enable_option_checking | |
767 | enable_multilib | |
22e05272 | 768 | enable_silent_rules |
5213506e RW |
769 | enable_maintainer_mode |
770 | with_target_subdir | |
771 | with_cross_host | |
772 | with_system_zlib | |
773 | enable_dependency_tracking | |
c0827870 | 774 | enable_cet |
5213506e RW |
775 | enable_shared |
776 | enable_static | |
777 | with_pic | |
778 | enable_fast_install | |
779 | with_gnu_ld | |
780 | enable_libtool_lock | |
e8e66971 | 781 | with_toolexeclibdir |
459260ec | 782 | enable_host_shared |
b6cb10af | 783 | enable_host_pie |
5213506e RW |
784 | ' |
785 | ac_precious_vars='build_alias | |
786 | host_alias | |
787 | target_alias | |
788 | CPP | |
789 | CPPFLAGS' | |
790 | ||
dfac8a13 TT |
791 | |
792 | # Initialize some variables set by options. | |
a8aea176 NN |
793 | ac_init_help= |
794 | ac_init_version=false | |
5213506e RW |
795 | ac_unrecognized_opts= |
796 | ac_unrecognized_sep= | |
dfac8a13 TT |
797 | # The variables have the same names as the options, with |
798 | # dashes changed to underlines. | |
a8aea176 | 799 | cache_file=/dev/null |
dfac8a13 | 800 | exec_prefix=NONE |
dfac8a13 | 801 | no_create= |
dfac8a13 TT |
802 | no_recursion= |
803 | prefix=NONE | |
804 | program_prefix=NONE | |
805 | program_suffix=NONE | |
806 | program_transform_name=s,x,x, | |
807 | silent= | |
808 | site= | |
809 | srcdir= | |
dfac8a13 TT |
810 | verbose= |
811 | x_includes=NONE | |
812 | x_libraries=NONE | |
a8aea176 NN |
813 | |
814 | # Installation directory options. | |
815 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
816 | # and all the variables that are supposed to be based on exec_prefix | |
817 | # by default will actually change. | |
818 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 819 | # (The list follows the same order as the GNU Coding Standards.) |
dfac8a13 TT |
820 | bindir='${exec_prefix}/bin' |
821 | sbindir='${exec_prefix}/sbin' | |
822 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
823 | datarootdir='${prefix}/share' |
824 | datadir='${datarootdir}' | |
dfac8a13 TT |
825 | sysconfdir='${prefix}/etc' |
826 | sharedstatedir='${prefix}/com' | |
827 | localstatedir='${prefix}/var' | |
dfac8a13 TT |
828 | includedir='${prefix}/include' |
829 | oldincludedir='/usr/include' | |
22e05272 | 830 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
5213506e RW |
831 | infodir='${datarootdir}/info' |
832 | htmldir='${docdir}' | |
833 | dvidir='${docdir}' | |
834 | pdfdir='${docdir}' | |
835 | psdir='${docdir}' | |
836 | libdir='${exec_prefix}/lib' | |
837 | localedir='${datarootdir}/locale' | |
838 | mandir='${datarootdir}/man' | |
dfac8a13 | 839 | |
dfac8a13 | 840 | ac_prev= |
5213506e | 841 | ac_dashdash= |
dfac8a13 TT |
842 | for ac_option |
843 | do | |
dfac8a13 TT |
844 | # If the previous option needs an argument, assign it. |
845 | if test -n "$ac_prev"; then | |
5213506e | 846 | eval $ac_prev=\$ac_option |
dfac8a13 TT |
847 | ac_prev= |
848 | continue | |
849 | fi | |
850 | ||
5213506e | 851 | case $ac_option in |
22e05272 JM |
852 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
853 | *=) ac_optarg= ;; | |
854 | *) ac_optarg=yes ;; | |
5213506e | 855 | esac |
dfac8a13 TT |
856 | |
857 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
858 | ||
5213506e RW |
859 | case $ac_dashdash$ac_option in |
860 | --) | |
861 | ac_dashdash=yes ;; | |
dfac8a13 TT |
862 | |
863 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
864 | ac_prev=bindir ;; | |
865 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
a8aea176 | 866 | bindir=$ac_optarg ;; |
dfac8a13 TT |
867 | |
868 | -build | --build | --buil | --bui | --bu) | |
a8aea176 | 869 | ac_prev=build_alias ;; |
dfac8a13 | 870 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
a8aea176 | 871 | build_alias=$ac_optarg ;; |
dfac8a13 TT |
872 | |
873 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
874 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
875 | ac_prev=cache_file ;; | |
876 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
877 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
a8aea176 NN |
878 | cache_file=$ac_optarg ;; |
879 | ||
880 | --config-cache | -C) | |
881 | cache_file=config.cache ;; | |
dfac8a13 | 882 | |
5213506e | 883 | -datadir | --datadir | --datadi | --datad) |
dfac8a13 | 884 | ac_prev=datadir ;; |
5213506e | 885 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
a8aea176 | 886 | datadir=$ac_optarg ;; |
dfac8a13 | 887 | |
5213506e RW |
888 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
889 | | --dataroo | --dataro | --datar) | |
890 | ac_prev=datarootdir ;; | |
891 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
892 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
893 | datarootdir=$ac_optarg ;; | |
894 | ||
dfac8a13 | 895 | -disable-* | --disable-*) |
5213506e | 896 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
dfac8a13 | 897 | # Reject names that are not valid shell variable names. |
5213506e | 898 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 899 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
900 | ac_useropt_orig=$ac_useropt |
901 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
902 | case $ac_user_opts in | |
903 | *" | |
904 | "enable_$ac_useropt" | |
905 | "*) ;; | |
906 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
907 | ac_unrecognized_sep=', ';; | |
908 | esac | |
909 | eval enable_$ac_useropt=no ;; | |
910 | ||
911 | -docdir | --docdir | --docdi | --doc | --do) | |
912 | ac_prev=docdir ;; | |
913 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
914 | docdir=$ac_optarg ;; | |
915 | ||
916 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
917 | ac_prev=dvidir ;; | |
918 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
919 | dvidir=$ac_optarg ;; | |
dfac8a13 TT |
920 | |
921 | -enable-* | --enable-*) | |
5213506e | 922 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
dfac8a13 | 923 | # Reject names that are not valid shell variable names. |
5213506e | 924 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 925 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
926 | ac_useropt_orig=$ac_useropt |
927 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
928 | case $ac_user_opts in | |
929 | *" | |
930 | "enable_$ac_useropt" | |
931 | "*) ;; | |
932 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
933 | ac_unrecognized_sep=', ';; | |
dfac8a13 | 934 | esac |
5213506e | 935 | eval enable_$ac_useropt=\$ac_optarg ;; |
dfac8a13 TT |
936 | |
937 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
938 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
939 | | --exec | --exe | --ex) | |
940 | ac_prev=exec_prefix ;; | |
941 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
942 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
943 | | --exec=* | --exe=* | --ex=*) | |
a8aea176 | 944 | exec_prefix=$ac_optarg ;; |
dfac8a13 TT |
945 | |
946 | -gas | --gas | --ga | --g) | |
947 | # Obsolete; use --with-gas. | |
948 | with_gas=yes ;; | |
949 | ||
a8aea176 NN |
950 | -help | --help | --hel | --he | -h) |
951 | ac_init_help=long ;; | |
952 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
953 | ac_init_help=recursive ;; | |
954 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
955 | ac_init_help=short ;; | |
dfac8a13 TT |
956 | |
957 | -host | --host | --hos | --ho) | |
a8aea176 | 958 | ac_prev=host_alias ;; |
dfac8a13 | 959 | -host=* | --host=* | --hos=* | --ho=*) |
a8aea176 | 960 | host_alias=$ac_optarg ;; |
dfac8a13 | 961 | |
5213506e RW |
962 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
963 | ac_prev=htmldir ;; | |
964 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
965 | | --ht=*) | |
966 | htmldir=$ac_optarg ;; | |
967 | ||
dfac8a13 TT |
968 | -includedir | --includedir | --includedi | --included | --include \ |
969 | | --includ | --inclu | --incl | --inc) | |
970 | ac_prev=includedir ;; | |
971 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
972 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
a8aea176 | 973 | includedir=$ac_optarg ;; |
dfac8a13 TT |
974 | |
975 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
976 | ac_prev=infodir ;; | |
977 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
a8aea176 | 978 | infodir=$ac_optarg ;; |
dfac8a13 TT |
979 | |
980 | -libdir | --libdir | --libdi | --libd) | |
981 | ac_prev=libdir ;; | |
982 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
a8aea176 | 983 | libdir=$ac_optarg ;; |
dfac8a13 TT |
984 | |
985 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
986 | | --libexe | --libex | --libe) | |
987 | ac_prev=libexecdir ;; | |
988 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
989 | | --libexe=* | --libex=* | --libe=*) | |
a8aea176 | 990 | libexecdir=$ac_optarg ;; |
dfac8a13 | 991 | |
5213506e RW |
992 | -localedir | --localedir | --localedi | --localed | --locale) |
993 | ac_prev=localedir ;; | |
994 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
995 | localedir=$ac_optarg ;; | |
996 | ||
dfac8a13 | 997 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 998 | | --localstate | --localstat | --localsta | --localst | --locals) |
dfac8a13 TT |
999 | ac_prev=localstatedir ;; |
1000 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 1001 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
a8aea176 | 1002 | localstatedir=$ac_optarg ;; |
dfac8a13 TT |
1003 | |
1004 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1005 | ac_prev=mandir ;; | |
1006 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
a8aea176 | 1007 | mandir=$ac_optarg ;; |
dfac8a13 TT |
1008 | |
1009 | -nfp | --nfp | --nf) | |
1010 | # Obsolete; use --without-fp. | |
1011 | with_fp=no ;; | |
1012 | ||
1013 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
a8aea176 | 1014 | | --no-cr | --no-c | -n) |
dfac8a13 TT |
1015 | no_create=yes ;; |
1016 | ||
1017 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1018 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1019 | no_recursion=yes ;; | |
1020 | ||
1021 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1022 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1023 | | --oldin | --oldi | --old | --ol | --o) | |
1024 | ac_prev=oldincludedir ;; | |
1025 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1026 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1027 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
a8aea176 | 1028 | oldincludedir=$ac_optarg ;; |
dfac8a13 TT |
1029 | |
1030 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1031 | ac_prev=prefix ;; | |
1032 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
a8aea176 | 1033 | prefix=$ac_optarg ;; |
dfac8a13 TT |
1034 | |
1035 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1036 | | --program-pre | --program-pr | --program-p) | |
1037 | ac_prev=program_prefix ;; | |
1038 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1039 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
a8aea176 | 1040 | program_prefix=$ac_optarg ;; |
dfac8a13 TT |
1041 | |
1042 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1043 | | --program-suf | --program-su | --program-s) | |
1044 | ac_prev=program_suffix ;; | |
1045 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1046 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
a8aea176 | 1047 | program_suffix=$ac_optarg ;; |
dfac8a13 TT |
1048 | |
1049 | -program-transform-name | --program-transform-name \ | |
1050 | | --program-transform-nam | --program-transform-na \ | |
1051 | | --program-transform-n | --program-transform- \ | |
1052 | | --program-transform | --program-transfor \ | |
1053 | | --program-transfo | --program-transf \ | |
1054 | | --program-trans | --program-tran \ | |
1055 | | --progr-tra | --program-tr | --program-t) | |
1056 | ac_prev=program_transform_name ;; | |
1057 | -program-transform-name=* | --program-transform-name=* \ | |
1058 | | --program-transform-nam=* | --program-transform-na=* \ | |
1059 | | --program-transform-n=* | --program-transform-=* \ | |
1060 | | --program-transform=* | --program-transfor=* \ | |
1061 | | --program-transfo=* | --program-transf=* \ | |
1062 | | --program-trans=* | --program-tran=* \ | |
1063 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
a8aea176 | 1064 | program_transform_name=$ac_optarg ;; |
dfac8a13 | 1065 | |
5213506e RW |
1066 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1067 | ac_prev=pdfdir ;; | |
1068 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1069 | pdfdir=$ac_optarg ;; | |
1070 | ||
1071 | -psdir | --psdir | --psdi | --psd | --ps) | |
1072 | ac_prev=psdir ;; | |
1073 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1074 | psdir=$ac_optarg ;; | |
1075 | ||
dfac8a13 TT |
1076 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1077 | | -silent | --silent | --silen | --sile | --sil) | |
1078 | silent=yes ;; | |
1079 | ||
1080 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1081 | ac_prev=sbindir ;; | |
1082 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1083 | | --sbi=* | --sb=*) | |
a8aea176 | 1084 | sbindir=$ac_optarg ;; |
dfac8a13 TT |
1085 | |
1086 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1087 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1088 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1089 | | --sha | --sh) | |
1090 | ac_prev=sharedstatedir ;; | |
1091 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1092 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1093 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1094 | | --sha=* | --sh=*) | |
a8aea176 | 1095 | sharedstatedir=$ac_optarg ;; |
dfac8a13 TT |
1096 | |
1097 | -site | --site | --sit) | |
1098 | ac_prev=site ;; | |
1099 | -site=* | --site=* | --sit=*) | |
a8aea176 | 1100 | site=$ac_optarg ;; |
dfac8a13 TT |
1101 | |
1102 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1103 | ac_prev=srcdir ;; | |
1104 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
a8aea176 | 1105 | srcdir=$ac_optarg ;; |
dfac8a13 TT |
1106 | |
1107 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1108 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1109 | ac_prev=sysconfdir ;; | |
1110 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1111 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
a8aea176 | 1112 | sysconfdir=$ac_optarg ;; |
dfac8a13 TT |
1113 | |
1114 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
a8aea176 | 1115 | ac_prev=target_alias ;; |
dfac8a13 | 1116 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
a8aea176 | 1117 | target_alias=$ac_optarg ;; |
dfac8a13 TT |
1118 | |
1119 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1120 | verbose=yes ;; | |
1121 | ||
a8aea176 NN |
1122 | -version | --version | --versio | --versi | --vers | -V) |
1123 | ac_init_version=: ;; | |
dfac8a13 TT |
1124 | |
1125 | -with-* | --with-*) | |
5213506e | 1126 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
dfac8a13 | 1127 | # Reject names that are not valid shell variable names. |
5213506e | 1128 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1129 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1130 | ac_useropt_orig=$ac_useropt |
1131 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1132 | case $ac_user_opts in | |
1133 | *" | |
1134 | "with_$ac_useropt" | |
1135 | "*) ;; | |
1136 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1137 | ac_unrecognized_sep=', ';; | |
dfac8a13 | 1138 | esac |
5213506e | 1139 | eval with_$ac_useropt=\$ac_optarg ;; |
dfac8a13 TT |
1140 | |
1141 | -without-* | --without-*) | |
5213506e | 1142 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
dfac8a13 | 1143 | # Reject names that are not valid shell variable names. |
5213506e | 1144 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1145 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1146 | ac_useropt_orig=$ac_useropt |
1147 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1148 | case $ac_user_opts in | |
1149 | *" | |
1150 | "with_$ac_useropt" | |
1151 | "*) ;; | |
1152 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1153 | ac_unrecognized_sep=', ';; | |
1154 | esac | |
1155 | eval with_$ac_useropt=no ;; | |
dfac8a13 TT |
1156 | |
1157 | --x) | |
1158 | # Obsolete; use --with-x. | |
1159 | with_x=yes ;; | |
1160 | ||
1161 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1162 | | --x-incl | --x-inc | --x-in | --x-i) | |
1163 | ac_prev=x_includes ;; | |
1164 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1165 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
a8aea176 | 1166 | x_includes=$ac_optarg ;; |
dfac8a13 TT |
1167 | |
1168 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1169 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1170 | ac_prev=x_libraries ;; | |
1171 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1172 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
a8aea176 | 1173 | x_libraries=$ac_optarg ;; |
dfac8a13 | 1174 | |
22e05272 JM |
1175 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1176 | Try \`$0 --help' for more information" | |
dfac8a13 TT |
1177 | ;; |
1178 | ||
a8aea176 NN |
1179 | *=*) |
1180 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1181 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1182 | case $ac_envvar in #( |
1183 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
22e05272 | 1184 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
5213506e RW |
1185 | esac |
1186 | eval $ac_envvar=\$ac_optarg | |
a8aea176 NN |
1187 | export $ac_envvar ;; |
1188 | ||
dfac8a13 | 1189 | *) |
a8aea176 | 1190 | # FIXME: should be removed in autoconf 3.0. |
5213506e | 1191 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
a8aea176 | 1192 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1193 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
22e05272 | 1194 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
dfac8a13 TT |
1195 | ;; |
1196 | ||
1197 | esac | |
1198 | done | |
1199 | ||
1200 | if test -n "$ac_prev"; then | |
a8aea176 | 1201 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
22e05272 | 1202 | as_fn_error $? "missing argument to $ac_option" |
dfac8a13 | 1203 | fi |
dfac8a13 | 1204 | |
5213506e RW |
1205 | if test -n "$ac_unrecognized_opts"; then |
1206 | case $enable_option_checking in | |
1207 | no) ;; | |
22e05272 | 1208 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
5213506e | 1209 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
a8aea176 | 1210 | esac |
5213506e | 1211 | fi |
dfac8a13 | 1212 | |
5213506e RW |
1213 | # Check all directory arguments for consistency. |
1214 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1215 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1216 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1217 | libdir localedir mandir | |
c45f211e | 1218 | do |
5213506e RW |
1219 | eval ac_val=\$$ac_var |
1220 | # Remove trailing slashes. | |
1221 | case $ac_val in | |
1222 | */ ) | |
1223 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1224 | eval $ac_var=\$ac_val;; | |
1225 | esac | |
1226 | # Be sure to have absolute directory names. | |
a8aea176 | 1227 | case $ac_val in |
5213506e RW |
1228 | [\\/$]* | ?:[\\/]* ) continue;; |
1229 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
dfac8a13 | 1230 | esac |
22e05272 | 1231 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
dfac8a13 TT |
1232 | done |
1233 | ||
a8aea176 NN |
1234 | # There might be people who depend on the old broken behavior: `$host' |
1235 | # used to hold the argument of --host etc. | |
1236 | # FIXME: To remove some day. | |
1237 | build=$build_alias | |
1238 | host=$host_alias | |
1239 | target=$target_alias | |
1240 | ||
1241 | # FIXME: To remove some day. | |
1242 | if test "x$host_alias" != x; then | |
1243 | if test "x$build_alias" = x; then | |
1244 | cross_compiling=maybe | |
a8aea176 NN |
1245 | elif test "x$build_alias" != "x$host_alias"; then |
1246 | cross_compiling=yes | |
1247 | fi | |
1248 | fi | |
dfac8a13 | 1249 | |
a8aea176 NN |
1250 | ac_tool_prefix= |
1251 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1252 | ||
1253 | test "$silent" = yes && exec 6>/dev/null | |
dfac8a13 | 1254 | |
dfac8a13 | 1255 | |
5213506e RW |
1256 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1257 | ac_ls_di=`ls -di .` && | |
1258 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
22e05272 | 1259 | as_fn_error $? "working directory cannot be determined" |
5213506e | 1260 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
22e05272 | 1261 | as_fn_error $? "pwd does not report name of working directory" |
5213506e RW |
1262 | |
1263 | ||
dfac8a13 TT |
1264 | # Find the source files, if location was not specified. |
1265 | if test -z "$srcdir"; then | |
1266 | ac_srcdir_defaulted=yes | |
5213506e RW |
1267 | # Try the directory containing this script, then the parent directory. |
1268 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1269 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1270 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1271 | X"$as_myself" : 'X\(//\)$' \| \ | |
1272 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1273 | $as_echo X"$as_myself" | | |
1274 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1275 | s//\1/ | |
1276 | q | |
1277 | } | |
1278 | /^X\(\/\/\)[^/].*/{ | |
1279 | s//\1/ | |
1280 | q | |
1281 | } | |
1282 | /^X\(\/\/\)$/{ | |
1283 | s//\1/ | |
1284 | q | |
1285 | } | |
1286 | /^X\(\/\).*/{ | |
1287 | s//\1/ | |
1288 | q | |
1289 | } | |
1290 | s/.*/./; q'` | |
dfac8a13 | 1291 | srcdir=$ac_confdir |
5213506e | 1292 | if test ! -r "$srcdir/$ac_unique_file"; then |
dfac8a13 TT |
1293 | srcdir=.. |
1294 | fi | |
1295 | else | |
1296 | ac_srcdir_defaulted=no | |
1297 | fi | |
5213506e RW |
1298 | if test ! -r "$srcdir/$ac_unique_file"; then |
1299 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
22e05272 | 1300 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
5213506e RW |
1301 | fi |
1302 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1303 | ac_abs_confdir=`( | |
22e05272 | 1304 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
5213506e RW |
1305 | pwd)` |
1306 | # When building in place, set srcdir=. | |
1307 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1308 | srcdir=. | |
1309 | fi | |
1310 | # Remove unnecessary trailing slashes from srcdir. | |
1311 | # Double slashes in file names in object file debugging info | |
1312 | # mess up M-x gdb in Emacs. | |
1313 | case $srcdir in | |
1314 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1315 | esac | |
1316 | for ac_var in $ac_precious_vars; do | |
1317 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1318 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1319 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1320 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1321 | done | |
a8aea176 NN |
1322 | |
1323 | # | |
1324 | # Report the --help message. | |
1325 | # | |
1326 | if test "$ac_init_help" = "long"; then | |
1327 | # Omit some internal or obsolete options to make the list less imposing. | |
1328 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1329 | cat <<_ACEOF | |
22e05272 | 1330 | \`configure' configures zlib 1.1.4 to adapt to many kinds of systems. |
a8aea176 NN |
1331 | |
1332 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1333 | ||
1334 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1335 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1336 | ||
1337 | Defaults for the options are specified in brackets. | |
1338 | ||
1339 | Configuration: | |
1340 | -h, --help display this help and exit | |
1341 | --help=short display options specific to this package | |
1342 | --help=recursive display the short help of all the included packages | |
1343 | -V, --version display version information and exit | |
22e05272 | 1344 | -q, --quiet, --silent do not print \`checking ...' messages |
a8aea176 NN |
1345 | --cache-file=FILE cache test results in FILE [disabled] |
1346 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1347 | -n, --no-create do not create output files | |
1348 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1349 | ||
a8aea176 NN |
1350 | Installation directories: |
1351 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1352 | [$ac_default_prefix] |
a8aea176 | 1353 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1354 | [PREFIX] |
a8aea176 NN |
1355 | |
1356 | By default, \`make install' will install all the files in | |
1357 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1358 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1359 | for instance \`--prefix=\$HOME'. | |
1360 | ||
1361 | For better control, use the options below. | |
1362 | ||
1363 | Fine tuning of the installation directories: | |
5213506e RW |
1364 | --bindir=DIR user executables [EPREFIX/bin] |
1365 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1366 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1367 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1368 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1369 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1370 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1371 | --includedir=DIR C header files [PREFIX/include] | |
1372 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1373 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1374 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1375 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1376 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1377 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
22e05272 | 1378 | --docdir=DIR documentation root [DATAROOTDIR/doc/zlib] |
5213506e RW |
1379 | --htmldir=DIR html documentation [DOCDIR] |
1380 | --dvidir=DIR dvi documentation [DOCDIR] | |
1381 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1382 | --psdir=DIR ps documentation [DOCDIR] | |
a8aea176 NN |
1383 | _ACEOF |
1384 | ||
1385 | cat <<\_ACEOF | |
1386 | ||
1387 | Program names: | |
1388 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1389 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1390 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1391 | ||
1392 | System types: | |
1393 | --build=BUILD configure for building on BUILD [guessed] | |
1394 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1395 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1396 | _ACEOF | |
1397 | fi | |
1398 | ||
1399 | if test -n "$ac_init_help"; then | |
22e05272 JM |
1400 | case $ac_init_help in |
1401 | short | recursive ) echo "Configuration of zlib 1.1.4:";; | |
1402 | esac | |
a8aea176 NN |
1403 | cat <<\_ACEOF |
1404 | ||
1405 | Optional Features: | |
5213506e | 1406 | --disable-option-checking ignore unrecognized --enable/--with options |
a8aea176 NN |
1407 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1408 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
a8aea176 | 1409 | --enable-multilib build many library versions (default) |
22e05272 JM |
1410 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1411 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1412 | --enable-maintainer-mode | |
1413 | enable make rules and dependencies not useful (and | |
1414 | sometimes confusing) to the casual installer | |
1415 | --enable-dependency-tracking | |
1416 | do not reject slow dependency extractors | |
1417 | --disable-dependency-tracking | |
1418 | speeds up one-time build | |
8d286dd1 | 1419 | --enable-cet enable Intel CET in target libraries [default=auto] |
5213506e RW |
1420 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1421 | --enable-static[=PKGS] build static libraries [default=yes] | |
1cf3d07d SE |
1422 | --enable-fast-install[=PKGS] |
1423 | optimize for fast installation [default=yes] | |
a8aea176 | 1424 | --disable-libtool-lock avoid locking (might break parallel builds) |
459260ec | 1425 | --enable-host-shared build host code as shared libraries |
b6cb10af | 1426 | --enable-host-pie build host code as PIE |
a8aea176 NN |
1427 | |
1428 | Optional Packages: | |
1429 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1430 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1431 | --with-target-subdir=SUBDIR | |
1432 | configuring in a subdirectory | |
1433 | --with-cross-host=HOST configuring with a cross compiler | |
1434 | --with-system-zlib use installed libz | |
1cf3d07d SE |
1435 | --with-pic try to use only PIC/non-PIC objects [default=use |
1436 | both] | |
1437 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
e8e66971 MR |
1438 | --with-toolexeclibdir=DIR |
1439 | install libraries built with a cross compiler within | |
1440 | DIR | |
a8aea176 NN |
1441 | |
1442 | Some influential environment variables: | |
1443 | CC C compiler command | |
1444 | CFLAGS C compiler flags | |
1445 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1446 | nonstandard directory <lib dir> | |
5213506e | 1447 | LIBS libraries to pass to the linker, e.g. -l<library> |
22e05272 | 1448 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
5213506e | 1449 | you have headers in a nonstandard directory <include dir> |
a8aea176 NN |
1450 | CPP C preprocessor |
1451 | ||
1452 | Use these variables to override the choices made by `configure' or to help | |
1453 | it to find libraries and programs with nonstandard names/locations. | |
1454 | ||
5213506e | 1455 | Report bugs to the package provider. |
a8aea176 | 1456 | _ACEOF |
5213506e | 1457 | ac_status=$? |
a8aea176 NN |
1458 | fi |
1459 | ||
1460 | if test "$ac_init_help" = "recursive"; then | |
1461 | # If there are subdirs, report their specific --help. | |
a8aea176 | 1462 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1463 | test -d "$ac_dir" || |
1464 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1465 | continue | |
a8aea176 NN |
1466 | ac_builddir=. |
1467 | ||
5213506e RW |
1468 | case "$ac_dir" in |
1469 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1470 | *) | |
1471 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1472 | # A ".." for each directory in $ac_dir_suffix. | |
1473 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1474 | case $ac_top_builddir_sub in | |
1475 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1476 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1477 | esac ;; | |
1478 | esac | |
1479 | ac_abs_top_builddir=$ac_pwd | |
1480 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1481 | # for backward compatibility: | |
1482 | ac_top_builddir=$ac_top_build_prefix | |
a8aea176 NN |
1483 | |
1484 | case $srcdir in | |
5213506e | 1485 | .) # We are building in place. |
a8aea176 | 1486 | ac_srcdir=. |
5213506e RW |
1487 | ac_top_srcdir=$ac_top_builddir_sub |
1488 | ac_abs_top_srcdir=$ac_pwd ;; | |
1489 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
a8aea176 | 1490 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1491 | ac_top_srcdir=$srcdir |
1492 | ac_abs_top_srcdir=$srcdir ;; | |
1493 | *) # Relative name. | |
1494 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1495 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1496 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
a8aea176 | 1497 | esac |
5213506e RW |
1498 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1499 | ||
1500 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1501 | # Check for guested configure. | |
1502 | if test -f "$ac_srcdir/configure.gnu"; then | |
1503 | echo && | |
1504 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1505 | elif test -f "$ac_srcdir/configure"; then | |
1506 | echo && | |
1507 | $SHELL "$ac_srcdir/configure" --help=recursive | |
a8aea176 | 1508 | else |
5213506e RW |
1509 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1510 | fi || ac_status=$? | |
1511 | cd "$ac_pwd" || { ac_status=$?; break; } | |
a8aea176 NN |
1512 | done |
1513 | fi | |
1514 | ||
5213506e | 1515 | test -n "$ac_init_help" && exit $ac_status |
a8aea176 NN |
1516 | if $ac_init_version; then |
1517 | cat <<\_ACEOF | |
22e05272 JM |
1518 | zlib configure 1.1.4 |
1519 | generated by GNU Autoconf 2.69 | |
a8aea176 | 1520 | |
22e05272 | 1521 | Copyright (C) 2012 Free Software Foundation, Inc. |
a8aea176 NN |
1522 | This configure script is free software; the Free Software Foundation |
1523 | gives unlimited permission to copy, distribute and modify it. | |
1524 | _ACEOF | |
5213506e | 1525 | exit |
a8aea176 | 1526 | fi |
a8aea176 | 1527 | |
5213506e RW |
1528 | ## ------------------------ ## |
1529 | ## Autoconf initialization. ## | |
1530 | ## ------------------------ ## | |
a8aea176 | 1531 | |
5213506e RW |
1532 | # ac_fn_c_try_compile LINENO |
1533 | # -------------------------- | |
1534 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1535 | ac_fn_c_try_compile () | |
a8aea176 | 1536 | { |
5213506e RW |
1537 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1538 | rm -f conftest.$ac_objext | |
1539 | if { { ac_try="$ac_compile" | |
1540 | case "(($ac_try" in | |
1541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1542 | *) ac_try_echo=$ac_try;; | |
1543 | esac | |
1544 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1545 | $as_echo "$ac_try_echo"; } >&5 | |
1546 | (eval "$ac_compile") 2>conftest.err | |
1547 | ac_status=$? | |
1548 | if test -s conftest.err; then | |
1549 | grep -v '^ *+' conftest.err >conftest.er1 | |
1550 | cat conftest.er1 >&5 | |
1551 | mv -f conftest.er1 conftest.err | |
1552 | fi | |
1553 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1554 | test $ac_status = 0; } && { | |
1555 | test -z "$ac_c_werror_flag" || | |
1556 | test ! -s conftest.err | |
1557 | } && test -s conftest.$ac_objext; then : | |
1558 | ac_retval=0 | |
1559 | else | |
1560 | $as_echo "$as_me: failed program was:" >&5 | |
1561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a8aea176 | 1562 | |
5213506e RW |
1563 | ac_retval=1 |
1564 | fi | |
22e05272 JM |
1565 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1566 | as_fn_set_status $ac_retval | |
a8aea176 | 1567 | |
5213506e | 1568 | } # ac_fn_c_try_compile |
a8aea176 | 1569 | |
5213506e RW |
1570 | # ac_fn_c_try_link LINENO |
1571 | # ----------------------- | |
1572 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1573 | ac_fn_c_try_link () | |
1574 | { | |
1575 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1576 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1577 | if { { ac_try="$ac_link" | |
1578 | case "(($ac_try" in | |
1579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1580 | *) ac_try_echo=$ac_try;; | |
1581 | esac | |
1582 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1583 | $as_echo "$ac_try_echo"; } >&5 | |
1584 | (eval "$ac_link") 2>conftest.err | |
1585 | ac_status=$? | |
1586 | if test -s conftest.err; then | |
1587 | grep -v '^ *+' conftest.err >conftest.er1 | |
1588 | cat conftest.er1 >&5 | |
1589 | mv -f conftest.er1 conftest.err | |
1590 | fi | |
1591 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1592 | test $ac_status = 0; } && { | |
1593 | test -z "$ac_c_werror_flag" || | |
1594 | test ! -s conftest.err | |
1595 | } && test -s conftest$ac_exeext && { | |
1596 | test "$cross_compiling" = yes || | |
22e05272 | 1597 | test -x conftest$ac_exeext |
5213506e RW |
1598 | }; then : |
1599 | ac_retval=0 | |
1600 | else | |
1601 | $as_echo "$as_me: failed program was:" >&5 | |
1602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a8aea176 | 1603 | |
5213506e RW |
1604 | ac_retval=1 |
1605 | fi | |
1606 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1607 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1608 | # interfere with the next link command; also delete a directory that is | |
1609 | # left behind by Apple's compiler. We do this before executing the actions. | |
1610 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1611 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1612 | as_fn_set_status $ac_retval | |
a8aea176 | 1613 | |
5213506e RW |
1614 | } # ac_fn_c_try_link |
1615 | ||
1616 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1617 | # ------------------------------------------------------- | |
1618 | # Tests whether HEADER exists and can be compiled using the include files in | |
1619 | # INCLUDES, setting the cache variable VAR accordingly. | |
1620 | ac_fn_c_check_header_compile () | |
1621 | { | |
1622 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1624 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1625 | if eval \${$3+:} false; then : |
5213506e RW |
1626 | $as_echo_n "(cached) " >&6 |
1627 | else | |
1628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1629 | /* end confdefs.h. */ | |
1630 | $4 | |
1631 | #include <$2> | |
1632 | _ACEOF | |
1633 | if ac_fn_c_try_compile "$LINENO"; then : | |
1634 | eval "$3=yes" | |
1635 | else | |
1636 | eval "$3=no" | |
1637 | fi | |
1638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1639 | fi | |
1640 | eval ac_res=\$$3 | |
1641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1642 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1643 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
5213506e RW |
1644 | |
1645 | } # ac_fn_c_check_header_compile | |
1646 | ||
1647 | # ac_fn_c_try_cpp LINENO | |
1648 | # ---------------------- | |
1649 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1650 | ac_fn_c_try_cpp () | |
1651 | { | |
1652 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1653 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1654 | case "(($ac_try" in | |
1655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1656 | *) ac_try_echo=$ac_try;; | |
1657 | esac | |
1658 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1659 | $as_echo "$ac_try_echo"; } >&5 | |
1660 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1661 | ac_status=$? | |
1662 | if test -s conftest.err; then | |
1663 | grep -v '^ *+' conftest.err >conftest.er1 | |
1664 | cat conftest.er1 >&5 | |
1665 | mv -f conftest.er1 conftest.err | |
1666 | fi | |
1667 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22e05272 | 1668 | test $ac_status = 0; } > conftest.i && { |
5213506e RW |
1669 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1670 | test ! -s conftest.err | |
1671 | }; then : | |
1672 | ac_retval=0 | |
1673 | else | |
1674 | $as_echo "$as_me: failed program was:" >&5 | |
1675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1676 | ||
1677 | ac_retval=1 | |
1678 | fi | |
22e05272 JM |
1679 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1680 | as_fn_set_status $ac_retval | |
5213506e RW |
1681 | |
1682 | } # ac_fn_c_try_cpp | |
1683 | ||
1684 | # ac_fn_c_try_run LINENO | |
1685 | # ---------------------- | |
1686 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1687 | # that executables *can* be run. | |
1688 | ac_fn_c_try_run () | |
1689 | { | |
1690 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1691 | if { { ac_try="$ac_link" | |
1692 | case "(($ac_try" in | |
1693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1694 | *) ac_try_echo=$ac_try;; | |
1695 | esac | |
1696 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1697 | $as_echo "$ac_try_echo"; } >&5 | |
1698 | (eval "$ac_link") 2>&5 | |
1699 | ac_status=$? | |
1700 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1701 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1702 | { { case "(($ac_try" in | |
1703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1704 | *) ac_try_echo=$ac_try;; | |
1705 | esac | |
1706 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1707 | $as_echo "$ac_try_echo"; } >&5 | |
1708 | (eval "$ac_try") 2>&5 | |
1709 | ac_status=$? | |
1710 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1711 | test $ac_status = 0; }; }; then : | |
1712 | ac_retval=0 | |
1713 | else | |
1714 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1715 | $as_echo "$as_me: failed program was:" >&5 | |
1716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1717 | ||
1718 | ac_retval=$ac_status | |
1719 | fi | |
1720 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1721 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1722 | as_fn_set_status $ac_retval | |
5213506e RW |
1723 | |
1724 | } # ac_fn_c_try_run | |
1725 | ||
1726 | # ac_fn_c_check_func LINENO FUNC VAR | |
1727 | # ---------------------------------- | |
1728 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1729 | ac_fn_c_check_func () | |
1730 | { | |
1731 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1733 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1734 | if eval \${$3+:} false; then : |
5213506e RW |
1735 | $as_echo_n "(cached) " >&6 |
1736 | else | |
1737 | if test x$gcc_no_link = xyes; then | |
22e05272 | 1738 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
5213506e RW |
1739 | fi |
1740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1741 | /* end confdefs.h. */ | |
1742 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1743 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1744 | #define $2 innocuous_$2 | |
1745 | ||
1746 | /* System header to define __stub macros and hopefully few prototypes, | |
1747 | which can conflict with char $2 (); below. | |
1748 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1749 | <limits.h> exists even on freestanding compilers. */ | |
1750 | ||
1751 | #ifdef __STDC__ | |
1752 | # include <limits.h> | |
1753 | #else | |
1754 | # include <assert.h> | |
1755 | #endif | |
1756 | ||
1757 | #undef $2 | |
1758 | ||
1759 | /* Override any GCC internal prototype to avoid an error. | |
1760 | Use char because int might match the return type of a GCC | |
1761 | builtin and then its argument prototype would still apply. */ | |
1762 | #ifdef __cplusplus | |
1763 | extern "C" | |
1764 | #endif | |
1765 | char $2 (); | |
1766 | /* The GNU C library defines this for functions which it implements | |
1767 | to always fail with ENOSYS. Some functions are actually named | |
1768 | something starting with __ and the normal name is an alias. */ | |
1769 | #if defined __stub_$2 || defined __stub___$2 | |
1770 | choke me | |
1771 | #endif | |
1772 | ||
1773 | int | |
1774 | main () | |
1775 | { | |
1776 | return $2 (); | |
1777 | ; | |
1778 | return 0; | |
1779 | } | |
1780 | _ACEOF | |
1781 | if ac_fn_c_try_link "$LINENO"; then : | |
1782 | eval "$3=yes" | |
1783 | else | |
1784 | eval "$3=no" | |
1785 | fi | |
1786 | rm -f core conftest.err conftest.$ac_objext \ | |
1787 | conftest$ac_exeext conftest.$ac_ext | |
1788 | fi | |
1789 | eval ac_res=\$$3 | |
1790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1791 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1792 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
5213506e RW |
1793 | |
1794 | } # ac_fn_c_check_func | |
1795 | ||
1796 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1797 | # ------------------------------------------------------- | |
1798 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1799 | # the include files in INCLUDES and setting the cache variable VAR | |
1800 | # accordingly. | |
1801 | ac_fn_c_check_header_mongrel () | |
1802 | { | |
1803 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
22e05272 | 1804 | if eval \${$3+:} false; then : |
5213506e RW |
1805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1806 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1807 | if eval \${$3+:} false; then : |
5213506e RW |
1808 | $as_echo_n "(cached) " >&6 |
1809 | fi | |
1810 | eval ac_res=\$$3 | |
1811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1812 | $as_echo "$ac_res" >&6; } | |
1813 | else | |
1814 | # Is the header compilable? | |
1815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1816 | $as_echo_n "checking $2 usability... " >&6; } | |
1817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1818 | /* end confdefs.h. */ | |
1819 | $4 | |
1820 | #include <$2> | |
1821 | _ACEOF | |
1822 | if ac_fn_c_try_compile "$LINENO"; then : | |
1823 | ac_header_compiler=yes | |
1824 | else | |
1825 | ac_header_compiler=no | |
1826 | fi | |
1827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1829 | $as_echo "$ac_header_compiler" >&6; } | |
1830 | ||
1831 | # Is the header present? | |
1832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1833 | $as_echo_n "checking $2 presence... " >&6; } | |
1834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1835 | /* end confdefs.h. */ | |
1836 | #include <$2> | |
1837 | _ACEOF | |
1838 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1839 | ac_header_preproc=yes | |
1840 | else | |
1841 | ac_header_preproc=no | |
1842 | fi | |
22e05272 | 1843 | rm -f conftest.err conftest.i conftest.$ac_ext |
5213506e RW |
1844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1845 | $as_echo "$ac_header_preproc" >&6; } | |
1846 | ||
1847 | # So? What about this header? | |
1848 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1849 | yes:no: ) | |
1850 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1851 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1852 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1853 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1854 | ;; | |
1855 | no:yes:* ) | |
1856 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1857 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1858 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1859 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1860 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1861 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1862 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1863 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1864 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1865 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1866 | ;; | |
1867 | esac | |
1868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1869 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1870 | if eval \${$3+:} false; then : |
5213506e RW |
1871 | $as_echo_n "(cached) " >&6 |
1872 | else | |
1873 | eval "$3=\$ac_header_compiler" | |
1874 | fi | |
1875 | eval ac_res=\$$3 | |
1876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1877 | $as_echo "$ac_res" >&6; } | |
1878 | fi | |
22e05272 | 1879 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
5213506e RW |
1880 | |
1881 | } # ac_fn_c_check_header_mongrel | |
1882 | cat >config.log <<_ACEOF | |
1883 | This file contains any messages produced by compilers while | |
1884 | running configure, to aid debugging if configure makes a mistake. | |
1885 | ||
22e05272 JM |
1886 | It was created by zlib $as_me 1.1.4, which was |
1887 | generated by GNU Autoconf 2.69. Invocation command line was | |
5213506e RW |
1888 | |
1889 | $ $0 $@ | |
1890 | ||
1891 | _ACEOF | |
1892 | exec 5>>config.log | |
1893 | { | |
1894 | cat <<_ASUNAME | |
1895 | ## --------- ## | |
1896 | ## Platform. ## | |
1897 | ## --------- ## | |
1898 | ||
1899 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1900 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1901 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1902 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1903 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1904 | ||
1905 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1906 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1907 | ||
1908 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1909 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1910 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1911 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1912 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1913 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1914 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1915 | ||
1916 | _ASUNAME | |
1917 | ||
1918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1919 | for as_dir in $PATH | |
1920 | do | |
1921 | IFS=$as_save_IFS | |
a8aea176 | 1922 | test -z "$as_dir" && as_dir=. |
5213506e RW |
1923 | $as_echo "PATH: $as_dir" |
1924 | done | |
1925 | IFS=$as_save_IFS | |
a8aea176 NN |
1926 | |
1927 | } >&5 | |
1928 | ||
1929 | cat >&5 <<_ACEOF | |
1930 | ||
1931 | ||
1932 | ## ----------- ## | |
1933 | ## Core tests. ## | |
1934 | ## ----------- ## | |
1935 | ||
1936 | _ACEOF | |
1937 | ||
1938 | ||
1939 | # Keep a trace of the command line. | |
1940 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1941 | # Strip out --silent because we don't want to record it for future runs. | |
1942 | # Also quote any args containing shell meta-characters. | |
1943 | # Make two passes to allow for proper duplicate-argument suppression. | |
1944 | ac_configure_args= | |
1945 | ac_configure_args0= | |
1946 | ac_configure_args1= | |
a8aea176 NN |
1947 | ac_must_keep_next=false |
1948 | for ac_pass in 1 2 | |
1949 | do | |
1950 | for ac_arg | |
1951 | do | |
1952 | case $ac_arg in | |
1953 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1954 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1955 | | -silent | --silent | --silen | --sile | --sil) | |
1956 | continue ;; | |
5213506e RW |
1957 | *\'*) |
1958 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
a8aea176 NN |
1959 | esac |
1960 | case $ac_pass in | |
5213506e | 1961 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
a8aea176 | 1962 | 2) |
5213506e | 1963 | as_fn_append ac_configure_args1 " '$ac_arg'" |
a8aea176 NN |
1964 | if test $ac_must_keep_next = true; then |
1965 | ac_must_keep_next=false # Got value, back to normal. | |
1966 | else | |
1967 | case $ac_arg in | |
1968 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1969 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1970 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1971 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1972 | case "$ac_configure_args0 " in | |
1973 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1974 | esac | |
1975 | ;; | |
1976 | -* ) ac_must_keep_next=true ;; | |
1977 | esac | |
1978 | fi | |
5213506e | 1979 | as_fn_append ac_configure_args " '$ac_arg'" |
a8aea176 NN |
1980 | ;; |
1981 | esac | |
1982 | done | |
1983 | done | |
5213506e RW |
1984 | { ac_configure_args0=; unset ac_configure_args0;} |
1985 | { ac_configure_args1=; unset ac_configure_args1;} | |
a8aea176 NN |
1986 | |
1987 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1988 | # config.log. We remove comments because anyway the quotes in there | |
1989 | # would cause problems or look ugly. | |
5213506e RW |
1990 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1991 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
a8aea176 NN |
1992 | trap 'exit_status=$? |
1993 | # Save into config.log some information that might help in debugging. | |
1994 | { | |
1995 | echo | |
1996 | ||
22e05272 | 1997 | $as_echo "## ---------------- ## |
a8aea176 | 1998 | ## Cache variables. ## |
22e05272 | 1999 | ## ---------------- ##" |
a8aea176 NN |
2000 | echo |
2001 | # The following way of writing the cache mishandles newlines in values, | |
5213506e RW |
2002 | ( |
2003 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2004 | eval ac_val=\$$ac_var | |
2005 | case $ac_val in #( | |
2006 | *${as_nl}*) | |
2007 | case $ac_var in #( | |
2008 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2009 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2010 | esac | |
2011 | case $ac_var in #( | |
2012 | _ | IFS | as_nl) ;; #( | |
2013 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2014 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2015 | esac ;; | |
2016 | esac | |
2017 | done | |
a8aea176 | 2018 | (set) 2>&1 | |
5213506e RW |
2019 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2020 | *${as_nl}ac_space=\ *) | |
a8aea176 | 2021 | sed -n \ |
5213506e RW |
2022 | "s/'\''/'\''\\\\'\'''\''/g; |
2023 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2024 | ;; #( | |
a8aea176 | 2025 | *) |
5213506e | 2026 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
a8aea176 | 2027 | ;; |
5213506e RW |
2028 | esac | |
2029 | sort | |
2030 | ) | |
a8aea176 NN |
2031 | echo |
2032 | ||
22e05272 | 2033 | $as_echo "## ----------------- ## |
a8aea176 | 2034 | ## Output variables. ## |
22e05272 | 2035 | ## ----------------- ##" |
a8aea176 NN |
2036 | echo |
2037 | for ac_var in $ac_subst_vars | |
2038 | do | |
5213506e RW |
2039 | eval ac_val=\$$ac_var |
2040 | case $ac_val in | |
2041 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2042 | esac | |
2043 | $as_echo "$ac_var='\''$ac_val'\''" | |
a8aea176 NN |
2044 | done | sort |
2045 | echo | |
2046 | ||
2047 | if test -n "$ac_subst_files"; then | |
22e05272 | 2048 | $as_echo "## ------------------- ## |
5213506e | 2049 | ## File substitutions. ## |
22e05272 | 2050 | ## ------------------- ##" |
a8aea176 NN |
2051 | echo |
2052 | for ac_var in $ac_subst_files | |
2053 | do | |
5213506e RW |
2054 | eval ac_val=\$$ac_var |
2055 | case $ac_val in | |
2056 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2057 | esac | |
2058 | $as_echo "$ac_var='\''$ac_val'\''" | |
a8aea176 NN |
2059 | done | sort |
2060 | echo | |
2061 | fi | |
2062 | ||
2063 | if test -s confdefs.h; then | |
22e05272 | 2064 | $as_echo "## ----------- ## |
a8aea176 | 2065 | ## confdefs.h. ## |
22e05272 | 2066 | ## ----------- ##" |
a8aea176 | 2067 | echo |
5213506e | 2068 | cat confdefs.h |
a8aea176 NN |
2069 | echo |
2070 | fi | |
2071 | test "$ac_signal" != 0 && | |
5213506e RW |
2072 | $as_echo "$as_me: caught signal $ac_signal" |
2073 | $as_echo "$as_me: exit $exit_status" | |
a8aea176 | 2074 | } >&5 |
5213506e RW |
2075 | rm -f core *.core core.conftest.* && |
2076 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
a8aea176 | 2077 | exit $exit_status |
5213506e | 2078 | ' 0 |
a8aea176 | 2079 | for ac_signal in 1 2 13 15; do |
5213506e | 2080 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
a8aea176 NN |
2081 | done |
2082 | ac_signal=0 | |
dfac8a13 | 2083 | |
a8aea176 | 2084 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
5213506e RW |
2085 | rm -f -r conftest* confdefs.h |
2086 | ||
2087 | $as_echo "/* confdefs.h */" > confdefs.h | |
a8aea176 NN |
2088 | |
2089 | # Predefined preprocessor variables. | |
2090 | ||
2091 | cat >>confdefs.h <<_ACEOF | |
2092 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2093 | _ACEOF | |
2094 | ||
a8aea176 NN |
2095 | cat >>confdefs.h <<_ACEOF |
2096 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2097 | _ACEOF | |
2098 | ||
a8aea176 NN |
2099 | cat >>confdefs.h <<_ACEOF |
2100 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2101 | _ACEOF | |
2102 | ||
a8aea176 NN |
2103 | cat >>confdefs.h <<_ACEOF |
2104 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2105 | _ACEOF | |
2106 | ||
a8aea176 NN |
2107 | cat >>confdefs.h <<_ACEOF |
2108 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2109 | _ACEOF | |
2110 | ||
5213506e RW |
2111 | cat >>confdefs.h <<_ACEOF |
2112 | #define PACKAGE_URL "$PACKAGE_URL" | |
2113 | _ACEOF | |
2114 | ||
a8aea176 NN |
2115 | |
2116 | # Let the site file select an alternate cache file if it wants to. | |
5213506e RW |
2117 | # Prefer an explicitly selected file to automatically selected ones. |
2118 | ac_site_file1=NONE | |
2119 | ac_site_file2=NONE | |
2120 | if test -n "$CONFIG_SITE"; then | |
22e05272 JM |
2121 | # We do not want a PATH search for config.site. |
2122 | case $CONFIG_SITE in #(( | |
2123 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2124 | */*) ac_site_file1=$CONFIG_SITE;; | |
2125 | *) ac_site_file1=./$CONFIG_SITE;; | |
2126 | esac | |
5213506e RW |
2127 | elif test "x$prefix" != xNONE; then |
2128 | ac_site_file1=$prefix/share/config.site | |
2129 | ac_site_file2=$prefix/etc/config.site | |
2130 | else | |
2131 | ac_site_file1=$ac_default_prefix/share/config.site | |
2132 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2133 | fi | |
2134 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2135 | do | |
2136 | test "x$ac_site_file" = xNONE && continue | |
22e05272 | 2137 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
5213506e RW |
2138 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2139 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
a8aea176 | 2140 | sed 's/^/| /' "$ac_site_file" >&5 |
22e05272 JM |
2141 | . "$ac_site_file" \ |
2142 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2143 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2144 | as_fn_error $? "failed to load site script $ac_site_file | |
2145 | See \`config.log' for more details" "$LINENO" 5; } | |
dfac8a13 TT |
2146 | fi |
2147 | done | |
2148 | ||
2149 | if test -r "$cache_file"; then | |
22e05272 JM |
2150 | # Some versions of bash will fail to source /dev/null (special files |
2151 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2152 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
5213506e RW |
2153 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2154 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
a8aea176 | 2155 | case $cache_file in |
5213506e RW |
2156 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2157 | *) . "./$cache_file";; | |
a8aea176 NN |
2158 | esac |
2159 | fi | |
dfac8a13 | 2160 | else |
5213506e RW |
2161 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2162 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
a8aea176 NN |
2163 | >$cache_file |
2164 | fi | |
2165 | ||
22e05272 JM |
2166 | as_fn_append ac_header_list " stdlib.h" |
2167 | as_fn_append ac_header_list " unistd.h" | |
2168 | as_fn_append ac_header_list " sys/param.h" | |
a8aea176 NN |
2169 | # Check that the precious variables saved in the cache have kept the same |
2170 | # value. | |
2171 | ac_cache_corrupted=false | |
5213506e | 2172 | for ac_var in $ac_precious_vars; do |
a8aea176 NN |
2173 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2174 | eval ac_new_set=\$ac_env_${ac_var}_set | |
5213506e RW |
2175 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2176 | eval ac_new_val=\$ac_env_${ac_var}_value | |
a8aea176 NN |
2177 | case $ac_old_set,$ac_new_set in |
2178 | set,) | |
5213506e RW |
2179 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2180 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
a8aea176 NN |
2181 | ac_cache_corrupted=: ;; |
2182 | ,set) | |
5213506e RW |
2183 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2184 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
a8aea176 NN |
2185 | ac_cache_corrupted=: ;; |
2186 | ,);; | |
2187 | *) | |
2188 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
5213506e RW |
2189 | # differences in whitespace do not lead to failure. |
2190 | ac_old_val_w=`echo x $ac_old_val` | |
2191 | ac_new_val_w=`echo x $ac_new_val` | |
2192 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2193 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2194 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2195 | ac_cache_corrupted=: | |
2196 | else | |
2197 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2198 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2199 | eval $ac_var=\$ac_old_val | |
2200 | fi | |
2201 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2202 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2203 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2204 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
a8aea176 NN |
2205 | fi;; |
2206 | esac | |
2207 | # Pass precious variables to config.status. | |
2208 | if test "$ac_new_set" = set; then | |
2209 | case $ac_new_val in | |
5213506e | 2210 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
a8aea176 NN |
2211 | *) ac_arg=$ac_var=$ac_new_val ;; |
2212 | esac | |
2213 | case " $ac_configure_args " in | |
2214 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
5213506e | 2215 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
a8aea176 NN |
2216 | esac |
2217 | fi | |
2218 | done | |
2219 | if $ac_cache_corrupted; then | |
5213506e RW |
2220 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2221 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2222 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2223 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
22e05272 | 2224 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
dfac8a13 | 2225 | fi |
5213506e RW |
2226 | ## -------------------- ## |
2227 | ## Main body of script. ## | |
2228 | ## -------------------- ## | |
dfac8a13 TT |
2229 | |
2230 | ac_ext=c | |
dfac8a13 | 2231 | ac_cpp='$CPP $CPPFLAGS' |
a8aea176 NN |
2232 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2233 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2234 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2235 | ||
2236 | ||
2237 | ||
a8aea176 | 2238 | |
dfac8a13 TT |
2239 | |
2240 | ||
0fd91e0a | 2241 | |
8006534c NC |
2242 | if test -n "${with_target_subdir}"; then |
2243 | # Default to --enable-multilib | |
5213506e RW |
2244 | # Check whether --enable-multilib was given. |
2245 | if test "${enable_multilib+set}" = set; then : | |
2246 | enableval=$enable_multilib; case "$enableval" in | |
076e5443 PB |
2247 | yes) multilib=yes ;; |
2248 | no) multilib=no ;; | |
22e05272 | 2249 | *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;; |
076e5443 PB |
2250 | esac |
2251 | else | |
2252 | multilib=yes | |
5213506e RW |
2253 | fi |
2254 | ||
6706f116 | 2255 | |
076e5443 PB |
2256 | # We may get other options which we leave undocumented: |
2257 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
2258 | # See config-ml.in if you want the gory details. | |
0fd91e0a | 2259 | |
076e5443 PB |
2260 | if test "$srcdir" = "."; then |
2261 | if test "$with_target_subdir" != "."; then | |
2262 | multi_basedir="$srcdir/$with_multisrctop../.." | |
0fd91e0a | 2263 | else |
076e5443 | 2264 | multi_basedir="$srcdir/$with_multisrctop.." |
0fd91e0a AO |
2265 | fi |
2266 | else | |
076e5443 | 2267 | multi_basedir="$srcdir/.." |
0fd91e0a AO |
2268 | fi |
2269 | ||
dfac8a13 | 2270 | |
8a489465 JH |
2271 | # Even if the default multilib is not a cross compilation, |
2272 | # it may be that some of the other multilibs are. | |
2273 | if test $cross_compiling = no && test $multilib = yes \ | |
2274 | && test "x${with_multisubdir}" != x ; then | |
2275 | cross_compiling=maybe | |
2276 | fi | |
2277 | ||
5213506e | 2278 | ac_config_commands="$ac_config_commands default-1" |
076e5443 | 2279 | |
8006534c | 2280 | fi |
076e5443 PB |
2281 | |
2282 | ac_aux_dir= | |
5213506e | 2283 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
22e05272 JM |
2284 | if test -f "$ac_dir/install-sh"; then |
2285 | ac_aux_dir=$ac_dir | |
2286 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2287 | break | |
2288 | elif test -f "$ac_dir/install.sh"; then | |
2289 | ac_aux_dir=$ac_dir | |
2290 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2291 | break | |
2292 | elif test -f "$ac_dir/shtool"; then | |
2293 | ac_aux_dir=$ac_dir | |
2294 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2295 | break | |
2296 | fi | |
0fd91e0a AO |
2297 | done |
2298 | if test -z "$ac_aux_dir"; then | |
22e05272 | 2299 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
0fd91e0a | 2300 | fi |
5213506e RW |
2301 | |
2302 | # These three variables are undocumented and unsupported, | |
2303 | # and are intended to be withdrawn in a future Autoconf release. | |
2304 | # They can cause serious problems if a builder's source tree is in a directory | |
2305 | # whose full name contains unusual characters. | |
2306 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2307 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2308 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2309 | ||
0fd91e0a | 2310 | |
dfac8a13 | 2311 | # Make sure we can run config.sub. |
5213506e | 2312 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
22e05272 | 2313 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
5213506e RW |
2314 | |
2315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2316 | $as_echo_n "checking build system type... " >&6; } | |
22e05272 | 2317 | if ${ac_cv_build+:} false; then : |
5213506e RW |
2318 | $as_echo_n "(cached) " >&6 |
2319 | else | |
2320 | ac_build_alias=$build_alias | |
2321 | test "x$ac_build_alias" = x && | |
2322 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2323 | test "x$ac_build_alias" = x && | |
22e05272 | 2324 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
5213506e | 2325 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
22e05272 | 2326 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
5213506e RW |
2327 | |
2328 | fi | |
2329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2330 | $as_echo "$ac_cv_build" >&6; } | |
2331 | case $ac_cv_build in | |
2332 | *-*-*) ;; | |
22e05272 | 2333 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
5213506e | 2334 | esac |
a8aea176 | 2335 | build=$ac_cv_build |
5213506e RW |
2336 | ac_save_IFS=$IFS; IFS='-' |
2337 | set x $ac_cv_build | |
2338 | shift | |
2339 | build_cpu=$1 | |
2340 | build_vendor=$2 | |
2341 | shift; shift | |
2342 | # Remember, the first character of IFS is used to create $*, | |
2343 | # except with old shells: | |
2344 | build_os=$* | |
2345 | IFS=$ac_save_IFS | |
2346 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
a8aea176 NN |
2347 | |
2348 | ||
5213506e RW |
2349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2350 | $as_echo_n "checking host system type... " >&6; } | |
22e05272 | 2351 | if ${ac_cv_host+:} false; then : |
5213506e RW |
2352 | $as_echo_n "(cached) " >&6 |
2353 | else | |
2354 | if test "x$host_alias" = x; then | |
2355 | ac_cv_host=$ac_cv_build | |
a8aea176 | 2356 | else |
5213506e | 2357 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
22e05272 | 2358 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
5213506e | 2359 | fi |
a8aea176 NN |
2360 | |
2361 | fi | |
5213506e RW |
2362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2363 | $as_echo "$ac_cv_host" >&6; } | |
2364 | case $ac_cv_host in | |
2365 | *-*-*) ;; | |
22e05272 | 2366 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
5213506e | 2367 | esac |
a8aea176 | 2368 | host=$ac_cv_host |
5213506e RW |
2369 | ac_save_IFS=$IFS; IFS='-' |
2370 | set x $ac_cv_host | |
2371 | shift | |
2372 | host_cpu=$1 | |
2373 | host_vendor=$2 | |
2374 | shift; shift | |
2375 | # Remember, the first character of IFS is used to create $*, | |
2376 | # except with old shells: | |
2377 | host_os=$* | |
2378 | IFS=$ac_save_IFS | |
2379 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
a8aea176 NN |
2380 | |
2381 | ||
5213506e RW |
2382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2383 | $as_echo_n "checking target system type... " >&6; } | |
22e05272 | 2384 | if ${ac_cv_target+:} false; then : |
5213506e | 2385 | $as_echo_n "(cached) " >&6 |
a8aea176 | 2386 | else |
5213506e RW |
2387 | if test "x$target_alias" = x; then |
2388 | ac_cv_target=$ac_cv_host | |
2389 | else | |
2390 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
22e05272 | 2391 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
5213506e | 2392 | fi |
dfac8a13 | 2393 | |
a8aea176 | 2394 | fi |
5213506e RW |
2395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2396 | $as_echo "$ac_cv_target" >&6; } | |
2397 | case $ac_cv_target in | |
2398 | *-*-*) ;; | |
22e05272 | 2399 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
5213506e | 2400 | esac |
a8aea176 | 2401 | target=$ac_cv_target |
5213506e RW |
2402 | ac_save_IFS=$IFS; IFS='-' |
2403 | set x $ac_cv_target | |
2404 | shift | |
2405 | target_cpu=$1 | |
2406 | target_vendor=$2 | |
2407 | shift; shift | |
2408 | # Remember, the first character of IFS is used to create $*, | |
2409 | # except with old shells: | |
2410 | target_os=$* | |
2411 | IFS=$ac_save_IFS | |
2412 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
dfac8a13 | 2413 | |
dfac8a13 | 2414 | |
a8aea176 NN |
2415 | # The aliases save the names the user supplied, while $host etc. |
2416 | # will get canonicalized. | |
2417 | test -n "$target_alias" && | |
dfac8a13 TT |
2418 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2419 | NONENONEs,x,x, && | |
2420 | program_prefix=${target_alias}- | |
2421 | ||
5213506e | 2422 | |
8b55628e | 2423 | # This works around an automake problem. |
1e6347d8 | 2424 | mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs" |
8b55628e TT |
2425 | |
2426 | ||
22e05272 | 2427 | am__api_version='1.15' |
5213506e | 2428 | |
dfac8a13 TT |
2429 | # Find a good install program. We prefer a C program (faster), |
2430 | # so one script is as good as another. But avoid the broken or | |
2431 | # incompatible versions: | |
2432 | # SysV /etc/install, /usr/sbin/install | |
2433 | # SunOS /usr/etc/install | |
2434 | # IRIX /sbin/install | |
2435 | # AIX /bin/install | |
a8aea176 | 2436 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
dfac8a13 TT |
2437 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2438 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2439 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
a8aea176 | 2440 | # OS/2's system install, which has a completely different semantic |
dfac8a13 | 2441 | # ./install, which can be erroneously created by make from ./install.sh. |
38d24731 | 2442 | # Reject install programs that cannot install multiple files. |
5213506e RW |
2443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2444 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
dfac8a13 | 2445 | if test -z "$INSTALL"; then |
22e05272 | 2446 | if ${ac_cv_path_install+:} false; then : |
5213506e | 2447 | $as_echo_n "(cached) " >&6 |
dfac8a13 | 2448 | else |
a8aea176 NN |
2449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2450 | for as_dir in $PATH | |
2451 | do | |
2452 | IFS=$as_save_IFS | |
2453 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2454 | # Account for people who put trailing slashes in PATH elements. |
2455 | case $as_dir/ in #(( | |
2456 | ./ | .// | /[cC]/* | \ | |
a8aea176 | 2457 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 2458 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
a8aea176 NN |
2459 | /usr/ucb/* ) ;; |
2460 | *) | |
2461 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2462 | # Don't use installbsd from OSF since it installs stuff as root | |
2463 | # by default. | |
2464 | for ac_prog in ginstall scoinst install; do | |
2465 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2466 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
dfac8a13 | 2467 | if test $ac_prog = install && |
a8aea176 | 2468 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
dfac8a13 TT |
2469 | # AIX install. It has an incompatible calling convention. |
2470 | : | |
a8aea176 NN |
2471 | elif test $ac_prog = install && |
2472 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2473 | # program-specific install script used by HP pwplus--don't use. | |
2474 | : | |
dfac8a13 | 2475 | else |
38d24731 RW |
2476 | rm -rf conftest.one conftest.two conftest.dir |
2477 | echo one > conftest.one | |
2478 | echo two > conftest.two | |
2479 | mkdir conftest.dir | |
2480 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2481 | test -s conftest.one && test -s conftest.two && | |
2482 | test -s conftest.dir/conftest.one && | |
2483 | test -s conftest.dir/conftest.two | |
2484 | then | |
2485 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2486 | break 3 | |
2487 | fi | |
dfac8a13 TT |
2488 | fi |
2489 | fi | |
2490 | done | |
a8aea176 NN |
2491 | done |
2492 | ;; | |
2493 | esac | |
5213506e RW |
2494 | |
2495 | done | |
2496 | IFS=$as_save_IFS | |
a8aea176 | 2497 | |
38d24731 | 2498 | rm -rf conftest.one conftest.two conftest.dir |
dfac8a13 TT |
2499 | |
2500 | fi | |
2501 | if test "${ac_cv_path_install+set}" = set; then | |
a8aea176 | 2502 | INSTALL=$ac_cv_path_install |
dfac8a13 | 2503 | else |
38d24731 RW |
2504 | # As a last resort, use the slow shell script. Don't cache a |
2505 | # value for INSTALL within a source directory, because that will | |
dfac8a13 | 2506 | # break other packages using the cache if that directory is |
38d24731 | 2507 | # removed, or if the value is a relative name. |
a8aea176 | 2508 | INSTALL=$ac_install_sh |
dfac8a13 TT |
2509 | fi |
2510 | fi | |
5213506e RW |
2511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2512 | $as_echo "$INSTALL" >&6; } | |
dfac8a13 TT |
2513 | |
2514 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2515 | # It thinks the first close brace ends the variable substitution. | |
2516 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2517 | ||
a8aea176 | 2518 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
dfac8a13 TT |
2519 | |
2520 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2521 | ||
5213506e RW |
2522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2523 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
5213506e RW |
2524 | # Reject unsafe characters in $srcdir or the absolute working directory |
2525 | # name. Accept space and tab only in the latter. | |
2526 | am_lf=' | |
2527 | ' | |
2528 | case `pwd` in | |
2529 | *[\\\"\#\$\&\'\`$am_lf]*) | |
22e05272 | 2530 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
5213506e RW |
2531 | esac |
2532 | case $srcdir in | |
2533 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
22e05272 | 2534 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
5213506e RW |
2535 | esac |
2536 | ||
22e05272 | 2537 | # Do 'set' in a subshell so we don't clobber the current shell's |
dfac8a13 TT |
2538 | # arguments. Must try -L first in case configure is actually a |
2539 | # symlink; some systems play weird games with the mod time of symlinks | |
2540 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2541 | # directory). | |
2542 | if ( | |
22e05272 JM |
2543 | am_has_slept=no |
2544 | for am_try in 1 2; do | |
2545 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2546 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2547 | if test "$*" = "X"; then | |
2548 | # -L didn't work. | |
2549 | set X `ls -t "$srcdir/configure" conftest.file` | |
2550 | fi | |
2551 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2552 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2553 | ||
2554 | # If neither matched, then we have a broken ls. This can happen | |
2555 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2556 | # broken ls alias from the environment. This has actually | |
2557 | # happened. Such a system could not be considered "sane". | |
2558 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2559 | alias in your environment" "$LINENO" 5 | |
2560 | fi | |
2561 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2562 | break | |
2563 | fi | |
2564 | # Just in case. | |
2565 | sleep 1 | |
2566 | am_has_slept=yes | |
2567 | done | |
9fabf579 | 2568 | test "$2" = conftest.file |
dfac8a13 TT |
2569 | ) |
2570 | then | |
2571 | # Ok. | |
2572 | : | |
2573 | else | |
22e05272 | 2574 | as_fn_error $? "newly created file is older than distributed files! |
5213506e | 2575 | Check your system clock" "$LINENO" 5 |
dfac8a13 | 2576 | fi |
5213506e RW |
2577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2578 | $as_echo "yes" >&6; } | |
22e05272 JM |
2579 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
2580 | # generated files are strictly newer. | |
2581 | am_sleep_pid= | |
2582 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2583 | ( sleep 1 ) & | |
2584 | am_sleep_pid=$! | |
2585 | fi | |
2586 | ||
2587 | rm -f conftest.file | |
2588 | ||
dfac8a13 | 2589 | test "$program_prefix" != NONE && |
5213506e | 2590 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
dfac8a13 TT |
2591 | # Use a double $ so make ignores it. |
2592 | test "$program_suffix" != NONE && | |
5213506e RW |
2593 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2594 | # Double any \ or $. | |
a8aea176 | 2595 | # By default was `s,x,x', remove it if useless. |
5213506e RW |
2596 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2597 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
a8aea176 | 2598 | |
22e05272 JM |
2599 | # Expand $ac_aux_dir to an absolute path. |
2600 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
9fabf579 | 2601 | |
5213506e RW |
2602 | if test x"${MISSING+set}" != xset; then |
2603 | case $am_aux_dir in | |
2604 | *\ * | *\ *) | |
2605 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2606 | *) | |
2607 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2608 | esac | |
2609 | fi | |
9fabf579 | 2610 | # Use eval to expand $SHELL |
22e05272 JM |
2611 | if eval "$MISSING --is-lightweight"; then |
2612 | am_missing_run="$MISSING " | |
9fabf579 KC |
2613 | else |
2614 | am_missing_run= | |
22e05272 JM |
2615 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2616 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
076e5443 PB |
2617 | fi |
2618 | ||
22e05272 | 2619 | if test x"${install_sh+set}" != xset; then |
5213506e RW |
2620 | case $am_aux_dir in |
2621 | *\ * | *\ *) | |
2622 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2623 | *) | |
2624 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2625 | esac | |
2626 | fi | |
2627 | ||
22e05272 JM |
2628 | # Installed binaries are usually stripped using 'strip' when the user |
2629 | # run "make install-strip". However 'strip' might not be the right | |
5213506e | 2630 | # tool to use in cross-compilation environments, therefore Automake |
22e05272 | 2631 | # will honor the 'STRIP' environment variable to overrule this program. |
5213506e RW |
2632 | if test "$cross_compiling" != no; then |
2633 | if test -n "$ac_tool_prefix"; then | |
2634 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2635 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2637 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2638 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 2639 | $as_echo_n "(cached) " >&6 |
9fabf579 | 2640 | else |
5213506e RW |
2641 | if test -n "$STRIP"; then |
2642 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9fabf579 KC |
2643 | else |
2644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2645 | for as_dir in $PATH | |
2646 | do | |
2647 | IFS=$as_save_IFS | |
2648 | test -z "$as_dir" && as_dir=. | |
5213506e | 2649 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 2650 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
2651 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2652 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9fabf579 KC |
2653 | break 2 |
2654 | fi | |
2655 | done | |
5213506e RW |
2656 | done |
2657 | IFS=$as_save_IFS | |
9fabf579 KC |
2658 | |
2659 | fi | |
2660 | fi | |
5213506e RW |
2661 | STRIP=$ac_cv_prog_STRIP |
2662 | if test -n "$STRIP"; then | |
2663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2664 | $as_echo "$STRIP" >&6; } | |
9fabf579 | 2665 | else |
5213506e RW |
2666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2667 | $as_echo "no" >&6; } | |
9fabf579 KC |
2668 | fi |
2669 | ||
9fabf579 | 2670 | |
5213506e RW |
2671 | fi |
2672 | if test -z "$ac_cv_prog_STRIP"; then | |
2673 | ac_ct_STRIP=$STRIP | |
2674 | # Extract the first word of "strip", so it can be a program name with args. | |
2675 | set dummy strip; ac_word=$2 | |
2676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2677 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2678 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
5213506e RW |
2679 | $as_echo_n "(cached) " >&6 |
2680 | else | |
2681 | if test -n "$ac_ct_STRIP"; then | |
2682 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2683 | else | |
2684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2685 | for as_dir in $PATH | |
2686 | do | |
2687 | IFS=$as_save_IFS | |
2688 | test -z "$as_dir" && as_dir=. | |
2689 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2690 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
2691 | ac_cv_prog_ac_ct_STRIP="strip" |
2692 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2693 | break 2 | |
2694 | fi | |
2695 | done | |
2696 | done | |
2697 | IFS=$as_save_IFS | |
2698 | ||
2699 | fi | |
2700 | fi | |
2701 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2702 | if test -n "$ac_ct_STRIP"; then | |
2703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2704 | $as_echo "$ac_ct_STRIP" >&6; } | |
2705 | else | |
2706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2707 | $as_echo "no" >&6; } | |
2708 | fi | |
2709 | ||
2710 | if test "x$ac_ct_STRIP" = x; then | |
2711 | STRIP=":" | |
2712 | else | |
2713 | case $cross_compiling:$ac_tool_warned in | |
2714 | yes:) | |
2715 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2716 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2717 | ac_tool_warned=yes ;; | |
2718 | esac | |
2719 | STRIP=$ac_ct_STRIP | |
2720 | fi | |
2721 | else | |
2722 | STRIP="$ac_cv_prog_STRIP" | |
2723 | fi | |
2724 | ||
2725 | fi | |
2726 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2727 | ||
2728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
2729 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2730 | if test -z "$MKDIR_P"; then | |
22e05272 | 2731 | if ${ac_cv_path_mkdir+:} false; then : |
5213506e RW |
2732 | $as_echo_n "(cached) " >&6 |
2733 | else | |
2734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2735 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2736 | do | |
2737 | IFS=$as_save_IFS | |
2738 | test -z "$as_dir" && as_dir=. | |
2739 | for ac_prog in mkdir gmkdir; do | |
2740 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2741 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
5213506e RW |
2742 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2743 | 'mkdir (GNU coreutils) '* | \ | |
2744 | 'mkdir (coreutils) '* | \ | |
2745 | 'mkdir (fileutils) '4.1*) | |
2746 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2747 | break 3;; | |
2748 | esac | |
2749 | done | |
2750 | done | |
2751 | done | |
2752 | IFS=$as_save_IFS | |
2753 | ||
2754 | fi | |
2755 | ||
22e05272 | 2756 | test -d ./--version && rmdir ./--version |
5213506e RW |
2757 | if test "${ac_cv_path_mkdir+set}" = set; then |
2758 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2759 | else | |
2760 | # As a last resort, use the slow shell script. Don't cache a | |
2761 | # value for MKDIR_P within a source directory, because that will | |
2762 | # break other packages using the cache if that directory is | |
2763 | # removed, or if the value is a relative name. | |
5213506e RW |
2764 | MKDIR_P="$ac_install_sh -d" |
2765 | fi | |
2766 | fi | |
2767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2768 | $as_echo "$MKDIR_P" >&6; } | |
2769 | ||
5213506e RW |
2770 | for ac_prog in gawk mawk nawk awk |
2771 | do | |
2772 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2773 | set dummy $ac_prog; ac_word=$2 | |
2774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2775 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2776 | if ${ac_cv_prog_AWK+:} false; then : |
5213506e | 2777 | $as_echo_n "(cached) " >&6 |
dfac8a13 | 2778 | else |
5213506e RW |
2779 | if test -n "$AWK"; then |
2780 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2781 | else | |
2782 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2783 | for as_dir in $PATH | |
2784 | do | |
2785 | IFS=$as_save_IFS | |
2786 | test -z "$as_dir" && as_dir=. | |
2787 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2788 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
2789 | ac_cv_prog_AWK="$ac_prog" |
2790 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2791 | break 2 | |
2792 | fi | |
2793 | done | |
2794 | done | |
2795 | IFS=$as_save_IFS | |
2796 | ||
dfac8a13 | 2797 | fi |
5213506e RW |
2798 | fi |
2799 | AWK=$ac_cv_prog_AWK | |
2800 | if test -n "$AWK"; then | |
2801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2802 | $as_echo "$AWK" >&6; } | |
2803 | else | |
2804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2805 | $as_echo "no" >&6; } | |
2806 | fi | |
2807 | ||
2808 | ||
2809 | test -n "$AWK" && break | |
2810 | done | |
2811 | ||
2812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2813 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2814 | set x ${MAKE-make} | |
2815 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
22e05272 | 2816 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
5213506e RW |
2817 | $as_echo_n "(cached) " >&6 |
2818 | else | |
2819 | cat >conftest.make <<\_ACEOF | |
2820 | SHELL = /bin/sh | |
2821 | all: | |
2822 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2823 | _ACEOF | |
22e05272 | 2824 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
5213506e RW |
2825 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2826 | *@@@%%%=?*=@@@%%%*) | |
2827 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2828 | *) | |
2829 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2830 | esac | |
a8aea176 | 2831 | rm -f conftest.make |
dfac8a13 | 2832 | fi |
5213506e RW |
2833 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2835 | $as_echo "yes" >&6; } | |
dfac8a13 TT |
2836 | SET_MAKE= |
2837 | else | |
5213506e RW |
2838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2839 | $as_echo "no" >&6; } | |
dfac8a13 TT |
2840 | SET_MAKE="MAKE=${MAKE-make}" |
2841 | fi | |
2842 | ||
9fabf579 KC |
2843 | rm -rf .tst 2>/dev/null |
2844 | mkdir .tst 2>/dev/null | |
2845 | if test -d .tst; then | |
2846 | am__leading_dot=. | |
2847 | else | |
2848 | am__leading_dot=_ | |
2849 | fi | |
2850 | rmdir .tst 2>/dev/null | |
dfac8a13 | 2851 | |
22e05272 JM |
2852 | # Check whether --enable-silent-rules was given. |
2853 | if test "${enable_silent_rules+set}" = set; then : | |
2854 | enableval=$enable_silent_rules; | |
2855 | fi | |
2856 | ||
2857 | case $enable_silent_rules in # ((( | |
2858 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2859 | no) AM_DEFAULT_VERBOSITY=1;; | |
2860 | *) AM_DEFAULT_VERBOSITY=1;; | |
2861 | esac | |
2862 | am_make=${MAKE-make} | |
2863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2864 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2865 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2866 | $as_echo_n "(cached) " >&6 | |
2867 | else | |
2868 | if $as_echo 'TRUE=$(BAR$(V)) | |
2869 | BAR0=false | |
2870 | BAR1=true | |
2871 | V=1 | |
2872 | am__doit: | |
2873 | @$(TRUE) | |
2874 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2875 | am_cv_make_support_nested_variables=yes | |
2876 | else | |
2877 | am_cv_make_support_nested_variables=no | |
2878 | fi | |
2879 | fi | |
2880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2881 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2882 | if test $am_cv_make_support_nested_variables = yes; then | |
2883 | AM_V='$(V)' | |
2884 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2885 | else | |
2886 | AM_V=$AM_DEFAULT_VERBOSITY | |
2887 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2888 | fi | |
2889 | AM_BACKSLASH='\' | |
2890 | ||
5213506e RW |
2891 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2892 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2893 | # is not polluted with repeated "-I." | |
2894 | am__isrc=' -I$(srcdir)' | |
2895 | # test to see if srcdir already configured | |
2896 | if test -f $srcdir/config.status; then | |
22e05272 | 2897 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
5213506e | 2898 | fi |
dfac8a13 | 2899 | fi |
a8aea176 | 2900 | |
9fabf579 KC |
2901 | # test whether we have cygpath |
2902 | if test -z "$CYGPATH_W"; then | |
2903 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2904 | CYGPATH_W='cygpath -w' | |
2905 | else | |
2906 | CYGPATH_W=echo | |
2907 | fi | |
2908 | fi | |
2909 | ||
2910 | ||
2911 | # Define the identity of the package. | |
22e05272 JM |
2912 | PACKAGE='zlib' |
2913 | VERSION='1.1.4' | |
9fabf579 KC |
2914 | |
2915 | ||
a8aea176 | 2916 | cat >>confdefs.h <<_ACEOF |
dfac8a13 | 2917 | #define PACKAGE "$PACKAGE" |
a8aea176 | 2918 | _ACEOF |
dfac8a13 | 2919 | |
a8aea176 NN |
2920 | |
2921 | cat >>confdefs.h <<_ACEOF | |
dfac8a13 | 2922 | #define VERSION "$VERSION" |
a8aea176 | 2923 | _ACEOF |
dfac8a13 | 2924 | |
9fabf579 KC |
2925 | # Some tools Automake needs. |
2926 | ||
2927 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2928 | ||
2929 | ||
2930 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2931 | ||
2932 | ||
2933 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
dfac8a13 TT |
2934 | |
2935 | ||
9fabf579 KC |
2936 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
2937 | ||
2938 | ||
2939 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2940 | ||
22e05272 JM |
2941 | # For better backward compatibility. To be removed once Automake 1.9.x |
2942 | # dies out for good. For more background, see: | |
2943 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
2944 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
2945 | mkdir_p='$(MKDIR_P)' | |
2946 | ||
2947 | # We need awk for the "check" target (and possibly the TAP driver). The | |
2948 | # system "awk" is bad on some platforms. | |
39ba2a0e MH |
2949 | # Always define AMTAR for backward compatibility. Yes, it's still used |
2950 | # in the wild :-( We should find a proper way to deprecate it ... | |
2951 | AMTAR='$${TAR-tar}' | |
17210dff | 2952 | |
22e05272 JM |
2953 | |
2954 | # We'll loop over all known methods to create a tar archive until one works. | |
2955 | _am_tools='gnutar pax cpio none' | |
2956 | ||
39ba2a0e | 2957 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
17210dff TT |
2958 | |
2959 | ||
9fabf579 | 2960 | |
dfac8a13 TT |
2961 | |
2962 | ||
2963 | ||
22e05272 JM |
2964 | # POSIX will say in a future version that running "rm -f" with no argument |
2965 | # is OK; and we want to be able to make that assumption in our Makefile | |
2966 | # recipes. So use an aggressive probe to check that the usage we want is | |
2967 | # actually supported "in the wild" to an acceptable degree. | |
2968 | # See automake bug#10828. | |
2969 | # To make any issue more visible, cause the running configure to be aborted | |
2970 | # by default if the 'rm' program in use doesn't match our expectations; the | |
2971 | # user can still override this though. | |
2972 | if rm -f && rm -fr && rm -rf; then : OK; else | |
2973 | cat >&2 <<'END' | |
2974 | Oops! | |
2975 | ||
2976 | Your 'rm' program seems unable to run without file operands specified | |
2977 | on the command line, even when the '-f' option is present. This is contrary | |
2978 | to the behaviour of most rm programs out there, and not conforming with | |
2979 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
2980 | ||
2981 | Please tell bug-automake@gnu.org about your system, including the value | |
2982 | of your $PATH and any error possibly output before this message. This | |
2983 | can help us improve future automake versions. | |
2984 | ||
2985 | END | |
2986 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
2987 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
2988 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
2989 | echo >&2 | |
2990 | else | |
2991 | cat >&2 <<'END' | |
2992 | Aborting the configuration process, to ensure you take notice of the issue. | |
2993 | ||
2994 | You can download and install GNU coreutils to get an 'rm' implementation | |
2995 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
2996 | ||
2997 | If you want to complete the configuration process using your problematic | |
2998 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
2999 | to "yes", and re-run configure. | |
3000 | ||
3001 | END | |
3002 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3003 | fi | |
3004 | fi | |
3005 | ||
3006 | ||
5213506e RW |
3007 | |
3008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
3009 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
3010 | # Check whether --enable-maintainer-mode was given. | |
3011 | if test "${enable_maintainer_mode+set}" = set; then : | |
3012 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
e093c992 AG |
3013 | else |
3014 | USE_MAINTAINER_MODE=no | |
5213506e | 3015 | fi |
e093c992 | 3016 | |
5213506e RW |
3017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
3018 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3019 | if test $USE_MAINTAINER_MODE = yes; then | |
e093c992 AG |
3020 | MAINTAINER_MODE_TRUE= |
3021 | MAINTAINER_MODE_FALSE='#' | |
3022 | else | |
3023 | MAINTAINER_MODE_TRUE='#' | |
3024 | MAINTAINER_MODE_FALSE= | |
3025 | fi | |
9fabf579 | 3026 | |
e093c992 | 3027 | MAINT=$MAINTAINER_MODE_TRUE |
a8aea176 NN |
3028 | |
3029 | ||
e093c992 AG |
3030 | |
3031 | ||
5213506e RW |
3032 | # Check whether --with-target-subdir was given. |
3033 | if test "${with_target_subdir+set}" = set; then : | |
3034 | withval=$with_target_subdir; | |
3035 | fi | |
a8aea176 | 3036 | |
a8aea176 NN |
3037 | |
3038 | if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then | |
3039 | COMPPATH=. | |
3040 | else | |
3041 | COMPPATH=.. | |
dfac8a13 TT |
3042 | fi |
3043 | ||
a8aea176 NN |
3044 | |
3045 | ||
5213506e RW |
3046 | # Check whether --with-cross-host was given. |
3047 | if test "${with_cross_host+set}" = set; then : | |
3048 | withval=$with_cross_host; | |
3049 | fi | |
dfac8a13 TT |
3050 | |
3051 | ||
5213506e RW |
3052 | # Check whether --enable-multilib was given. |
3053 | if test "${enable_multilib+set}" = set; then : | |
3054 | enableval=$enable_multilib; case "${enableval}" in | |
dfac8a13 TT |
3055 | yes) multilib=yes ;; |
3056 | no) multilib=no ;; | |
22e05272 | 3057 | *) as_fn_error $? "bad value ${enableval} for multilib option" "$LINENO" 5 ;; |
dfac8a13 TT |
3058 | esac |
3059 | else | |
67d08194 | 3060 | test -z "$with_target_subdir" && multilib=no || multilib=yes |
5213506e | 3061 | fi |
dfac8a13 | 3062 | |
79a9a529 | 3063 | |
5213506e RW |
3064 | # Check whether --with-system-zlib was given. |
3065 | if test "${with_system_zlib+set}" = set; then : | |
3066 | withval=$with_system_zlib; | |
3067 | fi | |
3068 | ||
a8aea176 NN |
3069 | |
3070 | # Make sure we don't test executables when making cross-tools. | |
3071 | ||
3072 | ||
076e5443 PB |
3073 | # The same as in boehm-gc and libstdc++. Have to borrow it from there. |
3074 | # We must force CC to /not/ be precious variables; otherwise | |
3075 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
3076 | # As a side effect, we have to subst CFLAGS ourselves. | |
3077 | ||
3078 | ||
3079 | ||
a8aea176 NN |
3080 | ac_ext=c |
3081 | ac_cpp='$CPP $CPPFLAGS' | |
3082 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3083 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3084 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3085 | if test -n "$ac_tool_prefix"; then | |
3086 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3087 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
3088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3089 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3090 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3091 | $as_echo_n "(cached) " >&6 |
a8aea176 NN |
3092 | else |
3093 | if test -n "$CC"; then | |
3094 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3095 | else | |
3096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3097 | for as_dir in $PATH | |
3098 | do | |
3099 | IFS=$as_save_IFS | |
3100 | test -z "$as_dir" && as_dir=. | |
5213506e | 3101 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3102 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a8aea176 | 3103 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 3104 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a8aea176 NN |
3105 | break 2 |
3106 | fi | |
3107 | done | |
5213506e RW |
3108 | done |
3109 | IFS=$as_save_IFS | |
79a9a529 | 3110 | |
a8aea176 NN |
3111 | fi |
3112 | fi | |
3113 | CC=$ac_cv_prog_CC | |
3114 | if test -n "$CC"; then | |
5213506e RW |
3115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3116 | $as_echo "$CC" >&6; } | |
a8aea176 | 3117 | else |
5213506e RW |
3118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3119 | $as_echo "no" >&6; } | |
a8aea176 | 3120 | fi |
025fd00e | 3121 | |
5213506e | 3122 | |
a8aea176 NN |
3123 | fi |
3124 | if test -z "$ac_cv_prog_CC"; then | |
3125 | ac_ct_CC=$CC | |
3126 | # Extract the first word of "gcc", so it can be a program name with args. | |
dfac8a13 | 3127 | set dummy gcc; ac_word=$2 |
5213506e RW |
3128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3129 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3130 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 3131 | $as_echo_n "(cached) " >&6 |
a8aea176 NN |
3132 | else |
3133 | if test -n "$ac_ct_CC"; then | |
3134 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3135 | else | |
3136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3137 | for as_dir in $PATH | |
3138 | do | |
3139 | IFS=$as_save_IFS | |
3140 | test -z "$as_dir" && as_dir=. | |
5213506e | 3141 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3142 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a8aea176 | 3143 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 3144 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a8aea176 NN |
3145 | break 2 |
3146 | fi | |
3147 | done | |
5213506e RW |
3148 | done |
3149 | IFS=$as_save_IFS | |
a8aea176 NN |
3150 | |
3151 | fi | |
3152 | fi | |
3153 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3154 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
3155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3156 | $as_echo "$ac_ct_CC" >&6; } | |
a8aea176 | 3157 | else |
5213506e RW |
3158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3159 | $as_echo "no" >&6; } | |
a8aea176 NN |
3160 | fi |
3161 | ||
5213506e RW |
3162 | if test "x$ac_ct_CC" = x; then |
3163 | CC="" | |
3164 | else | |
3165 | case $cross_compiling:$ac_tool_warned in | |
3166 | yes:) | |
3167 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3168 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3169 | ac_tool_warned=yes ;; | |
3170 | esac | |
3171 | CC=$ac_ct_CC | |
3172 | fi | |
a8aea176 NN |
3173 | else |
3174 | CC="$ac_cv_prog_CC" | |
3175 | fi | |
3176 | ||
3177 | if test -z "$CC"; then | |
5213506e RW |
3178 | if test -n "$ac_tool_prefix"; then |
3179 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
a8aea176 | 3180 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
3181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3182 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3183 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3184 | $as_echo_n "(cached) " >&6 |
dfac8a13 TT |
3185 | else |
3186 | if test -n "$CC"; then | |
3187 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3188 | else | |
a8aea176 NN |
3189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3190 | for as_dir in $PATH | |
3191 | do | |
3192 | IFS=$as_save_IFS | |
3193 | test -z "$as_dir" && as_dir=. | |
5213506e | 3194 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3195 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a8aea176 | 3196 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 3197 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a8aea176 NN |
3198 | break 2 |
3199 | fi | |
3200 | done | |
5213506e RW |
3201 | done |
3202 | IFS=$as_save_IFS | |
a8aea176 | 3203 | |
dfac8a13 TT |
3204 | fi |
3205 | fi | |
a8aea176 | 3206 | CC=$ac_cv_prog_CC |
dfac8a13 | 3207 | if test -n "$CC"; then |
5213506e RW |
3208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3209 | $as_echo "$CC" >&6; } | |
dfac8a13 | 3210 | else |
5213506e RW |
3211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3212 | $as_echo "no" >&6; } | |
dfac8a13 TT |
3213 | fi |
3214 | ||
a8aea176 | 3215 | |
5213506e | 3216 | fi |
a8aea176 | 3217 | fi |
dfac8a13 TT |
3218 | if test -z "$CC"; then |
3219 | # Extract the first word of "cc", so it can be a program name with args. | |
3220 | set dummy cc; ac_word=$2 | |
5213506e RW |
3221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3222 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3223 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3224 | $as_echo_n "(cached) " >&6 |
dfac8a13 TT |
3225 | else |
3226 | if test -n "$CC"; then | |
3227 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3228 | else | |
dfac8a13 | 3229 | ac_prog_rejected=no |
a8aea176 NN |
3230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3231 | for as_dir in $PATH | |
3232 | do | |
3233 | IFS=$as_save_IFS | |
3234 | test -z "$as_dir" && as_dir=. | |
5213506e | 3235 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3236 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a8aea176 NN |
3237 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3238 | ac_prog_rejected=yes | |
3239 | continue | |
3240 | fi | |
3241 | ac_cv_prog_CC="cc" | |
5213506e | 3242 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a8aea176 NN |
3243 | break 2 |
3244 | fi | |
3245 | done | |
5213506e RW |
3246 | done |
3247 | IFS=$as_save_IFS | |
a8aea176 | 3248 | |
dfac8a13 TT |
3249 | if test $ac_prog_rejected = yes; then |
3250 | # We found a bogon in the path, so make sure we never use it. | |
3251 | set dummy $ac_cv_prog_CC | |
3252 | shift | |
a8aea176 | 3253 | if test $# != 0; then |
dfac8a13 TT |
3254 | # We chose a different compiler from the bogus one. |
3255 | # However, it has the same basename, so the bogon will be chosen | |
3256 | # first if we set CC to just the basename; use the full file name. | |
3257 | shift | |
a8aea176 | 3258 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
dfac8a13 TT |
3259 | fi |
3260 | fi | |
3261 | fi | |
3262 | fi | |
a8aea176 | 3263 | CC=$ac_cv_prog_CC |
dfac8a13 | 3264 | if test -n "$CC"; then |
5213506e RW |
3265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3266 | $as_echo "$CC" >&6; } | |
dfac8a13 | 3267 | else |
5213506e RW |
3268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3269 | $as_echo "no" >&6; } | |
dfac8a13 TT |
3270 | fi |
3271 | ||
5213506e | 3272 | |
dfac8a13 | 3273 | fi |
a8aea176 NN |
3274 | if test -z "$CC"; then |
3275 | if test -n "$ac_tool_prefix"; then | |
5213506e | 3276 | for ac_prog in cl.exe |
a8aea176 NN |
3277 | do |
3278 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3279 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
3280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3281 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3282 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3283 | $as_echo_n "(cached) " >&6 |
dfac8a13 | 3284 | else |
a8aea176 NN |
3285 | if test -n "$CC"; then |
3286 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
dfac8a13 | 3287 | else |
a8aea176 NN |
3288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3289 | for as_dir in $PATH | |
3290 | do | |
3291 | IFS=$as_save_IFS | |
3292 | test -z "$as_dir" && as_dir=. | |
5213506e | 3293 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3294 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a8aea176 | 3295 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 3296 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a8aea176 NN |
3297 | break 2 |
3298 | fi | |
3299 | done | |
5213506e RW |
3300 | done |
3301 | IFS=$as_save_IFS | |
a8aea176 | 3302 | |
dfac8a13 | 3303 | fi |
a8aea176 NN |
3304 | fi |
3305 | CC=$ac_cv_prog_CC | |
3306 | if test -n "$CC"; then | |
5213506e RW |
3307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3308 | $as_echo "$CC" >&6; } | |
a8aea176 | 3309 | else |
5213506e RW |
3310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3311 | $as_echo "no" >&6; } | |
dfac8a13 TT |
3312 | fi |
3313 | ||
5213506e | 3314 | |
a8aea176 NN |
3315 | test -n "$CC" && break |
3316 | done | |
3317 | fi | |
3318 | if test -z "$CC"; then | |
3319 | ac_ct_CC=$CC | |
5213506e | 3320 | for ac_prog in cl.exe |
a8aea176 NN |
3321 | do |
3322 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3323 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
3324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3325 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3326 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 3327 | $as_echo_n "(cached) " >&6 |
dfac8a13 | 3328 | else |
a8aea176 NN |
3329 | if test -n "$ac_ct_CC"; then |
3330 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3331 | else | |
3332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3333 | for as_dir in $PATH | |
3334 | do | |
3335 | IFS=$as_save_IFS | |
3336 | test -z "$as_dir" && as_dir=. | |
5213506e | 3337 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3338 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a8aea176 | 3339 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 3340 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a8aea176 NN |
3341 | break 2 |
3342 | fi | |
3343 | done | |
5213506e RW |
3344 | done |
3345 | IFS=$as_save_IFS | |
a8aea176 NN |
3346 | |
3347 | fi | |
3348 | fi | |
3349 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3350 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
3351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3352 | $as_echo "$ac_ct_CC" >&6; } | |
dfac8a13 | 3353 | else |
5213506e RW |
3354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3355 | $as_echo "no" >&6; } | |
dfac8a13 | 3356 | fi |
dfac8a13 | 3357 | |
5213506e | 3358 | |
a8aea176 NN |
3359 | test -n "$ac_ct_CC" && break |
3360 | done | |
3361 | ||
5213506e RW |
3362 | if test "x$ac_ct_CC" = x; then |
3363 | CC="" | |
3364 | else | |
3365 | case $cross_compiling:$ac_tool_warned in | |
3366 | yes:) | |
3367 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3368 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3369 | ac_tool_warned=yes ;; | |
3370 | esac | |
3371 | CC=$ac_ct_CC | |
3372 | fi | |
a8aea176 NN |
3373 | fi |
3374 | ||
3375 | fi | |
3376 | ||
3377 | ||
5213506e RW |
3378 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3379 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3380 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3381 | See \`config.log' for more details" "$LINENO" 5; } | |
a8aea176 NN |
3382 | |
3383 | # Provide some information about the compiler. | |
5213506e RW |
3384 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3385 | set X $ac_compile | |
3386 | ac_compiler=$2 | |
3387 | for ac_option in --version -v -V -qversion; do | |
3388 | { { ac_try="$ac_compiler $ac_option >&5" | |
3389 | case "(($ac_try" in | |
3390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3391 | *) ac_try_echo=$ac_try;; | |
3392 | esac | |
3393 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3394 | $as_echo "$ac_try_echo"; } >&5 | |
3395 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
a8aea176 | 3396 | ac_status=$? |
5213506e RW |
3397 | if test -s conftest.err; then |
3398 | sed '10a\ | |
3399 | ... rest of stderr output deleted ... | |
3400 | 10q' conftest.err >conftest.er1 | |
3401 | cat conftest.er1 >&5 | |
5213506e | 3402 | fi |
22e05272 | 3403 | rm -f conftest.er1 conftest.err |
5213506e RW |
3404 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3405 | test $ac_status = 0; } | |
3406 | done | |
a8aea176 | 3407 | |
5213506e | 3408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a8aea176 | 3409 | /* end confdefs.h. */ |
c0827870 | 3410 | #include <stdio.h> |
a8aea176 NN |
3411 | int |
3412 | main () | |
3413 | { | |
c0827870 | 3414 | printf ("hello world\n"); |
a8aea176 NN |
3415 | ; |
3416 | return 0; | |
3417 | } | |
3418 | _ACEOF | |
3419 | # FIXME: Cleanup? | |
5213506e | 3420 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
a8aea176 NN |
3421 | (eval $ac_link) 2>&5 |
3422 | ac_status=$? | |
5213506e RW |
3423 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3424 | test $ac_status = 0; }; then : | |
a8aea176 NN |
3425 | gcc_no_link=no |
3426 | else | |
3427 | gcc_no_link=yes | |
dfac8a13 | 3428 | fi |
a8aea176 NN |
3429 | if test x$gcc_no_link = xyes; then |
3430 | # Setting cross_compile will disable run tests; it will | |
3431 | # also disable AC_CHECK_FILE but that's generally | |
3432 | # correct if we can't link. | |
3433 | cross_compiling=yes | |
3434 | EXEEXT= | |
3435 | else | |
5213506e | 3436 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a8aea176 NN |
3437 | /* end confdefs.h. */ |
3438 | ||
3439 | int | |
3440 | main () | |
3441 | { | |
3442 | ||
3443 | ; | |
3444 | return 0; | |
3445 | } | |
3446 | _ACEOF | |
3447 | ac_clean_files_save=$ac_clean_files | |
22e05272 | 3448 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
a8aea176 NN |
3449 | # Try to create an executable without -o first, disregard a.out. |
3450 | # It will help us diagnose broken compilers, and finding out an intuition | |
3451 | # of exeext. | |
22e05272 JM |
3452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3453 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
5213506e RW |
3454 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3455 | ||
3456 | # The possible output files: | |
3457 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3458 | ||
3459 | ac_rmfiles= | |
3460 | for ac_file in $ac_files | |
3461 | do | |
3462 | case $ac_file in | |
3463 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3464 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3465 | esac | |
3466 | done | |
3467 | rm -f $ac_rmfiles | |
3468 | ||
3469 | if { { ac_try="$ac_link_default" | |
3470 | case "(($ac_try" in | |
3471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3472 | *) ac_try_echo=$ac_try;; | |
3473 | esac | |
3474 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3475 | $as_echo "$ac_try_echo"; } >&5 | |
3476 | (eval "$ac_link_default") 2>&5 | |
a8aea176 | 3477 | ac_status=$? |
5213506e RW |
3478 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3479 | test $ac_status = 0; }; then : | |
3480 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3481 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3482 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3483 | # so that the user can short-circuit this test for compilers unknown to | |
3484 | # Autoconf. | |
3485 | for ac_file in $ac_files '' | |
a8aea176 NN |
3486 | do |
3487 | test -f "$ac_file" || continue | |
3488 | case $ac_file in | |
5213506e | 3489 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
a8aea176 NN |
3490 | ;; |
3491 | [ab].out ) | |
3492 | # We found the default executable, but exeext='' is most | |
3493 | # certainly right. | |
3494 | break;; | |
3495 | *.* ) | |
5213506e RW |
3496 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3497 | then :; else | |
3498 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3499 | fi | |
3500 | # We set ac_cv_exeext here because the later test for it is not | |
3501 | # safe: cross compilers may not add the suffix if given an `-o' | |
3502 | # argument, so we may need to know it at that point already. | |
3503 | # Even if this section looks crufty: it has the advantage of | |
3504 | # actually working. | |
a8aea176 NN |
3505 | break;; |
3506 | * ) | |
3507 | break;; | |
3508 | esac | |
3509 | done | |
5213506e RW |
3510 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3511 | ||
a8aea176 | 3512 | else |
5213506e RW |
3513 | ac_file='' |
3514 | fi | |
5213506e | 3515 | if test -z "$ac_file"; then : |
22e05272 JM |
3516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3517 | $as_echo "no" >&6; } | |
3518 | $as_echo "$as_me: failed program was:" >&5 | |
a8aea176 NN |
3519 | sed 's/^/| /' conftest.$ac_ext >&5 |
3520 | ||
5213506e RW |
3521 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3522 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3523 | as_fn_error 77 "C compiler cannot create executables |
3524 | See \`config.log' for more details" "$LINENO" 5; } | |
3525 | else | |
3526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3527 | $as_echo "yes" >&6; } | |
a8aea176 | 3528 | fi |
22e05272 JM |
3529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3530 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3532 | $as_echo "$ac_file" >&6; } | |
a8aea176 | 3533 | ac_exeext=$ac_cv_exeext |
a8aea176 | 3534 | |
22e05272 | 3535 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
a8aea176 | 3536 | ac_clean_files=$ac_clean_files_save |
5213506e RW |
3537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3538 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3539 | if { { ac_try="$ac_link" | |
3540 | case "(($ac_try" in | |
3541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3542 | *) ac_try_echo=$ac_try;; | |
3543 | esac | |
3544 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3545 | $as_echo "$ac_try_echo"; } >&5 | |
3546 | (eval "$ac_link") 2>&5 | |
a8aea176 | 3547 | ac_status=$? |
5213506e RW |
3548 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3549 | test $ac_status = 0; }; then : | |
a8aea176 NN |
3550 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3551 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3552 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3553 | # `rm'. | |
3554 | for ac_file in conftest.exe conftest conftest.*; do | |
3555 | test -f "$ac_file" || continue | |
3556 | case $ac_file in | |
5213506e | 3557 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
a8aea176 | 3558 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
a8aea176 NN |
3559 | break;; |
3560 | * ) break;; | |
3561 | esac | |
3562 | done | |
dfac8a13 | 3563 | else |
5213506e RW |
3564 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3565 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3566 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3567 | See \`config.log' for more details" "$LINENO" 5; } | |
a8aea176 | 3568 | fi |
22e05272 | 3569 | rm -f conftest conftest$ac_cv_exeext |
5213506e RW |
3570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3571 | $as_echo "$ac_cv_exeext" >&6; } | |
a8aea176 NN |
3572 | |
3573 | rm -f conftest.$ac_ext | |
3574 | EXEEXT=$ac_cv_exeext | |
3575 | ac_exeext=$EXEEXT | |
22e05272 JM |
3576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3577 | /* end confdefs.h. */ | |
3578 | #include <stdio.h> | |
3579 | int | |
3580 | main () | |
3581 | { | |
3582 | FILE *f = fopen ("conftest.out", "w"); | |
3583 | return ferror (f) || fclose (f) != 0; | |
3584 | ||
3585 | ; | |
3586 | return 0; | |
3587 | } | |
3588 | _ACEOF | |
3589 | ac_clean_files="$ac_clean_files conftest.out" | |
3590 | # Check that the compiler produces executables we can run. If not, either | |
3591 | # the compiler is broken, or we cross compile. | |
3592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3593 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3594 | if test "$cross_compiling" != yes; then | |
3595 | { { ac_try="$ac_link" | |
3596 | case "(($ac_try" in | |
3597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3598 | *) ac_try_echo=$ac_try;; | |
3599 | esac | |
3600 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3601 | $as_echo "$ac_try_echo"; } >&5 | |
3602 | (eval "$ac_link") 2>&5 | |
3603 | ac_status=$? | |
3604 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3605 | test $ac_status = 0; } | |
3606 | if { ac_try='./conftest$ac_cv_exeext' | |
3607 | { { case "(($ac_try" in | |
3608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3609 | *) ac_try_echo=$ac_try;; | |
3610 | esac | |
3611 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3612 | $as_echo "$ac_try_echo"; } >&5 | |
3613 | (eval "$ac_try") 2>&5 | |
3614 | ac_status=$? | |
3615 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3616 | test $ac_status = 0; }; }; then | |
3617 | cross_compiling=no | |
3618 | else | |
3619 | if test "$cross_compiling" = maybe; then | |
3620 | cross_compiling=yes | |
3621 | else | |
3622 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3623 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3624 | as_fn_error $? "cannot run C compiled programs. | |
3625 | If you meant to cross compile, use \`--host'. | |
3626 | See \`config.log' for more details" "$LINENO" 5; } | |
3627 | fi | |
3628 | fi | |
3629 | fi | |
3630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3631 | $as_echo "$cross_compiling" >&6; } | |
3632 | ||
3633 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3634 | ac_clean_files=$ac_clean_files_save | |
a8aea176 | 3635 | fi |
5213506e RW |
3636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3637 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 3638 | if ${ac_cv_objext+:} false; then : |
5213506e | 3639 | $as_echo_n "(cached) " >&6 |
5d836b57 | 3640 | else |
5213506e | 3641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a8aea176 | 3642 | /* end confdefs.h. */ |
5d836b57 | 3643 | |
a8aea176 NN |
3644 | int |
3645 | main () | |
3646 | { | |
5d836b57 | 3647 | |
a8aea176 NN |
3648 | ; |
3649 | return 0; | |
3650 | } | |
3651 | _ACEOF | |
3652 | rm -f conftest.o conftest.obj | |
5213506e RW |
3653 | if { { ac_try="$ac_compile" |
3654 | case "(($ac_try" in | |
3655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3656 | *) ac_try_echo=$ac_try;; | |
3657 | esac | |
3658 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3659 | $as_echo "$ac_try_echo"; } >&5 | |
3660 | (eval "$ac_compile") 2>&5 | |
a8aea176 | 3661 | ac_status=$? |
5213506e RW |
3662 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3663 | test $ac_status = 0; }; then : | |
3664 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3665 | test -f "$ac_file" || continue; | |
a8aea176 | 3666 | case $ac_file in |
5213506e | 3667 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
a8aea176 NN |
3668 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3669 | break;; | |
3670 | esac | |
3671 | done | |
5d836b57 | 3672 | else |
5213506e | 3673 | $as_echo "$as_me: failed program was:" >&5 |
a8aea176 NN |
3674 | sed 's/^/| /' conftest.$ac_ext >&5 |
3675 | ||
5213506e RW |
3676 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3677 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3678 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3679 | See \`config.log' for more details" "$LINENO" 5; } | |
5d836b57 | 3680 | fi |
a8aea176 NN |
3681 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3682 | fi | |
5213506e RW |
3683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3684 | $as_echo "$ac_cv_objext" >&6; } | |
a8aea176 NN |
3685 | OBJEXT=$ac_cv_objext |
3686 | ac_objext=$OBJEXT | |
5213506e RW |
3687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3688 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 3689 | if ${ac_cv_c_compiler_gnu+:} false; then : |
5213506e | 3690 | $as_echo_n "(cached) " >&6 |
5d836b57 | 3691 | else |
5213506e | 3692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a8aea176 | 3693 | /* end confdefs.h. */ |
5d836b57 | 3694 | |
a8aea176 NN |
3695 | int |
3696 | main () | |
3697 | { | |
3698 | #ifndef __GNUC__ | |
3699 | choke me | |
3700 | #endif | |
3701 | ||
3702 | ; | |
3703 | return 0; | |
3704 | } | |
3705 | _ACEOF | |
5213506e | 3706 | if ac_fn_c_try_compile "$LINENO"; then : |
a8aea176 | 3707 | ac_compiler_gnu=yes |
5d836b57 | 3708 | else |
5213506e | 3709 | ac_compiler_gnu=no |
5d836b57 | 3710 | fi |
5213506e | 3711 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a8aea176 | 3712 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
5d836b57 | 3713 | |
a8aea176 | 3714 | fi |
5213506e RW |
3715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3716 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3717 | if test $ac_compiler_gnu = yes; then | |
3718 | GCC=yes | |
3719 | else | |
3720 | GCC= | |
3721 | fi | |
a8aea176 NN |
3722 | ac_test_CFLAGS=${CFLAGS+set} |
3723 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
3724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3725 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 3726 | if ${ac_cv_prog_cc_g+:} false; then : |
5213506e RW |
3727 | $as_echo_n "(cached) " >&6 |
3728 | else | |
3729 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3730 | ac_c_werror_flag=yes | |
3731 | ac_cv_prog_cc_g=no | |
3732 | CFLAGS="-g" | |
3733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a8aea176 | 3734 | /* end confdefs.h. */ |
5d836b57 | 3735 | |
a8aea176 NN |
3736 | int |
3737 | main () | |
3738 | { | |
5d836b57 | 3739 | |
a8aea176 NN |
3740 | ; |
3741 | return 0; | |
3742 | } | |
3743 | _ACEOF | |
5213506e | 3744 | if ac_fn_c_try_compile "$LINENO"; then : |
a8aea176 | 3745 | ac_cv_prog_cc_g=yes |
5d836b57 | 3746 | else |
5213506e RW |
3747 | CFLAGS="" |
3748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3749 | /* end confdefs.h. */ | |
3750 | ||
3751 | int | |
3752 | main () | |
3753 | { | |
3754 | ||
3755 | ; | |
3756 | return 0; | |
3757 | } | |
3758 | _ACEOF | |
3759 | if ac_fn_c_try_compile "$LINENO"; then : | |
3760 | ||
3761 | else | |
3762 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3763 | CFLAGS="-g" | |
3764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3765 | /* end confdefs.h. */ | |
3766 | ||
3767 | int | |
3768 | main () | |
3769 | { | |
a8aea176 | 3770 | |
5213506e RW |
3771 | ; |
3772 | return 0; | |
3773 | } | |
3774 | _ACEOF | |
3775 | if ac_fn_c_try_compile "$LINENO"; then : | |
3776 | ac_cv_prog_cc_g=yes | |
3777 | fi | |
3778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a8aea176 | 3779 | fi |
5213506e | 3780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a8aea176 | 3781 | fi |
5213506e RW |
3782 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3783 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3784 | fi | |
3785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3786 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
a8aea176 NN |
3787 | if test "$ac_test_CFLAGS" = set; then |
3788 | CFLAGS=$ac_save_CFLAGS | |
3789 | elif test $ac_cv_prog_cc_g = yes; then | |
3790 | if test "$GCC" = yes; then | |
3791 | CFLAGS="-g -O2" | |
3792 | else | |
3793 | CFLAGS="-g" | |
3794 | fi | |
5d836b57 | 3795 | else |
a8aea176 NN |
3796 | if test "$GCC" = yes; then |
3797 | CFLAGS="-O2" | |
5d836b57 | 3798 | else |
a8aea176 | 3799 | CFLAGS= |
5d836b57 | 3800 | fi |
5d836b57 | 3801 | fi |
5213506e RW |
3802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3803 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 3804 | if ${ac_cv_prog_cc_c89+:} false; then : |
5213506e | 3805 | $as_echo_n "(cached) " >&6 |
a8aea176 | 3806 | else |
5213506e | 3807 | ac_cv_prog_cc_c89=no |
a8aea176 | 3808 | ac_save_CC=$CC |
5213506e | 3809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a8aea176 NN |
3810 | /* end confdefs.h. */ |
3811 | #include <stdarg.h> | |
3812 | #include <stdio.h> | |
22e05272 | 3813 | struct stat; |
a8aea176 NN |
3814 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3815 | struct buf { int x; }; | |
3816 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3817 | static char *e (p, i) | |
3818 | char **p; | |
3819 | int i; | |
3820 | { | |
3821 | return p[i]; | |
3822 | } | |
3823 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3824 | { | |
3825 | char *s; | |
3826 | va_list v; | |
3827 | va_start (v,p); | |
3828 | s = g (p, va_arg (v,int)); | |
3829 | va_end (v); | |
3830 | return s; | |
3831 | } | |
5d836b57 | 3832 | |
a8aea176 NN |
3833 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3834 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3835 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 3836 | as 'x'. The following induces an error, until -std is added to get |
a8aea176 NN |
3837 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3838 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 3839 | that's true only with -std. */ |
a8aea176 NN |
3840 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3841 | ||
5213506e RW |
3842 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3843 | inside strings and character constants. */ | |
3844 | #define FOO(x) 'x' | |
3845 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3846 | ||
a8aea176 NN |
3847 | int test (int i, double x); |
3848 | struct s1 {int (*f) (int a);}; | |
3849 | struct s2 {int (*f) (double a);}; | |
3850 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3851 | int argc; | |
3852 | char **argv; | |
3853 | int | |
3854 | main () | |
3855 | { | |
3856 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3857 | ; | |
3858 | return 0; | |
3859 | } | |
3860 | _ACEOF | |
5213506e RW |
3861 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3862 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
a8aea176 NN |
3863 | do |
3864 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
3865 | if ac_fn_c_try_compile "$LINENO"; then : |
3866 | ac_cv_prog_cc_c89=$ac_arg | |
a8aea176 | 3867 | fi |
5213506e RW |
3868 | rm -f core conftest.err conftest.$ac_objext |
3869 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
a8aea176 | 3870 | done |
5213506e | 3871 | rm -f conftest.$ac_ext |
a8aea176 NN |
3872 | CC=$ac_save_CC |
3873 | ||
3874 | fi | |
5213506e RW |
3875 | # AC_CACHE_VAL |
3876 | case "x$ac_cv_prog_cc_c89" in | |
3877 | x) | |
3878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3879 | $as_echo "none needed" >&6; } ;; | |
3880 | xno) | |
3881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3882 | $as_echo "unsupported" >&6; } ;; | |
a8aea176 | 3883 | *) |
5213506e RW |
3884 | CC="$CC $ac_cv_prog_cc_c89" |
3885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3886 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
a8aea176 | 3887 | esac |
5213506e | 3888 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
a8aea176 | 3889 | |
a8aea176 NN |
3890 | fi |
3891 | ||
a8aea176 NN |
3892 | ac_ext=c |
3893 | ac_cpp='$CPP $CPPFLAGS' | |
3894 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3895 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3896 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22e05272 JM |
3897 | |
3898 | ac_ext=c | |
3899 | ac_cpp='$CPP $CPPFLAGS' | |
3900 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3901 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3902 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3904 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3905 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3906 | $as_echo_n "(cached) " >&6 | |
3907 | else | |
3908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3909 | /* end confdefs.h. */ | |
3910 | ||
3911 | int | |
3912 | main () | |
3913 | { | |
3914 | ||
3915 | ; | |
3916 | return 0; | |
3917 | } | |
3918 | _ACEOF | |
3919 | # Make sure it works both with $CC and with simple cc. | |
3920 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3921 | # compilers refuse to overwrite an existing .o file with -o, | |
3922 | # though they will create one. | |
3923 | am_cv_prog_cc_c_o=yes | |
3924 | for am_i in 1 2; do | |
3925 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3926 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3927 | ac_status=$? | |
3928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3929 | (exit $ac_status); } \ | |
3930 | && test -f conftest2.$ac_objext; then | |
3931 | : OK | |
3932 | else | |
3933 | am_cv_prog_cc_c_o=no | |
3934 | break | |
3935 | fi | |
3936 | done | |
3937 | rm -f core conftest* | |
3938 | unset am_i | |
3939 | fi | |
3940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3941 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3942 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3943 | # Losing compiler, so override with the script. | |
3944 | # FIXME: It is wrong to rewrite CC. | |
3945 | # But if we don't then we get into trouble of one sort or another. | |
3946 | # A longer-term fix would be to have automake use am__CC in this case, | |
3947 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3948 | CC="$am_aux_dir/compile $CC" | |
3949 | fi | |
3950 | ac_ext=c | |
3951 | ac_cpp='$CPP $CPPFLAGS' | |
3952 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3953 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3954 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3955 | ||
9fabf579 KC |
3956 | DEPDIR="${am__leading_dot}deps" |
3957 | ||
5213506e | 3958 | ac_config_commands="$ac_config_commands depfiles" |
9fabf579 KC |
3959 | |
3960 | ||
3961 | am_make=${MAKE-make} | |
3962 | cat > confinc << 'END' | |
3963 | am__doit: | |
5213506e | 3964 | @echo this is the am__doit target |
9fabf579 KC |
3965 | .PHONY: am__doit |
3966 | END | |
3967 | # If we don't find an include directive, just comment out the code. | |
5213506e RW |
3968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
3969 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
9fabf579 KC |
3970 | am__include="#" |
3971 | am__quote= | |
3972 | _am_result=none | |
3973 | # First try GNU make style include. | |
3974 | echo "include confinc" > confmf | |
22e05272 | 3975 | # Ignore all kinds of additional output from 'make'. |
5213506e RW |
3976 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3977 | *the\ am__doit\ target*) | |
3978 | am__include=include | |
3979 | am__quote= | |
3980 | _am_result=GNU | |
3981 | ;; | |
3982 | esac | |
9fabf579 KC |
3983 | # Now try BSD make style include. |
3984 | if test "$am__include" = "#"; then | |
3985 | echo '.include "confinc"' > confmf | |
5213506e RW |
3986 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3987 | *the\ am__doit\ target*) | |
3988 | am__include=.include | |
3989 | am__quote="\"" | |
3990 | _am_result=BSD | |
3991 | ;; | |
3992 | esac | |
9fabf579 KC |
3993 | fi |
3994 | ||
3995 | ||
5213506e RW |
3996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
3997 | $as_echo "$_am_result" >&6; } | |
9fabf579 KC |
3998 | rm -f confinc confmf |
3999 | ||
5213506e RW |
4000 | # Check whether --enable-dependency-tracking was given. |
4001 | if test "${enable_dependency_tracking+set}" = set; then : | |
4002 | enableval=$enable_dependency_tracking; | |
4003 | fi | |
9fabf579 | 4004 | |
9fabf579 KC |
4005 | if test "x$enable_dependency_tracking" != xno; then |
4006 | am_depcomp="$ac_aux_dir/depcomp" | |
4007 | AMDEPBACKSLASH='\' | |
39ba2a0e | 4008 | am__nodep='_no' |
9fabf579 | 4009 | fi |
5213506e | 4010 | if test "x$enable_dependency_tracking" != xno; then |
9fabf579 KC |
4011 | AMDEP_TRUE= |
4012 | AMDEP_FALSE='#' | |
4013 | else | |
4014 | AMDEP_TRUE='#' | |
4015 | AMDEP_FALSE= | |
4016 | fi | |
4017 | ||
4018 | ||
4019 | ||
9fabf579 KC |
4020 | depcc="$CC" am_compiler_list= |
4021 | ||
5213506e RW |
4022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4023 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
22e05272 | 4024 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
5213506e | 4025 | $as_echo_n "(cached) " >&6 |
9fabf579 KC |
4026 | else |
4027 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4028 | # We make a subdir and do the tests there. Otherwise we can end up | |
4029 | # making bogus files that we don't know about and never remove. For | |
4030 | # instance it was reported that on HP-UX the gcc test will end up | |
22e05272 JM |
4031 | # making a dummy file named 'D' -- because '-MD' means "put the output |
4032 | # in D". | |
39ba2a0e | 4033 | rm -rf conftest.dir |
9fabf579 KC |
4034 | mkdir conftest.dir |
4035 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4036 | # using a relative directory. | |
4037 | cp "$am_depcomp" conftest.dir | |
4038 | cd conftest.dir | |
4039 | # We will build objects and dependencies in a subdirectory because | |
4040 | # it helps to detect inapplicable dependency modes. For instance | |
4041 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4042 | # side effect of compilation, but ICC will put the dependencies in | |
4043 | # the current directory while Tru64 will put them in the object | |
4044 | # directory. | |
4045 | mkdir sub | |
4046 | ||
4047 | am_cv_CC_dependencies_compiler_type=none | |
4048 | if test "$am_compiler_list" = ""; then | |
4049 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4050 | fi | |
5213506e RW |
4051 | am__universal=false |
4052 | case " $depcc " in #( | |
4053 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4054 | esac | |
4055 | ||
9fabf579 KC |
4056 | for depmode in $am_compiler_list; do |
4057 | # Setup a source with many dependencies, because some compilers | |
4058 | # like to wrap large dependency lists on column 80 (with \), and | |
4059 | # we should not choose a depcomp mode which is confused by this. | |
4060 | # | |
4061 | # We need to recreate these files for each test, as the compiler may | |
4062 | # overwrite some of them when testing with obscure command lines. | |
4063 | # This happens at least with the AIX C compiler. | |
4064 | : > sub/conftest.c | |
4065 | for i in 1 2 3 4 5 6; do | |
4066 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
22e05272 JM |
4067 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
4068 | # Solaris 10 /bin/sh. | |
4069 | echo '/* dummy */' > sub/conftst$i.h | |
9fabf579 KC |
4070 | done |
4071 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4072 | ||
22e05272 | 4073 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
5213506e | 4074 | # mode. It turns out that the SunPro C++ compiler does not properly |
22e05272 JM |
4075 | # handle '-M -o', and we need to detect this. Also, some Intel |
4076 | # versions had trouble with output in subdirs. | |
5213506e RW |
4077 | am__obj=sub/conftest.${OBJEXT-o} |
4078 | am__minus_obj="-o $am__obj" | |
9fabf579 | 4079 | case $depmode in |
5213506e RW |
4080 | gcc) |
4081 | # This depmode causes a compiler race in universal mode. | |
4082 | test "$am__universal" = false || continue | |
4083 | ;; | |
9fabf579 | 4084 | nosideeffect) |
22e05272 JM |
4085 | # After this tag, mechanisms are not by side-effect, so they'll |
4086 | # only be used when explicitly requested. | |
9fabf579 KC |
4087 | if test "x$enable_dependency_tracking" = xyes; then |
4088 | continue | |
4089 | else | |
4090 | break | |
4091 | fi | |
4092 | ;; | |
39ba2a0e | 4093 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
22e05272 | 4094 | # This compiler won't grok '-c -o', but also, the minuso test has |
5213506e RW |
4095 | # not run yet. These depmodes are late enough in the game, and |
4096 | # so weak that their functioning should not be impacted. | |
4097 | am__obj=conftest.${OBJEXT-o} | |
4098 | am__minus_obj= | |
4099 | ;; | |
9fabf579 KC |
4100 | none) break ;; |
4101 | esac | |
9fabf579 | 4102 | if depmode=$depmode \ |
5213506e | 4103 | source=sub/conftest.c object=$am__obj \ |
9fabf579 | 4104 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5213506e | 4105 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
9fabf579 | 4106 | >/dev/null 2>conftest.err && |
5213506e | 4107 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
9fabf579 | 4108 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5213506e | 4109 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
9fabf579 KC |
4110 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4111 | # icc doesn't choke on unknown options, it will just issue warnings | |
076e5443 PB |
4112 | # or remarks (even with -Werror). So we grep stderr for any message |
4113 | # that says an option was ignored or not supported. | |
4114 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4115 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4116 | # The diagnosis changed in icc 8.0: | |
4117 | # icc: Command line remark: option '-MP' not supported | |
4118 | if (grep 'ignoring option' conftest.err || | |
4119 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
9fabf579 KC |
4120 | am_cv_CC_dependencies_compiler_type=$depmode |
4121 | break | |
4122 | fi | |
4123 | fi | |
4124 | done | |
4125 | ||
4126 | cd .. | |
4127 | rm -rf conftest.dir | |
4128 | else | |
4129 | am_cv_CC_dependencies_compiler_type=none | |
4130 | fi | |
4131 | ||
4132 | fi | |
5213506e RW |
4133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4134 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
9fabf579 KC |
4135 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4136 | ||
5213506e | 4137 | if |
9fabf579 KC |
4138 | test "x$enable_dependency_tracking" != xno \ |
4139 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4140 | am__fastdepCC_TRUE= | |
4141 | am__fastdepCC_FALSE='#' | |
4142 | else | |
4143 | am__fastdepCC_TRUE='#' | |
4144 | am__fastdepCC_FALSE= | |
4145 | fi | |
4146 | ||
a8aea176 NN |
4147 | |
4148 | ||
076e5443 PB |
4149 | |
4150 | ||
4151 | ||
c0827870 L |
4152 | # Add CET specific flags if CET is enabled |
4153 | ||
4154 | # Check whether --enable-cet was given. | |
4155 | if test "${enable_cet+set}" = set; then : | |
4156 | enableval=$enable_cet; | |
4157 | case "$enableval" in | |
4158 | yes|no|auto) ;; | |
4159 | *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;; | |
4160 | esac | |
4161 | ||
4162 | else | |
8d286dd1 | 4163 | enable_cet=auto |
c0827870 L |
4164 | fi |
4165 | ||
4166 | ||
4167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 | |
4168 | $as_echo_n "checking for CET support... " >&6; } | |
4169 | ||
9051b548 | 4170 | # NB: Avoid nested save_CFLAGS and save_LDFLAGS. |
c0827870 L |
4171 | case "$host" in |
4172 | i[34567]86-*-linux* | x86_64-*-linux*) | |
4173 | case "$enable_cet" in | |
4174 | auto) | |
4175 | # Check if target supports multi-byte NOPs | |
b1a3d2b7 | 4176 | # and if compiler and assembler support CET insn. |
9051b548 | 4177 | cet_save_CFLAGS="$CFLAGS" |
4c1a5d8b | 4178 | CFLAGS="$CFLAGS -fcf-protection" |
c0827870 L |
4179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4180 | /* end confdefs.h. */ | |
4181 | ||
4182 | int | |
4183 | main () | |
4184 | { | |
4185 | ||
4186 | #if !defined(__SSE2__) | |
4187 | #error target does not support multi-byte NOPs | |
4188 | #else | |
4189 | asm ("setssbsy"); | |
4190 | #endif | |
4191 | ||
4192 | ; | |
4193 | return 0; | |
4194 | } | |
4195 | _ACEOF | |
4196 | if ac_fn_c_try_compile "$LINENO"; then : | |
4197 | enable_cet=yes | |
4198 | else | |
4199 | enable_cet=no | |
4200 | fi | |
4201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9051b548 | 4202 | CFLAGS="$cet_save_CFLAGS" |
c0827870 L |
4203 | ;; |
4204 | yes) | |
4205 | # Check if assembler supports CET. | |
4206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4207 | /* end confdefs.h. */ | |
4208 | ||
4209 | int | |
4210 | main () | |
4211 | { | |
4212 | asm ("setssbsy"); | |
4213 | ; | |
4214 | return 0; | |
4215 | } | |
4216 | _ACEOF | |
4217 | if ac_fn_c_try_compile "$LINENO"; then : | |
4218 | ||
4219 | else | |
4220 | as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5 | |
4221 | fi | |
4222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4223 | ;; | |
4224 | esac | |
4225 | ;; | |
4226 | *) | |
4227 | enable_cet=no | |
4228 | ;; | |
4229 | esac | |
4230 | if test x$enable_cet = xyes; then | |
4231 | CET_FLAGS="-fcf-protection -mshstk" | |
4232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4233 | $as_echo "yes" >&6; } | |
4234 | else | |
4235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4236 | $as_echo "no" >&6; } | |
4237 | fi | |
4238 | ||
4239 | ||
4240 | ||
18d98188 PG |
4241 | case `pwd` in |
4242 | *\ * | *\ *) | |
5213506e RW |
4243 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
4244 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
18d98188 | 4245 | esac |
1cf3d07d SE |
4246 | |
4247 | ||
1cf3d07d | 4248 | |
43e02a8a RW |
4249 | macro_version='2.2.7a' |
4250 | macro_revision='1.3134' | |
1cf3d07d SE |
4251 | |
4252 | ||
4253 | ||
4254 | ||
4255 | ||
4256 | ||
dfac8a13 | 4257 | |
1cf3d07d SE |
4258 | |
4259 | ||
4260 | ||
4261 | ||
4262 | ||
4263 | ||
18d98188 | 4264 | ltmain="$ac_aux_dir/ltmain.sh" |
1cf3d07d | 4265 | |
43e02a8a RW |
4266 | # Backslashify metacharacters that are still active within |
4267 | # double-quoted strings. | |
4268 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4269 | ||
4270 | # Same as above, but do not quote variable references. | |
4271 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4272 | ||
4273 | # Sed substitution to delay expansion of an escaped shell variable in a | |
4274 | # double_quote_subst'ed string. | |
4275 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4276 | ||
4277 | # Sed substitution to delay expansion of an escaped single quote. | |
4278 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4279 | ||
4280 | # Sed substitution to avoid accidental globbing in evaled expressions | |
4281 | no_glob_subst='s/\*/\\\*/g' | |
4282 | ||
4283 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4284 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4285 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4286 | ||
4287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4288 | $as_echo_n "checking how to print strings... " >&6; } | |
4289 | # Test print first, because it will be a builtin if present. | |
4290 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
4291 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4292 | ECHO='print -r --' | |
4293 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4294 | ECHO='printf %s\n' | |
4295 | else | |
4296 | # Use this function as a fallback that always works. | |
4297 | func_fallback_echo () | |
4298 | { | |
4299 | eval 'cat <<_LTECHO_EOF | |
4300 | $1 | |
4301 | _LTECHO_EOF' | |
4302 | } | |
4303 | ECHO='func_fallback_echo' | |
4304 | fi | |
4305 | ||
4306 | # func_echo_all arg... | |
4307 | # Invoke $ECHO with all args, space-separated. | |
4308 | func_echo_all () | |
4309 | { | |
4310 | $ECHO "" | |
4311 | } | |
4312 | ||
4313 | case "$ECHO" in | |
4314 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
4315 | $as_echo "printf" >&6; } ;; | |
4316 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4317 | $as_echo "print -r" >&6; } ;; | |
4318 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4319 | $as_echo "cat" >&6; } ;; | |
4320 | esac | |
4321 | ||
4322 | ||
4323 | ||
4324 | ||
4325 | ||
4326 | ||
4327 | ||
4328 | ||
4329 | ||
4330 | ||
4331 | ||
4332 | ||
4333 | ||
4334 | ||
5213506e RW |
4335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
4336 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
22e05272 | 4337 | if ${ac_cv_path_SED+:} false; then : |
5213506e RW |
4338 | $as_echo_n "(cached) " >&6 |
4339 | else | |
4340 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4341 | for ac_i in 1 2 3 4 5 6 7; do | |
4342 | ac_script="$ac_script$as_nl$ac_script" | |
4343 | done | |
4344 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
4345 | { ac_script=; unset ac_script;} | |
4346 | if test -z "$SED"; then | |
4347 | ac_path_SED_found=false | |
4348 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1cf3d07d SE |
4350 | for as_dir in $PATH |
4351 | do | |
4352 | IFS=$as_save_IFS | |
4353 | test -z "$as_dir" && as_dir=. | |
5213506e | 4354 | for ac_prog in sed gsed; do |
1cf3d07d | 4355 | for ac_exec_ext in '' $ac_executable_extensions; do |
5213506e | 4356 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
22e05272 | 4357 | as_fn_executable_p "$ac_path_SED" || continue |
5213506e RW |
4358 | # Check for GNU ac_path_SED and select it if it is found. |
4359 | # Check for GNU $ac_path_SED | |
4360 | case `"$ac_path_SED" --version 2>&1` in | |
4361 | *GNU*) | |
4362 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4363 | *) | |
4364 | ac_count=0 | |
4365 | $as_echo_n 0123456789 >"conftest.in" | |
4366 | while : | |
4367 | do | |
4368 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4369 | mv "conftest.tmp" "conftest.in" | |
4370 | cp "conftest.in" "conftest.nl" | |
4371 | $as_echo '' >> "conftest.nl" | |
4372 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4373 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4374 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4375 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
4376 | # Best one so far, save it but keep looking for a better one | |
4377 | ac_cv_path_SED="$ac_path_SED" | |
4378 | ac_path_SED_max=$ac_count | |
4379 | fi | |
4380 | # 10*(2^10) chars as input seems more than enough | |
4381 | test $ac_count -gt 10 && break | |
4382 | done | |
4383 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4384 | esac | |
4385 | ||
4386 | $ac_path_SED_found && break 3 | |
1cf3d07d SE |
4387 | done |
4388 | done | |
5213506e | 4389 | done |
1cf3d07d | 4390 | IFS=$as_save_IFS |
5213506e | 4391 | if test -z "$ac_cv_path_SED"; then |
22e05272 | 4392 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
1cf3d07d | 4393 | fi |
5213506e RW |
4394 | else |
4395 | ac_cv_path_SED=$SED | |
1cf3d07d SE |
4396 | fi |
4397 | ||
5213506e RW |
4398 | fi |
4399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
4400 | $as_echo "$ac_cv_path_SED" >&6; } | |
4401 | SED="$ac_cv_path_SED" | |
4402 | rm -f conftest.sed | |
1cf3d07d SE |
4403 | |
4404 | test -z "$SED" && SED=sed | |
4405 | Xsed="$SED -e 1s/^X//" | |
4406 | ||
4407 | ||
4408 | ||
4409 | ||
4410 | ||
4411 | ||
4412 | ||
4413 | ||
4414 | ||
4415 | ||
4416 | ||
5213506e RW |
4417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4418 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
22e05272 | 4419 | if ${ac_cv_path_GREP+:} false; then : |
5213506e RW |
4420 | $as_echo_n "(cached) " >&6 |
4421 | else | |
4422 | if test -z "$GREP"; then | |
4423 | ac_path_GREP_found=false | |
4424 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4426 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4427 | do | |
4428 | IFS=$as_save_IFS | |
4429 | test -z "$as_dir" && as_dir=. | |
4430 | for ac_prog in grep ggrep; do | |
4431 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4432 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 4433 | as_fn_executable_p "$ac_path_GREP" || continue |
5213506e RW |
4434 | # Check for GNU ac_path_GREP and select it if it is found. |
4435 | # Check for GNU $ac_path_GREP | |
4436 | case `"$ac_path_GREP" --version 2>&1` in | |
4437 | *GNU*) | |
4438 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4439 | *) | |
4440 | ac_count=0 | |
4441 | $as_echo_n 0123456789 >"conftest.in" | |
4442 | while : | |
4443 | do | |
4444 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4445 | mv "conftest.tmp" "conftest.in" | |
4446 | cp "conftest.in" "conftest.nl" | |
4447 | $as_echo 'GREP' >> "conftest.nl" | |
4448 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4449 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4450 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4451 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4452 | # Best one so far, save it but keep looking for a better one | |
4453 | ac_cv_path_GREP="$ac_path_GREP" | |
4454 | ac_path_GREP_max=$ac_count | |
4455 | fi | |
4456 | # 10*(2^10) chars as input seems more than enough | |
4457 | test $ac_count -gt 10 && break | |
4458 | done | |
4459 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4460 | esac | |
4461 | ||
4462 | $ac_path_GREP_found && break 3 | |
4463 | done | |
4464 | done | |
4465 | done | |
4466 | IFS=$as_save_IFS | |
4467 | if test -z "$ac_cv_path_GREP"; then | |
22e05272 | 4468 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
5213506e RW |
4469 | fi |
4470 | else | |
4471 | ac_cv_path_GREP=$GREP | |
4472 | fi | |
4473 | ||
4474 | fi | |
4475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4476 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4477 | GREP="$ac_cv_path_GREP" | |
4478 | ||
4479 | ||
4480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4481 | $as_echo_n "checking for egrep... " >&6; } | |
22e05272 | 4482 | if ${ac_cv_path_EGREP+:} false; then : |
5213506e | 4483 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 4484 | else |
5213506e RW |
4485 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4486 | then ac_cv_path_EGREP="$GREP -E" | |
4487 | else | |
4488 | if test -z "$EGREP"; then | |
4489 | ac_path_EGREP_found=false | |
4490 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4492 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4493 | do | |
4494 | IFS=$as_save_IFS | |
4495 | test -z "$as_dir" && as_dir=. | |
4496 | for ac_prog in egrep; do | |
4497 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4498 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 4499 | as_fn_executable_p "$ac_path_EGREP" || continue |
5213506e RW |
4500 | # Check for GNU ac_path_EGREP and select it if it is found. |
4501 | # Check for GNU $ac_path_EGREP | |
4502 | case `"$ac_path_EGREP" --version 2>&1` in | |
4503 | *GNU*) | |
4504 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4505 | *) | |
4506 | ac_count=0 | |
4507 | $as_echo_n 0123456789 >"conftest.in" | |
4508 | while : | |
4509 | do | |
4510 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4511 | mv "conftest.tmp" "conftest.in" | |
4512 | cp "conftest.in" "conftest.nl" | |
4513 | $as_echo 'EGREP' >> "conftest.nl" | |
4514 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4515 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4516 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4517 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4518 | # Best one so far, save it but keep looking for a better one | |
4519 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4520 | ac_path_EGREP_max=$ac_count | |
1cf3d07d | 4521 | fi |
5213506e RW |
4522 | # 10*(2^10) chars as input seems more than enough |
4523 | test $ac_count -gt 10 && break | |
4524 | done | |
4525 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4526 | esac | |
4527 | ||
4528 | $ac_path_EGREP_found && break 3 | |
4529 | done | |
4530 | done | |
4531 | done | |
4532 | IFS=$as_save_IFS | |
4533 | if test -z "$ac_cv_path_EGREP"; then | |
22e05272 | 4534 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
5213506e RW |
4535 | fi |
4536 | else | |
4537 | ac_cv_path_EGREP=$EGREP | |
1cf3d07d | 4538 | fi |
1cf3d07d | 4539 | |
5213506e RW |
4540 | fi |
4541 | fi | |
4542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4543 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4544 | EGREP="$ac_cv_path_EGREP" | |
1cf3d07d | 4545 | |
5213506e RW |
4546 | |
4547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
4548 | $as_echo_n "checking for fgrep... " >&6; } | |
22e05272 | 4549 | if ${ac_cv_path_FGREP+:} false; then : |
5213506e | 4550 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 4551 | else |
5213506e RW |
4552 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
4553 | then ac_cv_path_FGREP="$GREP -F" | |
4554 | else | |
4555 | if test -z "$FGREP"; then | |
4556 | ac_path_FGREP_found=false | |
4557 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4559 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4560 | do | |
4561 | IFS=$as_save_IFS | |
4562 | test -z "$as_dir" && as_dir=. | |
4563 | for ac_prog in fgrep; do | |
4564 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4565 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 4566 | as_fn_executable_p "$ac_path_FGREP" || continue |
5213506e RW |
4567 | # Check for GNU ac_path_FGREP and select it if it is found. |
4568 | # Check for GNU $ac_path_FGREP | |
4569 | case `"$ac_path_FGREP" --version 2>&1` in | |
4570 | *GNU*) | |
4571 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4572 | *) | |
4573 | ac_count=0 | |
4574 | $as_echo_n 0123456789 >"conftest.in" | |
4575 | while : | |
4576 | do | |
4577 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4578 | mv "conftest.tmp" "conftest.in" | |
4579 | cp "conftest.in" "conftest.nl" | |
4580 | $as_echo 'FGREP' >> "conftest.nl" | |
4581 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4582 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4583 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4584 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
4585 | # Best one so far, save it but keep looking for a better one | |
4586 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4587 | ac_path_FGREP_max=$ac_count | |
1cf3d07d | 4588 | fi |
5213506e RW |
4589 | # 10*(2^10) chars as input seems more than enough |
4590 | test $ac_count -gt 10 && break | |
4591 | done | |
4592 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4593 | esac | |
4594 | ||
4595 | $ac_path_FGREP_found && break 3 | |
4596 | done | |
4597 | done | |
4598 | done | |
4599 | IFS=$as_save_IFS | |
4600 | if test -z "$ac_cv_path_FGREP"; then | |
22e05272 | 4601 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
5213506e RW |
4602 | fi |
4603 | else | |
4604 | ac_cv_path_FGREP=$FGREP | |
1cf3d07d | 4605 | fi |
5213506e RW |
4606 | |
4607 | fi | |
4608 | fi | |
4609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
4610 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
4611 | FGREP="$ac_cv_path_FGREP" | |
1cf3d07d SE |
4612 | |
4613 | ||
4614 | test -z "$GREP" && GREP=grep | |
4615 | ||
4616 | ||
4617 | ||
4618 | ||
4619 | ||
4620 | ||
4621 | ||
4622 | ||
4623 | ||
4624 | ||
4625 | ||
4626 | ||
4627 | ||
4628 | ||
4629 | ||
4630 | ||
4631 | ||
4632 | ||
4633 | ||
5213506e RW |
4634 | # Check whether --with-gnu-ld was given. |
4635 | if test "${with_gnu_ld+set}" = set; then : | |
4636 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
dfac8a13 TT |
4637 | else |
4638 | with_gnu_ld=no | |
5213506e RW |
4639 | fi |
4640 | ||
dfac8a13 | 4641 | ac_prog=ld |
0fd91e0a | 4642 | if test "$GCC" = yes; then |
dfac8a13 | 4643 | # Check if gcc -print-prog-name=ld gives a path. |
5213506e RW |
4644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
4645 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
0fd91e0a AO |
4646 | case $host in |
4647 | *-*-mingw*) | |
4648 | # gcc leaves a trailing carriage return which upsets mingw | |
4649 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4650 | *) | |
4651 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4652 | esac | |
4653 | case $ac_prog in | |
dfac8a13 | 4654 | # Accept absolute paths. |
1cf3d07d | 4655 | [\\/]* | ?:[\\/]*) |
dfac8a13 | 4656 | re_direlt='/[^/][^/]*/\.\./' |
1cf3d07d SE |
4657 | # Canonicalize the pathname of ld |
4658 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4659 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4660 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
dfac8a13 TT |
4661 | done |
4662 | test -z "$LD" && LD="$ac_prog" | |
4663 | ;; | |
4664 | "") | |
4665 | # If it fails, then pretend we aren't using GCC. | |
4666 | ac_prog=ld | |
4667 | ;; | |
4668 | *) | |
4669 | # If it is relative, then search for the first ld in PATH. | |
4670 | with_gnu_ld=unknown | |
4671 | ;; | |
4672 | esac | |
4673 | elif test "$with_gnu_ld" = yes; then | |
5213506e RW |
4674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
4675 | $as_echo_n "checking for GNU ld... " >&6; } | |
dfac8a13 | 4676 | else |
5213506e RW |
4677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
4678 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
dfac8a13 | 4679 | fi |
22e05272 | 4680 | if ${lt_cv_path_LD+:} false; then : |
5213506e | 4681 | $as_echo_n "(cached) " >&6 |
dfac8a13 TT |
4682 | else |
4683 | if test -z "$LD"; then | |
1cf3d07d | 4684 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
dfac8a13 | 4685 | for ac_dir in $PATH; do |
1cf3d07d | 4686 | IFS="$lt_save_ifs" |
dfac8a13 | 4687 | test -z "$ac_dir" && ac_dir=. |
0fd91e0a AO |
4688 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
4689 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
dfac8a13 | 4690 | # Check to see if the program is GNU ld. I'd rather use --version, |
1cf3d07d | 4691 | # but apparently some variants of GNU ld only accept -v. |
dfac8a13 | 4692 | # Break only if it was the GNU/non-GNU ld that we prefer. |
1cf3d07d SE |
4693 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4694 | *GNU* | *'with BFD'*) | |
dfac8a13 | 4695 | test "$with_gnu_ld" != no && break |
1cf3d07d SE |
4696 | ;; |
4697 | *) | |
dfac8a13 | 4698 | test "$with_gnu_ld" != yes && break |
1cf3d07d SE |
4699 | ;; |
4700 | esac | |
dfac8a13 TT |
4701 | fi |
4702 | done | |
1cf3d07d | 4703 | IFS="$lt_save_ifs" |
dfac8a13 | 4704 | else |
0fd91e0a | 4705 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
dfac8a13 TT |
4706 | fi |
4707 | fi | |
4708 | ||
0fd91e0a | 4709 | LD="$lt_cv_path_LD" |
dfac8a13 | 4710 | if test -n "$LD"; then |
5213506e RW |
4711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
4712 | $as_echo "$LD" >&6; } | |
dfac8a13 | 4713 | else |
5213506e RW |
4714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4715 | $as_echo "no" >&6; } | |
a8aea176 | 4716 | fi |
22e05272 | 4717 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
5213506e RW |
4718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
4719 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
22e05272 | 4720 | if ${lt_cv_prog_gnu_ld+:} false; then : |
5213506e | 4721 | $as_echo_n "(cached) " >&6 |
dfac8a13 | 4722 | else |
1cf3d07d SE |
4723 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
4724 | case `$LD -v 2>&1 </dev/null` in | |
4725 | *GNU* | *'with BFD'*) | |
0fd91e0a | 4726 | lt_cv_prog_gnu_ld=yes |
1cf3d07d SE |
4727 | ;; |
4728 | *) | |
0fd91e0a | 4729 | lt_cv_prog_gnu_ld=no |
1cf3d07d SE |
4730 | ;; |
4731 | esac | |
dfac8a13 | 4732 | fi |
5213506e RW |
4733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
4734 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
0fd91e0a | 4735 | with_gnu_ld=$lt_cv_prog_gnu_ld |
dfac8a13 TT |
4736 | |
4737 | ||
0fd91e0a | 4738 | |
1cf3d07d SE |
4739 | |
4740 | ||
4741 | ||
4742 | ||
4743 | ||
4744 | ||
5213506e RW |
4745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
4746 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
22e05272 | 4747 | if ${lt_cv_path_NM+:} false; then : |
5213506e | 4748 | $as_echo_n "(cached) " >&6 |
dfac8a13 TT |
4749 | else |
4750 | if test -n "$NM"; then | |
4751 | # Let the user override the test. | |
0fd91e0a | 4752 | lt_cv_path_NM="$NM" |
dfac8a13 | 4753 | else |
1cf3d07d SE |
4754 | lt_nm_to_check="${ac_tool_prefix}nm" |
4755 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4756 | lt_nm_to_check="$lt_nm_to_check nm" | |
4757 | fi | |
4758 | for lt_tmp_nm in $lt_nm_to_check; do | |
4759 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4760 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4761 | IFS="$lt_save_ifs" | |
4762 | test -z "$ac_dir" && ac_dir=. | |
4763 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
4764 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4765 | # Check to see if the nm accepts a BSD-compat flag. | |
4766 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4767 | # nm: unknown option "B" ignored | |
4768 | # Tru64's nm complains that /dev/null is an invalid object file | |
4769 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4770 | */dev/null* | *'Invalid file or object type'*) | |
4771 | lt_cv_path_NM="$tmp_nm -B" | |
4772 | break | |
4773 | ;; | |
4774 | *) | |
4775 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4776 | */dev/null*) | |
4777 | lt_cv_path_NM="$tmp_nm -p" | |
4778 | break | |
4779 | ;; | |
4780 | *) | |
4781 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4782 | continue # so that we can try to find one that supports BSD flags | |
4783 | ;; | |
4784 | esac | |
4785 | ;; | |
4786 | esac | |
dfac8a13 | 4787 | fi |
1cf3d07d SE |
4788 | done |
4789 | IFS="$lt_save_ifs" | |
dfac8a13 | 4790 | done |
1cf3d07d | 4791 | : ${lt_cv_path_NM=no} |
dfac8a13 TT |
4792 | fi |
4793 | fi | |
5213506e RW |
4794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
4795 | $as_echo "$lt_cv_path_NM" >&6; } | |
1cf3d07d SE |
4796 | if test "$lt_cv_path_NM" != "no"; then |
4797 | NM="$lt_cv_path_NM" | |
0fd91e0a | 4798 | else |
1cf3d07d | 4799 | # Didn't find any BSD compatible name lister, look for dumpbin. |
43e02a8a RW |
4800 | if test -n "$DUMPBIN"; then : |
4801 | # Let the user override the test. | |
4802 | else | |
4803 | if test -n "$ac_tool_prefix"; then | |
4804 | for ac_prog in dumpbin "link -dump" | |
1cf3d07d SE |
4805 | do |
4806 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4807 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4809 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4810 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
5213506e | 4811 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
4812 | else |
4813 | if test -n "$DUMPBIN"; then | |
4814 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4815 | else | |
4816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4817 | for as_dir in $PATH | |
4818 | do | |
4819 | IFS=$as_save_IFS | |
4820 | test -z "$as_dir" && as_dir=. | |
5213506e | 4821 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4822 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 4823 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
5213506e | 4824 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
4825 | break 2 |
4826 | fi | |
4827 | done | |
5213506e RW |
4828 | done |
4829 | IFS=$as_save_IFS | |
025fd00e | 4830 | |
1cf3d07d SE |
4831 | fi |
4832 | fi | |
4833 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4834 | if test -n "$DUMPBIN"; then | |
5213506e RW |
4835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
4836 | $as_echo "$DUMPBIN" >&6; } | |
1cf3d07d | 4837 | else |
5213506e RW |
4838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4839 | $as_echo "no" >&6; } | |
1cf3d07d | 4840 | fi |
025fd00e | 4841 | |
5213506e | 4842 | |
1cf3d07d SE |
4843 | test -n "$DUMPBIN" && break |
4844 | done | |
4845 | fi | |
4846 | if test -z "$DUMPBIN"; then | |
4847 | ac_ct_DUMPBIN=$DUMPBIN | |
43e02a8a | 4848 | for ac_prog in dumpbin "link -dump" |
1cf3d07d SE |
4849 | do |
4850 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4851 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4853 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4854 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
5213506e | 4855 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
4856 | else |
4857 | if test -n "$ac_ct_DUMPBIN"; then | |
4858 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4859 | else | |
4860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4861 | for as_dir in $PATH | |
4862 | do | |
4863 | IFS=$as_save_IFS | |
4864 | test -z "$as_dir" && as_dir=. | |
5213506e | 4865 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4866 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 4867 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
5213506e | 4868 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d | 4869 | break 2 |
0fd91e0a | 4870 | fi |
1cf3d07d | 4871 | done |
5213506e RW |
4872 | done |
4873 | IFS=$as_save_IFS | |
025fd00e | 4874 | |
1cf3d07d SE |
4875 | fi |
4876 | fi | |
4877 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4878 | if test -n "$ac_ct_DUMPBIN"; then | |
5213506e RW |
4879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
4880 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
1cf3d07d | 4881 | else |
5213506e RW |
4882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4883 | $as_echo "no" >&6; } | |
1cf3d07d | 4884 | fi |
025fd00e | 4885 | |
5213506e | 4886 | |
1cf3d07d SE |
4887 | test -n "$ac_ct_DUMPBIN" && break |
4888 | done | |
025fd00e | 4889 | |
5213506e RW |
4890 | if test "x$ac_ct_DUMPBIN" = x; then |
4891 | DUMPBIN=":" | |
4892 | else | |
4893 | case $cross_compiling:$ac_tool_warned in | |
4894 | yes:) | |
4895 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4896 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4897 | ac_tool_warned=yes ;; | |
4898 | esac | |
4899 | DUMPBIN=$ac_ct_DUMPBIN | |
4900 | fi | |
1cf3d07d | 4901 | fi |
025fd00e | 4902 | |
43e02a8a RW |
4903 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
4904 | *COFF*) | |
4905 | DUMPBIN="$DUMPBIN -symbols" | |
4906 | ;; | |
4907 | *) | |
4908 | DUMPBIN=: | |
4909 | ;; | |
4910 | esac | |
4911 | fi | |
025fd00e | 4912 | |
1cf3d07d SE |
4913 | if test "$DUMPBIN" != ":"; then |
4914 | NM="$DUMPBIN" | |
025fd00e | 4915 | fi |
1cf3d07d SE |
4916 | fi |
4917 | test -z "$NM" && NM=nm | |
025fd00e | 4918 | |
025fd00e TT |
4919 | |
4920 | ||
025fd00e | 4921 | |
33456445 | 4922 | |
025fd00e | 4923 | |
5213506e RW |
4924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
4925 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
22e05272 | 4926 | if ${lt_cv_nm_interface+:} false; then : |
5213506e | 4927 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
4928 | else |
4929 | lt_cv_nm_interface="BSD nm" | |
4930 | echo "int some_variable = 0;" > conftest.$ac_ext | |
43e02a8a | 4931 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
1cf3d07d SE |
4932 | (eval "$ac_compile" 2>conftest.err) |
4933 | cat conftest.err >&5 | |
43e02a8a | 4934 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
1cf3d07d SE |
4935 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4936 | cat conftest.err >&5 | |
43e02a8a | 4937 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
1cf3d07d SE |
4938 | cat conftest.out >&5 |
4939 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4940 | lt_cv_nm_interface="MS dumpbin" | |
4941 | fi | |
4942 | rm -f conftest* | |
025fd00e | 4943 | fi |
5213506e RW |
4944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
4945 | $as_echo "$lt_cv_nm_interface" >&6; } | |
a8aea176 | 4946 | |
5213506e RW |
4947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
4948 | $as_echo_n "checking whether ln -s works... " >&6; } | |
1cf3d07d SE |
4949 | LN_S=$as_ln_s |
4950 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
4951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4952 | $as_echo "yes" >&6; } | |
1cf3d07d | 4953 | else |
5213506e RW |
4954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
4955 | $as_echo "no, using $LN_S" >&6; } | |
1cf3d07d | 4956 | fi |
dfac8a13 | 4957 | |
6dab073b | 4958 | # find the maximum length of command line arguments |
5213506e RW |
4959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
4960 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
22e05272 | 4961 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
5213506e | 4962 | $as_echo_n "(cached) " >&6 |
6dab073b MS |
4963 | else |
4964 | i=0 | |
4965 | teststring="ABCD" | |
4966 | ||
4967 | case $build_os in | |
4968 | msdosdjgpp*) | |
4969 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4970 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4971 | # during glob expansion). Even if it were fixed, the result of this | |
4972 | # check would be larger than it should be. | |
4973 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4974 | ;; | |
4975 | ||
1cf3d07d SE |
4976 | gnu*) |
4977 | # Under GNU Hurd, this test is not required because there is | |
4978 | # no limit to the length of command line arguments. | |
4979 | # Libtool will interpret -1 as no limit whatsoever | |
4980 | lt_cv_sys_max_cmd_len=-1; | |
4981 | ;; | |
4982 | ||
18d98188 | 4983 | cygwin* | mingw* | cegcc*) |
6dab073b MS |
4984 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
4985 | # about 5 minutes as the teststring grows exponentially. | |
4986 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4987 | # you end up with a "frozen" computer, even though with patience | |
4988 | # the test eventually succeeds (with a max line length of 256k). | |
4989 | # Instead, let's just punt: use the minimum linelength reported by | |
4990 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4991 | lt_cv_sys_max_cmd_len=8192; | |
4992 | ;; | |
4993 | ||
43e02a8a RW |
4994 | mint*) |
4995 | # On MiNT this can take a long time and run out of memory. | |
4996 | lt_cv_sys_max_cmd_len=8192; | |
4997 | ;; | |
4998 | ||
6dab073b MS |
4999 | amigaos*) |
5000 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5001 | # So we just punt and use a minimum line length of 8192. | |
5002 | lt_cv_sys_max_cmd_len=8192; | |
5003 | ;; | |
5004 | ||
5005 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5006 | # This has been around since 386BSD, at least. Likely further. | |
5007 | if test -x /sbin/sysctl; then | |
5008 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5009 | elif test -x /usr/sbin/sysctl; then | |
5010 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5011 | else | |
1cf3d07d | 5012 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
6dab073b MS |
5013 | fi |
5014 | # And add a safety zone | |
5015 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5016 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5017 | ;; | |
1cf3d07d SE |
5018 | |
5019 | interix*) | |
5020 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5021 | lt_cv_sys_max_cmd_len=196608 | |
5022 | ;; | |
5023 | ||
5024 | osf*) | |
5025 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5026 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5027 | # nice to cause kernel panics so lets avoid the loop below. | |
5028 | # First set a reasonable default. | |
5029 | lt_cv_sys_max_cmd_len=16384 | |
5030 | # | |
5031 | if test -x /sbin/sysconfig; then | |
5032 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5033 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5034 | esac | |
5035 | fi | |
5036 | ;; | |
5037 | sco3.2v5*) | |
5038 | lt_cv_sys_max_cmd_len=102400 | |
5039 | ;; | |
5040 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5041 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5042 | if test -n "$kargmax"; then | |
5043 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5044 | else | |
5045 | lt_cv_sys_max_cmd_len=32768 | |
5046 | fi | |
5047 | ;; | |
5048 | *) | |
18d98188 PG |
5049 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
5050 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
82a6cadf PB |
5051 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5052 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5053 | else | |
5054 | # Make teststring a little bigger before we do anything with it. | |
5055 | # a 1K string should be a reasonable start. | |
5056 | for i in 1 2 3 4 5 6 7 8 ; do | |
5057 | teststring=$teststring$teststring | |
5058 | done | |
5059 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5060 | # If test is not a shell built-in, we'll probably end up computing a | |
5061 | # maximum length that is only half of the actual maximum length, but | |
5062 | # we can't tell. | |
43e02a8a RW |
5063 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
5064 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
82a6cadf PB |
5065 | test $i != 17 # 1/2 MB should be enough |
5066 | do | |
5067 | i=`expr $i + 1` | |
5068 | teststring=$teststring$teststring | |
5069 | done | |
5070 | # Only check the string length outside the loop. | |
5071 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5072 | teststring= | |
5073 | # Add a significant safety factor because C++ compilers can tack on | |
5074 | # massive amounts of additional arguments before passing them to the | |
5075 | # linker. It appears as though 1/2 is a usable value. | |
5076 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5077 | fi | |
1cf3d07d | 5078 | ;; |
6dab073b MS |
5079 | esac |
5080 | ||
5081 | fi | |
5082 | ||
1cf3d07d | 5083 | if test -n $lt_cv_sys_max_cmd_len ; then |
5213506e RW |
5084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
5085 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
6dab073b | 5086 | else |
5213506e RW |
5087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
5088 | $as_echo "none" >&6; } | |
6dab073b | 5089 | fi |
1cf3d07d | 5090 | max_cmd_len=$lt_cv_sys_max_cmd_len |
6dab073b MS |
5091 | |
5092 | ||
dfac8a13 | 5093 | |
0fd91e0a | 5094 | |
dfac8a13 | 5095 | |
1cf3d07d | 5096 | |
1cf3d07d SE |
5097 | : ${CP="cp -f"} |
5098 | : ${MV="mv -f"} | |
5099 | : ${RM="rm -f"} | |
5100 | ||
5213506e RW |
5101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
5102 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
1cf3d07d SE |
5103 | # Try some XSI features |
5104 | xsi_shell=no | |
5105 | ( _lt_dummy="a/b/c" | |
5106 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
18d98188 PG |
5107 | = c,a/b,, \ |
5108 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5109 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
1cf3d07d | 5110 | && xsi_shell=yes |
5213506e RW |
5111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
5112 | $as_echo "$xsi_shell" >&6; } | |
1cf3d07d SE |
5113 | |
5114 | ||
5213506e RW |
5115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
5116 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
1cf3d07d SE |
5117 | lt_shell_append=no |
5118 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5119 | >/dev/null 2>&1 \ | |
5120 | && lt_shell_append=yes | |
5213506e RW |
5121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
5122 | $as_echo "$lt_shell_append" >&6; } | |
1cf3d07d SE |
5123 | |
5124 | ||
5125 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5126 | lt_unset=unset | |
0fd91e0a | 5127 | else |
1cf3d07d | 5128 | lt_unset=false |
0fd91e0a AO |
5129 | fi |
5130 | ||
1cf3d07d SE |
5131 | |
5132 | ||
5133 | ||
5134 | ||
5135 | # test EBCDIC or ASCII | |
5136 | case `echo X|tr X '\101'` in | |
5137 | A) # ASCII based system | |
5138 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5139 | lt_SP2NL='tr \040 \012' | |
5140 | lt_NL2SP='tr \015\012 \040\040' | |
5141 | ;; | |
5142 | *) # EBCDIC based system | |
5143 | lt_SP2NL='tr \100 \n' | |
5144 | lt_NL2SP='tr \r\n \100\100' | |
5145 | ;; | |
5146 | esac | |
5147 | ||
5148 | ||
5149 | ||
5150 | ||
5151 | ||
5152 | ||
5153 | ||
5154 | ||
5155 | ||
5213506e RW |
5156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
5157 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
22e05272 | 5158 | if ${lt_cv_ld_reload_flag+:} false; then : |
5213506e | 5159 | $as_echo_n "(cached) " >&6 |
dfac8a13 | 5160 | else |
1cf3d07d SE |
5161 | lt_cv_ld_reload_flag='-r' |
5162 | fi | |
5213506e RW |
5163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
5164 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
1cf3d07d SE |
5165 | reload_flag=$lt_cv_ld_reload_flag |
5166 | case $reload_flag in | |
5167 | "" | " "*) ;; | |
5168 | *) reload_flag=" $reload_flag" ;; | |
5169 | esac | |
5170 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5171 | case $host_os in | |
5172 | darwin*) | |
5173 | if test "$GCC" = yes; then | |
5174 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5175 | else | |
5176 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5177 | fi | |
5178 | ;; | |
5179 | esac | |
5180 | ||
5181 | ||
5182 | ||
5183 | ||
5184 | ||
5185 | ||
5186 | ||
5187 | ||
5188 | ||
18d98188 PG |
5189 | if test -n "$ac_tool_prefix"; then |
5190 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5191 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5213506e RW |
5192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5193 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5194 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 5195 | $as_echo_n "(cached) " >&6 |
18d98188 PG |
5196 | else |
5197 | if test -n "$OBJDUMP"; then | |
5198 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5199 | else | |
5200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5201 | for as_dir in $PATH | |
5202 | do | |
5203 | IFS=$as_save_IFS | |
5204 | test -z "$as_dir" && as_dir=. | |
5213506e | 5205 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5206 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18d98188 | 5207 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
5213506e | 5208 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18d98188 PG |
5209 | break 2 |
5210 | fi | |
5211 | done | |
5213506e RW |
5212 | done |
5213 | IFS=$as_save_IFS | |
18d98188 PG |
5214 | |
5215 | fi | |
5216 | fi | |
5217 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5218 | if test -n "$OBJDUMP"; then | |
5213506e RW |
5219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
5220 | $as_echo "$OBJDUMP" >&6; } | |
18d98188 | 5221 | else |
5213506e RW |
5222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5223 | $as_echo "no" >&6; } | |
18d98188 PG |
5224 | fi |
5225 | ||
5213506e | 5226 | |
18d98188 PG |
5227 | fi |
5228 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5229 | ac_ct_OBJDUMP=$OBJDUMP | |
5230 | # Extract the first word of "objdump", so it can be a program name with args. | |
5231 | set dummy objdump; ac_word=$2 | |
5213506e RW |
5232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5233 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5234 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
5213506e | 5235 | $as_echo_n "(cached) " >&6 |
18d98188 PG |
5236 | else |
5237 | if test -n "$ac_ct_OBJDUMP"; then | |
5238 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5239 | else | |
5240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5241 | for as_dir in $PATH | |
5242 | do | |
5243 | IFS=$as_save_IFS | |
5244 | test -z "$as_dir" && as_dir=. | |
5213506e | 5245 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5246 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18d98188 | 5247 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
5213506e | 5248 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18d98188 PG |
5249 | break 2 |
5250 | fi | |
5251 | done | |
5213506e RW |
5252 | done |
5253 | IFS=$as_save_IFS | |
18d98188 | 5254 | |
18d98188 PG |
5255 | fi |
5256 | fi | |
5257 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5258 | if test -n "$ac_ct_OBJDUMP"; then | |
5213506e RW |
5259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
5260 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
18d98188 | 5261 | else |
5213506e RW |
5262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5263 | $as_echo "no" >&6; } | |
18d98188 PG |
5264 | fi |
5265 | ||
5213506e RW |
5266 | if test "x$ac_ct_OBJDUMP" = x; then |
5267 | OBJDUMP="false" | |
5268 | else | |
5269 | case $cross_compiling:$ac_tool_warned in | |
5270 | yes:) | |
5271 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5272 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5273 | ac_tool_warned=yes ;; | |
5274 | esac | |
5275 | OBJDUMP=$ac_ct_OBJDUMP | |
5276 | fi | |
18d98188 PG |
5277 | else |
5278 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5279 | fi | |
5280 | ||
5281 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5282 | ||
5283 | ||
5284 | ||
5285 | ||
5286 | ||
5287 | ||
5288 | ||
5289 | ||
1cf3d07d | 5290 | |
5213506e RW |
5291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
5292 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
22e05272 | 5293 | if ${lt_cv_deplibs_check_method+:} false; then : |
5213506e | 5294 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
5295 | else |
5296 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5297 | lt_cv_file_magic_test_file= | |
5298 | lt_cv_deplibs_check_method='unknown' | |
5299 | # Need to set the preceding variable on all platforms that support | |
5300 | # interlibrary dependencies. | |
5301 | # 'none' -- dependencies not supported. | |
5302 | # `unknown' -- same as none, but documents that we really don't know. | |
5303 | # 'pass_all' -- all dependencies passed with no checks. | |
5304 | # 'test_compile' -- check by making test program. | |
5305 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5306 | # which responds to the $file_magic_cmd with a given extended regex. | |
5307 | # If you have `file' or equivalent on your system and you're not sure | |
5308 | # whether `pass_all' will *always* work, you probably want this one. | |
5309 | ||
5310 | case $host_os in | |
3e7b7e2b | 5311 | aix[4-9]*) |
1cf3d07d SE |
5312 | lt_cv_deplibs_check_method=pass_all |
5313 | ;; | |
5314 | ||
5315 | beos*) | |
5316 | lt_cv_deplibs_check_method=pass_all | |
5317 | ;; | |
5318 | ||
5319 | bsdi[45]*) | |
5320 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5321 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5322 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5323 | ;; | |
5324 | ||
5325 | cygwin*) | |
5326 | # func_win32_libid is a shell function defined in ltmain.sh | |
5327 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5328 | lt_cv_file_magic_cmd='func_win32_libid' | |
5329 | ;; | |
5330 | ||
5331 | mingw* | pw32*) | |
5332 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5333 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5334 | # unless we find 'file', for example because we are cross-compiling. | |
43e02a8a RW |
5335 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
5336 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
1cf3d07d SE |
5337 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5338 | lt_cv_file_magic_cmd='func_win32_libid' | |
5339 | else | |
5340 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
5341 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5342 | fi | |
5343 | ;; | |
5344 | ||
43e02a8a | 5345 | cegcc*) |
18d98188 PG |
5346 | # use the weaker test based on 'objdump'. See mingw*. |
5347 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5348 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5349 | ;; | |
5350 | ||
1cf3d07d SE |
5351 | darwin* | rhapsody*) |
5352 | lt_cv_deplibs_check_method=pass_all | |
0fd91e0a | 5353 | ;; |
1cf3d07d SE |
5354 | |
5355 | freebsd* | dragonfly*) | |
5356 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5357 | case $host_cpu in | |
5358 | i*86 ) | |
5359 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5360 | # Let's accept both of them until this is cleared up. | |
5361 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5362 | lt_cv_file_magic_cmd=/usr/bin/file | |
5363 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5364 | ;; | |
5365 | esac | |
5366 | else | |
5367 | lt_cv_deplibs_check_method=pass_all | |
5368 | fi | |
5369 | ;; | |
5370 | ||
5371 | gnu*) | |
5372 | lt_cv_deplibs_check_method=pass_all | |
0fd91e0a | 5373 | ;; |
1cf3d07d | 5374 | |
43e02a8a RW |
5375 | haiku*) |
5376 | lt_cv_deplibs_check_method=pass_all | |
5377 | ;; | |
5378 | ||
1cf3d07d SE |
5379 | hpux10.20* | hpux11*) |
5380 | lt_cv_file_magic_cmd=/usr/bin/file | |
5381 | case $host_cpu in | |
5382 | ia64*) | |
5383 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5384 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5385 | ;; | |
5386 | hppa*64*) | |
43e02a8a | 5387 | 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]' |
1cf3d07d SE |
5388 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
5389 | ;; | |
0fd91e0a | 5390 | *) |
43e02a8a | 5391 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
1cf3d07d SE |
5392 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
5393 | ;; | |
5394 | esac | |
5395 | ;; | |
c45f211e | 5396 | |
1cf3d07d SE |
5397 | interix[3-9]*) |
5398 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5399 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5400 | ;; | |
dfac8a13 | 5401 | |
1cf3d07d SE |
5402 | irix5* | irix6* | nonstopux*) |
5403 | case $LD in | |
5404 | *-32|*"-32 ") libmagic=32-bit;; | |
5405 | *-n32|*"-n32 ") libmagic=N32;; | |
5406 | *-64|*"-64 ") libmagic=64-bit;; | |
5407 | *) libmagic=never-match;; | |
5408 | esac | |
5409 | lt_cv_deplibs_check_method=pass_all | |
0fd91e0a | 5410 | ;; |
0fd91e0a | 5411 | |
1cf3d07d | 5412 | # This must be Linux ELF. |
e9085da5 | 5413 | linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
1cf3d07d SE |
5414 | lt_cv_deplibs_check_method=pass_all |
5415 | ;; | |
0fd91e0a | 5416 | |
1cf3d07d SE |
5417 | netbsd*) |
5418 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5419 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
0fd91e0a | 5420 | else |
1cf3d07d | 5421 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
0fd91e0a | 5422 | fi |
1cf3d07d SE |
5423 | ;; |
5424 | ||
5425 | newos6*) | |
5426 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5427 | lt_cv_file_magic_cmd=/usr/bin/file | |
5428 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5429 | ;; | |
5430 | ||
5431 | *nto* | *qnx*) | |
5432 | lt_cv_deplibs_check_method=pass_all | |
5433 | ;; | |
dfac8a13 | 5434 | |
1cf3d07d SE |
5435 | openbsd*) |
5436 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5437 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5438 | else | |
5439 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
dfac8a13 TT |
5440 | fi |
5441 | ;; | |
1cf3d07d SE |
5442 | |
5443 | osf3* | osf4* | osf5*) | |
5444 | lt_cv_deplibs_check_method=pass_all | |
5445 | ;; | |
5446 | ||
5447 | rdos*) | |
5448 | lt_cv_deplibs_check_method=pass_all | |
5449 | ;; | |
5450 | ||
5451 | solaris*) | |
5452 | lt_cv_deplibs_check_method=pass_all | |
5453 | ;; | |
5454 | ||
5455 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5456 | lt_cv_deplibs_check_method=pass_all | |
5457 | ;; | |
5458 | ||
5459 | sysv4 | sysv4.3*) | |
5460 | case $host_vendor in | |
5461 | motorola) | |
5462 | 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]' | |
5463 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5464 | ;; | |
5465 | ncr) | |
5466 | lt_cv_deplibs_check_method=pass_all | |
5467 | ;; | |
5468 | sequent) | |
5469 | lt_cv_file_magic_cmd='/bin/file' | |
5470 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5471 | ;; | |
5472 | sni) | |
5473 | lt_cv_file_magic_cmd='/bin/file' | |
5474 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5475 | lt_cv_file_magic_test_file=/lib/libc.so | |
5476 | ;; | |
5477 | siemens) | |
5478 | lt_cv_deplibs_check_method=pass_all | |
5479 | ;; | |
5480 | pc) | |
5481 | lt_cv_deplibs_check_method=pass_all | |
5482 | ;; | |
5483 | esac | |
5484 | ;; | |
5485 | ||
5486 | tpf*) | |
5487 | lt_cv_deplibs_check_method=pass_all | |
5488 | ;; | |
0ecd0f1c OH |
5489 | vxworks*) |
5490 | # Assume VxWorks cross toolchains are built on Linux, possibly | |
5491 | # as canadian for Windows hosts. | |
5492 | lt_cv_deplibs_check_method=pass_all | |
5493 | ;; | |
0fd91e0a | 5494 | esac |
dfac8a13 | 5495 | |
1cf3d07d | 5496 | fi |
5213506e RW |
5497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
5498 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
1cf3d07d SE |
5499 | file_magic_cmd=$lt_cv_file_magic_cmd |
5500 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5501 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
5502 | ||
5503 | ||
5504 | ||
5505 | ||
5506 | ||
5507 | ||
5508 | ||
5509 | ||
5510 | ||
5511 | ||
5512 | ||
5513 | ||
a8aea176 | 5514 | if test -n "$ac_tool_prefix"; then |
1cf3d07d SE |
5515 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
5516 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5213506e RW |
5517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5518 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5519 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 5520 | $as_echo_n "(cached) " >&6 |
025fd00e | 5521 | else |
1cf3d07d SE |
5522 | if test -n "$AR"; then |
5523 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
025fd00e | 5524 | else |
a8aea176 NN |
5525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5526 | for as_dir in $PATH | |
5527 | do | |
5528 | IFS=$as_save_IFS | |
5529 | test -z "$as_dir" && as_dir=. | |
5213506e | 5530 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5531 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 5532 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
5213506e | 5533 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a8aea176 NN |
5534 | break 2 |
5535 | fi | |
5536 | done | |
5213506e RW |
5537 | done |
5538 | IFS=$as_save_IFS | |
a8aea176 | 5539 | |
025fd00e TT |
5540 | fi |
5541 | fi | |
1cf3d07d SE |
5542 | AR=$ac_cv_prog_AR |
5543 | if test -n "$AR"; then | |
5213506e RW |
5544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
5545 | $as_echo "$AR" >&6; } | |
025fd00e | 5546 | else |
5213506e RW |
5547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5548 | $as_echo "no" >&6; } | |
025fd00e TT |
5549 | fi |
5550 | ||
5213506e | 5551 | |
a8aea176 | 5552 | fi |
1cf3d07d SE |
5553 | if test -z "$ac_cv_prog_AR"; then |
5554 | ac_ct_AR=$AR | |
5555 | # Extract the first word of "ar", so it can be a program name with args. | |
5556 | set dummy ar; ac_word=$2 | |
5213506e RW |
5557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5558 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5559 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
5213506e | 5560 | $as_echo_n "(cached) " >&6 |
025fd00e | 5561 | else |
1cf3d07d SE |
5562 | if test -n "$ac_ct_AR"; then |
5563 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
025fd00e | 5564 | else |
a8aea176 NN |
5565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5566 | for as_dir in $PATH | |
5567 | do | |
5568 | IFS=$as_save_IFS | |
5569 | test -z "$as_dir" && as_dir=. | |
5213506e | 5570 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5571 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 5572 | ac_cv_prog_ac_ct_AR="ar" |
5213506e | 5573 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a8aea176 NN |
5574 | break 2 |
5575 | fi | |
5576 | done | |
5213506e RW |
5577 | done |
5578 | IFS=$as_save_IFS | |
a8aea176 | 5579 | |
025fd00e TT |
5580 | fi |
5581 | fi | |
1cf3d07d SE |
5582 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5583 | if test -n "$ac_ct_AR"; then | |
5213506e RW |
5584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
5585 | $as_echo "$ac_ct_AR" >&6; } | |
025fd00e | 5586 | else |
5213506e RW |
5587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5588 | $as_echo "no" >&6; } | |
025fd00e TT |
5589 | fi |
5590 | ||
5213506e RW |
5591 | if test "x$ac_ct_AR" = x; then |
5592 | AR="false" | |
5593 | else | |
5594 | case $cross_compiling:$ac_tool_warned in | |
5595 | yes:) | |
5596 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5597 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5598 | ac_tool_warned=yes ;; | |
5599 | esac | |
5600 | AR=$ac_ct_AR | |
5601 | fi | |
025fd00e | 5602 | else |
1cf3d07d | 5603 | AR="$ac_cv_prog_AR" |
025fd00e TT |
5604 | fi |
5605 | ||
1cf3d07d SE |
5606 | test -z "$AR" && AR=ar |
5607 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
5608 | ||
5609 | ||
5610 | ||
5611 | ||
5612 | ||
5613 | ||
5614 | ||
5615 | ||
5616 | ||
5617 | ||
5618 | ||
a8aea176 NN |
5619 | if test -n "$ac_tool_prefix"; then |
5620 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
0fd91e0a | 5621 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
5213506e RW |
5622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5623 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5624 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 5625 | $as_echo_n "(cached) " >&6 |
025fd00e | 5626 | else |
0fd91e0a AO |
5627 | if test -n "$STRIP"; then |
5628 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
025fd00e | 5629 | else |
a8aea176 NN |
5630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5631 | for as_dir in $PATH | |
5632 | do | |
5633 | IFS=$as_save_IFS | |
5634 | test -z "$as_dir" && as_dir=. | |
5213506e | 5635 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5636 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a8aea176 | 5637 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
5213506e | 5638 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a8aea176 NN |
5639 | break 2 |
5640 | fi | |
5641 | done | |
5213506e RW |
5642 | done |
5643 | IFS=$as_save_IFS | |
a8aea176 | 5644 | |
025fd00e TT |
5645 | fi |
5646 | fi | |
a8aea176 | 5647 | STRIP=$ac_cv_prog_STRIP |
0fd91e0a | 5648 | if test -n "$STRIP"; then |
5213506e RW |
5649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
5650 | $as_echo "$STRIP" >&6; } | |
025fd00e | 5651 | else |
5213506e RW |
5652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5653 | $as_echo "no" >&6; } | |
025fd00e TT |
5654 | fi |
5655 | ||
5213506e | 5656 | |
a8aea176 | 5657 | fi |
0fd91e0a | 5658 | if test -z "$ac_cv_prog_STRIP"; then |
a8aea176 | 5659 | ac_ct_STRIP=$STRIP |
0fd91e0a AO |
5660 | # Extract the first word of "strip", so it can be a program name with args. |
5661 | set dummy strip; ac_word=$2 | |
5213506e RW |
5662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5663 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5664 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
5213506e | 5665 | $as_echo_n "(cached) " >&6 |
025fd00e | 5666 | else |
a8aea176 NN |
5667 | if test -n "$ac_ct_STRIP"; then |
5668 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
025fd00e | 5669 | else |
a8aea176 NN |
5670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5671 | for as_dir in $PATH | |
5672 | do | |
5673 | IFS=$as_save_IFS | |
5674 | test -z "$as_dir" && as_dir=. | |
5213506e | 5675 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5676 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a8aea176 | 5677 | ac_cv_prog_ac_ct_STRIP="strip" |
5213506e | 5678 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a8aea176 NN |
5679 | break 2 |
5680 | fi | |
5681 | done | |
5213506e RW |
5682 | done |
5683 | IFS=$as_save_IFS | |
a8aea176 | 5684 | |
025fd00e TT |
5685 | fi |
5686 | fi | |
a8aea176 NN |
5687 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
5688 | if test -n "$ac_ct_STRIP"; then | |
5213506e RW |
5689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
5690 | $as_echo "$ac_ct_STRIP" >&6; } | |
025fd00e | 5691 | else |
5213506e RW |
5692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5693 | $as_echo "no" >&6; } | |
025fd00e TT |
5694 | fi |
5695 | ||
5213506e RW |
5696 | if test "x$ac_ct_STRIP" = x; then |
5697 | STRIP=":" | |
5698 | else | |
5699 | case $cross_compiling:$ac_tool_warned in | |
5700 | yes:) | |
5701 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5702 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5703 | ac_tool_warned=yes ;; | |
5704 | esac | |
5705 | STRIP=$ac_ct_STRIP | |
5706 | fi | |
025fd00e | 5707 | else |
a8aea176 | 5708 | STRIP="$ac_cv_prog_STRIP" |
025fd00e TT |
5709 | fi |
5710 | ||
1cf3d07d | 5711 | test -z "$STRIP" && STRIP=: |
025fd00e | 5712 | |
c45f211e | 5713 | |
025fd00e | 5714 | |
0fd91e0a | 5715 | |
0fd91e0a | 5716 | |
a8aea176 | 5717 | |
1cf3d07d SE |
5718 | if test -n "$ac_tool_prefix"; then |
5719 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5720 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5213506e RW |
5721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5722 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5723 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 5724 | $as_echo_n "(cached) " >&6 |
025fd00e | 5725 | else |
1cf3d07d SE |
5726 | if test -n "$RANLIB"; then |
5727 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5728 | else | |
5729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5730 | for as_dir in $PATH | |
5731 | do | |
5732 | IFS=$as_save_IFS | |
5733 | test -z "$as_dir" && as_dir=. | |
5213506e | 5734 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5735 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 5736 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5213506e | 5737 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
5738 | break 2 |
5739 | fi | |
5740 | done | |
5213506e RW |
5741 | done |
5742 | IFS=$as_save_IFS | |
0fd91e0a | 5743 | |
1cf3d07d SE |
5744 | fi |
5745 | fi | |
5746 | RANLIB=$ac_cv_prog_RANLIB | |
5747 | if test -n "$RANLIB"; then | |
5213506e RW |
5748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
5749 | $as_echo "$RANLIB" >&6; } | |
1cf3d07d | 5750 | else |
5213506e RW |
5751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5752 | $as_echo "no" >&6; } | |
1cf3d07d SE |
5753 | fi |
5754 | ||
5213506e | 5755 | |
1cf3d07d SE |
5756 | fi |
5757 | if test -z "$ac_cv_prog_RANLIB"; then | |
5758 | ac_ct_RANLIB=$RANLIB | |
5759 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5760 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
5761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5762 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5763 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
5213506e | 5764 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
5765 | else |
5766 | if test -n "$ac_ct_RANLIB"; then | |
5767 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5768 | else | |
5769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5770 | for as_dir in $PATH | |
5771 | do | |
5772 | IFS=$as_save_IFS | |
5773 | test -z "$as_dir" && as_dir=. | |
5213506e | 5774 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5775 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 5776 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
5213506e | 5777 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d | 5778 | break 2 |
0fd91e0a | 5779 | fi |
1cf3d07d | 5780 | done |
5213506e RW |
5781 | done |
5782 | IFS=$as_save_IFS | |
025fd00e | 5783 | |
1cf3d07d SE |
5784 | fi |
5785 | fi | |
5786 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5787 | if test -n "$ac_ct_RANLIB"; then | |
5213506e RW |
5788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
5789 | $as_echo "$ac_ct_RANLIB" >&6; } | |
1cf3d07d | 5790 | else |
5213506e RW |
5791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5792 | $as_echo "no" >&6; } | |
1cf3d07d SE |
5793 | fi |
5794 | ||
5213506e RW |
5795 | if test "x$ac_ct_RANLIB" = x; then |
5796 | RANLIB=":" | |
5797 | else | |
5798 | case $cross_compiling:$ac_tool_warned in | |
5799 | yes:) | |
5800 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5801 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5802 | ac_tool_warned=yes ;; | |
5803 | esac | |
5804 | RANLIB=$ac_ct_RANLIB | |
5805 | fi | |
1cf3d07d SE |
5806 | else |
5807 | RANLIB="$ac_cv_prog_RANLIB" | |
5808 | fi | |
5809 | ||
5810 | test -z "$RANLIB" && RANLIB=: | |
5811 | ||
5812 | ||
5813 | ||
5814 | ||
5815 | ||
5816 | ||
5817 | # Determine commands to create old-style static archives. | |
18d98188 | 5818 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
1cf3d07d SE |
5819 | old_postinstall_cmds='chmod 644 $oldlib' |
5820 | old_postuninstall_cmds= | |
5821 | ||
5822 | if test -n "$RANLIB"; then | |
5823 | case $host_os in | |
5824 | openbsd*) | |
5825 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
5826 | ;; | |
5827 | *) | |
5828 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
5829 | ;; | |
5830 | esac | |
5831 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
5832 | fi | |
5833 | ||
43e02a8a RW |
5834 | case $host_os in |
5835 | darwin*) | |
5836 | lock_old_archive_extraction=yes ;; | |
5837 | *) | |
5838 | lock_old_archive_extraction=no ;; | |
5839 | esac | |
5840 | ||
5841 | ||
5842 | ||
5843 | ||
5844 | ||
5845 | ||
1cf3d07d SE |
5846 | |
5847 | ||
5848 | ||
5849 | ||
5850 | ||
5851 | ||
5852 | ||
5853 | ||
5854 | ||
5855 | ||
5856 | ||
5857 | ||
5858 | ||
5859 | ||
5860 | ||
5861 | ||
5862 | ||
5863 | ||
5864 | ||
5865 | ||
5866 | ||
5867 | ||
5868 | ||
5869 | ||
5870 | ||
5871 | ||
5872 | ||
5873 | ||
5874 | ||
5875 | ||
5876 | ||
5877 | ||
5878 | ||
5879 | # If no C compiler was specified, use CC. | |
5880 | LTCC=${LTCC-"$CC"} | |
5881 | ||
5882 | # If no C compiler flags were specified, use CFLAGS. | |
5883 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
5884 | ||
5885 | # Allow CC to be a program name with arguments. | |
5886 | compiler=$CC | |
5887 | ||
5888 | ||
5889 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5213506e RW |
5890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
5891 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
22e05272 | 5892 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
5213506e | 5893 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
5894 | else |
5895 | ||
5896 | # These are sane defaults that work on at least a few old systems. | |
5897 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5898 | ||
5899 | # Character class describing NM global symbol codes. | |
5900 | symcode='[BCDEGRST]' | |
5901 | ||
5902 | # Regexp to match symbols that can be accessed directly from C. | |
5903 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5904 | ||
5905 | # Define system-specific variables. | |
5906 | case $host_os in | |
5907 | aix*) | |
5908 | symcode='[BCDT]' | |
5909 | ;; | |
18d98188 | 5910 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
5911 | symcode='[ABCDGISTW]' |
5912 | ;; | |
5913 | hpux*) | |
5914 | if test "$host_cpu" = ia64; then | |
5915 | symcode='[ABCDEGRST]' | |
f5cc59a7 | 5916 | fi |
f5cc59a7 | 5917 | ;; |
1cf3d07d SE |
5918 | irix* | nonstopux*) |
5919 | symcode='[BCDEGRST]' | |
5920 | ;; | |
5921 | osf*) | |
5922 | symcode='[BCDEGQRST]' | |
5923 | ;; | |
5924 | solaris*) | |
5925 | symcode='[BDRT]' | |
5926 | ;; | |
5927 | sco3.2v5*) | |
5928 | symcode='[DT]' | |
5929 | ;; | |
5930 | sysv4.2uw2*) | |
5931 | symcode='[DT]' | |
5932 | ;; | |
5933 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5934 | symcode='[ABDT]' | |
5935 | ;; | |
5936 | sysv4) | |
5937 | symcode='[DFNSTU]' | |
5938 | ;; | |
5939 | esac | |
5940 | ||
5941 | # If we're using GNU nm, then use its standard symbol codes. | |
5942 | case `$NM -V 2>&1` in | |
5943 | *GNU* | *'with BFD'*) | |
5944 | symcode='[ABCDGIRSTW]' ;; | |
5945 | esac | |
5946 | ||
5947 | # Transform an extracted symbol line into a proper C declaration. | |
5948 | # Some systems (esp. on ia64) link data and code symbols differently, | |
5949 | # so use this general approach. | |
5950 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5951 | ||
5952 | # Transform an extracted symbol line into symbol name and symbol address | |
5953 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
18d98188 | 5954 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" |
1cf3d07d SE |
5955 | |
5956 | # Handle CRLF in mingw tool chain | |
5957 | opt_cr= | |
5958 | case $build_os in | |
5959 | mingw*) | |
5960 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5961 | ;; | |
5962 | esac | |
5963 | ||
5964 | # Try without a prefix underscore, then with it. | |
5965 | for ac_symprfx in "" "_"; do | |
5966 | ||
5967 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5968 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5969 | ||
5970 | # Write the raw and C identifiers. | |
5971 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
5972 | # Fake it for dumpbin and say T for any non-static function | |
5973 | # and D for any global variable. | |
5974 | # Also find C++ and __fastcall symbols from MSVC++, | |
5975 | # which start with @ or ?. | |
5976 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5977 | " {last_section=section; section=\$ 3};"\ | |
5978 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5979 | " \$ 0!~/External *\|/{next};"\ | |
5980 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5981 | " {if(hide[section]) next};"\ | |
5982 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5983 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5984 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5985 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5986 | " ' prfx=^$ac_symprfx" | |
5987 | else | |
5988 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5989 | fi | |
5990 | ||
5991 | # Check to see that the pipe works correctly. | |
5992 | pipe_works=no | |
5993 | ||
5994 | rm -f conftest* | |
5995 | cat > conftest.$ac_ext <<_LT_EOF | |
5996 | #ifdef __cplusplus | |
5997 | extern "C" { | |
5998 | #endif | |
5999 | char nm_test_var; | |
6000 | void nm_test_func(void); | |
6001 | void nm_test_func(void){} | |
6002 | #ifdef __cplusplus | |
6003 | } | |
6004 | #endif | |
6005 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6006 | _LT_EOF | |
f5cc59a7 | 6007 | |
5213506e | 6008 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
a8aea176 NN |
6009 | (eval $ac_compile) 2>&5 |
6010 | ac_status=$? | |
5213506e RW |
6011 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6012 | test $ac_status = 0; }; then | |
1cf3d07d SE |
6013 | # Now try to grab the symbols. |
6014 | nlist=conftest.nm | |
43e02a8a RW |
6015 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
6016 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
1cf3d07d | 6017 | ac_status=$? |
5213506e RW |
6018 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6019 | test $ac_status = 0; } && test -s "$nlist"; then | |
1cf3d07d SE |
6020 | # Try sorting and uniquifying the output. |
6021 | if sort "$nlist" | uniq > "$nlist"T; then | |
6022 | mv -f "$nlist"T "$nlist" | |
6023 | else | |
6024 | rm -f "$nlist"T | |
6025 | fi | |
0ccf2c33 | 6026 | |
1cf3d07d SE |
6027 | # Make sure that we snagged all the symbols we need. |
6028 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6029 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6030 | cat <<_LT_EOF > conftest.$ac_ext | |
6031 | #ifdef __cplusplus | |
6032 | extern "C" { | |
6033 | #endif | |
a8aea176 | 6034 | |
1cf3d07d SE |
6035 | _LT_EOF |
6036 | # Now generate the symbol file. | |
6037 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
a8aea176 | 6038 | |
1cf3d07d | 6039 | cat <<_LT_EOF >> conftest.$ac_ext |
a8aea176 | 6040 | |
1cf3d07d SE |
6041 | /* The mapping between symbol names and symbols. */ |
6042 | const struct { | |
6043 | const char *name; | |
6044 | void *address; | |
6045 | } | |
6046 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6047 | { | |
6048 | { "@PROGRAM@", (void *) 0 }, | |
6049 | _LT_EOF | |
6050 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6051 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6052 | {0, (void *) 0} | |
6053 | }; | |
6054 | ||
6055 | /* This works around a problem in FreeBSD linker */ | |
6056 | #ifdef FREEBSD_WORKAROUND | |
6057 | static const void *lt_preloaded_setup() { | |
6058 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6059 | } | |
6060 | #endif | |
6061 | ||
6062 | #ifdef __cplusplus | |
6063 | } | |
6064 | #endif | |
6065 | _LT_EOF | |
6066 | # Now try linking the two files. | |
6067 | mv conftest.$ac_objext conftstm.$ac_objext | |
6068 | lt_save_LIBS="$LIBS" | |
6069 | lt_save_CFLAGS="$CFLAGS" | |
6070 | LIBS="conftstm.$ac_objext" | |
6071 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5213506e | 6072 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d SE |
6073 | (eval $ac_link) 2>&5 |
6074 | ac_status=$? | |
5213506e RW |
6075 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6076 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
1cf3d07d SE |
6077 | pipe_works=yes |
6078 | fi | |
6079 | LIBS="$lt_save_LIBS" | |
6080 | CFLAGS="$lt_save_CFLAGS" | |
6081 | else | |
6082 | echo "cannot find nm_test_func in $nlist" >&5 | |
6083 | fi | |
6084 | else | |
6085 | echo "cannot find nm_test_var in $nlist" >&5 | |
6086 | fi | |
6087 | else | |
6088 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6089 | fi | |
6090 | else | |
6091 | echo "$progname: failed program was:" >&5 | |
6092 | cat conftest.$ac_ext >&5 | |
6093 | fi | |
18d98188 | 6094 | rm -rf conftest* conftst* |
1cf3d07d SE |
6095 | |
6096 | # Do not use the global_symbol_pipe unless it works. | |
6097 | if test "$pipe_works" = yes; then | |
6098 | break | |
6099 | else | |
6100 | lt_cv_sys_global_symbol_pipe= | |
6101 | fi | |
6102 | done | |
6103 | ||
6104 | fi | |
6105 | ||
6106 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6107 | lt_cv_sys_global_symbol_to_cdecl= | |
6108 | fi | |
6109 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5213506e RW |
6110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
6111 | $as_echo "failed" >&6; } | |
1cf3d07d | 6112 | else |
5213506e RW |
6113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6114 | $as_echo "ok" >&6; } | |
1cf3d07d SE |
6115 | fi |
6116 | ||
6117 | ||
6118 | ||
6119 | ||
6120 | ||
6121 | ||
6122 | ||
6123 | ||
6124 | ||
6125 | ||
6126 | ||
6127 | ||
6128 | ||
6129 | ||
6130 | ||
18d98188 PG |
6131 | |
6132 | ||
6133 | ||
6134 | ||
6135 | ||
1cf3d07d SE |
6136 | |
6137 | ||
5213506e RW |
6138 | # Check whether --enable-libtool-lock was given. |
6139 | if test "${enable_libtool_lock+set}" = set; then : | |
6140 | enableval=$enable_libtool_lock; | |
6141 | fi | |
1cf3d07d | 6142 | |
1cf3d07d SE |
6143 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6144 | ||
6145 | # Some flags need to be propagated to the compiler or linker for good | |
6146 | # libtool support. | |
6147 | case $host in | |
6148 | ia64-*-hpux*) | |
6149 | # Find out which ABI we are using. | |
6150 | echo 'int i;' > conftest.$ac_ext | |
5213506e | 6151 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
6152 | (eval $ac_compile) 2>&5 |
6153 | ac_status=$? | |
5213506e RW |
6154 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6155 | test $ac_status = 0; }; then | |
1cf3d07d SE |
6156 | case `/usr/bin/file conftest.$ac_objext` in |
6157 | *ELF-32*) | |
6158 | HPUX_IA64_MODE="32" | |
6159 | ;; | |
6160 | *ELF-64*) | |
6161 | HPUX_IA64_MODE="64" | |
6162 | ;; | |
6163 | esac | |
6164 | fi | |
6165 | rm -rf conftest* | |
6166 | ;; | |
6167 | *-*-irix6*) | |
6168 | # Find out which ABI we are using. | |
43e02a8a | 6169 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
5213506e | 6170 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
6171 | (eval $ac_compile) 2>&5 |
6172 | ac_status=$? | |
5213506e RW |
6173 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6174 | test $ac_status = 0; }; then | |
1cf3d07d SE |
6175 | if test "$lt_cv_prog_gnu_ld" = yes; then |
6176 | case `/usr/bin/file conftest.$ac_objext` in | |
6177 | *32-bit*) | |
6178 | LD="${LD-ld} -melf32bsmip" | |
6179 | ;; | |
6180 | *N32*) | |
6181 | LD="${LD-ld} -melf32bmipn32" | |
6182 | ;; | |
6183 | *64-bit*) | |
6184 | LD="${LD-ld} -melf64bmip" | |
6185 | ;; | |
6186 | esac | |
6187 | else | |
6188 | case `/usr/bin/file conftest.$ac_objext` in | |
6189 | *32-bit*) | |
6190 | LD="${LD-ld} -32" | |
6191 | ;; | |
6192 | *N32*) | |
6193 | LD="${LD-ld} -n32" | |
6194 | ;; | |
6195 | *64-bit*) | |
6196 | LD="${LD-ld} -64" | |
6197 | ;; | |
6198 | esac | |
6199 | fi | |
6200 | fi | |
6201 | rm -rf conftest* | |
6202 | ;; | |
6203 | ||
3cbe17f7 | 6204 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
1cf3d07d SE |
6205 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
6206 | # Find out which ABI we are using. | |
6207 | echo 'int i;' > conftest.$ac_ext | |
5213506e | 6208 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
6209 | (eval $ac_compile) 2>&5 |
6210 | ac_status=$? | |
5213506e RW |
6211 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6212 | test $ac_status = 0; }; then | |
1cf3d07d SE |
6213 | case `/usr/bin/file conftest.o` in |
6214 | *32-bit*) | |
6215 | case $host in | |
6216 | x86_64-*kfreebsd*-gnu) | |
6217 | LD="${LD-ld} -m elf_i386_fbsd" | |
6218 | ;; | |
6219 | x86_64-*linux*) | |
e6d5f8c9 L |
6220 | case `/usr/bin/file conftest.o` in |
6221 | *x86-64*) | |
6222 | LD="${LD-ld} -m elf32_x86_64" | |
6223 | ;; | |
6224 | *) | |
6225 | LD="${LD-ld} -m elf_i386" | |
6226 | ;; | |
6227 | esac | |
1cf3d07d | 6228 | ;; |
3cbe17f7 AM |
6229 | powerpc64le-*linux*) |
6230 | LD="${LD-ld} -m elf32lppclinux" | |
6231 | ;; | |
6232 | powerpc64-*linux*) | |
1cf3d07d SE |
6233 | LD="${LD-ld} -m elf32ppclinux" |
6234 | ;; | |
6235 | s390x-*linux*) | |
6236 | LD="${LD-ld} -m elf_s390" | |
6237 | ;; | |
6238 | sparc64-*linux*) | |
6239 | LD="${LD-ld} -m elf32_sparc" | |
6240 | ;; | |
6241 | esac | |
6242 | ;; | |
6243 | *64-bit*) | |
6244 | case $host in | |
6245 | x86_64-*kfreebsd*-gnu) | |
6246 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6247 | ;; | |
6248 | x86_64-*linux*) | |
6249 | LD="${LD-ld} -m elf_x86_64" | |
6250 | ;; | |
3cbe17f7 AM |
6251 | powerpcle-*linux*) |
6252 | LD="${LD-ld} -m elf64lppc" | |
6253 | ;; | |
6254 | powerpc-*linux*) | |
1cf3d07d SE |
6255 | LD="${LD-ld} -m elf64ppc" |
6256 | ;; | |
6257 | s390*-*linux*|s390*-*tpf*) | |
6258 | LD="${LD-ld} -m elf64_s390" | |
6259 | ;; | |
6260 | sparc*-*linux*) | |
6261 | LD="${LD-ld} -m elf64_sparc" | |
6262 | ;; | |
6263 | esac | |
6264 | ;; | |
6265 | esac | |
6266 | fi | |
6267 | rm -rf conftest* | |
6268 | ;; | |
6269 | ||
6270 | *-*-sco3.2v5*) | |
6271 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6272 | SAVE_CFLAGS="$CFLAGS" | |
6273 | CFLAGS="$CFLAGS -belf" | |
5213506e RW |
6274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
6275 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
22e05272 | 6276 | if ${lt_cv_cc_needs_belf+:} false; then : |
5213506e | 6277 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
6278 | else |
6279 | ac_ext=c | |
6280 | ac_cpp='$CPP $CPPFLAGS' | |
6281 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6282 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6283 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6284 | ||
6285 | if test x$gcc_no_link = xyes; then | |
22e05272 | 6286 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 6287 | fi |
5213506e | 6288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
6289 | /* end confdefs.h. */ |
6290 | ||
6291 | int | |
6292 | main () | |
6293 | { | |
6294 | ||
6295 | ; | |
6296 | return 0; | |
6297 | } | |
6298 | _ACEOF | |
5213506e | 6299 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
6300 | lt_cv_cc_needs_belf=yes |
6301 | else | |
5213506e | 6302 | lt_cv_cc_needs_belf=no |
1cf3d07d | 6303 | fi |
5213506e RW |
6304 | rm -f core conftest.err conftest.$ac_objext \ |
6305 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
6306 | ac_ext=c |
6307 | ac_cpp='$CPP $CPPFLAGS' | |
6308 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6309 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6310 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6311 | ||
6312 | fi | |
5213506e RW |
6313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
6314 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
1cf3d07d SE |
6315 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
6316 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6317 | CFLAGS="$SAVE_CFLAGS" | |
6318 | fi | |
6319 | ;; | |
6320 | sparc*-*solaris*) | |
6321 | # Find out which ABI we are using. | |
6322 | echo 'int i;' > conftest.$ac_ext | |
5213506e | 6323 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
6324 | (eval $ac_compile) 2>&5 |
6325 | ac_status=$? | |
5213506e RW |
6326 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6327 | test $ac_status = 0; }; then | |
1cf3d07d SE |
6328 | case `/usr/bin/file conftest.o` in |
6329 | *64-bit*) | |
6330 | case $lt_cv_prog_gnu_ld in | |
6331 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
18d98188 PG |
6332 | *) |
6333 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6334 | LD="${LD-ld} -64" | |
6335 | fi | |
6336 | ;; | |
1cf3d07d SE |
6337 | esac |
6338 | ;; | |
6339 | esac | |
6340 | fi | |
6341 | rm -rf conftest* | |
6342 | ;; | |
6343 | esac | |
6344 | ||
6345 | need_locks="$enable_libtool_lock" | |
6346 | ||
18d98188 PG |
6347 | |
6348 | case $host_os in | |
6349 | rhapsody* | darwin*) | |
6350 | if test -n "$ac_tool_prefix"; then | |
6351 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6352 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
5213506e RW |
6353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6354 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6355 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
5213506e | 6356 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 6357 | else |
18d98188 PG |
6358 | if test -n "$DSYMUTIL"; then |
6359 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
6360 | else | |
6361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6362 | for as_dir in $PATH | |
1cf3d07d | 6363 | do |
18d98188 PG |
6364 | IFS=$as_save_IFS |
6365 | test -z "$as_dir" && as_dir=. | |
5213506e | 6366 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6367 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18d98188 | 6368 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
5213506e | 6369 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18d98188 | 6370 | break 2 |
1cf3d07d | 6371 | fi |
18d98188 | 6372 | done |
5213506e RW |
6373 | done |
6374 | IFS=$as_save_IFS | |
18d98188 PG |
6375 | |
6376 | fi | |
6377 | fi | |
6378 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
6379 | if test -n "$DSYMUTIL"; then | |
5213506e RW |
6380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
6381 | $as_echo "$DSYMUTIL" >&6; } | |
18d98188 | 6382 | else |
5213506e RW |
6383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6384 | $as_echo "no" >&6; } | |
18d98188 PG |
6385 | fi |
6386 | ||
5213506e | 6387 | |
18d98188 PG |
6388 | fi |
6389 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
6390 | ac_ct_DSYMUTIL=$DSYMUTIL | |
6391 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
6392 | set dummy dsymutil; ac_word=$2 | |
5213506e RW |
6393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6394 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6395 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
5213506e | 6396 | $as_echo_n "(cached) " >&6 |
18d98188 PG |
6397 | else |
6398 | if test -n "$ac_ct_DSYMUTIL"; then | |
6399 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
6400 | else | |
6401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6402 | for as_dir in $PATH | |
6403 | do | |
6404 | IFS=$as_save_IFS | |
6405 | test -z "$as_dir" && as_dir=. | |
5213506e | 6406 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6407 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18d98188 | 6408 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
5213506e | 6409 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18d98188 PG |
6410 | break 2 |
6411 | fi | |
6412 | done | |
5213506e RW |
6413 | done |
6414 | IFS=$as_save_IFS | |
18d98188 | 6415 | |
18d98188 PG |
6416 | fi |
6417 | fi | |
6418 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
6419 | if test -n "$ac_ct_DSYMUTIL"; then | |
5213506e RW |
6420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
6421 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
18d98188 | 6422 | else |
5213506e RW |
6423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6424 | $as_echo "no" >&6; } | |
18d98188 PG |
6425 | fi |
6426 | ||
5213506e RW |
6427 | if test "x$ac_ct_DSYMUTIL" = x; then |
6428 | DSYMUTIL=":" | |
6429 | else | |
6430 | case $cross_compiling:$ac_tool_warned in | |
6431 | yes:) | |
6432 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6433 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6434 | ac_tool_warned=yes ;; | |
6435 | esac | |
6436 | DSYMUTIL=$ac_ct_DSYMUTIL | |
6437 | fi | |
18d98188 PG |
6438 | else |
6439 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
6440 | fi | |
6441 | ||
6442 | if test -n "$ac_tool_prefix"; then | |
6443 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6444 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
5213506e RW |
6445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6446 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6447 | if ${ac_cv_prog_NMEDIT+:} false; then : |
5213506e | 6448 | $as_echo_n "(cached) " >&6 |
18d98188 PG |
6449 | else |
6450 | if test -n "$NMEDIT"; then | |
6451 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
6452 | else | |
6453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6454 | for as_dir in $PATH | |
6455 | do | |
6456 | IFS=$as_save_IFS | |
6457 | test -z "$as_dir" && as_dir=. | |
5213506e | 6458 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6459 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18d98188 | 6460 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
5213506e | 6461 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18d98188 PG |
6462 | break 2 |
6463 | fi | |
6464 | done | |
5213506e RW |
6465 | done |
6466 | IFS=$as_save_IFS | |
18d98188 PG |
6467 | |
6468 | fi | |
6469 | fi | |
6470 | NMEDIT=$ac_cv_prog_NMEDIT | |
6471 | if test -n "$NMEDIT"; then | |
5213506e RW |
6472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
6473 | $as_echo "$NMEDIT" >&6; } | |
18d98188 | 6474 | else |
5213506e RW |
6475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6476 | $as_echo "no" >&6; } | |
18d98188 PG |
6477 | fi |
6478 | ||
5213506e | 6479 | |
18d98188 PG |
6480 | fi |
6481 | if test -z "$ac_cv_prog_NMEDIT"; then | |
6482 | ac_ct_NMEDIT=$NMEDIT | |
6483 | # Extract the first word of "nmedit", so it can be a program name with args. | |
6484 | set dummy nmedit; ac_word=$2 | |
5213506e RW |
6485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6486 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6487 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
5213506e | 6488 | $as_echo_n "(cached) " >&6 |
18d98188 PG |
6489 | else |
6490 | if test -n "$ac_ct_NMEDIT"; then | |
6491 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
6492 | else | |
6493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6494 | for as_dir in $PATH | |
6495 | do | |
6496 | IFS=$as_save_IFS | |
6497 | test -z "$as_dir" && as_dir=. | |
5213506e | 6498 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6499 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18d98188 | 6500 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
5213506e | 6501 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18d98188 PG |
6502 | break 2 |
6503 | fi | |
6504 | done | |
5213506e RW |
6505 | done |
6506 | IFS=$as_save_IFS | |
18d98188 | 6507 | |
18d98188 PG |
6508 | fi |
6509 | fi | |
6510 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
6511 | if test -n "$ac_ct_NMEDIT"; then | |
5213506e RW |
6512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
6513 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
18d98188 | 6514 | else |
5213506e RW |
6515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6516 | $as_echo "no" >&6; } | |
18d98188 PG |
6517 | fi |
6518 | ||
5213506e RW |
6519 | if test "x$ac_ct_NMEDIT" = x; then |
6520 | NMEDIT=":" | |
6521 | else | |
6522 | case $cross_compiling:$ac_tool_warned in | |
6523 | yes:) | |
6524 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6525 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6526 | ac_tool_warned=yes ;; | |
6527 | esac | |
6528 | NMEDIT=$ac_ct_NMEDIT | |
6529 | fi | |
18d98188 PG |
6530 | else |
6531 | NMEDIT="$ac_cv_prog_NMEDIT" | |
6532 | fi | |
6533 | ||
6534 | if test -n "$ac_tool_prefix"; then | |
6535 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
6536 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
5213506e RW |
6537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6538 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6539 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 6540 | $as_echo_n "(cached) " >&6 |
18d98188 PG |
6541 | else |
6542 | if test -n "$LIPO"; then | |
6543 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
6544 | else | |
6545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6546 | for as_dir in $PATH | |
6547 | do | |
6548 | IFS=$as_save_IFS | |
6549 | test -z "$as_dir" && as_dir=. | |
5213506e | 6550 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6551 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18d98188 | 6552 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
5213506e | 6553 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18d98188 PG |
6554 | break 2 |
6555 | fi | |
6556 | done | |
5213506e RW |
6557 | done |
6558 | IFS=$as_save_IFS | |
18d98188 PG |
6559 | |
6560 | fi | |
6561 | fi | |
6562 | LIPO=$ac_cv_prog_LIPO | |
6563 | if test -n "$LIPO"; then | |
5213506e RW |
6564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
6565 | $as_echo "$LIPO" >&6; } | |
18d98188 | 6566 | else |
5213506e RW |
6567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6568 | $as_echo "no" >&6; } | |
18d98188 PG |
6569 | fi |
6570 | ||
5213506e | 6571 | |
18d98188 PG |
6572 | fi |
6573 | if test -z "$ac_cv_prog_LIPO"; then | |
6574 | ac_ct_LIPO=$LIPO | |
6575 | # Extract the first word of "lipo", so it can be a program name with args. | |
6576 | set dummy lipo; ac_word=$2 | |
5213506e RW |
6577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6578 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6579 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
5213506e | 6580 | $as_echo_n "(cached) " >&6 |
18d98188 PG |
6581 | else |
6582 | if test -n "$ac_ct_LIPO"; then | |
6583 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
6584 | else | |
6585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6586 | for as_dir in $PATH | |
6587 | do | |
6588 | IFS=$as_save_IFS | |
6589 | test -z "$as_dir" && as_dir=. | |
5213506e | 6590 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6591 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18d98188 | 6592 | ac_cv_prog_ac_ct_LIPO="lipo" |
5213506e | 6593 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18d98188 PG |
6594 | break 2 |
6595 | fi | |
6596 | done | |
5213506e RW |
6597 | done |
6598 | IFS=$as_save_IFS | |
18d98188 | 6599 | |
18d98188 PG |
6600 | fi |
6601 | fi | |
6602 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
6603 | if test -n "$ac_ct_LIPO"; then | |
5213506e RW |
6604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
6605 | $as_echo "$ac_ct_LIPO" >&6; } | |
18d98188 | 6606 | else |
5213506e RW |
6607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6608 | $as_echo "no" >&6; } | |
18d98188 PG |
6609 | fi |
6610 | ||
5213506e RW |
6611 | if test "x$ac_ct_LIPO" = x; then |
6612 | LIPO=":" | |
6613 | else | |
6614 | case $cross_compiling:$ac_tool_warned in | |
6615 | yes:) | |
6616 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6617 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6618 | ac_tool_warned=yes ;; | |
6619 | esac | |
6620 | LIPO=$ac_ct_LIPO | |
6621 | fi | |
18d98188 PG |
6622 | else |
6623 | LIPO="$ac_cv_prog_LIPO" | |
6624 | fi | |
6625 | ||
6626 | if test -n "$ac_tool_prefix"; then | |
6627 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
6628 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
5213506e RW |
6629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6630 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6631 | if ${ac_cv_prog_OTOOL+:} false; then : |
5213506e | 6632 | $as_echo_n "(cached) " >&6 |
18d98188 PG |
6633 | else |
6634 | if test -n "$OTOOL"; then | |
6635 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
6636 | else | |
6637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6638 | for as_dir in $PATH | |
6639 | do | |
6640 | IFS=$as_save_IFS | |
6641 | test -z "$as_dir" && as_dir=. | |
5213506e | 6642 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6643 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18d98188 | 6644 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
5213506e | 6645 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18d98188 PG |
6646 | break 2 |
6647 | fi | |
6648 | done | |
5213506e RW |
6649 | done |
6650 | IFS=$as_save_IFS | |
18d98188 PG |
6651 | |
6652 | fi | |
6653 | fi | |
6654 | OTOOL=$ac_cv_prog_OTOOL | |
6655 | if test -n "$OTOOL"; then | |
5213506e RW |
6656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
6657 | $as_echo "$OTOOL" >&6; } | |
18d98188 | 6658 | else |
5213506e RW |
6659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6660 | $as_echo "no" >&6; } | |
18d98188 PG |
6661 | fi |
6662 | ||
5213506e | 6663 | |
18d98188 PG |
6664 | fi |
6665 | if test -z "$ac_cv_prog_OTOOL"; then | |
6666 | ac_ct_OTOOL=$OTOOL | |
6667 | # Extract the first word of "otool", so it can be a program name with args. | |
6668 | set dummy otool; ac_word=$2 | |
5213506e RW |
6669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6670 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6671 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
5213506e | 6672 | $as_echo_n "(cached) " >&6 |
18d98188 PG |
6673 | else |
6674 | if test -n "$ac_ct_OTOOL"; then | |
6675 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
6676 | else | |
6677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6678 | for as_dir in $PATH | |
6679 | do | |
6680 | IFS=$as_save_IFS | |
6681 | test -z "$as_dir" && as_dir=. | |
5213506e | 6682 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6683 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18d98188 | 6684 | ac_cv_prog_ac_ct_OTOOL="otool" |
5213506e | 6685 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18d98188 PG |
6686 | break 2 |
6687 | fi | |
6688 | done | |
5213506e RW |
6689 | done |
6690 | IFS=$as_save_IFS | |
18d98188 | 6691 | |
18d98188 PG |
6692 | fi |
6693 | fi | |
6694 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
6695 | if test -n "$ac_ct_OTOOL"; then | |
5213506e RW |
6696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
6697 | $as_echo "$ac_ct_OTOOL" >&6; } | |
18d98188 | 6698 | else |
5213506e RW |
6699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6700 | $as_echo "no" >&6; } | |
18d98188 PG |
6701 | fi |
6702 | ||
5213506e RW |
6703 | if test "x$ac_ct_OTOOL" = x; then |
6704 | OTOOL=":" | |
6705 | else | |
6706 | case $cross_compiling:$ac_tool_warned in | |
6707 | yes:) | |
6708 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6709 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6710 | ac_tool_warned=yes ;; | |
6711 | esac | |
6712 | OTOOL=$ac_ct_OTOOL | |
6713 | fi | |
18d98188 PG |
6714 | else |
6715 | OTOOL="$ac_cv_prog_OTOOL" | |
6716 | fi | |
6717 | ||
6718 | if test -n "$ac_tool_prefix"; then | |
6719 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
6720 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
5213506e RW |
6721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6722 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6723 | if ${ac_cv_prog_OTOOL64+:} false; then : |
5213506e | 6724 | $as_echo_n "(cached) " >&6 |
18d98188 PG |
6725 | else |
6726 | if test -n "$OTOOL64"; then | |
6727 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
6728 | else | |
6729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6730 | for as_dir in $PATH | |
6731 | do | |
6732 | IFS=$as_save_IFS | |
6733 | test -z "$as_dir" && as_dir=. | |
5213506e | 6734 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6735 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18d98188 | 6736 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
5213506e | 6737 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18d98188 PG |
6738 | break 2 |
6739 | fi | |
6740 | done | |
5213506e RW |
6741 | done |
6742 | IFS=$as_save_IFS | |
18d98188 PG |
6743 | |
6744 | fi | |
6745 | fi | |
6746 | OTOOL64=$ac_cv_prog_OTOOL64 | |
6747 | if test -n "$OTOOL64"; then | |
5213506e RW |
6748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
6749 | $as_echo "$OTOOL64" >&6; } | |
18d98188 | 6750 | else |
5213506e RW |
6751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6752 | $as_echo "no" >&6; } | |
18d98188 PG |
6753 | fi |
6754 | ||
5213506e | 6755 | |
18d98188 PG |
6756 | fi |
6757 | if test -z "$ac_cv_prog_OTOOL64"; then | |
6758 | ac_ct_OTOOL64=$OTOOL64 | |
6759 | # Extract the first word of "otool64", so it can be a program name with args. | |
6760 | set dummy otool64; ac_word=$2 | |
5213506e RW |
6761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6762 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6763 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
5213506e | 6764 | $as_echo_n "(cached) " >&6 |
18d98188 PG |
6765 | else |
6766 | if test -n "$ac_ct_OTOOL64"; then | |
6767 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
6768 | else | |
6769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6770 | for as_dir in $PATH | |
6771 | do | |
6772 | IFS=$as_save_IFS | |
6773 | test -z "$as_dir" && as_dir=. | |
5213506e | 6774 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6775 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18d98188 | 6776 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
5213506e | 6777 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18d98188 PG |
6778 | break 2 |
6779 | fi | |
6780 | done | |
5213506e RW |
6781 | done |
6782 | IFS=$as_save_IFS | |
18d98188 | 6783 | |
18d98188 PG |
6784 | fi |
6785 | fi | |
6786 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
6787 | if test -n "$ac_ct_OTOOL64"; then | |
5213506e RW |
6788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
6789 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
18d98188 | 6790 | else |
5213506e RW |
6791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6792 | $as_echo "no" >&6; } | |
18d98188 PG |
6793 | fi |
6794 | ||
5213506e RW |
6795 | if test "x$ac_ct_OTOOL64" = x; then |
6796 | OTOOL64=":" | |
6797 | else | |
6798 | case $cross_compiling:$ac_tool_warned in | |
6799 | yes:) | |
6800 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6801 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6802 | ac_tool_warned=yes ;; | |
6803 | esac | |
6804 | OTOOL64=$ac_ct_OTOOL64 | |
6805 | fi | |
18d98188 PG |
6806 | else |
6807 | OTOOL64="$ac_cv_prog_OTOOL64" | |
6808 | fi | |
6809 | ||
6810 | ||
6811 | ||
6812 | ||
6813 | ||
6814 | ||
6815 | ||
6816 | ||
6817 | ||
6818 | ||
6819 | ||
6820 | ||
6821 | ||
6822 | ||
6823 | ||
6824 | ||
6825 | ||
6826 | ||
6827 | ||
6828 | ||
6829 | ||
6830 | ||
6831 | ||
6832 | ||
6833 | ||
6834 | ||
6835 | ||
5213506e RW |
6836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
6837 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
22e05272 | 6838 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
5213506e | 6839 | $as_echo_n "(cached) " >&6 |
18d98188 PG |
6840 | else |
6841 | lt_cv_apple_cc_single_mod=no | |
6842 | if test -z "${LT_MULTI_MODULE}"; then | |
6843 | # By default we will add the -single_module flag. You can override | |
6844 | # by either setting the environment variable LT_MULTI_MODULE | |
6845 | # non-empty at configure time, or by adding -multi_module to the | |
6846 | # link flags. | |
6847 | rm -rf libconftest.dylib* | |
6848 | echo "int foo(void){return 1;}" > conftest.c | |
6849 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6850 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
6851 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6852 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
6853 | _lt_result=$? | |
6854 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
6855 | lt_cv_apple_cc_single_mod=yes | |
6856 | else | |
6857 | cat conftest.err >&5 | |
6858 | fi | |
6859 | rm -rf libconftest.dylib* | |
6860 | rm -f conftest.* | |
6861 | fi | |
6862 | fi | |
5213506e RW |
6863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
6864 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
6865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
6866 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
22e05272 | 6867 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
5213506e | 6868 | $as_echo_n "(cached) " >&6 |
18d98188 PG |
6869 | else |
6870 | lt_cv_ld_exported_symbols_list=no | |
6871 | save_LDFLAGS=$LDFLAGS | |
6872 | echo "_main" > conftest.sym | |
6873 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
6874 | if test x$gcc_no_link = xyes; then | |
22e05272 | 6875 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
18d98188 | 6876 | fi |
5213506e | 6877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18d98188 PG |
6878 | /* end confdefs.h. */ |
6879 | ||
6880 | int | |
6881 | main () | |
6882 | { | |
6883 | ||
6884 | ; | |
6885 | return 0; | |
6886 | } | |
6887 | _ACEOF | |
5213506e | 6888 | if ac_fn_c_try_link "$LINENO"; then : |
18d98188 PG |
6889 | lt_cv_ld_exported_symbols_list=yes |
6890 | else | |
5213506e | 6891 | lt_cv_ld_exported_symbols_list=no |
18d98188 | 6892 | fi |
5213506e RW |
6893 | rm -f core conftest.err conftest.$ac_objext \ |
6894 | conftest$ac_exeext conftest.$ac_ext | |
18d98188 PG |
6895 | LDFLAGS="$save_LDFLAGS" |
6896 | ||
6897 | fi | |
5213506e RW |
6898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
6899 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
43e02a8a RW |
6900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
6901 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
22e05272 | 6902 | if ${lt_cv_ld_force_load+:} false; then : |
43e02a8a RW |
6903 | $as_echo_n "(cached) " >&6 |
6904 | else | |
6905 | lt_cv_ld_force_load=no | |
6906 | cat > conftest.c << _LT_EOF | |
6907 | int forced_loaded() { return 2;} | |
6908 | _LT_EOF | |
6909 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
6910 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
6911 | echo "$AR cru libconftest.a conftest.o" >&5 | |
6912 | $AR cru libconftest.a conftest.o 2>&5 | |
6913 | cat > conftest.c << _LT_EOF | |
6914 | int main() { return 0;} | |
6915 | _LT_EOF | |
6916 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
6917 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
6918 | _lt_result=$? | |
6919 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
6920 | lt_cv_ld_force_load=yes | |
6921 | else | |
6922 | cat conftest.err >&5 | |
6923 | fi | |
6924 | rm -f conftest.err libconftest.a conftest conftest.c | |
6925 | rm -rf conftest.dSYM | |
6926 | ||
6927 | fi | |
6928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
6929 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
1352bc88 IS |
6930 | # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to |
6931 | # build without first building modern cctools / linker. | |
6932 | case $host_cpu-$host_os in | |
6933 | *-rhapsody* | *-darwin1.[012]) | |
18d98188 | 6934 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
1352bc88 | 6935 | *-darwin1.*) |
18d98188 | 6936 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
1352bc88 IS |
6937 | *-darwin*) |
6938 | # darwin 5.x (macOS 10.1) onwards we only need to adjust when the | |
6939 | # deployment target is forced to an earlier version. | |
6940 | case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in | |
6941 | UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) | |
6942 | ;; | |
ebf6d33b | 6943 | 10.[012][,.]*) |
1352bc88 IS |
6944 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
6945 | ;; | |
6946 | *) | |
6947 | ;; | |
6948 | esac | |
18d98188 PG |
6949 | ;; |
6950 | esac | |
6951 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
6952 | _lt_dar_single_mod='$single_module' | |
6953 | fi | |
6954 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
6955 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
6956 | else | |
6957 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
6958 | fi | |
43e02a8a | 6959 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
18d98188 PG |
6960 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
6961 | else | |
6962 | _lt_dsymutil= | |
6963 | fi | |
6964 | ;; | |
6965 | esac | |
6966 | ||
6967 | ac_ext=c | |
6968 | ac_cpp='$CPP $CPPFLAGS' | |
6969 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6970 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6971 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5213506e RW |
6972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
6973 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
18d98188 PG |
6974 | # On Suns, sometimes $CPP names a directory. |
6975 | if test -n "$CPP" && test -d "$CPP"; then | |
6976 | CPP= | |
6977 | fi | |
6978 | if test -z "$CPP"; then | |
22e05272 | 6979 | if ${ac_cv_prog_CPP+:} false; then : |
5213506e | 6980 | $as_echo_n "(cached) " >&6 |
18d98188 PG |
6981 | else |
6982 | # Double quotes because CPP needs to be expanded | |
6983 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
6984 | do | |
6985 | ac_preproc_ok=false | |
6986 | for ac_c_preproc_warn_flag in '' yes | |
6987 | do | |
6988 | # Use a header file that comes with gcc, so configuring glibc | |
6989 | # with a fresh cross-compiler works. | |
6990 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6991 | # <limits.h> exists even on freestanding compilers. | |
6992 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6993 | # not just through cpp. "Syntax error" is here to catch this case. | |
5213506e | 6994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18d98188 PG |
6995 | /* end confdefs.h. */ |
6996 | #ifdef __STDC__ | |
6997 | # include <limits.h> | |
6998 | #else | |
6999 | # include <assert.h> | |
7000 | #endif | |
7001 | Syntax error | |
7002 | _ACEOF | |
5213506e | 7003 | if ac_fn_c_try_cpp "$LINENO"; then : |
1cf3d07d | 7004 | |
5213506e | 7005 | else |
1cf3d07d SE |
7006 | # Broken: fails on valid input. |
7007 | continue | |
7008 | fi | |
22e05272 | 7009 | rm -f conftest.err conftest.i conftest.$ac_ext |
1cf3d07d | 7010 | |
5213506e | 7011 | # OK, works on sane cases. Now check whether nonexistent headers |
1cf3d07d | 7012 | # can be detected and how. |
5213506e | 7013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
7014 | /* end confdefs.h. */ |
7015 | #include <ac_nonexistent.h> | |
7016 | _ACEOF | |
5213506e | 7017 | if ac_fn_c_try_cpp "$LINENO"; then : |
1cf3d07d SE |
7018 | # Broken: success on invalid input. |
7019 | continue | |
7020 | else | |
1cf3d07d SE |
7021 | # Passes both tests. |
7022 | ac_preproc_ok=: | |
7023 | break | |
7024 | fi | |
22e05272 | 7025 | rm -f conftest.err conftest.i conftest.$ac_ext |
1cf3d07d SE |
7026 | |
7027 | done | |
7028 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 7029 | rm -f conftest.i conftest.err conftest.$ac_ext |
5213506e | 7030 | if $ac_preproc_ok; then : |
1cf3d07d SE |
7031 | break |
7032 | fi | |
7033 | ||
7034 | done | |
7035 | ac_cv_prog_CPP=$CPP | |
7036 | ||
7037 | fi | |
7038 | CPP=$ac_cv_prog_CPP | |
7039 | else | |
7040 | ac_cv_prog_CPP=$CPP | |
7041 | fi | |
5213506e RW |
7042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
7043 | $as_echo "$CPP" >&6; } | |
1cf3d07d SE |
7044 | ac_preproc_ok=false |
7045 | for ac_c_preproc_warn_flag in '' yes | |
7046 | do | |
7047 | # Use a header file that comes with gcc, so configuring glibc | |
7048 | # with a fresh cross-compiler works. | |
7049 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7050 | # <limits.h> exists even on freestanding compilers. | |
7051 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7052 | # not just through cpp. "Syntax error" is here to catch this case. | |
5213506e | 7053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
7054 | /* end confdefs.h. */ |
7055 | #ifdef __STDC__ | |
7056 | # include <limits.h> | |
7057 | #else | |
7058 | # include <assert.h> | |
7059 | #endif | |
7060 | Syntax error | |
7061 | _ACEOF | |
5213506e | 7062 | if ac_fn_c_try_cpp "$LINENO"; then : |
1cf3d07d | 7063 | |
5213506e | 7064 | else |
1cf3d07d SE |
7065 | # Broken: fails on valid input. |
7066 | continue | |
7067 | fi | |
22e05272 | 7068 | rm -f conftest.err conftest.i conftest.$ac_ext |
1cf3d07d | 7069 | |
5213506e | 7070 | # OK, works on sane cases. Now check whether nonexistent headers |
1cf3d07d | 7071 | # can be detected and how. |
5213506e | 7072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
7073 | /* end confdefs.h. */ |
7074 | #include <ac_nonexistent.h> | |
7075 | _ACEOF | |
5213506e | 7076 | if ac_fn_c_try_cpp "$LINENO"; then : |
1cf3d07d SE |
7077 | # Broken: success on invalid input. |
7078 | continue | |
7079 | else | |
1cf3d07d SE |
7080 | # Passes both tests. |
7081 | ac_preproc_ok=: | |
7082 | break | |
7083 | fi | |
22e05272 | 7084 | rm -f conftest.err conftest.i conftest.$ac_ext |
1cf3d07d SE |
7085 | |
7086 | done | |
7087 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 7088 | rm -f conftest.i conftest.err conftest.$ac_ext |
5213506e RW |
7089 | if $ac_preproc_ok; then : |
7090 | ||
1cf3d07d | 7091 | else |
5213506e RW |
7092 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
7093 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
7094 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
7095 | See \`config.log' for more details" "$LINENO" 5; } | |
1cf3d07d SE |
7096 | fi |
7097 | ||
7098 | ac_ext=c | |
7099 | ac_cpp='$CPP $CPPFLAGS' | |
7100 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7101 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7102 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7103 | ||
7104 | ||
5213506e RW |
7105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
7106 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
22e05272 | 7107 | if ${ac_cv_header_stdc+:} false; then : |
5213506e | 7108 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 7109 | else |
5213506e | 7110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
7111 | /* end confdefs.h. */ |
7112 | #include <stdlib.h> | |
7113 | #include <stdarg.h> | |
7114 | #include <string.h> | |
7115 | #include <float.h> | |
7116 | ||
7117 | int | |
7118 | main () | |
7119 | { | |
7120 | ||
7121 | ; | |
7122 | return 0; | |
7123 | } | |
7124 | _ACEOF | |
5213506e | 7125 | if ac_fn_c_try_compile "$LINENO"; then : |
1cf3d07d SE |
7126 | ac_cv_header_stdc=yes |
7127 | else | |
5213506e | 7128 | ac_cv_header_stdc=no |
1cf3d07d | 7129 | fi |
5213506e | 7130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
7131 | |
7132 | if test $ac_cv_header_stdc = yes; then | |
7133 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5213506e | 7134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
7135 | /* end confdefs.h. */ |
7136 | #include <string.h> | |
7137 | ||
7138 | _ACEOF | |
7139 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5213506e RW |
7140 | $EGREP "memchr" >/dev/null 2>&1; then : |
7141 | ||
1cf3d07d SE |
7142 | else |
7143 | ac_cv_header_stdc=no | |
7144 | fi | |
7145 | rm -f conftest* | |
7146 | ||
7147 | fi | |
7148 | ||
7149 | if test $ac_cv_header_stdc = yes; then | |
7150 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5213506e | 7151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
7152 | /* end confdefs.h. */ |
7153 | #include <stdlib.h> | |
7154 | ||
7155 | _ACEOF | |
7156 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5213506e RW |
7157 | $EGREP "free" >/dev/null 2>&1; then : |
7158 | ||
1cf3d07d SE |
7159 | else |
7160 | ac_cv_header_stdc=no | |
7161 | fi | |
7162 | rm -f conftest* | |
7163 | ||
7164 | fi | |
7165 | ||
7166 | if test $ac_cv_header_stdc = yes; then | |
7167 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5213506e | 7168 | if test "$cross_compiling" = yes; then : |
1cf3d07d SE |
7169 | : |
7170 | else | |
5213506e | 7171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
7172 | /* end confdefs.h. */ |
7173 | #include <ctype.h> | |
5213506e | 7174 | #include <stdlib.h> |
1cf3d07d SE |
7175 | #if ((' ' & 0x0FF) == 0x020) |
7176 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7177 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7178 | #else | |
7179 | # define ISLOWER(c) \ | |
7180 | (('a' <= (c) && (c) <= 'i') \ | |
7181 | || ('j' <= (c) && (c) <= 'r') \ | |
7182 | || ('s' <= (c) && (c) <= 'z')) | |
7183 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7184 | #endif | |
7185 | ||
7186 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
7187 | int | |
7188 | main () | |
7189 | { | |
7190 | int i; | |
7191 | for (i = 0; i < 256; i++) | |
7192 | if (XOR (islower (i), ISLOWER (i)) | |
7193 | || toupper (i) != TOUPPER (i)) | |
5213506e RW |
7194 | return 2; |
7195 | return 0; | |
1cf3d07d SE |
7196 | } |
7197 | _ACEOF | |
5213506e | 7198 | if ac_fn_c_try_run "$LINENO"; then : |
1cf3d07d | 7199 | |
5213506e RW |
7200 | else |
7201 | ac_cv_header_stdc=no | |
1cf3d07d | 7202 | fi |
5213506e RW |
7203 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7204 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
1cf3d07d | 7205 | fi |
5213506e | 7206 | |
1cf3d07d SE |
7207 | fi |
7208 | fi | |
5213506e RW |
7209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
7210 | $as_echo "$ac_cv_header_stdc" >&6; } | |
1cf3d07d SE |
7211 | if test $ac_cv_header_stdc = yes; then |
7212 | ||
5213506e | 7213 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
1cf3d07d SE |
7214 | |
7215 | fi | |
7216 | ||
7217 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
1cf3d07d SE |
7218 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
7219 | inttypes.h stdint.h unistd.h | |
5213506e RW |
7220 | do : |
7221 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7222 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
7223 | " | |
22e05272 | 7224 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
18d98188 | 7225 | cat >>confdefs.h <<_ACEOF |
5213506e | 7226 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
18d98188 PG |
7227 | _ACEOF |
7228 | ||
7229 | fi | |
7230 | ||
7231 | done | |
7232 | ||
7233 | ||
18d98188 | 7234 | for ac_header in dlfcn.h |
5213506e RW |
7235 | do : |
7236 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7237 | " | |
22e05272 | 7238 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
18d98188 | 7239 | cat >>confdefs.h <<_ACEOF |
5213506e | 7240 | #define HAVE_DLFCN_H 1 |
18d98188 PG |
7241 | _ACEOF |
7242 | ||
7243 | fi | |
7244 | ||
7245 | done | |
7246 | ||
7247 | ||
7248 | ||
43e02a8a RW |
7249 | |
7250 | ||
18d98188 PG |
7251 | # Set options |
7252 | ||
7253 | ||
7254 | ||
7255 | enable_dlopen=no | |
7256 | ||
7257 | ||
7258 | enable_win32_dll=no | |
7259 | ||
7260 | ||
5213506e RW |
7261 | # Check whether --enable-shared was given. |
7262 | if test "${enable_shared+set}" = set; then : | |
7263 | enableval=$enable_shared; p=${PACKAGE-default} | |
18d98188 PG |
7264 | case $enableval in |
7265 | yes) enable_shared=yes ;; | |
7266 | no) enable_shared=no ;; | |
7267 | *) | |
7268 | enable_shared=no | |
7269 | # Look at the argument we got. We use all the common list separators. | |
7270 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7271 | for pkg in $enableval; do | |
7272 | IFS="$lt_save_ifs" | |
7273 | if test "X$pkg" = "X$p"; then | |
7274 | enable_shared=yes | |
7275 | fi | |
7276 | done | |
7277 | IFS="$lt_save_ifs" | |
7278 | ;; | |
7279 | esac | |
7280 | else | |
7281 | enable_shared=yes | |
5213506e | 7282 | fi |
18d98188 PG |
7283 | |
7284 | ||
7285 | ||
7286 | ||
7287 | ||
7288 | ||
7289 | ||
7290 | ||
5213506e RW |
7291 | |
7292 | # Check whether --enable-static was given. | |
7293 | if test "${enable_static+set}" = set; then : | |
7294 | enableval=$enable_static; p=${PACKAGE-default} | |
18d98188 PG |
7295 | case $enableval in |
7296 | yes) enable_static=yes ;; | |
7297 | no) enable_static=no ;; | |
7298 | *) | |
7299 | enable_static=no | |
7300 | # Look at the argument we got. We use all the common list separators. | |
7301 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7302 | for pkg in $enableval; do | |
7303 | IFS="$lt_save_ifs" | |
7304 | if test "X$pkg" = "X$p"; then | |
7305 | enable_static=yes | |
7306 | fi | |
7307 | done | |
7308 | IFS="$lt_save_ifs" | |
7309 | ;; | |
7310 | esac | |
7311 | else | |
7312 | enable_static=yes | |
5213506e | 7313 | fi |
18d98188 PG |
7314 | |
7315 | ||
7316 | ||
7317 | ||
7318 | ||
7319 | ||
7320 | ||
7321 | ||
7322 | ||
5213506e RW |
7323 | |
7324 | # Check whether --with-pic was given. | |
7325 | if test "${with_pic+set}" = set; then : | |
7326 | withval=$with_pic; pic_mode="$withval" | |
18d98188 PG |
7327 | else |
7328 | pic_mode=default | |
5213506e RW |
7329 | fi |
7330 | ||
1cf3d07d | 7331 | |
18d98188 | 7332 | test -z "$pic_mode" && pic_mode=default |
1cf3d07d | 7333 | |
1cf3d07d | 7334 | |
1cf3d07d SE |
7335 | |
7336 | ||
7337 | ||
1cf3d07d | 7338 | |
18d98188 | 7339 | |
5213506e RW |
7340 | # Check whether --enable-fast-install was given. |
7341 | if test "${enable_fast_install+set}" = set; then : | |
7342 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
18d98188 PG |
7343 | case $enableval in |
7344 | yes) enable_fast_install=yes ;; | |
7345 | no) enable_fast_install=no ;; | |
7346 | *) | |
7347 | enable_fast_install=no | |
7348 | # Look at the argument we got. We use all the common list separators. | |
7349 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7350 | for pkg in $enableval; do | |
7351 | IFS="$lt_save_ifs" | |
7352 | if test "X$pkg" = "X$p"; then | |
7353 | enable_fast_install=yes | |
7354 | fi | |
7355 | done | |
7356 | IFS="$lt_save_ifs" | |
7357 | ;; | |
7358 | esac | |
1cf3d07d | 7359 | else |
18d98188 | 7360 | enable_fast_install=yes |
5213506e RW |
7361 | fi |
7362 | ||
18d98188 PG |
7363 | |
7364 | ||
7365 | ||
7366 | ||
1cf3d07d | 7367 | |
1cf3d07d | 7368 | |
1cf3d07d | 7369 | |
1cf3d07d SE |
7370 | |
7371 | ||
7372 | ||
7373 | # This can be used to rebuild libtool when needed | |
7374 | LIBTOOL_DEPS="$ltmain" | |
7375 | ||
7376 | # Always use our own libtool. | |
7377 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
7378 | ||
7379 | ||
7380 | ||
7381 | ||
7382 | ||
7383 | ||
7384 | ||
7385 | ||
7386 | ||
7387 | ||
7388 | ||
7389 | ||
7390 | ||
7391 | ||
7392 | ||
7393 | ||
7394 | ||
7395 | ||
7396 | ||
7397 | ||
7398 | ||
7399 | ||
7400 | ||
43e02a8a | 7401 | |
1cf3d07d SE |
7402 | |
7403 | ||
7404 | test -z "$LN_S" && LN_S="ln -s" | |
7405 | ||
7406 | ||
7407 | ||
7408 | ||
7409 | ||
7410 | ||
7411 | ||
7412 | ||
7413 | ||
7414 | ||
7415 | ||
7416 | ||
7417 | ||
7418 | ||
7419 | if test -n "${ZSH_VERSION+set}" ; then | |
7420 | setopt NO_GLOB_SUBST | |
7421 | fi | |
7422 | ||
5213506e RW |
7423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
7424 | $as_echo_n "checking for objdir... " >&6; } | |
22e05272 | 7425 | if ${lt_cv_objdir+:} false; then : |
5213506e | 7426 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
7427 | else |
7428 | rm -f .libs 2>/dev/null | |
7429 | mkdir .libs 2>/dev/null | |
7430 | if test -d .libs; then | |
7431 | lt_cv_objdir=.libs | |
7432 | else | |
7433 | # MS-DOS does not allow filenames that begin with a dot. | |
7434 | lt_cv_objdir=_libs | |
7435 | fi | |
7436 | rmdir .libs 2>/dev/null | |
7437 | fi | |
5213506e RW |
7438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
7439 | $as_echo "$lt_cv_objdir" >&6; } | |
1cf3d07d SE |
7440 | objdir=$lt_cv_objdir |
7441 | ||
7442 | ||
7443 | ||
7444 | ||
7445 | ||
7446 | cat >>confdefs.h <<_ACEOF | |
7447 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7448 | _ACEOF | |
7449 | ||
7450 | ||
7451 | ||
7452 | ||
1cf3d07d SE |
7453 | case $host_os in |
7454 | aix3*) | |
7455 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7456 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7457 | # vanish in a puff of smoke. | |
7458 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7459 | COLLECT_NAMES= | |
7460 | export COLLECT_NAMES | |
7461 | fi | |
7462 | ;; | |
7463 | esac | |
7464 | ||
1cf3d07d SE |
7465 | # Global variables: |
7466 | ofile=libtool | |
7467 | can_build_shared=yes | |
7468 | ||
7469 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
7470 | # which needs '.lib'). | |
7471 | libext=a | |
7472 | ||
7473 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
7474 | ||
7475 | old_CC="$CC" | |
7476 | old_CFLAGS="$CFLAGS" | |
7477 | ||
7478 | # Set sane defaults for various variables | |
7479 | test -z "$CC" && CC=cc | |
7480 | test -z "$LTCC" && LTCC=$CC | |
7481 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7482 | test -z "$LD" && LD=ld | |
7483 | test -z "$ac_objext" && ac_objext=o | |
7484 | ||
7485 | for cc_temp in $compiler""; do | |
7486 | case $cc_temp in | |
7487 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7488 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7489 | \-*) ;; | |
7490 | *) break;; | |
7491 | esac | |
7492 | done | |
43e02a8a | 7493 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
1cf3d07d SE |
7494 | |
7495 | ||
7496 | # Only perform the check for file, if the check method requires it | |
7497 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7498 | case $deplibs_check_method in | |
7499 | file_magic*) | |
7500 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
5213506e RW |
7501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
7502 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
22e05272 | 7503 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
5213506e | 7504 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
7505 | else |
7506 | case $MAGIC_CMD in | |
7507 | [\\/*] | ?:[\\/]*) | |
7508 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7509 | ;; | |
7510 | *) | |
7511 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7512 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7513 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7514 | for ac_dir in $ac_dummy; do | |
7515 | IFS="$lt_save_ifs" | |
7516 | test -z "$ac_dir" && ac_dir=. | |
7517 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7518 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7519 | if test -n "$file_magic_test_file"; then | |
7520 | case $deplibs_check_method in | |
7521 | "file_magic "*) | |
7522 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7523 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7524 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7525 | $EGREP "$file_magic_regex" > /dev/null; then | |
7526 | : | |
7527 | else | |
7528 | cat <<_LT_EOF 1>&2 | |
7529 | ||
7530 | *** Warning: the command libtool uses to detect shared libraries, | |
7531 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7532 | *** The result is that libtool may fail to recognize shared libraries | |
7533 | *** as such. This will affect the creation of libtool libraries that | |
7534 | *** depend on shared libraries, but programs linked with such libtool | |
7535 | *** libraries will work regardless of this problem. Nevertheless, you | |
7536 | *** may want to report the problem to your system manager and/or to | |
7537 | *** bug-libtool@gnu.org | |
7538 | ||
7539 | _LT_EOF | |
7540 | fi ;; | |
7541 | esac | |
7542 | fi | |
7543 | break | |
7544 | fi | |
7545 | done | |
7546 | IFS="$lt_save_ifs" | |
7547 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7548 | ;; | |
7549 | esac | |
7550 | fi | |
7551 | ||
7552 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7553 | if test -n "$MAGIC_CMD"; then | |
5213506e RW |
7554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
7555 | $as_echo "$MAGIC_CMD" >&6; } | |
1cf3d07d | 7556 | else |
5213506e RW |
7557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7558 | $as_echo "no" >&6; } | |
1cf3d07d SE |
7559 | fi |
7560 | ||
7561 | ||
7562 | ||
7563 | ||
7564 | ||
7565 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
7566 | if test -n "$ac_tool_prefix"; then | |
5213506e RW |
7567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
7568 | $as_echo_n "checking for file... " >&6; } | |
22e05272 | 7569 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
5213506e | 7570 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
7571 | else |
7572 | case $MAGIC_CMD in | |
7573 | [\\/*] | ?:[\\/]*) | |
7574 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7575 | ;; | |
7576 | *) | |
7577 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7578 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7579 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7580 | for ac_dir in $ac_dummy; do | |
7581 | IFS="$lt_save_ifs" | |
7582 | test -z "$ac_dir" && ac_dir=. | |
7583 | if test -f $ac_dir/file; then | |
7584 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7585 | if test -n "$file_magic_test_file"; then | |
7586 | case $deplibs_check_method in | |
7587 | "file_magic "*) | |
7588 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7589 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7590 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7591 | $EGREP "$file_magic_regex" > /dev/null; then | |
7592 | : | |
7593 | else | |
7594 | cat <<_LT_EOF 1>&2 | |
7595 | ||
7596 | *** Warning: the command libtool uses to detect shared libraries, | |
7597 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7598 | *** The result is that libtool may fail to recognize shared libraries | |
7599 | *** as such. This will affect the creation of libtool libraries that | |
7600 | *** depend on shared libraries, but programs linked with such libtool | |
7601 | *** libraries will work regardless of this problem. Nevertheless, you | |
7602 | *** may want to report the problem to your system manager and/or to | |
7603 | *** bug-libtool@gnu.org | |
7604 | ||
7605 | _LT_EOF | |
7606 | fi ;; | |
7607 | esac | |
7608 | fi | |
7609 | break | |
7610 | fi | |
7611 | done | |
7612 | IFS="$lt_save_ifs" | |
7613 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7614 | ;; | |
7615 | esac | |
7616 | fi | |
7617 | ||
7618 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7619 | if test -n "$MAGIC_CMD"; then | |
5213506e RW |
7620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
7621 | $as_echo "$MAGIC_CMD" >&6; } | |
1cf3d07d | 7622 | else |
5213506e RW |
7623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7624 | $as_echo "no" >&6; } | |
1cf3d07d SE |
7625 | fi |
7626 | ||
7627 | ||
7628 | else | |
7629 | MAGIC_CMD=: | |
7630 | fi | |
7631 | fi | |
7632 | ||
7633 | fi | |
7634 | ;; | |
7635 | esac | |
7636 | ||
7637 | # Use C for the default configuration in the libtool script | |
7638 | ||
7639 | lt_save_CC="$CC" | |
7640 | ac_ext=c | |
7641 | ac_cpp='$CPP $CPPFLAGS' | |
7642 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7643 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7644 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7645 | ||
7646 | ||
7647 | # Source file extension for C test sources. | |
7648 | ac_ext=c | |
7649 | ||
7650 | # Object file extension for compiled C test sources. | |
7651 | objext=o | |
7652 | objext=$objext | |
7653 | ||
7654 | # Code to be used in simple compile tests | |
7655 | lt_simple_compile_test_code="int some_variable = 0;" | |
7656 | ||
7657 | # Code to be used in simple link tests | |
7658 | lt_simple_link_test_code='int main(){return(0);}' | |
7659 | ||
7660 | ||
7661 | ||
7662 | ||
7663 | ||
7664 | ||
7665 | ||
7666 | # If no C compiler was specified, use CC. | |
7667 | LTCC=${LTCC-"$CC"} | |
7668 | ||
7669 | # If no C compiler flags were specified, use CFLAGS. | |
7670 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7671 | ||
7672 | # Allow CC to be a program name with arguments. | |
7673 | compiler=$CC | |
7674 | ||
7675 | # Save the default compiler, since it gets overwritten when the other | |
7676 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
7677 | compiler_DEFAULT=$CC | |
7678 | ||
7679 | # save warnings/boilerplate of simple test code | |
7680 | ac_outfile=conftest.$ac_objext | |
7681 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
7682 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7683 | _lt_compiler_boilerplate=`cat conftest.err` | |
7684 | $RM conftest* | |
7685 | ||
7686 | ac_outfile=conftest.$ac_objext | |
7687 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
7688 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7689 | _lt_linker_boilerplate=`cat conftest.err` | |
18d98188 | 7690 | $RM -r conftest* |
1cf3d07d SE |
7691 | |
7692 | ||
7693 | ## CAVEAT EMPTOR: | |
7694 | ## There is no encapsulation within the following macros, do not change | |
7695 | ## the running order or otherwise move them around unless you know exactly | |
7696 | ## what you are doing... | |
7697 | if test -n "$compiler"; then | |
7698 | ||
7699 | lt_prog_compiler_no_builtin_flag= | |
7700 | ||
7701 | if test "$GCC" = yes; then | |
43e02a8a RW |
7702 | case $cc_basename in |
7703 | nvcc*) | |
7704 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
7705 | *) | |
7706 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
7707 | esac | |
1cf3d07d | 7708 | |
5213506e RW |
7709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7710 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
22e05272 | 7711 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
5213506e | 7712 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
7713 | else |
7714 | lt_cv_prog_compiler_rtti_exceptions=no | |
7715 | ac_outfile=conftest.$ac_objext | |
7716 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7717 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
7718 | # Insert the option either (1) after the last *FLAGS variable, or | |
7719 | # (2) before a word containing "conftest.", or (3) at the end. | |
7720 | # Note that $ac_compile itself does not contain backslashes and begins | |
7721 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7722 | # The option is referenced via a variable to avoid confusing sed. | |
7723 | lt_compile=`echo "$ac_compile" | $SED \ | |
7724 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7725 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7726 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 7727 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
7728 | (eval "$lt_compile" 2>conftest.err) |
7729 | ac_status=$? | |
7730 | cat conftest.err >&5 | |
43e02a8a | 7731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
7732 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7733 | # The compiler can only warn and ignore the option if not recognized | |
7734 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 7735 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
7736 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7737 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7738 | lt_cv_prog_compiler_rtti_exceptions=yes | |
7739 | fi | |
7740 | fi | |
7741 | $RM conftest* | |
7742 | ||
7743 | fi | |
5213506e RW |
7744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
7745 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
1cf3d07d SE |
7746 | |
7747 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
7748 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
7749 | else | |
7750 | : | |
7751 | fi | |
7752 | ||
7753 | fi | |
7754 | ||
7755 | ||
7756 | ||
7757 | ||
7758 | ||
7759 | ||
7760 | lt_prog_compiler_wl= | |
7761 | lt_prog_compiler_pic= | |
7762 | lt_prog_compiler_static= | |
7763 | ||
5213506e RW |
7764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
7765 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
1cf3d07d SE |
7766 | |
7767 | if test "$GCC" = yes; then | |
7768 | lt_prog_compiler_wl='-Wl,' | |
7769 | lt_prog_compiler_static='-static' | |
7770 | ||
7771 | case $host_os in | |
7772 | aix*) | |
7773 | # All AIX code is PIC. | |
7774 | if test "$host_cpu" = ia64; then | |
7775 | # AIX 5 now supports IA64 processor | |
7776 | lt_prog_compiler_static='-Bstatic' | |
7777 | fi | |
ae62425f | 7778 | lt_prog_compiler_pic='-fPIC' |
1cf3d07d SE |
7779 | ;; |
7780 | ||
7781 | amigaos*) | |
18d98188 PG |
7782 | case $host_cpu in |
7783 | powerpc) | |
7784 | # see comment about AmigaOS4 .so support | |
7785 | lt_prog_compiler_pic='-fPIC' | |
7786 | ;; | |
7787 | m68k) | |
7788 | # FIXME: we need at least 68020 code to build shared libraries, but | |
7789 | # adding the `-m68020' flag to GCC prevents building anything better, | |
7790 | # like `-m68040'. | |
7791 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
7792 | ;; | |
7793 | esac | |
1cf3d07d SE |
7794 | ;; |
7795 | ||
7796 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
7797 | # PIC is the default for these OSes. | |
7798 | ;; | |
7799 | ||
18d98188 | 7800 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
7801 | # This hack is so that the source file can tell whether it is being |
7802 | # built for inclusion in a dll (and should export symbols for example). | |
7803 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
7804 | # (--disable-auto-import) libraries | |
7805 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
7806 | ;; | |
7807 | ||
7808 | darwin* | rhapsody*) | |
7809 | # PIC is the default on this platform | |
7810 | # Common symbols not allowed in MH_DYLIB files | |
7811 | lt_prog_compiler_pic='-fno-common' | |
7812 | ;; | |
7813 | ||
43e02a8a RW |
7814 | haiku*) |
7815 | # PIC is the default for Haiku. | |
7816 | # The "-static" flag exists, but is broken. | |
7817 | lt_prog_compiler_static= | |
7818 | ;; | |
7819 | ||
1cf3d07d | 7820 | hpux*) |
18d98188 PG |
7821 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
7822 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
7823 | # sets the default TLS model and affects inlining. | |
1cf3d07d | 7824 | case $host_cpu in |
18d98188 | 7825 | hppa*64*) |
1cf3d07d SE |
7826 | # +Z the default |
7827 | ;; | |
7828 | *) | |
7829 | lt_prog_compiler_pic='-fPIC' | |
7830 | ;; | |
7831 | esac | |
7832 | ;; | |
7833 | ||
7834 | interix[3-9]*) | |
7835 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
7836 | # Instead, we relocate shared libraries at runtime. | |
7837 | ;; | |
7838 | ||
7839 | msdosdjgpp*) | |
7840 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
7841 | # on systems that don't support them. | |
7842 | lt_prog_compiler_can_build_shared=no | |
7843 | enable_shared=no | |
7844 | ;; | |
7845 | ||
7846 | *nto* | *qnx*) | |
7847 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7848 | # it will coredump. | |
7849 | lt_prog_compiler_pic='-fPIC -shared' | |
7850 | ;; | |
7851 | ||
7852 | sysv4*MP*) | |
7853 | if test -d /usr/nec; then | |
7854 | lt_prog_compiler_pic=-Kconform_pic | |
7855 | fi | |
7856 | ;; | |
7857 | ||
7858 | *) | |
7859 | lt_prog_compiler_pic='-fPIC' | |
7860 | ;; | |
7861 | esac | |
43e02a8a RW |
7862 | |
7863 | case $cc_basename in | |
7864 | nvcc*) # Cuda Compiler Driver 2.2 | |
7865 | lt_prog_compiler_wl='-Xlinker ' | |
7866 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
7867 | ;; | |
7868 | esac | |
1cf3d07d SE |
7869 | else |
7870 | # PORTME Check for flag to pass linker flags through the system compiler. | |
7871 | case $host_os in | |
7872 | aix*) | |
7873 | lt_prog_compiler_wl='-Wl,' | |
7874 | if test "$host_cpu" = ia64; then | |
7875 | # AIX 5 now supports IA64 processor | |
7876 | lt_prog_compiler_static='-Bstatic' | |
7877 | else | |
7878 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
7879 | fi | |
7880 | ;; | |
1cf3d07d | 7881 | |
18d98188 | 7882 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
7883 | # This hack is so that the source file can tell whether it is being |
7884 | # built for inclusion in a dll (and should export symbols for example). | |
7885 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
7886 | ;; | |
7887 | ||
7888 | hpux9* | hpux10* | hpux11*) | |
7889 | lt_prog_compiler_wl='-Wl,' | |
7890 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7891 | # not for PA HP-UX. | |
7892 | case $host_cpu in | |
7893 | hppa*64*|ia64*) | |
7894 | # +Z the default | |
7895 | ;; | |
7896 | *) | |
7897 | lt_prog_compiler_pic='+Z' | |
7898 | ;; | |
7899 | esac | |
7900 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
7901 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
7902 | ;; | |
7903 | ||
7904 | irix5* | irix6* | nonstopux*) | |
7905 | lt_prog_compiler_wl='-Wl,' | |
7906 | # PIC (with -KPIC) is the default. | |
7907 | lt_prog_compiler_static='-non_shared' | |
7908 | ;; | |
7909 | ||
7a9d3fe8 | 7910 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d | 7911 | case $cc_basename in |
18d98188 PG |
7912 | # old Intel for x86_64 which still supported -KPIC. |
7913 | ecc*) | |
1cf3d07d SE |
7914 | lt_prog_compiler_wl='-Wl,' |
7915 | lt_prog_compiler_pic='-KPIC' | |
7916 | lt_prog_compiler_static='-static' | |
7917 | ;; | |
18d98188 PG |
7918 | # icc used to be incompatible with GCC. |
7919 | # ICC 10 doesn't accept -KPIC any more. | |
7920 | icc* | ifort*) | |
7921 | lt_prog_compiler_wl='-Wl,' | |
7922 | lt_prog_compiler_pic='-fPIC' | |
7923 | lt_prog_compiler_static='-static' | |
7924 | ;; | |
7925 | # Lahey Fortran 8.1. | |
7926 | lf95*) | |
7927 | lt_prog_compiler_wl='-Wl,' | |
7928 | lt_prog_compiler_pic='--shared' | |
7929 | lt_prog_compiler_static='--static' | |
7930 | ;; | |
43e02a8a | 7931 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
1cf3d07d SE |
7932 | # Portland Group compilers (*not* the Pentium gcc compiler, |
7933 | # which looks to be a dead project) | |
7934 | lt_prog_compiler_wl='-Wl,' | |
7935 | lt_prog_compiler_pic='-fpic' | |
7936 | lt_prog_compiler_static='-Bstatic' | |
7937 | ;; | |
7938 | ccc*) | |
7939 | lt_prog_compiler_wl='-Wl,' | |
7940 | # All Alpha code is PIC. | |
7941 | lt_prog_compiler_static='-non_shared' | |
7942 | ;; | |
43e02a8a RW |
7943 | xl* | bgxl* | bgf* | mpixl*) |
7944 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
18d98188 PG |
7945 | lt_prog_compiler_wl='-Wl,' |
7946 | lt_prog_compiler_pic='-qpic' | |
7947 | lt_prog_compiler_static='-qstaticlink' | |
7948 | ;; | |
1cf3d07d SE |
7949 | *) |
7950 | case `$CC -V 2>&1 | sed 5q` in | |
43e02a8a RW |
7951 | *Sun\ F* | *Sun*Fortran*) |
7952 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
1cf3d07d SE |
7953 | lt_prog_compiler_pic='-KPIC' |
7954 | lt_prog_compiler_static='-Bstatic' | |
43e02a8a | 7955 | lt_prog_compiler_wl='' |
1cf3d07d | 7956 | ;; |
43e02a8a RW |
7957 | *Sun\ C*) |
7958 | # Sun C 5.9 | |
1cf3d07d SE |
7959 | lt_prog_compiler_pic='-KPIC' |
7960 | lt_prog_compiler_static='-Bstatic' | |
43e02a8a | 7961 | lt_prog_compiler_wl='-Wl,' |
1cf3d07d SE |
7962 | ;; |
7963 | esac | |
7964 | ;; | |
7965 | esac | |
7966 | ;; | |
7967 | ||
7968 | newsos6) | |
7969 | lt_prog_compiler_pic='-KPIC' | |
7970 | lt_prog_compiler_static='-Bstatic' | |
7971 | ;; | |
7972 | ||
7973 | *nto* | *qnx*) | |
7974 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7975 | # it will coredump. | |
7976 | lt_prog_compiler_pic='-fPIC -shared' | |
7977 | ;; | |
7978 | ||
7979 | osf3* | osf4* | osf5*) | |
7980 | lt_prog_compiler_wl='-Wl,' | |
7981 | # All OSF/1 code is PIC. | |
7982 | lt_prog_compiler_static='-non_shared' | |
7983 | ;; | |
7984 | ||
7985 | rdos*) | |
7986 | lt_prog_compiler_static='-non_shared' | |
7987 | ;; | |
7988 | ||
7989 | solaris*) | |
7990 | lt_prog_compiler_pic='-KPIC' | |
7991 | lt_prog_compiler_static='-Bstatic' | |
7992 | case $cc_basename in | |
7993 | f77* | f90* | f95*) | |
7994 | lt_prog_compiler_wl='-Qoption ld ';; | |
7995 | *) | |
7996 | lt_prog_compiler_wl='-Wl,';; | |
7997 | esac | |
7998 | ;; | |
7999 | ||
8000 | sunos4*) | |
8001 | lt_prog_compiler_wl='-Qoption ld ' | |
8002 | lt_prog_compiler_pic='-PIC' | |
8003 | lt_prog_compiler_static='-Bstatic' | |
8004 | ;; | |
8005 | ||
8006 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8007 | lt_prog_compiler_wl='-Wl,' | |
8008 | lt_prog_compiler_pic='-KPIC' | |
8009 | lt_prog_compiler_static='-Bstatic' | |
8010 | ;; | |
8011 | ||
8012 | sysv4*MP*) | |
8013 | if test -d /usr/nec ;then | |
8014 | lt_prog_compiler_pic='-Kconform_pic' | |
8015 | lt_prog_compiler_static='-Bstatic' | |
8016 | fi | |
8017 | ;; | |
8018 | ||
8019 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8020 | lt_prog_compiler_wl='-Wl,' | |
8021 | lt_prog_compiler_pic='-KPIC' | |
8022 | lt_prog_compiler_static='-Bstatic' | |
8023 | ;; | |
8024 | ||
8025 | unicos*) | |
8026 | lt_prog_compiler_wl='-Wl,' | |
8027 | lt_prog_compiler_can_build_shared=no | |
8028 | ;; | |
8029 | ||
8030 | uts4*) | |
8031 | lt_prog_compiler_pic='-pic' | |
8032 | lt_prog_compiler_static='-Bstatic' | |
8033 | ;; | |
8034 | ||
8035 | *) | |
8036 | lt_prog_compiler_can_build_shared=no | |
8037 | ;; | |
8038 | esac | |
8039 | fi | |
8040 | ||
8041 | case $host_os in | |
8042 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8043 | *djgpp*) | |
8044 | lt_prog_compiler_pic= | |
8045 | ;; | |
8046 | *) | |
8047 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8048 | ;; | |
8049 | esac | |
5213506e RW |
8050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
8051 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
1cf3d07d SE |
8052 | |
8053 | ||
8054 | ||
8055 | ||
8056 | ||
8057 | ||
8058 | # | |
8059 | # Check to make sure the PIC flag actually works. | |
8060 | # | |
8061 | if test -n "$lt_prog_compiler_pic"; then | |
5213506e RW |
8062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8063 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
22e05272 | 8064 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
5213506e | 8065 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 8066 | else |
18d98188 | 8067 | lt_cv_prog_compiler_pic_works=no |
1cf3d07d SE |
8068 | ac_outfile=conftest.$ac_objext |
8069 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8070 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8071 | # Insert the option either (1) after the last *FLAGS variable, or | |
8072 | # (2) before a word containing "conftest.", or (3) at the end. | |
8073 | # Note that $ac_compile itself does not contain backslashes and begins | |
8074 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8075 | # The option is referenced via a variable to avoid confusing sed. | |
8076 | lt_compile=`echo "$ac_compile" | $SED \ | |
8077 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8078 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8079 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 8080 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
8081 | (eval "$lt_compile" 2>conftest.err) |
8082 | ac_status=$? | |
8083 | cat conftest.err >&5 | |
43e02a8a | 8084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
8085 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8086 | # The compiler can only warn and ignore the option if not recognized | |
8087 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 8088 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
8089 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8090 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
18d98188 | 8091 | lt_cv_prog_compiler_pic_works=yes |
1cf3d07d SE |
8092 | fi |
8093 | fi | |
8094 | $RM conftest* | |
8095 | ||
8096 | fi | |
5213506e RW |
8097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8098 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
1cf3d07d | 8099 | |
18d98188 | 8100 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
1cf3d07d SE |
8101 | case $lt_prog_compiler_pic in |
8102 | "" | " "*) ;; | |
8103 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8104 | esac | |
8105 | else | |
8106 | lt_prog_compiler_pic= | |
8107 | lt_prog_compiler_can_build_shared=no | |
8108 | fi | |
8109 | ||
8110 | fi | |
8111 | ||
8112 | ||
8113 | ||
8114 | ||
8115 | ||
8116 | ||
8117 | # | |
8118 | # Check to make sure the static flag actually works. | |
8119 | # | |
8120 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
5213506e RW |
8121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8122 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
22e05272 | 8123 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
5213506e | 8124 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 8125 | else |
18d98188 | 8126 | lt_cv_prog_compiler_static_works=no |
1cf3d07d SE |
8127 | save_LDFLAGS="$LDFLAGS" |
8128 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8129 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8130 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8131 | # The linker can only warn and ignore the option if not recognized | |
8132 | # So say no if there are warnings | |
8133 | if test -s conftest.err; then | |
8134 | # Append any errors to the config.log. | |
8135 | cat conftest.err 1>&5 | |
43e02a8a | 8136 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
1cf3d07d SE |
8137 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8138 | if diff conftest.exp conftest.er2 >/dev/null; then | |
18d98188 | 8139 | lt_cv_prog_compiler_static_works=yes |
1cf3d07d SE |
8140 | fi |
8141 | else | |
18d98188 | 8142 | lt_cv_prog_compiler_static_works=yes |
1cf3d07d SE |
8143 | fi |
8144 | fi | |
18d98188 | 8145 | $RM -r conftest* |
1cf3d07d SE |
8146 | LDFLAGS="$save_LDFLAGS" |
8147 | ||
8148 | fi | |
5213506e RW |
8149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8150 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
1cf3d07d | 8151 | |
18d98188 | 8152 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
1cf3d07d SE |
8153 | : |
8154 | else | |
8155 | lt_prog_compiler_static= | |
8156 | fi | |
8157 | ||
8158 | ||
8159 | ||
8160 | ||
8161 | ||
8162 | ||
8163 | ||
5213506e RW |
8164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8165 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 8166 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
5213506e | 8167 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
8168 | else |
8169 | lt_cv_prog_compiler_c_o=no | |
8170 | $RM -r conftest 2>/dev/null | |
8171 | mkdir conftest | |
8172 | cd conftest | |
8173 | mkdir out | |
8174 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8175 | ||
8176 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8177 | # Insert the option either (1) after the last *FLAGS variable, or | |
8178 | # (2) before a word containing "conftest.", or (3) at the end. | |
8179 | # Note that $ac_compile itself does not contain backslashes and begins | |
8180 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8181 | lt_compile=`echo "$ac_compile" | $SED \ | |
8182 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8183 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8184 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 8185 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
8186 | (eval "$lt_compile" 2>out/conftest.err) |
8187 | ac_status=$? | |
8188 | cat out/conftest.err >&5 | |
43e02a8a | 8189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
8190 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8191 | then | |
8192 | # The compiler can only warn and ignore the option if not recognized | |
8193 | # So say no if there are warnings | |
43e02a8a | 8194 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
8195 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8196 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8197 | lt_cv_prog_compiler_c_o=yes | |
8198 | fi | |
8199 | fi | |
8200 | chmod u+w . 2>&5 | |
8201 | $RM conftest* | |
8202 | # SGI C++ compiler will create directory out/ii_files/ for | |
8203 | # template instantiation | |
8204 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8205 | $RM out/* && rmdir out | |
8206 | cd .. | |
8207 | $RM -r conftest | |
8208 | $RM conftest* | |
8209 | ||
8210 | fi | |
5213506e RW |
8211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8212 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
1cf3d07d SE |
8213 | |
8214 | ||
8215 | ||
8216 | ||
8217 | ||
8218 | ||
5213506e RW |
8219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8220 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 8221 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
5213506e | 8222 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
8223 | else |
8224 | lt_cv_prog_compiler_c_o=no | |
8225 | $RM -r conftest 2>/dev/null | |
8226 | mkdir conftest | |
8227 | cd conftest | |
8228 | mkdir out | |
8229 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8230 | ||
8231 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8232 | # Insert the option either (1) after the last *FLAGS variable, or | |
8233 | # (2) before a word containing "conftest.", or (3) at the end. | |
8234 | # Note that $ac_compile itself does not contain backslashes and begins | |
8235 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8236 | lt_compile=`echo "$ac_compile" | $SED \ | |
8237 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8238 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8239 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 8240 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
8241 | (eval "$lt_compile" 2>out/conftest.err) |
8242 | ac_status=$? | |
8243 | cat out/conftest.err >&5 | |
43e02a8a | 8244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
8245 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8246 | then | |
8247 | # The compiler can only warn and ignore the option if not recognized | |
8248 | # So say no if there are warnings | |
43e02a8a | 8249 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
8250 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8251 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8252 | lt_cv_prog_compiler_c_o=yes | |
8253 | fi | |
8254 | fi | |
8255 | chmod u+w . 2>&5 | |
8256 | $RM conftest* | |
8257 | # SGI C++ compiler will create directory out/ii_files/ for | |
8258 | # template instantiation | |
8259 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8260 | $RM out/* && rmdir out | |
8261 | cd .. | |
8262 | $RM -r conftest | |
8263 | $RM conftest* | |
8264 | ||
8265 | fi | |
5213506e RW |
8266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8267 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
1cf3d07d SE |
8268 | |
8269 | ||
8270 | ||
8271 | ||
8272 | hard_links="nottested" | |
8273 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8274 | # do not overwrite the value of need_locks provided by the user | |
5213506e RW |
8275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8276 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
1cf3d07d SE |
8277 | hard_links=yes |
8278 | $RM conftest* | |
8279 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8280 | touch conftest.a | |
8281 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8282 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
5213506e RW |
8283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8284 | $as_echo "$hard_links" >&6; } | |
1cf3d07d | 8285 | if test "$hard_links" = no; then |
5213506e RW |
8286 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
8287 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
1cf3d07d SE |
8288 | need_locks=warn |
8289 | fi | |
8290 | else | |
8291 | need_locks=no | |
8292 | fi | |
8293 | ||
8294 | ||
8295 | ||
8296 | ||
8297 | ||
8298 | ||
5213506e RW |
8299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8300 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
1cf3d07d SE |
8301 | |
8302 | runpath_var= | |
8303 | allow_undefined_flag= | |
8304 | always_export_symbols=no | |
8305 | archive_cmds= | |
8306 | archive_expsym_cmds= | |
8307 | compiler_needs_object=no | |
8308 | enable_shared_with_static_runtimes=no | |
8309 | export_dynamic_flag_spec= | |
8310 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8311 | hardcode_automatic=no | |
8312 | hardcode_direct=no | |
8313 | hardcode_direct_absolute=no | |
8314 | hardcode_libdir_flag_spec= | |
8315 | hardcode_libdir_flag_spec_ld= | |
8316 | hardcode_libdir_separator= | |
8317 | hardcode_minus_L=no | |
8318 | hardcode_shlibpath_var=unsupported | |
8319 | inherit_rpath=no | |
8320 | link_all_deplibs=unknown | |
8321 | module_cmds= | |
8322 | module_expsym_cmds= | |
8323 | old_archive_from_new_cmds= | |
8324 | old_archive_from_expsyms_cmds= | |
8325 | thread_safe_flag_spec= | |
8326 | whole_archive_flag_spec= | |
8327 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8328 | # included in the symbol list | |
8329 | include_expsyms= | |
8330 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8331 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8332 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8333 | # as well as any symbol that contains `d'. | |
18d98188 | 8334 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
1cf3d07d SE |
8335 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
8336 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8337 | # the symbol is explicitly referenced. Since portable code cannot | |
8338 | # rely on this symbol name, it's probably fine to never include it in | |
8339 | # preloaded symbol tables. | |
18d98188 | 8340 | # Exclude shared library initialization/finalization symbols. |
1cf3d07d SE |
8341 | extract_expsyms_cmds= |
8342 | ||
8343 | case $host_os in | |
18d98188 | 8344 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
8345 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
8346 | # When not using gcc, we currently assume that we are using | |
8347 | # Microsoft Visual C++. | |
8348 | if test "$GCC" != yes; then | |
8349 | with_gnu_ld=no | |
8350 | fi | |
8351 | ;; | |
8352 | interix*) | |
8353 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8354 | with_gnu_ld=yes | |
8355 | ;; | |
8356 | openbsd*) | |
8357 | with_gnu_ld=no | |
8358 | ;; | |
8359 | esac | |
8360 | ||
8361 | ld_shlibs=yes | |
43e02a8a RW |
8362 | |
8363 | # On some targets, GNU ld is compatible enough with the native linker | |
8364 | # that we're better off using the native interface for both. | |
8365 | lt_use_gnu_ld_interface=no | |
1cf3d07d | 8366 | if test "$with_gnu_ld" = yes; then |
43e02a8a RW |
8367 | case $host_os in |
8368 | aix*) | |
8369 | # The AIX port of GNU ld has always aspired to compatibility | |
8370 | # with the native linker. However, as the warning in the GNU ld | |
8371 | # block says, versions before 2.19.5* couldn't really create working | |
8372 | # shared libraries, regardless of the interface used. | |
8373 | case `$LD -v 2>&1` in | |
8374 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
8375 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
8376 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
8377 | *) | |
8378 | lt_use_gnu_ld_interface=yes | |
8379 | ;; | |
8380 | esac | |
8381 | ;; | |
8382 | *) | |
8383 | lt_use_gnu_ld_interface=yes | |
8384 | ;; | |
8385 | esac | |
8386 | fi | |
8387 | ||
8388 | if test "$lt_use_gnu_ld_interface" = yes; then | |
1cf3d07d SE |
8389 | # If archive_cmds runs LD, not CC, wlarc should be empty |
8390 | wlarc='${wl}' | |
8391 | ||
8392 | # Set some defaults for GNU ld with shared library support. These | |
8393 | # are reset later if shared libraries are not supported. Putting them | |
8394 | # here allows them to be overridden if necessary. | |
8395 | runpath_var=LD_RUN_PATH | |
8396 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8397 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8398 | # ancient GNU ld didn't support --whole-archive et. al. | |
8399 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8400 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8401 | else | |
8402 | whole_archive_flag_spec= | |
8403 | fi | |
8404 | supports_anon_versioning=no | |
8405 | case `$LD -v 2>&1` in | |
43e02a8a | 8406 | *GNU\ gold*) supports_anon_versioning=yes ;; |
1cf3d07d SE |
8407 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
8408 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8409 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8410 | *\ 2.11.*) ;; # other 2.11 versions | |
8411 | *) supports_anon_versioning=yes ;; | |
8412 | esac | |
8413 | ||
8414 | # See if GNU ld supports shared libraries. | |
8415 | case $host_os in | |
3e7b7e2b | 8416 | aix[3-9]*) |
1cf3d07d SE |
8417 | # On AIX/PPC, the GNU linker is very broken |
8418 | if test "$host_cpu" != ia64; then | |
8419 | ld_shlibs=no | |
8420 | cat <<_LT_EOF 1>&2 | |
8421 | ||
43e02a8a | 8422 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
1cf3d07d SE |
8423 | *** to be unable to reliably create shared libraries on AIX. |
8424 | *** Therefore, libtool is disabling shared libraries support. If you | |
43e02a8a RW |
8425 | *** really care for shared libraries, you may want to install binutils |
8426 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
8427 | *** You will then need to restart the configuration process. | |
1cf3d07d SE |
8428 | |
8429 | _LT_EOF | |
8430 | fi | |
8431 | ;; | |
8432 | ||
8433 | amigaos*) | |
18d98188 PG |
8434 | case $host_cpu in |
8435 | powerpc) | |
8436 | # see comment about AmigaOS4 .so support | |
8437 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8438 | archive_expsym_cmds='' | |
8439 | ;; | |
8440 | m68k) | |
8441 | 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)' | |
8442 | hardcode_libdir_flag_spec='-L$libdir' | |
8443 | hardcode_minus_L=yes | |
8444 | ;; | |
8445 | esac | |
1cf3d07d SE |
8446 | ;; |
8447 | ||
8448 | beos*) | |
8449 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8450 | allow_undefined_flag=unsupported | |
8451 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8452 | # support --undefined. This deserves some investigation. FIXME | |
8453 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8454 | else | |
8455 | ld_shlibs=no | |
8456 | fi | |
8457 | ;; | |
8458 | ||
18d98188 | 8459 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
8460 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
8461 | # as there is no search path for DLLs. | |
8462 | hardcode_libdir_flag_spec='-L$libdir' | |
43e02a8a | 8463 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
1cf3d07d SE |
8464 | allow_undefined_flag=unsupported |
8465 | always_export_symbols=no | |
8466 | enable_shared_with_static_runtimes=yes | |
8467 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
8468 | ||
8469 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
8470 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8471 | # If the export-symbols file already is a .def file (1st line | |
8472 | # is EXPORTS), use it as is; otherwise, prepend... | |
8473 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8474 | cp $export_symbols $output_objdir/$soname.def; | |
8475 | else | |
8476 | echo EXPORTS > $output_objdir/$soname.def; | |
8477 | cat $export_symbols >> $output_objdir/$soname.def; | |
8478 | fi~ | |
8479 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8480 | else | |
8481 | ld_shlibs=no | |
8482 | fi | |
8483 | ;; | |
8484 | ||
43e02a8a RW |
8485 | haiku*) |
8486 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8487 | link_all_deplibs=yes | |
8488 | ;; | |
8489 | ||
1cf3d07d SE |
8490 | interix[3-9]*) |
8491 | hardcode_direct=no | |
8492 | hardcode_shlibpath_var=no | |
8493 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8494 | export_dynamic_flag_spec='${wl}-E' | |
8495 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8496 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8497 | # default) and relocated if they conflict, which is a slow very memory | |
8498 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8499 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8500 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8501 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8502 | 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' | |
8503 | ;; | |
8504 | ||
e9085da5 | 8505 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
1cf3d07d SE |
8506 | tmp_diet=no |
8507 | if test "$host_os" = linux-dietlibc; then | |
8508 | case $cc_basename in | |
8509 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8510 | esac | |
8511 | fi | |
8512 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8513 | && test "$tmp_diet" = no | |
8514 | then | |
a699d672 | 8515 | tmp_addflag=' $pic_flag' |
18d98188 | 8516 | tmp_sharedflag='-shared' |
1cf3d07d SE |
8517 | case $cc_basename,$host_cpu in |
8518 | pgcc*) # Portland Group C compiler | |
43e02a8a | 8519 | 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' |
1cf3d07d SE |
8520 | tmp_addflag=' $pic_flag' |
8521 | ;; | |
43e02a8a RW |
8522 | pgf77* | pgf90* | pgf95* | pgfortran*) |
8523 | # Portland Group f77 and f90 compilers | |
8524 | 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' | |
1cf3d07d SE |
8525 | tmp_addflag=' $pic_flag -Mnomain' ;; |
8526 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8527 | tmp_addflag=' -i_dynamic' ;; | |
8528 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8529 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8530 | ifc* | ifort*) # Intel Fortran compiler | |
8531 | tmp_addflag=' -nofor_main' ;; | |
18d98188 PG |
8532 | lf95*) # Lahey Fortran 8.1 |
8533 | whole_archive_flag_spec= | |
8534 | tmp_sharedflag='--shared' ;; | |
43e02a8a | 8535 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
18d98188 PG |
8536 | tmp_sharedflag='-qmkshrobj' |
8537 | tmp_addflag= ;; | |
43e02a8a RW |
8538 | nvcc*) # Cuda Compiler Driver 2.2 |
8539 | 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' | |
8540 | compiler_needs_object=yes | |
8541 | ;; | |
1cf3d07d SE |
8542 | esac |
8543 | case `$CC -V 2>&1 | sed 5q` in | |
8544 | *Sun\ C*) # Sun C 5.9 | |
43e02a8a | 8545 | 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' |
1cf3d07d SE |
8546 | compiler_needs_object=yes |
8547 | tmp_sharedflag='-G' ;; | |
8548 | *Sun\ F*) # Sun Fortran 8.3 | |
8549 | tmp_sharedflag='-G' ;; | |
1cf3d07d SE |
8550 | esac |
8551 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8552 | ||
8553 | if test "x$supports_anon_versioning" = xyes; then | |
8554 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8555 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8556 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8557 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8558 | fi | |
18d98188 PG |
8559 | |
8560 | case $cc_basename in | |
43e02a8a | 8561 | xlf* | bgf* | bgxlf* | mpixlf*) |
18d98188 PG |
8562 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
8563 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8564 | hardcode_libdir_flag_spec= | |
8565 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8566 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
8567 | if test "x$supports_anon_versioning" = xyes; then | |
8568 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8569 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8570 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8571 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8572 | fi | |
8573 | ;; | |
8574 | esac | |
1cf3d07d SE |
8575 | else |
8576 | ld_shlibs=no | |
8577 | fi | |
8578 | ;; | |
8579 | ||
8580 | netbsd*) | |
8581 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8582 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8583 | wlarc= | |
8584 | else | |
8585 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8586 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8587 | fi | |
8588 | ;; | |
8589 | ||
8590 | solaris*) | |
8591 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8592 | ld_shlibs=no | |
8593 | cat <<_LT_EOF 1>&2 | |
8594 | ||
8595 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
8596 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8597 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8598 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8599 | *** your PATH or compiler configuration so that the native linker is | |
8600 | *** used, and then restart. | |
8601 | ||
8602 | _LT_EOF | |
8603 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8604 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8605 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8606 | else | |
8607 | ld_shlibs=no | |
8608 | fi | |
8609 | ;; | |
8610 | ||
8611 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
8612 | case `$LD -v 2>&1` in | |
8613 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8614 | ld_shlibs=no | |
8615 | cat <<_LT_EOF 1>&2 | |
8616 | ||
8617 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
8618 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8619 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8620 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8621 | *** your PATH or compiler configuration so that the native linker is | |
8622 | *** used, and then restart. | |
8623 | ||
8624 | _LT_EOF | |
8625 | ;; | |
8626 | *) | |
8627 | # For security reasons, it is highly recommended that you always | |
8628 | # use absolute paths for naming shared libraries, and exclude the | |
8629 | # DT_RUNPATH tag from executables and libraries. But doing so | |
8630 | # requires that you compile everything twice, which is a pain. | |
8631 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8632 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8633 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8634 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8635 | else | |
8636 | ld_shlibs=no | |
8637 | fi | |
8638 | ;; | |
8639 | esac | |
8640 | ;; | |
8641 | ||
8642 | sunos4*) | |
8643 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8644 | wlarc= | |
8645 | hardcode_direct=yes | |
8646 | hardcode_shlibpath_var=no | |
8647 | ;; | |
8648 | ||
8649 | *) | |
8650 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8651 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8652 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8653 | else | |
8654 | ld_shlibs=no | |
8655 | fi | |
8656 | ;; | |
8657 | esac | |
8658 | ||
8659 | if test "$ld_shlibs" = no; then | |
8660 | runpath_var= | |
8661 | hardcode_libdir_flag_spec= | |
8662 | export_dynamic_flag_spec= | |
8663 | whole_archive_flag_spec= | |
8664 | fi | |
8665 | else | |
8666 | # PORTME fill in a description of your system's linker (not GNU ld) | |
8667 | case $host_os in | |
8668 | aix3*) | |
8669 | allow_undefined_flag=unsupported | |
8670 | always_export_symbols=yes | |
8671 | 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' | |
8672 | # Note: this linker hardcodes the directories in LIBPATH if there | |
8673 | # are no directories specified by -L. | |
8674 | hardcode_minus_L=yes | |
8675 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
8676 | # Neither direct hardcoding nor static linking is supported with a | |
8677 | # broken collect2. | |
8678 | hardcode_direct=unsupported | |
8679 | fi | |
8680 | ;; | |
8681 | ||
3e7b7e2b | 8682 | aix[4-9]*) |
1cf3d07d SE |
8683 | if test "$host_cpu" = ia64; then |
8684 | # On IA64, the linker does run time linking by default, so we don't | |
8685 | # have to do anything special. | |
8686 | aix_use_runtimelinking=no | |
8687 | exp_sym_flag='-Bexport' | |
8688 | no_entry_flag="" | |
8689 | else | |
8690 | # If we're using GNU nm, then we don't want the "-C" option. | |
8691 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
43e02a8a RW |
8692 | # Also, AIX nm treats weak defined symbols like other global |
8693 | # defined symbols, whereas GNU nm marks them as "W". | |
1cf3d07d | 8694 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
43e02a8a | 8695 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
1cf3d07d | 8696 | else |
84c1b9d3 | 8697 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
1cf3d07d SE |
8698 | fi |
8699 | aix_use_runtimelinking=no | |
8700 | ||
8701 | # Test if we are trying to use run time linking or normal | |
8702 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
8703 | # need to do runtime linking. | |
3e7b7e2b | 8704 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
1cf3d07d SE |
8705 | for ld_flag in $LDFLAGS; do |
8706 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
8707 | aix_use_runtimelinking=yes | |
8708 | break | |
8709 | fi | |
8710 | done | |
8711 | ;; | |
8712 | esac | |
8713 | ||
8714 | exp_sym_flag='-bexport' | |
8715 | no_entry_flag='-bnoentry' | |
8716 | fi | |
8717 | ||
8718 | # When large executables or shared objects are built, AIX ld can | |
8719 | # have problems creating the table of contents. If linking a library | |
8720 | # or program results in "error TOC overflow" add -mminimal-toc to | |
8721 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8722 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
8723 | ||
8724 | archive_cmds='' | |
8725 | hardcode_direct=yes | |
8726 | hardcode_direct_absolute=yes | |
8727 | hardcode_libdir_separator=':' | |
8728 | link_all_deplibs=yes | |
8729 | file_list_spec='${wl}-f,' | |
8730 | ||
8731 | if test "$GCC" = yes; then | |
8732 | case $host_os in aix4.[012]|aix4.[012].*) | |
8733 | # We only want to do this on AIX 4.2 and lower, the check | |
8734 | # below for broken collect2 doesn't work under 4.3+ | |
8735 | collect2name=`${CC} -print-prog-name=collect2` | |
8736 | if test -f "$collect2name" && | |
8737 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
8738 | then | |
8739 | # We have reworked collect2 | |
8740 | : | |
8741 | else | |
8742 | # We have old collect2 | |
8743 | hardcode_direct=unsupported | |
8744 | # It fails to find uninstalled libraries when the uninstalled | |
8745 | # path is not listed in the libpath. Setting hardcode_minus_L | |
8746 | # to unsupported forces relinking | |
8747 | hardcode_minus_L=yes | |
8748 | hardcode_libdir_flag_spec='-L$libdir' | |
8749 | hardcode_libdir_separator= | |
8750 | fi | |
8751 | ;; | |
8752 | esac | |
8753 | shared_flag='-shared' | |
8754 | if test "$aix_use_runtimelinking" = yes; then | |
8755 | shared_flag="$shared_flag "'${wl}-G' | |
8756 | fi | |
8757 | else | |
8758 | # not using gcc | |
8759 | if test "$host_cpu" = ia64; then | |
8760 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
8761 | # chokes on -Wl,-G. The following line is correct: | |
8762 | shared_flag='-G' | |
8763 | else | |
8764 | if test "$aix_use_runtimelinking" = yes; then | |
8765 | shared_flag='${wl}-G' | |
8766 | else | |
8767 | shared_flag='${wl}-bM:SRE' | |
8768 | fi | |
8769 | fi | |
8770 | fi | |
8771 | ||
18d98188 | 8772 | export_dynamic_flag_spec='${wl}-bexpall' |
1cf3d07d SE |
8773 | # It seems that -bexpall does not export symbols beginning with |
8774 | # underscore (_), so it is better to generate a list of symbols to export. | |
8775 | always_export_symbols=yes | |
8776 | if test "$aix_use_runtimelinking" = yes; then | |
8777 | # Warning - without using the other runtime loading flags (-brtl), | |
8778 | # -berok will link without error, but may produce a broken library. | |
8779 | allow_undefined_flag='-berok' | |
8780 | # Determine the default libpath from the value encoded in an | |
8781 | # empty executable. | |
8782 | if test x$gcc_no_link = xyes; then | |
22e05272 | 8783 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 8784 | fi |
5213506e | 8785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
8786 | /* end confdefs.h. */ |
8787 | ||
8788 | int | |
8789 | main () | |
8790 | { | |
8791 | ||
8792 | ; | |
8793 | return 0; | |
8794 | } | |
8795 | _ACEOF | |
5213506e | 8796 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
8797 | |
8798 | lt_aix_libpath_sed=' | |
8799 | /Import File Strings/,/^$/ { | |
8800 | /^0/ { | |
8801 | s/^0 *\(.*\)$/\1/ | |
8802 | p | |
8803 | } | |
8804 | }' | |
8805 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8806 | # Check for a 64-bit object if we didn't find anything. | |
8807 | if test -z "$aix_libpath"; then | |
8808 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8809 | fi | |
1cf3d07d | 8810 | fi |
5213506e RW |
8811 | rm -f core conftest.err conftest.$ac_objext \ |
8812 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
8813 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8814 | ||
8815 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
43e02a8a | 8816 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
1cf3d07d SE |
8817 | else |
8818 | if test "$host_cpu" = ia64; then | |
8819 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
8820 | allow_undefined_flag="-z nodefs" | |
8821 | 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" | |
8822 | else | |
8823 | # Determine the default libpath from the value encoded in an | |
8824 | # empty executable. | |
8825 | if test x$gcc_no_link = xyes; then | |
22e05272 | 8826 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 8827 | fi |
5213506e | 8828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
8829 | /* end confdefs.h. */ |
8830 | ||
8831 | int | |
8832 | main () | |
8833 | { | |
8834 | ||
8835 | ; | |
8836 | return 0; | |
8837 | } | |
8838 | _ACEOF | |
5213506e | 8839 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
8840 | |
8841 | lt_aix_libpath_sed=' | |
8842 | /Import File Strings/,/^$/ { | |
8843 | /^0/ { | |
8844 | s/^0 *\(.*\)$/\1/ | |
8845 | p | |
8846 | } | |
8847 | }' | |
8848 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8849 | # Check for a 64-bit object if we didn't find anything. | |
8850 | if test -z "$aix_libpath"; then | |
8851 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8852 | fi | |
1cf3d07d | 8853 | fi |
5213506e RW |
8854 | rm -f core conftest.err conftest.$ac_objext \ |
8855 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
8856 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8857 | ||
8858 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
8859 | # Warning - without using the other run time loading flags, | |
8860 | # -berok will link without error, but may produce a broken library. | |
8861 | no_undefined_flag=' ${wl}-bernotok' | |
8862 | allow_undefined_flag=' ${wl}-berok' | |
43e02a8a RW |
8863 | if test "$with_gnu_ld" = yes; then |
8864 | # We only use this code for GNU lds that support --whole-archive. | |
8865 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
8866 | else | |
8867 | # Exported symbols can be pulled into shared objects from archives | |
8868 | whole_archive_flag_spec='$convenience' | |
8869 | fi | |
1cf3d07d SE |
8870 | archive_cmds_need_lc=yes |
8871 | # This is similar to how AIX traditionally builds its shared libraries. | |
8872 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
8873 | fi | |
8874 | fi | |
8875 | ;; | |
8876 | ||
8877 | amigaos*) | |
18d98188 PG |
8878 | case $host_cpu in |
8879 | powerpc) | |
8880 | # see comment about AmigaOS4 .so support | |
8881 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8882 | archive_expsym_cmds='' | |
8883 | ;; | |
8884 | m68k) | |
8885 | 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)' | |
8886 | hardcode_libdir_flag_spec='-L$libdir' | |
8887 | hardcode_minus_L=yes | |
8888 | ;; | |
8889 | esac | |
1cf3d07d SE |
8890 | ;; |
8891 | ||
8892 | bsdi[45]*) | |
8893 | export_dynamic_flag_spec=-rdynamic | |
8894 | ;; | |
8895 | ||
18d98188 | 8896 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
8897 | # When not using gcc, we currently assume that we are using |
8898 | # Microsoft Visual C++. | |
8899 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
8900 | # no search path for DLLs. | |
8901 | hardcode_libdir_flag_spec=' ' | |
8902 | allow_undefined_flag=unsupported | |
8903 | # Tell ltmain to make .lib files, not .a files. | |
8904 | libext=lib | |
8905 | # Tell ltmain to make .dll files, not .so files. | |
8906 | shrext_cmds=".dll" | |
8907 | # FIXME: Setting linknames here is a bad hack. | |
43e02a8a | 8908 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
1cf3d07d SE |
8909 | # The linker will automatically build a .lib file if we build a DLL. |
8910 | old_archive_from_new_cmds='true' | |
8911 | # FIXME: Should let the user specify the lib program. | |
8912 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
8913 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
8914 | enable_shared_with_static_runtimes=yes | |
8915 | ;; | |
8916 | ||
8917 | darwin* | rhapsody*) | |
1cf3d07d | 8918 | |
18d98188 PG |
8919 | |
8920 | archive_cmds_need_lc=no | |
8921 | hardcode_direct=no | |
8922 | hardcode_automatic=yes | |
8923 | hardcode_shlibpath_var=unsupported | |
43e02a8a RW |
8924 | if test "$lt_cv_ld_force_load" = "yes"; then |
8925 | 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\"`' | |
8926 | else | |
8927 | whole_archive_flag_spec='' | |
8928 | fi | |
18d98188 PG |
8929 | link_all_deplibs=yes |
8930 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
8931 | case $cc_basename in | |
8932 | ifort*) _lt_dar_can_shared=yes ;; | |
8933 | *) _lt_dar_can_shared=$GCC ;; | |
8934 | esac | |
8935 | if test "$_lt_dar_can_shared" = "yes"; then | |
43e02a8a | 8936 | output_verbose_link_cmd=func_echo_all |
18d98188 PG |
8937 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
8938 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
8939 | 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}" | |
8940 | 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}" | |
8941 | ||
8942 | else | |
8943 | ld_shlibs=no | |
8944 | fi | |
8945 | ||
1cf3d07d SE |
8946 | ;; |
8947 | ||
8948 | dgux*) | |
8949 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8950 | hardcode_libdir_flag_spec='-L$libdir' | |
8951 | hardcode_shlibpath_var=no | |
8952 | ;; | |
8953 | ||
1cf3d07d SE |
8954 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
8955 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
8956 | # does not break anything, and helps significantly (at the cost of a little | |
8957 | # extra space). | |
8958 | freebsd2.2*) | |
8959 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
8960 | hardcode_libdir_flag_spec='-R$libdir' | |
8961 | hardcode_direct=yes | |
8962 | hardcode_shlibpath_var=no | |
8963 | ;; | |
8964 | ||
8965 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
c6084f68 | 8966 | freebsd2.*) |
1cf3d07d SE |
8967 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8968 | hardcode_direct=yes | |
8969 | hardcode_minus_L=yes | |
8970 | hardcode_shlibpath_var=no | |
8971 | ;; | |
8972 | ||
8973 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
8974 | freebsd* | dragonfly*) | |
8975 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
8976 | hardcode_libdir_flag_spec='-R$libdir' | |
8977 | hardcode_direct=yes | |
8978 | hardcode_shlibpath_var=no | |
8979 | ;; | |
8980 | ||
8981 | hpux9*) | |
8982 | if test "$GCC" = yes; then | |
8983 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
8984 | else | |
8985 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
8986 | fi | |
8987 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8988 | hardcode_libdir_separator=: | |
8989 | hardcode_direct=yes | |
8990 | ||
8991 | # hardcode_minus_L: Not really in the search PATH, | |
8992 | # but as the default location of the library. | |
8993 | hardcode_minus_L=yes | |
8994 | export_dynamic_flag_spec='${wl}-E' | |
8995 | ;; | |
8996 | ||
8997 | hpux10*) | |
43e02a8a | 8998 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
8999 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
9000 | else | |
9001 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9002 | fi | |
9003 | if test "$with_gnu_ld" = no; then | |
9004 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9005 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9006 | hardcode_libdir_separator=: | |
9007 | hardcode_direct=yes | |
9008 | hardcode_direct_absolute=yes | |
9009 | export_dynamic_flag_spec='${wl}-E' | |
9010 | # hardcode_minus_L: Not really in the search PATH, | |
9011 | # but as the default location of the library. | |
9012 | hardcode_minus_L=yes | |
9013 | fi | |
9014 | ;; | |
9015 | ||
9016 | hpux11*) | |
43e02a8a | 9017 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
9018 | case $host_cpu in |
9019 | hppa*64*) | |
4e4ba647 | 9020 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
9021 | ;; |
9022 | ia64*) | |
18d98188 | 9023 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
9024 | ;; |
9025 | *) | |
9026 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9027 | ;; | |
9028 | esac | |
9029 | else | |
9030 | case $host_cpu in | |
9031 | hppa*64*) | |
4e4ba647 | 9032 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
9033 | ;; |
9034 | ia64*) | |
9035 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9036 | ;; | |
9037 | *) | |
43e02a8a RW |
9038 | |
9039 | # Older versions of the 11.00 compiler do not understand -b yet | |
9040 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9042 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
22e05272 | 9043 | if ${lt_cv_prog_compiler__b+:} false; then : |
43e02a8a RW |
9044 | $as_echo_n "(cached) " >&6 |
9045 | else | |
9046 | lt_cv_prog_compiler__b=no | |
9047 | save_LDFLAGS="$LDFLAGS" | |
9048 | LDFLAGS="$LDFLAGS -b" | |
9049 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9050 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9051 | # The linker can only warn and ignore the option if not recognized | |
9052 | # So say no if there are warnings | |
9053 | if test -s conftest.err; then | |
9054 | # Append any errors to the config.log. | |
9055 | cat conftest.err 1>&5 | |
9056 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9057 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9058 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9059 | lt_cv_prog_compiler__b=yes | |
9060 | fi | |
9061 | else | |
9062 | lt_cv_prog_compiler__b=yes | |
9063 | fi | |
9064 | fi | |
9065 | $RM -r conftest* | |
9066 | LDFLAGS="$save_LDFLAGS" | |
9067 | ||
9068 | fi | |
9069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9070 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9071 | ||
9072 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
9073 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9074 | else | |
9075 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9076 | fi | |
9077 | ||
1cf3d07d SE |
9078 | ;; |
9079 | esac | |
9080 | fi | |
9081 | if test "$with_gnu_ld" = no; then | |
9082 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9083 | hardcode_libdir_separator=: | |
9084 | ||
9085 | case $host_cpu in | |
9086 | hppa*64*|ia64*) | |
9087 | hardcode_direct=no | |
9088 | hardcode_shlibpath_var=no | |
9089 | ;; | |
9090 | *) | |
9091 | hardcode_direct=yes | |
9092 | hardcode_direct_absolute=yes | |
9093 | export_dynamic_flag_spec='${wl}-E' | |
9094 | ||
9095 | # hardcode_minus_L: Not really in the search PATH, | |
9096 | # but as the default location of the library. | |
9097 | hardcode_minus_L=yes | |
9098 | ;; | |
9099 | esac | |
9100 | fi | |
9101 | ;; | |
9102 | ||
9103 | irix5* | irix6* | nonstopux*) | |
9104 | if test "$GCC" = yes; then | |
43e02a8a | 9105 | archive_cmds='$CC -shared $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' |
1cf3d07d SE |
9106 | # Try to use the -exported_symbol ld option, if it does not |
9107 | # work, assume that -exports_file does not work either and | |
9108 | # implicitly export all symbols. | |
9109 | save_LDFLAGS="$LDFLAGS" | |
9110 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9111 | if test x$gcc_no_link = xyes; then | |
22e05272 | 9112 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 9113 | fi |
5213506e RW |
9114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9115 | /* end confdefs.h. */ | |
1cf3d07d SE |
9116 | int foo(void) {} |
9117 | _ACEOF | |
5213506e | 9118 | if ac_fn_c_try_link "$LINENO"; then : |
43e02a8a | 9119 | archive_expsym_cmds='$CC -shared $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' |
1cf3d07d | 9120 | |
1cf3d07d | 9121 | fi |
5213506e RW |
9122 | rm -f core conftest.err conftest.$ac_objext \ |
9123 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
9124 | LDFLAGS="$save_LDFLAGS" |
9125 | else | |
43e02a8a RW |
9126 | 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' |
9127 | 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' | |
1cf3d07d SE |
9128 | fi |
9129 | archive_cmds_need_lc='no' | |
9130 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9131 | hardcode_libdir_separator=: | |
9132 | inherit_rpath=yes | |
9133 | link_all_deplibs=yes | |
9134 | ;; | |
9135 | ||
9136 | netbsd*) | |
9137 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9138 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9139 | else | |
9140 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9141 | fi | |
9142 | hardcode_libdir_flag_spec='-R$libdir' | |
9143 | hardcode_direct=yes | |
9144 | hardcode_shlibpath_var=no | |
9145 | ;; | |
9146 | ||
9147 | newsos6) | |
9148 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9149 | hardcode_direct=yes | |
9150 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9151 | hardcode_libdir_separator=: | |
9152 | hardcode_shlibpath_var=no | |
9153 | ;; | |
9154 | ||
9155 | *nto* | *qnx*) | |
9156 | ;; | |
9157 | ||
9158 | openbsd*) | |
18d98188 PG |
9159 | if test -f /usr/libexec/ld.so; then |
9160 | hardcode_direct=yes | |
9161 | hardcode_shlibpath_var=no | |
9162 | hardcode_direct_absolute=yes | |
9163 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
1cf3d07d | 9164 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
18d98188 | 9165 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
1cf3d07d | 9166 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
18d98188 PG |
9167 | export_dynamic_flag_spec='${wl}-E' |
9168 | else | |
9169 | case $host_os in | |
9170 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9171 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9172 | hardcode_libdir_flag_spec='-R$libdir' | |
9173 | ;; | |
9174 | *) | |
9175 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9176 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9177 | ;; | |
9178 | esac | |
9179 | fi | |
9180 | else | |
9181 | ld_shlibs=no | |
1cf3d07d SE |
9182 | fi |
9183 | ;; | |
9184 | ||
9185 | os2*) | |
9186 | hardcode_libdir_flag_spec='-L$libdir' | |
9187 | hardcode_minus_L=yes | |
9188 | allow_undefined_flag=unsupported | |
43e02a8a | 9189 | archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
1cf3d07d SE |
9190 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
9191 | ;; | |
9192 | ||
9193 | osf3*) | |
9194 | if test "$GCC" = yes; then | |
9195 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 9196 | 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' |
1cf3d07d SE |
9197 | else |
9198 | allow_undefined_flag=' -expect_unresolved \*' | |
43e02a8a | 9199 | 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' |
1cf3d07d SE |
9200 | fi |
9201 | archive_cmds_need_lc='no' | |
9202 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9203 | hardcode_libdir_separator=: | |
9204 | ;; | |
9205 | ||
9206 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9207 | if test "$GCC" = yes; then | |
9208 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 9209 | archive_cmds='$CC -shared${allow_undefined_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' |
1cf3d07d SE |
9210 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9211 | else | |
9212 | allow_undefined_flag=' -expect_unresolved \*' | |
43e02a8a | 9213 | 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' |
1cf3d07d | 9214 | 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~ |
43e02a8a | 9215 | $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' |
1cf3d07d SE |
9216 | |
9217 | # Both c and cxx compiler support -rpath directly | |
9218 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9219 | fi | |
9220 | archive_cmds_need_lc='no' | |
9221 | hardcode_libdir_separator=: | |
9222 | ;; | |
9223 | ||
9224 | solaris*) | |
9225 | no_undefined_flag=' -z defs' | |
9226 | if test "$GCC" = yes; then | |
9227 | wlarc='${wl}' | |
9228 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9229 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9230 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9231 | else | |
9232 | case `$CC -V 2>&1` in | |
9233 | *"Compilers 5.0"*) | |
9234 | wlarc='' | |
9235 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9236 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9237 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9238 | ;; | |
9239 | *) | |
9240 | wlarc='${wl}' | |
9241 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9242 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9243 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9244 | ;; | |
9245 | esac | |
9246 | fi | |
9247 | hardcode_libdir_flag_spec='-R$libdir' | |
9248 | hardcode_shlibpath_var=no | |
9249 | case $host_os in | |
9250 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9251 | *) | |
9252 | # The compiler driver will combine and reorder linker options, | |
9253 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9254 | # but is careful enough not to reorder. | |
9255 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9256 | if test "$GCC" = yes; then | |
9257 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9258 | else | |
9259 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9260 | fi | |
9261 | ;; | |
9262 | esac | |
9263 | link_all_deplibs=yes | |
9264 | ;; | |
9265 | ||
9266 | sunos4*) | |
9267 | if test "x$host_vendor" = xsequent; then | |
9268 | # Use $CC to link under sequent, because it throws in some extra .o | |
9269 | # files that make .init and .fini sections work. | |
9270 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9271 | else | |
9272 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9273 | fi | |
9274 | hardcode_libdir_flag_spec='-L$libdir' | |
9275 | hardcode_direct=yes | |
9276 | hardcode_minus_L=yes | |
9277 | hardcode_shlibpath_var=no | |
9278 | ;; | |
9279 | ||
9280 | sysv4) | |
9281 | case $host_vendor in | |
9282 | sni) | |
9283 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9284 | hardcode_direct=yes # is this really true??? | |
9285 | ;; | |
9286 | siemens) | |
9287 | ## LD is ld it makes a PLAMLIB | |
9288 | ## CC just makes a GrossModule. | |
9289 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9290 | reload_cmds='$CC -r -o $output$reload_objs' | |
9291 | hardcode_direct=no | |
9292 | ;; | |
9293 | motorola) | |
9294 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9295 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9296 | ;; | |
9297 | esac | |
9298 | runpath_var='LD_RUN_PATH' | |
9299 | hardcode_shlibpath_var=no | |
9300 | ;; | |
9301 | ||
9302 | sysv4.3*) | |
9303 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9304 | hardcode_shlibpath_var=no | |
9305 | export_dynamic_flag_spec='-Bexport' | |
9306 | ;; | |
9307 | ||
9308 | sysv4*MP*) | |
9309 | if test -d /usr/nec; then | |
9310 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9311 | hardcode_shlibpath_var=no | |
9312 | runpath_var=LD_RUN_PATH | |
9313 | hardcode_runpath_var=yes | |
9314 | ld_shlibs=yes | |
9315 | fi | |
9316 | ;; | |
9317 | ||
9318 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
9319 | no_undefined_flag='${wl}-z,text' | |
9320 | archive_cmds_need_lc=no | |
9321 | hardcode_shlibpath_var=no | |
9322 | runpath_var='LD_RUN_PATH' | |
9323 | ||
9324 | if test "$GCC" = yes; then | |
9325 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9326 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9327 | else | |
9328 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9329 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9330 | fi | |
9331 | ;; | |
9332 | ||
9333 | sysv5* | sco3.2v5* | sco5v6*) | |
9334 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9335 | # link with -lc, and that would cause any symbols used from libc to | |
9336 | # always be unresolved, which means just about no library would | |
9337 | # ever link correctly. If we're not using GNU ld we use -z text | |
9338 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9339 | # as -z defs. | |
9340 | no_undefined_flag='${wl}-z,text' | |
9341 | allow_undefined_flag='${wl}-z,nodefs' | |
9342 | archive_cmds_need_lc=no | |
9343 | hardcode_shlibpath_var=no | |
9344 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9345 | hardcode_libdir_separator=':' | |
9346 | link_all_deplibs=yes | |
9347 | export_dynamic_flag_spec='${wl}-Bexport' | |
9348 | runpath_var='LD_RUN_PATH' | |
9349 | ||
9350 | if test "$GCC" = yes; then | |
9351 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9352 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9353 | else | |
9354 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9355 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9356 | fi | |
9357 | ;; | |
9358 | ||
9359 | uts4*) | |
9360 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9361 | hardcode_libdir_flag_spec='-L$libdir' | |
9362 | hardcode_shlibpath_var=no | |
9363 | ;; | |
9364 | ||
9365 | *) | |
9366 | ld_shlibs=no | |
9367 | ;; | |
9368 | esac | |
9369 | ||
9370 | if test x$host_vendor = xsni; then | |
9371 | case $host in | |
9372 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9373 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9374 | ;; | |
9375 | esac | |
9376 | fi | |
9377 | fi | |
9378 | ||
5213506e RW |
9379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
9380 | $as_echo "$ld_shlibs" >&6; } | |
1cf3d07d SE |
9381 | test "$ld_shlibs" = no && can_build_shared=no |
9382 | ||
9383 | with_gnu_ld=$with_gnu_ld | |
9384 | ||
9385 | ||
9386 | ||
9387 | ||
9388 | ||
9389 | ||
9390 | ||
9391 | ||
9392 | ||
9393 | ||
9394 | ||
9395 | ||
9396 | ||
9397 | ||
9398 | ||
9399 | # | |
9400 | # Do we need to explicitly link libc? | |
9401 | # | |
9402 | case "x$archive_cmds_need_lc" in | |
9403 | x|xyes) | |
9404 | # Assume -lc should be added | |
9405 | archive_cmds_need_lc=yes | |
9406 | ||
9407 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
9408 | case $archive_cmds in | |
9409 | *'~'*) | |
9410 | # FIXME: we may have to deal with multi-command sequences. | |
9411 | ;; | |
9412 | '$CC '*) | |
9413 | # Test whether the compiler implicitly links with -lc since on some | |
9414 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9415 | # to ld, don't add -lc before -lgcc. | |
5213506e RW |
9416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
9417 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
22e05272 | 9418 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
5213506e | 9419 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
9420 | else |
9421 | $RM conftest* | |
9422 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
1cf3d07d | 9423 | |
5213506e | 9424 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
9425 | (eval $ac_compile) 2>&5 |
9426 | ac_status=$? | |
5213506e RW |
9427 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9428 | test $ac_status = 0; } 2>conftest.err; then | |
baafc534 RW |
9429 | soname=conftest |
9430 | lib=conftest | |
9431 | libobjs=conftest.$ac_objext | |
9432 | deplibs= | |
9433 | wl=$lt_prog_compiler_wl | |
9434 | pic_flag=$lt_prog_compiler_pic | |
9435 | compiler_flags=-v | |
9436 | linker_flags=-v | |
9437 | verstring= | |
9438 | output_objdir=. | |
9439 | libname=conftest | |
9440 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9441 | allow_undefined_flag= | |
5213506e | 9442 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
1cf3d07d SE |
9443 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
9444 | ac_status=$? | |
5213506e RW |
9445 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9446 | test $ac_status = 0; } | |
baafc534 RW |
9447 | then |
9448 | lt_cv_archive_cmds_need_lc=no | |
9449 | else | |
9450 | lt_cv_archive_cmds_need_lc=yes | |
9451 | fi | |
9452 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9453 | else | |
9454 | cat conftest.err 1>&5 | |
9455 | fi | |
9456 | $RM conftest* | |
9457 | ||
9458 | fi | |
5213506e RW |
9459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
9460 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
baafc534 | 9461 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
1cf3d07d SE |
9462 | ;; |
9463 | esac | |
9464 | fi | |
9465 | ;; | |
9466 | esac | |
9467 | ||
9468 | ||
9469 | ||
9470 | ||
9471 | ||
9472 | ||
9473 | ||
9474 | ||
9475 | ||
9476 | ||
9477 | ||
9478 | ||
9479 | ||
9480 | ||
9481 | ||
9482 | ||
9483 | ||
9484 | ||
9485 | ||
9486 | ||
9487 | ||
9488 | ||
9489 | ||
9490 | ||
9491 | ||
9492 | ||
9493 | ||
9494 | ||
9495 | ||
9496 | ||
9497 | ||
9498 | ||
9499 | ||
9500 | ||
9501 | ||
9502 | ||
9503 | ||
9504 | ||
9505 | ||
9506 | ||
9507 | ||
9508 | ||
9509 | ||
9510 | ||
9511 | ||
9512 | ||
9513 | ||
9514 | ||
9515 | ||
9516 | ||
9517 | ||
9518 | ||
9519 | ||
9520 | ||
9521 | ||
9522 | ||
9523 | ||
9524 | ||
9525 | ||
9526 | ||
9527 | ||
9528 | ||
9529 | ||
9530 | ||
9531 | ||
9532 | ||
9533 | ||
9534 | ||
9535 | ||
9536 | ||
9537 | ||
9538 | ||
9539 | ||
9540 | ||
9541 | ||
9542 | ||
9543 | ||
9544 | ||
9545 | ||
9546 | ||
9547 | ||
9548 | ||
9549 | ||
9550 | ||
9551 | ||
9552 | ||
9553 | ||
9554 | ||
9555 | ||
9556 | ||
9557 | ||
9558 | ||
9559 | ||
9560 | ||
9561 | ||
9562 | ||
9563 | ||
9564 | ||
9565 | ||
9566 | ||
9567 | ||
9568 | ||
9569 | ||
9570 | ||
9571 | ||
9572 | ||
9573 | ||
9574 | ||
9575 | ||
9576 | ||
9577 | ||
9578 | ||
9579 | ||
9580 | ||
9581 | ||
9582 | ||
9583 | ||
9584 | ||
9585 | ||
9586 | ||
9587 | ||
9588 | ||
9589 | ||
9590 | ||
9591 | ||
9592 | ||
9593 | ||
9594 | ||
9595 | ||
9596 | ||
9597 | ||
9598 | ||
9599 | ||
9600 | ||
9601 | ||
9602 | ||
9603 | ||
9604 | ||
9605 | ||
9606 | ||
9607 | ||
9608 | ||
9609 | ||
9610 | ||
9611 | ||
9612 | ||
9613 | ||
9614 | ||
9615 | ||
9616 | ||
9617 | ||
9618 | ||
9619 | ||
9620 | ||
9621 | ||
9622 | ||
9623 | ||
5213506e RW |
9624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
9625 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
18d98188 PG |
9626 | |
9627 | if test "$GCC" = yes; then | |
1cf3d07d SE |
9628 | case $host_os in |
9629 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9630 | *) lt_awk_arg="/^libraries:/" ;; | |
9631 | esac | |
43e02a8a RW |
9632 | case $host_os in |
9633 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
9634 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
9635 | esac | |
9636 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
9637 | case $lt_search_path_spec in | |
9638 | *\;*) | |
1cf3d07d SE |
9639 | # if the path contains ";" then we assume it to be the separator |
9640 | # otherwise default to the standard path separator (i.e. ":") - it is | |
9641 | # assumed that no part of a normal pathname contains ";" but that should | |
9642 | # okay in the real world where ";" in dirpaths is itself problematic. | |
43e02a8a RW |
9643 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
9644 | ;; | |
9645 | *) | |
9646 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
9647 | ;; | |
9648 | esac | |
1cf3d07d SE |
9649 | # Ok, now we have the path, separated by spaces, we can step through it |
9650 | # and add multilib dir if necessary. | |
9651 | lt_tmp_lt_search_path_spec= | |
9652 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9653 | for lt_sys_path in $lt_search_path_spec; do | |
9654 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9655 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9656 | else | |
9657 | test -d "$lt_sys_path" && \ | |
9658 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9659 | fi | |
9660 | done | |
43e02a8a | 9661 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
1cf3d07d SE |
9662 | BEGIN {RS=" "; FS="/|\n";} { |
9663 | lt_foo=""; | |
9664 | lt_count=0; | |
9665 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
9666 | if ($lt_i != "" && $lt_i != ".") { | |
9667 | if ($lt_i == "..") { | |
9668 | lt_count++; | |
9669 | } else { | |
9670 | if (lt_count == 0) { | |
9671 | lt_foo="/" $lt_i lt_foo; | |
9672 | } else { | |
9673 | lt_count--; | |
9674 | } | |
9675 | } | |
9676 | } | |
9677 | } | |
9678 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
9679 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
9680 | }'` | |
43e02a8a RW |
9681 | # AWK program above erroneously prepends '/' to C:/dos/paths |
9682 | # for these hosts. | |
9683 | case $host_os in | |
9684 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
9685 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
9686 | esac | |
9687 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
1cf3d07d SE |
9688 | else |
9689 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
9690 | fi | |
9691 | library_names_spec= | |
9692 | libname_spec='lib$name' | |
9693 | soname_spec= | |
9694 | shrext_cmds=".so" | |
9695 | postinstall_cmds= | |
9696 | postuninstall_cmds= | |
9697 | finish_cmds= | |
9698 | finish_eval= | |
9699 | shlibpath_var= | |
9700 | shlibpath_overrides_runpath=unknown | |
9701 | version_type=none | |
9702 | dynamic_linker="$host_os ld.so" | |
9703 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
9704 | need_lib_prefix=unknown | |
9705 | hardcode_into_libs=no | |
9706 | ||
9707 | # when you set need_version to no, make sure it does not cause -set_version | |
9708 | # flags to be left without arguments | |
9709 | need_version=unknown | |
9710 | ||
9711 | case $host_os in | |
9712 | aix3*) | |
9713 | version_type=linux | |
9714 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
9715 | shlibpath_var=LIBPATH | |
9716 | ||
9717 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9718 | soname_spec='${libname}${release}${shared_ext}$major' | |
9719 | ;; | |
9720 | ||
3e7b7e2b | 9721 | aix[4-9]*) |
1cf3d07d SE |
9722 | version_type=linux |
9723 | need_lib_prefix=no | |
9724 | need_version=no | |
9725 | hardcode_into_libs=yes | |
9726 | if test "$host_cpu" = ia64; then | |
9727 | # AIX 5 supports IA64 | |
9728 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
9729 | shlibpath_var=LD_LIBRARY_PATH | |
9730 | else | |
9731 | # With GCC up to 2.95.x, collect2 would create an import file | |
9732 | # for dependence libraries. The import file would start with | |
9733 | # the line `#! .'. This would cause the generated library to | |
9734 | # depend on `.', always an invalid library. This was fixed in | |
9735 | # development snapshots of GCC prior to 3.0. | |
9736 | case $host_os in | |
9737 | aix4 | aix4.[01] | aix4.[01].*) | |
9738 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
9739 | echo ' yes ' | |
9740 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
9741 | : | |
9742 | else | |
9743 | can_build_shared=no | |
9744 | fi | |
9745 | ;; | |
9746 | esac | |
9747 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
9748 | # soname into executable. Probably we can add versioning support to | |
9749 | # collect2, so additional links can be useful in future. | |
9750 | if test "$aix_use_runtimelinking" = yes; then | |
9751 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
9752 | # instead of lib<name>.a to let people know that these are not | |
9753 | # typical AIX shared libraries. | |
9754 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9755 | else | |
9756 | # We preserve .a as extension for shared libraries through AIX4.2 | |
9757 | # and later when we are not doing run time linking. | |
9758 | library_names_spec='${libname}${release}.a $libname.a' | |
9759 | soname_spec='${libname}${release}${shared_ext}$major' | |
9760 | fi | |
9761 | shlibpath_var=LIBPATH | |
9762 | fi | |
9763 | ;; | |
9764 | ||
9765 | amigaos*) | |
18d98188 PG |
9766 | case $host_cpu in |
9767 | powerpc) | |
9768 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
9769 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9770 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9771 | ;; | |
9772 | m68k) | |
1cf3d07d SE |
9773 | library_names_spec='$libname.ixlibrary $libname.a' |
9774 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
43e02a8a | 9775 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
18d98188 PG |
9776 | ;; |
9777 | esac | |
1cf3d07d SE |
9778 | ;; |
9779 | ||
9780 | beos*) | |
9781 | library_names_spec='${libname}${shared_ext}' | |
9782 | dynamic_linker="$host_os ld.so" | |
9783 | shlibpath_var=LIBRARY_PATH | |
9784 | ;; | |
9785 | ||
9786 | bsdi[45]*) | |
9787 | version_type=linux | |
9788 | need_version=no | |
9789 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9790 | soname_spec='${libname}${release}${shared_ext}$major' | |
9791 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
9792 | shlibpath_var=LD_LIBRARY_PATH | |
9793 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
9794 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
9795 | # the default ld.so.conf also contains /usr/contrib/lib and | |
9796 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
9797 | # libtool to hard-code these into programs | |
9798 | ;; | |
9799 | ||
18d98188 | 9800 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
9801 | version_type=windows |
9802 | shrext_cmds=".dll" | |
9803 | need_version=no | |
9804 | need_lib_prefix=no | |
9805 | ||
18d98188 PG |
9806 | case $GCC,$host_os in |
9807 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
1cf3d07d SE |
9808 | library_names_spec='$libname.dll.a' |
9809 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9810 | postinstall_cmds='base_file=`basename \${file}`~ | |
9811 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
9812 | dldir=$destdir/`dirname \$dlpath`~ | |
9813 | test -d \$dldir || mkdir -p \$dldir~ | |
9814 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
9815 | chmod a+x \$dldir/$dlname~ | |
9816 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
9817 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
9818 | fi' | |
9819 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
9820 | dlpath=$dir/\$dldll~ | |
9821 | $RM \$dlpath' | |
9822 | shlibpath_overrides_runpath=yes | |
9823 | ||
9824 | case $host_os in | |
9825 | cygwin*) | |
9826 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
9827 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
43e02a8a RW |
9828 | |
9829 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
1cf3d07d | 9830 | ;; |
18d98188 | 9831 | mingw* | cegcc*) |
1cf3d07d SE |
9832 | # MinGW DLLs use traditional 'lib' prefix |
9833 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
1cf3d07d SE |
9834 | ;; |
9835 | pw32*) | |
9836 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9837 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9838 | ;; | |
9839 | esac | |
9840 | ;; | |
9841 | ||
9842 | *) | |
9843 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
9844 | ;; | |
9845 | esac | |
9846 | dynamic_linker='Win32 ld.exe' | |
9847 | # FIXME: first we should search . and the directory the executable is in | |
9848 | shlibpath_var=PATH | |
9849 | ;; | |
9850 | ||
9851 | darwin* | rhapsody*) | |
9852 | dynamic_linker="$host_os dyld" | |
9853 | version_type=darwin | |
9854 | need_lib_prefix=no | |
9855 | need_version=no | |
9856 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
9857 | soname_spec='${libname}${release}${major}$shared_ext' | |
9858 | shlibpath_overrides_runpath=yes | |
9859 | shlibpath_var=DYLD_LIBRARY_PATH | |
9860 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9861 | ||
9862 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
9863 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
9864 | ;; | |
9865 | ||
9866 | dgux*) | |
9867 | version_type=linux | |
9868 | need_lib_prefix=no | |
9869 | need_version=no | |
9870 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
9871 | soname_spec='${libname}${release}${shared_ext}$major' | |
9872 | shlibpath_var=LD_LIBRARY_PATH | |
9873 | ;; | |
9874 | ||
1cf3d07d SE |
9875 | freebsd* | dragonfly*) |
9876 | # DragonFly does not have aout. When/if they implement a new | |
9877 | # versioning mechanism, adjust this. | |
9878 | if test -x /usr/bin/objformat; then | |
9879 | objformat=`/usr/bin/objformat` | |
9880 | else | |
9881 | case $host_os in | |
c6084f68 | 9882 | freebsd[23].*) objformat=aout ;; |
1cf3d07d SE |
9883 | *) objformat=elf ;; |
9884 | esac | |
9885 | fi | |
9886 | version_type=freebsd-$objformat | |
9887 | case $version_type in | |
9888 | freebsd-elf*) | |
9889 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9890 | need_version=no | |
9891 | need_lib_prefix=no | |
9892 | ;; | |
9893 | freebsd-*) | |
9894 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
9895 | need_version=yes | |
9896 | ;; | |
9897 | esac | |
9898 | shlibpath_var=LD_LIBRARY_PATH | |
9899 | case $host_os in | |
c6084f68 | 9900 | freebsd2.*) |
1cf3d07d SE |
9901 | shlibpath_overrides_runpath=yes |
9902 | ;; | |
9903 | freebsd3.[01]* | freebsdelf3.[01]*) | |
9904 | shlibpath_overrides_runpath=yes | |
9905 | hardcode_into_libs=yes | |
9906 | ;; | |
9907 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
9908 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
9909 | shlibpath_overrides_runpath=no | |
9910 | hardcode_into_libs=yes | |
9911 | ;; | |
9912 | *) # from 4.6 on, and DragonFly | |
9913 | shlibpath_overrides_runpath=yes | |
9914 | hardcode_into_libs=yes | |
9915 | ;; | |
9916 | esac | |
9917 | ;; | |
9918 | ||
43e02a8a RW |
9919 | haiku*) |
9920 | version_type=linux | |
9921 | need_lib_prefix=no | |
9922 | need_version=no | |
9923 | dynamic_linker="$host_os runtime_loader" | |
9924 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
9925 | soname_spec='${libname}${release}${shared_ext}$major' | |
9926 | shlibpath_var=LIBRARY_PATH | |
9927 | shlibpath_overrides_runpath=yes | |
9928 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
9929 | hardcode_into_libs=yes | |
9930 | ;; | |
9931 | ||
1cf3d07d SE |
9932 | hpux9* | hpux10* | hpux11*) |
9933 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
9934 | # link against other versions. | |
9935 | version_type=sunos | |
9936 | need_lib_prefix=no | |
9937 | need_version=no | |
9938 | case $host_cpu in | |
9939 | ia64*) | |
9940 | shrext_cmds='.so' | |
9941 | hardcode_into_libs=yes | |
9942 | dynamic_linker="$host_os dld.so" | |
9943 | shlibpath_var=LD_LIBRARY_PATH | |
9944 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9945 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9946 | soname_spec='${libname}${release}${shared_ext}$major' | |
9947 | if test "X$HPUX_IA64_MODE" = X32; then | |
9948 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
9949 | else | |
9950 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
9951 | fi | |
9952 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9953 | ;; | |
9954 | hppa*64*) | |
9955 | shrext_cmds='.sl' | |
9956 | hardcode_into_libs=yes | |
9957 | dynamic_linker="$host_os dld.sl" | |
9958 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
9959 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9960 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9961 | soname_spec='${libname}${release}${shared_ext}$major' | |
9962 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
9963 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9964 | ;; | |
9965 | *) | |
9966 | shrext_cmds='.sl' | |
9967 | dynamic_linker="$host_os dld.sl" | |
9968 | shlibpath_var=SHLIB_PATH | |
9969 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
9970 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9971 | soname_spec='${libname}${release}${shared_ext}$major' | |
9972 | ;; | |
9973 | esac | |
43e02a8a | 9974 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
1cf3d07d | 9975 | postinstall_cmds='chmod 555 $lib' |
43e02a8a RW |
9976 | # or fails outright, so override atomically: |
9977 | install_override_mode=555 | |
1cf3d07d SE |
9978 | ;; |
9979 | ||
9980 | interix[3-9]*) | |
9981 | version_type=linux | |
9982 | need_lib_prefix=no | |
9983 | need_version=no | |
9984 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9985 | soname_spec='${libname}${release}${shared_ext}$major' | |
9986 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
9987 | shlibpath_var=LD_LIBRARY_PATH | |
9988 | shlibpath_overrides_runpath=no | |
9989 | hardcode_into_libs=yes | |
9990 | ;; | |
9991 | ||
9992 | irix5* | irix6* | nonstopux*) | |
9993 | case $host_os in | |
9994 | nonstopux*) version_type=nonstopux ;; | |
9995 | *) | |
9996 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
9997 | version_type=linux | |
9998 | else | |
9999 | version_type=irix | |
10000 | fi ;; | |
10001 | esac | |
10002 | need_lib_prefix=no | |
10003 | need_version=no | |
10004 | soname_spec='${libname}${release}${shared_ext}$major' | |
10005 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10006 | case $host_os in | |
10007 | irix5* | nonstopux*) | |
10008 | libsuff= shlibsuff= | |
10009 | ;; | |
10010 | *) | |
10011 | case $LD in # libtool.m4 will add one of these switches to LD | |
10012 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10013 | libsuff= shlibsuff= libmagic=32-bit;; | |
10014 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10015 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10016 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10017 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10018 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10019 | esac | |
10020 | ;; | |
10021 | esac | |
10022 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10023 | shlibpath_overrides_runpath=no | |
10024 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10025 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10026 | hardcode_into_libs=yes | |
10027 | ;; | |
10028 | ||
10029 | # No shared lib support for Linux oldld, aout, or coff. | |
10030 | linux*oldld* | linux*aout* | linux*coff*) | |
10031 | dynamic_linker=no | |
10032 | ;; | |
10033 | ||
10034 | # This must be Linux ELF. | |
e9085da5 MR |
10035 | |
10036 | # uclinux* changes (here and below) have been submitted to the libtool | |
10037 | # project, but have not yet been accepted: they are GCC-local changes | |
10038 | # for the time being. (See | |
10039 | # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) | |
f56de355 | 10040 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) |
1cf3d07d SE |
10041 | version_type=linux |
10042 | need_lib_prefix=no | |
10043 | need_version=no | |
10044 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10045 | soname_spec='${libname}${release}${shared_ext}$major' | |
10046 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10047 | shlibpath_var=LD_LIBRARY_PATH | |
10048 | shlibpath_overrides_runpath=no | |
baafc534 | 10049 | |
1cf3d07d | 10050 | # Some binutils ld are patched to set DT_RUNPATH |
22e05272 | 10051 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
5213506e | 10052 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
10053 | else |
10054 | lt_cv_shlibpath_overrides_runpath=no | |
10055 | save_LDFLAGS=$LDFLAGS | |
10056 | save_libdir=$libdir | |
10057 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10058 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10059 | if test x$gcc_no_link = xyes; then | |
22e05272 | 10060 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 10061 | fi |
5213506e | 10062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
10063 | /* end confdefs.h. */ |
10064 | ||
10065 | int | |
10066 | main () | |
10067 | { | |
10068 | ||
10069 | ; | |
10070 | return 0; | |
10071 | } | |
10072 | _ACEOF | |
5213506e RW |
10073 | if ac_fn_c_try_link "$LINENO"; then : |
10074 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
baafc534 | 10075 | lt_cv_shlibpath_overrides_runpath=yes |
1cf3d07d | 10076 | fi |
1cf3d07d | 10077 | fi |
5213506e RW |
10078 | rm -f core conftest.err conftest.$ac_objext \ |
10079 | conftest$ac_exeext conftest.$ac_ext | |
baafc534 RW |
10080 | LDFLAGS=$save_LDFLAGS |
10081 | libdir=$save_libdir | |
10082 | ||
10083 | fi | |
10084 | ||
10085 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
1cf3d07d SE |
10086 | |
10087 | # This implies no fast_install, which is unacceptable. | |
10088 | # Some rework will be needed to allow for fast_install | |
10089 | # before this can be enabled. | |
10090 | hardcode_into_libs=yes | |
10091 | ||
10092 | # Append ld.so.conf contents to the search path | |
10093 | if test -f /etc/ld.so.conf; then | |
43e02a8a | 10094 | 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' ' '` |
1cf3d07d SE |
10095 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
10096 | fi | |
10097 | ||
10098 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10099 | # powerpc, because MkLinux only supported shared libraries with the | |
10100 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10101 | # most powerpc-linux boxes support dynamic linking these days and | |
10102 | # people can always --disable-shared, the test was removed, and we | |
10103 | # assume the GNU/Linux dynamic linker is in use. | |
10104 | dynamic_linker='GNU/Linux ld.so' | |
10105 | ;; | |
10106 | ||
10107 | netbsd*) | |
10108 | version_type=sunos | |
10109 | need_lib_prefix=no | |
10110 | need_version=no | |
10111 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10112 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10113 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10114 | dynamic_linker='NetBSD (a.out) ld.so' | |
10115 | else | |
10116 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10117 | soname_spec='${libname}${release}${shared_ext}$major' | |
10118 | dynamic_linker='NetBSD ld.elf_so' | |
10119 | fi | |
10120 | shlibpath_var=LD_LIBRARY_PATH | |
10121 | shlibpath_overrides_runpath=yes | |
10122 | hardcode_into_libs=yes | |
10123 | ;; | |
10124 | ||
10125 | newsos6) | |
10126 | version_type=linux | |
10127 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10128 | shlibpath_var=LD_LIBRARY_PATH | |
10129 | shlibpath_overrides_runpath=yes | |
10130 | ;; | |
10131 | ||
10132 | *nto* | *qnx*) | |
10133 | version_type=qnx | |
10134 | need_lib_prefix=no | |
10135 | need_version=no | |
10136 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10137 | soname_spec='${libname}${release}${shared_ext}$major' | |
10138 | shlibpath_var=LD_LIBRARY_PATH | |
10139 | shlibpath_overrides_runpath=no | |
10140 | hardcode_into_libs=yes | |
10141 | dynamic_linker='ldqnx.so' | |
10142 | ;; | |
10143 | ||
10144 | openbsd*) | |
10145 | version_type=sunos | |
10146 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10147 | need_lib_prefix=no | |
10148 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10149 | case $host_os in | |
10150 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10151 | *) need_version=no ;; | |
10152 | esac | |
10153 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10154 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10155 | shlibpath_var=LD_LIBRARY_PATH | |
10156 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10157 | case $host_os in | |
10158 | openbsd2.[89] | openbsd2.[89].*) | |
10159 | shlibpath_overrides_runpath=no | |
10160 | ;; | |
10161 | *) | |
10162 | shlibpath_overrides_runpath=yes | |
10163 | ;; | |
10164 | esac | |
10165 | else | |
10166 | shlibpath_overrides_runpath=yes | |
10167 | fi | |
10168 | ;; | |
10169 | ||
10170 | os2*) | |
10171 | libname_spec='$name' | |
10172 | shrext_cmds=".dll" | |
10173 | need_lib_prefix=no | |
10174 | library_names_spec='$libname${shared_ext} $libname.a' | |
10175 | dynamic_linker='OS/2 ld.exe' | |
10176 | shlibpath_var=LIBPATH | |
10177 | ;; | |
10178 | ||
10179 | osf3* | osf4* | osf5*) | |
10180 | version_type=osf | |
10181 | need_lib_prefix=no | |
10182 | need_version=no | |
10183 | soname_spec='${libname}${release}${shared_ext}$major' | |
10184 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10185 | shlibpath_var=LD_LIBRARY_PATH | |
10186 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10187 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10188 | ;; | |
10189 | ||
10190 | rdos*) | |
10191 | dynamic_linker=no | |
10192 | ;; | |
10193 | ||
10194 | solaris*) | |
10195 | version_type=linux | |
10196 | need_lib_prefix=no | |
10197 | need_version=no | |
10198 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10199 | soname_spec='${libname}${release}${shared_ext}$major' | |
10200 | shlibpath_var=LD_LIBRARY_PATH | |
10201 | shlibpath_overrides_runpath=yes | |
10202 | hardcode_into_libs=yes | |
10203 | # ldd complains unless libraries are executable | |
10204 | postinstall_cmds='chmod +x $lib' | |
10205 | ;; | |
10206 | ||
10207 | sunos4*) | |
10208 | version_type=sunos | |
10209 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10210 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10211 | shlibpath_var=LD_LIBRARY_PATH | |
10212 | shlibpath_overrides_runpath=yes | |
10213 | if test "$with_gnu_ld" = yes; then | |
10214 | need_lib_prefix=no | |
10215 | fi | |
10216 | need_version=yes | |
10217 | ;; | |
10218 | ||
10219 | sysv4 | sysv4.3*) | |
10220 | version_type=linux | |
10221 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10222 | soname_spec='${libname}${release}${shared_ext}$major' | |
10223 | shlibpath_var=LD_LIBRARY_PATH | |
10224 | case $host_vendor in | |
10225 | sni) | |
10226 | shlibpath_overrides_runpath=no | |
10227 | need_lib_prefix=no | |
10228 | runpath_var=LD_RUN_PATH | |
10229 | ;; | |
10230 | siemens) | |
10231 | need_lib_prefix=no | |
10232 | ;; | |
10233 | motorola) | |
10234 | need_lib_prefix=no | |
10235 | need_version=no | |
10236 | shlibpath_overrides_runpath=no | |
10237 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10238 | ;; | |
10239 | esac | |
10240 | ;; | |
10241 | ||
10242 | sysv4*MP*) | |
10243 | if test -d /usr/nec ;then | |
10244 | version_type=linux | |
10245 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10246 | soname_spec='$libname${shared_ext}.$major' | |
10247 | shlibpath_var=LD_LIBRARY_PATH | |
10248 | fi | |
10249 | ;; | |
10250 | ||
10251 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10252 | version_type=freebsd-elf | |
10253 | need_lib_prefix=no | |
10254 | need_version=no | |
10255 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10256 | soname_spec='${libname}${release}${shared_ext}$major' | |
10257 | shlibpath_var=LD_LIBRARY_PATH | |
10258 | shlibpath_overrides_runpath=yes | |
10259 | hardcode_into_libs=yes | |
10260 | if test "$with_gnu_ld" = yes; then | |
10261 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10262 | else | |
10263 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10264 | case $host_os in | |
10265 | sco3.2v5*) | |
10266 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10267 | ;; | |
10268 | esac | |
10269 | fi | |
10270 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10271 | ;; | |
10272 | ||
10273 | tpf*) | |
10274 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10275 | version_type=linux | |
10276 | need_lib_prefix=no | |
10277 | need_version=no | |
18d98188 | 10278 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1cf3d07d SE |
10279 | shlibpath_var=LD_LIBRARY_PATH |
10280 | shlibpath_overrides_runpath=no | |
10281 | hardcode_into_libs=yes | |
10282 | ;; | |
10283 | ||
10284 | uts4*) | |
10285 | version_type=linux | |
10286 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10287 | soname_spec='${libname}${release}${shared_ext}$major' | |
10288 | shlibpath_var=LD_LIBRARY_PATH | |
10289 | ;; | |
10290 | ||
0ecd0f1c OH |
10291 | # Shared libraries for VwWorks, >= 7 only at this stage |
10292 | # and (fpic) still incompatible with "large" code models | |
10293 | # in a few configurations. Only for RTP mode in any case, | |
10294 | # and upon explicit request at configure time. | |
10295 | vxworks7*) | |
10296 | dynamic_linker=no | |
10297 | case ${with_multisubdir}-${enable_shared} in | |
10298 | *large*) | |
10299 | ;; | |
10300 | *mrtp*-yes) | |
10301 | version_type=linux | |
10302 | need_lib_prefix=no | |
10303 | need_version=no | |
10304 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10305 | soname_spec='${libname}${release}${shared_ext}$major' | |
10306 | dynamic_linker="$host_os module_loader" | |
10307 | ;; | |
10308 | esac | |
10309 | ;; | |
1cf3d07d SE |
10310 | *) |
10311 | dynamic_linker=no | |
10312 | ;; | |
10313 | esac | |
5213506e RW |
10314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
10315 | $as_echo "$dynamic_linker" >&6; } | |
1cf3d07d SE |
10316 | test "$dynamic_linker" = no && can_build_shared=no |
10317 | ||
10318 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10319 | if test "$GCC" = yes; then | |
10320 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10321 | fi | |
10322 | ||
18d98188 PG |
10323 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10324 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10325 | fi | |
10326 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10327 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10328 | fi | |
10329 | ||
1cf3d07d SE |
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 | ||
10402 | ||
10403 | ||
10404 | ||
10405 | ||
10406 | ||
10407 | ||
10408 | ||
10409 | ||
43e02a8a RW |
10410 | |
10411 | ||
10412 | ||
10413 | ||
10414 | ||
1cf3d07d SE |
10415 | |
10416 | ||
10417 | ||
10418 | ||
10419 | ||
10420 | ||
5213506e RW |
10421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
10422 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
1cf3d07d SE |
10423 | hardcode_action= |
10424 | if test -n "$hardcode_libdir_flag_spec" || | |
10425 | test -n "$runpath_var" || | |
10426 | test "X$hardcode_automatic" = "Xyes" ; then | |
10427 | ||
10428 | # We can hardcode non-existent directories. | |
10429 | if test "$hardcode_direct" != no && | |
10430 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10431 | # have to relink, otherwise we might link with an installed library | |
10432 | # when we should be linking with a yet-to-be-installed one | |
10433 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10434 | test "$hardcode_minus_L" != no; then | |
10435 | # Linking always hardcodes the temporary library directory. | |
10436 | hardcode_action=relink | |
10437 | else | |
10438 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10439 | hardcode_action=immediate | |
10440 | fi | |
10441 | else | |
10442 | # We cannot hardcode anything, or else we can only hardcode existing | |
10443 | # directories. | |
10444 | hardcode_action=unsupported | |
10445 | fi | |
5213506e RW |
10446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
10447 | $as_echo "$hardcode_action" >&6; } | |
1cf3d07d SE |
10448 | |
10449 | if test "$hardcode_action" = relink || | |
10450 | test "$inherit_rpath" = yes; then | |
10451 | # Fast installation is not supported | |
10452 | enable_fast_install=no | |
10453 | elif test "$shlibpath_overrides_runpath" = yes || | |
10454 | test "$enable_shared" = no; then | |
10455 | # Fast installation is not necessary | |
10456 | enable_fast_install=needless | |
10457 | fi | |
10458 | ||
10459 | ||
10460 | ||
10461 | ||
10462 | ||
10463 | ||
10464 | if test "x$enable_dlopen" != xyes; then | |
10465 | enable_dlopen=unknown | |
10466 | enable_dlopen_self=unknown | |
10467 | enable_dlopen_self_static=unknown | |
10468 | else | |
10469 | lt_cv_dlopen=no | |
10470 | lt_cv_dlopen_libs= | |
10471 | ||
10472 | case $host_os in | |
10473 | beos*) | |
10474 | lt_cv_dlopen="load_add_on" | |
10475 | lt_cv_dlopen_libs= | |
10476 | lt_cv_dlopen_self=yes | |
10477 | ;; | |
10478 | ||
18d98188 | 10479 | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
10480 | lt_cv_dlopen="LoadLibrary" |
10481 | lt_cv_dlopen_libs= | |
10482 | ;; | |
10483 | ||
10484 | cygwin*) | |
10485 | lt_cv_dlopen="dlopen" | |
10486 | lt_cv_dlopen_libs= | |
10487 | ;; | |
10488 | ||
10489 | darwin*) | |
10490 | # if libdl is installed we need to link against it | |
5213506e RW |
10491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
10492 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
22e05272 | 10493 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
5213506e | 10494 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
10495 | else |
10496 | ac_check_lib_save_LIBS=$LIBS | |
10497 | LIBS="-ldl $LIBS" | |
10498 | if test x$gcc_no_link = xyes; then | |
22e05272 | 10499 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 10500 | fi |
5213506e | 10501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
10502 | /* end confdefs.h. */ |
10503 | ||
5213506e RW |
10504 | /* Override any GCC internal prototype to avoid an error. |
10505 | Use char because int might match the return type of a GCC | |
10506 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
10507 | #ifdef __cplusplus |
10508 | extern "C" | |
10509 | #endif | |
1cf3d07d SE |
10510 | char dlopen (); |
10511 | int | |
10512 | main () | |
10513 | { | |
5213506e | 10514 | return dlopen (); |
1cf3d07d SE |
10515 | ; |
10516 | return 0; | |
10517 | } | |
10518 | _ACEOF | |
5213506e | 10519 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
10520 | ac_cv_lib_dl_dlopen=yes |
10521 | else | |
5213506e | 10522 | ac_cv_lib_dl_dlopen=no |
1cf3d07d | 10523 | fi |
5213506e RW |
10524 | rm -f core conftest.err conftest.$ac_objext \ |
10525 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
10526 | LIBS=$ac_check_lib_save_LIBS |
10527 | fi | |
5213506e RW |
10528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
10529 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
22e05272 | 10530 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
1cf3d07d SE |
10531 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10532 | else | |
10533 | ||
10534 | lt_cv_dlopen="dyld" | |
10535 | lt_cv_dlopen_libs= | |
10536 | lt_cv_dlopen_self=yes | |
10537 | ||
10538 | fi | |
10539 | ||
10540 | ;; | |
10541 | ||
10542 | *) | |
5213506e | 10543 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
22e05272 | 10544 | if test "x$ac_cv_func_shl_load" = xyes; then : |
1cf3d07d SE |
10545 | lt_cv_dlopen="shl_load" |
10546 | else | |
5213506e RW |
10547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
10548 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
22e05272 | 10549 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
5213506e | 10550 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
10551 | else |
10552 | ac_check_lib_save_LIBS=$LIBS | |
10553 | LIBS="-ldld $LIBS" | |
10554 | if test x$gcc_no_link = xyes; then | |
22e05272 | 10555 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 10556 | fi |
5213506e | 10557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
10558 | /* end confdefs.h. */ |
10559 | ||
5213506e RW |
10560 | /* Override any GCC internal prototype to avoid an error. |
10561 | Use char because int might match the return type of a GCC | |
10562 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
10563 | #ifdef __cplusplus |
10564 | extern "C" | |
10565 | #endif | |
1cf3d07d SE |
10566 | char shl_load (); |
10567 | int | |
10568 | main () | |
10569 | { | |
5213506e | 10570 | return shl_load (); |
1cf3d07d SE |
10571 | ; |
10572 | return 0; | |
10573 | } | |
10574 | _ACEOF | |
5213506e | 10575 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
10576 | ac_cv_lib_dld_shl_load=yes |
10577 | else | |
5213506e | 10578 | ac_cv_lib_dld_shl_load=no |
1cf3d07d | 10579 | fi |
5213506e RW |
10580 | rm -f core conftest.err conftest.$ac_objext \ |
10581 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
10582 | LIBS=$ac_check_lib_save_LIBS |
10583 | fi | |
5213506e RW |
10584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
10585 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
22e05272 | 10586 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
18d98188 | 10587 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
1cf3d07d | 10588 | else |
5213506e | 10589 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
22e05272 | 10590 | if test "x$ac_cv_func_dlopen" = xyes; then : |
1cf3d07d SE |
10591 | lt_cv_dlopen="dlopen" |
10592 | else | |
5213506e RW |
10593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
10594 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
22e05272 | 10595 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
5213506e | 10596 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
10597 | else |
10598 | ac_check_lib_save_LIBS=$LIBS | |
10599 | LIBS="-ldl $LIBS" | |
10600 | if test x$gcc_no_link = xyes; then | |
22e05272 | 10601 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 10602 | fi |
5213506e | 10603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
10604 | /* end confdefs.h. */ |
10605 | ||
5213506e RW |
10606 | /* Override any GCC internal prototype to avoid an error. |
10607 | Use char because int might match the return type of a GCC | |
10608 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
10609 | #ifdef __cplusplus |
10610 | extern "C" | |
10611 | #endif | |
1cf3d07d SE |
10612 | char dlopen (); |
10613 | int | |
10614 | main () | |
10615 | { | |
5213506e | 10616 | return dlopen (); |
1cf3d07d SE |
10617 | ; |
10618 | return 0; | |
10619 | } | |
10620 | _ACEOF | |
5213506e | 10621 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
10622 | ac_cv_lib_dl_dlopen=yes |
10623 | else | |
5213506e | 10624 | ac_cv_lib_dl_dlopen=no |
1cf3d07d | 10625 | fi |
5213506e RW |
10626 | rm -f core conftest.err conftest.$ac_objext \ |
10627 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
10628 | LIBS=$ac_check_lib_save_LIBS |
10629 | fi | |
5213506e RW |
10630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
10631 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
22e05272 | 10632 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
1cf3d07d SE |
10633 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10634 | else | |
5213506e RW |
10635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
10636 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
22e05272 | 10637 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
5213506e | 10638 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
10639 | else |
10640 | ac_check_lib_save_LIBS=$LIBS | |
10641 | LIBS="-lsvld $LIBS" | |
10642 | if test x$gcc_no_link = xyes; then | |
22e05272 | 10643 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 10644 | fi |
5213506e | 10645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
10646 | /* end confdefs.h. */ |
10647 | ||
5213506e RW |
10648 | /* Override any GCC internal prototype to avoid an error. |
10649 | Use char because int might match the return type of a GCC | |
10650 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
10651 | #ifdef __cplusplus |
10652 | extern "C" | |
10653 | #endif | |
1cf3d07d SE |
10654 | char dlopen (); |
10655 | int | |
10656 | main () | |
10657 | { | |
5213506e | 10658 | return dlopen (); |
1cf3d07d SE |
10659 | ; |
10660 | return 0; | |
10661 | } | |
10662 | _ACEOF | |
5213506e | 10663 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
10664 | ac_cv_lib_svld_dlopen=yes |
10665 | else | |
5213506e | 10666 | ac_cv_lib_svld_dlopen=no |
1cf3d07d | 10667 | fi |
5213506e RW |
10668 | rm -f core conftest.err conftest.$ac_objext \ |
10669 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
10670 | LIBS=$ac_check_lib_save_LIBS |
10671 | fi | |
5213506e RW |
10672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
10673 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
22e05272 | 10674 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
1cf3d07d SE |
10675 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
10676 | else | |
5213506e RW |
10677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
10678 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
22e05272 | 10679 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
5213506e | 10680 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
10681 | else |
10682 | ac_check_lib_save_LIBS=$LIBS | |
10683 | LIBS="-ldld $LIBS" | |
10684 | if test x$gcc_no_link = xyes; then | |
22e05272 | 10685 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
a8aea176 | 10686 | fi |
5213506e | 10687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a8aea176 | 10688 | /* end confdefs.h. */ |
0fd91e0a | 10689 | |
5213506e RW |
10690 | /* Override any GCC internal prototype to avoid an error. |
10691 | Use char because int might match the return type of a GCC | |
10692 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
10693 | #ifdef __cplusplus |
10694 | extern "C" | |
10695 | #endif | |
1cf3d07d | 10696 | char dld_link (); |
a8aea176 NN |
10697 | int |
10698 | main () | |
10699 | { | |
5213506e | 10700 | return dld_link (); |
a8aea176 NN |
10701 | ; |
10702 | return 0; | |
10703 | } | |
10704 | _ACEOF | |
5213506e | 10705 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d | 10706 | ac_cv_lib_dld_dld_link=yes |
0fd91e0a | 10707 | else |
5213506e | 10708 | ac_cv_lib_dld_dld_link=no |
025fd00e | 10709 | fi |
5213506e RW |
10710 | rm -f core conftest.err conftest.$ac_objext \ |
10711 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
10712 | LIBS=$ac_check_lib_save_LIBS |
10713 | fi | |
5213506e RW |
10714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
10715 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
22e05272 | 10716 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
18d98188 | 10717 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
0fd91e0a | 10718 | fi |
025fd00e | 10719 | |
dfac8a13 | 10720 | |
1cf3d07d | 10721 | fi |
a8aea176 | 10722 | |
a8aea176 | 10723 | |
c45f211e | 10724 | fi |
dfac8a13 | 10725 | |
dfac8a13 | 10726 | |
dfac8a13 TT |
10727 | fi |
10728 | ||
10729 | ||
1cf3d07d | 10730 | fi |
dfac8a13 | 10731 | |
dfac8a13 | 10732 | |
1cf3d07d | 10733 | fi |
0fd91e0a | 10734 | |
1cf3d07d SE |
10735 | ;; |
10736 | esac | |
dfac8a13 | 10737 | |
1cf3d07d SE |
10738 | if test "x$lt_cv_dlopen" != xno; then |
10739 | enable_dlopen=yes | |
10740 | else | |
10741 | enable_dlopen=no | |
10742 | fi | |
a8aea176 | 10743 | |
1cf3d07d SE |
10744 | case $lt_cv_dlopen in |
10745 | dlopen) | |
10746 | save_CPPFLAGS="$CPPFLAGS" | |
10747 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
a8aea176 | 10748 | |
1cf3d07d SE |
10749 | save_LDFLAGS="$LDFLAGS" |
10750 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
dfac8a13 | 10751 | |
1cf3d07d SE |
10752 | save_LIBS="$LIBS" |
10753 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
dfac8a13 | 10754 | |
5213506e RW |
10755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
10756 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
22e05272 | 10757 | if ${lt_cv_dlopen_self+:} false; then : |
5213506e | 10758 | $as_echo_n "(cached) " >&6 |
dfac8a13 | 10759 | else |
1cf3d07d SE |
10760 | if test "$cross_compiling" = yes; then : |
10761 | lt_cv_dlopen_self=cross | |
a8aea176 | 10762 | else |
1cf3d07d SE |
10763 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10764 | lt_status=$lt_dlunknown | |
10765 | cat > conftest.$ac_ext <<_LT_EOF | |
b6cb10af | 10766 | #line 10778 "configure" |
1cf3d07d | 10767 | #include "confdefs.h" |
a8aea176 | 10768 | |
1cf3d07d SE |
10769 | #if HAVE_DLFCN_H |
10770 | #include <dlfcn.h> | |
10771 | #endif | |
a8aea176 | 10772 | |
1cf3d07d | 10773 | #include <stdio.h> |
a8aea176 | 10774 | |
1cf3d07d SE |
10775 | #ifdef RTLD_GLOBAL |
10776 | # define LT_DLGLOBAL RTLD_GLOBAL | |
a8aea176 | 10777 | #else |
1cf3d07d SE |
10778 | # ifdef DL_GLOBAL |
10779 | # define LT_DLGLOBAL DL_GLOBAL | |
10780 | # else | |
10781 | # define LT_DLGLOBAL 0 | |
10782 | # endif | |
10783 | #endif | |
10784 | ||
10785 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10786 | find out it does not work in some platform. */ | |
10787 | #ifndef LT_DLLAZY_OR_NOW | |
10788 | # ifdef RTLD_LAZY | |
10789 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10790 | # else | |
10791 | # ifdef DL_LAZY | |
10792 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10793 | # else | |
10794 | # ifdef RTLD_NOW | |
10795 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10796 | # else | |
10797 | # ifdef DL_NOW | |
10798 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10799 | # else | |
10800 | # define LT_DLLAZY_OR_NOW 0 | |
10801 | # endif | |
10802 | # endif | |
10803 | # endif | |
10804 | # endif | |
10805 | #endif | |
10806 | ||
43e02a8a RW |
10807 | /* When -fvisbility=hidden is used, assume the code has been annotated |
10808 | correspondingly for the symbols needed. */ | |
10809 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
10810 | void fnord () __attribute__((visibility("default"))); | |
10811 | #endif | |
10812 | ||
10813 | void fnord () { int i=42; } | |
1cf3d07d SE |
10814 | int main () |
10815 | { | |
10816 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10817 | int status = $lt_dlunknown; | |
10818 | ||
10819 | if (self) | |
10820 | { | |
10821 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
43e02a8a RW |
10822 | else |
10823 | { | |
10824 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10825 | else puts (dlerror ()); | |
10826 | } | |
1cf3d07d SE |
10827 | /* dlclose (self); */ |
10828 | } | |
10829 | else | |
10830 | puts (dlerror ()); | |
10831 | ||
18d98188 | 10832 | return status; |
1cf3d07d SE |
10833 | } |
10834 | _LT_EOF | |
5213506e | 10835 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d | 10836 | (eval $ac_link) 2>&5 |
a8aea176 | 10837 | ac_status=$? |
5213506e RW |
10838 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10839 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
1cf3d07d SE |
10840 | (./conftest; exit; ) >&5 2>/dev/null |
10841 | lt_status=$? | |
10842 | case x$lt_status in | |
10843 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
10844 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
10845 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
10846 | esac | |
10847 | else : | |
10848 | # compilation failed | |
10849 | lt_cv_dlopen_self=no | |
a8aea176 | 10850 | fi |
a8aea176 | 10851 | fi |
1cf3d07d SE |
10852 | rm -fr conftest* |
10853 | ||
a8aea176 | 10854 | |
a8aea176 | 10855 | fi |
5213506e RW |
10856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
10857 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
a8aea176 | 10858 | |
1cf3d07d SE |
10859 | if test "x$lt_cv_dlopen_self" = xyes; then |
10860 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
5213506e RW |
10861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
10862 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
22e05272 | 10863 | if ${lt_cv_dlopen_self_static+:} false; then : |
5213506e | 10864 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
10865 | else |
10866 | if test "$cross_compiling" = yes; then : | |
10867 | lt_cv_dlopen_self_static=cross | |
10868 | else | |
10869 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10870 | lt_status=$lt_dlunknown | |
10871 | cat > conftest.$ac_ext <<_LT_EOF | |
b6cb10af | 10872 | #line 10884 "configure" |
1cf3d07d SE |
10873 | #include "confdefs.h" |
10874 | ||
10875 | #if HAVE_DLFCN_H | |
10876 | #include <dlfcn.h> | |
10877 | #endif | |
10878 | ||
10879 | #include <stdio.h> | |
10880 | ||
10881 | #ifdef RTLD_GLOBAL | |
10882 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10883 | #else | |
10884 | # ifdef DL_GLOBAL | |
10885 | # define LT_DLGLOBAL DL_GLOBAL | |
10886 | # else | |
10887 | # define LT_DLGLOBAL 0 | |
10888 | # endif | |
10889 | #endif | |
10890 | ||
10891 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10892 | find out it does not work in some platform. */ | |
10893 | #ifndef LT_DLLAZY_OR_NOW | |
10894 | # ifdef RTLD_LAZY | |
10895 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10896 | # else | |
10897 | # ifdef DL_LAZY | |
10898 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10899 | # else | |
10900 | # ifdef RTLD_NOW | |
10901 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10902 | # else | |
10903 | # ifdef DL_NOW | |
10904 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10905 | # else | |
10906 | # define LT_DLLAZY_OR_NOW 0 | |
10907 | # endif | |
10908 | # endif | |
10909 | # endif | |
10910 | # endif | |
10911 | #endif | |
10912 | ||
43e02a8a RW |
10913 | /* When -fvisbility=hidden is used, assume the code has been annotated |
10914 | correspondingly for the symbols needed. */ | |
10915 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
10916 | void fnord () __attribute__((visibility("default"))); | |
10917 | #endif | |
10918 | ||
10919 | void fnord () { int i=42; } | |
1cf3d07d SE |
10920 | int main () |
10921 | { | |
10922 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10923 | int status = $lt_dlunknown; | |
10924 | ||
10925 | if (self) | |
10926 | { | |
10927 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
43e02a8a RW |
10928 | else |
10929 | { | |
10930 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10931 | else puts (dlerror ()); | |
10932 | } | |
1cf3d07d SE |
10933 | /* dlclose (self); */ |
10934 | } | |
10935 | else | |
10936 | puts (dlerror ()); | |
10937 | ||
18d98188 | 10938 | return status; |
1cf3d07d SE |
10939 | } |
10940 | _LT_EOF | |
5213506e | 10941 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d | 10942 | (eval $ac_link) 2>&5 |
a8aea176 | 10943 | ac_status=$? |
5213506e RW |
10944 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10945 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
1cf3d07d SE |
10946 | (./conftest; exit; ) >&5 2>/dev/null |
10947 | lt_status=$? | |
10948 | case x$lt_status in | |
10949 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
10950 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
10951 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
10952 | esac | |
10953 | else : | |
10954 | # compilation failed | |
10955 | lt_cv_dlopen_self_static=no | |
a8aea176 | 10956 | fi |
a8aea176 | 10957 | fi |
1cf3d07d SE |
10958 | rm -fr conftest* |
10959 | ||
a8aea176 | 10960 | |
dfac8a13 | 10961 | fi |
5213506e RW |
10962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
10963 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
1cf3d07d | 10964 | fi |
a8aea176 | 10965 | |
1cf3d07d SE |
10966 | CPPFLAGS="$save_CPPFLAGS" |
10967 | LDFLAGS="$save_LDFLAGS" | |
10968 | LIBS="$save_LIBS" | |
10969 | ;; | |
10970 | esac | |
10971 | ||
10972 | case $lt_cv_dlopen_self in | |
10973 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
10974 | *) enable_dlopen_self=unknown ;; | |
10975 | esac | |
10976 | ||
10977 | case $lt_cv_dlopen_self_static in | |
10978 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
10979 | *) enable_dlopen_self_static=unknown ;; | |
10980 | esac | |
10981 | fi | |
10982 | ||
10983 | ||
10984 | ||
10985 | ||
10986 | ||
10987 | ||
10988 | ||
10989 | ||
10990 | ||
10991 | ||
10992 | ||
10993 | ||
10994 | ||
10995 | ||
10996 | ||
10997 | ||
10998 | ||
10999 | striplib= | |
11000 | old_striplib= | |
5213506e RW |
11001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
11002 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
1cf3d07d SE |
11003 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
11004 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11005 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
5213506e RW |
11006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11007 | $as_echo "yes" >&6; } | |
dfac8a13 | 11008 | else |
1cf3d07d SE |
11009 | # FIXME - insert some real tests, host_os isn't really good enough |
11010 | case $host_os in | |
11011 | darwin*) | |
11012 | if test -n "$STRIP" ; then | |
11013 | striplib="$STRIP -x" | |
11014 | old_striplib="$STRIP -S" | |
5213506e RW |
11015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11016 | $as_echo "yes" >&6; } | |
1cf3d07d | 11017 | else |
5213506e RW |
11018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11019 | $as_echo "no" >&6; } | |
1cf3d07d SE |
11020 | fi |
11021 | ;; | |
11022 | *) | |
5213506e RW |
11023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11024 | $as_echo "no" >&6; } | |
1cf3d07d SE |
11025 | ;; |
11026 | esac | |
dfac8a13 | 11027 | fi |
a8aea176 | 11028 | |
1cf3d07d SE |
11029 | |
11030 | ||
11031 | ||
11032 | ||
11033 | ||
11034 | ||
11035 | ||
11036 | ||
11037 | ||
11038 | ||
11039 | ||
11040 | # Report which library types will actually be built | |
5213506e RW |
11041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
11042 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11044 | $as_echo "$can_build_shared" >&6; } | |
1cf3d07d | 11045 | |
5213506e RW |
11046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
11047 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
1cf3d07d SE |
11048 | test "$can_build_shared" = "no" && enable_shared=no |
11049 | ||
11050 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11051 | # are all built from PIC. | |
11052 | case $host_os in | |
11053 | aix3*) | |
11054 | test "$enable_shared" = yes && enable_static=no | |
11055 | if test -n "$RANLIB"; then | |
11056 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11057 | postinstall_cmds='$RANLIB $lib' | |
11058 | fi | |
11059 | ;; | |
11060 | ||
3e7b7e2b | 11061 | aix[4-9]*) |
1cf3d07d SE |
11062 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
11063 | test "$enable_shared" = yes && enable_static=no | |
11064 | fi | |
11065 | ;; | |
11066 | esac | |
5213506e RW |
11067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
11068 | $as_echo "$enable_shared" >&6; } | |
1cf3d07d | 11069 | |
5213506e RW |
11070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
11071 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
1cf3d07d SE |
11072 | # Make sure either enable_shared or enable_static is yes. |
11073 | test "$enable_shared" = yes || enable_static=yes | |
5213506e RW |
11074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
11075 | $as_echo "$enable_static" >&6; } | |
1cf3d07d SE |
11076 | |
11077 | ||
11078 | ||
11079 | ||
11080 | fi | |
a8aea176 NN |
11081 | ac_ext=c |
11082 | ac_cpp='$CPP $CPPFLAGS' | |
11083 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11084 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11085 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
dfac8a13 | 11086 | |
1cf3d07d | 11087 | CC="$lt_save_CC" |
35241f18 | 11088 | |
35241f18 | 11089 | |
35241f18 | 11090 | |
35241f18 CD |
11091 | |
11092 | ||
a8aea176 | 11093 | |
dfac8a13 | 11094 | |
dfac8a13 | 11095 | |
1cf3d07d SE |
11096 | |
11097 | ||
11098 | ||
11099 | ||
11100 | ||
5213506e | 11101 | ac_config_commands="$ac_config_commands libtool" |
1cf3d07d SE |
11102 | |
11103 | ||
11104 | ||
11105 | ||
11106 | # Only expand once: | |
11107 | ||
11108 | ||
11109 | ||
11110 | # Find CPP now so that any conditional tests below won't do it and | |
11111 | # thereby make the resulting definitions conditional. | |
11112 | ac_ext=c | |
11113 | ac_cpp='$CPP $CPPFLAGS' | |
11114 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11115 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11116 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5213506e RW |
11117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
11118 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
1cf3d07d SE |
11119 | # On Suns, sometimes $CPP names a directory. |
11120 | if test -n "$CPP" && test -d "$CPP"; then | |
11121 | CPP= | |
11122 | fi | |
11123 | if test -z "$CPP"; then | |
22e05272 | 11124 | if ${ac_cv_prog_CPP+:} false; then : |
5213506e | 11125 | $as_echo_n "(cached) " >&6 |
a8aea176 | 11126 | else |
1cf3d07d SE |
11127 | # Double quotes because CPP needs to be expanded |
11128 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
11129 | do | |
11130 | ac_preproc_ok=false | |
11131 | for ac_c_preproc_warn_flag in '' yes | |
11132 | do | |
11133 | # Use a header file that comes with gcc, so configuring glibc | |
11134 | # with a fresh cross-compiler works. | |
11135 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11136 | # <limits.h> exists even on freestanding compilers. | |
11137 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11138 | # not just through cpp. "Syntax error" is here to catch this case. | |
5213506e | 11139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a8aea176 | 11140 | /* end confdefs.h. */ |
1cf3d07d SE |
11141 | #ifdef __STDC__ |
11142 | # include <limits.h> | |
11143 | #else | |
11144 | # include <assert.h> | |
11145 | #endif | |
11146 | Syntax error | |
a8aea176 | 11147 | _ACEOF |
5213506e | 11148 | if ac_fn_c_try_cpp "$LINENO"; then : |
a8aea176 | 11149 | |
5213506e | 11150 | else |
1cf3d07d SE |
11151 | # Broken: fails on valid input. |
11152 | continue | |
a8aea176 | 11153 | fi |
22e05272 | 11154 | rm -f conftest.err conftest.i conftest.$ac_ext |
a8aea176 | 11155 | |
5213506e | 11156 | # OK, works on sane cases. Now check whether nonexistent headers |
1cf3d07d | 11157 | # can be detected and how. |
5213506e | 11158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a8aea176 | 11159 | /* end confdefs.h. */ |
1cf3d07d | 11160 | #include <ac_nonexistent.h> |
a8aea176 | 11161 | _ACEOF |
5213506e | 11162 | if ac_fn_c_try_cpp "$LINENO"; then : |
1cf3d07d SE |
11163 | # Broken: success on invalid input. |
11164 | continue | |
11165 | else | |
1cf3d07d SE |
11166 | # Passes both tests. |
11167 | ac_preproc_ok=: | |
11168 | break | |
c45f211e | 11169 | fi |
22e05272 | 11170 | rm -f conftest.err conftest.i conftest.$ac_ext |
c45f211e | 11171 | |
1cf3d07d SE |
11172 | done |
11173 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 11174 | rm -f conftest.i conftest.err conftest.$ac_ext |
5213506e | 11175 | if $ac_preproc_ok; then : |
1cf3d07d | 11176 | break |
c45f211e | 11177 | fi |
a8aea176 | 11178 | |
1cf3d07d SE |
11179 | done |
11180 | ac_cv_prog_CPP=$CPP | |
a8aea176 | 11181 | |
1cf3d07d SE |
11182 | fi |
11183 | CPP=$ac_cv_prog_CPP | |
a8aea176 | 11184 | else |
1cf3d07d SE |
11185 | ac_cv_prog_CPP=$CPP |
11186 | fi | |
5213506e RW |
11187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
11188 | $as_echo "$CPP" >&6; } | |
1cf3d07d SE |
11189 | ac_preproc_ok=false |
11190 | for ac_c_preproc_warn_flag in '' yes | |
11191 | do | |
11192 | # Use a header file that comes with gcc, so configuring glibc | |
11193 | # with a fresh cross-compiler works. | |
11194 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11195 | # <limits.h> exists even on freestanding compilers. | |
11196 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11197 | # not just through cpp. "Syntax error" is here to catch this case. | |
5213506e | 11198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a8aea176 | 11199 | /* end confdefs.h. */ |
1cf3d07d SE |
11200 | #ifdef __STDC__ |
11201 | # include <limits.h> | |
a8aea176 | 11202 | #else |
1cf3d07d | 11203 | # include <assert.h> |
a8aea176 | 11204 | #endif |
1cf3d07d | 11205 | Syntax error |
a8aea176 | 11206 | _ACEOF |
5213506e | 11207 | if ac_fn_c_try_cpp "$LINENO"; then : |
a8aea176 | 11208 | |
5213506e | 11209 | else |
1cf3d07d SE |
11210 | # Broken: fails on valid input. |
11211 | continue | |
a8aea176 | 11212 | fi |
22e05272 | 11213 | rm -f conftest.err conftest.i conftest.$ac_ext |
a8aea176 | 11214 | |
5213506e | 11215 | # OK, works on sane cases. Now check whether nonexistent headers |
1cf3d07d | 11216 | # can be detected and how. |
5213506e | 11217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a8aea176 | 11218 | /* end confdefs.h. */ |
1cf3d07d | 11219 | #include <ac_nonexistent.h> |
a8aea176 | 11220 | _ACEOF |
5213506e | 11221 | if ac_fn_c_try_cpp "$LINENO"; then : |
1cf3d07d SE |
11222 | # Broken: success on invalid input. |
11223 | continue | |
11224 | else | |
1cf3d07d SE |
11225 | # Passes both tests. |
11226 | ac_preproc_ok=: | |
11227 | break | |
a8aea176 | 11228 | fi |
22e05272 | 11229 | rm -f conftest.err conftest.i conftest.$ac_ext |
a8aea176 NN |
11230 | |
11231 | done | |
1cf3d07d | 11232 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
22e05272 | 11233 | rm -f conftest.i conftest.err conftest.$ac_ext |
5213506e RW |
11234 | if $ac_preproc_ok; then : |
11235 | ||
1cf3d07d | 11236 | else |
5213506e RW |
11237 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
11238 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
11239 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
11240 | See \`config.log' for more details" "$LINENO" 5; } | |
1cf3d07d SE |
11241 | fi |
11242 | ||
11243 | ac_ext=c | |
11244 | ac_cpp='$CPP $CPPFLAGS' | |
11245 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11246 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11247 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11248 | ||
11249 | ||
11250 | if test -n "$with_cross_host"; then | |
11251 | # We are being configured with a cross compiler. AC_REPLACE_FUNCS | |
11252 | # may not work correctly, because the compiler may not be able to | |
11253 | # link executables. | |
11254 | ||
11255 | # We assume newlib. This lets us hard-code the functions we know | |
11256 | # we'll have. | |
5213506e | 11257 | $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h |
1cf3d07d | 11258 | |
5213506e | 11259 | $as_echo "#define HAVE_STRERROR 1" >>confdefs.h |
a8aea176 | 11260 | |
1cf3d07d SE |
11261 | else |
11262 | if test x$gcc_no_link = xyes; then | |
11263 | if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then | |
11264 | ac_cv_func_mmap_fixed_mapped=no | |
11265 | fi | |
11266 | fi | |
11267 | if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then | |
22e05272 JM |
11268 | |
11269 | ||
11270 | ||
11271 | for ac_header in $ac_header_list | |
5213506e RW |
11272 | do : |
11273 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22e05272 JM |
11274 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
11275 | " | |
11276 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5213506e RW |
11277 | cat >>confdefs.h <<_ACEOF |
11278 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
a8aea176 | 11279 | _ACEOF |
a8aea176 | 11280 | |
a8aea176 | 11281 | fi |
a8aea176 | 11282 | |
5213506e | 11283 | done |
a8aea176 | 11284 | |
22e05272 JM |
11285 | |
11286 | ||
11287 | ||
11288 | ||
11289 | ||
11290 | ||
11291 | ||
5213506e RW |
11292 | for ac_func in getpagesize |
11293 | do : | |
11294 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
22e05272 | 11295 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
a8aea176 | 11296 | cat >>confdefs.h <<_ACEOF |
5213506e | 11297 | #define HAVE_GETPAGESIZE 1 |
a8aea176 NN |
11298 | _ACEOF |
11299 | ||
11300 | fi | |
a8aea176 NN |
11301 | done |
11302 | ||
5213506e RW |
11303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
11304 | $as_echo_n "checking for working mmap... " >&6; } | |
22e05272 | 11305 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : |
5213506e | 11306 | $as_echo_n "(cached) " >&6 |
a8aea176 | 11307 | else |
5213506e RW |
11308 | if test "$cross_compiling" = yes; then : |
11309 | ac_cv_func_mmap_fixed_mapped=no | |
11310 | else | |
11311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a8aea176 | 11312 | /* end confdefs.h. */ |
5213506e RW |
11313 | $ac_includes_default |
11314 | /* malloc might have been renamed as rpl_malloc. */ | |
11315 | #undef malloc | |
dfac8a13 TT |
11316 | |
11317 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
11318 | Here is a matrix of mmap possibilities: | |
11319 | mmap private not fixed | |
11320 | mmap private fixed at somewhere currently unmapped | |
11321 | mmap private fixed at somewhere already mapped | |
11322 | mmap shared not fixed | |
11323 | mmap shared fixed at somewhere currently unmapped | |
11324 | mmap shared fixed at somewhere already mapped | |
11325 | For private mappings, we should verify that changes cannot be read() | |
11326 | back from the file, nor mmap's back from the file at a different | |
11327 | address. (There have been systems where private was not correctly | |
11328 | implemented like the infamous i386 svr4.0, and systems where the | |
a8aea176 | 11329 | VM page cache was not coherent with the file system buffer cache |
dfac8a13 TT |
11330 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
11331 | For shared mappings, we should conversely verify that changes get | |
a8aea176 | 11332 | propagated back to all the places they're supposed to be. |
c45f211e | 11333 | |
dfac8a13 TT |
11334 | Grep wants private fixed already mapped. |
11335 | The main things grep needs to know about mmap are: | |
11336 | * does it exist and is it safe to write into the mmap'd area | |
11337 | * how to use it (BSD variants) */ | |
a8aea176 | 11338 | |
dfac8a13 | 11339 | #include <fcntl.h> |
c45f211e | 11340 | #include <sys/mman.h> |
dfac8a13 | 11341 | |
5213506e | 11342 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
a8aea176 NN |
11343 | char *malloc (); |
11344 | #endif | |
dfac8a13 | 11345 | |
a8aea176 | 11346 | /* This mess was copied from the GNU getpagesize.h. */ |
5213506e | 11347 | #ifndef HAVE_GETPAGESIZE |
dfac8a13 TT |
11348 | # ifdef _SC_PAGESIZE |
11349 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
11350 | # else /* no _SC_PAGESIZE */ | |
5213506e | 11351 | # ifdef HAVE_SYS_PARAM_H |
dfac8a13 TT |
11352 | # include <sys/param.h> |
11353 | # ifdef EXEC_PAGESIZE | |
11354 | # define getpagesize() EXEC_PAGESIZE | |
11355 | # else /* no EXEC_PAGESIZE */ | |
11356 | # ifdef NBPG | |
11357 | # define getpagesize() NBPG * CLSIZE | |
11358 | # ifndef CLSIZE | |
11359 | # define CLSIZE 1 | |
11360 | # endif /* no CLSIZE */ | |
11361 | # else /* no NBPG */ | |
11362 | # ifdef NBPC | |
11363 | # define getpagesize() NBPC | |
11364 | # else /* no NBPC */ | |
11365 | # ifdef PAGESIZE | |
11366 | # define getpagesize() PAGESIZE | |
11367 | # endif /* PAGESIZE */ | |
11368 | # endif /* no NBPC */ | |
11369 | # endif /* no NBPG */ | |
11370 | # endif /* no EXEC_PAGESIZE */ | |
11371 | # else /* no HAVE_SYS_PARAM_H */ | |
11372 | # define getpagesize() 8192 /* punt totally */ | |
11373 | # endif /* no HAVE_SYS_PARAM_H */ | |
11374 | # endif /* no _SC_PAGESIZE */ | |
11375 | ||
11376 | #endif /* no HAVE_GETPAGESIZE */ | |
11377 | ||
dfac8a13 | 11378 | int |
a8aea176 | 11379 | main () |
dfac8a13 | 11380 | { |
a8aea176 | 11381 | char *data, *data2, *data3; |
22e05272 | 11382 | const char *cdata2; |
a8aea176 | 11383 | int i, pagesize; |
22e05272 | 11384 | int fd, fd2; |
a8aea176 NN |
11385 | |
11386 | pagesize = getpagesize (); | |
11387 | ||
11388 | /* First, make a file with some known garbage in it. */ | |
11389 | data = (char *) malloc (pagesize); | |
11390 | if (!data) | |
5213506e | 11391 | return 1; |
a8aea176 NN |
11392 | for (i = 0; i < pagesize; ++i) |
11393 | *(data + i) = rand (); | |
11394 | umask (0); | |
11395 | fd = creat ("conftest.mmap", 0600); | |
11396 | if (fd < 0) | |
22e05272 | 11397 | return 2; |
a8aea176 | 11398 | if (write (fd, data, pagesize) != pagesize) |
22e05272 | 11399 | return 3; |
a8aea176 NN |
11400 | close (fd); |
11401 | ||
22e05272 JM |
11402 | /* Next, check that the tail of a page is zero-filled. File must have |
11403 | non-zero length, otherwise we risk SIGBUS for entire page. */ | |
11404 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
11405 | if (fd2 < 0) | |
11406 | return 4; | |
11407 | cdata2 = ""; | |
11408 | if (write (fd2, cdata2, 1) != 1) | |
11409 | return 5; | |
11410 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | |
11411 | if (data2 == MAP_FAILED) | |
11412 | return 6; | |
11413 | for (i = 0; i < pagesize; ++i) | |
11414 | if (*(data2 + i)) | |
11415 | return 7; | |
11416 | close (fd2); | |
11417 | if (munmap (data2, pagesize)) | |
11418 | return 8; | |
11419 | ||
a8aea176 NN |
11420 | /* Next, try to mmap the file at a fixed address which already has |
11421 | something else allocated at it. If we can, also make sure that | |
11422 | we see the same garbage. */ | |
11423 | fd = open ("conftest.mmap", O_RDWR); | |
11424 | if (fd < 0) | |
22e05272 | 11425 | return 9; |
a8aea176 NN |
11426 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
11427 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
22e05272 | 11428 | return 10; |
a8aea176 NN |
11429 | for (i = 0; i < pagesize; ++i) |
11430 | if (*(data + i) != *(data2 + i)) | |
22e05272 | 11431 | return 11; |
a8aea176 NN |
11432 | |
11433 | /* Finally, make sure that changes to the mapped area do not | |
11434 | percolate back to the file as seen by read(). (This is a bug on | |
11435 | some variants of i386 svr4.0.) */ | |
11436 | for (i = 0; i < pagesize; ++i) | |
11437 | *(data2 + i) = *(data2 + i) + 1; | |
11438 | data3 = (char *) malloc (pagesize); | |
11439 | if (!data3) | |
22e05272 | 11440 | return 12; |
a8aea176 | 11441 | if (read (fd, data3, pagesize) != pagesize) |
22e05272 | 11442 | return 13; |
a8aea176 NN |
11443 | for (i = 0; i < pagesize; ++i) |
11444 | if (*(data + i) != *(data3 + i)) | |
22e05272 | 11445 | return 14; |
a8aea176 | 11446 | close (fd); |
5213506e | 11447 | return 0; |
c45f211e | 11448 | } |
a8aea176 | 11449 | _ACEOF |
5213506e | 11450 | if ac_fn_c_try_run "$LINENO"; then : |
dfac8a13 TT |
11451 | ac_cv_func_mmap_fixed_mapped=yes |
11452 | else | |
5213506e | 11453 | ac_cv_func_mmap_fixed_mapped=no |
dfac8a13 | 11454 | fi |
5213506e RW |
11455 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
11456 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
dfac8a13 | 11457 | fi |
5213506e | 11458 | |
dfac8a13 | 11459 | fi |
5213506e RW |
11460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
11461 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
dfac8a13 | 11462 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
a8aea176 | 11463 | |
5213506e | 11464 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
dfac8a13 TT |
11465 | |
11466 | fi | |
22e05272 | 11467 | rm -f conftest.mmap conftest.txt |
dfac8a13 | 11468 | |
a8aea176 | 11469 | fi |
5213506e RW |
11470 | for ac_func in memcpy strerror |
11471 | do : | |
11472 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
11473 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
22e05272 | 11474 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
a8aea176 | 11475 | cat >>confdefs.h <<_ACEOF |
5213506e | 11476 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a8aea176 | 11477 | _ACEOF |
dfac8a13 | 11478 | |
dfac8a13 TT |
11479 | fi |
11480 | done | |
11481 | ||
79a9a529 TT |
11482 | fi |
11483 | ||
a8aea176 | 11484 | for ac_header in unistd.h |
5213506e RW |
11485 | do : |
11486 | ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" | |
22e05272 | 11487 | if test "x$ac_cv_header_unistd_h" = xyes; then : |
a8aea176 | 11488 | cat >>confdefs.h <<_ACEOF |
5213506e | 11489 | #define HAVE_UNISTD_H 1 |
a8aea176 NN |
11490 | _ACEOF |
11491 | ||
11492 | fi | |
11493 | ||
dfac8a13 TT |
11494 | done |
11495 | ||
11496 | ||
e8e66971 MR |
11497 | |
11498 | # Check whether --with-toolexeclibdir was given. | |
11499 | if test "${with_toolexeclibdir+set}" = set; then : | |
11500 | withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in | |
11501 | /) | |
11502 | ;; | |
11503 | */) | |
11504 | with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'` | |
11505 | ;; | |
11506 | esac | |
11507 | else | |
11508 | with_toolexeclibdir=no | |
11509 | fi | |
11510 | ||
11511 | ||
11512 | ||
0ccf2c33 AO |
11513 | if test -n "$with_cross_host" && |
11514 | test x"$with_cross_host" != x"no"; then | |
11515 | toolexecdir='$(exec_prefix)/$(target_alias)' | |
e8e66971 MR |
11516 | case ${with_toolexeclibdir} in |
11517 | no) | |
11518 | toolexeclibdir='$(toolexecdir)/lib' | |
11519 | ;; | |
11520 | *) | |
11521 | toolexeclibdir=${with_toolexeclibdir} | |
11522 | ;; | |
11523 | esac | |
b48ed568 | 11524 | else |
0ccf2c33 AO |
11525 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)' |
11526 | toolexeclibdir='$(libdir)' | |
b48ed568 | 11527 | fi |
905280ac AO |
11528 | if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then |
11529 | multiosdir=/`$CC -print-multi-os-directory` | |
ff8b9ca8 AS |
11530 | case $multiosdir in |
11531 | /.) multiosdir= ;; # Avoid trailing /. | |
11532 | esac | |
905280ac AO |
11533 | else |
11534 | multiosdir= | |
11535 | fi | |
11536 | toolexeclibdir=${toolexeclibdir}${multiosdir} | |
0ccf2c33 AO |
11537 | |
11538 | ||
11539 | ||
5213506e | 11540 | if test -n "$with_target_subdir"; then |
e093c992 AG |
11541 | TARGET_LIBRARY_TRUE= |
11542 | TARGET_LIBRARY_FALSE='#' | |
11543 | else | |
11544 | TARGET_LIBRARY_TRUE='#' | |
11545 | TARGET_LIBRARY_FALSE= | |
11546 | fi | |
11547 | ||
9fabf579 | 11548 | |
dfac8a13 TT |
11549 | if test "${multilib}" = "yes"; then |
11550 | multilib_arg="--enable-multilib" | |
11551 | else | |
11552 | multilib_arg= | |
11553 | fi | |
11554 | ||
b6cb10af | 11555 | # Enable --enable-host-shared. |
459260ec DM |
11556 | # Check whether --enable-host-shared was given. |
11557 | if test "${enable_host_shared+set}" = set; then : | |
b6cb10af MP |
11558 | enableval=$enable_host_shared; |
11559 | fi | |
11560 | ||
11561 | ||
11562 | ||
11563 | # Enable --enable-host-pie. | |
11564 | # Check whether --enable-host-pie was given. | |
11565 | if test "${enable_host_pie+set}" = set; then : | |
11566 | enableval=$enable_host_pie; | |
11567 | fi | |
11568 | ||
11569 | ||
11570 | ||
11571 | if test x$enable_host_shared = xyes; then | |
11572 | PICFLAG=-fPIC | |
11573 | elif test x$enable_host_pie = xyes; then | |
11574 | PICFLAG=-fPIE | |
459260ec DM |
11575 | else |
11576 | PICFLAG= | |
11577 | fi | |
11578 | ||
11579 | ||
5213506e | 11580 | ac_config_files="$ac_config_files Makefile" |
a8aea176 | 11581 | |
a8aea176 | 11582 | cat >confcache <<\_ACEOF |
dfac8a13 TT |
11583 | # This file is a shell script that caches the results of configure |
11584 | # tests run on this system so they can be shared between configure | |
a8aea176 NN |
11585 | # scripts and configure runs, see configure's option --config-cache. |
11586 | # It is not useful on other systems. If it contains results you don't | |
11587 | # want to keep, you may remove or edit it. | |
dfac8a13 | 11588 | # |
a8aea176 NN |
11589 | # config.status only pays attention to the cache file if you give it |
11590 | # the --recheck option to rerun configure. | |
dfac8a13 | 11591 | # |
a8aea176 NN |
11592 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
11593 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11594 | # following values. | |
11595 | ||
11596 | _ACEOF | |
11597 | ||
dfac8a13 TT |
11598 | # The following way of writing the cache mishandles newlines in values, |
11599 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 11600 | # So, we kill variables containing newlines. |
dfac8a13 TT |
11601 | # Ultrix sh set writes to stderr and can't be redirected directly, |
11602 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
11603 | ( |
11604 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
11605 | eval ac_val=\$$ac_var | |
11606 | case $ac_val in #( | |
11607 | *${as_nl}*) | |
11608 | case $ac_var in #( | |
11609 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
11610 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
11611 | esac | |
11612 | case $ac_var in #( | |
11613 | _ | IFS | as_nl) ;; #( | |
11614 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
11615 | *) { eval $ac_var=; unset $ac_var;} ;; | |
11616 | esac ;; | |
11617 | esac | |
11618 | done | |
11619 | ||
a8aea176 | 11620 | (set) 2>&1 | |
5213506e RW |
11621 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
11622 | *${as_nl}ac_space=\ *) | |
11623 | # `set' does not quote correctly, so add quotes: double-quote | |
11624 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
a8aea176 NN |
11625 | sed -n \ |
11626 | "s/'/'\\\\''/g; | |
11627 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 11628 | ;; #( |
a8aea176 NN |
11629 | *) |
11630 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 11631 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
a8aea176 | 11632 | ;; |
5213506e RW |
11633 | esac | |
11634 | sort | |
11635 | ) | | |
a8aea176 | 11636 | sed ' |
5213506e | 11637 | /^ac_cv_env_/b end |
a8aea176 | 11638 | t clear |
5213506e | 11639 | :clear |
a8aea176 NN |
11640 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
11641 | t end | |
5213506e RW |
11642 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
11643 | :end' >>confcache | |
11644 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
11645 | if test -w "$cache_file"; then | |
22e05272 | 11646 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
11647 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
11648 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
11649 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
11650 | cat confcache >"$cache_file" | |
11651 | else | |
11652 | case $cache_file in #( | |
11653 | */* | ?:*) | |
11654 | mv -f confcache "$cache_file"$$ && | |
11655 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
11656 | *) | |
11657 | mv -f confcache "$cache_file" ;; | |
11658 | esac | |
11659 | fi | |
11660 | fi | |
dfac8a13 | 11661 | else |
5213506e RW |
11662 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
11663 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
dfac8a13 TT |
11664 | fi |
11665 | fi | |
11666 | rm -f confcache | |
11667 | ||
dfac8a13 TT |
11668 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
11669 | # Let make expand exec_prefix. | |
11670 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
11671 | ||
dfac8a13 TT |
11672 | # Transform confdefs.h into DEFS. |
11673 | # Protect against shell expansion while executing Makefile rules. | |
11674 | # Protect against Makefile macro expansion. | |
a8aea176 NN |
11675 | # |
11676 | # If the first sed substitution is executed (which looks for macros that | |
5213506e | 11677 | # take arguments), then branch to the quote section. Otherwise, |
a8aea176 | 11678 | # look for a macro that doesn't take arguments. |
5213506e RW |
11679 | ac_script=' |
11680 | :mline | |
11681 | /\\$/{ | |
11682 | N | |
11683 | s,\\\n,, | |
11684 | b mline | |
11685 | } | |
a8aea176 | 11686 | t clear |
5213506e RW |
11687 | :clear |
11688 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
a8aea176 | 11689 | t quote |
5213506e | 11690 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
a8aea176 | 11691 | t quote |
5213506e RW |
11692 | b any |
11693 | :quote | |
11694 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
11695 | s/\[/\\&/g | |
11696 | s/\]/\\&/g | |
11697 | s/\$/$$/g | |
11698 | H | |
11699 | :any | |
11700 | ${ | |
11701 | g | |
11702 | s/^\n// | |
11703 | s/\n/ /g | |
11704 | p | |
11705 | } | |
11706 | ' | |
11707 | DEFS=`sed -n "$ac_script" confdefs.h` | |
a8aea176 NN |
11708 | |
11709 | ||
11710 | ac_libobjs= | |
11711 | ac_ltlibobjs= | |
22e05272 | 11712 | U= |
a8aea176 NN |
11713 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
11714 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
11715 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
11716 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
11717 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
11718 | # will be set to the directory where LIBOBJS objects are built. | |
11719 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
11720 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
a8aea176 NN |
11721 | done |
11722 | LIBOBJS=$ac_libobjs | |
dfac8a13 | 11723 | |
a8aea176 | 11724 | LTLIBOBJS=$ac_ltlibobjs |
dfac8a13 | 11725 | |
dfac8a13 | 11726 | |
22e05272 JM |
11727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
11728 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
11729 | if test -n "$am_sleep_pid"; then | |
11730 | # Hide warnings about reused PIDs. | |
11731 | wait $am_sleep_pid 2>/dev/null | |
11732 | fi | |
11733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
11734 | $as_echo "done" >&6; } | |
5213506e RW |
11735 | if test -n "$EXEEXT"; then |
11736 | am__EXEEXT_TRUE= | |
11737 | am__EXEEXT_FALSE='#' | |
11738 | else | |
11739 | am__EXEEXT_TRUE='#' | |
11740 | am__EXEEXT_FALSE= | |
11741 | fi | |
11742 | ||
9fabf579 | 11743 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
22e05272 | 11744 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
5213506e | 11745 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
9fabf579 KC |
11746 | fi |
11747 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
22e05272 | 11748 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
5213506e | 11749 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
9fabf579 KC |
11750 | fi |
11751 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
22e05272 | 11752 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
5213506e | 11753 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
9fabf579 KC |
11754 | fi |
11755 | if test -z "${TARGET_LIBRARY_TRUE}" && test -z "${TARGET_LIBRARY_FALSE}"; then | |
22e05272 | 11756 | as_fn_error $? "conditional \"TARGET_LIBRARY\" was never defined. |
5213506e | 11757 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
9fabf579 | 11758 | fi |
a8aea176 | 11759 | |
22e05272 | 11760 | : "${CONFIG_STATUS=./config.status}" |
5213506e | 11761 | ac_write_fail=0 |
a8aea176 NN |
11762 | ac_clean_files_save=$ac_clean_files |
11763 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
11764 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
11765 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
11766 | as_write_fail=0 | |
11767 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
a8aea176 NN |
11768 | #! $SHELL |
11769 | # Generated by $as_me. | |
dfac8a13 | 11770 | # Run this file to recreate the current configuration. |
dfac8a13 | 11771 | # Compiler output produced by configure, useful for debugging |
a8aea176 NN |
11772 | # configure, is in config.log if it exists. |
11773 | ||
11774 | debug=false | |
11775 | ac_cs_recheck=false | |
11776 | ac_cs_silent=false | |
a8aea176 | 11777 | |
5213506e RW |
11778 | SHELL=\${CONFIG_SHELL-$SHELL} |
11779 | export SHELL | |
11780 | _ASEOF | |
11781 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
11782 | ## -------------------- ## | |
11783 | ## M4sh Initialization. ## | |
11784 | ## -------------------- ## | |
11785 | ||
11786 | # Be more Bourne compatible | |
11787 | DUALCASE=1; export DUALCASE # for MKS sh | |
11788 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
a8aea176 NN |
11789 | emulate sh |
11790 | NULLCMD=: | |
5213506e | 11791 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
a8aea176 NN |
11792 | # is contrary to our usage. Disable this feature. |
11793 | alias -g '${1+"$@"}'='"$@"' | |
5213506e | 11794 | setopt NO_GLOB_SUBST |
a8aea176 | 11795 | else |
5213506e RW |
11796 | case `(set -o) 2>/dev/null` in #( |
11797 | *posix*) : | |
11798 | set -o posix ;; #( | |
11799 | *) : | |
11800 | ;; | |
11801 | esac | |
a8aea176 | 11802 | fi |
dfac8a13 | 11803 | |
a8aea176 | 11804 | |
5213506e RW |
11805 | as_nl=' |
11806 | ' | |
11807 | export as_nl | |
11808 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
11809 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
11810 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
11811 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
11812 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
11813 | # but without wasting forks for bash or zsh. | |
11814 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
11815 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
11816 | as_echo='print -r --' | |
11817 | as_echo_n='print -rn --' | |
11818 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
11819 | as_echo='printf %s\n' | |
11820 | as_echo_n='printf %s' | |
11821 | else | |
11822 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
11823 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
11824 | as_echo_n='/usr/ucb/echo -n' | |
a8aea176 | 11825 | else |
5213506e RW |
11826 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
11827 | as_echo_n_body='eval | |
11828 | arg=$1; | |
11829 | case $arg in #( | |
11830 | *"$as_nl"*) | |
11831 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
11832 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
11833 | esac; | |
11834 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
11835 | ' | |
11836 | export as_echo_n_body | |
11837 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
a8aea176 | 11838 | fi |
5213506e RW |
11839 | export as_echo_body |
11840 | as_echo='sh -c $as_echo_body as_echo' | |
a8aea176 | 11841 | fi |
dfac8a13 | 11842 | |
a8aea176 NN |
11843 | # The user is always right. |
11844 | if test "${PATH_SEPARATOR+set}" != set; then | |
5213506e RW |
11845 | PATH_SEPARATOR=: |
11846 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
11847 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
11848 | PATH_SEPARATOR=';' | |
11849 | } | |
a8aea176 | 11850 | fi |
dfac8a13 | 11851 | |
dfac8a13 | 11852 | |
5213506e RW |
11853 | # IFS |
11854 | # We need space, tab and new line, in precisely that order. Quoting is | |
11855 | # there to prevent editors from complaining about space-tab. | |
11856 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
11857 | # splitting by setting IFS to empty value.) | |
11858 | IFS=" "" $as_nl" | |
11859 | ||
11860 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 11861 | as_myself= |
5213506e RW |
11862 | case $0 in #(( |
11863 | *[\\/]* ) as_myself=$0 ;; | |
11864 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
a8aea176 NN |
11865 | for as_dir in $PATH |
11866 | do | |
11867 | IFS=$as_save_IFS | |
11868 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11869 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
11870 | done | |
11871 | IFS=$as_save_IFS | |
11872 | ||
11873 | ;; | |
11874 | esac | |
11875 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
11876 | # in which case we are not to be found in the path. | |
11877 | if test "x$as_myself" = x; then | |
11878 | as_myself=$0 | |
11879 | fi | |
11880 | if test ! -f "$as_myself"; then | |
11881 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
11882 | exit 1 | |
11883 | fi | |
11884 | ||
11885 | # Unset variables that we do not need and which cause bugs (e.g. in | |
11886 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
11887 | # suppresses any "Segmentation fault" message there. '((' could | |
11888 | # trigger a bug in pdksh 5.2.14. | |
11889 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
11890 | do eval test x\${$as_var+set} = xset \ | |
11891 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
a8aea176 | 11892 | done |
5213506e RW |
11893 | PS1='$ ' |
11894 | PS2='> ' | |
11895 | PS4='+ ' | |
dfac8a13 | 11896 | |
5213506e RW |
11897 | # NLS nuisances. |
11898 | LC_ALL=C | |
11899 | export LC_ALL | |
11900 | LANGUAGE=C | |
11901 | export LANGUAGE | |
11902 | ||
11903 | # CDPATH. | |
11904 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
11905 | ||
11906 | ||
22e05272 JM |
11907 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
11908 | # ---------------------------------------- | |
5213506e RW |
11909 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
11910 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 11911 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
11912 | as_fn_error () |
11913 | { | |
22e05272 JM |
11914 | as_status=$1; test $as_status -eq 0 && as_status=1 |
11915 | if test "$4"; then | |
11916 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
11917 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
dfac8a13 | 11918 | fi |
22e05272 | 11919 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
11920 | as_fn_exit $as_status |
11921 | } # as_fn_error | |
dfac8a13 | 11922 | |
a8aea176 | 11923 | |
5213506e RW |
11924 | # as_fn_set_status STATUS |
11925 | # ----------------------- | |
11926 | # Set $? to STATUS, without forking. | |
11927 | as_fn_set_status () | |
11928 | { | |
11929 | return $1 | |
11930 | } # as_fn_set_status | |
dfac8a13 | 11931 | |
5213506e RW |
11932 | # as_fn_exit STATUS |
11933 | # ----------------- | |
11934 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
11935 | as_fn_exit () | |
11936 | { | |
11937 | set +e | |
11938 | as_fn_set_status $1 | |
11939 | exit $1 | |
11940 | } # as_fn_exit | |
11941 | ||
11942 | # as_fn_unset VAR | |
11943 | # --------------- | |
11944 | # Portably unset VAR. | |
11945 | as_fn_unset () | |
11946 | { | |
11947 | { eval $1=; unset $1;} | |
11948 | } | |
11949 | as_unset=as_fn_unset | |
11950 | # as_fn_append VAR VALUE | |
11951 | # ---------------------- | |
11952 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
11953 | # advantage of any shell optimizations that allow amortized linear growth over | |
11954 | # repeated appends, instead of the typical quadratic growth present in naive | |
11955 | # implementations. | |
11956 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
11957 | eval 'as_fn_append () | |
11958 | { | |
11959 | eval $1+=\$2 | |
11960 | }' | |
11961 | else | |
11962 | as_fn_append () | |
11963 | { | |
11964 | eval $1=\$$1\$2 | |
11965 | } | |
11966 | fi # as_fn_append | |
11967 | ||
11968 | # as_fn_arith ARG... | |
11969 | # ------------------ | |
11970 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
11971 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
11972 | # must be portable across $(()) and expr. | |
11973 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
11974 | eval 'as_fn_arith () | |
11975 | { | |
11976 | as_val=$(( $* )) | |
11977 | }' | |
11978 | else | |
11979 | as_fn_arith () | |
11980 | { | |
11981 | as_val=`expr "$@" || test $? -eq 1` | |
11982 | } | |
11983 | fi # as_fn_arith | |
dfac8a13 | 11984 | |
dfac8a13 | 11985 | |
5213506e RW |
11986 | if expr a : '\(a\)' >/dev/null 2>&1 && |
11987 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
a8aea176 NN |
11988 | as_expr=expr |
11989 | else | |
11990 | as_expr=false | |
11991 | fi | |
11992 | ||
5213506e RW |
11993 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
11994 | as_basename=basename | |
11995 | else | |
11996 | as_basename=false | |
11997 | fi | |
11998 | ||
11999 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
12000 | as_dirname=dirname | |
12001 | else | |
12002 | as_dirname=false | |
12003 | fi | |
12004 | ||
12005 | as_me=`$as_basename -- "$0" || | |
12006 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
12007 | X"$0" : 'X\(//\)$' \| \ | |
12008 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
12009 | $as_echo X/"$0" | | |
12010 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
12011 | s//\1/ | |
12012 | q | |
12013 | } | |
12014 | /^X\/\(\/\/\)$/{ | |
12015 | s//\1/ | |
12016 | q | |
12017 | } | |
12018 | /^X\/\(\/\).*/{ | |
12019 | s//\1/ | |
12020 | q | |
12021 | } | |
12022 | s/.*/./; q'` | |
12023 | ||
12024 | # Avoid depending upon Character Ranges. | |
12025 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12026 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
12027 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
12028 | as_cr_digits='0123456789' | |
12029 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
12030 | ||
12031 | ECHO_C= ECHO_N= ECHO_T= | |
12032 | case `echo -n x` in #((((( | |
12033 | -n*) | |
12034 | case `echo 'xy\c'` in | |
12035 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
12036 | xy) ECHO_C='\c';; | |
12037 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
12038 | ECHO_T=' ';; | |
12039 | esac;; | |
12040 | *) | |
12041 | ECHO_N='-n';; | |
12042 | esac | |
12043 | ||
a8aea176 | 12044 | rm -f conf$$ conf$$.exe conf$$.file |
5213506e RW |
12045 | if test -d conf$$.dir; then |
12046 | rm -f conf$$.dir/conf$$.file | |
12047 | else | |
12048 | rm -f conf$$.dir | |
12049 | mkdir conf$$.dir 2>/dev/null | |
12050 | fi | |
12051 | if (echo >conf$$.file) 2>/dev/null; then | |
12052 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
a8aea176 | 12053 | as_ln_s='ln -s' |
5213506e RW |
12054 | # ... but there are two gotchas: |
12055 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
12056 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 12057 | # In both cases, we have to default to `cp -pR'. |
5213506e | 12058 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 12059 | as_ln_s='cp -pR' |
5213506e RW |
12060 | elif ln conf$$.file conf$$ 2>/dev/null; then |
12061 | as_ln_s=ln | |
12062 | else | |
22e05272 | 12063 | as_ln_s='cp -pR' |
dfac8a13 | 12064 | fi |
a8aea176 | 12065 | else |
22e05272 | 12066 | as_ln_s='cp -pR' |
a8aea176 | 12067 | fi |
5213506e RW |
12068 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
12069 | rmdir conf$$.dir 2>/dev/null | |
12070 | ||
12071 | ||
12072 | # as_fn_mkdir_p | |
12073 | # ------------- | |
12074 | # Create "$as_dir" as a directory, including parents if necessary. | |
12075 | as_fn_mkdir_p () | |
12076 | { | |
12077 | ||
12078 | case $as_dir in #( | |
12079 | -*) as_dir=./$as_dir;; | |
12080 | esac | |
12081 | test -d "$as_dir" || eval $as_mkdir_p || { | |
12082 | as_dirs= | |
12083 | while :; do | |
12084 | case $as_dir in #( | |
12085 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
12086 | *) as_qdir=$as_dir;; | |
12087 | esac | |
12088 | as_dirs="'$as_qdir' $as_dirs" | |
12089 | as_dir=`$as_dirname -- "$as_dir" || | |
12090 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12091 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12092 | X"$as_dir" : 'X\(//\)$' \| \ | |
12093 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
12094 | $as_echo X"$as_dir" | | |
12095 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
12096 | s//\1/ | |
12097 | q | |
12098 | } | |
12099 | /^X\(\/\/\)[^/].*/{ | |
12100 | s//\1/ | |
12101 | q | |
12102 | } | |
12103 | /^X\(\/\/\)$/{ | |
12104 | s//\1/ | |
12105 | q | |
12106 | } | |
12107 | /^X\(\/\).*/{ | |
12108 | s//\1/ | |
12109 | q | |
12110 | } | |
12111 | s/.*/./; q'` | |
12112 | test -d "$as_dir" && break | |
12113 | done | |
12114 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 12115 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e | 12116 | |
dfac8a13 | 12117 | |
5213506e | 12118 | } # as_fn_mkdir_p |
a8aea176 | 12119 | if mkdir -p . 2>/dev/null; then |
5213506e | 12120 | as_mkdir_p='mkdir -p "$as_dir"' |
a8aea176 NN |
12121 | else |
12122 | test -d ./-p && rmdir ./-p | |
12123 | as_mkdir_p=false | |
12124 | fi | |
12125 | ||
22e05272 JM |
12126 | |
12127 | # as_fn_executable_p FILE | |
12128 | # ----------------------- | |
12129 | # Test if FILE is an executable regular file. | |
12130 | as_fn_executable_p () | |
12131 | { | |
12132 | test -f "$1" && test -x "$1" | |
12133 | } # as_fn_executable_p | |
12134 | as_test_x='test -x' | |
12135 | as_executable_p=as_fn_executable_p | |
dfac8a13 | 12136 | |
a8aea176 NN |
12137 | # Sed expression to map a string onto a valid CPP name. |
12138 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
12139 | ||
12140 | # Sed expression to map a string onto a valid variable name. | |
12141 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
12142 | ||
12143 | ||
a8aea176 | 12144 | exec 6>&1 |
5213506e RW |
12145 | ## ----------------------------------- ## |
12146 | ## Main body of $CONFIG_STATUS script. ## | |
12147 | ## ----------------------------------- ## | |
12148 | _ASEOF | |
12149 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
12150 | ||
12151 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12152 | # Save the log message, to keep $0 and so on meaningful, and to | |
a8aea176 | 12153 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
12154 | # values after options handling. |
12155 | ac_log=" | |
22e05272 JM |
12156 | This file was extended by zlib $as_me 1.1.4, which was |
12157 | generated by GNU Autoconf 2.69. Invocation command line was | |
a8aea176 NN |
12158 | |
12159 | CONFIG_FILES = $CONFIG_FILES | |
12160 | CONFIG_HEADERS = $CONFIG_HEADERS | |
12161 | CONFIG_LINKS = $CONFIG_LINKS | |
12162 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12163 | $ $0 $@ | |
12164 | ||
5213506e RW |
12165 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
12166 | " | |
12167 | ||
a8aea176 NN |
12168 | _ACEOF |
12169 | ||
5213506e RW |
12170 | case $ac_config_files in *" |
12171 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
12172 | esac | |
a8aea176 | 12173 | |
a8aea176 | 12174 | |
a8aea176 | 12175 | |
5213506e RW |
12176 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
12177 | # Files that config.status was made for. | |
12178 | config_files="$ac_config_files" | |
12179 | config_commands="$ac_config_commands" | |
a8aea176 | 12180 | |
5213506e | 12181 | _ACEOF |
a8aea176 | 12182 | |
5213506e | 12183 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
a8aea176 | 12184 | ac_cs_usage="\ |
5213506e RW |
12185 | \`$as_me' instantiates files and other configuration actions |
12186 | from templates according to the current configuration. Unless the files | |
12187 | and actions are specified as TAGs, all are instantiated by default. | |
a8aea176 | 12188 | |
5213506e | 12189 | Usage: $0 [OPTION]... [TAG]... |
a8aea176 NN |
12190 | |
12191 | -h, --help print this help, then exit | |
5213506e | 12192 | -V, --version print version number and configuration settings, then exit |
22e05272 | 12193 | --config print configuration, then exit |
5213506e RW |
12194 | -q, --quiet, --silent |
12195 | do not print progress messages | |
a8aea176 NN |
12196 | -d, --debug don't remove temporary files |
12197 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
12198 | --file=FILE[:TEMPLATE] |
12199 | instantiate the configuration file FILE | |
a8aea176 NN |
12200 | |
12201 | Configuration files: | |
12202 | $config_files | |
12203 | ||
12204 | Configuration commands: | |
12205 | $config_commands | |
12206 | ||
5213506e | 12207 | Report bugs to the package provider." |
a8aea176 | 12208 | |
5213506e RW |
12209 | _ACEOF |
12210 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 12211 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
a8aea176 | 12212 | ac_cs_version="\\ |
22e05272 JM |
12213 | zlib config.status 1.1.4 |
12214 | configured by $0, generated by GNU Autoconf 2.69, | |
12215 | with options \\"\$ac_cs_config\\" | |
a8aea176 | 12216 | |
22e05272 | 12217 | Copyright (C) 2012 Free Software Foundation, Inc. |
a8aea176 NN |
12218 | This config.status script is free software; the Free Software Foundation |
12219 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
12220 | |
12221 | ac_pwd='$ac_pwd' | |
12222 | srcdir='$srcdir' | |
12223 | INSTALL='$INSTALL' | |
12224 | MKDIR_P='$MKDIR_P' | |
12225 | AWK='$AWK' | |
12226 | test -n "\$AWK" || AWK=awk | |
a8aea176 NN |
12227 | _ACEOF |
12228 | ||
5213506e RW |
12229 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12230 | # The default lists apply if the user does not specify any file. | |
a8aea176 NN |
12231 | ac_need_defaults=: |
12232 | while test $# != 0 | |
12233 | do | |
12234 | case $1 in | |
22e05272 | 12235 | --*=?*) |
5213506e RW |
12236 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
12237 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
a8aea176 NN |
12238 | ac_shift=: |
12239 | ;; | |
22e05272 JM |
12240 | --*=) |
12241 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
12242 | ac_optarg= | |
12243 | ac_shift=: | |
12244 | ;; | |
5213506e | 12245 | *) |
a8aea176 NN |
12246 | ac_option=$1 |
12247 | ac_optarg=$2 | |
12248 | ac_shift=shift | |
12249 | ;; | |
dfac8a13 TT |
12250 | esac |
12251 | ||
a8aea176 NN |
12252 | case $ac_option in |
12253 | # Handling of the options. | |
a8aea176 NN |
12254 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
12255 | ac_cs_recheck=: ;; | |
5213506e RW |
12256 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
12257 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
12258 | --config | --confi | --conf | --con | --co | --c ) |
12259 | $as_echo "$ac_cs_config"; exit ;; | |
5213506e | 12260 | --debug | --debu | --deb | --de | --d | -d ) |
a8aea176 NN |
12261 | debug=: ;; |
12262 | --file | --fil | --fi | --f ) | |
12263 | $ac_shift | |
5213506e RW |
12264 | case $ac_optarg in |
12265 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 12266 | '') as_fn_error $? "missing file argument" ;; |
5213506e RW |
12267 | esac |
12268 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
a8aea176 | 12269 | ac_need_defaults=false;; |
5213506e RW |
12270 | --he | --h | --help | --hel | -h ) |
12271 | $as_echo "$ac_cs_usage"; exit ;; | |
a8aea176 NN |
12272 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
12273 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
12274 | ac_cs_silent=: ;; | |
12275 | ||
12276 | # This is an error. | |
22e05272 | 12277 | -*) as_fn_error $? "unrecognized option: \`$1' |
5213506e | 12278 | Try \`$0 --help' for more information." ;; |
a8aea176 | 12279 | |
5213506e RW |
12280 | *) as_fn_append ac_config_targets " $1" |
12281 | ac_need_defaults=false ;; | |
a8aea176 | 12282 | |
dfac8a13 | 12283 | esac |
a8aea176 NN |
12284 | shift |
12285 | done | |
dfac8a13 | 12286 | |
a8aea176 NN |
12287 | ac_configure_extra_args= |
12288 | ||
12289 | if $ac_cs_silent; then | |
12290 | exec 6>/dev/null | |
12291 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
12292 | fi | |
12293 | ||
12294 | _ACEOF | |
5213506e | 12295 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
a8aea176 | 12296 | if \$ac_cs_recheck; then |
22e05272 | 12297 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5213506e RW |
12298 | shift |
12299 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
12300 | CONFIG_SHELL='$SHELL' | |
12301 | export CONFIG_SHELL | |
12302 | exec "\$@" | |
a8aea176 NN |
12303 | fi |
12304 | ||
12305 | _ACEOF | |
5213506e RW |
12306 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12307 | exec 5>>config.log | |
12308 | { | |
12309 | echo | |
12310 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
12311 | ## Running $as_me. ## | |
12312 | _ASBOX | |
12313 | $as_echo "$ac_log" | |
12314 | } >&5 | |
a8aea176 | 12315 | |
5213506e RW |
12316 | _ACEOF |
12317 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
a8aea176 | 12318 | # |
5213506e | 12319 | # INIT-COMMANDS |
a8aea176 | 12320 | # |
dfac8a13 | 12321 | |
076e5443 PB |
12322 | srcdir="$srcdir" |
12323 | host="$host" | |
12324 | target="$target" | |
12325 | with_multisubdir="$with_multisubdir" | |
12326 | with_multisrctop="$with_multisrctop" | |
12327 | with_target_subdir="$with_target_subdir" | |
dfac8a13 | 12328 | ac_configure_args="${multilib_arg} ${ac_configure_args}" |
076e5443 | 12329 | multi_basedir="$multi_basedir" |
dfac8a13 | 12330 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
076e5443 | 12331 | CC="$CC" |
5213506e RW |
12332 | CXX="$CXX" |
12333 | GFORTRAN="$GFORTRAN" | |
22e05272 | 12334 | GDC="$GDC" |
076e5443 | 12335 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
a8aea176 | 12336 | |
1cf3d07d SE |
12337 | |
12338 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
12339 | # if CDPATH is set. | |
12340 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
12341 | ||
12342 | sed_quote_subst='$sed_quote_subst' | |
12343 | double_quote_subst='$double_quote_subst' | |
12344 | delay_variable_subst='$delay_variable_subst' | |
43e02a8a RW |
12345 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
12346 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
12347 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
12348 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
12349 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
12350 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
12351 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
12352 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
12353 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
12354 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
12355 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
12356 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
12357 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
12358 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
12359 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
12360 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
12361 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
12362 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
12363 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
12364 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
12365 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
12366 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
12367 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
12368 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
12369 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
12370 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
12371 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
12372 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
12373 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
12374 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
12375 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
12376 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
12377 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
12378 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
12379 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
12380 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
12381 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
12382 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
12383 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
12384 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
12385 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
12386 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
12387 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
12388 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
12389 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
12390 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
12391 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
12392 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
12393 | 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"`' | |
12394 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
12395 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
12396 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
12397 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
12398 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
12399 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
12400 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
12401 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
12402 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
12403 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
12404 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
12405 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
12406 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
12407 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
12408 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
12409 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
12410 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
12411 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
12412 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
12413 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
12414 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
12415 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
12416 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
12417 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
12418 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
12419 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
12420 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
12421 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
12422 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
12423 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
12424 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
12425 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
12426 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
12427 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
12428 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
12429 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
12430 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
12431 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
12432 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
12433 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
12434 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
12435 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
12436 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
12437 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
12438 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
12439 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
12440 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
12441 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
12442 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
12443 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
12444 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
12445 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
12446 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
12447 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
12448 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
12449 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
12450 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
12451 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
12452 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
12453 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
12454 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
12455 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
12456 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
12457 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
12458 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
12459 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
12460 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
12461 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
12462 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
12463 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
12464 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
1cf3d07d SE |
12465 | |
12466 | LTCC='$LTCC' | |
12467 | LTCFLAGS='$LTCFLAGS' | |
12468 | compiler='$compiler_DEFAULT' | |
12469 | ||
43e02a8a RW |
12470 | # A function that is used when there is no print builtin or printf. |
12471 | func_fallback_echo () | |
12472 | { | |
12473 | eval 'cat <<_LTECHO_EOF | |
12474 | \$1 | |
12475 | _LTECHO_EOF' | |
12476 | } | |
12477 | ||
1cf3d07d | 12478 | # Quote evaled strings. |
43e02a8a RW |
12479 | for var in SHELL \ |
12480 | ECHO \ | |
12481 | SED \ | |
1cf3d07d SE |
12482 | GREP \ |
12483 | EGREP \ | |
12484 | FGREP \ | |
12485 | LD \ | |
12486 | NM \ | |
12487 | LN_S \ | |
12488 | lt_SP2NL \ | |
12489 | lt_NL2SP \ | |
12490 | reload_flag \ | |
18d98188 | 12491 | OBJDUMP \ |
1cf3d07d SE |
12492 | deplibs_check_method \ |
12493 | file_magic_cmd \ | |
12494 | AR \ | |
12495 | AR_FLAGS \ | |
12496 | STRIP \ | |
12497 | RANLIB \ | |
12498 | CC \ | |
12499 | CFLAGS \ | |
12500 | compiler \ | |
12501 | lt_cv_sys_global_symbol_pipe \ | |
12502 | lt_cv_sys_global_symbol_to_cdecl \ | |
12503 | lt_cv_sys_global_symbol_to_c_name_address \ | |
18d98188 | 12504 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
1cf3d07d SE |
12505 | lt_prog_compiler_no_builtin_flag \ |
12506 | lt_prog_compiler_wl \ | |
12507 | lt_prog_compiler_pic \ | |
12508 | lt_prog_compiler_static \ | |
12509 | lt_cv_prog_compiler_c_o \ | |
12510 | need_locks \ | |
18d98188 PG |
12511 | DSYMUTIL \ |
12512 | NMEDIT \ | |
12513 | LIPO \ | |
12514 | OTOOL \ | |
12515 | OTOOL64 \ | |
1cf3d07d SE |
12516 | shrext_cmds \ |
12517 | export_dynamic_flag_spec \ | |
12518 | whole_archive_flag_spec \ | |
12519 | compiler_needs_object \ | |
12520 | with_gnu_ld \ | |
12521 | allow_undefined_flag \ | |
12522 | no_undefined_flag \ | |
12523 | hardcode_libdir_flag_spec \ | |
12524 | hardcode_libdir_flag_spec_ld \ | |
12525 | hardcode_libdir_separator \ | |
12526 | fix_srcfile_path \ | |
12527 | exclude_expsyms \ | |
12528 | include_expsyms \ | |
12529 | file_list_spec \ | |
12530 | variables_saved_for_relink \ | |
12531 | libname_spec \ | |
12532 | library_names_spec \ | |
12533 | soname_spec \ | |
43e02a8a | 12534 | install_override_mode \ |
1cf3d07d SE |
12535 | finish_eval \ |
12536 | old_striplib \ | |
12537 | striplib; do | |
43e02a8a | 12538 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
1cf3d07d | 12539 | *[\\\\\\\`\\"\\\$]*) |
43e02a8a | 12540 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
1cf3d07d SE |
12541 | ;; |
12542 | *) | |
12543 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
12544 | ;; | |
12545 | esac | |
12546 | done | |
12547 | ||
12548 | # Double-quote double-evaled strings. | |
12549 | for var in reload_cmds \ | |
12550 | old_postinstall_cmds \ | |
12551 | old_postuninstall_cmds \ | |
12552 | old_archive_cmds \ | |
12553 | extract_expsyms_cmds \ | |
12554 | old_archive_from_new_cmds \ | |
12555 | old_archive_from_expsyms_cmds \ | |
12556 | archive_cmds \ | |
12557 | archive_expsym_cmds \ | |
12558 | module_cmds \ | |
12559 | module_expsym_cmds \ | |
12560 | export_symbols_cmds \ | |
12561 | prelink_cmds \ | |
12562 | postinstall_cmds \ | |
12563 | postuninstall_cmds \ | |
12564 | finish_cmds \ | |
12565 | sys_lib_search_path_spec \ | |
12566 | sys_lib_dlsearch_path_spec; do | |
43e02a8a | 12567 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
1cf3d07d | 12568 | *[\\\\\\\`\\"\\\$]*) |
43e02a8a | 12569 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
1cf3d07d SE |
12570 | ;; |
12571 | *) | |
12572 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
12573 | ;; | |
12574 | esac | |
12575 | done | |
12576 | ||
1cf3d07d SE |
12577 | ac_aux_dir='$ac_aux_dir' |
12578 | xsi_shell='$xsi_shell' | |
12579 | lt_shell_append='$lt_shell_append' | |
12580 | ||
12581 | # See if we are running on zsh, and set the options which allow our | |
12582 | # commands through without removal of \ escapes INIT. | |
12583 | if test -n "\${ZSH_VERSION+set}" ; then | |
12584 | setopt NO_GLOB_SUBST | |
12585 | fi | |
12586 | ||
12587 | ||
12588 | PACKAGE='$PACKAGE' | |
12589 | VERSION='$VERSION' | |
12590 | TIMESTAMP='$TIMESTAMP' | |
12591 | RM='$RM' | |
12592 | ofile='$ofile' | |
12593 | ||
12594 | ||
12595 | ||
12596 | ||
a8aea176 NN |
12597 | _ACEOF |
12598 | ||
5213506e | 12599 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
a8aea176 | 12600 | |
5213506e | 12601 | # Handling of arguments. |
a8aea176 NN |
12602 | for ac_config_target in $ac_config_targets |
12603 | do | |
5213506e RW |
12604 | case $ac_config_target in |
12605 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
12606 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
12607 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
12608 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
12609 | ||
22e05272 | 12610 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
a8aea176 NN |
12611 | esac |
12612 | done | |
12613 | ||
5213506e | 12614 | |
a8aea176 NN |
12615 | # If the user did not use the arguments to specify the items to instantiate, |
12616 | # then the envvar interface is used. Set only those that are not. | |
12617 | # We use the long form for the default assignment because of an extremely | |
12618 | # bizarre bug on SunOS 4.1.3. | |
12619 | if $ac_need_defaults; then | |
12620 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
12621 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
12622 | fi | |
12623 | ||
12624 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 12625 | # simply because there is no reason against having it here, and in addition, |
a8aea176 | 12626 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
12627 | # Hook for its removal unless debugging. |
12628 | # Note that there is a small window in which the directory will not be cleaned: | |
12629 | # after its creation but before its name has been assigned to `$tmp'. | |
a8aea176 NN |
12630 | $debug || |
12631 | { | |
22e05272 | 12632 | tmp= ac_tmp= |
5213506e | 12633 | trap 'exit_status=$? |
22e05272 JM |
12634 | : "${ac_tmp:=$tmp}" |
12635 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
5213506e RW |
12636 | ' 0 |
12637 | trap 'as_fn_exit 1' 1 2 13 15 | |
a8aea176 | 12638 | } |
a8aea176 NN |
12639 | # Create a (secure) tmp directory for tmp files. |
12640 | ||
12641 | { | |
5213506e | 12642 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
22e05272 | 12643 | test -d "$tmp" |
a8aea176 NN |
12644 | } || |
12645 | { | |
5213506e RW |
12646 | tmp=./conf$$-$RANDOM |
12647 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
12648 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
12649 | ac_tmp=$tmp | |
5213506e RW |
12650 | |
12651 | # Set up the scripts for CONFIG_FILES section. | |
12652 | # No need to generate them if there are no CONFIG_FILES. | |
12653 | # This happens for instance with `./config.status config.h'. | |
12654 | if test -n "$CONFIG_FILES"; then | |
12655 | ||
12656 | ||
12657 | ac_cr=`echo X | tr X '\015'` | |
12658 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
12659 | # But we know of no other shell where ac_cr would be empty at this | |
12660 | # point, so we can use a bashism as a fallback. | |
12661 | if test "x$ac_cr" = x; then | |
12662 | eval ac_cr=\$\'\\r\' | |
12663 | fi | |
12664 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
12665 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 12666 | ac_cs_awk_cr='\\r' |
5213506e RW |
12667 | else |
12668 | ac_cs_awk_cr=$ac_cr | |
12669 | fi | |
12670 | ||
22e05272 | 12671 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
5213506e RW |
12672 | _ACEOF |
12673 | ||
12674 | ||
12675 | { | |
12676 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
12677 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
12678 | echo "_ACEOF" | |
12679 | } >conf$$subs.sh || | |
22e05272 JM |
12680 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
12681 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
5213506e RW |
12682 | ac_delim='%!_!# ' |
12683 | for ac_last_try in false false false false false :; do | |
12684 | . ./conf$$subs.sh || | |
22e05272 | 12685 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
12686 | |
12687 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
12688 | if test $ac_delim_n = $ac_delim_num; then | |
12689 | break | |
12690 | elif $ac_last_try; then | |
22e05272 | 12691 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
12692 | else |
12693 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12694 | fi | |
12695 | done | |
12696 | rm -f conf$$subs.sh | |
12697 | ||
12698 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 12699 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
5213506e RW |
12700 | _ACEOF |
12701 | sed -n ' | |
12702 | h | |
12703 | s/^/S["/; s/!.*/"]=/ | |
12704 | p | |
12705 | g | |
12706 | s/^[^!]*!// | |
12707 | :repl | |
12708 | t repl | |
12709 | s/'"$ac_delim"'$// | |
12710 | t delim | |
12711 | :nl | |
12712 | h | |
22e05272 | 12713 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
12714 | t more1 |
12715 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
12716 | p | |
12717 | n | |
12718 | b repl | |
12719 | :more1 | |
12720 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
12721 | p | |
12722 | g | |
12723 | s/.\{148\}// | |
12724 | t nl | |
12725 | :delim | |
12726 | h | |
22e05272 | 12727 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
12728 | t more2 |
12729 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
12730 | p | |
12731 | b | |
12732 | :more2 | |
12733 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
12734 | p | |
12735 | g | |
12736 | s/.\{148\}// | |
12737 | t delim | |
12738 | ' <conf$$subs.awk | sed ' | |
12739 | /^[^""]/{ | |
12740 | N | |
12741 | s/\n// | |
12742 | } | |
12743 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
12744 | rm -f conf$$subs.awk | |
12745 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12746 | _ACAWK | |
22e05272 | 12747 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
5213506e RW |
12748 | for (key in S) S_is_set[key] = 1 |
12749 | FS = "\a" | |
12750 | ||
12751 | } | |
a8aea176 | 12752 | { |
5213506e RW |
12753 | line = $ 0 |
12754 | nfields = split(line, field, "@") | |
12755 | substed = 0 | |
12756 | len = length(field[1]) | |
12757 | for (i = 2; i < nfields; i++) { | |
12758 | key = field[i] | |
12759 | keylen = length(key) | |
12760 | if (S_is_set[key]) { | |
12761 | value = S[key] | |
12762 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
12763 | len += length(value) + length(field[++i]) | |
12764 | substed = 1 | |
12765 | } else | |
12766 | len += 1 + keylen | |
12767 | } | |
12768 | ||
12769 | print line | |
a8aea176 NN |
12770 | } |
12771 | ||
5213506e | 12772 | _ACAWK |
a8aea176 | 12773 | _ACEOF |
5213506e RW |
12774 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12775 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
12776 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
12777 | else | |
12778 | cat | |
22e05272 JM |
12779 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
12780 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
5213506e RW |
12781 | _ACEOF |
12782 | ||
22e05272 JM |
12783 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
12784 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
5213506e RW |
12785 | # trailing colons and then remove the whole line if VPATH becomes empty |
12786 | # (actually we leave an empty line to preserve line numbers). | |
12787 | if test "x$srcdir" = x.; then | |
22e05272 JM |
12788 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
12789 | h | |
12790 | s/// | |
12791 | s/^/:/ | |
12792 | s/[ ]*$/:/ | |
12793 | s/:\$(srcdir):/:/g | |
12794 | s/:\${srcdir}:/:/g | |
12795 | s/:@srcdir@:/:/g | |
12796 | s/^:*// | |
5213506e | 12797 | s/:*$// |
22e05272 JM |
12798 | x |
12799 | s/\(=[ ]*\).*/\1/ | |
12800 | G | |
12801 | s/\n// | |
5213506e RW |
12802 | s/^[^=]*=[ ]*$// |
12803 | }' | |
12804 | fi | |
a8aea176 | 12805 | |
5213506e RW |
12806 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12807 | fi # test -n "$CONFIG_FILES" | |
a8aea176 | 12808 | |
a8aea176 | 12809 | |
5213506e RW |
12810 | eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" |
12811 | shift | |
12812 | for ac_tag | |
12813 | do | |
12814 | case $ac_tag in | |
12815 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
12816 | esac | |
12817 | case $ac_mode$ac_tag in | |
12818 | :[FHL]*:*);; | |
22e05272 | 12819 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
5213506e RW |
12820 | :[FH]-) ac_tag=-:-;; |
12821 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
12822 | esac | |
12823 | ac_save_IFS=$IFS | |
12824 | IFS=: | |
12825 | set x $ac_tag | |
12826 | IFS=$ac_save_IFS | |
12827 | shift | |
12828 | ac_file=$1 | |
12829 | shift | |
a8aea176 | 12830 | |
5213506e RW |
12831 | case $ac_mode in |
12832 | :L) ac_source=$1;; | |
12833 | :[FH]) | |
12834 | ac_file_inputs= | |
12835 | for ac_f | |
12836 | do | |
12837 | case $ac_f in | |
22e05272 | 12838 | -) ac_f="$ac_tmp/stdin";; |
5213506e RW |
12839 | *) # Look for the file first in the build tree, then in the source tree |
12840 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
12841 | # because $ac_f cannot contain `:'. | |
12842 | test -f "$ac_f" || | |
12843 | case $ac_f in | |
12844 | [\\/$]*) false;; | |
12845 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
12846 | esac || | |
22e05272 | 12847 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5213506e RW |
12848 | esac |
12849 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
12850 | as_fn_append ac_file_inputs " '$ac_f'" | |
12851 | done | |
a8aea176 | 12852 | |
5213506e RW |
12853 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
12854 | # use $as_me), people would be surprised to read: | |
12855 | # /* config.h. Generated by config.status. */ | |
12856 | configure_input='Generated from '` | |
12857 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
12858 | `' by configure.' | |
12859 | if test x"$ac_file" != x-; then | |
12860 | configure_input="$ac_file. $configure_input" | |
12861 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
12862 | $as_echo "$as_me: creating $ac_file" >&6;} | |
a8aea176 | 12863 | fi |
5213506e RW |
12864 | # Neutralize special characters interpreted by sed in replacement strings. |
12865 | case $configure_input in #( | |
12866 | *\&* | *\|* | *\\* ) | |
12867 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
12868 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
12869 | *) ac_sed_conf_input=$configure_input;; | |
12870 | esac | |
a8aea176 | 12871 | |
5213506e | 12872 | case $ac_tag in |
22e05272 JM |
12873 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
12874 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5213506e RW |
12875 | esac |
12876 | ;; | |
a8aea176 NN |
12877 | esac |
12878 | ||
5213506e | 12879 | ac_dir=`$as_dirname -- "$ac_file" || |
a8aea176 NN |
12880 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
12881 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
12882 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
12883 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
12884 | $as_echo X"$ac_file" | | |
12885 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
12886 | s//\1/ | |
12887 | q | |
12888 | } | |
12889 | /^X\(\/\/\)[^/].*/{ | |
12890 | s//\1/ | |
12891 | q | |
12892 | } | |
12893 | /^X\(\/\/\)$/{ | |
12894 | s//\1/ | |
12895 | q | |
12896 | } | |
12897 | /^X\(\/\).*/{ | |
12898 | s//\1/ | |
12899 | q | |
12900 | } | |
12901 | s/.*/./; q'` | |
12902 | as_dir="$ac_dir"; as_fn_mkdir_p | |
a8aea176 NN |
12903 | ac_builddir=. |
12904 | ||
5213506e RW |
12905 | case "$ac_dir" in |
12906 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12907 | *) | |
12908 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
12909 | # A ".." for each directory in $ac_dir_suffix. | |
12910 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
12911 | case $ac_top_builddir_sub in | |
12912 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12913 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
12914 | esac ;; | |
12915 | esac | |
12916 | ac_abs_top_builddir=$ac_pwd | |
12917 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
12918 | # for backward compatibility: | |
12919 | ac_top_builddir=$ac_top_build_prefix | |
a8aea176 NN |
12920 | |
12921 | case $srcdir in | |
5213506e | 12922 | .) # We are building in place. |
a8aea176 | 12923 | ac_srcdir=. |
5213506e RW |
12924 | ac_top_srcdir=$ac_top_builddir_sub |
12925 | ac_abs_top_srcdir=$ac_pwd ;; | |
12926 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
a8aea176 | 12927 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
12928 | ac_top_srcdir=$srcdir |
12929 | ac_abs_top_srcdir=$srcdir ;; | |
12930 | *) # Relative name. | |
12931 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
12932 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
12933 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
a8aea176 | 12934 | esac |
5213506e | 12935 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a8aea176 | 12936 | |
a8aea176 | 12937 | |
5213506e RW |
12938 | case $ac_mode in |
12939 | :F) | |
12940 | # | |
12941 | # CONFIG_FILE | |
12942 | # | |
a8aea176 NN |
12943 | |
12944 | case $INSTALL in | |
12945 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e RW |
12946 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
12947 | esac | |
12948 | ac_MKDIR_P=$MKDIR_P | |
12949 | case $MKDIR_P in | |
12950 | [\\/$]* | ?:[\\/]* ) ;; | |
12951 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
a8aea176 | 12952 | esac |
5213506e | 12953 | _ACEOF |
a8aea176 | 12954 | |
5213506e RW |
12955 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12956 | # If the template does not know about datarootdir, expand it. | |
12957 | # FIXME: This hack should be removed a few years after 2.60. | |
12958 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
12959 | ac_sed_dataroot=' | |
12960 | /datarootdir/ { | |
12961 | p | |
12962 | q | |
12963 | } | |
12964 | /@datadir@/p | |
12965 | /@docdir@/p | |
12966 | /@infodir@/p | |
12967 | /@localedir@/p | |
12968 | /@mandir@/p' | |
12969 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
12970 | *datarootdir*) ac_datarootdir_seen=yes;; | |
12971 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
12972 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
12973 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
12974 | _ACEOF | |
12975 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12976 | ac_datarootdir_hack=' | |
12977 | s&@datadir@&$datadir&g | |
12978 | s&@docdir@&$docdir&g | |
12979 | s&@infodir@&$infodir&g | |
12980 | s&@localedir@&$localedir&g | |
12981 | s&@mandir@&$mandir&g | |
12982 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
12983 | esac | |
a8aea176 | 12984 | _ACEOF |
5213506e RW |
12985 | |
12986 | # Neutralize VPATH when `$srcdir' = `.'. | |
12987 | # Shell code in configure.ac might set extrasub. | |
12988 | # FIXME: do we really want to maintain this feature? | |
12989 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12990 | ac_sed_extra="$ac_vpsub | |
a8aea176 NN |
12991 | $extrasub |
12992 | _ACEOF | |
5213506e | 12993 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
a8aea176 NN |
12994 | :t |
12995 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
12996 | s|@configure_input@|$ac_sed_conf_input|;t t |
12997 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
12998 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
12999 | s&@srcdir@&$ac_srcdir&;t t | |
13000 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
13001 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
13002 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
13003 | s&@builddir@&$ac_builddir&;t t | |
13004 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
13005 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
13006 | s&@INSTALL@&$ac_INSTALL&;t t | |
13007 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
13008 | $ac_datarootdir_hack | |
13009 | " | |
22e05272 JM |
13010 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
13011 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5213506e RW |
13012 | |
13013 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
13014 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
13015 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
13016 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
5213506e | 13017 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 13018 | which seems to be undefined. Please make sure it is defined" >&5 |
5213506e | 13019 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 13020 | which seems to be undefined. Please make sure it is defined" >&2;} |
5213506e | 13021 | |
22e05272 | 13022 | rm -f "$ac_tmp/stdin" |
5213506e | 13023 | case $ac_file in |
22e05272 JM |
13024 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
13025 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
5213506e | 13026 | esac \ |
22e05272 | 13027 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5213506e | 13028 | ;; |
a8aea176 | 13029 | |
a8aea176 | 13030 | |
5213506e RW |
13031 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
13032 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
13033 | ;; | |
13034 | esac | |
a8aea176 NN |
13035 | |
13036 | ||
5213506e RW |
13037 | case $ac_file$ac_mode in |
13038 | "default-1":C) | |
076e5443 PB |
13039 | # Only add multilib support code if we just rebuilt the top-level |
13040 | # Makefile. | |
13041 | case " $CONFIG_FILES " in | |
13042 | *" Makefile "*) | |
13043 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
13044 | ;; | |
13045 | esac ;; | |
5213506e | 13046 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
22e05272 | 13047 | # Older Autoconf quotes --file arguments for eval, but not when files |
5213506e RW |
13048 | # are listed without --file. Let's play safe and only enable the eval |
13049 | # if we detect the quoting. | |
13050 | case $CONFIG_FILES in | |
13051 | *\'*) eval set x "$CONFIG_FILES" ;; | |
13052 | *) set x $CONFIG_FILES ;; | |
13053 | esac | |
13054 | shift | |
13055 | for mf | |
13056 | do | |
13057 | # Strip MF so we end up with the name of the file. | |
13058 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
13059 | # Check whether this is an Automake generated Makefile or not. | |
22e05272 | 13060 | # We used to match only the files named 'Makefile.in', but |
5213506e RW |
13061 | # some people rename them; so instead we look at the file content. |
13062 | # Grep'ing the first line is not enough: some people post-process | |
13063 | # each Makefile.in and add a new line on top of each file to say so. | |
13064 | # Grep'ing the whole file is not good either: AIX grep has a line | |
13065 | # limit of 2048, but all sed's we know have understand at least 4000. | |
13066 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
13067 | dirpart=`$as_dirname -- "$mf" || | |
9fabf579 KC |
13068 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
13069 | X"$mf" : 'X\(//\)[^/]' \| \ | |
13070 | X"$mf" : 'X\(//\)$' \| \ | |
5213506e RW |
13071 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
13072 | $as_echo X"$mf" | | |
13073 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13074 | s//\1/ | |
13075 | q | |
13076 | } | |
13077 | /^X\(\/\/\)[^/].*/{ | |
13078 | s//\1/ | |
13079 | q | |
13080 | } | |
13081 | /^X\(\/\/\)$/{ | |
13082 | s//\1/ | |
13083 | q | |
13084 | } | |
13085 | /^X\(\/\).*/{ | |
13086 | s//\1/ | |
13087 | q | |
13088 | } | |
13089 | s/.*/./; q'` | |
13090 | else | |
13091 | continue | |
13092 | fi | |
13093 | # Extract the definition of DEPDIR, am__include, and am__quote | |
22e05272 | 13094 | # from the Makefile without running 'make'. |
5213506e RW |
13095 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
13096 | test -z "$DEPDIR" && continue | |
13097 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
22e05272 | 13098 | test -z "$am__include" && continue |
5213506e | 13099 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
5213506e RW |
13100 | # Find all dependency output files, they are included files with |
13101 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
13102 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
13103 | # expansion. | |
13104 | for file in `sed -n " | |
13105 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
22e05272 | 13106 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
5213506e RW |
13107 | # Make sure the directory exists. |
13108 | test -f "$dirpart/$file" && continue | |
13109 | fdir=`$as_dirname -- "$file" || | |
9fabf579 KC |
13110 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
13111 | X"$file" : 'X\(//\)[^/]' \| \ | |
13112 | X"$file" : 'X\(//\)$' \| \ | |
5213506e RW |
13113 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
13114 | $as_echo X"$file" | | |
13115 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13116 | s//\1/ | |
13117 | q | |
13118 | } | |
13119 | /^X\(\/\/\)[^/].*/{ | |
13120 | s//\1/ | |
13121 | q | |
13122 | } | |
13123 | /^X\(\/\/\)$/{ | |
13124 | s//\1/ | |
13125 | q | |
13126 | } | |
13127 | /^X\(\/\).*/{ | |
13128 | s//\1/ | |
13129 | q | |
13130 | } | |
13131 | s/.*/./; q'` | |
13132 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
13133 | # echo "creating $dirpart/$file" | |
13134 | echo '# dummy' > "$dirpart/$file" | |
9fabf579 | 13135 | done |
9fabf579 | 13136 | done |
5213506e | 13137 | } |
1cf3d07d | 13138 | ;; |
5213506e | 13139 | "libtool":C) |
1cf3d07d SE |
13140 | |
13141 | # See if we are running on zsh, and set the options which allow our | |
13142 | # commands through without removal of \ escapes. | |
13143 | if test -n "${ZSH_VERSION+set}" ; then | |
13144 | setopt NO_GLOB_SUBST | |
13145 | fi | |
13146 | ||
13147 | cfgfile="${ofile}T" | |
13148 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
13149 | $RM "$cfgfile" | |
13150 | ||
13151 | cat <<_LT_EOF >> "$cfgfile" | |
13152 | #! $SHELL | |
13153 | ||
13154 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
18d98188 | 13155 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
1cf3d07d SE |
13156 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
13157 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
13158 | # | |
18d98188 | 13159 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
43e02a8a | 13160 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
18d98188 | 13161 | # Written by Gordon Matzigkeit, 1996 |
1cf3d07d | 13162 | # |
18d98188 | 13163 | # This file is part of GNU Libtool. |
1cf3d07d | 13164 | # |
18d98188 PG |
13165 | # GNU Libtool is free software; you can redistribute it and/or |
13166 | # modify it under the terms of the GNU General Public License as | |
13167 | # published by the Free Software Foundation; either version 2 of | |
13168 | # the License, or (at your option) any later version. | |
1cf3d07d | 13169 | # |
18d98188 PG |
13170 | # As a special exception to the GNU General Public License, |
13171 | # if you distribute this file as part of a program or library that | |
13172 | # is built using GNU Libtool, you may include this file under the | |
13173 | # same distribution terms that you use for the rest of that program. | |
1cf3d07d | 13174 | # |
18d98188 PG |
13175 | # GNU Libtool is distributed in the hope that it will be useful, |
13176 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13177 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13178 | # GNU General Public License for more details. | |
1cf3d07d | 13179 | # |
18d98188 PG |
13180 | # You should have received a copy of the GNU General Public License |
13181 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
13182 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
13183 | # obtained by writing to the Free Software Foundation, Inc., | |
13184 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
1cf3d07d SE |
13185 | |
13186 | ||
13187 | # The names of the tagged configurations supported by this script. | |
13188 | available_tags="" | |
13189 | ||
13190 | # ### BEGIN LIBTOOL CONFIG | |
13191 | ||
13192 | # Which release of libtool.m4 was used? | |
13193 | macro_version=$macro_version | |
13194 | macro_revision=$macro_revision | |
13195 | ||
13196 | # Whether or not to build shared libraries. | |
13197 | build_libtool_libs=$enable_shared | |
13198 | ||
13199 | # Whether or not to build static libraries. | |
13200 | build_old_libs=$enable_static | |
13201 | ||
13202 | # What type of objects to build. | |
13203 | pic_mode=$pic_mode | |
13204 | ||
13205 | # Whether or not to optimize for fast installation. | |
13206 | fast_install=$enable_fast_install | |
13207 | ||
43e02a8a RW |
13208 | # Shell to use when invoking shell scripts. |
13209 | SHELL=$lt_SHELL | |
13210 | ||
13211 | # An echo program that protects backslashes. | |
13212 | ECHO=$lt_ECHO | |
13213 | ||
1cf3d07d SE |
13214 | # The host system. |
13215 | host_alias=$host_alias | |
13216 | host=$host | |
13217 | host_os=$host_os | |
13218 | ||
13219 | # The build system. | |
13220 | build_alias=$build_alias | |
13221 | build=$build | |
13222 | build_os=$build_os | |
13223 | ||
13224 | # A sed program that does not truncate output. | |
13225 | SED=$lt_SED | |
13226 | ||
13227 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
13228 | Xsed="\$SED -e 1s/^X//" | |
13229 | ||
13230 | # A grep program that handles long lines. | |
13231 | GREP=$lt_GREP | |
13232 | ||
13233 | # An ERE matcher. | |
13234 | EGREP=$lt_EGREP | |
13235 | ||
13236 | # A literal string matcher. | |
13237 | FGREP=$lt_FGREP | |
13238 | ||
13239 | # A BSD- or MS-compatible name lister. | |
13240 | NM=$lt_NM | |
13241 | ||
13242 | # Whether we need soft or hard links. | |
13243 | LN_S=$lt_LN_S | |
13244 | ||
13245 | # What is the maximum length of a command? | |
13246 | max_cmd_len=$max_cmd_len | |
13247 | ||
13248 | # Object file suffix (normally "o"). | |
13249 | objext=$ac_objext | |
13250 | ||
13251 | # Executable file suffix (normally ""). | |
13252 | exeext=$exeext | |
13253 | ||
13254 | # whether the shell understands "unset". | |
13255 | lt_unset=$lt_unset | |
13256 | ||
13257 | # turn spaces into newlines. | |
13258 | SP2NL=$lt_lt_SP2NL | |
13259 | ||
13260 | # turn newlines into spaces. | |
13261 | NL2SP=$lt_lt_NL2SP | |
13262 | ||
18d98188 PG |
13263 | # An object symbol dumper. |
13264 | OBJDUMP=$lt_OBJDUMP | |
13265 | ||
1cf3d07d SE |
13266 | # Method to check whether dependent libraries are shared objects. |
13267 | deplibs_check_method=$lt_deplibs_check_method | |
13268 | ||
13269 | # Command to use when deplibs_check_method == "file_magic". | |
13270 | file_magic_cmd=$lt_file_magic_cmd | |
13271 | ||
13272 | # The archiver. | |
13273 | AR=$lt_AR | |
13274 | AR_FLAGS=$lt_AR_FLAGS | |
13275 | ||
13276 | # A symbol stripping program. | |
13277 | STRIP=$lt_STRIP | |
13278 | ||
13279 | # Commands used to install an old-style archive. | |
13280 | RANLIB=$lt_RANLIB | |
13281 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
13282 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
13283 | ||
43e02a8a RW |
13284 | # Whether to use a lock for old archive extraction. |
13285 | lock_old_archive_extraction=$lock_old_archive_extraction | |
13286 | ||
1cf3d07d SE |
13287 | # A C compiler. |
13288 | LTCC=$lt_CC | |
13289 | ||
13290 | # LTCC compiler flags. | |
13291 | LTCFLAGS=$lt_CFLAGS | |
13292 | ||
13293 | # Take the output of nm and produce a listing of raw symbols and C names. | |
13294 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
13295 | ||
13296 | # Transform the output of nm in a proper C declaration. | |
13297 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
13298 | ||
13299 | # Transform the output of nm in a C name address pair. | |
13300 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
13301 | ||
18d98188 PG |
13302 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
13303 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
13304 | ||
1cf3d07d SE |
13305 | # The name of the directory that contains temporary libtool files. |
13306 | objdir=$objdir | |
13307 | ||
1cf3d07d SE |
13308 | # Used to examine libraries when file_magic_cmd begins with "file". |
13309 | MAGIC_CMD=$MAGIC_CMD | |
13310 | ||
13311 | # Must we lock files when doing compilation? | |
13312 | need_locks=$lt_need_locks | |
13313 | ||
18d98188 PG |
13314 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
13315 | DSYMUTIL=$lt_DSYMUTIL | |
13316 | ||
13317 | # Tool to change global to local symbols on Mac OS X. | |
13318 | NMEDIT=$lt_NMEDIT | |
13319 | ||
13320 | # Tool to manipulate fat objects and archives on Mac OS X. | |
13321 | LIPO=$lt_LIPO | |
13322 | ||
13323 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
13324 | OTOOL=$lt_OTOOL | |
13325 | ||
13326 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
13327 | OTOOL64=$lt_OTOOL64 | |
13328 | ||
1cf3d07d SE |
13329 | # Old archive suffix (normally "a"). |
13330 | libext=$libext | |
13331 | ||
13332 | # Shared library suffix (normally ".so"). | |
13333 | shrext_cmds=$lt_shrext_cmds | |
13334 | ||
13335 | # The commands to extract the exported symbol list from a shared archive. | |
13336 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
13337 | ||
13338 | # Variables whose values should be saved in libtool wrapper scripts and | |
13339 | # restored at link time. | |
13340 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
13341 | ||
13342 | # Do we need the "lib" prefix for modules? | |
13343 | need_lib_prefix=$need_lib_prefix | |
13344 | ||
13345 | # Do we need a version for libraries? | |
13346 | need_version=$need_version | |
13347 | ||
13348 | # Library versioning type. | |
13349 | version_type=$version_type | |
13350 | ||
13351 | # Shared library runtime path variable. | |
13352 | runpath_var=$runpath_var | |
13353 | ||
13354 | # Shared library path variable. | |
13355 | shlibpath_var=$shlibpath_var | |
13356 | ||
13357 | # Is shlibpath searched before the hard-coded library search path? | |
13358 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
13359 | ||
13360 | # Format of library name prefix. | |
13361 | libname_spec=$lt_libname_spec | |
13362 | ||
13363 | # List of archive names. First name is the real one, the rest are links. | |
13364 | # The last name is the one that the linker finds with -lNAME | |
13365 | library_names_spec=$lt_library_names_spec | |
13366 | ||
13367 | # The coded name of the library, if different from the real name. | |
13368 | soname_spec=$lt_soname_spec | |
13369 | ||
43e02a8a RW |
13370 | # Permission mode override for installation of shared libraries. |
13371 | install_override_mode=$lt_install_override_mode | |
13372 | ||
1cf3d07d SE |
13373 | # Command to use after installation of a shared archive. |
13374 | postinstall_cmds=$lt_postinstall_cmds | |
13375 | ||
13376 | # Command to use after uninstallation of a shared archive. | |
13377 | postuninstall_cmds=$lt_postuninstall_cmds | |
13378 | ||
13379 | # Commands used to finish a libtool library installation in a directory. | |
13380 | finish_cmds=$lt_finish_cmds | |
13381 | ||
13382 | # As "finish_cmds", except a single script fragment to be evaled but | |
13383 | # not shown. | |
13384 | finish_eval=$lt_finish_eval | |
13385 | ||
13386 | # Whether we should hardcode library paths into libraries. | |
13387 | hardcode_into_libs=$hardcode_into_libs | |
13388 | ||
13389 | # Compile-time system search path for libraries. | |
13390 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
13391 | ||
13392 | # Run-time system search path for libraries. | |
13393 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
13394 | ||
13395 | # Whether dlopen is supported. | |
13396 | dlopen_support=$enable_dlopen | |
13397 | ||
13398 | # Whether dlopen of programs is supported. | |
13399 | dlopen_self=$enable_dlopen_self | |
13400 | ||
13401 | # Whether dlopen of statically linked programs is supported. | |
13402 | dlopen_self_static=$enable_dlopen_self_static | |
13403 | ||
13404 | # Commands to strip libraries. | |
13405 | old_striplib=$lt_old_striplib | |
13406 | striplib=$lt_striplib | |
13407 | ||
13408 | ||
13409 | # The linker used to build libraries. | |
13410 | LD=$lt_LD | |
13411 | ||
43e02a8a RW |
13412 | # How to create reloadable object files. |
13413 | reload_flag=$lt_reload_flag | |
13414 | reload_cmds=$lt_reload_cmds | |
13415 | ||
1cf3d07d SE |
13416 | # Commands used to build an old-style archive. |
13417 | old_archive_cmds=$lt_old_archive_cmds | |
13418 | ||
13419 | # A language specific compiler. | |
13420 | CC=$lt_compiler | |
13421 | ||
13422 | # Is the compiler the GNU compiler? | |
13423 | with_gcc=$GCC | |
13424 | ||
13425 | # Compiler flag to turn off builtin functions. | |
13426 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
13427 | ||
13428 | # How to pass a linker flag through the compiler. | |
13429 | wl=$lt_lt_prog_compiler_wl | |
13430 | ||
13431 | # Additional compiler flags for building library objects. | |
13432 | pic_flag=$lt_lt_prog_compiler_pic | |
13433 | ||
13434 | # Compiler flag to prevent dynamic linking. | |
13435 | link_static_flag=$lt_lt_prog_compiler_static | |
13436 | ||
13437 | # Does compiler simultaneously support -c and -o options? | |
13438 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
13439 | ||
13440 | # Whether or not to add -lc for building shared libraries. | |
13441 | build_libtool_need_lc=$archive_cmds_need_lc | |
13442 | ||
13443 | # Whether or not to disallow shared libs when runtime libs are static. | |
13444 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
13445 | ||
13446 | # Compiler flag to allow reflexive dlopens. | |
13447 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
13448 | ||
13449 | # Compiler flag to generate shared objects directly from archives. | |
13450 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
13451 | ||
13452 | # Whether the compiler copes with passing no objects directly. | |
13453 | compiler_needs_object=$lt_compiler_needs_object | |
13454 | ||
13455 | # Create an old-style archive from a shared archive. | |
13456 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
13457 | ||
13458 | # Create a temporary old-style archive to link instead of a shared archive. | |
13459 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
13460 | ||
13461 | # Commands used to build a shared archive. | |
13462 | archive_cmds=$lt_archive_cmds | |
13463 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
13464 | ||
13465 | # Commands used to build a loadable module if different from building | |
13466 | # a shared archive. | |
13467 | module_cmds=$lt_module_cmds | |
13468 | module_expsym_cmds=$lt_module_expsym_cmds | |
13469 | ||
13470 | # Whether we are building with GNU ld or not. | |
13471 | with_gnu_ld=$lt_with_gnu_ld | |
13472 | ||
13473 | # Flag that allows shared libraries with undefined symbols to be built. | |
13474 | allow_undefined_flag=$lt_allow_undefined_flag | |
13475 | ||
13476 | # Flag that enforces no undefined symbols. | |
13477 | no_undefined_flag=$lt_no_undefined_flag | |
13478 | ||
13479 | # Flag to hardcode \$libdir into a binary during linking. | |
13480 | # This must work even if \$libdir does not exist | |
13481 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
13482 | ||
13483 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
13484 | # during linking. This must work even if \$libdir does not exist. | |
13485 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
13486 | ||
13487 | # Whether we need a single "-rpath" flag with a separated argument. | |
13488 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
13489 | ||
13490 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
13491 | # DIR into the resulting binary. | |
13492 | hardcode_direct=$hardcode_direct | |
13493 | ||
13494 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
13495 | # DIR into the resulting binary and the resulting library dependency is | |
13496 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
13497 | # library is relocated. | |
13498 | hardcode_direct_absolute=$hardcode_direct_absolute | |
13499 | ||
13500 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
13501 | # into the resulting binary. | |
13502 | hardcode_minus_L=$hardcode_minus_L | |
13503 | ||
13504 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
13505 | # into the resulting binary. | |
13506 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
13507 | ||
13508 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
13509 | # into the library and all subsequent libraries and executables linked | |
13510 | # against it. | |
13511 | hardcode_automatic=$hardcode_automatic | |
13512 | ||
13513 | # Set to yes if linker adds runtime paths of dependent libraries | |
13514 | # to runtime path list. | |
13515 | inherit_rpath=$inherit_rpath | |
13516 | ||
13517 | # Whether libtool must link a program against all its dependency libraries. | |
13518 | link_all_deplibs=$link_all_deplibs | |
13519 | ||
13520 | # Fix the shell variable \$srcfile for the compiler. | |
13521 | fix_srcfile_path=$lt_fix_srcfile_path | |
13522 | ||
13523 | # Set to "yes" if exported symbols are required. | |
13524 | always_export_symbols=$always_export_symbols | |
13525 | ||
13526 | # The commands to list exported symbols. | |
13527 | export_symbols_cmds=$lt_export_symbols_cmds | |
13528 | ||
13529 | # Symbols that should not be listed in the preloaded symbols. | |
13530 | exclude_expsyms=$lt_exclude_expsyms | |
13531 | ||
13532 | # Symbols that must always be exported. | |
13533 | include_expsyms=$lt_include_expsyms | |
13534 | ||
13535 | # Commands necessary for linking programs (against libraries) with templates. | |
13536 | prelink_cmds=$lt_prelink_cmds | |
13537 | ||
13538 | # Specify filename containing input files. | |
13539 | file_list_spec=$lt_file_list_spec | |
13540 | ||
13541 | # How to hardcode a shared library path into an executable. | |
13542 | hardcode_action=$hardcode_action | |
13543 | ||
13544 | # ### END LIBTOOL CONFIG | |
13545 | ||
13546 | _LT_EOF | |
13547 | ||
13548 | case $host_os in | |
13549 | aix3*) | |
13550 | cat <<\_LT_EOF >> "$cfgfile" | |
13551 | # AIX sometimes has problems with the GCC collect2 program. For some | |
13552 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
13553 | # vanish in a puff of smoke. | |
13554 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
13555 | COLLECT_NAMES= | |
13556 | export COLLECT_NAMES | |
13557 | fi | |
13558 | _LT_EOF | |
13559 | ;; | |
13560 | esac | |
13561 | ||
13562 | ||
13563 | ltmain="$ac_aux_dir/ltmain.sh" | |
13564 | ||
13565 | ||
13566 | # We use sed instead of cat because bash on DJGPP gets confused if | |
13567 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
13568 | # text mode, it properly converts lines to CR/LF. This bash problem | |
13569 | # is reportedly fixed, but why not run on old versions too? | |
13570 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
13571 | || (rm -f "$cfgfile"; exit 1) | |
13572 | ||
13573 | case $xsi_shell in | |
13574 | yes) | |
13575 | cat << \_LT_EOF >> "$cfgfile" | |
18d98188 | 13576 | |
1cf3d07d SE |
13577 | # func_dirname file append nondir_replacement |
13578 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
13579 | # otherwise set result to NONDIR_REPLACEMENT. | |
13580 | func_dirname () | |
13581 | { | |
13582 | case ${1} in | |
13583 | */*) func_dirname_result="${1%/*}${2}" ;; | |
13584 | * ) func_dirname_result="${3}" ;; | |
13585 | esac | |
13586 | } | |
13587 | ||
13588 | # func_basename file | |
13589 | func_basename () | |
13590 | { | |
13591 | func_basename_result="${1##*/}" | |
13592 | } | |
13593 | ||
18d98188 PG |
13594 | # func_dirname_and_basename file append nondir_replacement |
13595 | # perform func_basename and func_dirname in a single function | |
13596 | # call: | |
13597 | # dirname: Compute the dirname of FILE. If nonempty, | |
13598 | # add APPEND to the result, otherwise set result | |
13599 | # to NONDIR_REPLACEMENT. | |
13600 | # value returned in "$func_dirname_result" | |
13601 | # basename: Compute filename of FILE. | |
13602 | # value retuned in "$func_basename_result" | |
13603 | # Implementation must be kept synchronized with func_dirname | |
13604 | # and func_basename. For efficiency, we do not delegate to | |
13605 | # those functions but instead duplicate the functionality here. | |
13606 | func_dirname_and_basename () | |
13607 | { | |
13608 | case ${1} in | |
13609 | */*) func_dirname_result="${1%/*}${2}" ;; | |
13610 | * ) func_dirname_result="${3}" ;; | |
13611 | esac | |
13612 | func_basename_result="${1##*/}" | |
13613 | } | |
13614 | ||
1cf3d07d SE |
13615 | # func_stripname prefix suffix name |
13616 | # strip PREFIX and SUFFIX off of NAME. | |
13617 | # PREFIX and SUFFIX must not contain globbing or regex special | |
13618 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
13619 | # dot (in which case that matches only a dot). | |
13620 | func_stripname () | |
13621 | { | |
13622 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
13623 | # positional parameters, so assign one to ordinary parameter first. | |
13624 | func_stripname_result=${3} | |
13625 | func_stripname_result=${func_stripname_result#"${1}"} | |
13626 | func_stripname_result=${func_stripname_result%"${2}"} | |
13627 | } | |
13628 | ||
13629 | # func_opt_split | |
13630 | func_opt_split () | |
13631 | { | |
13632 | func_opt_split_opt=${1%%=*} | |
13633 | func_opt_split_arg=${1#*=} | |
13634 | } | |
13635 | ||
13636 | # func_lo2o object | |
13637 | func_lo2o () | |
13638 | { | |
13639 | case ${1} in | |
13640 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
13641 | *) func_lo2o_result=${1} ;; | |
13642 | esac | |
13643 | } | |
18d98188 PG |
13644 | |
13645 | # func_xform libobj-or-source | |
13646 | func_xform () | |
13647 | { | |
13648 | func_xform_result=${1%.*}.lo | |
13649 | } | |
13650 | ||
13651 | # func_arith arithmetic-term... | |
13652 | func_arith () | |
13653 | { | |
13654 | func_arith_result=$(( $* )) | |
13655 | } | |
13656 | ||
13657 | # func_len string | |
13658 | # STRING may not start with a hyphen. | |
13659 | func_len () | |
13660 | { | |
13661 | func_len_result=${#1} | |
13662 | } | |
13663 | ||
1cf3d07d SE |
13664 | _LT_EOF |
13665 | ;; | |
13666 | *) # Bourne compatible functions. | |
13667 | cat << \_LT_EOF >> "$cfgfile" | |
18d98188 | 13668 | |
1cf3d07d SE |
13669 | # func_dirname file append nondir_replacement |
13670 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
13671 | # otherwise set result to NONDIR_REPLACEMENT. | |
13672 | func_dirname () | |
13673 | { | |
13674 | # Extract subdirectory from the argument. | |
43e02a8a | 13675 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
1cf3d07d SE |
13676 | if test "X$func_dirname_result" = "X${1}"; then |
13677 | func_dirname_result="${3}" | |
13678 | else | |
13679 | func_dirname_result="$func_dirname_result${2}" | |
13680 | fi | |
13681 | } | |
13682 | ||
13683 | # func_basename file | |
13684 | func_basename () | |
13685 | { | |
43e02a8a | 13686 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
1cf3d07d SE |
13687 | } |
13688 | ||
18d98188 | 13689 | |
1cf3d07d SE |
13690 | # func_stripname prefix suffix name |
13691 | # strip PREFIX and SUFFIX off of NAME. | |
13692 | # PREFIX and SUFFIX must not contain globbing or regex special | |
13693 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
13694 | # dot (in which case that matches only a dot). | |
13695 | # func_strip_suffix prefix name | |
13696 | func_stripname () | |
13697 | { | |
13698 | case ${2} in | |
43e02a8a RW |
13699 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
13700 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
1cf3d07d SE |
13701 | esac |
13702 | } | |
13703 | ||
13704 | # sed scripts: | |
13705 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
13706 | my_sed_long_arg='1s/^-[^=]*=//' | |
13707 | ||
13708 | # func_opt_split | |
13709 | func_opt_split () | |
13710 | { | |
43e02a8a RW |
13711 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
13712 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
1cf3d07d SE |
13713 | } |
13714 | ||
13715 | # func_lo2o object | |
13716 | func_lo2o () | |
13717 | { | |
43e02a8a | 13718 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
1cf3d07d | 13719 | } |
18d98188 PG |
13720 | |
13721 | # func_xform libobj-or-source | |
13722 | func_xform () | |
13723 | { | |
43e02a8a | 13724 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` |
18d98188 PG |
13725 | } |
13726 | ||
13727 | # func_arith arithmetic-term... | |
13728 | func_arith () | |
13729 | { | |
13730 | func_arith_result=`expr "$@"` | |
13731 | } | |
13732 | ||
13733 | # func_len string | |
13734 | # STRING may not start with a hyphen. | |
13735 | func_len () | |
13736 | { | |
13737 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
13738 | } | |
13739 | ||
1cf3d07d SE |
13740 | _LT_EOF |
13741 | esac | |
13742 | ||
13743 | case $lt_shell_append in | |
13744 | yes) | |
13745 | cat << \_LT_EOF >> "$cfgfile" | |
13746 | ||
13747 | # func_append var value | |
13748 | # Append VALUE to the end of shell variable VAR. | |
13749 | func_append () | |
13750 | { | |
13751 | eval "$1+=\$2" | |
13752 | } | |
13753 | _LT_EOF | |
13754 | ;; | |
13755 | *) | |
13756 | cat << \_LT_EOF >> "$cfgfile" | |
13757 | ||
13758 | # func_append var value | |
13759 | # Append VALUE to the end of shell variable VAR. | |
13760 | func_append () | |
13761 | { | |
13762 | eval "$1=\$$1\$2" | |
13763 | } | |
18d98188 | 13764 | |
1cf3d07d SE |
13765 | _LT_EOF |
13766 | ;; | |
13767 | esac | |
13768 | ||
13769 | ||
13770 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
13771 | || (rm -f "$cfgfile"; exit 1) | |
13772 | ||
13773 | mv -f "$cfgfile" "$ofile" || | |
13774 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
13775 | chmod +x "$ofile" | |
13776 | ||
9fabf579 | 13777 | ;; |
5213506e | 13778 | |
a8aea176 | 13779 | esac |
5213506e | 13780 | done # for ac_tag |
a8aea176 | 13781 | |
a8aea176 | 13782 | |
5213506e | 13783 | as_fn_exit 0 |
a8aea176 | 13784 | _ACEOF |
a8aea176 NN |
13785 | ac_clean_files=$ac_clean_files_save |
13786 | ||
5213506e | 13787 | test $ac_write_fail = 0 || |
22e05272 | 13788 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 13789 | |
a8aea176 NN |
13790 | |
13791 | # configure is writing to config.log, and then calls config.status. | |
13792 | # config.status does its own redirection, appending to config.log. | |
13793 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
13794 | # by configure, so config.status won't be able to write to it; its | |
13795 | # output is simply discarded. So we exec the FD to /dev/null, | |
13796 | # effectively closing config.log, so it can be properly (re)opened and | |
13797 | # appended to by config.status. When coming back to configure, we | |
13798 | # need to make the FD available again. | |
13799 | if test "$no_create" != yes; then | |
13800 | ac_cs_success=: | |
13801 | ac_config_status_args= | |
13802 | test "$silent" = yes && | |
13803 | ac_config_status_args="$ac_config_status_args --quiet" | |
13804 | exec 5>/dev/null | |
13805 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
13806 | exec 5>>config.log | |
13807 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
13808 | # would make configure fail if this is the last instruction. | |
22e05272 | 13809 | $ac_cs_success || as_fn_exit 1 |
5213506e RW |
13810 | fi |
13811 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
13812 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
13813 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
a8aea176 | 13814 | fi |
c45f211e | 13815 |