]>
Commit | Line | Data |
---|---|---|
c7aa54aa DWT |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
53ba6704 | 3 | # Generated by GNU Autoconf 2.69 for Cycript 0.9. |
c7aa54aa DWT |
4 | # |
5 | # Report bugs to <saurik@saurik.com>. | |
6 | # | |
9c60689e | 7 | # |
53ba6704 | 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
9c60689e | 9 | # |
c7aa54aa DWT |
10 | # |
11 | # This configure script is free software; the Free Software Foundation | |
12 | # gives unlimited permission to copy, distribute and modify it. | |
66170b30 | 13 | # |
c1d3e52e | 14 | # Copyright (C) 2009-2015 Jay Freeman (saurik) |
c7aa54aa DWT |
15 | ## -------------------- ## |
16 | ## M4sh Initialization. ## | |
17 | ## -------------------- ## | |
18 | ||
19 | # Be more Bourne compatible | |
20 | DUALCASE=1; export DUALCASE # for MKS sh | |
21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
22 | emulate sh | |
23 | NULLCMD=: | |
24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
25 | # is contrary to our usage. Disable this feature. | |
26 | alias -g '${1+"$@"}'='"$@"' | |
27 | setopt NO_GLOB_SUBST | |
28 | else | |
29 | case `(set -o) 2>/dev/null` in #( | |
30 | *posix*) : | |
31 | set -o posix ;; #( | |
32 | *) : | |
33 | ;; | |
34 | esac | |
35 | fi | |
36 | ||
37 | ||
38 | as_nl=' | |
39 | ' | |
40 | export as_nl | |
41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
45 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
46 | # but without wasting forks for bash or zsh. | |
47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
49 | as_echo='print -r --' | |
50 | as_echo_n='print -rn --' | |
51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
52 | as_echo='printf %s\n' | |
53 | as_echo_n='printf %s' | |
54 | else | |
55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
57 | as_echo_n='/usr/ucb/echo -n' | |
58 | else | |
59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
60 | as_echo_n_body='eval | |
61 | arg=$1; | |
62 | case $arg in #( | |
63 | *"$as_nl"*) | |
64 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
66 | esac; | |
67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
68 | ' | |
69 | export as_echo_n_body | |
70 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
71 | fi | |
72 | export as_echo_body | |
73 | as_echo='sh -c $as_echo_body as_echo' | |
74 | fi | |
75 | ||
76 | # The user is always right. | |
77 | if test "${PATH_SEPARATOR+set}" != set; then | |
78 | PATH_SEPARATOR=: | |
79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
81 | PATH_SEPARATOR=';' | |
82 | } | |
83 | fi | |
84 | ||
85 | ||
86 | # IFS | |
87 | # We need space, tab and new line, in precisely that order. Quoting is | |
88 | # there to prevent editors from complaining about space-tab. | |
89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
90 | # splitting by setting IFS to empty value.) | |
91 | IFS=" "" $as_nl" | |
92 | ||
93 | # Find who we are. Look in the path if we contain no directory separator. | |
ee134472 | 94 | as_myself= |
c7aa54aa DWT |
95 | case $0 in #(( |
96 | *[\\/]* ) as_myself=$0 ;; | |
97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
98 | for as_dir in $PATH | |
99 | do | |
100 | IFS=$as_save_IFS | |
101 | test -z "$as_dir" && as_dir=. | |
102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
103 | done | |
104 | IFS=$as_save_IFS | |
105 | ||
106 | ;; | |
107 | esac | |
108 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
109 | # in which case we are not to be found in the path. | |
110 | if test "x$as_myself" = x; then | |
111 | as_myself=$0 | |
112 | fi | |
113 | if test ! -f "$as_myself"; then | |
114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
115 | exit 1 | |
116 | fi | |
117 | ||
118 | # Unset variables that we do not need and which cause bugs (e.g. in | |
119 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
120 | # suppresses any "Segmentation fault" message there. '((' could | |
121 | # trigger a bug in pdksh 5.2.14. | |
122 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
123 | do eval test x\${$as_var+set} = xset \ | |
124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
125 | done | |
126 | PS1='$ ' | |
127 | PS2='> ' | |
128 | PS4='+ ' | |
129 | ||
130 | # NLS nuisances. | |
131 | LC_ALL=C | |
132 | export LC_ALL | |
133 | LANGUAGE=C | |
134 | export LANGUAGE | |
135 | ||
136 | # CDPATH. | |
137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
138 | ||
53ba6704 JF |
139 | # Use a proper internal environment variable to ensure we don't fall |
140 | # into an infinite loop, continuously re-executing ourselves. | |
141 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
142 | _as_can_reexec=no; export _as_can_reexec; | |
143 | # We cannot yet assume a decent shell, so we have to provide a | |
144 | # neutralization value for shells without unset; and this also | |
145 | # works around shells that cannot unset nonexistent variables. | |
146 | # Preserve -v and -x to the replacement shell. | |
147 | BASH_ENV=/dev/null | |
148 | ENV=/dev/null | |
149 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
150 | case $- in # (((( | |
151 | *v*x* | *x*v* ) as_opts=-vx ;; | |
152 | *v* ) as_opts=-v ;; | |
153 | *x* ) as_opts=-x ;; | |
154 | * ) as_opts= ;; | |
155 | esac | |
156 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
157 | # Admittedly, this is quite paranoid, since all the known shells bail | |
158 | # out after a failed `exec'. | |
159 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
160 | as_fn_exit 255 | |
161 | fi | |
162 | # We don't want this to propagate to other subprocesses. | |
163 | { _as_can_reexec=; unset _as_can_reexec;} | |
c7aa54aa DWT |
164 | if test "x$CONFIG_SHELL" = x; then |
165 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
166 | emulate sh | |
167 | NULLCMD=: | |
168 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
169 | # is contrary to our usage. Disable this feature. | |
170 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
171 | setopt NO_GLOB_SUBST | |
172 | else | |
173 | case \`(set -o) 2>/dev/null\` in #( | |
174 | *posix*) : | |
175 | set -o posix ;; #( | |
176 | *) : | |
177 | ;; | |
178 | esac | |
179 | fi | |
180 | " | |
181 | as_required="as_fn_return () { (exit \$1); } | |
182 | as_fn_success () { as_fn_return 0; } | |
183 | as_fn_failure () { as_fn_return 1; } | |
184 | as_fn_ret_success () { return 0; } | |
185 | as_fn_ret_failure () { return 1; } | |
186 | ||
187 | exitcode=0 | |
188 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
189 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
190 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
191 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
192 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
193 | ||
194 | else | |
195 | exitcode=1; echo positional parameters were not saved. | |
196 | fi | |
53ba6704 JF |
197 | test x\$exitcode = x0 || exit 1 |
198 | test -x / || exit 1" | |
c7aa54aa DWT |
199 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
200 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
201 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
35fa52c0 | 202 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
ee134472 JF |
203 | |
204 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
205 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
206 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
207 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
208 | PATH=/empty FPATH=/empty; export PATH FPATH | |
209 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
210 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 | |
35fa52c0 | 211 | test \$(( 1 + 1 )) = 2 || exit 1" |
c7aa54aa DWT |
212 | if (eval "$as_required") 2>/dev/null; then : |
213 | as_have_required=yes | |
214 | else | |
215 | as_have_required=no | |
216 | fi | |
217 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
218 | ||
219 | else | |
220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
221 | as_found=false | |
222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
223 | do | |
224 | IFS=$as_save_IFS | |
225 | test -z "$as_dir" && as_dir=. | |
226 | as_found=: | |
227 | case $as_dir in #( | |
228 | /*) | |
229 | for as_base in sh bash ksh sh5; do | |
230 | # Try only shells that exist, to save several forks. | |
231 | as_shell=$as_dir/$as_base | |
232 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
233 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
234 | CONFIG_SHELL=$as_shell as_have_required=yes | |
235 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
236 | break 2 | |
237 | fi | |
238 | fi | |
239 | done;; | |
240 | esac | |
241 | as_found=false | |
242 | done | |
243 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
244 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
245 | CONFIG_SHELL=$SHELL as_have_required=yes | |
246 | fi; } | |
247 | IFS=$as_save_IFS | |
248 | ||
249 | ||
250 | if test "x$CONFIG_SHELL" != x; then : | |
53ba6704 JF |
251 | export CONFIG_SHELL |
252 | # We cannot yet assume a decent shell, so we have to provide a | |
253 | # neutralization value for shells without unset; and this also | |
254 | # works around shells that cannot unset nonexistent variables. | |
255 | # Preserve -v and -x to the replacement shell. | |
256 | BASH_ENV=/dev/null | |
257 | ENV=/dev/null | |
258 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
259 | case $- in # (((( | |
260 | *v*x* | *x*v* ) as_opts=-vx ;; | |
261 | *v* ) as_opts=-v ;; | |
262 | *x* ) as_opts=-x ;; | |
263 | * ) as_opts= ;; | |
264 | esac | |
265 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
266 | # Admittedly, this is quite paranoid, since all the known shells bail | |
267 | # out after a failed `exec'. | |
268 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
269 | exit 255 | |
c7aa54aa DWT |
270 | fi |
271 | ||
272 | if test x$as_have_required = xno; then : | |
273 | $as_echo "$0: This script requires a shell more modern than all" | |
274 | $as_echo "$0: the shells that I found on your system." | |
275 | if test x${ZSH_VERSION+set} = xset ; then | |
276 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
277 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
278 | else | |
279 | $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com | |
280 | $0: about your system, including any error possibly output | |
281 | $0: before this message. Then install a modern shell, or | |
282 | $0: manually run the script under such a shell if you do | |
283 | $0: have one." | |
284 | fi | |
285 | exit 1 | |
286 | fi | |
287 | fi | |
288 | fi | |
289 | SHELL=${CONFIG_SHELL-/bin/sh} | |
290 | export SHELL | |
291 | # Unset more variables known to interfere with behavior of common tools. | |
292 | CLICOLOR_FORCE= GREP_OPTIONS= | |
293 | unset CLICOLOR_FORCE GREP_OPTIONS | |
294 | ||
295 | ## --------------------- ## | |
296 | ## M4sh Shell Functions. ## | |
297 | ## --------------------- ## | |
298 | # as_fn_unset VAR | |
299 | # --------------- | |
300 | # Portably unset VAR. | |
301 | as_fn_unset () | |
302 | { | |
303 | { eval $1=; unset $1;} | |
304 | } | |
305 | as_unset=as_fn_unset | |
306 | ||
307 | # as_fn_set_status STATUS | |
308 | # ----------------------- | |
309 | # Set $? to STATUS, without forking. | |
310 | as_fn_set_status () | |
311 | { | |
312 | return $1 | |
313 | } # as_fn_set_status | |
314 | ||
315 | # as_fn_exit STATUS | |
316 | # ----------------- | |
317 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
318 | as_fn_exit () | |
319 | { | |
320 | set +e | |
321 | as_fn_set_status $1 | |
322 | exit $1 | |
323 | } # as_fn_exit | |
324 | ||
325 | # as_fn_mkdir_p | |
326 | # ------------- | |
327 | # Create "$as_dir" as a directory, including parents if necessary. | |
328 | as_fn_mkdir_p () | |
329 | { | |
330 | ||
331 | case $as_dir in #( | |
332 | -*) as_dir=./$as_dir;; | |
333 | esac | |
334 | test -d "$as_dir" || eval $as_mkdir_p || { | |
335 | as_dirs= | |
336 | while :; do | |
337 | case $as_dir in #( | |
338 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
339 | *) as_qdir=$as_dir;; | |
340 | esac | |
341 | as_dirs="'$as_qdir' $as_dirs" | |
342 | as_dir=`$as_dirname -- "$as_dir" || | |
343 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
344 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
345 | X"$as_dir" : 'X\(//\)$' \| \ | |
346 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
347 | $as_echo X"$as_dir" | | |
348 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
349 | s//\1/ | |
350 | q | |
351 | } | |
352 | /^X\(\/\/\)[^/].*/{ | |
353 | s//\1/ | |
354 | q | |
355 | } | |
356 | /^X\(\/\/\)$/{ | |
357 | s//\1/ | |
358 | q | |
359 | } | |
360 | /^X\(\/\).*/{ | |
361 | s//\1/ | |
362 | q | |
363 | } | |
364 | s/.*/./; q'` | |
365 | test -d "$as_dir" && break | |
366 | done | |
367 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
12833ad8 | 368 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
c7aa54aa DWT |
369 | |
370 | ||
371 | } # as_fn_mkdir_p | |
53ba6704 JF |
372 | |
373 | # as_fn_executable_p FILE | |
374 | # ----------------------- | |
375 | # Test if FILE is an executable regular file. | |
376 | as_fn_executable_p () | |
377 | { | |
378 | test -f "$1" && test -x "$1" | |
379 | } # as_fn_executable_p | |
c7aa54aa DWT |
380 | # as_fn_append VAR VALUE |
381 | # ---------------------- | |
382 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
383 | # advantage of any shell optimizations that allow amortized linear growth over | |
384 | # repeated appends, instead of the typical quadratic growth present in naive | |
385 | # implementations. | |
386 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
387 | eval 'as_fn_append () | |
388 | { | |
389 | eval $1+=\$2 | |
390 | }' | |
391 | else | |
392 | as_fn_append () | |
393 | { | |
394 | eval $1=\$$1\$2 | |
395 | } | |
396 | fi # as_fn_append | |
397 | ||
398 | # as_fn_arith ARG... | |
399 | # ------------------ | |
400 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
401 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
402 | # must be portable across $(()) and expr. | |
403 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
404 | eval 'as_fn_arith () | |
405 | { | |
406 | as_val=$(( $* )) | |
407 | }' | |
408 | else | |
409 | as_fn_arith () | |
410 | { | |
411 | as_val=`expr "$@" || test $? -eq 1` | |
412 | } | |
413 | fi # as_fn_arith | |
414 | ||
415 | ||
12833ad8 JF |
416 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
417 | # ---------------------------------------- | |
c7aa54aa DWT |
418 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
419 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
12833ad8 | 420 | # script with STATUS, using 1 if that was 0. |
c7aa54aa DWT |
421 | as_fn_error () |
422 | { | |
12833ad8 JF |
423 | as_status=$1; test $as_status -eq 0 && as_status=1 |
424 | if test "$4"; then | |
425 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
426 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
c7aa54aa | 427 | fi |
12833ad8 | 428 | $as_echo "$as_me: error: $2" >&2 |
c7aa54aa DWT |
429 | as_fn_exit $as_status |
430 | } # as_fn_error | |
431 | ||
432 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
433 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
434 | as_expr=expr | |
435 | else | |
436 | as_expr=false | |
437 | fi | |
438 | ||
439 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
440 | as_basename=basename | |
441 | else | |
442 | as_basename=false | |
443 | fi | |
444 | ||
445 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
446 | as_dirname=dirname | |
447 | else | |
448 | as_dirname=false | |
449 | fi | |
450 | ||
451 | as_me=`$as_basename -- "$0" || | |
452 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
453 | X"$0" : 'X\(//\)$' \| \ | |
454 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
455 | $as_echo X/"$0" | | |
456 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
457 | s//\1/ | |
458 | q | |
459 | } | |
460 | /^X\/\(\/\/\)$/{ | |
461 | s//\1/ | |
462 | q | |
463 | } | |
464 | /^X\/\(\/\).*/{ | |
465 | s//\1/ | |
466 | q | |
467 | } | |
468 | s/.*/./; q'` | |
469 | ||
470 | # Avoid depending upon Character Ranges. | |
471 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
472 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
473 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
474 | as_cr_digits='0123456789' | |
475 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
476 | ||
477 | ||
478 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
479 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
480 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
481 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
482 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
483 | sed -n ' | |
484 | p | |
485 | /[$]LINENO/= | |
486 | ' <$as_myself | | |
487 | sed ' | |
488 | s/[$]LINENO.*/&-/ | |
489 | t lineno | |
490 | b | |
491 | :lineno | |
492 | N | |
493 | :loop | |
494 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
495 | t loop | |
496 | s/-\n.*// | |
497 | ' >$as_me.lineno && | |
498 | chmod +x "$as_me.lineno" || | |
499 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
500 | ||
53ba6704 JF |
501 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
502 | # already done that, so ensure we don't try to do so again and fall | |
503 | # in an infinite loop. This has already happened in practice. | |
504 | _as_can_reexec=no; export _as_can_reexec | |
c7aa54aa DWT |
505 | # Don't try to exec as it changes $[0], causing all sort of problems |
506 | # (the dirname of $[0] is not the place where we might find the | |
507 | # original and so on. Autoconf is especially sensitive to this). | |
508 | . "./$as_me.lineno" | |
509 | # Exit status is that of the last command. | |
510 | exit | |
511 | } | |
512 | ||
513 | ECHO_C= ECHO_N= ECHO_T= | |
514 | case `echo -n x` in #((((( | |
515 | -n*) | |
516 | case `echo 'xy\c'` in | |
517 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
518 | xy) ECHO_C='\c';; | |
519 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
520 | ECHO_T=' ';; | |
521 | esac;; | |
522 | *) | |
523 | ECHO_N='-n';; | |
524 | esac | |
525 | ||
526 | rm -f conf$$ conf$$.exe conf$$.file | |
527 | if test -d conf$$.dir; then | |
528 | rm -f conf$$.dir/conf$$.file | |
529 | else | |
530 | rm -f conf$$.dir | |
531 | mkdir conf$$.dir 2>/dev/null | |
532 | fi | |
533 | if (echo >conf$$.file) 2>/dev/null; then | |
534 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
535 | as_ln_s='ln -s' | |
536 | # ... but there are two gotchas: | |
537 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
538 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
53ba6704 | 539 | # In both cases, we have to default to `cp -pR'. |
c7aa54aa | 540 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
53ba6704 | 541 | as_ln_s='cp -pR' |
c7aa54aa DWT |
542 | elif ln conf$$.file conf$$ 2>/dev/null; then |
543 | as_ln_s=ln | |
544 | else | |
53ba6704 | 545 | as_ln_s='cp -pR' |
c7aa54aa DWT |
546 | fi |
547 | else | |
53ba6704 | 548 | as_ln_s='cp -pR' |
c7aa54aa DWT |
549 | fi |
550 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
551 | rmdir conf$$.dir 2>/dev/null | |
552 | ||
553 | if mkdir -p . 2>/dev/null; then | |
554 | as_mkdir_p='mkdir -p "$as_dir"' | |
555 | else | |
556 | test -d ./-p && rmdir ./-p | |
557 | as_mkdir_p=false | |
558 | fi | |
559 | ||
53ba6704 JF |
560 | as_test_x='test -x' |
561 | as_executable_p=as_fn_executable_p | |
c7aa54aa DWT |
562 | |
563 | # Sed expression to map a string onto a valid CPP name. | |
564 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
565 | ||
566 | # Sed expression to map a string onto a valid variable name. | |
567 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
568 | ||
9c60689e DWT |
569 | SHELL=${CONFIG_SHELL-/bin/sh} |
570 | ||
c7aa54aa | 571 | |
9c60689e DWT |
572 | test -n "$DJDIR" || exec 7<&0 </dev/null |
573 | exec 6>&1 | |
c7aa54aa DWT |
574 | |
575 | # Name of the host. | |
12833ad8 | 576 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
c7aa54aa DWT |
577 | # so uname gets run too. |
578 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
579 | ||
580 | # | |
581 | # Initializations. | |
582 | # | |
583 | ac_default_prefix=/usr/local | |
584 | ac_clean_files= | |
585 | ac_config_libobj_dir=. | |
586 | LIBOBJS= | |
587 | cross_compiling=no | |
588 | subdirs= | |
589 | MFLAGS= | |
590 | MAKEFLAGS= | |
591 | ||
592 | # Identity of this package. | |
593 | PACKAGE_NAME='Cycript' | |
594 | PACKAGE_TARNAME='cycript' | |
595 | PACKAGE_VERSION='0.9' | |
596 | PACKAGE_STRING='Cycript 0.9' | |
597 | PACKAGE_BUGREPORT='saurik@saurik.com' | |
598 | PACKAGE_URL='http://www.cycript.org/' | |
599 | ||
35fa52c0 | 600 | ac_unique_file="Console.cpp" |
6b66678a DWT |
601 | # Factoring default headers for most tests. |
602 | ac_includes_default="\ | |
603 | #include <stdio.h> | |
604 | #ifdef HAVE_SYS_TYPES_H | |
605 | # include <sys/types.h> | |
606 | #endif | |
607 | #ifdef HAVE_SYS_STAT_H | |
608 | # include <sys/stat.h> | |
609 | #endif | |
610 | #ifdef STDC_HEADERS | |
611 | # include <stdlib.h> | |
612 | # include <stddef.h> | |
613 | #else | |
614 | # ifdef HAVE_STDLIB_H | |
615 | # include <stdlib.h> | |
616 | # endif | |
617 | #endif | |
618 | #ifdef HAVE_STRING_H | |
619 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
620 | # include <memory.h> | |
621 | # endif | |
622 | # include <string.h> | |
623 | #endif | |
624 | #ifdef HAVE_STRINGS_H | |
625 | # include <strings.h> | |
626 | #endif | |
627 | #ifdef HAVE_INTTYPES_H | |
628 | # include <inttypes.h> | |
629 | #endif | |
630 | #ifdef HAVE_STDINT_H | |
631 | # include <stdint.h> | |
632 | #endif | |
633 | #ifdef HAVE_UNISTD_H | |
634 | # include <unistd.h> | |
635 | #endif" | |
636 | ||
66170b30 JF |
637 | ac_subst_vars='am__EXEEXT_FALSE |
638 | am__EXEEXT_TRUE | |
639 | LTLIBOBJS | |
9c60689e | 640 | LIBOBJS |
9777bd50 | 641 | SO |
66170b30 | 642 | LTFLAGS |
3615a2f7 | 643 | LTLIBGCC |
6f9aea2b JF |
644 | LTLIBTERMCAP |
645 | LTLIBREADLINE | |
a243b558 JF |
646 | CY_OBJECTIVEC_FALSE |
647 | CY_OBJECTIVEC_TRUE | |
39ed1631 JF |
648 | CY_JAVA_FALSE |
649 | CY_JAVA_TRUE | |
babf7fe8 | 650 | LTOBJECTIVEC |
47aaa820 | 651 | GNUSTEP_CONFIG |
c823f118 | 652 | CY_OBJECTIVEC |
39ed1631 JF |
653 | LTJAVA |
654 | CY_JAVA | |
296ee9a6 | 655 | LTLIBFFI |
309b0535 | 656 | LIBFFI_LIBS |
35fa52c0 | 657 | LIBFFI_CFLAGS |
ae1b611e | 658 | LTLIBUV |
a243b558 JF |
659 | CY_EXECUTE_FALSE |
660 | CY_EXECUTE_TRUE | |
a4287117 JF |
661 | CY_ATTACH_FALSE |
662 | CY_ATTACH_TRUE | |
a93f15c0 JF |
663 | CY_CONSOLE_FALSE |
664 | CY_CONSOLE_TRUE | |
babf7fe8 | 665 | LTJAVASCRIPTCORE |
35fa52c0 DWT |
666 | WEBKIT_LIBS |
667 | WEBKIT_CFLAGS | |
7eda51e0 | 668 | CY_EXECUTE |
be2fde87 JF |
669 | PTHREAD_CFLAGS |
670 | PTHREAD_LIBS | |
671 | PTHREAD_CC | |
672 | ax_pthread_config | |
77578fdd | 673 | LFLAGS |
e9c9a47c | 674 | GNUTAR |
e9c9a47c DWT |
675 | GPERF |
676 | FLEX | |
677 | BISON | |
678 | TIME | |
66170b30 | 679 | GIT |
12833ad8 JF |
680 | PKG_CONFIG_LIBDIR |
681 | PKG_CONFIG_PATH | |
3fd51f51 | 682 | PKG_CONFIG |
1771224f | 683 | HAVE_CXX11 |
a243b558 | 684 | CXXCPP |
9c60689e | 685 | CPP |
9d54db95 | 686 | LT_SYS_LIBRARY_PATH |
9c60689e DWT |
687 | OTOOL64 |
688 | OTOOL | |
689 | LIPO | |
690 | NMEDIT | |
691 | DSYMUTIL | |
ee134472 | 692 | MANIFEST_TOOL |
9c60689e | 693 | RANLIB |
ee134472 | 694 | DLLTOOL |
9c60689e DWT |
695 | OBJDUMP |
696 | LN_S | |
697 | NM | |
698 | ac_ct_DUMPBIN | |
699 | DUMPBIN | |
700 | LD | |
701 | FGREP | |
702 | EGREP | |
703 | GREP | |
704 | SED | |
a243b558 JF |
705 | host_os |
706 | host_vendor | |
707 | host_cpu | |
708 | host | |
709 | build_os | |
710 | build_vendor | |
711 | build_cpu | |
712 | build | |
713 | LIBTOOL | |
a243b558 JF |
714 | ac_ct_AR |
715 | AR | |
716 | am__fastdepOBJCXX_FALSE | |
717 | am__fastdepOBJCXX_TRUE | |
718 | OBJCXXDEPMODE | |
719 | ac_ct_OBJCXX | |
720 | OBJCXXFLAGS | |
721 | OBJCXX | |
722 | am__fastdepCXX_FALSE | |
723 | am__fastdepCXX_TRUE | |
724 | CXXDEPMODE | |
a93f15c0 JF |
725 | ac_ct_CXX |
726 | CXXFLAGS | |
727 | CXX | |
728 | am__fastdepCC_FALSE | |
729 | am__fastdepCC_TRUE | |
730 | CCDEPMODE | |
66170b30 JF |
731 | am__nodep |
732 | AMDEPBACKSLASH | |
733 | AMDEP_FALSE | |
734 | AMDEP_TRUE | |
735 | am__quote | |
736 | am__include | |
737 | DEPDIR | |
35fa52c0 DWT |
738 | OBJEXT |
739 | EXEEXT | |
a93f15c0 | 740 | ac_ct_CC |
35fa52c0 DWT |
741 | CPPFLAGS |
742 | LDFLAGS | |
a93f15c0 JF |
743 | CFLAGS |
744 | CC | |
babf7fe8 JF |
745 | MAINT |
746 | MAINTAINER_MODE_FALSE | |
747 | MAINTAINER_MODE_TRUE | |
66170b30 JF |
748 | AM_BACKSLASH |
749 | AM_DEFAULT_VERBOSITY | |
750 | AM_DEFAULT_V | |
751 | AM_V | |
752 | am__untar | |
753 | am__tar | |
754 | AMTAR | |
755 | am__leading_dot | |
756 | SET_MAKE | |
757 | AWK | |
758 | mkdir_p | |
759 | MKDIR_P | |
760 | INSTALL_STRIP_PROGRAM | |
761 | STRIP | |
762 | install_sh | |
763 | MAKEINFO | |
764 | AUTOHEADER | |
765 | AUTOMAKE | |
766 | AUTOCONF | |
767 | ACLOCAL | |
768 | VERSION | |
769 | PACKAGE | |
770 | CYGPATH_W | |
771 | am__isrc | |
772 | INSTALL_DATA | |
773 | INSTALL_SCRIPT | |
774 | INSTALL_PROGRAM | |
dbadc56a | 775 | target_alias |
c7aa54aa DWT |
776 | host_alias |
777 | build_alias | |
778 | LIBS | |
779 | ECHO_T | |
780 | ECHO_N | |
781 | ECHO_C | |
782 | DEFS | |
783 | mandir | |
784 | localedir | |
785 | libdir | |
786 | psdir | |
787 | pdfdir | |
788 | dvidir | |
789 | htmldir | |
790 | infodir | |
791 | docdir | |
792 | oldincludedir | |
793 | includedir | |
794 | localstatedir | |
795 | sharedstatedir | |
796 | sysconfdir | |
797 | datadir | |
798 | datarootdir | |
799 | libexecdir | |
800 | sbindir | |
801 | bindir | |
802 | program_transform_name | |
803 | prefix | |
804 | exec_prefix | |
805 | PACKAGE_URL | |
806 | PACKAGE_BUGREPORT | |
807 | PACKAGE_STRING | |
808 | PACKAGE_VERSION | |
809 | PACKAGE_TARNAME | |
810 | PACKAGE_NAME | |
811 | PATH_SEPARATOR | |
812 | SHELL' | |
813 | ac_subst_files='' | |
814 | ac_user_opts=' | |
815 | enable_option_checking | |
66170b30 | 816 | enable_silent_rules |
babf7fe8 | 817 | enable_maintainer_mode |
a243b558 | 818 | enable_dependency_tracking |
9c60689e | 819 | enable_static |
549f29b5 | 820 | enable_shared |
9c60689e DWT |
821 | with_pic |
822 | enable_fast_install | |
9d54db95 | 823 | with_aix_soname |
35fa52c0 | 824 | with_gnu_ld |
ee134472 | 825 | with_sysroot |
9c60689e | 826 | enable_libtool_lock |
5053a6d1 | 827 | enable_javascript |
a93f15c0 | 828 | enable_console |
a4287117 | 829 | enable_attach |
c7aa54aa DWT |
830 | ' |
831 | ac_precious_vars='build_alias | |
832 | host_alias | |
dbadc56a | 833 | target_alias |
a93f15c0 JF |
834 | CC |
835 | CFLAGS | |
dbadc56a DWT |
836 | LDFLAGS |
837 | LIBS | |
838 | CPPFLAGS | |
a93f15c0 JF |
839 | CXX |
840 | CXXFLAGS | |
a243b558 JF |
841 | CCC |
842 | OBJCXX | |
843 | OBJCXXFLAGS | |
9d54db95 | 844 | LT_SYS_LIBRARY_PATH |
9c60689e | 845 | CPP |
a243b558 | 846 | CXXCPP |
3fd51f51 | 847 | PKG_CONFIG |
12833ad8 JF |
848 | PKG_CONFIG_PATH |
849 | PKG_CONFIG_LIBDIR | |
e9c9a47c DWT |
850 | BISON |
851 | FLEX | |
852 | GPERF | |
66170b30 | 853 | GNUTAR |
77578fdd | 854 | LFLAGS |
35fa52c0 DWT |
855 | WEBKIT_CFLAGS |
856 | WEBKIT_LIBS | |
a667869d | 857 | LIBFFI_CFLAGS |
790e5246 DWT |
858 | LIBFFI_LIBS |
859 | GNUSTEP_CONFIG' | |
c7aa54aa DWT |
860 | |
861 | ||
862 | # Initialize some variables set by options. | |
863 | ac_init_help= | |
864 | ac_init_version=false | |
865 | ac_unrecognized_opts= | |
866 | ac_unrecognized_sep= | |
867 | # The variables have the same names as the options, with | |
868 | # dashes changed to underlines. | |
869 | cache_file=/dev/null | |
870 | exec_prefix=NONE | |
871 | no_create= | |
872 | no_recursion= | |
873 | prefix=NONE | |
874 | program_prefix=NONE | |
875 | program_suffix=NONE | |
876 | program_transform_name=s,x,x, | |
877 | silent= | |
878 | site= | |
879 | srcdir= | |
880 | verbose= | |
881 | x_includes=NONE | |
882 | x_libraries=NONE | |
883 | ||
884 | # Installation directory options. | |
885 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
886 | # and all the variables that are supposed to be based on exec_prefix | |
887 | # by default will actually change. | |
888 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
889 | # (The list follows the same order as the GNU Coding Standards.) | |
890 | bindir='${exec_prefix}/bin' | |
891 | sbindir='${exec_prefix}/sbin' | |
892 | libexecdir='${exec_prefix}/libexec' | |
893 | datarootdir='${prefix}/share' | |
894 | datadir='${datarootdir}' | |
895 | sysconfdir='${prefix}/etc' | |
896 | sharedstatedir='${prefix}/com' | |
897 | localstatedir='${prefix}/var' | |
898 | includedir='${prefix}/include' | |
899 | oldincludedir='/usr/include' | |
900 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
901 | infodir='${datarootdir}/info' | |
902 | htmldir='${docdir}' | |
903 | dvidir='${docdir}' | |
904 | pdfdir='${docdir}' | |
905 | psdir='${docdir}' | |
906 | libdir='${exec_prefix}/lib' | |
907 | localedir='${datarootdir}/locale' | |
908 | mandir='${datarootdir}/man' | |
909 | ||
910 | ac_prev= | |
911 | ac_dashdash= | |
912 | for ac_option | |
913 | do | |
914 | # If the previous option needs an argument, assign it. | |
915 | if test -n "$ac_prev"; then | |
916 | eval $ac_prev=\$ac_option | |
917 | ac_prev= | |
918 | continue | |
919 | fi | |
920 | ||
921 | case $ac_option in | |
12833ad8 JF |
922 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
923 | *=) ac_optarg= ;; | |
924 | *) ac_optarg=yes ;; | |
c7aa54aa DWT |
925 | esac |
926 | ||
927 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
928 | ||
929 | case $ac_dashdash$ac_option in | |
930 | --) | |
931 | ac_dashdash=yes ;; | |
932 | ||
933 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
934 | ac_prev=bindir ;; | |
935 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
936 | bindir=$ac_optarg ;; | |
937 | ||
938 | -build | --build | --buil | --bui | --bu) | |
939 | ac_prev=build_alias ;; | |
940 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
941 | build_alias=$ac_optarg ;; | |
942 | ||
943 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
944 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
945 | ac_prev=cache_file ;; | |
946 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
947 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
948 | cache_file=$ac_optarg ;; | |
949 | ||
950 | --config-cache | -C) | |
951 | cache_file=config.cache ;; | |
952 | ||
953 | -datadir | --datadir | --datadi | --datad) | |
954 | ac_prev=datadir ;; | |
955 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
956 | datadir=$ac_optarg ;; | |
957 | ||
958 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
959 | | --dataroo | --dataro | --datar) | |
960 | ac_prev=datarootdir ;; | |
961 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
962 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
963 | datarootdir=$ac_optarg ;; | |
964 | ||
965 | -disable-* | --disable-*) | |
966 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
967 | # Reject names that are not valid shell variable names. | |
968 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 969 | as_fn_error $? "invalid feature name: $ac_useropt" |
c7aa54aa DWT |
970 | ac_useropt_orig=$ac_useropt |
971 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
972 | case $ac_user_opts in | |
973 | *" | |
974 | "enable_$ac_useropt" | |
975 | "*) ;; | |
976 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
977 | ac_unrecognized_sep=', ';; | |
978 | esac | |
979 | eval enable_$ac_useropt=no ;; | |
980 | ||
981 | -docdir | --docdir | --docdi | --doc | --do) | |
982 | ac_prev=docdir ;; | |
983 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
984 | docdir=$ac_optarg ;; | |
985 | ||
986 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
987 | ac_prev=dvidir ;; | |
988 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
989 | dvidir=$ac_optarg ;; | |
990 | ||
991 | -enable-* | --enable-*) | |
992 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
993 | # Reject names that are not valid shell variable names. | |
994 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 995 | as_fn_error $? "invalid feature name: $ac_useropt" |
c7aa54aa DWT |
996 | ac_useropt_orig=$ac_useropt |
997 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
998 | case $ac_user_opts in | |
999 | *" | |
1000 | "enable_$ac_useropt" | |
1001 | "*) ;; | |
1002 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1003 | ac_unrecognized_sep=', ';; | |
1004 | esac | |
1005 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1006 | ||
1007 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1008 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1009 | | --exec | --exe | --ex) | |
1010 | ac_prev=exec_prefix ;; | |
1011 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1012 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1013 | | --exec=* | --exe=* | --ex=*) | |
1014 | exec_prefix=$ac_optarg ;; | |
1015 | ||
1016 | -gas | --gas | --ga | --g) | |
1017 | # Obsolete; use --with-gas. | |
1018 | with_gas=yes ;; | |
1019 | ||
1020 | -help | --help | --hel | --he | -h) | |
1021 | ac_init_help=long ;; | |
1022 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1023 | ac_init_help=recursive ;; | |
1024 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1025 | ac_init_help=short ;; | |
1026 | ||
1027 | -host | --host | --hos | --ho) | |
1028 | ac_prev=host_alias ;; | |
1029 | -host=* | --host=* | --hos=* | --ho=*) | |
1030 | host_alias=$ac_optarg ;; | |
1031 | ||
1032 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1033 | ac_prev=htmldir ;; | |
1034 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1035 | | --ht=*) | |
1036 | htmldir=$ac_optarg ;; | |
1037 | ||
1038 | -includedir | --includedir | --includedi | --included | --include \ | |
1039 | | --includ | --inclu | --incl | --inc) | |
1040 | ac_prev=includedir ;; | |
1041 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1042 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1043 | includedir=$ac_optarg ;; | |
1044 | ||
1045 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1046 | ac_prev=infodir ;; | |
1047 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1048 | infodir=$ac_optarg ;; | |
1049 | ||
1050 | -libdir | --libdir | --libdi | --libd) | |
1051 | ac_prev=libdir ;; | |
1052 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1053 | libdir=$ac_optarg ;; | |
1054 | ||
1055 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1056 | | --libexe | --libex | --libe) | |
1057 | ac_prev=libexecdir ;; | |
1058 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1059 | | --libexe=* | --libex=* | --libe=*) | |
1060 | libexecdir=$ac_optarg ;; | |
1061 | ||
1062 | -localedir | --localedir | --localedi | --localed | --locale) | |
1063 | ac_prev=localedir ;; | |
1064 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1065 | localedir=$ac_optarg ;; | |
1066 | ||
1067 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1068 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1069 | ac_prev=localstatedir ;; | |
1070 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1071 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1072 | localstatedir=$ac_optarg ;; | |
1073 | ||
1074 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1075 | ac_prev=mandir ;; | |
1076 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1077 | mandir=$ac_optarg ;; | |
1078 | ||
1079 | -nfp | --nfp | --nf) | |
1080 | # Obsolete; use --without-fp. | |
1081 | with_fp=no ;; | |
1082 | ||
1083 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1084 | | --no-cr | --no-c | -n) | |
1085 | no_create=yes ;; | |
1086 | ||
1087 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1088 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1089 | no_recursion=yes ;; | |
1090 | ||
1091 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1092 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1093 | | --oldin | --oldi | --old | --ol | --o) | |
1094 | ac_prev=oldincludedir ;; | |
1095 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1096 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1097 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1098 | oldincludedir=$ac_optarg ;; | |
1099 | ||
1100 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1101 | ac_prev=prefix ;; | |
1102 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1103 | prefix=$ac_optarg ;; | |
1104 | ||
1105 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1106 | | --program-pre | --program-pr | --program-p) | |
1107 | ac_prev=program_prefix ;; | |
1108 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1109 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1110 | program_prefix=$ac_optarg ;; | |
1111 | ||
1112 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1113 | | --program-suf | --program-su | --program-s) | |
1114 | ac_prev=program_suffix ;; | |
1115 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1116 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1117 | program_suffix=$ac_optarg ;; | |
1118 | ||
1119 | -program-transform-name | --program-transform-name \ | |
1120 | | --program-transform-nam | --program-transform-na \ | |
1121 | | --program-transform-n | --program-transform- \ | |
1122 | | --program-transform | --program-transfor \ | |
1123 | | --program-transfo | --program-transf \ | |
1124 | | --program-trans | --program-tran \ | |
1125 | | --progr-tra | --program-tr | --program-t) | |
1126 | ac_prev=program_transform_name ;; | |
1127 | -program-transform-name=* | --program-transform-name=* \ | |
1128 | | --program-transform-nam=* | --program-transform-na=* \ | |
1129 | | --program-transform-n=* | --program-transform-=* \ | |
1130 | | --program-transform=* | --program-transfor=* \ | |
1131 | | --program-transfo=* | --program-transf=* \ | |
1132 | | --program-trans=* | --program-tran=* \ | |
1133 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1134 | program_transform_name=$ac_optarg ;; | |
1135 | ||
1136 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1137 | ac_prev=pdfdir ;; | |
1138 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1139 | pdfdir=$ac_optarg ;; | |
1140 | ||
1141 | -psdir | --psdir | --psdi | --psd | --ps) | |
1142 | ac_prev=psdir ;; | |
1143 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1144 | psdir=$ac_optarg ;; | |
1145 | ||
1146 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1147 | | -silent | --silent | --silen | --sile | --sil) | |
1148 | silent=yes ;; | |
1149 | ||
1150 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1151 | ac_prev=sbindir ;; | |
1152 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1153 | | --sbi=* | --sb=*) | |
1154 | sbindir=$ac_optarg ;; | |
1155 | ||
1156 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1157 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1158 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1159 | | --sha | --sh) | |
1160 | ac_prev=sharedstatedir ;; | |
1161 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1162 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1163 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1164 | | --sha=* | --sh=*) | |
1165 | sharedstatedir=$ac_optarg ;; | |
1166 | ||
1167 | -site | --site | --sit) | |
1168 | ac_prev=site ;; | |
1169 | -site=* | --site=* | --sit=*) | |
1170 | site=$ac_optarg ;; | |
1171 | ||
1172 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1173 | ac_prev=srcdir ;; | |
1174 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1175 | srcdir=$ac_optarg ;; | |
1176 | ||
1177 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1178 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1179 | ac_prev=sysconfdir ;; | |
1180 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1181 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1182 | sysconfdir=$ac_optarg ;; | |
1183 | ||
1184 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1185 | ac_prev=target_alias ;; | |
1186 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1187 | target_alias=$ac_optarg ;; | |
1188 | ||
1189 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1190 | verbose=yes ;; | |
1191 | ||
1192 | -version | --version | --versio | --versi | --vers | -V) | |
1193 | ac_init_version=: ;; | |
1194 | ||
1195 | -with-* | --with-*) | |
1196 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1197 | # Reject names that are not valid shell variable names. | |
1198 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 1199 | as_fn_error $? "invalid package name: $ac_useropt" |
c7aa54aa DWT |
1200 | ac_useropt_orig=$ac_useropt |
1201 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1202 | case $ac_user_opts in | |
1203 | *" | |
1204 | "with_$ac_useropt" | |
1205 | "*) ;; | |
1206 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1207 | ac_unrecognized_sep=', ';; | |
1208 | esac | |
1209 | eval with_$ac_useropt=\$ac_optarg ;; | |
1210 | ||
1211 | -without-* | --without-*) | |
1212 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1213 | # Reject names that are not valid shell variable names. | |
1214 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 1215 | as_fn_error $? "invalid package name: $ac_useropt" |
c7aa54aa DWT |
1216 | ac_useropt_orig=$ac_useropt |
1217 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1218 | case $ac_user_opts in | |
1219 | *" | |
1220 | "with_$ac_useropt" | |
1221 | "*) ;; | |
1222 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1223 | ac_unrecognized_sep=', ';; | |
1224 | esac | |
1225 | eval with_$ac_useropt=no ;; | |
1226 | ||
1227 | --x) | |
1228 | # Obsolete; use --with-x. | |
1229 | with_x=yes ;; | |
1230 | ||
1231 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1232 | | --x-incl | --x-inc | --x-in | --x-i) | |
1233 | ac_prev=x_includes ;; | |
1234 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1235 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1236 | x_includes=$ac_optarg ;; | |
1237 | ||
1238 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1239 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1240 | ac_prev=x_libraries ;; | |
1241 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1242 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1243 | x_libraries=$ac_optarg ;; | |
1244 | ||
12833ad8 JF |
1245 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1246 | Try \`$0 --help' for more information" | |
c7aa54aa DWT |
1247 | ;; |
1248 | ||
1249 | *=*) | |
1250 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1251 | # Reject names that are not valid shell variable names. | |
1252 | case $ac_envvar in #( | |
1253 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
12833ad8 | 1254 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
c7aa54aa DWT |
1255 | esac |
1256 | eval $ac_envvar=\$ac_optarg | |
1257 | export $ac_envvar ;; | |
1258 | ||
1259 | *) | |
1260 | # FIXME: should be removed in autoconf 3.0. | |
1261 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1262 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1263 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
ee134472 | 1264 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
c7aa54aa DWT |
1265 | ;; |
1266 | ||
1267 | esac | |
1268 | done | |
1269 | ||
1270 | if test -n "$ac_prev"; then | |
1271 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
12833ad8 | 1272 | as_fn_error $? "missing argument to $ac_option" |
c7aa54aa DWT |
1273 | fi |
1274 | ||
1275 | if test -n "$ac_unrecognized_opts"; then | |
1276 | case $enable_option_checking in | |
1277 | no) ;; | |
12833ad8 | 1278 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
c7aa54aa DWT |
1279 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1280 | esac | |
1281 | fi | |
1282 | ||
1283 | # Check all directory arguments for consistency. | |
1284 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1285 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1286 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1287 | libdir localedir mandir | |
1288 | do | |
1289 | eval ac_val=\$$ac_var | |
1290 | # Remove trailing slashes. | |
1291 | case $ac_val in | |
1292 | */ ) | |
1293 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1294 | eval $ac_var=\$ac_val;; | |
1295 | esac | |
1296 | # Be sure to have absolute directory names. | |
1297 | case $ac_val in | |
1298 | [\\/$]* | ?:[\\/]* ) continue;; | |
1299 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1300 | esac | |
12833ad8 | 1301 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
c7aa54aa DWT |
1302 | done |
1303 | ||
1304 | # There might be people who depend on the old broken behavior: `$host' | |
1305 | # used to hold the argument of --host etc. | |
1306 | # FIXME: To remove some day. | |
1307 | build=$build_alias | |
1308 | host=$host_alias | |
1309 | target=$target_alias | |
1310 | ||
1311 | # FIXME: To remove some day. | |
1312 | if test "x$host_alias" != x; then | |
1313 | if test "x$build_alias" = x; then | |
1314 | cross_compiling=maybe | |
c7aa54aa DWT |
1315 | elif test "x$build_alias" != "x$host_alias"; then |
1316 | cross_compiling=yes | |
1317 | fi | |
1318 | fi | |
1319 | ||
1320 | ac_tool_prefix= | |
1321 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1322 | ||
1323 | test "$silent" = yes && exec 6>/dev/null | |
1324 | ||
1325 | ||
1326 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1327 | ac_ls_di=`ls -di .` && | |
1328 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
12833ad8 | 1329 | as_fn_error $? "working directory cannot be determined" |
c7aa54aa | 1330 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
12833ad8 | 1331 | as_fn_error $? "pwd does not report name of working directory" |
c7aa54aa DWT |
1332 | |
1333 | ||
1334 | # Find the source files, if location was not specified. | |
1335 | if test -z "$srcdir"; then | |
1336 | ac_srcdir_defaulted=yes | |
1337 | # Try the directory containing this script, then the parent directory. | |
1338 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1339 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1340 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1341 | X"$as_myself" : 'X\(//\)$' \| \ | |
1342 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1343 | $as_echo X"$as_myself" | | |
1344 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1345 | s//\1/ | |
1346 | q | |
1347 | } | |
1348 | /^X\(\/\/\)[^/].*/{ | |
1349 | s//\1/ | |
1350 | q | |
1351 | } | |
1352 | /^X\(\/\/\)$/{ | |
1353 | s//\1/ | |
1354 | q | |
1355 | } | |
1356 | /^X\(\/\).*/{ | |
1357 | s//\1/ | |
1358 | q | |
1359 | } | |
1360 | s/.*/./; q'` | |
1361 | srcdir=$ac_confdir | |
1362 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1363 | srcdir=.. | |
1364 | fi | |
1365 | else | |
1366 | ac_srcdir_defaulted=no | |
1367 | fi | |
1368 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1369 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
12833ad8 | 1370 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
c7aa54aa DWT |
1371 | fi |
1372 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1373 | ac_abs_confdir=`( | |
12833ad8 | 1374 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
c7aa54aa DWT |
1375 | pwd)` |
1376 | # When building in place, set srcdir=. | |
1377 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1378 | srcdir=. | |
1379 | fi | |
1380 | # Remove unnecessary trailing slashes from srcdir. | |
1381 | # Double slashes in file names in object file debugging info | |
1382 | # mess up M-x gdb in Emacs. | |
1383 | case $srcdir in | |
1384 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1385 | esac | |
1386 | for ac_var in $ac_precious_vars; do | |
1387 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1388 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1389 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1390 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1391 | done | |
1392 | ||
1393 | # | |
1394 | # Report the --help message. | |
1395 | # | |
1396 | if test "$ac_init_help" = "long"; then | |
1397 | # Omit some internal or obsolete options to make the list less imposing. | |
1398 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1399 | cat <<_ACEOF | |
1400 | \`configure' configures Cycript 0.9 to adapt to many kinds of systems. | |
1401 | ||
1402 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1403 | ||
1404 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1405 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1406 | ||
1407 | Defaults for the options are specified in brackets. | |
1408 | ||
1409 | Configuration: | |
1410 | -h, --help display this help and exit | |
1411 | --help=short display options specific to this package | |
1412 | --help=recursive display the short help of all the included packages | |
1413 | -V, --version display version information and exit | |
12833ad8 | 1414 | -q, --quiet, --silent do not print \`checking ...' messages |
c7aa54aa DWT |
1415 | --cache-file=FILE cache test results in FILE [disabled] |
1416 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1417 | -n, --no-create do not create output files | |
1418 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1419 | ||
1420 | Installation directories: | |
1421 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1422 | [$ac_default_prefix] | |
1423 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1424 | [PREFIX] | |
1425 | ||
1426 | By default, \`make install' will install all the files in | |
1427 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1428 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1429 | for instance \`--prefix=\$HOME'. | |
1430 | ||
1431 | For better control, use the options below. | |
1432 | ||
1433 | Fine tuning of the installation directories: | |
1434 | --bindir=DIR user executables [EPREFIX/bin] | |
1435 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1436 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1437 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1438 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1439 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1440 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1441 | --includedir=DIR C header files [PREFIX/include] | |
1442 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1443 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1444 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1445 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1446 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1447 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1448 | --docdir=DIR documentation root [DATAROOTDIR/doc/cycript] | |
1449 | --htmldir=DIR html documentation [DOCDIR] | |
1450 | --dvidir=DIR dvi documentation [DOCDIR] | |
1451 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1452 | --psdir=DIR ps documentation [DOCDIR] | |
1453 | _ACEOF | |
1454 | ||
1455 | cat <<\_ACEOF | |
35fa52c0 | 1456 | |
66170b30 JF |
1457 | Program names: |
1458 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1459 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1460 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1461 | ||
35fa52c0 DWT |
1462 | System types: |
1463 | --build=BUILD configure for building on BUILD [guessed] | |
1464 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
c7aa54aa DWT |
1465 | _ACEOF |
1466 | fi | |
1467 | ||
1468 | if test -n "$ac_init_help"; then | |
1469 | case $ac_init_help in | |
1470 | short | recursive ) echo "Configuration of Cycript 0.9:";; | |
1471 | esac | |
1472 | cat <<\_ACEOF | |
1473 | ||
35fa52c0 DWT |
1474 | Optional Features: |
1475 | --disable-option-checking ignore unrecognized --enable/--with options | |
1476 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1477 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
66170b30 JF |
1478 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1479 | --disable-silent-rules verbose build output (undo: "make V=0") | |
babf7fe8 JF |
1480 | --enable-maintainer-mode |
1481 | enable make rules and dependencies not useful (and | |
1482 | sometimes confusing) to the casual installer | |
66170b30 JF |
1483 | --enable-dependency-tracking |
1484 | do not reject slow dependency extractors | |
1485 | --disable-dependency-tracking | |
1486 | speeds up one-time build | |
a243b558 JF |
1487 | --enable-static[=PKGS] build static libraries [default=no] |
1488 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1489 | --enable-fast-install[=PKGS] | |
1490 | optimize for fast installation [default=yes] | |
9c60689e | 1491 | --disable-libtool-lock avoid locking (might break parallel builds) |
b66977f1 | 1492 | --enable-javascript[=ENGINE] |
790e5246 | 1493 | use a JavaScript runtime (currently the only |
b66977f1 DWT |
1494 | available option for ENGINE is JavaScriptCore) |
1495 | [default=yes] | |
a93f15c0 | 1496 | --disable-console disable console |
a4287117 | 1497 | --disable-attach disable attach |
35fa52c0 DWT |
1498 | |
1499 | Optional Packages: | |
1500 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1501 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
53ba6704 | 1502 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
9c60689e | 1503 | both] |
9d54db95 JF |
1504 | --with-aix-soname=aix|svr4|both |
1505 | shared library versioning (aka "SONAME") variant to | |
1506 | provide on AIX, [default=aix]. | |
9c60689e | 1507 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
9d54db95 JF |
1508 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
1509 | compiler's sysroot if not specified). | |
35fa52c0 | 1510 | |
dbadc56a | 1511 | Some influential environment variables: |
a93f15c0 JF |
1512 | CC C compiler command |
1513 | CFLAGS C compiler flags | |
dbadc56a DWT |
1514 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1515 | nonstandard directory <lib dir> | |
1516 | LIBS libraries to pass to the linker, e.g. -l<library> | |
9c60689e | 1517 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
dbadc56a | 1518 | you have headers in a nonstandard directory <include dir> |
a93f15c0 JF |
1519 | CXX C++ compiler command |
1520 | CXXFLAGS C++ compiler flags | |
a243b558 JF |
1521 | OBJCXX Objective C++ compiler command |
1522 | OBJCXXFLAGS Objective C++ compiler flags | |
9d54db95 JF |
1523 | LT_SYS_LIBRARY_PATH |
1524 | User-defined run-time library search path. | |
9c60689e | 1525 | CPP C preprocessor |
a243b558 | 1526 | CXXCPP C++ preprocessor |
3fd51f51 | 1527 | PKG_CONFIG path to pkg-config utility |
12833ad8 JF |
1528 | PKG_CONFIG_PATH |
1529 | directories to add to pkg-config's search path | |
1530 | PKG_CONFIG_LIBDIR | |
1531 | path overriding pkg-config's built-in search path | |
e9c9a47c DWT |
1532 | BISON GNU Project parser generator (yacc replacement) |
1533 | FLEX the fast lexical analyser generator | |
1534 | GPERF perfect hash function generator | |
66170b30 | 1535 | GNUTAR a very sticky lump of files |
77578fdd | 1536 | LFLAGS flex flags |
35fa52c0 DWT |
1537 | WEBKIT_CFLAGS |
1538 | C compiler flags for WEBKIT, overriding pkg-config | |
1539 | WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config | |
790e5246 DWT |
1540 | GNUSTEP_CONFIG |
1541 | prints information about the current gnustep installation | |
dbadc56a DWT |
1542 | |
1543 | Use these variables to override the choices made by `configure' or to help | |
1544 | it to find libraries and programs with nonstandard names/locations. | |
1545 | ||
c7aa54aa DWT |
1546 | Report bugs to <saurik@saurik.com>. |
1547 | Cycript home page: <http://www.cycript.org/>. | |
1548 | _ACEOF | |
1549 | ac_status=$? | |
1550 | fi | |
1551 | ||
1552 | if test "$ac_init_help" = "recursive"; then | |
1553 | # If there are subdirs, report their specific --help. | |
1554 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1555 | test -d "$ac_dir" || | |
1556 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1557 | continue | |
1558 | ac_builddir=. | |
1559 | ||
1560 | case "$ac_dir" in | |
1561 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1562 | *) | |
1563 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1564 | # A ".." for each directory in $ac_dir_suffix. | |
1565 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1566 | case $ac_top_builddir_sub in | |
1567 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1568 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1569 | esac ;; | |
1570 | esac | |
1571 | ac_abs_top_builddir=$ac_pwd | |
1572 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1573 | # for backward compatibility: | |
1574 | ac_top_builddir=$ac_top_build_prefix | |
1575 | ||
1576 | case $srcdir in | |
1577 | .) # We are building in place. | |
1578 | ac_srcdir=. | |
1579 | ac_top_srcdir=$ac_top_builddir_sub | |
1580 | ac_abs_top_srcdir=$ac_pwd ;; | |
1581 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1582 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1583 | ac_top_srcdir=$srcdir | |
1584 | ac_abs_top_srcdir=$srcdir ;; | |
1585 | *) # Relative name. | |
1586 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1587 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1588 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1589 | esac | |
1590 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1591 | ||
1592 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1593 | # Check for guested configure. | |
1594 | if test -f "$ac_srcdir/configure.gnu"; then | |
1595 | echo && | |
1596 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1597 | elif test -f "$ac_srcdir/configure"; then | |
1598 | echo && | |
1599 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1600 | else | |
1601 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1602 | fi || ac_status=$? | |
1603 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1604 | done | |
1605 | fi | |
1606 | ||
1607 | test -n "$ac_init_help" && exit $ac_status | |
1608 | if $ac_init_version; then | |
1609 | cat <<\_ACEOF | |
1610 | Cycript configure 0.9 | |
53ba6704 | 1611 | generated by GNU Autoconf 2.69 |
c7aa54aa | 1612 | |
53ba6704 | 1613 | Copyright (C) 2012 Free Software Foundation, Inc. |
c7aa54aa DWT |
1614 | This configure script is free software; the Free Software Foundation |
1615 | gives unlimited permission to copy, distribute and modify it. | |
66170b30 | 1616 | |
c1d3e52e | 1617 | Copyright (C) 2009-2015 Jay Freeman (saurik) |
c7aa54aa DWT |
1618 | _ACEOF |
1619 | exit | |
1620 | fi | |
1621 | ||
1622 | ## ------------------------ ## | |
1623 | ## Autoconf initialization. ## | |
1624 | ## ------------------------ ## | |
dbadc56a | 1625 | |
a93f15c0 JF |
1626 | # ac_fn_c_try_compile LINENO |
1627 | # -------------------------- | |
a243b558 | 1628 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
a93f15c0 | 1629 | ac_fn_c_try_compile () |
a243b558 JF |
1630 | { |
1631 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1632 | rm -f conftest.$ac_objext | |
1633 | if { { ac_try="$ac_compile" | |
1634 | case "(($ac_try" in | |
1635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1636 | *) ac_try_echo=$ac_try;; | |
1637 | esac | |
1638 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1639 | $as_echo "$ac_try_echo"; } >&5 | |
1640 | (eval "$ac_compile") 2>conftest.err | |
1641 | ac_status=$? | |
1642 | if test -s conftest.err; then | |
1643 | grep -v '^ *+' conftest.err >conftest.er1 | |
1644 | cat conftest.er1 >&5 | |
1645 | mv -f conftest.er1 conftest.err | |
1646 | fi | |
1647 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1648 | test $ac_status = 0; } && { | |
a93f15c0 | 1649 | test -z "$ac_c_werror_flag" || |
a243b558 JF |
1650 | test ! -s conftest.err |
1651 | } && test -s conftest.$ac_objext; then : | |
1652 | ac_retval=0 | |
1653 | else | |
1654 | $as_echo "$as_me: failed program was:" >&5 | |
1655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1656 | ||
1657 | ac_retval=1 | |
1658 | fi | |
1659 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1660 | as_fn_set_status $ac_retval | |
1661 | ||
a93f15c0 | 1662 | } # ac_fn_c_try_compile |
a243b558 | 1663 | |
a93f15c0 JF |
1664 | # ac_fn_cxx_try_compile LINENO |
1665 | # ---------------------------- | |
a243b558 | 1666 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
a93f15c0 | 1667 | ac_fn_cxx_try_compile () |
a243b558 JF |
1668 | { |
1669 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1670 | rm -f conftest.$ac_objext | |
1671 | if { { ac_try="$ac_compile" | |
1672 | case "(($ac_try" in | |
1673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1674 | *) ac_try_echo=$ac_try;; | |
1675 | esac | |
1676 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1677 | $as_echo "$ac_try_echo"; } >&5 | |
1678 | (eval "$ac_compile") 2>conftest.err | |
1679 | ac_status=$? | |
1680 | if test -s conftest.err; then | |
1681 | grep -v '^ *+' conftest.err >conftest.er1 | |
1682 | cat conftest.er1 >&5 | |
1683 | mv -f conftest.er1 conftest.err | |
1684 | fi | |
1685 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1686 | test $ac_status = 0; } && { | |
a93f15c0 | 1687 | test -z "$ac_cxx_werror_flag" || |
a243b558 JF |
1688 | test ! -s conftest.err |
1689 | } && test -s conftest.$ac_objext; then : | |
1690 | ac_retval=0 | |
1691 | else | |
1692 | $as_echo "$as_me: failed program was:" >&5 | |
1693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1694 | ||
1695 | ac_retval=1 | |
1696 | fi | |
1697 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1698 | as_fn_set_status $ac_retval | |
1699 | ||
a93f15c0 | 1700 | } # ac_fn_cxx_try_compile |
a243b558 | 1701 | |
a93f15c0 JF |
1702 | # ac_fn_objcxx_try_compile LINENO |
1703 | # ------------------------------- | |
35fa52c0 | 1704 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
a93f15c0 | 1705 | ac_fn_objcxx_try_compile () |
35fa52c0 DWT |
1706 | { |
1707 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1708 | rm -f conftest.$ac_objext | |
1709 | if { { ac_try="$ac_compile" | |
1710 | case "(($ac_try" in | |
1711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1712 | *) ac_try_echo=$ac_try;; | |
1713 | esac | |
1714 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1715 | $as_echo "$ac_try_echo"; } >&5 | |
1716 | (eval "$ac_compile") 2>conftest.err | |
1717 | ac_status=$? | |
1718 | if test -s conftest.err; then | |
1719 | grep -v '^ *+' conftest.err >conftest.er1 | |
1720 | cat conftest.er1 >&5 | |
1721 | mv -f conftest.er1 conftest.err | |
1722 | fi | |
1723 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1724 | test $ac_status = 0; } && { | |
a93f15c0 | 1725 | test -z "$ac_objcxx_werror_flag" || |
35fa52c0 DWT |
1726 | test ! -s conftest.err |
1727 | } && test -s conftest.$ac_objext; then : | |
1728 | ac_retval=0 | |
1729 | else | |
1730 | $as_echo "$as_me: failed program was:" >&5 | |
1731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1732 | ||
1733 | ac_retval=1 | |
1734 | fi | |
ee134472 | 1735 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1736 | as_fn_set_status $ac_retval |
35fa52c0 | 1737 | |
a93f15c0 | 1738 | } # ac_fn_objcxx_try_compile |
35fa52c0 DWT |
1739 | |
1740 | # ac_fn_c_try_link LINENO | |
1741 | # ----------------------- | |
1742 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1743 | ac_fn_c_try_link () | |
1744 | { | |
1745 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1746 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1747 | if { { ac_try="$ac_link" | |
1748 | case "(($ac_try" in | |
1749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1750 | *) ac_try_echo=$ac_try;; | |
1751 | esac | |
1752 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1753 | $as_echo "$ac_try_echo"; } >&5 | |
1754 | (eval "$ac_link") 2>conftest.err | |
1755 | ac_status=$? | |
1756 | if test -s conftest.err; then | |
1757 | grep -v '^ *+' conftest.err >conftest.er1 | |
1758 | cat conftest.er1 >&5 | |
1759 | mv -f conftest.er1 conftest.err | |
1760 | fi | |
1761 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1762 | test $ac_status = 0; } && { | |
1763 | test -z "$ac_c_werror_flag" || | |
1764 | test ! -s conftest.err | |
1765 | } && test -s conftest$ac_exeext && { | |
1766 | test "$cross_compiling" = yes || | |
53ba6704 | 1767 | test -x conftest$ac_exeext |
35fa52c0 DWT |
1768 | }; then : |
1769 | ac_retval=0 | |
1770 | else | |
1771 | $as_echo "$as_me: failed program was:" >&5 | |
1772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1773 | ||
1774 | ac_retval=1 | |
1775 | fi | |
1776 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1777 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1778 | # interfere with the next link command; also delete a directory that is | |
1779 | # left behind by Apple's compiler. We do this before executing the actions. | |
1780 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 1781 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1782 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1783 | |
1784 | } # ac_fn_c_try_link | |
1785 | ||
9c60689e DWT |
1786 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1787 | # ------------------------------------------------------- | |
1788 | # Tests whether HEADER exists and can be compiled using the include files in | |
1789 | # INCLUDES, setting the cache variable VAR accordingly. | |
1790 | ac_fn_c_check_header_compile () | |
dbadc56a DWT |
1791 | { |
1792 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1794 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 1795 | if eval \${$3+:} false; then : |
9c60689e DWT |
1796 | $as_echo_n "(cached) " >&6 |
1797 | else | |
1798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1799 | /* end confdefs.h. */ | |
1800 | $4 | |
1801 | #include <$2> | |
1802 | _ACEOF | |
1803 | if ac_fn_c_try_compile "$LINENO"; then : | |
1804 | eval "$3=yes" | |
1805 | else | |
1806 | eval "$3=no" | |
1807 | fi | |
1808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
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; } | |
ee134472 | 1813 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e DWT |
1814 | |
1815 | } # ac_fn_c_check_header_compile | |
1816 | ||
1817 | # ac_fn_c_try_cpp LINENO | |
1818 | # ---------------------- | |
1819 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1820 | ac_fn_c_try_cpp () | |
1821 | { | |
1822 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1823 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
dbadc56a DWT |
1824 | case "(($ac_try" in |
1825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1826 | *) ac_try_echo=$ac_try;; | |
1827 | esac | |
1828 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1829 | $as_echo "$ac_try_echo"; } >&5 | |
9c60689e | 1830 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
dbadc56a DWT |
1831 | ac_status=$? |
1832 | if test -s conftest.err; then | |
1833 | grep -v '^ *+' conftest.err >conftest.er1 | |
1834 | cat conftest.er1 >&5 | |
1835 | mv -f conftest.er1 conftest.err | |
1836 | fi | |
1837 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12833ad8 | 1838 | test $ac_status = 0; } > conftest.i && { |
9c60689e | 1839 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
dbadc56a | 1840 | test ! -s conftest.err |
9c60689e | 1841 | }; then : |
dbadc56a DWT |
1842 | ac_retval=0 |
1843 | else | |
1844 | $as_echo "$as_me: failed program was:" >&5 | |
1845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1846 | ||
9c60689e | 1847 | ac_retval=1 |
dbadc56a | 1848 | fi |
ee134472 | 1849 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1850 | as_fn_set_status $ac_retval |
dbadc56a | 1851 | |
9c60689e | 1852 | } # ac_fn_c_try_cpp |
35fa52c0 DWT |
1853 | |
1854 | # ac_fn_c_try_run LINENO | |
1855 | # ---------------------- | |
1856 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1857 | # that executables *can* be run. | |
1858 | ac_fn_c_try_run () | |
1859 | { | |
1860 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1861 | if { { ac_try="$ac_link" | |
1862 | case "(($ac_try" in | |
1863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1864 | *) ac_try_echo=$ac_try;; | |
1865 | esac | |
1866 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1867 | $as_echo "$ac_try_echo"; } >&5 | |
1868 | (eval "$ac_link") 2>&5 | |
1869 | ac_status=$? | |
1870 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1871 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1872 | { { case "(($ac_try" in | |
1873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1874 | *) ac_try_echo=$ac_try;; | |
1875 | esac | |
1876 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1877 | $as_echo "$ac_try_echo"; } >&5 | |
1878 | (eval "$ac_try") 2>&5 | |
1879 | ac_status=$? | |
1880 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1881 | test $ac_status = 0; }; }; then : | |
1882 | ac_retval=0 | |
1883 | else | |
1884 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1885 | $as_echo "$as_me: failed program was:" >&5 | |
1886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1887 | ||
1888 | ac_retval=$ac_status | |
1889 | fi | |
1890 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 1891 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1892 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1893 | |
1894 | } # ac_fn_c_try_run | |
6b66678a | 1895 | |
9c60689e DWT |
1896 | # ac_fn_c_check_func LINENO FUNC VAR |
1897 | # ---------------------------------- | |
1898 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1899 | ac_fn_c_check_func () | |
6b66678a DWT |
1900 | { |
1901 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1903 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 1904 | if eval \${$3+:} false; then : |
9c60689e | 1905 | $as_echo_n "(cached) " >&6 |
6b66678a | 1906 | else |
9c60689e DWT |
1907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1908 | /* end confdefs.h. */ | |
1909 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1910 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1911 | #define $2 innocuous_$2 | |
6b66678a | 1912 | |
9c60689e DWT |
1913 | /* System header to define __stub macros and hopefully few prototypes, |
1914 | which can conflict with char $2 (); below. | |
1915 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1916 | <limits.h> exists even on freestanding compilers. */ | |
1917 | ||
1918 | #ifdef __STDC__ | |
1919 | # include <limits.h> | |
1920 | #else | |
1921 | # include <assert.h> | |
1922 | #endif | |
1923 | ||
1924 | #undef $2 | |
1925 | ||
1926 | /* Override any GCC internal prototype to avoid an error. | |
1927 | Use char because int might match the return type of a GCC | |
1928 | builtin and then its argument prototype would still apply. */ | |
1929 | #ifdef __cplusplus | |
1930 | extern "C" | |
1931 | #endif | |
1932 | char $2 (); | |
1933 | /* The GNU C library defines this for functions which it implements | |
1934 | to always fail with ENOSYS. Some functions are actually named | |
1935 | something starting with __ and the normal name is an alias. */ | |
1936 | #if defined __stub_$2 || defined __stub___$2 | |
1937 | choke me | |
1938 | #endif | |
1939 | ||
1940 | int | |
1941 | main () | |
1942 | { | |
1943 | return $2 (); | |
1944 | ; | |
1945 | return 0; | |
1946 | } | |
1947 | _ACEOF | |
1948 | if ac_fn_c_try_link "$LINENO"; then : | |
1949 | eval "$3=yes" | |
1950 | else | |
1951 | eval "$3=no" | |
1952 | fi | |
1953 | rm -f core conftest.err conftest.$ac_objext \ | |
1954 | conftest$ac_exeext conftest.$ac_ext | |
6b66678a | 1955 | fi |
9c60689e DWT |
1956 | eval ac_res=\$$3 |
1957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1958 | $as_echo "$ac_res" >&6; } | |
ee134472 | 1959 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6b66678a | 1960 | |
9c60689e | 1961 | } # ac_fn_c_check_func |
6b66678a | 1962 | |
9c60689e DWT |
1963 | # ac_fn_cxx_try_cpp LINENO |
1964 | # ------------------------ | |
1965 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1966 | ac_fn_cxx_try_cpp () | |
1967 | { | |
1968 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1969 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1970 | case "(($ac_try" in | |
1971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1972 | *) ac_try_echo=$ac_try;; | |
1973 | esac | |
1974 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1975 | $as_echo "$ac_try_echo"; } >&5 | |
1976 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1977 | ac_status=$? | |
1978 | if test -s conftest.err; then | |
1979 | grep -v '^ *+' conftest.err >conftest.er1 | |
1980 | cat conftest.er1 >&5 | |
1981 | mv -f conftest.er1 conftest.err | |
1982 | fi | |
1983 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12833ad8 | 1984 | test $ac_status = 0; } > conftest.i && { |
9c60689e DWT |
1985 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
1986 | test ! -s conftest.err | |
1987 | }; then : | |
1988 | ac_retval=0 | |
1989 | else | |
1990 | $as_echo "$as_me: failed program was:" >&5 | |
1991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1992 | ||
1993 | ac_retval=1 | |
1994 | fi | |
ee134472 | 1995 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e DWT |
1996 | as_fn_set_status $ac_retval |
1997 | ||
1998 | } # ac_fn_cxx_try_cpp | |
1999 | ||
2000 | # ac_fn_cxx_try_link LINENO | |
2001 | # ------------------------- | |
2002 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2003 | ac_fn_cxx_try_link () | |
2004 | { | |
2005 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2006 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2007 | if { { ac_try="$ac_link" | |
2008 | case "(($ac_try" in | |
2009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2010 | *) ac_try_echo=$ac_try;; | |
2011 | esac | |
2012 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2013 | $as_echo "$ac_try_echo"; } >&5 | |
2014 | (eval "$ac_link") 2>conftest.err | |
2015 | ac_status=$? | |
2016 | if test -s conftest.err; then | |
2017 | grep -v '^ *+' conftest.err >conftest.er1 | |
2018 | cat conftest.er1 >&5 | |
2019 | mv -f conftest.er1 conftest.err | |
2020 | fi | |
2021 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2022 | test $ac_status = 0; } && { | |
2023 | test -z "$ac_cxx_werror_flag" || | |
2024 | test ! -s conftest.err | |
2025 | } && test -s conftest$ac_exeext && { | |
2026 | test "$cross_compiling" = yes || | |
53ba6704 | 2027 | test -x conftest$ac_exeext |
9c60689e DWT |
2028 | }; then : |
2029 | ac_retval=0 | |
2030 | else | |
2031 | $as_echo "$as_me: failed program was:" >&5 | |
2032 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2033 | ||
2034 | ac_retval=1 | |
2035 | fi | |
2036 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2037 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2038 | # interfere with the next link command; also delete a directory that is | |
2039 | # left behind by Apple's compiler. We do this before executing the actions. | |
2040 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 2041 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e DWT |
2042 | as_fn_set_status $ac_retval |
2043 | ||
2044 | } # ac_fn_cxx_try_link | |
2045 | ||
47aaa820 DWT |
2046 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
2047 | # --------------------------------------------------------- | |
2048 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2049 | # the include files in INCLUDES and setting the cache variable VAR | |
2050 | # accordingly. | |
2051 | ac_fn_cxx_check_header_mongrel () | |
2052 | { | |
2053 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
ee134472 | 2054 | if eval \${$3+:} false; then : |
47aaa820 DWT |
2055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2056 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 2057 | if eval \${$3+:} false; then : |
47aaa820 DWT |
2058 | $as_echo_n "(cached) " >&6 |
2059 | fi | |
2060 | eval ac_res=\$$3 | |
2061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2062 | $as_echo "$ac_res" >&6; } | |
2063 | else | |
2064 | # Is the header compilable? | |
2065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2066 | $as_echo_n "checking $2 usability... " >&6; } | |
2067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2068 | /* end confdefs.h. */ | |
2069 | $4 | |
2070 | #include <$2> | |
2071 | _ACEOF | |
2072 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2073 | ac_header_compiler=yes | |
2074 | else | |
2075 | ac_header_compiler=no | |
2076 | fi | |
2077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2079 | $as_echo "$ac_header_compiler" >&6; } | |
2080 | ||
2081 | # Is the header present? | |
2082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2083 | $as_echo_n "checking $2 presence... " >&6; } | |
2084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2085 | /* end confdefs.h. */ | |
2086 | #include <$2> | |
2087 | _ACEOF | |
2088 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
2089 | ac_header_preproc=yes | |
2090 | else | |
2091 | ac_header_preproc=no | |
2092 | fi | |
12833ad8 | 2093 | rm -f conftest.err conftest.i conftest.$ac_ext |
47aaa820 DWT |
2094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
2095 | $as_echo "$ac_header_preproc" >&6; } | |
2096 | ||
2097 | # So? What about this header? | |
2098 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
2099 | yes:no: ) | |
2100 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2101 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2102 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2103 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2104 | ;; | |
2105 | no:yes:* ) | |
2106 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2107 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2108 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2109 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2110 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2111 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2112 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2113 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2114 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2115 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
12833ad8 | 2116 | ( $as_echo "## -------------------------------- ## |
47aaa820 | 2117 | ## Report this to saurik@saurik.com ## |
12833ad8 | 2118 | ## -------------------------------- ##" |
47aaa820 DWT |
2119 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
2120 | ;; | |
2121 | esac | |
2122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2123 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 2124 | if eval \${$3+:} false; then : |
47aaa820 DWT |
2125 | $as_echo_n "(cached) " >&6 |
2126 | else | |
2127 | eval "$3=\$ac_header_compiler" | |
2128 | fi | |
2129 | eval ac_res=\$$3 | |
2130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2131 | $as_echo "$ac_res" >&6; } | |
2132 | fi | |
ee134472 | 2133 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
47aaa820 DWT |
2134 | |
2135 | } # ac_fn_cxx_check_header_mongrel | |
2136 | ||
c823f118 DWT |
2137 | # ac_fn_objcxx_try_link LINENO |
2138 | # ---------------------------- | |
2139 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2140 | ac_fn_objcxx_try_link () | |
2141 | { | |
2142 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2143 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2144 | if { { ac_try="$ac_link" | |
2145 | case "(($ac_try" in | |
2146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2147 | *) ac_try_echo=$ac_try;; | |
2148 | esac | |
2149 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2150 | $as_echo "$ac_try_echo"; } >&5 | |
2151 | (eval "$ac_link") 2>conftest.err | |
2152 | ac_status=$? | |
2153 | if test -s conftest.err; then | |
2154 | grep -v '^ *+' conftest.err >conftest.er1 | |
2155 | cat conftest.er1 >&5 | |
2156 | mv -f conftest.er1 conftest.err | |
2157 | fi | |
2158 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2159 | test $ac_status = 0; } && { | |
2160 | test -z "$ac_objcxx_werror_flag" || | |
2161 | test ! -s conftest.err | |
2162 | } && test -s conftest$ac_exeext && { | |
2163 | test "$cross_compiling" = yes || | |
53ba6704 | 2164 | test -x conftest$ac_exeext |
c823f118 DWT |
2165 | }; then : |
2166 | ac_retval=0 | |
2167 | else | |
2168 | $as_echo "$as_me: failed program was:" >&5 | |
2169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2170 | ||
2171 | ac_retval=1 | |
2172 | fi | |
2173 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2174 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2175 | # interfere with the next link command; also delete a directory that is | |
2176 | # left behind by Apple's compiler. We do this before executing the actions. | |
2177 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 2178 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
c823f118 DWT |
2179 | as_fn_set_status $ac_retval |
2180 | ||
2181 | } # ac_fn_objcxx_try_link | |
c7aa54aa DWT |
2182 | cat >config.log <<_ACEOF |
2183 | This file contains any messages produced by compilers while | |
2184 | running configure, to aid debugging if configure makes a mistake. | |
2185 | ||
2186 | It was created by Cycript $as_me 0.9, which was | |
53ba6704 | 2187 | generated by GNU Autoconf 2.69. Invocation command line was |
c7aa54aa DWT |
2188 | |
2189 | $ $0 $@ | |
2190 | ||
2191 | _ACEOF | |
2192 | exec 5>>config.log | |
2193 | { | |
2194 | cat <<_ASUNAME | |
2195 | ## --------- ## | |
2196 | ## Platform. ## | |
2197 | ## --------- ## | |
2198 | ||
2199 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2200 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2201 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2202 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2203 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2204 | ||
2205 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2206 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2207 | ||
2208 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2209 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2210 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2211 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2212 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2213 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2214 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2215 | ||
2216 | _ASUNAME | |
2217 | ||
2218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2219 | for as_dir in $PATH | |
2220 | do | |
2221 | IFS=$as_save_IFS | |
2222 | test -z "$as_dir" && as_dir=. | |
2223 | $as_echo "PATH: $as_dir" | |
2224 | done | |
2225 | IFS=$as_save_IFS | |
2226 | ||
2227 | } >&5 | |
2228 | ||
2229 | cat >&5 <<_ACEOF | |
2230 | ||
2231 | ||
2232 | ## ----------- ## | |
2233 | ## Core tests. ## | |
2234 | ## ----------- ## | |
2235 | ||
2236 | _ACEOF | |
2237 | ||
2238 | ||
2239 | # Keep a trace of the command line. | |
2240 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2241 | # Strip out --silent because we don't want to record it for future runs. | |
2242 | # Also quote any args containing shell meta-characters. | |
2243 | # Make two passes to allow for proper duplicate-argument suppression. | |
2244 | ac_configure_args= | |
2245 | ac_configure_args0= | |
2246 | ac_configure_args1= | |
2247 | ac_must_keep_next=false | |
2248 | for ac_pass in 1 2 | |
2249 | do | |
2250 | for ac_arg | |
2251 | do | |
2252 | case $ac_arg in | |
2253 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2254 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2255 | | -silent | --silent | --silen | --sile | --sil) | |
2256 | continue ;; | |
2257 | *\'*) | |
2258 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2259 | esac | |
2260 | case $ac_pass in | |
2261 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2262 | 2) | |
2263 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2264 | if test $ac_must_keep_next = true; then | |
2265 | ac_must_keep_next=false # Got value, back to normal. | |
2266 | else | |
2267 | case $ac_arg in | |
2268 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2269 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2270 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2271 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2272 | case "$ac_configure_args0 " in | |
2273 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2274 | esac | |
2275 | ;; | |
2276 | -* ) ac_must_keep_next=true ;; | |
2277 | esac | |
2278 | fi | |
2279 | as_fn_append ac_configure_args " '$ac_arg'" | |
2280 | ;; | |
2281 | esac | |
2282 | done | |
2283 | done | |
2284 | { ac_configure_args0=; unset ac_configure_args0;} | |
2285 | { ac_configure_args1=; unset ac_configure_args1;} | |
2286 | ||
2287 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2288 | # config.log. We remove comments because anyway the quotes in there | |
2289 | # would cause problems or look ugly. | |
2290 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2291 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2292 | trap 'exit_status=$? | |
2293 | # Save into config.log some information that might help in debugging. | |
2294 | { | |
2295 | echo | |
2296 | ||
12833ad8 | 2297 | $as_echo "## ---------------- ## |
c7aa54aa | 2298 | ## Cache variables. ## |
12833ad8 | 2299 | ## ---------------- ##" |
c7aa54aa DWT |
2300 | echo |
2301 | # The following way of writing the cache mishandles newlines in values, | |
2302 | ( | |
2303 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2304 | eval ac_val=\$$ac_var | |
2305 | case $ac_val in #( | |
2306 | *${as_nl}*) | |
2307 | case $ac_var in #( | |
2308 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2309 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2310 | esac | |
2311 | case $ac_var in #( | |
2312 | _ | IFS | as_nl) ;; #( | |
2313 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2314 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2315 | esac ;; | |
2316 | esac | |
2317 | done | |
2318 | (set) 2>&1 | | |
2319 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2320 | *${as_nl}ac_space=\ *) | |
2321 | sed -n \ | |
2322 | "s/'\''/'\''\\\\'\'''\''/g; | |
2323 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2324 | ;; #( | |
2325 | *) | |
2326 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2327 | ;; | |
2328 | esac | | |
2329 | sort | |
2330 | ) | |
2331 | echo | |
2332 | ||
12833ad8 | 2333 | $as_echo "## ----------------- ## |
c7aa54aa | 2334 | ## Output variables. ## |
12833ad8 | 2335 | ## ----------------- ##" |
c7aa54aa DWT |
2336 | echo |
2337 | for ac_var in $ac_subst_vars | |
2338 | do | |
2339 | eval ac_val=\$$ac_var | |
2340 | case $ac_val in | |
2341 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2342 | esac | |
2343 | $as_echo "$ac_var='\''$ac_val'\''" | |
2344 | done | sort | |
2345 | echo | |
2346 | ||
2347 | if test -n "$ac_subst_files"; then | |
12833ad8 | 2348 | $as_echo "## ------------------- ## |
c7aa54aa | 2349 | ## File substitutions. ## |
12833ad8 | 2350 | ## ------------------- ##" |
c7aa54aa DWT |
2351 | echo |
2352 | for ac_var in $ac_subst_files | |
2353 | do | |
2354 | eval ac_val=\$$ac_var | |
2355 | case $ac_val in | |
2356 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2357 | esac | |
2358 | $as_echo "$ac_var='\''$ac_val'\''" | |
2359 | done | sort | |
2360 | echo | |
2361 | fi | |
2362 | ||
2363 | if test -s confdefs.h; then | |
12833ad8 | 2364 | $as_echo "## ----------- ## |
c7aa54aa | 2365 | ## confdefs.h. ## |
12833ad8 | 2366 | ## ----------- ##" |
c7aa54aa DWT |
2367 | echo |
2368 | cat confdefs.h | |
2369 | echo | |
2370 | fi | |
2371 | test "$ac_signal" != 0 && | |
2372 | $as_echo "$as_me: caught signal $ac_signal" | |
2373 | $as_echo "$as_me: exit $exit_status" | |
2374 | } >&5 | |
2375 | rm -f core *.core core.conftest.* && | |
2376 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2377 | exit $exit_status | |
2378 | ' 0 | |
2379 | for ac_signal in 1 2 13 15; do | |
2380 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2381 | done | |
2382 | ac_signal=0 | |
2383 | ||
2384 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2385 | rm -f -r conftest* confdefs.h | |
2386 | ||
2387 | $as_echo "/* confdefs.h */" > confdefs.h | |
2388 | ||
2389 | # Predefined preprocessor variables. | |
2390 | ||
2391 | cat >>confdefs.h <<_ACEOF | |
2392 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2393 | _ACEOF | |
2394 | ||
2395 | cat >>confdefs.h <<_ACEOF | |
2396 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2397 | _ACEOF | |
2398 | ||
2399 | cat >>confdefs.h <<_ACEOF | |
2400 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2401 | _ACEOF | |
2402 | ||
2403 | cat >>confdefs.h <<_ACEOF | |
2404 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2405 | _ACEOF | |
2406 | ||
2407 | cat >>confdefs.h <<_ACEOF | |
2408 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2409 | _ACEOF | |
2410 | ||
2411 | cat >>confdefs.h <<_ACEOF | |
2412 | #define PACKAGE_URL "$PACKAGE_URL" | |
2413 | _ACEOF | |
2414 | ||
2415 | ||
2416 | # Let the site file select an alternate cache file if it wants to. | |
2417 | # Prefer an explicitly selected file to automatically selected ones. | |
2418 | ac_site_file1=NONE | |
2419 | ac_site_file2=NONE | |
2420 | if test -n "$CONFIG_SITE"; then | |
12833ad8 JF |
2421 | # We do not want a PATH search for config.site. |
2422 | case $CONFIG_SITE in #(( | |
2423 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2424 | */*) ac_site_file1=$CONFIG_SITE;; | |
2425 | *) ac_site_file1=./$CONFIG_SITE;; | |
2426 | esac | |
c7aa54aa DWT |
2427 | elif test "x$prefix" != xNONE; then |
2428 | ac_site_file1=$prefix/share/config.site | |
2429 | ac_site_file2=$prefix/etc/config.site | |
2430 | else | |
2431 | ac_site_file1=$ac_default_prefix/share/config.site | |
2432 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2433 | fi | |
2434 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2435 | do | |
2436 | test "x$ac_site_file" = xNONE && continue | |
9c60689e | 2437 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
c7aa54aa DWT |
2438 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2439 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2440 | sed 's/^/| /' "$ac_site_file" >&5 | |
12833ad8 JF |
2441 | . "$ac_site_file" \ |
2442 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2443 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2444 | as_fn_error $? "failed to load site script $ac_site_file | |
ee134472 | 2445 | See \`config.log' for more details" "$LINENO" 5; } |
c7aa54aa DWT |
2446 | fi |
2447 | done | |
2448 | ||
2449 | if test -r "$cache_file"; then | |
9c60689e DWT |
2450 | # Some versions of bash will fail to source /dev/null (special files |
2451 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2452 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
c7aa54aa DWT |
2453 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2454 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2455 | case $cache_file in | |
2456 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2457 | *) . "./$cache_file";; | |
2458 | esac | |
2459 | fi | |
2460 | else | |
2461 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2462 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2463 | >$cache_file | |
2464 | fi | |
2465 | ||
2466 | # Check that the precious variables saved in the cache have kept the same | |
2467 | # value. | |
2468 | ac_cache_corrupted=false | |
2469 | for ac_var in $ac_precious_vars; do | |
2470 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2471 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2472 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2473 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2474 | case $ac_old_set,$ac_new_set in | |
2475 | set,) | |
2476 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2477 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2478 | ac_cache_corrupted=: ;; | |
2479 | ,set) | |
2480 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2481 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2482 | ac_cache_corrupted=: ;; | |
2483 | ,);; | |
2484 | *) | |
2485 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2486 | # differences in whitespace do not lead to failure. | |
2487 | ac_old_val_w=`echo x $ac_old_val` | |
2488 | ac_new_val_w=`echo x $ac_new_val` | |
2489 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2490 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2491 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2492 | ac_cache_corrupted=: | |
2493 | else | |
2494 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2495 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2496 | eval $ac_var=\$ac_old_val | |
2497 | fi | |
2498 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2499 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2500 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2501 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2502 | fi;; | |
2503 | esac | |
2504 | # Pass precious variables to config.status. | |
2505 | if test "$ac_new_set" = set; then | |
2506 | case $ac_new_val in | |
2507 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2508 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2509 | esac | |
2510 | case " $ac_configure_args " in | |
2511 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2512 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2513 | esac | |
2514 | fi | |
2515 | done | |
2516 | if $ac_cache_corrupted; then | |
2517 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2518 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2519 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2520 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
12833ad8 | 2521 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
c7aa54aa DWT |
2522 | fi |
2523 | ## -------------------- ## | |
2524 | ## Main body of script. ## | |
2525 | ## -------------------- ## | |
2526 | ||
2527 | ac_ext=c | |
2528 | ac_cpp='$CPP $CPPFLAGS' | |
2529 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2530 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2531 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2532 | ||
2533 | ||
66170b30 JF |
2534 | |
2535 | ||
35fa52c0 | 2536 | |
6b66678a DWT |
2537 | ac_aux_dir= |
2538 | for ac_dir in . "$srcdir"/.; do | |
12833ad8 JF |
2539 | if test -f "$ac_dir/install-sh"; then |
2540 | ac_aux_dir=$ac_dir | |
2541 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2542 | break | |
2543 | elif test -f "$ac_dir/install.sh"; then | |
2544 | ac_aux_dir=$ac_dir | |
2545 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2546 | break | |
2547 | elif test -f "$ac_dir/shtool"; then | |
2548 | ac_aux_dir=$ac_dir | |
2549 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2550 | break | |
2551 | fi | |
6b66678a DWT |
2552 | done |
2553 | if test -z "$ac_aux_dir"; then | |
12833ad8 | 2554 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 |
6b66678a DWT |
2555 | fi |
2556 | ||
2557 | # These three variables are undocumented and unsupported, | |
2558 | # and are intended to be withdrawn in a future Autoconf release. | |
2559 | # They can cause serious problems if a builder's source tree is in a directory | |
2560 | # whose full name contains unusual characters. | |
2561 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2562 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2563 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2564 | ||
2565 | ||
9c60689e | 2566 | |
296ee9a6 JF |
2567 | ac_config_headers="$ac_config_headers config.h" |
2568 | ||
9c60689e | 2569 | |
795230e5 | 2570 | am__api_version='1.15' |
9c60689e | 2571 | |
66170b30 JF |
2572 | # Find a good install program. We prefer a C program (faster), |
2573 | # so one script is as good as another. But avoid the broken or | |
2574 | # incompatible versions: | |
2575 | # SysV /etc/install, /usr/sbin/install | |
2576 | # SunOS /usr/etc/install | |
2577 | # IRIX /sbin/install | |
2578 | # AIX /bin/install | |
2579 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2580 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2581 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2582 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2583 | # OS/2's system install, which has a completely different semantic | |
2584 | # ./install, which can be erroneously created by make from ./install.sh. | |
2585 | # Reject install programs that cannot install multiple files. | |
2586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2587 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2588 | if test -z "$INSTALL"; then | |
2589 | if ${ac_cv_path_install+:} false; then : | |
2590 | $as_echo_n "(cached) " >&6 | |
2591 | else | |
2592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2593 | for as_dir in $PATH | |
2594 | do | |
2595 | IFS=$as_save_IFS | |
2596 | test -z "$as_dir" && as_dir=. | |
2597 | # Account for people who put trailing slashes in PATH elements. | |
2598 | case $as_dir/ in #(( | |
2599 | ./ | .// | /[cC]/* | \ | |
2600 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2601 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2602 | /usr/ucb/* ) ;; | |
2603 | *) | |
2604 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2605 | # Don't use installbsd from OSF since it installs stuff as root | |
2606 | # by default. | |
2607 | for ac_prog in ginstall scoinst install; do | |
2608 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2609 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2610 | if test $ac_prog = install && | |
2611 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2612 | # AIX install. It has an incompatible calling convention. | |
2613 | : | |
2614 | elif test $ac_prog = install && | |
2615 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2616 | # program-specific install script used by HP pwplus--don't use. | |
2617 | : | |
2618 | else | |
2619 | rm -rf conftest.one conftest.two conftest.dir | |
2620 | echo one > conftest.one | |
2621 | echo two > conftest.two | |
2622 | mkdir conftest.dir | |
2623 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2624 | test -s conftest.one && test -s conftest.two && | |
2625 | test -s conftest.dir/conftest.one && | |
2626 | test -s conftest.dir/conftest.two | |
2627 | then | |
2628 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2629 | break 3 | |
2630 | fi | |
2631 | fi | |
2632 | fi | |
2633 | done | |
2634 | done | |
2635 | ;; | |
2636 | esac | |
9c60689e | 2637 | |
66170b30 JF |
2638 | done |
2639 | IFS=$as_save_IFS | |
9c60689e | 2640 | |
66170b30 | 2641 | rm -rf conftest.one conftest.two conftest.dir |
9c60689e | 2642 | |
66170b30 JF |
2643 | fi |
2644 | if test "${ac_cv_path_install+set}" = set; then | |
2645 | INSTALL=$ac_cv_path_install | |
2646 | else | |
2647 | # As a last resort, use the slow shell script. Don't cache a | |
2648 | # value for INSTALL within a source directory, because that will | |
2649 | # break other packages using the cache if that directory is | |
2650 | # removed, or if the value is a relative name. | |
2651 | INSTALL=$ac_install_sh | |
2652 | fi | |
2653 | fi | |
2654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2655 | $as_echo "$INSTALL" >&6; } | |
9c60689e | 2656 | |
66170b30 JF |
2657 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2658 | # It thinks the first close brace ends the variable substitution. | |
2659 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9c60689e | 2660 | |
66170b30 | 2661 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
9c60689e | 2662 | |
66170b30 | 2663 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
9c60689e | 2664 | |
66170b30 JF |
2665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2666 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
2667 | # Reject unsafe characters in $srcdir or the absolute working directory | |
2668 | # name. Accept space and tab only in the latter. | |
2669 | am_lf=' | |
2670 | ' | |
2671 | case `pwd` in | |
2672 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2673 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
2674 | esac | |
2675 | case $srcdir in | |
2676 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2677 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
2678 | esac | |
9c60689e | 2679 | |
66170b30 JF |
2680 | # Do 'set' in a subshell so we don't clobber the current shell's |
2681 | # arguments. Must try -L first in case configure is actually a | |
2682 | # symlink; some systems play weird games with the mod time of symlinks | |
2683 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2684 | # directory). | |
2685 | if ( | |
2686 | am_has_slept=no | |
2687 | for am_try in 1 2; do | |
2688 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2689 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2690 | if test "$*" = "X"; then | |
2691 | # -L didn't work. | |
2692 | set X `ls -t "$srcdir/configure" conftest.file` | |
2693 | fi | |
2694 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2695 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2696 | ||
2697 | # If neither matched, then we have a broken ls. This can happen | |
2698 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2699 | # broken ls alias from the environment. This has actually | |
2700 | # happened. Such a system could not be considered "sane". | |
2701 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2702 | alias in your environment" "$LINENO" 5 | |
2703 | fi | |
2704 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2705 | break | |
2706 | fi | |
2707 | # Just in case. | |
2708 | sleep 1 | |
2709 | am_has_slept=yes | |
2710 | done | |
2711 | test "$2" = conftest.file | |
2712 | ) | |
2713 | then | |
2714 | # Ok. | |
2715 | : | |
2716 | else | |
2717 | as_fn_error $? "newly created file is older than distributed files! | |
2718 | Check your system clock" "$LINENO" 5 | |
2719 | fi | |
2720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2721 | $as_echo "yes" >&6; } | |
2722 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
2723 | # generated files are strictly newer. | |
2724 | am_sleep_pid= | |
2725 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2726 | ( sleep 1 ) & | |
2727 | am_sleep_pid=$! | |
2728 | fi | |
2729 | ||
2730 | rm -f conftest.file | |
2731 | ||
2732 | test "$program_prefix" != NONE && | |
2733 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2734 | # Use a double $ so make ignores it. | |
2735 | test "$program_suffix" != NONE && | |
2736 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2737 | # Double any \ or $. | |
2738 | # By default was `s,x,x', remove it if useless. | |
2739 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2740 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2741 | ||
795230e5 JF |
2742 | # Expand $ac_aux_dir to an absolute path. |
2743 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
66170b30 JF |
2744 | |
2745 | if test x"${MISSING+set}" != xset; then | |
2746 | case $am_aux_dir in | |
2747 | *\ * | *\ *) | |
2748 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2749 | *) | |
2750 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2751 | esac | |
2752 | fi | |
2753 | # Use eval to expand $SHELL | |
2754 | if eval "$MISSING --is-lightweight"; then | |
2755 | am_missing_run="$MISSING " | |
2756 | else | |
2757 | am_missing_run= | |
2758 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2759 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
2760 | fi | |
9c60689e | 2761 | |
795230e5 | 2762 | if test x"${install_sh+set}" != xset; then |
66170b30 JF |
2763 | case $am_aux_dir in |
2764 | *\ * | *\ *) | |
2765 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2766 | *) | |
2767 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2768 | esac | |
2769 | fi | |
9c60689e | 2770 | |
66170b30 JF |
2771 | # Installed binaries are usually stripped using 'strip' when the user |
2772 | # run "make install-strip". However 'strip' might not be the right | |
2773 | # tool to use in cross-compilation environments, therefore Automake | |
2774 | # will honor the 'STRIP' environment variable to overrule this program. | |
2775 | if test "$cross_compiling" != no; then | |
2776 | if test -n "$ac_tool_prefix"; then | |
2777 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2778 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2780 | $as_echo_n "checking for $ac_word... " >&6; } | |
2781 | if ${ac_cv_prog_STRIP+:} false; then : | |
2782 | $as_echo_n "(cached) " >&6 | |
2783 | else | |
2784 | if test -n "$STRIP"; then | |
2785 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2786 | else | |
2787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2788 | for as_dir in $PATH | |
2789 | do | |
2790 | IFS=$as_save_IFS | |
2791 | test -z "$as_dir" && as_dir=. | |
2792 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2793 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2794 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2795 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2796 | break 2 | |
2797 | fi | |
2798 | done | |
2799 | done | |
2800 | IFS=$as_save_IFS | |
9c60689e | 2801 | |
66170b30 JF |
2802 | fi |
2803 | fi | |
2804 | STRIP=$ac_cv_prog_STRIP | |
2805 | if test -n "$STRIP"; then | |
2806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2807 | $as_echo "$STRIP" >&6; } | |
2808 | else | |
2809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2810 | $as_echo "no" >&6; } | |
2811 | fi | |
9c60689e | 2812 | |
9c60689e | 2813 | |
66170b30 JF |
2814 | fi |
2815 | if test -z "$ac_cv_prog_STRIP"; then | |
2816 | ac_ct_STRIP=$STRIP | |
2817 | # Extract the first word of "strip", so it can be a program name with args. | |
2818 | set dummy strip; ac_word=$2 | |
2819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2820 | $as_echo_n "checking for $ac_word... " >&6; } | |
2821 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
9c60689e DWT |
2822 | $as_echo_n "(cached) " >&6 |
2823 | else | |
66170b30 JF |
2824 | if test -n "$ac_ct_STRIP"; then |
2825 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2826 | else | |
2827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2828 | for as_dir in $PATH | |
2829 | do | |
2830 | IFS=$as_save_IFS | |
2831 | test -z "$as_dir" && as_dir=. | |
2832 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2833 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2834 | ac_cv_prog_ac_ct_STRIP="strip" | |
2835 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2836 | break 2 | |
2837 | fi | |
2838 | done | |
2839 | done | |
2840 | IFS=$as_save_IFS | |
9c60689e DWT |
2841 | |
2842 | fi | |
66170b30 JF |
2843 | fi |
2844 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2845 | if test -n "$ac_ct_STRIP"; then | |
2846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2847 | $as_echo "$ac_ct_STRIP" >&6; } | |
2848 | else | |
2849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2850 | $as_echo "no" >&6; } | |
2851 | fi | |
2852 | ||
2853 | if test "x$ac_ct_STRIP" = x; then | |
2854 | STRIP=":" | |
2855 | else | |
2856 | case $cross_compiling:$ac_tool_warned in | |
2857 | yes:) | |
2858 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2859 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2860 | ac_tool_warned=yes ;; | |
9c60689e | 2861 | esac |
66170b30 JF |
2862 | STRIP=$ac_ct_STRIP |
2863 | fi | |
2864 | else | |
2865 | STRIP="$ac_cv_prog_STRIP" | |
2866 | fi | |
9c60689e | 2867 | |
66170b30 JF |
2868 | fi |
2869 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
9c60689e | 2870 | |
66170b30 JF |
2871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
2872 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2873 | if test -z "$MKDIR_P"; then | |
2874 | if ${ac_cv_path_mkdir+:} false; then : | |
9c60689e DWT |
2875 | $as_echo_n "(cached) " >&6 |
2876 | else | |
66170b30 JF |
2877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2878 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2879 | do | |
2880 | IFS=$as_save_IFS | |
2881 | test -z "$as_dir" && as_dir=. | |
2882 | for ac_prog in mkdir gmkdir; do | |
2883 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2884 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
2885 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2886 | 'mkdir (GNU coreutils) '* | \ | |
2887 | 'mkdir (coreutils) '* | \ | |
2888 | 'mkdir (fileutils) '4.1*) | |
2889 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2890 | break 3;; | |
2891 | esac | |
2892 | done | |
2893 | done | |
2894 | done | |
2895 | IFS=$as_save_IFS | |
2896 | ||
2897 | fi | |
2898 | ||
2899 | test -d ./--version && rmdir ./--version | |
2900 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2901 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2902 | else | |
2903 | # As a last resort, use the slow shell script. Don't cache a | |
2904 | # value for MKDIR_P within a source directory, because that will | |
2905 | # break other packages using the cache if that directory is | |
2906 | # removed, or if the value is a relative name. | |
2907 | MKDIR_P="$ac_install_sh -d" | |
2908 | fi | |
2909 | fi | |
2910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2911 | $as_echo "$MKDIR_P" >&6; } | |
2912 | ||
2913 | for ac_prog in gawk mawk nawk awk | |
2914 | do | |
2915 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2916 | set dummy $ac_prog; ac_word=$2 | |
2917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2918 | $as_echo_n "checking for $ac_word... " >&6; } | |
2919 | if ${ac_cv_prog_AWK+:} false; then : | |
2920 | $as_echo_n "(cached) " >&6 | |
2921 | else | |
2922 | if test -n "$AWK"; then | |
2923 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2924 | else | |
2925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2926 | for as_dir in $PATH | |
2927 | do | |
2928 | IFS=$as_save_IFS | |
2929 | test -z "$as_dir" && as_dir=. | |
2930 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2931 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2932 | ac_cv_prog_AWK="$ac_prog" | |
2933 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2934 | break 2 | |
2935 | fi | |
2936 | done | |
2937 | done | |
2938 | IFS=$as_save_IFS | |
2939 | ||
2940 | fi | |
2941 | fi | |
2942 | AWK=$ac_cv_prog_AWK | |
2943 | if test -n "$AWK"; then | |
2944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2945 | $as_echo "$AWK" >&6; } | |
2946 | else | |
2947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2948 | $as_echo "no" >&6; } | |
2949 | fi | |
2950 | ||
2951 | ||
2952 | test -n "$AWK" && break | |
2953 | done | |
2954 | ||
2955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2956 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2957 | set x ${MAKE-make} | |
2958 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2959 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
2960 | $as_echo_n "(cached) " >&6 | |
2961 | else | |
2962 | cat >conftest.make <<\_ACEOF | |
2963 | SHELL = /bin/sh | |
2964 | all: | |
2965 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2966 | _ACEOF | |
2967 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
2968 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2969 | *@@@%%%=?*=@@@%%%*) | |
2970 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2971 | *) | |
2972 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2973 | esac | |
2974 | rm -f conftest.make | |
2975 | fi | |
2976 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
2977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2978 | $as_echo "yes" >&6; } | |
2979 | SET_MAKE= | |
2980 | else | |
2981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2982 | $as_echo "no" >&6; } | |
2983 | SET_MAKE="MAKE=${MAKE-make}" | |
2984 | fi | |
2985 | ||
2986 | rm -rf .tst 2>/dev/null | |
2987 | mkdir .tst 2>/dev/null | |
2988 | if test -d .tst; then | |
2989 | am__leading_dot=. | |
2990 | else | |
2991 | am__leading_dot=_ | |
2992 | fi | |
2993 | rmdir .tst 2>/dev/null | |
2994 | ||
2995 | # Check whether --enable-silent-rules was given. | |
2996 | if test "${enable_silent_rules+set}" = set; then : | |
2997 | enableval=$enable_silent_rules; | |
2998 | fi | |
2999 | ||
3000 | case $enable_silent_rules in # ((( | |
3001 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3002 | no) AM_DEFAULT_VERBOSITY=1;; | |
3003 | *) AM_DEFAULT_VERBOSITY=1;; | |
3004 | esac | |
3005 | am_make=${MAKE-make} | |
3006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3007 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3008 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3009 | $as_echo_n "(cached) " >&6 | |
3010 | else | |
3011 | if $as_echo 'TRUE=$(BAR$(V)) | |
3012 | BAR0=false | |
3013 | BAR1=true | |
3014 | V=1 | |
3015 | am__doit: | |
3016 | @$(TRUE) | |
3017 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3018 | am_cv_make_support_nested_variables=yes | |
3019 | else | |
3020 | am_cv_make_support_nested_variables=no | |
3021 | fi | |
3022 | fi | |
3023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3024 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3025 | if test $am_cv_make_support_nested_variables = yes; then | |
3026 | AM_V='$(V)' | |
3027 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3028 | else | |
3029 | AM_V=$AM_DEFAULT_VERBOSITY | |
3030 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3031 | fi | |
3032 | AM_BACKSLASH='\' | |
3033 | ||
3034 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
3035 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3036 | # is not polluted with repeated "-I." | |
3037 | am__isrc=' -I$(srcdir)' | |
3038 | # test to see if srcdir already configured | |
3039 | if test -f $srcdir/config.status; then | |
3040 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3041 | fi | |
3042 | fi | |
3043 | ||
3044 | # test whether we have cygpath | |
3045 | if test -z "$CYGPATH_W"; then | |
3046 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3047 | CYGPATH_W='cygpath -w' | |
3048 | else | |
3049 | CYGPATH_W=echo | |
3050 | fi | |
3051 | fi | |
3052 | ||
3053 | ||
3054 | # Define the identity of the package. | |
3055 | PACKAGE='cycript' | |
3056 | VERSION='0.9' | |
3057 | ||
3058 | ||
3059 | cat >>confdefs.h <<_ACEOF | |
3060 | #define PACKAGE "$PACKAGE" | |
3061 | _ACEOF | |
3062 | ||
3063 | ||
3064 | cat >>confdefs.h <<_ACEOF | |
3065 | #define VERSION "$VERSION" | |
3066 | _ACEOF | |
3067 | ||
3068 | # Some tools Automake needs. | |
3069 | ||
3070 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3071 | ||
3072 | ||
3073 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3074 | ||
3075 | ||
3076 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3077 | ||
3078 | ||
3079 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3080 | ||
3081 | ||
3082 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3083 | ||
3084 | # For better backward compatibility. To be removed once Automake 1.9.x | |
3085 | # dies out for good. For more background, see: | |
3086 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3087 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3088 | mkdir_p='$(MKDIR_P)' | |
3089 | ||
795230e5 JF |
3090 | # We need awk for the "check" target (and possibly the TAP driver). The |
3091 | # system "awk" is bad on some platforms. | |
66170b30 JF |
3092 | # Always define AMTAR for backward compatibility. Yes, it's still used |
3093 | # in the wild :-( We should find a proper way to deprecate it ... | |
3094 | AMTAR='$${TAR-tar}' | |
3095 | ||
a93f15c0 JF |
3096 | |
3097 | # We'll loop over all known methods to create a tar archive until one works. | |
3098 | _am_tools='gnutar pax cpio none' | |
3099 | ||
66170b30 JF |
3100 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
3101 | ||
3102 | ||
3103 | ||
3104 | ||
3105 | ||
66170b30 | 3106 | |
a93f15c0 JF |
3107 | # POSIX will say in a future version that running "rm -f" with no argument |
3108 | # is OK; and we want to be able to make that assumption in our Makefile | |
3109 | # recipes. So use an aggressive probe to check that the usage we want is | |
3110 | # actually supported "in the wild" to an acceptable degree. | |
3111 | # See automake bug#10828. | |
3112 | # To make any issue more visible, cause the running configure to be aborted | |
3113 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3114 | # user can still override this though. | |
3115 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3116 | cat >&2 <<'END' | |
3117 | Oops! | |
3118 | ||
3119 | Your 'rm' program seems unable to run without file operands specified | |
3120 | on the command line, even when the '-f' option is present. This is contrary | |
3121 | to the behaviour of most rm programs out there, and not conforming with | |
3122 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3123 | ||
3124 | Please tell bug-automake@gnu.org about your system, including the value | |
3125 | of your $PATH and any error possibly output before this message. This | |
3126 | can help us improve future automake versions. | |
3127 | ||
3128 | END | |
3129 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3130 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3131 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3132 | echo >&2 | |
3133 | else | |
3134 | cat >&2 <<'END' | |
3135 | Aborting the configuration process, to ensure you take notice of the issue. | |
3136 | ||
3137 | You can download and install GNU coreutils to get an 'rm' implementation | |
3138 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3139 | ||
3140 | If you want to complete the configuration process using your problematic | |
3141 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3142 | to "yes", and re-run configure. | |
3143 | ||
3144 | END | |
3145 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3146 | fi | |
3147 | fi | |
3148 | ||
795230e5 | 3149 | |
babf7fe8 JF |
3150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
3151 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
3152 | # Check whether --enable-maintainer-mode was given. | |
3153 | if test "${enable_maintainer_mode+set}" = set; then : | |
3154 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3155 | else | |
3156 | USE_MAINTAINER_MODE=no | |
3157 | fi | |
3158 | ||
3159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
3160 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3161 | if test $USE_MAINTAINER_MODE = yes; then | |
3162 | MAINTAINER_MODE_TRUE= | |
3163 | MAINTAINER_MODE_FALSE='#' | |
3164 | else | |
3165 | MAINTAINER_MODE_TRUE='#' | |
3166 | MAINTAINER_MODE_FALSE= | |
3167 | fi | |
3168 | ||
3169 | MAINT=$MAINTAINER_MODE_TRUE | |
3170 | ||
3171 | ||
3172 | ||
a93f15c0 JF |
3173 | ac_ext=c |
3174 | ac_cpp='$CPP $CPPFLAGS' | |
3175 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3176 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3177 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3178 | if test -n "$ac_tool_prefix"; then | |
3179 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3180 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
dbadc56a DWT |
3181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3182 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 3183 | if ${ac_cv_prog_CC+:} false; then : |
dbadc56a DWT |
3184 | $as_echo_n "(cached) " >&6 |
3185 | else | |
a93f15c0 JF |
3186 | if test -n "$CC"; then |
3187 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
dbadc56a DWT |
3188 | else |
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=. | |
3194 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 3195 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a93f15c0 | 3196 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
dbadc56a DWT |
3197 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3198 | break 2 | |
3199 | fi | |
3200 | done | |
3201 | done | |
3202 | IFS=$as_save_IFS | |
3203 | ||
3204 | fi | |
3205 | fi | |
a93f15c0 JF |
3206 | CC=$ac_cv_prog_CC |
3207 | if test -n "$CC"; then | |
3208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3209 | $as_echo "$CC" >&6; } | |
35fa52c0 DWT |
3210 | else |
3211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3212 | $as_echo "no" >&6; } | |
3213 | fi | |
3214 | ||
3215 | ||
35fa52c0 | 3216 | fi |
a93f15c0 JF |
3217 | if test -z "$ac_cv_prog_CC"; then |
3218 | ac_ct_CC=$CC | |
3219 | # Extract the first word of "gcc", so it can be a program name with args. | |
3220 | set dummy gcc; ac_word=$2 | |
35fa52c0 DWT |
3221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3222 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 3223 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
35fa52c0 DWT |
3224 | $as_echo_n "(cached) " >&6 |
3225 | else | |
a93f15c0 JF |
3226 | if test -n "$ac_ct_CC"; then |
3227 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
35fa52c0 DWT |
3228 | else |
3229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3230 | for as_dir in $PATH | |
3231 | do | |
3232 | IFS=$as_save_IFS | |
3233 | test -z "$as_dir" && as_dir=. | |
3234 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 3235 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a93f15c0 | 3236 | ac_cv_prog_ac_ct_CC="gcc" |
35fa52c0 DWT |
3237 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3238 | break 2 | |
3239 | fi | |
3240 | done | |
3241 | done | |
3242 | IFS=$as_save_IFS | |
3243 | ||
3244 | fi | |
3245 | fi | |
a93f15c0 JF |
3246 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3247 | if test -n "$ac_ct_CC"; then | |
3248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3249 | $as_echo "$ac_ct_CC" >&6; } | |
35fa52c0 DWT |
3250 | else |
3251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3252 | $as_echo "no" >&6; } | |
3253 | fi | |
3254 | ||
a93f15c0 JF |
3255 | if test "x$ac_ct_CC" = x; then |
3256 | CC="" | |
35fa52c0 DWT |
3257 | else |
3258 | case $cross_compiling:$ac_tool_warned in | |
3259 | yes:) | |
3260 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3261 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3262 | ac_tool_warned=yes ;; | |
3263 | esac | |
a93f15c0 | 3264 | CC=$ac_ct_CC |
35fa52c0 | 3265 | fi |
a93f15c0 JF |
3266 | else |
3267 | CC="$ac_cv_prog_CC" | |
35fa52c0 DWT |
3268 | fi |
3269 | ||
a93f15c0 JF |
3270 | if test -z "$CC"; then |
3271 | if test -n "$ac_tool_prefix"; then | |
3272 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3273 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3275 | $as_echo_n "checking for $ac_word... " >&6; } | |
3276 | if ${ac_cv_prog_CC+:} false; then : | |
3277 | $as_echo_n "(cached) " >&6 | |
3278 | else | |
3279 | if test -n "$CC"; then | |
3280 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3281 | else | |
3282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3283 | for as_dir in $PATH | |
3284 | do | |
3285 | IFS=$as_save_IFS | |
3286 | test -z "$as_dir" && as_dir=. | |
3287 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3288 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3289 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3290 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3291 | break 2 | |
a243b558 | 3292 | fi |
35fa52c0 | 3293 | done |
a93f15c0 JF |
3294 | done |
3295 | IFS=$as_save_IFS | |
35fa52c0 | 3296 | |
a93f15c0 JF |
3297 | fi |
3298 | fi | |
3299 | CC=$ac_cv_prog_CC | |
3300 | if test -n "$CC"; then | |
3301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3302 | $as_echo "$CC" >&6; } | |
3303 | else | |
3304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3305 | $as_echo "no" >&6; } | |
3306 | fi | |
35fa52c0 | 3307 | |
35fa52c0 | 3308 | |
a93f15c0 JF |
3309 | fi |
3310 | fi | |
3311 | if test -z "$CC"; then | |
3312 | # Extract the first word of "cc", so it can be a program name with args. | |
3313 | set dummy cc; ac_word=$2 | |
3314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3315 | $as_echo_n "checking for $ac_word... " >&6; } | |
3316 | if ${ac_cv_prog_CC+:} false; then : | |
3317 | $as_echo_n "(cached) " >&6 | |
3318 | else | |
3319 | if test -n "$CC"; then | |
3320 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3321 | else | |
3322 | ac_prog_rejected=no | |
3323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3324 | for as_dir in $PATH | |
35fa52c0 | 3325 | do |
a93f15c0 JF |
3326 | IFS=$as_save_IFS |
3327 | test -z "$as_dir" && as_dir=. | |
3328 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3329 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3330 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3331 | ac_prog_rejected=yes | |
3332 | continue | |
3333 | fi | |
3334 | ac_cv_prog_CC="cc" | |
3335 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3336 | break 2 | |
3337 | fi | |
3338 | done | |
3339 | done | |
3340 | IFS=$as_save_IFS | |
3341 | ||
3342 | if test $ac_prog_rejected = yes; then | |
3343 | # We found a bogon in the path, so make sure we never use it. | |
3344 | set dummy $ac_cv_prog_CC | |
3345 | shift | |
3346 | if test $# != 0; then | |
3347 | # We chose a different compiler from the bogus one. | |
3348 | # However, it has the same basename, so the bogon will be chosen | |
3349 | # first if we set CC to just the basename; use the full file name. | |
3350 | shift | |
3351 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3352 | fi | |
3353 | fi | |
3354 | fi | |
3355 | fi | |
3356 | CC=$ac_cv_prog_CC | |
3357 | if test -n "$CC"; then | |
3358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3359 | $as_echo "$CC" >&6; } | |
3360 | else | |
3361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3362 | $as_echo "no" >&6; } | |
3363 | fi | |
3364 | ||
3365 | ||
3366 | fi | |
3367 | if test -z "$CC"; then | |
3368 | if test -n "$ac_tool_prefix"; then | |
3369 | for ac_prog in cl.exe | |
3370 | do | |
3371 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3372 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3374 | $as_echo_n "checking for $ac_word... " >&6; } | |
3375 | if ${ac_cv_prog_CC+:} false; then : | |
3376 | $as_echo_n "(cached) " >&6 | |
3377 | else | |
3378 | if test -n "$CC"; then | |
3379 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3380 | else | |
3381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3382 | for as_dir in $PATH | |
3383 | do | |
3384 | IFS=$as_save_IFS | |
3385 | test -z "$as_dir" && as_dir=. | |
3386 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3387 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3388 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3389 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3390 | break 2 | |
3391 | fi | |
3392 | done | |
3393 | done | |
3394 | IFS=$as_save_IFS | |
3395 | ||
3396 | fi | |
3397 | fi | |
3398 | CC=$ac_cv_prog_CC | |
3399 | if test -n "$CC"; then | |
3400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3401 | $as_echo "$CC" >&6; } | |
3402 | else | |
3403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3404 | $as_echo "no" >&6; } | |
3405 | fi | |
3406 | ||
3407 | ||
3408 | test -n "$CC" && break | |
3409 | done | |
3410 | fi | |
3411 | if test -z "$CC"; then | |
3412 | ac_ct_CC=$CC | |
3413 | for ac_prog in cl.exe | |
3414 | do | |
3415 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3416 | set dummy $ac_prog; ac_word=$2 | |
3417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3418 | $as_echo_n "checking for $ac_word... " >&6; } | |
3419 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3420 | $as_echo_n "(cached) " >&6 | |
3421 | else | |
3422 | if test -n "$ac_ct_CC"; then | |
3423 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3424 | else | |
3425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3426 | for as_dir in $PATH | |
3427 | do | |
3428 | IFS=$as_save_IFS | |
3429 | test -z "$as_dir" && as_dir=. | |
3430 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3431 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3432 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3433 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3434 | break 2 | |
3435 | fi | |
3436 | done | |
3437 | done | |
3438 | IFS=$as_save_IFS | |
3439 | ||
3440 | fi | |
3441 | fi | |
3442 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3443 | if test -n "$ac_ct_CC"; then | |
3444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3445 | $as_echo "$ac_ct_CC" >&6; } | |
3446 | else | |
3447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3448 | $as_echo "no" >&6; } | |
3449 | fi | |
3450 | ||
3451 | ||
3452 | test -n "$ac_ct_CC" && break | |
3453 | done | |
3454 | ||
3455 | if test "x$ac_ct_CC" = x; then | |
3456 | CC="" | |
3457 | else | |
3458 | case $cross_compiling:$ac_tool_warned in | |
3459 | yes:) | |
3460 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3461 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3462 | ac_tool_warned=yes ;; | |
3463 | esac | |
3464 | CC=$ac_ct_CC | |
3465 | fi | |
3466 | fi | |
3467 | ||
3468 | fi | |
3469 | ||
3470 | ||
3471 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3472 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3473 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3474 | See \`config.log' for more details" "$LINENO" 5; } | |
3475 | ||
3476 | # Provide some information about the compiler. | |
3477 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3478 | set X $ac_compile | |
3479 | ac_compiler=$2 | |
3480 | for ac_option in --version -v -V -qversion; do | |
3481 | { { ac_try="$ac_compiler $ac_option >&5" | |
3482 | case "(($ac_try" in | |
3483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3484 | *) ac_try_echo=$ac_try;; | |
3485 | esac | |
3486 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3487 | $as_echo "$ac_try_echo"; } >&5 | |
3488 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3489 | ac_status=$? | |
3490 | if test -s conftest.err; then | |
3491 | sed '10a\ | |
3492 | ... rest of stderr output deleted ... | |
3493 | 10q' conftest.err >conftest.er1 | |
3494 | cat conftest.er1 >&5 | |
3495 | fi | |
3496 | rm -f conftest.er1 conftest.err | |
3497 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3498 | test $ac_status = 0; } | |
3499 | done | |
3500 | ||
3501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3502 | /* end confdefs.h. */ | |
3503 | ||
3504 | int | |
3505 | main () | |
3506 | { | |
3507 | ||
3508 | ; | |
3509 | return 0; | |
3510 | } | |
3511 | _ACEOF | |
3512 | ac_clean_files_save=$ac_clean_files | |
3513 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3514 | # Try to create an executable without -o first, disregard a.out. | |
3515 | # It will help us diagnose broken compilers, and finding out an intuition | |
3516 | # of exeext. | |
3517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3518 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3519 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3520 | ||
3521 | # The possible output files: | |
3522 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3523 | ||
3524 | ac_rmfiles= | |
3525 | for ac_file in $ac_files | |
3526 | do | |
3527 | case $ac_file in | |
3528 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3529 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3530 | esac | |
3531 | done | |
35fa52c0 DWT |
3532 | rm -f $ac_rmfiles |
3533 | ||
3534 | if { { ac_try="$ac_link_default" | |
3535 | case "(($ac_try" in | |
3536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3537 | *) ac_try_echo=$ac_try;; | |
3538 | esac | |
3539 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3540 | $as_echo "$ac_try_echo"; } >&5 | |
3541 | (eval "$ac_link_default") 2>&5 | |
3542 | ac_status=$? | |
3543 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3544 | test $ac_status = 0; }; then : | |
3545 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3546 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3547 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3548 | # so that the user can short-circuit this test for compilers unknown to | |
3549 | # Autoconf. | |
3550 | for ac_file in $ac_files '' | |
3551 | do | |
3552 | test -f "$ac_file" || continue | |
3553 | case $ac_file in | |
3554 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3555 | ;; | |
3556 | [ab].out ) | |
3557 | # We found the default executable, but exeext='' is most | |
3558 | # certainly right. | |
3559 | break;; | |
3560 | *.* ) | |
3561 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3562 | then :; else | |
3563 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3564 | fi | |
3565 | # We set ac_cv_exeext here because the later test for it is not | |
3566 | # safe: cross compilers may not add the suffix if given an `-o' | |
3567 | # argument, so we may need to know it at that point already. | |
3568 | # Even if this section looks crufty: it has the advantage of | |
3569 | # actually working. | |
3570 | break;; | |
3571 | * ) | |
3572 | break;; | |
3573 | esac | |
3574 | done | |
3575 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3576 | ||
3577 | else | |
3578 | ac_file='' | |
3579 | fi | |
35fa52c0 | 3580 | if test -z "$ac_file"; then : |
9c60689e DWT |
3581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3582 | $as_echo "no" >&6; } | |
3583 | $as_echo "$as_me: failed program was:" >&5 | |
35fa52c0 DWT |
3584 | sed 's/^/| /' conftest.$ac_ext >&5 |
3585 | ||
3586 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3587 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
a93f15c0 | 3588 | as_fn_error 77 "C compiler cannot create executables |
ee134472 | 3589 | See \`config.log' for more details" "$LINENO" 5; } |
9c60689e DWT |
3590 | else |
3591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3592 | $as_echo "yes" >&6; } | |
35fa52c0 | 3593 | fi |
a93f15c0 JF |
3594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3595 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
9c60689e DWT |
3596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
3597 | $as_echo "$ac_file" >&6; } | |
35fa52c0 DWT |
3598 | ac_exeext=$ac_cv_exeext |
3599 | ||
9c60689e | 3600 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
35fa52c0 | 3601 | ac_clean_files=$ac_clean_files_save |
35fa52c0 DWT |
3602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3603 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3604 | if { { ac_try="$ac_link" | |
3605 | case "(($ac_try" in | |
3606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3607 | *) ac_try_echo=$ac_try;; | |
3608 | esac | |
3609 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3610 | $as_echo "$ac_try_echo"; } >&5 | |
3611 | (eval "$ac_link") 2>&5 | |
3612 | ac_status=$? | |
3613 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3614 | test $ac_status = 0; }; then : | |
3615 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3616 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3617 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3618 | # `rm'. | |
3619 | for ac_file in conftest.exe conftest conftest.*; do | |
3620 | test -f "$ac_file" || continue | |
3621 | case $ac_file in | |
3622 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3623 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3624 | break;; | |
3625 | * ) break;; | |
3626 | esac | |
3627 | done | |
3628 | else | |
3629 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3630 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12833ad8 | 3631 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
ee134472 | 3632 | See \`config.log' for more details" "$LINENO" 5; } |
35fa52c0 | 3633 | fi |
9c60689e | 3634 | rm -f conftest conftest$ac_cv_exeext |
35fa52c0 DWT |
3635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3636 | $as_echo "$ac_cv_exeext" >&6; } | |
3637 | ||
3638 | rm -f conftest.$ac_ext | |
3639 | EXEEXT=$ac_cv_exeext | |
3640 | ac_exeext=$EXEEXT | |
9c60689e DWT |
3641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3642 | /* end confdefs.h. */ | |
3643 | #include <stdio.h> | |
3644 | int | |
3645 | main () | |
3646 | { | |
3647 | FILE *f = fopen ("conftest.out", "w"); | |
3648 | return ferror (f) || fclose (f) != 0; | |
3649 | ||
3650 | ; | |
3651 | return 0; | |
3652 | } | |
3653 | _ACEOF | |
3654 | ac_clean_files="$ac_clean_files conftest.out" | |
3655 | # Check that the compiler produces executables we can run. If not, either | |
3656 | # the compiler is broken, or we cross compile. | |
3657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3658 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3659 | if test "$cross_compiling" != yes; then | |
3660 | { { ac_try="$ac_link" | |
3661 | case "(($ac_try" in | |
3662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3663 | *) ac_try_echo=$ac_try;; | |
3664 | esac | |
3665 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3666 | $as_echo "$ac_try_echo"; } >&5 | |
3667 | (eval "$ac_link") 2>&5 | |
3668 | ac_status=$? | |
3669 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3670 | test $ac_status = 0; } | |
3671 | if { ac_try='./conftest$ac_cv_exeext' | |
3672 | { { case "(($ac_try" in | |
3673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3674 | *) ac_try_echo=$ac_try;; | |
3675 | esac | |
3676 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3677 | $as_echo "$ac_try_echo"; } >&5 | |
3678 | (eval "$ac_try") 2>&5 | |
3679 | ac_status=$? | |
3680 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3681 | test $ac_status = 0; }; }; then | |
3682 | cross_compiling=no | |
3683 | else | |
3684 | if test "$cross_compiling" = maybe; then | |
3685 | cross_compiling=yes | |
3686 | else | |
3687 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3688 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
a93f15c0 | 3689 | as_fn_error $? "cannot run C compiled programs. |
9c60689e | 3690 | If you meant to cross compile, use \`--host'. |
ee134472 | 3691 | See \`config.log' for more details" "$LINENO" 5; } |
9c60689e DWT |
3692 | fi |
3693 | fi | |
3694 | fi | |
3695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3696 | $as_echo "$cross_compiling" >&6; } | |
3697 | ||
3698 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3699 | ac_clean_files=$ac_clean_files_save | |
35fa52c0 DWT |
3700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3701 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ee134472 | 3702 | if ${ac_cv_objext+:} false; then : |
35fa52c0 DWT |
3703 | $as_echo_n "(cached) " >&6 |
3704 | else | |
3705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3706 | /* end confdefs.h. */ | |
3707 | ||
3708 | int | |
3709 | main () | |
3710 | { | |
3711 | ||
3712 | ; | |
3713 | return 0; | |
3714 | } | |
3715 | _ACEOF | |
3716 | rm -f conftest.o conftest.obj | |
3717 | if { { ac_try="$ac_compile" | |
3718 | case "(($ac_try" in | |
3719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3720 | *) ac_try_echo=$ac_try;; | |
3721 | esac | |
3722 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3723 | $as_echo "$ac_try_echo"; } >&5 | |
3724 | (eval "$ac_compile") 2>&5 | |
3725 | ac_status=$? | |
3726 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3727 | test $ac_status = 0; }; then : | |
3728 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3729 | test -f "$ac_file" || continue; | |
3730 | case $ac_file in | |
3731 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3732 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3733 | break;; | |
3734 | esac | |
3735 | done | |
3736 | else | |
3737 | $as_echo "$as_me: failed program was:" >&5 | |
3738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3739 | ||
3740 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3741 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12833ad8 | 3742 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
ee134472 | 3743 | See \`config.log' for more details" "$LINENO" 5; } |
35fa52c0 DWT |
3744 | fi |
3745 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3746 | fi | |
3747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3748 | $as_echo "$ac_cv_objext" >&6; } | |
3749 | OBJEXT=$ac_cv_objext | |
3750 | ac_objext=$OBJEXT | |
a93f15c0 JF |
3751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3752 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3753 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
35fa52c0 DWT |
3754 | $as_echo_n "(cached) " >&6 |
3755 | else | |
3756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3757 | /* end confdefs.h. */ | |
3758 | ||
3759 | int | |
3760 | main () | |
3761 | { | |
3762 | #ifndef __GNUC__ | |
3763 | choke me | |
3764 | #endif | |
3765 | ||
3766 | ; | |
3767 | return 0; | |
3768 | } | |
3769 | _ACEOF | |
a93f15c0 | 3770 | if ac_fn_c_try_compile "$LINENO"; then : |
35fa52c0 DWT |
3771 | ac_compiler_gnu=yes |
3772 | else | |
3773 | ac_compiler_gnu=no | |
3774 | fi | |
3775 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a93f15c0 | 3776 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
35fa52c0 DWT |
3777 | |
3778 | fi | |
a93f15c0 JF |
3779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3780 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
35fa52c0 | 3781 | if test $ac_compiler_gnu = yes; then |
a93f15c0 | 3782 | GCC=yes |
35fa52c0 | 3783 | else |
a93f15c0 | 3784 | GCC= |
35fa52c0 | 3785 | fi |
a93f15c0 JF |
3786 | ac_test_CFLAGS=${CFLAGS+set} |
3787 | ac_save_CFLAGS=$CFLAGS | |
3788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3789 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3790 | if ${ac_cv_prog_cc_g+:} false; then : | |
35fa52c0 DWT |
3791 | $as_echo_n "(cached) " >&6 |
3792 | else | |
a93f15c0 JF |
3793 | ac_save_c_werror_flag=$ac_c_werror_flag |
3794 | ac_c_werror_flag=yes | |
3795 | ac_cv_prog_cc_g=no | |
3796 | CFLAGS="-g" | |
35fa52c0 DWT |
3797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3798 | /* end confdefs.h. */ | |
3799 | ||
3800 | int | |
3801 | main () | |
3802 | { | |
3803 | ||
3804 | ; | |
3805 | return 0; | |
3806 | } | |
3807 | _ACEOF | |
a93f15c0 JF |
3808 | if ac_fn_c_try_compile "$LINENO"; then : |
3809 | ac_cv_prog_cc_g=yes | |
35fa52c0 | 3810 | else |
a93f15c0 | 3811 | CFLAGS="" |
35fa52c0 DWT |
3812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3813 | /* end confdefs.h. */ | |
3814 | ||
3815 | int | |
3816 | main () | |
3817 | { | |
3818 | ||
3819 | ; | |
3820 | return 0; | |
3821 | } | |
3822 | _ACEOF | |
a93f15c0 | 3823 | if ac_fn_c_try_compile "$LINENO"; then : |
35fa52c0 DWT |
3824 | |
3825 | else | |
a93f15c0 JF |
3826 | ac_c_werror_flag=$ac_save_c_werror_flag |
3827 | CFLAGS="-g" | |
35fa52c0 DWT |
3828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3829 | /* end confdefs.h. */ | |
3830 | ||
3831 | int | |
3832 | main () | |
3833 | { | |
3834 | ||
3835 | ; | |
3836 | return 0; | |
3837 | } | |
3838 | _ACEOF | |
a93f15c0 JF |
3839 | if ac_fn_c_try_compile "$LINENO"; then : |
3840 | ac_cv_prog_cc_g=yes | |
35fa52c0 DWT |
3841 | fi |
3842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3843 | fi | |
3844 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3845 | fi | |
3846 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a93f15c0 | 3847 | ac_c_werror_flag=$ac_save_c_werror_flag |
35fa52c0 | 3848 | fi |
a93f15c0 JF |
3849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3850 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3851 | if test "$ac_test_CFLAGS" = set; then | |
3852 | CFLAGS=$ac_save_CFLAGS | |
3853 | elif test $ac_cv_prog_cc_g = yes; then | |
3854 | if test "$GCC" = yes; then | |
3855 | CFLAGS="-g -O2" | |
35fa52c0 | 3856 | else |
a93f15c0 | 3857 | CFLAGS="-g" |
35fa52c0 DWT |
3858 | fi |
3859 | else | |
a93f15c0 JF |
3860 | if test "$GCC" = yes; then |
3861 | CFLAGS="-O2" | |
35fa52c0 | 3862 | else |
a93f15c0 | 3863 | CFLAGS= |
35fa52c0 DWT |
3864 | fi |
3865 | fi | |
a93f15c0 JF |
3866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3867 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3868 | if ${ac_cv_prog_cc_c89+:} false; then : | |
3869 | $as_echo_n "(cached) " >&6 | |
3870 | else | |
3871 | ac_cv_prog_cc_c89=no | |
3872 | ac_save_CC=$CC | |
3873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3874 | /* end confdefs.h. */ | |
3875 | #include <stdarg.h> | |
3876 | #include <stdio.h> | |
3877 | struct stat; | |
3878 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3879 | struct buf { int x; }; | |
3880 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3881 | static char *e (p, i) | |
3882 | char **p; | |
3883 | int i; | |
3884 | { | |
3885 | return p[i]; | |
3886 | } | |
3887 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3888 | { | |
3889 | char *s; | |
3890 | va_list v; | |
3891 | va_start (v,p); | |
3892 | s = g (p, va_arg (v,int)); | |
3893 | va_end (v); | |
3894 | return s; | |
3895 | } | |
3896 | ||
3897 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3898 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3899 | These don't provoke an error unfortunately, instead are silently treated | |
3900 | as 'x'. The following induces an error, until -std is added to get | |
3901 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3902 | array size at least. It's necessary to write '\x00'==0 to get something | |
3903 | that's true only with -std. */ | |
3904 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3905 | ||
3906 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3907 | inside strings and character constants. */ | |
3908 | #define FOO(x) 'x' | |
3909 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3910 | ||
3911 | int test (int i, double x); | |
3912 | struct s1 {int (*f) (int a);}; | |
3913 | struct s2 {int (*f) (double a);}; | |
3914 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3915 | int argc; | |
3916 | char **argv; | |
3917 | int | |
3918 | main () | |
3919 | { | |
3920 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3921 | ; | |
3922 | return 0; | |
3923 | } | |
3924 | _ACEOF | |
3925 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3926 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3927 | do | |
3928 | CC="$ac_save_CC $ac_arg" | |
3929 | if ac_fn_c_try_compile "$LINENO"; then : | |
3930 | ac_cv_prog_cc_c89=$ac_arg | |
3931 | fi | |
3932 | rm -f core conftest.err conftest.$ac_objext | |
3933 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3934 | done | |
3935 | rm -f conftest.$ac_ext | |
3936 | CC=$ac_save_CC | |
3937 | ||
3938 | fi | |
3939 | # AC_CACHE_VAL | |
3940 | case "x$ac_cv_prog_cc_c89" in | |
3941 | x) | |
3942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3943 | $as_echo "none needed" >&6; } ;; | |
3944 | xno) | |
3945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3946 | $as_echo "unsupported" >&6; } ;; | |
3947 | *) | |
3948 | CC="$CC $ac_cv_prog_cc_c89" | |
3949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3950 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3951 | esac | |
3952 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3953 | ||
3954 | fi | |
3955 | ||
3956 | ac_ext=c | |
3957 | ac_cpp='$CPP $CPPFLAGS' | |
3958 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3959 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3960 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3961 | ||
3962 | ac_ext=c | |
3963 | ac_cpp='$CPP $CPPFLAGS' | |
3964 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3965 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3966 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3968 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3969 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3970 | $as_echo_n "(cached) " >&6 | |
3971 | else | |
3972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3973 | /* end confdefs.h. */ | |
3974 | ||
3975 | int | |
3976 | main () | |
3977 | { | |
3978 | ||
3979 | ; | |
3980 | return 0; | |
3981 | } | |
3982 | _ACEOF | |
3983 | # Make sure it works both with $CC and with simple cc. | |
3984 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3985 | # compilers refuse to overwrite an existing .o file with -o, | |
3986 | # though they will create one. | |
3987 | am_cv_prog_cc_c_o=yes | |
3988 | for am_i in 1 2; do | |
3989 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3990 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3991 | ac_status=$? | |
3992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3993 | (exit $ac_status); } \ | |
3994 | && test -f conftest2.$ac_objext; then | |
3995 | : OK | |
3996 | else | |
3997 | am_cv_prog_cc_c_o=no | |
3998 | break | |
3999 | fi | |
4000 | done | |
4001 | rm -f core conftest* | |
4002 | unset am_i | |
4003 | fi | |
4004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4005 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4006 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4007 | # Losing compiler, so override with the script. | |
4008 | # FIXME: It is wrong to rewrite CC. | |
4009 | # But if we don't then we get into trouble of one sort or another. | |
4010 | # A longer-term fix would be to have automake use am__CC in this case, | |
4011 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4012 | CC="$am_aux_dir/compile $CC" | |
4013 | fi | |
a243b558 JF |
4014 | ac_ext=c |
4015 | ac_cpp='$CPP $CPPFLAGS' | |
4016 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4017 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4018 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
a93f15c0 | 4019 | |
a243b558 | 4020 | DEPDIR="${am__leading_dot}deps" |
35fa52c0 | 4021 | |
a243b558 | 4022 | ac_config_commands="$ac_config_commands depfiles" |
35fa52c0 | 4023 | |
35fa52c0 | 4024 | |
a243b558 JF |
4025 | am_make=${MAKE-make} |
4026 | cat > confinc << 'END' | |
4027 | am__doit: | |
4028 | @echo this is the am__doit target | |
4029 | .PHONY: am__doit | |
4030 | END | |
4031 | # If we don't find an include directive, just comment out the code. | |
4032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4033 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4034 | am__include="#" | |
4035 | am__quote= | |
4036 | _am_result=none | |
4037 | # First try GNU make style include. | |
4038 | echo "include confinc" > confmf | |
4039 | # Ignore all kinds of additional output from 'make'. | |
4040 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4041 | *the\ am__doit\ target*) | |
4042 | am__include=include | |
4043 | am__quote= | |
4044 | _am_result=GNU | |
4045 | ;; | |
4046 | esac | |
4047 | # Now try BSD make style include. | |
4048 | if test "$am__include" = "#"; then | |
4049 | echo '.include "confinc"' > confmf | |
4050 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4051 | *the\ am__doit\ target*) | |
4052 | am__include=.include | |
4053 | am__quote="\"" | |
4054 | _am_result=BSD | |
4055 | ;; | |
4056 | esac | |
35fa52c0 | 4057 | fi |
35fa52c0 | 4058 | |
a243b558 JF |
4059 | |
4060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
4061 | $as_echo "$_am_result" >&6; } | |
4062 | rm -f confinc confmf | |
4063 | ||
4064 | # Check whether --enable-dependency-tracking was given. | |
4065 | if test "${enable_dependency_tracking+set}" = set; then : | |
4066 | enableval=$enable_dependency_tracking; | |
35fa52c0 | 4067 | fi |
35fa52c0 | 4068 | |
a243b558 JF |
4069 | if test "x$enable_dependency_tracking" != xno; then |
4070 | am_depcomp="$ac_aux_dir/depcomp" | |
4071 | AMDEPBACKSLASH='\' | |
4072 | am__nodep='_no' | |
4073 | fi | |
4074 | if test "x$enable_dependency_tracking" != xno; then | |
4075 | AMDEP_TRUE= | |
4076 | AMDEP_FALSE='#' | |
4077 | else | |
4078 | AMDEP_TRUE='#' | |
4079 | AMDEP_FALSE= | |
35fa52c0 DWT |
4080 | fi |
4081 | ||
35fa52c0 | 4082 | |
a243b558 | 4083 | |
a93f15c0 | 4084 | depcc="$CC" am_compiler_list= |
66170b30 JF |
4085 | |
4086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4087 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
a93f15c0 | 4088 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
66170b30 JF |
4089 | $as_echo_n "(cached) " >&6 |
4090 | else | |
4091 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4092 | # We make a subdir and do the tests there. Otherwise we can end up | |
4093 | # making bogus files that we don't know about and never remove. For | |
4094 | # instance it was reported that on HP-UX the gcc test will end up | |
4095 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4096 | # in D". | |
4097 | rm -rf conftest.dir | |
4098 | mkdir conftest.dir | |
4099 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4100 | # using a relative directory. | |
4101 | cp "$am_depcomp" conftest.dir | |
4102 | cd conftest.dir | |
4103 | # We will build objects and dependencies in a subdirectory because | |
4104 | # it helps to detect inapplicable dependency modes. For instance | |
4105 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4106 | # side effect of compilation, but ICC will put the dependencies in | |
4107 | # the current directory while Tru64 will put them in the object | |
4108 | # directory. | |
4109 | mkdir sub | |
4110 | ||
a93f15c0 | 4111 | am_cv_CC_dependencies_compiler_type=none |
66170b30 JF |
4112 | if test "$am_compiler_list" = ""; then |
4113 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4114 | fi | |
4115 | am__universal=false | |
4116 | case " $depcc " in #( | |
4117 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4118 | esac | |
4119 | ||
4120 | for depmode in $am_compiler_list; do | |
4121 | # Setup a source with many dependencies, because some compilers | |
4122 | # like to wrap large dependency lists on column 80 (with \), and | |
4123 | # we should not choose a depcomp mode which is confused by this. | |
4124 | # | |
4125 | # We need to recreate these files for each test, as the compiler may | |
4126 | # overwrite some of them when testing with obscure command lines. | |
4127 | # This happens at least with the AIX C compiler. | |
4128 | : > sub/conftest.c | |
4129 | for i in 1 2 3 4 5 6; do | |
4130 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4131 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4132 | # Solaris 10 /bin/sh. | |
4133 | echo '/* dummy */' > sub/conftst$i.h | |
4134 | done | |
4135 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4136 | ||
4137 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4138 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4139 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4140 | # versions had trouble with output in subdirs. | |
4141 | am__obj=sub/conftest.${OBJEXT-o} | |
4142 | am__minus_obj="-o $am__obj" | |
4143 | case $depmode in | |
4144 | gcc) | |
4145 | # This depmode causes a compiler race in universal mode. | |
4146 | test "$am__universal" = false || continue | |
4147 | ;; | |
4148 | nosideeffect) | |
4149 | # After this tag, mechanisms are not by side-effect, so they'll | |
4150 | # only be used when explicitly requested. | |
4151 | if test "x$enable_dependency_tracking" = xyes; then | |
4152 | continue | |
4153 | else | |
4154 | break | |
4155 | fi | |
4156 | ;; | |
4157 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4158 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4159 | # not run yet. These depmodes are late enough in the game, and | |
4160 | # so weak that their functioning should not be impacted. | |
4161 | am__obj=conftest.${OBJEXT-o} | |
4162 | am__minus_obj= | |
4163 | ;; | |
4164 | none) break ;; | |
4165 | esac | |
4166 | if depmode=$depmode \ | |
4167 | source=sub/conftest.c object=$am__obj \ | |
4168 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4169 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4170 | >/dev/null 2>conftest.err && | |
4171 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4172 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4173 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4174 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4175 | # icc doesn't choke on unknown options, it will just issue warnings | |
4176 | # or remarks (even with -Werror). So we grep stderr for any message | |
4177 | # that says an option was ignored or not supported. | |
4178 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4179 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4180 | # The diagnosis changed in icc 8.0: | |
4181 | # icc: Command line remark: option '-MP' not supported | |
4182 | if (grep 'ignoring option' conftest.err || | |
4183 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
a93f15c0 | 4184 | am_cv_CC_dependencies_compiler_type=$depmode |
66170b30 JF |
4185 | break |
4186 | fi | |
4187 | fi | |
4188 | done | |
4189 | ||
4190 | cd .. | |
4191 | rm -rf conftest.dir | |
4192 | else | |
a93f15c0 | 4193 | am_cv_CC_dependencies_compiler_type=none |
66170b30 JF |
4194 | fi |
4195 | ||
4196 | fi | |
a93f15c0 JF |
4197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4198 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4199 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
66170b30 JF |
4200 | |
4201 | if | |
4202 | test "x$enable_dependency_tracking" != xno \ | |
a93f15c0 JF |
4203 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
4204 | am__fastdepCC_TRUE= | |
4205 | am__fastdepCC_FALSE='#' | |
66170b30 | 4206 | else |
a93f15c0 JF |
4207 | am__fastdepCC_TRUE='#' |
4208 | am__fastdepCC_FALSE= | |
66170b30 JF |
4209 | fi |
4210 | ||
4211 | ||
a93f15c0 JF |
4212 | ac_ext=cpp |
4213 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4214 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4215 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4216 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4217 | if test -z "$CXX"; then | |
4218 | if test -n "$CCC"; then | |
4219 | CXX=$CCC | |
4220 | else | |
4221 | if test -n "$ac_tool_prefix"; then | |
4222 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
a243b558 JF |
4223 | do |
4224 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4225 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4227 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 4228 | if ${ac_cv_prog_CXX+:} false; then : |
35fa52c0 DWT |
4229 | $as_echo_n "(cached) " >&6 |
4230 | else | |
a93f15c0 JF |
4231 | if test -n "$CXX"; then |
4232 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
a243b558 JF |
4233 | else |
4234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4235 | for as_dir in $PATH | |
4236 | do | |
35fa52c0 DWT |
4237 | IFS=$as_save_IFS |
4238 | test -z "$as_dir" && as_dir=. | |
4239 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a243b558 | 4240 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a93f15c0 | 4241 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
a243b558 JF |
4242 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4243 | break 2 | |
4244 | fi | |
4245 | done | |
9c60689e DWT |
4246 | done |
4247 | IFS=$as_save_IFS | |
35fa52c0 | 4248 | |
9c60689e | 4249 | fi |
a243b558 | 4250 | fi |
a93f15c0 JF |
4251 | CXX=$ac_cv_prog_CXX |
4252 | if test -n "$CXX"; then | |
4253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
4254 | $as_echo "$CXX" >&6; } | |
a243b558 JF |
4255 | else |
4256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4257 | $as_echo "no" >&6; } | |
4258 | fi | |
35fa52c0 | 4259 | |
35fa52c0 | 4260 | |
a93f15c0 | 4261 | test -n "$CXX" && break |
a243b558 JF |
4262 | done |
4263 | fi | |
a93f15c0 JF |
4264 | if test -z "$CXX"; then |
4265 | ac_ct_CXX=$CXX | |
4266 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
a243b558 JF |
4267 | do |
4268 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4269 | set dummy $ac_prog; ac_word=$2 | |
4270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4271 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 4272 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
9c60689e DWT |
4273 | $as_echo_n "(cached) " >&6 |
4274 | else | |
a93f15c0 JF |
4275 | if test -n "$ac_ct_CXX"; then |
4276 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
a243b558 JF |
4277 | else |
4278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4279 | for as_dir in $PATH | |
9c60689e DWT |
4280 | do |
4281 | IFS=$as_save_IFS | |
4282 | test -z "$as_dir" && as_dir=. | |
9c60689e | 4283 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 | 4284 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a93f15c0 | 4285 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
a243b558 JF |
4286 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4287 | break 2 | |
4288 | fi | |
4289 | done | |
9c60689e DWT |
4290 | done |
4291 | IFS=$as_save_IFS | |
a243b558 JF |
4292 | |
4293 | fi | |
4294 | fi | |
a93f15c0 JF |
4295 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4296 | if test -n "$ac_ct_CXX"; then | |
4297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
4298 | $as_echo "$ac_ct_CXX" >&6; } | |
9c60689e | 4299 | else |
a243b558 JF |
4300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4301 | $as_echo "no" >&6; } | |
9c60689e | 4302 | fi |
6b66678a DWT |
4303 | |
4304 | ||
a93f15c0 | 4305 | test -n "$ac_ct_CXX" && break |
a243b558 | 4306 | done |
6b66678a | 4307 | |
a93f15c0 JF |
4308 | if test "x$ac_ct_CXX" = x; then |
4309 | CXX="g++" | |
a243b558 JF |
4310 | else |
4311 | case $cross_compiling:$ac_tool_warned in | |
4312 | yes:) | |
4313 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4314 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4315 | ac_tool_warned=yes ;; | |
9c60689e | 4316 | esac |
a93f15c0 | 4317 | CXX=$ac_ct_CXX |
9c60689e | 4318 | fi |
9c60689e | 4319 | fi |
6b66678a | 4320 | |
a93f15c0 JF |
4321 | fi |
4322 | fi | |
a243b558 | 4323 | # Provide some information about the compiler. |
a93f15c0 | 4324 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
a243b558 JF |
4325 | set X $ac_compile |
4326 | ac_compiler=$2 | |
4327 | for ac_option in --version -v -V -qversion; do | |
4328 | { { ac_try="$ac_compiler $ac_option >&5" | |
4329 | case "(($ac_try" in | |
4330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4331 | *) ac_try_echo=$ac_try;; | |
4332 | esac | |
4333 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4334 | $as_echo "$ac_try_echo"; } >&5 | |
4335 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4336 | ac_status=$? | |
4337 | if test -s conftest.err; then | |
4338 | sed '10a\ | |
4339 | ... rest of stderr output deleted ... | |
4340 | 10q' conftest.err >conftest.er1 | |
4341 | cat conftest.er1 >&5 | |
4342 | fi | |
4343 | rm -f conftest.er1 conftest.err | |
4344 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4345 | test $ac_status = 0; } | |
4346 | done | |
6b66678a | 4347 | |
a93f15c0 JF |
4348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4349 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4350 | if ${ac_cv_cxx_compiler_gnu+:} false; then : | |
9c60689e | 4351 | $as_echo_n "(cached) " >&6 |
6b66678a | 4352 | else |
a243b558 JF |
4353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4354 | /* end confdefs.h. */ | |
6b66678a | 4355 | |
a243b558 JF |
4356 | int |
4357 | main () | |
4358 | { | |
4359 | #ifndef __GNUC__ | |
4360 | choke me | |
4361 | #endif | |
4362 | ||
4363 | ; | |
4364 | return 0; | |
4365 | } | |
4366 | _ACEOF | |
a93f15c0 | 4367 | if ac_fn_cxx_try_compile "$LINENO"; then : |
a243b558 | 4368 | ac_compiler_gnu=yes |
9c60689e | 4369 | else |
a243b558 | 4370 | ac_compiler_gnu=no |
6b66678a | 4371 | fi |
a243b558 | 4372 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a93f15c0 | 4373 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
6b66678a DWT |
4374 | |
4375 | fi | |
a93f15c0 JF |
4376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4377 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
a243b558 | 4378 | if test $ac_compiler_gnu = yes; then |
a93f15c0 | 4379 | GXX=yes |
a243b558 | 4380 | else |
a93f15c0 | 4381 | GXX= |
a243b558 | 4382 | fi |
a93f15c0 JF |
4383 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4384 | ac_save_CXXFLAGS=$CXXFLAGS | |
4385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
4386 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4387 | if ${ac_cv_prog_cxx_g+:} false; then : | |
a243b558 JF |
4388 | $as_echo_n "(cached) " >&6 |
4389 | else | |
a93f15c0 JF |
4390 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
4391 | ac_cxx_werror_flag=yes | |
4392 | ac_cv_prog_cxx_g=no | |
4393 | CXXFLAGS="-g" | |
a243b558 JF |
4394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4395 | /* end confdefs.h. */ | |
309b0535 | 4396 | |
a243b558 JF |
4397 | int |
4398 | main () | |
4399 | { | |
309b0535 | 4400 | |
a243b558 JF |
4401 | ; |
4402 | return 0; | |
4403 | } | |
4404 | _ACEOF | |
a93f15c0 JF |
4405 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4406 | ac_cv_prog_cxx_g=yes | |
a243b558 | 4407 | else |
a93f15c0 | 4408 | CXXFLAGS="" |
a243b558 JF |
4409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4410 | /* end confdefs.h. */ | |
309b0535 | 4411 | |
a243b558 JF |
4412 | int |
4413 | main () | |
4414 | { | |
309b0535 | 4415 | |
a243b558 JF |
4416 | ; |
4417 | return 0; | |
4418 | } | |
4419 | _ACEOF | |
a93f15c0 | 4420 | if ac_fn_cxx_try_compile "$LINENO"; then : |
309b0535 | 4421 | |
a243b558 | 4422 | else |
a93f15c0 JF |
4423 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
4424 | CXXFLAGS="-g" | |
a243b558 JF |
4425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4426 | /* end confdefs.h. */ | |
309b0535 | 4427 | |
a243b558 JF |
4428 | int |
4429 | main () | |
4430 | { | |
309b0535 | 4431 | |
a243b558 JF |
4432 | ; |
4433 | return 0; | |
4434 | } | |
4435 | _ACEOF | |
a93f15c0 JF |
4436 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4437 | ac_cv_prog_cxx_g=yes | |
9c60689e | 4438 | fi |
a243b558 | 4439 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9c60689e | 4440 | fi |
a243b558 | 4441 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9c60689e | 4442 | fi |
a243b558 | 4443 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a93f15c0 | 4444 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
9c60689e | 4445 | fi |
a93f15c0 JF |
4446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
4447 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4448 | if test "$ac_test_CXXFLAGS" = set; then | |
4449 | CXXFLAGS=$ac_save_CXXFLAGS | |
4450 | elif test $ac_cv_prog_cxx_g = yes; then | |
4451 | if test "$GXX" = yes; then | |
4452 | CXXFLAGS="-g -O2" | |
a243b558 | 4453 | else |
a93f15c0 | 4454 | CXXFLAGS="-g" |
a243b558 | 4455 | fi |
9c60689e | 4456 | else |
a93f15c0 JF |
4457 | if test "$GXX" = yes; then |
4458 | CXXFLAGS="-O2" | |
a243b558 | 4459 | else |
a93f15c0 | 4460 | CXXFLAGS= |
a243b558 | 4461 | fi |
9c60689e | 4462 | fi |
a243b558 JF |
4463 | ac_ext=c |
4464 | ac_cpp='$CPP $CPPFLAGS' | |
4465 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4466 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4467 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
309b0535 | 4468 | |
a93f15c0 | 4469 | depcc="$CXX" am_compiler_list= |
309b0535 | 4470 | |
a243b558 JF |
4471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4472 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
a93f15c0 | 4473 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
a243b558 JF |
4474 | $as_echo_n "(cached) " >&6 |
4475 | else | |
4476 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4477 | # We make a subdir and do the tests there. Otherwise we can end up | |
4478 | # making bogus files that we don't know about and never remove. For | |
4479 | # instance it was reported that on HP-UX the gcc test will end up | |
4480 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4481 | # in D". | |
4482 | rm -rf conftest.dir | |
4483 | mkdir conftest.dir | |
4484 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4485 | # using a relative directory. | |
4486 | cp "$am_depcomp" conftest.dir | |
4487 | cd conftest.dir | |
4488 | # We will build objects and dependencies in a subdirectory because | |
4489 | # it helps to detect inapplicable dependency modes. For instance | |
4490 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4491 | # side effect of compilation, but ICC will put the dependencies in | |
4492 | # the current directory while Tru64 will put them in the object | |
4493 | # directory. | |
4494 | mkdir sub | |
309b0535 | 4495 | |
a93f15c0 | 4496 | am_cv_CXX_dependencies_compiler_type=none |
a243b558 JF |
4497 | if test "$am_compiler_list" = ""; then |
4498 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4499 | fi | |
4500 | am__universal=false | |
a93f15c0 JF |
4501 | case " $depcc " in #( |
4502 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4503 | esac | |
9c60689e | 4504 | |
a243b558 JF |
4505 | for depmode in $am_compiler_list; do |
4506 | # Setup a source with many dependencies, because some compilers | |
4507 | # like to wrap large dependency lists on column 80 (with \), and | |
4508 | # we should not choose a depcomp mode which is confused by this. | |
4509 | # | |
4510 | # We need to recreate these files for each test, as the compiler may | |
4511 | # overwrite some of them when testing with obscure command lines. | |
4512 | # This happens at least with the AIX C compiler. | |
4513 | : > sub/conftest.c | |
4514 | for i in 1 2 3 4 5 6; do | |
4515 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4516 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4517 | # Solaris 10 /bin/sh. | |
4518 | echo '/* dummy */' > sub/conftst$i.h | |
4519 | done | |
4520 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
9c60689e | 4521 | |
a243b558 JF |
4522 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
4523 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4524 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4525 | # versions had trouble with output in subdirs. | |
4526 | am__obj=sub/conftest.${OBJEXT-o} | |
4527 | am__minus_obj="-o $am__obj" | |
4528 | case $depmode in | |
4529 | gcc) | |
4530 | # This depmode causes a compiler race in universal mode. | |
4531 | test "$am__universal" = false || continue | |
4532 | ;; | |
4533 | nosideeffect) | |
4534 | # After this tag, mechanisms are not by side-effect, so they'll | |
4535 | # only be used when explicitly requested. | |
4536 | if test "x$enable_dependency_tracking" = xyes; then | |
4537 | continue | |
4538 | else | |
4539 | break | |
309b0535 | 4540 | fi |
a243b558 JF |
4541 | ;; |
4542 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4543 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4544 | # not run yet. These depmodes are late enough in the game, and | |
4545 | # so weak that their functioning should not be impacted. | |
4546 | am__obj=conftest.${OBJEXT-o} | |
4547 | am__minus_obj= | |
4548 | ;; | |
4549 | none) break ;; | |
4550 | esac | |
4551 | if depmode=$depmode \ | |
4552 | source=sub/conftest.c object=$am__obj \ | |
4553 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4554 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4555 | >/dev/null 2>conftest.err && | |
4556 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4557 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4558 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4559 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4560 | # icc doesn't choke on unknown options, it will just issue warnings | |
4561 | # or remarks (even with -Werror). So we grep stderr for any message | |
4562 | # that says an option was ignored or not supported. | |
4563 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4564 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4565 | # The diagnosis changed in icc 8.0: | |
4566 | # icc: Command line remark: option '-MP' not supported | |
4567 | if (grep 'ignoring option' conftest.err || | |
4568 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
a93f15c0 | 4569 | am_cv_CXX_dependencies_compiler_type=$depmode |
a243b558 JF |
4570 | break |
4571 | fi | |
4572 | fi | |
309b0535 | 4573 | done |
a243b558 JF |
4574 | |
4575 | cd .. | |
4576 | rm -rf conftest.dir | |
4577 | else | |
a93f15c0 | 4578 | am_cv_CXX_dependencies_compiler_type=none |
9c60689e | 4579 | fi |
a243b558 | 4580 | |
9c60689e | 4581 | fi |
a93f15c0 JF |
4582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
4583 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
4584 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
a243b558 JF |
4585 | |
4586 | if | |
4587 | test "x$enable_dependency_tracking" != xno \ | |
a93f15c0 JF |
4588 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
4589 | am__fastdepCXX_TRUE= | |
4590 | am__fastdepCXX_FALSE='#' | |
9c60689e | 4591 | else |
a93f15c0 JF |
4592 | am__fastdepCXX_TRUE='#' |
4593 | am__fastdepCXX_FALSE= | |
a243b558 JF |
4594 | fi |
4595 | ||
4596 | ||
a93f15c0 JF |
4597 | ac_ext=mm |
4598 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
4599 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4600 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4601 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
a243b558 | 4602 | if test -n "$ac_tool_prefix"; then |
a93f15c0 | 4603 | for ac_prog in g++ objc++ objcxx c++ CXX |
a243b558 JF |
4604 | do |
4605 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4606 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4608 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 4609 | if ${ac_cv_prog_OBJCXX+:} false; then : |
9c60689e DWT |
4610 | $as_echo_n "(cached) " >&6 |
4611 | else | |
a93f15c0 JF |
4612 | if test -n "$OBJCXX"; then |
4613 | ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test. | |
a243b558 JF |
4614 | else |
4615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4616 | for as_dir in $PATH | |
4617 | do | |
4618 | IFS=$as_save_IFS | |
4619 | test -z "$as_dir" && as_dir=. | |
4620 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4621 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
a93f15c0 | 4622 | ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog" |
a243b558 JF |
4623 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4624 | break 2 | |
9c60689e | 4625 | fi |
a243b558 JF |
4626 | done |
4627 | done | |
4628 | IFS=$as_save_IFS | |
9c60689e | 4629 | |
a243b558 JF |
4630 | fi |
4631 | fi | |
a93f15c0 JF |
4632 | OBJCXX=$ac_cv_prog_OBJCXX |
4633 | if test -n "$OBJCXX"; then | |
4634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5 | |
4635 | $as_echo "$OBJCXX" >&6; } | |
35fa52c0 | 4636 | else |
a243b558 JF |
4637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4638 | $as_echo "no" >&6; } | |
35fa52c0 | 4639 | fi |
9c60689e | 4640 | |
a243b558 | 4641 | |
a93f15c0 | 4642 | test -n "$OBJCXX" && break |
a243b558 JF |
4643 | done |
4644 | fi | |
a93f15c0 JF |
4645 | if test -z "$OBJCXX"; then |
4646 | ac_ct_OBJCXX=$OBJCXX | |
4647 | for ac_prog in g++ objc++ objcxx c++ CXX | |
a243b558 JF |
4648 | do |
4649 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4650 | set dummy $ac_prog; ac_word=$2 | |
4651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4652 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 4653 | if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then : |
35fa52c0 DWT |
4654 | $as_echo_n "(cached) " >&6 |
4655 | else | |
a93f15c0 JF |
4656 | if test -n "$ac_ct_OBJCXX"; then |
4657 | ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test. | |
a243b558 JF |
4658 | else |
4659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4660 | for as_dir in $PATH | |
4661 | do | |
4662 | IFS=$as_save_IFS | |
4663 | test -z "$as_dir" && as_dir=. | |
4664 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4665 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
a93f15c0 | 4666 | ac_cv_prog_ac_ct_OBJCXX="$ac_prog" |
a243b558 JF |
4667 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4668 | break 2 | |
4669 | fi | |
4670 | done | |
4671 | done | |
4672 | IFS=$as_save_IFS | |
9c60689e | 4673 | |
a243b558 JF |
4674 | fi |
4675 | fi | |
a93f15c0 JF |
4676 | ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX |
4677 | if test -n "$ac_ct_OBJCXX"; then | |
4678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5 | |
4679 | $as_echo "$ac_ct_OBJCXX" >&6; } | |
a243b558 JF |
4680 | else |
4681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4682 | $as_echo "no" >&6; } | |
4683 | fi | |
35fa52c0 | 4684 | |
35fa52c0 | 4685 | |
a93f15c0 | 4686 | test -n "$ac_ct_OBJCXX" && break |
a243b558 | 4687 | done |
35fa52c0 | 4688 | |
a93f15c0 JF |
4689 | if test "x$ac_ct_OBJCXX" = x; then |
4690 | OBJCXX="g++" | |
a243b558 JF |
4691 | else |
4692 | case $cross_compiling:$ac_tool_warned in | |
4693 | yes:) | |
4694 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4695 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4696 | ac_tool_warned=yes ;; | |
4697 | esac | |
a93f15c0 | 4698 | OBJCXX=$ac_ct_OBJCXX |
a243b558 JF |
4699 | fi |
4700 | fi | |
ee134472 | 4701 | |
a243b558 | 4702 | # Provide some information about the compiler. |
a93f15c0 | 4703 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5 |
a243b558 JF |
4704 | set X $ac_compile |
4705 | ac_compiler=$2 | |
4706 | for ac_option in --version -v -V -qversion; do | |
4707 | { { ac_try="$ac_compiler $ac_option >&5" | |
4708 | case "(($ac_try" in | |
4709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4710 | *) ac_try_echo=$ac_try;; | |
4711 | esac | |
4712 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4713 | $as_echo "$ac_try_echo"; } >&5 | |
4714 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4715 | ac_status=$? | |
4716 | if test -s conftest.err; then | |
4717 | sed '10a\ | |
4718 | ... rest of stderr output deleted ... | |
4719 | 10q' conftest.err >conftest.er1 | |
4720 | cat conftest.er1 >&5 | |
4721 | fi | |
4722 | rm -f conftest.er1 conftest.err | |
4723 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4724 | test $ac_status = 0; } | |
4725 | done | |
53ba6704 | 4726 | |
a93f15c0 JF |
4727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5 |
4728 | $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; } | |
4729 | if ${ac_cv_objcxx_compiler_gnu+:} false; then : | |
a243b558 JF |
4730 | $as_echo_n "(cached) " >&6 |
4731 | else | |
4732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4733 | /* end confdefs.h. */ | |
35fa52c0 | 4734 | |
a243b558 JF |
4735 | int |
4736 | main () | |
4737 | { | |
4738 | #ifndef __GNUC__ | |
4739 | choke me | |
4740 | #endif | |
9c60689e | 4741 | |
a243b558 JF |
4742 | ; |
4743 | return 0; | |
4744 | } | |
4745 | _ACEOF | |
a93f15c0 | 4746 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
a243b558 | 4747 | ac_compiler_gnu=yes |
35fa52c0 | 4748 | else |
a243b558 | 4749 | ac_compiler_gnu=no |
35fa52c0 | 4750 | fi |
a243b558 | 4751 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a93f15c0 | 4752 | ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu |
9c60689e | 4753 | |
a243b558 | 4754 | fi |
a93f15c0 JF |
4755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5 |
4756 | $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; } | |
a243b558 | 4757 | if test $ac_compiler_gnu = yes; then |
a93f15c0 | 4758 | GOBJCXX=yes |
35fa52c0 | 4759 | else |
a93f15c0 | 4760 | GOBJCXX= |
9c60689e | 4761 | fi |
a93f15c0 JF |
4762 | ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set} |
4763 | ac_save_OBJCXXFLAGS=$OBJCXXFLAGS | |
4764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5 | |
4765 | $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; } | |
4766 | if ${ac_cv_prog_objcxx_g+:} false; then : | |
a243b558 JF |
4767 | $as_echo_n "(cached) " >&6 |
4768 | else | |
a93f15c0 JF |
4769 | ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag |
4770 | ac_objcxx_werror_flag=yes | |
4771 | ac_cv_prog_objcxx_g=no | |
4772 | OBJCXXFLAGS="-g" | |
a243b558 JF |
4773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4774 | /* end confdefs.h. */ | |
9c60689e | 4775 | |
a243b558 JF |
4776 | int |
4777 | main () | |
4778 | { | |
9c60689e | 4779 | |
a243b558 JF |
4780 | ; |
4781 | return 0; | |
4782 | } | |
4783 | _ACEOF | |
a93f15c0 JF |
4784 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
4785 | ac_cv_prog_objcxx_g=yes | |
a243b558 | 4786 | else |
a93f15c0 | 4787 | OBJCXXFLAGS="" |
a243b558 JF |
4788 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4789 | /* end confdefs.h. */ | |
9c60689e | 4790 | |
a243b558 JF |
4791 | int |
4792 | main () | |
4793 | { | |
9c60689e | 4794 | |
a243b558 JF |
4795 | ; |
4796 | return 0; | |
4797 | } | |
4798 | _ACEOF | |
a93f15c0 | 4799 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
9c60689e | 4800 | |
a243b558 | 4801 | else |
a93f15c0 JF |
4802 | ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag |
4803 | OBJCXXFLAGS="-g" | |
a243b558 | 4804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a93f15c0 JF |
4805 | /* end confdefs.h. */ |
4806 | ||
a243b558 JF |
4807 | int |
4808 | main () | |
4809 | { | |
a93f15c0 | 4810 | |
a243b558 JF |
4811 | ; |
4812 | return 0; | |
4813 | } | |
4814 | _ACEOF | |
a93f15c0 JF |
4815 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
4816 | ac_cv_prog_objcxx_g=yes | |
a243b558 | 4817 | fi |
a93f15c0 | 4818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
35fa52c0 | 4819 | fi |
a93f15c0 JF |
4820 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4821 | fi | |
4822 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4823 | ac_objcxx_werror_flag=$ac_save_objcx_werror_flag | |
4824 | fi | |
4825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5 | |
4826 | $as_echo "$ac_cv_prog_objcxx_g" >&6; } | |
4827 | if test "$ac_test_OBJCXXFLAGS" = set; then | |
4828 | OBJCXXFLAGS=$ac_save_OBJCXXFLAGS | |
4829 | elif test $ac_cv_prog_objcxx_g = yes; then | |
4830 | if test "$GOBJCXX" = yes; then | |
4831 | OBJCXXFLAGS="-g -O2" | |
4832 | else | |
4833 | OBJCXXFLAGS="-g" | |
4834 | fi | |
4835 | else | |
4836 | if test "$GOBJCXX" = yes; then | |
4837 | OBJCXXFLAGS="-O2" | |
4838 | else | |
4839 | OBJCXXFLAGS= | |
4840 | fi | |
35fa52c0 | 4841 | fi |
a243b558 JF |
4842 | ac_ext=c |
4843 | ac_cpp='$CPP $CPPFLAGS' | |
4844 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4845 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4846 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4847 | ||
a93f15c0 | 4848 | depcc="$OBJCXX" am_compiler_list='gcc3 gcc' |
9c60689e | 4849 | |
a243b558 JF |
4850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4851 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
a93f15c0 | 4852 | if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then : |
35fa52c0 DWT |
4853 | $as_echo_n "(cached) " >&6 |
4854 | else | |
a243b558 JF |
4855 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4856 | # We make a subdir and do the tests there. Otherwise we can end up | |
4857 | # making bogus files that we don't know about and never remove. For | |
4858 | # instance it was reported that on HP-UX the gcc test will end up | |
4859 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4860 | # in D". | |
4861 | rm -rf conftest.dir | |
4862 | mkdir conftest.dir | |
4863 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4864 | # using a relative directory. | |
4865 | cp "$am_depcomp" conftest.dir | |
4866 | cd conftest.dir | |
4867 | # We will build objects and dependencies in a subdirectory because | |
4868 | # it helps to detect inapplicable dependency modes. For instance | |
4869 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4870 | # side effect of compilation, but ICC will put the dependencies in | |
4871 | # the current directory while Tru64 will put them in the object | |
4872 | # directory. | |
4873 | mkdir sub | |
4874 | ||
a93f15c0 | 4875 | am_cv_OBJCXX_dependencies_compiler_type=none |
a243b558 JF |
4876 | if test "$am_compiler_list" = ""; then |
4877 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4878 | fi | |
4879 | am__universal=false | |
a93f15c0 | 4880 | |
a243b558 JF |
4881 | |
4882 | for depmode in $am_compiler_list; do | |
4883 | # Setup a source with many dependencies, because some compilers | |
4884 | # like to wrap large dependency lists on column 80 (with \), and | |
4885 | # we should not choose a depcomp mode which is confused by this. | |
4886 | # | |
4887 | # We need to recreate these files for each test, as the compiler may | |
4888 | # overwrite some of them when testing with obscure command lines. | |
4889 | # This happens at least with the AIX C compiler. | |
4890 | : > sub/conftest.c | |
4891 | for i in 1 2 3 4 5 6; do | |
4892 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4893 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4894 | # Solaris 10 /bin/sh. | |
4895 | echo '/* dummy */' > sub/conftst$i.h | |
4896 | done | |
4897 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4898 | ||
4899 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4900 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4901 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4902 | # versions had trouble with output in subdirs. | |
4903 | am__obj=sub/conftest.${OBJEXT-o} | |
4904 | am__minus_obj="-o $am__obj" | |
4905 | case $depmode in | |
4906 | gcc) | |
4907 | # This depmode causes a compiler race in universal mode. | |
4908 | test "$am__universal" = false || continue | |
4909 | ;; | |
4910 | nosideeffect) | |
4911 | # After this tag, mechanisms are not by side-effect, so they'll | |
4912 | # only be used when explicitly requested. | |
4913 | if test "x$enable_dependency_tracking" = xyes; then | |
4914 | continue | |
4915 | else | |
4916 | break | |
4917 | fi | |
4918 | ;; | |
4919 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4920 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4921 | # not run yet. These depmodes are late enough in the game, and | |
4922 | # so weak that their functioning should not be impacted. | |
4923 | am__obj=conftest.${OBJEXT-o} | |
4924 | am__minus_obj= | |
4925 | ;; | |
4926 | none) break ;; | |
4927 | esac | |
4928 | if depmode=$depmode \ | |
4929 | source=sub/conftest.c object=$am__obj \ | |
4930 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4931 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4932 | >/dev/null 2>conftest.err && | |
4933 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4934 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4935 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4936 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4937 | # icc doesn't choke on unknown options, it will just issue warnings | |
4938 | # or remarks (even with -Werror). So we grep stderr for any message | |
4939 | # that says an option was ignored or not supported. | |
4940 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4941 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4942 | # The diagnosis changed in icc 8.0: | |
4943 | # icc: Command line remark: option '-MP' not supported | |
4944 | if (grep 'ignoring option' conftest.err || | |
4945 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
a93f15c0 | 4946 | am_cv_OBJCXX_dependencies_compiler_type=$depmode |
a243b558 JF |
4947 | break |
4948 | fi | |
4949 | fi | |
4950 | done | |
9c60689e | 4951 | |
a243b558 JF |
4952 | cd .. |
4953 | rm -rf conftest.dir | |
4954 | else | |
a93f15c0 | 4955 | am_cv_OBJCXX_dependencies_compiler_type=none |
35fa52c0 | 4956 | fi |
a243b558 | 4957 | |
35fa52c0 | 4958 | fi |
a93f15c0 JF |
4959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5 |
4960 | $as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; } | |
4961 | OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type | |
a243b558 JF |
4962 | |
4963 | if | |
4964 | test "x$enable_dependency_tracking" != xno \ | |
a93f15c0 JF |
4965 | && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then |
4966 | am__fastdepOBJCXX_TRUE= | |
4967 | am__fastdepOBJCXX_FALSE='#' | |
a243b558 | 4968 | else |
a93f15c0 JF |
4969 | am__fastdepOBJCXX_TRUE='#' |
4970 | am__fastdepOBJCXX_FALSE= | |
a243b558 JF |
4971 | fi |
4972 | ||
4973 | ||
4974 | ||
a93f15c0 | 4975 | |
a243b558 JF |
4976 | if test -n "$ac_tool_prefix"; then |
4977 | for ac_prog in ar lib "link -lib" | |
4978 | do | |
4979 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4980 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4982 | $as_echo_n "checking for $ac_word... " >&6; } | |
4983 | if ${ac_cv_prog_AR+:} false; then : | |
4984 | $as_echo_n "(cached) " >&6 | |
4985 | else | |
4986 | if test -n "$AR"; then | |
4987 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4988 | else | |
4989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4990 | for as_dir in $PATH | |
4991 | do | |
4992 | IFS=$as_save_IFS | |
4993 | test -z "$as_dir" && as_dir=. | |
4994 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4995 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4996 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
4997 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4998 | break 2 | |
4999 | fi | |
5000 | done | |
5001 | done | |
5002 | IFS=$as_save_IFS | |
5003 | ||
5004 | fi | |
5005 | fi | |
5006 | AR=$ac_cv_prog_AR | |
5007 | if test -n "$AR"; then | |
5008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5009 | $as_echo "$AR" >&6; } | |
35fa52c0 DWT |
5010 | else |
5011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5012 | $as_echo "no" >&6; } | |
5013 | fi | |
9c60689e | 5014 | |
a243b558 JF |
5015 | |
5016 | test -n "$AR" && break | |
5017 | done | |
5018 | fi | |
5019 | if test -z "$AR"; then | |
5020 | ac_ct_AR=$AR | |
5021 | for ac_prog in ar lib "link -lib" | |
5022 | do | |
5023 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5024 | set dummy $ac_prog; ac_word=$2 | |
5025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5026 | $as_echo_n "checking for $ac_word... " >&6; } | |
5027 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
5028 | $as_echo_n "(cached) " >&6 | |
5029 | else | |
5030 | if test -n "$ac_ct_AR"; then | |
5031 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5032 | else | |
5033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5034 | for as_dir in $PATH | |
5035 | do | |
5036 | IFS=$as_save_IFS | |
5037 | test -z "$as_dir" && as_dir=. | |
5038 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5039 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5040 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
5041 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5042 | break 2 | |
5043 | fi | |
5044 | done | |
5045 | done | |
5046 | IFS=$as_save_IFS | |
5047 | ||
5048 | fi | |
5049 | fi | |
5050 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5051 | if test -n "$ac_ct_AR"; then | |
5052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5053 | $as_echo "$ac_ct_AR" >&6; } | |
5054 | else | |
5055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5056 | $as_echo "no" >&6; } | |
5057 | fi | |
5058 | ||
5059 | ||
5060 | test -n "$ac_ct_AR" && break | |
5061 | done | |
5062 | ||
5063 | if test "x$ac_ct_AR" = x; then | |
5064 | AR="false" | |
9c60689e DWT |
5065 | else |
5066 | case $cross_compiling:$ac_tool_warned in | |
5067 | yes:) | |
5068 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5069 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5070 | ac_tool_warned=yes ;; | |
35fa52c0 | 5071 | esac |
a243b558 | 5072 | AR=$ac_ct_AR |
9c60689e | 5073 | fi |
a243b558 JF |
5074 | fi |
5075 | ||
5076 | : ${AR=ar} | |
5077 | ||
5078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 | |
5079 | $as_echo_n "checking the archiver ($AR) interface... " >&6; } | |
5080 | if ${am_cv_ar_interface+:} false; then : | |
5081 | $as_echo_n "(cached) " >&6 | |
9c60689e | 5082 | else |
a93f15c0 JF |
5083 | ac_ext=c |
5084 | ac_cpp='$CPP $CPPFLAGS' | |
5085 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5086 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5087 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5088 | ||
5089 | am_cv_ar_interface=ar | |
a243b558 JF |
5090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5091 | /* end confdefs.h. */ | |
5092 | int some_variable = 0; | |
5093 | _ACEOF | |
5094 | if ac_fn_c_try_compile "$LINENO"; then : | |
5095 | am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' | |
5096 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
5097 | (eval $am_ar_try) 2>&5 | |
5098 | ac_status=$? | |
5099 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5100 | test $ac_status = 0; } | |
5101 | if test "$ac_status" -eq 0; then | |
5102 | am_cv_ar_interface=ar | |
5103 | else | |
5104 | am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' | |
5105 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
5106 | (eval $am_ar_try) 2>&5 | |
5107 | ac_status=$? | |
5108 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5109 | test $ac_status = 0; } | |
5110 | if test "$ac_status" -eq 0; then | |
5111 | am_cv_ar_interface=lib | |
5112 | else | |
5113 | am_cv_ar_interface=unknown | |
5114 | fi | |
5115 | fi | |
5116 | rm -f conftest.lib libconftest.a | |
5117 | ||
35fa52c0 | 5118 | fi |
a243b558 | 5119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a93f15c0 JF |
5120 | ac_ext=c |
5121 | ac_cpp='$CPP $CPPFLAGS' | |
5122 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5123 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5124 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35fa52c0 | 5125 | |
a243b558 JF |
5126 | fi |
5127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 | |
5128 | $as_echo "$am_cv_ar_interface" >&6; } | |
35fa52c0 | 5129 | |
a243b558 JF |
5130 | case $am_cv_ar_interface in |
5131 | ar) | |
5132 | ;; | |
5133 | lib) | |
5134 | # Microsoft lib, so override with the ar-lib wrapper script. | |
5135 | # FIXME: It is wrong to rewrite AR. | |
5136 | # But if we don't then we get into trouble of one sort or another. | |
5137 | # A longer-term fix would be to have automake use am__AR in this case, | |
5138 | # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something | |
5139 | # similar. | |
5140 | AR="$am_aux_dir/ar-lib $AR" | |
5141 | ;; | |
5142 | unknown) | |
5143 | as_fn_error $? "could not determine $AR interface" "$LINENO" 5 | |
5144 | ;; | |
5145 | esac | |
35fa52c0 | 5146 | |
35fa52c0 | 5147 | |
35fa52c0 | 5148 | |
a243b558 JF |
5149 | case `pwd` in |
5150 | *\ * | *\ *) | |
5151 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5152 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5153 | esac | |
35fa52c0 DWT |
5154 | |
5155 | ||
5156 | ||
9d54db95 JF |
5157 | macro_version='2.4.6' |
5158 | macro_revision='2.4.6' | |
35fa52c0 DWT |
5159 | |
5160 | ||
5161 | ||
5162 | ||
5163 | ||
5164 | ||
5165 | ||
5166 | ||
5167 | ||
35fa52c0 | 5168 | |
35fa52c0 | 5169 | |
ee134472 | 5170 | |
35fa52c0 | 5171 | |
9d54db95 | 5172 | ltmain=$ac_aux_dir/ltmain.sh |
35fa52c0 | 5173 | |
a243b558 JF |
5174 | # Make sure we can run config.sub. |
5175 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
5176 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
35fa52c0 | 5177 | |
a243b558 JF |
5178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
5179 | $as_echo_n "checking build system type... " >&6; } | |
5180 | if ${ac_cv_build+:} false; then : | |
5181 | $as_echo_n "(cached) " >&6 | |
5182 | else | |
5183 | ac_build_alias=$build_alias | |
5184 | test "x$ac_build_alias" = x && | |
5185 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
5186 | test "x$ac_build_alias" = x && | |
5187 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
5188 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
5189 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
35fa52c0 | 5190 | |
a243b558 JF |
5191 | fi |
5192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
5193 | $as_echo "$ac_cv_build" >&6; } | |
5194 | case $ac_cv_build in | |
5195 | *-*-*) ;; | |
5196 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
5197 | esac | |
5198 | build=$ac_cv_build | |
5199 | ac_save_IFS=$IFS; IFS='-' | |
5200 | set x $ac_cv_build | |
5201 | shift | |
5202 | build_cpu=$1 | |
5203 | build_vendor=$2 | |
5204 | shift; shift | |
5205 | # Remember, the first character of IFS is used to create $*, | |
5206 | # except with old shells: | |
5207 | build_os=$* | |
5208 | IFS=$ac_save_IFS | |
5209 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
35fa52c0 | 5210 | |
35fa52c0 | 5211 | |
a243b558 JF |
5212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
5213 | $as_echo_n "checking host system type... " >&6; } | |
5214 | if ${ac_cv_host+:} false; then : | |
5215 | $as_echo_n "(cached) " >&6 | |
5216 | else | |
5217 | if test "x$host_alias" = x; then | |
5218 | ac_cv_host=$ac_cv_build | |
5219 | else | |
5220 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
5221 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
5222 | fi | |
35fa52c0 | 5223 | |
a243b558 JF |
5224 | fi |
5225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
5226 | $as_echo "$ac_cv_host" >&6; } | |
5227 | case $ac_cv_host in | |
5228 | *-*-*) ;; | |
5229 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
5230 | esac | |
5231 | host=$ac_cv_host | |
5232 | ac_save_IFS=$IFS; IFS='-' | |
5233 | set x $ac_cv_host | |
5234 | shift | |
5235 | host_cpu=$1 | |
5236 | host_vendor=$2 | |
5237 | shift; shift | |
5238 | # Remember, the first character of IFS is used to create $*, | |
5239 | # except with old shells: | |
5240 | host_os=$* | |
5241 | IFS=$ac_save_IFS | |
5242 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
9c60689e | 5243 | |
9c60689e | 5244 | |
a243b558 JF |
5245 | # Backslashify metacharacters that are still active within |
5246 | # double-quoted strings. | |
5247 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
9c60689e | 5248 | |
a243b558 JF |
5249 | # Same as above, but do not quote variable references. |
5250 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
9c60689e | 5251 | |
a243b558 JF |
5252 | # Sed substitution to delay expansion of an escaped shell variable in a |
5253 | # double_quote_subst'ed string. | |
5254 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
9c60689e | 5255 | |
a243b558 JF |
5256 | # Sed substitution to delay expansion of an escaped single quote. |
5257 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
9c60689e | 5258 | |
a243b558 JF |
5259 | # Sed substitution to avoid accidental globbing in evaled expressions |
5260 | no_glob_subst='s/\*/\\\*/g' | |
35fa52c0 | 5261 | |
a243b558 JF |
5262 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
5263 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5264 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
ee134472 | 5265 | |
a243b558 JF |
5266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
5267 | $as_echo_n "checking how to print strings... " >&6; } | |
5268 | # Test print first, because it will be a builtin if present. | |
5269 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
5270 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5271 | ECHO='print -r --' | |
5272 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5273 | ECHO='printf %s\n' | |
5274 | else | |
5275 | # Use this function as a fallback that always works. | |
5276 | func_fallback_echo () | |
5277 | { | |
5278 | eval 'cat <<_LTECHO_EOF | |
5279 | $1 | |
5280 | _LTECHO_EOF' | |
5281 | } | |
5282 | ECHO='func_fallback_echo' | |
ee134472 JF |
5283 | fi |
5284 | ||
a243b558 JF |
5285 | # func_echo_all arg... |
5286 | # Invoke $ECHO with all args, space-separated. | |
5287 | func_echo_all () | |
5288 | { | |
5289 | $ECHO "" | |
5290 | } | |
35fa52c0 | 5291 | |
9d54db95 | 5292 | case $ECHO in |
a243b558 JF |
5293 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
5294 | $as_echo "printf" >&6; } ;; | |
5295 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5296 | $as_echo "print -r" >&6; } ;; | |
5297 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5298 | $as_echo "cat" >&6; } ;; | |
5299 | esac | |
35fa52c0 | 5300 | |
35fa52c0 | 5301 | |
ee134472 JF |
5302 | |
5303 | ||
5304 | ||
5305 | ||
5306 | ||
5307 | ||
5308 | ||
5309 | ||
5310 | ||
5311 | ||
35fa52c0 | 5312 | |
9c60689e | 5313 | |
a243b558 JF |
5314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5315 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5316 | if ${ac_cv_path_SED+:} false; then : | |
9c60689e DWT |
5317 | $as_echo_n "(cached) " >&6 |
5318 | else | |
a243b558 JF |
5319 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
5320 | for ac_i in 1 2 3 4 5 6 7; do | |
5321 | ac_script="$ac_script$as_nl$ac_script" | |
5322 | done | |
5323 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5324 | { ac_script=; unset ac_script;} | |
5325 | if test -z "$SED"; then | |
5326 | ac_path_SED_found=false | |
5327 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5328 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9c60689e DWT |
5329 | for as_dir in $PATH |
5330 | do | |
5331 | IFS=$as_save_IFS | |
5332 | test -z "$as_dir" && as_dir=. | |
a243b558 | 5333 | for ac_prog in sed gsed; do |
9c60689e | 5334 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
5335 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
5336 | as_fn_executable_p "$ac_path_SED" || continue | |
5337 | # Check for GNU ac_path_SED and select it if it is found. | |
5338 | # Check for GNU $ac_path_SED | |
5339 | case `"$ac_path_SED" --version 2>&1` in | |
5340 | *GNU*) | |
5341 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5342 | *) | |
5343 | ac_count=0 | |
5344 | $as_echo_n 0123456789 >"conftest.in" | |
5345 | while : | |
5346 | do | |
5347 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5348 | mv "conftest.tmp" "conftest.in" | |
5349 | cp "conftest.in" "conftest.nl" | |
5350 | $as_echo '' >> "conftest.nl" | |
5351 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5352 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5353 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5354 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5355 | # Best one so far, save it but keep looking for a better one | |
5356 | ac_cv_path_SED="$ac_path_SED" | |
5357 | ac_path_SED_max=$ac_count | |
5358 | fi | |
5359 | # 10*(2^10) chars as input seems more than enough | |
5360 | test $ac_count -gt 10 && break | |
35fa52c0 | 5361 | done |
a243b558 JF |
5362 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
5363 | esac | |
9c60689e | 5364 | |
a243b558 JF |
5365 | $ac_path_SED_found && break 3 |
5366 | done | |
5367 | done | |
9c60689e DWT |
5368 | done |
5369 | IFS=$as_save_IFS | |
a243b558 JF |
5370 | if test -z "$ac_cv_path_SED"; then |
5371 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
9c60689e DWT |
5372 | fi |
5373 | else | |
a243b558 | 5374 | ac_cv_path_SED=$SED |
9c60689e DWT |
5375 | fi |
5376 | ||
a243b558 JF |
5377 | fi |
5378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5379 | $as_echo "$ac_cv_path_SED" >&6; } | |
5380 | SED="$ac_cv_path_SED" | |
5381 | rm -f conftest.sed | |
9c60689e | 5382 | |
a243b558 JF |
5383 | test -z "$SED" && SED=sed |
5384 | Xsed="$SED -e 1s/^X//" | |
9c60689e | 5385 | |
ee134472 | 5386 | |
ee134472 | 5387 | |
9c60689e DWT |
5388 | |
5389 | ||
5390 | ||
5391 | ||
5392 | ||
5393 | ||
5394 | ||
5395 | ||
a243b558 JF |
5396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
5397 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5398 | if ${ac_cv_path_GREP+:} false; then : | |
9c60689e DWT |
5399 | $as_echo_n "(cached) " >&6 |
5400 | else | |
a243b558 JF |
5401 | if test -z "$GREP"; then |
5402 | ac_path_GREP_found=false | |
5403 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5405 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
9c60689e DWT |
5406 | do |
5407 | IFS=$as_save_IFS | |
5408 | test -z "$as_dir" && as_dir=. | |
a243b558 | 5409 | for ac_prog in grep ggrep; do |
9c60689e | 5410 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
5411 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
5412 | as_fn_executable_p "$ac_path_GREP" || continue | |
5413 | # Check for GNU ac_path_GREP and select it if it is found. | |
5414 | # Check for GNU $ac_path_GREP | |
5415 | case `"$ac_path_GREP" --version 2>&1` in | |
5416 | *GNU*) | |
5417 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5418 | *) | |
5419 | ac_count=0 | |
5420 | $as_echo_n 0123456789 >"conftest.in" | |
5421 | while : | |
5422 | do | |
5423 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5424 | mv "conftest.tmp" "conftest.in" | |
5425 | cp "conftest.in" "conftest.nl" | |
5426 | $as_echo 'GREP' >> "conftest.nl" | |
5427 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5428 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5429 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5430 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5431 | # Best one so far, save it but keep looking for a better one | |
5432 | ac_cv_path_GREP="$ac_path_GREP" | |
5433 | ac_path_GREP_max=$ac_count | |
5434 | fi | |
5435 | # 10*(2^10) chars as input seems more than enough | |
5436 | test $ac_count -gt 10 && break | |
5437 | done | |
5438 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5439 | esac | |
9c60689e | 5440 | |
a243b558 JF |
5441 | $ac_path_GREP_found && break 3 |
5442 | done | |
ee134472 | 5443 | done |
a243b558 JF |
5444 | done |
5445 | IFS=$as_save_IFS | |
5446 | if test -z "$ac_cv_path_GREP"; then | |
5447 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5448 | fi | |
5449 | else | |
5450 | ac_cv_path_GREP=$GREP | |
9c60689e | 5451 | fi |
a243b558 JF |
5452 | |
5453 | fi | |
5454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5455 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5456 | GREP="$ac_cv_path_GREP" | |
5457 | ||
5458 | ||
5459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5460 | $as_echo_n "checking for egrep... " >&6; } | |
5461 | if ${ac_cv_path_EGREP+:} false; then : | |
9c60689e DWT |
5462 | $as_echo_n "(cached) " >&6 |
5463 | else | |
a243b558 JF |
5464 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
5465 | then ac_cv_path_EGREP="$GREP -E" | |
5466 | else | |
5467 | if test -z "$EGREP"; then | |
5468 | ac_path_EGREP_found=false | |
5469 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5471 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
9c60689e DWT |
5472 | do |
5473 | IFS=$as_save_IFS | |
5474 | test -z "$as_dir" && as_dir=. | |
a243b558 | 5475 | for ac_prog in egrep; do |
9c60689e | 5476 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
5477 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
5478 | as_fn_executable_p "$ac_path_EGREP" || continue | |
5479 | # Check for GNU ac_path_EGREP and select it if it is found. | |
5480 | # Check for GNU $ac_path_EGREP | |
5481 | case `"$ac_path_EGREP" --version 2>&1` in | |
5482 | *GNU*) | |
5483 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5484 | *) | |
5485 | ac_count=0 | |
5486 | $as_echo_n 0123456789 >"conftest.in" | |
5487 | while : | |
5488 | do | |
5489 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5490 | mv "conftest.tmp" "conftest.in" | |
5491 | cp "conftest.in" "conftest.nl" | |
5492 | $as_echo 'EGREP' >> "conftest.nl" | |
5493 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5494 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5495 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5496 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5497 | # Best one so far, save it but keep looking for a better one | |
5498 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5499 | ac_path_EGREP_max=$ac_count | |
5500 | fi | |
5501 | # 10*(2^10) chars as input seems more than enough | |
5502 | test $ac_count -gt 10 && break | |
9c60689e | 5503 | done |
a243b558 JF |
5504 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
5505 | esac | |
9c60689e | 5506 | |
a243b558 JF |
5507 | $ac_path_EGREP_found && break 3 |
5508 | done | |
5509 | done | |
5510 | done | |
5511 | IFS=$as_save_IFS | |
5512 | if test -z "$ac_cv_path_EGREP"; then | |
5513 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5514 | fi | |
9c60689e | 5515 | else |
a243b558 | 5516 | ac_cv_path_EGREP=$EGREP |
9c60689e DWT |
5517 | fi |
5518 | ||
a243b558 JF |
5519 | fi |
5520 | fi | |
5521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
5522 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5523 | EGREP="$ac_cv_path_EGREP" | |
ee134472 | 5524 | |
ee134472 | 5525 | |
a243b558 JF |
5526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
5527 | $as_echo_n "checking for fgrep... " >&6; } | |
5528 | if ${ac_cv_path_FGREP+:} false; then : | |
5529 | $as_echo_n "(cached) " >&6 | |
5530 | else | |
5531 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
5532 | then ac_cv_path_FGREP="$GREP -F" | |
5533 | else | |
5534 | if test -z "$FGREP"; then | |
5535 | ac_path_FGREP_found=false | |
5536 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5538 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5539 | do | |
5540 | IFS=$as_save_IFS | |
5541 | test -z "$as_dir" && as_dir=. | |
5542 | for ac_prog in fgrep; do | |
5543 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5544 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5545 | as_fn_executable_p "$ac_path_FGREP" || continue | |
5546 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5547 | # Check for GNU $ac_path_FGREP | |
5548 | case `"$ac_path_FGREP" --version 2>&1` in | |
5549 | *GNU*) | |
5550 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5551 | *) | |
5552 | ac_count=0 | |
5553 | $as_echo_n 0123456789 >"conftest.in" | |
5554 | while : | |
5555 | do | |
5556 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5557 | mv "conftest.tmp" "conftest.in" | |
5558 | cp "conftest.in" "conftest.nl" | |
5559 | $as_echo 'FGREP' >> "conftest.nl" | |
5560 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5561 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5562 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5563 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5564 | # Best one so far, save it but keep looking for a better one | |
5565 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5566 | ac_path_FGREP_max=$ac_count | |
5567 | fi | |
5568 | # 10*(2^10) chars as input seems more than enough | |
5569 | test $ac_count -gt 10 && break | |
5570 | done | |
5571 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
9c60689e | 5572 | esac |
a243b558 JF |
5573 | |
5574 | $ac_path_FGREP_found && break 3 | |
5575 | done | |
5576 | done | |
5577 | done | |
5578 | IFS=$as_save_IFS | |
5579 | if test -z "$ac_cv_path_FGREP"; then | |
5580 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
ee134472 | 5581 | fi |
a243b558 JF |
5582 | else |
5583 | ac_cv_path_FGREP=$FGREP | |
ee134472 JF |
5584 | fi |
5585 | ||
a243b558 JF |
5586 | fi |
5587 | fi | |
5588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5589 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5590 | FGREP="$ac_cv_path_FGREP" | |
ee134472 JF |
5591 | |
5592 | ||
a243b558 | 5593 | test -z "$GREP" && GREP=grep |
ee134472 JF |
5594 | |
5595 | ||
5596 | ||
5597 | ||
5598 | ||
5599 | ||
5600 | ||
ee134472 | 5601 | |
ee134472 | 5602 | |
ee134472 | 5603 | |
ee134472 | 5604 | |
ee134472 | 5605 | |
ee134472 JF |
5606 | |
5607 | ||
5608 | ||
5609 | ||
5610 | ||
5611 | ||
5612 | ||
a243b558 JF |
5613 | # Check whether --with-gnu-ld was given. |
5614 | if test "${with_gnu_ld+set}" = set; then : | |
9d54db95 | 5615 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
a243b558 JF |
5616 | else |
5617 | with_gnu_ld=no | |
5618 | fi | |
5619 | ||
5620 | ac_prog=ld | |
9d54db95 | 5621 | if test yes = "$GCC"; then |
a243b558 JF |
5622 | # Check if gcc -print-prog-name=ld gives a path. |
5623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5624 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5625 | case $host in | |
5626 | *-*-mingw*) | |
9d54db95 | 5627 | # gcc leaves a trailing carriage return, which upsets mingw |
a243b558 JF |
5628 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
5629 | *) | |
5630 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5631 | esac | |
5632 | case $ac_prog in | |
5633 | # Accept absolute paths. | |
5634 | [\\/]* | ?:[\\/]*) | |
5635 | re_direlt='/[^/][^/]*/\.\./' | |
5636 | # Canonicalize the pathname of ld | |
5637 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5638 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5639 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5640 | done | |
9d54db95 | 5641 | test -z "$LD" && LD=$ac_prog |
a243b558 JF |
5642 | ;; |
5643 | "") | |
5644 | # If it fails, then pretend we aren't using GCC. | |
5645 | ac_prog=ld | |
5646 | ;; | |
5647 | *) | |
5648 | # If it is relative, then search for the first ld in PATH. | |
5649 | with_gnu_ld=unknown | |
5650 | ;; | |
5651 | esac | |
9d54db95 | 5652 | elif test yes = "$with_gnu_ld"; then |
a243b558 JF |
5653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
5654 | $as_echo_n "checking for GNU ld... " >&6; } | |
5655 | else | |
5656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5657 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
5658 | fi | |
5659 | if ${lt_cv_path_LD+:} false; then : | |
5660 | $as_echo_n "(cached) " >&6 | |
5661 | else | |
5662 | if test -z "$LD"; then | |
9d54db95 | 5663 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
a243b558 | 5664 | for ac_dir in $PATH; do |
9d54db95 | 5665 | IFS=$lt_save_ifs |
a243b558 JF |
5666 | test -z "$ac_dir" && ac_dir=. |
5667 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
9d54db95 | 5668 | lt_cv_path_LD=$ac_dir/$ac_prog |
a243b558 JF |
5669 | # Check to see if the program is GNU ld. I'd rather use --version, |
5670 | # but apparently some variants of GNU ld only accept -v. | |
5671 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5672 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5673 | *GNU* | *'with BFD'*) | |
9d54db95 | 5674 | test no != "$with_gnu_ld" && break |
a243b558 JF |
5675 | ;; |
5676 | *) | |
9d54db95 | 5677 | test yes != "$with_gnu_ld" && break |
a243b558 JF |
5678 | ;; |
5679 | esac | |
5680 | fi | |
5681 | done | |
9d54db95 | 5682 | IFS=$lt_save_ifs |
a243b558 | 5683 | else |
9d54db95 | 5684 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
a243b558 JF |
5685 | fi |
5686 | fi | |
5687 | ||
9d54db95 | 5688 | LD=$lt_cv_path_LD |
a243b558 JF |
5689 | if test -n "$LD"; then |
5690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5691 | $as_echo "$LD" >&6; } | |
5692 | else | |
5693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5694 | $as_echo "no" >&6; } | |
5695 | fi | |
5696 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
5697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5698 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5699 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
5700 | $as_echo_n "(cached) " >&6 | |
5701 | else | |
5702 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5703 | case `$LD -v 2>&1 </dev/null` in | |
5704 | *GNU* | *'with BFD'*) | |
5705 | lt_cv_prog_gnu_ld=yes | |
5706 | ;; | |
5707 | *) | |
5708 | lt_cv_prog_gnu_ld=no | |
5709 | ;; | |
5710 | esac | |
5711 | fi | |
5712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
5713 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
5714 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
5715 | ||
5716 | ||
5717 | ||
5718 | ||
5719 | ||
5720 | ||
5721 | ||
5722 | ||
5723 | ||
5724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
5725 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5726 | if ${lt_cv_path_NM+:} false; then : | |
5727 | $as_echo_n "(cached) " >&6 | |
5728 | else | |
5729 | if test -n "$NM"; then | |
5730 | # Let the user override the test. | |
9d54db95 | 5731 | lt_cv_path_NM=$NM |
a243b558 | 5732 | else |
9d54db95 | 5733 | lt_nm_to_check=${ac_tool_prefix}nm |
a243b558 JF |
5734 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
5735 | lt_nm_to_check="$lt_nm_to_check nm" | |
5736 | fi | |
5737 | for lt_tmp_nm in $lt_nm_to_check; do | |
9d54db95 | 5738 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
a243b558 | 5739 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
9d54db95 | 5740 | IFS=$lt_save_ifs |
a243b558 | 5741 | test -z "$ac_dir" && ac_dir=. |
9d54db95 JF |
5742 | tmp_nm=$ac_dir/$lt_tmp_nm |
5743 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then | |
a243b558 | 5744 | # Check to see if the nm accepts a BSD-compat flag. |
9d54db95 | 5745 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
a243b558 JF |
5746 | # nm: unknown option "B" ignored |
5747 | # Tru64's nm complains that /dev/null is an invalid object file | |
9d54db95 JF |
5748 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
5749 | case $build_os in | |
5750 | mingw*) lt_bad_file=conftest.nm/nofile ;; | |
5751 | *) lt_bad_file=/dev/null ;; | |
5752 | esac | |
5753 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in | |
5754 | *$lt_bad_file* | *'Invalid file or object type'*) | |
a243b558 | 5755 | lt_cv_path_NM="$tmp_nm -B" |
9d54db95 | 5756 | break 2 |
a243b558 JF |
5757 | ;; |
5758 | *) | |
5759 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5760 | */dev/null*) | |
5761 | lt_cv_path_NM="$tmp_nm -p" | |
9d54db95 | 5762 | break 2 |
a243b558 JF |
5763 | ;; |
5764 | *) | |
5765 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5766 | continue # so that we can try to find one that supports BSD flags | |
5767 | ;; | |
5768 | esac | |
5769 | ;; | |
5770 | esac | |
5771 | fi | |
5772 | done | |
9d54db95 | 5773 | IFS=$lt_save_ifs |
a243b558 JF |
5774 | done |
5775 | : ${lt_cv_path_NM=no} | |
5776 | fi | |
5777 | fi | |
5778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
5779 | $as_echo "$lt_cv_path_NM" >&6; } | |
9d54db95 JF |
5780 | if test no != "$lt_cv_path_NM"; then |
5781 | NM=$lt_cv_path_NM | |
a243b558 JF |
5782 | else |
5783 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
5784 | if test -n "$DUMPBIN"; then : | |
5785 | # Let the user override the test. | |
5786 | else | |
5787 | if test -n "$ac_tool_prefix"; then | |
5788 | for ac_prog in dumpbin "link -dump" | |
5789 | do | |
5790 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5791 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ee134472 JF |
5792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5793 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 5794 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
ee134472 JF |
5795 | $as_echo_n "(cached) " >&6 |
5796 | else | |
a243b558 JF |
5797 | if test -n "$DUMPBIN"; then |
5798 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
ee134472 JF |
5799 | else |
5800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5801 | for as_dir in $PATH | |
5802 | do | |
5803 | IFS=$as_save_IFS | |
5804 | test -z "$as_dir" && as_dir=. | |
5805 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 5806 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 5807 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
ee134472 JF |
5808 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5809 | break 2 | |
5810 | fi | |
5811 | done | |
5812 | done | |
5813 | IFS=$as_save_IFS | |
5814 | ||
5815 | fi | |
5816 | fi | |
a243b558 JF |
5817 | DUMPBIN=$ac_cv_prog_DUMPBIN |
5818 | if test -n "$DUMPBIN"; then | |
5819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
5820 | $as_echo "$DUMPBIN" >&6; } | |
ee134472 JF |
5821 | else |
5822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5823 | $as_echo "no" >&6; } | |
5824 | fi | |
5825 | ||
5826 | ||
a243b558 JF |
5827 | test -n "$DUMPBIN" && break |
5828 | done | |
ee134472 | 5829 | fi |
a243b558 JF |
5830 | if test -z "$DUMPBIN"; then |
5831 | ac_ct_DUMPBIN=$DUMPBIN | |
5832 | for ac_prog in dumpbin "link -dump" | |
5833 | do | |
5834 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5835 | set dummy $ac_prog; ac_word=$2 | |
ee134472 JF |
5836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5837 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 5838 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
ee134472 JF |
5839 | $as_echo_n "(cached) " >&6 |
5840 | else | |
a243b558 JF |
5841 | if test -n "$ac_ct_DUMPBIN"; then |
5842 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
ee134472 JF |
5843 | else |
5844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5845 | for as_dir in $PATH | |
5846 | do | |
5847 | IFS=$as_save_IFS | |
5848 | test -z "$as_dir" && as_dir=. | |
5849 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 5850 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 5851 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
ee134472 JF |
5852 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5853 | break 2 | |
5854 | fi | |
5855 | done | |
5856 | done | |
5857 | IFS=$as_save_IFS | |
5858 | ||
5859 | fi | |
5860 | fi | |
a243b558 JF |
5861 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
5862 | if test -n "$ac_ct_DUMPBIN"; then | |
5863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
5864 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
ee134472 JF |
5865 | else |
5866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5867 | $as_echo "no" >&6; } | |
5868 | fi | |
5869 | ||
a243b558 JF |
5870 | |
5871 | test -n "$ac_ct_DUMPBIN" && break | |
5872 | done | |
5873 | ||
5874 | if test "x$ac_ct_DUMPBIN" = x; then | |
5875 | DUMPBIN=":" | |
ee134472 JF |
5876 | else |
5877 | case $cross_compiling:$ac_tool_warned in | |
5878 | yes:) | |
5879 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5880 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5881 | ac_tool_warned=yes ;; | |
5882 | esac | |
a243b558 | 5883 | DUMPBIN=$ac_ct_DUMPBIN |
9c60689e | 5884 | fi |
9c60689e DWT |
5885 | fi |
5886 | ||
9d54db95 | 5887 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
a243b558 | 5888 | *COFF*) |
9d54db95 | 5889 | DUMPBIN="$DUMPBIN -symbols -headers" |
a243b558 JF |
5890 | ;; |
5891 | *) | |
5892 | DUMPBIN=: | |
5893 | ;; | |
5894 | esac | |
5895 | fi | |
9c60689e | 5896 | |
9d54db95 JF |
5897 | if test : != "$DUMPBIN"; then |
5898 | NM=$DUMPBIN | |
a243b558 JF |
5899 | fi |
5900 | fi | |
5901 | test -z "$NM" && NM=nm | |
9c60689e DWT |
5902 | |
5903 | ||
5904 | ||
5905 | ||
5906 | ||
a243b558 JF |
5907 | |
5908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
5909 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5910 | if ${lt_cv_nm_interface+:} false; then : | |
9c60689e DWT |
5911 | $as_echo_n "(cached) " >&6 |
5912 | else | |
a243b558 JF |
5913 | lt_cv_nm_interface="BSD nm" |
5914 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5915 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
5916 | (eval "$ac_compile" 2>conftest.err) | |
5917 | cat conftest.err >&5 | |
5918 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5919 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5920 | cat conftest.err >&5 | |
5921 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
5922 | cat conftest.out >&5 | |
5923 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5924 | lt_cv_nm_interface="MS dumpbin" | |
9c60689e | 5925 | fi |
00a96142 | 5926 | rm -rf conftest* |
9c60689e | 5927 | fi |
a243b558 JF |
5928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5929 | $as_echo "$lt_cv_nm_interface" >&6; } | |
5930 | ||
5931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5932 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5933 | LN_S=$as_ln_s | |
5934 | if test "$LN_S" = "ln -s"; then | |
5935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5936 | $as_echo "yes" >&6; } | |
9c60689e | 5937 | else |
a243b558 JF |
5938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
5939 | $as_echo "no, using $LN_S" >&6; } | |
9c60689e DWT |
5940 | fi |
5941 | ||
a243b558 JF |
5942 | # find the maximum length of command line arguments |
5943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
5944 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5945 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
9c60689e DWT |
5946 | $as_echo_n "(cached) " >&6 |
5947 | else | |
a243b558 | 5948 | i=0 |
9d54db95 | 5949 | teststring=ABCD |
9c60689e | 5950 | |
a243b558 JF |
5951 | case $build_os in |
5952 | msdosdjgpp*) | |
5953 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5954 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5955 | # during glob expansion). Even if it were fixed, the result of this | |
5956 | # check would be larger than it should be. | |
5957 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5958 | ;; | |
9c60689e | 5959 | |
a243b558 JF |
5960 | gnu*) |
5961 | # Under GNU Hurd, this test is not required because there is | |
5962 | # no limit to the length of command line arguments. | |
5963 | # Libtool will interpret -1 as no limit whatsoever | |
5964 | lt_cv_sys_max_cmd_len=-1; | |
5965 | ;; | |
9c60689e | 5966 | |
a243b558 JF |
5967 | cygwin* | mingw* | cegcc*) |
5968 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5969 | # about 5 minutes as the teststring grows exponentially. | |
5970 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5971 | # you end up with a "frozen" computer, even though with patience | |
5972 | # the test eventually succeeds (with a max line length of 256k). | |
5973 | # Instead, let's just punt: use the minimum linelength reported by | |
5974 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5975 | lt_cv_sys_max_cmd_len=8192; | |
5976 | ;; | |
9c60689e | 5977 | |
a243b558 JF |
5978 | mint*) |
5979 | # On MiNT this can take a long time and run out of memory. | |
5980 | lt_cv_sys_max_cmd_len=8192; | |
5981 | ;; | |
9c60689e | 5982 | |
a243b558 JF |
5983 | amigaos*) |
5984 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5985 | # So we just punt and use a minimum line length of 8192. | |
5986 | lt_cv_sys_max_cmd_len=8192; | |
5987 | ;; | |
9c60689e | 5988 | |
9d54db95 | 5989 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
a243b558 JF |
5990 | # This has been around since 386BSD, at least. Likely further. |
5991 | if test -x /sbin/sysctl; then | |
5992 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5993 | elif test -x /usr/sbin/sysctl; then | |
5994 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5995 | else | |
5996 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5997 | fi | |
5998 | # And add a safety zone | |
5999 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6000 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6001 | ;; | |
9c60689e | 6002 | |
a243b558 JF |
6003 | interix*) |
6004 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6005 | lt_cv_sys_max_cmd_len=196608 | |
6006 | ;; | |
9c60689e | 6007 | |
a243b558 JF |
6008 | os2*) |
6009 | # The test takes a long time on OS/2. | |
6010 | lt_cv_sys_max_cmd_len=8192 | |
6011 | ;; | |
9c60689e | 6012 | |
a243b558 JF |
6013 | osf*) |
6014 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6015 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6016 | # nice to cause kernel panics so lets avoid the loop below. | |
6017 | # First set a reasonable default. | |
6018 | lt_cv_sys_max_cmd_len=16384 | |
6019 | # | |
6020 | if test -x /sbin/sysconfig; then | |
6021 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6022 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6023 | esac | |
6024 | fi | |
6025 | ;; | |
6026 | sco3.2v5*) | |
6027 | lt_cv_sys_max_cmd_len=102400 | |
6028 | ;; | |
6029 | sysv5* | sco5v6* | sysv4.2uw2*) | |
6030 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6031 | if test -n "$kargmax"; then | |
6032 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6033 | else | |
6034 | lt_cv_sys_max_cmd_len=32768 | |
6035 | fi | |
9c60689e DWT |
6036 | ;; |
6037 | *) | |
a243b558 | 6038 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
9d54db95 JF |
6039 | if test -n "$lt_cv_sys_max_cmd_len" && \ |
6040 | test undefined != "$lt_cv_sys_max_cmd_len"; then | |
a243b558 JF |
6041 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6042 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6043 | else | |
6044 | # Make teststring a little bigger before we do anything with it. | |
6045 | # a 1K string should be a reasonable start. | |
9d54db95 | 6046 | for i in 1 2 3 4 5 6 7 8; do |
a243b558 JF |
6047 | teststring=$teststring$teststring |
6048 | done | |
6049 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6050 | # If test is not a shell built-in, we'll probably end up computing a | |
6051 | # maximum length that is only half of the actual maximum length, but | |
6052 | # we can't tell. | |
9d54db95 | 6053 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
a243b558 | 6054 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
9d54db95 | 6055 | test 17 != "$i" # 1/2 MB should be enough |
a243b558 JF |
6056 | do |
6057 | i=`expr $i + 1` | |
6058 | teststring=$teststring$teststring | |
6059 | done | |
6060 | # Only check the string length outside the loop. | |
6061 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
6062 | teststring= | |
6063 | # Add a significant safety factor because C++ compilers can tack on | |
6064 | # massive amounts of additional arguments before passing them to the | |
6065 | # linker. It appears as though 1/2 is a usable value. | |
6066 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6067 | fi | |
9c60689e DWT |
6068 | ;; |
6069 | esac | |
ee134472 | 6070 | |
a243b558 | 6071 | fi |
ee134472 | 6072 | |
9d54db95 | 6073 | if test -n "$lt_cv_sys_max_cmd_len"; then |
a243b558 JF |
6074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
6075 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
6076 | else | |
6077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
6078 | $as_echo "none" >&6; } | |
6079 | fi | |
6080 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
ee134472 JF |
6081 | |
6082 | ||
9c60689e DWT |
6083 | |
6084 | ||
6085 | ||
6086 | ||
a243b558 JF |
6087 | : ${CP="cp -f"} |
6088 | : ${MV="mv -f"} | |
6089 | : ${RM="rm -f"} | |
9c60689e | 6090 | |
a243b558 JF |
6091 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
6092 | lt_unset=unset | |
6093 | else | |
6094 | lt_unset=false | |
6095 | fi | |
9c60689e DWT |
6096 | |
6097 | ||
6098 | ||
6099 | ||
6100 | ||
a243b558 JF |
6101 | # test EBCDIC or ASCII |
6102 | case `echo X|tr X '\101'` in | |
6103 | A) # ASCII based system | |
6104 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6105 | lt_SP2NL='tr \040 \012' | |
6106 | lt_NL2SP='tr \015\012 \040\040' | |
6107 | ;; | |
6108 | *) # EBCDIC based system | |
6109 | lt_SP2NL='tr \100 \n' | |
6110 | lt_NL2SP='tr \r\n \100\100' | |
6111 | ;; | |
6112 | esac | |
9c60689e DWT |
6113 | |
6114 | ||
6115 | ||
6116 | ||
6117 | ||
6118 | ||
6119 | ||
6120 | ||
6121 | ||
a243b558 JF |
6122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
6123 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
6124 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
6125 | $as_echo_n "(cached) " >&6 | |
6126 | else | |
6127 | case $host in | |
6128 | *-*-mingw* ) | |
6129 | case $build in | |
6130 | *-*-mingw* ) # actually msys | |
6131 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
6132 | ;; | |
6133 | *-*-cygwin* ) | |
6134 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
6135 | ;; | |
6136 | * ) # otherwise, assume *nix | |
6137 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
6138 | ;; | |
6139 | esac | |
6140 | ;; | |
6141 | *-*-cygwin* ) | |
6142 | case $build in | |
6143 | *-*-mingw* ) # actually msys | |
6144 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
6145 | ;; | |
6146 | *-*-cygwin* ) | |
6147 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6148 | ;; | |
6149 | * ) # otherwise, assume *nix | |
6150 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
6151 | ;; | |
6152 | esac | |
6153 | ;; | |
6154 | * ) # unhandled hosts (and "normal" native builds) | |
6155 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6156 | ;; | |
6157 | esac | |
9c60689e | 6158 | |
a243b558 | 6159 | fi |
9c60689e | 6160 | |
a243b558 JF |
6161 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
6162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
6163 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
9c60689e DWT |
6164 | |
6165 | ||
6166 | ||
6167 | ||
6168 | ||
a243b558 JF |
6169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
6170 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
6171 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
6172 | $as_echo_n "(cached) " >&6 | |
6173 | else | |
6174 | #assume ordinary cross tools, or native build. | |
6175 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
6176 | case $host in | |
6177 | *-*-mingw* ) | |
6178 | case $build in | |
6179 | *-*-mingw* ) # actually msys | |
6180 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
6181 | ;; | |
6182 | esac | |
6183 | ;; | |
6184 | esac | |
9c60689e | 6185 | |
a243b558 | 6186 | fi |
9c60689e | 6187 | |
a243b558 JF |
6188 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
6189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
6190 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
9c60689e | 6191 | |
9c60689e | 6192 | |
9c60689e | 6193 | |
9c60689e DWT |
6194 | |
6195 | ||
a243b558 JF |
6196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
6197 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6198 | if ${lt_cv_ld_reload_flag+:} false; then : | |
9c60689e DWT |
6199 | $as_echo_n "(cached) " >&6 |
6200 | else | |
a243b558 JF |
6201 | lt_cv_ld_reload_flag='-r' |
6202 | fi | |
6203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
6204 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6205 | reload_flag=$lt_cv_ld_reload_flag | |
6206 | case $reload_flag in | |
6207 | "" | " "*) ;; | |
6208 | *) reload_flag=" $reload_flag" ;; | |
6209 | esac | |
6210 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
9c60689e | 6211 | case $host_os in |
a243b558 | 6212 | cygwin* | mingw* | pw32* | cegcc*) |
9d54db95 | 6213 | if test yes != "$GCC"; then |
a243b558 JF |
6214 | reload_cmds=false |
6215 | fi | |
6216 | ;; | |
6217 | darwin*) | |
9d54db95 JF |
6218 | if test yes = "$GCC"; then |
6219 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' | |
a243b558 JF |
6220 | else |
6221 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6222 | fi | |
6223 | ;; | |
9c60689e DWT |
6224 | esac |
6225 | ||
9c60689e | 6226 | |
9c60689e | 6227 | |
9c60689e | 6228 | |
9c60689e | 6229 | |
9c60689e | 6230 | |
9c60689e | 6231 | |
9c60689e | 6232 | |
9c60689e | 6233 | |
a243b558 JF |
6234 | if test -n "$ac_tool_prefix"; then |
6235 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6236 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
6237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6238 | $as_echo_n "checking for $ac_word... " >&6; } | |
6239 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
6240 | $as_echo_n "(cached) " >&6 | |
6241 | else | |
6242 | if test -n "$OBJDUMP"; then | |
6243 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
6244 | else | |
6245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6246 | for as_dir in $PATH | |
6247 | do | |
6248 | IFS=$as_save_IFS | |
6249 | test -z "$as_dir" && as_dir=. | |
6250 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6251 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6252 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
6253 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6254 | break 2 | |
6255 | fi | |
6256 | done | |
6257 | done | |
6258 | IFS=$as_save_IFS | |
9c60689e | 6259 | |
a243b558 JF |
6260 | fi |
6261 | fi | |
6262 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
6263 | if test -n "$OBJDUMP"; then | |
6264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
6265 | $as_echo "$OBJDUMP" >&6; } | |
6266 | else | |
6267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6268 | $as_echo "no" >&6; } | |
6269 | fi | |
9c60689e | 6270 | |
9c60689e | 6271 | |
a243b558 JF |
6272 | fi |
6273 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
6274 | ac_ct_OBJDUMP=$OBJDUMP | |
6275 | # Extract the first word of "objdump", so it can be a program name with args. | |
6276 | set dummy objdump; ac_word=$2 | |
6277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6278 | $as_echo_n "checking for $ac_word... " >&6; } | |
6279 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
6280 | $as_echo_n "(cached) " >&6 | |
6281 | else | |
6282 | if test -n "$ac_ct_OBJDUMP"; then | |
6283 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6284 | else | |
6285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6286 | for as_dir in $PATH | |
6287 | do | |
6288 | IFS=$as_save_IFS | |
6289 | test -z "$as_dir" && as_dir=. | |
6290 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6291 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6292 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
6293 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6294 | break 2 | |
9c60689e DWT |
6295 | fi |
6296 | done | |
a243b558 JF |
6297 | done |
6298 | IFS=$as_save_IFS | |
9c60689e DWT |
6299 | |
6300 | fi | |
9c60689e | 6301 | fi |
a243b558 JF |
6302 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
6303 | if test -n "$ac_ct_OBJDUMP"; then | |
6304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
6305 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
9c60689e | 6306 | else |
a243b558 JF |
6307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6308 | $as_echo "no" >&6; } | |
9c60689e DWT |
6309 | fi |
6310 | ||
a243b558 JF |
6311 | if test "x$ac_ct_OBJDUMP" = x; then |
6312 | OBJDUMP="false" | |
6313 | else | |
6314 | case $cross_compiling:$ac_tool_warned in | |
6315 | yes:) | |
6316 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6317 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6318 | ac_tool_warned=yes ;; | |
6319 | esac | |
6320 | OBJDUMP=$ac_ct_OBJDUMP | |
6321 | fi | |
6322 | else | |
6323 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
ee134472 JF |
6324 | fi |
6325 | ||
a243b558 | 6326 | test -z "$OBJDUMP" && OBJDUMP=objdump |
ee134472 JF |
6327 | |
6328 | ||
6329 | ||
6330 | ||
6331 | ||
6332 | ||
6333 | ||
6334 | ||
6335 | ||
a243b558 JF |
6336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
6337 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6338 | if ${lt_cv_deplibs_check_method+:} false; then : | |
6339 | $as_echo_n "(cached) " >&6 | |
6340 | else | |
6341 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6342 | lt_cv_file_magic_test_file= | |
6343 | lt_cv_deplibs_check_method='unknown' | |
6344 | # Need to set the preceding variable on all platforms that support | |
6345 | # interlibrary dependencies. | |
6346 | # 'none' -- dependencies not supported. | |
9d54db95 | 6347 | # 'unknown' -- same as none, but documents that we really don't know. |
a243b558 JF |
6348 | # 'pass_all' -- all dependencies passed with no checks. |
6349 | # 'test_compile' -- check by making test program. | |
6350 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
9d54db95 JF |
6351 | # that responds to the $file_magic_cmd with a given extended regex. |
6352 | # If you have 'file' or equivalent on your system and you're not sure | |
6353 | # whether 'pass_all' will *always* work, you probably want this one. | |
9c60689e | 6354 | |
a243b558 JF |
6355 | case $host_os in |
6356 | aix[4-9]*) | |
6357 | lt_cv_deplibs_check_method=pass_all | |
6358 | ;; | |
9c60689e | 6359 | |
a243b558 JF |
6360 | beos*) |
6361 | lt_cv_deplibs_check_method=pass_all | |
6362 | ;; | |
9c60689e | 6363 | |
a243b558 JF |
6364 | bsdi[45]*) |
6365 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6366 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6367 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6368 | ;; | |
9c60689e | 6369 | |
a243b558 JF |
6370 | cygwin*) |
6371 | # func_win32_libid is a shell function defined in ltmain.sh | |
6372 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6373 | lt_cv_file_magic_cmd='func_win32_libid' | |
6374 | ;; | |
9c60689e | 6375 | |
a243b558 JF |
6376 | mingw* | pw32*) |
6377 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6378 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6379 | # unless we find 'file', for example because we are cross-compiling. | |
9d54db95 | 6380 | if ( file / ) >/dev/null 2>&1; then |
a243b558 JF |
6381 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
6382 | lt_cv_file_magic_cmd='func_win32_libid' | |
6383 | else | |
6384 | # Keep this pattern in sync with the one in func_win32_libid. | |
6385 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
6386 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6387 | fi | |
6388 | ;; | |
9c60689e | 6389 | |
a243b558 JF |
6390 | cegcc*) |
6391 | # use the weaker test based on 'objdump'. See mingw*. | |
6392 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6393 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6394 | ;; | |
9c60689e | 6395 | |
a243b558 JF |
6396 | darwin* | rhapsody*) |
6397 | lt_cv_deplibs_check_method=pass_all | |
6398 | ;; | |
9c60689e | 6399 | |
a243b558 JF |
6400 | freebsd* | dragonfly*) |
6401 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6402 | case $host_cpu in | |
6403 | i*86 ) | |
6404 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6405 | # Let's accept both of them until this is cleared up. | |
6406 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6407 | lt_cv_file_magic_cmd=/usr/bin/file | |
6408 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6409 | ;; | |
6410 | esac | |
6411 | else | |
6412 | lt_cv_deplibs_check_method=pass_all | |
6413 | fi | |
6414 | ;; | |
9c60689e | 6415 | |
a243b558 JF |
6416 | haiku*) |
6417 | lt_cv_deplibs_check_method=pass_all | |
6418 | ;; | |
9c60689e | 6419 | |
a243b558 JF |
6420 | hpux10.20* | hpux11*) |
6421 | lt_cv_file_magic_cmd=/usr/bin/file | |
6422 | case $host_cpu in | |
6423 | ia64*) | |
6424 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6425 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6426 | ;; | |
6427 | hppa*64*) | |
6428 | 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]' | |
6429 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6430 | ;; | |
6431 | *) | |
6432 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6433 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6434 | ;; | |
6435 | esac | |
6436 | ;; | |
9c60689e | 6437 | |
a243b558 JF |
6438 | interix[3-9]*) |
6439 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6440 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6441 | ;; | |
9c60689e | 6442 | |
a243b558 JF |
6443 | irix5* | irix6* | nonstopux*) |
6444 | case $LD in | |
6445 | *-32|*"-32 ") libmagic=32-bit;; | |
6446 | *-n32|*"-n32 ") libmagic=N32;; | |
6447 | *-64|*"-64 ") libmagic=64-bit;; | |
6448 | *) libmagic=never-match;; | |
6449 | esac | |
6450 | lt_cv_deplibs_check_method=pass_all | |
6451 | ;; | |
9c60689e | 6452 | |
a243b558 | 6453 | # This must be glibc/ELF. |
9d54db95 | 6454 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
a243b558 JF |
6455 | lt_cv_deplibs_check_method=pass_all |
6456 | ;; | |
9c60689e | 6457 | |
a243b558 JF |
6458 | netbsd*) |
6459 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6460 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6461 | else | |
6462 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6463 | fi | |
6464 | ;; | |
9c60689e | 6465 | |
a243b558 JF |
6466 | newos6*) |
6467 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6468 | lt_cv_file_magic_cmd=/usr/bin/file | |
6469 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6470 | ;; | |
9c60689e | 6471 | |
a243b558 JF |
6472 | *nto* | *qnx*) |
6473 | lt_cv_deplibs_check_method=pass_all | |
6474 | ;; | |
9c60689e | 6475 | |
9d54db95 JF |
6476 | openbsd* | bitrig*) |
6477 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
a243b558 JF |
6478 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
6479 | else | |
6480 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6481 | fi | |
6482 | ;; | |
9c60689e | 6483 | |
a243b558 JF |
6484 | osf3* | osf4* | osf5*) |
6485 | lt_cv_deplibs_check_method=pass_all | |
6486 | ;; | |
9c60689e | 6487 | |
a243b558 JF |
6488 | rdos*) |
6489 | lt_cv_deplibs_check_method=pass_all | |
9c60689e | 6490 | ;; |
a243b558 JF |
6491 | |
6492 | solaris*) | |
6493 | lt_cv_deplibs_check_method=pass_all | |
9c60689e DWT |
6494 | ;; |
6495 | ||
a243b558 JF |
6496 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
6497 | lt_cv_deplibs_check_method=pass_all | |
9c60689e DWT |
6498 | ;; |
6499 | ||
a243b558 JF |
6500 | sysv4 | sysv4.3*) |
6501 | case $host_vendor in | |
6502 | motorola) | |
6503 | 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]' | |
6504 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6505 | ;; | |
6506 | ncr) | |
6507 | lt_cv_deplibs_check_method=pass_all | |
6508 | ;; | |
6509 | sequent) | |
6510 | lt_cv_file_magic_cmd='/bin/file' | |
6511 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6512 | ;; | |
6513 | sni) | |
6514 | lt_cv_file_magic_cmd='/bin/file' | |
6515 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6516 | lt_cv_file_magic_test_file=/lib/libc.so | |
6517 | ;; | |
6518 | siemens) | |
6519 | lt_cv_deplibs_check_method=pass_all | |
6520 | ;; | |
6521 | pc) | |
6522 | lt_cv_deplibs_check_method=pass_all | |
6523 | ;; | |
6524 | esac | |
6525 | ;; | |
9c60689e | 6526 | |
a243b558 JF |
6527 | tpf*) |
6528 | lt_cv_deplibs_check_method=pass_all | |
6529 | ;; | |
9d54db95 JF |
6530 | os2*) |
6531 | lt_cv_deplibs_check_method=pass_all | |
6532 | ;; | |
a243b558 | 6533 | esac |
9c60689e | 6534 | |
a243b558 JF |
6535 | fi |
6536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6537 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
9c60689e | 6538 | |
a243b558 JF |
6539 | file_magic_glob= |
6540 | want_nocaseglob=no | |
6541 | if test "$build" = "$host"; then | |
6542 | case $host_os in | |
6543 | mingw* | pw32*) | |
6544 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
6545 | want_nocaseglob=yes | |
6546 | else | |
6547 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
6548 | fi | |
6549 | ;; | |
6550 | esac | |
9c60689e | 6551 | fi |
9c60689e | 6552 | |
a243b558 JF |
6553 | file_magic_cmd=$lt_cv_file_magic_cmd |
6554 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6555 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6556 | ||
6557 | ||
6558 | ||
6559 | ||
6560 | ||
6561 | ||
6562 | ||
6563 | ||
6564 | ||
6565 | ||
6566 | ||
6567 | ||
6568 | ||
6569 | ||
6570 | ||
6571 | ||
6572 | ||
6573 | ||
6574 | ||
6575 | ||
9c60689e | 6576 | |
9c60689e | 6577 | |
ee134472 | 6578 | if test -n "$ac_tool_prefix"; then |
a243b558 JF |
6579 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
6580 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
ee134472 JF |
6581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6582 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6583 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
ee134472 JF |
6584 | $as_echo_n "(cached) " >&6 |
6585 | else | |
a243b558 JF |
6586 | if test -n "$DLLTOOL"; then |
6587 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ee134472 JF |
6588 | else |
6589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6590 | for as_dir in $PATH | |
6591 | do | |
6592 | IFS=$as_save_IFS | |
6593 | test -z "$as_dir" && as_dir=. | |
6594 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6595 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6596 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
ee134472 JF |
6597 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6598 | break 2 | |
6599 | fi | |
6600 | done | |
6601 | done | |
6602 | IFS=$as_save_IFS | |
6603 | ||
6604 | fi | |
6605 | fi | |
a243b558 JF |
6606 | DLLTOOL=$ac_cv_prog_DLLTOOL |
6607 | if test -n "$DLLTOOL"; then | |
6608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
6609 | $as_echo "$DLLTOOL" >&6; } | |
ee134472 JF |
6610 | else |
6611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6612 | $as_echo "no" >&6; } | |
6613 | fi | |
6614 | ||
6615 | ||
6616 | fi | |
a243b558 JF |
6617 | if test -z "$ac_cv_prog_DLLTOOL"; then |
6618 | ac_ct_DLLTOOL=$DLLTOOL | |
6619 | # Extract the first word of "dlltool", so it can be a program name with args. | |
6620 | set dummy dlltool; ac_word=$2 | |
ee134472 JF |
6621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6622 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6623 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
ee134472 JF |
6624 | $as_echo_n "(cached) " >&6 |
6625 | else | |
a243b558 JF |
6626 | if test -n "$ac_ct_DLLTOOL"; then |
6627 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
ee134472 JF |
6628 | else |
6629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6630 | for as_dir in $PATH | |
6631 | do | |
6632 | IFS=$as_save_IFS | |
6633 | test -z "$as_dir" && as_dir=. | |
6634 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6635 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6636 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
ee134472 JF |
6637 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6638 | break 2 | |
6639 | fi | |
6640 | done | |
6641 | done | |
6642 | IFS=$as_save_IFS | |
6643 | ||
6644 | fi | |
6645 | fi | |
a243b558 JF |
6646 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
6647 | if test -n "$ac_ct_DLLTOOL"; then | |
6648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
6649 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
ee134472 JF |
6650 | else |
6651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6652 | $as_echo "no" >&6; } | |
6653 | fi | |
6654 | ||
a243b558 JF |
6655 | if test "x$ac_ct_DLLTOOL" = x; then |
6656 | DLLTOOL="false" | |
ee134472 JF |
6657 | else |
6658 | case $cross_compiling:$ac_tool_warned in | |
6659 | yes:) | |
6660 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6661 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6662 | ac_tool_warned=yes ;; | |
6663 | esac | |
a243b558 | 6664 | DLLTOOL=$ac_ct_DLLTOOL |
ee134472 JF |
6665 | fi |
6666 | else | |
a243b558 | 6667 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
ee134472 JF |
6668 | fi |
6669 | ||
a243b558 JF |
6670 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
6671 | ||
6672 | ||
6673 | ||
6674 | ||
6675 | ||
6676 | ||
6677 | ||
6678 | ||
6679 | ||
6680 | ||
6681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
6682 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
6683 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
ee134472 JF |
6684 | $as_echo_n "(cached) " >&6 |
6685 | else | |
a243b558 JF |
6686 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
6687 | ||
6688 | case $host_os in | |
6689 | cygwin* | mingw* | pw32* | cegcc*) | |
9d54db95 JF |
6690 | # two different shell functions defined in ltmain.sh; |
6691 | # decide which one to use based on capabilities of $DLLTOOL | |
a243b558 JF |
6692 | case `$DLLTOOL --help 2>&1` in |
6693 | *--identify-strict*) | |
6694 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
6695 | ;; | |
6696 | *) | |
6697 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
6698 | ;; | |
6699 | esac | |
6700 | ;; | |
6701 | *) | |
6702 | # fallback: assume linklib IS sharedlib | |
9d54db95 | 6703 | lt_cv_sharedlib_from_linklib_cmd=$ECHO |
a243b558 JF |
6704 | ;; |
6705 | esac | |
6706 | ||
ee134472 | 6707 | fi |
a243b558 JF |
6708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
6709 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
6710 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
6711 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
ee134472 JF |
6712 | |
6713 | ||
6714 | ||
6715 | ||
6716 | ||
9c60689e | 6717 | |
a243b558 JF |
6718 | |
6719 | if test -n "$ac_tool_prefix"; then | |
6720 | for ac_prog in ar | |
6721 | do | |
6722 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6723 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
9c60689e DWT |
6724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6725 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6726 | if ${ac_cv_prog_AR+:} false; then : |
9c60689e DWT |
6727 | $as_echo_n "(cached) " >&6 |
6728 | else | |
a243b558 JF |
6729 | if test -n "$AR"; then |
6730 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9c60689e DWT |
6731 | else |
6732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6733 | for as_dir in $PATH | |
6734 | do | |
6735 | IFS=$as_save_IFS | |
6736 | test -z "$as_dir" && as_dir=. | |
6737 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6738 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6739 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
9c60689e DWT |
6740 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6741 | break 2 | |
6742 | fi | |
6743 | done | |
6744 | done | |
6745 | IFS=$as_save_IFS | |
6746 | ||
6747 | fi | |
6748 | fi | |
a243b558 JF |
6749 | AR=$ac_cv_prog_AR |
6750 | if test -n "$AR"; then | |
6751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6752 | $as_echo "$AR" >&6; } | |
9c60689e DWT |
6753 | else |
6754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6755 | $as_echo "no" >&6; } | |
6756 | fi | |
6757 | ||
6758 | ||
a243b558 JF |
6759 | test -n "$AR" && break |
6760 | done | |
9c60689e | 6761 | fi |
a243b558 JF |
6762 | if test -z "$AR"; then |
6763 | ac_ct_AR=$AR | |
6764 | for ac_prog in ar | |
6765 | do | |
6766 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6767 | set dummy $ac_prog; ac_word=$2 | |
9c60689e DWT |
6768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6769 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6770 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
9c60689e DWT |
6771 | $as_echo_n "(cached) " >&6 |
6772 | else | |
a243b558 JF |
6773 | if test -n "$ac_ct_AR"; then |
6774 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
9c60689e DWT |
6775 | else |
6776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6777 | for as_dir in $PATH | |
6778 | do | |
6779 | IFS=$as_save_IFS | |
6780 | test -z "$as_dir" && as_dir=. | |
6781 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6782 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6783 | ac_cv_prog_ac_ct_AR="$ac_prog" |
9c60689e DWT |
6784 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6785 | break 2 | |
6786 | fi | |
6787 | done | |
6788 | done | |
6789 | IFS=$as_save_IFS | |
6790 | ||
6791 | fi | |
6792 | fi | |
a243b558 JF |
6793 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6794 | if test -n "$ac_ct_AR"; then | |
6795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6796 | $as_echo "$ac_ct_AR" >&6; } | |
9c60689e DWT |
6797 | else |
6798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6799 | $as_echo "no" >&6; } | |
6800 | fi | |
6801 | ||
a243b558 JF |
6802 | |
6803 | test -n "$ac_ct_AR" && break | |
6804 | done | |
6805 | ||
6806 | if test "x$ac_ct_AR" = x; then | |
6807 | AR="false" | |
9c60689e DWT |
6808 | else |
6809 | case $cross_compiling:$ac_tool_warned in | |
6810 | yes:) | |
6811 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6812 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6813 | ac_tool_warned=yes ;; | |
6814 | esac | |
a243b558 | 6815 | AR=$ac_ct_AR |
9c60689e | 6816 | fi |
a243b558 JF |
6817 | fi |
6818 | ||
6819 | : ${AR=ar} | |
6820 | : ${AR_FLAGS=cru} | |
6821 | ||
6822 | ||
6823 | ||
6824 | ||
6825 | ||
6826 | ||
6827 | ||
6828 | ||
6829 | ||
6830 | ||
6831 | ||
6832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
6833 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
6834 | if ${lt_cv_ar_at_file+:} false; then : | |
6835 | $as_echo_n "(cached) " >&6 | |
9c60689e | 6836 | else |
a243b558 JF |
6837 | lt_cv_ar_at_file=no |
6838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6839 | /* end confdefs.h. */ | |
6840 | ||
6841 | int | |
6842 | main () | |
6843 | { | |
6844 | ||
6845 | ; | |
6846 | return 0; | |
6847 | } | |
6848 | _ACEOF | |
6849 | if ac_fn_c_try_compile "$LINENO"; then : | |
6850 | echo conftest.$ac_objext > conftest.lst | |
6851 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
6852 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6853 | (eval $lt_ar_try) 2>&5 | |
6854 | ac_status=$? | |
6855 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6856 | test $ac_status = 0; } | |
9d54db95 | 6857 | if test 0 -eq "$ac_status"; then |
a243b558 JF |
6858 | # Ensure the archiver fails upon bogus file names. |
6859 | rm -f conftest.$ac_objext libconftest.a | |
6860 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6861 | (eval $lt_ar_try) 2>&5 | |
6862 | ac_status=$? | |
6863 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6864 | test $ac_status = 0; } | |
9d54db95 | 6865 | if test 0 -ne "$ac_status"; then |
a243b558 JF |
6866 | lt_cv_ar_at_file=@ |
6867 | fi | |
6868 | fi | |
6869 | rm -f conftest.* libconftest.a | |
6870 | ||
9c60689e | 6871 | fi |
a243b558 | 6872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9c60689e | 6873 | |
a243b558 JF |
6874 | fi |
6875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
6876 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
6877 | ||
9d54db95 | 6878 | if test no = "$lt_cv_ar_at_file"; then |
a243b558 JF |
6879 | archiver_list_spec= |
6880 | else | |
6881 | archiver_list_spec=$lt_cv_ar_at_file | |
6882 | fi | |
6883 | ||
6884 | ||
6885 | ||
6886 | ||
6887 | ||
6888 | ||
6889 | ||
6890 | if test -n "$ac_tool_prefix"; then | |
6891 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6892 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
9c60689e DWT |
6893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6894 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6895 | if ${ac_cv_prog_STRIP+:} false; then : |
9c60689e DWT |
6896 | $as_echo_n "(cached) " >&6 |
6897 | else | |
a243b558 JF |
6898 | if test -n "$STRIP"; then |
6899 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9c60689e DWT |
6900 | else |
6901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6902 | for as_dir in $PATH | |
6903 | do | |
6904 | IFS=$as_save_IFS | |
6905 | test -z "$as_dir" && as_dir=. | |
6906 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6907 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6908 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
9c60689e DWT |
6909 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6910 | break 2 | |
6911 | fi | |
6912 | done | |
6913 | done | |
6914 | IFS=$as_save_IFS | |
6915 | ||
6916 | fi | |
6917 | fi | |
a243b558 JF |
6918 | STRIP=$ac_cv_prog_STRIP |
6919 | if test -n "$STRIP"; then | |
6920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6921 | $as_echo "$STRIP" >&6; } | |
9c60689e DWT |
6922 | else |
6923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6924 | $as_echo "no" >&6; } | |
6925 | fi | |
6926 | ||
6927 | ||
6928 | fi | |
a243b558 JF |
6929 | if test -z "$ac_cv_prog_STRIP"; then |
6930 | ac_ct_STRIP=$STRIP | |
6931 | # Extract the first word of "strip", so it can be a program name with args. | |
6932 | set dummy strip; ac_word=$2 | |
9c60689e DWT |
6933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6934 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6935 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
9c60689e DWT |
6936 | $as_echo_n "(cached) " >&6 |
6937 | else | |
a243b558 JF |
6938 | if test -n "$ac_ct_STRIP"; then |
6939 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
9c60689e DWT |
6940 | else |
6941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6942 | for as_dir in $PATH | |
6943 | do | |
6944 | IFS=$as_save_IFS | |
6945 | test -z "$as_dir" && as_dir=. | |
6946 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6947 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6948 | ac_cv_prog_ac_ct_STRIP="strip" |
9c60689e DWT |
6949 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6950 | break 2 | |
6951 | fi | |
6952 | done | |
6953 | done | |
6954 | IFS=$as_save_IFS | |
6955 | ||
6956 | fi | |
6957 | fi | |
a243b558 JF |
6958 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6959 | if test -n "$ac_ct_STRIP"; then | |
6960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6961 | $as_echo "$ac_ct_STRIP" >&6; } | |
9c60689e DWT |
6962 | else |
6963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6964 | $as_echo "no" >&6; } | |
6965 | fi | |
6966 | ||
a243b558 JF |
6967 | if test "x$ac_ct_STRIP" = x; then |
6968 | STRIP=":" | |
9c60689e DWT |
6969 | else |
6970 | case $cross_compiling:$ac_tool_warned in | |
6971 | yes:) | |
6972 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6973 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6974 | ac_tool_warned=yes ;; | |
6975 | esac | |
a243b558 | 6976 | STRIP=$ac_ct_STRIP |
9c60689e DWT |
6977 | fi |
6978 | else | |
a243b558 | 6979 | STRIP="$ac_cv_prog_STRIP" |
9c60689e DWT |
6980 | fi |
6981 | ||
a243b558 JF |
6982 | test -z "$STRIP" && STRIP=: |
6983 | ||
6984 | ||
6985 | ||
6986 | ||
6987 | ||
6988 | ||
6989 | if test -n "$ac_tool_prefix"; then | |
6990 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6991 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
9c60689e DWT |
6992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6993 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6994 | if ${ac_cv_prog_RANLIB+:} false; then : |
9c60689e DWT |
6995 | $as_echo_n "(cached) " >&6 |
6996 | else | |
a243b558 JF |
6997 | if test -n "$RANLIB"; then |
6998 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9c60689e DWT |
6999 | else |
7000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7001 | for as_dir in $PATH | |
7002 | do | |
7003 | IFS=$as_save_IFS | |
7004 | test -z "$as_dir" && as_dir=. | |
7005 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 7006 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 7007 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
9c60689e DWT |
7008 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7009 | break 2 | |
7010 | fi | |
7011 | done | |
7012 | done | |
7013 | IFS=$as_save_IFS | |
7014 | ||
7015 | fi | |
7016 | fi | |
a243b558 JF |
7017 | RANLIB=$ac_cv_prog_RANLIB |
7018 | if test -n "$RANLIB"; then | |
7019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
7020 | $as_echo "$RANLIB" >&6; } | |
9c60689e DWT |
7021 | else |
7022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7023 | $as_echo "no" >&6; } | |
7024 | fi | |
7025 | ||
7026 | ||
7027 | fi | |
a243b558 JF |
7028 | if test -z "$ac_cv_prog_RANLIB"; then |
7029 | ac_ct_RANLIB=$RANLIB | |
7030 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7031 | set dummy ranlib; ac_word=$2 | |
9c60689e DWT |
7032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7033 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 7034 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
9c60689e DWT |
7035 | $as_echo_n "(cached) " >&6 |
7036 | else | |
a243b558 JF |
7037 | if test -n "$ac_ct_RANLIB"; then |
7038 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
9c60689e DWT |
7039 | else |
7040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7041 | for as_dir in $PATH | |
7042 | do | |
7043 | IFS=$as_save_IFS | |
7044 | test -z "$as_dir" && as_dir=. | |
7045 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 7046 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 7047 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
9c60689e DWT |
7048 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7049 | break 2 | |
7050 | fi | |
7051 | done | |
7052 | done | |
7053 | IFS=$as_save_IFS | |
7054 | ||
7055 | fi | |
7056 | fi | |
a243b558 JF |
7057 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
7058 | if test -n "$ac_ct_RANLIB"; then | |
7059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
7060 | $as_echo "$ac_ct_RANLIB" >&6; } | |
9c60689e DWT |
7061 | else |
7062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7063 | $as_echo "no" >&6; } | |
7064 | fi | |
7065 | ||
a243b558 JF |
7066 | if test "x$ac_ct_RANLIB" = x; then |
7067 | RANLIB=":" | |
9c60689e DWT |
7068 | else |
7069 | case $cross_compiling:$ac_tool_warned in | |
7070 | yes:) | |
7071 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7072 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7073 | ac_tool_warned=yes ;; | |
7074 | esac | |
a243b558 | 7075 | RANLIB=$ac_ct_RANLIB |
9c60689e DWT |
7076 | fi |
7077 | else | |
a243b558 | 7078 | RANLIB="$ac_cv_prog_RANLIB" |
9c60689e DWT |
7079 | fi |
7080 | ||
a243b558 JF |
7081 | test -z "$RANLIB" && RANLIB=: |
7082 | ||
7083 | ||
9c60689e | 7084 | |
9c60689e DWT |
7085 | |
7086 | ||
a243b558 JF |
7087 | |
7088 | # Determine commands to create old-style static archives. | |
7089 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
7090 | old_postinstall_cmds='chmod 644 $oldlib' | |
7091 | old_postuninstall_cmds= | |
7092 | ||
7093 | if test -n "$RANLIB"; then | |
7094 | case $host_os in | |
9d54db95 | 7095 | bitrig* | openbsd*) |
a243b558 JF |
7096 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
7097 | ;; | |
7098 | *) | |
7099 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
7100 | ;; | |
7101 | esac | |
7102 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
9c60689e DWT |
7103 | fi |
7104 | ||
a243b558 JF |
7105 | case $host_os in |
7106 | darwin*) | |
7107 | lock_old_archive_extraction=yes ;; | |
7108 | *) | |
7109 | lock_old_archive_extraction=no ;; | |
9c60689e | 7110 | esac |
9c60689e | 7111 | |
9c60689e | 7112 | |
9c60689e DWT |
7113 | |
7114 | ||
9c60689e | 7115 | |
9c60689e | 7116 | |
9c60689e DWT |
7117 | |
7118 | ||
7119 | ||
7120 | ||
7121 | ||
7122 | ||
7123 | ||
7124 | ||
7125 | ||
7126 | ||
7127 | ||
7128 | ||
7129 | ||
7130 | ||
7131 | ||
7132 | ||
7133 | ||
7134 | ||
7135 | ||
7136 | ||
7137 | ||
7138 | ||
7139 | ||
7140 | ||
7141 | ||
7142 | ||
7143 | ||
53ba6704 | 7144 | |
9c60689e | 7145 | |
9c60689e | 7146 | |
9c60689e | 7147 | |
53ba6704 | 7148 | |
a243b558 JF |
7149 | |
7150 | # If no C compiler was specified, use CC. | |
7151 | LTCC=${LTCC-"$CC"} | |
7152 | ||
7153 | # If no C compiler flags were specified, use CFLAGS. | |
7154 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7155 | ||
7156 | # Allow CC to be a program name with arguments. | |
7157 | compiler=$CC | |
7158 | ||
7159 | ||
7160 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
7161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
7162 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
7163 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
ee134472 JF |
7164 | $as_echo_n "(cached) " >&6 |
7165 | else | |
ee134472 | 7166 | |
a243b558 JF |
7167 | # These are sane defaults that work on at least a few old systems. |
7168 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
9c60689e | 7169 | |
a243b558 JF |
7170 | # Character class describing NM global symbol codes. |
7171 | symcode='[BCDEGRST]' | |
9c60689e | 7172 | |
a243b558 JF |
7173 | # Regexp to match symbols that can be accessed directly from C. |
7174 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
9c60689e | 7175 | |
a243b558 JF |
7176 | # Define system-specific variables. |
7177 | case $host_os in | |
7178 | aix*) | |
7179 | symcode='[BCDT]' | |
7180 | ;; | |
7181 | cygwin* | mingw* | pw32* | cegcc*) | |
7182 | symcode='[ABCDGISTW]' | |
7183 | ;; | |
7184 | hpux*) | |
9d54db95 | 7185 | if test ia64 = "$host_cpu"; then |
a243b558 JF |
7186 | symcode='[ABCDEGRST]' |
7187 | fi | |
7188 | ;; | |
7189 | irix* | nonstopux*) | |
7190 | symcode='[BCDEGRST]' | |
7191 | ;; | |
7192 | osf*) | |
7193 | symcode='[BCDEGQRST]' | |
7194 | ;; | |
7195 | solaris*) | |
7196 | symcode='[BDRT]' | |
7197 | ;; | |
7198 | sco3.2v5*) | |
7199 | symcode='[DT]' | |
7200 | ;; | |
7201 | sysv4.2uw2*) | |
7202 | symcode='[DT]' | |
7203 | ;; | |
7204 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7205 | symcode='[ABDT]' | |
7206 | ;; | |
7207 | sysv4) | |
7208 | symcode='[DFNSTU]' | |
7209 | ;; | |
7210 | esac | |
9c60689e | 7211 | |
a243b558 JF |
7212 | # If we're using GNU nm, then use its standard symbol codes. |
7213 | case `$NM -V 2>&1` in | |
7214 | *GNU* | *'with BFD'*) | |
7215 | symcode='[ABCDGIRSTW]' ;; | |
7216 | esac | |
9c60689e | 7217 | |
9d54db95 JF |
7218 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
7219 | # Gets list of data symbols to import. | |
7220 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" | |
7221 | # Adjust the below global symbol transforms to fixup imported variables. | |
7222 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" | |
7223 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" | |
7224 | lt_c_name_lib_hook="\ | |
7225 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ | |
7226 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" | |
7227 | else | |
7228 | # Disable hooks by default. | |
7229 | lt_cv_sys_global_symbol_to_import= | |
7230 | lt_cdecl_hook= | |
7231 | lt_c_name_hook= | |
7232 | lt_c_name_lib_hook= | |
7233 | fi | |
7234 | ||
a243b558 JF |
7235 | # Transform an extracted symbol line into a proper C declaration. |
7236 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7237 | # so use this general approach. | |
9d54db95 JF |
7238 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
7239 | $lt_cdecl_hook\ | |
7240 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ | |
7241 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" | |
9c60689e | 7242 | |
a243b558 | 7243 | # Transform an extracted symbol line into symbol name and symbol address |
9d54db95 JF |
7244 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
7245 | $lt_c_name_hook\ | |
7246 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
7247 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" | |
7248 | ||
7249 | # Transform an extracted symbol line into symbol name with lib prefix and | |
7250 | # symbol address. | |
7251 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ | |
7252 | $lt_c_name_lib_hook\ | |
7253 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
7254 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ | |
7255 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" | |
9c60689e | 7256 | |
a243b558 JF |
7257 | # Handle CRLF in mingw tool chain |
7258 | opt_cr= | |
7259 | case $build_os in | |
7260 | mingw*) | |
7261 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7262 | ;; | |
7263 | esac | |
9c60689e | 7264 | |
a243b558 JF |
7265 | # Try without a prefix underscore, then with it. |
7266 | for ac_symprfx in "" "_"; do | |
9c60689e | 7267 | |
a243b558 JF |
7268 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
7269 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
9c60689e | 7270 | |
a243b558 JF |
7271 | # Write the raw and C identifiers. |
7272 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
9d54db95 JF |
7273 | # Fake it for dumpbin and say T for any non-static function, |
7274 | # D for any global variable and I for any imported variable. | |
a243b558 JF |
7275 | # Also find C++ and __fastcall symbols from MSVC++, |
7276 | # which start with @ or ?. | |
7277 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7278 | " {last_section=section; section=\$ 3};"\ | |
7279 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
7280 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
9d54db95 JF |
7281 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
7282 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ | |
7283 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ | |
a243b558 JF |
7284 | " \$ 0!~/External *\|/{next};"\ |
7285 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7286 | " {if(hide[section]) next};"\ | |
9d54db95 JF |
7287 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
7288 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ | |
7289 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ | |
7290 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ | |
a243b558 JF |
7291 | " ' prfx=^$ac_symprfx" |
7292 | else | |
7293 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7294 | fi | |
7295 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
9c60689e | 7296 | |
a243b558 JF |
7297 | # Check to see that the pipe works correctly. |
7298 | pipe_works=no | |
9c60689e | 7299 | |
00a96142 | 7300 | rm -rf conftest* |
a243b558 JF |
7301 | cat > conftest.$ac_ext <<_LT_EOF |
7302 | #ifdef __cplusplus | |
7303 | extern "C" { | |
7304 | #endif | |
7305 | char nm_test_var; | |
7306 | void nm_test_func(void); | |
7307 | void nm_test_func(void){} | |
7308 | #ifdef __cplusplus | |
7309 | } | |
7310 | #endif | |
7311 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7312 | _LT_EOF | |
9c60689e | 7313 | |
a243b558 JF |
7314 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7315 | (eval $ac_compile) 2>&5 | |
7316 | ac_status=$? | |
7317 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7318 | test $ac_status = 0; }; then | |
7319 | # Now try to grab the symbols. | |
7320 | nlist=conftest.nm | |
7321 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
7322 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
7323 | ac_status=$? | |
7324 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7325 | test $ac_status = 0; } && test -s "$nlist"; then | |
7326 | # Try sorting and uniquifying the output. | |
7327 | if sort "$nlist" | uniq > "$nlist"T; then | |
7328 | mv -f "$nlist"T "$nlist" | |
7329 | else | |
7330 | rm -f "$nlist"T | |
7331 | fi | |
9c60689e | 7332 | |
a243b558 JF |
7333 | # Make sure that we snagged all the symbols we need. |
7334 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7335 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7336 | cat <<_LT_EOF > conftest.$ac_ext | |
7337 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
9d54db95 JF |
7338 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
7339 | /* DATA imports from DLLs on WIN32 can't be const, because runtime | |
a243b558 JF |
7340 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
7341 | # define LT_DLSYM_CONST | |
9d54db95 | 7342 | #elif defined __osf__ |
a243b558 JF |
7343 | /* This system does not cope well with relocations in const data. */ |
7344 | # define LT_DLSYM_CONST | |
7345 | #else | |
7346 | # define LT_DLSYM_CONST const | |
7347 | #endif | |
9c60689e | 7348 | |
a243b558 JF |
7349 | #ifdef __cplusplus |
7350 | extern "C" { | |
7351 | #endif | |
9c60689e | 7352 | |
a243b558 JF |
7353 | _LT_EOF |
7354 | # Now generate the symbol file. | |
7355 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
9c60689e | 7356 | |
a243b558 | 7357 | cat <<_LT_EOF >> conftest.$ac_ext |
9c60689e | 7358 | |
a243b558 JF |
7359 | /* The mapping between symbol names and symbols. */ |
7360 | LT_DLSYM_CONST struct { | |
7361 | const char *name; | |
7362 | void *address; | |
7363 | } | |
7364 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7365 | { | |
7366 | { "@PROGRAM@", (void *) 0 }, | |
7367 | _LT_EOF | |
9d54db95 | 7368 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
a243b558 JF |
7369 | cat <<\_LT_EOF >> conftest.$ac_ext |
7370 | {0, (void *) 0} | |
7371 | }; | |
9c60689e | 7372 | |
a243b558 JF |
7373 | /* This works around a problem in FreeBSD linker */ |
7374 | #ifdef FREEBSD_WORKAROUND | |
7375 | static const void *lt_preloaded_setup() { | |
7376 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7377 | } | |
7378 | #endif | |
9c60689e | 7379 | |
a243b558 JF |
7380 | #ifdef __cplusplus |
7381 | } | |
7382 | #endif | |
7383 | _LT_EOF | |
7384 | # Now try linking the two files. | |
7385 | mv conftest.$ac_objext conftstm.$ac_objext | |
7386 | lt_globsym_save_LIBS=$LIBS | |
7387 | lt_globsym_save_CFLAGS=$CFLAGS | |
9d54db95 | 7388 | LIBS=conftstm.$ac_objext |
a243b558 JF |
7389 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
7390 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
7391 | (eval $ac_link) 2>&5 | |
7392 | ac_status=$? | |
7393 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9d54db95 | 7394 | test $ac_status = 0; } && test -s conftest$ac_exeext; then |
a243b558 JF |
7395 | pipe_works=yes |
7396 | fi | |
7397 | LIBS=$lt_globsym_save_LIBS | |
7398 | CFLAGS=$lt_globsym_save_CFLAGS | |
7399 | else | |
7400 | echo "cannot find nm_test_func in $nlist" >&5 | |
7401 | fi | |
7402 | else | |
7403 | echo "cannot find nm_test_var in $nlist" >&5 | |
7404 | fi | |
7405 | else | |
7406 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7407 | fi | |
7408 | else | |
7409 | echo "$progname: failed program was:" >&5 | |
7410 | cat conftest.$ac_ext >&5 | |
7411 | fi | |
7412 | rm -rf conftest* conftst* | |
9c60689e | 7413 | |
a243b558 | 7414 | # Do not use the global_symbol_pipe unless it works. |
9d54db95 | 7415 | if test yes = "$pipe_works"; then |
a243b558 JF |
7416 | break |
7417 | else | |
7418 | lt_cv_sys_global_symbol_pipe= | |
7419 | fi | |
7420 | done | |
9c60689e | 7421 | |
9c60689e | 7422 | fi |
9c60689e | 7423 | |
a243b558 JF |
7424 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
7425 | lt_cv_sys_global_symbol_to_cdecl= | |
9c60689e | 7426 | fi |
a243b558 JF |
7427 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
7428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
7429 | $as_echo "failed" >&6; } | |
9c60689e | 7430 | else |
a243b558 JF |
7431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7432 | $as_echo "ok" >&6; } | |
9c60689e DWT |
7433 | fi |
7434 | ||
a243b558 JF |
7435 | # Response file support. |
7436 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7437 | nm_file_list_spec='@' | |
7438 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
7439 | nm_file_list_spec='@' | |
9c60689e | 7440 | fi |
9c60689e | 7441 | |
9c60689e | 7442 | |
9c60689e | 7443 | |
9c60689e | 7444 | |
9c60689e | 7445 | |
9c60689e DWT |
7446 | |
7447 | ||
9c60689e | 7448 | |
9c60689e | 7449 | |
9c60689e DWT |
7450 | |
7451 | ||
7452 | ||
ee134472 JF |
7453 | |
7454 | ||
9c60689e DWT |
7455 | |
7456 | ||
9d54db95 JF |
7457 | |
7458 | ||
7459 | ||
7460 | ||
7461 | ||
7462 | ||
7463 | ||
7464 | ||
7465 | ||
7466 | ||
9c60689e DWT |
7467 | |
7468 | ||
7469 | ||
7470 | ||
7471 | ||
7472 | ||
7473 | ||
549f29b5 | 7474 | |
549f29b5 DWT |
7475 | |
7476 | ||
549f29b5 | 7477 | |
a243b558 JF |
7478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
7479 | $as_echo_n "checking for sysroot... " >&6; } | |
549f29b5 | 7480 | |
a243b558 JF |
7481 | # Check whether --with-sysroot was given. |
7482 | if test "${with_sysroot+set}" = set; then : | |
7483 | withval=$with_sysroot; | |
9c60689e | 7484 | else |
a243b558 | 7485 | with_sysroot=no |
9c60689e DWT |
7486 | fi |
7487 | ||
7488 | ||
a243b558 | 7489 | lt_sysroot= |
9d54db95 | 7490 | case $with_sysroot in #( |
a243b558 | 7491 | yes) |
9d54db95 | 7492 | if test yes = "$GCC"; then |
a243b558 JF |
7493 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
7494 | fi | |
7495 | ;; #( | |
7496 | /*) | |
7497 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
7498 | ;; #( | |
7499 | no|'') | |
7500 | ;; #( | |
7501 | *) | |
9d54db95 JF |
7502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
7503 | $as_echo "$with_sysroot" >&6; } | |
a243b558 JF |
7504 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
7505 | ;; | |
7506 | esac | |
9c60689e | 7507 | |
a243b558 JF |
7508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
7509 | $as_echo "${lt_sysroot:-no}" >&6; } | |
9c60689e DWT |
7510 | |
7511 | ||
7512 | ||
7513 | ||
7514 | ||
9d54db95 JF |
7515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
7516 | $as_echo_n "checking for a working dd... " >&6; } | |
7517 | if ${ac_cv_path_lt_DD+:} false; then : | |
7518 | $as_echo_n "(cached) " >&6 | |
7519 | else | |
7520 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
7521 | cat conftest.i conftest.i >conftest2.i | |
7522 | : ${lt_DD:=$DD} | |
7523 | if test -z "$lt_DD"; then | |
7524 | ac_path_lt_DD_found=false | |
7525 | # Loop through the user's path and test for each of PROGNAME-LIST | |
7526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7527 | for as_dir in $PATH | |
7528 | do | |
7529 | IFS=$as_save_IFS | |
7530 | test -z "$as_dir" && as_dir=. | |
7531 | for ac_prog in dd; do | |
7532 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7533 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" | |
7534 | as_fn_executable_p "$ac_path_lt_DD" || continue | |
7535 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
7536 | cmp -s conftest.i conftest.out \ | |
7537 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: | |
7538 | fi | |
7539 | $ac_path_lt_DD_found && break 3 | |
7540 | done | |
7541 | done | |
7542 | done | |
7543 | IFS=$as_save_IFS | |
7544 | if test -z "$ac_cv_path_lt_DD"; then | |
7545 | : | |
7546 | fi | |
7547 | else | |
7548 | ac_cv_path_lt_DD=$lt_DD | |
7549 | fi | |
7550 | ||
7551 | rm -f conftest.i conftest2.i conftest.out | |
7552 | fi | |
7553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 | |
7554 | $as_echo "$ac_cv_path_lt_DD" >&6; } | |
7555 | ||
7556 | ||
7557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 | |
7558 | $as_echo_n "checking how to truncate binary pipes... " >&6; } | |
7559 | if ${lt_cv_truncate_bin+:} false; then : | |
7560 | $as_echo_n "(cached) " >&6 | |
7561 | else | |
7562 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
7563 | cat conftest.i conftest.i >conftest2.i | |
7564 | lt_cv_truncate_bin= | |
7565 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
7566 | cmp -s conftest.i conftest.out \ | |
7567 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" | |
7568 | fi | |
7569 | rm -f conftest.i conftest2.i conftest.out | |
7570 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" | |
7571 | fi | |
7572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 | |
7573 | $as_echo "$lt_cv_truncate_bin" >&6; } | |
7574 | ||
7575 | ||
7576 | ||
7577 | ||
7578 | ||
7579 | ||
7580 | ||
7581 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
7582 | func_cc_basename () | |
7583 | { | |
7584 | for cc_temp in $*""; do | |
7585 | case $cc_temp in | |
7586 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7587 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7588 | \-*) ;; | |
7589 | *) break;; | |
7590 | esac | |
7591 | done | |
7592 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
7593 | } | |
7594 | ||
a243b558 JF |
7595 | # Check whether --enable-libtool-lock was given. |
7596 | if test "${enable_libtool_lock+set}" = set; then : | |
7597 | enableval=$enable_libtool_lock; | |
9c60689e DWT |
7598 | fi |
7599 | ||
9d54db95 | 7600 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
9c60689e | 7601 | |
a243b558 JF |
7602 | # Some flags need to be propagated to the compiler or linker for good |
7603 | # libtool support. | |
7604 | case $host in | |
7605 | ia64-*-hpux*) | |
9d54db95 JF |
7606 | # Find out what ABI is being produced by ac_compile, and set mode |
7607 | # options accordingly. | |
a243b558 JF |
7608 | echo 'int i;' > conftest.$ac_ext |
7609 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7610 | (eval $ac_compile) 2>&5 | |
7611 | ac_status=$? | |
7612 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7613 | test $ac_status = 0; }; then | |
7614 | case `/usr/bin/file conftest.$ac_objext` in | |
7615 | *ELF-32*) | |
9d54db95 | 7616 | HPUX_IA64_MODE=32 |
a243b558 JF |
7617 | ;; |
7618 | *ELF-64*) | |
9d54db95 | 7619 | HPUX_IA64_MODE=64 |
a243b558 JF |
7620 | ;; |
7621 | esac | |
7622 | fi | |
7623 | rm -rf conftest* | |
7624 | ;; | |
7625 | *-*-irix6*) | |
9d54db95 JF |
7626 | # Find out what ABI is being produced by ac_compile, and set linker |
7627 | # options accordingly. | |
a243b558 JF |
7628 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
7629 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7630 | (eval $ac_compile) 2>&5 | |
7631 | ac_status=$? | |
7632 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7633 | test $ac_status = 0; }; then | |
9d54db95 | 7634 | if test yes = "$lt_cv_prog_gnu_ld"; then |
a243b558 JF |
7635 | case `/usr/bin/file conftest.$ac_objext` in |
7636 | *32-bit*) | |
7637 | LD="${LD-ld} -melf32bsmip" | |
7638 | ;; | |
7639 | *N32*) | |
7640 | LD="${LD-ld} -melf32bmipn32" | |
7641 | ;; | |
7642 | *64-bit*) | |
7643 | LD="${LD-ld} -melf64bmip" | |
7644 | ;; | |
7645 | esac | |
7646 | else | |
7647 | case `/usr/bin/file conftest.$ac_objext` in | |
7648 | *32-bit*) | |
7649 | LD="${LD-ld} -32" | |
7650 | ;; | |
7651 | *N32*) | |
7652 | LD="${LD-ld} -n32" | |
7653 | ;; | |
7654 | *64-bit*) | |
7655 | LD="${LD-ld} -64" | |
7656 | ;; | |
7657 | esac | |
7658 | fi | |
7659 | fi | |
7660 | rm -rf conftest* | |
7661 | ;; | |
9c60689e | 7662 | |
9d54db95 JF |
7663 | mips64*-*linux*) |
7664 | # Find out what ABI is being produced by ac_compile, and set linker | |
7665 | # options accordingly. | |
7666 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7667 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7668 | (eval $ac_compile) 2>&5 | |
7669 | ac_status=$? | |
7670 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7671 | test $ac_status = 0; }; then | |
7672 | emul=elf | |
7673 | case `/usr/bin/file conftest.$ac_objext` in | |
7674 | *32-bit*) | |
7675 | emul="${emul}32" | |
7676 | ;; | |
7677 | *64-bit*) | |
7678 | emul="${emul}64" | |
7679 | ;; | |
7680 | esac | |
7681 | case `/usr/bin/file conftest.$ac_objext` in | |
7682 | *MSB*) | |
7683 | emul="${emul}btsmip" | |
7684 | ;; | |
7685 | *LSB*) | |
7686 | emul="${emul}ltsmip" | |
7687 | ;; | |
7688 | esac | |
7689 | case `/usr/bin/file conftest.$ac_objext` in | |
7690 | *N32*) | |
7691 | emul="${emul}n32" | |
7692 | ;; | |
7693 | esac | |
7694 | LD="${LD-ld} -m $emul" | |
7695 | fi | |
7696 | rm -rf conftest* | |
7697 | ;; | |
7698 | ||
7699 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
a243b558 | 7700 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
9d54db95 JF |
7701 | # Find out what ABI is being produced by ac_compile, and set linker |
7702 | # options accordingly. Note that the listed cases only cover the | |
7703 | # situations where additional linker options are needed (such as when | |
7704 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or | |
7705 | # vice versa); the common cases where no linker options are needed do | |
7706 | # not appear in the list. | |
a243b558 JF |
7707 | echo 'int i;' > conftest.$ac_ext |
7708 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7709 | (eval $ac_compile) 2>&5 | |
7710 | ac_status=$? | |
7711 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7712 | test $ac_status = 0; }; then | |
7713 | case `/usr/bin/file conftest.o` in | |
7714 | *32-bit*) | |
7715 | case $host in | |
7716 | x86_64-*kfreebsd*-gnu) | |
7717 | LD="${LD-ld} -m elf_i386_fbsd" | |
7718 | ;; | |
7719 | x86_64-*linux*) | |
9d54db95 JF |
7720 | case `/usr/bin/file conftest.o` in |
7721 | *x86-64*) | |
7722 | LD="${LD-ld} -m elf32_x86_64" | |
7723 | ;; | |
7724 | *) | |
7725 | LD="${LD-ld} -m elf_i386" | |
7726 | ;; | |
7727 | esac | |
a243b558 | 7728 | ;; |
9d54db95 JF |
7729 | powerpc64le-*linux*) |
7730 | LD="${LD-ld} -m elf32lppclinux" | |
7731 | ;; | |
7732 | powerpc64-*linux*) | |
a243b558 JF |
7733 | LD="${LD-ld} -m elf32ppclinux" |
7734 | ;; | |
7735 | s390x-*linux*) | |
7736 | LD="${LD-ld} -m elf_s390" | |
7737 | ;; | |
7738 | sparc64-*linux*) | |
7739 | LD="${LD-ld} -m elf32_sparc" | |
7740 | ;; | |
7741 | esac | |
7742 | ;; | |
7743 | *64-bit*) | |
7744 | case $host in | |
7745 | x86_64-*kfreebsd*-gnu) | |
7746 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7747 | ;; | |
7748 | x86_64-*linux*) | |
7749 | LD="${LD-ld} -m elf_x86_64" | |
7750 | ;; | |
9d54db95 JF |
7751 | powerpcle-*linux*) |
7752 | LD="${LD-ld} -m elf64lppc" | |
7753 | ;; | |
7754 | powerpc-*linux*) | |
a243b558 JF |
7755 | LD="${LD-ld} -m elf64ppc" |
7756 | ;; | |
7757 | s390*-*linux*|s390*-*tpf*) | |
7758 | LD="${LD-ld} -m elf64_s390" | |
7759 | ;; | |
7760 | sparc*-*linux*) | |
7761 | LD="${LD-ld} -m elf64_sparc" | |
7762 | ;; | |
7763 | esac | |
7764 | ;; | |
7765 | esac | |
7766 | fi | |
7767 | rm -rf conftest* | |
7768 | ;; | |
9c60689e | 7769 | |
a243b558 JF |
7770 | *-*-sco3.2v5*) |
7771 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
9d54db95 | 7772 | SAVE_CFLAGS=$CFLAGS |
a243b558 JF |
7773 | CFLAGS="$CFLAGS -belf" |
7774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
7775 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7776 | if ${lt_cv_cc_needs_belf+:} false; then : | |
7777 | $as_echo_n "(cached) " >&6 | |
7778 | else | |
7779 | ac_ext=c | |
7780 | ac_cpp='$CPP $CPPFLAGS' | |
7781 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7782 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7783 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 7784 | |
a243b558 JF |
7785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7786 | /* end confdefs.h. */ | |
9c60689e | 7787 | |
a243b558 JF |
7788 | int |
7789 | main () | |
7790 | { | |
9c60689e | 7791 | |
a243b558 JF |
7792 | ; |
7793 | return 0; | |
7794 | } | |
7795 | _ACEOF | |
7796 | if ac_fn_c_try_link "$LINENO"; then : | |
7797 | lt_cv_cc_needs_belf=yes | |
9c60689e | 7798 | else |
a243b558 | 7799 | lt_cv_cc_needs_belf=no |
9c60689e | 7800 | fi |
a243b558 JF |
7801 | rm -f core conftest.err conftest.$ac_objext \ |
7802 | conftest$ac_exeext conftest.$ac_ext | |
7803 | ac_ext=c | |
7804 | ac_cpp='$CPP $CPPFLAGS' | |
7805 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7806 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7807 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 7808 | |
a243b558 JF |
7809 | fi |
7810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7811 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
9d54db95 | 7812 | if test yes != "$lt_cv_cc_needs_belf"; then |
a243b558 | 7813 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
9d54db95 | 7814 | CFLAGS=$SAVE_CFLAGS |
a243b558 JF |
7815 | fi |
7816 | ;; | |
7817 | *-*solaris*) | |
9d54db95 JF |
7818 | # Find out what ABI is being produced by ac_compile, and set linker |
7819 | # options accordingly. | |
a243b558 JF |
7820 | echo 'int i;' > conftest.$ac_ext |
7821 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7822 | (eval $ac_compile) 2>&5 | |
7823 | ac_status=$? | |
7824 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7825 | test $ac_status = 0; }; then | |
7826 | case `/usr/bin/file conftest.o` in | |
7827 | *64-bit*) | |
7828 | case $lt_cv_prog_gnu_ld in | |
7829 | yes*) | |
7830 | case $host in | |
9d54db95 | 7831 | i?86-*-solaris*|x86_64-*-solaris*) |
a243b558 JF |
7832 | LD="${LD-ld} -m elf_x86_64" |
7833 | ;; | |
7834 | sparc*-*-solaris*) | |
7835 | LD="${LD-ld} -m elf64_sparc" | |
7836 | ;; | |
7837 | esac | |
7838 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
7839 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
9d54db95 | 7840 | LD=${LD-ld}_sol2 |
a243b558 JF |
7841 | fi |
7842 | ;; | |
7843 | *) | |
7844 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7845 | LD="${LD-ld} -64" | |
7846 | fi | |
7847 | ;; | |
7848 | esac | |
7849 | ;; | |
7850 | esac | |
7851 | fi | |
7852 | rm -rf conftest* | |
7853 | ;; | |
7854 | esac | |
9c60689e | 7855 | |
9d54db95 | 7856 | need_locks=$enable_libtool_lock |
9c60689e | 7857 | |
a243b558 JF |
7858 | if test -n "$ac_tool_prefix"; then |
7859 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
7860 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
7861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7862 | $as_echo_n "checking for $ac_word... " >&6; } | |
7863 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
7864 | $as_echo_n "(cached) " >&6 | |
7865 | else | |
7866 | if test -n "$MANIFEST_TOOL"; then | |
7867 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
7868 | else | |
7869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7870 | for as_dir in $PATH | |
7871 | do | |
7872 | IFS=$as_save_IFS | |
7873 | test -z "$as_dir" && as_dir=. | |
7874 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7875 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7876 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
7877 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7878 | break 2 | |
7879 | fi | |
7880 | done | |
7881 | done | |
7882 | IFS=$as_save_IFS | |
9c60689e | 7883 | |
a243b558 JF |
7884 | fi |
7885 | fi | |
7886 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
7887 | if test -n "$MANIFEST_TOOL"; then | |
7888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
7889 | $as_echo "$MANIFEST_TOOL" >&6; } | |
7890 | else | |
7891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7892 | $as_echo "no" >&6; } | |
7893 | fi | |
9c60689e DWT |
7894 | |
7895 | ||
a243b558 JF |
7896 | fi |
7897 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
7898 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
7899 | # Extract the first word of "mt", so it can be a program name with args. | |
7900 | set dummy mt; ac_word=$2 | |
7901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7902 | $as_echo_n "checking for $ac_word... " >&6; } | |
7903 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
7904 | $as_echo_n "(cached) " >&6 | |
7905 | else | |
7906 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7907 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
7908 | else | |
7909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7910 | for as_dir in $PATH | |
7911 | do | |
7912 | IFS=$as_save_IFS | |
7913 | test -z "$as_dir" && as_dir=. | |
7914 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7915 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7916 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
7917 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7918 | break 2 | |
7919 | fi | |
7920 | done | |
7921 | done | |
7922 | IFS=$as_save_IFS | |
9c60689e | 7923 | |
a243b558 JF |
7924 | fi |
7925 | fi | |
7926 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
7927 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
7929 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
7930 | else | |
7931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7932 | $as_echo "no" >&6; } | |
7933 | fi | |
9c60689e | 7934 | |
a243b558 JF |
7935 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
7936 | MANIFEST_TOOL=":" | |
7937 | else | |
7938 | case $cross_compiling:$ac_tool_warned in | |
7939 | yes:) | |
7940 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7941 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7942 | ac_tool_warned=yes ;; | |
7943 | esac | |
7944 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
7945 | fi | |
7946 | else | |
7947 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
7948 | fi | |
9c60689e | 7949 | |
a243b558 JF |
7950 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
7951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
7952 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
7953 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
7954 | $as_echo_n "(cached) " >&6 | |
7955 | else | |
7956 | lt_cv_path_mainfest_tool=no | |
7957 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
7958 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
7959 | cat conftest.err >&5 | |
7960 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
7961 | lt_cv_path_mainfest_tool=yes | |
7962 | fi | |
00a96142 | 7963 | rm -rf conftest* |
a243b558 JF |
7964 | fi |
7965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
7966 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
9d54db95 | 7967 | if test yes != "$lt_cv_path_mainfest_tool"; then |
a243b558 JF |
7968 | MANIFEST_TOOL=: |
7969 | fi | |
9c60689e DWT |
7970 | |
7971 | ||
7972 | ||
7973 | ||
7974 | ||
7975 | ||
a243b558 JF |
7976 | case $host_os in |
7977 | rhapsody* | darwin*) | |
7978 | if test -n "$ac_tool_prefix"; then | |
7979 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7980 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7982 | $as_echo_n "checking for $ac_word... " >&6; } | |
7983 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
7984 | $as_echo_n "(cached) " >&6 | |
7985 | else | |
7986 | if test -n "$DSYMUTIL"; then | |
7987 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7988 | else | |
7989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7990 | for as_dir in $PATH | |
7991 | do | |
7992 | IFS=$as_save_IFS | |
7993 | test -z "$as_dir" && as_dir=. | |
7994 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7995 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7996 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7997 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7998 | break 2 | |
7999 | fi | |
8000 | done | |
8001 | done | |
8002 | IFS=$as_save_IFS | |
9c60689e | 8003 | |
a243b558 JF |
8004 | fi |
8005 | fi | |
8006 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
8007 | if test -n "$DSYMUTIL"; then | |
8008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
8009 | $as_echo "$DSYMUTIL" >&6; } | |
8010 | else | |
8011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8012 | $as_echo "no" >&6; } | |
8013 | fi | |
9c60689e DWT |
8014 | |
8015 | ||
9c60689e | 8016 | fi |
a243b558 JF |
8017 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
8018 | ac_ct_DSYMUTIL=$DSYMUTIL | |
8019 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
8020 | set dummy dsymutil; ac_word=$2 | |
8021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8022 | $as_echo_n "checking for $ac_word... " >&6; } | |
8023 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
9c60689e DWT |
8024 | $as_echo_n "(cached) " >&6 |
8025 | else | |
a243b558 JF |
8026 | if test -n "$ac_ct_DSYMUTIL"; then |
8027 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
9c60689e | 8028 | else |
a243b558 JF |
8029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8030 | for as_dir in $PATH | |
8031 | do | |
8032 | IFS=$as_save_IFS | |
8033 | test -z "$as_dir" && as_dir=. | |
8034 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8035 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8036 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
8037 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8038 | break 2 | |
8039 | fi | |
8040 | done | |
8041 | done | |
8042 | IFS=$as_save_IFS | |
8043 | ||
9c60689e | 8044 | fi |
9c60689e | 8045 | fi |
a243b558 JF |
8046 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
8047 | if test -n "$ac_ct_DSYMUTIL"; then | |
8048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
8049 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
8050 | else | |
8051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8052 | $as_echo "no" >&6; } | |
8053 | fi | |
9c60689e | 8054 | |
a243b558 JF |
8055 | if test "x$ac_ct_DSYMUTIL" = x; then |
8056 | DSYMUTIL=":" | |
8057 | else | |
8058 | case $cross_compiling:$ac_tool_warned in | |
8059 | yes:) | |
8060 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8061 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8062 | ac_tool_warned=yes ;; | |
9c60689e | 8063 | esac |
a243b558 JF |
8064 | DSYMUTIL=$ac_ct_DSYMUTIL |
8065 | fi | |
8066 | else | |
8067 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
8068 | fi | |
9c60689e | 8069 | |
a243b558 JF |
8070 | if test -n "$ac_tool_prefix"; then |
8071 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
8072 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
8073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8074 | $as_echo_n "checking for $ac_word... " >&6; } | |
8075 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
9c60689e DWT |
8076 | $as_echo_n "(cached) " >&6 |
8077 | else | |
a243b558 JF |
8078 | if test -n "$NMEDIT"; then |
8079 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
8080 | else | |
8081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8082 | for as_dir in $PATH | |
8083 | do | |
8084 | IFS=$as_save_IFS | |
8085 | test -z "$as_dir" && as_dir=. | |
8086 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8087 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8088 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
8089 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8090 | break 2 | |
8091 | fi | |
8092 | done | |
9c60689e | 8093 | done |
a243b558 | 8094 | IFS=$as_save_IFS |
9c60689e | 8095 | |
a243b558 JF |
8096 | fi |
8097 | fi | |
8098 | NMEDIT=$ac_cv_prog_NMEDIT | |
8099 | if test -n "$NMEDIT"; then | |
8100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
8101 | $as_echo "$NMEDIT" >&6; } | |
9c60689e DWT |
8102 | else |
8103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8104 | $as_echo "no" >&6; } | |
8105 | fi | |
8106 | ||
8107 | ||
a243b558 JF |
8108 | fi |
8109 | if test -z "$ac_cv_prog_NMEDIT"; then | |
8110 | ac_ct_NMEDIT=$NMEDIT | |
8111 | # Extract the first word of "nmedit", so it can be a program name with args. | |
8112 | set dummy nmedit; ac_word=$2 | |
8113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8114 | $as_echo_n "checking for $ac_word... " >&6; } | |
8115 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
9c60689e DWT |
8116 | $as_echo_n "(cached) " >&6 |
8117 | else | |
a243b558 JF |
8118 | if test -n "$ac_ct_NMEDIT"; then |
8119 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
8120 | else | |
8121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8122 | for as_dir in $PATH | |
8123 | do | |
8124 | IFS=$as_save_IFS | |
8125 | test -z "$as_dir" && as_dir=. | |
8126 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8127 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8128 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
8129 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8130 | break 2 | |
8131 | fi | |
8132 | done | |
9c60689e | 8133 | done |
a243b558 | 8134 | IFS=$as_save_IFS |
9c60689e | 8135 | |
a243b558 JF |
8136 | fi |
8137 | fi | |
8138 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
8139 | if test -n "$ac_ct_NMEDIT"; then | |
8140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
8141 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
9c60689e DWT |
8142 | else |
8143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8144 | $as_echo "no" >&6; } | |
8145 | fi | |
8146 | ||
a243b558 JF |
8147 | if test "x$ac_ct_NMEDIT" = x; then |
8148 | NMEDIT=":" | |
9c60689e | 8149 | else |
a243b558 JF |
8150 | case $cross_compiling:$ac_tool_warned in |
8151 | yes:) | |
8152 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8153 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8154 | ac_tool_warned=yes ;; | |
8155 | esac | |
8156 | NMEDIT=$ac_ct_NMEDIT | |
9c60689e | 8157 | fi |
a243b558 JF |
8158 | else |
8159 | NMEDIT="$ac_cv_prog_NMEDIT" | |
9c60689e DWT |
8160 | fi |
8161 | ||
a243b558 JF |
8162 | if test -n "$ac_tool_prefix"; then |
8163 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
8164 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
8165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8166 | $as_echo_n "checking for $ac_word... " >&6; } | |
8167 | if ${ac_cv_prog_LIPO+:} false; then : | |
8168 | $as_echo_n "(cached) " >&6 | |
8169 | else | |
8170 | if test -n "$LIPO"; then | |
8171 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8172 | else | |
8173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8174 | for as_dir in $PATH | |
8175 | do | |
8176 | IFS=$as_save_IFS | |
8177 | test -z "$as_dir" && as_dir=. | |
8178 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8179 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8180 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
8181 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8182 | break 2 | |
8183 | fi | |
8184 | done | |
8185 | done | |
8186 | IFS=$as_save_IFS | |
9c60689e | 8187 | |
a243b558 JF |
8188 | fi |
8189 | fi | |
8190 | LIPO=$ac_cv_prog_LIPO | |
8191 | if test -n "$LIPO"; then | |
8192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
8193 | $as_echo "$LIPO" >&6; } | |
8194 | else | |
8195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8196 | $as_echo "no" >&6; } | |
8197 | fi | |
9c60689e | 8198 | |
9c60689e | 8199 | |
a243b558 JF |
8200 | fi |
8201 | if test -z "$ac_cv_prog_LIPO"; then | |
8202 | ac_ct_LIPO=$LIPO | |
8203 | # Extract the first word of "lipo", so it can be a program name with args. | |
8204 | set dummy lipo; ac_word=$2 | |
8205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8206 | $as_echo_n "checking for $ac_word... " >&6; } | |
8207 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
9c60689e DWT |
8208 | $as_echo_n "(cached) " >&6 |
8209 | else | |
a243b558 JF |
8210 | if test -n "$ac_ct_LIPO"; then |
8211 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
8212 | else | |
8213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8214 | for as_dir in $PATH | |
8215 | do | |
8216 | IFS=$as_save_IFS | |
8217 | test -z "$as_dir" && as_dir=. | |
8218 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8219 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8220 | ac_cv_prog_ac_ct_LIPO="lipo" | |
8221 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8222 | break 2 | |
8223 | fi | |
8224 | done | |
8225 | done | |
8226 | IFS=$as_save_IFS | |
9c60689e DWT |
8227 | |
8228 | fi | |
a243b558 JF |
8229 | fi |
8230 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
8231 | if test -n "$ac_ct_LIPO"; then | |
8232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
8233 | $as_echo "$ac_ct_LIPO" >&6; } | |
9c60689e | 8234 | else |
a243b558 JF |
8235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8236 | $as_echo "no" >&6; } | |
9c60689e DWT |
8237 | fi |
8238 | ||
a243b558 JF |
8239 | if test "x$ac_ct_LIPO" = x; then |
8240 | LIPO=":" | |
8241 | else | |
8242 | case $cross_compiling:$ac_tool_warned in | |
8243 | yes:) | |
8244 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8245 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8246 | ac_tool_warned=yes ;; | |
8247 | esac | |
8248 | LIPO=$ac_ct_LIPO | |
8249 | fi | |
8250 | else | |
8251 | LIPO="$ac_cv_prog_LIPO" | |
9c60689e DWT |
8252 | fi |
8253 | ||
a243b558 JF |
8254 | if test -n "$ac_tool_prefix"; then |
8255 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8256 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
8257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8258 | $as_echo_n "checking for $ac_word... " >&6; } | |
8259 | if ${ac_cv_prog_OTOOL+:} false; then : | |
8260 | $as_echo_n "(cached) " >&6 | |
8261 | else | |
8262 | if test -n "$OTOOL"; then | |
8263 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
8264 | else | |
8265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8266 | for as_dir in $PATH | |
8267 | do | |
8268 | IFS=$as_save_IFS | |
8269 | test -z "$as_dir" && as_dir=. | |
8270 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8271 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8272 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
8273 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8274 | break 2 | |
8275 | fi | |
8276 | done | |
8277 | done | |
8278 | IFS=$as_save_IFS | |
9c60689e | 8279 | |
a243b558 JF |
8280 | fi |
8281 | fi | |
8282 | OTOOL=$ac_cv_prog_OTOOL | |
8283 | if test -n "$OTOOL"; then | |
8284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
8285 | $as_echo "$OTOOL" >&6; } | |
8286 | else | |
8287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8288 | $as_echo "no" >&6; } | |
8289 | fi | |
9c60689e DWT |
8290 | |
8291 | ||
a243b558 JF |
8292 | fi |
8293 | if test -z "$ac_cv_prog_OTOOL"; then | |
8294 | ac_ct_OTOOL=$OTOOL | |
8295 | # Extract the first word of "otool", so it can be a program name with args. | |
8296 | set dummy otool; ac_word=$2 | |
8297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8298 | $as_echo_n "checking for $ac_word... " >&6; } | |
8299 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
8300 | $as_echo_n "(cached) " >&6 | |
8301 | else | |
8302 | if test -n "$ac_ct_OTOOL"; then | |
8303 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8304 | else | |
8305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8306 | for as_dir in $PATH | |
8307 | do | |
8308 | IFS=$as_save_IFS | |
8309 | test -z "$as_dir" && as_dir=. | |
8310 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8311 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8312 | ac_cv_prog_ac_ct_OTOOL="otool" | |
8313 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8314 | break 2 | |
8315 | fi | |
8316 | done | |
8317 | done | |
8318 | IFS=$as_save_IFS | |
9c60689e | 8319 | |
a243b558 JF |
8320 | fi |
8321 | fi | |
8322 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8323 | if test -n "$ac_ct_OTOOL"; then | |
8324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8325 | $as_echo "$ac_ct_OTOOL" >&6; } | |
8326 | else | |
8327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8328 | $as_echo "no" >&6; } | |
8329 | fi | |
9c60689e | 8330 | |
a243b558 JF |
8331 | if test "x$ac_ct_OTOOL" = x; then |
8332 | OTOOL=":" | |
8333 | else | |
8334 | case $cross_compiling:$ac_tool_warned in | |
8335 | yes:) | |
8336 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8337 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8338 | ac_tool_warned=yes ;; | |
8339 | esac | |
8340 | OTOOL=$ac_ct_OTOOL | |
8341 | fi | |
8342 | else | |
8343 | OTOOL="$ac_cv_prog_OTOOL" | |
8344 | fi | |
9c60689e | 8345 | |
a243b558 JF |
8346 | if test -n "$ac_tool_prefix"; then |
8347 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8348 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8350 | $as_echo_n "checking for $ac_word... " >&6; } | |
8351 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
8352 | $as_echo_n "(cached) " >&6 | |
8353 | else | |
8354 | if test -n "$OTOOL64"; then | |
8355 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8356 | else | |
8357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8358 | for as_dir in $PATH | |
8359 | do | |
8360 | IFS=$as_save_IFS | |
8361 | test -z "$as_dir" && as_dir=. | |
8362 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8363 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8364 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
8365 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8366 | break 2 | |
8367 | fi | |
8368 | done | |
8369 | done | |
8370 | IFS=$as_save_IFS | |
9c60689e | 8371 | |
a243b558 JF |
8372 | fi |
8373 | fi | |
8374 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8375 | if test -n "$OTOOL64"; then | |
8376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8377 | $as_echo "$OTOOL64" >&6; } | |
8378 | else | |
8379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8380 | $as_echo "no" >&6; } | |
8381 | fi | |
9c60689e | 8382 | |
9c60689e | 8383 | |
a243b558 JF |
8384 | fi |
8385 | if test -z "$ac_cv_prog_OTOOL64"; then | |
8386 | ac_ct_OTOOL64=$OTOOL64 | |
8387 | # Extract the first word of "otool64", so it can be a program name with args. | |
8388 | set dummy otool64; ac_word=$2 | |
8389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8390 | $as_echo_n "checking for $ac_word... " >&6; } | |
8391 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
8392 | $as_echo_n "(cached) " >&6 | |
8393 | else | |
8394 | if test -n "$ac_ct_OTOOL64"; then | |
8395 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8396 | else | |
8397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8398 | for as_dir in $PATH | |
8399 | do | |
8400 | IFS=$as_save_IFS | |
8401 | test -z "$as_dir" && as_dir=. | |
8402 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8403 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8404 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
8405 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8406 | break 2 | |
8407 | fi | |
8408 | done | |
8409 | done | |
8410 | IFS=$as_save_IFS | |
9c60689e | 8411 | |
a243b558 JF |
8412 | fi |
8413 | fi | |
8414 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8415 | if test -n "$ac_ct_OTOOL64"; then | |
8416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8417 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
8418 | else | |
8419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8420 | $as_echo "no" >&6; } | |
8421 | fi | |
9c60689e | 8422 | |
a243b558 JF |
8423 | if test "x$ac_ct_OTOOL64" = x; then |
8424 | OTOOL64=":" | |
8425 | else | |
8426 | case $cross_compiling:$ac_tool_warned in | |
8427 | yes:) | |
8428 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8429 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8430 | ac_tool_warned=yes ;; | |
8431 | esac | |
8432 | OTOOL64=$ac_ct_OTOOL64 | |
8433 | fi | |
8434 | else | |
8435 | OTOOL64="$ac_cv_prog_OTOOL64" | |
8436 | fi | |
ee134472 | 8437 | |
9c60689e | 8438 | |
9c60689e | 8439 | |
9c60689e | 8440 | |
9c60689e | 8441 | |
9c60689e | 8442 | |
ee134472 | 8443 | |
9c60689e | 8444 | |
9c60689e | 8445 | |
9c60689e | 8446 | |
9c60689e | 8447 | |
9c60689e | 8448 | |
9c60689e | 8449 | |
9c60689e | 8450 | |
9c60689e | 8451 | |
9c60689e | 8452 | |
9c60689e | 8453 | |
9c60689e | 8454 | |
9c60689e | 8455 | |
9c60689e | 8456 | |
9c60689e | 8457 | |
9c60689e | 8458 | |
9c60689e | 8459 | |
9c60689e | 8460 | |
9c60689e | 8461 | |
a243b558 JF |
8462 | |
8463 | ||
8464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
8465 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
8466 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
ee134472 JF |
8467 | $as_echo_n "(cached) " >&6 |
8468 | else | |
a243b558 | 8469 | lt_cv_apple_cc_single_mod=no |
9d54db95 | 8470 | if test -z "$LT_MULTI_MODULE"; then |
a243b558 JF |
8471 | # By default we will add the -single_module flag. You can override |
8472 | # by either setting the environment variable LT_MULTI_MODULE | |
8473 | # non-empty at configure time, or by adding -multi_module to the | |
8474 | # link flags. | |
8475 | rm -rf libconftest.dylib* | |
8476 | echo "int foo(void){return 1;}" > conftest.c | |
8477 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8478 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8479 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8480 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8481 | _lt_result=$? | |
8482 | # If there is a non-empty error log, and "single_module" | |
8483 | # appears in it, assume the flag caused a linker warning | |
8484 | if test -s conftest.err && $GREP single_module conftest.err; then | |
8485 | cat conftest.err >&5 | |
8486 | # Otherwise, if the output was created with a 0 exit code from | |
8487 | # the compiler, it worked. | |
9d54db95 | 8488 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
a243b558 JF |
8489 | lt_cv_apple_cc_single_mod=yes |
8490 | else | |
8491 | cat conftest.err >&5 | |
8492 | fi | |
8493 | rm -rf libconftest.dylib* | |
8494 | rm -f conftest.* | |
8495 | fi | |
ee134472 | 8496 | fi |
a243b558 JF |
8497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
8498 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
9c60689e | 8499 | |
a243b558 JF |
8500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
8501 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8502 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
9c60689e DWT |
8503 | $as_echo_n "(cached) " >&6 |
8504 | else | |
a243b558 JF |
8505 | lt_cv_ld_exported_symbols_list=no |
8506 | save_LDFLAGS=$LDFLAGS | |
8507 | echo "_main" > conftest.sym | |
8508 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8510 | /* end confdefs.h. */ | |
9c60689e | 8511 | |
a243b558 JF |
8512 | int |
8513 | main () | |
8514 | { | |
9c60689e | 8515 | |
a243b558 JF |
8516 | ; |
8517 | return 0; | |
8518 | } | |
8519 | _ACEOF | |
8520 | if ac_fn_c_try_link "$LINENO"; then : | |
8521 | lt_cv_ld_exported_symbols_list=yes | |
9c60689e | 8522 | else |
a243b558 | 8523 | lt_cv_ld_exported_symbols_list=no |
9c60689e | 8524 | fi |
a243b558 JF |
8525 | rm -f core conftest.err conftest.$ac_objext \ |
8526 | conftest$ac_exeext conftest.$ac_ext | |
9d54db95 | 8527 | LDFLAGS=$save_LDFLAGS |
9c60689e DWT |
8528 | |
8529 | fi | |
a243b558 JF |
8530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8531 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
9c60689e | 8532 | |
a243b558 JF |
8533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
8534 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8535 | if ${lt_cv_ld_force_load+:} false; then : | |
9c60689e DWT |
8536 | $as_echo_n "(cached) " >&6 |
8537 | else | |
a243b558 JF |
8538 | lt_cv_ld_force_load=no |
8539 | cat > conftest.c << _LT_EOF | |
8540 | int forced_loaded() { return 2;} | |
8541 | _LT_EOF | |
8542 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8543 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8544 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8545 | $AR cru libconftest.a conftest.o 2>&5 | |
8546 | echo "$RANLIB libconftest.a" >&5 | |
8547 | $RANLIB libconftest.a 2>&5 | |
8548 | cat > conftest.c << _LT_EOF | |
8549 | int main() { return 0;} | |
8550 | _LT_EOF | |
8551 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8552 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8553 | _lt_result=$? | |
8554 | if test -s conftest.err && $GREP force_load conftest.err; then | |
8555 | cat conftest.err >&5 | |
9d54db95 | 8556 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
a243b558 JF |
8557 | lt_cv_ld_force_load=yes |
8558 | else | |
8559 | cat conftest.err >&5 | |
8560 | fi | |
8561 | rm -f conftest.err libconftest.a conftest conftest.c | |
8562 | rm -rf conftest.dSYM | |
9c60689e DWT |
8563 | |
8564 | fi | |
a243b558 JF |
8565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
8566 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
8567 | case $host_os in | |
8568 | rhapsody* | darwin1.[012]) | |
9d54db95 | 8569 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
a243b558 | 8570 | darwin1.*) |
9d54db95 | 8571 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
a243b558 JF |
8572 | darwin*) # darwin 5.x on |
8573 | # if running on 10.5 or later, the deployment target defaults | |
8574 | # to the OS version, if on x86, and 10.4, the deployment | |
8575 | # target defaults to 10.4. Don't you love it? | |
8576 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8577 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
9d54db95 JF |
8578 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
8579 | 10.[012][,.]*) | |
8580 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
a243b558 | 8581 | 10.*) |
9d54db95 | 8582 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
a243b558 JF |
8583 | esac |
8584 | ;; | |
8585 | esac | |
9d54db95 | 8586 | if test yes = "$lt_cv_apple_cc_single_mod"; then |
a243b558 JF |
8587 | _lt_dar_single_mod='$single_module' |
8588 | fi | |
9d54db95 JF |
8589 | if test yes = "$lt_cv_ld_exported_symbols_list"; then |
8590 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' | |
a243b558 | 8591 | else |
9d54db95 | 8592 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
a243b558 | 8593 | fi |
9d54db95 | 8594 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
a243b558 JF |
8595 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
8596 | else | |
8597 | _lt_dsymutil= | |
8598 | fi | |
8599 | ;; | |
8600 | esac | |
9c60689e | 8601 | |
9d54db95 JF |
8602 | # func_munge_path_list VARIABLE PATH |
8603 | # ----------------------------------- | |
8604 | # VARIABLE is name of variable containing _space_ separated list of | |
8605 | # directories to be munged by the contents of PATH, which is string | |
8606 | # having a format: | |
8607 | # "DIR[:DIR]:" | |
8608 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
8609 | # ":DIR[:DIR]" | |
8610 | # string "DIR[ DIR]" will be appended to VARIABLE | |
8611 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
8612 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
8613 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
8614 | # "DIR[:DIR]" | |
8615 | # VARIABLE will be replaced by "DIR[ DIR]" | |
8616 | func_munge_path_list () | |
8617 | { | |
8618 | case x$2 in | |
8619 | x) | |
8620 | ;; | |
8621 | *:) | |
8622 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
8623 | ;; | |
8624 | x:*) | |
8625 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
8626 | ;; | |
8627 | *::*) | |
8628 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
8629 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
8630 | ;; | |
8631 | *) | |
8632 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
8633 | ;; | |
8634 | esac | |
8635 | } | |
8636 | ||
a243b558 JF |
8637 | ac_ext=c |
8638 | ac_cpp='$CPP $CPPFLAGS' | |
8639 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8640 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8641 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
8643 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
8644 | # On Suns, sometimes $CPP names a directory. | |
8645 | if test -n "$CPP" && test -d "$CPP"; then | |
8646 | CPP= | |
9c60689e | 8647 | fi |
a243b558 JF |
8648 | if test -z "$CPP"; then |
8649 | if ${ac_cv_prog_CPP+:} false; then : | |
8650 | $as_echo_n "(cached) " >&6 | |
8651 | else | |
8652 | # Double quotes because CPP needs to be expanded | |
8653 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
8654 | do | |
8655 | ac_preproc_ok=false | |
8656 | for ac_c_preproc_warn_flag in '' yes | |
8657 | do | |
8658 | # Use a header file that comes with gcc, so configuring glibc | |
8659 | # with a fresh cross-compiler works. | |
8660 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8661 | # <limits.h> exists even on freestanding compilers. | |
8662 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
8663 | # not just through cpp. "Syntax error" is here to catch this case. | |
8664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8665 | /* end confdefs.h. */ | |
8666 | #ifdef __STDC__ | |
8667 | # include <limits.h> | |
8668 | #else | |
8669 | # include <assert.h> | |
8670 | #endif | |
8671 | Syntax error | |
8672 | _ACEOF | |
8673 | if ac_fn_c_try_cpp "$LINENO"; then : | |
9c60689e | 8674 | |
a243b558 JF |
8675 | else |
8676 | # Broken: fails on valid input. | |
8677 | continue | |
8678 | fi | |
8679 | rm -f conftest.err conftest.i conftest.$ac_ext | |
9c60689e | 8680 | |
a243b558 JF |
8681 | # OK, works on sane cases. Now check whether nonexistent headers |
8682 | # can be detected and how. | |
8683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8684 | /* end confdefs.h. */ | |
8685 | #include <ac_nonexistent.h> | |
8686 | _ACEOF | |
8687 | if ac_fn_c_try_cpp "$LINENO"; then : | |
8688 | # Broken: success on invalid input. | |
8689 | continue | |
8690 | else | |
8691 | # Passes both tests. | |
8692 | ac_preproc_ok=: | |
8693 | break | |
8694 | fi | |
8695 | rm -f conftest.err conftest.i conftest.$ac_ext | |
9c60689e | 8696 | |
a243b558 JF |
8697 | done |
8698 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
8699 | rm -f conftest.i conftest.err conftest.$ac_ext | |
8700 | if $ac_preproc_ok; then : | |
8701 | break | |
8702 | fi | |
9c60689e | 8703 | |
a243b558 JF |
8704 | done |
8705 | ac_cv_prog_CPP=$CPP | |
9c60689e | 8706 | |
a243b558 JF |
8707 | fi |
8708 | CPP=$ac_cv_prog_CPP | |
9c60689e | 8709 | else |
a243b558 JF |
8710 | ac_cv_prog_CPP=$CPP |
8711 | fi | |
8712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
8713 | $as_echo "$CPP" >&6; } | |
8714 | ac_preproc_ok=false | |
8715 | for ac_c_preproc_warn_flag in '' yes | |
8716 | do | |
8717 | # Use a header file that comes with gcc, so configuring glibc | |
8718 | # with a fresh cross-compiler works. | |
8719 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8720 | # <limits.h> exists even on freestanding compilers. | |
8721 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
8722 | # not just through cpp. "Syntax error" is here to catch this case. | |
8723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8724 | /* end confdefs.h. */ | |
8725 | #ifdef __STDC__ | |
8726 | # include <limits.h> | |
8727 | #else | |
8728 | # include <assert.h> | |
8729 | #endif | |
8730 | Syntax error | |
8731 | _ACEOF | |
8732 | if ac_fn_c_try_cpp "$LINENO"; then : | |
9c60689e | 8733 | |
a243b558 JF |
8734 | else |
8735 | # Broken: fails on valid input. | |
8736 | continue | |
9c60689e | 8737 | fi |
a243b558 | 8738 | rm -f conftest.err conftest.i conftest.$ac_ext |
9c60689e | 8739 | |
a243b558 JF |
8740 | # OK, works on sane cases. Now check whether nonexistent headers |
8741 | # can be detected and how. | |
8742 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8743 | /* end confdefs.h. */ | |
8744 | #include <ac_nonexistent.h> | |
8745 | _ACEOF | |
8746 | if ac_fn_c_try_cpp "$LINENO"; then : | |
8747 | # Broken: success on invalid input. | |
8748 | continue | |
8749 | else | |
8750 | # Passes both tests. | |
8751 | ac_preproc_ok=: | |
8752 | break | |
8753 | fi | |
8754 | rm -f conftest.err conftest.i conftest.$ac_ext | |
9c60689e | 8755 | |
a243b558 JF |
8756 | done |
8757 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
8758 | rm -f conftest.i conftest.err conftest.$ac_ext | |
8759 | if $ac_preproc_ok; then : | |
9c60689e | 8760 | |
a243b558 JF |
8761 | else |
8762 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8763 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8764 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
8765 | See \`config.log' for more details" "$LINENO" 5; } | |
8766 | fi | |
9c60689e | 8767 | |
a243b558 JF |
8768 | ac_ext=c |
8769 | ac_cpp='$CPP $CPPFLAGS' | |
8770 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8771 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8772 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e DWT |
8773 | |
8774 | ||
a243b558 JF |
8775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
8776 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
8777 | if ${ac_cv_header_stdc+:} false; then : | |
9c60689e DWT |
8778 | $as_echo_n "(cached) " >&6 |
8779 | else | |
a243b558 JF |
8780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8781 | /* end confdefs.h. */ | |
8782 | #include <stdlib.h> | |
8783 | #include <stdarg.h> | |
8784 | #include <string.h> | |
8785 | #include <float.h> | |
9c60689e | 8786 | |
a243b558 JF |
8787 | int |
8788 | main () | |
8789 | { | |
9c60689e | 8790 | |
a243b558 JF |
8791 | ; |
8792 | return 0; | |
8793 | } | |
8794 | _ACEOF | |
8795 | if ac_fn_c_try_compile "$LINENO"; then : | |
8796 | ac_cv_header_stdc=yes | |
8797 | else | |
8798 | ac_cv_header_stdc=no | |
9c60689e | 8799 | fi |
a243b558 JF |
8800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8801 | ||
8802 | if test $ac_cv_header_stdc = yes; then | |
8803 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
8804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8805 | /* end confdefs.h. */ | |
8806 | #include <string.h> | |
9c60689e | 8807 | |
a243b558 JF |
8808 | _ACEOF |
8809 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8810 | $EGREP "memchr" >/dev/null 2>&1; then : | |
9c60689e | 8811 | |
a243b558 JF |
8812 | else |
8813 | ac_cv_header_stdc=no | |
8814 | fi | |
8815 | rm -f conftest* | |
9c60689e | 8816 | |
a243b558 JF |
8817 | fi |
8818 | ||
8819 | if test $ac_cv_header_stdc = yes; then | |
8820 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
8821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8822 | /* end confdefs.h. */ | |
8823 | #include <stdlib.h> | |
8824 | ||
8825 | _ACEOF | |
8826 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8827 | $EGREP "free" >/dev/null 2>&1; then : | |
9c60689e | 8828 | |
9c60689e | 8829 | else |
a243b558 | 8830 | ac_cv_header_stdc=no |
9c60689e | 8831 | fi |
a243b558 | 8832 | rm -f conftest* |
9c60689e | 8833 | |
a243b558 | 8834 | fi |
9c60689e | 8835 | |
a243b558 JF |
8836 | if test $ac_cv_header_stdc = yes; then |
8837 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8838 | if test "$cross_compiling" = yes; then : | |
8839 | : | |
8840 | else | |
8841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8842 | /* end confdefs.h. */ | |
8843 | #include <ctype.h> | |
8844 | #include <stdlib.h> | |
8845 | #if ((' ' & 0x0FF) == 0x020) | |
8846 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
8847 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
8848 | #else | |
8849 | # define ISLOWER(c) \ | |
8850 | (('a' <= (c) && (c) <= 'i') \ | |
8851 | || ('j' <= (c) && (c) <= 'r') \ | |
8852 | || ('s' <= (c) && (c) <= 'z')) | |
8853 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
8854 | #endif | |
9c60689e | 8855 | |
a243b558 JF |
8856 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
8857 | int | |
8858 | main () | |
8859 | { | |
8860 | int i; | |
8861 | for (i = 0; i < 256; i++) | |
8862 | if (XOR (islower (i), ISLOWER (i)) | |
8863 | || toupper (i) != TOUPPER (i)) | |
8864 | return 2; | |
8865 | return 0; | |
8866 | } | |
8867 | _ACEOF | |
8868 | if ac_fn_c_try_run "$LINENO"; then : | |
9c60689e | 8869 | |
a243b558 JF |
8870 | else |
8871 | ac_cv_header_stdc=no | |
8872 | fi | |
8873 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
8874 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8875 | fi | |
9c60689e | 8876 | |
a243b558 JF |
8877 | fi |
8878 | fi | |
8879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
8880 | $as_echo "$ac_cv_header_stdc" >&6; } | |
8881 | if test $ac_cv_header_stdc = yes; then | |
9c60689e | 8882 | |
a243b558 | 8883 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
9c60689e | 8884 | |
a243b558 | 8885 | fi |
9c60689e | 8886 | |
a243b558 JF |
8887 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
8888 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
8889 | inttypes.h stdint.h unistd.h | |
8890 | do : | |
8891 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8892 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
8893 | " | |
8894 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8895 | cat >>confdefs.h <<_ACEOF | |
8896 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8897 | _ACEOF | |
9c60689e | 8898 | |
a243b558 | 8899 | fi |
ee134472 | 8900 | |
a243b558 | 8901 | done |
ee134472 | 8902 | |
9c60689e | 8903 | |
a243b558 JF |
8904 | for ac_header in dlfcn.h |
8905 | do : | |
8906 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8907 | " | |
8908 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8909 | cat >>confdefs.h <<_ACEOF | |
8910 | #define HAVE_DLFCN_H 1 | |
8911 | _ACEOF | |
9c60689e | 8912 | |
a243b558 | 8913 | fi |
9c60689e | 8914 | |
a243b558 | 8915 | done |
9c60689e | 8916 | |
9c60689e | 8917 | |
9c60689e | 8918 | |
9c60689e | 8919 | |
a243b558 JF |
8920 | func_stripname_cnf () |
8921 | { | |
9d54db95 JF |
8922 | case $2 in |
8923 | .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; | |
8924 | *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; | |
a243b558 JF |
8925 | esac |
8926 | } # func_stripname_cnf | |
9c60689e | 8927 | |
9c60689e | 8928 | |
ee134472 | 8929 | |
a243b558 JF |
8930 | |
8931 | ||
8932 | # Set options | |
8933 | # Check whether --enable-static was given. | |
8934 | if test "${enable_static+set}" = set; then : | |
8935 | enableval=$enable_static; p=${PACKAGE-default} | |
8936 | case $enableval in | |
8937 | yes) enable_static=yes ;; | |
8938 | no) enable_static=no ;; | |
8939 | *) | |
8940 | enable_static=no | |
8941 | # Look at the argument we got. We use all the common list separators. | |
9d54db95 | 8942 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
a243b558 | 8943 | for pkg in $enableval; do |
9d54db95 | 8944 | IFS=$lt_save_ifs |
a243b558 JF |
8945 | if test "X$pkg" = "X$p"; then |
8946 | enable_static=yes | |
8947 | fi | |
8948 | done | |
9d54db95 | 8949 | IFS=$lt_save_ifs |
9c60689e | 8950 | ;; |
a243b558 JF |
8951 | esac |
8952 | else | |
8953 | enable_static=no | |
8954 | fi | |
9c60689e | 8955 | |
9c60689e | 8956 | |
9c60689e | 8957 | |
9c60689e | 8958 | |
9c60689e | 8959 | |
9c60689e | 8960 | |
9c60689e | 8961 | |
9c60689e | 8962 | |
9c60689e | 8963 | |
9c60689e | 8964 | |
a243b558 | 8965 | enable_dlopen=no |
9c60689e | 8966 | |
9c60689e | 8967 | |
a243b558 JF |
8968 | enable_win32_dll=no |
8969 | ||
8970 | ||
8971 | # Check whether --enable-shared was given. | |
8972 | if test "${enable_shared+set}" = set; then : | |
8973 | enableval=$enable_shared; p=${PACKAGE-default} | |
8974 | case $enableval in | |
8975 | yes) enable_shared=yes ;; | |
8976 | no) enable_shared=no ;; | |
9c60689e | 8977 | *) |
a243b558 JF |
8978 | enable_shared=no |
8979 | # Look at the argument we got. We use all the common list separators. | |
9d54db95 | 8980 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
a243b558 | 8981 | for pkg in $enableval; do |
9d54db95 | 8982 | IFS=$lt_save_ifs |
a243b558 JF |
8983 | if test "X$pkg" = "X$p"; then |
8984 | enable_shared=yes | |
8985 | fi | |
8986 | done | |
9d54db95 | 8987 | IFS=$lt_save_ifs |
9c60689e DWT |
8988 | ;; |
8989 | esac | |
a243b558 JF |
8990 | else |
8991 | enable_shared=yes | |
8992 | fi | |
9c60689e | 8993 | |
9c60689e | 8994 | |
9c60689e | 8995 | |
9c60689e | 8996 | |
9c60689e | 8997 | |
9c60689e | 8998 | |
9c60689e | 8999 | |
9c60689e | 9000 | |
9c60689e | 9001 | |
9c60689e | 9002 | |
9c60689e | 9003 | |
a243b558 JF |
9004 | # Check whether --with-pic was given. |
9005 | if test "${with_pic+set}" = set; then : | |
9006 | withval=$with_pic; lt_p=${PACKAGE-default} | |
9007 | case $withval in | |
9008 | yes|no) pic_mode=$withval ;; | |
9009 | *) | |
9010 | pic_mode=default | |
9011 | # Look at the argument we got. We use all the common list separators. | |
9d54db95 | 9012 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
a243b558 | 9013 | for lt_pkg in $withval; do |
9d54db95 | 9014 | IFS=$lt_save_ifs |
a243b558 JF |
9015 | if test "X$lt_pkg" = "X$lt_p"; then |
9016 | pic_mode=yes | |
9017 | fi | |
9018 | done | |
9d54db95 | 9019 | IFS=$lt_save_ifs |
a243b558 JF |
9020 | ;; |
9021 | esac | |
9022 | else | |
9023 | pic_mode=default | |
9c60689e | 9024 | fi |
ee134472 | 9025 | |
ee134472 | 9026 | |
9c60689e | 9027 | |
9c60689e | 9028 | |
9c60689e | 9029 | |
ee134472 | 9030 | |
ee134472 | 9031 | |
9c60689e | 9032 | |
a243b558 JF |
9033 | # Check whether --enable-fast-install was given. |
9034 | if test "${enable_fast_install+set}" = set; then : | |
9035 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
9036 | case $enableval in | |
9037 | yes) enable_fast_install=yes ;; | |
9038 | no) enable_fast_install=no ;; | |
9039 | *) | |
9040 | enable_fast_install=no | |
9041 | # Look at the argument we got. We use all the common list separators. | |
9d54db95 | 9042 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
a243b558 | 9043 | for pkg in $enableval; do |
9d54db95 | 9044 | IFS=$lt_save_ifs |
a243b558 JF |
9045 | if test "X$pkg" = "X$p"; then |
9046 | enable_fast_install=yes | |
9c60689e | 9047 | fi |
a243b558 | 9048 | done |
9d54db95 | 9049 | IFS=$lt_save_ifs |
9c60689e | 9050 | ;; |
a243b558 JF |
9051 | esac |
9052 | else | |
9053 | enable_fast_install=yes | |
9054 | fi | |
9c60689e | 9055 | |
9c60689e | 9056 | |
9c60689e | 9057 | |
9c60689e | 9058 | |
9c60689e DWT |
9059 | |
9060 | ||
53ba6704 | 9061 | |
9c60689e | 9062 | |
9d54db95 JF |
9063 | shared_archive_member_spec= |
9064 | case $host,$enable_shared in | |
9065 | power*-*-aix[5-9]*,yes) | |
9066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 | |
9067 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } | |
9068 | ||
9069 | # Check whether --with-aix-soname was given. | |
9070 | if test "${with_aix_soname+set}" = set; then : | |
9071 | withval=$with_aix_soname; case $withval in | |
9072 | aix|svr4|both) | |
9073 | ;; | |
9074 | *) | |
9075 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 | |
9076 | ;; | |
9077 | esac | |
9078 | lt_cv_with_aix_soname=$with_aix_soname | |
9079 | else | |
9080 | if ${lt_cv_with_aix_soname+:} false; then : | |
9081 | $as_echo_n "(cached) " >&6 | |
9082 | else | |
9083 | lt_cv_with_aix_soname=aix | |
9084 | fi | |
9085 | ||
9086 | with_aix_soname=$lt_cv_with_aix_soname | |
9087 | fi | |
9088 | ||
9089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 | |
9090 | $as_echo "$with_aix_soname" >&6; } | |
9091 | if test aix != "$with_aix_soname"; then | |
9092 | # For the AIX way of multilib, we name the shared archive member | |
9093 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', | |
9094 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. | |
9095 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, | |
9096 | # the AIX toolchain works better with OBJECT_MODE set (default 32). | |
9097 | if test 64 = "${OBJECT_MODE-32}"; then | |
9098 | shared_archive_member_spec=shr_64 | |
9099 | else | |
9100 | shared_archive_member_spec=shr | |
9101 | fi | |
9102 | fi | |
9103 | ;; | |
9104 | *) | |
9105 | with_aix_soname=aix | |
9106 | ;; | |
9107 | esac | |
9108 | ||
9109 | ||
9110 | ||
9111 | ||
9112 | ||
9113 | ||
9114 | ||
9c60689e | 9115 | |
9c60689e | 9116 | |
9c60689e | 9117 | |
a243b558 | 9118 | # This can be used to rebuild libtool when needed |
9d54db95 | 9119 | LIBTOOL_DEPS=$ltmain |
9c60689e | 9120 | |
a243b558 JF |
9121 | # Always use our own libtool. |
9122 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
9c60689e | 9123 | |
9c60689e | 9124 | |
9c60689e | 9125 | |
9c60689e | 9126 | |
9c60689e | 9127 | |
ee134472 | 9128 | |
ee134472 | 9129 | |
ee134472 | 9130 | |
ee134472 | 9131 | |
9c60689e | 9132 | |
9c60689e | 9133 | |
9c60689e | 9134 | |
9c60689e | 9135 | |
9c60689e | 9136 | |
9c60689e | 9137 | |
9c60689e | 9138 | |
9c60689e | 9139 | |
9c60689e | 9140 | |
9c60689e | 9141 | |
9c60689e | 9142 | |
9c60689e | 9143 | |
9c60689e | 9144 | |
9c60689e | 9145 | |
9c60689e | 9146 | |
9c60689e | 9147 | |
9c60689e | 9148 | |
9c60689e | 9149 | |
9c60689e | 9150 | |
9c60689e | 9151 | |
9c60689e | 9152 | |
a243b558 | 9153 | test -z "$LN_S" && LN_S="ln -s" |
9c60689e DWT |
9154 | |
9155 | ||
9156 | ||
9157 | ||
9158 | ||
9159 | ||
9160 | ||
9161 | ||
9162 | ||
9163 | ||
9164 | ||
9165 | ||
9166 | ||
9167 | ||
9d54db95 | 9168 | if test -n "${ZSH_VERSION+set}"; then |
a243b558 JF |
9169 | setopt NO_GLOB_SUBST |
9170 | fi | |
9c60689e | 9171 | |
a243b558 JF |
9172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
9173 | $as_echo_n "checking for objdir... " >&6; } | |
9174 | if ${lt_cv_objdir+:} false; then : | |
ee134472 JF |
9175 | $as_echo_n "(cached) " >&6 |
9176 | else | |
a243b558 JF |
9177 | rm -f .libs 2>/dev/null |
9178 | mkdir .libs 2>/dev/null | |
9179 | if test -d .libs; then | |
9180 | lt_cv_objdir=.libs | |
9181 | else | |
9182 | # MS-DOS does not allow filenames that begin with a dot. | |
9183 | lt_cv_objdir=_libs | |
ee134472 | 9184 | fi |
a243b558 JF |
9185 | rmdir .libs 2>/dev/null |
9186 | fi | |
9187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
9188 | $as_echo "$lt_cv_objdir" >&6; } | |
9189 | objdir=$lt_cv_objdir | |
9c60689e DWT |
9190 | |
9191 | ||
9192 | ||
9193 | ||
9194 | ||
a243b558 JF |
9195 | cat >>confdefs.h <<_ACEOF |
9196 | #define LT_OBJDIR "$lt_cv_objdir/" | |
9197 | _ACEOF | |
9c60689e DWT |
9198 | |
9199 | ||
9200 | ||
9201 | ||
a243b558 JF |
9202 | case $host_os in |
9203 | aix3*) | |
9204 | # AIX sometimes has problems with the GCC collect2 program. For some | |
9205 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
9206 | # vanish in a puff of smoke. | |
9d54db95 | 9207 | if test set != "${COLLECT_NAMES+set}"; then |
a243b558 JF |
9208 | COLLECT_NAMES= |
9209 | export COLLECT_NAMES | |
9210 | fi | |
9211 | ;; | |
9212 | esac | |
9c60689e | 9213 | |
a243b558 JF |
9214 | # Global variables: |
9215 | ofile=libtool | |
9216 | can_build_shared=yes | |
9c60689e | 9217 | |
9d54db95 | 9218 | # All known linkers require a '.a' archive for static linking (except MSVC, |
a243b558 JF |
9219 | # which needs '.lib'). |
9220 | libext=a | |
9c60689e | 9221 | |
9d54db95 | 9222 | with_gnu_ld=$lt_cv_prog_gnu_ld |
9c60689e | 9223 | |
9d54db95 JF |
9224 | old_CC=$CC |
9225 | old_CFLAGS=$CFLAGS | |
9c60689e | 9226 | |
a243b558 JF |
9227 | # Set sane defaults for various variables |
9228 | test -z "$CC" && CC=cc | |
9229 | test -z "$LTCC" && LTCC=$CC | |
9230 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
9231 | test -z "$LD" && LD=ld | |
9232 | test -z "$ac_objext" && ac_objext=o | |
9c60689e | 9233 | |
9d54db95 JF |
9234 | func_cc_basename $compiler |
9235 | cc_basename=$func_cc_basename_result | |
9c60689e DWT |
9236 | |
9237 | ||
a243b558 JF |
9238 | # Only perform the check for file, if the check method requires it |
9239 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
9240 | case $deplibs_check_method in | |
9241 | file_magic*) | |
9242 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
9243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
9244 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
9245 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
9246 | $as_echo_n "(cached) " >&6 | |
9247 | else | |
9248 | case $MAGIC_CMD in | |
9249 | [\\/*] | ?:[\\/]*) | |
9d54db95 | 9250 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
a243b558 JF |
9251 | ;; |
9252 | *) | |
9d54db95 JF |
9253 | lt_save_MAGIC_CMD=$MAGIC_CMD |
9254 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
a243b558 JF |
9255 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
9256 | for ac_dir in $ac_dummy; do | |
9d54db95 | 9257 | IFS=$lt_save_ifs |
a243b558 | 9258 | test -z "$ac_dir" && ac_dir=. |
9d54db95 JF |
9259 | if test -f "$ac_dir/${ac_tool_prefix}file"; then |
9260 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" | |
a243b558 JF |
9261 | if test -n "$file_magic_test_file"; then |
9262 | case $deplibs_check_method in | |
9263 | "file_magic "*) | |
9264 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9d54db95 | 9265 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
a243b558 JF |
9266 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
9267 | $EGREP "$file_magic_regex" > /dev/null; then | |
9268 | : | |
9269 | else | |
9270 | cat <<_LT_EOF 1>&2 | |
9c60689e | 9271 | |
a243b558 JF |
9272 | *** Warning: the command libtool uses to detect shared libraries, |
9273 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9274 | *** The result is that libtool may fail to recognize shared libraries | |
9275 | *** as such. This will affect the creation of libtool libraries that | |
9276 | *** depend on shared libraries, but programs linked with such libtool | |
9277 | *** libraries will work regardless of this problem. Nevertheless, you | |
9278 | *** may want to report the problem to your system manager and/or to | |
9279 | *** bug-libtool@gnu.org | |
9c60689e | 9280 | |
a243b558 JF |
9281 | _LT_EOF |
9282 | fi ;; | |
9283 | esac | |
9284 | fi | |
9285 | break | |
9286 | fi | |
9287 | done | |
9d54db95 JF |
9288 | IFS=$lt_save_ifs |
9289 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
a243b558 JF |
9290 | ;; |
9291 | esac | |
9292 | fi | |
9c60689e | 9293 | |
9d54db95 | 9294 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
a243b558 JF |
9295 | if test -n "$MAGIC_CMD"; then |
9296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9297 | $as_echo "$MAGIC_CMD" >&6; } | |
9298 | else | |
9299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9300 | $as_echo "no" >&6; } | |
9301 | fi | |
9c60689e DWT |
9302 | |
9303 | ||
9304 | ||
9305 | ||
9306 | ||
a243b558 JF |
9307 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
9308 | if test -n "$ac_tool_prefix"; then | |
9309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
9310 | $as_echo_n "checking for file... " >&6; } | |
9311 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
9312 | $as_echo_n "(cached) " >&6 | |
9313 | else | |
9314 | case $MAGIC_CMD in | |
9315 | [\\/*] | ?:[\\/]*) | |
9d54db95 | 9316 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
a243b558 JF |
9317 | ;; |
9318 | *) | |
9d54db95 JF |
9319 | lt_save_MAGIC_CMD=$MAGIC_CMD |
9320 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
a243b558 JF |
9321 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
9322 | for ac_dir in $ac_dummy; do | |
9d54db95 | 9323 | IFS=$lt_save_ifs |
a243b558 | 9324 | test -z "$ac_dir" && ac_dir=. |
9d54db95 JF |
9325 | if test -f "$ac_dir/file"; then |
9326 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" | |
a243b558 JF |
9327 | if test -n "$file_magic_test_file"; then |
9328 | case $deplibs_check_method in | |
9329 | "file_magic "*) | |
9330 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9d54db95 | 9331 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
a243b558 JF |
9332 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
9333 | $EGREP "$file_magic_regex" > /dev/null; then | |
9334 | : | |
9335 | else | |
9336 | cat <<_LT_EOF 1>&2 | |
9c60689e | 9337 | |
a243b558 JF |
9338 | *** Warning: the command libtool uses to detect shared libraries, |
9339 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9340 | *** The result is that libtool may fail to recognize shared libraries | |
9341 | *** as such. This will affect the creation of libtool libraries that | |
9342 | *** depend on shared libraries, but programs linked with such libtool | |
9343 | *** libraries will work regardless of this problem. Nevertheless, you | |
9344 | *** may want to report the problem to your system manager and/or to | |
9345 | *** bug-libtool@gnu.org | |
9c60689e | 9346 | |
a243b558 JF |
9347 | _LT_EOF |
9348 | fi ;; | |
9349 | esac | |
9350 | fi | |
9351 | break | |
9352 | fi | |
9353 | done | |
9d54db95 JF |
9354 | IFS=$lt_save_ifs |
9355 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
a243b558 JF |
9356 | ;; |
9357 | esac | |
9358 | fi | |
9c60689e | 9359 | |
9d54db95 | 9360 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
a243b558 JF |
9361 | if test -n "$MAGIC_CMD"; then |
9362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9363 | $as_echo "$MAGIC_CMD" >&6; } | |
9364 | else | |
9365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9366 | $as_echo "no" >&6; } | |
9367 | fi | |
9c60689e DWT |
9368 | |
9369 | ||
a243b558 JF |
9370 | else |
9371 | MAGIC_CMD=: | |
9372 | fi | |
9373 | fi | |
9c60689e | 9374 | |
a243b558 JF |
9375 | fi |
9376 | ;; | |
9377 | esac | |
9c60689e | 9378 | |
a243b558 | 9379 | # Use C for the default configuration in the libtool script |
9c60689e | 9380 | |
9d54db95 | 9381 | lt_save_CC=$CC |
a243b558 JF |
9382 | ac_ext=c |
9383 | ac_cpp='$CPP $CPPFLAGS' | |
9384 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9385 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9386 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e DWT |
9387 | |
9388 | ||
a243b558 JF |
9389 | # Source file extension for C test sources. |
9390 | ac_ext=c | |
9c60689e | 9391 | |
a243b558 JF |
9392 | # Object file extension for compiled C test sources. |
9393 | objext=o | |
9394 | objext=$objext | |
9c60689e | 9395 | |
a243b558 JF |
9396 | # Code to be used in simple compile tests |
9397 | lt_simple_compile_test_code="int some_variable = 0;" | |
9c60689e | 9398 | |
a243b558 JF |
9399 | # Code to be used in simple link tests |
9400 | lt_simple_link_test_code='int main(){return(0);}' | |
9c60689e DWT |
9401 | |
9402 | ||
9403 | ||
9404 | ||
9405 | ||
9406 | ||
9407 | ||
a243b558 JF |
9408 | # If no C compiler was specified, use CC. |
9409 | LTCC=${LTCC-"$CC"} | |
9c60689e | 9410 | |
a243b558 JF |
9411 | # If no C compiler flags were specified, use CFLAGS. |
9412 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9c60689e | 9413 | |
a243b558 JF |
9414 | # Allow CC to be a program name with arguments. |
9415 | compiler=$CC | |
9c60689e | 9416 | |
a243b558 JF |
9417 | # Save the default compiler, since it gets overwritten when the other |
9418 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9419 | compiler_DEFAULT=$CC | |
9c60689e | 9420 | |
a243b558 JF |
9421 | # save warnings/boilerplate of simple test code |
9422 | ac_outfile=conftest.$ac_objext | |
9423 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9424 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9425 | _lt_compiler_boilerplate=`cat conftest.err` | |
00a96142 | 9426 | $RM -r conftest* |
9c60689e | 9427 | |
a243b558 JF |
9428 | ac_outfile=conftest.$ac_objext |
9429 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9430 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9431 | _lt_linker_boilerplate=`cat conftest.err` | |
9432 | $RM -r conftest* | |
9c60689e DWT |
9433 | |
9434 | ||
a243b558 JF |
9435 | ## CAVEAT EMPTOR: |
9436 | ## There is no encapsulation within the following macros, do not change | |
9437 | ## the running order or otherwise move them around unless you know exactly | |
9438 | ## what you are doing... | |
9439 | if test -n "$compiler"; then | |
9c60689e | 9440 | |
a243b558 | 9441 | lt_prog_compiler_no_builtin_flag= |
9c60689e | 9442 | |
9d54db95 | 9443 | if test yes = "$GCC"; then |
a243b558 JF |
9444 | case $cc_basename in |
9445 | nvcc*) | |
9446 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9447 | *) | |
9448 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9449 | esac | |
9c60689e | 9450 | |
a243b558 JF |
9451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
9452 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
9453 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
9454 | $as_echo_n "(cached) " >&6 | |
9455 | else | |
9456 | lt_cv_prog_compiler_rtti_exceptions=no | |
9457 | ac_outfile=conftest.$ac_objext | |
9458 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9d54db95 | 9459 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
a243b558 JF |
9460 | # Insert the option either (1) after the last *FLAGS variable, or |
9461 | # (2) before a word containing "conftest.", or (3) at the end. | |
9462 | # Note that $ac_compile itself does not contain backslashes and begins | |
9463 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9464 | # The option is referenced via a variable to avoid confusing sed. | |
9465 | lt_compile=`echo "$ac_compile" | $SED \ | |
9466 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9467 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9468 | -e 's:$: $lt_compiler_flag:'` | |
9469 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9470 | (eval "$lt_compile" 2>conftest.err) | |
9471 | ac_status=$? | |
9472 | cat conftest.err >&5 | |
9473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9474 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9475 | # The compiler can only warn and ignore the option if not recognized | |
9476 | # So say no if there are warnings other than the usual output. | |
9477 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9478 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9479 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9480 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9481 | fi | |
9482 | fi | |
00a96142 | 9483 | $RM -r conftest* |
9c60689e | 9484 | |
a243b558 JF |
9485 | fi |
9486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
9487 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
9c60689e | 9488 | |
9d54db95 | 9489 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
a243b558 JF |
9490 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
9491 | else | |
9492 | : | |
9493 | fi | |
9c60689e | 9494 | |
a243b558 | 9495 | fi |
9c60689e DWT |
9496 | |
9497 | ||
9498 | ||
9499 | ||
9500 | ||
9501 | ||
a243b558 JF |
9502 | lt_prog_compiler_wl= |
9503 | lt_prog_compiler_pic= | |
9504 | lt_prog_compiler_static= | |
9c60689e DWT |
9505 | |
9506 | ||
9d54db95 | 9507 | if test yes = "$GCC"; then |
a243b558 JF |
9508 | lt_prog_compiler_wl='-Wl,' |
9509 | lt_prog_compiler_static='-static' | |
9c60689e | 9510 | |
a243b558 JF |
9511 | case $host_os in |
9512 | aix*) | |
9513 | # All AIX code is PIC. | |
9d54db95 | 9514 | if test ia64 = "$host_cpu"; then |
a243b558 JF |
9515 | # AIX 5 now supports IA64 processor |
9516 | lt_prog_compiler_static='-Bstatic' | |
9517 | fi | |
9d54db95 | 9518 | lt_prog_compiler_pic='-fPIC' |
a243b558 | 9519 | ;; |
9c60689e | 9520 | |
a243b558 JF |
9521 | amigaos*) |
9522 | case $host_cpu in | |
9523 | powerpc) | |
9524 | # see comment about AmigaOS4 .so support | |
9525 | lt_prog_compiler_pic='-fPIC' | |
9526 | ;; | |
9527 | m68k) | |
9528 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9d54db95 JF |
9529 | # adding the '-m68020' flag to GCC prevents building anything better, |
9530 | # like '-m68040'. | |
a243b558 JF |
9531 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
9532 | ;; | |
9533 | esac | |
9534 | ;; | |
9c60689e | 9535 | |
a243b558 JF |
9536 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
9537 | # PIC is the default for these OSes. | |
9538 | ;; | |
9c60689e | 9539 | |
a243b558 JF |
9540 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9541 | # This hack is so that the source file can tell whether it is being | |
9542 | # built for inclusion in a dll (and should export symbols for example). | |
9543 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9544 | # (--disable-auto-import) libraries | |
9545 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9d54db95 JF |
9546 | case $host_os in |
9547 | os2*) | |
9548 | lt_prog_compiler_static='$wl-static' | |
9549 | ;; | |
9550 | esac | |
a243b558 | 9551 | ;; |
9c60689e | 9552 | |
a243b558 JF |
9553 | darwin* | rhapsody*) |
9554 | # PIC is the default on this platform | |
9555 | # Common symbols not allowed in MH_DYLIB files | |
9556 | lt_prog_compiler_pic='-fno-common' | |
9557 | ;; | |
9c60689e | 9558 | |
a243b558 JF |
9559 | haiku*) |
9560 | # PIC is the default for Haiku. | |
9561 | # The "-static" flag exists, but is broken. | |
9562 | lt_prog_compiler_static= | |
9563 | ;; | |
9c60689e | 9564 | |
a243b558 JF |
9565 | hpux*) |
9566 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
9567 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9568 | # sets the default TLS model and affects inlining. | |
9569 | case $host_cpu in | |
9570 | hppa*64*) | |
9571 | # +Z the default | |
9572 | ;; | |
9573 | *) | |
9574 | lt_prog_compiler_pic='-fPIC' | |
9575 | ;; | |
9576 | esac | |
9577 | ;; | |
9c60689e | 9578 | |
a243b558 JF |
9579 | interix[3-9]*) |
9580 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9581 | # Instead, we relocate shared libraries at runtime. | |
9582 | ;; | |
9c60689e | 9583 | |
a243b558 JF |
9584 | msdosdjgpp*) |
9585 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9586 | # on systems that don't support them. | |
9587 | lt_prog_compiler_can_build_shared=no | |
9588 | enable_shared=no | |
9589 | ;; | |
9c60689e | 9590 | |
a243b558 JF |
9591 | *nto* | *qnx*) |
9592 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9593 | # it will coredump. | |
9594 | lt_prog_compiler_pic='-fPIC -shared' | |
9595 | ;; | |
9c60689e | 9596 | |
a243b558 JF |
9597 | sysv4*MP*) |
9598 | if test -d /usr/nec; then | |
9599 | lt_prog_compiler_pic=-Kconform_pic | |
9600 | fi | |
9601 | ;; | |
9c60689e | 9602 | |
a243b558 JF |
9603 | *) |
9604 | lt_prog_compiler_pic='-fPIC' | |
9605 | ;; | |
9606 | esac | |
9c60689e | 9607 | |
a243b558 JF |
9608 | case $cc_basename in |
9609 | nvcc*) # Cuda Compiler Driver 2.2 | |
9610 | lt_prog_compiler_wl='-Xlinker ' | |
9611 | if test -n "$lt_prog_compiler_pic"; then | |
9612 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
9613 | fi | |
9614 | ;; | |
9615 | esac | |
9616 | else | |
9617 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9618 | case $host_os in | |
9619 | aix*) | |
9620 | lt_prog_compiler_wl='-Wl,' | |
9d54db95 | 9621 | if test ia64 = "$host_cpu"; then |
a243b558 JF |
9622 | # AIX 5 now supports IA64 processor |
9623 | lt_prog_compiler_static='-Bstatic' | |
9624 | else | |
9625 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9626 | fi | |
9627 | ;; | |
9c60689e | 9628 | |
9d54db95 JF |
9629 | darwin* | rhapsody*) |
9630 | # PIC is the default on this platform | |
9631 | # Common symbols not allowed in MH_DYLIB files | |
9632 | lt_prog_compiler_pic='-fno-common' | |
9633 | case $cc_basename in | |
9634 | nagfor*) | |
9635 | # NAG Fortran compiler | |
9636 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
9637 | lt_prog_compiler_pic='-PIC' | |
9638 | lt_prog_compiler_static='-Bstatic' | |
9639 | ;; | |
9640 | esac | |
9641 | ;; | |
9642 | ||
a243b558 JF |
9643 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9644 | # This hack is so that the source file can tell whether it is being | |
9645 | # built for inclusion in a dll (and should export symbols for example). | |
9646 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9d54db95 JF |
9647 | case $host_os in |
9648 | os2*) | |
9649 | lt_prog_compiler_static='$wl-static' | |
9650 | ;; | |
9651 | esac | |
a243b558 | 9652 | ;; |
9c60689e | 9653 | |
a243b558 JF |
9654 | hpux9* | hpux10* | hpux11*) |
9655 | lt_prog_compiler_wl='-Wl,' | |
9656 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9657 | # not for PA HP-UX. | |
9658 | case $host_cpu in | |
9659 | hppa*64*|ia64*) | |
9660 | # +Z the default | |
9661 | ;; | |
9662 | *) | |
9663 | lt_prog_compiler_pic='+Z' | |
9664 | ;; | |
9665 | esac | |
9666 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9d54db95 | 9667 | lt_prog_compiler_static='$wl-a ${wl}archive' |
a243b558 | 9668 | ;; |
9c60689e | 9669 | |
a243b558 JF |
9670 | irix5* | irix6* | nonstopux*) |
9671 | lt_prog_compiler_wl='-Wl,' | |
9672 | # PIC (with -KPIC) is the default. | |
9673 | lt_prog_compiler_static='-non_shared' | |
9674 | ;; | |
9c60689e | 9675 | |
9d54db95 | 9676 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
a243b558 | 9677 | case $cc_basename in |
9d54db95 | 9678 | # old Intel for x86_64, which still supported -KPIC. |
a243b558 JF |
9679 | ecc*) |
9680 | lt_prog_compiler_wl='-Wl,' | |
9681 | lt_prog_compiler_pic='-KPIC' | |
9682 | lt_prog_compiler_static='-static' | |
9683 | ;; | |
9684 | # icc used to be incompatible with GCC. | |
9685 | # ICC 10 doesn't accept -KPIC any more. | |
9686 | icc* | ifort*) | |
9687 | lt_prog_compiler_wl='-Wl,' | |
9688 | lt_prog_compiler_pic='-fPIC' | |
9689 | lt_prog_compiler_static='-static' | |
9690 | ;; | |
9691 | # Lahey Fortran 8.1. | |
9692 | lf95*) | |
9693 | lt_prog_compiler_wl='-Wl,' | |
9694 | lt_prog_compiler_pic='--shared' | |
9695 | lt_prog_compiler_static='--static' | |
9696 | ;; | |
9697 | nagfor*) | |
9698 | # NAG Fortran compiler | |
9699 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
9700 | lt_prog_compiler_pic='-PIC' | |
9701 | lt_prog_compiler_static='-Bstatic' | |
9702 | ;; | |
9d54db95 JF |
9703 | tcc*) |
9704 | # Fabrice Bellard et al's Tiny C Compiler | |
9705 | lt_prog_compiler_wl='-Wl,' | |
9706 | lt_prog_compiler_pic='-fPIC' | |
9707 | lt_prog_compiler_static='-static' | |
9708 | ;; | |
a243b558 JF |
9709 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
9710 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
9711 | # which looks to be a dead project) | |
9712 | lt_prog_compiler_wl='-Wl,' | |
9713 | lt_prog_compiler_pic='-fpic' | |
9714 | lt_prog_compiler_static='-Bstatic' | |
9715 | ;; | |
9716 | ccc*) | |
9717 | lt_prog_compiler_wl='-Wl,' | |
9718 | # All Alpha code is PIC. | |
9719 | lt_prog_compiler_static='-non_shared' | |
9720 | ;; | |
9721 | xl* | bgxl* | bgf* | mpixl*) | |
9722 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
9723 | lt_prog_compiler_wl='-Wl,' | |
9724 | lt_prog_compiler_pic='-qpic' | |
9725 | lt_prog_compiler_static='-qstaticlink' | |
9726 | ;; | |
9727 | *) | |
9728 | case `$CC -V 2>&1 | sed 5q` in | |
9729 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
9730 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
9731 | lt_prog_compiler_pic='-KPIC' | |
9732 | lt_prog_compiler_static='-Bstatic' | |
9733 | lt_prog_compiler_wl='' | |
9734 | ;; | |
9735 | *Sun\ F* | *Sun*Fortran*) | |
9736 | lt_prog_compiler_pic='-KPIC' | |
9737 | lt_prog_compiler_static='-Bstatic' | |
9738 | lt_prog_compiler_wl='-Qoption ld ' | |
9739 | ;; | |
9740 | *Sun\ C*) | |
9741 | # Sun C 5.9 | |
9742 | lt_prog_compiler_pic='-KPIC' | |
9743 | lt_prog_compiler_static='-Bstatic' | |
9744 | lt_prog_compiler_wl='-Wl,' | |
9745 | ;; | |
9746 | *Intel*\ [CF]*Compiler*) | |
9747 | lt_prog_compiler_wl='-Wl,' | |
9748 | lt_prog_compiler_pic='-fPIC' | |
9749 | lt_prog_compiler_static='-static' | |
9750 | ;; | |
9751 | *Portland\ Group*) | |
9752 | lt_prog_compiler_wl='-Wl,' | |
9753 | lt_prog_compiler_pic='-fpic' | |
9754 | lt_prog_compiler_static='-Bstatic' | |
9755 | ;; | |
9756 | esac | |
9757 | ;; | |
9758 | esac | |
9759 | ;; | |
9c60689e | 9760 | |
a243b558 JF |
9761 | newsos6) |
9762 | lt_prog_compiler_pic='-KPIC' | |
9763 | lt_prog_compiler_static='-Bstatic' | |
9764 | ;; | |
9c60689e | 9765 | |
a243b558 JF |
9766 | *nto* | *qnx*) |
9767 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9768 | # it will coredump. | |
9769 | lt_prog_compiler_pic='-fPIC -shared' | |
9770 | ;; | |
9c60689e | 9771 | |
a243b558 JF |
9772 | osf3* | osf4* | osf5*) |
9773 | lt_prog_compiler_wl='-Wl,' | |
9774 | # All OSF/1 code is PIC. | |
9775 | lt_prog_compiler_static='-non_shared' | |
9776 | ;; | |
9c60689e | 9777 | |
a243b558 JF |
9778 | rdos*) |
9779 | lt_prog_compiler_static='-non_shared' | |
9780 | ;; | |
9c60689e | 9781 | |
a243b558 JF |
9782 | solaris*) |
9783 | lt_prog_compiler_pic='-KPIC' | |
9784 | lt_prog_compiler_static='-Bstatic' | |
9785 | case $cc_basename in | |
9786 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
9787 | lt_prog_compiler_wl='-Qoption ld ';; | |
9788 | *) | |
9789 | lt_prog_compiler_wl='-Wl,';; | |
9790 | esac | |
9791 | ;; | |
9c60689e | 9792 | |
a243b558 JF |
9793 | sunos4*) |
9794 | lt_prog_compiler_wl='-Qoption ld ' | |
9795 | lt_prog_compiler_pic='-PIC' | |
9796 | lt_prog_compiler_static='-Bstatic' | |
9797 | ;; | |
9c60689e | 9798 | |
a243b558 JF |
9799 | sysv4 | sysv4.2uw2* | sysv4.3*) |
9800 | lt_prog_compiler_wl='-Wl,' | |
9801 | lt_prog_compiler_pic='-KPIC' | |
9802 | lt_prog_compiler_static='-Bstatic' | |
9803 | ;; | |
9c60689e | 9804 | |
a243b558 | 9805 | sysv4*MP*) |
9d54db95 | 9806 | if test -d /usr/nec; then |
a243b558 JF |
9807 | lt_prog_compiler_pic='-Kconform_pic' |
9808 | lt_prog_compiler_static='-Bstatic' | |
9809 | fi | |
9810 | ;; | |
9c60689e | 9811 | |
a243b558 JF |
9812 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
9813 | lt_prog_compiler_wl='-Wl,' | |
9814 | lt_prog_compiler_pic='-KPIC' | |
9815 | lt_prog_compiler_static='-Bstatic' | |
9816 | ;; | |
9c60689e | 9817 | |
a243b558 JF |
9818 | unicos*) |
9819 | lt_prog_compiler_wl='-Wl,' | |
9820 | lt_prog_compiler_can_build_shared=no | |
9821 | ;; | |
9c60689e | 9822 | |
a243b558 JF |
9823 | uts4*) |
9824 | lt_prog_compiler_pic='-pic' | |
9825 | lt_prog_compiler_static='-Bstatic' | |
9826 | ;; | |
9c60689e | 9827 | |
a243b558 JF |
9828 | *) |
9829 | lt_prog_compiler_can_build_shared=no | |
9830 | ;; | |
9831 | esac | |
9832 | fi | |
9c60689e | 9833 | |
a243b558 | 9834 | case $host_os in |
9d54db95 | 9835 | # For platforms that do not support PIC, -DPIC is meaningless: |
a243b558 JF |
9836 | *djgpp*) |
9837 | lt_prog_compiler_pic= | |
9838 | ;; | |
9839 | *) | |
9840 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9841 | ;; | |
9842 | esac | |
9c60689e | 9843 | |
a243b558 JF |
9844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9845 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
9846 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
9847 | $as_echo_n "(cached) " >&6 | |
9848 | else | |
9849 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
9850 | fi | |
9851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
9852 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
9853 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
9c60689e | 9854 | |
a243b558 JF |
9855 | # |
9856 | # Check to make sure the PIC flag actually works. | |
9857 | # | |
9858 | if test -n "$lt_prog_compiler_pic"; then | |
9859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
9860 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
9861 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
9862 | $as_echo_n "(cached) " >&6 | |
9863 | else | |
9864 | lt_cv_prog_compiler_pic_works=no | |
9865 | ac_outfile=conftest.$ac_objext | |
9866 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9d54db95 | 9867 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
a243b558 JF |
9868 | # Insert the option either (1) after the last *FLAGS variable, or |
9869 | # (2) before a word containing "conftest.", or (3) at the end. | |
9870 | # Note that $ac_compile itself does not contain backslashes and begins | |
9871 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9872 | # The option is referenced via a variable to avoid confusing sed. | |
9873 | lt_compile=`echo "$ac_compile" | $SED \ | |
9874 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9875 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9876 | -e 's:$: $lt_compiler_flag:'` | |
9877 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9878 | (eval "$lt_compile" 2>conftest.err) | |
9879 | ac_status=$? | |
9880 | cat conftest.err >&5 | |
9881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9882 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9883 | # The compiler can only warn and ignore the option if not recognized | |
9884 | # So say no if there are warnings other than the usual output. | |
9885 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9886 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9887 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9888 | lt_cv_prog_compiler_pic_works=yes | |
9889 | fi | |
9890 | fi | |
00a96142 | 9891 | $RM -r conftest* |
9c60689e | 9892 | |
a243b558 JF |
9893 | fi |
9894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
9895 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
9c60689e | 9896 | |
9d54db95 | 9897 | if test yes = "$lt_cv_prog_compiler_pic_works"; then |
a243b558 JF |
9898 | case $lt_prog_compiler_pic in |
9899 | "" | " "*) ;; | |
9900 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9901 | esac | |
9902 | else | |
9903 | lt_prog_compiler_pic= | |
9904 | lt_prog_compiler_can_build_shared=no | |
9905 | fi | |
9c60689e | 9906 | |
a243b558 | 9907 | fi |
9c60689e DWT |
9908 | |
9909 | ||
9910 | ||
9911 | ||
9912 | ||
9913 | ||
9c60689e DWT |
9914 | |
9915 | ||
9916 | ||
9917 | ||
9918 | ||
a243b558 JF |
9919 | # |
9920 | # Check to make sure the static flag actually works. | |
9921 | # | |
9922 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
9923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9924 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9925 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
9926 | $as_echo_n "(cached) " >&6 | |
9927 | else | |
9928 | lt_cv_prog_compiler_static_works=no | |
9d54db95 | 9929 | save_LDFLAGS=$LDFLAGS |
a243b558 JF |
9930 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
9931 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9932 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9933 | # The linker can only warn and ignore the option if not recognized | |
9934 | # So say no if there are warnings | |
9935 | if test -s conftest.err; then | |
9936 | # Append any errors to the config.log. | |
9937 | cat conftest.err 1>&5 | |
9938 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9939 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9940 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9941 | lt_cv_prog_compiler_static_works=yes | |
9942 | fi | |
9943 | else | |
9944 | lt_cv_prog_compiler_static_works=yes | |
9945 | fi | |
9946 | fi | |
9947 | $RM -r conftest* | |
9d54db95 | 9948 | LDFLAGS=$save_LDFLAGS |
9c60689e | 9949 | |
a243b558 JF |
9950 | fi |
9951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9952 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
9c60689e | 9953 | |
9d54db95 | 9954 | if test yes = "$lt_cv_prog_compiler_static_works"; then |
a243b558 | 9955 | : |
9c60689e | 9956 | else |
a243b558 | 9957 | lt_prog_compiler_static= |
9c60689e | 9958 | fi |
9c60689e | 9959 | |
9c60689e | 9960 | |
9c60689e | 9961 | |
9c60689e | 9962 | |
9c60689e | 9963 | |
9c60689e | 9964 | |
9c60689e | 9965 | |
a243b558 JF |
9966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9967 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9968 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9969 | $as_echo_n "(cached) " >&6 | |
9970 | else | |
9971 | lt_cv_prog_compiler_c_o=no | |
9972 | $RM -r conftest 2>/dev/null | |
9973 | mkdir conftest | |
9974 | cd conftest | |
9975 | mkdir out | |
9976 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9c60689e | 9977 | |
a243b558 JF |
9978 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9979 | # Insert the option either (1) after the last *FLAGS variable, or | |
9980 | # (2) before a word containing "conftest.", or (3) at the end. | |
9981 | # Note that $ac_compile itself does not contain backslashes and begins | |
9982 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9983 | lt_compile=`echo "$ac_compile" | $SED \ | |
9984 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9985 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9986 | -e 's:$: $lt_compiler_flag:'` | |
9987 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9988 | (eval "$lt_compile" 2>out/conftest.err) | |
9989 | ac_status=$? | |
9990 | cat out/conftest.err >&5 | |
9991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9992 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9993 | then | |
9994 | # The compiler can only warn and ignore the option if not recognized | |
9995 | # So say no if there are warnings | |
9996 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9997 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9998 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9999 | lt_cv_prog_compiler_c_o=yes | |
10000 | fi | |
10001 | fi | |
10002 | chmod u+w . 2>&5 | |
00a96142 | 10003 | $RM -r conftest* |
a243b558 JF |
10004 | # SGI C++ compiler will create directory out/ii_files/ for |
10005 | # template instantiation | |
10006 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10007 | $RM out/* && rmdir out | |
10008 | cd .. | |
10009 | $RM -r conftest | |
00a96142 | 10010 | $RM -r conftest* |
9c60689e | 10011 | |
a243b558 JF |
10012 | fi |
10013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
10014 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9c60689e | 10015 | |
ee134472 | 10016 | |
ee134472 | 10017 | |
ee134472 | 10018 | |
ee134472 | 10019 | |
9c60689e | 10020 | |
a243b558 JF |
10021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
10022 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
10023 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
10024 | $as_echo_n "(cached) " >&6 | |
10025 | else | |
10026 | lt_cv_prog_compiler_c_o=no | |
10027 | $RM -r conftest 2>/dev/null | |
10028 | mkdir conftest | |
10029 | cd conftest | |
10030 | mkdir out | |
10031 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9c60689e | 10032 | |
a243b558 JF |
10033 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
10034 | # Insert the option either (1) after the last *FLAGS variable, or | |
10035 | # (2) before a word containing "conftest.", or (3) at the end. | |
10036 | # Note that $ac_compile itself does not contain backslashes and begins | |
10037 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10038 | lt_compile=`echo "$ac_compile" | $SED \ | |
10039 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10040 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10041 | -e 's:$: $lt_compiler_flag:'` | |
10042 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
10043 | (eval "$lt_compile" 2>out/conftest.err) | |
10044 | ac_status=$? | |
10045 | cat out/conftest.err >&5 | |
10046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10047 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
10048 | then | |
10049 | # The compiler can only warn and ignore the option if not recognized | |
10050 | # So say no if there are warnings | |
10051 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
10052 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
10053 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10054 | lt_cv_prog_compiler_c_o=yes | |
10055 | fi | |
10056 | fi | |
10057 | chmod u+w . 2>&5 | |
00a96142 | 10058 | $RM -r conftest* |
a243b558 JF |
10059 | # SGI C++ compiler will create directory out/ii_files/ for |
10060 | # template instantiation | |
10061 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10062 | $RM out/* && rmdir out | |
10063 | cd .. | |
10064 | $RM -r conftest | |
00a96142 | 10065 | $RM -r conftest* |
9c60689e | 10066 | |
a243b558 JF |
10067 | fi |
10068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
10069 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9c60689e | 10070 | |
9c60689e | 10071 | |
a243b558 JF |
10072 | |
10073 | ||
9d54db95 JF |
10074 | hard_links=nottested |
10075 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then | |
a243b558 JF |
10076 | # do not overwrite the value of need_locks provided by the user |
10077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
10078 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
10079 | hard_links=yes | |
00a96142 | 10080 | $RM -r conftest* |
a243b558 JF |
10081 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
10082 | touch conftest.a | |
10083 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
10084 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
10086 | $as_echo "$hard_links" >&6; } | |
9d54db95 JF |
10087 | if test no = "$hard_links"; then |
10088 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 | |
10089 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} | |
a243b558 | 10090 | need_locks=warn |
9c60689e | 10091 | fi |
a243b558 JF |
10092 | else |
10093 | need_locks=no | |
10094 | fi | |
9c60689e | 10095 | |
ee134472 | 10096 | |
9c60689e | 10097 | |
9c60689e | 10098 | |
9c60689e | 10099 | |
a243b558 JF |
10100 | |
10101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
10102 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
10103 | ||
10104 | runpath_var= | |
10105 | allow_undefined_flag= | |
10106 | always_export_symbols=no | |
10107 | archive_cmds= | |
10108 | archive_expsym_cmds= | |
10109 | compiler_needs_object=no | |
10110 | enable_shared_with_static_runtimes=no | |
10111 | export_dynamic_flag_spec= | |
10112 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
10113 | hardcode_automatic=no | |
10114 | hardcode_direct=no | |
10115 | hardcode_direct_absolute=no | |
10116 | hardcode_libdir_flag_spec= | |
10117 | hardcode_libdir_separator= | |
10118 | hardcode_minus_L=no | |
10119 | hardcode_shlibpath_var=unsupported | |
10120 | inherit_rpath=no | |
10121 | link_all_deplibs=unknown | |
10122 | module_cmds= | |
10123 | module_expsym_cmds= | |
10124 | old_archive_from_new_cmds= | |
10125 | old_archive_from_expsyms_cmds= | |
10126 | thread_safe_flag_spec= | |
10127 | whole_archive_flag_spec= | |
10128 | # include_expsyms should be a list of space-separated symbols to be *always* | |
10129 | # included in the symbol list | |
10130 | include_expsyms= | |
10131 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9d54db95 JF |
10132 | # it will be wrapped by ' (' and ')$', so one must not match beginning or |
10133 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', | |
10134 | # as well as any symbol that contains 'd'. | |
a243b558 JF |
10135 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
10136 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
10137 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
10138 | # the symbol is explicitly referenced. Since portable code cannot | |
10139 | # rely on this symbol name, it's probably fine to never include it in | |
10140 | # preloaded symbol tables. | |
10141 | # Exclude shared library initialization/finalization symbols. | |
10142 | extract_expsyms_cmds= | |
10143 | ||
9c60689e | 10144 | case $host_os in |
a243b558 JF |
10145 | cygwin* | mingw* | pw32* | cegcc*) |
10146 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
10147 | # When not using gcc, we currently assume that we are using | |
10148 | # Microsoft Visual C++. | |
9d54db95 | 10149 | if test yes != "$GCC"; then |
a243b558 JF |
10150 | with_gnu_ld=no |
10151 | fi | |
9c60689e | 10152 | ;; |
a243b558 JF |
10153 | interix*) |
10154 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
10155 | with_gnu_ld=yes | |
10156 | ;; | |
9d54db95 | 10157 | openbsd* | bitrig*) |
a243b558 | 10158 | with_gnu_ld=no |
9c60689e DWT |
10159 | ;; |
10160 | esac | |
9c60689e | 10161 | |
a243b558 | 10162 | ld_shlibs=yes |
ee134472 | 10163 | |
a243b558 JF |
10164 | # On some targets, GNU ld is compatible enough with the native linker |
10165 | # that we're better off using the native interface for both. | |
10166 | lt_use_gnu_ld_interface=no | |
9d54db95 | 10167 | if test yes = "$with_gnu_ld"; then |
a243b558 JF |
10168 | case $host_os in |
10169 | aix*) | |
10170 | # The AIX port of GNU ld has always aspired to compatibility | |
10171 | # with the native linker. However, as the warning in the GNU ld | |
10172 | # block says, versions before 2.19.5* couldn't really create working | |
10173 | # shared libraries, regardless of the interface used. | |
10174 | case `$LD -v 2>&1` in | |
10175 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
10176 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
10177 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
10178 | *) | |
10179 | lt_use_gnu_ld_interface=yes | |
10180 | ;; | |
10181 | esac | |
10182 | ;; | |
10183 | *) | |
10184 | lt_use_gnu_ld_interface=yes | |
10185 | ;; | |
10186 | esac | |
10187 | fi | |
9c60689e | 10188 | |
9d54db95 | 10189 | if test yes = "$lt_use_gnu_ld_interface"; then |
a243b558 | 10190 | # If archive_cmds runs LD, not CC, wlarc should be empty |
9d54db95 | 10191 | wlarc='$wl' |
9c60689e | 10192 | |
a243b558 JF |
10193 | # Set some defaults for GNU ld with shared library support. These |
10194 | # are reset later if shared libraries are not supported. Putting them | |
10195 | # here allows them to be overridden if necessary. | |
10196 | runpath_var=LD_RUN_PATH | |
9d54db95 JF |
10197 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
10198 | export_dynamic_flag_spec='$wl--export-dynamic' | |
a243b558 JF |
10199 | # ancient GNU ld didn't support --whole-archive et. al. |
10200 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9d54db95 | 10201 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
a243b558 JF |
10202 | else |
10203 | whole_archive_flag_spec= | |
10204 | fi | |
10205 | supports_anon_versioning=no | |
9d54db95 | 10206 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
a243b558 JF |
10207 | *GNU\ gold*) supports_anon_versioning=yes ;; |
10208 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
10209 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
10210 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
10211 | *\ 2.11.*) ;; # other 2.11 versions | |
10212 | *) supports_anon_versioning=yes ;; | |
10213 | esac | |
ee134472 | 10214 | |
a243b558 JF |
10215 | # See if GNU ld supports shared libraries. |
10216 | case $host_os in | |
10217 | aix[3-9]*) | |
10218 | # On AIX/PPC, the GNU linker is very broken | |
9d54db95 | 10219 | if test ia64 != "$host_cpu"; then |
a243b558 JF |
10220 | ld_shlibs=no |
10221 | cat <<_LT_EOF 1>&2 | |
ee134472 | 10222 | |
a243b558 JF |
10223 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
10224 | *** to be unable to reliably create shared libraries on AIX. | |
10225 | *** Therefore, libtool is disabling shared libraries support. If you | |
10226 | *** really care for shared libraries, you may want to install binutils | |
10227 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
10228 | *** You will then need to restart the configuration process. | |
9c60689e | 10229 | |
a243b558 JF |
10230 | _LT_EOF |
10231 | fi | |
10232 | ;; | |
9c60689e | 10233 | |
a243b558 JF |
10234 | amigaos*) |
10235 | case $host_cpu in | |
10236 | powerpc) | |
10237 | # see comment about AmigaOS4 .so support | |
9d54db95 | 10238 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
a243b558 JF |
10239 | archive_expsym_cmds='' |
10240 | ;; | |
10241 | m68k) | |
10242 | 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)' | |
10243 | hardcode_libdir_flag_spec='-L$libdir' | |
10244 | hardcode_minus_L=yes | |
10245 | ;; | |
10246 | esac | |
10247 | ;; | |
9c60689e | 10248 | |
a243b558 JF |
10249 | beos*) |
10250 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10251 | allow_undefined_flag=unsupported | |
10252 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
10253 | # support --undefined. This deserves some investigation. FIXME | |
9d54db95 | 10254 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
a243b558 JF |
10255 | else |
10256 | ld_shlibs=no | |
10257 | fi | |
10258 | ;; | |
9c60689e | 10259 | |
a243b558 JF |
10260 | cygwin* | mingw* | pw32* | cegcc*) |
10261 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
10262 | # as there is no search path for DLLs. | |
10263 | hardcode_libdir_flag_spec='-L$libdir' | |
9d54db95 | 10264 | export_dynamic_flag_spec='$wl--export-all-symbols' |
a243b558 JF |
10265 | allow_undefined_flag=unsupported |
10266 | always_export_symbols=no | |
10267 | enable_shared_with_static_runtimes=yes | |
10268 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | |
10269 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
9c60689e | 10270 | |
a243b558 | 10271 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
9d54db95 JF |
10272 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
10273 | # If the export-symbols file already is a .def file, use it as | |
10274 | # is; otherwise, prepend EXPORTS... | |
10275 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
10276 | cp $export_symbols $output_objdir/$soname.def; | |
10277 | else | |
10278 | echo EXPORTS > $output_objdir/$soname.def; | |
10279 | cat $export_symbols >> $output_objdir/$soname.def; | |
10280 | fi~ | |
10281 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
a243b558 JF |
10282 | else |
10283 | ld_shlibs=no | |
10284 | fi | |
10285 | ;; | |
9c60689e | 10286 | |
a243b558 | 10287 | haiku*) |
9d54db95 | 10288 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
a243b558 JF |
10289 | link_all_deplibs=yes |
10290 | ;; | |
9c60689e | 10291 | |
9d54db95 JF |
10292 | os2*) |
10293 | hardcode_libdir_flag_spec='-L$libdir' | |
10294 | hardcode_minus_L=yes | |
10295 | allow_undefined_flag=unsupported | |
10296 | shrext_cmds=.dll | |
10297 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
10298 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
10299 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
10300 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
10301 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
10302 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
10303 | emximp -o $lib $output_objdir/$libname.def' | |
10304 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
10305 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
10306 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
10307 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
10308 | prefix_cmds="$SED"~ | |
10309 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
10310 | prefix_cmds="$prefix_cmds -e 1d"; | |
10311 | fi~ | |
10312 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
10313 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
10314 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
10315 | emximp -o $lib $output_objdir/$libname.def' | |
10316 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
10317 | enable_shared_with_static_runtimes=yes | |
10318 | ;; | |
10319 | ||
a243b558 JF |
10320 | interix[3-9]*) |
10321 | hardcode_direct=no | |
10322 | hardcode_shlibpath_var=no | |
9d54db95 JF |
10323 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
10324 | export_dynamic_flag_spec='$wl-E' | |
a243b558 JF |
10325 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
10326 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
10327 | # default) and relocated if they conflict, which is a slow very memory | |
10328 | # consuming and fragmenting process. To avoid this, we pick a random, | |
10329 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
10330 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9d54db95 JF |
10331 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
10332 | 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' | |
a243b558 | 10333 | ;; |
9c60689e | 10334 | |
a243b558 JF |
10335 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
10336 | tmp_diet=no | |
9d54db95 | 10337 | if test linux-dietlibc = "$host_os"; then |
a243b558 JF |
10338 | case $cc_basename in |
10339 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
10340 | esac | |
10341 | fi | |
10342 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9d54db95 | 10343 | && test no = "$tmp_diet" |
a243b558 JF |
10344 | then |
10345 | tmp_addflag=' $pic_flag' | |
10346 | tmp_sharedflag='-shared' | |
10347 | case $cc_basename,$host_cpu in | |
10348 | pgcc*) # Portland Group C compiler | |
9d54db95 | 10349 | 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' |
a243b558 JF |
10350 | tmp_addflag=' $pic_flag' |
10351 | ;; | |
10352 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
10353 | # Portland Group f77 and f90 compilers | |
9d54db95 | 10354 | 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' |
a243b558 JF |
10355 | tmp_addflag=' $pic_flag -Mnomain' ;; |
10356 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
10357 | tmp_addflag=' -i_dynamic' ;; | |
10358 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
10359 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
10360 | ifc* | ifort*) # Intel Fortran compiler | |
10361 | tmp_addflag=' -nofor_main' ;; | |
10362 | lf95*) # Lahey Fortran 8.1 | |
10363 | whole_archive_flag_spec= | |
10364 | tmp_sharedflag='--shared' ;; | |
9d54db95 JF |
10365 | nagfor*) # NAGFOR 5.3 |
10366 | tmp_sharedflag='-Wl,-shared' ;; | |
a243b558 JF |
10367 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
10368 | tmp_sharedflag='-qmkshrobj' | |
10369 | tmp_addflag= ;; | |
10370 | nvcc*) # Cuda Compiler Driver 2.2 | |
9d54db95 | 10371 | 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' |
a243b558 JF |
10372 | compiler_needs_object=yes |
10373 | ;; | |
10374 | esac | |
10375 | case `$CC -V 2>&1 | sed 5q` in | |
10376 | *Sun\ C*) # Sun C 5.9 | |
9d54db95 | 10377 | 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' |
a243b558 JF |
10378 | compiler_needs_object=yes |
10379 | tmp_sharedflag='-G' ;; | |
10380 | *Sun\ F*) # Sun Fortran 8.3 | |
10381 | tmp_sharedflag='-G' ;; | |
10382 | esac | |
9d54db95 | 10383 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9c60689e | 10384 | |
9d54db95 | 10385 | if test yes = "$supports_anon_versioning"; then |
a243b558 | 10386 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
9d54db95 JF |
10387 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
10388 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10389 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
a243b558 | 10390 | fi |
9c60689e | 10391 | |
a243b558 | 10392 | case $cc_basename in |
9d54db95 JF |
10393 | tcc*) |
10394 | export_dynamic_flag_spec='-rdynamic' | |
10395 | ;; | |
a243b558 JF |
10396 | xlf* | bgf* | bgxlf* | mpixlf*) |
10397 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
10398 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9d54db95 | 10399 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
a243b558 | 10400 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
9d54db95 | 10401 | if test yes = "$supports_anon_versioning"; then |
a243b558 | 10402 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
9d54db95 JF |
10403 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
10404 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10405 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
a243b558 JF |
10406 | fi |
10407 | ;; | |
10408 | esac | |
10409 | else | |
10410 | ld_shlibs=no | |
10411 | fi | |
10412 | ;; | |
9c60689e | 10413 | |
a243b558 JF |
10414 | netbsd*) |
10415 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10416 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
10417 | wlarc= | |
10418 | else | |
9d54db95 JF |
10419 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
10420 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
a243b558 JF |
10421 | fi |
10422 | ;; | |
9c60689e | 10423 | |
a243b558 JF |
10424 | solaris*) |
10425 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
10426 | ld_shlibs=no | |
10427 | cat <<_LT_EOF 1>&2 | |
9c60689e | 10428 | |
a243b558 JF |
10429 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
10430 | *** create shared libraries on Solaris systems. Therefore, libtool | |
10431 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10432 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
10433 | *** your PATH or compiler configuration so that the native linker is | |
10434 | *** used, and then restart. | |
9c60689e | 10435 | |
a243b558 JF |
10436 | _LT_EOF |
10437 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9d54db95 JF |
10438 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
10439 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
a243b558 JF |
10440 | else |
10441 | ld_shlibs=no | |
10442 | fi | |
10443 | ;; | |
9c60689e | 10444 | |
a243b558 JF |
10445 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
10446 | case `$LD -v 2>&1` in | |
10447 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
10448 | ld_shlibs=no | |
10449 | cat <<_LT_EOF 1>&2 | |
9c60689e | 10450 | |
9d54db95 | 10451 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
a243b558 JF |
10452 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
10453 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10454 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10455 | *** your PATH or compiler configuration so that the native linker is | |
10456 | *** used, and then restart. | |
9c60689e | 10457 | |
a243b558 JF |
10458 | _LT_EOF |
10459 | ;; | |
10460 | *) | |
10461 | # For security reasons, it is highly recommended that you always | |
10462 | # use absolute paths for naming shared libraries, and exclude the | |
10463 | # DT_RUNPATH tag from executables and libraries. But doing so | |
10464 | # requires that you compile everything twice, which is a pain. | |
10465 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9d54db95 JF |
10466 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
10467 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
10468 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
a243b558 JF |
10469 | else |
10470 | ld_shlibs=no | |
10471 | fi | |
10472 | ;; | |
10473 | esac | |
10474 | ;; | |
9c60689e | 10475 | |
a243b558 JF |
10476 | sunos4*) |
10477 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10478 | wlarc= | |
10479 | hardcode_direct=yes | |
10480 | hardcode_shlibpath_var=no | |
10481 | ;; | |
9c60689e | 10482 | |
a243b558 JF |
10483 | *) |
10484 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9d54db95 JF |
10485 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
10486 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
a243b558 JF |
10487 | else |
10488 | ld_shlibs=no | |
10489 | fi | |
10490 | ;; | |
10491 | esac | |
9c60689e | 10492 | |
9d54db95 | 10493 | if test no = "$ld_shlibs"; then |
a243b558 JF |
10494 | runpath_var= |
10495 | hardcode_libdir_flag_spec= | |
10496 | export_dynamic_flag_spec= | |
10497 | whole_archive_flag_spec= | |
10498 | fi | |
10499 | else | |
10500 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10501 | case $host_os in | |
10502 | aix3*) | |
10503 | allow_undefined_flag=unsupported | |
10504 | always_export_symbols=yes | |
10505 | 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' | |
10506 | # Note: this linker hardcodes the directories in LIBPATH if there | |
10507 | # are no directories specified by -L. | |
10508 | hardcode_minus_L=yes | |
9d54db95 | 10509 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
a243b558 JF |
10510 | # Neither direct hardcoding nor static linking is supported with a |
10511 | # broken collect2. | |
10512 | hardcode_direct=unsupported | |
10513 | fi | |
10514 | ;; | |
9c60689e | 10515 | |
a243b558 | 10516 | aix[4-9]*) |
9d54db95 | 10517 | if test ia64 = "$host_cpu"; then |
a243b558 JF |
10518 | # On IA64, the linker does run time linking by default, so we don't |
10519 | # have to do anything special. | |
10520 | aix_use_runtimelinking=no | |
10521 | exp_sym_flag='-Bexport' | |
9d54db95 | 10522 | no_entry_flag= |
a243b558 JF |
10523 | else |
10524 | # If we're using GNU nm, then we don't want the "-C" option. | |
9d54db95 JF |
10525 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
10526 | # Without the "-l" option, or with the "-B" option, AIX nm treats | |
10527 | # weak defined symbols like other global defined symbols, whereas | |
10528 | # GNU nm marks them as "W". | |
10529 | # While the 'weak' keyword is ignored in the Export File, we need | |
10530 | # it in the Import File for the 'aix-soname' feature, so we have | |
10531 | # to replace the "-B" option with "-P" for AIX nm. | |
a243b558 | 10532 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
9d54db95 | 10533 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' |
a243b558 | 10534 | else |
9d54db95 | 10535 | export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' |
a243b558 JF |
10536 | fi |
10537 | aix_use_runtimelinking=no | |
9c60689e | 10538 | |
a243b558 JF |
10539 | # Test if we are trying to use run time linking or normal |
10540 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9d54db95 JF |
10541 | # have runtime linking enabled, and use it for executables. |
10542 | # For shared libraries, we enable/disable runtime linking | |
10543 | # depending on the kind of the shared library created - | |
10544 | # when "with_aix_soname,aix_use_runtimelinking" is: | |
10545 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
10546 | # "aix,yes" lib.so shared, rtl:yes, for executables | |
10547 | # lib.a static archive | |
10548 | # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
10549 | # lib.a(lib.so.V) shared, rtl:no, for executables | |
10550 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
10551 | # lib.a(lib.so.V) shared, rtl:no | |
10552 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
10553 | # lib.a static archive | |
a243b558 JF |
10554 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
10555 | for ld_flag in $LDFLAGS; do | |
9d54db95 | 10556 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
a243b558 JF |
10557 | aix_use_runtimelinking=yes |
10558 | break | |
10559 | fi | |
10560 | done | |
9d54db95 JF |
10561 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
10562 | # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
10563 | # so we don't have lib.a shared libs to link our executables. | |
10564 | # We have to force runtime linking in this case. | |
10565 | aix_use_runtimelinking=yes | |
10566 | LDFLAGS="$LDFLAGS -Wl,-brtl" | |
10567 | fi | |
a243b558 JF |
10568 | ;; |
10569 | esac | |
9c60689e | 10570 | |
a243b558 JF |
10571 | exp_sym_flag='-bexport' |
10572 | no_entry_flag='-bnoentry' | |
10573 | fi | |
9c60689e | 10574 | |
a243b558 JF |
10575 | # When large executables or shared objects are built, AIX ld can |
10576 | # have problems creating the table of contents. If linking a library | |
10577 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10578 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10579 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9c60689e | 10580 | |
a243b558 JF |
10581 | archive_cmds='' |
10582 | hardcode_direct=yes | |
10583 | hardcode_direct_absolute=yes | |
10584 | hardcode_libdir_separator=':' | |
10585 | link_all_deplibs=yes | |
9d54db95 JF |
10586 | file_list_spec='$wl-f,' |
10587 | case $with_aix_soname,$aix_use_runtimelinking in | |
10588 | aix,*) ;; # traditional, no import file | |
10589 | svr4,* | *,yes) # use import file | |
10590 | # The Import File defines what to hardcode. | |
10591 | hardcode_direct=no | |
10592 | hardcode_direct_absolute=no | |
10593 | ;; | |
10594 | esac | |
9c60689e | 10595 | |
9d54db95 | 10596 | if test yes = "$GCC"; then |
a243b558 JF |
10597 | case $host_os in aix4.[012]|aix4.[012].*) |
10598 | # We only want to do this on AIX 4.2 and lower, the check | |
10599 | # below for broken collect2 doesn't work under 4.3+ | |
9d54db95 | 10600 | collect2name=`$CC -print-prog-name=collect2` |
a243b558 JF |
10601 | if test -f "$collect2name" && |
10602 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10603 | then | |
10604 | # We have reworked collect2 | |
10605 | : | |
10606 | else | |
10607 | # We have old collect2 | |
10608 | hardcode_direct=unsupported | |
10609 | # It fails to find uninstalled libraries when the uninstalled | |
10610 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10611 | # to unsupported forces relinking | |
10612 | hardcode_minus_L=yes | |
10613 | hardcode_libdir_flag_spec='-L$libdir' | |
10614 | hardcode_libdir_separator= | |
10615 | fi | |
10616 | ;; | |
10617 | esac | |
10618 | shared_flag='-shared' | |
9d54db95 JF |
10619 | if test yes = "$aix_use_runtimelinking"; then |
10620 | shared_flag="$shared_flag "'$wl-G' | |
a243b558 | 10621 | fi |
9d54db95 JF |
10622 | # Need to ensure runtime linking is disabled for the traditional |
10623 | # shared library, or the linker may eventually find shared libraries | |
10624 | # /with/ Import File - we do not want to mix them. | |
10625 | shared_flag_aix='-shared' | |
10626 | shared_flag_svr4='-shared $wl-G' | |
a243b558 JF |
10627 | else |
10628 | # not using gcc | |
9d54db95 | 10629 | if test ia64 = "$host_cpu"; then |
a243b558 JF |
10630 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
10631 | # chokes on -Wl,-G. The following line is correct: | |
10632 | shared_flag='-G' | |
10633 | else | |
9d54db95 JF |
10634 | if test yes = "$aix_use_runtimelinking"; then |
10635 | shared_flag='$wl-G' | |
a243b558 | 10636 | else |
9d54db95 | 10637 | shared_flag='$wl-bM:SRE' |
a243b558 | 10638 | fi |
9d54db95 JF |
10639 | shared_flag_aix='$wl-bM:SRE' |
10640 | shared_flag_svr4='$wl-G' | |
a243b558 JF |
10641 | fi |
10642 | fi | |
9c60689e | 10643 | |
9d54db95 | 10644 | export_dynamic_flag_spec='$wl-bexpall' |
a243b558 JF |
10645 | # It seems that -bexpall does not export symbols beginning with |
10646 | # underscore (_), so it is better to generate a list of symbols to export. | |
10647 | always_export_symbols=yes | |
9d54db95 | 10648 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
a243b558 JF |
10649 | # Warning - without using the other runtime loading flags (-brtl), |
10650 | # -berok will link without error, but may produce a broken library. | |
10651 | allow_undefined_flag='-berok' | |
10652 | # Determine the default libpath from the value encoded in an | |
10653 | # empty executable. | |
9d54db95 | 10654 | if test set = "${lt_cv_aix_libpath+set}"; then |
a243b558 | 10655 | aix_libpath=$lt_cv_aix_libpath |
9c60689e | 10656 | else |
a243b558 | 10657 | if ${lt_cv_aix_libpath_+:} false; then : |
9c60689e DWT |
10658 | $as_echo_n "(cached) " >&6 |
10659 | else | |
a243b558 | 10660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9c60689e DWT |
10661 | /* end confdefs.h. */ |
10662 | ||
9c60689e DWT |
10663 | int |
10664 | main () | |
10665 | { | |
a243b558 | 10666 | |
9c60689e DWT |
10667 | ; |
10668 | return 0; | |
10669 | } | |
10670 | _ACEOF | |
10671 | if ac_fn_c_try_link "$LINENO"; then : | |
a243b558 JF |
10672 | |
10673 | lt_aix_libpath_sed=' | |
10674 | /Import File Strings/,/^$/ { | |
10675 | /^0/ { | |
10676 | s/^0 *\([^ ]*\) *$/\1/ | |
10677 | p | |
10678 | } | |
10679 | }' | |
10680 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10681 | # Check for a 64-bit object if we didn't find anything. | |
10682 | if test -z "$lt_cv_aix_libpath_"; then | |
10683 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10684 | fi | |
9c60689e DWT |
10685 | fi |
10686 | rm -f core conftest.err conftest.$ac_objext \ | |
10687 | conftest$ac_exeext conftest.$ac_ext | |
a243b558 | 10688 | if test -z "$lt_cv_aix_libpath_"; then |
9d54db95 | 10689 | lt_cv_aix_libpath_=/usr/lib:/lib |
a243b558 | 10690 | fi |
9c60689e DWT |
10691 | |
10692 | fi | |
10693 | ||
a243b558 JF |
10694 | aix_libpath=$lt_cv_aix_libpath_ |
10695 | fi | |
9c60689e | 10696 | |
9d54db95 JF |
10697 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
10698 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag | |
a243b558 | 10699 | else |
9d54db95 JF |
10700 | if test ia64 = "$host_cpu"; then |
10701 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' | |
a243b558 | 10702 | allow_undefined_flag="-z nodefs" |
9d54db95 | 10703 | 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" |
a243b558 JF |
10704 | else |
10705 | # Determine the default libpath from the value encoded in an | |
10706 | # empty executable. | |
9d54db95 | 10707 | if test set = "${lt_cv_aix_libpath+set}"; then |
a243b558 | 10708 | aix_libpath=$lt_cv_aix_libpath |
9c60689e | 10709 | else |
a243b558 | 10710 | if ${lt_cv_aix_libpath_+:} false; then : |
9c60689e DWT |
10711 | $as_echo_n "(cached) " >&6 |
10712 | else | |
a243b558 | 10713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9c60689e DWT |
10714 | /* end confdefs.h. */ |
10715 | ||
9c60689e DWT |
10716 | int |
10717 | main () | |
10718 | { | |
a243b558 | 10719 | |
9c60689e DWT |
10720 | ; |
10721 | return 0; | |
10722 | } | |
10723 | _ACEOF | |
10724 | if ac_fn_c_try_link "$LINENO"; then : | |
9c60689e | 10725 | |
a243b558 JF |
10726 | lt_aix_libpath_sed=' |
10727 | /Import File Strings/,/^$/ { | |
10728 | /^0/ { | |
10729 | s/^0 *\([^ ]*\) *$/\1/ | |
10730 | p | |
10731 | } | |
10732 | }' | |
10733 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10734 | # Check for a 64-bit object if we didn't find anything. | |
10735 | if test -z "$lt_cv_aix_libpath_"; then | |
10736 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10737 | fi | |
9c60689e DWT |
10738 | fi |
10739 | rm -f core conftest.err conftest.$ac_objext \ | |
10740 | conftest$ac_exeext conftest.$ac_ext | |
a243b558 | 10741 | if test -z "$lt_cv_aix_libpath_"; then |
9d54db95 | 10742 | lt_cv_aix_libpath_=/usr/lib:/lib |
a243b558 JF |
10743 | fi |
10744 | ||
9c60689e | 10745 | fi |
9c60689e | 10746 | |
a243b558 JF |
10747 | aix_libpath=$lt_cv_aix_libpath_ |
10748 | fi | |
10749 | ||
9d54db95 | 10750 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
a243b558 JF |
10751 | # Warning - without using the other run time loading flags, |
10752 | # -berok will link without error, but may produce a broken library. | |
9d54db95 JF |
10753 | no_undefined_flag=' $wl-bernotok' |
10754 | allow_undefined_flag=' $wl-berok' | |
10755 | if test yes = "$with_gnu_ld"; then | |
a243b558 | 10756 | # We only use this code for GNU lds that support --whole-archive. |
9d54db95 | 10757 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
a243b558 JF |
10758 | else |
10759 | # Exported symbols can be pulled into shared objects from archives | |
10760 | whole_archive_flag_spec='$convenience' | |
10761 | fi | |
10762 | archive_cmds_need_lc=yes | |
9d54db95 JF |
10763 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
10764 | # -brtl affects multiple linker settings, -berok does not and is overridden later | |
10765 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' | |
10766 | if test svr4 != "$with_aix_soname"; then | |
10767 | # This is similar to how AIX traditionally builds its shared libraries. | |
10768 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' | |
10769 | fi | |
10770 | if test aix != "$with_aix_soname"; then | |
10771 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' | |
10772 | else | |
10773 | # used by -dlpreopen to get the symbols | |
10774 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
10775 | fi | |
10776 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' | |
a243b558 JF |
10777 | fi |
10778 | fi | |
10779 | ;; | |
10780 | ||
10781 | amigaos*) | |
10782 | case $host_cpu in | |
10783 | powerpc) | |
10784 | # see comment about AmigaOS4 .so support | |
9d54db95 | 10785 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
a243b558 JF |
10786 | archive_expsym_cmds='' |
10787 | ;; | |
10788 | m68k) | |
10789 | 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)' | |
10790 | hardcode_libdir_flag_spec='-L$libdir' | |
10791 | hardcode_minus_L=yes | |
10792 | ;; | |
10793 | esac | |
10794 | ;; | |
10795 | ||
10796 | bsdi[45]*) | |
10797 | export_dynamic_flag_spec=-rdynamic | |
10798 | ;; | |
10799 | ||
10800 | cygwin* | mingw* | pw32* | cegcc*) | |
10801 | # When not using gcc, we currently assume that we are using | |
10802 | # Microsoft Visual C++. | |
10803 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10804 | # no search path for DLLs. | |
10805 | case $cc_basename in | |
10806 | cl*) | |
10807 | # Native MSVC | |
10808 | hardcode_libdir_flag_spec=' ' | |
10809 | allow_undefined_flag=unsupported | |
10810 | always_export_symbols=yes | |
10811 | file_list_spec='@' | |
10812 | # Tell ltmain to make .lib files, not .a files. | |
10813 | libext=lib | |
10814 | # Tell ltmain to make .dll files, not .so files. | |
9d54db95 | 10815 | shrext_cmds=.dll |
a243b558 | 10816 | # FIXME: Setting linknames here is a bad hack. |
9d54db95 JF |
10817 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
10818 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
10819 | cp "$export_symbols" "$output_objdir/$soname.def"; | |
10820 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
10821 | else | |
10822 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
10823 | fi~ | |
10824 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
10825 | linknames=' | |
a243b558 JF |
10826 | # The linker will not automatically build a static lib if we build a DLL. |
10827 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
10828 | enable_shared_with_static_runtimes=yes | |
10829 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
10830 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10831 | # Don't use ranlib | |
10832 | old_postinstall_cmds='chmod 644 $oldlib' | |
10833 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
9d54db95 JF |
10834 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
10835 | case $lt_outputfile in | |
10836 | *.exe|*.EXE) ;; | |
10837 | *) | |
10838 | lt_outputfile=$lt_outputfile.exe | |
10839 | lt_tool_outputfile=$lt_tool_outputfile.exe | |
10840 | ;; | |
10841 | esac~ | |
10842 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
10843 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
10844 | $RM "$lt_outputfile.manifest"; | |
10845 | fi' | |
a243b558 JF |
10846 | ;; |
10847 | *) | |
10848 | # Assume MSVC wrapper | |
10849 | hardcode_libdir_flag_spec=' ' | |
10850 | allow_undefined_flag=unsupported | |
10851 | # Tell ltmain to make .lib files, not .a files. | |
10852 | libext=lib | |
10853 | # Tell ltmain to make .dll files, not .so files. | |
9d54db95 | 10854 | shrext_cmds=.dll |
a243b558 JF |
10855 | # FIXME: Setting linknames here is a bad hack. |
10856 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
10857 | # The linker will automatically build a .lib file if we build a DLL. | |
10858 | old_archive_from_new_cmds='true' | |
10859 | # FIXME: Should let the user specify the lib program. | |
10860 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10861 | enable_shared_with_static_runtimes=yes | |
10862 | ;; | |
10863 | esac | |
10864 | ;; | |
10865 | ||
10866 | darwin* | rhapsody*) | |
10867 | ||
10868 | ||
10869 | archive_cmds_need_lc=no | |
10870 | hardcode_direct=no | |
10871 | hardcode_automatic=yes | |
10872 | hardcode_shlibpath_var=unsupported | |
9d54db95 JF |
10873 | if test yes = "$lt_cv_ld_force_load"; then |
10874 | 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\"`' | |
a243b558 JF |
10875 | |
10876 | else | |
10877 | whole_archive_flag_spec='' | |
10878 | fi | |
10879 | link_all_deplibs=yes | |
9d54db95 | 10880 | allow_undefined_flag=$_lt_dar_allow_undefined |
a243b558 | 10881 | case $cc_basename in |
9d54db95 | 10882 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
a243b558 JF |
10883 | *) _lt_dar_can_shared=$GCC ;; |
10884 | esac | |
9d54db95 | 10885 | if test yes = "$_lt_dar_can_shared"; then |
a243b558 | 10886 | output_verbose_link_cmd=func_echo_all |
9d54db95 JF |
10887 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
10888 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
10889 | 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" | |
10890 | 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" | |
a243b558 JF |
10891 | |
10892 | else | |
10893 | ld_shlibs=no | |
10894 | fi | |
10895 | ||
10896 | ;; | |
10897 | ||
10898 | dgux*) | |
10899 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10900 | hardcode_libdir_flag_spec='-L$libdir' | |
10901 | hardcode_shlibpath_var=no | |
10902 | ;; | |
10903 | ||
10904 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
10905 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10906 | # does not break anything, and helps significantly (at the cost of a little | |
10907 | # extra space). | |
10908 | freebsd2.2*) | |
10909 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10910 | hardcode_libdir_flag_spec='-R$libdir' | |
10911 | hardcode_direct=yes | |
10912 | hardcode_shlibpath_var=no | |
10913 | ;; | |
10914 | ||
10915 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
10916 | freebsd2.*) | |
10917 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10918 | hardcode_direct=yes | |
10919 | hardcode_minus_L=yes | |
10920 | hardcode_shlibpath_var=no | |
10921 | ;; | |
10922 | ||
10923 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10924 | freebsd* | dragonfly*) | |
10925 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10926 | hardcode_libdir_flag_spec='-R$libdir' | |
10927 | hardcode_direct=yes | |
10928 | hardcode_shlibpath_var=no | |
10929 | ;; | |
10930 | ||
10931 | hpux9*) | |
9d54db95 JF |
10932 | if test yes = "$GCC"; then |
10933 | archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' | |
a243b558 | 10934 | else |
9d54db95 | 10935 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
a243b558 | 10936 | fi |
9d54db95 | 10937 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
a243b558 JF |
10938 | hardcode_libdir_separator=: |
10939 | hardcode_direct=yes | |
10940 | ||
10941 | # hardcode_minus_L: Not really in the search PATH, | |
10942 | # but as the default location of the library. | |
10943 | hardcode_minus_L=yes | |
9d54db95 | 10944 | export_dynamic_flag_spec='$wl-E' |
a243b558 JF |
10945 | ;; |
10946 | ||
10947 | hpux10*) | |
9d54db95 JF |
10948 | if test yes,no = "$GCC,$with_gnu_ld"; then |
10949 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 JF |
10950 | else |
10951 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10952 | fi | |
9d54db95 JF |
10953 | if test no = "$with_gnu_ld"; then |
10954 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
a243b558 JF |
10955 | hardcode_libdir_separator=: |
10956 | hardcode_direct=yes | |
10957 | hardcode_direct_absolute=yes | |
9d54db95 | 10958 | export_dynamic_flag_spec='$wl-E' |
a243b558 JF |
10959 | # hardcode_minus_L: Not really in the search PATH, |
10960 | # but as the default location of the library. | |
10961 | hardcode_minus_L=yes | |
10962 | fi | |
10963 | ;; | |
10964 | ||
10965 | hpux11*) | |
9d54db95 | 10966 | if test yes,no = "$GCC,$with_gnu_ld"; then |
a243b558 JF |
10967 | case $host_cpu in |
10968 | hppa*64*) | |
9d54db95 | 10969 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
a243b558 JF |
10970 | ;; |
10971 | ia64*) | |
9d54db95 | 10972 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
a243b558 JF |
10973 | ;; |
10974 | *) | |
9d54db95 | 10975 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
a243b558 JF |
10976 | ;; |
10977 | esac | |
10978 | else | |
10979 | case $host_cpu in | |
10980 | hppa*64*) | |
9d54db95 | 10981 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
a243b558 JF |
10982 | ;; |
10983 | ia64*) | |
9d54db95 | 10984 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
a243b558 JF |
10985 | ;; |
10986 | *) | |
10987 | ||
10988 | # Older versions of the 11.00 compiler do not understand -b yet | |
10989 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10991 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10992 | if ${lt_cv_prog_compiler__b+:} false; then : | |
10993 | $as_echo_n "(cached) " >&6 | |
10994 | else | |
10995 | lt_cv_prog_compiler__b=no | |
9d54db95 | 10996 | save_LDFLAGS=$LDFLAGS |
a243b558 JF |
10997 | LDFLAGS="$LDFLAGS -b" |
10998 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10999 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
11000 | # The linker can only warn and ignore the option if not recognized | |
11001 | # So say no if there are warnings | |
11002 | if test -s conftest.err; then | |
11003 | # Append any errors to the config.log. | |
11004 | cat conftest.err 1>&5 | |
11005 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
11006 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11007 | if diff conftest.exp conftest.er2 >/dev/null; then | |
11008 | lt_cv_prog_compiler__b=yes | |
11009 | fi | |
11010 | else | |
11011 | lt_cv_prog_compiler__b=yes | |
11012 | fi | |
11013 | fi | |
11014 | $RM -r conftest* | |
9d54db95 | 11015 | LDFLAGS=$save_LDFLAGS |
a243b558 JF |
11016 | |
11017 | fi | |
11018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
11019 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
11020 | ||
9d54db95 JF |
11021 | if test yes = "$lt_cv_prog_compiler__b"; then |
11022 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 JF |
11023 | else |
11024 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
11025 | fi | |
11026 | ||
11027 | ;; | |
11028 | esac | |
11029 | fi | |
9d54db95 JF |
11030 | if test no = "$with_gnu_ld"; then |
11031 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
a243b558 JF |
11032 | hardcode_libdir_separator=: |
11033 | ||
11034 | case $host_cpu in | |
11035 | hppa*64*|ia64*) | |
11036 | hardcode_direct=no | |
11037 | hardcode_shlibpath_var=no | |
11038 | ;; | |
11039 | *) | |
11040 | hardcode_direct=yes | |
11041 | hardcode_direct_absolute=yes | |
9d54db95 | 11042 | export_dynamic_flag_spec='$wl-E' |
a243b558 JF |
11043 | |
11044 | # hardcode_minus_L: Not really in the search PATH, | |
11045 | # but as the default location of the library. | |
11046 | hardcode_minus_L=yes | |
11047 | ;; | |
11048 | esac | |
11049 | fi | |
11050 | ;; | |
11051 | ||
11052 | irix5* | irix6* | nonstopux*) | |
9d54db95 JF |
11053 | if test yes = "$GCC"; then |
11054 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' | |
a243b558 JF |
11055 | # Try to use the -exported_symbol ld option, if it does not |
11056 | # work, assume that -exports_file does not work either and | |
11057 | # implicitly export all symbols. | |
11058 | # This should be the same for all languages, so no per-tag cache variable. | |
11059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
11060 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
11061 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
11062 | $as_echo_n "(cached) " >&6 | |
11063 | else | |
9d54db95 JF |
11064 | save_LDFLAGS=$LDFLAGS |
11065 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" | |
a243b558 JF |
11066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11067 | /* end confdefs.h. */ | |
11068 | int foo (void) { return 0; } | |
11069 | _ACEOF | |
11070 | if ac_fn_c_try_link "$LINENO"; then : | |
11071 | lt_cv_irix_exported_symbol=yes | |
11072 | else | |
11073 | lt_cv_irix_exported_symbol=no | |
11074 | fi | |
11075 | rm -f core conftest.err conftest.$ac_objext \ | |
11076 | conftest$ac_exeext conftest.$ac_ext | |
9d54db95 | 11077 | LDFLAGS=$save_LDFLAGS |
a243b558 JF |
11078 | fi |
11079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
11080 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
9d54db95 JF |
11081 | if test yes = "$lt_cv_irix_exported_symbol"; then |
11082 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' | |
a243b558 JF |
11083 | fi |
11084 | else | |
9d54db95 JF |
11085 | 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' |
11086 | 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' | |
a243b558 JF |
11087 | fi |
11088 | archive_cmds_need_lc='no' | |
9d54db95 | 11089 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
a243b558 JF |
11090 | hardcode_libdir_separator=: |
11091 | inherit_rpath=yes | |
11092 | link_all_deplibs=yes | |
11093 | ;; | |
11094 | ||
9d54db95 JF |
11095 | linux*) |
11096 | case $cc_basename in | |
11097 | tcc*) | |
11098 | # Fabrice Bellard et al's Tiny C Compiler | |
11099 | ld_shlibs=yes | |
11100 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
11101 | ;; | |
11102 | esac | |
11103 | ;; | |
11104 | ||
a243b558 JF |
11105 | netbsd*) |
11106 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11107 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
11108 | else | |
11109 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
11110 | fi | |
11111 | hardcode_libdir_flag_spec='-R$libdir' | |
11112 | hardcode_direct=yes | |
11113 | hardcode_shlibpath_var=no | |
11114 | ;; | |
11115 | ||
11116 | newsos6) | |
11117 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11118 | hardcode_direct=yes | |
9d54db95 | 11119 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
a243b558 JF |
11120 | hardcode_libdir_separator=: |
11121 | hardcode_shlibpath_var=no | |
11122 | ;; | |
11123 | ||
11124 | *nto* | *qnx*) | |
11125 | ;; | |
11126 | ||
9d54db95 | 11127 | openbsd* | bitrig*) |
a243b558 JF |
11128 | if test -f /usr/libexec/ld.so; then |
11129 | hardcode_direct=yes | |
11130 | hardcode_shlibpath_var=no | |
11131 | hardcode_direct_absolute=yes | |
9d54db95 | 11132 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
a243b558 | 11133 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
9d54db95 JF |
11134 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
11135 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
11136 | export_dynamic_flag_spec='$wl-E' | |
a243b558 | 11137 | else |
9d54db95 JF |
11138 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
11139 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
a243b558 JF |
11140 | fi |
11141 | else | |
11142 | ld_shlibs=no | |
11143 | fi | |
11144 | ;; | |
11145 | ||
11146 | os2*) | |
11147 | hardcode_libdir_flag_spec='-L$libdir' | |
11148 | hardcode_minus_L=yes | |
11149 | allow_undefined_flag=unsupported | |
9d54db95 JF |
11150 | shrext_cmds=.dll |
11151 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
11152 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
11153 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
11154 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
11155 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
11156 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
11157 | emximp -o $lib $output_objdir/$libname.def' | |
11158 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
11159 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
11160 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
11161 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
11162 | prefix_cmds="$SED"~ | |
11163 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
11164 | prefix_cmds="$prefix_cmds -e 1d"; | |
11165 | fi~ | |
11166 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
11167 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
11168 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
11169 | emximp -o $lib $output_objdir/$libname.def' | |
11170 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
11171 | enable_shared_with_static_runtimes=yes | |
a243b558 JF |
11172 | ;; |
11173 | ||
11174 | osf3*) | |
9d54db95 JF |
11175 | if test yes = "$GCC"; then |
11176 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
11177 | 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' | |
a243b558 JF |
11178 | else |
11179 | allow_undefined_flag=' -expect_unresolved \*' | |
9d54db95 | 11180 | 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' |
a243b558 JF |
11181 | fi |
11182 | archive_cmds_need_lc='no' | |
9d54db95 | 11183 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
a243b558 JF |
11184 | hardcode_libdir_separator=: |
11185 | ;; | |
11186 | ||
11187 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9d54db95 JF |
11188 | if test yes = "$GCC"; then |
11189 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
11190 | archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' | |
11191 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
a243b558 JF |
11192 | else |
11193 | allow_undefined_flag=' -expect_unresolved \*' | |
9d54db95 | 11194 | 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' |
a243b558 | 11195 | 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~ |
9d54db95 | 11196 | $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' |
a243b558 JF |
11197 | |
11198 | # Both c and cxx compiler support -rpath directly | |
11199 | hardcode_libdir_flag_spec='-rpath $libdir' | |
11200 | fi | |
11201 | archive_cmds_need_lc='no' | |
11202 | hardcode_libdir_separator=: | |
11203 | ;; | |
11204 | ||
11205 | solaris*) | |
11206 | no_undefined_flag=' -z defs' | |
9d54db95 JF |
11207 | if test yes = "$GCC"; then |
11208 | wlarc='$wl' | |
11209 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 | 11210 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
9d54db95 | 11211 | $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
a243b558 JF |
11212 | else |
11213 | case `$CC -V 2>&1` in | |
11214 | *"Compilers 5.0"*) | |
11215 | wlarc='' | |
9d54db95 | 11216 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
a243b558 | 11217 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
9d54db95 | 11218 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
a243b558 JF |
11219 | ;; |
11220 | *) | |
9d54db95 JF |
11221 | wlarc='$wl' |
11222 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 | 11223 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
9d54db95 | 11224 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
a243b558 JF |
11225 | ;; |
11226 | esac | |
11227 | fi | |
11228 | hardcode_libdir_flag_spec='-R$libdir' | |
11229 | hardcode_shlibpath_var=no | |
11230 | case $host_os in | |
11231 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11232 | *) | |
11233 | # The compiler driver will combine and reorder linker options, | |
9d54db95 | 11234 | # but understands '-z linker_flag'. GCC discards it without '$wl', |
a243b558 JF |
11235 | # but is careful enough not to reorder. |
11236 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9d54db95 JF |
11237 | if test yes = "$GCC"; then |
11238 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' | |
a243b558 JF |
11239 | else |
11240 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
11241 | fi | |
11242 | ;; | |
11243 | esac | |
11244 | link_all_deplibs=yes | |
11245 | ;; | |
11246 | ||
11247 | sunos4*) | |
9d54db95 | 11248 | if test sequent = "$host_vendor"; then |
a243b558 JF |
11249 | # Use $CC to link under sequent, because it throws in some extra .o |
11250 | # files that make .init and .fini sections work. | |
9d54db95 | 11251 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
a243b558 JF |
11252 | else |
11253 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
11254 | fi | |
11255 | hardcode_libdir_flag_spec='-L$libdir' | |
11256 | hardcode_direct=yes | |
11257 | hardcode_minus_L=yes | |
11258 | hardcode_shlibpath_var=no | |
11259 | ;; | |
11260 | ||
11261 | sysv4) | |
11262 | case $host_vendor in | |
11263 | sni) | |
11264 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11265 | hardcode_direct=yes # is this really true??? | |
11266 | ;; | |
11267 | siemens) | |
11268 | ## LD is ld it makes a PLAMLIB | |
11269 | ## CC just makes a GrossModule. | |
11270 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
11271 | reload_cmds='$CC -r -o $output$reload_objs' | |
11272 | hardcode_direct=no | |
11273 | ;; | |
11274 | motorola) | |
11275 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11276 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
11277 | ;; | |
11278 | esac | |
11279 | runpath_var='LD_RUN_PATH' | |
11280 | hardcode_shlibpath_var=no | |
11281 | ;; | |
11282 | ||
11283 | sysv4.3*) | |
11284 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11285 | hardcode_shlibpath_var=no | |
11286 | export_dynamic_flag_spec='-Bexport' | |
11287 | ;; | |
11288 | ||
11289 | sysv4*MP*) | |
11290 | if test -d /usr/nec; then | |
11291 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11292 | hardcode_shlibpath_var=no | |
11293 | runpath_var=LD_RUN_PATH | |
11294 | hardcode_runpath_var=yes | |
11295 | ld_shlibs=yes | |
11296 | fi | |
11297 | ;; | |
11298 | ||
11299 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
9d54db95 | 11300 | no_undefined_flag='$wl-z,text' |
a243b558 JF |
11301 | archive_cmds_need_lc=no |
11302 | hardcode_shlibpath_var=no | |
11303 | runpath_var='LD_RUN_PATH' | |
11304 | ||
9d54db95 JF |
11305 | if test yes = "$GCC"; then |
11306 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11307 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 | 11308 | else |
9d54db95 JF |
11309 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11310 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 JF |
11311 | fi |
11312 | ;; | |
11313 | ||
11314 | sysv5* | sco3.2v5* | sco5v6*) | |
9d54db95 | 11315 | # Note: We CANNOT use -z defs as we might desire, because we do not |
a243b558 JF |
11316 | # link with -lc, and that would cause any symbols used from libc to |
11317 | # always be unresolved, which means just about no library would | |
11318 | # ever link correctly. If we're not using GNU ld we use -z text | |
11319 | # though, which does catch some bad symbols but isn't as heavy-handed | |
11320 | # as -z defs. | |
9d54db95 JF |
11321 | no_undefined_flag='$wl-z,text' |
11322 | allow_undefined_flag='$wl-z,nodefs' | |
a243b558 JF |
11323 | archive_cmds_need_lc=no |
11324 | hardcode_shlibpath_var=no | |
9d54db95 | 11325 | hardcode_libdir_flag_spec='$wl-R,$libdir' |
a243b558 JF |
11326 | hardcode_libdir_separator=':' |
11327 | link_all_deplibs=yes | |
9d54db95 | 11328 | export_dynamic_flag_spec='$wl-Bexport' |
a243b558 JF |
11329 | runpath_var='LD_RUN_PATH' |
11330 | ||
9d54db95 JF |
11331 | if test yes = "$GCC"; then |
11332 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11333 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 | 11334 | else |
9d54db95 JF |
11335 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11336 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
a243b558 JF |
11337 | fi |
11338 | ;; | |
11339 | ||
11340 | uts4*) | |
11341 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11342 | hardcode_libdir_flag_spec='-L$libdir' | |
11343 | hardcode_shlibpath_var=no | |
11344 | ;; | |
11345 | ||
11346 | *) | |
11347 | ld_shlibs=no | |
11348 | ;; | |
11349 | esac | |
11350 | ||
9d54db95 | 11351 | if test sni = "$host_vendor"; then |
a243b558 JF |
11352 | case $host in |
11353 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9d54db95 | 11354 | export_dynamic_flag_spec='$wl-Blargedynsym' |
a243b558 JF |
11355 | ;; |
11356 | esac | |
11357 | fi | |
11358 | fi | |
11359 | ||
11360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
11361 | $as_echo "$ld_shlibs" >&6; } | |
9d54db95 | 11362 | test no = "$ld_shlibs" && can_build_shared=no |
a243b558 JF |
11363 | |
11364 | with_gnu_ld=$with_gnu_ld | |
11365 | ||
11366 | ||
11367 | ||
11368 | ||
11369 | ||
11370 | ||
11371 | ||
11372 | ||
11373 | ||
11374 | ||
11375 | ||
11376 | ||
11377 | ||
11378 | ||
11379 | ||
11380 | # | |
11381 | # Do we need to explicitly link libc? | |
11382 | # | |
11383 | case "x$archive_cmds_need_lc" in | |
11384 | x|xyes) | |
11385 | # Assume -lc should be added | |
11386 | archive_cmds_need_lc=yes | |
11387 | ||
9d54db95 | 11388 | if test yes,yes = "$GCC,$enable_shared"; then |
a243b558 JF |
11389 | case $archive_cmds in |
11390 | *'~'*) | |
11391 | # FIXME: we may have to deal with multi-command sequences. | |
11392 | ;; | |
11393 | '$CC '*) | |
11394 | # Test whether the compiler implicitly links with -lc since on some | |
11395 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
11396 | # to ld, don't add -lc before -lgcc. | |
11397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
11398 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
11399 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
11400 | $as_echo_n "(cached) " >&6 | |
11401 | else | |
00a96142 | 11402 | $RM -r conftest* |
a243b558 JF |
11403 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
11404 | ||
11405 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
11406 | (eval $ac_compile) 2>&5 | |
11407 | ac_status=$? | |
11408 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11409 | test $ac_status = 0; } 2>conftest.err; then | |
11410 | soname=conftest | |
11411 | lib=conftest | |
11412 | libobjs=conftest.$ac_objext | |
11413 | deplibs= | |
11414 | wl=$lt_prog_compiler_wl | |
11415 | pic_flag=$lt_prog_compiler_pic | |
11416 | compiler_flags=-v | |
11417 | linker_flags=-v | |
11418 | verstring= | |
11419 | output_objdir=. | |
11420 | libname=conftest | |
11421 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
11422 | allow_undefined_flag= | |
11423 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
11424 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
11425 | ac_status=$? | |
11426 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11427 | test $ac_status = 0; } | |
11428 | then | |
11429 | lt_cv_archive_cmds_need_lc=no | |
11430 | else | |
11431 | lt_cv_archive_cmds_need_lc=yes | |
11432 | fi | |
11433 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
11434 | else | |
11435 | cat conftest.err 1>&5 | |
11436 | fi | |
00a96142 | 11437 | $RM -r conftest* |
a243b558 JF |
11438 | |
11439 | fi | |
11440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
11441 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
11442 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
11443 | ;; | |
11444 | esac | |
11445 | fi | |
11446 | ;; | |
11447 | esac | |
11448 | ||
11449 | ||
11450 | ||
11451 | ||
11452 | ||
11453 | ||
11454 | ||
11455 | ||
11456 | ||
11457 | ||
11458 | ||
11459 | ||
11460 | ||
11461 | ||
11462 | ||
11463 | ||
11464 | ||
11465 | ||
11466 | ||
11467 | ||
11468 | ||
11469 | ||
11470 | ||
11471 | ||
11472 | ||
11473 | ||
11474 | ||
11475 | ||
11476 | ||
11477 | ||
11478 | ||
11479 | ||
11480 | ||
11481 | ||
11482 | ||
11483 | ||
11484 | ||
11485 | ||
11486 | ||
11487 | ||
11488 | ||
11489 | ||
11490 | ||
11491 | ||
11492 | ||
11493 | ||
11494 | ||
11495 | ||
11496 | ||
11497 | ||
11498 | ||
11499 | ||
11500 | ||
11501 | ||
11502 | ||
11503 | ||
11504 | ||
11505 | ||
11506 | ||
11507 | ||
11508 | ||
11509 | ||
11510 | ||
11511 | ||
11512 | ||
11513 | ||
11514 | ||
11515 | ||
11516 | ||
11517 | ||
11518 | ||
11519 | ||
11520 | ||
11521 | ||
11522 | ||
11523 | ||
11524 | ||
11525 | ||
11526 | ||
11527 | ||
11528 | ||
11529 | ||
11530 | ||
11531 | ||
11532 | ||
11533 | ||
11534 | ||
11535 | ||
11536 | ||
11537 | ||
11538 | ||
11539 | ||
11540 | ||
11541 | ||
11542 | ||
11543 | ||
11544 | ||
11545 | ||
11546 | ||
11547 | ||
11548 | ||
11549 | ||
11550 | ||
11551 | ||
11552 | ||
11553 | ||
11554 | ||
11555 | ||
11556 | ||
11557 | ||
11558 | ||
11559 | ||
11560 | ||
11561 | ||
11562 | ||
11563 | ||
11564 | ||
11565 | ||
11566 | ||
11567 | ||
11568 | ||
11569 | ||
11570 | ||
11571 | ||
11572 | ||
11573 | ||
11574 | ||
11575 | ||
11576 | ||
11577 | ||
11578 | ||
11579 | ||
11580 | ||
11581 | ||
11582 | ||
11583 | ||
11584 | ||
11585 | ||
11586 | ||
11587 | ||
11588 | ||
11589 | ||
11590 | ||
11591 | ||
11592 | ||
11593 | ||
11594 | ||
11595 | ||
11596 | ||
11597 | ||
11598 | ||
11599 | ||
11600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
11601 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
11602 | ||
9d54db95 | 11603 | if test yes = "$GCC"; then |
a243b558 | 11604 | case $host_os in |
9d54db95 JF |
11605 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
11606 | *) lt_awk_arg='/^libraries:/' ;; | |
a243b558 JF |
11607 | esac |
11608 | case $host_os in | |
9d54db95 JF |
11609 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
11610 | *) lt_sed_strip_eq='s|=/|/|g' ;; | |
a243b558 JF |
11611 | esac |
11612 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11613 | case $lt_search_path_spec in | |
11614 | *\;*) | |
11615 | # if the path contains ";" then we assume it to be the separator | |
11616 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11617 | # assumed that no part of a normal pathname contains ";" but that should | |
11618 | # okay in the real world where ";" in dirpaths is itself problematic. | |
11619 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
11620 | ;; | |
11621 | *) | |
11622 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11623 | ;; | |
11624 | esac | |
11625 | # Ok, now we have the path, separated by spaces, we can step through it | |
9d54db95 | 11626 | # and add multilib dir if necessary... |
a243b558 | 11627 | lt_tmp_lt_search_path_spec= |
9d54db95 JF |
11628 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
11629 | # ...but if some path component already ends with the multilib dir we assume | |
11630 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). | |
11631 | case "$lt_multi_os_dir; $lt_search_path_spec " in | |
11632 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) | |
11633 | lt_multi_os_dir= | |
11634 | ;; | |
11635 | esac | |
a243b558 | 11636 | for lt_sys_path in $lt_search_path_spec; do |
9d54db95 JF |
11637 | if test -d "$lt_sys_path$lt_multi_os_dir"; then |
11638 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" | |
11639 | elif test -n "$lt_multi_os_dir"; then | |
a243b558 JF |
11640 | test -d "$lt_sys_path" && \ |
11641 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11642 | fi | |
11643 | done | |
11644 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
9d54db95 JF |
11645 | BEGIN {RS = " "; FS = "/|\n";} { |
11646 | lt_foo = ""; | |
11647 | lt_count = 0; | |
a243b558 JF |
11648 | for (lt_i = NF; lt_i > 0; lt_i--) { |
11649 | if ($lt_i != "" && $lt_i != ".") { | |
11650 | if ($lt_i == "..") { | |
11651 | lt_count++; | |
11652 | } else { | |
11653 | if (lt_count == 0) { | |
9d54db95 | 11654 | lt_foo = "/" $lt_i lt_foo; |
a243b558 JF |
11655 | } else { |
11656 | lt_count--; | |
11657 | } | |
11658 | } | |
11659 | } | |
11660 | } | |
11661 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11662 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11663 | }'` | |
11664 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
11665 | # for these hosts. | |
11666 | case $host_os in | |
11667 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
9d54db95 | 11668 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
a243b558 JF |
11669 | esac |
11670 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
11671 | else | |
11672 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11673 | fi | |
11674 | library_names_spec= | |
11675 | libname_spec='lib$name' | |
11676 | soname_spec= | |
9d54db95 | 11677 | shrext_cmds=.so |
a243b558 JF |
11678 | postinstall_cmds= |
11679 | postuninstall_cmds= | |
11680 | finish_cmds= | |
11681 | finish_eval= | |
11682 | shlibpath_var= | |
11683 | shlibpath_overrides_runpath=unknown | |
11684 | version_type=none | |
11685 | dynamic_linker="$host_os ld.so" | |
11686 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11687 | need_lib_prefix=unknown | |
11688 | hardcode_into_libs=no | |
11689 | ||
11690 | # when you set need_version to no, make sure it does not cause -set_version | |
11691 | # flags to be left without arguments | |
11692 | need_version=unknown | |
11693 | ||
9d54db95 JF |
11694 | |
11695 | ||
a243b558 JF |
11696 | case $host_os in |
11697 | aix3*) | |
11698 | version_type=linux # correct to gnu/linux during the next big refactor | |
9d54db95 | 11699 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
a243b558 JF |
11700 | shlibpath_var=LIBPATH |
11701 | ||
11702 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9d54db95 | 11703 | soname_spec='$libname$release$shared_ext$major' |
a243b558 JF |
11704 | ;; |
11705 | ||
11706 | aix[4-9]*) | |
11707 | version_type=linux # correct to gnu/linux during the next big refactor | |
11708 | need_lib_prefix=no | |
11709 | need_version=no | |
11710 | hardcode_into_libs=yes | |
9d54db95 | 11711 | if test ia64 = "$host_cpu"; then |
a243b558 | 11712 | # AIX 5 supports IA64 |
9d54db95 | 11713 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
a243b558 JF |
11714 | shlibpath_var=LD_LIBRARY_PATH |
11715 | else | |
11716 | # With GCC up to 2.95.x, collect2 would create an import file | |
11717 | # for dependence libraries. The import file would start with | |
9d54db95 JF |
11718 | # the line '#! .'. This would cause the generated library to |
11719 | # depend on '.', always an invalid library. This was fixed in | |
a243b558 JF |
11720 | # development snapshots of GCC prior to 3.0. |
11721 | case $host_os in | |
11722 | aix4 | aix4.[01] | aix4.[01].*) | |
11723 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11724 | echo ' yes ' | |
9d54db95 | 11725 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
a243b558 JF |
11726 | : |
11727 | else | |
11728 | can_build_shared=no | |
11729 | fi | |
11730 | ;; | |
11731 | esac | |
9d54db95 JF |
11732 | # Using Import Files as archive members, it is possible to support |
11733 | # filename-based versioning of shared library archives on AIX. While | |
11734 | # this would work for both with and without runtime linking, it will | |
11735 | # prevent static linking of such archives. So we do filename-based | |
11736 | # shared library versioning with .so extension only, which is used | |
11737 | # when both runtime linking and shared linking is enabled. | |
11738 | # Unfortunately, runtime linking may impact performance, so we do | |
11739 | # not want this to be the default eventually. Also, we use the | |
11740 | # versioned .so libs for executables only if there is the -brtl | |
11741 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
11742 | # To allow for filename-based versioning support, we need to create | |
11743 | # libNAME.so.V as an archive file, containing: | |
11744 | # *) an Import File, referring to the versioned filename of the | |
11745 | # archive as well as the shared archive member, telling the | |
11746 | # bitwidth (32 or 64) of that shared object, and providing the | |
11747 | # list of exported symbols of that shared object, eventually | |
11748 | # decorated with the 'weak' keyword | |
11749 | # *) the shared object with the F_LOADONLY flag set, to really avoid | |
11750 | # it being seen by the linker. | |
11751 | # At run time we better use the real file rather than another symlink, | |
11752 | # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
11753 | ||
11754 | case $with_aix_soname,$aix_use_runtimelinking in | |
11755 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
a243b558 JF |
11756 | # soname into executable. Probably we can add versioning support to |
11757 | # collect2, so additional links can be useful in future. | |
9d54db95 JF |
11758 | aix,yes) # traditional libtool |
11759 | dynamic_linker='AIX unversionable lib.so' | |
a243b558 JF |
11760 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
11761 | # instead of lib<name>.a to let people know that these are not | |
11762 | # typical AIX shared libraries. | |
9d54db95 JF |
11763 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11764 | ;; | |
11765 | aix,no) # traditional AIX only | |
11766 | dynamic_linker='AIX lib.a(lib.so.V)' | |
a243b558 JF |
11767 | # We preserve .a as extension for shared libraries through AIX4.2 |
11768 | # and later when we are not doing run time linking. | |
9d54db95 JF |
11769 | library_names_spec='$libname$release.a $libname.a' |
11770 | soname_spec='$libname$release$shared_ext$major' | |
11771 | ;; | |
11772 | svr4,*) # full svr4 only | |
11773 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" | |
11774 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
11775 | # We do not specify a path in Import Files, so LIBPATH fires. | |
11776 | shlibpath_overrides_runpath=yes | |
11777 | ;; | |
11778 | *,yes) # both, prefer svr4 | |
11779 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" | |
11780 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
11781 | # unpreferred sharedlib libNAME.a needs extra handling | |
11782 | postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' | |
11783 | postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' | |
11784 | # We do not specify a path in Import Files, so LIBPATH fires. | |
11785 | shlibpath_overrides_runpath=yes | |
11786 | ;; | |
11787 | *,no) # both, prefer aix | |
11788 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" | |
11789 | library_names_spec='$libname$release.a $libname.a' | |
11790 | soname_spec='$libname$release$shared_ext$major' | |
11791 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
11792 | postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' | |
11793 | postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' | |
11794 | ;; | |
11795 | esac | |
a243b558 JF |
11796 | shlibpath_var=LIBPATH |
11797 | fi | |
11798 | ;; | |
11799 | ||
11800 | amigaos*) | |
11801 | case $host_cpu in | |
11802 | powerpc) | |
11803 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11804 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9d54db95 | 11805 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
a243b558 JF |
11806 | ;; |
11807 | m68k) | |
11808 | library_names_spec='$libname.ixlibrary $libname.a' | |
11809 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
9d54db95 | 11810 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
a243b558 JF |
11811 | ;; |
11812 | esac | |
11813 | ;; | |
11814 | ||
11815 | beos*) | |
9d54db95 | 11816 | library_names_spec='$libname$shared_ext' |
a243b558 JF |
11817 | dynamic_linker="$host_os ld.so" |
11818 | shlibpath_var=LIBRARY_PATH | |
11819 | ;; | |
11820 | ||
11821 | bsdi[45]*) | |
11822 | version_type=linux # correct to gnu/linux during the next big refactor | |
11823 | need_version=no | |
9d54db95 JF |
11824 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11825 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
11826 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
11827 | shlibpath_var=LD_LIBRARY_PATH | |
11828 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11829 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11830 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11831 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11832 | # libtool to hard-code these into programs | |
11833 | ;; | |
11834 | ||
11835 | cygwin* | mingw* | pw32* | cegcc*) | |
11836 | version_type=windows | |
9d54db95 | 11837 | shrext_cmds=.dll |
a243b558 JF |
11838 | need_version=no |
11839 | need_lib_prefix=no | |
9c60689e | 11840 | |
a243b558 JF |
11841 | case $GCC,$cc_basename in |
11842 | yes,*) | |
11843 | # gcc | |
11844 | library_names_spec='$libname.dll.a' | |
11845 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9d54db95 JF |
11846 | postinstall_cmds='base_file=`basename \$file`~ |
11847 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
a243b558 JF |
11848 | dldir=$destdir/`dirname \$dlpath`~ |
11849 | test -d \$dldir || mkdir -p \$dldir~ | |
11850 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11851 | chmod a+x \$dldir/$dlname~ | |
11852 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11853 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11854 | fi' | |
11855 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11856 | dlpath=$dir/\$dldll~ | |
11857 | $RM \$dlpath' | |
11858 | shlibpath_overrides_runpath=yes | |
9c60689e | 11859 | |
a243b558 JF |
11860 | case $host_os in |
11861 | cygwin*) | |
11862 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
9d54db95 | 11863 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
9c60689e | 11864 | |
a243b558 JF |
11865 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
11866 | ;; | |
11867 | mingw* | cegcc*) | |
11868 | # MinGW DLLs use traditional 'lib' prefix | |
9d54db95 | 11869 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
a243b558 JF |
11870 | ;; |
11871 | pw32*) | |
11872 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9d54db95 | 11873 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
a243b558 JF |
11874 | ;; |
11875 | esac | |
11876 | dynamic_linker='Win32 ld.exe' | |
11877 | ;; | |
9c60689e | 11878 | |
a243b558 JF |
11879 | *,cl*) |
11880 | # Native MSVC | |
11881 | libname_spec='$name' | |
9d54db95 JF |
11882 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
11883 | library_names_spec='$libname.dll.lib' | |
9c60689e | 11884 | |
a243b558 JF |
11885 | case $build_os in |
11886 | mingw*) | |
11887 | sys_lib_search_path_spec= | |
11888 | lt_save_ifs=$IFS | |
11889 | IFS=';' | |
11890 | for lt_path in $LIB | |
11891 | do | |
11892 | IFS=$lt_save_ifs | |
11893 | # Let DOS variable expansion print the short 8.3 style file name. | |
11894 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
11895 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
11896 | done | |
11897 | IFS=$lt_save_ifs | |
11898 | # Convert to MSYS style. | |
11899 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
11900 | ;; | |
11901 | cygwin*) | |
11902 | # Convert to unix form, then to dos form, then back to unix form | |
11903 | # but this time dos style (no spaces!) so that the unix form looks | |
11904 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
11905 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
11906 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
11907 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11908 | ;; | |
11909 | *) | |
9d54db95 | 11910 | sys_lib_search_path_spec=$LIB |
a243b558 JF |
11911 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
11912 | # It is most probably a Windows format PATH. | |
11913 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11914 | else | |
11915 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11916 | fi | |
11917 | # FIXME: find the short name or the path components, as spaces are | |
11918 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
11919 | ;; | |
11920 | esac | |
11921 | ||
11922 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9d54db95 JF |
11923 | postinstall_cmds='base_file=`basename \$file`~ |
11924 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
a243b558 JF |
11925 | dldir=$destdir/`dirname \$dlpath`~ |
11926 | test -d \$dldir || mkdir -p \$dldir~ | |
11927 | $install_prog $dir/$dlname \$dldir/$dlname' | |
11928 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11929 | dlpath=$dir/\$dldll~ | |
11930 | $RM \$dlpath' | |
11931 | shlibpath_overrides_runpath=yes | |
11932 | dynamic_linker='Win32 link.exe' | |
11933 | ;; | |
9c60689e | 11934 | |
a243b558 JF |
11935 | *) |
11936 | # Assume MSVC wrapper | |
9d54db95 | 11937 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
a243b558 JF |
11938 | dynamic_linker='Win32 ld.exe' |
11939 | ;; | |
11940 | esac | |
11941 | # FIXME: first we should search . and the directory the executable is in | |
11942 | shlibpath_var=PATH | |
11943 | ;; | |
9c60689e | 11944 | |
a243b558 JF |
11945 | darwin* | rhapsody*) |
11946 | dynamic_linker="$host_os dyld" | |
11947 | version_type=darwin | |
11948 | need_lib_prefix=no | |
11949 | need_version=no | |
9d54db95 JF |
11950 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
11951 | soname_spec='$libname$release$major$shared_ext' | |
a243b558 JF |
11952 | shlibpath_overrides_runpath=yes |
11953 | shlibpath_var=DYLD_LIBRARY_PATH | |
11954 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9c60689e | 11955 | |
a243b558 JF |
11956 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
11957 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11958 | ;; | |
9c60689e | 11959 | |
a243b558 JF |
11960 | dgux*) |
11961 | version_type=linux # correct to gnu/linux during the next big refactor | |
11962 | need_lib_prefix=no | |
11963 | need_version=no | |
9d54db95 JF |
11964 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11965 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
11966 | shlibpath_var=LD_LIBRARY_PATH |
11967 | ;; | |
11968 | ||
11969 | freebsd* | dragonfly*) | |
11970 | # DragonFly does not have aout. When/if they implement a new | |
11971 | # versioning mechanism, adjust this. | |
11972 | if test -x /usr/bin/objformat; then | |
11973 | objformat=`/usr/bin/objformat` | |
11974 | else | |
11975 | case $host_os in | |
11976 | freebsd[23].*) objformat=aout ;; | |
11977 | *) objformat=elf ;; | |
11978 | esac | |
11979 | fi | |
11980 | version_type=freebsd-$objformat | |
11981 | case $version_type in | |
11982 | freebsd-elf*) | |
9d54db95 JF |
11983 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11984 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
11985 | need_version=no |
11986 | need_lib_prefix=no | |
11987 | ;; | |
11988 | freebsd-*) | |
9d54db95 | 11989 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
a243b558 JF |
11990 | need_version=yes |
11991 | ;; | |
11992 | esac | |
11993 | shlibpath_var=LD_LIBRARY_PATH | |
11994 | case $host_os in | |
11995 | freebsd2.*) | |
11996 | shlibpath_overrides_runpath=yes | |
11997 | ;; | |
11998 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11999 | shlibpath_overrides_runpath=yes | |
12000 | hardcode_into_libs=yes | |
12001 | ;; | |
12002 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
12003 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
12004 | shlibpath_overrides_runpath=no | |
12005 | hardcode_into_libs=yes | |
12006 | ;; | |
12007 | *) # from 4.6 on, and DragonFly | |
12008 | shlibpath_overrides_runpath=yes | |
12009 | hardcode_into_libs=yes | |
12010 | ;; | |
12011 | esac | |
12012 | ;; | |
9c60689e | 12013 | |
a243b558 JF |
12014 | haiku*) |
12015 | version_type=linux # correct to gnu/linux during the next big refactor | |
12016 | need_lib_prefix=no | |
12017 | need_version=no | |
12018 | dynamic_linker="$host_os runtime_loader" | |
9d54db95 JF |
12019 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12020 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 | 12021 | shlibpath_var=LIBRARY_PATH |
9d54db95 | 12022 | shlibpath_overrides_runpath=no |
a243b558 JF |
12023 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
12024 | hardcode_into_libs=yes | |
12025 | ;; | |
9c60689e | 12026 | |
a243b558 JF |
12027 | hpux9* | hpux10* | hpux11*) |
12028 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
12029 | # link against other versions. | |
12030 | version_type=sunos | |
12031 | need_lib_prefix=no | |
12032 | need_version=no | |
12033 | case $host_cpu in | |
12034 | ia64*) | |
12035 | shrext_cmds='.so' | |
12036 | hardcode_into_libs=yes | |
12037 | dynamic_linker="$host_os dld.so" | |
12038 | shlibpath_var=LD_LIBRARY_PATH | |
12039 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9d54db95 JF |
12040 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12041 | soname_spec='$libname$release$shared_ext$major' | |
12042 | if test 32 = "$HPUX_IA64_MODE"; then | |
a243b558 | 12043 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
9d54db95 | 12044 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
a243b558 JF |
12045 | else |
12046 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
9d54db95 | 12047 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
a243b558 | 12048 | fi |
a243b558 JF |
12049 | ;; |
12050 | hppa*64*) | |
12051 | shrext_cmds='.sl' | |
12052 | hardcode_into_libs=yes | |
12053 | dynamic_linker="$host_os dld.sl" | |
12054 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
12055 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9d54db95 JF |
12056 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12057 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
12058 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
12059 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12060 | ;; | |
12061 | *) | |
12062 | shrext_cmds='.sl' | |
12063 | dynamic_linker="$host_os dld.sl" | |
12064 | shlibpath_var=SHLIB_PATH | |
12065 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
9d54db95 JF |
12066 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12067 | soname_spec='$libname$release$shared_ext$major' | |
9c60689e DWT |
12068 | ;; |
12069 | esac | |
a243b558 JF |
12070 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
12071 | postinstall_cmds='chmod 555 $lib' | |
12072 | # or fails outright, so override atomically: | |
12073 | install_override_mode=555 | |
12074 | ;; | |
9c60689e | 12075 | |
a243b558 JF |
12076 | interix[3-9]*) |
12077 | version_type=linux # correct to gnu/linux during the next big refactor | |
12078 | need_lib_prefix=no | |
12079 | need_version=no | |
9d54db95 JF |
12080 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12081 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
12082 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
12083 | shlibpath_var=LD_LIBRARY_PATH | |
12084 | shlibpath_overrides_runpath=no | |
12085 | hardcode_into_libs=yes | |
12086 | ;; | |
9c60689e | 12087 | |
a243b558 JF |
12088 | irix5* | irix6* | nonstopux*) |
12089 | case $host_os in | |
12090 | nonstopux*) version_type=nonstopux ;; | |
12091 | *) | |
9d54db95 | 12092 | if test yes = "$lt_cv_prog_gnu_ld"; then |
a243b558 JF |
12093 | version_type=linux # correct to gnu/linux during the next big refactor |
12094 | else | |
12095 | version_type=irix | |
12096 | fi ;; | |
12097 | esac | |
12098 | need_lib_prefix=no | |
12099 | need_version=no | |
9d54db95 JF |
12100 | soname_spec='$libname$release$shared_ext$major' |
12101 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
a243b558 JF |
12102 | case $host_os in |
12103 | irix5* | nonstopux*) | |
12104 | libsuff= shlibsuff= | |
12105 | ;; | |
12106 | *) | |
12107 | case $LD in # libtool.m4 will add one of these switches to LD | |
12108 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
12109 | libsuff= shlibsuff= libmagic=32-bit;; | |
12110 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
12111 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
12112 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
12113 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
12114 | *) libsuff= shlibsuff= libmagic=never-match;; | |
12115 | esac | |
12116 | ;; | |
12117 | esac | |
12118 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
12119 | shlibpath_overrides_runpath=no | |
9d54db95 JF |
12120 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
12121 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
a243b558 JF |
12122 | hardcode_into_libs=yes |
12123 | ;; | |
9c60689e | 12124 | |
a243b558 JF |
12125 | # No shared lib support for Linux oldld, aout, or coff. |
12126 | linux*oldld* | linux*aout* | linux*coff*) | |
12127 | dynamic_linker=no | |
12128 | ;; | |
9c60689e | 12129 | |
9d54db95 JF |
12130 | linux*android*) |
12131 | version_type=none # Android doesn't support versioned libraries. | |
12132 | need_lib_prefix=no | |
12133 | need_version=no | |
12134 | library_names_spec='$libname$release$shared_ext' | |
12135 | soname_spec='$libname$release$shared_ext' | |
12136 | finish_cmds= | |
12137 | shlibpath_var=LD_LIBRARY_PATH | |
12138 | shlibpath_overrides_runpath=yes | |
12139 | ||
12140 | # This implies no fast_install, which is unacceptable. | |
12141 | # Some rework will be needed to allow for fast_install | |
12142 | # before this can be enabled. | |
12143 | hardcode_into_libs=yes | |
12144 | ||
12145 | dynamic_linker='Android linker' | |
12146 | # Don't embed -rpath directories since the linker doesn't support them. | |
12147 | hardcode_libdir_flag_spec='-L$libdir' | |
12148 | ;; | |
12149 | ||
a243b558 | 12150 | # This must be glibc/ELF. |
9d54db95 | 12151 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
a243b558 JF |
12152 | version_type=linux # correct to gnu/linux during the next big refactor |
12153 | need_lib_prefix=no | |
12154 | need_version=no | |
9d54db95 JF |
12155 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12156 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
12157 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
12158 | shlibpath_var=LD_LIBRARY_PATH | |
12159 | shlibpath_overrides_runpath=no | |
9c60689e | 12160 | |
a243b558 JF |
12161 | # Some binutils ld are patched to set DT_RUNPATH |
12162 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
9c60689e DWT |
12163 | $as_echo_n "(cached) " >&6 |
12164 | else | |
a243b558 JF |
12165 | lt_cv_shlibpath_overrides_runpath=no |
12166 | save_LDFLAGS=$LDFLAGS | |
12167 | save_libdir=$libdir | |
12168 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
12169 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
12170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12171 | /* end confdefs.h. */ | |
ee134472 | 12172 | |
a243b558 JF |
12173 | int |
12174 | main () | |
9c60689e | 12175 | { |
9c60689e | 12176 | |
a243b558 JF |
12177 | ; |
12178 | return 0; | |
12179 | } | |
12180 | _ACEOF | |
12181 | if ac_fn_c_try_link "$LINENO"; then : | |
12182 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
12183 | lt_cv_shlibpath_overrides_runpath=yes | |
12184 | fi | |
12185 | fi | |
12186 | rm -f core conftest.err conftest.$ac_objext \ | |
12187 | conftest$ac_exeext conftest.$ac_ext | |
12188 | LDFLAGS=$save_LDFLAGS | |
12189 | libdir=$save_libdir | |
9c60689e | 12190 | |
a243b558 | 12191 | fi |
9c60689e | 12192 | |
a243b558 | 12193 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
9c60689e | 12194 | |
a243b558 JF |
12195 | # This implies no fast_install, which is unacceptable. |
12196 | # Some rework will be needed to allow for fast_install | |
12197 | # before this can be enabled. | |
12198 | hardcode_into_libs=yes | |
9c60689e | 12199 | |
9d54db95 JF |
12200 | # Ideally, we could use ldconfig to report *all* directores which are |
12201 | # searched for libraries, however this is still not possible. Aside from not | |
12202 | # being certain /sbin/ldconfig is available, command | |
12203 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
12204 | # even though it is searched at run-time. Try to do the best guess by | |
12205 | # appending ld.so.conf contents (and includes) to the search path. | |
a243b558 JF |
12206 | if test -f /etc/ld.so.conf; then |
12207 | 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' ' '` | |
12208 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
12209 | fi | |
ee134472 | 12210 | |
a243b558 JF |
12211 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
12212 | # powerpc, because MkLinux only supported shared libraries with the | |
12213 | # GNU dynamic linker. Since this was broken with cross compilers, | |
12214 | # most powerpc-linux boxes support dynamic linking these days and | |
12215 | # people can always --disable-shared, the test was removed, and we | |
12216 | # assume the GNU/Linux dynamic linker is in use. | |
12217 | dynamic_linker='GNU/Linux ld.so' | |
12218 | ;; | |
9c60689e | 12219 | |
a243b558 JF |
12220 | netbsd*) |
12221 | version_type=sunos | |
12222 | need_lib_prefix=no | |
12223 | need_version=no | |
12224 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9d54db95 | 12225 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
a243b558 JF |
12226 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
12227 | dynamic_linker='NetBSD (a.out) ld.so' | |
9c60689e | 12228 | else |
9d54db95 JF |
12229 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12230 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 | 12231 | dynamic_linker='NetBSD ld.elf_so' |
9c60689e | 12232 | fi |
a243b558 JF |
12233 | shlibpath_var=LD_LIBRARY_PATH |
12234 | shlibpath_overrides_runpath=yes | |
12235 | hardcode_into_libs=yes | |
12236 | ;; | |
9c60689e | 12237 | |
a243b558 JF |
12238 | newsos6) |
12239 | version_type=linux # correct to gnu/linux during the next big refactor | |
9d54db95 | 12240 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
a243b558 JF |
12241 | shlibpath_var=LD_LIBRARY_PATH |
12242 | shlibpath_overrides_runpath=yes | |
12243 | ;; | |
9c60689e | 12244 | |
a243b558 JF |
12245 | *nto* | *qnx*) |
12246 | version_type=qnx | |
12247 | need_lib_prefix=no | |
12248 | need_version=no | |
9d54db95 JF |
12249 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12250 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
12251 | shlibpath_var=LD_LIBRARY_PATH |
12252 | shlibpath_overrides_runpath=no | |
12253 | hardcode_into_libs=yes | |
12254 | dynamic_linker='ldqnx.so' | |
12255 | ;; | |
9c60689e | 12256 | |
9d54db95 | 12257 | openbsd* | bitrig*) |
a243b558 | 12258 | version_type=sunos |
9d54db95 | 12259 | sys_lib_dlsearch_path_spec=/usr/lib |
a243b558 | 12260 | need_lib_prefix=no |
9d54db95 JF |
12261 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
12262 | need_version=no | |
a243b558 | 12263 | else |
9d54db95 | 12264 | need_version=yes |
a243b558 | 12265 | fi |
9d54db95 JF |
12266 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
12267 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12268 | shlibpath_var=LD_LIBRARY_PATH | |
12269 | shlibpath_overrides_runpath=yes | |
a243b558 | 12270 | ;; |
9c60689e | 12271 | |
a243b558 JF |
12272 | os2*) |
12273 | libname_spec='$name' | |
9d54db95 JF |
12274 | version_type=windows |
12275 | shrext_cmds=.dll | |
12276 | need_version=no | |
a243b558 | 12277 | need_lib_prefix=no |
9d54db95 JF |
12278 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
12279 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
12280 | v=$($ECHO $release$versuffix | tr -d .-); | |
12281 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
12282 | $ECHO $n$v`$shared_ext' | |
12283 | library_names_spec='${libname}_dll.$libext' | |
a243b558 | 12284 | dynamic_linker='OS/2 ld.exe' |
9d54db95 JF |
12285 | shlibpath_var=BEGINLIBPATH |
12286 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
12287 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12288 | postinstall_cmds='base_file=`basename \$file`~ | |
12289 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
12290 | dldir=$destdir/`dirname \$dlpath`~ | |
12291 | test -d \$dldir || mkdir -p \$dldir~ | |
12292 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
12293 | chmod a+x \$dldir/$dlname~ | |
12294 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
12295 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
12296 | fi' | |
12297 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
12298 | dlpath=$dir/\$dldll~ | |
12299 | $RM \$dlpath' | |
a243b558 | 12300 | ;; |
9c60689e | 12301 | |
a243b558 JF |
12302 | osf3* | osf4* | osf5*) |
12303 | version_type=osf | |
12304 | need_lib_prefix=no | |
12305 | need_version=no | |
9d54db95 JF |
12306 | soname_spec='$libname$release$shared_ext$major' |
12307 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
a243b558 JF |
12308 | shlibpath_var=LD_LIBRARY_PATH |
12309 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9d54db95 | 12310 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
a243b558 JF |
12311 | ;; |
12312 | ||
12313 | rdos*) | |
12314 | dynamic_linker=no | |
12315 | ;; | |
12316 | ||
12317 | solaris*) | |
12318 | version_type=linux # correct to gnu/linux during the next big refactor | |
12319 | need_lib_prefix=no | |
12320 | need_version=no | |
9d54db95 JF |
12321 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12322 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
12323 | shlibpath_var=LD_LIBRARY_PATH |
12324 | shlibpath_overrides_runpath=yes | |
12325 | hardcode_into_libs=yes | |
12326 | # ldd complains unless libraries are executable | |
12327 | postinstall_cmds='chmod +x $lib' | |
12328 | ;; | |
9c60689e | 12329 | |
a243b558 JF |
12330 | sunos4*) |
12331 | version_type=sunos | |
9d54db95 | 12332 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
a243b558 JF |
12333 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
12334 | shlibpath_var=LD_LIBRARY_PATH | |
12335 | shlibpath_overrides_runpath=yes | |
9d54db95 | 12336 | if test yes = "$with_gnu_ld"; then |
a243b558 JF |
12337 | need_lib_prefix=no |
12338 | fi | |
12339 | need_version=yes | |
12340 | ;; | |
9c60689e | 12341 | |
a243b558 JF |
12342 | sysv4 | sysv4.3*) |
12343 | version_type=linux # correct to gnu/linux during the next big refactor | |
9d54db95 JF |
12344 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12345 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
12346 | shlibpath_var=LD_LIBRARY_PATH |
12347 | case $host_vendor in | |
12348 | sni) | |
12349 | shlibpath_overrides_runpath=no | |
12350 | need_lib_prefix=no | |
12351 | runpath_var=LD_RUN_PATH | |
12352 | ;; | |
12353 | siemens) | |
12354 | need_lib_prefix=no | |
12355 | ;; | |
12356 | motorola) | |
12357 | need_lib_prefix=no | |
12358 | need_version=no | |
12359 | shlibpath_overrides_runpath=no | |
12360 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
12361 | ;; | |
12362 | esac | |
12363 | ;; | |
9c60689e | 12364 | |
a243b558 | 12365 | sysv4*MP*) |
9d54db95 | 12366 | if test -d /usr/nec; then |
a243b558 | 12367 | version_type=linux # correct to gnu/linux during the next big refactor |
9d54db95 JF |
12368 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
12369 | soname_spec='$libname$shared_ext.$major' | |
a243b558 JF |
12370 | shlibpath_var=LD_LIBRARY_PATH |
12371 | fi | |
12372 | ;; | |
9c60689e | 12373 | |
a243b558 | 12374 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
9d54db95 | 12375 | version_type=sco |
a243b558 JF |
12376 | need_lib_prefix=no |
12377 | need_version=no | |
9d54db95 JF |
12378 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
12379 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
12380 | shlibpath_var=LD_LIBRARY_PATH |
12381 | shlibpath_overrides_runpath=yes | |
12382 | hardcode_into_libs=yes | |
9d54db95 | 12383 | if test yes = "$with_gnu_ld"; then |
a243b558 JF |
12384 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
12385 | else | |
12386 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
12387 | case $host_os in | |
12388 | sco3.2v5*) | |
12389 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
12390 | ;; | |
12391 | esac | |
12392 | fi | |
12393 | sys_lib_dlsearch_path_spec='/usr/lib' | |
12394 | ;; | |
9c60689e | 12395 | |
a243b558 JF |
12396 | tpf*) |
12397 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
12398 | version_type=linux # correct to gnu/linux during the next big refactor | |
12399 | need_lib_prefix=no | |
12400 | need_version=no | |
9d54db95 | 12401 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
a243b558 JF |
12402 | shlibpath_var=LD_LIBRARY_PATH |
12403 | shlibpath_overrides_runpath=no | |
12404 | hardcode_into_libs=yes | |
12405 | ;; | |
9c60689e | 12406 | |
a243b558 JF |
12407 | uts4*) |
12408 | version_type=linux # correct to gnu/linux during the next big refactor | |
9d54db95 JF |
12409 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
12410 | soname_spec='$libname$release$shared_ext$major' | |
a243b558 JF |
12411 | shlibpath_var=LD_LIBRARY_PATH |
12412 | ;; | |
9c60689e | 12413 | |
a243b558 JF |
12414 | *) |
12415 | dynamic_linker=no | |
12416 | ;; | |
12417 | esac | |
12418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
12419 | $as_echo "$dynamic_linker" >&6; } | |
9d54db95 | 12420 | test no = "$dynamic_linker" && can_build_shared=no |
9c60689e | 12421 | |
a243b558 | 12422 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
9d54db95 | 12423 | if test yes = "$GCC"; then |
a243b558 JF |
12424 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
12425 | fi | |
9c60689e | 12426 | |
9d54db95 JF |
12427 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
12428 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
a243b558 | 12429 | fi |
9d54db95 JF |
12430 | |
12431 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
12432 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
a243b558 | 12433 | fi |
9c60689e | 12434 | |
9d54db95 JF |
12435 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
12436 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec | |
12437 | ||
12438 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code | |
12439 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
12440 | ||
12441 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool | |
12442 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH | |
12443 | ||
12444 | ||
12445 | ||
12446 | ||
12447 | ||
12448 | ||
9c60689e DWT |
12449 | |
12450 | ||
12451 | ||
12452 | ||
12453 | ||
12454 | ||
12455 | ||
9c60689e DWT |
12456 | |
12457 | ||
12458 | ||
12459 | ||
12460 | ||
12461 | ||
12462 | ||
12463 | ||
12464 | ||
12465 | ||
12466 | ||
12467 | ||
9c60689e | 12468 | |
9c60689e | 12469 | |
9c60689e | 12470 | |
9c60689e | 12471 | |
9c60689e DWT |
12472 | |
12473 | ||
12474 | ||
12475 | ||
9c60689e | 12476 | |
9c60689e DWT |
12477 | |
12478 | ||
12479 | ||
12480 | ||
12481 | ||
12482 | ||
12483 | ||
12484 | ||
12485 | ||
12486 | ||
12487 | ||
12488 | ||
12489 | ||
53ba6704 JF |
12490 | |
12491 | ||
9c60689e DWT |
12492 | |
12493 | ||
12494 | ||
12495 | ||
9c60689e DWT |
12496 | |
12497 | ||
3fd51f51 | 12498 | |
66170b30 JF |
12499 | |
12500 | ||
12501 | ||
3fd51f51 | 12502 | |
12833ad8 JF |
12503 | |
12504 | ||
12505 | ||
12506 | ||
3fd51f51 | 12507 | |
3fd51f51 DWT |
12508 | |
12509 | ||
3fd51f51 | 12510 | |
3fd51f51 | 12511 | |
3fd51f51 | 12512 | |
66170b30 | 12513 | |
632b71ea | 12514 | |
632b71ea DWT |
12515 | |
12516 | ||
790e5246 | 12517 | |
66170b30 | 12518 | |
9c60689e | 12519 | |
9c60689e DWT |
12520 | |
12521 | ||
9c60689e | 12522 | |
9c60689e DWT |
12523 | |
12524 | ||
66170b30 | 12525 | |
66170b30 | 12526 | |
9c60689e | 12527 | |
e9c9a47c DWT |
12528 | |
12529 | ||
12530 | ||
66170b30 JF |
12531 | |
12532 | ||
66170b30 | 12533 | |
e9c9a47c | 12534 | |
a243b558 JF |
12535 | |
12536 | ||
12537 | ||
12538 | ||
12539 | ||
12540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
12541 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
12542 | hardcode_action= | |
12543 | if test -n "$hardcode_libdir_flag_spec" || | |
12544 | test -n "$runpath_var" || | |
9d54db95 | 12545 | test yes = "$hardcode_automatic"; then |
a243b558 JF |
12546 | |
12547 | # We can hardcode non-existent directories. | |
9d54db95 | 12548 | if test no != "$hardcode_direct" && |
a243b558 JF |
12549 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
12550 | # have to relink, otherwise we might link with an installed library | |
12551 | # when we should be linking with a yet-to-be-installed one | |
9d54db95 JF |
12552 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
12553 | test no != "$hardcode_minus_L"; then | |
a243b558 JF |
12554 | # Linking always hardcodes the temporary library directory. |
12555 | hardcode_action=relink | |
12556 | else | |
12557 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12558 | hardcode_action=immediate | |
9c60689e | 12559 | fi |
e9c9a47c | 12560 | else |
a243b558 JF |
12561 | # We cannot hardcode anything, or else we can only hardcode existing |
12562 | # directories. | |
12563 | hardcode_action=unsupported | |
12564 | fi | |
12565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
12566 | $as_echo "$hardcode_action" >&6; } | |
12567 | ||
9d54db95 JF |
12568 | if test relink = "$hardcode_action" || |
12569 | test yes = "$inherit_rpath"; then | |
a243b558 JF |
12570 | # Fast installation is not supported |
12571 | enable_fast_install=no | |
9d54db95 JF |
12572 | elif test yes = "$shlibpath_overrides_runpath" || |
12573 | test no = "$enable_shared"; then | |
a243b558 JF |
12574 | # Fast installation is not necessary |
12575 | enable_fast_install=needless | |
9c60689e | 12576 | fi |
9c60689e | 12577 | |
9c60689e | 12578 | |
66170b30 | 12579 | |
66170b30 | 12580 | |
9c60689e | 12581 | |
a243b558 | 12582 | |
9d54db95 | 12583 | if test yes != "$enable_dlopen"; then |
a243b558 JF |
12584 | enable_dlopen=unknown |
12585 | enable_dlopen_self=unknown | |
12586 | enable_dlopen_self_static=unknown | |
66170b30 | 12587 | else |
a243b558 JF |
12588 | lt_cv_dlopen=no |
12589 | lt_cv_dlopen_libs= | |
66170b30 | 12590 | |
a243b558 JF |
12591 | case $host_os in |
12592 | beos*) | |
9d54db95 | 12593 | lt_cv_dlopen=load_add_on |
a243b558 JF |
12594 | lt_cv_dlopen_libs= |
12595 | lt_cv_dlopen_self=yes | |
12596 | ;; | |
66170b30 | 12597 | |
a243b558 | 12598 | mingw* | pw32* | cegcc*) |
9d54db95 | 12599 | lt_cv_dlopen=LoadLibrary |
a243b558 JF |
12600 | lt_cv_dlopen_libs= |
12601 | ;; | |
66170b30 | 12602 | |
a243b558 | 12603 | cygwin*) |
9d54db95 | 12604 | lt_cv_dlopen=dlopen |
a243b558 JF |
12605 | lt_cv_dlopen_libs= |
12606 | ;; | |
66170b30 | 12607 | |
a243b558 | 12608 | darwin*) |
9d54db95 | 12609 | # if libdl is installed we need to link against it |
a243b558 JF |
12610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
12611 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12612 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
12613 | $as_echo_n "(cached) " >&6 | |
12614 | else | |
12615 | ac_check_lib_save_LIBS=$LIBS | |
12616 | LIBS="-ldl $LIBS" | |
12617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12618 | /* end confdefs.h. */ | |
66170b30 | 12619 | |
a243b558 JF |
12620 | /* Override any GCC internal prototype to avoid an error. |
12621 | Use char because int might match the return type of a GCC | |
12622 | builtin and then its argument prototype would still apply. */ | |
12623 | #ifdef __cplusplus | |
12624 | extern "C" | |
12625 | #endif | |
12626 | char dlopen (); | |
12627 | int | |
12628 | main () | |
12629 | { | |
12630 | return dlopen (); | |
12631 | ; | |
12632 | return 0; | |
12633 | } | |
12634 | _ACEOF | |
12635 | if ac_fn_c_try_link "$LINENO"; then : | |
12636 | ac_cv_lib_dl_dlopen=yes | |
12637 | else | |
12638 | ac_cv_lib_dl_dlopen=no | |
66170b30 | 12639 | fi |
a243b558 JF |
12640 | rm -f core conftest.err conftest.$ac_objext \ |
12641 | conftest$ac_exeext conftest.$ac_ext | |
12642 | LIBS=$ac_check_lib_save_LIBS | |
66170b30 | 12643 | fi |
a243b558 JF |
12644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
12645 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12646 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
9d54db95 | 12647 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
a243b558 | 12648 | else |
66170b30 | 12649 | |
9d54db95 | 12650 | lt_cv_dlopen=dyld |
a243b558 JF |
12651 | lt_cv_dlopen_libs= |
12652 | lt_cv_dlopen_self=yes | |
66170b30 | 12653 | |
a243b558 | 12654 | fi |
9c60689e | 12655 | |
a243b558 | 12656 | ;; |
9c60689e | 12657 | |
9d54db95 JF |
12658 | tpf*) |
12659 | # Don't try to run any link tests for TPF. We know it's impossible | |
12660 | # because TPF is a cross-compiler, and we know how we open DSOs. | |
12661 | lt_cv_dlopen=dlopen | |
12662 | lt_cv_dlopen_libs= | |
12663 | lt_cv_dlopen_self=no | |
12664 | ;; | |
12665 | ||
a243b558 JF |
12666 | *) |
12667 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
12668 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
9d54db95 | 12669 | lt_cv_dlopen=shl_load |
a243b558 JF |
12670 | else |
12671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
12672 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
12673 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
12674 | $as_echo_n "(cached) " >&6 | |
12675 | else | |
12676 | ac_check_lib_save_LIBS=$LIBS | |
12677 | LIBS="-ldld $LIBS" | |
12678 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12679 | /* end confdefs.h. */ | |
66170b30 | 12680 | |
a243b558 JF |
12681 | /* Override any GCC internal prototype to avoid an error. |
12682 | Use char because int might match the return type of a GCC | |
12683 | builtin and then its argument prototype would still apply. */ | |
12684 | #ifdef __cplusplus | |
12685 | extern "C" | |
12686 | #endif | |
12687 | char shl_load (); | |
12688 | int | |
12689 | main () | |
12690 | { | |
12691 | return shl_load (); | |
12692 | ; | |
12693 | return 0; | |
12694 | } | |
12695 | _ACEOF | |
12696 | if ac_fn_c_try_link "$LINENO"; then : | |
12697 | ac_cv_lib_dld_shl_load=yes | |
66170b30 | 12698 | else |
a243b558 JF |
12699 | ac_cv_lib_dld_shl_load=no |
12700 | fi | |
12701 | rm -f core conftest.err conftest.$ac_objext \ | |
12702 | conftest$ac_exeext conftest.$ac_ext | |
12703 | LIBS=$ac_check_lib_save_LIBS | |
66170b30 | 12704 | fi |
a243b558 JF |
12705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
12706 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
12707 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
9d54db95 | 12708 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
a243b558 JF |
12709 | else |
12710 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
12711 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
9d54db95 | 12712 | lt_cv_dlopen=dlopen |
a243b558 JF |
12713 | else |
12714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12715 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12716 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
12717 | $as_echo_n "(cached) " >&6 | |
12718 | else | |
12719 | ac_check_lib_save_LIBS=$LIBS | |
12720 | LIBS="-ldl $LIBS" | |
12721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12722 | /* end confdefs.h. */ | |
e9c9a47c | 12723 | |
a243b558 JF |
12724 | /* Override any GCC internal prototype to avoid an error. |
12725 | Use char because int might match the return type of a GCC | |
12726 | builtin and then its argument prototype would still apply. */ | |
12727 | #ifdef __cplusplus | |
12728 | extern "C" | |
12729 | #endif | |
12730 | char dlopen (); | |
12731 | int | |
12732 | main () | |
12733 | { | |
12734 | return dlopen (); | |
12735 | ; | |
12736 | return 0; | |
12737 | } | |
12738 | _ACEOF | |
12739 | if ac_fn_c_try_link "$LINENO"; then : | |
12740 | ac_cv_lib_dl_dlopen=yes | |
12741 | else | |
12742 | ac_cv_lib_dl_dlopen=no | |
12743 | fi | |
12744 | rm -f core conftest.err conftest.$ac_objext \ | |
12745 | conftest$ac_exeext conftest.$ac_ext | |
12746 | LIBS=$ac_check_lib_save_LIBS | |
12747 | fi | |
12748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12749 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12750 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
9d54db95 | 12751 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
a243b558 JF |
12752 | else |
12753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
12754 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
12755 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
12756 | $as_echo_n "(cached) " >&6 | |
12757 | else | |
12758 | ac_check_lib_save_LIBS=$LIBS | |
12759 | LIBS="-lsvld $LIBS" | |
12760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12761 | /* end confdefs.h. */ | |
12762 | ||
12763 | /* Override any GCC internal prototype to avoid an error. | |
12764 | Use char because int might match the return type of a GCC | |
12765 | builtin and then its argument prototype would still apply. */ | |
12766 | #ifdef __cplusplus | |
12767 | extern "C" | |
12768 | #endif | |
12769 | char dlopen (); | |
12770 | int | |
12771 | main () | |
12772 | { | |
12773 | return dlopen (); | |
12774 | ; | |
12775 | return 0; | |
12776 | } | |
12777 | _ACEOF | |
12778 | if ac_fn_c_try_link "$LINENO"; then : | |
12779 | ac_cv_lib_svld_dlopen=yes | |
12780 | else | |
12781 | ac_cv_lib_svld_dlopen=no | |
12782 | fi | |
12783 | rm -f core conftest.err conftest.$ac_objext \ | |
12784 | conftest$ac_exeext conftest.$ac_ext | |
12785 | LIBS=$ac_check_lib_save_LIBS | |
12786 | fi | |
12787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
12788 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
12789 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
9d54db95 | 12790 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
a243b558 JF |
12791 | else |
12792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
12793 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
12794 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
12795 | $as_echo_n "(cached) " >&6 | |
12796 | else | |
12797 | ac_check_lib_save_LIBS=$LIBS | |
12798 | LIBS="-ldld $LIBS" | |
12799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12800 | /* end confdefs.h. */ | |
12801 | ||
12802 | /* Override any GCC internal prototype to avoid an error. | |
12803 | Use char because int might match the return type of a GCC | |
12804 | builtin and then its argument prototype would still apply. */ | |
12805 | #ifdef __cplusplus | |
12806 | extern "C" | |
12807 | #endif | |
12808 | char dld_link (); | |
12809 | int | |
12810 | main () | |
12811 | { | |
12812 | return dld_link (); | |
12813 | ; | |
12814 | return 0; | |
12815 | } | |
12816 | _ACEOF | |
12817 | if ac_fn_c_try_link "$LINENO"; then : | |
12818 | ac_cv_lib_dld_dld_link=yes | |
9c60689e | 12819 | else |
a243b558 JF |
12820 | ac_cv_lib_dld_dld_link=no |
12821 | fi | |
12822 | rm -f core conftest.err conftest.$ac_objext \ | |
12823 | conftest$ac_exeext conftest.$ac_ext | |
12824 | LIBS=$ac_check_lib_save_LIBS | |
12825 | fi | |
12826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
12827 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
12828 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
9d54db95 | 12829 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
9c60689e DWT |
12830 | fi |
12831 | ||
12832 | ||
a243b558 | 12833 | fi |
66170b30 | 12834 | |
66170b30 | 12835 | |
a243b558 | 12836 | fi |
66170b30 | 12837 | |
66170b30 JF |
12838 | |
12839 | fi | |
e9c9a47c | 12840 | |
66170b30 | 12841 | |
a243b558 | 12842 | fi |
66170b30 | 12843 | |
66170b30 | 12844 | |
66170b30 | 12845 | fi |
e9c9a47c | 12846 | |
a243b558 JF |
12847 | ;; |
12848 | esac | |
9c60689e | 12849 | |
9d54db95 | 12850 | if test no = "$lt_cv_dlopen"; then |
a243b558 | 12851 | enable_dlopen=no |
9d54db95 JF |
12852 | else |
12853 | enable_dlopen=yes | |
a243b558 | 12854 | fi |
9c60689e | 12855 | |
a243b558 JF |
12856 | case $lt_cv_dlopen in |
12857 | dlopen) | |
9d54db95 JF |
12858 | save_CPPFLAGS=$CPPFLAGS |
12859 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
66170b30 | 12860 | |
9d54db95 | 12861 | save_LDFLAGS=$LDFLAGS |
a243b558 | 12862 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
66170b30 | 12863 | |
9d54db95 | 12864 | save_LIBS=$LIBS |
a243b558 | 12865 | LIBS="$lt_cv_dlopen_libs $LIBS" |
3fd51f51 | 12866 | |
a243b558 JF |
12867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
12868 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
12869 | if ${lt_cv_dlopen_self+:} false; then : | |
12870 | $as_echo_n "(cached) " >&6 | |
e9c9a47c | 12871 | else |
9d54db95 | 12872 | if test yes = "$cross_compiling"; then : |
a243b558 JF |
12873 | lt_cv_dlopen_self=cross |
12874 | else | |
12875 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12876 | lt_status=$lt_dlunknown | |
12877 | cat > conftest.$ac_ext <<_LT_EOF | |
12878 | #line $LINENO "configure" | |
12879 | #include "confdefs.h" | |
e9c9a47c | 12880 | |
a243b558 JF |
12881 | #if HAVE_DLFCN_H |
12882 | #include <dlfcn.h> | |
12883 | #endif | |
e9c9a47c | 12884 | |
a243b558 | 12885 | #include <stdio.h> |
66170b30 | 12886 | |
a243b558 JF |
12887 | #ifdef RTLD_GLOBAL |
12888 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12889 | #else | |
12890 | # ifdef DL_GLOBAL | |
12891 | # define LT_DLGLOBAL DL_GLOBAL | |
12892 | # else | |
12893 | # define LT_DLGLOBAL 0 | |
12894 | # endif | |
12895 | #endif | |
66170b30 | 12896 | |
a243b558 JF |
12897 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12898 | find out it does not work in some platform. */ | |
12899 | #ifndef LT_DLLAZY_OR_NOW | |
12900 | # ifdef RTLD_LAZY | |
12901 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12902 | # else | |
12903 | # ifdef DL_LAZY | |
12904 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12905 | # else | |
12906 | # ifdef RTLD_NOW | |
12907 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12908 | # else | |
12909 | # ifdef DL_NOW | |
12910 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12911 | # else | |
12912 | # define LT_DLLAZY_OR_NOW 0 | |
12913 | # endif | |
12914 | # endif | |
12915 | # endif | |
12916 | # endif | |
12917 | #endif | |
e9c9a47c | 12918 | |
9d54db95 | 12919 | /* When -fvisibility=hidden is used, assume the code has been annotated |
a243b558 | 12920 | correspondingly for the symbols needed. */ |
9d54db95 | 12921 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
a243b558 JF |
12922 | int fnord () __attribute__((visibility("default"))); |
12923 | #endif | |
e9c9a47c | 12924 | |
a243b558 JF |
12925 | int fnord () { return 42; } |
12926 | int main () | |
12927 | { | |
12928 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12929 | int status = $lt_dlunknown; | |
e9c9a47c | 12930 | |
a243b558 JF |
12931 | if (self) |
12932 | { | |
12933 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12934 | else | |
12935 | { | |
12936 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12937 | else puts (dlerror ()); | |
12938 | } | |
12939 | /* dlclose (self); */ | |
12940 | } | |
12941 | else | |
12942 | puts (dlerror ()); | |
e9c9a47c | 12943 | |
a243b558 JF |
12944 | return status; |
12945 | } | |
12946 | _LT_EOF | |
12947 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12948 | (eval $ac_link) 2>&5 | |
12949 | ac_status=$? | |
12950 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9d54db95 | 12951 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
a243b558 JF |
12952 | (./conftest; exit; ) >&5 2>/dev/null |
12953 | lt_status=$? | |
12954 | case x$lt_status in | |
12955 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12956 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12957 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12958 | esac | |
12959 | else : | |
12960 | # compilation failed | |
12961 | lt_cv_dlopen_self=no | |
12962 | fi | |
12963 | fi | |
12964 | rm -fr conftest* | |
e9c9a47c | 12965 | |
e9c9a47c | 12966 | |
e9c9a47c | 12967 | fi |
a243b558 JF |
12968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
12969 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
e9c9a47c | 12970 | |
9d54db95 | 12971 | if test yes = "$lt_cv_dlopen_self"; then |
a243b558 JF |
12972 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
12973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
12974 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
12975 | if ${lt_cv_dlopen_self_static+:} false; then : | |
12976 | $as_echo_n "(cached) " >&6 | |
e9c9a47c | 12977 | else |
9d54db95 | 12978 | if test yes = "$cross_compiling"; then : |
a243b558 JF |
12979 | lt_cv_dlopen_self_static=cross |
12980 | else | |
12981 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12982 | lt_status=$lt_dlunknown | |
12983 | cat > conftest.$ac_ext <<_LT_EOF | |
12984 | #line $LINENO "configure" | |
12985 | #include "confdefs.h" | |
12986 | ||
12987 | #if HAVE_DLFCN_H | |
12988 | #include <dlfcn.h> | |
12989 | #endif | |
12990 | ||
12991 | #include <stdio.h> | |
e9c9a47c | 12992 | |
a243b558 JF |
12993 | #ifdef RTLD_GLOBAL |
12994 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12995 | #else | |
12996 | # ifdef DL_GLOBAL | |
12997 | # define LT_DLGLOBAL DL_GLOBAL | |
12998 | # else | |
12999 | # define LT_DLGLOBAL 0 | |
13000 | # endif | |
13001 | #endif | |
e9c9a47c | 13002 | |
a243b558 JF |
13003 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
13004 | find out it does not work in some platform. */ | |
13005 | #ifndef LT_DLLAZY_OR_NOW | |
13006 | # ifdef RTLD_LAZY | |
13007 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
13008 | # else | |
13009 | # ifdef DL_LAZY | |
13010 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
13011 | # else | |
13012 | # ifdef RTLD_NOW | |
13013 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
13014 | # else | |
13015 | # ifdef DL_NOW | |
13016 | # define LT_DLLAZY_OR_NOW DL_NOW | |
13017 | # else | |
13018 | # define LT_DLLAZY_OR_NOW 0 | |
13019 | # endif | |
13020 | # endif | |
13021 | # endif | |
13022 | # endif | |
13023 | #endif | |
66170b30 | 13024 | |
9d54db95 | 13025 | /* When -fvisibility=hidden is used, assume the code has been annotated |
a243b558 | 13026 | correspondingly for the symbols needed. */ |
9d54db95 | 13027 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
a243b558 JF |
13028 | int fnord () __attribute__((visibility("default"))); |
13029 | #endif | |
e9c9a47c | 13030 | |
a243b558 JF |
13031 | int fnord () { return 42; } |
13032 | int main () | |
13033 | { | |
13034 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
13035 | int status = $lt_dlunknown; | |
e9c9a47c | 13036 | |
a243b558 JF |
13037 | if (self) |
13038 | { | |
13039 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
13040 | else | |
13041 | { | |
13042 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
13043 | else puts (dlerror ()); | |
13044 | } | |
13045 | /* dlclose (self); */ | |
13046 | } | |
13047 | else | |
13048 | puts (dlerror ()); | |
e9c9a47c | 13049 | |
a243b558 JF |
13050 | return status; |
13051 | } | |
13052 | _LT_EOF | |
13053 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
13054 | (eval $ac_link) 2>&5 | |
13055 | ac_status=$? | |
13056 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9d54db95 | 13057 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
a243b558 JF |
13058 | (./conftest; exit; ) >&5 2>/dev/null |
13059 | lt_status=$? | |
13060 | case x$lt_status in | |
13061 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
13062 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
13063 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
13064 | esac | |
13065 | else : | |
13066 | # compilation failed | |
13067 | lt_cv_dlopen_self_static=no | |
13068 | fi | |
13069 | fi | |
13070 | rm -fr conftest* | |
e9c9a47c | 13071 | |
b65019fe | 13072 | |
a243b558 JF |
13073 | fi |
13074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
13075 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
13076 | fi | |
66170b30 | 13077 | |
9d54db95 JF |
13078 | CPPFLAGS=$save_CPPFLAGS |
13079 | LDFLAGS=$save_LDFLAGS | |
13080 | LIBS=$save_LIBS | |
a243b558 JF |
13081 | ;; |
13082 | esac | |
66170b30 | 13083 | |
a243b558 JF |
13084 | case $lt_cv_dlopen_self in |
13085 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
13086 | *) enable_dlopen_self=unknown ;; | |
13087 | esac | |
13088 | ||
13089 | case $lt_cv_dlopen_self_static in | |
13090 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
13091 | *) enable_dlopen_self_static=unknown ;; | |
13092 | esac | |
b65019fe DWT |
13093 | fi |
13094 | ||
13095 | ||
66170b30 | 13096 | |
b65019fe | 13097 | |
e9c9a47c | 13098 | |
e9c9a47c DWT |
13099 | |
13100 | ||
e9c9a47c | 13101 | |
e9c9a47c DWT |
13102 | |
13103 | ||
e9c9a47c | 13104 | |
e9c9a47c | 13105 | |
3530897b | 13106 | |
47aaa820 | 13107 | |
47aaa820 | 13108 | |
a243b558 JF |
13109 | |
13110 | ||
13111 | striplib= | |
13112 | old_striplib= | |
13113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
13114 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
13115 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
13116 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
13117 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
13118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13119 | $as_echo "yes" >&6; } | |
47aaa820 | 13120 | else |
a243b558 JF |
13121 | # FIXME - insert some real tests, host_os isn't really good enough |
13122 | case $host_os in | |
13123 | darwin*) | |
9d54db95 | 13124 | if test -n "$STRIP"; then |
a243b558 JF |
13125 | striplib="$STRIP -x" |
13126 | old_striplib="$STRIP -S" | |
13127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13128 | $as_echo "yes" >&6; } | |
13129 | else | |
13130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13131 | $as_echo "no" >&6; } | |
13132 | fi | |
13133 | ;; | |
13134 | *) | |
13135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13136 | $as_echo "no" >&6; } | |
13137 | ;; | |
13138 | esac | |
3530897b | 13139 | fi |
47aaa820 | 13140 | |
3530897b DWT |
13141 | |
13142 | ||
9c60689e | 13143 | |
9c60689e | 13144 | |
9c60689e | 13145 | |
9c60689e | 13146 | |
9c60689e | 13147 | |
66170b30 | 13148 | |
66170b30 | 13149 | |
66170b30 | 13150 | |
66170b30 | 13151 | |
9d54db95 | 13152 | # Report what library types will actually be built |
a243b558 JF |
13153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
13154 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
13155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
13156 | $as_echo "$can_build_shared" >&6; } | |
66170b30 | 13157 | |
a243b558 JF |
13158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
13159 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
9d54db95 | 13160 | test no = "$can_build_shared" && enable_shared=no |
66170b30 | 13161 | |
a243b558 JF |
13162 | # On AIX, shared libraries and static libraries use the same namespace, and |
13163 | # are all built from PIC. | |
13164 | case $host_os in | |
13165 | aix3*) | |
9d54db95 | 13166 | test yes = "$enable_shared" && enable_static=no |
a243b558 JF |
13167 | if test -n "$RANLIB"; then |
13168 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13169 | postinstall_cmds='$RANLIB $lib' | |
13170 | fi | |
13171 | ;; | |
66170b30 | 13172 | |
a243b558 | 13173 | aix[4-9]*) |
9d54db95 JF |
13174 | if test ia64 != "$host_cpu"; then |
13175 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in | |
13176 | yes,aix,yes) ;; # shared object as lib.so file only | |
13177 | yes,svr4,*) ;; # shared object as lib.so archive member only | |
13178 | yes,*) enable_static=no ;; # shared object in lib.a archive as well | |
13179 | esac | |
a243b558 JF |
13180 | fi |
13181 | ;; | |
13182 | esac | |
13183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
13184 | $as_echo "$enable_shared" >&6; } | |
66170b30 | 13185 | |
a243b558 JF |
13186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
13187 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
13188 | # Make sure either enable_shared or enable_static is yes. | |
9d54db95 | 13189 | test yes = "$enable_shared" || enable_static=yes |
a243b558 JF |
13190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
13191 | $as_echo "$enable_static" >&6; } | |
66170b30 | 13192 | |
9c60689e | 13193 | |
e9c9a47c | 13194 | |
9c60689e | 13195 | |
a243b558 JF |
13196 | fi |
13197 | ac_ext=c | |
13198 | ac_cpp='$CPP $CPPFLAGS' | |
13199 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13200 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13201 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13202 | ||
9d54db95 | 13203 | CC=$lt_save_CC |
e9c9a47c | 13204 | |
9d54db95 JF |
13205 | if test -n "$CXX" && ( test no != "$CXX" && |
13206 | ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || | |
13207 | (test g++ != "$CXX"))); then | |
e9c9a47c DWT |
13208 | ac_ext=cpp |
13209 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13210 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13211 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13212 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
13214 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
13215 | if test -z "$CXXCPP"; then | |
ee134472 | 13216 | if ${ac_cv_prog_CXXCPP+:} false; then : |
e9c9a47c DWT |
13217 | $as_echo_n "(cached) " >&6 |
13218 | else | |
13219 | # Double quotes because CXXCPP needs to be expanded | |
13220 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
13221 | do | |
13222 | ac_preproc_ok=false | |
13223 | for ac_cxx_preproc_warn_flag in '' yes | |
13224 | do | |
13225 | # Use a header file that comes with gcc, so configuring glibc | |
13226 | # with a fresh cross-compiler works. | |
13227 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13228 | # <limits.h> exists even on freestanding compilers. | |
13229 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
13230 | # not just through cpp. "Syntax error" is here to catch this case. | |
13231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13232 | /* end confdefs.h. */ | |
13233 | #ifdef __STDC__ | |
13234 | # include <limits.h> | |
13235 | #else | |
13236 | # include <assert.h> | |
13237 | #endif | |
13238 | Syntax error | |
13239 | _ACEOF | |
13240 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
13241 | ||
13242 | else | |
13243 | # Broken: fails on valid input. | |
13244 | continue | |
13245 | fi | |
12833ad8 | 13246 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
13247 | |
13248 | # OK, works on sane cases. Now check whether nonexistent headers | |
13249 | # can be detected and how. | |
13250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13251 | /* end confdefs.h. */ | |
13252 | #include <ac_nonexistent.h> | |
13253 | _ACEOF | |
13254 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
13255 | # Broken: success on invalid input. | |
13256 | continue | |
13257 | else | |
13258 | # Passes both tests. | |
13259 | ac_preproc_ok=: | |
13260 | break | |
13261 | fi | |
12833ad8 | 13262 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
13263 | |
13264 | done | |
13265 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12833ad8 | 13266 | rm -f conftest.i conftest.err conftest.$ac_ext |
e9c9a47c DWT |
13267 | if $ac_preproc_ok; then : |
13268 | break | |
13269 | fi | |
13270 | ||
13271 | done | |
13272 | ac_cv_prog_CXXCPP=$CXXCPP | |
13273 | ||
13274 | fi | |
13275 | CXXCPP=$ac_cv_prog_CXXCPP | |
13276 | else | |
13277 | ac_cv_prog_CXXCPP=$CXXCPP | |
13278 | fi | |
13279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
13280 | $as_echo "$CXXCPP" >&6; } | |
13281 | ac_preproc_ok=false | |
13282 | for ac_cxx_preproc_warn_flag in '' yes | |
13283 | do | |
13284 | # Use a header file that comes with gcc, so configuring glibc | |
13285 | # with a fresh cross-compiler works. | |
13286 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13287 | # <limits.h> exists even on freestanding compilers. | |
13288 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
13289 | # not just through cpp. "Syntax error" is here to catch this case. | |
13290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13291 | /* end confdefs.h. */ | |
13292 | #ifdef __STDC__ | |
13293 | # include <limits.h> | |
13294 | #else | |
13295 | # include <assert.h> | |
13296 | #endif | |
13297 | Syntax error | |
13298 | _ACEOF | |
13299 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
13300 | ||
13301 | else | |
13302 | # Broken: fails on valid input. | |
13303 | continue | |
13304 | fi | |
12833ad8 | 13305 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
13306 | |
13307 | # OK, works on sane cases. Now check whether nonexistent headers | |
13308 | # can be detected and how. | |
13309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13310 | /* end confdefs.h. */ | |
13311 | #include <ac_nonexistent.h> | |
13312 | _ACEOF | |
13313 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
13314 | # Broken: success on invalid input. | |
13315 | continue | |
13316 | else | |
13317 | # Passes both tests. | |
13318 | ac_preproc_ok=: | |
13319 | break | |
13320 | fi | |
12833ad8 | 13321 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
13322 | |
13323 | done | |
13324 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12833ad8 | 13325 | rm -f conftest.i conftest.err conftest.$ac_ext |
e9c9a47c DWT |
13326 | if $ac_preproc_ok; then : |
13327 | ||
13328 | else | |
13329 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13330 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
ee134472 JF |
13331 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
13332 | See \`config.log' for more details" "$LINENO" 5; } | |
e9c9a47c DWT |
13333 | fi |
13334 | ||
a243b558 JF |
13335 | ac_ext=c |
13336 | ac_cpp='$CPP $CPPFLAGS' | |
13337 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13338 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13339 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
66170b30 JF |
13340 | |
13341 | else | |
e9c9a47c DWT |
13342 | _lt_caught_CXX_error=yes |
13343 | fi | |
13344 | ||
9c60689e DWT |
13345 | ac_ext=cpp |
13346 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13347 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13348 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13349 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
9c60689e | 13350 | |
47aaa820 DWT |
13351 | archive_cmds_need_lc_CXX=no |
13352 | allow_undefined_flag_CXX= | |
13353 | always_export_symbols_CXX=no | |
13354 | archive_expsym_cmds_CXX= | |
13355 | compiler_needs_object_CXX=no | |
13356 | export_dynamic_flag_spec_CXX= | |
13357 | hardcode_direct_CXX=no | |
13358 | hardcode_direct_absolute_CXX=no | |
13359 | hardcode_libdir_flag_spec_CXX= | |
47aaa820 DWT |
13360 | hardcode_libdir_separator_CXX= |
13361 | hardcode_minus_L_CXX=no | |
13362 | hardcode_shlibpath_var_CXX=unsupported | |
13363 | hardcode_automatic_CXX=no | |
13364 | inherit_rpath_CXX=no | |
13365 | module_cmds_CXX= | |
13366 | module_expsym_cmds_CXX= | |
13367 | link_all_deplibs_CXX=unknown | |
13368 | old_archive_cmds_CXX=$old_archive_cmds | |
ee134472 JF |
13369 | reload_flag_CXX=$reload_flag |
13370 | reload_cmds_CXX=$reload_cmds | |
47aaa820 DWT |
13371 | no_undefined_flag_CXX= |
13372 | whole_archive_flag_spec_CXX= | |
13373 | enable_shared_with_static_runtimes_CXX=no | |
9c60689e | 13374 | |
47aaa820 DWT |
13375 | # Source file extension for C++ test sources. |
13376 | ac_ext=cpp | |
9c60689e | 13377 | |
47aaa820 DWT |
13378 | # Object file extension for compiled C++ test sources. |
13379 | objext=o | |
13380 | objext_CXX=$objext | |
9c60689e | 13381 | |
47aaa820 DWT |
13382 | # No sense in running all these tests if we already determined that |
13383 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
13384 | # are currently assumed to apply to all compilers on this platform, | |
13385 | # and will be corrupted by setting them based on a non-working compiler. | |
9d54db95 | 13386 | if test yes != "$_lt_caught_CXX_error"; then |
47aaa820 DWT |
13387 | # Code to be used in simple compile tests |
13388 | lt_simple_compile_test_code="int some_variable = 0;" | |
9c60689e | 13389 | |
47aaa820 DWT |
13390 | # Code to be used in simple link tests |
13391 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
9c60689e | 13392 | |
47aaa820 | 13393 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
9c60689e | 13394 | |
9c60689e | 13395 | |
9c60689e | 13396 | |
9c60689e | 13397 | |
9c60689e | 13398 | |
9c60689e | 13399 | |
47aaa820 DWT |
13400 | # If no C compiler was specified, use CC. |
13401 | LTCC=${LTCC-"$CC"} | |
9c60689e | 13402 | |
47aaa820 DWT |
13403 | # If no C compiler flags were specified, use CFLAGS. |
13404 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9c60689e | 13405 | |
47aaa820 DWT |
13406 | # Allow CC to be a program name with arguments. |
13407 | compiler=$CC | |
9c60689e | 13408 | |
9c60689e | 13409 | |
47aaa820 DWT |
13410 | # save warnings/boilerplate of simple test code |
13411 | ac_outfile=conftest.$ac_objext | |
13412 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
13413 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13414 | _lt_compiler_boilerplate=`cat conftest.err` | |
00a96142 | 13415 | $RM -r conftest* |
9c60689e | 13416 | |
47aaa820 DWT |
13417 | ac_outfile=conftest.$ac_objext |
13418 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
13419 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13420 | _lt_linker_boilerplate=`cat conftest.err` | |
13421 | $RM -r conftest* | |
9c60689e | 13422 | |
9c60689e | 13423 | |
47aaa820 DWT |
13424 | # Allow CC to be a program name with arguments. |
13425 | lt_save_CC=$CC | |
ee134472 | 13426 | lt_save_CFLAGS=$CFLAGS |
47aaa820 DWT |
13427 | lt_save_LD=$LD |
13428 | lt_save_GCC=$GCC | |
13429 | GCC=$GXX | |
13430 | lt_save_with_gnu_ld=$with_gnu_ld | |
13431 | lt_save_path_LD=$lt_cv_path_LD | |
13432 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
13433 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
9c60689e | 13434 | else |
47aaa820 | 13435 | $as_unset lt_cv_prog_gnu_ld |
9c60689e | 13436 | fi |
47aaa820 DWT |
13437 | if test -n "${lt_cv_path_LDCXX+set}"; then |
13438 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
9c60689e | 13439 | else |
47aaa820 | 13440 | $as_unset lt_cv_path_LD |
9c60689e | 13441 | fi |
47aaa820 DWT |
13442 | test -z "${LDCXX+set}" || LD=$LDCXX |
13443 | CC=${CXX-"c++"} | |
ee134472 | 13444 | CFLAGS=$CXXFLAGS |
47aaa820 DWT |
13445 | compiler=$CC |
13446 | compiler_CXX=$CC | |
9d54db95 JF |
13447 | func_cc_basename $compiler |
13448 | cc_basename=$func_cc_basename_result | |
9c60689e DWT |
13449 | |
13450 | ||
47aaa820 DWT |
13451 | if test -n "$compiler"; then |
13452 | # We don't want -fno-exception when compiling C++ code, so set the | |
13453 | # no_builtin_flag separately | |
9d54db95 | 13454 | if test yes = "$GXX"; then |
47aaa820 DWT |
13455 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
13456 | else | |
13457 | lt_prog_compiler_no_builtin_flag_CXX= | |
13458 | fi | |
9c60689e | 13459 | |
9d54db95 | 13460 | if test yes = "$GXX"; then |
47aaa820 DWT |
13461 | # Set up default GNU C++ configuration |
13462 | ||
13463 | ||
13464 | ||
13465 | # Check whether --with-gnu-ld was given. | |
13466 | if test "${with_gnu_ld+set}" = set; then : | |
9d54db95 | 13467 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
9c60689e | 13468 | else |
47aaa820 | 13469 | with_gnu_ld=no |
9c60689e DWT |
13470 | fi |
13471 | ||
47aaa820 | 13472 | ac_prog=ld |
9d54db95 | 13473 | if test yes = "$GCC"; then |
47aaa820 DWT |
13474 | # Check if gcc -print-prog-name=ld gives a path. |
13475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
13476 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
13477 | case $host in | |
13478 | *-*-mingw*) | |
9d54db95 | 13479 | # gcc leaves a trailing carriage return, which upsets mingw |
47aaa820 DWT |
13480 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
13481 | *) | |
13482 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
13483 | esac | |
13484 | case $ac_prog in | |
13485 | # Accept absolute paths. | |
13486 | [\\/]* | ?:[\\/]*) | |
13487 | re_direlt='/[^/][^/]*/\.\./' | |
13488 | # Canonicalize the pathname of ld | |
13489 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
13490 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
13491 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
13492 | done | |
9d54db95 | 13493 | test -z "$LD" && LD=$ac_prog |
47aaa820 DWT |
13494 | ;; |
13495 | "") | |
13496 | # If it fails, then pretend we aren't using GCC. | |
13497 | ac_prog=ld | |
13498 | ;; | |
13499 | *) | |
13500 | # If it is relative, then search for the first ld in PATH. | |
13501 | with_gnu_ld=unknown | |
13502 | ;; | |
13503 | esac | |
9d54db95 | 13504 | elif test yes = "$with_gnu_ld"; then |
47aaa820 DWT |
13505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
13506 | $as_echo_n "checking for GNU ld... " >&6; } | |
13507 | else | |
13508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
13509 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
9c60689e | 13510 | fi |
ee134472 | 13511 | if ${lt_cv_path_LD+:} false; then : |
9c60689e DWT |
13512 | $as_echo_n "(cached) " >&6 |
13513 | else | |
47aaa820 | 13514 | if test -z "$LD"; then |
9d54db95 | 13515 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
47aaa820 | 13516 | for ac_dir in $PATH; do |
9d54db95 | 13517 | IFS=$lt_save_ifs |
47aaa820 DWT |
13518 | test -z "$ac_dir" && ac_dir=. |
13519 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
9d54db95 | 13520 | lt_cv_path_LD=$ac_dir/$ac_prog |
47aaa820 DWT |
13521 | # Check to see if the program is GNU ld. I'd rather use --version, |
13522 | # but apparently some variants of GNU ld only accept -v. | |
13523 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
13524 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
13525 | *GNU* | *'with BFD'*) | |
9d54db95 | 13526 | test no != "$with_gnu_ld" && break |
47aaa820 DWT |
13527 | ;; |
13528 | *) | |
9d54db95 | 13529 | test yes != "$with_gnu_ld" && break |
47aaa820 DWT |
13530 | ;; |
13531 | esac | |
13532 | fi | |
9c60689e | 13533 | done |
9d54db95 | 13534 | IFS=$lt_save_ifs |
47aaa820 | 13535 | else |
9d54db95 | 13536 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
9c60689e DWT |
13537 | fi |
13538 | fi | |
47aaa820 | 13539 | |
9d54db95 | 13540 | LD=$lt_cv_path_LD |
47aaa820 DWT |
13541 | if test -n "$LD"; then |
13542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
13543 | $as_echo "$LD" >&6; } | |
9c60689e DWT |
13544 | else |
13545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13546 | $as_echo "no" >&6; } | |
13547 | fi | |
12833ad8 | 13548 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
47aaa820 DWT |
13549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
13550 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
ee134472 | 13551 | if ${lt_cv_prog_gnu_ld+:} false; then : |
47aaa820 DWT |
13552 | $as_echo_n "(cached) " >&6 |
13553 | else | |
13554 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
13555 | case `$LD -v 2>&1 </dev/null` in | |
13556 | *GNU* | *'with BFD'*) | |
13557 | lt_cv_prog_gnu_ld=yes | |
13558 | ;; | |
13559 | *) | |
13560 | lt_cv_prog_gnu_ld=no | |
13561 | ;; | |
13562 | esac | |
13563 | fi | |
13564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
13565 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
13566 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
9c60689e DWT |
13567 | |
13568 | ||
9c60689e | 13569 | |
9c60689e | 13570 | |
9c60689e | 13571 | |
9c60689e | 13572 | |
9c60689e | 13573 | |
47aaa820 DWT |
13574 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
13575 | # archiving commands below assume that GNU ld is being used. | |
9d54db95 JF |
13576 | if test yes = "$with_gnu_ld"; then |
13577 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' | |
13578 | archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
9c60689e | 13579 | |
9d54db95 JF |
13580 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
13581 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
9c60689e | 13582 | |
47aaa820 DWT |
13583 | # If archive_cmds runs LD, not CC, wlarc should be empty |
13584 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
13585 | # investigate it a little bit more. (MM) | |
9d54db95 | 13586 | wlarc='$wl' |
9c60689e | 13587 | |
47aaa820 DWT |
13588 | # ancient GNU ld didn't support --whole-archive et. al. |
13589 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
13590 | $GREP 'no-whole-archive' > /dev/null; then | |
9d54db95 | 13591 | whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
47aaa820 DWT |
13592 | else |
13593 | whole_archive_flag_spec_CXX= | |
13594 | fi | |
13595 | else | |
13596 | with_gnu_ld=no | |
13597 | wlarc= | |
13598 | ||
13599 | # A generic and very simple default shared library creation | |
13600 | # command for GNU C++ for the case where it uses the native | |
13601 | # linker, instead of GNU ld. If possible, this setting should | |
13602 | # overridden to take advantage of the native linker features on | |
13603 | # the platform it is being used on. | |
13604 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
13605 | fi | |
13606 | ||
13607 | # Commands to make compiler produce verbose output that lists | |
13608 | # what "hidden" libraries, object files and flags are used when | |
13609 | # linking a shared library. | |
ee134472 | 13610 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
47aaa820 DWT |
13611 | |
13612 | else | |
13613 | GXX=no | |
13614 | with_gnu_ld=no | |
13615 | wlarc= | |
13616 | fi | |
13617 | ||
13618 | # PORTME: fill in a description of your system's C++ link characteristics | |
13619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
13620 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
13621 | ld_shlibs_CXX=yes | |
13622 | case $host_os in | |
13623 | aix3*) | |
13624 | # FIXME: insert proper C++ library support | |
13625 | ld_shlibs_CXX=no | |
13626 | ;; | |
13627 | aix[4-9]*) | |
9d54db95 | 13628 | if test ia64 = "$host_cpu"; then |
47aaa820 DWT |
13629 | # On IA64, the linker does run time linking by default, so we don't |
13630 | # have to do anything special. | |
13631 | aix_use_runtimelinking=no | |
13632 | exp_sym_flag='-Bexport' | |
9d54db95 | 13633 | no_entry_flag= |
47aaa820 DWT |
13634 | else |
13635 | aix_use_runtimelinking=no | |
13636 | ||
13637 | # Test if we are trying to use run time linking or normal | |
13638 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9d54db95 JF |
13639 | # have runtime linking enabled, and use it for executables. |
13640 | # For shared libraries, we enable/disable runtime linking | |
13641 | # depending on the kind of the shared library created - | |
13642 | # when "with_aix_soname,aix_use_runtimelinking" is: | |
13643 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
13644 | # "aix,yes" lib.so shared, rtl:yes, for executables | |
13645 | # lib.a static archive | |
13646 | # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
13647 | # lib.a(lib.so.V) shared, rtl:no, for executables | |
13648 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
13649 | # lib.a(lib.so.V) shared, rtl:no | |
13650 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
13651 | # lib.a static archive | |
47aaa820 DWT |
13652 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
13653 | for ld_flag in $LDFLAGS; do | |
13654 | case $ld_flag in | |
13655 | *-brtl*) | |
13656 | aix_use_runtimelinking=yes | |
13657 | break | |
13658 | ;; | |
13659 | esac | |
13660 | done | |
9d54db95 JF |
13661 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
13662 | # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
13663 | # so we don't have lib.a shared libs to link our executables. | |
13664 | # We have to force runtime linking in this case. | |
13665 | aix_use_runtimelinking=yes | |
13666 | LDFLAGS="$LDFLAGS -Wl,-brtl" | |
13667 | fi | |
47aaa820 DWT |
13668 | ;; |
13669 | esac | |
13670 | ||
13671 | exp_sym_flag='-bexport' | |
13672 | no_entry_flag='-bnoentry' | |
13673 | fi | |
13674 | ||
13675 | # When large executables or shared objects are built, AIX ld can | |
13676 | # have problems creating the table of contents. If linking a library | |
13677 | # or program results in "error TOC overflow" add -mminimal-toc to | |
13678 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
13679 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
13680 | ||
13681 | archive_cmds_CXX='' | |
13682 | hardcode_direct_CXX=yes | |
13683 | hardcode_direct_absolute_CXX=yes | |
13684 | hardcode_libdir_separator_CXX=':' | |
13685 | link_all_deplibs_CXX=yes | |
9d54db95 JF |
13686 | file_list_spec_CXX='$wl-f,' |
13687 | case $with_aix_soname,$aix_use_runtimelinking in | |
13688 | aix,*) ;; # no import file | |
13689 | svr4,* | *,yes) # use import file | |
13690 | # The Import File defines what to hardcode. | |
13691 | hardcode_direct_CXX=no | |
13692 | hardcode_direct_absolute_CXX=no | |
13693 | ;; | |
13694 | esac | |
47aaa820 | 13695 | |
9d54db95 | 13696 | if test yes = "$GXX"; then |
47aaa820 DWT |
13697 | case $host_os in aix4.[012]|aix4.[012].*) |
13698 | # We only want to do this on AIX 4.2 and lower, the check | |
13699 | # below for broken collect2 doesn't work under 4.3+ | |
9d54db95 | 13700 | collect2name=`$CC -print-prog-name=collect2` |
47aaa820 DWT |
13701 | if test -f "$collect2name" && |
13702 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
13703 | then | |
13704 | # We have reworked collect2 | |
13705 | : | |
13706 | else | |
13707 | # We have old collect2 | |
13708 | hardcode_direct_CXX=unsupported | |
13709 | # It fails to find uninstalled libraries when the uninstalled | |
13710 | # path is not listed in the libpath. Setting hardcode_minus_L | |
13711 | # to unsupported forces relinking | |
13712 | hardcode_minus_L_CXX=yes | |
13713 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
13714 | hardcode_libdir_separator_CXX= | |
13715 | fi | |
13716 | esac | |
13717 | shared_flag='-shared' | |
9d54db95 JF |
13718 | if test yes = "$aix_use_runtimelinking"; then |
13719 | shared_flag=$shared_flag' $wl-G' | |
47aaa820 | 13720 | fi |
9d54db95 JF |
13721 | # Need to ensure runtime linking is disabled for the traditional |
13722 | # shared library, or the linker may eventually find shared libraries | |
13723 | # /with/ Import File - we do not want to mix them. | |
13724 | shared_flag_aix='-shared' | |
13725 | shared_flag_svr4='-shared $wl-G' | |
47aaa820 DWT |
13726 | else |
13727 | # not using gcc | |
9d54db95 | 13728 | if test ia64 = "$host_cpu"; then |
47aaa820 DWT |
13729 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
13730 | # chokes on -Wl,-G. The following line is correct: | |
13731 | shared_flag='-G' | |
13732 | else | |
9d54db95 JF |
13733 | if test yes = "$aix_use_runtimelinking"; then |
13734 | shared_flag='$wl-G' | |
47aaa820 | 13735 | else |
9d54db95 | 13736 | shared_flag='$wl-bM:SRE' |
47aaa820 | 13737 | fi |
9d54db95 JF |
13738 | shared_flag_aix='$wl-bM:SRE' |
13739 | shared_flag_svr4='$wl-G' | |
47aaa820 DWT |
13740 | fi |
13741 | fi | |
13742 | ||
9d54db95 | 13743 | export_dynamic_flag_spec_CXX='$wl-bexpall' |
47aaa820 DWT |
13744 | # It seems that -bexpall does not export symbols beginning with |
13745 | # underscore (_), so it is better to generate a list of symbols to | |
13746 | # export. | |
13747 | always_export_symbols_CXX=yes | |
9d54db95 | 13748 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
47aaa820 DWT |
13749 | # Warning - without using the other runtime loading flags (-brtl), |
13750 | # -berok will link without error, but may produce a broken library. | |
9d54db95 JF |
13751 | # The "-G" linker flag allows undefined symbols. |
13752 | no_undefined_flag_CXX='-bernotok' | |
47aaa820 DWT |
13753 | # Determine the default libpath from the value encoded in an empty |
13754 | # executable. | |
9d54db95 | 13755 | if test set = "${lt_cv_aix_libpath+set}"; then |
ee134472 JF |
13756 | aix_libpath=$lt_cv_aix_libpath |
13757 | else | |
13758 | if ${lt_cv_aix_libpath__CXX+:} false; then : | |
13759 | $as_echo_n "(cached) " >&6 | |
13760 | else | |
13761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
13762 | /* end confdefs.h. */ |
13763 | ||
13764 | int | |
13765 | main () | |
13766 | { | |
13767 | ||
13768 | ; | |
13769 | return 0; | |
13770 | } | |
13771 | _ACEOF | |
47aaa820 | 13772 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 13773 | |
ee134472 JF |
13774 | lt_aix_libpath_sed=' |
13775 | /Import File Strings/,/^$/ { | |
13776 | /^0/ { | |
13777 | s/^0 *\([^ ]*\) *$/\1/ | |
13778 | p | |
13779 | } | |
13780 | }' | |
13781 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13782 | # Check for a 64-bit object if we didn't find anything. | |
13783 | if test -z "$lt_cv_aix_libpath__CXX"; then | |
13784 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13785 | fi | |
47aaa820 DWT |
13786 | fi |
13787 | rm -f core conftest.err conftest.$ac_objext \ | |
13788 | conftest$ac_exeext conftest.$ac_ext | |
ee134472 | 13789 | if test -z "$lt_cv_aix_libpath__CXX"; then |
9d54db95 | 13790 | lt_cv_aix_libpath__CXX=/usr/lib:/lib |
ee134472 JF |
13791 | fi |
13792 | ||
13793 | fi | |
13794 | ||
13795 | aix_libpath=$lt_cv_aix_libpath__CXX | |
13796 | fi | |
47aaa820 | 13797 | |
9d54db95 | 13798 | hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" |
47aaa820 | 13799 | |
9d54db95 | 13800 | archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag |
47aaa820 | 13801 | else |
9d54db95 JF |
13802 | if test ia64 = "$host_cpu"; then |
13803 | hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' | |
47aaa820 | 13804 | allow_undefined_flag_CXX="-z nodefs" |
9d54db95 | 13805 | archive_expsym_cmds_CXX="\$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" |
47aaa820 DWT |
13806 | else |
13807 | # Determine the default libpath from the value encoded in an | |
13808 | # empty executable. | |
9d54db95 | 13809 | if test set = "${lt_cv_aix_libpath+set}"; then |
ee134472 JF |
13810 | aix_libpath=$lt_cv_aix_libpath |
13811 | else | |
13812 | if ${lt_cv_aix_libpath__CXX+:} false; then : | |
13813 | $as_echo_n "(cached) " >&6 | |
13814 | else | |
13815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
13816 | /* end confdefs.h. */ |
13817 | ||
13818 | int | |
13819 | main () | |
13820 | { | |
13821 | ||
13822 | ; | |
13823 | return 0; | |
13824 | } | |
13825 | _ACEOF | |
47aaa820 | 13826 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 13827 | |
ee134472 JF |
13828 | lt_aix_libpath_sed=' |
13829 | /Import File Strings/,/^$/ { | |
13830 | /^0/ { | |
13831 | s/^0 *\([^ ]*\) *$/\1/ | |
13832 | p | |
13833 | } | |
13834 | }' | |
13835 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13836 | # Check for a 64-bit object if we didn't find anything. | |
13837 | if test -z "$lt_cv_aix_libpath__CXX"; then | |
13838 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13839 | fi | |
9c60689e | 13840 | fi |
47aaa820 DWT |
13841 | rm -f core conftest.err conftest.$ac_objext \ |
13842 | conftest$ac_exeext conftest.$ac_ext | |
ee134472 | 13843 | if test -z "$lt_cv_aix_libpath__CXX"; then |
9d54db95 | 13844 | lt_cv_aix_libpath__CXX=/usr/lib:/lib |
ee134472 JF |
13845 | fi |
13846 | ||
13847 | fi | |
13848 | ||
13849 | aix_libpath=$lt_cv_aix_libpath__CXX | |
13850 | fi | |
9c60689e | 13851 | |
9d54db95 | 13852 | hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" |
47aaa820 DWT |
13853 | # Warning - without using the other run time loading flags, |
13854 | # -berok will link without error, but may produce a broken library. | |
9d54db95 JF |
13855 | no_undefined_flag_CXX=' $wl-bernotok' |
13856 | allow_undefined_flag_CXX=' $wl-berok' | |
13857 | if test yes = "$with_gnu_ld"; then | |
ee134472 | 13858 | # We only use this code for GNU lds that support --whole-archive. |
9d54db95 | 13859 | whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' |
ee134472 JF |
13860 | else |
13861 | # Exported symbols can be pulled into shared objects from archives | |
13862 | whole_archive_flag_spec_CXX='$convenience' | |
13863 | fi | |
47aaa820 | 13864 | archive_cmds_need_lc_CXX=yes |
9d54db95 JF |
13865 | archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
13866 | # -brtl affects multiple linker settings, -berok does not and is overridden later | |
13867 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' | |
13868 | if test svr4 != "$with_aix_soname"; then | |
13869 | # This is similar to how AIX traditionally builds its shared | |
13870 | # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. | |
13871 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' | |
13872 | fi | |
13873 | if test aix != "$with_aix_soname"; then | |
13874 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' | |
13875 | else | |
13876 | # used by -dlpreopen to get the symbols | |
13877 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
13878 | fi | |
13879 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' | |
47aaa820 DWT |
13880 | fi |
13881 | fi | |
13882 | ;; | |
9c60689e | 13883 | |
47aaa820 DWT |
13884 | beos*) |
13885 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
13886 | allow_undefined_flag_CXX=unsupported | |
13887 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
13888 | # support --undefined. This deserves some investigation. FIXME | |
9d54db95 | 13889 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
47aaa820 DWT |
13890 | else |
13891 | ld_shlibs_CXX=no | |
13892 | fi | |
13893 | ;; | |
9c60689e | 13894 | |
47aaa820 DWT |
13895 | chorus*) |
13896 | case $cc_basename in | |
13897 | *) | |
13898 | # FIXME: insert proper C++ library support | |
13899 | ld_shlibs_CXX=no | |
13900 | ;; | |
13901 | esac | |
13902 | ;; | |
9c60689e | 13903 | |
47aaa820 | 13904 | cygwin* | mingw* | pw32* | cegcc*) |
ee134472 JF |
13905 | case $GXX,$cc_basename in |
13906 | ,cl* | no,cl*) | |
13907 | # Native MSVC | |
13908 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
13909 | # no search path for DLLs. | |
13910 | hardcode_libdir_flag_spec_CXX=' ' | |
13911 | allow_undefined_flag_CXX=unsupported | |
13912 | always_export_symbols_CXX=yes | |
13913 | file_list_spec_CXX='@' | |
13914 | # Tell ltmain to make .lib files, not .a files. | |
13915 | libext=lib | |
13916 | # Tell ltmain to make .dll files, not .so files. | |
9d54db95 | 13917 | shrext_cmds=.dll |
ee134472 | 13918 | # FIXME: Setting linknames here is a bad hack. |
9d54db95 JF |
13919 | archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
13920 | archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
13921 | cp "$export_symbols" "$output_objdir/$soname.def"; | |
13922 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
13923 | else | |
13924 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
13925 | fi~ | |
13926 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
13927 | linknames=' | |
ee134472 JF |
13928 | # The linker will not automatically build a static lib if we build a DLL. |
13929 | # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' | |
13930 | enable_shared_with_static_runtimes_CXX=yes | |
13931 | # Don't use ranlib | |
13932 | old_postinstall_cmds_CXX='chmod 644 $oldlib' | |
13933 | postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ | |
9d54db95 JF |
13934 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
13935 | case $lt_outputfile in | |
13936 | *.exe|*.EXE) ;; | |
13937 | *) | |
13938 | lt_outputfile=$lt_outputfile.exe | |
13939 | lt_tool_outputfile=$lt_tool_outputfile.exe | |
13940 | ;; | |
13941 | esac~ | |
13942 | func_to_tool_file "$lt_outputfile"~ | |
13943 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
13944 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
13945 | $RM "$lt_outputfile.manifest"; | |
13946 | fi' | |
ee134472 JF |
13947 | ;; |
13948 | *) | |
13949 | # g++ | |
13950 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
13951 | # as there is no search path for DLLs. | |
13952 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
9d54db95 | 13953 | export_dynamic_flag_spec_CXX='$wl--export-all-symbols' |
ee134472 JF |
13954 | allow_undefined_flag_CXX=unsupported |
13955 | always_export_symbols_CXX=no | |
13956 | enable_shared_with_static_runtimes_CXX=yes | |
13957 | ||
13958 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9d54db95 JF |
13959 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
13960 | # If the export-symbols file already is a .def file, use it as | |
13961 | # is; otherwise, prepend EXPORTS... | |
13962 | archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
13963 | cp $export_symbols $output_objdir/$soname.def; | |
13964 | else | |
13965 | echo EXPORTS > $output_objdir/$soname.def; | |
13966 | cat $export_symbols >> $output_objdir/$soname.def; | |
13967 | fi~ | |
13968 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
ee134472 JF |
13969 | else |
13970 | ld_shlibs_CXX=no | |
13971 | fi | |
13972 | ;; | |
13973 | esac | |
13974 | ;; | |
47aaa820 | 13975 | darwin* | rhapsody*) |
9c60689e | 13976 | |
9c60689e | 13977 | |
47aaa820 DWT |
13978 | archive_cmds_need_lc_CXX=no |
13979 | hardcode_direct_CXX=no | |
13980 | hardcode_automatic_CXX=yes | |
13981 | hardcode_shlibpath_var_CXX=unsupported | |
9d54db95 JF |
13982 | if test yes = "$lt_cv_ld_force_load"; then |
13983 | whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
53ba6704 | 13984 | |
ee134472 JF |
13985 | else |
13986 | whole_archive_flag_spec_CXX='' | |
13987 | fi | |
47aaa820 | 13988 | link_all_deplibs_CXX=yes |
9d54db95 | 13989 | allow_undefined_flag_CXX=$_lt_dar_allow_undefined |
47aaa820 | 13990 | case $cc_basename in |
9d54db95 | 13991 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
47aaa820 DWT |
13992 | *) _lt_dar_can_shared=$GCC ;; |
13993 | esac | |
9d54db95 | 13994 | if test yes = "$_lt_dar_can_shared"; then |
ee134472 | 13995 | output_verbose_link_cmd=func_echo_all |
9d54db95 JF |
13996 | archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
13997 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
13998 | archive_expsym_cmds_CXX="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" | |
13999 | module_expsym_cmds_CXX="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" | |
14000 | if test yes != "$lt_cv_apple_cc_single_mod"; then | |
14001 | archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" | |
14002 | archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" | |
47aaa820 | 14003 | fi |
9c60689e | 14004 | |
47aaa820 DWT |
14005 | else |
14006 | ld_shlibs_CXX=no | |
14007 | fi | |
9c60689e | 14008 | |
47aaa820 | 14009 | ;; |
9c60689e | 14010 | |
9d54db95 JF |
14011 | os2*) |
14012 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
14013 | hardcode_minus_L_CXX=yes | |
14014 | allow_undefined_flag_CXX=unsupported | |
14015 | shrext_cmds=.dll | |
14016 | archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
14017 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
14018 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
14019 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
14020 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
14021 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
14022 | emximp -o $lib $output_objdir/$libname.def' | |
14023 | archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
14024 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
14025 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
14026 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
14027 | prefix_cmds="$SED"~ | |
14028 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
14029 | prefix_cmds="$prefix_cmds -e 1d"; | |
14030 | fi~ | |
14031 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
14032 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
14033 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
14034 | emximp -o $lib $output_objdir/$libname.def' | |
14035 | old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
14036 | enable_shared_with_static_runtimes_CXX=yes | |
14037 | ;; | |
14038 | ||
47aaa820 DWT |
14039 | dgux*) |
14040 | case $cc_basename in | |
14041 | ec++*) | |
14042 | # FIXME: insert proper C++ library support | |
14043 | ld_shlibs_CXX=no | |
14044 | ;; | |
14045 | ghcx*) | |
14046 | # Green Hills C++ Compiler | |
14047 | # FIXME: insert proper C++ library support | |
14048 | ld_shlibs_CXX=no | |
14049 | ;; | |
14050 | *) | |
14051 | # FIXME: insert proper C++ library support | |
14052 | ld_shlibs_CXX=no | |
14053 | ;; | |
14054 | esac | |
14055 | ;; | |
9c60689e | 14056 | |
53ba6704 | 14057 | freebsd2.*) |
47aaa820 DWT |
14058 | # C++ shared libraries reported to be fairly broken before |
14059 | # switch to ELF | |
14060 | ld_shlibs_CXX=no | |
14061 | ;; | |
9c60689e | 14062 | |
47aaa820 DWT |
14063 | freebsd-elf*) |
14064 | archive_cmds_need_lc_CXX=no | |
14065 | ;; | |
9c60689e | 14066 | |
47aaa820 DWT |
14067 | freebsd* | dragonfly*) |
14068 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
14069 | # conventions | |
14070 | ld_shlibs_CXX=yes | |
14071 | ;; | |
9c60689e | 14072 | |
ee134472 | 14073 | haiku*) |
9d54db95 | 14074 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
ee134472 JF |
14075 | link_all_deplibs_CXX=yes |
14076 | ;; | |
14077 | ||
47aaa820 | 14078 | hpux9*) |
9d54db95 | 14079 | hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' |
47aaa820 | 14080 | hardcode_libdir_separator_CXX=: |
9d54db95 | 14081 | export_dynamic_flag_spec_CXX='$wl-E' |
47aaa820 DWT |
14082 | hardcode_direct_CXX=yes |
14083 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
14084 | # but as the default | |
14085 | # location of the library. | |
9c60689e | 14086 | |
47aaa820 DWT |
14087 | case $cc_basename in |
14088 | CC*) | |
14089 | # FIXME: insert proper C++ library support | |
14090 | ld_shlibs_CXX=no | |
14091 | ;; | |
14092 | aCC*) | |
9d54db95 | 14093 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
47aaa820 DWT |
14094 | # Commands to make compiler produce verbose output that lists |
14095 | # what "hidden" libraries, object files and flags are used when | |
14096 | # linking a shared library. | |
14097 | # | |
14098 | # There doesn't appear to be a way to prevent this compiler from | |
14099 | # explicitly linking system object files so we need to strip them | |
14100 | # from the output so that they don't get included in the library | |
14101 | # dependencies. | |
9d54db95 | 14102 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
47aaa820 DWT |
14103 | ;; |
14104 | *) | |
9d54db95 JF |
14105 | if test yes = "$GXX"; then |
14106 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' | |
47aaa820 DWT |
14107 | else |
14108 | # FIXME: insert proper C++ library support | |
14109 | ld_shlibs_CXX=no | |
14110 | fi | |
14111 | ;; | |
14112 | esac | |
14113 | ;; | |
9c60689e | 14114 | |
47aaa820 | 14115 | hpux10*|hpux11*) |
9d54db95 JF |
14116 | if test no = "$with_gnu_ld"; then |
14117 | hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' | |
47aaa820 | 14118 | hardcode_libdir_separator_CXX=: |
9c60689e | 14119 | |
47aaa820 DWT |
14120 | case $host_cpu in |
14121 | hppa*64*|ia64*) | |
14122 | ;; | |
14123 | *) | |
9d54db95 | 14124 | export_dynamic_flag_spec_CXX='$wl-E' |
47aaa820 DWT |
14125 | ;; |
14126 | esac | |
14127 | fi | |
14128 | case $host_cpu in | |
14129 | hppa*64*|ia64*) | |
14130 | hardcode_direct_CXX=no | |
14131 | hardcode_shlibpath_var_CXX=no | |
14132 | ;; | |
14133 | *) | |
14134 | hardcode_direct_CXX=yes | |
14135 | hardcode_direct_absolute_CXX=yes | |
14136 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
14137 | # but as the default | |
14138 | # location of the library. | |
14139 | ;; | |
14140 | esac | |
9c60689e | 14141 | |
47aaa820 DWT |
14142 | case $cc_basename in |
14143 | CC*) | |
14144 | # FIXME: insert proper C++ library support | |
14145 | ld_shlibs_CXX=no | |
14146 | ;; | |
14147 | aCC*) | |
14148 | case $host_cpu in | |
14149 | hppa*64*) | |
9d54db95 | 14150 | archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
47aaa820 DWT |
14151 | ;; |
14152 | ia64*) | |
9d54db95 | 14153 | archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
47aaa820 DWT |
14154 | ;; |
14155 | *) | |
9d54db95 | 14156 | archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
47aaa820 DWT |
14157 | ;; |
14158 | esac | |
14159 | # Commands to make compiler produce verbose output that lists | |
14160 | # what "hidden" libraries, object files and flags are used when | |
14161 | # linking a shared library. | |
14162 | # | |
14163 | # There doesn't appear to be a way to prevent this compiler from | |
14164 | # explicitly linking system object files so we need to strip them | |
14165 | # from the output so that they don't get included in the library | |
14166 | # dependencies. | |
9d54db95 | 14167 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
47aaa820 DWT |
14168 | ;; |
14169 | *) | |
9d54db95 JF |
14170 | if test yes = "$GXX"; then |
14171 | if test no = "$with_gnu_ld"; then | |
47aaa820 DWT |
14172 | case $host_cpu in |
14173 | hppa*64*) | |
9d54db95 | 14174 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
47aaa820 DWT |
14175 | ;; |
14176 | ia64*) | |
9d54db95 | 14177 | archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
47aaa820 DWT |
14178 | ;; |
14179 | *) | |
9d54db95 | 14180 | archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
47aaa820 DWT |
14181 | ;; |
14182 | esac | |
14183 | fi | |
14184 | else | |
14185 | # FIXME: insert proper C++ library support | |
14186 | ld_shlibs_CXX=no | |
14187 | fi | |
14188 | ;; | |
14189 | esac | |
14190 | ;; | |
9c60689e | 14191 | |
47aaa820 DWT |
14192 | interix[3-9]*) |
14193 | hardcode_direct_CXX=no | |
14194 | hardcode_shlibpath_var_CXX=no | |
9d54db95 JF |
14195 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
14196 | export_dynamic_flag_spec_CXX='$wl-E' | |
47aaa820 DWT |
14197 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
14198 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
14199 | # default) and relocated if they conflict, which is a slow very memory | |
14200 | # consuming and fragmenting process. To avoid this, we pick a random, | |
14201 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
14202 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9d54db95 JF |
14203 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
14204 | archive_expsym_cmds_CXX='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' | |
47aaa820 DWT |
14205 | ;; |
14206 | irix5* | irix6*) | |
14207 | case $cc_basename in | |
14208 | CC*) | |
14209 | # SGI C++ | |
9d54db95 | 14210 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
9c60689e | 14211 | |
47aaa820 DWT |
14212 | # Archives containing C++ object files must be created using |
14213 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
14214 | # necessary to make sure instantiated templates are included | |
14215 | # in the archive. | |
14216 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
14217 | ;; | |
14218 | *) | |
9d54db95 JF |
14219 | if test yes = "$GXX"; then |
14220 | if test no = "$with_gnu_ld"; then | |
14221 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' | |
47aaa820 | 14222 | else |
9d54db95 | 14223 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' |
47aaa820 DWT |
14224 | fi |
14225 | fi | |
14226 | link_all_deplibs_CXX=yes | |
14227 | ;; | |
14228 | esac | |
9d54db95 | 14229 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
47aaa820 DWT |
14230 | hardcode_libdir_separator_CXX=: |
14231 | inherit_rpath_CXX=yes | |
14232 | ;; | |
9c60689e | 14233 | |
9d54db95 | 14234 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
47aaa820 DWT |
14235 | case $cc_basename in |
14236 | KCC*) | |
14237 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 14238 | |
47aaa820 DWT |
14239 | # KCC will only create a shared library if the output file |
14240 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
14241 | # to its proper name (with version) after linking. | |
9d54db95 JF |
14242 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
14243 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' | |
47aaa820 DWT |
14244 | # Commands to make compiler produce verbose output that lists |
14245 | # what "hidden" libraries, object files and flags are used when | |
14246 | # linking a shared library. | |
14247 | # | |
14248 | # There doesn't appear to be a way to prevent this compiler from | |
14249 | # explicitly linking system object files so we need to strip them | |
14250 | # from the output so that they don't get included in the library | |
14251 | # dependencies. | |
9d54db95 | 14252 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
9c60689e | 14253 | |
9d54db95 JF |
14254 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
14255 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
9c60689e | 14256 | |
47aaa820 DWT |
14257 | # Archives containing C++ object files must be created using |
14258 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
14259 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
14260 | ;; | |
14261 | icpc* | ecpc* ) | |
14262 | # Intel C++ | |
14263 | with_gnu_ld=yes | |
14264 | # version 8.0 and above of icpc choke on multiply defined symbols | |
14265 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
14266 | # earlier do not add the objects themselves. | |
14267 | case `$CC -V 2>&1` in | |
14268 | *"Version 7."*) | |
9d54db95 JF |
14269 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
14270 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
47aaa820 DWT |
14271 | ;; |
14272 | *) # Version 8.0 or newer | |
14273 | tmp_idyn= | |
14274 | case $host_cpu in | |
14275 | ia64*) tmp_idyn=' -i_dynamic';; | |
14276 | esac | |
9d54db95 JF |
14277 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
14278 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
47aaa820 DWT |
14279 | ;; |
14280 | esac | |
14281 | archive_cmds_need_lc_CXX=no | |
9d54db95 JF |
14282 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
14283 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
14284 | whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' | |
47aaa820 DWT |
14285 | ;; |
14286 | pgCC* | pgcpp*) | |
14287 | # Portland Group C++ compiler | |
14288 | case `$CC -V` in | |
ee134472 | 14289 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) |
47aaa820 | 14290 | prelink_cmds_CXX='tpldir=Template.dir~ |
9d54db95 JF |
14291 | rm -rf $tpldir~ |
14292 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
14293 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' | |
47aaa820 | 14294 | old_archive_cmds_CXX='tpldir=Template.dir~ |
9d54db95 JF |
14295 | rm -rf $tpldir~ |
14296 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
14297 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ | |
14298 | $RANLIB $oldlib' | |
47aaa820 | 14299 | archive_cmds_CXX='tpldir=Template.dir~ |
9d54db95 JF |
14300 | rm -rf $tpldir~ |
14301 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
14302 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' | |
47aaa820 | 14303 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
9d54db95 JF |
14304 | rm -rf $tpldir~ |
14305 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
14306 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
47aaa820 | 14307 | ;; |
ee134472 | 14308 | *) # Version 6 and above use weak symbols |
9d54db95 JF |
14309 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
14310 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
47aaa820 DWT |
14311 | ;; |
14312 | esac | |
9c60689e | 14313 | |
9d54db95 JF |
14314 | hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' |
14315 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
14316 | whole_archive_flag_spec_CXX='$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' | |
47aaa820 DWT |
14317 | ;; |
14318 | cxx*) | |
14319 | # Compaq C++ | |
9d54db95 JF |
14320 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' |
14321 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' | |
9c60689e | 14322 | |
47aaa820 DWT |
14323 | runpath_var=LD_RUN_PATH |
14324 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
14325 | hardcode_libdir_separator_CXX=: | |
9c60689e | 14326 | |
47aaa820 DWT |
14327 | # Commands to make compiler produce verbose output that lists |
14328 | # what "hidden" libraries, object files and flags are used when | |
14329 | # linking a shared library. | |
14330 | # | |
14331 | # There doesn't appear to be a way to prevent this compiler from | |
14332 | # explicitly linking system object files so we need to strip them | |
14333 | # from the output so that they don't get included in the library | |
14334 | # dependencies. | |
9d54db95 | 14335 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' |
47aaa820 | 14336 | ;; |
ee134472 | 14337 | xl* | mpixl* | bgxl*) |
47aaa820 | 14338 | # IBM XL 8.0 on PPC, with GNU ld |
9d54db95 JF |
14339 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
14340 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
14341 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
14342 | if test yes = "$supports_anon_versioning"; then | |
47aaa820 | 14343 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ |
9d54db95 JF |
14344 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
14345 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
14346 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
47aaa820 DWT |
14347 | fi |
14348 | ;; | |
14349 | *) | |
14350 | case `$CC -V 2>&1 | sed 5q` in | |
14351 | *Sun\ C*) | |
14352 | # Sun C++ 5.9 | |
14353 | no_undefined_flag_CXX=' -zdefs' | |
9d54db95 JF |
14354 | archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
14355 | archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' | |
47aaa820 | 14356 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
9d54db95 | 14357 | whole_archive_flag_spec_CXX='$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' |
47aaa820 | 14358 | compiler_needs_object_CXX=yes |
9c60689e | 14359 | |
47aaa820 DWT |
14360 | # Not sure whether something based on |
14361 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
14362 | # would be better. | |
ee134472 | 14363 | output_verbose_link_cmd='func_echo_all' |
9c60689e | 14364 | |
47aaa820 DWT |
14365 | # Archives containing C++ object files must be created using |
14366 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
14367 | # necessary to make sure instantiated templates are included | |
14368 | # in the archive. | |
14369 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
14370 | ;; | |
14371 | esac | |
14372 | ;; | |
14373 | esac | |
14374 | ;; | |
9c60689e | 14375 | |
47aaa820 DWT |
14376 | lynxos*) |
14377 | # FIXME: insert proper C++ library support | |
14378 | ld_shlibs_CXX=no | |
14379 | ;; | |
9c60689e | 14380 | |
47aaa820 DWT |
14381 | m88k*) |
14382 | # FIXME: insert proper C++ library support | |
14383 | ld_shlibs_CXX=no | |
14384 | ;; | |
9c60689e | 14385 | |
47aaa820 DWT |
14386 | mvs*) |
14387 | case $cc_basename in | |
14388 | cxx*) | |
14389 | # FIXME: insert proper C++ library support | |
14390 | ld_shlibs_CXX=no | |
14391 | ;; | |
14392 | *) | |
14393 | # FIXME: insert proper C++ library support | |
14394 | ld_shlibs_CXX=no | |
14395 | ;; | |
14396 | esac | |
14397 | ;; | |
9c60689e | 14398 | |
47aaa820 DWT |
14399 | netbsd*) |
14400 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
14401 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
14402 | wlarc= | |
14403 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
14404 | hardcode_direct_CXX=yes | |
14405 | hardcode_shlibpath_var_CXX=no | |
14406 | fi | |
14407 | # Workaround some broken pre-1.5 toolchains | |
14408 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
9c60689e | 14409 | ;; |
47aaa820 DWT |
14410 | |
14411 | *nto* | *qnx*) | |
14412 | ld_shlibs_CXX=yes | |
9c60689e | 14413 | ;; |
9c60689e | 14414 | |
9d54db95 | 14415 | openbsd* | bitrig*) |
47aaa820 DWT |
14416 | if test -f /usr/libexec/ld.so; then |
14417 | hardcode_direct_CXX=yes | |
14418 | hardcode_shlibpath_var_CXX=no | |
14419 | hardcode_direct_absolute_CXX=yes | |
14420 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
9d54db95 JF |
14421 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
14422 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then | |
14423 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' | |
14424 | export_dynamic_flag_spec_CXX='$wl-E' | |
14425 | whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' | |
47aaa820 | 14426 | fi |
ee134472 | 14427 | output_verbose_link_cmd=func_echo_all |
47aaa820 DWT |
14428 | else |
14429 | ld_shlibs_CXX=no | |
14430 | fi | |
14431 | ;; | |
9c60689e | 14432 | |
47aaa820 DWT |
14433 | osf3* | osf4* | osf5*) |
14434 | case $cc_basename in | |
14435 | KCC*) | |
14436 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 14437 | |
47aaa820 DWT |
14438 | # KCC will only create a shared library if the output file |
14439 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
14440 | # to its proper name (with version) after linking. | |
9d54db95 | 14441 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
9c60689e | 14442 | |
9d54db95 | 14443 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' |
47aaa820 | 14444 | hardcode_libdir_separator_CXX=: |
9c60689e | 14445 | |
47aaa820 DWT |
14446 | # Archives containing C++ object files must be created using |
14447 | # the KAI C++ compiler. | |
14448 | case $host in | |
14449 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
14450 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
14451 | esac | |
14452 | ;; | |
14453 | RCC*) | |
14454 | # Rational C++ 2.4.1 | |
14455 | # FIXME: insert proper C++ library support | |
14456 | ld_shlibs_CXX=no | |
14457 | ;; | |
14458 | cxx*) | |
14459 | case $host in | |
14460 | osf3*) | |
9d54db95 JF |
14461 | allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' |
14462 | archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' | |
14463 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' | |
47aaa820 DWT |
14464 | ;; |
14465 | *) | |
14466 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
9d54db95 | 14467 | archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
47aaa820 | 14468 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
9d54db95 JF |
14469 | echo "-hidden">> $lib.exp~ |
14470 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ | |
14471 | $RM $lib.exp' | |
47aaa820 DWT |
14472 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
14473 | ;; | |
14474 | esac | |
9c60689e | 14475 | |
47aaa820 | 14476 | hardcode_libdir_separator_CXX=: |
9c60689e | 14477 | |
47aaa820 DWT |
14478 | # Commands to make compiler produce verbose output that lists |
14479 | # what "hidden" libraries, object files and flags are used when | |
14480 | # linking a shared library. | |
14481 | # | |
14482 | # There doesn't appear to be a way to prevent this compiler from | |
14483 | # explicitly linking system object files so we need to strip them | |
14484 | # from the output so that they don't get included in the library | |
14485 | # dependencies. | |
9d54db95 | 14486 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
47aaa820 DWT |
14487 | ;; |
14488 | *) | |
9d54db95 JF |
14489 | if test yes,no = "$GXX,$with_gnu_ld"; then |
14490 | allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' | |
47aaa820 DWT |
14491 | case $host in |
14492 | osf3*) | |
9d54db95 | 14493 | archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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' |
47aaa820 DWT |
14494 | ;; |
14495 | *) | |
9d54db95 | 14496 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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' |
47aaa820 DWT |
14497 | ;; |
14498 | esac | |
9c60689e | 14499 | |
9d54db95 | 14500 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' |
47aaa820 | 14501 | hardcode_libdir_separator_CXX=: |
9c60689e | 14502 | |
47aaa820 DWT |
14503 | # Commands to make compiler produce verbose output that lists |
14504 | # what "hidden" libraries, object files and flags are used when | |
14505 | # linking a shared library. | |
ee134472 | 14506 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
9c60689e | 14507 | |
47aaa820 DWT |
14508 | else |
14509 | # FIXME: insert proper C++ library support | |
14510 | ld_shlibs_CXX=no | |
14511 | fi | |
14512 | ;; | |
14513 | esac | |
14514 | ;; | |
9c60689e | 14515 | |
47aaa820 | 14516 | psos*) |
9c60689e DWT |
14517 | # FIXME: insert proper C++ library support |
14518 | ld_shlibs_CXX=no | |
14519 | ;; | |
9c60689e | 14520 | |
47aaa820 DWT |
14521 | sunos4*) |
14522 | case $cc_basename in | |
14523 | CC*) | |
14524 | # Sun C++ 4.x | |
14525 | # FIXME: insert proper C++ library support | |
14526 | ld_shlibs_CXX=no | |
9c60689e | 14527 | ;; |
47aaa820 DWT |
14528 | lcc*) |
14529 | # Lucid | |
14530 | # FIXME: insert proper C++ library support | |
14531 | ld_shlibs_CXX=no | |
14532 | ;; | |
14533 | *) | |
14534 | # FIXME: insert proper C++ library support | |
14535 | ld_shlibs_CXX=no | |
14536 | ;; | |
14537 | esac | |
14538 | ;; | |
9c60689e | 14539 | |
47aaa820 DWT |
14540 | solaris*) |
14541 | case $cc_basename in | |
ee134472 | 14542 | CC* | sunCC*) |
47aaa820 DWT |
14543 | # Sun C++ 4.2, 5.x and Centerline C++ |
14544 | archive_cmds_need_lc_CXX=yes | |
14545 | no_undefined_flag_CXX=' -zdefs' | |
9d54db95 | 14546 | archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
47aaa820 | 14547 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
9d54db95 | 14548 | $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
9c60689e | 14549 | |
47aaa820 DWT |
14550 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
14551 | hardcode_shlibpath_var_CXX=no | |
14552 | case $host_os in | |
14553 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
14554 | *) | |
14555 | # The compiler driver will combine and reorder linker options, | |
9d54db95 | 14556 | # but understands '-z linker_flag'. |
47aaa820 DWT |
14557 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
14558 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
14559 | ;; | |
14560 | esac | |
14561 | link_all_deplibs_CXX=yes | |
9c60689e | 14562 | |
ee134472 | 14563 | output_verbose_link_cmd='func_echo_all' |
9c60689e | 14564 | |
47aaa820 DWT |
14565 | # Archives containing C++ object files must be created using |
14566 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
14567 | # necessary to make sure instantiated templates are included | |
14568 | # in the archive. | |
14569 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
14570 | ;; | |
14571 | gcx*) | |
14572 | # Green Hills C++ Compiler | |
9d54db95 | 14573 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
9c60689e | 14574 | |
47aaa820 DWT |
14575 | # The C++ compiler must be used to create the archive. |
14576 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
14577 | ;; | |
14578 | *) | |
14579 | # GNU C++ compiler with Solaris linker | |
9d54db95 JF |
14580 | if test yes,no = "$GXX,$with_gnu_ld"; then |
14581 | no_undefined_flag_CXX=' $wl-z ${wl}defs' | |
47aaa820 | 14582 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
9d54db95 | 14583 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
47aaa820 | 14584 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
9d54db95 | 14585 | $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
9c60689e | 14586 | |
47aaa820 DWT |
14587 | # Commands to make compiler produce verbose output that lists |
14588 | # what "hidden" libraries, object files and flags are used when | |
14589 | # linking a shared library. | |
ee134472 | 14590 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
47aaa820 | 14591 | else |
9d54db95 | 14592 | # g++ 2.7 appears to require '-G' NOT '-shared' on this |
47aaa820 | 14593 | # platform. |
9d54db95 | 14594 | archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' |
47aaa820 | 14595 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
9d54db95 | 14596 | $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
9c60689e | 14597 | |
47aaa820 DWT |
14598 | # Commands to make compiler produce verbose output that lists |
14599 | # what "hidden" libraries, object files and flags are used when | |
14600 | # linking a shared library. | |
ee134472 | 14601 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
47aaa820 | 14602 | fi |
9c60689e | 14603 | |
9d54db95 | 14604 | hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' |
47aaa820 DWT |
14605 | case $host_os in |
14606 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
14607 | *) | |
9d54db95 | 14608 | whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' |
47aaa820 DWT |
14609 | ;; |
14610 | esac | |
14611 | fi | |
14612 | ;; | |
14613 | esac | |
14614 | ;; | |
9c60689e | 14615 | |
47aaa820 | 14616 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
9d54db95 | 14617 | no_undefined_flag_CXX='$wl-z,text' |
47aaa820 DWT |
14618 | archive_cmds_need_lc_CXX=no |
14619 | hardcode_shlibpath_var_CXX=no | |
14620 | runpath_var='LD_RUN_PATH' | |
9c60689e | 14621 | |
47aaa820 DWT |
14622 | case $cc_basename in |
14623 | CC*) | |
9d54db95 JF |
14624 | archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14625 | archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
47aaa820 DWT |
14626 | ;; |
14627 | *) | |
9d54db95 JF |
14628 | archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14629 | archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
47aaa820 DWT |
14630 | ;; |
14631 | esac | |
14632 | ;; | |
9c60689e | 14633 | |
47aaa820 | 14634 | sysv5* | sco3.2v5* | sco5v6*) |
9d54db95 | 14635 | # Note: We CANNOT use -z defs as we might desire, because we do not |
47aaa820 DWT |
14636 | # link with -lc, and that would cause any symbols used from libc to |
14637 | # always be unresolved, which means just about no library would | |
14638 | # ever link correctly. If we're not using GNU ld we use -z text | |
14639 | # though, which does catch some bad symbols but isn't as heavy-handed | |
14640 | # as -z defs. | |
9d54db95 JF |
14641 | no_undefined_flag_CXX='$wl-z,text' |
14642 | allow_undefined_flag_CXX='$wl-z,nodefs' | |
47aaa820 DWT |
14643 | archive_cmds_need_lc_CXX=no |
14644 | hardcode_shlibpath_var_CXX=no | |
9d54db95 | 14645 | hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' |
47aaa820 DWT |
14646 | hardcode_libdir_separator_CXX=':' |
14647 | link_all_deplibs_CXX=yes | |
9d54db95 | 14648 | export_dynamic_flag_spec_CXX='$wl-Bexport' |
47aaa820 | 14649 | runpath_var='LD_RUN_PATH' |
9c60689e | 14650 | |
47aaa820 DWT |
14651 | case $cc_basename in |
14652 | CC*) | |
9d54db95 JF |
14653 | archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14654 | archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
ee134472 | 14655 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ |
9d54db95 | 14656 | '"$old_archive_cmds_CXX" |
ee134472 | 14657 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ |
9d54db95 | 14658 | '"$reload_cmds_CXX" |
47aaa820 DWT |
14659 | ;; |
14660 | *) | |
9d54db95 JF |
14661 | archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14662 | archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
47aaa820 DWT |
14663 | ;; |
14664 | esac | |
14665 | ;; | |
9c60689e | 14666 | |
47aaa820 | 14667 | tandem*) |
9c60689e | 14668 | case $cc_basename in |
47aaa820 DWT |
14669 | NCC*) |
14670 | # NonStop-UX NCC 3.20 | |
14671 | # FIXME: insert proper C++ library support | |
14672 | ld_shlibs_CXX=no | |
14673 | ;; | |
9c60689e | 14674 | *) |
47aaa820 DWT |
14675 | # FIXME: insert proper C++ library support |
14676 | ld_shlibs_CXX=no | |
14677 | ;; | |
9c60689e DWT |
14678 | esac |
14679 | ;; | |
14680 | ||
47aaa820 DWT |
14681 | vxworks*) |
14682 | # FIXME: insert proper C++ library support | |
14683 | ld_shlibs_CXX=no | |
14684 | ;; | |
9c60689e | 14685 | |
47aaa820 DWT |
14686 | *) |
14687 | # FIXME: insert proper C++ library support | |
14688 | ld_shlibs_CXX=no | |
9c60689e | 14689 | ;; |
47aaa820 | 14690 | esac |
9c60689e | 14691 | |
47aaa820 DWT |
14692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
14693 | $as_echo "$ld_shlibs_CXX" >&6; } | |
9d54db95 | 14694 | test no = "$ld_shlibs_CXX" && can_build_shared=no |
9c60689e | 14695 | |
9d54db95 JF |
14696 | GCC_CXX=$GXX |
14697 | LD_CXX=$LD | |
9c60689e | 14698 | |
47aaa820 DWT |
14699 | ## CAVEAT EMPTOR: |
14700 | ## There is no encapsulation within the following macros, do not change | |
14701 | ## the running order or otherwise move them around unless you know exactly | |
14702 | ## what you are doing... | |
14703 | # Dependencies to place before and after the object being linked: | |
14704 | predep_objects_CXX= | |
14705 | postdep_objects_CXX= | |
14706 | predeps_CXX= | |
14707 | postdeps_CXX= | |
14708 | compiler_lib_search_path_CXX= | |
9c60689e | 14709 | |
47aaa820 DWT |
14710 | cat > conftest.$ac_ext <<_LT_EOF |
14711 | class Foo | |
14712 | { | |
14713 | public: | |
14714 | Foo (void) { a = 0; } | |
14715 | private: | |
14716 | int a; | |
14717 | }; | |
14718 | _LT_EOF | |
9c60689e | 14719 | |
ee134472 JF |
14720 | |
14721 | _lt_libdeps_save_CFLAGS=$CFLAGS | |
14722 | case "$CC $CFLAGS " in #( | |
14723 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; | |
14724 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; | |
53ba6704 | 14725 | *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; |
ee134472 JF |
14726 | esac |
14727 | ||
47aaa820 DWT |
14728 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
14729 | (eval $ac_compile) 2>&5 | |
14730 | ac_status=$? | |
14731 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14732 | test $ac_status = 0; }; then | |
14733 | # Parse the compiler output and extract the necessary | |
14734 | # objects, libraries and library flags. | |
9c60689e | 14735 | |
47aaa820 DWT |
14736 | # Sentinel used to keep track of whether or not we are before |
14737 | # the conftest object file. | |
14738 | pre_test_object_deps_done=no | |
9c60689e | 14739 | |
47aaa820 | 14740 | for p in `eval "$output_verbose_link_cmd"`; do |
9d54db95 | 14741 | case $prev$p in |
9c60689e | 14742 | |
47aaa820 DWT |
14743 | -L* | -R* | -l*) |
14744 | # Some compilers place space between "-{L,R}" and the path. | |
14745 | # Remove the space. | |
9d54db95 JF |
14746 | if test x-L = "$p" || |
14747 | test x-R = "$p"; then | |
47aaa820 DWT |
14748 | prev=$p |
14749 | continue | |
47aaa820 | 14750 | fi |
9c60689e | 14751 | |
ee134472 JF |
14752 | # Expand the sysroot to ease extracting the directories later. |
14753 | if test -z "$prev"; then | |
14754 | case $p in | |
14755 | -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; | |
14756 | -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; | |
14757 | -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; | |
14758 | esac | |
14759 | fi | |
14760 | case $p in | |
14761 | =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; | |
14762 | esac | |
9d54db95 JF |
14763 | if test no = "$pre_test_object_deps_done"; then |
14764 | case $prev in | |
ee134472 | 14765 | -L | -R) |
47aaa820 DWT |
14766 | # Internal compiler library paths should come after those |
14767 | # provided the user. The postdeps already come after the | |
14768 | # user supplied libs so there is no need to process them. | |
14769 | if test -z "$compiler_lib_search_path_CXX"; then | |
9d54db95 | 14770 | compiler_lib_search_path_CXX=$prev$p |
47aaa820 | 14771 | else |
9d54db95 | 14772 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" |
47aaa820 DWT |
14773 | fi |
14774 | ;; | |
14775 | # The "-l" case would never come before the object being | |
14776 | # linked, so don't bother handling this case. | |
14777 | esac | |
14778 | else | |
14779 | if test -z "$postdeps_CXX"; then | |
9d54db95 | 14780 | postdeps_CXX=$prev$p |
47aaa820 | 14781 | else |
9d54db95 | 14782 | postdeps_CXX="${postdeps_CXX} $prev$p" |
47aaa820 DWT |
14783 | fi |
14784 | fi | |
ee134472 | 14785 | prev= |
47aaa820 | 14786 | ;; |
9c60689e | 14787 | |
ee134472 | 14788 | *.lto.$objext) ;; # Ignore GCC LTO objects |
47aaa820 DWT |
14789 | *.$objext) |
14790 | # This assumes that the test object file only shows up | |
14791 | # once in the compiler output. | |
14792 | if test "$p" = "conftest.$objext"; then | |
14793 | pre_test_object_deps_done=yes | |
14794 | continue | |
14795 | fi | |
9c60689e | 14796 | |
9d54db95 | 14797 | if test no = "$pre_test_object_deps_done"; then |
47aaa820 | 14798 | if test -z "$predep_objects_CXX"; then |
9d54db95 | 14799 | predep_objects_CXX=$p |
47aaa820 DWT |
14800 | else |
14801 | predep_objects_CXX="$predep_objects_CXX $p" | |
14802 | fi | |
14803 | else | |
14804 | if test -z "$postdep_objects_CXX"; then | |
9d54db95 | 14805 | postdep_objects_CXX=$p |
47aaa820 DWT |
14806 | else |
14807 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
14808 | fi | |
14809 | fi | |
14810 | ;; | |
9c60689e | 14811 | |
47aaa820 | 14812 | *) ;; # Ignore the rest. |
9c60689e | 14813 | |
47aaa820 DWT |
14814 | esac |
14815 | done | |
9c60689e | 14816 | |
47aaa820 DWT |
14817 | # Clean up. |
14818 | rm -f a.out a.exe | |
14819 | else | |
14820 | echo "libtool.m4: error: problem compiling CXX test program" | |
14821 | fi | |
9c60689e | 14822 | |
47aaa820 | 14823 | $RM -f confest.$objext |
ee134472 | 14824 | CFLAGS=$_lt_libdeps_save_CFLAGS |
9c60689e | 14825 | |
47aaa820 DWT |
14826 | # PORTME: override above test on systems where it is broken |
14827 | case $host_os in | |
14828 | interix[3-9]*) | |
14829 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
14830 | # hack all around it, let's just trust "g++" to DTRT. | |
14831 | predep_objects_CXX= | |
14832 | postdep_objects_CXX= | |
14833 | postdeps_CXX= | |
14834 | ;; | |
47aaa820 | 14835 | esac |
9c60689e | 14836 | |
9c60689e | 14837 | |
47aaa820 DWT |
14838 | case " $postdeps_CXX " in |
14839 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
14840 | esac | |
14841 | compiler_lib_search_dirs_CXX= | |
14842 | if test -n "${compiler_lib_search_path_CXX}"; then | |
9d54db95 | 14843 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` |
47aaa820 | 14844 | fi |
9c60689e | 14845 | |
9c60689e | 14846 | |
9c60689e | 14847 | |
9c60689e | 14848 | |
9c60689e | 14849 | |
9c60689e | 14850 | |
9c60689e | 14851 | |
9c60689e | 14852 | |
9c60689e | 14853 | |
9c60689e | 14854 | |
9c60689e | 14855 | |
9c60689e | 14856 | |
9c60689e | 14857 | |
9c60689e | 14858 | |
9c60689e | 14859 | |
9c60689e | 14860 | |
9c60689e | 14861 | |
9c60689e | 14862 | |
9c60689e | 14863 | |
9c60689e | 14864 | |
9c60689e | 14865 | |
9c60689e | 14866 | |
9c60689e | 14867 | |
9c60689e | 14868 | |
9c60689e | 14869 | |
9c60689e | 14870 | |
9c60689e | 14871 | |
9c60689e | 14872 | |
9c60689e | 14873 | |
9c60689e | 14874 | |
9c60689e | 14875 | |
47aaa820 DWT |
14876 | lt_prog_compiler_wl_CXX= |
14877 | lt_prog_compiler_pic_CXX= | |
14878 | lt_prog_compiler_static_CXX= | |
9c60689e | 14879 | |
9c60689e DWT |
14880 | |
14881 | # C++ specific cases for pic, static, wl, etc. | |
9d54db95 | 14882 | if test yes = "$GXX"; then |
9c60689e DWT |
14883 | lt_prog_compiler_wl_CXX='-Wl,' |
14884 | lt_prog_compiler_static_CXX='-static' | |
14885 | ||
14886 | case $host_os in | |
14887 | aix*) | |
14888 | # All AIX code is PIC. | |
9d54db95 | 14889 | if test ia64 = "$host_cpu"; then |
9c60689e DWT |
14890 | # AIX 5 now supports IA64 processor |
14891 | lt_prog_compiler_static_CXX='-Bstatic' | |
14892 | fi | |
9d54db95 | 14893 | lt_prog_compiler_pic_CXX='-fPIC' |
9c60689e DWT |
14894 | ;; |
14895 | ||
14896 | amigaos*) | |
14897 | case $host_cpu in | |
14898 | powerpc) | |
14899 | # see comment about AmigaOS4 .so support | |
14900 | lt_prog_compiler_pic_CXX='-fPIC' | |
14901 | ;; | |
14902 | m68k) | |
14903 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9d54db95 JF |
14904 | # adding the '-m68020' flag to GCC prevents building anything better, |
14905 | # like '-m68040'. | |
9c60689e DWT |
14906 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
14907 | ;; | |
14908 | esac | |
14909 | ;; | |
14910 | ||
14911 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
14912 | # PIC is the default for these OSes. | |
14913 | ;; | |
14914 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
14915 | # This hack is so that the source file can tell whether it is being | |
14916 | # built for inclusion in a dll (and should export symbols for example). | |
14917 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
14918 | # (--disable-auto-import) libraries | |
14919 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
9d54db95 JF |
14920 | case $host_os in |
14921 | os2*) | |
14922 | lt_prog_compiler_static_CXX='$wl-static' | |
14923 | ;; | |
14924 | esac | |
9c60689e DWT |
14925 | ;; |
14926 | darwin* | rhapsody*) | |
14927 | # PIC is the default on this platform | |
14928 | # Common symbols not allowed in MH_DYLIB files | |
14929 | lt_prog_compiler_pic_CXX='-fno-common' | |
14930 | ;; | |
14931 | *djgpp*) | |
14932 | # DJGPP does not support shared libraries at all | |
14933 | lt_prog_compiler_pic_CXX= | |
14934 | ;; | |
ee134472 JF |
14935 | haiku*) |
14936 | # PIC is the default for Haiku. | |
14937 | # The "-static" flag exists, but is broken. | |
14938 | lt_prog_compiler_static_CXX= | |
14939 | ;; | |
9c60689e DWT |
14940 | interix[3-9]*) |
14941 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
14942 | # Instead, we relocate shared libraries at runtime. | |
14943 | ;; | |
14944 | sysv4*MP*) | |
14945 | if test -d /usr/nec; then | |
14946 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
14947 | fi | |
14948 | ;; | |
14949 | hpux*) | |
14950 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
14951 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
14952 | # sets the default TLS model and affects inlining. | |
14953 | case $host_cpu in | |
14954 | hppa*64*) | |
14955 | ;; | |
14956 | *) | |
14957 | lt_prog_compiler_pic_CXX='-fPIC' | |
14958 | ;; | |
14959 | esac | |
14960 | ;; | |
14961 | *qnx* | *nto*) | |
14962 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
14963 | # it will coredump. | |
14964 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
14965 | ;; | |
14966 | *) | |
14967 | lt_prog_compiler_pic_CXX='-fPIC' | |
14968 | ;; | |
14969 | esac | |
14970 | else | |
14971 | case $host_os in | |
14972 | aix[4-9]*) | |
14973 | # All AIX code is PIC. | |
9d54db95 | 14974 | if test ia64 = "$host_cpu"; then |
9c60689e DWT |
14975 | # AIX 5 now supports IA64 processor |
14976 | lt_prog_compiler_static_CXX='-Bstatic' | |
14977 | else | |
14978 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
14979 | fi | |
14980 | ;; | |
14981 | chorus*) | |
14982 | case $cc_basename in | |
14983 | cxch68*) | |
14984 | # Green Hills C++ Compiler | |
14985 | # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" | |
14986 | ;; | |
14987 | esac | |
14988 | ;; | |
ee134472 JF |
14989 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
14990 | # This hack is so that the source file can tell whether it is being | |
14991 | # built for inclusion in a dll (and should export symbols for example). | |
14992 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
14993 | ;; | |
9c60689e DWT |
14994 | dgux*) |
14995 | case $cc_basename in | |
14996 | ec++*) | |
14997 | lt_prog_compiler_pic_CXX='-KPIC' | |
14998 | ;; | |
14999 | ghcx*) | |
15000 | # Green Hills C++ Compiler | |
15001 | lt_prog_compiler_pic_CXX='-pic' | |
15002 | ;; | |
15003 | *) | |
15004 | ;; | |
15005 | esac | |
15006 | ;; | |
15007 | freebsd* | dragonfly*) | |
15008 | # FreeBSD uses GNU C++ | |
15009 | ;; | |
15010 | hpux9* | hpux10* | hpux11*) | |
15011 | case $cc_basename in | |
15012 | CC*) | |
15013 | lt_prog_compiler_wl_CXX='-Wl,' | |
9d54db95 JF |
15014 | lt_prog_compiler_static_CXX='$wl-a ${wl}archive' |
15015 | if test ia64 != "$host_cpu"; then | |
9c60689e DWT |
15016 | lt_prog_compiler_pic_CXX='+Z' |
15017 | fi | |
15018 | ;; | |
15019 | aCC*) | |
15020 | lt_prog_compiler_wl_CXX='-Wl,' | |
9d54db95 | 15021 | lt_prog_compiler_static_CXX='$wl-a ${wl}archive' |
9c60689e DWT |
15022 | case $host_cpu in |
15023 | hppa*64*|ia64*) | |
15024 | # +Z the default | |
15025 | ;; | |
15026 | *) | |
15027 | lt_prog_compiler_pic_CXX='+Z' | |
15028 | ;; | |
15029 | esac | |
15030 | ;; | |
15031 | *) | |
15032 | ;; | |
15033 | esac | |
15034 | ;; | |
15035 | interix*) | |
15036 | # This is c89, which is MS Visual C++ (no shared libs) | |
15037 | # Anyone wants to do a port? | |
15038 | ;; | |
15039 | irix5* | irix6* | nonstopux*) | |
15040 | case $cc_basename in | |
15041 | CC*) | |
15042 | lt_prog_compiler_wl_CXX='-Wl,' | |
15043 | lt_prog_compiler_static_CXX='-non_shared' | |
15044 | # CC pic flag -KPIC is the default. | |
15045 | ;; | |
15046 | *) | |
15047 | ;; | |
15048 | esac | |
15049 | ;; | |
9d54db95 | 15050 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
9c60689e DWT |
15051 | case $cc_basename in |
15052 | KCC*) | |
15053 | # KAI C++ Compiler | |
15054 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
15055 | lt_prog_compiler_pic_CXX='-fPIC' | |
15056 | ;; | |
15057 | ecpc* ) | |
9d54db95 | 15058 | # old Intel C++ for x86_64, which still supported -KPIC. |
9c60689e DWT |
15059 | lt_prog_compiler_wl_CXX='-Wl,' |
15060 | lt_prog_compiler_pic_CXX='-KPIC' | |
15061 | lt_prog_compiler_static_CXX='-static' | |
15062 | ;; | |
15063 | icpc* ) | |
15064 | # Intel C++, used to be incompatible with GCC. | |
15065 | # ICC 10 doesn't accept -KPIC any more. | |
15066 | lt_prog_compiler_wl_CXX='-Wl,' | |
15067 | lt_prog_compiler_pic_CXX='-fPIC' | |
15068 | lt_prog_compiler_static_CXX='-static' | |
15069 | ;; | |
15070 | pgCC* | pgcpp*) | |
15071 | # Portland Group C++ compiler | |
15072 | lt_prog_compiler_wl_CXX='-Wl,' | |
15073 | lt_prog_compiler_pic_CXX='-fpic' | |
15074 | lt_prog_compiler_static_CXX='-Bstatic' | |
15075 | ;; | |
15076 | cxx*) | |
15077 | # Compaq C++ | |
15078 | # Make sure the PIC flag is empty. It appears that all Alpha | |
15079 | # Linux and Compaq Tru64 Unix objects are PIC. | |
15080 | lt_prog_compiler_pic_CXX= | |
15081 | lt_prog_compiler_static_CXX='-non_shared' | |
15082 | ;; | |
ee134472 JF |
15083 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) |
15084 | # IBM XL 8.0, 9.0 on PPC and BlueGene | |
9c60689e DWT |
15085 | lt_prog_compiler_wl_CXX='-Wl,' |
15086 | lt_prog_compiler_pic_CXX='-qpic' | |
15087 | lt_prog_compiler_static_CXX='-qstaticlink' | |
15088 | ;; | |
15089 | *) | |
15090 | case `$CC -V 2>&1 | sed 5q` in | |
15091 | *Sun\ C*) | |
15092 | # Sun C++ 5.9 | |
15093 | lt_prog_compiler_pic_CXX='-KPIC' | |
15094 | lt_prog_compiler_static_CXX='-Bstatic' | |
15095 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
15096 | ;; | |
15097 | esac | |
15098 | ;; | |
15099 | esac | |
15100 | ;; | |
15101 | lynxos*) | |
15102 | ;; | |
15103 | m88k*) | |
15104 | ;; | |
15105 | mvs*) | |
15106 | case $cc_basename in | |
15107 | cxx*) | |
15108 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
15109 | ;; | |
15110 | *) | |
15111 | ;; | |
15112 | esac | |
15113 | ;; | |
53ba6704 | 15114 | netbsd*) |
9c60689e DWT |
15115 | ;; |
15116 | *qnx* | *nto*) | |
15117 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
15118 | # it will coredump. | |
15119 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
15120 | ;; | |
15121 | osf3* | osf4* | osf5*) | |
15122 | case $cc_basename in | |
15123 | KCC*) | |
15124 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
15125 | ;; | |
15126 | RCC*) | |
15127 | # Rational C++ 2.4.1 | |
15128 | lt_prog_compiler_pic_CXX='-pic' | |
15129 | ;; | |
15130 | cxx*) | |
15131 | # Digital/Compaq C++ | |
15132 | lt_prog_compiler_wl_CXX='-Wl,' | |
15133 | # Make sure the PIC flag is empty. It appears that all Alpha | |
15134 | # Linux and Compaq Tru64 Unix objects are PIC. | |
15135 | lt_prog_compiler_pic_CXX= | |
15136 | lt_prog_compiler_static_CXX='-non_shared' | |
15137 | ;; | |
15138 | *) | |
15139 | ;; | |
15140 | esac | |
15141 | ;; | |
15142 | psos*) | |
15143 | ;; | |
15144 | solaris*) | |
15145 | case $cc_basename in | |
ee134472 | 15146 | CC* | sunCC*) |
9c60689e DWT |
15147 | # Sun C++ 4.2, 5.x and Centerline C++ |
15148 | lt_prog_compiler_pic_CXX='-KPIC' | |
15149 | lt_prog_compiler_static_CXX='-Bstatic' | |
15150 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
15151 | ;; | |
15152 | gcx*) | |
15153 | # Green Hills C++ Compiler | |
15154 | lt_prog_compiler_pic_CXX='-PIC' | |
15155 | ;; | |
15156 | *) | |
15157 | ;; | |
15158 | esac | |
15159 | ;; | |
15160 | sunos4*) | |
15161 | case $cc_basename in | |
15162 | CC*) | |
15163 | # Sun C++ 4.x | |
15164 | lt_prog_compiler_pic_CXX='-pic' | |
15165 | lt_prog_compiler_static_CXX='-Bstatic' | |
15166 | ;; | |
15167 | lcc*) | |
15168 | # Lucid | |
15169 | lt_prog_compiler_pic_CXX='-pic' | |
15170 | ;; | |
15171 | *) | |
15172 | ;; | |
15173 | esac | |
15174 | ;; | |
15175 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
15176 | case $cc_basename in | |
15177 | CC*) | |
15178 | lt_prog_compiler_wl_CXX='-Wl,' | |
15179 | lt_prog_compiler_pic_CXX='-KPIC' | |
15180 | lt_prog_compiler_static_CXX='-Bstatic' | |
15181 | ;; | |
15182 | esac | |
15183 | ;; | |
15184 | tandem*) | |
15185 | case $cc_basename in | |
15186 | NCC*) | |
15187 | # NonStop-UX NCC 3.20 | |
15188 | lt_prog_compiler_pic_CXX='-KPIC' | |
15189 | ;; | |
15190 | *) | |
15191 | ;; | |
15192 | esac | |
15193 | ;; | |
15194 | vxworks*) | |
15195 | ;; | |
15196 | *) | |
15197 | lt_prog_compiler_can_build_shared_CXX=no | |
15198 | ;; | |
15199 | esac | |
15200 | fi | |
15201 | ||
15202 | case $host_os in | |
9d54db95 | 15203 | # For platforms that do not support PIC, -DPIC is meaningless: |
9c60689e DWT |
15204 | *djgpp*) |
15205 | lt_prog_compiler_pic_CXX= | |
15206 | ;; | |
15207 | *) | |
15208 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
15209 | ;; | |
15210 | esac | |
9c60689e | 15211 | |
ee134472 JF |
15212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
15213 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
15214 | if ${lt_cv_prog_compiler_pic_CXX+:} false; then : | |
15215 | $as_echo_n "(cached) " >&6 | |
15216 | else | |
15217 | lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX | |
15218 | fi | |
15219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 | |
15220 | $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } | |
15221 | lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX | |
9c60689e DWT |
15222 | |
15223 | # | |
15224 | # Check to make sure the PIC flag actually works. | |
15225 | # | |
15226 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
15227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
15228 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
ee134472 | 15229 | if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : |
9c60689e DWT |
15230 | $as_echo_n "(cached) " >&6 |
15231 | else | |
15232 | lt_cv_prog_compiler_pic_works_CXX=no | |
15233 | ac_outfile=conftest.$ac_objext | |
15234 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9d54db95 | 15235 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment |
9c60689e DWT |
15236 | # Insert the option either (1) after the last *FLAGS variable, or |
15237 | # (2) before a word containing "conftest.", or (3) at the end. | |
15238 | # Note that $ac_compile itself does not contain backslashes and begins | |
15239 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15240 | # The option is referenced via a variable to avoid confusing sed. | |
15241 | lt_compile=`echo "$ac_compile" | $SED \ | |
15242 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
15243 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15244 | -e 's:$: $lt_compiler_flag:'` | |
ee134472 | 15245 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
9c60689e DWT |
15246 | (eval "$lt_compile" 2>conftest.err) |
15247 | ac_status=$? | |
15248 | cat conftest.err >&5 | |
ee134472 | 15249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9c60689e DWT |
15250 | if (exit $ac_status) && test -s "$ac_outfile"; then |
15251 | # The compiler can only warn and ignore the option if not recognized | |
15252 | # So say no if there are warnings other than the usual output. | |
ee134472 | 15253 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
9c60689e DWT |
15254 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
15255 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
15256 | lt_cv_prog_compiler_pic_works_CXX=yes | |
15257 | fi | |
15258 | fi | |
00a96142 | 15259 | $RM -r conftest* |
9c60689e DWT |
15260 | |
15261 | fi | |
15262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
15263 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
15264 | ||
9d54db95 | 15265 | if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then |
9c60689e DWT |
15266 | case $lt_prog_compiler_pic_CXX in |
15267 | "" | " "*) ;; | |
15268 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
15269 | esac | |
15270 | else | |
15271 | lt_prog_compiler_pic_CXX= | |
15272 | lt_prog_compiler_can_build_shared_CXX=no | |
15273 | fi | |
15274 | ||
15275 | fi | |
15276 | ||
15277 | ||
15278 | ||
ee134472 JF |
15279 | |
15280 | ||
47aaa820 DWT |
15281 | # |
15282 | # Check to make sure the static flag actually works. | |
15283 | # | |
15284 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
15285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
15286 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
ee134472 | 15287 | if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : |
47aaa820 DWT |
15288 | $as_echo_n "(cached) " >&6 |
15289 | else | |
15290 | lt_cv_prog_compiler_static_works_CXX=no | |
9d54db95 | 15291 | save_LDFLAGS=$LDFLAGS |
47aaa820 DWT |
15292 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
15293 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
15294 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
15295 | # The linker can only warn and ignore the option if not recognized | |
15296 | # So say no if there are warnings | |
15297 | if test -s conftest.err; then | |
15298 | # Append any errors to the config.log. | |
15299 | cat conftest.err 1>&5 | |
ee134472 | 15300 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
47aaa820 DWT |
15301 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
15302 | if diff conftest.exp conftest.er2 >/dev/null; then | |
15303 | lt_cv_prog_compiler_static_works_CXX=yes | |
15304 | fi | |
15305 | else | |
15306 | lt_cv_prog_compiler_static_works_CXX=yes | |
15307 | fi | |
15308 | fi | |
15309 | $RM -r conftest* | |
9d54db95 | 15310 | LDFLAGS=$save_LDFLAGS |
47aaa820 DWT |
15311 | |
15312 | fi | |
15313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
15314 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
15315 | ||
9d54db95 | 15316 | if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then |
47aaa820 DWT |
15317 | : |
15318 | else | |
15319 | lt_prog_compiler_static_CXX= | |
15320 | fi | |
15321 | ||
15322 | ||
15323 | ||
15324 | ||
15325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
15326 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
ee134472 | 15327 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
47aaa820 DWT |
15328 | $as_echo_n "(cached) " >&6 |
15329 | else | |
15330 | lt_cv_prog_compiler_c_o_CXX=no | |
15331 | $RM -r conftest 2>/dev/null | |
15332 | mkdir conftest | |
15333 | cd conftest | |
15334 | mkdir out | |
15335 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15336 | ||
15337 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
15338 | # Insert the option either (1) after the last *FLAGS variable, or | |
15339 | # (2) before a word containing "conftest.", or (3) at the end. | |
15340 | # Note that $ac_compile itself does not contain backslashes and begins | |
15341 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15342 | lt_compile=`echo "$ac_compile" | $SED \ | |
15343 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
15344 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15345 | -e 's:$: $lt_compiler_flag:'` | |
ee134472 | 15346 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
47aaa820 DWT |
15347 | (eval "$lt_compile" 2>out/conftest.err) |
15348 | ac_status=$? | |
15349 | cat out/conftest.err >&5 | |
ee134472 | 15350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47aaa820 DWT |
15351 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
15352 | then | |
15353 | # The compiler can only warn and ignore the option if not recognized | |
15354 | # So say no if there are warnings | |
ee134472 | 15355 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
47aaa820 DWT |
15356 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
15357 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
15358 | lt_cv_prog_compiler_c_o_CXX=yes | |
15359 | fi | |
15360 | fi | |
15361 | chmod u+w . 2>&5 | |
00a96142 | 15362 | $RM -r conftest* |
47aaa820 DWT |
15363 | # SGI C++ compiler will create directory out/ii_files/ for |
15364 | # template instantiation | |
15365 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
15366 | $RM out/* && rmdir out | |
15367 | cd .. | |
15368 | $RM -r conftest | |
00a96142 | 15369 | $RM -r conftest* |
47aaa820 DWT |
15370 | |
15371 | fi | |
15372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
15373 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
15374 | ||
15375 | ||
15376 | ||
15377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
15378 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
ee134472 | 15379 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
47aaa820 DWT |
15380 | $as_echo_n "(cached) " >&6 |
15381 | else | |
15382 | lt_cv_prog_compiler_c_o_CXX=no | |
15383 | $RM -r conftest 2>/dev/null | |
15384 | mkdir conftest | |
15385 | cd conftest | |
15386 | mkdir out | |
15387 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15388 | ||
15389 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
15390 | # Insert the option either (1) after the last *FLAGS variable, or | |
15391 | # (2) before a word containing "conftest.", or (3) at the end. | |
15392 | # Note that $ac_compile itself does not contain backslashes and begins | |
15393 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15394 | lt_compile=`echo "$ac_compile" | $SED \ | |
15395 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
15396 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15397 | -e 's:$: $lt_compiler_flag:'` | |
ee134472 | 15398 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
47aaa820 DWT |
15399 | (eval "$lt_compile" 2>out/conftest.err) |
15400 | ac_status=$? | |
15401 | cat out/conftest.err >&5 | |
ee134472 | 15402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47aaa820 DWT |
15403 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
15404 | then | |
15405 | # The compiler can only warn and ignore the option if not recognized | |
15406 | # So say no if there are warnings | |
ee134472 | 15407 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
47aaa820 DWT |
15408 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
15409 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
15410 | lt_cv_prog_compiler_c_o_CXX=yes | |
15411 | fi | |
15412 | fi | |
15413 | chmod u+w . 2>&5 | |
00a96142 | 15414 | $RM -r conftest* |
47aaa820 DWT |
15415 | # SGI C++ compiler will create directory out/ii_files/ for |
15416 | # template instantiation | |
15417 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
15418 | $RM out/* && rmdir out | |
15419 | cd .. | |
15420 | $RM -r conftest | |
00a96142 | 15421 | $RM -r conftest* |
47aaa820 DWT |
15422 | |
15423 | fi | |
15424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
15425 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
15426 | ||
15427 | ||
15428 | ||
15429 | ||
9d54db95 JF |
15430 | hard_links=nottested |
15431 | if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then | |
47aaa820 DWT |
15432 | # do not overwrite the value of need_locks provided by the user |
15433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
15434 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
15435 | hard_links=yes | |
00a96142 | 15436 | $RM -r conftest* |
47aaa820 DWT |
15437 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
15438 | touch conftest.a | |
15439 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
15440 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
15441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
15442 | $as_echo "$hard_links" >&6; } | |
9d54db95 JF |
15443 | if test no = "$hard_links"; then |
15444 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 | |
15445 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} | |
47aaa820 DWT |
15446 | need_locks=warn |
15447 | fi | |
15448 | else | |
15449 | need_locks=no | |
15450 | fi | |
15451 | ||
15452 | ||
15453 | ||
15454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
15455 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
15456 | ||
15457 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
ee134472 | 15458 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
47aaa820 DWT |
15459 | case $host_os in |
15460 | aix[4-9]*) | |
15461 | # If we're using GNU nm, then we don't want the "-C" option. | |
9d54db95 JF |
15462 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
15463 | # Without the "-l" option, or with the "-B" option, AIX nm treats | |
15464 | # weak defined symbols like other global defined symbols, whereas | |
15465 | # GNU nm marks them as "W". | |
15466 | # While the 'weak' keyword is ignored in the Export File, we need | |
15467 | # it in the Import File for the 'aix-soname' feature, so we have | |
15468 | # to replace the "-B" option with "-P" for AIX nm. | |
47aaa820 | 15469 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
9d54db95 | 15470 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' |
47aaa820 | 15471 | else |
9d54db95 | 15472 | export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' |
47aaa820 DWT |
15473 | fi |
15474 | ;; | |
15475 | pw32*) | |
9d54db95 | 15476 | export_symbols_cmds_CXX=$ltdll_cmds |
ee134472 | 15477 | ;; |
47aaa820 | 15478 | cygwin* | mingw* | cegcc*) |
ee134472 | 15479 | case $cc_basename in |
53ba6704 JF |
15480 | cl*) |
15481 | exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
15482 | ;; | |
ee134472 JF |
15483 | *) |
15484 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | |
15485 | exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
15486 | ;; | |
15487 | esac | |
15488 | ;; | |
47aaa820 DWT |
15489 | *) |
15490 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
ee134472 | 15491 | ;; |
47aaa820 | 15492 | esac |
47aaa820 DWT |
15493 | |
15494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
15495 | $as_echo "$ld_shlibs_CXX" >&6; } | |
9d54db95 | 15496 | test no = "$ld_shlibs_CXX" && can_build_shared=no |
47aaa820 DWT |
15497 | |
15498 | with_gnu_ld_CXX=$with_gnu_ld | |
15499 | ||
15500 | ||
15501 | ||
15502 | ||
15503 | ||
15504 | ||
15505 | # | |
15506 | # Do we need to explicitly link libc? | |
15507 | # | |
15508 | case "x$archive_cmds_need_lc_CXX" in | |
15509 | x|xyes) | |
15510 | # Assume -lc should be added | |
15511 | archive_cmds_need_lc_CXX=yes | |
15512 | ||
9d54db95 | 15513 | if test yes,yes = "$GCC,$enable_shared"; then |
47aaa820 DWT |
15514 | case $archive_cmds_CXX in |
15515 | *'~'*) | |
15516 | # FIXME: we may have to deal with multi-command sequences. | |
15517 | ;; | |
15518 | '$CC '*) | |
15519 | # Test whether the compiler implicitly links with -lc since on some | |
15520 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
15521 | # to ld, don't add -lc before -lgcc. | |
15522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
15523 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
ee134472 JF |
15524 | if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : |
15525 | $as_echo_n "(cached) " >&6 | |
15526 | else | |
00a96142 | 15527 | $RM -r conftest* |
ee134472 | 15528 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
47aaa820 | 15529 | |
ee134472 | 15530 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
47aaa820 DWT |
15531 | (eval $ac_compile) 2>&5 |
15532 | ac_status=$? | |
15533 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15534 | test $ac_status = 0; } 2>conftest.err; then | |
ee134472 JF |
15535 | soname=conftest |
15536 | lib=conftest | |
15537 | libobjs=conftest.$ac_objext | |
15538 | deplibs= | |
15539 | wl=$lt_prog_compiler_wl_CXX | |
15540 | pic_flag=$lt_prog_compiler_pic_CXX | |
15541 | compiler_flags=-v | |
15542 | linker_flags=-v | |
15543 | verstring= | |
15544 | output_objdir=. | |
15545 | libname=conftest | |
15546 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
15547 | allow_undefined_flag_CXX= | |
15548 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
47aaa820 DWT |
15549 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
15550 | ac_status=$? | |
15551 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15552 | test $ac_status = 0; } | |
ee134472 JF |
15553 | then |
15554 | lt_cv_archive_cmds_need_lc_CXX=no | |
15555 | else | |
15556 | lt_cv_archive_cmds_need_lc_CXX=yes | |
15557 | fi | |
15558 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
15559 | else | |
15560 | cat conftest.err 1>&5 | |
15561 | fi | |
00a96142 | 15562 | $RM -r conftest* |
ee134472 JF |
15563 | |
15564 | fi | |
15565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 | |
15566 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } | |
15567 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX | |
47aaa820 DWT |
15568 | ;; |
15569 | esac | |
15570 | fi | |
15571 | ;; | |
15572 | esac | |
15573 | ||
15574 | ||
15575 | ||
15576 | ||
15577 | ||
15578 | ||
15579 | ||
15580 | ||
15581 | ||
15582 | ||
15583 | ||
15584 | ||
15585 | ||
15586 | ||
15587 | ||
15588 | ||
15589 | ||
15590 | ||
15591 | ||
15592 | ||
15593 | ||
15594 | ||
15595 | ||
15596 | ||
15597 | ||
15598 | ||
15599 | ||
15600 | ||
15601 | ||
15602 | ||
15603 | ||
15604 | ||
15605 | ||
15606 | ||
15607 | ||
15608 | ||
15609 | ||
15610 | ||
15611 | ||
15612 | ||
15613 | ||
15614 | ||
15615 | ||
15616 | ||
15617 | ||
15618 | ||
15619 | ||
15620 | ||
15621 | ||
15622 | ||
15623 | ||
15624 | ||
15625 | ||
15626 | ||
15627 | ||
15628 | ||
15629 | ||
15630 | ||
15631 | ||
47aaa820 DWT |
15632 | |
15633 | ||
15634 | ||
15635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
15636 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
15637 | ||
15638 | library_names_spec= | |
15639 | libname_spec='lib$name' | |
15640 | soname_spec= | |
9d54db95 | 15641 | shrext_cmds=.so |
47aaa820 DWT |
15642 | postinstall_cmds= |
15643 | postuninstall_cmds= | |
15644 | finish_cmds= | |
15645 | finish_eval= | |
15646 | shlibpath_var= | |
15647 | shlibpath_overrides_runpath=unknown | |
15648 | version_type=none | |
15649 | dynamic_linker="$host_os ld.so" | |
15650 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
15651 | need_lib_prefix=unknown | |
15652 | hardcode_into_libs=no | |
15653 | ||
15654 | # when you set need_version to no, make sure it does not cause -set_version | |
15655 | # flags to be left without arguments | |
15656 | need_version=unknown | |
15657 | ||
9d54db95 JF |
15658 | |
15659 | ||
47aaa820 DWT |
15660 | case $host_os in |
15661 | aix3*) | |
53ba6704 | 15662 | version_type=linux # correct to gnu/linux during the next big refactor |
9d54db95 | 15663 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
47aaa820 DWT |
15664 | shlibpath_var=LIBPATH |
15665 | ||
15666 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9d54db95 | 15667 | soname_spec='$libname$release$shared_ext$major' |
47aaa820 DWT |
15668 | ;; |
15669 | ||
15670 | aix[4-9]*) | |
53ba6704 | 15671 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15672 | need_lib_prefix=no |
15673 | need_version=no | |
15674 | hardcode_into_libs=yes | |
9d54db95 | 15675 | if test ia64 = "$host_cpu"; then |
47aaa820 | 15676 | # AIX 5 supports IA64 |
9d54db95 | 15677 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
47aaa820 DWT |
15678 | shlibpath_var=LD_LIBRARY_PATH |
15679 | else | |
15680 | # With GCC up to 2.95.x, collect2 would create an import file | |
15681 | # for dependence libraries. The import file would start with | |
9d54db95 JF |
15682 | # the line '#! .'. This would cause the generated library to |
15683 | # depend on '.', always an invalid library. This was fixed in | |
47aaa820 DWT |
15684 | # development snapshots of GCC prior to 3.0. |
15685 | case $host_os in | |
15686 | aix4 | aix4.[01] | aix4.[01].*) | |
15687 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
15688 | echo ' yes ' | |
9d54db95 | 15689 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
47aaa820 DWT |
15690 | : |
15691 | else | |
15692 | can_build_shared=no | |
15693 | fi | |
15694 | ;; | |
15695 | esac | |
9d54db95 JF |
15696 | # Using Import Files as archive members, it is possible to support |
15697 | # filename-based versioning of shared library archives on AIX. While | |
15698 | # this would work for both with and without runtime linking, it will | |
15699 | # prevent static linking of such archives. So we do filename-based | |
15700 | # shared library versioning with .so extension only, which is used | |
15701 | # when both runtime linking and shared linking is enabled. | |
15702 | # Unfortunately, runtime linking may impact performance, so we do | |
15703 | # not want this to be the default eventually. Also, we use the | |
15704 | # versioned .so libs for executables only if there is the -brtl | |
15705 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
15706 | # To allow for filename-based versioning support, we need to create | |
15707 | # libNAME.so.V as an archive file, containing: | |
15708 | # *) an Import File, referring to the versioned filename of the | |
15709 | # archive as well as the shared archive member, telling the | |
15710 | # bitwidth (32 or 64) of that shared object, and providing the | |
15711 | # list of exported symbols of that shared object, eventually | |
15712 | # decorated with the 'weak' keyword | |
15713 | # *) the shared object with the F_LOADONLY flag set, to really avoid | |
15714 | # it being seen by the linker. | |
15715 | # At run time we better use the real file rather than another symlink, | |
15716 | # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
15717 | ||
15718 | case $with_aix_soname,$aix_use_runtimelinking in | |
15719 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
47aaa820 DWT |
15720 | # soname into executable. Probably we can add versioning support to |
15721 | # collect2, so additional links can be useful in future. | |
9d54db95 JF |
15722 | aix,yes) # traditional libtool |
15723 | dynamic_linker='AIX unversionable lib.so' | |
47aaa820 DWT |
15724 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
15725 | # instead of lib<name>.a to let people know that these are not | |
15726 | # typical AIX shared libraries. | |
9d54db95 JF |
15727 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
15728 | ;; | |
15729 | aix,no) # traditional AIX only | |
15730 | dynamic_linker='AIX lib.a(lib.so.V)' | |
47aaa820 DWT |
15731 | # We preserve .a as extension for shared libraries through AIX4.2 |
15732 | # and later when we are not doing run time linking. | |
9d54db95 JF |
15733 | library_names_spec='$libname$release.a $libname.a' |
15734 | soname_spec='$libname$release$shared_ext$major' | |
15735 | ;; | |
15736 | svr4,*) # full svr4 only | |
15737 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" | |
15738 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
15739 | # We do not specify a path in Import Files, so LIBPATH fires. | |
15740 | shlibpath_overrides_runpath=yes | |
15741 | ;; | |
15742 | *,yes) # both, prefer svr4 | |
15743 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" | |
15744 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
15745 | # unpreferred sharedlib libNAME.a needs extra handling | |
15746 | postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' | |
15747 | postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' | |
15748 | # We do not specify a path in Import Files, so LIBPATH fires. | |
15749 | shlibpath_overrides_runpath=yes | |
15750 | ;; | |
15751 | *,no) # both, prefer aix | |
15752 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" | |
15753 | library_names_spec='$libname$release.a $libname.a' | |
15754 | soname_spec='$libname$release$shared_ext$major' | |
15755 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
15756 | postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' | |
15757 | postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' | |
15758 | ;; | |
15759 | esac | |
47aaa820 DWT |
15760 | shlibpath_var=LIBPATH |
15761 | fi | |
15762 | ;; | |
15763 | ||
15764 | amigaos*) | |
15765 | case $host_cpu in | |
15766 | powerpc) | |
15767 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
15768 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9d54db95 | 15769 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
47aaa820 DWT |
15770 | ;; |
15771 | m68k) | |
15772 | library_names_spec='$libname.ixlibrary $libname.a' | |
15773 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
9d54db95 | 15774 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
47aaa820 DWT |
15775 | ;; |
15776 | esac | |
15777 | ;; | |
15778 | ||
15779 | beos*) | |
9d54db95 | 15780 | library_names_spec='$libname$shared_ext' |
47aaa820 DWT |
15781 | dynamic_linker="$host_os ld.so" |
15782 | shlibpath_var=LIBRARY_PATH | |
15783 | ;; | |
15784 | ||
15785 | bsdi[45]*) | |
53ba6704 | 15786 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 | 15787 | need_version=no |
9d54db95 JF |
15788 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
15789 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
15790 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
15791 | shlibpath_var=LD_LIBRARY_PATH | |
15792 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
15793 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
15794 | # the default ld.so.conf also contains /usr/contrib/lib and | |
15795 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
15796 | # libtool to hard-code these into programs | |
15797 | ;; | |
9c60689e | 15798 | |
47aaa820 DWT |
15799 | cygwin* | mingw* | pw32* | cegcc*) |
15800 | version_type=windows | |
9d54db95 | 15801 | shrext_cmds=.dll |
47aaa820 DWT |
15802 | need_version=no |
15803 | need_lib_prefix=no | |
9c60689e | 15804 | |
ee134472 JF |
15805 | case $GCC,$cc_basename in |
15806 | yes,*) | |
15807 | # gcc | |
47aaa820 DWT |
15808 | library_names_spec='$libname.dll.a' |
15809 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9d54db95 JF |
15810 | postinstall_cmds='base_file=`basename \$file`~ |
15811 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
47aaa820 DWT |
15812 | dldir=$destdir/`dirname \$dlpath`~ |
15813 | test -d \$dldir || mkdir -p \$dldir~ | |
15814 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
15815 | chmod a+x \$dldir/$dlname~ | |
15816 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
15817 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
15818 | fi' | |
15819 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
15820 | dlpath=$dir/\$dldll~ | |
15821 | $RM \$dlpath' | |
15822 | shlibpath_overrides_runpath=yes | |
9c60689e | 15823 | |
47aaa820 DWT |
15824 | case $host_os in |
15825 | cygwin*) | |
15826 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
9d54db95 | 15827 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
ee134472 | 15828 | |
47aaa820 DWT |
15829 | ;; |
15830 | mingw* | cegcc*) | |
15831 | # MinGW DLLs use traditional 'lib' prefix | |
9d54db95 | 15832 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
47aaa820 DWT |
15833 | ;; |
15834 | pw32*) | |
15835 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9d54db95 | 15836 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
47aaa820 DWT |
15837 | ;; |
15838 | esac | |
ee134472 JF |
15839 | dynamic_linker='Win32 ld.exe' |
15840 | ;; | |
15841 | ||
15842 | *,cl*) | |
15843 | # Native MSVC | |
15844 | libname_spec='$name' | |
9d54db95 JF |
15845 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
15846 | library_names_spec='$libname.dll.lib' | |
ee134472 JF |
15847 | |
15848 | case $build_os in | |
15849 | mingw*) | |
15850 | sys_lib_search_path_spec= | |
15851 | lt_save_ifs=$IFS | |
15852 | IFS=';' | |
15853 | for lt_path in $LIB | |
15854 | do | |
15855 | IFS=$lt_save_ifs | |
15856 | # Let DOS variable expansion print the short 8.3 style file name. | |
15857 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
15858 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
15859 | done | |
15860 | IFS=$lt_save_ifs | |
15861 | # Convert to MSYS style. | |
15862 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
15863 | ;; | |
15864 | cygwin*) | |
15865 | # Convert to unix form, then to dos form, then back to unix form | |
15866 | # but this time dos style (no spaces!) so that the unix form looks | |
15867 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
15868 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
15869 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
15870 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
15871 | ;; | |
15872 | *) | |
9d54db95 | 15873 | sys_lib_search_path_spec=$LIB |
ee134472 JF |
15874 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
15875 | # It is most probably a Windows format PATH. | |
15876 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
15877 | else | |
15878 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
15879 | fi | |
15880 | # FIXME: find the short name or the path components, as spaces are | |
15881 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
15882 | ;; | |
15883 | esac | |
15884 | ||
15885 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9d54db95 JF |
15886 | postinstall_cmds='base_file=`basename \$file`~ |
15887 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
ee134472 JF |
15888 | dldir=$destdir/`dirname \$dlpath`~ |
15889 | test -d \$dldir || mkdir -p \$dldir~ | |
15890 | $install_prog $dir/$dlname \$dldir/$dlname' | |
15891 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
15892 | dlpath=$dir/\$dldll~ | |
15893 | $RM \$dlpath' | |
15894 | shlibpath_overrides_runpath=yes | |
15895 | dynamic_linker='Win32 link.exe' | |
47aaa820 | 15896 | ;; |
9c60689e | 15897 | |
47aaa820 | 15898 | *) |
ee134472 | 15899 | # Assume MSVC wrapper |
9d54db95 | 15900 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
ee134472 | 15901 | dynamic_linker='Win32 ld.exe' |
47aaa820 DWT |
15902 | ;; |
15903 | esac | |
47aaa820 DWT |
15904 | # FIXME: first we should search . and the directory the executable is in |
15905 | shlibpath_var=PATH | |
15906 | ;; | |
9c60689e | 15907 | |
47aaa820 DWT |
15908 | darwin* | rhapsody*) |
15909 | dynamic_linker="$host_os dyld" | |
15910 | version_type=darwin | |
15911 | need_lib_prefix=no | |
15912 | need_version=no | |
9d54db95 JF |
15913 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
15914 | soname_spec='$libname$release$major$shared_ext' | |
47aaa820 DWT |
15915 | shlibpath_overrides_runpath=yes |
15916 | shlibpath_var=DYLD_LIBRARY_PATH | |
15917 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9c60689e | 15918 | |
47aaa820 DWT |
15919 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
15920 | ;; | |
9c60689e | 15921 | |
47aaa820 | 15922 | dgux*) |
53ba6704 | 15923 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15924 | need_lib_prefix=no |
15925 | need_version=no | |
9d54db95 JF |
15926 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
15927 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
15928 | shlibpath_var=LD_LIBRARY_PATH |
15929 | ;; | |
9c60689e | 15930 | |
47aaa820 DWT |
15931 | freebsd* | dragonfly*) |
15932 | # DragonFly does not have aout. When/if they implement a new | |
15933 | # versioning mechanism, adjust this. | |
15934 | if test -x /usr/bin/objformat; then | |
15935 | objformat=`/usr/bin/objformat` | |
15936 | else | |
15937 | case $host_os in | |
53ba6704 | 15938 | freebsd[23].*) objformat=aout ;; |
47aaa820 DWT |
15939 | *) objformat=elf ;; |
15940 | esac | |
15941 | fi | |
15942 | version_type=freebsd-$objformat | |
15943 | case $version_type in | |
15944 | freebsd-elf*) | |
9d54db95 JF |
15945 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
15946 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
15947 | need_version=no |
15948 | need_lib_prefix=no | |
15949 | ;; | |
15950 | freebsd-*) | |
9d54db95 | 15951 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
47aaa820 DWT |
15952 | need_version=yes |
15953 | ;; | |
15954 | esac | |
15955 | shlibpath_var=LD_LIBRARY_PATH | |
15956 | case $host_os in | |
53ba6704 | 15957 | freebsd2.*) |
47aaa820 DWT |
15958 | shlibpath_overrides_runpath=yes |
15959 | ;; | |
15960 | freebsd3.[01]* | freebsdelf3.[01]*) | |
15961 | shlibpath_overrides_runpath=yes | |
15962 | hardcode_into_libs=yes | |
15963 | ;; | |
15964 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
15965 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
15966 | shlibpath_overrides_runpath=no | |
15967 | hardcode_into_libs=yes | |
15968 | ;; | |
15969 | *) # from 4.6 on, and DragonFly | |
15970 | shlibpath_overrides_runpath=yes | |
15971 | hardcode_into_libs=yes | |
15972 | ;; | |
15973 | esac | |
15974 | ;; | |
9c60689e | 15975 | |
ee134472 | 15976 | haiku*) |
53ba6704 | 15977 | version_type=linux # correct to gnu/linux during the next big refactor |
ee134472 JF |
15978 | need_lib_prefix=no |
15979 | need_version=no | |
15980 | dynamic_linker="$host_os runtime_loader" | |
9d54db95 JF |
15981 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
15982 | soname_spec='$libname$release$shared_ext$major' | |
ee134472 | 15983 | shlibpath_var=LIBRARY_PATH |
9d54db95 | 15984 | shlibpath_overrides_runpath=no |
ee134472 | 15985 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
47aaa820 DWT |
15986 | hardcode_into_libs=yes |
15987 | ;; | |
9c60689e | 15988 | |
47aaa820 DWT |
15989 | hpux9* | hpux10* | hpux11*) |
15990 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
15991 | # link against other versions. | |
15992 | version_type=sunos | |
15993 | need_lib_prefix=no | |
15994 | need_version=no | |
15995 | case $host_cpu in | |
15996 | ia64*) | |
15997 | shrext_cmds='.so' | |
15998 | hardcode_into_libs=yes | |
15999 | dynamic_linker="$host_os dld.so" | |
16000 | shlibpath_var=LD_LIBRARY_PATH | |
16001 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9d54db95 JF |
16002 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
16003 | soname_spec='$libname$release$shared_ext$major' | |
16004 | if test 32 = "$HPUX_IA64_MODE"; then | |
47aaa820 | 16005 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
9d54db95 | 16006 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
47aaa820 DWT |
16007 | else |
16008 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
9d54db95 | 16009 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
47aaa820 | 16010 | fi |
47aaa820 DWT |
16011 | ;; |
16012 | hppa*64*) | |
16013 | shrext_cmds='.sl' | |
16014 | hardcode_into_libs=yes | |
16015 | dynamic_linker="$host_os dld.sl" | |
16016 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
16017 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9d54db95 JF |
16018 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
16019 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
16020 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
16021 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
16022 | ;; | |
16023 | *) | |
16024 | shrext_cmds='.sl' | |
16025 | dynamic_linker="$host_os dld.sl" | |
16026 | shlibpath_var=SHLIB_PATH | |
16027 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
9d54db95 JF |
16028 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
16029 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
16030 | ;; |
16031 | esac | |
ee134472 | 16032 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
47aaa820 | 16033 | postinstall_cmds='chmod 555 $lib' |
ee134472 JF |
16034 | # or fails outright, so override atomically: |
16035 | install_override_mode=555 | |
47aaa820 | 16036 | ;; |
9c60689e | 16037 | |
47aaa820 | 16038 | interix[3-9]*) |
53ba6704 | 16039 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
16040 | need_lib_prefix=no |
16041 | need_version=no | |
9d54db95 JF |
16042 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
16043 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
16044 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
16045 | shlibpath_var=LD_LIBRARY_PATH | |
16046 | shlibpath_overrides_runpath=no | |
16047 | hardcode_into_libs=yes | |
16048 | ;; | |
9c60689e | 16049 | |
47aaa820 DWT |
16050 | irix5* | irix6* | nonstopux*) |
16051 | case $host_os in | |
16052 | nonstopux*) version_type=nonstopux ;; | |
16053 | *) | |
9d54db95 | 16054 | if test yes = "$lt_cv_prog_gnu_ld"; then |
53ba6704 | 16055 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
16056 | else |
16057 | version_type=irix | |
16058 | fi ;; | |
16059 | esac | |
16060 | need_lib_prefix=no | |
16061 | need_version=no | |
9d54db95 JF |
16062 | soname_spec='$libname$release$shared_ext$major' |
16063 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
47aaa820 DWT |
16064 | case $host_os in |
16065 | irix5* | nonstopux*) | |
16066 | libsuff= shlibsuff= | |
16067 | ;; | |
16068 | *) | |
16069 | case $LD in # libtool.m4 will add one of these switches to LD | |
16070 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
16071 | libsuff= shlibsuff= libmagic=32-bit;; | |
16072 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
16073 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
16074 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
16075 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
16076 | *) libsuff= shlibsuff= libmagic=never-match;; | |
16077 | esac | |
16078 | ;; | |
16079 | esac | |
16080 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
16081 | shlibpath_overrides_runpath=no | |
9d54db95 JF |
16082 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
16083 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
47aaa820 DWT |
16084 | hardcode_into_libs=yes |
16085 | ;; | |
9c60689e | 16086 | |
47aaa820 DWT |
16087 | # No shared lib support for Linux oldld, aout, or coff. |
16088 | linux*oldld* | linux*aout* | linux*coff*) | |
16089 | dynamic_linker=no | |
16090 | ;; | |
9c60689e | 16091 | |
9d54db95 JF |
16092 | linux*android*) |
16093 | version_type=none # Android doesn't support versioned libraries. | |
16094 | need_lib_prefix=no | |
16095 | need_version=no | |
16096 | library_names_spec='$libname$release$shared_ext' | |
16097 | soname_spec='$libname$release$shared_ext' | |
16098 | finish_cmds= | |
16099 | shlibpath_var=LD_LIBRARY_PATH | |
16100 | shlibpath_overrides_runpath=yes | |
16101 | ||
16102 | # This implies no fast_install, which is unacceptable. | |
16103 | # Some rework will be needed to allow for fast_install | |
16104 | # before this can be enabled. | |
16105 | hardcode_into_libs=yes | |
16106 | ||
16107 | dynamic_linker='Android linker' | |
16108 | # Don't embed -rpath directories since the linker doesn't support them. | |
16109 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
16110 | ;; | |
16111 | ||
53ba6704 | 16112 | # This must be glibc/ELF. |
9d54db95 | 16113 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
53ba6704 | 16114 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
16115 | need_lib_prefix=no |
16116 | need_version=no | |
9d54db95 JF |
16117 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
16118 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
16119 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
16120 | shlibpath_var=LD_LIBRARY_PATH | |
16121 | shlibpath_overrides_runpath=no | |
ee134472 | 16122 | |
47aaa820 | 16123 | # Some binutils ld are patched to set DT_RUNPATH |
ee134472 JF |
16124 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
16125 | $as_echo_n "(cached) " >&6 | |
16126 | else | |
16127 | lt_cv_shlibpath_overrides_runpath=no | |
16128 | save_LDFLAGS=$LDFLAGS | |
16129 | save_libdir=$libdir | |
16130 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
16131 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
16132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
47aaa820 | 16133 | /* end confdefs.h. */ |
9c60689e | 16134 | |
47aaa820 DWT |
16135 | int |
16136 | main () | |
16137 | { | |
9c60689e | 16138 | |
47aaa820 DWT |
16139 | ; |
16140 | return 0; | |
16141 | } | |
16142 | _ACEOF | |
16143 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16144 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
ee134472 | 16145 | lt_cv_shlibpath_overrides_runpath=yes |
9c60689e | 16146 | fi |
47aaa820 DWT |
16147 | fi |
16148 | rm -f core conftest.err conftest.$ac_objext \ | |
16149 | conftest$ac_exeext conftest.$ac_ext | |
ee134472 JF |
16150 | LDFLAGS=$save_LDFLAGS |
16151 | libdir=$save_libdir | |
16152 | ||
16153 | fi | |
16154 | ||
16155 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
9c60689e | 16156 | |
47aaa820 DWT |
16157 | # This implies no fast_install, which is unacceptable. |
16158 | # Some rework will be needed to allow for fast_install | |
16159 | # before this can be enabled. | |
16160 | hardcode_into_libs=yes | |
9c60689e | 16161 | |
9d54db95 JF |
16162 | # Ideally, we could use ldconfig to report *all* directores which are |
16163 | # searched for libraries, however this is still not possible. Aside from not | |
16164 | # being certain /sbin/ldconfig is available, command | |
16165 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
16166 | # even though it is searched at run-time. Try to do the best guess by | |
16167 | # appending ld.so.conf contents (and includes) to the search path. | |
47aaa820 | 16168 | if test -f /etc/ld.so.conf; then |
ee134472 | 16169 | 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' ' '` |
47aaa820 DWT |
16170 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
16171 | fi | |
9c60689e | 16172 | |
47aaa820 DWT |
16173 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
16174 | # powerpc, because MkLinux only supported shared libraries with the | |
16175 | # GNU dynamic linker. Since this was broken with cross compilers, | |
16176 | # most powerpc-linux boxes support dynamic linking these days and | |
16177 | # people can always --disable-shared, the test was removed, and we | |
16178 | # assume the GNU/Linux dynamic linker is in use. | |
16179 | dynamic_linker='GNU/Linux ld.so' | |
9c60689e | 16180 | ;; |
47aaa820 | 16181 | |
47aaa820 DWT |
16182 | netbsd*) |
16183 | version_type=sunos | |
16184 | need_lib_prefix=no | |
16185 | need_version=no | |
16186 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9d54db95 | 16187 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
47aaa820 DWT |
16188 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
16189 | dynamic_linker='NetBSD (a.out) ld.so' | |
16190 | else | |
9d54db95 JF |
16191 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
16192 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
16193 | dynamic_linker='NetBSD ld.elf_so' |
16194 | fi | |
16195 | shlibpath_var=LD_LIBRARY_PATH | |
16196 | shlibpath_overrides_runpath=yes | |
16197 | hardcode_into_libs=yes | |
9c60689e | 16198 | ;; |
9c60689e | 16199 | |
47aaa820 | 16200 | newsos6) |
53ba6704 | 16201 | version_type=linux # correct to gnu/linux during the next big refactor |
9d54db95 | 16202 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
47aaa820 DWT |
16203 | shlibpath_var=LD_LIBRARY_PATH |
16204 | shlibpath_overrides_runpath=yes | |
16205 | ;; | |
9c60689e | 16206 | |
47aaa820 DWT |
16207 | *nto* | *qnx*) |
16208 | version_type=qnx | |
16209 | need_lib_prefix=no | |
16210 | need_version=no | |
9d54db95 JF |
16211 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
16212 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
16213 | shlibpath_var=LD_LIBRARY_PATH |
16214 | shlibpath_overrides_runpath=no | |
16215 | hardcode_into_libs=yes | |
16216 | dynamic_linker='ldqnx.so' | |
16217 | ;; | |
9c60689e | 16218 | |
9d54db95 | 16219 | openbsd* | bitrig*) |
47aaa820 | 16220 | version_type=sunos |
9d54db95 | 16221 | sys_lib_dlsearch_path_spec=/usr/lib |
47aaa820 | 16222 | need_lib_prefix=no |
9d54db95 JF |
16223 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
16224 | need_version=no | |
47aaa820 | 16225 | else |
9d54db95 | 16226 | need_version=yes |
47aaa820 | 16227 | fi |
9d54db95 JF |
16228 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
16229 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
16230 | shlibpath_var=LD_LIBRARY_PATH | |
16231 | shlibpath_overrides_runpath=yes | |
47aaa820 | 16232 | ;; |
9c60689e | 16233 | |
47aaa820 DWT |
16234 | os2*) |
16235 | libname_spec='$name' | |
9d54db95 JF |
16236 | version_type=windows |
16237 | shrext_cmds=.dll | |
16238 | need_version=no | |
47aaa820 | 16239 | need_lib_prefix=no |
9d54db95 JF |
16240 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
16241 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
16242 | v=$($ECHO $release$versuffix | tr -d .-); | |
16243 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
16244 | $ECHO $n$v`$shared_ext' | |
16245 | library_names_spec='${libname}_dll.$libext' | |
47aaa820 | 16246 | dynamic_linker='OS/2 ld.exe' |
9d54db95 JF |
16247 | shlibpath_var=BEGINLIBPATH |
16248 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
16249 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
16250 | postinstall_cmds='base_file=`basename \$file`~ | |
16251 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
16252 | dldir=$destdir/`dirname \$dlpath`~ | |
16253 | test -d \$dldir || mkdir -p \$dldir~ | |
16254 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
16255 | chmod a+x \$dldir/$dlname~ | |
16256 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
16257 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
16258 | fi' | |
16259 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
16260 | dlpath=$dir/\$dldll~ | |
16261 | $RM \$dlpath' | |
47aaa820 | 16262 | ;; |
9c60689e | 16263 | |
47aaa820 DWT |
16264 | osf3* | osf4* | osf5*) |
16265 | version_type=osf | |
16266 | need_lib_prefix=no | |
16267 | need_version=no | |
9d54db95 JF |
16268 | soname_spec='$libname$release$shared_ext$major' |
16269 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
47aaa820 DWT |
16270 | shlibpath_var=LD_LIBRARY_PATH |
16271 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9d54db95 | 16272 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
47aaa820 | 16273 | ;; |
9c60689e | 16274 | |
47aaa820 DWT |
16275 | rdos*) |
16276 | dynamic_linker=no | |
16277 | ;; | |
9c60689e | 16278 | |
47aaa820 | 16279 | solaris*) |
53ba6704 | 16280 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
16281 | need_lib_prefix=no |
16282 | need_version=no | |
9d54db95 JF |
16283 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
16284 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
16285 | shlibpath_var=LD_LIBRARY_PATH |
16286 | shlibpath_overrides_runpath=yes | |
16287 | hardcode_into_libs=yes | |
16288 | # ldd complains unless libraries are executable | |
16289 | postinstall_cmds='chmod +x $lib' | |
16290 | ;; | |
9c60689e | 16291 | |
47aaa820 DWT |
16292 | sunos4*) |
16293 | version_type=sunos | |
9d54db95 | 16294 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
47aaa820 DWT |
16295 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
16296 | shlibpath_var=LD_LIBRARY_PATH | |
16297 | shlibpath_overrides_runpath=yes | |
9d54db95 | 16298 | if test yes = "$with_gnu_ld"; then |
47aaa820 DWT |
16299 | need_lib_prefix=no |
16300 | fi | |
16301 | need_version=yes | |
16302 | ;; | |
9c60689e | 16303 | |
47aaa820 | 16304 | sysv4 | sysv4.3*) |
53ba6704 | 16305 | version_type=linux # correct to gnu/linux during the next big refactor |
9d54db95 JF |
16306 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
16307 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
16308 | shlibpath_var=LD_LIBRARY_PATH |
16309 | case $host_vendor in | |
16310 | sni) | |
16311 | shlibpath_overrides_runpath=no | |
16312 | need_lib_prefix=no | |
16313 | runpath_var=LD_RUN_PATH | |
9c60689e | 16314 | ;; |
47aaa820 DWT |
16315 | siemens) |
16316 | need_lib_prefix=no | |
9c60689e | 16317 | ;; |
47aaa820 DWT |
16318 | motorola) |
16319 | need_lib_prefix=no | |
16320 | need_version=no | |
16321 | shlibpath_overrides_runpath=no | |
16322 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
16323 | ;; | |
16324 | esac | |
9c60689e | 16325 | ;; |
9c60689e | 16326 | |
47aaa820 | 16327 | sysv4*MP*) |
9d54db95 | 16328 | if test -d /usr/nec; then |
53ba6704 | 16329 | version_type=linux # correct to gnu/linux during the next big refactor |
9d54db95 JF |
16330 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
16331 | soname_spec='$libname$shared_ext.$major' | |
47aaa820 DWT |
16332 | shlibpath_var=LD_LIBRARY_PATH |
16333 | fi | |
16334 | ;; | |
9c60689e | 16335 | |
47aaa820 | 16336 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
9d54db95 | 16337 | version_type=sco |
47aaa820 DWT |
16338 | need_lib_prefix=no |
16339 | need_version=no | |
9d54db95 JF |
16340 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
16341 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
16342 | shlibpath_var=LD_LIBRARY_PATH |
16343 | shlibpath_overrides_runpath=yes | |
16344 | hardcode_into_libs=yes | |
9d54db95 | 16345 | if test yes = "$with_gnu_ld"; then |
47aaa820 DWT |
16346 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
16347 | else | |
16348 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
16349 | case $host_os in | |
16350 | sco3.2v5*) | |
16351 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
16352 | ;; | |
16353 | esac | |
16354 | fi | |
16355 | sys_lib_dlsearch_path_spec='/usr/lib' | |
16356 | ;; | |
9c60689e | 16357 | |
47aaa820 DWT |
16358 | tpf*) |
16359 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
53ba6704 | 16360 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
16361 | need_lib_prefix=no |
16362 | need_version=no | |
9d54db95 | 16363 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
47aaa820 DWT |
16364 | shlibpath_var=LD_LIBRARY_PATH |
16365 | shlibpath_overrides_runpath=no | |
16366 | hardcode_into_libs=yes | |
16367 | ;; | |
9c60689e | 16368 | |
47aaa820 | 16369 | uts4*) |
53ba6704 | 16370 | version_type=linux # correct to gnu/linux during the next big refactor |
9d54db95 JF |
16371 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
16372 | soname_spec='$libname$release$shared_ext$major' | |
47aaa820 DWT |
16373 | shlibpath_var=LD_LIBRARY_PATH |
16374 | ;; | |
9c60689e | 16375 | |
47aaa820 DWT |
16376 | *) |
16377 | dynamic_linker=no | |
e9c9a47c DWT |
16378 | ;; |
16379 | esac | |
16380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
16381 | $as_echo "$dynamic_linker" >&6; } | |
9d54db95 | 16382 | test no = "$dynamic_linker" && can_build_shared=no |
e9c9a47c DWT |
16383 | |
16384 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
9d54db95 | 16385 | if test yes = "$GCC"; then |
e9c9a47c | 16386 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
47aaa820 | 16387 | fi |
9c60689e | 16388 | |
9d54db95 JF |
16389 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
16390 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
47aaa820 | 16391 | fi |
9d54db95 JF |
16392 | |
16393 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
16394 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
47aaa820 | 16395 | fi |
9c60689e | 16396 | |
9d54db95 JF |
16397 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
16398 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec | |
16399 | ||
16400 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code | |
16401 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
16402 | ||
16403 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool | |
16404 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH | |
16405 | ||
16406 | ||
16407 | ||
9c60689e | 16408 | |
9c60689e | 16409 | |
9c60689e | 16410 | |
47aaa820 | 16411 | |
47aaa820 | 16412 | |
47aaa820 | 16413 | |
9c60689e | 16414 | |
9c60689e | 16415 | |
47aaa820 | 16416 | |
47aaa820 | 16417 | |
47aaa820 | 16418 | |
47aaa820 | 16419 | |
47aaa820 | 16420 | |
47aaa820 | 16421 | |
47aaa820 | 16422 | |
47aaa820 | 16423 | |
9c60689e | 16424 | |
9c60689e | 16425 | |
9c60689e | 16426 | |
9c60689e | 16427 | |
9c60689e | 16428 | |
e9c9a47c DWT |
16429 | |
16430 | ||
16431 | ||
16432 | ||
16433 | ||
16434 | ||
16435 | ||
16436 | ||
16437 | ||
16438 | ||
16439 | ||
ee134472 JF |
16440 | |
16441 | ||
e9c9a47c DWT |
16442 | |
16443 | ||
16444 | ||
16445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
16446 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
16447 | hardcode_action_CXX= | |
16448 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
16449 | test -n "$runpath_var_CXX" || | |
9d54db95 | 16450 | test yes = "$hardcode_automatic_CXX"; then |
e9c9a47c DWT |
16451 | |
16452 | # We can hardcode non-existent directories. | |
9d54db95 | 16453 | if test no != "$hardcode_direct_CXX" && |
e9c9a47c DWT |
16454 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
16455 | # have to relink, otherwise we might link with an installed library | |
16456 | # when we should be linking with a yet-to-be-installed one | |
9d54db95 JF |
16457 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && |
16458 | test no != "$hardcode_minus_L_CXX"; then | |
e9c9a47c DWT |
16459 | # Linking always hardcodes the temporary library directory. |
16460 | hardcode_action_CXX=relink | |
16461 | else | |
16462 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
16463 | hardcode_action_CXX=immediate | |
16464 | fi | |
16465 | else | |
16466 | # We cannot hardcode anything, or else we can only hardcode existing | |
16467 | # directories. | |
16468 | hardcode_action_CXX=unsupported | |
16469 | fi | |
16470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
16471 | $as_echo "$hardcode_action_CXX" >&6; } | |
16472 | ||
9d54db95 JF |
16473 | if test relink = "$hardcode_action_CXX" || |
16474 | test yes = "$inherit_rpath_CXX"; then | |
e9c9a47c DWT |
16475 | # Fast installation is not supported |
16476 | enable_fast_install=no | |
9d54db95 JF |
16477 | elif test yes = "$shlibpath_overrides_runpath" || |
16478 | test no = "$enable_shared"; then | |
e9c9a47c DWT |
16479 | # Fast installation is not necessary |
16480 | enable_fast_install=needless | |
47aaa820 | 16481 | fi |
9c60689e | 16482 | |
47aaa820 | 16483 | |
47aaa820 | 16484 | |
e9c9a47c DWT |
16485 | |
16486 | ||
16487 | ||
16488 | ||
a243b558 JF |
16489 | fi # test -n "$compiler" |
16490 | ||
16491 | CC=$lt_save_CC | |
16492 | CFLAGS=$lt_save_CFLAGS | |
16493 | LDCXX=$LD | |
16494 | LD=$lt_save_LD | |
16495 | GCC=$lt_save_GCC | |
16496 | with_gnu_ld=$lt_save_with_gnu_ld | |
16497 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
16498 | lt_cv_path_LD=$lt_save_path_LD | |
16499 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
16500 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
9d54db95 | 16501 | fi # test yes != "$_lt_caught_CXX_error" |
a243b558 JF |
16502 | |
16503 | ac_ext=c | |
16504 | ac_cpp='$CPP $CPPFLAGS' | |
16505 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16506 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16507 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16508 | ||
16509 | ||
16510 | ||
16511 | ||
16512 | ||
16513 | ||
16514 | ||
16515 | ||
16516 | ||
16517 | ||
16518 | ||
16519 | ||
16520 | ||
16521 | ||
16522 | ||
16523 | ac_config_commands="$ac_config_commands libtool" | |
16524 | ||
16525 | ||
16526 | ||
16527 | ||
16528 | # Only expand once: | |
16529 | ||
16530 | ||
16531 | ||
16532 | ac_ext=cpp | |
16533 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16534 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16535 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16536 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16537 | ||
16538 | ||
1771224f JF |
16539 | ax_cxx_compile_cxx11_required=true |
16540 | ac_ext=cpp | |
16541 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16542 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16543 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16544 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16545 | ac_success=no | |
16546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
16547 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
16548 | if ${ax_cv_cxx_compile_cxx11+:} false; then : | |
16549 | $as_echo_n "(cached) " >&6 | |
16550 | else | |
16551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16552 | /* end confdefs.h. */ | |
16553 | ||
16554 | template <typename T> | |
16555 | struct check | |
16556 | { | |
16557 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
16558 | }; | |
16559 | ||
16560 | struct Base { | |
16561 | virtual void f() {} | |
16562 | }; | |
16563 | struct Child : public Base { | |
16564 | virtual void f() override {} | |
16565 | }; | |
16566 | ||
16567 | typedef check<check<bool>> right_angle_brackets; | |
16568 | ||
16569 | int a; | |
16570 | decltype(a) b; | |
16571 | ||
16572 | typedef check<int> check_type; | |
16573 | check_type c; | |
16574 | check_type&& cr = static_cast<check_type&&>(c); | |
16575 | ||
16576 | auto d = a; | |
16577 | auto l = [](){}; | |
16578 | ||
16579 | _ACEOF | |
16580 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
16581 | ax_cv_cxx_compile_cxx11=yes | |
16582 | else | |
16583 | ax_cv_cxx_compile_cxx11=no | |
16584 | fi | |
16585 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16586 | fi | |
16587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 | |
16588 | $as_echo "$ax_cv_cxx_compile_cxx11" >&6; } | |
16589 | if test x$ax_cv_cxx_compile_cxx11 = xyes; then | |
16590 | ac_success=yes | |
16591 | fi | |
16592 | ||
16593 | if test x$ac_success = xno; then | |
16594 | for switch in -std=gnu++11 -std=gnu++0x; do | |
16595 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
16596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
16597 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
16598 | if eval \${$cachevar+:} false; then : | |
16599 | $as_echo_n "(cached) " >&6 | |
16600 | else | |
16601 | ac_save_CXXFLAGS="$CXXFLAGS" | |
16602 | CXXFLAGS="$CXXFLAGS $switch" | |
16603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16604 | /* end confdefs.h. */ | |
16605 | ||
16606 | template <typename T> | |
16607 | struct check | |
16608 | { | |
16609 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
16610 | }; | |
16611 | ||
16612 | struct Base { | |
16613 | virtual void f() {} | |
16614 | }; | |
16615 | struct Child : public Base { | |
16616 | virtual void f() override {} | |
16617 | }; | |
16618 | ||
16619 | typedef check<check<bool>> right_angle_brackets; | |
16620 | ||
16621 | int a; | |
16622 | decltype(a) b; | |
16623 | ||
16624 | typedef check<int> check_type; | |
16625 | check_type c; | |
16626 | check_type&& cr = static_cast<check_type&&>(c); | |
16627 | ||
16628 | auto d = a; | |
16629 | auto l = [](){}; | |
16630 | ||
16631 | _ACEOF | |
16632 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
16633 | eval $cachevar=yes | |
16634 | else | |
16635 | eval $cachevar=no | |
16636 | fi | |
16637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16638 | CXXFLAGS="$ac_save_CXXFLAGS" | |
16639 | fi | |
16640 | eval ac_res=\$$cachevar | |
16641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
16642 | $as_echo "$ac_res" >&6; } | |
16643 | if eval test x\$$cachevar = xyes; then | |
16644 | CXXFLAGS="$CXXFLAGS $switch" | |
16645 | ac_success=yes | |
16646 | break | |
16647 | fi | |
16648 | done | |
16649 | fi | |
16650 | ||
16651 | ||
16652 | ac_ext=cpp | |
16653 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16654 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16655 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16656 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16657 | ||
16658 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
16659 | if test x$ac_success = xno; then | |
16660 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
16661 | fi | |
16662 | else | |
16663 | if test x$ac_success = xno; then | |
16664 | HAVE_CXX11=0 | |
16665 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
16666 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
16667 | else | |
16668 | HAVE_CXX11=1 | |
16669 | ||
16670 | $as_echo "#define HAVE_CXX11 1" >>confdefs.h | |
16671 | ||
16672 | fi | |
16673 | ||
16674 | ||
16675 | fi | |
16676 | ||
16677 | OBJCXXFLAGS="${OBJCXXFLAGS} ${CXXFLAGS##*' '}" | |
16678 | ||
a243b558 JF |
16679 | |
16680 | ||
16681 | ||
16682 | ||
16683 | ||
16684 | ||
83c6fec8 | 16685 | |
a243b558 JF |
16686 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
16687 | if test -n "$ac_tool_prefix"; then | |
16688 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
16689 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
16690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16691 | $as_echo_n "checking for $ac_word... " >&6; } | |
16692 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
16693 | $as_echo_n "(cached) " >&6 | |
16694 | else | |
16695 | case $PKG_CONFIG in | |
16696 | [\\/]* | ?:[\\/]*) | |
16697 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
16698 | ;; | |
16699 | *) | |
16700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16701 | for as_dir in $PATH | |
16702 | do | |
16703 | IFS=$as_save_IFS | |
16704 | test -z "$as_dir" && as_dir=. | |
16705 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16706 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16707 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
16708 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16709 | break 2 | |
16710 | fi | |
16711 | done | |
16712 | done | |
16713 | IFS=$as_save_IFS | |
16714 | ||
16715 | ;; | |
16716 | esac | |
16717 | fi | |
16718 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
16719 | if test -n "$PKG_CONFIG"; then | |
16720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
16721 | $as_echo "$PKG_CONFIG" >&6; } | |
16722 | else | |
16723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16724 | $as_echo "no" >&6; } | |
16725 | fi | |
16726 | ||
16727 | ||
16728 | fi | |
16729 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
16730 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
16731 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
16732 | set dummy pkg-config; ac_word=$2 | |
16733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16734 | $as_echo_n "checking for $ac_word... " >&6; } | |
16735 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
16736 | $as_echo_n "(cached) " >&6 | |
16737 | else | |
16738 | case $ac_pt_PKG_CONFIG in | |
16739 | [\\/]* | ?:[\\/]*) | |
16740 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
16741 | ;; | |
16742 | *) | |
16743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16744 | for as_dir in $PATH | |
16745 | do | |
16746 | IFS=$as_save_IFS | |
16747 | test -z "$as_dir" && as_dir=. | |
16748 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16749 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16750 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
16751 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16752 | break 2 | |
16753 | fi | |
16754 | done | |
16755 | done | |
16756 | IFS=$as_save_IFS | |
16757 | ||
16758 | ;; | |
16759 | esac | |
16760 | fi | |
16761 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
16762 | if test -n "$ac_pt_PKG_CONFIG"; then | |
16763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
16764 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
16765 | else | |
16766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16767 | $as_echo "no" >&6; } | |
16768 | fi | |
16769 | ||
16770 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
16771 | PKG_CONFIG="" | |
16772 | else | |
16773 | case $cross_compiling:$ac_tool_warned in | |
16774 | yes:) | |
16775 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
16776 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
16777 | ac_tool_warned=yes ;; | |
16778 | esac | |
16779 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
16780 | fi | |
16781 | else | |
16782 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
16783 | fi | |
16784 | ||
16785 | fi | |
16786 | if test -n "$PKG_CONFIG"; then | |
16787 | _pkg_min_version=0.22 | |
16788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
16789 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
16790 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
16791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16792 | $as_echo "yes" >&6; } | |
16793 | else | |
16794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16795 | $as_echo "no" >&6; } | |
16796 | PKG_CONFIG="" | |
16797 | fi | |
16798 | fi | |
16799 | ||
a243b558 JF |
16800 | # Extract the first word of "git", so it can be a program name with args. |
16801 | set dummy git; ac_word=$2 | |
16802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16803 | $as_echo_n "checking for $ac_word... " >&6; } | |
16804 | if ${ac_cv_path_GIT+:} false; then : | |
16805 | $as_echo_n "(cached) " >&6 | |
16806 | else | |
16807 | case $GIT in | |
16808 | [\\/]* | ?:[\\/]*) | |
16809 | ac_cv_path_GIT="$GIT" # Let the user override the test with a path. | |
16810 | ;; | |
16811 | *) | |
16812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16813 | for as_dir in $PATH | |
16814 | do | |
16815 | IFS=$as_save_IFS | |
16816 | test -z "$as_dir" && as_dir=. | |
16817 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16818 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16819 | ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext" | |
16820 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16821 | break 2 | |
16822 | fi | |
16823 | done | |
16824 | done | |
16825 | IFS=$as_save_IFS | |
e9c9a47c | 16826 | |
a243b558 JF |
16827 | ;; |
16828 | esac | |
16829 | fi | |
16830 | GIT=$ac_cv_path_GIT | |
16831 | if test -n "$GIT"; then | |
16832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5 | |
16833 | $as_echo "$GIT" >&6; } | |
16834 | else | |
16835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16836 | $as_echo "no" >&6; } | |
16837 | fi | |
e9c9a47c DWT |
16838 | |
16839 | ||
a243b558 JF |
16840 | # Extract the first word of "time", so it can be a program name with args. |
16841 | set dummy time; ac_word=$2 | |
632b71ea DWT |
16842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16843 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 16844 | if ${ac_cv_path_TIME+:} false; then : |
632b71ea DWT |
16845 | $as_echo_n "(cached) " >&6 |
16846 | else | |
a243b558 JF |
16847 | case $TIME in |
16848 | [\\/]* | ?:[\\/]*) | |
16849 | ac_cv_path_TIME="$TIME" # Let the user override the test with a path. | |
16850 | ;; | |
16851 | *) | |
16852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
632b71ea DWT |
16853 | for as_dir in $PATH |
16854 | do | |
16855 | IFS=$as_save_IFS | |
16856 | test -z "$as_dir" && as_dir=. | |
16857 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 16858 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 16859 | ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" |
632b71ea DWT |
16860 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
16861 | break 2 | |
16862 | fi | |
16863 | done | |
16864 | done | |
16865 | IFS=$as_save_IFS | |
16866 | ||
a243b558 JF |
16867 | ;; |
16868 | esac | |
632b71ea | 16869 | fi |
a243b558 JF |
16870 | TIME=$ac_cv_path_TIME |
16871 | if test -n "$TIME"; then | |
16872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 | |
16873 | $as_echo "$TIME" >&6; } | |
632b71ea DWT |
16874 | else |
16875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16876 | $as_echo "no" >&6; } | |
16877 | fi | |
16878 | ||
16879 | ||
a243b558 JF |
16880 | |
16881 | ||
16882 | ||
16883 | ||
16884 | ||
6ce9ac92 JF |
16885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 3.0" >&5 |
16886 | $as_echo_n "checking for bison >= 3.0... " >&6; } | |
a243b558 JF |
16887 | if test -z "$BISON"; then |
16888 | ac_path_BISON_found=false | |
16889 | # Loop through the user's path and test for each of PROGNAME-LIST | |
16890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16891 | for as_dir in $PATH | |
16892 | do | |
16893 | IFS=$as_save_IFS | |
16894 | test -z "$as_dir" && as_dir=. | |
16895 | for ac_prog in bison; do | |
16896 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16897 | ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext" | |
16898 | as_fn_executable_p "$ac_path_BISON" || continue | |
16899 | version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'` | |
16900 | if ${version:+false} :; then : | |
16901 | ||
16902 | else | |
16903 | as_awk_strverscmp=' | |
16904 | # Use only awk features that work with 7th edition Unix awk (1978). | |
16905 | # My, what an old awk you have, Mr. Solaris! | |
16906 | END { | |
16907 | while (length(v1) && length(v2)) { | |
16908 | # Set d1 to be the next thing to compare from v1, and likewise for d2. | |
16909 | # Normally this is a single character, but if v1 and v2 contain digits, | |
16910 | # compare them as integers and fractions as strverscmp does. | |
16911 | if (v1 ~ /^0-9/ && v2 ~ /^0-9/) { | |
16912 | # Split v1 and v2 into their leading digit string components d1 and d2, | |
16913 | # and advance v1 and v2 past the leading digit strings. | |
16914 | for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue | |
16915 | for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue | |
16916 | d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) | |
16917 | d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) | |
16918 | if (d1 ~ /^0/) { | |
16919 | if (d2 ~ /^0/) { | |
16920 | # Compare two fractions. | |
16921 | while (d1 ~ /^0/ && d2 ~ /^0/) { | |
16922 | d1 = substr(d1, 2); len1-- | |
16923 | d2 = substr(d2, 2); len2-- | |
16924 | } | |
16925 | if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { | |
16926 | # The two components differ in length, and the common prefix | |
16927 | # contains only leading zeros. Consider the longer to be less. | |
16928 | d1 = -len1 | |
16929 | d2 = -len2 | |
16930 | } else { | |
16931 | # Otherwise, compare as strings. | |
16932 | d1 = "x" d1 | |
16933 | d2 = "x" d2 | |
16934 | } | |
16935 | } else { | |
16936 | # A fraction is less than an integer. | |
16937 | exit 1 | |
16938 | } | |
16939 | } else { | |
16940 | if (d2 ~ /^0/) { | |
16941 | # An integer is greater than a fraction. | |
16942 | exit 2 | |
16943 | } else { | |
16944 | # Compare two integers. | |
16945 | d1 += 0 | |
16946 | d2 += 0 | |
16947 | } | |
16948 | } | |
16949 | } else { | |
16950 | # The normal case, without worrying about digits. | |
16951 | d1 = substr(v1, 1, 1); v1 = substr(v1, 2) | |
16952 | d2 = substr(v2, 1, 1); v2 = substr(v2, 2) | |
16953 | } | |
16954 | if (d1 < d2) exit 1 | |
16955 | if (d1 > d2) exit 2 | |
16956 | } | |
16957 | # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), | |
16958 | # which mishandles some comparisons of empty strings to integers. | |
16959 | if (length(v2)) exit 1 | |
16960 | if (length(v1)) exit 2 | |
16961 | } | |
16962 | ' | |
16963 | as_arg_v1=$version | |
6ce9ac92 | 16964 | as_arg_v2=3.0 |
a243b558 JF |
16965 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null |
16966 | case $? in #( | |
16967 | 1) : | |
16968 | ;; #( | |
16969 | 0) : | |
16970 | ac_cv_path_BISON=$ac_path_BISON ;; #( | |
16971 | 2) : | |
16972 | ac_cv_path_BISON=$ac_path_BISON ;; #( | |
16973 | *) : | |
16974 | ;; | |
16975 | esac | |
16976 | fi | |
16977 | ||
16978 | $ac_path_BISON_found && break 3 | |
16979 | done | |
16980 | done | |
e9c9a47c | 16981 | done |
a243b558 JF |
16982 | IFS=$as_save_IFS |
16983 | if test -z "$ac_cv_path_BISON"; then | |
16984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16985 | $as_echo "no" >&6; } | |
16986 | fi | |
16987 | else | |
16988 | ac_cv_path_BISON=$BISON | |
632b71ea | 16989 | fi |
a243b558 JF |
16990 | |
16991 | ||
16992 | if true; then : | |
16993 | ||
16994 | BISON=$ac_cv_path_BISON | |
16995 | ||
16996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 | |
16997 | $as_echo "$BISON" >&6; } | |
16998 | ||
47aaa820 | 16999 | else |
a243b558 JF |
17000 | if true; then : |
17001 | ||
6ce9ac92 | 17002 | as_fn_error $? "You need bison 3.0 or greater" "$LINENO" 5 |
a243b558 | 17003 | |
47aaa820 | 17004 | else |
a243b558 JF |
17005 | |
17006 | BISON=: | |
17007 | ||
17008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17009 | $as_echo "no" >&6; } | |
17010 | ||
17011 | fi | |
17012 | fi | |
17013 | ||
17014 | ||
17015 | ||
17016 | ||
17017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5 | |
17018 | $as_echo_n "checking for flex >= 2.5.33... " >&6; } | |
17019 | if test -z "$FLEX"; then | |
17020 | ac_path_FLEX_found=false | |
17021 | # Loop through the user's path and test for each of PROGNAME-LIST | |
17022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47aaa820 DWT |
17023 | for as_dir in $PATH |
17024 | do | |
17025 | IFS=$as_save_IFS | |
17026 | test -z "$as_dir" && as_dir=. | |
a243b558 | 17027 | for ac_prog in flex; do |
47aaa820 | 17028 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
17029 | ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext" |
17030 | as_fn_executable_p "$ac_path_FLEX" || continue | |
17031 | version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'` | |
17032 | if ${version:+false} :; then : | |
9c60689e | 17033 | |
47aaa820 | 17034 | else |
a243b558 JF |
17035 | as_arg_v1=$version |
17036 | as_arg_v2=2.5.33 | |
17037 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
17038 | case $? in #( | |
17039 | 1) : | |
17040 | ;; #( | |
17041 | 0) : | |
17042 | ac_cv_path_FLEX=$ac_path_FLEX ;; #( | |
17043 | 2) : | |
17044 | ac_cv_path_FLEX=$ac_path_FLEX ;; #( | |
17045 | *) : | |
17046 | ;; | |
17047 | esac | |
17048 | fi | |
17049 | ||
17050 | $ac_path_FLEX_found && break 3 | |
17051 | done | |
17052 | done | |
17053 | done | |
17054 | IFS=$as_save_IFS | |
17055 | if test -z "$ac_cv_path_FLEX"; then | |
17056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
47aaa820 | 17057 | $as_echo "no" >&6; } |
a243b558 JF |
17058 | fi |
17059 | else | |
17060 | ac_cv_path_FLEX=$FLEX | |
9c60689e DWT |
17061 | fi |
17062 | ||
17063 | ||
a243b558 | 17064 | if true; then : |
e9c9a47c | 17065 | |
a243b558 | 17066 | FLEX=$ac_cv_path_FLEX |
e9c9a47c | 17067 | |
a243b558 JF |
17068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
17069 | $as_echo "$FLEX" >&6; } | |
9c60689e | 17070 | |
632b71ea | 17071 | else |
a243b558 | 17072 | if true; then : |
e9c9a47c | 17073 | |
a243b558 | 17074 | as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5 |
e9c9a47c | 17075 | |
e9c9a47c | 17076 | else |
a243b558 JF |
17077 | |
17078 | FLEX=: | |
17079 | ||
17080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17081 | $as_echo "no" >&6; } | |
9c60689e | 17082 | |
632b71ea | 17083 | fi |
a243b558 JF |
17084 | fi |
17085 | ||
17086 | ||
17087 | ||
17088 | ||
17089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5 | |
17090 | $as_echo_n "checking for gperf >= 3.0.3... " >&6; } | |
17091 | if test -z "$GPERF"; then | |
17092 | ac_path_GPERF_found=false | |
17093 | # Loop through the user's path and test for each of PROGNAME-LIST | |
17094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17095 | for as_dir in $PATH | |
17096 | do | |
17097 | IFS=$as_save_IFS | |
17098 | test -z "$as_dir" && as_dir=. | |
17099 | for ac_prog in gperf; do | |
17100 | for ac_exec_ext in '' $ac_executable_extensions; do | |
17101 | ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext" | |
17102 | as_fn_executable_p "$ac_path_GPERF" || continue | |
17103 | version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'` | |
17104 | if ${version:+false} :; then : | |
17105 | ||
e9c9a47c | 17106 | else |
a243b558 JF |
17107 | as_arg_v1=$version |
17108 | as_arg_v2=3.0.3 | |
17109 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
17110 | case $? in #( | |
17111 | 1) : | |
17112 | ;; #( | |
17113 | 0) : | |
17114 | ac_cv_path_GPERF=$ac_path_GPERF ;; #( | |
17115 | 2) : | |
17116 | ac_cv_path_GPERF=$ac_path_GPERF ;; #( | |
17117 | *) : | |
17118 | ;; | |
17119 | esac | |
632b71ea | 17120 | fi |
a243b558 JF |
17121 | |
17122 | $ac_path_GPERF_found && break 3 | |
17123 | done | |
17124 | done | |
17125 | done | |
17126 | IFS=$as_save_IFS | |
17127 | if test -z "$ac_cv_path_GPERF"; then | |
17128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17129 | $as_echo "no" >&6; } | |
17130 | fi | |
47aaa820 | 17131 | else |
a243b558 JF |
17132 | ac_cv_path_GPERF=$GPERF |
17133 | fi | |
9c60689e DWT |
17134 | |
17135 | ||
a243b558 | 17136 | if true; then : |
9c60689e | 17137 | |
a243b558 | 17138 | GPERF=$ac_cv_path_GPERF |
9c60689e | 17139 | |
a243b558 JF |
17140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5 |
17141 | $as_echo "$GPERF" >&6; } | |
9c60689e | 17142 | |
47aaa820 | 17143 | else |
a243b558 | 17144 | if true; then : |
9c60689e | 17145 | |
a243b558 JF |
17146 | as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5 |
17147 | ||
17148 | else | |
17149 | ||
17150 | GPERF=: | |
17151 | ||
17152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17153 | $as_echo "no" >&6; } | |
9c60689e | 17154 | |
47aaa820 | 17155 | fi |
47aaa820 | 17156 | fi |
a243b558 JF |
17157 | |
17158 | ||
17159 | ||
17160 | ||
17161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5 | |
17162 | $as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; } | |
17163 | if test -z "$GNUTAR"; then | |
17164 | ac_path_GNUTAR_found=false | |
17165 | # Loop through the user's path and test for each of PROGNAME-LIST | |
17166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17167 | for as_dir in $PATH | |
17168 | do | |
17169 | IFS=$as_save_IFS | |
17170 | test -z "$as_dir" && as_dir=. | |
17171 | for ac_prog in tar gtar gnutar; do | |
17172 | for ac_exec_ext in '' $ac_executable_extensions; do | |
17173 | ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext" | |
17174 | as_fn_executable_p "$ac_path_GNUTAR" || continue | |
17175 | version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'` | |
17176 | if ${version:+false} :; then : | |
17177 | ||
17178 | else | |
17179 | as_arg_v1=$version | |
17180 | as_arg_v2=1.19 | |
17181 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
17182 | case $? in #( | |
17183 | 1) : | |
17184 | ;; #( | |
17185 | 0) : | |
17186 | ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #( | |
17187 | 2) : | |
17188 | ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #( | |
17189 | *) : | |
17190 | ;; | |
17191 | esac | |
790e5246 | 17192 | fi |
a243b558 JF |
17193 | |
17194 | $ac_path_GNUTAR_found && break 3 | |
17195 | done | |
17196 | done | |
17197 | done | |
17198 | IFS=$as_save_IFS | |
17199 | if test -z "$ac_cv_path_GNUTAR"; then | |
17200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17201 | $as_echo "no" >&6; } | |
632b71ea | 17202 | fi |
632b71ea | 17203 | else |
a243b558 | 17204 | ac_cv_path_GNUTAR=$GNUTAR |
632b71ea | 17205 | fi |
66170b30 | 17206 | |
66170b30 | 17207 | |
a243b558 | 17208 | if true; then : |
66170b30 | 17209 | |
a243b558 | 17210 | GNUTAR=$ac_cv_path_GNUTAR |
66170b30 | 17211 | |
a243b558 JF |
17212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5 |
17213 | $as_echo "$GNUTAR" >&6; } | |
66170b30 | 17214 | |
a243b558 JF |
17215 | else |
17216 | if true; then : | |
66170b30 | 17217 | |
a243b558 | 17218 | as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5 |
66170b30 | 17219 | |
66170b30 | 17220 | else |
66170b30 | 17221 | |
a243b558 | 17222 | GNUTAR=: |
66170b30 | 17223 | |
a243b558 JF |
17224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17225 | $as_echo "no" >&6; } | |
66170b30 | 17226 | |
a243b558 JF |
17227 | fi |
17228 | fi | |
66170b30 JF |
17229 | |
17230 | ||
17231 | ||
17232 | ||
17233 | ||
17234 | ||
17235 | ||
77578fdd JF |
17236 | if test "x$LFLAGS" = x; then : |
17237 | LFLAGS="--full --ecs" | |
17238 | fi | |
17239 | ||
17240 | ||
66170b30 JF |
17241 | |
17242 | ||
17243 | ||
e9c9a47c DWT |
17244 | ac_ext=c |
17245 | ac_cpp='$CPP $CPPFLAGS' | |
17246 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17247 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17248 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
632b71ea | 17249 | |
66170b30 JF |
17250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5 |
17251 | $as_echo_n "checking CFLAGS for maximum warnings... " >&6; } | |
17252 | if ${ac_cv_cflags_warn_all+:} false; then : | |
17253 | $as_echo_n "(cached) " >&6 | |
17254 | else | |
17255 | ac_cv_cflags_warn_all="no, unknown" | |
17256 | ac_save_CFLAGS="$CFLAGS" | |
17257 | for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" # | |
17258 | do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | |
17259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17260 | /* end confdefs.h. */ | |
17261 | ||
17262 | int | |
17263 | main () | |
17264 | { | |
17265 | ||
17266 | ; | |
17267 | return 0; | |
17268 | } | |
17269 | _ACEOF | |
17270 | if ac_fn_c_try_compile "$LINENO"; then : | |
17271 | ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | |
17272 | fi | |
17273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17274 | done | |
17275 | CFLAGS="$ac_save_CFLAGS" | |
17276 | ||
17277 | fi | |
17278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5 | |
17279 | $as_echo "$ac_cv_cflags_warn_all" >&6; } | |
17280 | ||
83c6fec8 | 17281 | |
66170b30 JF |
17282 | case ".$ac_cv_cflags_warn_all" in |
17283 | .ok|.ok,*) ;; | |
17284 | .|.no|.no,*) ;; | |
17285 | *) if ${CFLAGS+:} false; then : | |
17286 | case " $CFLAGS " in | |
17287 | *" $ac_cv_cflags_warn_all "*) | |
17288 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5 | |
17289 | (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5 | |
17290 | ac_status=$? | |
17291 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17292 | test $ac_status = 0; } | |
17293 | ;; | |
17294 | *) | |
17295 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5 | |
17296 | (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5 | |
17297 | ac_status=$? | |
17298 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17299 | test $ac_status = 0; } | |
17300 | CFLAGS="$CFLAGS $ac_cv_cflags_warn_all" | |
17301 | ;; | |
17302 | esac | |
17303 | else | |
17304 | CFLAGS="$ac_cv_cflags_warn_all" | |
17305 | fi | |
17306 | ;; | |
17307 | esac | |
17308 | ||
b816329d JF |
17309 | ac_ext=cpp |
17310 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17311 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17312 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17313 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17314 | ||
9c60689e | 17315 | |
66170b30 JF |
17316 | ac_ext=cpp |
17317 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17318 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17319 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17320 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
1504c9b8 | 17321 | |
66170b30 JF |
17322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5 |
17323 | $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; } | |
17324 | if ${ac_cv_cxxflags_warn_all+:} false; then : | |
17325 | $as_echo_n "(cached) " >&6 | |
17326 | else | |
17327 | ac_cv_cxxflags_warn_all="no, unknown" | |
17328 | ac_save_CXXFLAGS="$CXXFLAGS" | |
17329 | for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" # | |
17330 | do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | |
17331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17332 | /* end confdefs.h. */ | |
1504c9b8 | 17333 | |
66170b30 JF |
17334 | int |
17335 | main () | |
17336 | { | |
1504c9b8 | 17337 | |
66170b30 JF |
17338 | ; |
17339 | return 0; | |
17340 | } | |
17341 | _ACEOF | |
17342 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
17343 | ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | |
17344 | fi | |
17345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17346 | done | |
17347 | CXXFLAGS="$ac_save_CXXFLAGS" | |
1504c9b8 | 17348 | |
66170b30 JF |
17349 | fi |
17350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5 | |
17351 | $as_echo "$ac_cv_cxxflags_warn_all" >&6; } | |
17352 | ||
83c6fec8 | 17353 | |
66170b30 JF |
17354 | case ".$ac_cv_cxxflags_warn_all" in |
17355 | .ok|.ok,*) ;; | |
17356 | .|.no|.no,*) ;; | |
17357 | *) if ${CXXFLAGS+:} false; then : | |
17358 | case " $CXXFLAGS " in | |
17359 | *" $ac_cv_cxxflags_warn_all "*) | |
17360 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5 | |
17361 | (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5 | |
17362 | ac_status=$? | |
17363 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17364 | test $ac_status = 0; } | |
17365 | ;; | |
17366 | *) | |
17367 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5 | |
17368 | (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5 | |
17369 | ac_status=$? | |
17370 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17371 | test $ac_status = 0; } | |
17372 | CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all" | |
17373 | ;; | |
17374 | esac | |
17375 | else | |
17376 | CXXFLAGS="$ac_cv_cxxflags_warn_all" | |
17377 | fi | |
17378 | ;; | |
17379 | esac | |
17380 | ||
17381 | ac_ext=cpp | |
17382 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17383 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17384 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17385 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17386 | ||
17387 | ||
babf7fe8 JF |
17388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5 |
17389 | $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; } | |
17390 | if ${ac_cv_cxxflags_warn_all+:} false; then : | |
17391 | $as_echo_n "(cached) " >&6 | |
17392 | else | |
17393 | ac_cv_cxxflags_warn_all="no, unknown" | |
17394 | ac_save_CXXFLAGS="$CXXFLAGS" | |
17395 | for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" # | |
17396 | do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | |
17397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17398 | /* end confdefs.h. */ | |
17399 | ||
17400 | int | |
17401 | main () | |
17402 | { | |
17403 | ||
17404 | ; | |
17405 | return 0; | |
17406 | } | |
17407 | _ACEOF | |
17408 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
17409 | ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | |
17410 | fi | |
17411 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17412 | done | |
17413 | CXXFLAGS="$ac_save_CXXFLAGS" | |
17414 | ||
17415 | fi | |
17416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5 | |
17417 | $as_echo "$ac_cv_cxxflags_warn_all" >&6; } | |
17418 | ||
83c6fec8 | 17419 | |
babf7fe8 JF |
17420 | case ".$ac_cv_cxxflags_warn_all" in |
17421 | .ok|.ok,*) ;; | |
17422 | .|.no|.no,*) ;; | |
17423 | *) if ${CXXFLAGS+:} false; then : | |
17424 | case " $CXXFLAGS " in | |
17425 | *" $ac_cv_cxxflags_warn_all "*) | |
17426 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5 | |
17427 | (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5 | |
17428 | ac_status=$? | |
17429 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17430 | test $ac_status = 0; } | |
17431 | ;; | |
17432 | *) | |
17433 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5 | |
17434 | (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5 | |
17435 | ac_status=$? | |
17436 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17437 | test $ac_status = 0; } | |
17438 | CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all" | |
17439 | ;; | |
17440 | esac | |
17441 | else | |
17442 | CXXFLAGS="$ac_cv_cxxflags_warn_all" | |
17443 | fi | |
17444 | ;; | |
17445 | esac | |
17446 | ||
66170b30 JF |
17447 | |
17448 | ||
66170b30 | 17449 | |
66170b30 | 17450 | |
c10a2228 JF |
17451 | ac_ext=c |
17452 | ac_cpp='$CPP $CPPFLAGS' | |
17453 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17454 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17455 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17456 | ||
babf7fe8 JF |
17457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5 |
17458 | $as_echo_n "checking for cc -Werror... " >&6; } | |
c10a2228 JF |
17459 | |
17460 | cy_save=$CFLAGS | |
17461 | ||
babf7fe8 | 17462 | for element in -Werror; do |
c10a2228 JF |
17463 | haveit= |
17464 | for x in $CFLAGS; do | |
17465 | ||
17466 | acl_save_prefix="$prefix" | |
17467 | prefix="$acl_final_prefix" | |
17468 | acl_save_exec_prefix="$exec_prefix" | |
17469 | exec_prefix="$acl_final_exec_prefix" | |
17470 | eval x=\"$x\" | |
17471 | exec_prefix="$acl_save_exec_prefix" | |
17472 | prefix="$acl_save_prefix" | |
17473 | ||
17474 | if test "X$x" = "X$element"; then | |
17475 | haveit=yes | |
17476 | break | |
17477 | fi | |
17478 | done | |
17479 | if test -z "$haveit"; then | |
17480 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
17481 | fi | |
17482 | done | |
17483 | ||
17484 | ||
17485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17486 | /* end confdefs.h. */ | |
17487 | ||
17488 | _ACEOF | |
17489 | if ac_fn_c_try_compile "$LINENO"; then : | |
17490 | cy_good=1 | |
17491 | else | |
17492 | cy_good=0 | |
17493 | fi | |
17494 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17495 | ||
17496 | CFLAGS=$cy_save | |
17497 | if test "x$cy_good" = x1; then : | |
17498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17499 | $as_echo "yes" >&6; } | |
17500 | ||
babf7fe8 | 17501 | for element in -Werror; do |
c10a2228 JF |
17502 | haveit= |
17503 | for x in $CFLAGS; do | |
17504 | ||
17505 | acl_save_prefix="$prefix" | |
17506 | prefix="$acl_final_prefix" | |
17507 | acl_save_exec_prefix="$exec_prefix" | |
17508 | exec_prefix="$acl_final_exec_prefix" | |
17509 | eval x=\"$x\" | |
17510 | exec_prefix="$acl_save_exec_prefix" | |
17511 | prefix="$acl_save_prefix" | |
17512 | ||
17513 | if test "X$x" = "X$element"; then | |
17514 | haveit=yes | |
17515 | break | |
17516 | fi | |
17517 | done | |
17518 | if test -z "$haveit"; then | |
17519 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
17520 | fi | |
17521 | done | |
17522 | ||
17523 | ||
17524 | else | |
17525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17526 | $as_echo "no" >&6; } | |
17527 | fi | |
17528 | ||
17529 | ac_ext=cpp | |
17530 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17531 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17532 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17533 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17534 | ||
17535 | ||
17536 | ||
17537 | ac_ext=cpp | |
17538 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17539 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17540 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17541 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17542 | ||
babf7fe8 JF |
17543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5 |
17544 | $as_echo_n "checking for c++ -Werror... " >&6; } | |
c10a2228 JF |
17545 | |
17546 | cy_save=$CXXFLAGS | |
17547 | ||
babf7fe8 | 17548 | for element in -Werror; do |
c10a2228 JF |
17549 | haveit= |
17550 | for x in $CXXFLAGS; do | |
17551 | ||
17552 | acl_save_prefix="$prefix" | |
17553 | prefix="$acl_final_prefix" | |
17554 | acl_save_exec_prefix="$exec_prefix" | |
17555 | exec_prefix="$acl_final_exec_prefix" | |
17556 | eval x=\"$x\" | |
17557 | exec_prefix="$acl_save_exec_prefix" | |
17558 | prefix="$acl_save_prefix" | |
17559 | ||
17560 | if test "X$x" = "X$element"; then | |
17561 | haveit=yes | |
17562 | break | |
17563 | fi | |
17564 | done | |
17565 | if test -z "$haveit"; then | |
17566 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17567 | fi | |
17568 | done | |
17569 | ||
17570 | ||
17571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17572 | /* end confdefs.h. */ | |
17573 | ||
17574 | _ACEOF | |
17575 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
17576 | cy_good=1 | |
17577 | else | |
17578 | cy_good=0 | |
17579 | fi | |
17580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17581 | ||
17582 | CXXFLAGS=$cy_save | |
17583 | if test "x$cy_good" = x1; then : | |
17584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17585 | $as_echo "yes" >&6; } | |
17586 | ||
babf7fe8 | 17587 | for element in -Werror; do |
c10a2228 JF |
17588 | haveit= |
17589 | for x in $CXXFLAGS; do | |
17590 | ||
17591 | acl_save_prefix="$prefix" | |
17592 | prefix="$acl_final_prefix" | |
17593 | acl_save_exec_prefix="$exec_prefix" | |
17594 | exec_prefix="$acl_final_exec_prefix" | |
17595 | eval x=\"$x\" | |
17596 | exec_prefix="$acl_save_exec_prefix" | |
17597 | prefix="$acl_save_prefix" | |
17598 | ||
17599 | if test "X$x" = "X$element"; then | |
17600 | haveit=yes | |
17601 | break | |
17602 | fi | |
17603 | done | |
17604 | if test -z "$haveit"; then | |
17605 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17606 | fi | |
17607 | done | |
17608 | ||
17609 | ||
17610 | else | |
17611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17612 | $as_echo "no" >&6; } | |
17613 | fi | |
17614 | ||
17615 | ac_ext=cpp | |
17616 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17617 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17618 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17619 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17620 | ||
17621 | ||
17622 | ||
17623 | ac_ext=mm | |
17624 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
17625 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17626 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17627 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
17628 | ||
babf7fe8 JF |
17629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5 |
17630 | $as_echo_n "checking for c++ -ObjC -Werror... " >&6; } | |
c10a2228 JF |
17631 | |
17632 | cy_save=$OBJCXXFLAGS | |
17633 | ||
babf7fe8 | 17634 | for element in -Werror; do |
c10a2228 JF |
17635 | haveit= |
17636 | for x in $OBJCXXFLAGS; do | |
17637 | ||
17638 | acl_save_prefix="$prefix" | |
17639 | prefix="$acl_final_prefix" | |
17640 | acl_save_exec_prefix="$exec_prefix" | |
17641 | exec_prefix="$acl_final_exec_prefix" | |
17642 | eval x=\"$x\" | |
17643 | exec_prefix="$acl_save_exec_prefix" | |
17644 | prefix="$acl_save_prefix" | |
17645 | ||
17646 | if test "X$x" = "X$element"; then | |
17647 | haveit=yes | |
17648 | break | |
17649 | fi | |
17650 | done | |
17651 | if test -z "$haveit"; then | |
17652 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
17653 | fi | |
17654 | done | |
17655 | ||
17656 | ||
17657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17658 | /* end confdefs.h. */ | |
17659 | ||
17660 | _ACEOF | |
17661 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
17662 | cy_good=1 | |
17663 | else | |
17664 | cy_good=0 | |
17665 | fi | |
17666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17667 | ||
17668 | OBJCXXFLAGS=$cy_save | |
17669 | if test "x$cy_good" = x1; then : | |
17670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17671 | $as_echo "yes" >&6; } | |
17672 | ||
babf7fe8 | 17673 | for element in -Werror; do |
c10a2228 JF |
17674 | haveit= |
17675 | for x in $OBJCXXFLAGS; do | |
17676 | ||
17677 | acl_save_prefix="$prefix" | |
17678 | prefix="$acl_final_prefix" | |
17679 | acl_save_exec_prefix="$exec_prefix" | |
17680 | exec_prefix="$acl_final_exec_prefix" | |
17681 | eval x=\"$x\" | |
17682 | exec_prefix="$acl_save_exec_prefix" | |
17683 | prefix="$acl_save_prefix" | |
17684 | ||
17685 | if test "X$x" = "X$element"; then | |
17686 | haveit=yes | |
17687 | break | |
17688 | fi | |
17689 | done | |
17690 | if test -z "$haveit"; then | |
17691 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
17692 | fi | |
17693 | done | |
17694 | ||
17695 | ||
17696 | else | |
17697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17698 | $as_echo "no" >&6; } | |
17699 | fi | |
17700 | ||
17701 | ac_ext=cpp | |
17702 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17703 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17704 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17705 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17706 | ||
17707 | ||
17708 | ||
17709 | ||
17710 | ||
17711 | ||
17712 | ac_ext=c | |
17713 | ac_cpp='$CPP $CPPFLAGS' | |
17714 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17715 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17716 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17717 | ||
babf7fe8 JF |
17718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5 |
17719 | $as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; } | |
c10a2228 JF |
17720 | |
17721 | cy_save=$CFLAGS | |
17722 | ||
babf7fe8 | 17723 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
17724 | haveit= |
17725 | for x in $CFLAGS; do | |
17726 | ||
17727 | acl_save_prefix="$prefix" | |
17728 | prefix="$acl_final_prefix" | |
17729 | acl_save_exec_prefix="$exec_prefix" | |
17730 | exec_prefix="$acl_final_exec_prefix" | |
17731 | eval x=\"$x\" | |
17732 | exec_prefix="$acl_save_exec_prefix" | |
17733 | prefix="$acl_save_prefix" | |
17734 | ||
17735 | if test "X$x" = "X$element"; then | |
17736 | haveit=yes | |
17737 | break | |
17738 | fi | |
17739 | done | |
17740 | if test -z "$haveit"; then | |
17741 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
17742 | fi | |
17743 | done | |
17744 | ||
17745 | ||
17746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17747 | /* end confdefs.h. */ | |
17748 | ||
17749 | _ACEOF | |
17750 | if ac_fn_c_try_compile "$LINENO"; then : | |
17751 | cy_good=1 | |
17752 | else | |
17753 | cy_good=0 | |
17754 | fi | |
17755 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17756 | ||
17757 | CFLAGS=$cy_save | |
17758 | if test "x$cy_good" = x1; then : | |
17759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17760 | $as_echo "yes" >&6; } | |
17761 | ||
babf7fe8 | 17762 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
17763 | haveit= |
17764 | for x in $CFLAGS; do | |
17765 | ||
17766 | acl_save_prefix="$prefix" | |
17767 | prefix="$acl_final_prefix" | |
17768 | acl_save_exec_prefix="$exec_prefix" | |
17769 | exec_prefix="$acl_final_exec_prefix" | |
17770 | eval x=\"$x\" | |
17771 | exec_prefix="$acl_save_exec_prefix" | |
17772 | prefix="$acl_save_prefix" | |
17773 | ||
17774 | if test "X$x" = "X$element"; then | |
17775 | haveit=yes | |
17776 | break | |
17777 | fi | |
17778 | done | |
17779 | if test -z "$haveit"; then | |
17780 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
17781 | fi | |
17782 | done | |
17783 | ||
17784 | ||
17785 | else | |
17786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17787 | $as_echo "no" >&6; } | |
17788 | fi | |
17789 | ||
17790 | ac_ext=cpp | |
17791 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17792 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17793 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17794 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17795 | ||
17796 | ||
17797 | ||
17798 | ac_ext=cpp | |
17799 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17800 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17801 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17802 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17803 | ||
babf7fe8 JF |
17804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5 |
17805 | $as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; } | |
c10a2228 JF |
17806 | |
17807 | cy_save=$CXXFLAGS | |
17808 | ||
babf7fe8 | 17809 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
17810 | haveit= |
17811 | for x in $CXXFLAGS; do | |
17812 | ||
17813 | acl_save_prefix="$prefix" | |
17814 | prefix="$acl_final_prefix" | |
17815 | acl_save_exec_prefix="$exec_prefix" | |
17816 | exec_prefix="$acl_final_exec_prefix" | |
17817 | eval x=\"$x\" | |
17818 | exec_prefix="$acl_save_exec_prefix" | |
17819 | prefix="$acl_save_prefix" | |
17820 | ||
17821 | if test "X$x" = "X$element"; then | |
17822 | haveit=yes | |
17823 | break | |
17824 | fi | |
17825 | done | |
17826 | if test -z "$haveit"; then | |
17827 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17828 | fi | |
17829 | done | |
17830 | ||
17831 | ||
17832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17833 | /* end confdefs.h. */ | |
17834 | ||
17835 | _ACEOF | |
17836 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
17837 | cy_good=1 | |
17838 | else | |
17839 | cy_good=0 | |
17840 | fi | |
17841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17842 | ||
17843 | CXXFLAGS=$cy_save | |
17844 | if test "x$cy_good" = x1; then : | |
17845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17846 | $as_echo "yes" >&6; } | |
17847 | ||
babf7fe8 | 17848 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
17849 | haveit= |
17850 | for x in $CXXFLAGS; do | |
17851 | ||
17852 | acl_save_prefix="$prefix" | |
17853 | prefix="$acl_final_prefix" | |
17854 | acl_save_exec_prefix="$exec_prefix" | |
17855 | exec_prefix="$acl_final_exec_prefix" | |
17856 | eval x=\"$x\" | |
17857 | exec_prefix="$acl_save_exec_prefix" | |
17858 | prefix="$acl_save_prefix" | |
17859 | ||
17860 | if test "X$x" = "X$element"; then | |
17861 | haveit=yes | |
17862 | break | |
17863 | fi | |
17864 | done | |
17865 | if test -z "$haveit"; then | |
17866 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17867 | fi | |
17868 | done | |
17869 | ||
17870 | ||
17871 | else | |
17872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17873 | $as_echo "no" >&6; } | |
17874 | fi | |
17875 | ||
17876 | ac_ext=cpp | |
17877 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17878 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17879 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17880 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17881 | ||
17882 | ||
17883 | ||
17884 | ac_ext=mm | |
17885 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
17886 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17887 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17888 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
17889 | ||
babf7fe8 JF |
17890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5 |
17891 | $as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; } | |
c10a2228 JF |
17892 | |
17893 | cy_save=$OBJCXXFLAGS | |
17894 | ||
babf7fe8 | 17895 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
17896 | haveit= |
17897 | for x in $OBJCXXFLAGS; do | |
17898 | ||
17899 | acl_save_prefix="$prefix" | |
17900 | prefix="$acl_final_prefix" | |
17901 | acl_save_exec_prefix="$exec_prefix" | |
17902 | exec_prefix="$acl_final_exec_prefix" | |
17903 | eval x=\"$x\" | |
17904 | exec_prefix="$acl_save_exec_prefix" | |
17905 | prefix="$acl_save_prefix" | |
17906 | ||
17907 | if test "X$x" = "X$element"; then | |
17908 | haveit=yes | |
17909 | break | |
17910 | fi | |
17911 | done | |
17912 | if test -z "$haveit"; then | |
17913 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
17914 | fi | |
17915 | done | |
17916 | ||
17917 | ||
17918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17919 | /* end confdefs.h. */ | |
17920 | ||
17921 | _ACEOF | |
17922 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
17923 | cy_good=1 | |
17924 | else | |
17925 | cy_good=0 | |
17926 | fi | |
17927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17928 | ||
17929 | OBJCXXFLAGS=$cy_save | |
17930 | if test "x$cy_good" = x1; then : | |
17931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17932 | $as_echo "yes" >&6; } | |
17933 | ||
babf7fe8 | 17934 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
17935 | haveit= |
17936 | for x in $OBJCXXFLAGS; do | |
17937 | ||
17938 | acl_save_prefix="$prefix" | |
17939 | prefix="$acl_final_prefix" | |
17940 | acl_save_exec_prefix="$exec_prefix" | |
17941 | exec_prefix="$acl_final_exec_prefix" | |
17942 | eval x=\"$x\" | |
17943 | exec_prefix="$acl_save_exec_prefix" | |
17944 | prefix="$acl_save_prefix" | |
17945 | ||
17946 | if test "X$x" = "X$element"; then | |
17947 | haveit=yes | |
17948 | break | |
17949 | fi | |
17950 | done | |
17951 | if test -z "$haveit"; then | |
17952 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
17953 | fi | |
17954 | done | |
17955 | ||
17956 | ||
17957 | else | |
17958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17959 | $as_echo "no" >&6; } | |
17960 | fi | |
17961 | ||
17962 | ac_ext=cpp | |
17963 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17964 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17965 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17966 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17967 | ||
17968 | ||
17969 | ||
17970 | ||
17971 | ||
babf7fe8 | 17972 | |
c10a2228 JF |
17973 | ac_ext=c |
17974 | ac_cpp='$CPP $CPPFLAGS' | |
17975 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17976 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17977 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17978 | ||
babf7fe8 JF |
17979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5 |
17980 | $as_echo_n "checking for cc -Wno-dangling-else... " >&6; } | |
c10a2228 JF |
17981 | |
17982 | cy_save=$CFLAGS | |
17983 | ||
babf7fe8 | 17984 | for element in -Wno-dangling-else; do |
c10a2228 JF |
17985 | haveit= |
17986 | for x in $CFLAGS; do | |
17987 | ||
17988 | acl_save_prefix="$prefix" | |
17989 | prefix="$acl_final_prefix" | |
17990 | acl_save_exec_prefix="$exec_prefix" | |
17991 | exec_prefix="$acl_final_exec_prefix" | |
17992 | eval x=\"$x\" | |
17993 | exec_prefix="$acl_save_exec_prefix" | |
17994 | prefix="$acl_save_prefix" | |
17995 | ||
17996 | if test "X$x" = "X$element"; then | |
17997 | haveit=yes | |
17998 | break | |
17999 | fi | |
18000 | done | |
18001 | if test -z "$haveit"; then | |
18002 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
18003 | fi | |
18004 | done | |
18005 | ||
18006 | ||
18007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18008 | /* end confdefs.h. */ | |
18009 | ||
18010 | _ACEOF | |
18011 | if ac_fn_c_try_compile "$LINENO"; then : | |
18012 | cy_good=1 | |
18013 | else | |
18014 | cy_good=0 | |
18015 | fi | |
18016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18017 | ||
18018 | CFLAGS=$cy_save | |
18019 | if test "x$cy_good" = x1; then : | |
18020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18021 | $as_echo "yes" >&6; } | |
18022 | ||
babf7fe8 | 18023 | for element in -Wno-dangling-else; do |
c10a2228 JF |
18024 | haveit= |
18025 | for x in $CFLAGS; do | |
18026 | ||
18027 | acl_save_prefix="$prefix" | |
18028 | prefix="$acl_final_prefix" | |
18029 | acl_save_exec_prefix="$exec_prefix" | |
18030 | exec_prefix="$acl_final_exec_prefix" | |
18031 | eval x=\"$x\" | |
18032 | exec_prefix="$acl_save_exec_prefix" | |
18033 | prefix="$acl_save_prefix" | |
18034 | ||
18035 | if test "X$x" = "X$element"; then | |
18036 | haveit=yes | |
18037 | break | |
18038 | fi | |
18039 | done | |
18040 | if test -z "$haveit"; then | |
18041 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
18042 | fi | |
18043 | done | |
18044 | ||
18045 | ||
18046 | else | |
18047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18048 | $as_echo "no" >&6; } | |
18049 | fi | |
18050 | ||
18051 | ac_ext=cpp | |
18052 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18053 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18054 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18055 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18056 | ||
18057 | ||
18058 | ||
18059 | ac_ext=cpp | |
18060 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18061 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18062 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18063 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18064 | ||
babf7fe8 JF |
18065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5 |
18066 | $as_echo_n "checking for c++ -Wno-dangling-else... " >&6; } | |
c10a2228 JF |
18067 | |
18068 | cy_save=$CXXFLAGS | |
18069 | ||
babf7fe8 | 18070 | for element in -Wno-dangling-else; do |
c10a2228 JF |
18071 | haveit= |
18072 | for x in $CXXFLAGS; do | |
18073 | ||
18074 | acl_save_prefix="$prefix" | |
18075 | prefix="$acl_final_prefix" | |
18076 | acl_save_exec_prefix="$exec_prefix" | |
18077 | exec_prefix="$acl_final_exec_prefix" | |
18078 | eval x=\"$x\" | |
18079 | exec_prefix="$acl_save_exec_prefix" | |
18080 | prefix="$acl_save_prefix" | |
18081 | ||
18082 | if test "X$x" = "X$element"; then | |
18083 | haveit=yes | |
18084 | break | |
18085 | fi | |
18086 | done | |
18087 | if test -z "$haveit"; then | |
18088 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
18089 | fi | |
18090 | done | |
18091 | ||
18092 | ||
18093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18094 | /* end confdefs.h. */ | |
18095 | ||
18096 | _ACEOF | |
18097 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
18098 | cy_good=1 | |
18099 | else | |
18100 | cy_good=0 | |
18101 | fi | |
18102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18103 | ||
18104 | CXXFLAGS=$cy_save | |
18105 | if test "x$cy_good" = x1; then : | |
18106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18107 | $as_echo "yes" >&6; } | |
18108 | ||
babf7fe8 | 18109 | for element in -Wno-dangling-else; do |
c10a2228 JF |
18110 | haveit= |
18111 | for x in $CXXFLAGS; do | |
18112 | ||
18113 | acl_save_prefix="$prefix" | |
18114 | prefix="$acl_final_prefix" | |
18115 | acl_save_exec_prefix="$exec_prefix" | |
18116 | exec_prefix="$acl_final_exec_prefix" | |
18117 | eval x=\"$x\" | |
18118 | exec_prefix="$acl_save_exec_prefix" | |
18119 | prefix="$acl_save_prefix" | |
18120 | ||
18121 | if test "X$x" = "X$element"; then | |
18122 | haveit=yes | |
18123 | break | |
18124 | fi | |
18125 | done | |
18126 | if test -z "$haveit"; then | |
18127 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
18128 | fi | |
18129 | done | |
18130 | ||
18131 | ||
18132 | else | |
18133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18134 | $as_echo "no" >&6; } | |
18135 | fi | |
18136 | ||
18137 | ac_ext=cpp | |
18138 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18139 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18140 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18141 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18142 | ||
18143 | ||
18144 | ||
18145 | ac_ext=mm | |
18146 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
18147 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18148 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18149 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
18150 | ||
babf7fe8 JF |
18151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5 |
18152 | $as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; } | |
c10a2228 JF |
18153 | |
18154 | cy_save=$OBJCXXFLAGS | |
18155 | ||
babf7fe8 | 18156 | for element in -Wno-dangling-else; do |
c10a2228 JF |
18157 | haveit= |
18158 | for x in $OBJCXXFLAGS; do | |
18159 | ||
18160 | acl_save_prefix="$prefix" | |
18161 | prefix="$acl_final_prefix" | |
18162 | acl_save_exec_prefix="$exec_prefix" | |
18163 | exec_prefix="$acl_final_exec_prefix" | |
18164 | eval x=\"$x\" | |
18165 | exec_prefix="$acl_save_exec_prefix" | |
18166 | prefix="$acl_save_prefix" | |
18167 | ||
18168 | if test "X$x" = "X$element"; then | |
18169 | haveit=yes | |
18170 | break | |
18171 | fi | |
18172 | done | |
18173 | if test -z "$haveit"; then | |
18174 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
18175 | fi | |
18176 | done | |
18177 | ||
18178 | ||
18179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18180 | /* end confdefs.h. */ | |
18181 | ||
18182 | _ACEOF | |
18183 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
18184 | cy_good=1 | |
18185 | else | |
18186 | cy_good=0 | |
18187 | fi | |
18188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18189 | ||
18190 | OBJCXXFLAGS=$cy_save | |
18191 | if test "x$cy_good" = x1; then : | |
18192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18193 | $as_echo "yes" >&6; } | |
18194 | ||
babf7fe8 | 18195 | for element in -Wno-dangling-else; do |
c10a2228 JF |
18196 | haveit= |
18197 | for x in $OBJCXXFLAGS; do | |
18198 | ||
18199 | acl_save_prefix="$prefix" | |
18200 | prefix="$acl_final_prefix" | |
18201 | acl_save_exec_prefix="$exec_prefix" | |
18202 | exec_prefix="$acl_final_exec_prefix" | |
18203 | eval x=\"$x\" | |
18204 | exec_prefix="$acl_save_exec_prefix" | |
18205 | prefix="$acl_save_prefix" | |
18206 | ||
18207 | if test "X$x" = "X$element"; then | |
18208 | haveit=yes | |
18209 | break | |
18210 | fi | |
18211 | done | |
18212 | if test -z "$haveit"; then | |
18213 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
18214 | fi | |
18215 | done | |
18216 | ||
18217 | ||
18218 | else | |
18219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18220 | $as_echo "no" >&6; } | |
18221 | fi | |
18222 | ||
18223 | ac_ext=cpp | |
18224 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18225 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18226 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18227 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18228 | ||
18229 | ||
18230 | ||
18231 | ||
18232 | ||
2ada0541 JF |
18233 | ac_ext=c |
18234 | ac_cpp='$CPP $CPPFLAGS' | |
18235 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18236 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18237 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18238 | ||
18239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-empty-body" >&5 | |
18240 | $as_echo_n "checking for cc -Wno-empty-body... " >&6; } | |
18241 | ||
18242 | cy_save=$CFLAGS | |
18243 | ||
18244 | for element in -Wno-empty-body; do | |
18245 | haveit= | |
18246 | for x in $CFLAGS; do | |
18247 | ||
18248 | acl_save_prefix="$prefix" | |
18249 | prefix="$acl_final_prefix" | |
18250 | acl_save_exec_prefix="$exec_prefix" | |
18251 | exec_prefix="$acl_final_exec_prefix" | |
18252 | eval x=\"$x\" | |
18253 | exec_prefix="$acl_save_exec_prefix" | |
18254 | prefix="$acl_save_prefix" | |
18255 | ||
18256 | if test "X$x" = "X$element"; then | |
18257 | haveit=yes | |
18258 | break | |
18259 | fi | |
18260 | done | |
18261 | if test -z "$haveit"; then | |
18262 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
18263 | fi | |
18264 | done | |
18265 | ||
18266 | ||
18267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18268 | /* end confdefs.h. */ | |
18269 | ||
18270 | _ACEOF | |
18271 | if ac_fn_c_try_compile "$LINENO"; then : | |
18272 | cy_good=1 | |
18273 | else | |
18274 | cy_good=0 | |
18275 | fi | |
18276 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18277 | ||
18278 | CFLAGS=$cy_save | |
18279 | if test "x$cy_good" = x1; then : | |
18280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18281 | $as_echo "yes" >&6; } | |
18282 | ||
18283 | for element in -Wno-empty-body; do | |
18284 | haveit= | |
18285 | for x in $CFLAGS; do | |
18286 | ||
18287 | acl_save_prefix="$prefix" | |
18288 | prefix="$acl_final_prefix" | |
18289 | acl_save_exec_prefix="$exec_prefix" | |
18290 | exec_prefix="$acl_final_exec_prefix" | |
18291 | eval x=\"$x\" | |
18292 | exec_prefix="$acl_save_exec_prefix" | |
18293 | prefix="$acl_save_prefix" | |
18294 | ||
18295 | if test "X$x" = "X$element"; then | |
18296 | haveit=yes | |
18297 | break | |
18298 | fi | |
18299 | done | |
18300 | if test -z "$haveit"; then | |
18301 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
18302 | fi | |
18303 | done | |
18304 | ||
18305 | ||
18306 | else | |
18307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18308 | $as_echo "no" >&6; } | |
18309 | fi | |
18310 | ||
18311 | ac_ext=cpp | |
18312 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18313 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18314 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18315 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18316 | ||
18317 | ||
18318 | ||
18319 | ac_ext=cpp | |
18320 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18321 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18322 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18323 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18324 | ||
18325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-empty-body" >&5 | |
18326 | $as_echo_n "checking for c++ -Wno-empty-body... " >&6; } | |
18327 | ||
18328 | cy_save=$CXXFLAGS | |
18329 | ||
18330 | for element in -Wno-empty-body; do | |
18331 | haveit= | |
18332 | for x in $CXXFLAGS; do | |
18333 | ||
18334 | acl_save_prefix="$prefix" | |
18335 | prefix="$acl_final_prefix" | |
18336 | acl_save_exec_prefix="$exec_prefix" | |
18337 | exec_prefix="$acl_final_exec_prefix" | |
18338 | eval x=\"$x\" | |
18339 | exec_prefix="$acl_save_exec_prefix" | |
18340 | prefix="$acl_save_prefix" | |
18341 | ||
18342 | if test "X$x" = "X$element"; then | |
18343 | haveit=yes | |
18344 | break | |
18345 | fi | |
18346 | done | |
18347 | if test -z "$haveit"; then | |
18348 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
18349 | fi | |
18350 | done | |
18351 | ||
18352 | ||
18353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18354 | /* end confdefs.h. */ | |
18355 | ||
18356 | _ACEOF | |
18357 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
18358 | cy_good=1 | |
18359 | else | |
18360 | cy_good=0 | |
18361 | fi | |
18362 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18363 | ||
18364 | CXXFLAGS=$cy_save | |
18365 | if test "x$cy_good" = x1; then : | |
18366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18367 | $as_echo "yes" >&6; } | |
18368 | ||
18369 | for element in -Wno-empty-body; do | |
18370 | haveit= | |
18371 | for x in $CXXFLAGS; do | |
18372 | ||
18373 | acl_save_prefix="$prefix" | |
18374 | prefix="$acl_final_prefix" | |
18375 | acl_save_exec_prefix="$exec_prefix" | |
18376 | exec_prefix="$acl_final_exec_prefix" | |
18377 | eval x=\"$x\" | |
18378 | exec_prefix="$acl_save_exec_prefix" | |
18379 | prefix="$acl_save_prefix" | |
18380 | ||
18381 | if test "X$x" = "X$element"; then | |
18382 | haveit=yes | |
18383 | break | |
18384 | fi | |
18385 | done | |
18386 | if test -z "$haveit"; then | |
18387 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
18388 | fi | |
18389 | done | |
18390 | ||
18391 | ||
18392 | else | |
18393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18394 | $as_echo "no" >&6; } | |
18395 | fi | |
18396 | ||
18397 | ac_ext=cpp | |
18398 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18399 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18400 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18401 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18402 | ||
18403 | ||
18404 | ||
18405 | ac_ext=mm | |
18406 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
18407 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18408 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18409 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
18410 | ||
18411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-empty-body" >&5 | |
18412 | $as_echo_n "checking for c++ -ObjC -Wno-empty-body... " >&6; } | |
18413 | ||
18414 | cy_save=$OBJCXXFLAGS | |
18415 | ||
18416 | for element in -Wno-empty-body; do | |
18417 | haveit= | |
18418 | for x in $OBJCXXFLAGS; do | |
18419 | ||
18420 | acl_save_prefix="$prefix" | |
18421 | prefix="$acl_final_prefix" | |
18422 | acl_save_exec_prefix="$exec_prefix" | |
18423 | exec_prefix="$acl_final_exec_prefix" | |
18424 | eval x=\"$x\" | |
18425 | exec_prefix="$acl_save_exec_prefix" | |
18426 | prefix="$acl_save_prefix" | |
18427 | ||
18428 | if test "X$x" = "X$element"; then | |
18429 | haveit=yes | |
18430 | break | |
18431 | fi | |
18432 | done | |
18433 | if test -z "$haveit"; then | |
18434 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
18435 | fi | |
18436 | done | |
18437 | ||
18438 | ||
18439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18440 | /* end confdefs.h. */ | |
18441 | ||
18442 | _ACEOF | |
18443 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
18444 | cy_good=1 | |
18445 | else | |
18446 | cy_good=0 | |
18447 | fi | |
18448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18449 | ||
18450 | OBJCXXFLAGS=$cy_save | |
18451 | if test "x$cy_good" = x1; then : | |
18452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18453 | $as_echo "yes" >&6; } | |
18454 | ||
18455 | for element in -Wno-empty-body; do | |
18456 | haveit= | |
18457 | for x in $OBJCXXFLAGS; do | |
18458 | ||
18459 | acl_save_prefix="$prefix" | |
18460 | prefix="$acl_final_prefix" | |
18461 | acl_save_exec_prefix="$exec_prefix" | |
18462 | exec_prefix="$acl_final_exec_prefix" | |
18463 | eval x=\"$x\" | |
18464 | exec_prefix="$acl_save_exec_prefix" | |
18465 | prefix="$acl_save_prefix" | |
18466 | ||
18467 | if test "X$x" = "X$element"; then | |
18468 | haveit=yes | |
18469 | break | |
18470 | fi | |
18471 | done | |
18472 | if test -z "$haveit"; then | |
18473 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
18474 | fi | |
18475 | done | |
18476 | ||
18477 | ||
18478 | else | |
18479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18480 | $as_echo "no" >&6; } | |
18481 | fi | |
18482 | ||
18483 | ac_ext=cpp | |
18484 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18485 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18486 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18487 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18488 | ||
18489 | ||
18490 | ||
18491 | ||
18492 | ||
c10a2228 JF |
18493 | ac_ext=c |
18494 | ac_cpp='$CPP $CPPFLAGS' | |
18495 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18496 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18497 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18498 | ||
babf7fe8 JF |
18499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5 |
18500 | $as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; } | |
c10a2228 JF |
18501 | |
18502 | cy_save=$CFLAGS | |
18503 | ||
babf7fe8 | 18504 | for element in -Wno-overloaded-virtual; do |
1504c9b8 | 18505 | haveit= |
c10a2228 | 18506 | for x in $CFLAGS; do |
1504c9b8 DWT |
18507 | |
18508 | acl_save_prefix="$prefix" | |
18509 | prefix="$acl_final_prefix" | |
18510 | acl_save_exec_prefix="$exec_prefix" | |
18511 | exec_prefix="$acl_final_exec_prefix" | |
18512 | eval x=\"$x\" | |
18513 | exec_prefix="$acl_save_exec_prefix" | |
18514 | prefix="$acl_save_prefix" | |
18515 | ||
18516 | if test "X$x" = "X$element"; then | |
18517 | haveit=yes | |
18518 | break | |
18519 | fi | |
18520 | done | |
18521 | if test -z "$haveit"; then | |
c10a2228 | 18522 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
1504c9b8 DWT |
18523 | fi |
18524 | done | |
18525 | ||
66170b30 JF |
18526 | |
18527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1504c9b8 DWT |
18528 | /* end confdefs.h. */ |
18529 | ||
66170b30 | 18530 | _ACEOF |
c10a2228 | 18531 | if ac_fn_c_try_compile "$LINENO"; then : |
66170b30 JF |
18532 | cy_good=1 |
18533 | else | |
18534 | cy_good=0 | |
18535 | fi | |
18536 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18537 | ||
c10a2228 | 18538 | CFLAGS=$cy_save |
66170b30 JF |
18539 | if test "x$cy_good" = x1; then : |
18540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18541 | $as_echo "yes" >&6; } | |
18542 | ||
babf7fe8 | 18543 | for element in -Wno-overloaded-virtual; do |
66170b30 JF |
18544 | haveit= |
18545 | for x in $CFLAGS; do | |
18546 | ||
18547 | acl_save_prefix="$prefix" | |
18548 | prefix="$acl_final_prefix" | |
18549 | acl_save_exec_prefix="$exec_prefix" | |
18550 | exec_prefix="$acl_final_exec_prefix" | |
18551 | eval x=\"$x\" | |
18552 | exec_prefix="$acl_save_exec_prefix" | |
18553 | prefix="$acl_save_prefix" | |
18554 | ||
18555 | if test "X$x" = "X$element"; then | |
18556 | haveit=yes | |
18557 | break | |
18558 | fi | |
18559 | done | |
18560 | if test -z "$haveit"; then | |
18561 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
18562 | fi | |
18563 | done | |
18564 | ||
18565 | ||
c10a2228 JF |
18566 | else |
18567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18568 | $as_echo "no" >&6; } | |
18569 | fi | |
18570 | ||
18571 | ac_ext=cpp | |
18572 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18573 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18574 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18575 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18576 | ||
18577 | ||
18578 | ||
18579 | ac_ext=cpp | |
18580 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18581 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18582 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18583 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18584 | ||
babf7fe8 JF |
18585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5 |
18586 | $as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; } | |
c10a2228 JF |
18587 | |
18588 | cy_save=$CXXFLAGS | |
18589 | ||
babf7fe8 | 18590 | for element in -Wno-overloaded-virtual; do |
66170b30 JF |
18591 | haveit= |
18592 | for x in $CXXFLAGS; do | |
18593 | ||
18594 | acl_save_prefix="$prefix" | |
18595 | prefix="$acl_final_prefix" | |
18596 | acl_save_exec_prefix="$exec_prefix" | |
18597 | exec_prefix="$acl_final_exec_prefix" | |
18598 | eval x=\"$x\" | |
18599 | exec_prefix="$acl_save_exec_prefix" | |
18600 | prefix="$acl_save_prefix" | |
18601 | ||
18602 | if test "X$x" = "X$element"; then | |
18603 | haveit=yes | |
18604 | break | |
18605 | fi | |
18606 | done | |
18607 | if test -z "$haveit"; then | |
18608 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
18609 | fi | |
18610 | done | |
18611 | ||
18612 | ||
c10a2228 JF |
18613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18614 | /* end confdefs.h. */ | |
18615 | ||
18616 | _ACEOF | |
18617 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
18618 | cy_good=1 | |
18619 | else | |
18620 | cy_good=0 | |
18621 | fi | |
18622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18623 | ||
18624 | CXXFLAGS=$cy_save | |
18625 | if test "x$cy_good" = x1; then : | |
18626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18627 | $as_echo "yes" >&6; } | |
18628 | ||
babf7fe8 | 18629 | for element in -Wno-overloaded-virtual; do |
66170b30 | 18630 | haveit= |
c10a2228 | 18631 | for x in $CXXFLAGS; do |
66170b30 JF |
18632 | |
18633 | acl_save_prefix="$prefix" | |
18634 | prefix="$acl_final_prefix" | |
18635 | acl_save_exec_prefix="$exec_prefix" | |
18636 | exec_prefix="$acl_final_exec_prefix" | |
18637 | eval x=\"$x\" | |
18638 | exec_prefix="$acl_save_exec_prefix" | |
18639 | prefix="$acl_save_prefix" | |
18640 | ||
18641 | if test "X$x" = "X$element"; then | |
18642 | haveit=yes | |
18643 | break | |
18644 | fi | |
18645 | done | |
18646 | if test -z "$haveit"; then | |
c10a2228 | 18647 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" |
66170b30 JF |
18648 | fi |
18649 | done | |
18650 | ||
18651 | ||
66170b30 JF |
18652 | else |
18653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18654 | $as_echo "no" >&6; } | |
18655 | fi | |
18656 | ||
c10a2228 JF |
18657 | ac_ext=cpp |
18658 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18659 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18660 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18661 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18662 | ||
66170b30 JF |
18663 | |
18664 | ||
c10a2228 JF |
18665 | ac_ext=mm |
18666 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
18667 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18668 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18669 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
18670 | ||
babf7fe8 JF |
18671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5 |
18672 | $as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; } | |
66170b30 | 18673 | |
c10a2228 | 18674 | cy_save=$OBJCXXFLAGS |
66170b30 | 18675 | |
babf7fe8 | 18676 | for element in -Wno-overloaded-virtual; do |
66170b30 | 18677 | haveit= |
c10a2228 | 18678 | for x in $OBJCXXFLAGS; do |
66170b30 JF |
18679 | |
18680 | acl_save_prefix="$prefix" | |
18681 | prefix="$acl_final_prefix" | |
18682 | acl_save_exec_prefix="$exec_prefix" | |
18683 | exec_prefix="$acl_final_exec_prefix" | |
18684 | eval x=\"$x\" | |
18685 | exec_prefix="$acl_save_exec_prefix" | |
18686 | prefix="$acl_save_prefix" | |
18687 | ||
18688 | if test "X$x" = "X$element"; then | |
18689 | haveit=yes | |
18690 | break | |
18691 | fi | |
18692 | done | |
18693 | if test -z "$haveit"; then | |
c10a2228 | 18694 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
66170b30 JF |
18695 | fi |
18696 | done | |
18697 | ||
18698 | ||
18699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18700 | /* end confdefs.h. */ | |
1504c9b8 | 18701 | |
1504c9b8 | 18702 | _ACEOF |
c10a2228 | 18703 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
66170b30 JF |
18704 | cy_good=1 |
18705 | else | |
18706 | cy_good=0 | |
18707 | fi | |
18708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18709 | ||
c10a2228 | 18710 | OBJCXXFLAGS=$cy_save |
66170b30 JF |
18711 | if test "x$cy_good" = x1; then : |
18712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18713 | $as_echo "yes" >&6; } | |
1504c9b8 | 18714 | |
babf7fe8 | 18715 | for element in -Wno-overloaded-virtual; do |
1504c9b8 | 18716 | haveit= |
c10a2228 | 18717 | for x in $OBJCXXFLAGS; do |
1504c9b8 DWT |
18718 | |
18719 | acl_save_prefix="$prefix" | |
18720 | prefix="$acl_final_prefix" | |
18721 | acl_save_exec_prefix="$exec_prefix" | |
18722 | exec_prefix="$acl_final_exec_prefix" | |
18723 | eval x=\"$x\" | |
18724 | exec_prefix="$acl_save_exec_prefix" | |
18725 | prefix="$acl_save_prefix" | |
18726 | ||
18727 | if test "X$x" = "X$element"; then | |
18728 | haveit=yes | |
18729 | break | |
18730 | fi | |
18731 | done | |
18732 | if test -z "$haveit"; then | |
c10a2228 | 18733 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
1504c9b8 DWT |
18734 | fi |
18735 | done | |
18736 | ||
18737 | ||
c10a2228 JF |
18738 | else |
18739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18740 | $as_echo "no" >&6; } | |
18741 | fi | |
18742 | ||
18743 | ac_ext=cpp | |
18744 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18745 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18746 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18747 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18748 | ||
18749 | ||
18750 | ||
18751 | ||
18752 | ||
18753 | ac_ext=c | |
18754 | ac_cpp='$CPP $CPPFLAGS' | |
18755 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18756 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18757 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18758 | ||
babf7fe8 JF |
18759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5 |
18760 | $as_echo_n "checking for cc -Wno-parentheses... " >&6; } | |
c10a2228 JF |
18761 | |
18762 | cy_save=$CFLAGS | |
18763 | ||
babf7fe8 | 18764 | for element in -Wno-parentheses; do |
66170b30 | 18765 | haveit= |
c10a2228 | 18766 | for x in $CFLAGS; do |
66170b30 JF |
18767 | |
18768 | acl_save_prefix="$prefix" | |
18769 | prefix="$acl_final_prefix" | |
18770 | acl_save_exec_prefix="$exec_prefix" | |
18771 | exec_prefix="$acl_final_exec_prefix" | |
18772 | eval x=\"$x\" | |
18773 | exec_prefix="$acl_save_exec_prefix" | |
18774 | prefix="$acl_save_prefix" | |
18775 | ||
18776 | if test "X$x" = "X$element"; then | |
18777 | haveit=yes | |
18778 | break | |
18779 | fi | |
18780 | done | |
18781 | if test -z "$haveit"; then | |
c10a2228 | 18782 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
66170b30 JF |
18783 | fi |
18784 | done | |
18785 | ||
18786 | ||
c10a2228 JF |
18787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18788 | /* end confdefs.h. */ | |
18789 | ||
18790 | _ACEOF | |
18791 | if ac_fn_c_try_compile "$LINENO"; then : | |
18792 | cy_good=1 | |
18793 | else | |
18794 | cy_good=0 | |
18795 | fi | |
18796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18797 | ||
18798 | CFLAGS=$cy_save | |
18799 | if test "x$cy_good" = x1; then : | |
18800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18801 | $as_echo "yes" >&6; } | |
18802 | ||
babf7fe8 | 18803 | for element in -Wno-parentheses; do |
66170b30 | 18804 | haveit= |
c10a2228 | 18805 | for x in $CFLAGS; do |
66170b30 JF |
18806 | |
18807 | acl_save_prefix="$prefix" | |
18808 | prefix="$acl_final_prefix" | |
18809 | acl_save_exec_prefix="$exec_prefix" | |
18810 | exec_prefix="$acl_final_exec_prefix" | |
18811 | eval x=\"$x\" | |
18812 | exec_prefix="$acl_save_exec_prefix" | |
18813 | prefix="$acl_save_prefix" | |
18814 | ||
18815 | if test "X$x" = "X$element"; then | |
18816 | haveit=yes | |
18817 | break | |
18818 | fi | |
18819 | done | |
18820 | if test -z "$haveit"; then | |
c10a2228 | 18821 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
66170b30 JF |
18822 | fi |
18823 | done | |
18824 | ||
18825 | ||
66170b30 JF |
18826 | else |
18827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18828 | $as_echo "no" >&6; } | |
18829 | fi | |
18830 | ||
c10a2228 JF |
18831 | ac_ext=cpp |
18832 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18833 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18834 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18835 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18836 | ||
66170b30 JF |
18837 | |
18838 | ||
c10a2228 JF |
18839 | ac_ext=cpp |
18840 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18841 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18842 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18843 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18844 | ||
babf7fe8 JF |
18845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5 |
18846 | $as_echo_n "checking for c++ -Wno-parentheses... " >&6; } | |
66170b30 JF |
18847 | |
18848 | cy_save=$CXXFLAGS | |
18849 | ||
babf7fe8 | 18850 | for element in -Wno-parentheses; do |
66170b30 JF |
18851 | haveit= |
18852 | for x in $CXXFLAGS; do | |
18853 | ||
18854 | acl_save_prefix="$prefix" | |
18855 | prefix="$acl_final_prefix" | |
18856 | acl_save_exec_prefix="$exec_prefix" | |
18857 | exec_prefix="$acl_final_exec_prefix" | |
18858 | eval x=\"$x\" | |
18859 | exec_prefix="$acl_save_exec_prefix" | |
18860 | prefix="$acl_save_prefix" | |
18861 | ||
18862 | if test "X$x" = "X$element"; then | |
18863 | haveit=yes | |
18864 | break | |
18865 | fi | |
18866 | done | |
18867 | if test -z "$haveit"; then | |
18868 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
18869 | fi | |
18870 | done | |
18871 | ||
18872 | ||
18873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18874 | /* end confdefs.h. */ | |
18875 | ||
18876 | _ACEOF | |
18877 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
18878 | cy_good=1 | |
18879 | else | |
18880 | cy_good=0 | |
18881 | fi | |
18882 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18883 | ||
18884 | CXXFLAGS=$cy_save | |
18885 | if test "x$cy_good" = x1; then : | |
18886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18887 | $as_echo "yes" >&6; } | |
18888 | ||
babf7fe8 | 18889 | for element in -Wno-parentheses; do |
1504c9b8 | 18890 | haveit= |
c10a2228 | 18891 | for x in $CXXFLAGS; do |
1504c9b8 DWT |
18892 | |
18893 | acl_save_prefix="$prefix" | |
18894 | prefix="$acl_final_prefix" | |
18895 | acl_save_exec_prefix="$exec_prefix" | |
18896 | exec_prefix="$acl_final_exec_prefix" | |
18897 | eval x=\"$x\" | |
18898 | exec_prefix="$acl_save_exec_prefix" | |
18899 | prefix="$acl_save_prefix" | |
18900 | ||
18901 | if test "X$x" = "X$element"; then | |
18902 | haveit=yes | |
18903 | break | |
18904 | fi | |
18905 | done | |
18906 | if test -z "$haveit"; then | |
c10a2228 | 18907 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" |
1504c9b8 DWT |
18908 | fi |
18909 | done | |
18910 | ||
18911 | ||
c10a2228 JF |
18912 | else |
18913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18914 | $as_echo "no" >&6; } | |
18915 | fi | |
18916 | ||
18917 | ac_ext=cpp | |
18918 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18919 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18920 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18921 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18922 | ||
18923 | ||
18924 | ||
18925 | ac_ext=mm | |
18926 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
18927 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18928 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18929 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
18930 | ||
babf7fe8 JF |
18931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5 |
18932 | $as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; } | |
c10a2228 JF |
18933 | |
18934 | cy_save=$OBJCXXFLAGS | |
18935 | ||
babf7fe8 | 18936 | for element in -Wno-parentheses; do |
1504c9b8 | 18937 | haveit= |
c10a2228 | 18938 | for x in $OBJCXXFLAGS; do |
1504c9b8 DWT |
18939 | |
18940 | acl_save_prefix="$prefix" | |
18941 | prefix="$acl_final_prefix" | |
18942 | acl_save_exec_prefix="$exec_prefix" | |
18943 | exec_prefix="$acl_final_exec_prefix" | |
18944 | eval x=\"$x\" | |
18945 | exec_prefix="$acl_save_exec_prefix" | |
18946 | prefix="$acl_save_prefix" | |
18947 | ||
18948 | if test "X$x" = "X$element"; then | |
18949 | haveit=yes | |
18950 | break | |
18951 | fi | |
18952 | done | |
18953 | if test -z "$haveit"; then | |
c10a2228 | 18954 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
1504c9b8 DWT |
18955 | fi |
18956 | done | |
18957 | ||
18958 | ||
c10a2228 JF |
18959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18960 | /* end confdefs.h. */ | |
18961 | ||
18962 | _ACEOF | |
18963 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
18964 | cy_good=1 | |
18965 | else | |
18966 | cy_good=0 | |
18967 | fi | |
18968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18969 | ||
18970 | OBJCXXFLAGS=$cy_save | |
18971 | if test "x$cy_good" = x1; then : | |
18972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18973 | $as_echo "yes" >&6; } | |
18974 | ||
babf7fe8 | 18975 | for element in -Wno-parentheses; do |
1504c9b8 | 18976 | haveit= |
c10a2228 | 18977 | for x in $OBJCXXFLAGS; do |
1504c9b8 DWT |
18978 | |
18979 | acl_save_prefix="$prefix" | |
18980 | prefix="$acl_final_prefix" | |
18981 | acl_save_exec_prefix="$exec_prefix" | |
2ada0541 JF |
18982 | exec_prefix="$acl_final_exec_prefix" |
18983 | eval x=\"$x\" | |
18984 | exec_prefix="$acl_save_exec_prefix" | |
18985 | prefix="$acl_save_prefix" | |
18986 | ||
18987 | if test "X$x" = "X$element"; then | |
18988 | haveit=yes | |
18989 | break | |
18990 | fi | |
18991 | done | |
18992 | if test -z "$haveit"; then | |
18993 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
18994 | fi | |
18995 | done | |
18996 | ||
18997 | ||
18998 | else | |
18999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19000 | $as_echo "no" >&6; } | |
19001 | fi | |
19002 | ||
19003 | ac_ext=cpp | |
19004 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19005 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19006 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19007 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19008 | ||
19009 | ||
19010 | ||
19011 | ||
19012 | ||
19013 | ac_ext=c | |
19014 | ac_cpp='$CPP $CPPFLAGS' | |
19015 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19016 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19017 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19018 | ||
19019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-tautological-undefined-compare" >&5 | |
19020 | $as_echo_n "checking for cc -Wno-tautological-undefined-compare... " >&6; } | |
19021 | ||
19022 | cy_save=$CFLAGS | |
19023 | ||
19024 | for element in -Wno-tautological-undefined-compare; do | |
19025 | haveit= | |
19026 | for x in $CFLAGS; do | |
19027 | ||
19028 | acl_save_prefix="$prefix" | |
19029 | prefix="$acl_final_prefix" | |
19030 | acl_save_exec_prefix="$exec_prefix" | |
19031 | exec_prefix="$acl_final_exec_prefix" | |
19032 | eval x=\"$x\" | |
19033 | exec_prefix="$acl_save_exec_prefix" | |
19034 | prefix="$acl_save_prefix" | |
19035 | ||
19036 | if test "X$x" = "X$element"; then | |
19037 | haveit=yes | |
19038 | break | |
19039 | fi | |
19040 | done | |
19041 | if test -z "$haveit"; then | |
19042 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
19043 | fi | |
19044 | done | |
19045 | ||
19046 | ||
19047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19048 | /* end confdefs.h. */ | |
19049 | ||
19050 | _ACEOF | |
19051 | if ac_fn_c_try_compile "$LINENO"; then : | |
19052 | cy_good=1 | |
19053 | else | |
19054 | cy_good=0 | |
19055 | fi | |
19056 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19057 | ||
19058 | CFLAGS=$cy_save | |
19059 | if test "x$cy_good" = x1; then : | |
19060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19061 | $as_echo "yes" >&6; } | |
19062 | ||
19063 | for element in -Wno-tautological-undefined-compare; do | |
19064 | haveit= | |
19065 | for x in $CFLAGS; do | |
19066 | ||
19067 | acl_save_prefix="$prefix" | |
19068 | prefix="$acl_final_prefix" | |
19069 | acl_save_exec_prefix="$exec_prefix" | |
19070 | exec_prefix="$acl_final_exec_prefix" | |
19071 | eval x=\"$x\" | |
19072 | exec_prefix="$acl_save_exec_prefix" | |
19073 | prefix="$acl_save_prefix" | |
19074 | ||
19075 | if test "X$x" = "X$element"; then | |
19076 | haveit=yes | |
19077 | break | |
19078 | fi | |
19079 | done | |
19080 | if test -z "$haveit"; then | |
19081 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
19082 | fi | |
19083 | done | |
19084 | ||
19085 | ||
19086 | else | |
19087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19088 | $as_echo "no" >&6; } | |
19089 | fi | |
19090 | ||
19091 | ac_ext=cpp | |
19092 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19093 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19094 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19095 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19096 | ||
19097 | ||
19098 | ||
19099 | ac_ext=cpp | |
19100 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19101 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19102 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19103 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19104 | ||
19105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-tautological-undefined-compare" >&5 | |
19106 | $as_echo_n "checking for c++ -Wno-tautological-undefined-compare... " >&6; } | |
19107 | ||
19108 | cy_save=$CXXFLAGS | |
19109 | ||
19110 | for element in -Wno-tautological-undefined-compare; do | |
19111 | haveit= | |
19112 | for x in $CXXFLAGS; do | |
19113 | ||
19114 | acl_save_prefix="$prefix" | |
19115 | prefix="$acl_final_prefix" | |
19116 | acl_save_exec_prefix="$exec_prefix" | |
19117 | exec_prefix="$acl_final_exec_prefix" | |
19118 | eval x=\"$x\" | |
19119 | exec_prefix="$acl_save_exec_prefix" | |
19120 | prefix="$acl_save_prefix" | |
19121 | ||
19122 | if test "X$x" = "X$element"; then | |
19123 | haveit=yes | |
19124 | break | |
19125 | fi | |
19126 | done | |
19127 | if test -z "$haveit"; then | |
19128 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
19129 | fi | |
19130 | done | |
19131 | ||
19132 | ||
19133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19134 | /* end confdefs.h. */ | |
19135 | ||
19136 | _ACEOF | |
19137 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
19138 | cy_good=1 | |
19139 | else | |
19140 | cy_good=0 | |
19141 | fi | |
19142 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19143 | ||
19144 | CXXFLAGS=$cy_save | |
19145 | if test "x$cy_good" = x1; then : | |
19146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19147 | $as_echo "yes" >&6; } | |
19148 | ||
19149 | for element in -Wno-tautological-undefined-compare; do | |
19150 | haveit= | |
19151 | for x in $CXXFLAGS; do | |
19152 | ||
19153 | acl_save_prefix="$prefix" | |
19154 | prefix="$acl_final_prefix" | |
19155 | acl_save_exec_prefix="$exec_prefix" | |
19156 | exec_prefix="$acl_final_exec_prefix" | |
19157 | eval x=\"$x\" | |
19158 | exec_prefix="$acl_save_exec_prefix" | |
19159 | prefix="$acl_save_prefix" | |
19160 | ||
19161 | if test "X$x" = "X$element"; then | |
19162 | haveit=yes | |
19163 | break | |
19164 | fi | |
19165 | done | |
19166 | if test -z "$haveit"; then | |
19167 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
19168 | fi | |
19169 | done | |
19170 | ||
19171 | ||
19172 | else | |
19173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19174 | $as_echo "no" >&6; } | |
19175 | fi | |
19176 | ||
19177 | ac_ext=cpp | |
19178 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19179 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19180 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19181 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19182 | ||
19183 | ||
19184 | ||
19185 | ac_ext=mm | |
19186 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
19187 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19188 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19189 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
19190 | ||
19191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-tautological-undefined-compare" >&5 | |
19192 | $as_echo_n "checking for c++ -ObjC -Wno-tautological-undefined-compare... " >&6; } | |
19193 | ||
19194 | cy_save=$OBJCXXFLAGS | |
19195 | ||
19196 | for element in -Wno-tautological-undefined-compare; do | |
19197 | haveit= | |
19198 | for x in $OBJCXXFLAGS; do | |
19199 | ||
19200 | acl_save_prefix="$prefix" | |
19201 | prefix="$acl_final_prefix" | |
19202 | acl_save_exec_prefix="$exec_prefix" | |
19203 | exec_prefix="$acl_final_exec_prefix" | |
19204 | eval x=\"$x\" | |
19205 | exec_prefix="$acl_save_exec_prefix" | |
19206 | prefix="$acl_save_prefix" | |
19207 | ||
19208 | if test "X$x" = "X$element"; then | |
19209 | haveit=yes | |
19210 | break | |
19211 | fi | |
19212 | done | |
19213 | if test -z "$haveit"; then | |
19214 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
19215 | fi | |
19216 | done | |
19217 | ||
19218 | ||
19219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19220 | /* end confdefs.h. */ | |
19221 | ||
19222 | _ACEOF | |
19223 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
19224 | cy_good=1 | |
19225 | else | |
19226 | cy_good=0 | |
19227 | fi | |
19228 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19229 | ||
19230 | OBJCXXFLAGS=$cy_save | |
19231 | if test "x$cy_good" = x1; then : | |
19232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19233 | $as_echo "yes" >&6; } | |
19234 | ||
19235 | for element in -Wno-tautological-undefined-compare; do | |
19236 | haveit= | |
19237 | for x in $OBJCXXFLAGS; do | |
19238 | ||
19239 | acl_save_prefix="$prefix" | |
19240 | prefix="$acl_final_prefix" | |
19241 | acl_save_exec_prefix="$exec_prefix" | |
1504c9b8 DWT |
19242 | exec_prefix="$acl_final_exec_prefix" |
19243 | eval x=\"$x\" | |
19244 | exec_prefix="$acl_save_exec_prefix" | |
19245 | prefix="$acl_save_prefix" | |
19246 | ||
19247 | if test "X$x" = "X$element"; then | |
19248 | haveit=yes | |
19249 | break | |
19250 | fi | |
19251 | done | |
19252 | if test -z "$haveit"; then | |
c10a2228 | 19253 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
1504c9b8 DWT |
19254 | fi |
19255 | done | |
19256 | ||
19257 | ||
66170b30 JF |
19258 | else |
19259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19260 | $as_echo "no" >&6; } | |
1504c9b8 | 19261 | fi |
1504c9b8 | 19262 | |
c10a2228 JF |
19263 | ac_ext=cpp |
19264 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19265 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19266 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19267 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19268 | ||
19269 | ||
1504c9b8 | 19270 | |
1504c9b8 | 19271 | |
1504c9b8 | 19272 | |
babf7fe8 JF |
19273 | ac_ext=c |
19274 | ac_cpp='$CPP $CPPFLAGS' | |
19275 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19276 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19277 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1504c9b8 | 19278 | |
babf7fe8 JF |
19279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5 |
19280 | $as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; } | |
19281 | ||
19282 | cy_save=$CFLAGS | |
19283 | ||
19284 | for element in -Wno-unneeded-internal-declaration; do | |
1504c9b8 | 19285 | haveit= |
babf7fe8 | 19286 | for x in $CFLAGS; do |
1504c9b8 DWT |
19287 | |
19288 | acl_save_prefix="$prefix" | |
19289 | prefix="$acl_final_prefix" | |
19290 | acl_save_exec_prefix="$exec_prefix" | |
19291 | exec_prefix="$acl_final_exec_prefix" | |
19292 | eval x=\"$x\" | |
19293 | exec_prefix="$acl_save_exec_prefix" | |
19294 | prefix="$acl_save_prefix" | |
19295 | ||
19296 | if test "X$x" = "X$element"; then | |
19297 | haveit=yes | |
19298 | break | |
19299 | fi | |
19300 | done | |
19301 | if test -z "$haveit"; then | |
babf7fe8 | 19302 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
1504c9b8 DWT |
19303 | fi |
19304 | done | |
19305 | ||
66170b30 JF |
19306 | |
19307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1504c9b8 DWT |
19308 | /* end confdefs.h. */ |
19309 | ||
a243b558 | 19310 | _ACEOF |
babf7fe8 | 19311 | if ac_fn_c_try_compile "$LINENO"; then : |
a243b558 JF |
19312 | cy_good=1 |
19313 | else | |
19314 | cy_good=0 | |
19315 | fi | |
babf7fe8 | 19316 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1504c9b8 | 19317 | |
babf7fe8 | 19318 | CFLAGS=$cy_save |
a243b558 JF |
19319 | if test "x$cy_good" = x1; then : |
19320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19321 | $as_echo "yes" >&6; } | |
66170b30 | 19322 | |
babf7fe8 | 19323 | for element in -Wno-unneeded-internal-declaration; do |
1504c9b8 | 19324 | haveit= |
babf7fe8 | 19325 | for x in $CFLAGS; do |
1504c9b8 DWT |
19326 | |
19327 | acl_save_prefix="$prefix" | |
19328 | prefix="$acl_final_prefix" | |
19329 | acl_save_exec_prefix="$exec_prefix" | |
19330 | exec_prefix="$acl_final_exec_prefix" | |
19331 | eval x=\"$x\" | |
19332 | exec_prefix="$acl_save_exec_prefix" | |
19333 | prefix="$acl_save_prefix" | |
19334 | ||
19335 | if test "X$x" = "X$element"; then | |
19336 | haveit=yes | |
19337 | break | |
19338 | fi | |
19339 | done | |
19340 | if test -z "$haveit"; then | |
babf7fe8 | 19341 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
1504c9b8 DWT |
19342 | fi |
19343 | done | |
19344 | ||
19345 | ||
19346 | else | |
66170b30 JF |
19347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19348 | $as_echo "no" >&6; } | |
1504c9b8 DWT |
19349 | fi |
19350 | ||
babf7fe8 JF |
19351 | ac_ext=cpp |
19352 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19353 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19354 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19355 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
296ee9a6 | 19356 | |
9c60689e | 19357 | |
632b71ea | 19358 | |
babf7fe8 JF |
19359 | ac_ext=cpp |
19360 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19361 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19362 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19363 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
632b71ea | 19364 | |
babf7fe8 JF |
19365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5 |
19366 | $as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; } | |
9c60689e | 19367 | |
babf7fe8 | 19368 | cy_save=$CXXFLAGS |
9c60689e | 19369 | |
babf7fe8 JF |
19370 | for element in -Wno-unneeded-internal-declaration; do |
19371 | haveit= | |
19372 | for x in $CXXFLAGS; do | |
9c60689e | 19373 | |
babf7fe8 JF |
19374 | acl_save_prefix="$prefix" |
19375 | prefix="$acl_final_prefix" | |
19376 | acl_save_exec_prefix="$exec_prefix" | |
19377 | exec_prefix="$acl_final_exec_prefix" | |
19378 | eval x=\"$x\" | |
19379 | exec_prefix="$acl_save_exec_prefix" | |
19380 | prefix="$acl_save_prefix" | |
66170b30 | 19381 | |
babf7fe8 JF |
19382 | if test "X$x" = "X$element"; then |
19383 | haveit=yes | |
19384 | break | |
19385 | fi | |
19386 | done | |
19387 | if test -z "$haveit"; then | |
19388 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
19389 | fi | |
19390 | done | |
7eda51e0 | 19391 | |
7eda51e0 | 19392 | |
babf7fe8 JF |
19393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
19394 | /* end confdefs.h. */ | |
7eda51e0 | 19395 | |
7eda51e0 | 19396 | _ACEOF |
babf7fe8 JF |
19397 | if ac_fn_cxx_try_compile "$LINENO"; then : |
19398 | cy_good=1 | |
9c60689e | 19399 | else |
babf7fe8 | 19400 | cy_good=0 |
9c60689e | 19401 | fi |
babf7fe8 | 19402 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7eda51e0 | 19403 | |
babf7fe8 JF |
19404 | CXXFLAGS=$cy_save |
19405 | if test "x$cy_good" = x1; then : | |
19406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19407 | $as_echo "yes" >&6; } | |
7eda51e0 | 19408 | |
babf7fe8 | 19409 | for element in -Wno-unneeded-internal-declaration; do |
7eda51e0 | 19410 | haveit= |
babf7fe8 | 19411 | for x in $CXXFLAGS; do |
9c60689e | 19412 | |
7eda51e0 JF |
19413 | acl_save_prefix="$prefix" |
19414 | prefix="$acl_final_prefix" | |
19415 | acl_save_exec_prefix="$exec_prefix" | |
19416 | exec_prefix="$acl_final_exec_prefix" | |
19417 | eval x=\"$x\" | |
19418 | exec_prefix="$acl_save_exec_prefix" | |
19419 | prefix="$acl_save_prefix" | |
9c60689e | 19420 | |
7eda51e0 JF |
19421 | if test "X$x" = "X$element"; then |
19422 | haveit=yes | |
19423 | break | |
19424 | fi | |
19425 | done | |
19426 | if test -z "$haveit"; then | |
babf7fe8 | 19427 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" |
7eda51e0 JF |
19428 | fi |
19429 | done | |
9c60689e | 19430 | |
9c60689e | 19431 | |
5053a6d1 | 19432 | else |
babf7fe8 JF |
19433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19434 | $as_echo "no" >&6; } | |
632b71ea DWT |
19435 | fi |
19436 | ||
babf7fe8 JF |
19437 | ac_ext=cpp |
19438 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19439 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19440 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19441 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
632b71ea DWT |
19442 | |
19443 | ||
5053a6d1 | 19444 | |
babf7fe8 JF |
19445 | ac_ext=mm |
19446 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
19447 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19448 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19449 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
5053a6d1 | 19450 | |
babf7fe8 JF |
19451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5 |
19452 | $as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; } | |
632b71ea | 19453 | |
babf7fe8 | 19454 | cy_save=$OBJCXXFLAGS |
632b71ea | 19455 | |
babf7fe8 | 19456 | for element in -Wno-unneeded-internal-declaration; do |
5053a6d1 | 19457 | haveit= |
babf7fe8 | 19458 | for x in $OBJCXXFLAGS; do |
632b71ea DWT |
19459 | |
19460 | acl_save_prefix="$prefix" | |
19461 | prefix="$acl_final_prefix" | |
19462 | acl_save_exec_prefix="$exec_prefix" | |
19463 | exec_prefix="$acl_final_exec_prefix" | |
5053a6d1 | 19464 | eval x=\"$x\" |
632b71ea DWT |
19465 | exec_prefix="$acl_save_exec_prefix" |
19466 | prefix="$acl_save_prefix" | |
19467 | ||
5053a6d1 DWT |
19468 | if test "X$x" = "X$element"; then |
19469 | haveit=yes | |
19470 | break | |
19471 | fi | |
19472 | done | |
19473 | if test -z "$haveit"; then | |
babf7fe8 | 19474 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
5053a6d1 DWT |
19475 | fi |
19476 | done | |
19477 | ||
66170b30 | 19478 | |
babf7fe8 JF |
19479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
19480 | /* end confdefs.h. */ | |
19481 | ||
19482 | _ACEOF | |
19483 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
19484 | cy_good=1 | |
19485 | else | |
19486 | cy_good=0 | |
19487 | fi | |
19488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19489 | ||
19490 | OBJCXXFLAGS=$cy_save | |
19491 | if test "x$cy_good" = x1; then : | |
19492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19493 | $as_echo "yes" >&6; } | |
19494 | ||
19495 | for element in -Wno-unneeded-internal-declaration; do | |
7eda51e0 | 19496 | haveit= |
babf7fe8 | 19497 | for x in $OBJCXXFLAGS; do |
7eda51e0 JF |
19498 | |
19499 | acl_save_prefix="$prefix" | |
19500 | prefix="$acl_final_prefix" | |
19501 | acl_save_exec_prefix="$exec_prefix" | |
19502 | exec_prefix="$acl_final_exec_prefix" | |
19503 | eval x=\"$x\" | |
19504 | exec_prefix="$acl_save_exec_prefix" | |
19505 | prefix="$acl_save_prefix" | |
19506 | ||
19507 | if test "X$x" = "X$element"; then | |
19508 | haveit=yes | |
19509 | break | |
19510 | fi | |
19511 | done | |
19512 | if test -z "$haveit"; then | |
babf7fe8 | 19513 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
7eda51e0 JF |
19514 | fi |
19515 | done | |
66170b30 JF |
19516 | |
19517 | ||
babf7fe8 JF |
19518 | else |
19519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19520 | $as_echo "no" >&6; } | |
5053a6d1 | 19521 | fi |
7eda51e0 | 19522 | |
babf7fe8 JF |
19523 | ac_ext=cpp |
19524 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19525 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19526 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19527 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5053a6d1 | 19528 | |
5053a6d1 DWT |
19529 | |
19530 | ||
5053a6d1 | 19531 | |
babf7fe8 JF |
19532 | |
19533 | ||
2ca4dab3 | 19534 | |
be2fde87 JF |
19535 | ac_ext=c |
19536 | ac_cpp='$CPP $CPPFLAGS' | |
19537 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19538 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19539 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19540 | ||
19541 | ax_pthread_ok=no | |
19542 | ||
19543 | # We used to check for pthread.h first, but this fails if pthread.h | |
2ca4dab3 | 19544 | # requires special compiler flags (e.g. on Tru64 or Sequent). |
be2fde87 JF |
19545 | # It gets checked for in the link test anyway. |
19546 | ||
19547 | # First of all, check if the user has set any of the PTHREAD_LIBS, | |
19548 | # etcetera environment variables, and if threads linking works using | |
19549 | # them: | |
19550 | if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then | |
19551 | save_CFLAGS="$CFLAGS" | |
19552 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
19553 | save_LIBS="$LIBS" | |
19554 | LIBS="$PTHREAD_LIBS $LIBS" | |
2ca4dab3 JF |
19555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 |
19556 | $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } | |
be2fde87 JF |
19557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
19558 | /* end confdefs.h. */ | |
19559 | ||
19560 | /* Override any GCC internal prototype to avoid an error. | |
19561 | Use char because int might match the return type of a GCC | |
19562 | builtin and then its argument prototype would still apply. */ | |
19563 | #ifdef __cplusplus | |
19564 | extern "C" | |
19565 | #endif | |
19566 | char pthread_join (); | |
19567 | int | |
19568 | main () | |
19569 | { | |
19570 | return pthread_join (); | |
19571 | ; | |
19572 | return 0; | |
19573 | } | |
19574 | _ACEOF | |
19575 | if ac_fn_c_try_link "$LINENO"; then : | |
19576 | ax_pthread_ok=yes | |
19577 | fi | |
19578 | rm -f core conftest.err conftest.$ac_objext \ | |
19579 | conftest$ac_exeext conftest.$ac_ext | |
19580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 | |
19581 | $as_echo "$ax_pthread_ok" >&6; } | |
19582 | if test x"$ax_pthread_ok" = xno; then | |
19583 | PTHREAD_LIBS="" | |
19584 | PTHREAD_CFLAGS="" | |
19585 | fi | |
19586 | LIBS="$save_LIBS" | |
19587 | CFLAGS="$save_CFLAGS" | |
19588 | fi | |
19589 | ||
19590 | # We must check for the threads library under a number of different | |
19591 | # names; the ordering is very important because some systems | |
19592 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the | |
19593 | # libraries is broken (non-POSIX). | |
19594 | ||
19595 | # Create a list of thread flags to try. Items starting with a "-" are | |
19596 | # C compiler flags, and other items are library names, except for "none" | |
19597 | # which indicates that we try without any flags at all, and "pthread-config" | |
19598 | # which is a program returning the flags for the Pth emulation library. | |
19599 | ||
2ca4dab3 | 19600 | ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config" |
be2fde87 JF |
19601 | |
19602 | # The ordering *is* (sometimes) important. Some notes on the | |
19603 | # individual items follow: | |
19604 | ||
19605 | # pthreads: AIX (must check this before -lpthread) | |
19606 | # none: in case threads are in libc; should be tried before -Kthread and | |
19607 | # other compiler flags to prevent continual compiler warnings | |
19608 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) | |
19609 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) | |
19610 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) | |
2ca4dab3 | 19611 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 |
be2fde87 | 19612 | # -pthreads: Solaris/gcc |
be2fde87 | 19613 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it |
2ca4dab3 JF |
19614 | # doesn't hurt to check since this sometimes defines pthreads and |
19615 | # -D_REENTRANT too), HP C (must be checked before -lpthread, which | |
19616 | # is present but should not be used directly) | |
19617 | # -mthreads: Mingw32/gcc, Lynx/gcc | |
be2fde87 JF |
19618 | # pthread: Linux, etcetera |
19619 | # --thread-safe: KAI C++ | |
19620 | # pthread-config: use pthread-config program (for GNU Pth library) | |
19621 | ||
2ca4dab3 JF |
19622 | case $host_os in |
19623 | ||
19624 | hpux*) | |
19625 | ||
19626 | # From the cc(1) man page: "[-mt] Sets various -D flags to enable | |
19627 | # multi-threading and also sets -lpthread." | |
19628 | ||
19629 | ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" | |
19630 | ;; | |
19631 | ||
19632 | openedition*) | |
19633 | ||
19634 | # IBM z/OS requires a feature-test macro to be defined in order to | |
19635 | # enable POSIX threads at all, so give the user a hint if this is | |
19636 | # not set. (We don't define these ourselves, as they can affect | |
19637 | # other portions of the system API in unpredictable ways.) | |
19638 | ||
19639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19640 | /* end confdefs.h. */ | |
19641 | ||
19642 | # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) | |
19643 | AX_PTHREAD_ZOS_MISSING | |
19644 | # endif | |
19645 | ||
19646 | _ACEOF | |
19647 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
19648 | $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then : | |
19649 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 | |
19650 | $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} | |
19651 | fi | |
19652 | rm -f conftest* | |
19653 | ||
19654 | ;; | |
19655 | ||
be2fde87 JF |
19656 | solaris*) |
19657 | ||
2ca4dab3 JF |
19658 | # Newer versions of Solaris require the "-mt -lpthread" pair, and we |
19659 | # check that first. On some older versions, libc contains stubbed | |
be2fde87 JF |
19660 | # (non-functional) versions of the pthreads routines, so link-based |
19661 | # tests will erroneously succeed. (We need to link with -pthreads/-mt/ | |
19662 | # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather | |
19663 | # a function called by this macro, so we could check for that, but | |
2ca4dab3 JF |
19664 | # who knows whether they'll stub that too in a future libc.) So |
19665 | # we'll look for -pthreads and -lpthread shortly thereafter. | |
be2fde87 | 19666 | |
2ca4dab3 | 19667 | ax_pthread_flags="-mt,pthread -pthreads -pthread pthread $ax_pthread_flags" |
be2fde87 JF |
19668 | ;; |
19669 | esac | |
19670 | ||
2ca4dab3 JF |
19671 | # Older versions of Clang only give a warning instead of an error for an |
19672 | # unrecognized option, unless we specify -Werror. (We throw in some extra | |
19673 | # Clang warning flags for good measure.) | |
be2fde87 | 19674 | |
2ca4dab3 JF |
19675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs certain flags to reject unknown flags" >&5 |
19676 | $as_echo_n "checking if compiler needs certain flags to reject unknown flags... " >&6; } | |
19677 | if ${ax_cv_PTHREAD_REJECT_UNKNOWN+:} false; then : | |
19678 | $as_echo_n "(cached) " >&6 | |
19679 | else | |
19680 | ax_cv_PTHREAD_REJECT_UNKNOWN=unknown | |
19681 | save_CFLAGS="$CFLAGS" | |
19682 | ax_pthread_extra_flags="-Wunknown-warning-option -Wunused-command-line-argument" | |
19683 | CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wfoobaz -foobaz" | |
19684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
be2fde87 JF |
19685 | /* end confdefs.h. */ |
19686 | int foo(void); | |
19687 | int | |
19688 | main () | |
19689 | { | |
19690 | foo() | |
19691 | ; | |
19692 | return 0; | |
19693 | } | |
19694 | _ACEOF | |
19695 | if ac_fn_c_try_compile "$LINENO"; then : | |
2ca4dab3 | 19696 | ax_cv_PTHREAD_REJECT_UNKNOWN="-Werror $ax_pthread_extra_flags" |
be2fde87 | 19697 | else |
2ca4dab3 | 19698 | ax_cv_PTHREAD_REJECT_UNKNOWN=no |
be2fde87 JF |
19699 | fi |
19700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2ca4dab3 JF |
19701 | CFLAGS="$save_CFLAGS" |
19702 | ||
19703 | fi | |
19704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_REJECT_UNKNOWN" >&5 | |
19705 | $as_echo "$ax_cv_PTHREAD_REJECT_UNKNOWN" >&6; } | |
19706 | ax_pthread_extra_flags= | |
19707 | if test "x$ax_cv_PTHREAD_REJECT_UNKNOWN" != "xno"; then : | |
19708 | ax_pthread_extra_flags="$ax_cv_PTHREAD_REJECT_UNKNOWN" | |
19709 | fi | |
be2fde87 JF |
19710 | |
19711 | if test x"$ax_pthread_ok" = xno; then | |
19712 | for flag in $ax_pthread_flags; do | |
19713 | ||
19714 | case $flag in | |
19715 | none) | |
19716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 | |
19717 | $as_echo_n "checking whether pthreads work without any flags... " >&6; } | |
19718 | ;; | |
19719 | ||
2ca4dab3 JF |
19720 | -mt,pthread) |
19721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5 | |
19722 | $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; } | |
19723 | PTHREAD_CFLAGS="-mt" | |
19724 | PTHREAD_LIBS="-lpthread" | |
19725 | ;; | |
19726 | ||
be2fde87 JF |
19727 | -*) |
19728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 | |
19729 | $as_echo_n "checking whether pthreads work with $flag... " >&6; } | |
19730 | PTHREAD_CFLAGS="$flag" | |
19731 | ;; | |
19732 | ||
19733 | pthread-config) | |
19734 | # Extract the first word of "pthread-config", so it can be a program name with args. | |
19735 | set dummy pthread-config; ac_word=$2 | |
19736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
19737 | $as_echo_n "checking for $ac_word... " >&6; } | |
19738 | if ${ac_cv_prog_ax_pthread_config+:} false; then : | |
19739 | $as_echo_n "(cached) " >&6 | |
19740 | else | |
19741 | if test -n "$ax_pthread_config"; then | |
19742 | ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. | |
19743 | else | |
19744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19745 | for as_dir in $PATH | |
19746 | do | |
19747 | IFS=$as_save_IFS | |
19748 | test -z "$as_dir" && as_dir=. | |
19749 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19750 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
19751 | ac_cv_prog_ax_pthread_config="yes" | |
19752 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19753 | break 2 | |
19754 | fi | |
19755 | done | |
19756 | done | |
19757 | IFS=$as_save_IFS | |
19758 | ||
19759 | test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" | |
19760 | fi | |
19761 | fi | |
19762 | ax_pthread_config=$ac_cv_prog_ax_pthread_config | |
19763 | if test -n "$ax_pthread_config"; then | |
19764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 | |
19765 | $as_echo "$ax_pthread_config" >&6; } | |
19766 | else | |
19767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19768 | $as_echo "no" >&6; } | |
19769 | fi | |
19770 | ||
19771 | ||
19772 | if test x"$ax_pthread_config" = xno; then continue; fi | |
19773 | PTHREAD_CFLAGS="`pthread-config --cflags`" | |
19774 | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" | |
19775 | ;; | |
19776 | ||
19777 | *) | |
19778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 | |
19779 | $as_echo_n "checking for the pthreads library -l$flag... " >&6; } | |
19780 | PTHREAD_LIBS="-l$flag" | |
19781 | ;; | |
19782 | esac | |
19783 | ||
19784 | save_LIBS="$LIBS" | |
19785 | save_CFLAGS="$CFLAGS" | |
19786 | LIBS="$PTHREAD_LIBS $LIBS" | |
19787 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" | |
19788 | ||
19789 | # Check for various functions. We must include pthread.h, | |
19790 | # since some functions may be macros. (On the Sequent, we | |
19791 | # need a special flag -Kthread to make this header compile.) | |
19792 | # We check for pthread_join because it is in -lpthread on IRIX | |
19793 | # while pthread_create is in libc. We check for pthread_attr_init | |
19794 | # due to DEC craziness with -lpthreads. We check for | |
19795 | # pthread_cleanup_push because it is one of the few pthread | |
19796 | # functions on Solaris that doesn't have a non-functional libc stub. | |
19797 | # We try pthread_create on general principles. | |
19798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19799 | /* end confdefs.h. */ | |
19800 | #include <pthread.h> | |
19801 | static void routine(void *a) { a = 0; } | |
19802 | static void *start_routine(void *a) { return a; } | |
19803 | int | |
19804 | main () | |
19805 | { | |
19806 | pthread_t th; pthread_attr_t attr; | |
19807 | pthread_create(&th, 0, start_routine, 0); | |
19808 | pthread_join(th, 0); | |
19809 | pthread_attr_init(&attr); | |
19810 | pthread_cleanup_push(routine, 0); | |
19811 | pthread_cleanup_pop(0) /* ; */ | |
19812 | ; | |
19813 | return 0; | |
19814 | } | |
19815 | _ACEOF | |
19816 | if ac_fn_c_try_link "$LINENO"; then : | |
19817 | ax_pthread_ok=yes | |
19818 | fi | |
19819 | rm -f core conftest.err conftest.$ac_objext \ | |
19820 | conftest$ac_exeext conftest.$ac_ext | |
19821 | ||
19822 | LIBS="$save_LIBS" | |
19823 | CFLAGS="$save_CFLAGS" | |
19824 | ||
19825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 | |
19826 | $as_echo "$ax_pthread_ok" >&6; } | |
19827 | if test "x$ax_pthread_ok" = xyes; then | |
19828 | break; | |
19829 | fi | |
19830 | ||
19831 | PTHREAD_LIBS="" | |
19832 | PTHREAD_CFLAGS="" | |
19833 | done | |
19834 | fi | |
19835 | ||
19836 | # Various other checks: | |
19837 | if test "x$ax_pthread_ok" = xyes; then | |
19838 | save_LIBS="$LIBS" | |
19839 | LIBS="$PTHREAD_LIBS $LIBS" | |
19840 | save_CFLAGS="$CFLAGS" | |
19841 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
19842 | ||
19843 | # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. | |
19844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 | |
19845 | $as_echo_n "checking for joinable pthread attribute... " >&6; } | |
2ca4dab3 JF |
19846 | if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then : |
19847 | $as_echo_n "(cached) " >&6 | |
19848 | else | |
19849 | ax_cv_PTHREAD_JOINABLE_ATTR=unknown | |
19850 | for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do | |
19851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
be2fde87 JF |
19852 | /* end confdefs.h. */ |
19853 | #include <pthread.h> | |
19854 | int | |
19855 | main () | |
19856 | { | |
19857 | int attr = $attr; return attr /* ; */ | |
19858 | ; | |
19859 | return 0; | |
19860 | } | |
19861 | _ACEOF | |
19862 | if ac_fn_c_try_link "$LINENO"; then : | |
2ca4dab3 | 19863 | ax_cv_PTHREAD_JOINABLE_ATTR=$attr; break |
be2fde87 JF |
19864 | fi |
19865 | rm -f core conftest.err conftest.$ac_objext \ | |
19866 | conftest$ac_exeext conftest.$ac_ext | |
2ca4dab3 JF |
19867 | done |
19868 | ||
19869 | fi | |
19870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 | |
19871 | $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } | |
19872 | if test "$ax_cv_PTHREAD_JOINABLE_ATTR" != unknown && \ | |
19873 | test "$ax_cv_PTHREAD_JOINABLE_ATTR" != PTHREAD_CREATE_JOINABLE; then : | |
be2fde87 JF |
19874 | |
19875 | cat >>confdefs.h <<_ACEOF | |
2ca4dab3 | 19876 | #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR |
be2fde87 JF |
19877 | _ACEOF |
19878 | ||
2ca4dab3 | 19879 | fi |
be2fde87 JF |
19880 | |
19881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 | |
19882 | $as_echo_n "checking if more special flags are required for pthreads... " >&6; } | |
2ca4dab3 JF |
19883 | if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then : |
19884 | $as_echo_n "(cached) " >&6 | |
19885 | else | |
19886 | ax_cv_PTHREAD_SPECIAL_FLAGS=no | |
19887 | ax_pthread_special_flags_added=no | |
19888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19889 | /* end confdefs.h. */ | |
19890 | ||
19891 | # if !defined(_REENTRANT) && !defined(_THREAD_SAFE) | |
19892 | AX_PTHREAD_NEED_SPECIAL_FLAG | |
19893 | # endif | |
19894 | ||
19895 | _ACEOF | |
19896 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
19897 | $EGREP "AX_PTHREAD_NEED_SPECIAL_FLAG" >/dev/null 2>&1; then : | |
19898 | case $host_os in | |
19899 | aix* | freebsd*) | |
19900 | ax_cv_PTHREAD_SPECIAL_FLAGS="-D_THREAD_SAFE" | |
19901 | ;; | |
19902 | darwin* | hpux* | osf* | solaris*) | |
19903 | ax_cv_PTHREAD_SPECIAL_FLAGS="-D_REENTRANT" | |
19904 | ;; | |
19905 | esac | |
19906 | ||
19907 | fi | |
19908 | rm -f conftest* | |
19909 | ||
19910 | ||
19911 | fi | |
19912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 | |
19913 | $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } | |
19914 | if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ | |
19915 | test "x$ax_pthread_special_flags_added" != "xyes"; then : | |
19916 | PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" | |
19917 | ax_pthread_special_flags_added=yes | |
19918 | fi | |
be2fde87 JF |
19919 | |
19920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 | |
19921 | $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } | |
19922 | if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : | |
19923 | $as_echo_n "(cached) " >&6 | |
19924 | else | |
2ca4dab3 | 19925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
be2fde87 JF |
19926 | /* end confdefs.h. */ |
19927 | #include <pthread.h> | |
19928 | int | |
19929 | main () | |
19930 | { | |
19931 | int i = PTHREAD_PRIO_INHERIT; | |
19932 | ; | |
19933 | return 0; | |
19934 | } | |
19935 | _ACEOF | |
19936 | if ac_fn_c_try_link "$LINENO"; then : | |
19937 | ax_cv_PTHREAD_PRIO_INHERIT=yes | |
19938 | else | |
19939 | ax_cv_PTHREAD_PRIO_INHERIT=no | |
19940 | fi | |
19941 | rm -f core conftest.err conftest.$ac_objext \ | |
19942 | conftest$ac_exeext conftest.$ac_ext | |
19943 | ||
19944 | fi | |
19945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 | |
19946 | $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } | |
19947 | if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : | |
19948 | ||
19949 | $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h | |
19950 | ||
19951 | fi | |
19952 | ||
19953 | LIBS="$save_LIBS" | |
19954 | CFLAGS="$save_CFLAGS" | |
19955 | ||
19956 | # More AIX lossage: compile with *_r variant | |
19957 | if test "x$GCC" != xyes; then | |
19958 | case $host_os in | |
19959 | aix*) | |
19960 | case "x/$CC" in #( | |
19961 | x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : | |
19962 | #handle absolute path differently from PATH based program lookup | |
19963 | case "x$CC" in #( | |
19964 | x/*) : | |
19965 | if as_fn_executable_p ${CC}_r; then : | |
19966 | PTHREAD_CC="${CC}_r" | |
19967 | fi ;; #( | |
19968 | *) : | |
19969 | for ac_prog in ${CC}_r | |
19970 | do | |
19971 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
19972 | set dummy $ac_prog; ac_word=$2 | |
19973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
19974 | $as_echo_n "checking for $ac_word... " >&6; } | |
19975 | if ${ac_cv_prog_PTHREAD_CC+:} false; then : | |
19976 | $as_echo_n "(cached) " >&6 | |
19977 | else | |
19978 | if test -n "$PTHREAD_CC"; then | |
19979 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. | |
19980 | else | |
19981 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19982 | for as_dir in $PATH | |
19983 | do | |
19984 | IFS=$as_save_IFS | |
19985 | test -z "$as_dir" && as_dir=. | |
19986 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19987 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
19988 | ac_cv_prog_PTHREAD_CC="$ac_prog" | |
19989 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19990 | break 2 | |
19991 | fi | |
19992 | done | |
19993 | done | |
19994 | IFS=$as_save_IFS | |
19995 | ||
19996 | fi | |
19997 | fi | |
19998 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC | |
19999 | if test -n "$PTHREAD_CC"; then | |
20000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 | |
20001 | $as_echo "$PTHREAD_CC" >&6; } | |
20002 | else | |
20003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20004 | $as_echo "no" >&6; } | |
20005 | fi | |
20006 | ||
20007 | ||
20008 | test -n "$PTHREAD_CC" && break | |
20009 | done | |
20010 | test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" | |
20011 | ;; | |
20012 | esac ;; #( | |
20013 | *) : | |
20014 | ;; | |
20015 | esac | |
20016 | ;; | |
20017 | esac | |
20018 | fi | |
20019 | fi | |
20020 | ||
20021 | test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" | |
20022 | ||
20023 | ||
20024 | ||
20025 | ||
20026 | ||
20027 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: | |
20028 | if test x"$ax_pthread_ok" = xyes; then | |
20029 | ||
20030 | $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h | |
20031 | ||
20032 | : | |
20033 | else | |
20034 | ax_pthread_ok=no | |
20035 | ||
20036 | fi | |
20037 | ac_ext=cpp | |
20038 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20039 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20040 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20041 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20042 | ||
20043 | ||
20044 | ||
20045 | ||
20046 | ||
babf7fe8 JF |
20047 | |
20048 | ||
20049 | ||
20050 | ||
20051 | # Check whether --enable-javascript was given. | |
20052 | if test "${enable_javascript+set}" = set; then : | |
20053 | enableval=$enable_javascript; | |
20054 | case $enableval in #( | |
20055 | yes) : | |
20056 | ||
20057 | ||
20058 | ||
20059 | ||
20060 | cy_save=$LIBS | |
20061 | LIBS= | |
9918a0fa JF |
20062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5 |
20063 | $as_echo_n "checking for library containing JSEvaluateScript... " >&6; } | |
20064 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
20065 | $as_echo_n "(cached) " >&6 | |
20066 | else | |
20067 | ac_func_search_save_LIBS=$LIBS | |
20068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20069 | /* end confdefs.h. */ | |
20070 | ||
20071 | /* Override any GCC internal prototype to avoid an error. | |
20072 | Use char because int might match the return type of a GCC | |
20073 | builtin and then its argument prototype would still apply. */ | |
20074 | #ifdef __cplusplus | |
20075 | extern "C" | |
20076 | #endif | |
20077 | char JSEvaluateScript (); | |
20078 | int | |
20079 | main () | |
20080 | { | |
20081 | return JSEvaluateScript (); | |
20082 | ; | |
20083 | return 0; | |
20084 | } | |
20085 | _ACEOF | |
20086 | for ac_lib in '' JavaScriptCore; do | |
20087 | if test -z "$ac_lib"; then | |
20088 | ac_res="none required" | |
20089 | else | |
20090 | ac_res=-l$ac_lib | |
20091 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
20092 | fi | |
20093 | if ac_fn_cxx_try_link "$LINENO"; then : | |
20094 | ac_cv_search_JSEvaluateScript=$ac_res | |
20095 | fi | |
20096 | rm -f core conftest.err conftest.$ac_objext \ | |
20097 | conftest$ac_exeext | |
20098 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
20099 | break | |
20100 | fi | |
20101 | done | |
20102 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
20103 | ||
20104 | else | |
20105 | ac_cv_search_JSEvaluateScript=no | |
20106 | fi | |
20107 | rm conftest.$ac_ext | |
20108 | LIBS=$ac_func_search_save_LIBS | |
20109 | fi | |
20110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5 | |
20111 | $as_echo "$ac_cv_search_JSEvaluateScript" >&6; } | |
20112 | ac_res=$ac_cv_search_JSEvaluateScript | |
20113 | if test "$ac_res" != no; then : | |
20114 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
20115 | ||
20116 | CY_EXECUTE=1 | |
20117 | ||
20118 | ||
20119 | else | |
babf7fe8 JF |
20120 | |
20121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
20122 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
20123 | if ${ac_cv_framework_JavaScriptCore+:} false; then : | |
20124 | $as_echo_n "(cached) " >&6 | |
20125 | else | |
20126 | ||
20127 | ac_check_framework_save_LIBS=$LIBS | |
20128 | LIBS="-framework JavaScriptCore $LIBS" | |
20129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20130 | /* end confdefs.h. */ | |
20131 | ||
20132 | #include <JavaScriptCore/JSBase.h> | |
20133 | ||
20134 | int | |
20135 | main () | |
20136 | { | |
20137 | ||
20138 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
20139 | ||
20140 | ; | |
20141 | return 0; | |
20142 | } | |
20143 | _ACEOF | |
20144 | if ac_fn_cxx_try_link "$LINENO"; then : | |
20145 | ||
20146 | ac_cv_framework_JavaScriptCore=yes | |
20147 | ||
20148 | else | |
20149 | ac_cv_framework_JavaScriptCore=no | |
20150 | fi | |
20151 | rm -f core conftest.err conftest.$ac_objext \ | |
20152 | conftest$ac_exeext conftest.$ac_ext | |
20153 | LIBS=$ac_check_framework_save_LIBS | |
20154 | ||
20155 | fi | |
20156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
20157 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
20158 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
20159 | ||
20160 | ||
20161 | for element in "-framework JavaScriptCore"; do | |
20162 | haveit= | |
20163 | for x in $LIBS; do | |
20164 | ||
20165 | acl_save_prefix="$prefix" | |
20166 | prefix="$acl_final_prefix" | |
20167 | acl_save_exec_prefix="$exec_prefix" | |
20168 | exec_prefix="$acl_final_exec_prefix" | |
20169 | eval x=\"$x\" | |
20170 | exec_prefix="$acl_save_exec_prefix" | |
20171 | prefix="$acl_save_prefix" | |
20172 | ||
20173 | if test "X$x" = "X$element"; then | |
20174 | haveit=yes | |
20175 | break | |
20176 | fi | |
20177 | done | |
20178 | if test -z "$haveit"; then | |
20179 | LIBS="${LIBS}${LIBS:+ }$element" | |
20180 | fi | |
20181 | done | |
20182 | ||
20183 | ||
20184 | CY_EXECUTE=1 | |
20185 | ||
20186 | ||
20187 | ||
20188 | else | |
20189 | ||
ccb4e34c | 20190 | for cy_webkit_pkg in "javascriptcoregtk-4.0"; do |
babf7fe8 JF |
20191 | |
20192 | pkg_failed=no | |
20193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
7eda51e0 | 20194 | $as_echo_n "checking for WEBKIT... " >&6; } |
5053a6d1 | 20195 | |
7eda51e0 JF |
20196 | if test -n "$WEBKIT_CFLAGS"; then |
20197 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
20198 | elif test -n "$PKG_CONFIG"; then | |
20199 | if test -n "$PKG_CONFIG" && \ | |
20200 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
20201 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
20202 | ac_status=$? | |
20203 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20204 | test $ac_status = 0; }; then | |
20205 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null` | |
83c6fec8 | 20206 | test "x$?" != "x0" && pkg_failed=yes |
7eda51e0 JF |
20207 | else |
20208 | pkg_failed=yes | |
20209 | fi | |
20210 | else | |
20211 | pkg_failed=untried | |
20212 | fi | |
20213 | if test -n "$WEBKIT_LIBS"; then | |
20214 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
20215 | elif test -n "$PKG_CONFIG"; then | |
20216 | if test -n "$PKG_CONFIG" && \ | |
20217 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
20218 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
20219 | ac_status=$? | |
20220 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20221 | test $ac_status = 0; }; then | |
20222 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null` | |
83c6fec8 | 20223 | test "x$?" != "x0" && pkg_failed=yes |
7eda51e0 JF |
20224 | else |
20225 | pkg_failed=yes | |
20226 | fi | |
20227 | else | |
20228 | pkg_failed=untried | |
20229 | fi | |
632b71ea | 20230 | |
7eda51e0 JF |
20231 | |
20232 | ||
20233 | if test $pkg_failed = yes; then | |
20234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20235 | $as_echo "no" >&6; } | |
20236 | ||
20237 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
20238 | _pkg_short_errors_supported=yes | |
20239 | else | |
20240 | _pkg_short_errors_supported=no | |
20241 | fi | |
20242 | if test $_pkg_short_errors_supported = yes; then | |
83c6fec8 | 20243 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
7eda51e0 | 20244 | else |
83c6fec8 | 20245 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
7eda51e0 JF |
20246 | fi |
20247 | # Put the nasty error message in config.log where it belongs | |
20248 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
20249 | ||
20250 | : | |
20251 | elif test $pkg_failed = untried; then | |
20252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20253 | $as_echo "no" >&6; } | |
20254 | : | |
20255 | else | |
20256 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
20257 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
20258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20259 | $as_echo "yes" >&6; } | |
20260 | ||
20261 | CY_EXECUTE=1 | |
20262 | ||
20263 | ||
7eda51e0 JF |
20264 | for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do |
20265 | haveit= | |
d70419f1 | 20266 | for x in $CPPFLAGS; do |
5053a6d1 | 20267 | |
7eda51e0 JF |
20268 | acl_save_prefix="$prefix" |
20269 | prefix="$acl_final_prefix" | |
20270 | acl_save_exec_prefix="$exec_prefix" | |
20271 | exec_prefix="$acl_final_exec_prefix" | |
20272 | eval x=\"$x\" | |
20273 | exec_prefix="$acl_save_exec_prefix" | |
20274 | prefix="$acl_save_prefix" | |
5053a6d1 | 20275 | |
7eda51e0 JF |
20276 | if test "X$x" = "X$element"; then |
20277 | haveit=yes | |
20278 | break | |
20279 | fi | |
20280 | done | |
20281 | if test -z "$haveit"; then | |
d70419f1 | 20282 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
7eda51e0 JF |
20283 | fi |
20284 | done | |
5053a6d1 | 20285 | |
5053a6d1 | 20286 | |
7eda51e0 | 20287 | for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do |
632b71ea | 20288 | haveit= |
5053a6d1 | 20289 | for x in $LIBS; do |
9c60689e | 20290 | |
632b71ea DWT |
20291 | acl_save_prefix="$prefix" |
20292 | prefix="$acl_final_prefix" | |
20293 | acl_save_exec_prefix="$exec_prefix" | |
20294 | exec_prefix="$acl_final_exec_prefix" | |
20295 | eval x=\"$x\" | |
20296 | exec_prefix="$acl_save_exec_prefix" | |
20297 | prefix="$acl_save_prefix" | |
20298 | ||
20299 | if test "X$x" = "X$element"; then | |
20300 | haveit=yes | |
20301 | break | |
20302 | fi | |
20303 | done | |
20304 | if test -z "$haveit"; then | |
5053a6d1 | 20305 | LIBS="${LIBS}${LIBS:+ }$element" |
632b71ea DWT |
20306 | fi |
20307 | done | |
b128dfee | 20308 | |
66170b30 | 20309 | |
7eda51e0 JF |
20310 | fi; if test "x$CY_EXECUTE" = x1; then break; fi |
20311 | done | |
5053a6d1 DWT |
20312 | |
20313 | fi | |
9918a0fa JF |
20314 | fi |
20315 | ||
babf7fe8 JF |
20316 | LTJAVASCRIPTCORE=$LIBS |
20317 | LIBS=$cy_save | |
20318 | ||
20319 | ||
7eda51e0 | 20320 | ;; #( |
babf7fe8 | 20321 | no) : |
7eda51e0 | 20322 | |
babf7fe8 JF |
20323 | CY_EXECUTE=0 |
20324 | ;; #( | |
20325 | JavaScriptCore) : | |
c823f118 | 20326 | |
5053a6d1 DWT |
20327 | |
20328 | ||
babf7fe8 JF |
20329 | cy_save=$LIBS |
20330 | LIBS= | |
9918a0fa JF |
20331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5 |
20332 | $as_echo_n "checking for library containing JSEvaluateScript... " >&6; } | |
20333 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
20334 | $as_echo_n "(cached) " >&6 | |
20335 | else | |
20336 | ac_func_search_save_LIBS=$LIBS | |
20337 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20338 | /* end confdefs.h. */ | |
20339 | ||
20340 | /* Override any GCC internal prototype to avoid an error. | |
20341 | Use char because int might match the return type of a GCC | |
20342 | builtin and then its argument prototype would still apply. */ | |
20343 | #ifdef __cplusplus | |
20344 | extern "C" | |
20345 | #endif | |
20346 | char JSEvaluateScript (); | |
20347 | int | |
20348 | main () | |
20349 | { | |
20350 | return JSEvaluateScript (); | |
20351 | ; | |
20352 | return 0; | |
20353 | } | |
20354 | _ACEOF | |
20355 | for ac_lib in '' JavaScriptCore; do | |
20356 | if test -z "$ac_lib"; then | |
20357 | ac_res="none required" | |
20358 | else | |
20359 | ac_res=-l$ac_lib | |
20360 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
20361 | fi | |
20362 | if ac_fn_cxx_try_link "$LINENO"; then : | |
20363 | ac_cv_search_JSEvaluateScript=$ac_res | |
20364 | fi | |
20365 | rm -f core conftest.err conftest.$ac_objext \ | |
20366 | conftest$ac_exeext | |
20367 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
20368 | break | |
20369 | fi | |
20370 | done | |
20371 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
20372 | ||
20373 | else | |
20374 | ac_cv_search_JSEvaluateScript=no | |
20375 | fi | |
20376 | rm conftest.$ac_ext | |
20377 | LIBS=$ac_func_search_save_LIBS | |
20378 | fi | |
20379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5 | |
20380 | $as_echo "$ac_cv_search_JSEvaluateScript" >&6; } | |
20381 | ac_res=$ac_cv_search_JSEvaluateScript | |
20382 | if test "$ac_res" != no; then : | |
20383 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
20384 | ||
20385 | CY_EXECUTE=1 | |
20386 | ||
20387 | ||
20388 | else | |
babf7fe8 | 20389 | |
5053a6d1 DWT |
20390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 |
20391 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
ee134472 | 20392 | if ${ac_cv_framework_JavaScriptCore+:} false; then : |
c823f118 DWT |
20393 | $as_echo_n "(cached) " >&6 |
20394 | else | |
20395 | ||
5053a6d1 DWT |
20396 | ac_check_framework_save_LIBS=$LIBS |
20397 | LIBS="-framework JavaScriptCore $LIBS" | |
20398 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
632b71ea | 20399 | /* end confdefs.h. */ |
5053a6d1 | 20400 | |
7eda51e0 | 20401 | #include <JavaScriptCore/JSBase.h> |
5053a6d1 | 20402 | |
632b71ea DWT |
20403 | int |
20404 | main () | |
20405 | { | |
66170b30 | 20406 | |
7eda51e0 | 20407 | JSEvaluateScript(0, 0, 0, 0, 0, 0); |
66170b30 | 20408 | |
632b71ea DWT |
20409 | ; |
20410 | return 0; | |
20411 | } | |
20412 | _ACEOF | |
5053a6d1 DWT |
20413 | if ac_fn_cxx_try_link "$LINENO"; then : |
20414 | ||
20415 | ac_cv_framework_JavaScriptCore=yes | |
20416 | ||
20417 | else | |
20418 | ac_cv_framework_JavaScriptCore=no | |
632b71ea DWT |
20419 | fi |
20420 | rm -f core conftest.err conftest.$ac_objext \ | |
20421 | conftest$ac_exeext conftest.$ac_ext | |
5053a6d1 | 20422 | LIBS=$ac_check_framework_save_LIBS |
b128dfee | 20423 | |
c823f118 | 20424 | fi |
5053a6d1 DWT |
20425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 |
20426 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
20427 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
c823f118 DWT |
20428 | |
20429 | ||
7eda51e0 | 20430 | for element in "-framework JavaScriptCore"; do |
5053a6d1 DWT |
20431 | haveit= |
20432 | for x in $LIBS; do | |
20433 | ||
20434 | acl_save_prefix="$prefix" | |
20435 | prefix="$acl_final_prefix" | |
20436 | acl_save_exec_prefix="$exec_prefix" | |
20437 | exec_prefix="$acl_final_exec_prefix" | |
20438 | eval x=\"$x\" | |
20439 | exec_prefix="$acl_save_exec_prefix" | |
20440 | prefix="$acl_save_prefix" | |
20441 | ||
20442 | if test "X$x" = "X$element"; then | |
20443 | haveit=yes | |
20444 | break | |
20445 | fi | |
20446 | done | |
20447 | if test -z "$haveit"; then | |
20448 | LIBS="${LIBS}${LIBS:+ }$element" | |
20449 | fi | |
20450 | done | |
c823f118 | 20451 | |
66170b30 | 20452 | |
7eda51e0 JF |
20453 | CY_EXECUTE=1 |
20454 | ||
20455 | ||
20456 | ||
20457 | else | |
20458 | ||
ccb4e34c | 20459 | for cy_webkit_pkg in "javascriptcoregtk-4.0"; do |
7eda51e0 JF |
20460 | |
20461 | pkg_failed=no | |
20462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
20463 | $as_echo_n "checking for WEBKIT... " >&6; } | |
20464 | ||
20465 | if test -n "$WEBKIT_CFLAGS"; then | |
20466 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
20467 | elif test -n "$PKG_CONFIG"; then | |
20468 | if test -n "$PKG_CONFIG" && \ | |
20469 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
20470 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
20471 | ac_status=$? | |
20472 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20473 | test $ac_status = 0; }; then | |
20474 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null` | |
83c6fec8 | 20475 | test "x$?" != "x0" && pkg_failed=yes |
7eda51e0 JF |
20476 | else |
20477 | pkg_failed=yes | |
20478 | fi | |
20479 | else | |
20480 | pkg_failed=untried | |
20481 | fi | |
20482 | if test -n "$WEBKIT_LIBS"; then | |
20483 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
20484 | elif test -n "$PKG_CONFIG"; then | |
20485 | if test -n "$PKG_CONFIG" && \ | |
20486 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
20487 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
20488 | ac_status=$? | |
20489 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20490 | test $ac_status = 0; }; then | |
20491 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null` | |
83c6fec8 | 20492 | test "x$?" != "x0" && pkg_failed=yes |
7eda51e0 JF |
20493 | else |
20494 | pkg_failed=yes | |
20495 | fi | |
20496 | else | |
20497 | pkg_failed=untried | |
20498 | fi | |
20499 | ||
66170b30 JF |
20500 | |
20501 | ||
7eda51e0 JF |
20502 | if test $pkg_failed = yes; then |
20503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20504 | $as_echo "no" >&6; } | |
b128dfee | 20505 | |
7eda51e0 JF |
20506 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
20507 | _pkg_short_errors_supported=yes | |
20508 | else | |
20509 | _pkg_short_errors_supported=no | |
632b71ea | 20510 | fi |
7eda51e0 | 20511 | if test $_pkg_short_errors_supported = yes; then |
83c6fec8 | 20512 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
7eda51e0 | 20513 | else |
83c6fec8 | 20514 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
7eda51e0 JF |
20515 | fi |
20516 | # Put the nasty error message in config.log where it belongs | |
20517 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
c823f118 | 20518 | |
7eda51e0 JF |
20519 | : |
20520 | elif test $pkg_failed = untried; then | |
20521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20522 | $as_echo "no" >&6; } | |
20523 | : | |
5053a6d1 DWT |
20524 | else |
20525 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
20526 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
20527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20528 | $as_echo "yes" >&6; } | |
c823f118 | 20529 | |
7eda51e0 JF |
20530 | CY_EXECUTE=1 |
20531 | ||
66170b30 | 20532 | |
7eda51e0 | 20533 | for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do |
5053a6d1 | 20534 | haveit= |
d70419f1 | 20535 | for x in $CPPFLAGS; do |
c823f118 | 20536 | |
5053a6d1 DWT |
20537 | acl_save_prefix="$prefix" |
20538 | prefix="$acl_final_prefix" | |
20539 | acl_save_exec_prefix="$exec_prefix" | |
20540 | exec_prefix="$acl_final_exec_prefix" | |
20541 | eval x=\"$x\" | |
20542 | exec_prefix="$acl_save_exec_prefix" | |
20543 | prefix="$acl_save_prefix" | |
c823f118 | 20544 | |
5053a6d1 DWT |
20545 | if test "X$x" = "X$element"; then |
20546 | haveit=yes | |
20547 | break | |
20548 | fi | |
20549 | done | |
20550 | if test -z "$haveit"; then | |
d70419f1 | 20551 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
5053a6d1 DWT |
20552 | fi |
20553 | done | |
c823f118 | 20554 | |
b66977f1 | 20555 | |
7eda51e0 | 20556 | for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do |
5053a6d1 DWT |
20557 | haveit= |
20558 | for x in $LIBS; do | |
20559 | ||
20560 | acl_save_prefix="$prefix" | |
20561 | prefix="$acl_final_prefix" | |
20562 | acl_save_exec_prefix="$exec_prefix" | |
20563 | exec_prefix="$acl_final_exec_prefix" | |
20564 | eval x=\"$x\" | |
20565 | exec_prefix="$acl_save_exec_prefix" | |
20566 | prefix="$acl_save_prefix" | |
20567 | ||
20568 | if test "X$x" = "X$element"; then | |
20569 | haveit=yes | |
20570 | break | |
20571 | fi | |
20572 | done | |
20573 | if test -z "$haveit"; then | |
20574 | LIBS="${LIBS}${LIBS:+ }$element" | |
20575 | fi | |
20576 | done | |
20577 | ||
20578 | ||
7eda51e0 JF |
20579 | fi; if test "x$CY_EXECUTE" = x1; then break; fi |
20580 | done | |
20581 | ||
5053a6d1 | 20582 | fi |
9918a0fa JF |
20583 | fi |
20584 | ||
babf7fe8 JF |
20585 | LTJAVASCRIPTCORE=$LIBS |
20586 | LIBS=$cy_save | |
5053a6d1 | 20587 | |
b66977f1 | 20588 | |
babf7fe8 JF |
20589 | ;; #( |
20590 | *) : | |
20591 | as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;; | |
20592 | esac | |
b66977f1 | 20593 | |
babf7fe8 | 20594 | else |
b66977f1 | 20595 | |
7eda51e0 | 20596 | |
7eda51e0 | 20597 | |
babf7fe8 JF |
20598 | cy_save=$LIBS |
20599 | LIBS= | |
9918a0fa JF |
20600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5 |
20601 | $as_echo_n "checking for library containing JSEvaluateScript... " >&6; } | |
20602 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
20603 | $as_echo_n "(cached) " >&6 | |
20604 | else | |
20605 | ac_func_search_save_LIBS=$LIBS | |
20606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20607 | /* end confdefs.h. */ | |
20608 | ||
20609 | /* Override any GCC internal prototype to avoid an error. | |
20610 | Use char because int might match the return type of a GCC | |
20611 | builtin and then its argument prototype would still apply. */ | |
20612 | #ifdef __cplusplus | |
20613 | extern "C" | |
20614 | #endif | |
20615 | char JSEvaluateScript (); | |
20616 | int | |
20617 | main () | |
20618 | { | |
20619 | return JSEvaluateScript (); | |
20620 | ; | |
20621 | return 0; | |
20622 | } | |
20623 | _ACEOF | |
20624 | for ac_lib in '' JavaScriptCore; do | |
20625 | if test -z "$ac_lib"; then | |
20626 | ac_res="none required" | |
20627 | else | |
20628 | ac_res=-l$ac_lib | |
20629 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
20630 | fi | |
20631 | if ac_fn_cxx_try_link "$LINENO"; then : | |
20632 | ac_cv_search_JSEvaluateScript=$ac_res | |
20633 | fi | |
20634 | rm -f core conftest.err conftest.$ac_objext \ | |
20635 | conftest$ac_exeext | |
20636 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
20637 | break | |
20638 | fi | |
20639 | done | |
20640 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
20641 | ||
20642 | else | |
20643 | ac_cv_search_JSEvaluateScript=no | |
20644 | fi | |
20645 | rm conftest.$ac_ext | |
20646 | LIBS=$ac_func_search_save_LIBS | |
20647 | fi | |
20648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5 | |
20649 | $as_echo "$ac_cv_search_JSEvaluateScript" >&6; } | |
20650 | ac_res=$ac_cv_search_JSEvaluateScript | |
20651 | if test "$ac_res" != no; then : | |
20652 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
20653 | ||
20654 | CY_EXECUTE=1 | |
20655 | ||
20656 | ||
20657 | else | |
7eda51e0 | 20658 | |
babf7fe8 JF |
20659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 |
20660 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
20661 | if ${ac_cv_framework_JavaScriptCore+:} false; then : | |
20662 | $as_echo_n "(cached) " >&6 | |
20663 | else | |
7eda51e0 | 20664 | |
babf7fe8 JF |
20665 | ac_check_framework_save_LIBS=$LIBS |
20666 | LIBS="-framework JavaScriptCore $LIBS" | |
20667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20668 | /* end confdefs.h. */ | |
7eda51e0 | 20669 | |
babf7fe8 | 20670 | #include <JavaScriptCore/JSBase.h> |
7eda51e0 | 20671 | |
babf7fe8 JF |
20672 | int |
20673 | main () | |
20674 | { | |
7eda51e0 | 20675 | |
babf7fe8 | 20676 | JSEvaluateScript(0, 0, 0, 0, 0, 0); |
7eda51e0 | 20677 | |
babf7fe8 JF |
20678 | ; |
20679 | return 0; | |
20680 | } | |
20681 | _ACEOF | |
20682 | if ac_fn_cxx_try_link "$LINENO"; then : | |
7eda51e0 | 20683 | |
babf7fe8 | 20684 | ac_cv_framework_JavaScriptCore=yes |
b66977f1 | 20685 | |
b66977f1 | 20686 | else |
babf7fe8 JF |
20687 | ac_cv_framework_JavaScriptCore=no |
20688 | fi | |
20689 | rm -f core conftest.err conftest.$ac_objext \ | |
20690 | conftest$ac_exeext conftest.$ac_ext | |
20691 | LIBS=$ac_check_framework_save_LIBS | |
7eda51e0 | 20692 | |
babf7fe8 JF |
20693 | fi |
20694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
20695 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
20696 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
7eda51e0 | 20697 | |
7eda51e0 | 20698 | |
babf7fe8 JF |
20699 | for element in "-framework JavaScriptCore"; do |
20700 | haveit= | |
20701 | for x in $LIBS; do | |
20702 | ||
20703 | acl_save_prefix="$prefix" | |
20704 | prefix="$acl_final_prefix" | |
20705 | acl_save_exec_prefix="$exec_prefix" | |
20706 | exec_prefix="$acl_final_exec_prefix" | |
20707 | eval x=\"$x\" | |
20708 | exec_prefix="$acl_save_exec_prefix" | |
20709 | prefix="$acl_save_prefix" | |
20710 | ||
20711 | if test "X$x" = "X$element"; then | |
20712 | haveit=yes | |
20713 | break | |
20714 | fi | |
20715 | done | |
20716 | if test -z "$haveit"; then | |
20717 | LIBS="${LIBS}${LIBS:+ }$element" | |
20718 | fi | |
20719 | done | |
20720 | ||
20721 | ||
20722 | CY_EXECUTE=1 | |
20723 | ||
20724 | ||
20725 | ||
20726 | else | |
20727 | ||
ccb4e34c | 20728 | for cy_webkit_pkg in "javascriptcoregtk-4.0"; do |
babf7fe8 JF |
20729 | |
20730 | pkg_failed=no | |
20731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
20732 | $as_echo_n "checking for WEBKIT... " >&6; } | |
20733 | ||
20734 | if test -n "$WEBKIT_CFLAGS"; then | |
20735 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
20736 | elif test -n "$PKG_CONFIG"; then | |
20737 | if test -n "$PKG_CONFIG" && \ | |
20738 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
20739 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
20740 | ac_status=$? | |
20741 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20742 | test $ac_status = 0; }; then | |
20743 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null` | |
83c6fec8 | 20744 | test "x$?" != "x0" && pkg_failed=yes |
babf7fe8 JF |
20745 | else |
20746 | pkg_failed=yes | |
20747 | fi | |
20748 | else | |
20749 | pkg_failed=untried | |
20750 | fi | |
20751 | if test -n "$WEBKIT_LIBS"; then | |
20752 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
20753 | elif test -n "$PKG_CONFIG"; then | |
20754 | if test -n "$PKG_CONFIG" && \ | |
20755 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
20756 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
20757 | ac_status=$? | |
20758 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20759 | test $ac_status = 0; }; then | |
20760 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null` | |
83c6fec8 | 20761 | test "x$?" != "x0" && pkg_failed=yes |
babf7fe8 JF |
20762 | else |
20763 | pkg_failed=yes | |
20764 | fi | |
20765 | else | |
20766 | pkg_failed=untried | |
20767 | fi | |
20768 | ||
20769 | ||
20770 | ||
20771 | if test $pkg_failed = yes; then | |
20772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20773 | $as_echo "no" >&6; } | |
20774 | ||
20775 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
20776 | _pkg_short_errors_supported=yes | |
20777 | else | |
20778 | _pkg_short_errors_supported=no | |
20779 | fi | |
20780 | if test $_pkg_short_errors_supported = yes; then | |
83c6fec8 | 20781 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
babf7fe8 | 20782 | else |
83c6fec8 | 20783 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
babf7fe8 JF |
20784 | fi |
20785 | # Put the nasty error message in config.log where it belongs | |
20786 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
20787 | ||
20788 | : | |
20789 | elif test $pkg_failed = untried; then | |
20790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20791 | $as_echo "no" >&6; } | |
20792 | : | |
20793 | else | |
20794 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
20795 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
20796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20797 | $as_echo "yes" >&6; } | |
20798 | ||
20799 | CY_EXECUTE=1 | |
20800 | ||
20801 | ||
20802 | for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do | |
20803 | haveit= | |
20804 | for x in $CPPFLAGS; do | |
20805 | ||
20806 | acl_save_prefix="$prefix" | |
20807 | prefix="$acl_final_prefix" | |
20808 | acl_save_exec_prefix="$exec_prefix" | |
20809 | exec_prefix="$acl_final_exec_prefix" | |
20810 | eval x=\"$x\" | |
20811 | exec_prefix="$acl_save_exec_prefix" | |
20812 | prefix="$acl_save_prefix" | |
20813 | ||
20814 | if test "X$x" = "X$element"; then | |
20815 | haveit=yes | |
20816 | break | |
20817 | fi | |
20818 | done | |
20819 | if test -z "$haveit"; then | |
20820 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
20821 | fi | |
20822 | done | |
20823 | ||
20824 | ||
20825 | for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do | |
20826 | haveit= | |
20827 | for x in $LIBS; do | |
20828 | ||
20829 | acl_save_prefix="$prefix" | |
20830 | prefix="$acl_final_prefix" | |
20831 | acl_save_exec_prefix="$exec_prefix" | |
20832 | exec_prefix="$acl_final_exec_prefix" | |
20833 | eval x=\"$x\" | |
20834 | exec_prefix="$acl_save_exec_prefix" | |
20835 | prefix="$acl_save_prefix" | |
20836 | ||
20837 | if test "X$x" = "X$element"; then | |
20838 | haveit=yes | |
20839 | break | |
20840 | fi | |
20841 | done | |
20842 | if test -z "$haveit"; then | |
20843 | LIBS="${LIBS}${LIBS:+ }$element" | |
20844 | fi | |
20845 | done | |
20846 | ||
20847 | ||
20848 | fi; if test "x$CY_EXECUTE" = x1; then break; fi | |
20849 | done | |
20850 | ||
20851 | fi | |
9918a0fa JF |
20852 | fi |
20853 | ||
babf7fe8 JF |
20854 | LTJAVASCRIPTCORE=$LIBS |
20855 | LIBS=$cy_save | |
20856 | ||
20857 | ||
20858 | ||
20859 | fi | |
20860 | ||
20861 | ||
a93f15c0 JF |
20862 | # Check whether --enable-console was given. |
20863 | if test "${enable_console+set}" = set; then : | |
20864 | enableval=$enable_console; | |
20865 | fi | |
20866 | ||
20867 | if test "x$enable_console" != "xno"; then | |
20868 | CY_CONSOLE_TRUE= | |
20869 | CY_CONSOLE_FALSE='#' | |
20870 | else | |
20871 | CY_CONSOLE_TRUE='#' | |
20872 | CY_CONSOLE_FALSE= | |
20873 | fi | |
20874 | ||
20875 | ||
a4287117 JF |
20876 | # Check whether --enable-attach was given. |
20877 | if test "${enable_attach+set}" = set; then : | |
20878 | enableval=$enable_attach; | |
20879 | fi | |
20880 | ||
20881 | if test "x$enable_attach" != "xno" -a "x$CY_EXECUTE" = x1; then | |
20882 | CY_ATTACH_TRUE= | |
20883 | CY_ATTACH_FALSE='#' | |
20884 | else | |
20885 | CY_ATTACH_TRUE='#' | |
20886 | CY_ATTACH_FALSE= | |
20887 | fi | |
20888 | ||
20889 | ||
7eda51e0 JF |
20890 | |
20891 | ||
20892 | if test "x$CY_EXECUTE" = x1; then | |
20893 | CY_EXECUTE_TRUE= | |
20894 | CY_EXECUTE_FALSE='#' | |
b66977f1 | 20895 | else |
7eda51e0 JF |
20896 | CY_EXECUTE_TRUE='#' |
20897 | CY_EXECUTE_FALSE= | |
b66977f1 DWT |
20898 | fi |
20899 | ||
20900 | ||
20901 | ||
7eda51e0 JF |
20902 | case $CY_EXECUTE in #( |
20903 | 1) : | |
20904 | ||
ae1b611e JF |
20905 | |
20906 | cy_save=$LIBS | |
20907 | LIBS= | |
20908 | for ac_header in uv.h | |
20909 | do : | |
20910 | ac_fn_cxx_check_header_mongrel "$LINENO" "uv.h" "ac_cv_header_uv_h" "$ac_includes_default" | |
20911 | if test "x$ac_cv_header_uv_h" = xyes; then : | |
20912 | cat >>confdefs.h <<_ACEOF | |
20913 | #define HAVE_UV_H 1 | |
20914 | _ACEOF | |
20915 | ||
20916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uv_loop_init" >&5 | |
20917 | $as_echo_n "checking for library containing uv_loop_init... " >&6; } | |
20918 | if ${ac_cv_search_uv_loop_init+:} false; then : | |
20919 | $as_echo_n "(cached) " >&6 | |
20920 | else | |
20921 | ac_func_search_save_LIBS=$LIBS | |
20922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20923 | /* end confdefs.h. */ | |
20924 | ||
20925 | /* Override any GCC internal prototype to avoid an error. | |
20926 | Use char because int might match the return type of a GCC | |
20927 | builtin and then its argument prototype would still apply. */ | |
20928 | #ifdef __cplusplus | |
20929 | extern "C" | |
20930 | #endif | |
20931 | char uv_loop_init (); | |
20932 | int | |
20933 | main () | |
20934 | { | |
20935 | return uv_loop_init (); | |
20936 | ; | |
20937 | return 0; | |
20938 | } | |
20939 | _ACEOF | |
20940 | for ac_lib in '' uv; do | |
20941 | if test -z "$ac_lib"; then | |
20942 | ac_res="none required" | |
20943 | else | |
20944 | ac_res=-l$ac_lib | |
20945 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
20946 | fi | |
20947 | if ac_fn_cxx_try_link "$LINENO"; then : | |
20948 | ac_cv_search_uv_loop_init=$ac_res | |
20949 | fi | |
20950 | rm -f core conftest.err conftest.$ac_objext \ | |
20951 | conftest$ac_exeext | |
20952 | if ${ac_cv_search_uv_loop_init+:} false; then : | |
20953 | break | |
20954 | fi | |
20955 | done | |
20956 | if ${ac_cv_search_uv_loop_init+:} false; then : | |
20957 | ||
20958 | else | |
20959 | ac_cv_search_uv_loop_init=no | |
20960 | fi | |
20961 | rm conftest.$ac_ext | |
20962 | LIBS=$ac_func_search_save_LIBS | |
20963 | fi | |
20964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uv_loop_init" >&5 | |
20965 | $as_echo "$ac_cv_search_uv_loop_init" >&6; } | |
20966 | ac_res=$ac_cv_search_uv_loop_init | |
20967 | if test "$ac_res" != no; then : | |
20968 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
20969 | ||
20970 | fi | |
20971 | ||
20972 | ||
20973 | fi | |
20974 | ||
20975 | done | |
20976 | ||
20977 | LTLIBUV=$LIBS | |
20978 | LIBS=$cy_save | |
20979 | ||
20980 | ||
20981 | ||
7eda51e0 JF |
20982 | for ac_header in ffi.h ffi/ffi.h |
20983 | do : | |
20984 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
20985 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
20986 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
20987 | cat >>confdefs.h <<_ACEOF | |
20988 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
20989 | _ACEOF | |
20990 | break | |
b66977f1 | 20991 | fi |
7eda51e0 JF |
20992 | |
20993 | done | |
20994 | ||
296ee9a6 JF |
20995 | |
20996 | ||
20997 | cy_save=$LIBS | |
20998 | LIBS= | |
7eda51e0 | 20999 | if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then : |
b66977f1 | 21000 | |
b66977f1 | 21001 | |
296ee9a6 JF |
21002 | LIBFFI_CFLAGS |
21003 | C compiler flags for LIBFFI, overriding pkg-config | |
21004 | LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config | |
b66977f1 DWT |
21005 | |
21006 | pkg_failed=no | |
7eda51e0 JF |
21007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 |
21008 | $as_echo_n "checking for LIBFFI... " >&6; } | |
b66977f1 | 21009 | |
7eda51e0 JF |
21010 | if test -n "$LIBFFI_CFLAGS"; then |
21011 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
12833ad8 JF |
21012 | elif test -n "$PKG_CONFIG"; then |
21013 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
21014 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
21015 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
21016 | ac_status=$? |
21017 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21018 | test $ac_status = 0; }; then | |
7eda51e0 | 21019 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` |
83c6fec8 | 21020 | test "x$?" != "x0" && pkg_failed=yes |
b66977f1 DWT |
21021 | else |
21022 | pkg_failed=yes | |
21023 | fi | |
12833ad8 JF |
21024 | else |
21025 | pkg_failed=untried | |
b66977f1 | 21026 | fi |
7eda51e0 JF |
21027 | if test -n "$LIBFFI_LIBS"; then |
21028 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
12833ad8 JF |
21029 | elif test -n "$PKG_CONFIG"; then |
21030 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
21031 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
21032 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
21033 | ac_status=$? |
21034 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21035 | test $ac_status = 0; }; then | |
7eda51e0 | 21036 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` |
83c6fec8 | 21037 | test "x$?" != "x0" && pkg_failed=yes |
b66977f1 DWT |
21038 | else |
21039 | pkg_failed=yes | |
21040 | fi | |
12833ad8 JF |
21041 | else |
21042 | pkg_failed=untried | |
b66977f1 DWT |
21043 | fi |
21044 | ||
21045 | ||
21046 | ||
21047 | if test $pkg_failed = yes; then | |
12833ad8 JF |
21048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
21049 | $as_echo "no" >&6; } | |
b66977f1 DWT |
21050 | |
21051 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
21052 | _pkg_short_errors_supported=yes | |
21053 | else | |
21054 | _pkg_short_errors_supported=no | |
21055 | fi | |
21056 | if test $_pkg_short_errors_supported = yes; then | |
83c6fec8 | 21057 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1` |
b66977f1 | 21058 | else |
83c6fec8 | 21059 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1` |
b66977f1 DWT |
21060 | fi |
21061 | # Put the nasty error message in config.log where it belongs | |
7eda51e0 | 21062 | echo "$LIBFFI_PKG_ERRORS" >&5 |
b66977f1 | 21063 | |
7eda51e0 JF |
21064 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 |
21065 | elif test $pkg_failed = untried; then | |
21066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21067 | $as_echo "no" >&6; } | |
21068 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 | |
21069 | else | |
21070 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS | |
21071 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
21072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21073 | $as_echo "yes" >&6; } | |
b66977f1 DWT |
21074 | |
21075 | ||
7eda51e0 | 21076 | for element in `$PKG_CONFIG --cflags libffi`; do |
b66977f1 | 21077 | haveit= |
d70419f1 | 21078 | for x in $CPPFLAGS; do |
b66977f1 DWT |
21079 | |
21080 | acl_save_prefix="$prefix" | |
21081 | prefix="$acl_final_prefix" | |
21082 | acl_save_exec_prefix="$exec_prefix" | |
21083 | exec_prefix="$acl_final_exec_prefix" | |
21084 | eval x=\"$x\" | |
21085 | exec_prefix="$acl_save_exec_prefix" | |
21086 | prefix="$acl_save_prefix" | |
21087 | ||
21088 | if test "X$x" = "X$element"; then | |
21089 | haveit=yes | |
21090 | break | |
21091 | fi | |
21092 | done | |
21093 | if test -z "$haveit"; then | |
d70419f1 | 21094 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
b66977f1 DWT |
21095 | fi |
21096 | done | |
21097 | ||
21098 | ||
7eda51e0 | 21099 | for element in `$PKG_CONFIG --libs libffi`; do |
b66977f1 DWT |
21100 | haveit= |
21101 | for x in $LIBS; do | |
21102 | ||
21103 | acl_save_prefix="$prefix" | |
21104 | prefix="$acl_final_prefix" | |
21105 | acl_save_exec_prefix="$exec_prefix" | |
21106 | exec_prefix="$acl_final_exec_prefix" | |
21107 | eval x=\"$x\" | |
21108 | exec_prefix="$acl_save_exec_prefix" | |
21109 | prefix="$acl_save_prefix" | |
21110 | ||
21111 | if test "X$x" = "X$element"; then | |
21112 | haveit=yes | |
21113 | break | |
21114 | fi | |
21115 | done | |
21116 | if test -z "$haveit"; then | |
21117 | LIBS="${LIBS}${LIBS:+ }$element" | |
21118 | fi | |
21119 | done | |
21120 | ||
21121 | ||
21122 | fi | |
21123 | ||
7eda51e0 JF |
21124 | else |
21125 | ||
21126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 | |
21127 | $as_echo_n "checking for library containing ffi_call... " >&6; } | |
21128 | if ${ac_cv_search_ffi_call+:} false; then : | |
21129 | $as_echo_n "(cached) " >&6 | |
21130 | else | |
21131 | ac_func_search_save_LIBS=$LIBS | |
21132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21133 | /* end confdefs.h. */ | |
21134 | ||
21135 | /* Override any GCC internal prototype to avoid an error. | |
21136 | Use char because int might match the return type of a GCC | |
21137 | builtin and then its argument prototype would still apply. */ | |
21138 | #ifdef __cplusplus | |
21139 | extern "C" | |
21140 | #endif | |
21141 | char ffi_call (); | |
21142 | int | |
21143 | main () | |
21144 | { | |
21145 | return ffi_call (); | |
21146 | ; | |
21147 | return 0; | |
21148 | } | |
21149 | _ACEOF | |
21150 | for ac_lib in '' ffi; do | |
21151 | if test -z "$ac_lib"; then | |
21152 | ac_res="none required" | |
21153 | else | |
21154 | ac_res=-l$ac_lib | |
21155 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
21156 | fi | |
21157 | if ac_fn_cxx_try_link "$LINENO"; then : | |
21158 | ac_cv_search_ffi_call=$ac_res | |
21159 | fi | |
21160 | rm -f core conftest.err conftest.$ac_objext \ | |
21161 | conftest$ac_exeext | |
21162 | if ${ac_cv_search_ffi_call+:} false; then : | |
21163 | break | |
21164 | fi | |
21165 | done | |
21166 | if ${ac_cv_search_ffi_call+:} false; then : | |
21167 | ||
21168 | else | |
21169 | ac_cv_search_ffi_call=no | |
21170 | fi | |
21171 | rm conftest.$ac_ext | |
21172 | LIBS=$ac_func_search_save_LIBS | |
21173 | fi | |
21174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 | |
21175 | $as_echo "$ac_cv_search_ffi_call" >&6; } | |
21176 | ac_res=$ac_cv_search_ffi_call | |
21177 | if test "$ac_res" != no; then : | |
21178 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
21179 | ||
21180 | fi | |
21181 | ||
21182 | case $ac_cv_search_ffi_call in #( | |
21183 | no) : | |
b66977f1 DWT |
21184 | |
21185 | ||
21186 | pkg_failed=no | |
7eda51e0 JF |
21187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 |
21188 | $as_echo_n "checking for LIBFFI... " >&6; } | |
b66977f1 | 21189 | |
7eda51e0 JF |
21190 | if test -n "$LIBFFI_CFLAGS"; then |
21191 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
12833ad8 JF |
21192 | elif test -n "$PKG_CONFIG"; then |
21193 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
21194 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
21195 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
21196 | ac_status=$? |
21197 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21198 | test $ac_status = 0; }; then | |
7eda51e0 | 21199 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` |
83c6fec8 | 21200 | test "x$?" != "x0" && pkg_failed=yes |
b66977f1 DWT |
21201 | else |
21202 | pkg_failed=yes | |
21203 | fi | |
12833ad8 JF |
21204 | else |
21205 | pkg_failed=untried | |
b66977f1 | 21206 | fi |
7eda51e0 JF |
21207 | if test -n "$LIBFFI_LIBS"; then |
21208 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
12833ad8 JF |
21209 | elif test -n "$PKG_CONFIG"; then |
21210 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
21211 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
21212 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
21213 | ac_status=$? |
21214 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
21215 | test $ac_status = 0; }; then | |
7eda51e0 | 21216 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` |
83c6fec8 | 21217 | test "x$?" != "x0" && pkg_failed=yes |
b66977f1 DWT |
21218 | else |
21219 | pkg_failed=yes | |
21220 | fi | |
12833ad8 JF |
21221 | else |
21222 | pkg_failed=untried | |
b66977f1 DWT |
21223 | fi |
21224 | ||
21225 | ||
21226 | ||
21227 | if test $pkg_failed = yes; then | |
12833ad8 JF |
21228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
21229 | $as_echo "no" >&6; } | |
b66977f1 DWT |
21230 | |
21231 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
21232 | _pkg_short_errors_supported=yes | |
21233 | else | |
21234 | _pkg_short_errors_supported=no | |
21235 | fi | |
21236 | if test $_pkg_short_errors_supported = yes; then | |
83c6fec8 | 21237 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1` |
b66977f1 | 21238 | else |
83c6fec8 | 21239 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1` |
b66977f1 DWT |
21240 | fi |
21241 | # Put the nasty error message in config.log where it belongs | |
7eda51e0 | 21242 | echo "$LIBFFI_PKG_ERRORS" >&5 |
b66977f1 | 21243 | |
7eda51e0 JF |
21244 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 |
21245 | elif test $pkg_failed = untried; then | |
21246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21247 | $as_echo "no" >&6; } | |
21248 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 | |
b66977f1 | 21249 | else |
7eda51e0 JF |
21250 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS |
21251 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
21252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21253 | $as_echo "yes" >&6; } | |
b66977f1 | 21254 | |
b66977f1 | 21255 | |
7eda51e0 | 21256 | for element in `$PKG_CONFIG --cflags libffi`; do |
b66977f1 | 21257 | haveit= |
d70419f1 | 21258 | for x in $CPPFLAGS; do |
7eda51e0 JF |
21259 | |
21260 | acl_save_prefix="$prefix" | |
21261 | prefix="$acl_final_prefix" | |
21262 | acl_save_exec_prefix="$exec_prefix" | |
21263 | exec_prefix="$acl_final_exec_prefix" | |
21264 | eval x=\"$x\" | |
21265 | exec_prefix="$acl_save_exec_prefix" | |
21266 | prefix="$acl_save_prefix" | |
21267 | ||
21268 | if test "X$x" = "X$element"; then | |
21269 | haveit=yes | |
21270 | break | |
21271 | fi | |
21272 | done | |
21273 | if test -z "$haveit"; then | |
d70419f1 | 21274 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
7eda51e0 JF |
21275 | fi |
21276 | done | |
21277 | ||
21278 | ||
7eda51e0 JF |
21279 | for element in `$PKG_CONFIG --libs libffi`; do |
21280 | haveit= | |
21281 | for x in $LIBS; do | |
21282 | ||
21283 | acl_save_prefix="$prefix" | |
21284 | prefix="$acl_final_prefix" | |
21285 | acl_save_exec_prefix="$exec_prefix" | |
21286 | exec_prefix="$acl_final_exec_prefix" | |
21287 | eval x=\"$x\" | |
21288 | exec_prefix="$acl_save_exec_prefix" | |
21289 | prefix="$acl_save_prefix" | |
21290 | ||
21291 | if test "X$x" = "X$element"; then | |
21292 | haveit=yes | |
21293 | break | |
21294 | fi | |
21295 | done | |
21296 | if test -z "$haveit"; then | |
21297 | LIBS="${LIBS}${LIBS:+ }$element" | |
21298 | fi | |
21299 | done | |
21300 | ||
21301 | ||
21302 | fi ;; #( | |
21303 | *) : | |
21304 | ;; | |
21305 | esac | |
21306 | ||
21307 | fi | |
296ee9a6 JF |
21308 | LTLIBFFI=$LIBS |
21309 | LIBS=$cy_save | |
21310 | ||
21311 | ||
7eda51e0 | 21312 | |
def90846 JF |
21313 | |
21314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaVM" >&5 | |
21315 | $as_echo_n "checking for framework JavaVM... " >&6; } | |
21316 | if ${ac_cv_framework_JavaVM+:} false; then : | |
21317 | $as_echo_n "(cached) " >&6 | |
21318 | else | |
21319 | ||
21320 | ac_check_framework_save_LIBS=$LIBS | |
21321 | LIBS="-framework JavaVM $LIBS" | |
21322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21323 | /* end confdefs.h. */ | |
21324 | ||
21325 | #include <JavaVM/jni.h> | |
21326 | ||
21327 | int | |
21328 | main () | |
21329 | { | |
21330 | JNI_GetCreatedJavaVMs(NULL, 0, NULL); | |
21331 | ; | |
21332 | return 0; | |
21333 | } | |
21334 | _ACEOF | |
21335 | if ac_fn_cxx_try_link "$LINENO"; then : | |
21336 | ||
21337 | ac_cv_framework_JavaVM=yes | |
21338 | ||
21339 | else | |
21340 | ac_cv_framework_JavaVM=no | |
21341 | fi | |
21342 | rm -f core conftest.err conftest.$ac_objext \ | |
21343 | conftest$ac_exeext conftest.$ac_ext | |
21344 | LIBS=$ac_check_framework_save_LIBS | |
21345 | ||
21346 | fi | |
21347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaVM" >&5 | |
21348 | $as_echo "$ac_cv_framework_JavaVM" >&6; } | |
21349 | if test $ac_cv_framework_JavaVM = yes; then : | |
21350 | ||
21351 | ||
21352 | for element in "-framework JavaVM"; do | |
21353 | haveit= | |
21354 | for x in $LIBS; do | |
21355 | ||
21356 | acl_save_prefix="$prefix" | |
21357 | prefix="$acl_final_prefix" | |
21358 | acl_save_exec_prefix="$exec_prefix" | |
21359 | exec_prefix="$acl_final_exec_prefix" | |
21360 | eval x=\"$x\" | |
21361 | exec_prefix="$acl_save_exec_prefix" | |
21362 | prefix="$acl_save_prefix" | |
21363 | ||
21364 | if test "X$x" = "X$element"; then | |
21365 | haveit=yes | |
21366 | break | |
21367 | fi | |
21368 | done | |
21369 | if test -z "$haveit"; then | |
21370 | LIBS="${LIBS}${LIBS:+ }$element" | |
21371 | fi | |
21372 | done | |
21373 | ||
21374 | ||
21375 | CY_JAVA=1 | |
21376 | ||
21377 | ||
21378 | ||
21379 | else | |
21380 | ac_fn_cxx_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default" | |
39ed1631 JF |
21381 | if test "x$ac_cv_header_jni_h" = xyes; then : |
21382 | ||
21383 | CY_JAVA=1 | |
21384 | ||
21385 | ||
21386 | cy_save=$LIBS | |
21387 | LIBS= | |
21388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JNI_GetCreatedJavaVMs" >&5 | |
21389 | $as_echo_n "checking for library containing JNI_GetCreatedJavaVMs... " >&6; } | |
21390 | if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then : | |
21391 | $as_echo_n "(cached) " >&6 | |
21392 | else | |
21393 | ac_func_search_save_LIBS=$LIBS | |
21394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21395 | /* end confdefs.h. */ | |
21396 | ||
21397 | /* Override any GCC internal prototype to avoid an error. | |
21398 | Use char because int might match the return type of a GCC | |
21399 | builtin and then its argument prototype would still apply. */ | |
21400 | #ifdef __cplusplus | |
21401 | extern "C" | |
21402 | #endif | |
21403 | char JNI_GetCreatedJavaVMs (); | |
21404 | int | |
21405 | main () | |
21406 | { | |
21407 | return JNI_GetCreatedJavaVMs (); | |
21408 | ; | |
21409 | return 0; | |
21410 | } | |
21411 | _ACEOF | |
21412 | for ac_lib in '' dvm; do | |
21413 | if test -z "$ac_lib"; then | |
21414 | ac_res="none required" | |
21415 | else | |
21416 | ac_res=-l$ac_lib | |
21417 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
21418 | fi | |
21419 | if ac_fn_cxx_try_link "$LINENO"; then : | |
21420 | ac_cv_search_JNI_GetCreatedJavaVMs=$ac_res | |
21421 | fi | |
21422 | rm -f core conftest.err conftest.$ac_objext \ | |
21423 | conftest$ac_exeext | |
21424 | if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then : | |
21425 | break | |
21426 | fi | |
21427 | done | |
21428 | if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then : | |
21429 | ||
21430 | else | |
21431 | ac_cv_search_JNI_GetCreatedJavaVMs=no | |
21432 | fi | |
21433 | rm conftest.$ac_ext | |
21434 | LIBS=$ac_func_search_save_LIBS | |
21435 | fi | |
21436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JNI_GetCreatedJavaVMs" >&5 | |
21437 | $as_echo "$ac_cv_search_JNI_GetCreatedJavaVMs" >&6; } | |
21438 | ac_res=$ac_cv_search_JNI_GetCreatedJavaVMs | |
21439 | if test "$ac_res" != no; then : | |
21440 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
21441 | ||
21442 | ||
21443 | fi | |
21444 | ||
21445 | LTJAVA=$LIBS | |
21446 | LIBS=$cy_save | |
21447 | ||
21448 | ||
21449 | ||
21450 | else | |
21451 | ||
21452 | CY_JAVA=0 | |
21453 | ||
21454 | ||
21455 | fi | |
21456 | ||
21457 | ||
def90846 | 21458 | fi |
39ed1631 | 21459 | |
7eda51e0 JF |
21460 | ac_ext=mm |
21461 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
21462 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21463 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21464 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
21465 | ||
21466 | ||
21467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5 | |
21468 | $as_echo_n "checking if we really have Objective C++... " >&6; } | |
21469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21470 | /* end confdefs.h. */ | |
21471 | ||
21472 | _ACEOF | |
21473 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
21474 | ||
21475 | CY_OBJECTIVEC=1 | |
21476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21477 | $as_echo "yes" >&6; } | |
21478 | ||
21479 | else | |
21480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12833ad8 | 21481 | $as_echo "no" >&6; } |
7eda51e0 JF |
21482 | fi |
21483 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b66977f1 | 21484 | |
7eda51e0 | 21485 | if test "x$CY_OBJECTIVEC" = x1; then : |
b66977f1 | 21486 | |
7eda51e0 | 21487 | |
babf7fe8 JF |
21488 | cy_save=$LIBS |
21489 | LIBS= | |
21490 | ||
7eda51e0 JF |
21491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5 |
21492 | $as_echo_n "checking for framework CoreFoundation... " >&6; } | |
21493 | if ${ac_cv_framework_CoreFoundation+:} false; then : | |
b66977f1 DWT |
21494 | $as_echo_n "(cached) " >&6 |
21495 | else | |
21496 | ||
21497 | ac_check_framework_save_LIBS=$LIBS | |
7eda51e0 | 21498 | LIBS="-framework CoreFoundation $LIBS" |
b66977f1 DWT |
21499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
21500 | /* end confdefs.h. */ | |
21501 | ||
7eda51e0 | 21502 | #include <CoreFoundation/CFBase.h> |
b66977f1 DWT |
21503 | |
21504 | int | |
21505 | main () | |
21506 | { | |
7eda51e0 | 21507 | CFAllocatorGetDefault(); |
b66977f1 DWT |
21508 | ; |
21509 | return 0; | |
21510 | } | |
21511 | _ACEOF | |
7eda51e0 | 21512 | if ac_fn_objcxx_try_link "$LINENO"; then : |
b66977f1 | 21513 | |
7eda51e0 | 21514 | ac_cv_framework_CoreFoundation=yes |
b66977f1 DWT |
21515 | |
21516 | else | |
7eda51e0 | 21517 | ac_cv_framework_CoreFoundation=no |
b66977f1 DWT |
21518 | fi |
21519 | rm -f core conftest.err conftest.$ac_objext \ | |
21520 | conftest$ac_exeext conftest.$ac_ext | |
21521 | LIBS=$ac_check_framework_save_LIBS | |
21522 | ||
21523 | fi | |
7eda51e0 JF |
21524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5 |
21525 | $as_echo "$ac_cv_framework_CoreFoundation" >&6; } | |
21526 | if test $ac_cv_framework_CoreFoundation = yes; then : | |
b66977f1 DWT |
21527 | |
21528 | ||
7eda51e0 | 21529 | for element in "-framework CoreFoundation"; do |
b66977f1 DWT |
21530 | haveit= |
21531 | for x in $LIBS; do | |
21532 | ||
21533 | acl_save_prefix="$prefix" | |
21534 | prefix="$acl_final_prefix" | |
21535 | acl_save_exec_prefix="$exec_prefix" | |
21536 | exec_prefix="$acl_final_exec_prefix" | |
21537 | eval x=\"$x\" | |
21538 | exec_prefix="$acl_save_exec_prefix" | |
21539 | prefix="$acl_save_prefix" | |
21540 | ||
21541 | if test "X$x" = "X$element"; then | |
21542 | haveit=yes | |
21543 | break | |
21544 | fi | |
21545 | done | |
21546 | if test -z "$haveit"; then | |
21547 | LIBS="${LIBS}${LIBS:+ }$element" | |
21548 | fi | |
21549 | done | |
21550 | ||
66170b30 | 21551 | |
66170b30 JF |
21552 | |
21553 | ||
b66977f1 | 21554 | |
b66977f1 | 21555 | |
7eda51e0 JF |
21556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5 |
21557 | $as_echo_n "checking for framework Foundation... " >&6; } | |
21558 | if ${ac_cv_framework_Foundation+:} false; then : | |
21559 | $as_echo_n "(cached) " >&6 | |
b66977f1 | 21560 | else |
b66977f1 | 21561 | |
7eda51e0 JF |
21562 | ac_check_framework_save_LIBS=$LIBS |
21563 | LIBS="-framework Foundation $LIBS" | |
21564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21565 | /* end confdefs.h. */ | |
66170b30 | 21566 | |
7eda51e0 | 21567 | #include <Foundation/NSObject.h> |
b66977f1 | 21568 | |
7eda51e0 JF |
21569 | int |
21570 | main () | |
21571 | { | |
21572 | [[NSObject alloc] init]; | |
21573 | ; | |
21574 | return 0; | |
21575 | } | |
21576 | _ACEOF | |
21577 | if ac_fn_objcxx_try_link "$LINENO"; then : | |
b66977f1 | 21578 | |
7eda51e0 | 21579 | ac_cv_framework_Foundation=yes |
b66977f1 | 21580 | |
7eda51e0 JF |
21581 | else |
21582 | ac_cv_framework_Foundation=no | |
21583 | fi | |
21584 | rm -f core conftest.err conftest.$ac_objext \ | |
21585 | conftest$ac_exeext conftest.$ac_ext | |
21586 | LIBS=$ac_check_framework_save_LIBS | |
21587 | ||
21588 | fi | |
21589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5 | |
21590 | $as_echo "$ac_cv_framework_Foundation" >&6; } | |
21591 | if test $ac_cv_framework_Foundation = yes; then : | |
b66977f1 DWT |
21592 | |
21593 | ||
7eda51e0 | 21594 | for element in "-framework Foundation"; do |
b66977f1 DWT |
21595 | haveit= |
21596 | for x in $LIBS; do | |
21597 | ||
21598 | acl_save_prefix="$prefix" | |
21599 | prefix="$acl_final_prefix" | |
21600 | acl_save_exec_prefix="$exec_prefix" | |
21601 | exec_prefix="$acl_final_exec_prefix" | |
21602 | eval x=\"$x\" | |
21603 | exec_prefix="$acl_save_exec_prefix" | |
21604 | prefix="$acl_save_prefix" | |
21605 | ||
21606 | if test "X$x" = "X$element"; then | |
21607 | haveit=yes | |
21608 | break | |
21609 | fi | |
21610 | done | |
21611 | if test -z "$haveit"; then | |
21612 | LIBS="${LIBS}${LIBS:+ }$element" | |
21613 | fi | |
21614 | done | |
21615 | ||
7eda51e0 JF |
21616 | cat >>confdefs.h <<_ACEOF |
21617 | #define HAVE_FRAMEWORK_FOUNDATION 1 | |
21618 | _ACEOF | |
21619 | ||
b66977f1 | 21620 | |
7eda51e0 | 21621 | fi |
b66977f1 DWT |
21622 | |
21623 | ||
7eda51e0 | 21624 | else |
b66977f1 | 21625 | |
b66977f1 | 21626 | |
7eda51e0 JF |
21627 | for ac_prog in gnustep-config |
21628 | do | |
21629 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
21630 | set dummy $ac_prog; ac_word=$2 | |
21631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
21632 | $as_echo_n "checking for $ac_word... " >&6; } | |
21633 | if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then : | |
21634 | $as_echo_n "(cached) " >&6 | |
b66977f1 | 21635 | else |
7eda51e0 JF |
21636 | if test -n "$GNUSTEP_CONFIG"; then |
21637 | ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test. | |
b66977f1 | 21638 | else |
7eda51e0 JF |
21639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
21640 | for as_dir in $PATH | |
21641 | do | |
21642 | IFS=$as_save_IFS | |
21643 | test -z "$as_dir" && as_dir=. | |
21644 | for ac_exec_ext in '' $ac_executable_extensions; do | |
21645 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
21646 | ac_cv_prog_GNUSTEP_CONFIG="$ac_prog" | |
21647 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21648 | break 2 | |
21649 | fi | |
21650 | done | |
21651 | done | |
21652 | IFS=$as_save_IFS | |
b66977f1 | 21653 | |
b66977f1 | 21654 | fi |
b66977f1 | 21655 | fi |
7eda51e0 JF |
21656 | GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG |
21657 | if test -n "$GNUSTEP_CONFIG"; then | |
21658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5 | |
21659 | $as_echo "$GNUSTEP_CONFIG" >&6; } | |
b66977f1 | 21660 | else |
7eda51e0 | 21661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12833ad8 | 21662 | $as_echo "no" >&6; } |
b66977f1 | 21663 | fi |
66170b30 | 21664 | |
66170b30 | 21665 | |
7eda51e0 JF |
21666 | test -n "$GNUSTEP_CONFIG" && break |
21667 | done | |
b66977f1 | 21668 | |
b66977f1 | 21669 | |
7eda51e0 | 21670 | if test "x$GNUSTEP_CONFIG" != x; then : |
b66977f1 | 21671 | |
b66977f1 DWT |
21672 | |
21673 | ||
7eda51e0 | 21674 | for element in `$GNUSTEP_CONFIG --objc-flags`; do |
b66977f1 | 21675 | haveit= |
7eda51e0 | 21676 | for x in $OBJCXXFLAGS; do |
b66977f1 DWT |
21677 | |
21678 | acl_save_prefix="$prefix" | |
21679 | prefix="$acl_final_prefix" | |
21680 | acl_save_exec_prefix="$exec_prefix" | |
21681 | exec_prefix="$acl_final_exec_prefix" | |
21682 | eval x=\"$x\" | |
21683 | exec_prefix="$acl_save_exec_prefix" | |
21684 | prefix="$acl_save_prefix" | |
21685 | ||
21686 | if test "X$x" = "X$element"; then | |
21687 | haveit=yes | |
21688 | break | |
21689 | fi | |
21690 | done | |
babf7fe8 JF |
21691 | if test -z "$haveit"; then |
21692 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
21693 | fi | |
21694 | done | |
a667869d | 21695 | |
a667869d | 21696 | |
babf7fe8 | 21697 | for element in `$GNUSTEP_CONFIG --base-libs`; do |
632b71ea | 21698 | haveit= |
babf7fe8 | 21699 | for x in $LIBS; do |
a667869d | 21700 | |
632b71ea DWT |
21701 | acl_save_prefix="$prefix" |
21702 | prefix="$acl_final_prefix" | |
21703 | acl_save_exec_prefix="$exec_prefix" | |
21704 | exec_prefix="$acl_final_exec_prefix" | |
21705 | eval x=\"$x\" | |
21706 | exec_prefix="$acl_save_exec_prefix" | |
21707 | prefix="$acl_save_prefix" | |
21708 | ||
21709 | if test "X$x" = "X$element"; then | |
21710 | haveit=yes | |
21711 | break | |
21712 | fi | |
21713 | done | |
21714 | if test -z "$haveit"; then | |
babf7fe8 | 21715 | LIBS="${LIBS}${LIBS:+ }$element" |
632b71ea DWT |
21716 | fi |
21717 | done | |
21718 | ||
5053a6d1 | 21719 | |
babf7fe8 JF |
21720 | else |
21721 | CY_OBJECTIVEC=0 | |
21722 | ||
21723 | fi | |
21724 | ||
21725 | fi | |
21726 | LTOBJECTIVEC=$LIBS | |
21727 | LIBS=$cy_save | |
21728 | ||
21729 | ||
21730 | ||
21731 | fi | |
21732 | ||
21733 | ac_ext=cpp | |
21734 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21735 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21736 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21737 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21738 | ||
21739 | ;; #( | |
21740 | *) : | |
21741 | ;; | |
21742 | esac | |
21743 | ||
39ed1631 JF |
21744 | if test "x$CY_JAVA" = x1; then |
21745 | CY_JAVA_TRUE= | |
21746 | CY_JAVA_FALSE='#' | |
21747 | else | |
21748 | CY_JAVA_TRUE='#' | |
21749 | CY_JAVA_FALSE= | |
21750 | fi | |
21751 | ||
babf7fe8 JF |
21752 | if test "x$CY_OBJECTIVEC" = x1; then |
21753 | CY_OBJECTIVEC_TRUE= | |
21754 | CY_OBJECTIVEC_FALSE='#' | |
21755 | else | |
21756 | CY_OBJECTIVEC_TRUE='#' | |
21757 | CY_OBJECTIVEC_FALSE= | |
21758 | fi | |
21759 | ||
21760 | ||
21761 | ||
21762 | cy_save=$LIBS | |
21763 | LIBS= | |
21764 | ||
21765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5 | |
21766 | $as_echo_n "checking for a readline compatible library... " >&6; } | |
21767 | if ${ax_cv_lib_readline+:} false; then : | |
5053a6d1 | 21768 | $as_echo_n "(cached) " >&6 |
a667869d | 21769 | else |
632b71ea | 21770 | |
babf7fe8 JF |
21771 | ORIG_LIBS="$LIBS" |
21772 | for readline_lib in readline edit editline; do | |
21773 | for termcap_lib in "" termcap curses ncurses; do | |
21774 | if test -z "$termcap_lib"; then | |
21775 | TRY_LIB="-l$readline_lib" | |
21776 | else | |
21777 | TRY_LIB="-l$readline_lib -l$termcap_lib" | |
21778 | fi | |
21779 | LIBS="$ORIG_LIBS $TRY_LIB" | |
21780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5053a6d1 | 21781 | /* end confdefs.h. */ |
632b71ea | 21782 | |
babf7fe8 JF |
21783 | /* Override any GCC internal prototype to avoid an error. |
21784 | Use char because int might match the return type of a GCC | |
21785 | builtin and then its argument prototype would still apply. */ | |
21786 | #ifdef __cplusplus | |
21787 | extern "C" | |
21788 | #endif | |
21789 | char readline (); | |
5053a6d1 DWT |
21790 | int |
21791 | main () | |
21792 | { | |
babf7fe8 | 21793 | return readline (); |
5053a6d1 DWT |
21794 | ; |
21795 | return 0; | |
21796 | } | |
21797 | _ACEOF | |
babf7fe8 JF |
21798 | if ac_fn_cxx_try_link "$LINENO"; then : |
21799 | ax_cv_lib_readline="$TRY_LIB" | |
5053a6d1 DWT |
21800 | fi |
21801 | rm -f core conftest.err conftest.$ac_objext \ | |
21802 | conftest$ac_exeext conftest.$ac_ext | |
babf7fe8 JF |
21803 | if test -n "$ax_cv_lib_readline"; then |
21804 | break | |
21805 | fi | |
21806 | done | |
21807 | if test -n "$ax_cv_lib_readline"; then | |
21808 | break | |
21809 | fi | |
21810 | done | |
21811 | if test -z "$ax_cv_lib_readline"; then | |
21812 | ax_cv_lib_readline="no" | |
21813 | fi | |
21814 | LIBS="$ORIG_LIBS" | |
21815 | ||
21816 | fi | |
21817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5 | |
21818 | $as_echo "$ax_cv_lib_readline" >&6; } | |
21819 | ||
21820 | if test "$ax_cv_lib_readline" != "no"; then | |
21821 | LIBS="$LIBS $ax_cv_lib_readline" | |
21822 | ||
21823 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | |
21824 | ||
21825 | for ac_header in readline.h readline/readline.h | |
21826 | do : | |
21827 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
21828 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
21829 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
21830 | cat >>confdefs.h <<_ACEOF | |
21831 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
21832 | _ACEOF | |
21833 | ||
21834 | fi | |
21835 | ||
21836 | done | |
21837 | ||
21838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 | |
21839 | $as_echo_n "checking whether readline supports history... " >&6; } | |
21840 | if ${ax_cv_lib_readline_history+:} false; then : | |
21841 | $as_echo_n "(cached) " >&6 | |
21842 | else | |
21843 | ||
21844 | ax_cv_lib_readline_history="no" | |
7eda51e0 JF |
21845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
21846 | /* end confdefs.h. */ | |
5053a6d1 | 21847 | |
babf7fe8 JF |
21848 | /* Override any GCC internal prototype to avoid an error. |
21849 | Use char because int might match the return type of a GCC | |
21850 | builtin and then its argument prototype would still apply. */ | |
21851 | #ifdef __cplusplus | |
21852 | extern "C" | |
21853 | #endif | |
21854 | char add_history (); | |
058f1bc8 DWT |
21855 | int |
21856 | main () | |
21857 | { | |
babf7fe8 | 21858 | return add_history (); |
058f1bc8 DWT |
21859 | ; |
21860 | return 0; | |
21861 | } | |
21862 | _ACEOF | |
babf7fe8 JF |
21863 | if ac_fn_cxx_try_link "$LINENO"; then : |
21864 | ax_cv_lib_readline_history="yes" | |
058f1bc8 DWT |
21865 | fi |
21866 | rm -f core conftest.err conftest.$ac_objext \ | |
21867 | conftest$ac_exeext conftest.$ac_ext | |
a667869d | 21868 | |
a667869d | 21869 | fi |
babf7fe8 JF |
21870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5 |
21871 | $as_echo "$ax_cv_lib_readline_history" >&6; } | |
21872 | if test "$ax_cv_lib_readline_history" = "yes"; then | |
058f1bc8 | 21873 | |
babf7fe8 | 21874 | $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h |
058f1bc8 | 21875 | |
babf7fe8 JF |
21876 | for ac_header in history.h readline/history.h |
21877 | do : | |
21878 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
21879 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
21880 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
21881 | cat >>confdefs.h <<_ACEOF | |
21882 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7eda51e0 | 21883 | _ACEOF |
babf7fe8 | 21884 | |
7eda51e0 | 21885 | fi |
058f1bc8 | 21886 | |
babf7fe8 | 21887 | done |
058f1bc8 | 21888 | |
babf7fe8 | 21889 | fi |
7eda51e0 | 21890 | fi |
058f1bc8 | 21891 | |
babf7fe8 JF |
21892 | LTLIBREADLINE=$LIBS |
21893 | LIBS=$cy_save | |
058f1bc8 | 21894 | |
058f1bc8 | 21895 | |
babf7fe8 JF |
21896 | case $ax_cv_lib_readline in #( |
21897 | no) : | |
21898 | as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #( | |
21899 | *) : | |
21900 | ;; | |
21901 | esac | |
058f1bc8 DWT |
21902 | |
21903 | ||
babf7fe8 JF |
21904 | cy_save=$LIBS |
21905 | LIBS= | |
21906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5 | |
21907 | $as_echo_n "checking for library containing cur_term... " >&6; } | |
21908 | if ${ac_cv_search_cur_term+:} false; then : | |
7eda51e0 JF |
21909 | $as_echo_n "(cached) " >&6 |
21910 | else | |
babf7fe8 JF |
21911 | ac_func_search_save_LIBS=$LIBS |
21912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7eda51e0 JF |
21913 | /* end confdefs.h. */ |
21914 | ||
babf7fe8 JF |
21915 | /* Override any GCC internal prototype to avoid an error. |
21916 | Use char because int might match the return type of a GCC | |
21917 | builtin and then its argument prototype would still apply. */ | |
7eda51e0 | 21918 | #ifdef __cplusplus |
babf7fe8 | 21919 | extern "C" |
7eda51e0 | 21920 | #endif |
babf7fe8 | 21921 | char cur_term (); |
7eda51e0 JF |
21922 | int |
21923 | main () | |
21924 | { | |
babf7fe8 | 21925 | return cur_term (); |
7eda51e0 JF |
21926 | ; |
21927 | return 0; | |
21928 | } | |
21929 | _ACEOF | |
a93f15c0 | 21930 | for ac_lib in '' termcap ncurses; do |
babf7fe8 JF |
21931 | if test -z "$ac_lib"; then |
21932 | ac_res="none required" | |
21933 | else | |
21934 | ac_res=-l$ac_lib | |
21935 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
21936 | fi | |
21937 | if ac_fn_cxx_try_link "$LINENO"; then : | |
21938 | ac_cv_search_cur_term=$ac_res | |
7eda51e0 | 21939 | fi |
babf7fe8 JF |
21940 | rm -f core conftest.err conftest.$ac_objext \ |
21941 | conftest$ac_exeext | |
21942 | if ${ac_cv_search_cur_term+:} false; then : | |
21943 | break | |
7eda51e0 | 21944 | fi |
babf7fe8 JF |
21945 | done |
21946 | if ${ac_cv_search_cur_term+:} false; then : | |
058f1bc8 | 21947 | |
babf7fe8 JF |
21948 | else |
21949 | ac_cv_search_cur_term=no | |
21950 | fi | |
21951 | rm conftest.$ac_ext | |
21952 | LIBS=$ac_func_search_save_LIBS | |
21953 | fi | |
21954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5 | |
21955 | $as_echo "$ac_cv_search_cur_term" >&6; } | |
21956 | ac_res=$ac_cv_search_cur_term | |
21957 | if test "$ac_res" != no; then : | |
21958 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
058f1bc8 | 21959 | |
babf7fe8 | 21960 | fi |
058f1bc8 | 21961 | |
babf7fe8 JF |
21962 | LTLIBTERMCAP=$LIBS |
21963 | LIBS=$cy_save | |
058f1bc8 | 21964 | |
058f1bc8 | 21965 | |
66170b30 JF |
21966 | |
21967 | ||
3615a2f7 JF |
21968 | |
21969 | ||
9777bd50 JF |
21970 | SO=$acl_shlibext |
21971 | ||
e1cce270 | 21972 | |
a243b558 JF |
21973 | ac_config_files="$ac_config_files Makefile" |
21974 | ||
9c60689e DWT |
21975 | cat >confcache <<\_ACEOF |
21976 | # This file is a shell script that caches the results of configure | |
21977 | # tests run on this system so they can be shared between configure | |
21978 | # scripts and configure runs, see configure's option --config-cache. | |
21979 | # It is not useful on other systems. If it contains results you don't | |
21980 | # want to keep, you may remove or edit it. | |
21981 | # | |
21982 | # config.status only pays attention to the cache file if you give it | |
21983 | # the --recheck option to rerun configure. | |
21984 | # | |
21985 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
21986 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
21987 | # following values. | |
21988 | ||
21989 | _ACEOF | |
21990 | ||
21991 | # The following way of writing the cache mishandles newlines in values, | |
21992 | # but we know of no workaround that is simple, portable, and efficient. | |
21993 | # So, we kill variables containing newlines. | |
21994 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
21995 | # and sets the high bit in the cache file unless we assign to the vars. | |
21996 | ( | |
21997 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
21998 | eval ac_val=\$$ac_var | |
21999 | case $ac_val in #( | |
22000 | *${as_nl}*) | |
22001 | case $ac_var in #( | |
22002 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
22003 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
22004 | esac | |
22005 | case $ac_var in #( | |
22006 | _ | IFS | as_nl) ;; #( | |
22007 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
22008 | *) { eval $ac_var=; unset $ac_var;} ;; | |
22009 | esac ;; | |
22010 | esac | |
22011 | done | |
22012 | ||
22013 | (set) 2>&1 | | |
22014 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
22015 | *${as_nl}ac_space=\ *) | |
22016 | # `set' does not quote correctly, so add quotes: double-quote | |
22017 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
22018 | sed -n \ | |
22019 | "s/'/'\\\\''/g; | |
22020 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
22021 | ;; #( | |
22022 | *) | |
22023 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
22024 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
22025 | ;; | |
22026 | esac | | |
22027 | sort | |
22028 | ) | | |
22029 | sed ' | |
22030 | /^ac_cv_env_/b end | |
22031 | t clear | |
22032 | :clear | |
22033 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
22034 | t end | |
22035 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
22036 | :end' >>confcache | |
22037 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
22038 | if test -w "$cache_file"; then | |
ee134472 | 22039 | if test "x$cache_file" != "x/dev/null"; then |
9c60689e DWT |
22040 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
22041 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ee134472 JF |
22042 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
22043 | cat confcache >"$cache_file" | |
22044 | else | |
22045 | case $cache_file in #( | |
22046 | */* | ?:*) | |
22047 | mv -f confcache "$cache_file"$$ && | |
22048 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
22049 | *) | |
22050 | mv -f confcache "$cache_file" ;; | |
22051 | esac | |
22052 | fi | |
22053 | fi | |
9c60689e DWT |
22054 | else |
22055 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
22056 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
22057 | fi | |
22058 | fi | |
22059 | rm -f confcache | |
22060 | ||
22061 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
22062 | # Let make expand exec_prefix. | |
22063 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
22064 | ||
296ee9a6 | 22065 | DEFS=-DHAVE_CONFIG_H |
9c60689e DWT |
22066 | |
22067 | ac_libobjs= | |
22068 | ac_ltlibobjs= | |
12833ad8 | 22069 | U= |
9c60689e DWT |
22070 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
22071 | # 1. Remove the extension, and $U if already installed. | |
22072 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
22073 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
22074 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
22075 | # will be set to the directory where LIBOBJS objects are built. | |
22076 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
22077 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
22078 | done | |
22079 | LIBOBJS=$ac_libobjs | |
22080 | ||
22081 | LTLIBOBJS=$ac_ltlibobjs | |
22082 | ||
22083 | ||
66170b30 JF |
22084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
22085 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
22086 | if test -n "$am_sleep_pid"; then | |
22087 | # Hide warnings about reused PIDs. | |
22088 | wait $am_sleep_pid 2>/dev/null | |
22089 | fi | |
22090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
22091 | $as_echo "done" >&6; } | |
22092 | if test -n "$EXEEXT"; then | |
22093 | am__EXEEXT_TRUE= | |
22094 | am__EXEEXT_FALSE='#' | |
22095 | else | |
22096 | am__EXEEXT_TRUE='#' | |
22097 | am__EXEEXT_FALSE= | |
22098 | fi | |
22099 | ||
babf7fe8 JF |
22100 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
22101 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
22102 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
22103 | fi | |
66170b30 JF |
22104 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
22105 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
22106 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
22107 | fi | |
a93f15c0 JF |
22108 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
22109 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
22110 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
22111 | fi | |
66170b30 JF |
22112 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
22113 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | |
22114 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
22115 | fi | |
22116 | if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then | |
22117 | as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined. | |
22118 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
22119 | fi | |
a93f15c0 JF |
22120 | if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then |
22121 | as_fn_error $? "conditional \"CY_CONSOLE\" was never defined. | |
babf7fe8 JF |
22122 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
22123 | fi | |
a4287117 JF |
22124 | if test -z "${CY_ATTACH_TRUE}" && test -z "${CY_ATTACH_FALSE}"; then |
22125 | as_fn_error $? "conditional \"CY_ATTACH\" was never defined. | |
22126 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
22127 | fi | |
a243b558 JF |
22128 | if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then |
22129 | as_fn_error $? "conditional \"CY_EXECUTE\" was never defined. | |
22130 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
22131 | fi | |
39ed1631 JF |
22132 | if test -z "${CY_JAVA_TRUE}" && test -z "${CY_JAVA_FALSE}"; then |
22133 | as_fn_error $? "conditional \"CY_JAVA\" was never defined. | |
22134 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
22135 | fi | |
a243b558 JF |
22136 | if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then |
22137 | as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined. | |
22138 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
22139 | fi | |
9c60689e | 22140 | |
ee134472 | 22141 | : "${CONFIG_STATUS=./config.status}" |
9c60689e DWT |
22142 | ac_write_fail=0 |
22143 | ac_clean_files_save=$ac_clean_files | |
22144 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
22145 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
22146 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
22147 | as_write_fail=0 | |
22148 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
22149 | #! $SHELL | |
22150 | # Generated by $as_me. | |
22151 | # Run this file to recreate the current configuration. | |
22152 | # Compiler output produced by configure, useful for debugging | |
22153 | # configure, is in config.log if it exists. | |
22154 | ||
22155 | debug=false | |
22156 | ac_cs_recheck=false | |
22157 | ac_cs_silent=false | |
22158 | ||
22159 | SHELL=\${CONFIG_SHELL-$SHELL} | |
22160 | export SHELL | |
22161 | _ASEOF | |
22162 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
22163 | ## -------------------- ## | |
22164 | ## M4sh Initialization. ## | |
22165 | ## -------------------- ## | |
22166 | ||
22167 | # Be more Bourne compatible | |
22168 | DUALCASE=1; export DUALCASE # for MKS sh | |
22169 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
22170 | emulate sh | |
22171 | NULLCMD=: | |
22172 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
22173 | # is contrary to our usage. Disable this feature. | |
22174 | alias -g '${1+"$@"}'='"$@"' | |
22175 | setopt NO_GLOB_SUBST | |
22176 | else | |
22177 | case `(set -o) 2>/dev/null` in #( | |
22178 | *posix*) : | |
22179 | set -o posix ;; #( | |
22180 | *) : | |
22181 | ;; | |
22182 | esac | |
22183 | fi | |
22184 | ||
22185 | ||
22186 | as_nl=' | |
22187 | ' | |
22188 | export as_nl | |
22189 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
22190 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
22191 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
22192 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
22193 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
22194 | # but without wasting forks for bash or zsh. | |
22195 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
22196 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
22197 | as_echo='print -r --' | |
22198 | as_echo_n='print -rn --' | |
22199 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
22200 | as_echo='printf %s\n' | |
22201 | as_echo_n='printf %s' | |
22202 | else | |
22203 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
22204 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
22205 | as_echo_n='/usr/ucb/echo -n' | |
22206 | else | |
22207 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
22208 | as_echo_n_body='eval | |
22209 | arg=$1; | |
22210 | case $arg in #( | |
22211 | *"$as_nl"*) | |
22212 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
22213 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
22214 | esac; | |
22215 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
22216 | ' | |
22217 | export as_echo_n_body | |
22218 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
22219 | fi | |
22220 | export as_echo_body | |
22221 | as_echo='sh -c $as_echo_body as_echo' | |
22222 | fi | |
22223 | ||
22224 | # The user is always right. | |
22225 | if test "${PATH_SEPARATOR+set}" != set; then | |
22226 | PATH_SEPARATOR=: | |
22227 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
22228 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
22229 | PATH_SEPARATOR=';' | |
22230 | } | |
22231 | fi | |
22232 | ||
22233 | ||
22234 | # IFS | |
22235 | # We need space, tab and new line, in precisely that order. Quoting is | |
22236 | # there to prevent editors from complaining about space-tab. | |
22237 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
22238 | # splitting by setting IFS to empty value.) | |
22239 | IFS=" "" $as_nl" | |
22240 | ||
22241 | # Find who we are. Look in the path if we contain no directory separator. | |
ee134472 | 22242 | as_myself= |
9c60689e DWT |
22243 | case $0 in #(( |
22244 | *[\\/]* ) as_myself=$0 ;; | |
22245 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22246 | for as_dir in $PATH | |
22247 | do | |
22248 | IFS=$as_save_IFS | |
22249 | test -z "$as_dir" && as_dir=. | |
22250 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
22251 | done | |
22252 | IFS=$as_save_IFS | |
22253 | ||
22254 | ;; | |
22255 | esac | |
22256 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
22257 | # in which case we are not to be found in the path. | |
22258 | if test "x$as_myself" = x; then | |
22259 | as_myself=$0 | |
22260 | fi | |
22261 | if test ! -f "$as_myself"; then | |
22262 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
22263 | exit 1 | |
22264 | fi | |
22265 | ||
22266 | # Unset variables that we do not need and which cause bugs (e.g. in | |
22267 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
22268 | # suppresses any "Segmentation fault" message there. '((' could | |
22269 | # trigger a bug in pdksh 5.2.14. | |
22270 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
22271 | do eval test x\${$as_var+set} = xset \ | |
22272 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
22273 | done | |
22274 | PS1='$ ' | |
22275 | PS2='> ' | |
22276 | PS4='+ ' | |
22277 | ||
22278 | # NLS nuisances. | |
22279 | LC_ALL=C | |
22280 | export LC_ALL | |
22281 | LANGUAGE=C | |
22282 | export LANGUAGE | |
22283 | ||
22284 | # CDPATH. | |
22285 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
22286 | ||
22287 | ||
12833ad8 JF |
22288 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
22289 | # ---------------------------------------- | |
9c60689e DWT |
22290 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
22291 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
12833ad8 | 22292 | # script with STATUS, using 1 if that was 0. |
9c60689e DWT |
22293 | as_fn_error () |
22294 | { | |
12833ad8 JF |
22295 | as_status=$1; test $as_status -eq 0 && as_status=1 |
22296 | if test "$4"; then | |
22297 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
22298 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
9c60689e | 22299 | fi |
12833ad8 | 22300 | $as_echo "$as_me: error: $2" >&2 |
9c60689e DWT |
22301 | as_fn_exit $as_status |
22302 | } # as_fn_error | |
22303 | ||
22304 | ||
22305 | # as_fn_set_status STATUS | |
22306 | # ----------------------- | |
22307 | # Set $? to STATUS, without forking. | |
22308 | as_fn_set_status () | |
22309 | { | |
22310 | return $1 | |
22311 | } # as_fn_set_status | |
22312 | ||
22313 | # as_fn_exit STATUS | |
22314 | # ----------------- | |
22315 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
22316 | as_fn_exit () | |
22317 | { | |
22318 | set +e | |
22319 | as_fn_set_status $1 | |
22320 | exit $1 | |
22321 | } # as_fn_exit | |
22322 | ||
22323 | # as_fn_unset VAR | |
22324 | # --------------- | |
22325 | # Portably unset VAR. | |
22326 | as_fn_unset () | |
22327 | { | |
22328 | { eval $1=; unset $1;} | |
22329 | } | |
22330 | as_unset=as_fn_unset | |
22331 | # as_fn_append VAR VALUE | |
22332 | # ---------------------- | |
22333 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
22334 | # advantage of any shell optimizations that allow amortized linear growth over | |
22335 | # repeated appends, instead of the typical quadratic growth present in naive | |
22336 | # implementations. | |
22337 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
22338 | eval 'as_fn_append () | |
22339 | { | |
22340 | eval $1+=\$2 | |
22341 | }' | |
22342 | else | |
22343 | as_fn_append () | |
22344 | { | |
22345 | eval $1=\$$1\$2 | |
22346 | } | |
22347 | fi # as_fn_append | |
22348 | ||
22349 | # as_fn_arith ARG... | |
22350 | # ------------------ | |
22351 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
22352 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
22353 | # must be portable across $(()) and expr. | |
22354 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
22355 | eval 'as_fn_arith () | |
22356 | { | |
22357 | as_val=$(( $* )) | |
22358 | }' | |
22359 | else | |
22360 | as_fn_arith () | |
22361 | { | |
22362 | as_val=`expr "$@" || test $? -eq 1` | |
22363 | } | |
22364 | fi # as_fn_arith | |
22365 | ||
22366 | ||
22367 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
22368 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
22369 | as_expr=expr | |
22370 | else | |
22371 | as_expr=false | |
22372 | fi | |
22373 | ||
22374 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
22375 | as_basename=basename | |
22376 | else | |
22377 | as_basename=false | |
22378 | fi | |
22379 | ||
22380 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
22381 | as_dirname=dirname | |
22382 | else | |
22383 | as_dirname=false | |
22384 | fi | |
22385 | ||
22386 | as_me=`$as_basename -- "$0" || | |
22387 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
22388 | X"$0" : 'X\(//\)$' \| \ | |
22389 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
22390 | $as_echo X/"$0" | | |
22391 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
22392 | s//\1/ | |
22393 | q | |
22394 | } | |
22395 | /^X\/\(\/\/\)$/{ | |
22396 | s//\1/ | |
22397 | q | |
22398 | } | |
22399 | /^X\/\(\/\).*/{ | |
22400 | s//\1/ | |
22401 | q | |
22402 | } | |
22403 | s/.*/./; q'` | |
22404 | ||
22405 | # Avoid depending upon Character Ranges. | |
22406 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
22407 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
22408 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
22409 | as_cr_digits='0123456789' | |
22410 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
22411 | ||
22412 | ECHO_C= ECHO_N= ECHO_T= | |
22413 | case `echo -n x` in #((((( | |
22414 | -n*) | |
22415 | case `echo 'xy\c'` in | |
22416 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
22417 | xy) ECHO_C='\c';; | |
22418 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
22419 | ECHO_T=' ';; | |
22420 | esac;; | |
22421 | *) | |
22422 | ECHO_N='-n';; | |
22423 | esac | |
22424 | ||
22425 | rm -f conf$$ conf$$.exe conf$$.file | |
22426 | if test -d conf$$.dir; then | |
22427 | rm -f conf$$.dir/conf$$.file | |
22428 | else | |
22429 | rm -f conf$$.dir | |
22430 | mkdir conf$$.dir 2>/dev/null | |
22431 | fi | |
22432 | if (echo >conf$$.file) 2>/dev/null; then | |
22433 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
22434 | as_ln_s='ln -s' | |
22435 | # ... but there are two gotchas: | |
22436 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
22437 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
53ba6704 | 22438 | # In both cases, we have to default to `cp -pR'. |
9c60689e | 22439 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
53ba6704 | 22440 | as_ln_s='cp -pR' |
9c60689e DWT |
22441 | elif ln conf$$.file conf$$ 2>/dev/null; then |
22442 | as_ln_s=ln | |
22443 | else | |
53ba6704 | 22444 | as_ln_s='cp -pR' |
9c60689e DWT |
22445 | fi |
22446 | else | |
53ba6704 | 22447 | as_ln_s='cp -pR' |
9c60689e DWT |
22448 | fi |
22449 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
22450 | rmdir conf$$.dir 2>/dev/null | |
22451 | ||
22452 | ||
22453 | # as_fn_mkdir_p | |
22454 | # ------------- | |
22455 | # Create "$as_dir" as a directory, including parents if necessary. | |
22456 | as_fn_mkdir_p () | |
22457 | { | |
22458 | ||
22459 | case $as_dir in #( | |
22460 | -*) as_dir=./$as_dir;; | |
22461 | esac | |
22462 | test -d "$as_dir" || eval $as_mkdir_p || { | |
22463 | as_dirs= | |
22464 | while :; do | |
22465 | case $as_dir in #( | |
22466 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
22467 | *) as_qdir=$as_dir;; | |
22468 | esac | |
22469 | as_dirs="'$as_qdir' $as_dirs" | |
22470 | as_dir=`$as_dirname -- "$as_dir" || | |
22471 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22472 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22473 | X"$as_dir" : 'X\(//\)$' \| \ | |
22474 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
22475 | $as_echo X"$as_dir" | | |
22476 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22477 | s//\1/ | |
22478 | q | |
22479 | } | |
22480 | /^X\(\/\/\)[^/].*/{ | |
22481 | s//\1/ | |
22482 | q | |
22483 | } | |
22484 | /^X\(\/\/\)$/{ | |
22485 | s//\1/ | |
22486 | q | |
22487 | } | |
22488 | /^X\(\/\).*/{ | |
22489 | s//\1/ | |
22490 | q | |
22491 | } | |
22492 | s/.*/./; q'` | |
22493 | test -d "$as_dir" && break | |
22494 | done | |
22495 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
12833ad8 | 22496 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
9c60689e DWT |
22497 | |
22498 | ||
22499 | } # as_fn_mkdir_p | |
22500 | if mkdir -p . 2>/dev/null; then | |
22501 | as_mkdir_p='mkdir -p "$as_dir"' | |
22502 | else | |
22503 | test -d ./-p && rmdir ./-p | |
22504 | as_mkdir_p=false | |
22505 | fi | |
22506 | ||
53ba6704 JF |
22507 | |
22508 | # as_fn_executable_p FILE | |
22509 | # ----------------------- | |
22510 | # Test if FILE is an executable regular file. | |
22511 | as_fn_executable_p () | |
22512 | { | |
22513 | test -f "$1" && test -x "$1" | |
22514 | } # as_fn_executable_p | |
22515 | as_test_x='test -x' | |
22516 | as_executable_p=as_fn_executable_p | |
9c60689e DWT |
22517 | |
22518 | # Sed expression to map a string onto a valid CPP name. | |
22519 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
22520 | ||
22521 | # Sed expression to map a string onto a valid variable name. | |
22522 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
22523 | ||
22524 | ||
22525 | exec 6>&1 | |
22526 | ## ----------------------------------- ## | |
22527 | ## Main body of $CONFIG_STATUS script. ## | |
22528 | ## ----------------------------------- ## | |
22529 | _ASEOF | |
22530 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
22531 | ||
22532 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22533 | # Save the log message, to keep $0 and so on meaningful, and to | |
22534 | # report actual input values of CONFIG_FILES etc. instead of their | |
22535 | # values after options handling. | |
22536 | ac_log=" | |
22537 | This file was extended by Cycript $as_me 0.9, which was | |
53ba6704 | 22538 | generated by GNU Autoconf 2.69. Invocation command line was |
9c60689e DWT |
22539 | |
22540 | CONFIG_FILES = $CONFIG_FILES | |
22541 | CONFIG_HEADERS = $CONFIG_HEADERS | |
22542 | CONFIG_LINKS = $CONFIG_LINKS | |
22543 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
22544 | $ $0 $@ | |
22545 | ||
22546 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
22547 | " | |
22548 | ||
22549 | _ACEOF | |
22550 | ||
22551 | case $ac_config_files in *" | |
22552 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
22553 | esac | |
22554 | ||
296ee9a6 JF |
22555 | case $ac_config_headers in *" |
22556 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
22557 | esac | |
9c60689e DWT |
22558 | |
22559 | ||
22560 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22561 | # Files that config.status was made for. | |
22562 | config_files="$ac_config_files" | |
296ee9a6 | 22563 | config_headers="$ac_config_headers" |
9c60689e DWT |
22564 | config_commands="$ac_config_commands" |
22565 | ||
22566 | _ACEOF | |
22567 | ||
22568 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22569 | ac_cs_usage="\ | |
22570 | \`$as_me' instantiates files and other configuration actions | |
22571 | from templates according to the current configuration. Unless the files | |
22572 | and actions are specified as TAGs, all are instantiated by default. | |
22573 | ||
22574 | Usage: $0 [OPTION]... [TAG]... | |
22575 | ||
22576 | -h, --help print this help, then exit | |
22577 | -V, --version print version number and configuration settings, then exit | |
22578 | --config print configuration, then exit | |
22579 | -q, --quiet, --silent | |
22580 | do not print progress messages | |
22581 | -d, --debug don't remove temporary files | |
22582 | --recheck update $as_me by reconfiguring in the same conditions | |
22583 | --file=FILE[:TEMPLATE] | |
22584 | instantiate the configuration file FILE | |
296ee9a6 JF |
22585 | --header=FILE[:TEMPLATE] |
22586 | instantiate the configuration header FILE | |
9c60689e DWT |
22587 | |
22588 | Configuration files: | |
22589 | $config_files | |
22590 | ||
296ee9a6 JF |
22591 | Configuration headers: |
22592 | $config_headers | |
22593 | ||
9c60689e DWT |
22594 | Configuration commands: |
22595 | $config_commands | |
22596 | ||
22597 | Report bugs to <saurik@saurik.com>. | |
22598 | Cycript home page: <http://www.cycript.org/>." | |
22599 | ||
22600 | _ACEOF | |
22601 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22602 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
22603 | ac_cs_version="\\ | |
22604 | Cycript config.status 0.9 | |
53ba6704 | 22605 | configured by $0, generated by GNU Autoconf 2.69, |
9c60689e DWT |
22606 | with options \\"\$ac_cs_config\\" |
22607 | ||
53ba6704 | 22608 | Copyright (C) 2012 Free Software Foundation, Inc. |
9c60689e DWT |
22609 | This config.status script is free software; the Free Software Foundation |
22610 | gives unlimited permission to copy, distribute and modify it." | |
22611 | ||
22612 | ac_pwd='$ac_pwd' | |
22613 | srcdir='$srcdir' | |
22614 | INSTALL='$INSTALL' | |
66170b30 JF |
22615 | MKDIR_P='$MKDIR_P' |
22616 | AWK='$AWK' | |
9c60689e DWT |
22617 | test -n "\$AWK" || AWK=awk |
22618 | _ACEOF | |
22619 | ||
22620 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22621 | # The default lists apply if the user does not specify any file. | |
22622 | ac_need_defaults=: | |
22623 | while test $# != 0 | |
22624 | do | |
22625 | case $1 in | |
12833ad8 | 22626 | --*=?*) |
9c60689e DWT |
22627 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
22628 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
22629 | ac_shift=: | |
22630 | ;; | |
12833ad8 JF |
22631 | --*=) |
22632 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
22633 | ac_optarg= | |
22634 | ac_shift=: | |
22635 | ;; | |
9c60689e DWT |
22636 | *) |
22637 | ac_option=$1 | |
22638 | ac_optarg=$2 | |
22639 | ac_shift=shift | |
22640 | ;; | |
22641 | esac | |
22642 | ||
22643 | case $ac_option in | |
22644 | # Handling of the options. | |
22645 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
22646 | ac_cs_recheck=: ;; | |
22647 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
22648 | $as_echo "$ac_cs_version"; exit ;; | |
22649 | --config | --confi | --conf | --con | --co | --c ) | |
22650 | $as_echo "$ac_cs_config"; exit ;; | |
22651 | --debug | --debu | --deb | --de | --d | -d ) | |
22652 | debug=: ;; | |
22653 | --file | --fil | --fi | --f ) | |
22654 | $ac_shift | |
22655 | case $ac_optarg in | |
22656 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12833ad8 | 22657 | '') as_fn_error $? "missing file argument" ;; |
9c60689e DWT |
22658 | esac |
22659 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
22660 | ac_need_defaults=false;; | |
296ee9a6 JF |
22661 | --header | --heade | --head | --hea ) |
22662 | $ac_shift | |
22663 | case $ac_optarg in | |
22664 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22665 | esac | |
22666 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
22667 | ac_need_defaults=false;; | |
22668 | --he | --h) | |
22669 | # Conflict between --help and --header | |
22670 | as_fn_error $? "ambiguous option: \`$1' | |
22671 | Try \`$0 --help' for more information.";; | |
22672 | --help | --hel | -h ) | |
9c60689e DWT |
22673 | $as_echo "$ac_cs_usage"; exit ;; |
22674 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
22675 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
22676 | ac_cs_silent=: ;; | |
22677 | ||
22678 | # This is an error. | |
12833ad8 | 22679 | -*) as_fn_error $? "unrecognized option: \`$1' |
9c60689e DWT |
22680 | Try \`$0 --help' for more information." ;; |
22681 | ||
22682 | *) as_fn_append ac_config_targets " $1" | |
22683 | ac_need_defaults=false ;; | |
22684 | ||
22685 | esac | |
22686 | shift | |
22687 | done | |
22688 | ||
22689 | ac_configure_extra_args= | |
22690 | ||
22691 | if $ac_cs_silent; then | |
22692 | exec 6>/dev/null | |
22693 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
22694 | fi | |
22695 | ||
22696 | _ACEOF | |
22697 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22698 | if \$ac_cs_recheck; then | |
53ba6704 | 22699 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
9c60689e DWT |
22700 | shift |
22701 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
22702 | CONFIG_SHELL='$SHELL' | |
22703 | export CONFIG_SHELL | |
22704 | exec "\$@" | |
22705 | fi | |
22706 | ||
22707 | _ACEOF | |
22708 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22709 | exec 5>>config.log | |
22710 | { | |
22711 | echo | |
22712 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
22713 | ## Running $as_me. ## | |
22714 | _ASBOX | |
22715 | $as_echo "$ac_log" | |
22716 | } >&5 | |
22717 | ||
22718 | _ACEOF | |
22719 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22720 | # | |
22721 | # INIT-COMMANDS | |
22722 | # | |
66170b30 | 22723 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
9c60689e DWT |
22724 | |
22725 | ||
22726 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
22727 | # if CDPATH is set. | |
22728 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
22729 | ||
22730 | sed_quote_subst='$sed_quote_subst' | |
22731 | double_quote_subst='$double_quote_subst' | |
22732 | delay_variable_subst='$delay_variable_subst' | |
ee134472 JF |
22733 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
22734 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
22735 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
22736 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
22737 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
22738 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
9d54db95 | 22739 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
ee134472 JF |
22740 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
22741 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
53ba6704 | 22742 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
ee134472 JF |
22743 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
22744 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
22745 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
22746 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
22747 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
22748 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
22749 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
22750 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
22751 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
22752 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
22753 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
22754 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
22755 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
22756 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
22757 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
22758 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
22759 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
22760 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
22761 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
22762 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
22763 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
22764 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
22765 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
22766 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
22767 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
22768 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
22769 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
22770 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
22771 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
22772 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
22773 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
22774 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
22775 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
22776 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
22777 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
22778 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
22779 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
22780 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
22781 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
22782 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
22783 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
22784 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
22785 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
22786 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
22787 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
22788 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
9d54db95 | 22789 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
ee134472 JF |
22790 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
22791 | 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"`' | |
9d54db95 | 22792 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
ee134472 JF |
22793 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
22794 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
9d54db95 | 22795 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
ee134472 JF |
22796 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
22797 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
22798 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
22799 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
22800 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
22801 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
22802 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
22803 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
22804 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
22805 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
22806 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
22807 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
22808 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
22809 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
22810 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
22811 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
22812 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
22813 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
22814 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
22815 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
22816 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
22817 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
22818 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
22819 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
22820 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
22821 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
22822 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
22823 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
22824 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
22825 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
22826 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
22827 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
ee134472 JF |
22828 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
22829 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
22830 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
22831 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
22832 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
22833 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
22834 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
22835 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
22836 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
22837 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
22838 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
22839 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
22840 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
22841 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
22842 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
22843 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
22844 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
22845 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
22846 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
22847 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
22848 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
22849 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
22850 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
22851 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
22852 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
22853 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
22854 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
22855 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
22856 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
22857 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
22858 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
22859 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
9d54db95 JF |
22860 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
22861 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' | |
ee134472 JF |
22862 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
22863 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
22864 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
22865 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
22866 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
22867 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
22868 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
22869 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
22870 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
22871 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
22872 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
22873 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
22874 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' | |
22875 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
22876 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22877 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22878 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' | |
22879 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' | |
22880 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
22881 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' | |
22882 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' | |
22883 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' | |
22884 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' | |
22885 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' | |
22886 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' | |
22887 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
22888 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
22889 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' | |
22890 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22891 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22892 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22893 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22894 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22895 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22896 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
22897 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
22898 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
22899 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
ee134472 JF |
22900 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' |
22901 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' | |
22902 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' | |
22903 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' | |
22904 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' | |
22905 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' | |
22906 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' | |
22907 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' | |
22908 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' | |
22909 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22910 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
22911 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
22912 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22913 | postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22914 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
22915 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' | |
22916 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' | |
22917 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
22918 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
22919 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' | |
22920 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' | |
22921 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' | |
9c60689e DWT |
22922 | |
22923 | LTCC='$LTCC' | |
22924 | LTCFLAGS='$LTCFLAGS' | |
22925 | compiler='$compiler_DEFAULT' | |
22926 | ||
ee134472 JF |
22927 | # A function that is used when there is no print builtin or printf. |
22928 | func_fallback_echo () | |
22929 | { | |
22930 | eval 'cat <<_LTECHO_EOF | |
22931 | \$1 | |
22932 | _LTECHO_EOF' | |
22933 | } | |
22934 | ||
9c60689e | 22935 | # Quote evaled strings. |
ee134472 JF |
22936 | for var in SHELL \ |
22937 | ECHO \ | |
53ba6704 | 22938 | PATH_SEPARATOR \ |
ee134472 | 22939 | SED \ |
9c60689e DWT |
22940 | GREP \ |
22941 | EGREP \ | |
22942 | FGREP \ | |
22943 | LD \ | |
22944 | NM \ | |
22945 | LN_S \ | |
22946 | lt_SP2NL \ | |
22947 | lt_NL2SP \ | |
22948 | reload_flag \ | |
22949 | OBJDUMP \ | |
22950 | deplibs_check_method \ | |
22951 | file_magic_cmd \ | |
ee134472 JF |
22952 | file_magic_glob \ |
22953 | want_nocaseglob \ | |
22954 | DLLTOOL \ | |
22955 | sharedlib_from_linklib_cmd \ | |
9c60689e DWT |
22956 | AR \ |
22957 | AR_FLAGS \ | |
ee134472 | 22958 | archiver_list_spec \ |
9c60689e DWT |
22959 | STRIP \ |
22960 | RANLIB \ | |
22961 | CC \ | |
22962 | CFLAGS \ | |
22963 | compiler \ | |
22964 | lt_cv_sys_global_symbol_pipe \ | |
22965 | lt_cv_sys_global_symbol_to_cdecl \ | |
9d54db95 | 22966 | lt_cv_sys_global_symbol_to_import \ |
9c60689e DWT |
22967 | lt_cv_sys_global_symbol_to_c_name_address \ |
22968 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
9d54db95 | 22969 | lt_cv_nm_interface \ |
ee134472 | 22970 | nm_file_list_spec \ |
9d54db95 | 22971 | lt_cv_truncate_bin \ |
9c60689e | 22972 | lt_prog_compiler_no_builtin_flag \ |
9c60689e | 22973 | lt_prog_compiler_pic \ |
ee134472 | 22974 | lt_prog_compiler_wl \ |
9c60689e DWT |
22975 | lt_prog_compiler_static \ |
22976 | lt_cv_prog_compiler_c_o \ | |
22977 | need_locks \ | |
ee134472 | 22978 | MANIFEST_TOOL \ |
9c60689e DWT |
22979 | DSYMUTIL \ |
22980 | NMEDIT \ | |
22981 | LIPO \ | |
22982 | OTOOL \ | |
22983 | OTOOL64 \ | |
22984 | shrext_cmds \ | |
22985 | export_dynamic_flag_spec \ | |
22986 | whole_archive_flag_spec \ | |
22987 | compiler_needs_object \ | |
22988 | with_gnu_ld \ | |
22989 | allow_undefined_flag \ | |
22990 | no_undefined_flag \ | |
22991 | hardcode_libdir_flag_spec \ | |
9c60689e | 22992 | hardcode_libdir_separator \ |
9c60689e DWT |
22993 | exclude_expsyms \ |
22994 | include_expsyms \ | |
22995 | file_list_spec \ | |
22996 | variables_saved_for_relink \ | |
22997 | libname_spec \ | |
22998 | library_names_spec \ | |
22999 | soname_spec \ | |
ee134472 | 23000 | install_override_mode \ |
9c60689e DWT |
23001 | finish_eval \ |
23002 | old_striplib \ | |
23003 | striplib \ | |
23004 | compiler_lib_search_dirs \ | |
23005 | predep_objects \ | |
23006 | postdep_objects \ | |
23007 | predeps \ | |
23008 | postdeps \ | |
23009 | compiler_lib_search_path \ | |
23010 | LD_CXX \ | |
ee134472 | 23011 | reload_flag_CXX \ |
9c60689e DWT |
23012 | compiler_CXX \ |
23013 | lt_prog_compiler_no_builtin_flag_CXX \ | |
9c60689e | 23014 | lt_prog_compiler_pic_CXX \ |
ee134472 | 23015 | lt_prog_compiler_wl_CXX \ |
9c60689e DWT |
23016 | lt_prog_compiler_static_CXX \ |
23017 | lt_cv_prog_compiler_c_o_CXX \ | |
23018 | export_dynamic_flag_spec_CXX \ | |
23019 | whole_archive_flag_spec_CXX \ | |
23020 | compiler_needs_object_CXX \ | |
23021 | with_gnu_ld_CXX \ | |
23022 | allow_undefined_flag_CXX \ | |
23023 | no_undefined_flag_CXX \ | |
23024 | hardcode_libdir_flag_spec_CXX \ | |
9c60689e | 23025 | hardcode_libdir_separator_CXX \ |
9c60689e DWT |
23026 | exclude_expsyms_CXX \ |
23027 | include_expsyms_CXX \ | |
23028 | file_list_spec_CXX \ | |
23029 | compiler_lib_search_dirs_CXX \ | |
23030 | predep_objects_CXX \ | |
23031 | postdep_objects_CXX \ | |
23032 | predeps_CXX \ | |
23033 | postdeps_CXX \ | |
23034 | compiler_lib_search_path_CXX; do | |
ee134472 | 23035 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
9c60689e | 23036 | *[\\\\\\\`\\"\\\$]*) |
9d54db95 | 23037 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
9c60689e DWT |
23038 | ;; |
23039 | *) | |
23040 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
23041 | ;; | |
23042 | esac | |
23043 | done | |
23044 | ||
23045 | # Double-quote double-evaled strings. | |
23046 | for var in reload_cmds \ | |
23047 | old_postinstall_cmds \ | |
23048 | old_postuninstall_cmds \ | |
23049 | old_archive_cmds \ | |
23050 | extract_expsyms_cmds \ | |
23051 | old_archive_from_new_cmds \ | |
23052 | old_archive_from_expsyms_cmds \ | |
23053 | archive_cmds \ | |
23054 | archive_expsym_cmds \ | |
23055 | module_cmds \ | |
23056 | module_expsym_cmds \ | |
23057 | export_symbols_cmds \ | |
23058 | prelink_cmds \ | |
ee134472 | 23059 | postlink_cmds \ |
9c60689e DWT |
23060 | postinstall_cmds \ |
23061 | postuninstall_cmds \ | |
23062 | finish_cmds \ | |
23063 | sys_lib_search_path_spec \ | |
9d54db95 JF |
23064 | configure_time_dlsearch_path \ |
23065 | configure_time_lt_sys_library_path \ | |
ee134472 | 23066 | reload_cmds_CXX \ |
9c60689e DWT |
23067 | old_archive_cmds_CXX \ |
23068 | old_archive_from_new_cmds_CXX \ | |
23069 | old_archive_from_expsyms_cmds_CXX \ | |
23070 | archive_cmds_CXX \ | |
23071 | archive_expsym_cmds_CXX \ | |
23072 | module_cmds_CXX \ | |
23073 | module_expsym_cmds_CXX \ | |
23074 | export_symbols_cmds_CXX \ | |
ee134472 JF |
23075 | prelink_cmds_CXX \ |
23076 | postlink_cmds_CXX; do | |
23077 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
9c60689e | 23078 | *[\\\\\\\`\\"\\\$]*) |
9d54db95 | 23079 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
9c60689e DWT |
23080 | ;; |
23081 | *) | |
23082 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
23083 | ;; | |
23084 | esac | |
23085 | done | |
23086 | ||
9c60689e | 23087 | ac_aux_dir='$ac_aux_dir' |
9c60689e | 23088 | |
9d54db95 | 23089 | # See if we are running on zsh, and set the options that allow our |
9c60689e | 23090 | # commands through without removal of \ escapes INIT. |
9d54db95 | 23091 | if test -n "\${ZSH_VERSION+set}"; then |
9c60689e DWT |
23092 | setopt NO_GLOB_SUBST |
23093 | fi | |
23094 | ||
23095 | ||
23096 | PACKAGE='$PACKAGE' | |
23097 | VERSION='$VERSION' | |
9c60689e DWT |
23098 | RM='$RM' |
23099 | ofile='$ofile' | |
23100 | ||
23101 | ||
23102 | ||
23103 | ||
23104 | ||
23105 | ||
23106 | _ACEOF | |
23107 | ||
23108 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
23109 | ||
23110 | # Handling of arguments. | |
23111 | for ac_config_target in $ac_config_targets | |
23112 | do | |
23113 | case $ac_config_target in | |
296ee9a6 | 23114 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
66170b30 | 23115 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
9c60689e | 23116 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
790e5246 | 23117 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
9c60689e | 23118 | |
ee134472 | 23119 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
9c60689e DWT |
23120 | esac |
23121 | done | |
23122 | ||
23123 | ||
23124 | # If the user did not use the arguments to specify the items to instantiate, | |
23125 | # then the envvar interface is used. Set only those that are not. | |
23126 | # We use the long form for the default assignment because of an extremely | |
23127 | # bizarre bug on SunOS 4.1.3. | |
23128 | if $ac_need_defaults; then | |
23129 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
296ee9a6 | 23130 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
9c60689e DWT |
23131 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
23132 | fi | |
23133 | ||
23134 | # Have a temporary directory for convenience. Make it in the build tree | |
23135 | # simply because there is no reason against having it here, and in addition, | |
23136 | # creating and moving files from /tmp can sometimes cause problems. | |
23137 | # Hook for its removal unless debugging. | |
23138 | # Note that there is a small window in which the directory will not be cleaned: | |
23139 | # after its creation but before its name has been assigned to `$tmp'. | |
23140 | $debug || | |
23141 | { | |
ee134472 | 23142 | tmp= ac_tmp= |
9c60689e | 23143 | trap 'exit_status=$? |
ee134472 JF |
23144 | : "${ac_tmp:=$tmp}" |
23145 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
9c60689e DWT |
23146 | ' 0 |
23147 | trap 'as_fn_exit 1' 1 2 13 15 | |
23148 | } | |
23149 | # Create a (secure) tmp directory for tmp files. | |
23150 | ||
23151 | { | |
23152 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
ee134472 | 23153 | test -d "$tmp" |
9c60689e DWT |
23154 | } || |
23155 | { | |
23156 | tmp=./conf$$-$RANDOM | |
23157 | (umask 077 && mkdir "$tmp") | |
12833ad8 | 23158 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
ee134472 | 23159 | ac_tmp=$tmp |
9c60689e DWT |
23160 | |
23161 | # Set up the scripts for CONFIG_FILES section. | |
23162 | # No need to generate them if there are no CONFIG_FILES. | |
23163 | # This happens for instance with `./config.status config.h'. | |
23164 | if test -n "$CONFIG_FILES"; then | |
23165 | ||
23166 | ||
23167 | ac_cr=`echo X | tr X '\015'` | |
23168 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
23169 | # But we know of no other shell where ac_cr would be empty at this | |
23170 | # point, so we can use a bashism as a fallback. | |
23171 | if test "x$ac_cr" = x; then | |
23172 | eval ac_cr=\$\'\\r\' | |
23173 | fi | |
23174 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
23175 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
12833ad8 | 23176 | ac_cs_awk_cr='\\r' |
9c60689e DWT |
23177 | else |
23178 | ac_cs_awk_cr=$ac_cr | |
23179 | fi | |
23180 | ||
ee134472 | 23181 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
9c60689e DWT |
23182 | _ACEOF |
23183 | ||
23184 | ||
23185 | { | |
23186 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
23187 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
23188 | echo "_ACEOF" | |
23189 | } >conf$$subs.sh || | |
12833ad8 JF |
23190 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
23191 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
9c60689e DWT |
23192 | ac_delim='%!_!# ' |
23193 | for ac_last_try in false false false false false :; do | |
23194 | . ./conf$$subs.sh || | |
12833ad8 | 23195 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
9c60689e DWT |
23196 | |
23197 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
23198 | if test $ac_delim_n = $ac_delim_num; then | |
23199 | break | |
23200 | elif $ac_last_try; then | |
12833ad8 | 23201 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
9c60689e DWT |
23202 | else |
23203 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
23204 | fi | |
23205 | done | |
23206 | rm -f conf$$subs.sh | |
23207 | ||
23208 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ee134472 | 23209 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
9c60689e DWT |
23210 | _ACEOF |
23211 | sed -n ' | |
23212 | h | |
23213 | s/^/S["/; s/!.*/"]=/ | |
23214 | p | |
23215 | g | |
23216 | s/^[^!]*!// | |
23217 | :repl | |
23218 | t repl | |
23219 | s/'"$ac_delim"'$// | |
23220 | t delim | |
23221 | :nl | |
23222 | h | |
23223 | s/\(.\{148\}\)..*/\1/ | |
23224 | t more1 | |
23225 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
23226 | p | |
23227 | n | |
23228 | b repl | |
23229 | :more1 | |
23230 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
23231 | p | |
23232 | g | |
23233 | s/.\{148\}// | |
23234 | t nl | |
23235 | :delim | |
23236 | h | |
23237 | s/\(.\{148\}\)..*/\1/ | |
23238 | t more2 | |
23239 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
23240 | p | |
23241 | b | |
23242 | :more2 | |
23243 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
23244 | p | |
23245 | g | |
23246 | s/.\{148\}// | |
23247 | t delim | |
23248 | ' <conf$$subs.awk | sed ' | |
23249 | /^[^""]/{ | |
23250 | N | |
23251 | s/\n// | |
23252 | } | |
23253 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
23254 | rm -f conf$$subs.awk | |
23255 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
23256 | _ACAWK | |
ee134472 | 23257 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
9c60689e DWT |
23258 | for (key in S) S_is_set[key] = 1 |
23259 | FS = "\a" | |
23260 | ||
23261 | } | |
23262 | { | |
23263 | line = $ 0 | |
23264 | nfields = split(line, field, "@") | |
23265 | substed = 0 | |
23266 | len = length(field[1]) | |
23267 | for (i = 2; i < nfields; i++) { | |
23268 | key = field[i] | |
23269 | keylen = length(key) | |
23270 | if (S_is_set[key]) { | |
23271 | value = S[key] | |
23272 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
23273 | len += length(value) + length(field[++i]) | |
23274 | substed = 1 | |
23275 | } else | |
23276 | len += 1 + keylen | |
23277 | } | |
23278 | ||
23279 | print line | |
23280 | } | |
23281 | ||
23282 | _ACAWK | |
23283 | _ACEOF | |
23284 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
23285 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
23286 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
23287 | else | |
23288 | cat | |
ee134472 | 23289 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
12833ad8 | 23290 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
9c60689e DWT |
23291 | _ACEOF |
23292 | ||
12833ad8 JF |
23293 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
23294 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
9c60689e DWT |
23295 | # trailing colons and then remove the whole line if VPATH becomes empty |
23296 | # (actually we leave an empty line to preserve line numbers). | |
23297 | if test "x$srcdir" = x.; then | |
12833ad8 JF |
23298 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
23299 | h | |
23300 | s/// | |
23301 | s/^/:/ | |
23302 | s/[ ]*$/:/ | |
23303 | s/:\$(srcdir):/:/g | |
23304 | s/:\${srcdir}:/:/g | |
23305 | s/:@srcdir@:/:/g | |
23306 | s/^:*// | |
9c60689e | 23307 | s/:*$// |
12833ad8 JF |
23308 | x |
23309 | s/\(=[ ]*\).*/\1/ | |
23310 | G | |
23311 | s/\n// | |
9c60689e DWT |
23312 | s/^[^=]*=[ ]*$// |
23313 | }' | |
23314 | fi | |
23315 | ||
23316 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
23317 | fi # test -n "$CONFIG_FILES" | |
23318 | ||
296ee9a6 JF |
23319 | # Set up the scripts for CONFIG_HEADERS section. |
23320 | # No need to generate them if there are no CONFIG_HEADERS. | |
23321 | # This happens for instance with `./config.status Makefile'. | |
23322 | if test -n "$CONFIG_HEADERS"; then | |
23323 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
23324 | BEGIN { | |
23325 | _ACEOF | |
23326 | ||
23327 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
23328 | # here-document in config.status, that substitutes the proper values into | |
23329 | # config.h.in to produce config.h. | |
23330 | ||
23331 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
23332 | # handling of long lines. | |
23333 | ac_delim='%!_!# ' | |
23334 | for ac_last_try in false false :; do | |
23335 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
23336 | if test -z "$ac_tt"; then | |
23337 | break | |
23338 | elif $ac_last_try; then | |
23339 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
23340 | else | |
23341 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
23342 | fi | |
23343 | done | |
23344 | ||
23345 | # For the awk script, D is an array of macro values keyed by name, | |
23346 | # likewise P contains macro parameters if any. Preserve backslash | |
23347 | # newline sequences. | |
23348 | ||
23349 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
23350 | sed -n ' | |
23351 | s/.\{148\}/&'"$ac_delim"'/g | |
23352 | t rset | |
23353 | :rset | |
23354 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
23355 | t def | |
23356 | d | |
23357 | :def | |
23358 | s/\\$// | |
23359 | t bsnl | |
23360 | s/["\\]/\\&/g | |
23361 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
23362 | D["\1"]=" \3"/p | |
23363 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
23364 | d | |
23365 | :bsnl | |
23366 | s/["\\]/\\&/g | |
23367 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
23368 | D["\1"]=" \3\\\\\\n"\\/p | |
23369 | t cont | |
23370 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
23371 | t cont | |
23372 | d | |
23373 | :cont | |
23374 | n | |
23375 | s/.\{148\}/&'"$ac_delim"'/g | |
23376 | t clear | |
23377 | :clear | |
23378 | s/\\$// | |
23379 | t bsnlc | |
23380 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
23381 | d | |
23382 | :bsnlc | |
23383 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
23384 | b cont | |
23385 | ' <confdefs.h | sed ' | |
23386 | s/'"$ac_delim"'/"\\\ | |
23387 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
23388 | ||
23389 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
23390 | for (key in D) D_is_set[key] = 1 | |
23391 | FS = "\a" | |
23392 | } | |
23393 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
23394 | line = \$ 0 | |
23395 | split(line, arg, " ") | |
23396 | if (arg[1] == "#") { | |
23397 | defundef = arg[2] | |
23398 | mac1 = arg[3] | |
23399 | } else { | |
23400 | defundef = substr(arg[1], 2) | |
23401 | mac1 = arg[2] | |
23402 | } | |
23403 | split(mac1, mac2, "(") #) | |
23404 | macro = mac2[1] | |
23405 | prefix = substr(line, 1, index(line, defundef) - 1) | |
23406 | if (D_is_set[macro]) { | |
23407 | # Preserve the white space surrounding the "#". | |
23408 | print prefix "define", macro P[macro] D[macro] | |
23409 | next | |
23410 | } else { | |
23411 | # Replace #undef with comments. This is necessary, for example, | |
23412 | # in the case of _POSIX_SOURCE, which is predefined and required | |
23413 | # on some systems where configure will not decide to define it. | |
23414 | if (defundef == "undef") { | |
23415 | print "/*", prefix defundef, macro, "*/" | |
23416 | next | |
23417 | } | |
23418 | } | |
23419 | } | |
23420 | { print } | |
23421 | _ACAWK | |
23422 | _ACEOF | |
23423 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
23424 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
23425 | fi # test -n "$CONFIG_HEADERS" | |
23426 | ||
9c60689e | 23427 | |
296ee9a6 | 23428 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
9c60689e DWT |
23429 | shift |
23430 | for ac_tag | |
23431 | do | |
23432 | case $ac_tag in | |
23433 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
23434 | esac | |
23435 | case $ac_mode$ac_tag in | |
23436 | :[FHL]*:*);; | |
ee134472 | 23437 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
9c60689e DWT |
23438 | :[FH]-) ac_tag=-:-;; |
23439 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
23440 | esac | |
23441 | ac_save_IFS=$IFS | |
23442 | IFS=: | |
23443 | set x $ac_tag | |
23444 | IFS=$ac_save_IFS | |
23445 | shift | |
23446 | ac_file=$1 | |
23447 | shift | |
23448 | ||
23449 | case $ac_mode in | |
23450 | :L) ac_source=$1;; | |
23451 | :[FH]) | |
23452 | ac_file_inputs= | |
23453 | for ac_f | |
23454 | do | |
23455 | case $ac_f in | |
ee134472 | 23456 | -) ac_f="$ac_tmp/stdin";; |
9c60689e DWT |
23457 | *) # Look for the file first in the build tree, then in the source tree |
23458 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
23459 | # because $ac_f cannot contain `:'. | |
23460 | test -f "$ac_f" || | |
23461 | case $ac_f in | |
23462 | [\\/$]*) false;; | |
23463 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
23464 | esac || | |
ee134472 | 23465 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
9c60689e DWT |
23466 | esac |
23467 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
23468 | as_fn_append ac_file_inputs " '$ac_f'" | |
23469 | done | |
23470 | ||
23471 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
23472 | # use $as_me), people would be surprised to read: | |
23473 | # /* config.h. Generated by config.status. */ | |
23474 | configure_input='Generated from '` | |
23475 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
23476 | `' by configure.' | |
23477 | if test x"$ac_file" != x-; then | |
23478 | configure_input="$ac_file. $configure_input" | |
23479 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
23480 | $as_echo "$as_me: creating $ac_file" >&6;} | |
23481 | fi | |
23482 | # Neutralize special characters interpreted by sed in replacement strings. | |
23483 | case $configure_input in #( | |
23484 | *\&* | *\|* | *\\* ) | |
23485 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
23486 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
23487 | *) ac_sed_conf_input=$configure_input;; | |
23488 | esac | |
23489 | ||
23490 | case $ac_tag in | |
ee134472 JF |
23491 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
23492 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
9c60689e DWT |
23493 | esac |
23494 | ;; | |
23495 | esac | |
23496 | ||
23497 | ac_dir=`$as_dirname -- "$ac_file" || | |
23498 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23499 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
23500 | X"$ac_file" : 'X\(//\)$' \| \ | |
23501 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
23502 | $as_echo X"$ac_file" | | |
23503 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
23504 | s//\1/ | |
23505 | q | |
23506 | } | |
23507 | /^X\(\/\/\)[^/].*/{ | |
23508 | s//\1/ | |
23509 | q | |
23510 | } | |
23511 | /^X\(\/\/\)$/{ | |
23512 | s//\1/ | |
23513 | q | |
23514 | } | |
23515 | /^X\(\/\).*/{ | |
23516 | s//\1/ | |
23517 | q | |
23518 | } | |
23519 | s/.*/./; q'` | |
23520 | as_dir="$ac_dir"; as_fn_mkdir_p | |
23521 | ac_builddir=. | |
23522 | ||
23523 | case "$ac_dir" in | |
23524 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
23525 | *) | |
23526 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
23527 | # A ".." for each directory in $ac_dir_suffix. | |
23528 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
23529 | case $ac_top_builddir_sub in | |
23530 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
23531 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
23532 | esac ;; | |
23533 | esac | |
23534 | ac_abs_top_builddir=$ac_pwd | |
23535 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
23536 | # for backward compatibility: | |
23537 | ac_top_builddir=$ac_top_build_prefix | |
35fa52c0 | 23538 | |
9c60689e DWT |
23539 | case $srcdir in |
23540 | .) # We are building in place. | |
23541 | ac_srcdir=. | |
23542 | ac_top_srcdir=$ac_top_builddir_sub | |
23543 | ac_abs_top_srcdir=$ac_pwd ;; | |
23544 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
23545 | ac_srcdir=$srcdir$ac_dir_suffix; | |
23546 | ac_top_srcdir=$srcdir | |
23547 | ac_abs_top_srcdir=$srcdir ;; | |
23548 | *) # Relative name. | |
23549 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
23550 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
23551 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
23552 | esac | |
23553 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
35fa52c0 DWT |
23554 | |
23555 | ||
9c60689e DWT |
23556 | case $ac_mode in |
23557 | :F) | |
23558 | # | |
23559 | # CONFIG_FILE | |
23560 | # | |
35fa52c0 | 23561 | |
9c60689e DWT |
23562 | case $INSTALL in |
23563 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
23564 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
23565 | esac | |
66170b30 JF |
23566 | ac_MKDIR_P=$MKDIR_P |
23567 | case $MKDIR_P in | |
23568 | [\\/$]* | ?:[\\/]* ) ;; | |
23569 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
23570 | esac | |
9c60689e | 23571 | _ACEOF |
35fa52c0 | 23572 | |
9c60689e DWT |
23573 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
23574 | # If the template does not know about datarootdir, expand it. | |
23575 | # FIXME: This hack should be removed a few years after 2.60. | |
23576 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
23577 | ac_sed_dataroot=' | |
23578 | /datarootdir/ { | |
23579 | p | |
23580 | q | |
23581 | } | |
23582 | /@datadir@/p | |
23583 | /@docdir@/p | |
23584 | /@infodir@/p | |
23585 | /@localedir@/p | |
23586 | /@mandir@/p' | |
23587 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
23588 | *datarootdir*) ac_datarootdir_seen=yes;; | |
23589 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
23590 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
23591 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
23592 | _ACEOF | |
23593 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
23594 | ac_datarootdir_hack=' | |
23595 | s&@datadir@&$datadir&g | |
23596 | s&@docdir@&$docdir&g | |
23597 | s&@infodir@&$infodir&g | |
23598 | s&@localedir@&$localedir&g | |
23599 | s&@mandir@&$mandir&g | |
23600 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
23601 | esac | |
23602 | _ACEOF | |
35fa52c0 | 23603 | |
9c60689e DWT |
23604 | # Neutralize VPATH when `$srcdir' = `.'. |
23605 | # Shell code in configure.ac might set extrasub. | |
23606 | # FIXME: do we really want to maintain this feature? | |
23607 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
23608 | ac_sed_extra="$ac_vpsub | |
23609 | $extrasub | |
23610 | _ACEOF | |
23611 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
23612 | :t | |
23613 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
23614 | s|@configure_input@|$ac_sed_conf_input|;t t | |
23615 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
23616 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
23617 | s&@srcdir@&$ac_srcdir&;t t | |
23618 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
23619 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
23620 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
23621 | s&@builddir@&$ac_builddir&;t t | |
23622 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
23623 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
23624 | s&@INSTALL@&$ac_INSTALL&;t t | |
66170b30 | 23625 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
9c60689e DWT |
23626 | $ac_datarootdir_hack |
23627 | " | |
ee134472 JF |
23628 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
23629 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
9c60689e DWT |
23630 | |
23631 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
ee134472 JF |
23632 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
23633 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
23634 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
9c60689e | 23635 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12833ad8 | 23636 | which seems to be undefined. Please make sure it is defined" >&5 |
9c60689e | 23637 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12833ad8 | 23638 | which seems to be undefined. Please make sure it is defined" >&2;} |
9c60689e | 23639 | |
ee134472 | 23640 | rm -f "$ac_tmp/stdin" |
9c60689e | 23641 | case $ac_file in |
ee134472 JF |
23642 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
23643 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
9c60689e | 23644 | esac \ |
12833ad8 | 23645 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
9c60689e | 23646 | ;; |
296ee9a6 JF |
23647 | :H) |
23648 | # | |
23649 | # CONFIG_HEADER | |
23650 | # | |
23651 | if test x"$ac_file" != x-; then | |
23652 | { | |
23653 | $as_echo "/* $configure_input */" \ | |
23654 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
23655 | } >"$ac_tmp/config.h" \ | |
23656 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
23657 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
23658 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
23659 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
23660 | else | |
23661 | rm -f "$ac_file" | |
23662 | mv "$ac_tmp/config.h" "$ac_file" \ | |
23663 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
23664 | fi | |
23665 | else | |
23666 | $as_echo "/* $configure_input */" \ | |
23667 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
23668 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
23669 | fi | |
23670 | # Compute "$ac_file"'s index in $config_headers. | |
23671 | _am_arg="$ac_file" | |
23672 | _am_stamp_count=1 | |
23673 | for _am_header in $config_headers :; do | |
23674 | case $_am_header in | |
23675 | $_am_arg | $_am_arg:* ) | |
23676 | break ;; | |
23677 | * ) | |
23678 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
23679 | esac | |
23680 | done | |
23681 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
23682 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23683 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
23684 | X"$_am_arg" : 'X\(//\)$' \| \ | |
23685 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
23686 | $as_echo X"$_am_arg" | | |
23687 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
23688 | s//\1/ | |
23689 | q | |
23690 | } | |
23691 | /^X\(\/\/\)[^/].*/{ | |
23692 | s//\1/ | |
23693 | q | |
23694 | } | |
23695 | /^X\(\/\/\)$/{ | |
23696 | s//\1/ | |
23697 | q | |
23698 | } | |
23699 | /^X\(\/\).*/{ | |
23700 | s//\1/ | |
23701 | q | |
23702 | } | |
23703 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
23704 | ;; | |
35fa52c0 | 23705 | |
9c60689e DWT |
23706 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
23707 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
23708 | ;; | |
23709 | esac | |
35fa52c0 | 23710 | |
35fa52c0 | 23711 | |
9c60689e | 23712 | case $ac_file$ac_mode in |
66170b30 JF |
23713 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
23714 | # Older Autoconf quotes --file arguments for eval, but not when files | |
23715 | # are listed without --file. Let's play safe and only enable the eval | |
23716 | # if we detect the quoting. | |
23717 | case $CONFIG_FILES in | |
23718 | *\'*) eval set x "$CONFIG_FILES" ;; | |
23719 | *) set x $CONFIG_FILES ;; | |
23720 | esac | |
23721 | shift | |
23722 | for mf | |
23723 | do | |
23724 | # Strip MF so we end up with the name of the file. | |
23725 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
23726 | # Check whether this is an Automake generated Makefile or not. | |
23727 | # We used to match only the files named 'Makefile.in', but | |
23728 | # some people rename them; so instead we look at the file content. | |
23729 | # Grep'ing the first line is not enough: some people post-process | |
23730 | # each Makefile.in and add a new line on top of each file to say so. | |
23731 | # Grep'ing the whole file is not good either: AIX grep has a line | |
23732 | # limit of 2048, but all sed's we know have understand at least 4000. | |
23733 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
23734 | dirpart=`$as_dirname -- "$mf" || | |
23735 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23736 | X"$mf" : 'X\(//\)[^/]' \| \ | |
23737 | X"$mf" : 'X\(//\)$' \| \ | |
23738 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
23739 | $as_echo X"$mf" | | |
23740 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
23741 | s//\1/ | |
23742 | q | |
23743 | } | |
23744 | /^X\(\/\/\)[^/].*/{ | |
23745 | s//\1/ | |
23746 | q | |
23747 | } | |
23748 | /^X\(\/\/\)$/{ | |
23749 | s//\1/ | |
23750 | q | |
23751 | } | |
23752 | /^X\(\/\).*/{ | |
23753 | s//\1/ | |
23754 | q | |
23755 | } | |
23756 | s/.*/./; q'` | |
23757 | else | |
23758 | continue | |
23759 | fi | |
23760 | # Extract the definition of DEPDIR, am__include, and am__quote | |
23761 | # from the Makefile without running 'make'. | |
23762 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
23763 | test -z "$DEPDIR" && continue | |
23764 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
a93f15c0 | 23765 | test -z "$am__include" && continue |
66170b30 JF |
23766 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
23767 | # Find all dependency output files, they are included files with | |
23768 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
23769 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
23770 | # expansion. | |
23771 | for file in `sed -n " | |
23772 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
23773 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
23774 | # Make sure the directory exists. | |
23775 | test -f "$dirpart/$file" && continue | |
23776 | fdir=`$as_dirname -- "$file" || | |
23777 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23778 | X"$file" : 'X\(//\)[^/]' \| \ | |
23779 | X"$file" : 'X\(//\)$' \| \ | |
23780 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
23781 | $as_echo X"$file" | | |
23782 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
23783 | s//\1/ | |
23784 | q | |
23785 | } | |
23786 | /^X\(\/\/\)[^/].*/{ | |
23787 | s//\1/ | |
23788 | q | |
23789 | } | |
23790 | /^X\(\/\/\)$/{ | |
23791 | s//\1/ | |
23792 | q | |
23793 | } | |
23794 | /^X\(\/\).*/{ | |
23795 | s//\1/ | |
23796 | q | |
23797 | } | |
23798 | s/.*/./; q'` | |
23799 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
23800 | # echo "creating $dirpart/$file" | |
23801 | echo '# dummy' > "$dirpart/$file" | |
23802 | done | |
23803 | done | |
23804 | } | |
23805 | ;; | |
9c60689e DWT |
23806 | "libtool":C) |
23807 | ||
9d54db95 | 23808 | # See if we are running on zsh, and set the options that allow our |
9c60689e | 23809 | # commands through without removal of \ escapes. |
9d54db95 | 23810 | if test -n "${ZSH_VERSION+set}"; then |
9c60689e | 23811 | setopt NO_GLOB_SUBST |
35fa52c0 | 23812 | fi |
35fa52c0 | 23813 | |
9d54db95 | 23814 | cfgfile=${ofile}T |
9c60689e DWT |
23815 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
23816 | $RM "$cfgfile" | |
35fa52c0 | 23817 | |
9c60689e DWT |
23818 | cat <<_LT_EOF >> "$cfgfile" |
23819 | #! $SHELL | |
9d54db95 | 23820 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
9c60689e DWT |
23821 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
23822 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
9d54db95 JF |
23823 | |
23824 | # Provide generalized library-building support services. | |
23825 | # Written by Gordon Matzigkeit, 1996 | |
23826 | ||
23827 | # Copyright (C) 2014 Free Software Foundation, Inc. | |
23828 | # This is free software; see the source for copying conditions. There is NO | |
23829 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
23830 | ||
23831 | # GNU Libtool is free software; you can redistribute it and/or modify | |
23832 | # it under the terms of the GNU General Public License as published by | |
23833 | # the Free Software Foundation; either version 2 of of the License, or | |
23834 | # (at your option) any later version. | |
9c60689e | 23835 | # |
9d54db95 JF |
23836 | # As a special exception to the GNU General Public License, if you |
23837 | # distribute this file as part of a program or library that is built | |
23838 | # using GNU Libtool, you may include this file under the same | |
23839 | # distribution terms that you use for the rest of that program. | |
9c60689e | 23840 | # |
9d54db95 JF |
23841 | # GNU Libtool is distributed in the hope that it will be useful, but |
23842 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
9c60689e DWT |
23843 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
23844 | # GNU General Public License for more details. | |
23845 | # | |
23846 | # You should have received a copy of the GNU General Public License | |
9d54db95 | 23847 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
35fa52c0 | 23848 | |
35fa52c0 | 23849 | |
9c60689e | 23850 | # The names of the tagged configurations supported by this script. |
9d54db95 JF |
23851 | available_tags='CXX ' |
23852 | ||
23853 | # Configured defaults for sys_lib_dlsearch_path munging. | |
23854 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} | |
35fa52c0 | 23855 | |
9c60689e | 23856 | # ### BEGIN LIBTOOL CONFIG |
35fa52c0 | 23857 | |
9c60689e DWT |
23858 | # Which release of libtool.m4 was used? |
23859 | macro_version=$macro_version | |
23860 | macro_revision=$macro_revision | |
35fa52c0 | 23861 | |
9c60689e DWT |
23862 | # Whether or not to build static libraries. |
23863 | build_old_libs=$enable_static | |
35fa52c0 | 23864 | |
549f29b5 DWT |
23865 | # Whether or not to build shared libraries. |
23866 | build_libtool_libs=$enable_shared | |
23867 | ||
9c60689e DWT |
23868 | # What type of objects to build. |
23869 | pic_mode=$pic_mode | |
35fa52c0 | 23870 | |
9c60689e DWT |
23871 | # Whether or not to optimize for fast installation. |
23872 | fast_install=$enable_fast_install | |
35fa52c0 | 23873 | |
9d54db95 JF |
23874 | # Shared archive member basename,for filename based shared library versioning on AIX. |
23875 | shared_archive_member_spec=$shared_archive_member_spec | |
23876 | ||
ee134472 JF |
23877 | # Shell to use when invoking shell scripts. |
23878 | SHELL=$lt_SHELL | |
23879 | ||
23880 | # An echo program that protects backslashes. | |
23881 | ECHO=$lt_ECHO | |
23882 | ||
53ba6704 JF |
23883 | # The PATH separator for the build system. |
23884 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
23885 | ||
9c60689e DWT |
23886 | # The host system. |
23887 | host_alias=$host_alias | |
23888 | host=$host | |
23889 | host_os=$host_os | |
35fa52c0 | 23890 | |
9c60689e DWT |
23891 | # The build system. |
23892 | build_alias=$build_alias | |
23893 | build=$build | |
23894 | build_os=$build_os | |
23895 | ||
23896 | # A sed program that does not truncate output. | |
23897 | SED=$lt_SED | |
23898 | ||
23899 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
23900 | Xsed="\$SED -e 1s/^X//" | |
23901 | ||
23902 | # A grep program that handles long lines. | |
23903 | GREP=$lt_GREP | |
23904 | ||
23905 | # An ERE matcher. | |
23906 | EGREP=$lt_EGREP | |
23907 | ||
23908 | # A literal string matcher. | |
23909 | FGREP=$lt_FGREP | |
23910 | ||
23911 | # A BSD- or MS-compatible name lister. | |
23912 | NM=$lt_NM | |
23913 | ||
23914 | # Whether we need soft or hard links. | |
23915 | LN_S=$lt_LN_S | |
23916 | ||
23917 | # What is the maximum length of a command? | |
23918 | max_cmd_len=$max_cmd_len | |
23919 | ||
23920 | # Object file suffix (normally "o"). | |
23921 | objext=$ac_objext | |
23922 | ||
23923 | # Executable file suffix (normally ""). | |
23924 | exeext=$exeext | |
23925 | ||
23926 | # whether the shell understands "unset". | |
23927 | lt_unset=$lt_unset | |
23928 | ||
23929 | # turn spaces into newlines. | |
23930 | SP2NL=$lt_lt_SP2NL | |
23931 | ||
23932 | # turn newlines into spaces. | |
23933 | NL2SP=$lt_lt_NL2SP | |
23934 | ||
ee134472 JF |
23935 | # convert \$build file names to \$host format. |
23936 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
23937 | ||
23938 | # convert \$build files to toolchain format. | |
23939 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
9c60689e DWT |
23940 | |
23941 | # An object symbol dumper. | |
23942 | OBJDUMP=$lt_OBJDUMP | |
23943 | ||
23944 | # Method to check whether dependent libraries are shared objects. | |
23945 | deplibs_check_method=$lt_deplibs_check_method | |
23946 | ||
ee134472 | 23947 | # Command to use when deplibs_check_method = "file_magic". |
9c60689e DWT |
23948 | file_magic_cmd=$lt_file_magic_cmd |
23949 | ||
ee134472 JF |
23950 | # How to find potential files when deplibs_check_method = "file_magic". |
23951 | file_magic_glob=$lt_file_magic_glob | |
23952 | ||
23953 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
23954 | want_nocaseglob=$lt_want_nocaseglob | |
23955 | ||
23956 | # DLL creation program. | |
23957 | DLLTOOL=$lt_DLLTOOL | |
23958 | ||
23959 | # Command to associate shared and link libraries. | |
23960 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
23961 | ||
9c60689e DWT |
23962 | # The archiver. |
23963 | AR=$lt_AR | |
ee134472 JF |
23964 | |
23965 | # Flags to create an archive. | |
9c60689e DWT |
23966 | AR_FLAGS=$lt_AR_FLAGS |
23967 | ||
ee134472 JF |
23968 | # How to feed a file listing to the archiver. |
23969 | archiver_list_spec=$lt_archiver_list_spec | |
23970 | ||
9c60689e DWT |
23971 | # A symbol stripping program. |
23972 | STRIP=$lt_STRIP | |
23973 | ||
23974 | # Commands used to install an old-style archive. | |
23975 | RANLIB=$lt_RANLIB | |
23976 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
23977 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
23978 | ||
ee134472 JF |
23979 | # Whether to use a lock for old archive extraction. |
23980 | lock_old_archive_extraction=$lock_old_archive_extraction | |
23981 | ||
9c60689e DWT |
23982 | # A C compiler. |
23983 | LTCC=$lt_CC | |
23984 | ||
23985 | # LTCC compiler flags. | |
23986 | LTCFLAGS=$lt_CFLAGS | |
23987 | ||
23988 | # Take the output of nm and produce a listing of raw symbols and C names. | |
23989 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
23990 | ||
23991 | # Transform the output of nm in a proper C declaration. | |
23992 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
23993 | ||
9d54db95 JF |
23994 | # Transform the output of nm into a list of symbols to manually relocate. |
23995 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import | |
23996 | ||
9c60689e DWT |
23997 | # Transform the output of nm in a C name address pair. |
23998 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
23999 | ||
24000 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
24001 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
24002 | ||
9d54db95 JF |
24003 | # The name lister interface. |
24004 | nm_interface=$lt_lt_cv_nm_interface | |
24005 | ||
ee134472 JF |
24006 | # Specify filename containing input files for \$NM. |
24007 | nm_file_list_spec=$lt_nm_file_list_spec | |
9c60689e | 24008 | |
9d54db95 | 24009 | # The root where to search for dependent libraries,and where our libraries should be installed. |
ee134472 | 24010 | lt_sysroot=$lt_sysroot |
9c60689e | 24011 | |
9d54db95 JF |
24012 | # Command to truncate a binary pipe. |
24013 | lt_truncate_bin=$lt_lt_cv_truncate_bin | |
24014 | ||
ee134472 JF |
24015 | # The name of the directory that contains temporary libtool files. |
24016 | objdir=$objdir | |
9c60689e DWT |
24017 | |
24018 | # Used to examine libraries when file_magic_cmd begins with "file". | |
24019 | MAGIC_CMD=$MAGIC_CMD | |
24020 | ||
24021 | # Must we lock files when doing compilation? | |
24022 | need_locks=$lt_need_locks | |
24023 | ||
ee134472 JF |
24024 | # Manifest tool. |
24025 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
24026 | ||
9c60689e DWT |
24027 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
24028 | DSYMUTIL=$lt_DSYMUTIL | |
24029 | ||
24030 | # Tool to change global to local symbols on Mac OS X. | |
24031 | NMEDIT=$lt_NMEDIT | |
24032 | ||
24033 | # Tool to manipulate fat objects and archives on Mac OS X. | |
24034 | LIPO=$lt_LIPO | |
24035 | ||
24036 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
24037 | OTOOL=$lt_OTOOL | |
24038 | ||
24039 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
24040 | OTOOL64=$lt_OTOOL64 | |
24041 | ||
24042 | # Old archive suffix (normally "a"). | |
24043 | libext=$libext | |
24044 | ||
24045 | # Shared library suffix (normally ".so"). | |
24046 | shrext_cmds=$lt_shrext_cmds | |
35fa52c0 | 24047 | |
9c60689e DWT |
24048 | # The commands to extract the exported symbol list from a shared archive. |
24049 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
35fa52c0 | 24050 | |
9c60689e DWT |
24051 | # Variables whose values should be saved in libtool wrapper scripts and |
24052 | # restored at link time. | |
24053 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
35fa52c0 | 24054 | |
9c60689e DWT |
24055 | # Do we need the "lib" prefix for modules? |
24056 | need_lib_prefix=$need_lib_prefix | |
35fa52c0 | 24057 | |
9c60689e DWT |
24058 | # Do we need a version for libraries? |
24059 | need_version=$need_version | |
35fa52c0 | 24060 | |
9c60689e DWT |
24061 | # Library versioning type. |
24062 | version_type=$version_type | |
35fa52c0 | 24063 | |
9c60689e DWT |
24064 | # Shared library runtime path variable. |
24065 | runpath_var=$runpath_var | |
35fa52c0 | 24066 | |
9c60689e DWT |
24067 | # Shared library path variable. |
24068 | shlibpath_var=$shlibpath_var | |
35fa52c0 | 24069 | |
9c60689e DWT |
24070 | # Is shlibpath searched before the hard-coded library search path? |
24071 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
35fa52c0 | 24072 | |
9c60689e DWT |
24073 | # Format of library name prefix. |
24074 | libname_spec=$lt_libname_spec | |
35fa52c0 | 24075 | |
9c60689e DWT |
24076 | # List of archive names. First name is the real one, the rest are links. |
24077 | # The last name is the one that the linker finds with -lNAME | |
24078 | library_names_spec=$lt_library_names_spec | |
dbadc56a | 24079 | |
9c60689e DWT |
24080 | # The coded name of the library, if different from the real name. |
24081 | soname_spec=$lt_soname_spec | |
dbadc56a | 24082 | |
ee134472 JF |
24083 | # Permission mode override for installation of shared libraries. |
24084 | install_override_mode=$lt_install_override_mode | |
24085 | ||
9c60689e DWT |
24086 | # Command to use after installation of a shared archive. |
24087 | postinstall_cmds=$lt_postinstall_cmds | |
35fa52c0 | 24088 | |
9c60689e DWT |
24089 | # Command to use after uninstallation of a shared archive. |
24090 | postuninstall_cmds=$lt_postuninstall_cmds | |
dbadc56a | 24091 | |
9c60689e DWT |
24092 | # Commands used to finish a libtool library installation in a directory. |
24093 | finish_cmds=$lt_finish_cmds | |
35fa52c0 | 24094 | |
9c60689e DWT |
24095 | # As "finish_cmds", except a single script fragment to be evaled but |
24096 | # not shown. | |
24097 | finish_eval=$lt_finish_eval | |
35fa52c0 | 24098 | |
9c60689e DWT |
24099 | # Whether we should hardcode library paths into libraries. |
24100 | hardcode_into_libs=$hardcode_into_libs | |
dbadc56a | 24101 | |
9c60689e DWT |
24102 | # Compile-time system search path for libraries. |
24103 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
35fa52c0 | 24104 | |
9d54db95 JF |
24105 | # Detected run-time system search path for libraries. |
24106 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path | |
24107 | ||
24108 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. | |
24109 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path | |
dbadc56a | 24110 | |
9c60689e DWT |
24111 | # Whether dlopen is supported. |
24112 | dlopen_support=$enable_dlopen | |
dbadc56a | 24113 | |
9c60689e DWT |
24114 | # Whether dlopen of programs is supported. |
24115 | dlopen_self=$enable_dlopen_self | |
35fa52c0 | 24116 | |
9c60689e DWT |
24117 | # Whether dlopen of statically linked programs is supported. |
24118 | dlopen_self_static=$enable_dlopen_self_static | |
35fa52c0 | 24119 | |
9c60689e DWT |
24120 | # Commands to strip libraries. |
24121 | old_striplib=$lt_old_striplib | |
24122 | striplib=$lt_striplib | |
35fa52c0 | 24123 | |
35fa52c0 | 24124 | |
9c60689e DWT |
24125 | # The linker used to build libraries. |
24126 | LD=$lt_LD | |
dbadc56a | 24127 | |
ee134472 JF |
24128 | # How to create reloadable object files. |
24129 | reload_flag=$lt_reload_flag | |
24130 | reload_cmds=$lt_reload_cmds | |
24131 | ||
9c60689e DWT |
24132 | # Commands used to build an old-style archive. |
24133 | old_archive_cmds=$lt_old_archive_cmds | |
dbadc56a | 24134 | |
9c60689e DWT |
24135 | # A language specific compiler. |
24136 | CC=$lt_compiler | |
35fa52c0 | 24137 | |
9c60689e DWT |
24138 | # Is the compiler the GNU compiler? |
24139 | with_gcc=$GCC | |
dbadc56a | 24140 | |
9c60689e DWT |
24141 | # Compiler flag to turn off builtin functions. |
24142 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dbadc56a | 24143 | |
9c60689e DWT |
24144 | # Additional compiler flags for building library objects. |
24145 | pic_flag=$lt_lt_prog_compiler_pic | |
35fa52c0 | 24146 | |
ee134472 JF |
24147 | # How to pass a linker flag through the compiler. |
24148 | wl=$lt_lt_prog_compiler_wl | |
24149 | ||
9c60689e DWT |
24150 | # Compiler flag to prevent dynamic linking. |
24151 | link_static_flag=$lt_lt_prog_compiler_static | |
35fa52c0 | 24152 | |
9c60689e DWT |
24153 | # Does compiler simultaneously support -c and -o options? |
24154 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
dbadc56a | 24155 | |
9c60689e DWT |
24156 | # Whether or not to add -lc for building shared libraries. |
24157 | build_libtool_need_lc=$archive_cmds_need_lc | |
35fa52c0 | 24158 | |
9c60689e DWT |
24159 | # Whether or not to disallow shared libs when runtime libs are static. |
24160 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
35fa52c0 | 24161 | |
9c60689e DWT |
24162 | # Compiler flag to allow reflexive dlopens. |
24163 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
35fa52c0 | 24164 | |
9c60689e DWT |
24165 | # Compiler flag to generate shared objects directly from archives. |
24166 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
dbadc56a | 24167 | |
9c60689e DWT |
24168 | # Whether the compiler copes with passing no objects directly. |
24169 | compiler_needs_object=$lt_compiler_needs_object | |
dbadc56a | 24170 | |
9c60689e DWT |
24171 | # Create an old-style archive from a shared archive. |
24172 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
dbadc56a | 24173 | |
9c60689e DWT |
24174 | # Create a temporary old-style archive to link instead of a shared archive. |
24175 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
dbadc56a | 24176 | |
9c60689e DWT |
24177 | # Commands used to build a shared archive. |
24178 | archive_cmds=$lt_archive_cmds | |
24179 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
35fa52c0 | 24180 | |
9c60689e DWT |
24181 | # Commands used to build a loadable module if different from building |
24182 | # a shared archive. | |
24183 | module_cmds=$lt_module_cmds | |
24184 | module_expsym_cmds=$lt_module_expsym_cmds | |
dbadc56a | 24185 | |
9c60689e DWT |
24186 | # Whether we are building with GNU ld or not. |
24187 | with_gnu_ld=$lt_with_gnu_ld | |
6b66678a | 24188 | |
9c60689e DWT |
24189 | # Flag that allows shared libraries with undefined symbols to be built. |
24190 | allow_undefined_flag=$lt_allow_undefined_flag | |
6b66678a | 24191 | |
9c60689e DWT |
24192 | # Flag that enforces no undefined symbols. |
24193 | no_undefined_flag=$lt_no_undefined_flag | |
6b66678a | 24194 | |
9c60689e DWT |
24195 | # Flag to hardcode \$libdir into a binary during linking. |
24196 | # This must work even if \$libdir does not exist | |
24197 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
6b66678a | 24198 | |
9c60689e DWT |
24199 | # Whether we need a single "-rpath" flag with a separated argument. |
24200 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
6b66678a | 24201 | |
9d54db95 | 24202 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
9c60689e DWT |
24203 | # DIR into the resulting binary. |
24204 | hardcode_direct=$hardcode_direct | |
6b66678a | 24205 | |
9d54db95 | 24206 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
9c60689e | 24207 | # DIR into the resulting binary and the resulting library dependency is |
9d54db95 | 24208 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
9c60689e DWT |
24209 | # library is relocated. |
24210 | hardcode_direct_absolute=$hardcode_direct_absolute | |
6b66678a | 24211 | |
9c60689e DWT |
24212 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
24213 | # into the resulting binary. | |
24214 | hardcode_minus_L=$hardcode_minus_L | |
6b66678a | 24215 | |
9c60689e DWT |
24216 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
24217 | # into the resulting binary. | |
24218 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
6b66678a | 24219 | |
9c60689e DWT |
24220 | # Set to "yes" if building a shared library automatically hardcodes DIR |
24221 | # into the library and all subsequent libraries and executables linked | |
24222 | # against it. | |
24223 | hardcode_automatic=$hardcode_automatic | |
6b66678a | 24224 | |
9c60689e DWT |
24225 | # Set to yes if linker adds runtime paths of dependent libraries |
24226 | # to runtime path list. | |
24227 | inherit_rpath=$inherit_rpath | |
6b66678a | 24228 | |
9c60689e DWT |
24229 | # Whether libtool must link a program against all its dependency libraries. |
24230 | link_all_deplibs=$link_all_deplibs | |
24231 | ||
9c60689e DWT |
24232 | # Set to "yes" if exported symbols are required. |
24233 | always_export_symbols=$always_export_symbols | |
6b66678a | 24234 | |
9c60689e DWT |
24235 | # The commands to list exported symbols. |
24236 | export_symbols_cmds=$lt_export_symbols_cmds | |
6b66678a | 24237 | |
9c60689e DWT |
24238 | # Symbols that should not be listed in the preloaded symbols. |
24239 | exclude_expsyms=$lt_exclude_expsyms | |
6b66678a | 24240 | |
9c60689e DWT |
24241 | # Symbols that must always be exported. |
24242 | include_expsyms=$lt_include_expsyms | |
6b66678a | 24243 | |
9c60689e DWT |
24244 | # Commands necessary for linking programs (against libraries) with templates. |
24245 | prelink_cmds=$lt_prelink_cmds | |
6b66678a | 24246 | |
ee134472 JF |
24247 | # Commands necessary for finishing linking programs. |
24248 | postlink_cmds=$lt_postlink_cmds | |
24249 | ||
9c60689e DWT |
24250 | # Specify filename containing input files. |
24251 | file_list_spec=$lt_file_list_spec | |
6b66678a | 24252 | |
9c60689e DWT |
24253 | # How to hardcode a shared library path into an executable. |
24254 | hardcode_action=$hardcode_action | |
24255 | ||
24256 | # The directories searched by this compiler when creating a shared library. | |
24257 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
24258 | ||
24259 | # Dependencies to place before and after the objects being linked to | |
24260 | # create a shared library. | |
24261 | predep_objects=$lt_predep_objects | |
24262 | postdep_objects=$lt_postdep_objects | |
24263 | predeps=$lt_predeps | |
24264 | postdeps=$lt_postdeps | |
24265 | ||
24266 | # The library search path used internally by the compiler when linking | |
24267 | # a shared library. | |
24268 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
24269 | ||
24270 | # ### END LIBTOOL CONFIG | |
24271 | ||
9d54db95 JF |
24272 | _LT_EOF |
24273 | ||
24274 | cat <<'_LT_EOF' >> "$cfgfile" | |
24275 | ||
24276 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE | |
24277 | ||
24278 | # func_munge_path_list VARIABLE PATH | |
24279 | # ----------------------------------- | |
24280 | # VARIABLE is name of variable containing _space_ separated list of | |
24281 | # directories to be munged by the contents of PATH, which is string | |
24282 | # having a format: | |
24283 | # "DIR[:DIR]:" | |
24284 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
24285 | # ":DIR[:DIR]" | |
24286 | # string "DIR[ DIR]" will be appended to VARIABLE | |
24287 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
24288 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
24289 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
24290 | # "DIR[:DIR]" | |
24291 | # VARIABLE will be replaced by "DIR[ DIR]" | |
24292 | func_munge_path_list () | |
24293 | { | |
24294 | case x$2 in | |
24295 | x) | |
24296 | ;; | |
24297 | *:) | |
24298 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
24299 | ;; | |
24300 | x:*) | |
24301 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
24302 | ;; | |
24303 | *::*) | |
24304 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
24305 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
24306 | ;; | |
24307 | *) | |
24308 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
24309 | ;; | |
24310 | esac | |
24311 | } | |
24312 | ||
24313 | ||
24314 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
24315 | func_cc_basename () | |
24316 | { | |
24317 | for cc_temp in $*""; do | |
24318 | case $cc_temp in | |
24319 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
24320 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
24321 | \-*) ;; | |
24322 | *) break;; | |
24323 | esac | |
24324 | done | |
24325 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
24326 | } | |
24327 | ||
24328 | ||
24329 | # ### END FUNCTIONS SHARED WITH CONFIGURE | |
24330 | ||
9c60689e DWT |
24331 | _LT_EOF |
24332 | ||
24333 | case $host_os in | |
24334 | aix3*) | |
24335 | cat <<\_LT_EOF >> "$cfgfile" | |
24336 | # AIX sometimes has problems with the GCC collect2 program. For some | |
24337 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
24338 | # vanish in a puff of smoke. | |
9d54db95 | 24339 | if test set != "${COLLECT_NAMES+set}"; then |
9c60689e DWT |
24340 | COLLECT_NAMES= |
24341 | export COLLECT_NAMES | |
6b66678a | 24342 | fi |
9c60689e DWT |
24343 | _LT_EOF |
24344 | ;; | |
24345 | esac | |
6b66678a DWT |
24346 | |
24347 | ||
9d54db95 | 24348 | ltmain=$ac_aux_dir/ltmain.sh |
6b66678a | 24349 | |
9c60689e DWT |
24350 | |
24351 | # We use sed instead of cat because bash on DJGPP gets confused if | |
24352 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
24353 | # text mode, it properly converts lines to CR/LF. This bash problem | |
24354 | # is reportedly fixed, but why not run on old versions too? | |
ee134472 JF |
24355 | sed '$q' "$ltmain" >> "$cfgfile" \ |
24356 | || (rm -f "$cfgfile"; exit 1) | |
24357 | ||
ee134472 | 24358 | mv -f "$cfgfile" "$ofile" || |
9c60689e DWT |
24359 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
24360 | chmod +x "$ofile" | |
24361 | ||
24362 | ||
24363 | cat <<_LT_EOF >> "$ofile" | |
24364 | ||
24365 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
24366 | ||
24367 | # The linker used to build libraries. | |
24368 | LD=$lt_LD_CXX | |
24369 | ||
ee134472 JF |
24370 | # How to create reloadable object files. |
24371 | reload_flag=$lt_reload_flag_CXX | |
24372 | reload_cmds=$lt_reload_cmds_CXX | |
24373 | ||
9c60689e DWT |
24374 | # Commands used to build an old-style archive. |
24375 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
24376 | ||
24377 | # A language specific compiler. | |
24378 | CC=$lt_compiler_CXX | |
24379 | ||
24380 | # Is the compiler the GNU compiler? | |
24381 | with_gcc=$GCC_CXX | |
24382 | ||
24383 | # Compiler flag to turn off builtin functions. | |
24384 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
6b66678a | 24385 | |
9c60689e DWT |
24386 | # Additional compiler flags for building library objects. |
24387 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
6b66678a | 24388 | |
ee134472 JF |
24389 | # How to pass a linker flag through the compiler. |
24390 | wl=$lt_lt_prog_compiler_wl_CXX | |
24391 | ||
9c60689e DWT |
24392 | # Compiler flag to prevent dynamic linking. |
24393 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
6b66678a | 24394 | |
9c60689e DWT |
24395 | # Does compiler simultaneously support -c and -o options? |
24396 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
dbadc56a | 24397 | |
9c60689e DWT |
24398 | # Whether or not to add -lc for building shared libraries. |
24399 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
dbadc56a | 24400 | |
9c60689e DWT |
24401 | # Whether or not to disallow shared libs when runtime libs are static. |
24402 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
35fa52c0 | 24403 | |
9c60689e DWT |
24404 | # Compiler flag to allow reflexive dlopens. |
24405 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
35fa52c0 | 24406 | |
9c60689e DWT |
24407 | # Compiler flag to generate shared objects directly from archives. |
24408 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
35fa52c0 | 24409 | |
9c60689e DWT |
24410 | # Whether the compiler copes with passing no objects directly. |
24411 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
35fa52c0 | 24412 | |
9c60689e DWT |
24413 | # Create an old-style archive from a shared archive. |
24414 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
35fa52c0 | 24415 | |
9c60689e DWT |
24416 | # Create a temporary old-style archive to link instead of a shared archive. |
24417 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
35fa52c0 | 24418 | |
9c60689e DWT |
24419 | # Commands used to build a shared archive. |
24420 | archive_cmds=$lt_archive_cmds_CXX | |
24421 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
6b66678a | 24422 | |
9c60689e DWT |
24423 | # Commands used to build a loadable module if different from building |
24424 | # a shared archive. | |
24425 | module_cmds=$lt_module_cmds_CXX | |
24426 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
6b66678a | 24427 | |
9c60689e DWT |
24428 | # Whether we are building with GNU ld or not. |
24429 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
6b66678a | 24430 | |
9c60689e DWT |
24431 | # Flag that allows shared libraries with undefined symbols to be built. |
24432 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
35fa52c0 | 24433 | |
9c60689e DWT |
24434 | # Flag that enforces no undefined symbols. |
24435 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
35fa52c0 | 24436 | |
9c60689e DWT |
24437 | # Flag to hardcode \$libdir into a binary during linking. |
24438 | # This must work even if \$libdir does not exist | |
24439 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
6b66678a | 24440 | |
9c60689e DWT |
24441 | # Whether we need a single "-rpath" flag with a separated argument. |
24442 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
6b66678a | 24443 | |
9d54db95 | 24444 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
9c60689e DWT |
24445 | # DIR into the resulting binary. |
24446 | hardcode_direct=$hardcode_direct_CXX | |
6b66678a | 24447 | |
9d54db95 | 24448 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
9c60689e | 24449 | # DIR into the resulting binary and the resulting library dependency is |
9d54db95 | 24450 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
9c60689e DWT |
24451 | # library is relocated. |
24452 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
6b66678a | 24453 | |
9c60689e DWT |
24454 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
24455 | # into the resulting binary. | |
24456 | hardcode_minus_L=$hardcode_minus_L_CXX | |
35fa52c0 | 24457 | |
9c60689e DWT |
24458 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
24459 | # into the resulting binary. | |
24460 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
35fa52c0 | 24461 | |
9c60689e DWT |
24462 | # Set to "yes" if building a shared library automatically hardcodes DIR |
24463 | # into the library and all subsequent libraries and executables linked | |
24464 | # against it. | |
24465 | hardcode_automatic=$hardcode_automatic_CXX | |
6b66678a | 24466 | |
9c60689e DWT |
24467 | # Set to yes if linker adds runtime paths of dependent libraries |
24468 | # to runtime path list. | |
24469 | inherit_rpath=$inherit_rpath_CXX | |
6b66678a | 24470 | |
9c60689e DWT |
24471 | # Whether libtool must link a program against all its dependency libraries. |
24472 | link_all_deplibs=$link_all_deplibs_CXX | |
6b66678a | 24473 | |
9c60689e DWT |
24474 | # Set to "yes" if exported symbols are required. |
24475 | always_export_symbols=$always_export_symbols_CXX | |
6b66678a | 24476 | |
9c60689e DWT |
24477 | # The commands to list exported symbols. |
24478 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
6b66678a | 24479 | |
9c60689e DWT |
24480 | # Symbols that should not be listed in the preloaded symbols. |
24481 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
6b66678a | 24482 | |
9c60689e DWT |
24483 | # Symbols that must always be exported. |
24484 | include_expsyms=$lt_include_expsyms_CXX | |
6b66678a | 24485 | |
9c60689e DWT |
24486 | # Commands necessary for linking programs (against libraries) with templates. |
24487 | prelink_cmds=$lt_prelink_cmds_CXX | |
6b66678a | 24488 | |
ee134472 JF |
24489 | # Commands necessary for finishing linking programs. |
24490 | postlink_cmds=$lt_postlink_cmds_CXX | |
24491 | ||
9c60689e DWT |
24492 | # Specify filename containing input files. |
24493 | file_list_spec=$lt_file_list_spec_CXX | |
dbadc56a | 24494 | |
9c60689e DWT |
24495 | # How to hardcode a shared library path into an executable. |
24496 | hardcode_action=$hardcode_action_CXX | |
309b0535 | 24497 | |
9c60689e DWT |
24498 | # The directories searched by this compiler when creating a shared library. |
24499 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
309b0535 | 24500 | |
9c60689e DWT |
24501 | # Dependencies to place before and after the objects being linked to |
24502 | # create a shared library. | |
24503 | predep_objects=$lt_predep_objects_CXX | |
24504 | postdep_objects=$lt_postdep_objects_CXX | |
24505 | predeps=$lt_predeps_CXX | |
24506 | postdeps=$lt_postdeps_CXX | |
309b0535 | 24507 | |
9c60689e DWT |
24508 | # The library search path used internally by the compiler when linking |
24509 | # a shared library. | |
24510 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
24511 | ||
24512 | # ### END LIBTOOL TAG CONFIG: CXX | |
24513 | _LT_EOF | |
24514 | ||
24515 | ;; | |
24516 | ||
24517 | esac | |
24518 | done # for ac_tag | |
24519 | ||
24520 | ||
24521 | as_fn_exit 0 | |
24522 | _ACEOF | |
24523 | ac_clean_files=$ac_clean_files_save | |
24524 | ||
24525 | test $ac_write_fail = 0 || | |
12833ad8 | 24526 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
9c60689e DWT |
24527 | |
24528 | ||
24529 | # configure is writing to config.log, and then calls config.status. | |
24530 | # config.status does its own redirection, appending to config.log. | |
24531 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
24532 | # by configure, so config.status won't be able to write to it; its | |
24533 | # output is simply discarded. So we exec the FD to /dev/null, | |
24534 | # effectively closing config.log, so it can be properly (re)opened and | |
24535 | # appended to by config.status. When coming back to configure, we | |
24536 | # need to make the FD available again. | |
24537 | if test "$no_create" != yes; then | |
24538 | ac_cs_success=: | |
24539 | ac_config_status_args= | |
24540 | test "$silent" = yes && | |
24541 | ac_config_status_args="$ac_config_status_args --quiet" | |
24542 | exec 5>/dev/null | |
24543 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
24544 | exec 5>>config.log | |
24545 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
24546 | # would make configure fail if this is the last instruction. | |
12833ad8 | 24547 | $ac_cs_success || as_fn_exit 1 |
309b0535 | 24548 | fi |
9c60689e DWT |
24549 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
24550 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
24551 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
24552 | fi | |
24553 |