]>
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 JF |
13 | # |
14 | # Copyright (C) 2009-2012 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 |
a243b558 JF |
641 | CY_MACH_FALSE |
642 | CY_MACH_TRUE | |
66170b30 | 643 | CY_MACH |
7eda51e0 | 644 | CY_ATTACH_GROUP |
a243b558 JF |
645 | ac_ct__OTOOL |
646 | _OTOOL | |
794e88e7 DWT |
647 | ac_ct__NM |
648 | _NM | |
649 | ac_ct__LIPO | |
650 | _LIPO | |
9777bd50 | 651 | SO |
66170b30 | 652 | LTFLAGS |
6f9aea2b JF |
653 | LTLIBTERMCAP |
654 | LTLIBREADLINE | |
a243b558 JF |
655 | CY_OBJECTIVEC_FALSE |
656 | CY_OBJECTIVEC_TRUE | |
babf7fe8 | 657 | LTOBJECTIVEC |
47aaa820 | 658 | GNUSTEP_CONFIG |
c823f118 | 659 | CY_OBJECTIVEC |
296ee9a6 | 660 | LTLIBFFI |
309b0535 | 661 | LIBFFI_LIBS |
35fa52c0 | 662 | LIBFFI_CFLAGS |
a243b558 JF |
663 | CY_EXECUTE_FALSE |
664 | CY_EXECUTE_TRUE | |
d4f27204 | 665 | LTLIBAPR |
a93f15c0 JF |
666 | CY_CONSOLE_FALSE |
667 | CY_CONSOLE_TRUE | |
babf7fe8 | 668 | LTJAVASCRIPTCORE |
35fa52c0 DWT |
669 | WEBKIT_LIBS |
670 | WEBKIT_CFLAGS | |
7eda51e0 | 671 | CY_EXECUTE |
abc804fa | 672 | CY_ARCH |
9228a43a | 673 | CY_FILTERS |
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 |
a243b558 | 683 | CXXCPP |
9c60689e DWT |
684 | CPP |
685 | OTOOL64 | |
686 | OTOOL | |
687 | LIPO | |
688 | NMEDIT | |
689 | DSYMUTIL | |
ee134472 | 690 | MANIFEST_TOOL |
9c60689e | 691 | RANLIB |
ee134472 | 692 | DLLTOOL |
9c60689e DWT |
693 | OBJDUMP |
694 | LN_S | |
695 | NM | |
696 | ac_ct_DUMPBIN | |
697 | DUMPBIN | |
698 | LD | |
699 | FGREP | |
700 | EGREP | |
701 | GREP | |
702 | SED | |
a243b558 JF |
703 | host_os |
704 | host_vendor | |
705 | host_cpu | |
706 | host | |
707 | build_os | |
708 | build_vendor | |
709 | build_cpu | |
710 | build | |
711 | LIBTOOL | |
a243b558 JF |
712 | ac_ct_AR |
713 | AR | |
714 | am__fastdepOBJCXX_FALSE | |
715 | am__fastdepOBJCXX_TRUE | |
716 | OBJCXXDEPMODE | |
717 | ac_ct_OBJCXX | |
718 | OBJCXXFLAGS | |
719 | OBJCXX | |
720 | am__fastdepCXX_FALSE | |
721 | am__fastdepCXX_TRUE | |
722 | CXXDEPMODE | |
a93f15c0 JF |
723 | ac_ct_CXX |
724 | CXXFLAGS | |
725 | CXX | |
726 | am__fastdepCC_FALSE | |
727 | am__fastdepCC_TRUE | |
728 | CCDEPMODE | |
66170b30 JF |
729 | am__nodep |
730 | AMDEPBACKSLASH | |
731 | AMDEP_FALSE | |
732 | AMDEP_TRUE | |
733 | am__quote | |
734 | am__include | |
735 | DEPDIR | |
35fa52c0 DWT |
736 | OBJEXT |
737 | EXEEXT | |
a93f15c0 | 738 | ac_ct_CC |
35fa52c0 DWT |
739 | CPPFLAGS |
740 | LDFLAGS | |
a93f15c0 JF |
741 | CFLAGS |
742 | CC | |
babf7fe8 JF |
743 | MAINT |
744 | MAINTAINER_MODE_FALSE | |
745 | MAINTAINER_MODE_TRUE | |
66170b30 JF |
746 | AM_BACKSLASH |
747 | AM_DEFAULT_VERBOSITY | |
748 | AM_DEFAULT_V | |
749 | AM_V | |
750 | am__untar | |
751 | am__tar | |
752 | AMTAR | |
753 | am__leading_dot | |
754 | SET_MAKE | |
755 | AWK | |
756 | mkdir_p | |
757 | MKDIR_P | |
758 | INSTALL_STRIP_PROGRAM | |
759 | STRIP | |
760 | install_sh | |
761 | MAKEINFO | |
762 | AUTOHEADER | |
763 | AUTOMAKE | |
764 | AUTOCONF | |
765 | ACLOCAL | |
766 | VERSION | |
767 | PACKAGE | |
768 | CYGPATH_W | |
769 | am__isrc | |
770 | INSTALL_DATA | |
771 | INSTALL_SCRIPT | |
772 | INSTALL_PROGRAM | |
dbadc56a | 773 | target_alias |
c7aa54aa DWT |
774 | host_alias |
775 | build_alias | |
776 | LIBS | |
777 | ECHO_T | |
778 | ECHO_N | |
779 | ECHO_C | |
780 | DEFS | |
781 | mandir | |
782 | localedir | |
783 | libdir | |
784 | psdir | |
785 | pdfdir | |
786 | dvidir | |
787 | htmldir | |
788 | infodir | |
789 | docdir | |
790 | oldincludedir | |
791 | includedir | |
792 | localstatedir | |
793 | sharedstatedir | |
794 | sysconfdir | |
795 | datadir | |
796 | datarootdir | |
797 | libexecdir | |
798 | sbindir | |
799 | bindir | |
800 | program_transform_name | |
801 | prefix | |
802 | exec_prefix | |
803 | PACKAGE_URL | |
804 | PACKAGE_BUGREPORT | |
805 | PACKAGE_STRING | |
806 | PACKAGE_VERSION | |
807 | PACKAGE_TARNAME | |
808 | PACKAGE_NAME | |
809 | PATH_SEPARATOR | |
810 | SHELL' | |
811 | ac_subst_files='' | |
812 | ac_user_opts=' | |
813 | enable_option_checking | |
66170b30 | 814 | enable_silent_rules |
babf7fe8 | 815 | enable_maintainer_mode |
a243b558 | 816 | enable_dependency_tracking |
9c60689e | 817 | enable_static |
549f29b5 | 818 | enable_shared |
9c60689e DWT |
819 | with_pic |
820 | enable_fast_install | |
35fa52c0 | 821 | with_gnu_ld |
ee134472 | 822 | with_sysroot |
9c60689e | 823 | enable_libtool_lock |
5053a6d1 | 824 | enable_javascript |
a93f15c0 | 825 | enable_console |
66170b30 | 826 | with_apr |
c7aa54aa DWT |
827 | ' |
828 | ac_precious_vars='build_alias | |
829 | host_alias | |
dbadc56a | 830 | target_alias |
a93f15c0 JF |
831 | CC |
832 | CFLAGS | |
dbadc56a DWT |
833 | LDFLAGS |
834 | LIBS | |
835 | CPPFLAGS | |
a93f15c0 JF |
836 | CXX |
837 | CXXFLAGS | |
a243b558 JF |
838 | CCC |
839 | OBJCXX | |
840 | OBJCXXFLAGS | |
9c60689e | 841 | CPP |
a243b558 | 842 | CXXCPP |
3fd51f51 | 843 | PKG_CONFIG |
12833ad8 JF |
844 | PKG_CONFIG_PATH |
845 | PKG_CONFIG_LIBDIR | |
e9c9a47c DWT |
846 | BISON |
847 | FLEX | |
848 | GPERF | |
66170b30 | 849 | GNUTAR |
35fa52c0 DWT |
850 | WEBKIT_CFLAGS |
851 | WEBKIT_LIBS | |
a667869d | 852 | LIBFFI_CFLAGS |
790e5246 DWT |
853 | LIBFFI_LIBS |
854 | GNUSTEP_CONFIG' | |
c7aa54aa DWT |
855 | |
856 | ||
857 | # Initialize some variables set by options. | |
858 | ac_init_help= | |
859 | ac_init_version=false | |
860 | ac_unrecognized_opts= | |
861 | ac_unrecognized_sep= | |
862 | # The variables have the same names as the options, with | |
863 | # dashes changed to underlines. | |
864 | cache_file=/dev/null | |
865 | exec_prefix=NONE | |
866 | no_create= | |
867 | no_recursion= | |
868 | prefix=NONE | |
869 | program_prefix=NONE | |
870 | program_suffix=NONE | |
871 | program_transform_name=s,x,x, | |
872 | silent= | |
873 | site= | |
874 | srcdir= | |
875 | verbose= | |
876 | x_includes=NONE | |
877 | x_libraries=NONE | |
878 | ||
879 | # Installation directory options. | |
880 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
881 | # and all the variables that are supposed to be based on exec_prefix | |
882 | # by default will actually change. | |
883 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
884 | # (The list follows the same order as the GNU Coding Standards.) | |
885 | bindir='${exec_prefix}/bin' | |
886 | sbindir='${exec_prefix}/sbin' | |
887 | libexecdir='${exec_prefix}/libexec' | |
888 | datarootdir='${prefix}/share' | |
889 | datadir='${datarootdir}' | |
890 | sysconfdir='${prefix}/etc' | |
891 | sharedstatedir='${prefix}/com' | |
892 | localstatedir='${prefix}/var' | |
893 | includedir='${prefix}/include' | |
894 | oldincludedir='/usr/include' | |
895 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
896 | infodir='${datarootdir}/info' | |
897 | htmldir='${docdir}' | |
898 | dvidir='${docdir}' | |
899 | pdfdir='${docdir}' | |
900 | psdir='${docdir}' | |
901 | libdir='${exec_prefix}/lib' | |
902 | localedir='${datarootdir}/locale' | |
903 | mandir='${datarootdir}/man' | |
904 | ||
905 | ac_prev= | |
906 | ac_dashdash= | |
907 | for ac_option | |
908 | do | |
909 | # If the previous option needs an argument, assign it. | |
910 | if test -n "$ac_prev"; then | |
911 | eval $ac_prev=\$ac_option | |
912 | ac_prev= | |
913 | continue | |
914 | fi | |
915 | ||
916 | case $ac_option in | |
12833ad8 JF |
917 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
918 | *=) ac_optarg= ;; | |
919 | *) ac_optarg=yes ;; | |
c7aa54aa DWT |
920 | esac |
921 | ||
922 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
923 | ||
924 | case $ac_dashdash$ac_option in | |
925 | --) | |
926 | ac_dashdash=yes ;; | |
927 | ||
928 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
929 | ac_prev=bindir ;; | |
930 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
931 | bindir=$ac_optarg ;; | |
932 | ||
933 | -build | --build | --buil | --bui | --bu) | |
934 | ac_prev=build_alias ;; | |
935 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
936 | build_alias=$ac_optarg ;; | |
937 | ||
938 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
939 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
940 | ac_prev=cache_file ;; | |
941 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
942 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
943 | cache_file=$ac_optarg ;; | |
944 | ||
945 | --config-cache | -C) | |
946 | cache_file=config.cache ;; | |
947 | ||
948 | -datadir | --datadir | --datadi | --datad) | |
949 | ac_prev=datadir ;; | |
950 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
951 | datadir=$ac_optarg ;; | |
952 | ||
953 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
954 | | --dataroo | --dataro | --datar) | |
955 | ac_prev=datarootdir ;; | |
956 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
957 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
958 | datarootdir=$ac_optarg ;; | |
959 | ||
960 | -disable-* | --disable-*) | |
961 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
962 | # Reject names that are not valid shell variable names. | |
963 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 964 | as_fn_error $? "invalid feature name: $ac_useropt" |
c7aa54aa DWT |
965 | ac_useropt_orig=$ac_useropt |
966 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
967 | case $ac_user_opts in | |
968 | *" | |
969 | "enable_$ac_useropt" | |
970 | "*) ;; | |
971 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
972 | ac_unrecognized_sep=', ';; | |
973 | esac | |
974 | eval enable_$ac_useropt=no ;; | |
975 | ||
976 | -docdir | --docdir | --docdi | --doc | --do) | |
977 | ac_prev=docdir ;; | |
978 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
979 | docdir=$ac_optarg ;; | |
980 | ||
981 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
982 | ac_prev=dvidir ;; | |
983 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
984 | dvidir=$ac_optarg ;; | |
985 | ||
986 | -enable-* | --enable-*) | |
987 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
988 | # Reject names that are not valid shell variable names. | |
989 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 990 | as_fn_error $? "invalid feature name: $ac_useropt" |
c7aa54aa DWT |
991 | ac_useropt_orig=$ac_useropt |
992 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
993 | case $ac_user_opts in | |
994 | *" | |
995 | "enable_$ac_useropt" | |
996 | "*) ;; | |
997 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
998 | ac_unrecognized_sep=', ';; | |
999 | esac | |
1000 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1001 | ||
1002 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1003 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1004 | | --exec | --exe | --ex) | |
1005 | ac_prev=exec_prefix ;; | |
1006 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1007 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1008 | | --exec=* | --exe=* | --ex=*) | |
1009 | exec_prefix=$ac_optarg ;; | |
1010 | ||
1011 | -gas | --gas | --ga | --g) | |
1012 | # Obsolete; use --with-gas. | |
1013 | with_gas=yes ;; | |
1014 | ||
1015 | -help | --help | --hel | --he | -h) | |
1016 | ac_init_help=long ;; | |
1017 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1018 | ac_init_help=recursive ;; | |
1019 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1020 | ac_init_help=short ;; | |
1021 | ||
1022 | -host | --host | --hos | --ho) | |
1023 | ac_prev=host_alias ;; | |
1024 | -host=* | --host=* | --hos=* | --ho=*) | |
1025 | host_alias=$ac_optarg ;; | |
1026 | ||
1027 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1028 | ac_prev=htmldir ;; | |
1029 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1030 | | --ht=*) | |
1031 | htmldir=$ac_optarg ;; | |
1032 | ||
1033 | -includedir | --includedir | --includedi | --included | --include \ | |
1034 | | --includ | --inclu | --incl | --inc) | |
1035 | ac_prev=includedir ;; | |
1036 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1037 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1038 | includedir=$ac_optarg ;; | |
1039 | ||
1040 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1041 | ac_prev=infodir ;; | |
1042 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1043 | infodir=$ac_optarg ;; | |
1044 | ||
1045 | -libdir | --libdir | --libdi | --libd) | |
1046 | ac_prev=libdir ;; | |
1047 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1048 | libdir=$ac_optarg ;; | |
1049 | ||
1050 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1051 | | --libexe | --libex | --libe) | |
1052 | ac_prev=libexecdir ;; | |
1053 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1054 | | --libexe=* | --libex=* | --libe=*) | |
1055 | libexecdir=$ac_optarg ;; | |
1056 | ||
1057 | -localedir | --localedir | --localedi | --localed | --locale) | |
1058 | ac_prev=localedir ;; | |
1059 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1060 | localedir=$ac_optarg ;; | |
1061 | ||
1062 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1063 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1064 | ac_prev=localstatedir ;; | |
1065 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1066 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1067 | localstatedir=$ac_optarg ;; | |
1068 | ||
1069 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1070 | ac_prev=mandir ;; | |
1071 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1072 | mandir=$ac_optarg ;; | |
1073 | ||
1074 | -nfp | --nfp | --nf) | |
1075 | # Obsolete; use --without-fp. | |
1076 | with_fp=no ;; | |
1077 | ||
1078 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1079 | | --no-cr | --no-c | -n) | |
1080 | no_create=yes ;; | |
1081 | ||
1082 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1083 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1084 | no_recursion=yes ;; | |
1085 | ||
1086 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1087 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1088 | | --oldin | --oldi | --old | --ol | --o) | |
1089 | ac_prev=oldincludedir ;; | |
1090 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1091 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1092 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1093 | oldincludedir=$ac_optarg ;; | |
1094 | ||
1095 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1096 | ac_prev=prefix ;; | |
1097 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1098 | prefix=$ac_optarg ;; | |
1099 | ||
1100 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1101 | | --program-pre | --program-pr | --program-p) | |
1102 | ac_prev=program_prefix ;; | |
1103 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1104 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1105 | program_prefix=$ac_optarg ;; | |
1106 | ||
1107 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1108 | | --program-suf | --program-su | --program-s) | |
1109 | ac_prev=program_suffix ;; | |
1110 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1111 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1112 | program_suffix=$ac_optarg ;; | |
1113 | ||
1114 | -program-transform-name | --program-transform-name \ | |
1115 | | --program-transform-nam | --program-transform-na \ | |
1116 | | --program-transform-n | --program-transform- \ | |
1117 | | --program-transform | --program-transfor \ | |
1118 | | --program-transfo | --program-transf \ | |
1119 | | --program-trans | --program-tran \ | |
1120 | | --progr-tra | --program-tr | --program-t) | |
1121 | ac_prev=program_transform_name ;; | |
1122 | -program-transform-name=* | --program-transform-name=* \ | |
1123 | | --program-transform-nam=* | --program-transform-na=* \ | |
1124 | | --program-transform-n=* | --program-transform-=* \ | |
1125 | | --program-transform=* | --program-transfor=* \ | |
1126 | | --program-transfo=* | --program-transf=* \ | |
1127 | | --program-trans=* | --program-tran=* \ | |
1128 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1129 | program_transform_name=$ac_optarg ;; | |
1130 | ||
1131 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1132 | ac_prev=pdfdir ;; | |
1133 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1134 | pdfdir=$ac_optarg ;; | |
1135 | ||
1136 | -psdir | --psdir | --psdi | --psd | --ps) | |
1137 | ac_prev=psdir ;; | |
1138 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1139 | psdir=$ac_optarg ;; | |
1140 | ||
1141 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1142 | | -silent | --silent | --silen | --sile | --sil) | |
1143 | silent=yes ;; | |
1144 | ||
1145 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1146 | ac_prev=sbindir ;; | |
1147 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1148 | | --sbi=* | --sb=*) | |
1149 | sbindir=$ac_optarg ;; | |
1150 | ||
1151 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1152 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1153 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1154 | | --sha | --sh) | |
1155 | ac_prev=sharedstatedir ;; | |
1156 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1157 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1158 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1159 | | --sha=* | --sh=*) | |
1160 | sharedstatedir=$ac_optarg ;; | |
1161 | ||
1162 | -site | --site | --sit) | |
1163 | ac_prev=site ;; | |
1164 | -site=* | --site=* | --sit=*) | |
1165 | site=$ac_optarg ;; | |
1166 | ||
1167 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1168 | ac_prev=srcdir ;; | |
1169 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1170 | srcdir=$ac_optarg ;; | |
1171 | ||
1172 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1173 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1174 | ac_prev=sysconfdir ;; | |
1175 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1176 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1177 | sysconfdir=$ac_optarg ;; | |
1178 | ||
1179 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1180 | ac_prev=target_alias ;; | |
1181 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1182 | target_alias=$ac_optarg ;; | |
1183 | ||
1184 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1185 | verbose=yes ;; | |
1186 | ||
1187 | -version | --version | --versio | --versi | --vers | -V) | |
1188 | ac_init_version=: ;; | |
1189 | ||
1190 | -with-* | --with-*) | |
1191 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1192 | # Reject names that are not valid shell variable names. | |
1193 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 1194 | as_fn_error $? "invalid package name: $ac_useropt" |
c7aa54aa DWT |
1195 | ac_useropt_orig=$ac_useropt |
1196 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1197 | case $ac_user_opts in | |
1198 | *" | |
1199 | "with_$ac_useropt" | |
1200 | "*) ;; | |
1201 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1202 | ac_unrecognized_sep=', ';; | |
1203 | esac | |
1204 | eval with_$ac_useropt=\$ac_optarg ;; | |
1205 | ||
1206 | -without-* | --without-*) | |
1207 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1208 | # Reject names that are not valid shell variable names. | |
1209 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 1210 | as_fn_error $? "invalid package name: $ac_useropt" |
c7aa54aa DWT |
1211 | ac_useropt_orig=$ac_useropt |
1212 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1213 | case $ac_user_opts in | |
1214 | *" | |
1215 | "with_$ac_useropt" | |
1216 | "*) ;; | |
1217 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1218 | ac_unrecognized_sep=', ';; | |
1219 | esac | |
1220 | eval with_$ac_useropt=no ;; | |
1221 | ||
1222 | --x) | |
1223 | # Obsolete; use --with-x. | |
1224 | with_x=yes ;; | |
1225 | ||
1226 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1227 | | --x-incl | --x-inc | --x-in | --x-i) | |
1228 | ac_prev=x_includes ;; | |
1229 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1230 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1231 | x_includes=$ac_optarg ;; | |
1232 | ||
1233 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1234 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1235 | ac_prev=x_libraries ;; | |
1236 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1237 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1238 | x_libraries=$ac_optarg ;; | |
1239 | ||
12833ad8 JF |
1240 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1241 | Try \`$0 --help' for more information" | |
c7aa54aa DWT |
1242 | ;; |
1243 | ||
1244 | *=*) | |
1245 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1246 | # Reject names that are not valid shell variable names. | |
1247 | case $ac_envvar in #( | |
1248 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
12833ad8 | 1249 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
c7aa54aa DWT |
1250 | esac |
1251 | eval $ac_envvar=\$ac_optarg | |
1252 | export $ac_envvar ;; | |
1253 | ||
1254 | *) | |
1255 | # FIXME: should be removed in autoconf 3.0. | |
1256 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1257 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1258 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
ee134472 | 1259 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
c7aa54aa DWT |
1260 | ;; |
1261 | ||
1262 | esac | |
1263 | done | |
1264 | ||
1265 | if test -n "$ac_prev"; then | |
1266 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
12833ad8 | 1267 | as_fn_error $? "missing argument to $ac_option" |
c7aa54aa DWT |
1268 | fi |
1269 | ||
1270 | if test -n "$ac_unrecognized_opts"; then | |
1271 | case $enable_option_checking in | |
1272 | no) ;; | |
12833ad8 | 1273 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
c7aa54aa DWT |
1274 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1275 | esac | |
1276 | fi | |
1277 | ||
1278 | # Check all directory arguments for consistency. | |
1279 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1280 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1281 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1282 | libdir localedir mandir | |
1283 | do | |
1284 | eval ac_val=\$$ac_var | |
1285 | # Remove trailing slashes. | |
1286 | case $ac_val in | |
1287 | */ ) | |
1288 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1289 | eval $ac_var=\$ac_val;; | |
1290 | esac | |
1291 | # Be sure to have absolute directory names. | |
1292 | case $ac_val in | |
1293 | [\\/$]* | ?:[\\/]* ) continue;; | |
1294 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1295 | esac | |
12833ad8 | 1296 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
c7aa54aa DWT |
1297 | done |
1298 | ||
1299 | # There might be people who depend on the old broken behavior: `$host' | |
1300 | # used to hold the argument of --host etc. | |
1301 | # FIXME: To remove some day. | |
1302 | build=$build_alias | |
1303 | host=$host_alias | |
1304 | target=$target_alias | |
1305 | ||
1306 | # FIXME: To remove some day. | |
1307 | if test "x$host_alias" != x; then | |
1308 | if test "x$build_alias" = x; then | |
1309 | cross_compiling=maybe | |
c7aa54aa DWT |
1310 | elif test "x$build_alias" != "x$host_alias"; then |
1311 | cross_compiling=yes | |
1312 | fi | |
1313 | fi | |
1314 | ||
1315 | ac_tool_prefix= | |
1316 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1317 | ||
1318 | test "$silent" = yes && exec 6>/dev/null | |
1319 | ||
1320 | ||
1321 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1322 | ac_ls_di=`ls -di .` && | |
1323 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
12833ad8 | 1324 | as_fn_error $? "working directory cannot be determined" |
c7aa54aa | 1325 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
12833ad8 | 1326 | as_fn_error $? "pwd does not report name of working directory" |
c7aa54aa DWT |
1327 | |
1328 | ||
1329 | # Find the source files, if location was not specified. | |
1330 | if test -z "$srcdir"; then | |
1331 | ac_srcdir_defaulted=yes | |
1332 | # Try the directory containing this script, then the parent directory. | |
1333 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1334 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1335 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1336 | X"$as_myself" : 'X\(//\)$' \| \ | |
1337 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1338 | $as_echo X"$as_myself" | | |
1339 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1340 | s//\1/ | |
1341 | q | |
1342 | } | |
1343 | /^X\(\/\/\)[^/].*/{ | |
1344 | s//\1/ | |
1345 | q | |
1346 | } | |
1347 | /^X\(\/\/\)$/{ | |
1348 | s//\1/ | |
1349 | q | |
1350 | } | |
1351 | /^X\(\/\).*/{ | |
1352 | s//\1/ | |
1353 | q | |
1354 | } | |
1355 | s/.*/./; q'` | |
1356 | srcdir=$ac_confdir | |
1357 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1358 | srcdir=.. | |
1359 | fi | |
1360 | else | |
1361 | ac_srcdir_defaulted=no | |
1362 | fi | |
1363 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1364 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
12833ad8 | 1365 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
c7aa54aa DWT |
1366 | fi |
1367 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1368 | ac_abs_confdir=`( | |
12833ad8 | 1369 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
c7aa54aa DWT |
1370 | pwd)` |
1371 | # When building in place, set srcdir=. | |
1372 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1373 | srcdir=. | |
1374 | fi | |
1375 | # Remove unnecessary trailing slashes from srcdir. | |
1376 | # Double slashes in file names in object file debugging info | |
1377 | # mess up M-x gdb in Emacs. | |
1378 | case $srcdir in | |
1379 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1380 | esac | |
1381 | for ac_var in $ac_precious_vars; do | |
1382 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1383 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1384 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1385 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1386 | done | |
1387 | ||
1388 | # | |
1389 | # Report the --help message. | |
1390 | # | |
1391 | if test "$ac_init_help" = "long"; then | |
1392 | # Omit some internal or obsolete options to make the list less imposing. | |
1393 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1394 | cat <<_ACEOF | |
1395 | \`configure' configures Cycript 0.9 to adapt to many kinds of systems. | |
1396 | ||
1397 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1398 | ||
1399 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1400 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1401 | ||
1402 | Defaults for the options are specified in brackets. | |
1403 | ||
1404 | Configuration: | |
1405 | -h, --help display this help and exit | |
1406 | --help=short display options specific to this package | |
1407 | --help=recursive display the short help of all the included packages | |
1408 | -V, --version display version information and exit | |
12833ad8 | 1409 | -q, --quiet, --silent do not print \`checking ...' messages |
c7aa54aa DWT |
1410 | --cache-file=FILE cache test results in FILE [disabled] |
1411 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1412 | -n, --no-create do not create output files | |
1413 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1414 | ||
1415 | Installation directories: | |
1416 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1417 | [$ac_default_prefix] | |
1418 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1419 | [PREFIX] | |
1420 | ||
1421 | By default, \`make install' will install all the files in | |
1422 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1423 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1424 | for instance \`--prefix=\$HOME'. | |
1425 | ||
1426 | For better control, use the options below. | |
1427 | ||
1428 | Fine tuning of the installation directories: | |
1429 | --bindir=DIR user executables [EPREFIX/bin] | |
1430 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1431 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1432 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1433 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1434 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1435 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1436 | --includedir=DIR C header files [PREFIX/include] | |
1437 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1438 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1439 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1440 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1441 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1442 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1443 | --docdir=DIR documentation root [DATAROOTDIR/doc/cycript] | |
1444 | --htmldir=DIR html documentation [DOCDIR] | |
1445 | --dvidir=DIR dvi documentation [DOCDIR] | |
1446 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1447 | --psdir=DIR ps documentation [DOCDIR] | |
1448 | _ACEOF | |
1449 | ||
1450 | cat <<\_ACEOF | |
35fa52c0 | 1451 | |
66170b30 JF |
1452 | Program names: |
1453 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1454 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1455 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1456 | ||
35fa52c0 DWT |
1457 | System types: |
1458 | --build=BUILD configure for building on BUILD [guessed] | |
1459 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
c7aa54aa DWT |
1460 | _ACEOF |
1461 | fi | |
1462 | ||
1463 | if test -n "$ac_init_help"; then | |
1464 | case $ac_init_help in | |
1465 | short | recursive ) echo "Configuration of Cycript 0.9:";; | |
1466 | esac | |
1467 | cat <<\_ACEOF | |
1468 | ||
35fa52c0 DWT |
1469 | Optional Features: |
1470 | --disable-option-checking ignore unrecognized --enable/--with options | |
1471 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1472 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
66170b30 JF |
1473 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1474 | --disable-silent-rules verbose build output (undo: "make V=0") | |
babf7fe8 JF |
1475 | --enable-maintainer-mode |
1476 | enable make rules and dependencies not useful (and | |
1477 | sometimes confusing) to the casual installer | |
66170b30 JF |
1478 | --enable-dependency-tracking |
1479 | do not reject slow dependency extractors | |
1480 | --disable-dependency-tracking | |
1481 | speeds up one-time build | |
a243b558 JF |
1482 | --enable-static[=PKGS] build static libraries [default=no] |
1483 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1484 | --enable-fast-install[=PKGS] | |
1485 | optimize for fast installation [default=yes] | |
9c60689e | 1486 | --disable-libtool-lock avoid locking (might break parallel builds) |
b66977f1 | 1487 | --enable-javascript[=ENGINE] |
790e5246 | 1488 | use a JavaScript runtime (currently the only |
b66977f1 DWT |
1489 | available option for ENGINE is JavaScriptCore) |
1490 | [default=yes] | |
a93f15c0 | 1491 | --disable-console disable console |
35fa52c0 DWT |
1492 | |
1493 | Optional Packages: | |
1494 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1495 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
53ba6704 | 1496 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
9c60689e DWT |
1497 | both] |
1498 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
ee134472 JF |
1499 | --with-sysroot=DIR Search for dependent libraries within DIR |
1500 | (or the compiler's sysroot if not specified). | |
309b0535 DWT |
1501 | --with-apr=PATH prefix for installed APR or the full path to |
1502 | apr-config | |
35fa52c0 | 1503 | |
dbadc56a | 1504 | Some influential environment variables: |
a93f15c0 JF |
1505 | CC C compiler command |
1506 | CFLAGS C compiler flags | |
dbadc56a DWT |
1507 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1508 | nonstandard directory <lib dir> | |
1509 | LIBS libraries to pass to the linker, e.g. -l<library> | |
9c60689e | 1510 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
dbadc56a | 1511 | you have headers in a nonstandard directory <include dir> |
a93f15c0 JF |
1512 | CXX C++ compiler command |
1513 | CXXFLAGS C++ compiler flags | |
a243b558 JF |
1514 | OBJCXX Objective C++ compiler command |
1515 | OBJCXXFLAGS Objective C++ compiler flags | |
9c60689e | 1516 | CPP C preprocessor |
a243b558 | 1517 | CXXCPP C++ preprocessor |
3fd51f51 | 1518 | PKG_CONFIG path to pkg-config utility |
12833ad8 JF |
1519 | PKG_CONFIG_PATH |
1520 | directories to add to pkg-config's search path | |
1521 | PKG_CONFIG_LIBDIR | |
1522 | path overriding pkg-config's built-in search path | |
e9c9a47c DWT |
1523 | BISON GNU Project parser generator (yacc replacement) |
1524 | FLEX the fast lexical analyser generator | |
1525 | GPERF perfect hash function generator | |
66170b30 | 1526 | GNUTAR a very sticky lump of files |
35fa52c0 DWT |
1527 | WEBKIT_CFLAGS |
1528 | C compiler flags for WEBKIT, overriding pkg-config | |
1529 | WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config | |
790e5246 DWT |
1530 | GNUSTEP_CONFIG |
1531 | prints information about the current gnustep installation | |
dbadc56a DWT |
1532 | |
1533 | Use these variables to override the choices made by `configure' or to help | |
1534 | it to find libraries and programs with nonstandard names/locations. | |
1535 | ||
c7aa54aa DWT |
1536 | Report bugs to <saurik@saurik.com>. |
1537 | Cycript home page: <http://www.cycript.org/>. | |
1538 | _ACEOF | |
1539 | ac_status=$? | |
1540 | fi | |
1541 | ||
1542 | if test "$ac_init_help" = "recursive"; then | |
1543 | # If there are subdirs, report their specific --help. | |
1544 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1545 | test -d "$ac_dir" || | |
1546 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1547 | continue | |
1548 | ac_builddir=. | |
1549 | ||
1550 | case "$ac_dir" in | |
1551 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1552 | *) | |
1553 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1554 | # A ".." for each directory in $ac_dir_suffix. | |
1555 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1556 | case $ac_top_builddir_sub in | |
1557 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1558 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1559 | esac ;; | |
1560 | esac | |
1561 | ac_abs_top_builddir=$ac_pwd | |
1562 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1563 | # for backward compatibility: | |
1564 | ac_top_builddir=$ac_top_build_prefix | |
1565 | ||
1566 | case $srcdir in | |
1567 | .) # We are building in place. | |
1568 | ac_srcdir=. | |
1569 | ac_top_srcdir=$ac_top_builddir_sub | |
1570 | ac_abs_top_srcdir=$ac_pwd ;; | |
1571 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1572 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1573 | ac_top_srcdir=$srcdir | |
1574 | ac_abs_top_srcdir=$srcdir ;; | |
1575 | *) # Relative name. | |
1576 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1577 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1578 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1579 | esac | |
1580 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1581 | ||
1582 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1583 | # Check for guested configure. | |
1584 | if test -f "$ac_srcdir/configure.gnu"; then | |
1585 | echo && | |
1586 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1587 | elif test -f "$ac_srcdir/configure"; then | |
1588 | echo && | |
1589 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1590 | else | |
1591 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1592 | fi || ac_status=$? | |
1593 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1594 | done | |
1595 | fi | |
1596 | ||
1597 | test -n "$ac_init_help" && exit $ac_status | |
1598 | if $ac_init_version; then | |
1599 | cat <<\_ACEOF | |
1600 | Cycript configure 0.9 | |
53ba6704 | 1601 | generated by GNU Autoconf 2.69 |
c7aa54aa | 1602 | |
53ba6704 | 1603 | Copyright (C) 2012 Free Software Foundation, Inc. |
c7aa54aa DWT |
1604 | This configure script is free software; the Free Software Foundation |
1605 | gives unlimited permission to copy, distribute and modify it. | |
66170b30 JF |
1606 | |
1607 | Copyright (C) 2009-2012 Jay Freeman (saurik) | |
c7aa54aa DWT |
1608 | _ACEOF |
1609 | exit | |
1610 | fi | |
1611 | ||
1612 | ## ------------------------ ## | |
1613 | ## Autoconf initialization. ## | |
1614 | ## ------------------------ ## | |
dbadc56a | 1615 | |
a93f15c0 JF |
1616 | # ac_fn_c_try_compile LINENO |
1617 | # -------------------------- | |
a243b558 | 1618 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
a93f15c0 | 1619 | ac_fn_c_try_compile () |
a243b558 JF |
1620 | { |
1621 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1622 | rm -f conftest.$ac_objext | |
1623 | if { { ac_try="$ac_compile" | |
1624 | case "(($ac_try" in | |
1625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1626 | *) ac_try_echo=$ac_try;; | |
1627 | esac | |
1628 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1629 | $as_echo "$ac_try_echo"; } >&5 | |
1630 | (eval "$ac_compile") 2>conftest.err | |
1631 | ac_status=$? | |
1632 | if test -s conftest.err; then | |
1633 | grep -v '^ *+' conftest.err >conftest.er1 | |
1634 | cat conftest.er1 >&5 | |
1635 | mv -f conftest.er1 conftest.err | |
1636 | fi | |
1637 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1638 | test $ac_status = 0; } && { | |
a93f15c0 | 1639 | test -z "$ac_c_werror_flag" || |
a243b558 JF |
1640 | test ! -s conftest.err |
1641 | } && test -s conftest.$ac_objext; then : | |
1642 | ac_retval=0 | |
1643 | else | |
1644 | $as_echo "$as_me: failed program was:" >&5 | |
1645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1646 | ||
1647 | ac_retval=1 | |
1648 | fi | |
1649 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1650 | as_fn_set_status $ac_retval | |
1651 | ||
a93f15c0 | 1652 | } # ac_fn_c_try_compile |
a243b558 | 1653 | |
a93f15c0 JF |
1654 | # ac_fn_cxx_try_compile LINENO |
1655 | # ---------------------------- | |
a243b558 | 1656 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
a93f15c0 | 1657 | ac_fn_cxx_try_compile () |
a243b558 JF |
1658 | { |
1659 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1660 | rm -f conftest.$ac_objext | |
1661 | if { { ac_try="$ac_compile" | |
1662 | case "(($ac_try" in | |
1663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1664 | *) ac_try_echo=$ac_try;; | |
1665 | esac | |
1666 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1667 | $as_echo "$ac_try_echo"; } >&5 | |
1668 | (eval "$ac_compile") 2>conftest.err | |
1669 | ac_status=$? | |
1670 | if test -s conftest.err; then | |
1671 | grep -v '^ *+' conftest.err >conftest.er1 | |
1672 | cat conftest.er1 >&5 | |
1673 | mv -f conftest.er1 conftest.err | |
1674 | fi | |
1675 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1676 | test $ac_status = 0; } && { | |
a93f15c0 | 1677 | test -z "$ac_cxx_werror_flag" || |
a243b558 JF |
1678 | test ! -s conftest.err |
1679 | } && test -s conftest.$ac_objext; then : | |
1680 | ac_retval=0 | |
1681 | else | |
1682 | $as_echo "$as_me: failed program was:" >&5 | |
1683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1684 | ||
1685 | ac_retval=1 | |
1686 | fi | |
1687 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1688 | as_fn_set_status $ac_retval | |
1689 | ||
a93f15c0 | 1690 | } # ac_fn_cxx_try_compile |
a243b558 | 1691 | |
a93f15c0 JF |
1692 | # ac_fn_objcxx_try_compile LINENO |
1693 | # ------------------------------- | |
35fa52c0 | 1694 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
a93f15c0 | 1695 | ac_fn_objcxx_try_compile () |
35fa52c0 DWT |
1696 | { |
1697 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1698 | rm -f conftest.$ac_objext | |
1699 | if { { ac_try="$ac_compile" | |
1700 | case "(($ac_try" in | |
1701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1702 | *) ac_try_echo=$ac_try;; | |
1703 | esac | |
1704 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1705 | $as_echo "$ac_try_echo"; } >&5 | |
1706 | (eval "$ac_compile") 2>conftest.err | |
1707 | ac_status=$? | |
1708 | if test -s conftest.err; then | |
1709 | grep -v '^ *+' conftest.err >conftest.er1 | |
1710 | cat conftest.er1 >&5 | |
1711 | mv -f conftest.er1 conftest.err | |
1712 | fi | |
1713 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1714 | test $ac_status = 0; } && { | |
a93f15c0 | 1715 | test -z "$ac_objcxx_werror_flag" || |
35fa52c0 DWT |
1716 | test ! -s conftest.err |
1717 | } && test -s conftest.$ac_objext; then : | |
1718 | ac_retval=0 | |
1719 | else | |
1720 | $as_echo "$as_me: failed program was:" >&5 | |
1721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1722 | ||
1723 | ac_retval=1 | |
1724 | fi | |
ee134472 | 1725 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1726 | as_fn_set_status $ac_retval |
35fa52c0 | 1727 | |
a93f15c0 | 1728 | } # ac_fn_objcxx_try_compile |
35fa52c0 DWT |
1729 | |
1730 | # ac_fn_c_try_link LINENO | |
1731 | # ----------------------- | |
1732 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1733 | ac_fn_c_try_link () | |
1734 | { | |
1735 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1736 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1737 | if { { ac_try="$ac_link" | |
1738 | case "(($ac_try" in | |
1739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1740 | *) ac_try_echo=$ac_try;; | |
1741 | esac | |
1742 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1743 | $as_echo "$ac_try_echo"; } >&5 | |
1744 | (eval "$ac_link") 2>conftest.err | |
1745 | ac_status=$? | |
1746 | if test -s conftest.err; then | |
1747 | grep -v '^ *+' conftest.err >conftest.er1 | |
1748 | cat conftest.er1 >&5 | |
1749 | mv -f conftest.er1 conftest.err | |
1750 | fi | |
1751 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1752 | test $ac_status = 0; } && { | |
1753 | test -z "$ac_c_werror_flag" || | |
1754 | test ! -s conftest.err | |
1755 | } && test -s conftest$ac_exeext && { | |
1756 | test "$cross_compiling" = yes || | |
53ba6704 | 1757 | test -x conftest$ac_exeext |
35fa52c0 DWT |
1758 | }; then : |
1759 | ac_retval=0 | |
1760 | else | |
1761 | $as_echo "$as_me: failed program was:" >&5 | |
1762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1763 | ||
1764 | ac_retval=1 | |
1765 | fi | |
1766 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1767 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1768 | # interfere with the next link command; also delete a directory that is | |
1769 | # left behind by Apple's compiler. We do this before executing the actions. | |
1770 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 1771 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1772 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1773 | |
1774 | } # ac_fn_c_try_link | |
1775 | ||
9c60689e DWT |
1776 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1777 | # ------------------------------------------------------- | |
1778 | # Tests whether HEADER exists and can be compiled using the include files in | |
1779 | # INCLUDES, setting the cache variable VAR accordingly. | |
1780 | ac_fn_c_check_header_compile () | |
dbadc56a DWT |
1781 | { |
1782 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1784 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 1785 | if eval \${$3+:} false; then : |
9c60689e DWT |
1786 | $as_echo_n "(cached) " >&6 |
1787 | else | |
1788 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1789 | /* end confdefs.h. */ | |
1790 | $4 | |
1791 | #include <$2> | |
1792 | _ACEOF | |
1793 | if ac_fn_c_try_compile "$LINENO"; then : | |
1794 | eval "$3=yes" | |
1795 | else | |
1796 | eval "$3=no" | |
1797 | fi | |
1798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1799 | fi | |
1800 | eval ac_res=\$$3 | |
1801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1802 | $as_echo "$ac_res" >&6; } | |
ee134472 | 1803 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e DWT |
1804 | |
1805 | } # ac_fn_c_check_header_compile | |
1806 | ||
1807 | # ac_fn_c_try_cpp LINENO | |
1808 | # ---------------------- | |
1809 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1810 | ac_fn_c_try_cpp () | |
1811 | { | |
1812 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1813 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
dbadc56a DWT |
1814 | case "(($ac_try" in |
1815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1816 | *) ac_try_echo=$ac_try;; | |
1817 | esac | |
1818 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1819 | $as_echo "$ac_try_echo"; } >&5 | |
9c60689e | 1820 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
dbadc56a DWT |
1821 | ac_status=$? |
1822 | if test -s conftest.err; then | |
1823 | grep -v '^ *+' conftest.err >conftest.er1 | |
1824 | cat conftest.er1 >&5 | |
1825 | mv -f conftest.er1 conftest.err | |
1826 | fi | |
1827 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12833ad8 | 1828 | test $ac_status = 0; } > conftest.i && { |
9c60689e | 1829 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
dbadc56a | 1830 | test ! -s conftest.err |
9c60689e | 1831 | }; then : |
dbadc56a DWT |
1832 | ac_retval=0 |
1833 | else | |
1834 | $as_echo "$as_me: failed program was:" >&5 | |
1835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1836 | ||
9c60689e | 1837 | ac_retval=1 |
dbadc56a | 1838 | fi |
ee134472 | 1839 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1840 | as_fn_set_status $ac_retval |
dbadc56a | 1841 | |
9c60689e | 1842 | } # ac_fn_c_try_cpp |
35fa52c0 DWT |
1843 | |
1844 | # ac_fn_c_try_run LINENO | |
1845 | # ---------------------- | |
1846 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1847 | # that executables *can* be run. | |
1848 | ac_fn_c_try_run () | |
1849 | { | |
1850 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1851 | if { { ac_try="$ac_link" | |
1852 | case "(($ac_try" in | |
1853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1854 | *) ac_try_echo=$ac_try;; | |
1855 | esac | |
1856 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1857 | $as_echo "$ac_try_echo"; } >&5 | |
1858 | (eval "$ac_link") 2>&5 | |
1859 | ac_status=$? | |
1860 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1861 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
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_try") 2>&5 | |
1869 | ac_status=$? | |
1870 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1871 | test $ac_status = 0; }; }; then : | |
1872 | ac_retval=0 | |
1873 | else | |
1874 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1875 | $as_echo "$as_me: failed program was:" >&5 | |
1876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1877 | ||
1878 | ac_retval=$ac_status | |
1879 | fi | |
1880 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 1881 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1882 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1883 | |
1884 | } # ac_fn_c_try_run | |
6b66678a | 1885 | |
9c60689e DWT |
1886 | # ac_fn_c_check_func LINENO FUNC VAR |
1887 | # ---------------------------------- | |
1888 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1889 | ac_fn_c_check_func () | |
6b66678a DWT |
1890 | { |
1891 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1893 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 1894 | if eval \${$3+:} false; then : |
9c60689e | 1895 | $as_echo_n "(cached) " >&6 |
6b66678a | 1896 | else |
9c60689e DWT |
1897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1898 | /* end confdefs.h. */ | |
1899 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1900 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1901 | #define $2 innocuous_$2 | |
6b66678a | 1902 | |
9c60689e DWT |
1903 | /* System header to define __stub macros and hopefully few prototypes, |
1904 | which can conflict with char $2 (); below. | |
1905 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1906 | <limits.h> exists even on freestanding compilers. */ | |
1907 | ||
1908 | #ifdef __STDC__ | |
1909 | # include <limits.h> | |
1910 | #else | |
1911 | # include <assert.h> | |
1912 | #endif | |
1913 | ||
1914 | #undef $2 | |
1915 | ||
1916 | /* Override any GCC internal prototype to avoid an error. | |
1917 | Use char because int might match the return type of a GCC | |
1918 | builtin and then its argument prototype would still apply. */ | |
1919 | #ifdef __cplusplus | |
1920 | extern "C" | |
1921 | #endif | |
1922 | char $2 (); | |
1923 | /* The GNU C library defines this for functions which it implements | |
1924 | to always fail with ENOSYS. Some functions are actually named | |
1925 | something starting with __ and the normal name is an alias. */ | |
1926 | #if defined __stub_$2 || defined __stub___$2 | |
1927 | choke me | |
1928 | #endif | |
1929 | ||
1930 | int | |
1931 | main () | |
1932 | { | |
1933 | return $2 (); | |
1934 | ; | |
1935 | return 0; | |
1936 | } | |
1937 | _ACEOF | |
1938 | if ac_fn_c_try_link "$LINENO"; then : | |
1939 | eval "$3=yes" | |
1940 | else | |
1941 | eval "$3=no" | |
1942 | fi | |
1943 | rm -f core conftest.err conftest.$ac_objext \ | |
1944 | conftest$ac_exeext conftest.$ac_ext | |
6b66678a | 1945 | fi |
9c60689e DWT |
1946 | eval ac_res=\$$3 |
1947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1948 | $as_echo "$ac_res" >&6; } | |
ee134472 | 1949 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6b66678a | 1950 | |
9c60689e | 1951 | } # ac_fn_c_check_func |
6b66678a | 1952 | |
9c60689e DWT |
1953 | # ac_fn_cxx_try_cpp LINENO |
1954 | # ------------------------ | |
1955 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1956 | ac_fn_cxx_try_cpp () | |
1957 | { | |
1958 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1959 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1960 | case "(($ac_try" in | |
1961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1962 | *) ac_try_echo=$ac_try;; | |
1963 | esac | |
1964 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1965 | $as_echo "$ac_try_echo"; } >&5 | |
1966 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1967 | ac_status=$? | |
1968 | if test -s conftest.err; then | |
1969 | grep -v '^ *+' conftest.err >conftest.er1 | |
1970 | cat conftest.er1 >&5 | |
1971 | mv -f conftest.er1 conftest.err | |
1972 | fi | |
1973 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12833ad8 | 1974 | test $ac_status = 0; } > conftest.i && { |
9c60689e DWT |
1975 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
1976 | test ! -s conftest.err | |
1977 | }; then : | |
1978 | ac_retval=0 | |
1979 | else | |
1980 | $as_echo "$as_me: failed program was:" >&5 | |
1981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1982 | ||
1983 | ac_retval=1 | |
1984 | fi | |
ee134472 | 1985 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e DWT |
1986 | as_fn_set_status $ac_retval |
1987 | ||
1988 | } # ac_fn_cxx_try_cpp | |
1989 | ||
1990 | # ac_fn_cxx_try_link LINENO | |
1991 | # ------------------------- | |
1992 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1993 | ac_fn_cxx_try_link () | |
1994 | { | |
1995 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1996 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1997 | if { { ac_try="$ac_link" | |
1998 | case "(($ac_try" in | |
1999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2000 | *) ac_try_echo=$ac_try;; | |
2001 | esac | |
2002 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2003 | $as_echo "$ac_try_echo"; } >&5 | |
2004 | (eval "$ac_link") 2>conftest.err | |
2005 | ac_status=$? | |
2006 | if test -s conftest.err; then | |
2007 | grep -v '^ *+' conftest.err >conftest.er1 | |
2008 | cat conftest.er1 >&5 | |
2009 | mv -f conftest.er1 conftest.err | |
2010 | fi | |
2011 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2012 | test $ac_status = 0; } && { | |
2013 | test -z "$ac_cxx_werror_flag" || | |
2014 | test ! -s conftest.err | |
2015 | } && test -s conftest$ac_exeext && { | |
2016 | test "$cross_compiling" = yes || | |
53ba6704 | 2017 | test -x conftest$ac_exeext |
9c60689e DWT |
2018 | }; then : |
2019 | ac_retval=0 | |
2020 | else | |
2021 | $as_echo "$as_me: failed program was:" >&5 | |
2022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2023 | ||
2024 | ac_retval=1 | |
2025 | fi | |
2026 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2027 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2028 | # interfere with the next link command; also delete a directory that is | |
2029 | # left behind by Apple's compiler. We do this before executing the actions. | |
2030 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 2031 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e DWT |
2032 | as_fn_set_status $ac_retval |
2033 | ||
2034 | } # ac_fn_cxx_try_link | |
2035 | ||
47aaa820 DWT |
2036 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
2037 | # --------------------------------------------------------- | |
2038 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2039 | # the include files in INCLUDES and setting the cache variable VAR | |
2040 | # accordingly. | |
2041 | ac_fn_cxx_check_header_mongrel () | |
2042 | { | |
2043 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
ee134472 | 2044 | if eval \${$3+:} false; then : |
47aaa820 DWT |
2045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2046 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 2047 | if eval \${$3+:} false; then : |
47aaa820 DWT |
2048 | $as_echo_n "(cached) " >&6 |
2049 | fi | |
2050 | eval ac_res=\$$3 | |
2051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2052 | $as_echo "$ac_res" >&6; } | |
2053 | else | |
2054 | # Is the header compilable? | |
2055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2056 | $as_echo_n "checking $2 usability... " >&6; } | |
2057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2058 | /* end confdefs.h. */ | |
2059 | $4 | |
2060 | #include <$2> | |
2061 | _ACEOF | |
2062 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2063 | ac_header_compiler=yes | |
2064 | else | |
2065 | ac_header_compiler=no | |
2066 | fi | |
2067 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2069 | $as_echo "$ac_header_compiler" >&6; } | |
2070 | ||
2071 | # Is the header present? | |
2072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2073 | $as_echo_n "checking $2 presence... " >&6; } | |
2074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2075 | /* end confdefs.h. */ | |
2076 | #include <$2> | |
2077 | _ACEOF | |
2078 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
2079 | ac_header_preproc=yes | |
2080 | else | |
2081 | ac_header_preproc=no | |
2082 | fi | |
12833ad8 | 2083 | rm -f conftest.err conftest.i conftest.$ac_ext |
47aaa820 DWT |
2084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
2085 | $as_echo "$ac_header_preproc" >&6; } | |
2086 | ||
2087 | # So? What about this header? | |
2088 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
2089 | yes:no: ) | |
2090 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2091 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2092 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2093 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2094 | ;; | |
2095 | no:yes:* ) | |
2096 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2097 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2098 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2099 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2100 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2101 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2102 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2103 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2104 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2105 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
12833ad8 | 2106 | ( $as_echo "## -------------------------------- ## |
47aaa820 | 2107 | ## Report this to saurik@saurik.com ## |
12833ad8 | 2108 | ## -------------------------------- ##" |
47aaa820 DWT |
2109 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
2110 | ;; | |
2111 | esac | |
2112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2113 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 2114 | if eval \${$3+:} false; then : |
47aaa820 DWT |
2115 | $as_echo_n "(cached) " >&6 |
2116 | else | |
2117 | eval "$3=\$ac_header_compiler" | |
2118 | fi | |
2119 | eval ac_res=\$$3 | |
2120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2121 | $as_echo "$ac_res" >&6; } | |
2122 | fi | |
ee134472 | 2123 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
47aaa820 DWT |
2124 | |
2125 | } # ac_fn_cxx_check_header_mongrel | |
2126 | ||
c823f118 DWT |
2127 | # ac_fn_objcxx_try_link LINENO |
2128 | # ---------------------------- | |
2129 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2130 | ac_fn_objcxx_try_link () | |
2131 | { | |
2132 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2133 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2134 | if { { ac_try="$ac_link" | |
2135 | case "(($ac_try" in | |
2136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2137 | *) ac_try_echo=$ac_try;; | |
2138 | esac | |
2139 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2140 | $as_echo "$ac_try_echo"; } >&5 | |
2141 | (eval "$ac_link") 2>conftest.err | |
2142 | ac_status=$? | |
2143 | if test -s conftest.err; then | |
2144 | grep -v '^ *+' conftest.err >conftest.er1 | |
2145 | cat conftest.er1 >&5 | |
2146 | mv -f conftest.er1 conftest.err | |
2147 | fi | |
2148 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2149 | test $ac_status = 0; } && { | |
2150 | test -z "$ac_objcxx_werror_flag" || | |
2151 | test ! -s conftest.err | |
2152 | } && test -s conftest$ac_exeext && { | |
2153 | test "$cross_compiling" = yes || | |
53ba6704 | 2154 | test -x conftest$ac_exeext |
c823f118 DWT |
2155 | }; then : |
2156 | ac_retval=0 | |
2157 | else | |
2158 | $as_echo "$as_me: failed program was:" >&5 | |
2159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2160 | ||
2161 | ac_retval=1 | |
2162 | fi | |
2163 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2164 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2165 | # interfere with the next link command; also delete a directory that is | |
2166 | # left behind by Apple's compiler. We do this before executing the actions. | |
2167 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 2168 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
c823f118 DWT |
2169 | as_fn_set_status $ac_retval |
2170 | ||
2171 | } # ac_fn_objcxx_try_link | |
c7aa54aa DWT |
2172 | cat >config.log <<_ACEOF |
2173 | This file contains any messages produced by compilers while | |
2174 | running configure, to aid debugging if configure makes a mistake. | |
2175 | ||
2176 | It was created by Cycript $as_me 0.9, which was | |
53ba6704 | 2177 | generated by GNU Autoconf 2.69. Invocation command line was |
c7aa54aa DWT |
2178 | |
2179 | $ $0 $@ | |
2180 | ||
2181 | _ACEOF | |
2182 | exec 5>>config.log | |
2183 | { | |
2184 | cat <<_ASUNAME | |
2185 | ## --------- ## | |
2186 | ## Platform. ## | |
2187 | ## --------- ## | |
2188 | ||
2189 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2190 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2191 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2192 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2193 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2194 | ||
2195 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2196 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2197 | ||
2198 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2199 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2200 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2201 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2202 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2203 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2204 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2205 | ||
2206 | _ASUNAME | |
2207 | ||
2208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2209 | for as_dir in $PATH | |
2210 | do | |
2211 | IFS=$as_save_IFS | |
2212 | test -z "$as_dir" && as_dir=. | |
2213 | $as_echo "PATH: $as_dir" | |
2214 | done | |
2215 | IFS=$as_save_IFS | |
2216 | ||
2217 | } >&5 | |
2218 | ||
2219 | cat >&5 <<_ACEOF | |
2220 | ||
2221 | ||
2222 | ## ----------- ## | |
2223 | ## Core tests. ## | |
2224 | ## ----------- ## | |
2225 | ||
2226 | _ACEOF | |
2227 | ||
2228 | ||
2229 | # Keep a trace of the command line. | |
2230 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2231 | # Strip out --silent because we don't want to record it for future runs. | |
2232 | # Also quote any args containing shell meta-characters. | |
2233 | # Make two passes to allow for proper duplicate-argument suppression. | |
2234 | ac_configure_args= | |
2235 | ac_configure_args0= | |
2236 | ac_configure_args1= | |
2237 | ac_must_keep_next=false | |
2238 | for ac_pass in 1 2 | |
2239 | do | |
2240 | for ac_arg | |
2241 | do | |
2242 | case $ac_arg in | |
2243 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2244 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2245 | | -silent | --silent | --silen | --sile | --sil) | |
2246 | continue ;; | |
2247 | *\'*) | |
2248 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2249 | esac | |
2250 | case $ac_pass in | |
2251 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2252 | 2) | |
2253 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2254 | if test $ac_must_keep_next = true; then | |
2255 | ac_must_keep_next=false # Got value, back to normal. | |
2256 | else | |
2257 | case $ac_arg in | |
2258 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2259 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2260 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2261 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2262 | case "$ac_configure_args0 " in | |
2263 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2264 | esac | |
2265 | ;; | |
2266 | -* ) ac_must_keep_next=true ;; | |
2267 | esac | |
2268 | fi | |
2269 | as_fn_append ac_configure_args " '$ac_arg'" | |
2270 | ;; | |
2271 | esac | |
2272 | done | |
2273 | done | |
2274 | { ac_configure_args0=; unset ac_configure_args0;} | |
2275 | { ac_configure_args1=; unset ac_configure_args1;} | |
2276 | ||
2277 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2278 | # config.log. We remove comments because anyway the quotes in there | |
2279 | # would cause problems or look ugly. | |
2280 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2281 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2282 | trap 'exit_status=$? | |
2283 | # Save into config.log some information that might help in debugging. | |
2284 | { | |
2285 | echo | |
2286 | ||
12833ad8 | 2287 | $as_echo "## ---------------- ## |
c7aa54aa | 2288 | ## Cache variables. ## |
12833ad8 | 2289 | ## ---------------- ##" |
c7aa54aa DWT |
2290 | echo |
2291 | # The following way of writing the cache mishandles newlines in values, | |
2292 | ( | |
2293 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2294 | eval ac_val=\$$ac_var | |
2295 | case $ac_val in #( | |
2296 | *${as_nl}*) | |
2297 | case $ac_var in #( | |
2298 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2299 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2300 | esac | |
2301 | case $ac_var in #( | |
2302 | _ | IFS | as_nl) ;; #( | |
2303 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2304 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2305 | esac ;; | |
2306 | esac | |
2307 | done | |
2308 | (set) 2>&1 | | |
2309 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2310 | *${as_nl}ac_space=\ *) | |
2311 | sed -n \ | |
2312 | "s/'\''/'\''\\\\'\'''\''/g; | |
2313 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2314 | ;; #( | |
2315 | *) | |
2316 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2317 | ;; | |
2318 | esac | | |
2319 | sort | |
2320 | ) | |
2321 | echo | |
2322 | ||
12833ad8 | 2323 | $as_echo "## ----------------- ## |
c7aa54aa | 2324 | ## Output variables. ## |
12833ad8 | 2325 | ## ----------------- ##" |
c7aa54aa DWT |
2326 | echo |
2327 | for ac_var in $ac_subst_vars | |
2328 | do | |
2329 | eval ac_val=\$$ac_var | |
2330 | case $ac_val in | |
2331 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2332 | esac | |
2333 | $as_echo "$ac_var='\''$ac_val'\''" | |
2334 | done | sort | |
2335 | echo | |
2336 | ||
2337 | if test -n "$ac_subst_files"; then | |
12833ad8 | 2338 | $as_echo "## ------------------- ## |
c7aa54aa | 2339 | ## File substitutions. ## |
12833ad8 | 2340 | ## ------------------- ##" |
c7aa54aa DWT |
2341 | echo |
2342 | for ac_var in $ac_subst_files | |
2343 | do | |
2344 | eval ac_val=\$$ac_var | |
2345 | case $ac_val in | |
2346 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2347 | esac | |
2348 | $as_echo "$ac_var='\''$ac_val'\''" | |
2349 | done | sort | |
2350 | echo | |
2351 | fi | |
2352 | ||
2353 | if test -s confdefs.h; then | |
12833ad8 | 2354 | $as_echo "## ----------- ## |
c7aa54aa | 2355 | ## confdefs.h. ## |
12833ad8 | 2356 | ## ----------- ##" |
c7aa54aa DWT |
2357 | echo |
2358 | cat confdefs.h | |
2359 | echo | |
2360 | fi | |
2361 | test "$ac_signal" != 0 && | |
2362 | $as_echo "$as_me: caught signal $ac_signal" | |
2363 | $as_echo "$as_me: exit $exit_status" | |
2364 | } >&5 | |
2365 | rm -f core *.core core.conftest.* && | |
2366 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2367 | exit $exit_status | |
2368 | ' 0 | |
2369 | for ac_signal in 1 2 13 15; do | |
2370 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2371 | done | |
2372 | ac_signal=0 | |
2373 | ||
2374 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2375 | rm -f -r conftest* confdefs.h | |
2376 | ||
2377 | $as_echo "/* confdefs.h */" > confdefs.h | |
2378 | ||
2379 | # Predefined preprocessor variables. | |
2380 | ||
2381 | cat >>confdefs.h <<_ACEOF | |
2382 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2383 | _ACEOF | |
2384 | ||
2385 | cat >>confdefs.h <<_ACEOF | |
2386 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2387 | _ACEOF | |
2388 | ||
2389 | cat >>confdefs.h <<_ACEOF | |
2390 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2391 | _ACEOF | |
2392 | ||
2393 | cat >>confdefs.h <<_ACEOF | |
2394 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2395 | _ACEOF | |
2396 | ||
2397 | cat >>confdefs.h <<_ACEOF | |
2398 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2399 | _ACEOF | |
2400 | ||
2401 | cat >>confdefs.h <<_ACEOF | |
2402 | #define PACKAGE_URL "$PACKAGE_URL" | |
2403 | _ACEOF | |
2404 | ||
2405 | ||
2406 | # Let the site file select an alternate cache file if it wants to. | |
2407 | # Prefer an explicitly selected file to automatically selected ones. | |
2408 | ac_site_file1=NONE | |
2409 | ac_site_file2=NONE | |
2410 | if test -n "$CONFIG_SITE"; then | |
12833ad8 JF |
2411 | # We do not want a PATH search for config.site. |
2412 | case $CONFIG_SITE in #(( | |
2413 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2414 | */*) ac_site_file1=$CONFIG_SITE;; | |
2415 | *) ac_site_file1=./$CONFIG_SITE;; | |
2416 | esac | |
c7aa54aa DWT |
2417 | elif test "x$prefix" != xNONE; then |
2418 | ac_site_file1=$prefix/share/config.site | |
2419 | ac_site_file2=$prefix/etc/config.site | |
2420 | else | |
2421 | ac_site_file1=$ac_default_prefix/share/config.site | |
2422 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2423 | fi | |
2424 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2425 | do | |
2426 | test "x$ac_site_file" = xNONE && continue | |
9c60689e | 2427 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
c7aa54aa DWT |
2428 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2429 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2430 | sed 's/^/| /' "$ac_site_file" >&5 | |
12833ad8 JF |
2431 | . "$ac_site_file" \ |
2432 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2433 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2434 | as_fn_error $? "failed to load site script $ac_site_file | |
ee134472 | 2435 | See \`config.log' for more details" "$LINENO" 5; } |
c7aa54aa DWT |
2436 | fi |
2437 | done | |
2438 | ||
2439 | if test -r "$cache_file"; then | |
9c60689e DWT |
2440 | # Some versions of bash will fail to source /dev/null (special files |
2441 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2442 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
c7aa54aa DWT |
2443 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2444 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2445 | case $cache_file in | |
2446 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2447 | *) . "./$cache_file";; | |
2448 | esac | |
2449 | fi | |
2450 | else | |
2451 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2452 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2453 | >$cache_file | |
2454 | fi | |
2455 | ||
2456 | # Check that the precious variables saved in the cache have kept the same | |
2457 | # value. | |
2458 | ac_cache_corrupted=false | |
2459 | for ac_var in $ac_precious_vars; do | |
2460 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2461 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2462 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2463 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2464 | case $ac_old_set,$ac_new_set in | |
2465 | set,) | |
2466 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2467 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2468 | ac_cache_corrupted=: ;; | |
2469 | ,set) | |
2470 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2471 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2472 | ac_cache_corrupted=: ;; | |
2473 | ,);; | |
2474 | *) | |
2475 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2476 | # differences in whitespace do not lead to failure. | |
2477 | ac_old_val_w=`echo x $ac_old_val` | |
2478 | ac_new_val_w=`echo x $ac_new_val` | |
2479 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2480 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2481 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2482 | ac_cache_corrupted=: | |
2483 | else | |
2484 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2485 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2486 | eval $ac_var=\$ac_old_val | |
2487 | fi | |
2488 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2489 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2490 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2491 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2492 | fi;; | |
2493 | esac | |
2494 | # Pass precious variables to config.status. | |
2495 | if test "$ac_new_set" = set; then | |
2496 | case $ac_new_val in | |
2497 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2498 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2499 | esac | |
2500 | case " $ac_configure_args " in | |
2501 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2502 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2503 | esac | |
2504 | fi | |
2505 | done | |
2506 | if $ac_cache_corrupted; then | |
2507 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2508 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2509 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2510 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
12833ad8 | 2511 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
c7aa54aa DWT |
2512 | fi |
2513 | ## -------------------- ## | |
2514 | ## Main body of script. ## | |
2515 | ## -------------------- ## | |
2516 | ||
2517 | ac_ext=c | |
2518 | ac_cpp='$CPP $CPPFLAGS' | |
2519 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2520 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2521 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2522 | ||
2523 | ||
66170b30 JF |
2524 | |
2525 | ||
35fa52c0 | 2526 | |
6b66678a DWT |
2527 | ac_aux_dir= |
2528 | for ac_dir in . "$srcdir"/.; do | |
12833ad8 JF |
2529 | if test -f "$ac_dir/install-sh"; then |
2530 | ac_aux_dir=$ac_dir | |
2531 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2532 | break | |
2533 | elif test -f "$ac_dir/install.sh"; then | |
2534 | ac_aux_dir=$ac_dir | |
2535 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2536 | break | |
2537 | elif test -f "$ac_dir/shtool"; then | |
2538 | ac_aux_dir=$ac_dir | |
2539 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2540 | break | |
2541 | fi | |
6b66678a DWT |
2542 | done |
2543 | if test -z "$ac_aux_dir"; then | |
12833ad8 | 2544 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 |
6b66678a DWT |
2545 | fi |
2546 | ||
2547 | # These three variables are undocumented and unsupported, | |
2548 | # and are intended to be withdrawn in a future Autoconf release. | |
2549 | # They can cause serious problems if a builder's source tree is in a directory | |
2550 | # whose full name contains unusual characters. | |
2551 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2552 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2553 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2554 | ||
2555 | ||
9c60689e | 2556 | |
296ee9a6 JF |
2557 | ac_config_headers="$ac_config_headers config.h" |
2558 | ||
9c60689e | 2559 | |
a93f15c0 | 2560 | am__api_version='1.14' |
9c60689e | 2561 | |
66170b30 JF |
2562 | # Find a good install program. We prefer a C program (faster), |
2563 | # so one script is as good as another. But avoid the broken or | |
2564 | # incompatible versions: | |
2565 | # SysV /etc/install, /usr/sbin/install | |
2566 | # SunOS /usr/etc/install | |
2567 | # IRIX /sbin/install | |
2568 | # AIX /bin/install | |
2569 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2570 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2571 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2572 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2573 | # OS/2's system install, which has a completely different semantic | |
2574 | # ./install, which can be erroneously created by make from ./install.sh. | |
2575 | # Reject install programs that cannot install multiple files. | |
2576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2577 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2578 | if test -z "$INSTALL"; then | |
2579 | if ${ac_cv_path_install+:} false; then : | |
2580 | $as_echo_n "(cached) " >&6 | |
2581 | else | |
2582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2583 | for as_dir in $PATH | |
2584 | do | |
2585 | IFS=$as_save_IFS | |
2586 | test -z "$as_dir" && as_dir=. | |
2587 | # Account for people who put trailing slashes in PATH elements. | |
2588 | case $as_dir/ in #(( | |
2589 | ./ | .// | /[cC]/* | \ | |
2590 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2591 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2592 | /usr/ucb/* ) ;; | |
2593 | *) | |
2594 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2595 | # Don't use installbsd from OSF since it installs stuff as root | |
2596 | # by default. | |
2597 | for ac_prog in ginstall scoinst install; do | |
2598 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2599 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2600 | if test $ac_prog = install && | |
2601 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2602 | # AIX install. It has an incompatible calling convention. | |
2603 | : | |
2604 | elif test $ac_prog = install && | |
2605 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2606 | # program-specific install script used by HP pwplus--don't use. | |
2607 | : | |
2608 | else | |
2609 | rm -rf conftest.one conftest.two conftest.dir | |
2610 | echo one > conftest.one | |
2611 | echo two > conftest.two | |
2612 | mkdir conftest.dir | |
2613 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2614 | test -s conftest.one && test -s conftest.two && | |
2615 | test -s conftest.dir/conftest.one && | |
2616 | test -s conftest.dir/conftest.two | |
2617 | then | |
2618 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2619 | break 3 | |
2620 | fi | |
2621 | fi | |
2622 | fi | |
2623 | done | |
2624 | done | |
2625 | ;; | |
2626 | esac | |
9c60689e | 2627 | |
66170b30 JF |
2628 | done |
2629 | IFS=$as_save_IFS | |
9c60689e | 2630 | |
66170b30 | 2631 | rm -rf conftest.one conftest.two conftest.dir |
9c60689e | 2632 | |
66170b30 JF |
2633 | fi |
2634 | if test "${ac_cv_path_install+set}" = set; then | |
2635 | INSTALL=$ac_cv_path_install | |
2636 | else | |
2637 | # As a last resort, use the slow shell script. Don't cache a | |
2638 | # value for INSTALL within a source directory, because that will | |
2639 | # break other packages using the cache if that directory is | |
2640 | # removed, or if the value is a relative name. | |
2641 | INSTALL=$ac_install_sh | |
2642 | fi | |
2643 | fi | |
2644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2645 | $as_echo "$INSTALL" >&6; } | |
9c60689e | 2646 | |
66170b30 JF |
2647 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2648 | # It thinks the first close brace ends the variable substitution. | |
2649 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9c60689e | 2650 | |
66170b30 | 2651 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
9c60689e | 2652 | |
66170b30 | 2653 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
9c60689e | 2654 | |
66170b30 JF |
2655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2656 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
2657 | # Reject unsafe characters in $srcdir or the absolute working directory | |
2658 | # name. Accept space and tab only in the latter. | |
2659 | am_lf=' | |
2660 | ' | |
2661 | case `pwd` in | |
2662 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2663 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
2664 | esac | |
2665 | case $srcdir in | |
2666 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2667 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
2668 | esac | |
9c60689e | 2669 | |
66170b30 JF |
2670 | # Do 'set' in a subshell so we don't clobber the current shell's |
2671 | # arguments. Must try -L first in case configure is actually a | |
2672 | # symlink; some systems play weird games with the mod time of symlinks | |
2673 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2674 | # directory). | |
2675 | if ( | |
2676 | am_has_slept=no | |
2677 | for am_try in 1 2; do | |
2678 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2679 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2680 | if test "$*" = "X"; then | |
2681 | # -L didn't work. | |
2682 | set X `ls -t "$srcdir/configure" conftest.file` | |
2683 | fi | |
2684 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2685 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2686 | ||
2687 | # If neither matched, then we have a broken ls. This can happen | |
2688 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2689 | # broken ls alias from the environment. This has actually | |
2690 | # happened. Such a system could not be considered "sane". | |
2691 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2692 | alias in your environment" "$LINENO" 5 | |
2693 | fi | |
2694 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2695 | break | |
2696 | fi | |
2697 | # Just in case. | |
2698 | sleep 1 | |
2699 | am_has_slept=yes | |
2700 | done | |
2701 | test "$2" = conftest.file | |
2702 | ) | |
2703 | then | |
2704 | # Ok. | |
2705 | : | |
2706 | else | |
2707 | as_fn_error $? "newly created file is older than distributed files! | |
2708 | Check your system clock" "$LINENO" 5 | |
2709 | fi | |
2710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2711 | $as_echo "yes" >&6; } | |
2712 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
2713 | # generated files are strictly newer. | |
2714 | am_sleep_pid= | |
2715 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2716 | ( sleep 1 ) & | |
2717 | am_sleep_pid=$! | |
2718 | fi | |
2719 | ||
2720 | rm -f conftest.file | |
2721 | ||
2722 | test "$program_prefix" != NONE && | |
2723 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2724 | # Use a double $ so make ignores it. | |
2725 | test "$program_suffix" != NONE && | |
2726 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2727 | # Double any \ or $. | |
2728 | # By default was `s,x,x', remove it if useless. | |
2729 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2730 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2731 | ||
2732 | # expand $ac_aux_dir to an absolute path | |
2733 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2734 | ||
2735 | if test x"${MISSING+set}" != xset; then | |
2736 | case $am_aux_dir in | |
2737 | *\ * | *\ *) | |
2738 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2739 | *) | |
2740 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2741 | esac | |
2742 | fi | |
2743 | # Use eval to expand $SHELL | |
2744 | if eval "$MISSING --is-lightweight"; then | |
2745 | am_missing_run="$MISSING " | |
2746 | else | |
2747 | am_missing_run= | |
2748 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2749 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
2750 | fi | |
9c60689e | 2751 | |
66170b30 JF |
2752 | if test x"${install_sh}" != xset; then |
2753 | case $am_aux_dir in | |
2754 | *\ * | *\ *) | |
2755 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2756 | *) | |
2757 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2758 | esac | |
2759 | fi | |
9c60689e | 2760 | |
66170b30 JF |
2761 | # Installed binaries are usually stripped using 'strip' when the user |
2762 | # run "make install-strip". However 'strip' might not be the right | |
2763 | # tool to use in cross-compilation environments, therefore Automake | |
2764 | # will honor the 'STRIP' environment variable to overrule this program. | |
2765 | if test "$cross_compiling" != no; then | |
2766 | if test -n "$ac_tool_prefix"; then | |
2767 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2768 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2770 | $as_echo_n "checking for $ac_word... " >&6; } | |
2771 | if ${ac_cv_prog_STRIP+:} false; then : | |
2772 | $as_echo_n "(cached) " >&6 | |
2773 | else | |
2774 | if test -n "$STRIP"; then | |
2775 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2776 | else | |
2777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2778 | for as_dir in $PATH | |
2779 | do | |
2780 | IFS=$as_save_IFS | |
2781 | test -z "$as_dir" && as_dir=. | |
2782 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2783 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2784 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2785 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2786 | break 2 | |
2787 | fi | |
2788 | done | |
2789 | done | |
2790 | IFS=$as_save_IFS | |
9c60689e | 2791 | |
66170b30 JF |
2792 | fi |
2793 | fi | |
2794 | STRIP=$ac_cv_prog_STRIP | |
2795 | if test -n "$STRIP"; then | |
2796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2797 | $as_echo "$STRIP" >&6; } | |
2798 | else | |
2799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2800 | $as_echo "no" >&6; } | |
2801 | fi | |
9c60689e | 2802 | |
9c60689e | 2803 | |
66170b30 JF |
2804 | fi |
2805 | if test -z "$ac_cv_prog_STRIP"; then | |
2806 | ac_ct_STRIP=$STRIP | |
2807 | # Extract the first word of "strip", so it can be a program name with args. | |
2808 | set dummy strip; ac_word=$2 | |
2809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2810 | $as_echo_n "checking for $ac_word... " >&6; } | |
2811 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
9c60689e DWT |
2812 | $as_echo_n "(cached) " >&6 |
2813 | else | |
66170b30 JF |
2814 | if test -n "$ac_ct_STRIP"; then |
2815 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2816 | else | |
2817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2818 | for as_dir in $PATH | |
2819 | do | |
2820 | IFS=$as_save_IFS | |
2821 | test -z "$as_dir" && as_dir=. | |
2822 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2823 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2824 | ac_cv_prog_ac_ct_STRIP="strip" | |
2825 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2826 | break 2 | |
2827 | fi | |
2828 | done | |
2829 | done | |
2830 | IFS=$as_save_IFS | |
9c60689e DWT |
2831 | |
2832 | fi | |
66170b30 JF |
2833 | fi |
2834 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2835 | if test -n "$ac_ct_STRIP"; then | |
2836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2837 | $as_echo "$ac_ct_STRIP" >&6; } | |
2838 | else | |
2839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2840 | $as_echo "no" >&6; } | |
2841 | fi | |
2842 | ||
2843 | if test "x$ac_ct_STRIP" = x; then | |
2844 | STRIP=":" | |
2845 | else | |
2846 | case $cross_compiling:$ac_tool_warned in | |
2847 | yes:) | |
2848 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2849 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2850 | ac_tool_warned=yes ;; | |
9c60689e | 2851 | esac |
66170b30 JF |
2852 | STRIP=$ac_ct_STRIP |
2853 | fi | |
2854 | else | |
2855 | STRIP="$ac_cv_prog_STRIP" | |
2856 | fi | |
9c60689e | 2857 | |
66170b30 JF |
2858 | fi |
2859 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
9c60689e | 2860 | |
66170b30 JF |
2861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
2862 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2863 | if test -z "$MKDIR_P"; then | |
2864 | if ${ac_cv_path_mkdir+:} false; then : | |
9c60689e DWT |
2865 | $as_echo_n "(cached) " >&6 |
2866 | else | |
66170b30 JF |
2867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2868 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2869 | do | |
2870 | IFS=$as_save_IFS | |
2871 | test -z "$as_dir" && as_dir=. | |
2872 | for ac_prog in mkdir gmkdir; do | |
2873 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2874 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
2875 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2876 | 'mkdir (GNU coreutils) '* | \ | |
2877 | 'mkdir (coreutils) '* | \ | |
2878 | 'mkdir (fileutils) '4.1*) | |
2879 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2880 | break 3;; | |
2881 | esac | |
2882 | done | |
2883 | done | |
2884 | done | |
2885 | IFS=$as_save_IFS | |
2886 | ||
2887 | fi | |
2888 | ||
2889 | test -d ./--version && rmdir ./--version | |
2890 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2891 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2892 | else | |
2893 | # As a last resort, use the slow shell script. Don't cache a | |
2894 | # value for MKDIR_P within a source directory, because that will | |
2895 | # break other packages using the cache if that directory is | |
2896 | # removed, or if the value is a relative name. | |
2897 | MKDIR_P="$ac_install_sh -d" | |
2898 | fi | |
2899 | fi | |
2900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2901 | $as_echo "$MKDIR_P" >&6; } | |
2902 | ||
2903 | for ac_prog in gawk mawk nawk awk | |
2904 | do | |
2905 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2906 | set dummy $ac_prog; ac_word=$2 | |
2907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2908 | $as_echo_n "checking for $ac_word... " >&6; } | |
2909 | if ${ac_cv_prog_AWK+:} false; then : | |
2910 | $as_echo_n "(cached) " >&6 | |
2911 | else | |
2912 | if test -n "$AWK"; then | |
2913 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2914 | else | |
2915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2916 | for as_dir in $PATH | |
2917 | do | |
2918 | IFS=$as_save_IFS | |
2919 | test -z "$as_dir" && as_dir=. | |
2920 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2921 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2922 | ac_cv_prog_AWK="$ac_prog" | |
2923 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2924 | break 2 | |
2925 | fi | |
2926 | done | |
2927 | done | |
2928 | IFS=$as_save_IFS | |
2929 | ||
2930 | fi | |
2931 | fi | |
2932 | AWK=$ac_cv_prog_AWK | |
2933 | if test -n "$AWK"; then | |
2934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2935 | $as_echo "$AWK" >&6; } | |
2936 | else | |
2937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2938 | $as_echo "no" >&6; } | |
2939 | fi | |
2940 | ||
2941 | ||
2942 | test -n "$AWK" && break | |
2943 | done | |
2944 | ||
2945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2946 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2947 | set x ${MAKE-make} | |
2948 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2949 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
2950 | $as_echo_n "(cached) " >&6 | |
2951 | else | |
2952 | cat >conftest.make <<\_ACEOF | |
2953 | SHELL = /bin/sh | |
2954 | all: | |
2955 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2956 | _ACEOF | |
2957 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
2958 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2959 | *@@@%%%=?*=@@@%%%*) | |
2960 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2961 | *) | |
2962 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2963 | esac | |
2964 | rm -f conftest.make | |
2965 | fi | |
2966 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
2967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2968 | $as_echo "yes" >&6; } | |
2969 | SET_MAKE= | |
2970 | else | |
2971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2972 | $as_echo "no" >&6; } | |
2973 | SET_MAKE="MAKE=${MAKE-make}" | |
2974 | fi | |
2975 | ||
2976 | rm -rf .tst 2>/dev/null | |
2977 | mkdir .tst 2>/dev/null | |
2978 | if test -d .tst; then | |
2979 | am__leading_dot=. | |
2980 | else | |
2981 | am__leading_dot=_ | |
2982 | fi | |
2983 | rmdir .tst 2>/dev/null | |
2984 | ||
2985 | # Check whether --enable-silent-rules was given. | |
2986 | if test "${enable_silent_rules+set}" = set; then : | |
2987 | enableval=$enable_silent_rules; | |
2988 | fi | |
2989 | ||
2990 | case $enable_silent_rules in # ((( | |
2991 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2992 | no) AM_DEFAULT_VERBOSITY=1;; | |
2993 | *) AM_DEFAULT_VERBOSITY=1;; | |
2994 | esac | |
2995 | am_make=${MAKE-make} | |
2996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2997 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2998 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2999 | $as_echo_n "(cached) " >&6 | |
3000 | else | |
3001 | if $as_echo 'TRUE=$(BAR$(V)) | |
3002 | BAR0=false | |
3003 | BAR1=true | |
3004 | V=1 | |
3005 | am__doit: | |
3006 | @$(TRUE) | |
3007 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3008 | am_cv_make_support_nested_variables=yes | |
3009 | else | |
3010 | am_cv_make_support_nested_variables=no | |
3011 | fi | |
3012 | fi | |
3013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3014 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3015 | if test $am_cv_make_support_nested_variables = yes; then | |
3016 | AM_V='$(V)' | |
3017 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3018 | else | |
3019 | AM_V=$AM_DEFAULT_VERBOSITY | |
3020 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3021 | fi | |
3022 | AM_BACKSLASH='\' | |
3023 | ||
3024 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
3025 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3026 | # is not polluted with repeated "-I." | |
3027 | am__isrc=' -I$(srcdir)' | |
3028 | # test to see if srcdir already configured | |
3029 | if test -f $srcdir/config.status; then | |
3030 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3031 | fi | |
3032 | fi | |
3033 | ||
3034 | # test whether we have cygpath | |
3035 | if test -z "$CYGPATH_W"; then | |
3036 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3037 | CYGPATH_W='cygpath -w' | |
3038 | else | |
3039 | CYGPATH_W=echo | |
3040 | fi | |
3041 | fi | |
3042 | ||
3043 | ||
3044 | # Define the identity of the package. | |
3045 | PACKAGE='cycript' | |
3046 | VERSION='0.9' | |
3047 | ||
3048 | ||
3049 | cat >>confdefs.h <<_ACEOF | |
3050 | #define PACKAGE "$PACKAGE" | |
3051 | _ACEOF | |
3052 | ||
3053 | ||
3054 | cat >>confdefs.h <<_ACEOF | |
3055 | #define VERSION "$VERSION" | |
3056 | _ACEOF | |
3057 | ||
3058 | # Some tools Automake needs. | |
3059 | ||
3060 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3061 | ||
3062 | ||
3063 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3064 | ||
3065 | ||
3066 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3067 | ||
3068 | ||
3069 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3070 | ||
3071 | ||
3072 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3073 | ||
3074 | # For better backward compatibility. To be removed once Automake 1.9.x | |
3075 | # dies out for good. For more background, see: | |
3076 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3077 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3078 | mkdir_p='$(MKDIR_P)' | |
3079 | ||
3080 | # We need awk for the "check" target. The system "awk" is bad on | |
3081 | # some platforms. | |
3082 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
3083 | # in the wild :-( We should find a proper way to deprecate it ... | |
3084 | AMTAR='$${TAR-tar}' | |
3085 | ||
a93f15c0 JF |
3086 | |
3087 | # We'll loop over all known methods to create a tar archive until one works. | |
3088 | _am_tools='gnutar pax cpio none' | |
3089 | ||
66170b30 JF |
3090 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
3091 | ||
3092 | ||
3093 | ||
3094 | ||
3095 | ||
66170b30 | 3096 | |
a93f15c0 JF |
3097 | # POSIX will say in a future version that running "rm -f" with no argument |
3098 | # is OK; and we want to be able to make that assumption in our Makefile | |
3099 | # recipes. So use an aggressive probe to check that the usage we want is | |
3100 | # actually supported "in the wild" to an acceptable degree. | |
3101 | # See automake bug#10828. | |
3102 | # To make any issue more visible, cause the running configure to be aborted | |
3103 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3104 | # user can still override this though. | |
3105 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3106 | cat >&2 <<'END' | |
3107 | Oops! | |
3108 | ||
3109 | Your 'rm' program seems unable to run without file operands specified | |
3110 | on the command line, even when the '-f' option is present. This is contrary | |
3111 | to the behaviour of most rm programs out there, and not conforming with | |
3112 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3113 | ||
3114 | Please tell bug-automake@gnu.org about your system, including the value | |
3115 | of your $PATH and any error possibly output before this message. This | |
3116 | can help us improve future automake versions. | |
3117 | ||
3118 | END | |
3119 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3120 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3121 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3122 | echo >&2 | |
3123 | else | |
3124 | cat >&2 <<'END' | |
3125 | Aborting the configuration process, to ensure you take notice of the issue. | |
3126 | ||
3127 | You can download and install GNU coreutils to get an 'rm' implementation | |
3128 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3129 | ||
3130 | If you want to complete the configuration process using your problematic | |
3131 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3132 | to "yes", and re-run configure. | |
3133 | ||
3134 | END | |
3135 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3136 | fi | |
3137 | fi | |
3138 | ||
babf7fe8 JF |
3139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
3140 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
3141 | # Check whether --enable-maintainer-mode was given. | |
3142 | if test "${enable_maintainer_mode+set}" = set; then : | |
3143 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3144 | else | |
3145 | USE_MAINTAINER_MODE=no | |
3146 | fi | |
3147 | ||
3148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
3149 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3150 | if test $USE_MAINTAINER_MODE = yes; then | |
3151 | MAINTAINER_MODE_TRUE= | |
3152 | MAINTAINER_MODE_FALSE='#' | |
3153 | else | |
3154 | MAINTAINER_MODE_TRUE='#' | |
3155 | MAINTAINER_MODE_FALSE= | |
3156 | fi | |
3157 | ||
3158 | MAINT=$MAINTAINER_MODE_TRUE | |
3159 | ||
3160 | ||
3161 | ||
a93f15c0 JF |
3162 | ac_ext=c |
3163 | ac_cpp='$CPP $CPPFLAGS' | |
3164 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3165 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3166 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3167 | if test -n "$ac_tool_prefix"; then | |
3168 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3169 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
dbadc56a DWT |
3170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3171 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 3172 | if ${ac_cv_prog_CC+:} false; then : |
dbadc56a DWT |
3173 | $as_echo_n "(cached) " >&6 |
3174 | else | |
a93f15c0 JF |
3175 | if test -n "$CC"; then |
3176 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
dbadc56a DWT |
3177 | else |
3178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3179 | for as_dir in $PATH | |
3180 | do | |
3181 | IFS=$as_save_IFS | |
3182 | test -z "$as_dir" && as_dir=. | |
3183 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 3184 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a93f15c0 | 3185 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
dbadc56a DWT |
3186 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3187 | break 2 | |
3188 | fi | |
3189 | done | |
3190 | done | |
3191 | IFS=$as_save_IFS | |
3192 | ||
3193 | fi | |
3194 | fi | |
a93f15c0 JF |
3195 | CC=$ac_cv_prog_CC |
3196 | if test -n "$CC"; then | |
3197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3198 | $as_echo "$CC" >&6; } | |
35fa52c0 DWT |
3199 | else |
3200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3201 | $as_echo "no" >&6; } | |
3202 | fi | |
3203 | ||
3204 | ||
35fa52c0 | 3205 | fi |
a93f15c0 JF |
3206 | if test -z "$ac_cv_prog_CC"; then |
3207 | ac_ct_CC=$CC | |
3208 | # Extract the first word of "gcc", so it can be a program name with args. | |
3209 | set dummy gcc; ac_word=$2 | |
35fa52c0 DWT |
3210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3211 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 3212 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
35fa52c0 DWT |
3213 | $as_echo_n "(cached) " >&6 |
3214 | else | |
a93f15c0 JF |
3215 | if test -n "$ac_ct_CC"; then |
3216 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
35fa52c0 DWT |
3217 | else |
3218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3219 | for as_dir in $PATH | |
3220 | do | |
3221 | IFS=$as_save_IFS | |
3222 | test -z "$as_dir" && as_dir=. | |
3223 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 3224 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a93f15c0 | 3225 | ac_cv_prog_ac_ct_CC="gcc" |
35fa52c0 DWT |
3226 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3227 | break 2 | |
3228 | fi | |
3229 | done | |
3230 | done | |
3231 | IFS=$as_save_IFS | |
3232 | ||
3233 | fi | |
3234 | fi | |
a93f15c0 JF |
3235 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3236 | if test -n "$ac_ct_CC"; then | |
3237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3238 | $as_echo "$ac_ct_CC" >&6; } | |
35fa52c0 DWT |
3239 | else |
3240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3241 | $as_echo "no" >&6; } | |
3242 | fi | |
3243 | ||
a93f15c0 JF |
3244 | if test "x$ac_ct_CC" = x; then |
3245 | CC="" | |
35fa52c0 DWT |
3246 | else |
3247 | case $cross_compiling:$ac_tool_warned in | |
3248 | yes:) | |
3249 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3250 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3251 | ac_tool_warned=yes ;; | |
3252 | esac | |
a93f15c0 | 3253 | CC=$ac_ct_CC |
35fa52c0 | 3254 | fi |
a93f15c0 JF |
3255 | else |
3256 | CC="$ac_cv_prog_CC" | |
35fa52c0 DWT |
3257 | fi |
3258 | ||
a93f15c0 JF |
3259 | if test -z "$CC"; then |
3260 | if test -n "$ac_tool_prefix"; then | |
3261 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3262 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3264 | $as_echo_n "checking for $ac_word... " >&6; } | |
3265 | if ${ac_cv_prog_CC+:} false; then : | |
3266 | $as_echo_n "(cached) " >&6 | |
3267 | else | |
3268 | if test -n "$CC"; then | |
3269 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3270 | else | |
3271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3272 | for as_dir in $PATH | |
3273 | do | |
3274 | IFS=$as_save_IFS | |
3275 | test -z "$as_dir" && as_dir=. | |
3276 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3277 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3278 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3279 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3280 | break 2 | |
a243b558 | 3281 | fi |
35fa52c0 | 3282 | done |
a93f15c0 JF |
3283 | done |
3284 | IFS=$as_save_IFS | |
35fa52c0 | 3285 | |
a93f15c0 JF |
3286 | fi |
3287 | fi | |
3288 | CC=$ac_cv_prog_CC | |
3289 | if test -n "$CC"; then | |
3290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3291 | $as_echo "$CC" >&6; } | |
3292 | else | |
3293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3294 | $as_echo "no" >&6; } | |
3295 | fi | |
35fa52c0 | 3296 | |
35fa52c0 | 3297 | |
a93f15c0 JF |
3298 | fi |
3299 | fi | |
3300 | if test -z "$CC"; then | |
3301 | # Extract the first word of "cc", so it can be a program name with args. | |
3302 | set dummy cc; ac_word=$2 | |
3303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3304 | $as_echo_n "checking for $ac_word... " >&6; } | |
3305 | if ${ac_cv_prog_CC+:} false; then : | |
3306 | $as_echo_n "(cached) " >&6 | |
3307 | else | |
3308 | if test -n "$CC"; then | |
3309 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3310 | else | |
3311 | ac_prog_rejected=no | |
3312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3313 | for as_dir in $PATH | |
35fa52c0 | 3314 | do |
a93f15c0 JF |
3315 | IFS=$as_save_IFS |
3316 | test -z "$as_dir" && as_dir=. | |
3317 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3318 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3319 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3320 | ac_prog_rejected=yes | |
3321 | continue | |
3322 | fi | |
3323 | ac_cv_prog_CC="cc" | |
3324 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3325 | break 2 | |
3326 | fi | |
3327 | done | |
3328 | done | |
3329 | IFS=$as_save_IFS | |
3330 | ||
3331 | if test $ac_prog_rejected = yes; then | |
3332 | # We found a bogon in the path, so make sure we never use it. | |
3333 | set dummy $ac_cv_prog_CC | |
3334 | shift | |
3335 | if test $# != 0; then | |
3336 | # We chose a different compiler from the bogus one. | |
3337 | # However, it has the same basename, so the bogon will be chosen | |
3338 | # first if we set CC to just the basename; use the full file name. | |
3339 | shift | |
3340 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3341 | fi | |
3342 | fi | |
3343 | fi | |
3344 | fi | |
3345 | CC=$ac_cv_prog_CC | |
3346 | if test -n "$CC"; then | |
3347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3348 | $as_echo "$CC" >&6; } | |
3349 | else | |
3350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3351 | $as_echo "no" >&6; } | |
3352 | fi | |
3353 | ||
3354 | ||
3355 | fi | |
3356 | if test -z "$CC"; then | |
3357 | if test -n "$ac_tool_prefix"; then | |
3358 | for ac_prog in cl.exe | |
3359 | do | |
3360 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3361 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3363 | $as_echo_n "checking for $ac_word... " >&6; } | |
3364 | if ${ac_cv_prog_CC+:} false; then : | |
3365 | $as_echo_n "(cached) " >&6 | |
3366 | else | |
3367 | if test -n "$CC"; then | |
3368 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3369 | else | |
3370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3371 | for as_dir in $PATH | |
3372 | do | |
3373 | IFS=$as_save_IFS | |
3374 | test -z "$as_dir" && as_dir=. | |
3375 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3376 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3377 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3378 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3379 | break 2 | |
3380 | fi | |
3381 | done | |
3382 | done | |
3383 | IFS=$as_save_IFS | |
3384 | ||
3385 | fi | |
3386 | fi | |
3387 | CC=$ac_cv_prog_CC | |
3388 | if test -n "$CC"; then | |
3389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3390 | $as_echo "$CC" >&6; } | |
3391 | else | |
3392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3393 | $as_echo "no" >&6; } | |
3394 | fi | |
3395 | ||
3396 | ||
3397 | test -n "$CC" && break | |
3398 | done | |
3399 | fi | |
3400 | if test -z "$CC"; then | |
3401 | ac_ct_CC=$CC | |
3402 | for ac_prog in cl.exe | |
3403 | do | |
3404 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3405 | set dummy $ac_prog; ac_word=$2 | |
3406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3407 | $as_echo_n "checking for $ac_word... " >&6; } | |
3408 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3409 | $as_echo_n "(cached) " >&6 | |
3410 | else | |
3411 | if test -n "$ac_ct_CC"; then | |
3412 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3413 | else | |
3414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3415 | for as_dir in $PATH | |
3416 | do | |
3417 | IFS=$as_save_IFS | |
3418 | test -z "$as_dir" && as_dir=. | |
3419 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3420 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3421 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3422 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3423 | break 2 | |
3424 | fi | |
3425 | done | |
3426 | done | |
3427 | IFS=$as_save_IFS | |
3428 | ||
3429 | fi | |
3430 | fi | |
3431 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3432 | if test -n "$ac_ct_CC"; then | |
3433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3434 | $as_echo "$ac_ct_CC" >&6; } | |
3435 | else | |
3436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3437 | $as_echo "no" >&6; } | |
3438 | fi | |
3439 | ||
3440 | ||
3441 | test -n "$ac_ct_CC" && break | |
3442 | done | |
3443 | ||
3444 | if test "x$ac_ct_CC" = x; then | |
3445 | CC="" | |
3446 | else | |
3447 | case $cross_compiling:$ac_tool_warned in | |
3448 | yes:) | |
3449 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3450 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3451 | ac_tool_warned=yes ;; | |
3452 | esac | |
3453 | CC=$ac_ct_CC | |
3454 | fi | |
3455 | fi | |
3456 | ||
3457 | fi | |
3458 | ||
3459 | ||
3460 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3461 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3462 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3463 | See \`config.log' for more details" "$LINENO" 5; } | |
3464 | ||
3465 | # Provide some information about the compiler. | |
3466 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3467 | set X $ac_compile | |
3468 | ac_compiler=$2 | |
3469 | for ac_option in --version -v -V -qversion; do | |
3470 | { { ac_try="$ac_compiler $ac_option >&5" | |
3471 | case "(($ac_try" in | |
3472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3473 | *) ac_try_echo=$ac_try;; | |
3474 | esac | |
3475 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3476 | $as_echo "$ac_try_echo"; } >&5 | |
3477 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3478 | ac_status=$? | |
3479 | if test -s conftest.err; then | |
3480 | sed '10a\ | |
3481 | ... rest of stderr output deleted ... | |
3482 | 10q' conftest.err >conftest.er1 | |
3483 | cat conftest.er1 >&5 | |
3484 | fi | |
3485 | rm -f conftest.er1 conftest.err | |
3486 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3487 | test $ac_status = 0; } | |
3488 | done | |
3489 | ||
3490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3491 | /* end confdefs.h. */ | |
3492 | ||
3493 | int | |
3494 | main () | |
3495 | { | |
3496 | ||
3497 | ; | |
3498 | return 0; | |
3499 | } | |
3500 | _ACEOF | |
3501 | ac_clean_files_save=$ac_clean_files | |
3502 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3503 | # Try to create an executable without -o first, disregard a.out. | |
3504 | # It will help us diagnose broken compilers, and finding out an intuition | |
3505 | # of exeext. | |
3506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3507 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3508 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3509 | ||
3510 | # The possible output files: | |
3511 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3512 | ||
3513 | ac_rmfiles= | |
3514 | for ac_file in $ac_files | |
3515 | do | |
3516 | case $ac_file in | |
3517 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3518 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3519 | esac | |
3520 | done | |
35fa52c0 DWT |
3521 | rm -f $ac_rmfiles |
3522 | ||
3523 | if { { ac_try="$ac_link_default" | |
3524 | case "(($ac_try" in | |
3525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3526 | *) ac_try_echo=$ac_try;; | |
3527 | esac | |
3528 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3529 | $as_echo "$ac_try_echo"; } >&5 | |
3530 | (eval "$ac_link_default") 2>&5 | |
3531 | ac_status=$? | |
3532 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3533 | test $ac_status = 0; }; then : | |
3534 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3535 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3536 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3537 | # so that the user can short-circuit this test for compilers unknown to | |
3538 | # Autoconf. | |
3539 | for ac_file in $ac_files '' | |
3540 | do | |
3541 | test -f "$ac_file" || continue | |
3542 | case $ac_file in | |
3543 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3544 | ;; | |
3545 | [ab].out ) | |
3546 | # We found the default executable, but exeext='' is most | |
3547 | # certainly right. | |
3548 | break;; | |
3549 | *.* ) | |
3550 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3551 | then :; else | |
3552 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3553 | fi | |
3554 | # We set ac_cv_exeext here because the later test for it is not | |
3555 | # safe: cross compilers may not add the suffix if given an `-o' | |
3556 | # argument, so we may need to know it at that point already. | |
3557 | # Even if this section looks crufty: it has the advantage of | |
3558 | # actually working. | |
3559 | break;; | |
3560 | * ) | |
3561 | break;; | |
3562 | esac | |
3563 | done | |
3564 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3565 | ||
3566 | else | |
3567 | ac_file='' | |
3568 | fi | |
35fa52c0 | 3569 | if test -z "$ac_file"; then : |
9c60689e DWT |
3570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3571 | $as_echo "no" >&6; } | |
3572 | $as_echo "$as_me: failed program was:" >&5 | |
35fa52c0 DWT |
3573 | sed 's/^/| /' conftest.$ac_ext >&5 |
3574 | ||
3575 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3576 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
a93f15c0 | 3577 | as_fn_error 77 "C compiler cannot create executables |
ee134472 | 3578 | See \`config.log' for more details" "$LINENO" 5; } |
9c60689e DWT |
3579 | else |
3580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3581 | $as_echo "yes" >&6; } | |
35fa52c0 | 3582 | fi |
a93f15c0 JF |
3583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3584 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
9c60689e DWT |
3585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
3586 | $as_echo "$ac_file" >&6; } | |
35fa52c0 DWT |
3587 | ac_exeext=$ac_cv_exeext |
3588 | ||
9c60689e | 3589 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
35fa52c0 | 3590 | ac_clean_files=$ac_clean_files_save |
35fa52c0 DWT |
3591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3592 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3593 | if { { ac_try="$ac_link" | |
3594 | case "(($ac_try" in | |
3595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3596 | *) ac_try_echo=$ac_try;; | |
3597 | esac | |
3598 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3599 | $as_echo "$ac_try_echo"; } >&5 | |
3600 | (eval "$ac_link") 2>&5 | |
3601 | ac_status=$? | |
3602 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3603 | test $ac_status = 0; }; then : | |
3604 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3605 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3606 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3607 | # `rm'. | |
3608 | for ac_file in conftest.exe conftest conftest.*; do | |
3609 | test -f "$ac_file" || continue | |
3610 | case $ac_file in | |
3611 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3612 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3613 | break;; | |
3614 | * ) break;; | |
3615 | esac | |
3616 | done | |
3617 | else | |
3618 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3619 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12833ad8 | 3620 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
ee134472 | 3621 | See \`config.log' for more details" "$LINENO" 5; } |
35fa52c0 | 3622 | fi |
9c60689e | 3623 | rm -f conftest conftest$ac_cv_exeext |
35fa52c0 DWT |
3624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3625 | $as_echo "$ac_cv_exeext" >&6; } | |
3626 | ||
3627 | rm -f conftest.$ac_ext | |
3628 | EXEEXT=$ac_cv_exeext | |
3629 | ac_exeext=$EXEEXT | |
9c60689e DWT |
3630 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3631 | /* end confdefs.h. */ | |
3632 | #include <stdio.h> | |
3633 | int | |
3634 | main () | |
3635 | { | |
3636 | FILE *f = fopen ("conftest.out", "w"); | |
3637 | return ferror (f) || fclose (f) != 0; | |
3638 | ||
3639 | ; | |
3640 | return 0; | |
3641 | } | |
3642 | _ACEOF | |
3643 | ac_clean_files="$ac_clean_files conftest.out" | |
3644 | # Check that the compiler produces executables we can run. If not, either | |
3645 | # the compiler is broken, or we cross compile. | |
3646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3647 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3648 | if test "$cross_compiling" != yes; then | |
3649 | { { ac_try="$ac_link" | |
3650 | case "(($ac_try" in | |
3651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3652 | *) ac_try_echo=$ac_try;; | |
3653 | esac | |
3654 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3655 | $as_echo "$ac_try_echo"; } >&5 | |
3656 | (eval "$ac_link") 2>&5 | |
3657 | ac_status=$? | |
3658 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3659 | test $ac_status = 0; } | |
3660 | if { ac_try='./conftest$ac_cv_exeext' | |
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_try") 2>&5 | |
3668 | ac_status=$? | |
3669 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3670 | test $ac_status = 0; }; }; then | |
3671 | cross_compiling=no | |
3672 | else | |
3673 | if test "$cross_compiling" = maybe; then | |
3674 | cross_compiling=yes | |
3675 | else | |
3676 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3677 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
a93f15c0 | 3678 | as_fn_error $? "cannot run C compiled programs. |
9c60689e | 3679 | If you meant to cross compile, use \`--host'. |
ee134472 | 3680 | See \`config.log' for more details" "$LINENO" 5; } |
9c60689e DWT |
3681 | fi |
3682 | fi | |
3683 | fi | |
3684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3685 | $as_echo "$cross_compiling" >&6; } | |
3686 | ||
3687 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3688 | ac_clean_files=$ac_clean_files_save | |
35fa52c0 DWT |
3689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3690 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ee134472 | 3691 | if ${ac_cv_objext+:} false; then : |
35fa52c0 DWT |
3692 | $as_echo_n "(cached) " >&6 |
3693 | else | |
3694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3695 | /* end confdefs.h. */ | |
3696 | ||
3697 | int | |
3698 | main () | |
3699 | { | |
3700 | ||
3701 | ; | |
3702 | return 0; | |
3703 | } | |
3704 | _ACEOF | |
3705 | rm -f conftest.o conftest.obj | |
3706 | if { { ac_try="$ac_compile" | |
3707 | case "(($ac_try" in | |
3708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3709 | *) ac_try_echo=$ac_try;; | |
3710 | esac | |
3711 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3712 | $as_echo "$ac_try_echo"; } >&5 | |
3713 | (eval "$ac_compile") 2>&5 | |
3714 | ac_status=$? | |
3715 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3716 | test $ac_status = 0; }; then : | |
3717 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3718 | test -f "$ac_file" || continue; | |
3719 | case $ac_file in | |
3720 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3721 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3722 | break;; | |
3723 | esac | |
3724 | done | |
3725 | else | |
3726 | $as_echo "$as_me: failed program was:" >&5 | |
3727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3728 | ||
3729 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3730 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12833ad8 | 3731 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
ee134472 | 3732 | See \`config.log' for more details" "$LINENO" 5; } |
35fa52c0 DWT |
3733 | fi |
3734 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3735 | fi | |
3736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3737 | $as_echo "$ac_cv_objext" >&6; } | |
3738 | OBJEXT=$ac_cv_objext | |
3739 | ac_objext=$OBJEXT | |
a93f15c0 JF |
3740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3741 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3742 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
35fa52c0 DWT |
3743 | $as_echo_n "(cached) " >&6 |
3744 | else | |
3745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3746 | /* end confdefs.h. */ | |
3747 | ||
3748 | int | |
3749 | main () | |
3750 | { | |
3751 | #ifndef __GNUC__ | |
3752 | choke me | |
3753 | #endif | |
3754 | ||
3755 | ; | |
3756 | return 0; | |
3757 | } | |
3758 | _ACEOF | |
a93f15c0 | 3759 | if ac_fn_c_try_compile "$LINENO"; then : |
35fa52c0 DWT |
3760 | ac_compiler_gnu=yes |
3761 | else | |
3762 | ac_compiler_gnu=no | |
3763 | fi | |
3764 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a93f15c0 | 3765 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
35fa52c0 DWT |
3766 | |
3767 | fi | |
a93f15c0 JF |
3768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3769 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
35fa52c0 | 3770 | if test $ac_compiler_gnu = yes; then |
a93f15c0 | 3771 | GCC=yes |
35fa52c0 | 3772 | else |
a93f15c0 | 3773 | GCC= |
35fa52c0 | 3774 | fi |
a93f15c0 JF |
3775 | ac_test_CFLAGS=${CFLAGS+set} |
3776 | ac_save_CFLAGS=$CFLAGS | |
3777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3778 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3779 | if ${ac_cv_prog_cc_g+:} false; then : | |
35fa52c0 DWT |
3780 | $as_echo_n "(cached) " >&6 |
3781 | else | |
a93f15c0 JF |
3782 | ac_save_c_werror_flag=$ac_c_werror_flag |
3783 | ac_c_werror_flag=yes | |
3784 | ac_cv_prog_cc_g=no | |
3785 | CFLAGS="-g" | |
35fa52c0 DWT |
3786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3787 | /* end confdefs.h. */ | |
3788 | ||
3789 | int | |
3790 | main () | |
3791 | { | |
3792 | ||
3793 | ; | |
3794 | return 0; | |
3795 | } | |
3796 | _ACEOF | |
a93f15c0 JF |
3797 | if ac_fn_c_try_compile "$LINENO"; then : |
3798 | ac_cv_prog_cc_g=yes | |
35fa52c0 | 3799 | else |
a93f15c0 | 3800 | CFLAGS="" |
35fa52c0 DWT |
3801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3802 | /* end confdefs.h. */ | |
3803 | ||
3804 | int | |
3805 | main () | |
3806 | { | |
3807 | ||
3808 | ; | |
3809 | return 0; | |
3810 | } | |
3811 | _ACEOF | |
a93f15c0 | 3812 | if ac_fn_c_try_compile "$LINENO"; then : |
35fa52c0 DWT |
3813 | |
3814 | else | |
a93f15c0 JF |
3815 | ac_c_werror_flag=$ac_save_c_werror_flag |
3816 | CFLAGS="-g" | |
35fa52c0 DWT |
3817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3818 | /* end confdefs.h. */ | |
3819 | ||
3820 | int | |
3821 | main () | |
3822 | { | |
3823 | ||
3824 | ; | |
3825 | return 0; | |
3826 | } | |
3827 | _ACEOF | |
a93f15c0 JF |
3828 | if ac_fn_c_try_compile "$LINENO"; then : |
3829 | ac_cv_prog_cc_g=yes | |
35fa52c0 DWT |
3830 | fi |
3831 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3832 | fi | |
3833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3834 | fi | |
3835 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a93f15c0 | 3836 | ac_c_werror_flag=$ac_save_c_werror_flag |
35fa52c0 | 3837 | fi |
a93f15c0 JF |
3838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3839 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3840 | if test "$ac_test_CFLAGS" = set; then | |
3841 | CFLAGS=$ac_save_CFLAGS | |
3842 | elif test $ac_cv_prog_cc_g = yes; then | |
3843 | if test "$GCC" = yes; then | |
3844 | CFLAGS="-g -O2" | |
35fa52c0 | 3845 | else |
a93f15c0 | 3846 | CFLAGS="-g" |
35fa52c0 DWT |
3847 | fi |
3848 | else | |
a93f15c0 JF |
3849 | if test "$GCC" = yes; then |
3850 | CFLAGS="-O2" | |
35fa52c0 | 3851 | else |
a93f15c0 | 3852 | CFLAGS= |
35fa52c0 DWT |
3853 | fi |
3854 | fi | |
a93f15c0 JF |
3855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3856 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3857 | if ${ac_cv_prog_cc_c89+:} false; then : | |
3858 | $as_echo_n "(cached) " >&6 | |
3859 | else | |
3860 | ac_cv_prog_cc_c89=no | |
3861 | ac_save_CC=$CC | |
3862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3863 | /* end confdefs.h. */ | |
3864 | #include <stdarg.h> | |
3865 | #include <stdio.h> | |
3866 | struct stat; | |
3867 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3868 | struct buf { int x; }; | |
3869 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3870 | static char *e (p, i) | |
3871 | char **p; | |
3872 | int i; | |
3873 | { | |
3874 | return p[i]; | |
3875 | } | |
3876 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3877 | { | |
3878 | char *s; | |
3879 | va_list v; | |
3880 | va_start (v,p); | |
3881 | s = g (p, va_arg (v,int)); | |
3882 | va_end (v); | |
3883 | return s; | |
3884 | } | |
3885 | ||
3886 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3887 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3888 | These don't provoke an error unfortunately, instead are silently treated | |
3889 | as 'x'. The following induces an error, until -std is added to get | |
3890 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3891 | array size at least. It's necessary to write '\x00'==0 to get something | |
3892 | that's true only with -std. */ | |
3893 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3894 | ||
3895 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3896 | inside strings and character constants. */ | |
3897 | #define FOO(x) 'x' | |
3898 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3899 | ||
3900 | int test (int i, double x); | |
3901 | struct s1 {int (*f) (int a);}; | |
3902 | struct s2 {int (*f) (double a);}; | |
3903 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3904 | int argc; | |
3905 | char **argv; | |
3906 | int | |
3907 | main () | |
3908 | { | |
3909 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3910 | ; | |
3911 | return 0; | |
3912 | } | |
3913 | _ACEOF | |
3914 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3915 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3916 | do | |
3917 | CC="$ac_save_CC $ac_arg" | |
3918 | if ac_fn_c_try_compile "$LINENO"; then : | |
3919 | ac_cv_prog_cc_c89=$ac_arg | |
3920 | fi | |
3921 | rm -f core conftest.err conftest.$ac_objext | |
3922 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3923 | done | |
3924 | rm -f conftest.$ac_ext | |
3925 | CC=$ac_save_CC | |
3926 | ||
3927 | fi | |
3928 | # AC_CACHE_VAL | |
3929 | case "x$ac_cv_prog_cc_c89" in | |
3930 | x) | |
3931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3932 | $as_echo "none needed" >&6; } ;; | |
3933 | xno) | |
3934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3935 | $as_echo "unsupported" >&6; } ;; | |
3936 | *) | |
3937 | CC="$CC $ac_cv_prog_cc_c89" | |
3938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3939 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3940 | esac | |
3941 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3942 | ||
3943 | fi | |
3944 | ||
3945 | ac_ext=c | |
3946 | ac_cpp='$CPP $CPPFLAGS' | |
3947 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3948 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3949 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3950 | ||
3951 | ac_ext=c | |
3952 | ac_cpp='$CPP $CPPFLAGS' | |
3953 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3954 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3955 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3957 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3958 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3959 | $as_echo_n "(cached) " >&6 | |
3960 | else | |
3961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3962 | /* end confdefs.h. */ | |
3963 | ||
3964 | int | |
3965 | main () | |
3966 | { | |
3967 | ||
3968 | ; | |
3969 | return 0; | |
3970 | } | |
3971 | _ACEOF | |
3972 | # Make sure it works both with $CC and with simple cc. | |
3973 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3974 | # compilers refuse to overwrite an existing .o file with -o, | |
3975 | # though they will create one. | |
3976 | am_cv_prog_cc_c_o=yes | |
3977 | for am_i in 1 2; do | |
3978 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3979 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3980 | ac_status=$? | |
3981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3982 | (exit $ac_status); } \ | |
3983 | && test -f conftest2.$ac_objext; then | |
3984 | : OK | |
3985 | else | |
3986 | am_cv_prog_cc_c_o=no | |
3987 | break | |
3988 | fi | |
3989 | done | |
3990 | rm -f core conftest* | |
3991 | unset am_i | |
3992 | fi | |
3993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3994 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3995 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3996 | # Losing compiler, so override with the script. | |
3997 | # FIXME: It is wrong to rewrite CC. | |
3998 | # But if we don't then we get into trouble of one sort or another. | |
3999 | # A longer-term fix would be to have automake use am__CC in this case, | |
4000 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4001 | CC="$am_aux_dir/compile $CC" | |
4002 | fi | |
a243b558 JF |
4003 | ac_ext=c |
4004 | ac_cpp='$CPP $CPPFLAGS' | |
4005 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4006 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4007 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
a93f15c0 | 4008 | |
a243b558 | 4009 | DEPDIR="${am__leading_dot}deps" |
35fa52c0 | 4010 | |
a243b558 | 4011 | ac_config_commands="$ac_config_commands depfiles" |
35fa52c0 | 4012 | |
35fa52c0 | 4013 | |
a243b558 JF |
4014 | am_make=${MAKE-make} |
4015 | cat > confinc << 'END' | |
4016 | am__doit: | |
4017 | @echo this is the am__doit target | |
4018 | .PHONY: am__doit | |
4019 | END | |
4020 | # If we don't find an include directive, just comment out the code. | |
4021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4022 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4023 | am__include="#" | |
4024 | am__quote= | |
4025 | _am_result=none | |
4026 | # First try GNU make style include. | |
4027 | echo "include confinc" > confmf | |
4028 | # Ignore all kinds of additional output from 'make'. | |
4029 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4030 | *the\ am__doit\ target*) | |
4031 | am__include=include | |
4032 | am__quote= | |
4033 | _am_result=GNU | |
4034 | ;; | |
4035 | esac | |
4036 | # Now try BSD make style include. | |
4037 | if test "$am__include" = "#"; then | |
4038 | echo '.include "confinc"' > confmf | |
4039 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4040 | *the\ am__doit\ target*) | |
4041 | am__include=.include | |
4042 | am__quote="\"" | |
4043 | _am_result=BSD | |
4044 | ;; | |
4045 | esac | |
35fa52c0 | 4046 | fi |
35fa52c0 | 4047 | |
a243b558 JF |
4048 | |
4049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
4050 | $as_echo "$_am_result" >&6; } | |
4051 | rm -f confinc confmf | |
4052 | ||
4053 | # Check whether --enable-dependency-tracking was given. | |
4054 | if test "${enable_dependency_tracking+set}" = set; then : | |
4055 | enableval=$enable_dependency_tracking; | |
35fa52c0 | 4056 | fi |
35fa52c0 | 4057 | |
a243b558 JF |
4058 | if test "x$enable_dependency_tracking" != xno; then |
4059 | am_depcomp="$ac_aux_dir/depcomp" | |
4060 | AMDEPBACKSLASH='\' | |
4061 | am__nodep='_no' | |
4062 | fi | |
4063 | if test "x$enable_dependency_tracking" != xno; then | |
4064 | AMDEP_TRUE= | |
4065 | AMDEP_FALSE='#' | |
4066 | else | |
4067 | AMDEP_TRUE='#' | |
4068 | AMDEP_FALSE= | |
35fa52c0 DWT |
4069 | fi |
4070 | ||
35fa52c0 | 4071 | |
a243b558 | 4072 | |
a93f15c0 | 4073 | depcc="$CC" am_compiler_list= |
66170b30 JF |
4074 | |
4075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4076 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
a93f15c0 | 4077 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
66170b30 JF |
4078 | $as_echo_n "(cached) " >&6 |
4079 | else | |
4080 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4081 | # We make a subdir and do the tests there. Otherwise we can end up | |
4082 | # making bogus files that we don't know about and never remove. For | |
4083 | # instance it was reported that on HP-UX the gcc test will end up | |
4084 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4085 | # in D". | |
4086 | rm -rf conftest.dir | |
4087 | mkdir conftest.dir | |
4088 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4089 | # using a relative directory. | |
4090 | cp "$am_depcomp" conftest.dir | |
4091 | cd conftest.dir | |
4092 | # We will build objects and dependencies in a subdirectory because | |
4093 | # it helps to detect inapplicable dependency modes. For instance | |
4094 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4095 | # side effect of compilation, but ICC will put the dependencies in | |
4096 | # the current directory while Tru64 will put them in the object | |
4097 | # directory. | |
4098 | mkdir sub | |
4099 | ||
a93f15c0 | 4100 | am_cv_CC_dependencies_compiler_type=none |
66170b30 JF |
4101 | if test "$am_compiler_list" = ""; then |
4102 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4103 | fi | |
4104 | am__universal=false | |
4105 | case " $depcc " in #( | |
4106 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4107 | esac | |
4108 | ||
4109 | for depmode in $am_compiler_list; do | |
4110 | # Setup a source with many dependencies, because some compilers | |
4111 | # like to wrap large dependency lists on column 80 (with \), and | |
4112 | # we should not choose a depcomp mode which is confused by this. | |
4113 | # | |
4114 | # We need to recreate these files for each test, as the compiler may | |
4115 | # overwrite some of them when testing with obscure command lines. | |
4116 | # This happens at least with the AIX C compiler. | |
4117 | : > sub/conftest.c | |
4118 | for i in 1 2 3 4 5 6; do | |
4119 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4120 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4121 | # Solaris 10 /bin/sh. | |
4122 | echo '/* dummy */' > sub/conftst$i.h | |
4123 | done | |
4124 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4125 | ||
4126 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4127 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4128 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4129 | # versions had trouble with output in subdirs. | |
4130 | am__obj=sub/conftest.${OBJEXT-o} | |
4131 | am__minus_obj="-o $am__obj" | |
4132 | case $depmode in | |
4133 | gcc) | |
4134 | # This depmode causes a compiler race in universal mode. | |
4135 | test "$am__universal" = false || continue | |
4136 | ;; | |
4137 | nosideeffect) | |
4138 | # After this tag, mechanisms are not by side-effect, so they'll | |
4139 | # only be used when explicitly requested. | |
4140 | if test "x$enable_dependency_tracking" = xyes; then | |
4141 | continue | |
4142 | else | |
4143 | break | |
4144 | fi | |
4145 | ;; | |
4146 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4147 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4148 | # not run yet. These depmodes are late enough in the game, and | |
4149 | # so weak that their functioning should not be impacted. | |
4150 | am__obj=conftest.${OBJEXT-o} | |
4151 | am__minus_obj= | |
4152 | ;; | |
4153 | none) break ;; | |
4154 | esac | |
4155 | if depmode=$depmode \ | |
4156 | source=sub/conftest.c object=$am__obj \ | |
4157 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4158 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4159 | >/dev/null 2>conftest.err && | |
4160 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4161 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4162 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4163 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4164 | # icc doesn't choke on unknown options, it will just issue warnings | |
4165 | # or remarks (even with -Werror). So we grep stderr for any message | |
4166 | # that says an option was ignored or not supported. | |
4167 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4168 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4169 | # The diagnosis changed in icc 8.0: | |
4170 | # icc: Command line remark: option '-MP' not supported | |
4171 | if (grep 'ignoring option' conftest.err || | |
4172 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
a93f15c0 | 4173 | am_cv_CC_dependencies_compiler_type=$depmode |
66170b30 JF |
4174 | break |
4175 | fi | |
4176 | fi | |
4177 | done | |
4178 | ||
4179 | cd .. | |
4180 | rm -rf conftest.dir | |
4181 | else | |
a93f15c0 | 4182 | am_cv_CC_dependencies_compiler_type=none |
66170b30 JF |
4183 | fi |
4184 | ||
4185 | fi | |
a93f15c0 JF |
4186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4187 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4188 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
66170b30 JF |
4189 | |
4190 | if | |
4191 | test "x$enable_dependency_tracking" != xno \ | |
a93f15c0 JF |
4192 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
4193 | am__fastdepCC_TRUE= | |
4194 | am__fastdepCC_FALSE='#' | |
66170b30 | 4195 | else |
a93f15c0 JF |
4196 | am__fastdepCC_TRUE='#' |
4197 | am__fastdepCC_FALSE= | |
66170b30 JF |
4198 | fi |
4199 | ||
4200 | ||
a93f15c0 JF |
4201 | ac_ext=cpp |
4202 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4203 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4204 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4205 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4206 | if test -z "$CXX"; then | |
4207 | if test -n "$CCC"; then | |
4208 | CXX=$CCC | |
4209 | else | |
4210 | if test -n "$ac_tool_prefix"; then | |
4211 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
a243b558 JF |
4212 | do |
4213 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4214 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4216 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 4217 | if ${ac_cv_prog_CXX+:} false; then : |
35fa52c0 DWT |
4218 | $as_echo_n "(cached) " >&6 |
4219 | else | |
a93f15c0 JF |
4220 | if test -n "$CXX"; then |
4221 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
a243b558 JF |
4222 | else |
4223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4224 | for as_dir in $PATH | |
4225 | do | |
35fa52c0 DWT |
4226 | IFS=$as_save_IFS |
4227 | test -z "$as_dir" && as_dir=. | |
4228 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a243b558 | 4229 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a93f15c0 | 4230 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
a243b558 JF |
4231 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4232 | break 2 | |
4233 | fi | |
4234 | done | |
9c60689e DWT |
4235 | done |
4236 | IFS=$as_save_IFS | |
35fa52c0 | 4237 | |
9c60689e | 4238 | fi |
a243b558 | 4239 | fi |
a93f15c0 JF |
4240 | CXX=$ac_cv_prog_CXX |
4241 | if test -n "$CXX"; then | |
4242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
4243 | $as_echo "$CXX" >&6; } | |
a243b558 JF |
4244 | else |
4245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4246 | $as_echo "no" >&6; } | |
4247 | fi | |
35fa52c0 | 4248 | |
35fa52c0 | 4249 | |
a93f15c0 | 4250 | test -n "$CXX" && break |
a243b558 JF |
4251 | done |
4252 | fi | |
a93f15c0 JF |
4253 | if test -z "$CXX"; then |
4254 | ac_ct_CXX=$CXX | |
4255 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
a243b558 JF |
4256 | do |
4257 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4258 | set dummy $ac_prog; ac_word=$2 | |
4259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4260 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 4261 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
9c60689e DWT |
4262 | $as_echo_n "(cached) " >&6 |
4263 | else | |
a93f15c0 JF |
4264 | if test -n "$ac_ct_CXX"; then |
4265 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
a243b558 JF |
4266 | else |
4267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4268 | for as_dir in $PATH | |
9c60689e DWT |
4269 | do |
4270 | IFS=$as_save_IFS | |
4271 | test -z "$as_dir" && as_dir=. | |
9c60689e | 4272 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 | 4273 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a93f15c0 | 4274 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
a243b558 JF |
4275 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4276 | break 2 | |
4277 | fi | |
4278 | done | |
9c60689e DWT |
4279 | done |
4280 | IFS=$as_save_IFS | |
a243b558 JF |
4281 | |
4282 | fi | |
4283 | fi | |
a93f15c0 JF |
4284 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4285 | if test -n "$ac_ct_CXX"; then | |
4286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
4287 | $as_echo "$ac_ct_CXX" >&6; } | |
9c60689e | 4288 | else |
a243b558 JF |
4289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4290 | $as_echo "no" >&6; } | |
9c60689e | 4291 | fi |
6b66678a DWT |
4292 | |
4293 | ||
a93f15c0 | 4294 | test -n "$ac_ct_CXX" && break |
a243b558 | 4295 | done |
6b66678a | 4296 | |
a93f15c0 JF |
4297 | if test "x$ac_ct_CXX" = x; then |
4298 | CXX="g++" | |
a243b558 JF |
4299 | else |
4300 | case $cross_compiling:$ac_tool_warned in | |
4301 | yes:) | |
4302 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4303 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4304 | ac_tool_warned=yes ;; | |
9c60689e | 4305 | esac |
a93f15c0 | 4306 | CXX=$ac_ct_CXX |
9c60689e | 4307 | fi |
9c60689e | 4308 | fi |
6b66678a | 4309 | |
a93f15c0 JF |
4310 | fi |
4311 | fi | |
a243b558 | 4312 | # Provide some information about the compiler. |
a93f15c0 | 4313 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
a243b558 JF |
4314 | set X $ac_compile |
4315 | ac_compiler=$2 | |
4316 | for ac_option in --version -v -V -qversion; do | |
4317 | { { ac_try="$ac_compiler $ac_option >&5" | |
4318 | case "(($ac_try" in | |
4319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4320 | *) ac_try_echo=$ac_try;; | |
4321 | esac | |
4322 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4323 | $as_echo "$ac_try_echo"; } >&5 | |
4324 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4325 | ac_status=$? | |
4326 | if test -s conftest.err; then | |
4327 | sed '10a\ | |
4328 | ... rest of stderr output deleted ... | |
4329 | 10q' conftest.err >conftest.er1 | |
4330 | cat conftest.er1 >&5 | |
4331 | fi | |
4332 | rm -f conftest.er1 conftest.err | |
4333 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4334 | test $ac_status = 0; } | |
4335 | done | |
6b66678a | 4336 | |
a93f15c0 JF |
4337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4338 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4339 | if ${ac_cv_cxx_compiler_gnu+:} false; then : | |
9c60689e | 4340 | $as_echo_n "(cached) " >&6 |
6b66678a | 4341 | else |
a243b558 JF |
4342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4343 | /* end confdefs.h. */ | |
6b66678a | 4344 | |
a243b558 JF |
4345 | int |
4346 | main () | |
4347 | { | |
4348 | #ifndef __GNUC__ | |
4349 | choke me | |
4350 | #endif | |
4351 | ||
4352 | ; | |
4353 | return 0; | |
4354 | } | |
4355 | _ACEOF | |
a93f15c0 | 4356 | if ac_fn_cxx_try_compile "$LINENO"; then : |
a243b558 | 4357 | ac_compiler_gnu=yes |
9c60689e | 4358 | else |
a243b558 | 4359 | ac_compiler_gnu=no |
6b66678a | 4360 | fi |
a243b558 | 4361 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a93f15c0 | 4362 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
6b66678a DWT |
4363 | |
4364 | fi | |
a93f15c0 JF |
4365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4366 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
a243b558 | 4367 | if test $ac_compiler_gnu = yes; then |
a93f15c0 | 4368 | GXX=yes |
a243b558 | 4369 | else |
a93f15c0 | 4370 | GXX= |
a243b558 | 4371 | fi |
a93f15c0 JF |
4372 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4373 | ac_save_CXXFLAGS=$CXXFLAGS | |
4374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
4375 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4376 | if ${ac_cv_prog_cxx_g+:} false; then : | |
a243b558 JF |
4377 | $as_echo_n "(cached) " >&6 |
4378 | else | |
a93f15c0 JF |
4379 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
4380 | ac_cxx_werror_flag=yes | |
4381 | ac_cv_prog_cxx_g=no | |
4382 | CXXFLAGS="-g" | |
a243b558 JF |
4383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4384 | /* end confdefs.h. */ | |
309b0535 | 4385 | |
a243b558 JF |
4386 | int |
4387 | main () | |
4388 | { | |
309b0535 | 4389 | |
a243b558 JF |
4390 | ; |
4391 | return 0; | |
4392 | } | |
4393 | _ACEOF | |
a93f15c0 JF |
4394 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4395 | ac_cv_prog_cxx_g=yes | |
a243b558 | 4396 | else |
a93f15c0 | 4397 | CXXFLAGS="" |
a243b558 JF |
4398 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4399 | /* end confdefs.h. */ | |
309b0535 | 4400 | |
a243b558 JF |
4401 | int |
4402 | main () | |
4403 | { | |
309b0535 | 4404 | |
a243b558 JF |
4405 | ; |
4406 | return 0; | |
4407 | } | |
4408 | _ACEOF | |
a93f15c0 | 4409 | if ac_fn_cxx_try_compile "$LINENO"; then : |
309b0535 | 4410 | |
a243b558 | 4411 | else |
a93f15c0 JF |
4412 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
4413 | CXXFLAGS="-g" | |
a243b558 JF |
4414 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4415 | /* end confdefs.h. */ | |
309b0535 | 4416 | |
a243b558 JF |
4417 | int |
4418 | main () | |
4419 | { | |
309b0535 | 4420 | |
a243b558 JF |
4421 | ; |
4422 | return 0; | |
4423 | } | |
4424 | _ACEOF | |
a93f15c0 JF |
4425 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4426 | ac_cv_prog_cxx_g=yes | |
9c60689e | 4427 | fi |
a243b558 | 4428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9c60689e | 4429 | fi |
a243b558 | 4430 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9c60689e | 4431 | fi |
a243b558 | 4432 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a93f15c0 | 4433 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
9c60689e | 4434 | fi |
a93f15c0 JF |
4435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
4436 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4437 | if test "$ac_test_CXXFLAGS" = set; then | |
4438 | CXXFLAGS=$ac_save_CXXFLAGS | |
4439 | elif test $ac_cv_prog_cxx_g = yes; then | |
4440 | if test "$GXX" = yes; then | |
4441 | CXXFLAGS="-g -O2" | |
a243b558 | 4442 | else |
a93f15c0 | 4443 | CXXFLAGS="-g" |
a243b558 | 4444 | fi |
9c60689e | 4445 | else |
a93f15c0 JF |
4446 | if test "$GXX" = yes; then |
4447 | CXXFLAGS="-O2" | |
a243b558 | 4448 | else |
a93f15c0 | 4449 | CXXFLAGS= |
a243b558 | 4450 | fi |
9c60689e | 4451 | fi |
a243b558 JF |
4452 | ac_ext=c |
4453 | ac_cpp='$CPP $CPPFLAGS' | |
4454 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4455 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4456 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
309b0535 | 4457 | |
a93f15c0 | 4458 | depcc="$CXX" am_compiler_list= |
309b0535 | 4459 | |
a243b558 JF |
4460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4461 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
a93f15c0 | 4462 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
a243b558 JF |
4463 | $as_echo_n "(cached) " >&6 |
4464 | else | |
4465 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4466 | # We make a subdir and do the tests there. Otherwise we can end up | |
4467 | # making bogus files that we don't know about and never remove. For | |
4468 | # instance it was reported that on HP-UX the gcc test will end up | |
4469 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4470 | # in D". | |
4471 | rm -rf conftest.dir | |
4472 | mkdir conftest.dir | |
4473 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4474 | # using a relative directory. | |
4475 | cp "$am_depcomp" conftest.dir | |
4476 | cd conftest.dir | |
4477 | # We will build objects and dependencies in a subdirectory because | |
4478 | # it helps to detect inapplicable dependency modes. For instance | |
4479 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4480 | # side effect of compilation, but ICC will put the dependencies in | |
4481 | # the current directory while Tru64 will put them in the object | |
4482 | # directory. | |
4483 | mkdir sub | |
309b0535 | 4484 | |
a93f15c0 | 4485 | am_cv_CXX_dependencies_compiler_type=none |
a243b558 JF |
4486 | if test "$am_compiler_list" = ""; then |
4487 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4488 | fi | |
4489 | am__universal=false | |
a93f15c0 JF |
4490 | case " $depcc " in #( |
4491 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4492 | esac | |
9c60689e | 4493 | |
a243b558 JF |
4494 | for depmode in $am_compiler_list; do |
4495 | # Setup a source with many dependencies, because some compilers | |
4496 | # like to wrap large dependency lists on column 80 (with \), and | |
4497 | # we should not choose a depcomp mode which is confused by this. | |
4498 | # | |
4499 | # We need to recreate these files for each test, as the compiler may | |
4500 | # overwrite some of them when testing with obscure command lines. | |
4501 | # This happens at least with the AIX C compiler. | |
4502 | : > sub/conftest.c | |
4503 | for i in 1 2 3 4 5 6; do | |
4504 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4505 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4506 | # Solaris 10 /bin/sh. | |
4507 | echo '/* dummy */' > sub/conftst$i.h | |
4508 | done | |
4509 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
9c60689e | 4510 | |
a243b558 JF |
4511 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
4512 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4513 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4514 | # versions had trouble with output in subdirs. | |
4515 | am__obj=sub/conftest.${OBJEXT-o} | |
4516 | am__minus_obj="-o $am__obj" | |
4517 | case $depmode in | |
4518 | gcc) | |
4519 | # This depmode causes a compiler race in universal mode. | |
4520 | test "$am__universal" = false || continue | |
4521 | ;; | |
4522 | nosideeffect) | |
4523 | # After this tag, mechanisms are not by side-effect, so they'll | |
4524 | # only be used when explicitly requested. | |
4525 | if test "x$enable_dependency_tracking" = xyes; then | |
4526 | continue | |
4527 | else | |
4528 | break | |
309b0535 | 4529 | fi |
a243b558 JF |
4530 | ;; |
4531 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4532 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4533 | # not run yet. These depmodes are late enough in the game, and | |
4534 | # so weak that their functioning should not be impacted. | |
4535 | am__obj=conftest.${OBJEXT-o} | |
4536 | am__minus_obj= | |
4537 | ;; | |
4538 | none) break ;; | |
4539 | esac | |
4540 | if depmode=$depmode \ | |
4541 | source=sub/conftest.c object=$am__obj \ | |
4542 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4543 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4544 | >/dev/null 2>conftest.err && | |
4545 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4546 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4547 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4548 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4549 | # icc doesn't choke on unknown options, it will just issue warnings | |
4550 | # or remarks (even with -Werror). So we grep stderr for any message | |
4551 | # that says an option was ignored or not supported. | |
4552 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4553 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4554 | # The diagnosis changed in icc 8.0: | |
4555 | # icc: Command line remark: option '-MP' not supported | |
4556 | if (grep 'ignoring option' conftest.err || | |
4557 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
a93f15c0 | 4558 | am_cv_CXX_dependencies_compiler_type=$depmode |
a243b558 JF |
4559 | break |
4560 | fi | |
4561 | fi | |
309b0535 | 4562 | done |
a243b558 JF |
4563 | |
4564 | cd .. | |
4565 | rm -rf conftest.dir | |
4566 | else | |
a93f15c0 | 4567 | am_cv_CXX_dependencies_compiler_type=none |
9c60689e | 4568 | fi |
a243b558 | 4569 | |
9c60689e | 4570 | fi |
a93f15c0 JF |
4571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
4572 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
4573 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
a243b558 JF |
4574 | |
4575 | if | |
4576 | test "x$enable_dependency_tracking" != xno \ | |
a93f15c0 JF |
4577 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
4578 | am__fastdepCXX_TRUE= | |
4579 | am__fastdepCXX_FALSE='#' | |
9c60689e | 4580 | else |
a93f15c0 JF |
4581 | am__fastdepCXX_TRUE='#' |
4582 | am__fastdepCXX_FALSE= | |
a243b558 JF |
4583 | fi |
4584 | ||
4585 | ||
a93f15c0 JF |
4586 | ac_ext=mm |
4587 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
4588 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4589 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4590 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
a243b558 | 4591 | if test -n "$ac_tool_prefix"; then |
a93f15c0 | 4592 | for ac_prog in g++ objc++ objcxx c++ CXX |
a243b558 JF |
4593 | do |
4594 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4595 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4597 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 4598 | if ${ac_cv_prog_OBJCXX+:} false; then : |
9c60689e DWT |
4599 | $as_echo_n "(cached) " >&6 |
4600 | else | |
a93f15c0 JF |
4601 | if test -n "$OBJCXX"; then |
4602 | ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test. | |
a243b558 JF |
4603 | else |
4604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4605 | for as_dir in $PATH | |
4606 | do | |
4607 | IFS=$as_save_IFS | |
4608 | test -z "$as_dir" && as_dir=. | |
4609 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4610 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
a93f15c0 | 4611 | ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog" |
a243b558 JF |
4612 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4613 | break 2 | |
9c60689e | 4614 | fi |
a243b558 JF |
4615 | done |
4616 | done | |
4617 | IFS=$as_save_IFS | |
9c60689e | 4618 | |
a243b558 JF |
4619 | fi |
4620 | fi | |
a93f15c0 JF |
4621 | OBJCXX=$ac_cv_prog_OBJCXX |
4622 | if test -n "$OBJCXX"; then | |
4623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5 | |
4624 | $as_echo "$OBJCXX" >&6; } | |
35fa52c0 | 4625 | else |
a243b558 JF |
4626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4627 | $as_echo "no" >&6; } | |
35fa52c0 | 4628 | fi |
9c60689e | 4629 | |
a243b558 | 4630 | |
a93f15c0 | 4631 | test -n "$OBJCXX" && break |
a243b558 JF |
4632 | done |
4633 | fi | |
a93f15c0 JF |
4634 | if test -z "$OBJCXX"; then |
4635 | ac_ct_OBJCXX=$OBJCXX | |
4636 | for ac_prog in g++ objc++ objcxx c++ CXX | |
a243b558 JF |
4637 | do |
4638 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4639 | set dummy $ac_prog; ac_word=$2 | |
4640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4641 | $as_echo_n "checking for $ac_word... " >&6; } | |
a93f15c0 | 4642 | if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then : |
35fa52c0 DWT |
4643 | $as_echo_n "(cached) " >&6 |
4644 | else | |
a93f15c0 JF |
4645 | if test -n "$ac_ct_OBJCXX"; then |
4646 | ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test. | |
a243b558 JF |
4647 | else |
4648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4649 | for as_dir in $PATH | |
4650 | do | |
4651 | IFS=$as_save_IFS | |
4652 | test -z "$as_dir" && as_dir=. | |
4653 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4654 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
a93f15c0 | 4655 | ac_cv_prog_ac_ct_OBJCXX="$ac_prog" |
a243b558 JF |
4656 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4657 | break 2 | |
4658 | fi | |
4659 | done | |
4660 | done | |
4661 | IFS=$as_save_IFS | |
9c60689e | 4662 | |
a243b558 JF |
4663 | fi |
4664 | fi | |
a93f15c0 JF |
4665 | ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX |
4666 | if test -n "$ac_ct_OBJCXX"; then | |
4667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5 | |
4668 | $as_echo "$ac_ct_OBJCXX" >&6; } | |
a243b558 JF |
4669 | else |
4670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4671 | $as_echo "no" >&6; } | |
4672 | fi | |
35fa52c0 | 4673 | |
35fa52c0 | 4674 | |
a93f15c0 | 4675 | test -n "$ac_ct_OBJCXX" && break |
a243b558 | 4676 | done |
35fa52c0 | 4677 | |
a93f15c0 JF |
4678 | if test "x$ac_ct_OBJCXX" = x; then |
4679 | OBJCXX="g++" | |
a243b558 JF |
4680 | else |
4681 | case $cross_compiling:$ac_tool_warned in | |
4682 | yes:) | |
4683 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4684 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4685 | ac_tool_warned=yes ;; | |
4686 | esac | |
a93f15c0 | 4687 | OBJCXX=$ac_ct_OBJCXX |
a243b558 JF |
4688 | fi |
4689 | fi | |
ee134472 | 4690 | |
a243b558 | 4691 | # Provide some information about the compiler. |
a93f15c0 | 4692 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5 |
a243b558 JF |
4693 | set X $ac_compile |
4694 | ac_compiler=$2 | |
4695 | for ac_option in --version -v -V -qversion; do | |
4696 | { { ac_try="$ac_compiler $ac_option >&5" | |
4697 | case "(($ac_try" in | |
4698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4699 | *) ac_try_echo=$ac_try;; | |
4700 | esac | |
4701 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4702 | $as_echo "$ac_try_echo"; } >&5 | |
4703 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4704 | ac_status=$? | |
4705 | if test -s conftest.err; then | |
4706 | sed '10a\ | |
4707 | ... rest of stderr output deleted ... | |
4708 | 10q' conftest.err >conftest.er1 | |
4709 | cat conftest.er1 >&5 | |
4710 | fi | |
4711 | rm -f conftest.er1 conftest.err | |
4712 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4713 | test $ac_status = 0; } | |
4714 | done | |
53ba6704 | 4715 | |
a93f15c0 JF |
4716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5 |
4717 | $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; } | |
4718 | if ${ac_cv_objcxx_compiler_gnu+:} false; then : | |
a243b558 JF |
4719 | $as_echo_n "(cached) " >&6 |
4720 | else | |
4721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4722 | /* end confdefs.h. */ | |
35fa52c0 | 4723 | |
a243b558 JF |
4724 | int |
4725 | main () | |
4726 | { | |
4727 | #ifndef __GNUC__ | |
4728 | choke me | |
4729 | #endif | |
9c60689e | 4730 | |
a243b558 JF |
4731 | ; |
4732 | return 0; | |
4733 | } | |
4734 | _ACEOF | |
a93f15c0 | 4735 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
a243b558 | 4736 | ac_compiler_gnu=yes |
35fa52c0 | 4737 | else |
a243b558 | 4738 | ac_compiler_gnu=no |
35fa52c0 | 4739 | fi |
a243b558 | 4740 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a93f15c0 | 4741 | ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu |
9c60689e | 4742 | |
a243b558 | 4743 | fi |
a93f15c0 JF |
4744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5 |
4745 | $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; } | |
a243b558 | 4746 | if test $ac_compiler_gnu = yes; then |
a93f15c0 | 4747 | GOBJCXX=yes |
35fa52c0 | 4748 | else |
a93f15c0 | 4749 | GOBJCXX= |
9c60689e | 4750 | fi |
a93f15c0 JF |
4751 | ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set} |
4752 | ac_save_OBJCXXFLAGS=$OBJCXXFLAGS | |
4753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5 | |
4754 | $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; } | |
4755 | if ${ac_cv_prog_objcxx_g+:} false; then : | |
a243b558 JF |
4756 | $as_echo_n "(cached) " >&6 |
4757 | else | |
a93f15c0 JF |
4758 | ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag |
4759 | ac_objcxx_werror_flag=yes | |
4760 | ac_cv_prog_objcxx_g=no | |
4761 | OBJCXXFLAGS="-g" | |
a243b558 JF |
4762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4763 | /* end confdefs.h. */ | |
9c60689e | 4764 | |
a243b558 JF |
4765 | int |
4766 | main () | |
4767 | { | |
9c60689e | 4768 | |
a243b558 JF |
4769 | ; |
4770 | return 0; | |
4771 | } | |
4772 | _ACEOF | |
a93f15c0 JF |
4773 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
4774 | ac_cv_prog_objcxx_g=yes | |
a243b558 | 4775 | else |
a93f15c0 | 4776 | OBJCXXFLAGS="" |
a243b558 JF |
4777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4778 | /* end confdefs.h. */ | |
9c60689e | 4779 | |
a243b558 JF |
4780 | int |
4781 | main () | |
4782 | { | |
9c60689e | 4783 | |
a243b558 JF |
4784 | ; |
4785 | return 0; | |
4786 | } | |
4787 | _ACEOF | |
a93f15c0 | 4788 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
9c60689e | 4789 | |
a243b558 | 4790 | else |
a93f15c0 JF |
4791 | ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag |
4792 | OBJCXXFLAGS="-g" | |
a243b558 | 4793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a93f15c0 JF |
4794 | /* end confdefs.h. */ |
4795 | ||
a243b558 JF |
4796 | int |
4797 | main () | |
4798 | { | |
a93f15c0 | 4799 | |
a243b558 JF |
4800 | ; |
4801 | return 0; | |
4802 | } | |
4803 | _ACEOF | |
a93f15c0 JF |
4804 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
4805 | ac_cv_prog_objcxx_g=yes | |
a243b558 | 4806 | fi |
a93f15c0 | 4807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
35fa52c0 | 4808 | fi |
a93f15c0 JF |
4809 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4810 | fi | |
4811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4812 | ac_objcxx_werror_flag=$ac_save_objcx_werror_flag | |
4813 | fi | |
4814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5 | |
4815 | $as_echo "$ac_cv_prog_objcxx_g" >&6; } | |
4816 | if test "$ac_test_OBJCXXFLAGS" = set; then | |
4817 | OBJCXXFLAGS=$ac_save_OBJCXXFLAGS | |
4818 | elif test $ac_cv_prog_objcxx_g = yes; then | |
4819 | if test "$GOBJCXX" = yes; then | |
4820 | OBJCXXFLAGS="-g -O2" | |
4821 | else | |
4822 | OBJCXXFLAGS="-g" | |
4823 | fi | |
4824 | else | |
4825 | if test "$GOBJCXX" = yes; then | |
4826 | OBJCXXFLAGS="-O2" | |
4827 | else | |
4828 | OBJCXXFLAGS= | |
4829 | fi | |
35fa52c0 | 4830 | fi |
a243b558 JF |
4831 | ac_ext=c |
4832 | ac_cpp='$CPP $CPPFLAGS' | |
4833 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4834 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4835 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4836 | ||
a93f15c0 | 4837 | depcc="$OBJCXX" am_compiler_list='gcc3 gcc' |
9c60689e | 4838 | |
a243b558 JF |
4839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4840 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
a93f15c0 | 4841 | if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then : |
35fa52c0 DWT |
4842 | $as_echo_n "(cached) " >&6 |
4843 | else | |
a243b558 JF |
4844 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4845 | # We make a subdir and do the tests there. Otherwise we can end up | |
4846 | # making bogus files that we don't know about and never remove. For | |
4847 | # instance it was reported that on HP-UX the gcc test will end up | |
4848 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4849 | # in D". | |
4850 | rm -rf conftest.dir | |
4851 | mkdir conftest.dir | |
4852 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4853 | # using a relative directory. | |
4854 | cp "$am_depcomp" conftest.dir | |
4855 | cd conftest.dir | |
4856 | # We will build objects and dependencies in a subdirectory because | |
4857 | # it helps to detect inapplicable dependency modes. For instance | |
4858 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4859 | # side effect of compilation, but ICC will put the dependencies in | |
4860 | # the current directory while Tru64 will put them in the object | |
4861 | # directory. | |
4862 | mkdir sub | |
4863 | ||
a93f15c0 | 4864 | am_cv_OBJCXX_dependencies_compiler_type=none |
a243b558 JF |
4865 | if test "$am_compiler_list" = ""; then |
4866 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4867 | fi | |
4868 | am__universal=false | |
a93f15c0 | 4869 | |
a243b558 JF |
4870 | |
4871 | for depmode in $am_compiler_list; do | |
4872 | # Setup a source with many dependencies, because some compilers | |
4873 | # like to wrap large dependency lists on column 80 (with \), and | |
4874 | # we should not choose a depcomp mode which is confused by this. | |
4875 | # | |
4876 | # We need to recreate these files for each test, as the compiler may | |
4877 | # overwrite some of them when testing with obscure command lines. | |
4878 | # This happens at least with the AIX C compiler. | |
4879 | : > sub/conftest.c | |
4880 | for i in 1 2 3 4 5 6; do | |
4881 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4882 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4883 | # Solaris 10 /bin/sh. | |
4884 | echo '/* dummy */' > sub/conftst$i.h | |
4885 | done | |
4886 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4887 | ||
4888 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4889 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4890 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4891 | # versions had trouble with output in subdirs. | |
4892 | am__obj=sub/conftest.${OBJEXT-o} | |
4893 | am__minus_obj="-o $am__obj" | |
4894 | case $depmode in | |
4895 | gcc) | |
4896 | # This depmode causes a compiler race in universal mode. | |
4897 | test "$am__universal" = false || continue | |
4898 | ;; | |
4899 | nosideeffect) | |
4900 | # After this tag, mechanisms are not by side-effect, so they'll | |
4901 | # only be used when explicitly requested. | |
4902 | if test "x$enable_dependency_tracking" = xyes; then | |
4903 | continue | |
4904 | else | |
4905 | break | |
4906 | fi | |
4907 | ;; | |
4908 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4909 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4910 | # not run yet. These depmodes are late enough in the game, and | |
4911 | # so weak that their functioning should not be impacted. | |
4912 | am__obj=conftest.${OBJEXT-o} | |
4913 | am__minus_obj= | |
4914 | ;; | |
4915 | none) break ;; | |
4916 | esac | |
4917 | if depmode=$depmode \ | |
4918 | source=sub/conftest.c object=$am__obj \ | |
4919 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4920 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4921 | >/dev/null 2>conftest.err && | |
4922 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4923 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4924 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4925 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4926 | # icc doesn't choke on unknown options, it will just issue warnings | |
4927 | # or remarks (even with -Werror). So we grep stderr for any message | |
4928 | # that says an option was ignored or not supported. | |
4929 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4930 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4931 | # The diagnosis changed in icc 8.0: | |
4932 | # icc: Command line remark: option '-MP' not supported | |
4933 | if (grep 'ignoring option' conftest.err || | |
4934 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
a93f15c0 | 4935 | am_cv_OBJCXX_dependencies_compiler_type=$depmode |
a243b558 JF |
4936 | break |
4937 | fi | |
4938 | fi | |
4939 | done | |
9c60689e | 4940 | |
a243b558 JF |
4941 | cd .. |
4942 | rm -rf conftest.dir | |
4943 | else | |
a93f15c0 | 4944 | am_cv_OBJCXX_dependencies_compiler_type=none |
35fa52c0 | 4945 | fi |
a243b558 | 4946 | |
35fa52c0 | 4947 | fi |
a93f15c0 JF |
4948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5 |
4949 | $as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; } | |
4950 | OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type | |
a243b558 JF |
4951 | |
4952 | if | |
4953 | test "x$enable_dependency_tracking" != xno \ | |
a93f15c0 JF |
4954 | && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then |
4955 | am__fastdepOBJCXX_TRUE= | |
4956 | am__fastdepOBJCXX_FALSE='#' | |
a243b558 | 4957 | else |
a93f15c0 JF |
4958 | am__fastdepOBJCXX_TRUE='#' |
4959 | am__fastdepOBJCXX_FALSE= | |
a243b558 JF |
4960 | fi |
4961 | ||
4962 | ||
4963 | ||
a93f15c0 | 4964 | |
a243b558 JF |
4965 | if test -n "$ac_tool_prefix"; then |
4966 | for ac_prog in ar lib "link -lib" | |
4967 | do | |
4968 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4969 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4971 | $as_echo_n "checking for $ac_word... " >&6; } | |
4972 | if ${ac_cv_prog_AR+:} false; then : | |
4973 | $as_echo_n "(cached) " >&6 | |
4974 | else | |
4975 | if test -n "$AR"; then | |
4976 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4977 | else | |
4978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4979 | for as_dir in $PATH | |
4980 | do | |
4981 | IFS=$as_save_IFS | |
4982 | test -z "$as_dir" && as_dir=. | |
4983 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4984 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4985 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
4986 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4987 | break 2 | |
4988 | fi | |
4989 | done | |
4990 | done | |
4991 | IFS=$as_save_IFS | |
4992 | ||
4993 | fi | |
4994 | fi | |
4995 | AR=$ac_cv_prog_AR | |
4996 | if test -n "$AR"; then | |
4997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
4998 | $as_echo "$AR" >&6; } | |
35fa52c0 DWT |
4999 | else |
5000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5001 | $as_echo "no" >&6; } | |
5002 | fi | |
9c60689e | 5003 | |
a243b558 JF |
5004 | |
5005 | test -n "$AR" && break | |
5006 | done | |
5007 | fi | |
5008 | if test -z "$AR"; then | |
5009 | ac_ct_AR=$AR | |
5010 | for ac_prog in ar lib "link -lib" | |
5011 | do | |
5012 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5013 | set dummy $ac_prog; ac_word=$2 | |
5014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5015 | $as_echo_n "checking for $ac_word... " >&6; } | |
5016 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
5017 | $as_echo_n "(cached) " >&6 | |
5018 | else | |
5019 | if test -n "$ac_ct_AR"; then | |
5020 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5021 | else | |
5022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5023 | for as_dir in $PATH | |
5024 | do | |
5025 | IFS=$as_save_IFS | |
5026 | test -z "$as_dir" && as_dir=. | |
5027 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5028 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5029 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
5030 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5031 | break 2 | |
5032 | fi | |
5033 | done | |
5034 | done | |
5035 | IFS=$as_save_IFS | |
5036 | ||
5037 | fi | |
5038 | fi | |
5039 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5040 | if test -n "$ac_ct_AR"; then | |
5041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5042 | $as_echo "$ac_ct_AR" >&6; } | |
5043 | else | |
5044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5045 | $as_echo "no" >&6; } | |
5046 | fi | |
5047 | ||
5048 | ||
5049 | test -n "$ac_ct_AR" && break | |
5050 | done | |
5051 | ||
5052 | if test "x$ac_ct_AR" = x; then | |
5053 | AR="false" | |
9c60689e DWT |
5054 | else |
5055 | case $cross_compiling:$ac_tool_warned in | |
5056 | yes:) | |
5057 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5058 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5059 | ac_tool_warned=yes ;; | |
35fa52c0 | 5060 | esac |
a243b558 | 5061 | AR=$ac_ct_AR |
9c60689e | 5062 | fi |
a243b558 JF |
5063 | fi |
5064 | ||
5065 | : ${AR=ar} | |
5066 | ||
5067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 | |
5068 | $as_echo_n "checking the archiver ($AR) interface... " >&6; } | |
5069 | if ${am_cv_ar_interface+:} false; then : | |
5070 | $as_echo_n "(cached) " >&6 | |
9c60689e | 5071 | else |
a93f15c0 JF |
5072 | ac_ext=c |
5073 | ac_cpp='$CPP $CPPFLAGS' | |
5074 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5075 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5076 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5077 | ||
5078 | am_cv_ar_interface=ar | |
a243b558 JF |
5079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5080 | /* end confdefs.h. */ | |
5081 | int some_variable = 0; | |
5082 | _ACEOF | |
5083 | if ac_fn_c_try_compile "$LINENO"; then : | |
5084 | am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' | |
5085 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
5086 | (eval $am_ar_try) 2>&5 | |
5087 | ac_status=$? | |
5088 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5089 | test $ac_status = 0; } | |
5090 | if test "$ac_status" -eq 0; then | |
5091 | am_cv_ar_interface=ar | |
5092 | else | |
5093 | am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' | |
5094 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
5095 | (eval $am_ar_try) 2>&5 | |
5096 | ac_status=$? | |
5097 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5098 | test $ac_status = 0; } | |
5099 | if test "$ac_status" -eq 0; then | |
5100 | am_cv_ar_interface=lib | |
5101 | else | |
5102 | am_cv_ar_interface=unknown | |
5103 | fi | |
5104 | fi | |
5105 | rm -f conftest.lib libconftest.a | |
5106 | ||
35fa52c0 | 5107 | fi |
a243b558 | 5108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a93f15c0 JF |
5109 | ac_ext=c |
5110 | ac_cpp='$CPP $CPPFLAGS' | |
5111 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5112 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5113 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35fa52c0 | 5114 | |
a243b558 JF |
5115 | fi |
5116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 | |
5117 | $as_echo "$am_cv_ar_interface" >&6; } | |
35fa52c0 | 5118 | |
a243b558 JF |
5119 | case $am_cv_ar_interface in |
5120 | ar) | |
5121 | ;; | |
5122 | lib) | |
5123 | # Microsoft lib, so override with the ar-lib wrapper script. | |
5124 | # FIXME: It is wrong to rewrite AR. | |
5125 | # But if we don't then we get into trouble of one sort or another. | |
5126 | # A longer-term fix would be to have automake use am__AR in this case, | |
5127 | # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something | |
5128 | # similar. | |
5129 | AR="$am_aux_dir/ar-lib $AR" | |
5130 | ;; | |
5131 | unknown) | |
5132 | as_fn_error $? "could not determine $AR interface" "$LINENO" 5 | |
5133 | ;; | |
5134 | esac | |
35fa52c0 | 5135 | |
35fa52c0 | 5136 | |
35fa52c0 | 5137 | |
a243b558 JF |
5138 | case `pwd` in |
5139 | *\ * | *\ *) | |
5140 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5141 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5142 | esac | |
35fa52c0 DWT |
5143 | |
5144 | ||
5145 | ||
a243b558 JF |
5146 | macro_version='2.4.2' |
5147 | macro_revision='1.3337' | |
35fa52c0 DWT |
5148 | |
5149 | ||
5150 | ||
5151 | ||
5152 | ||
5153 | ||
5154 | ||
5155 | ||
5156 | ||
35fa52c0 | 5157 | |
35fa52c0 | 5158 | |
ee134472 | 5159 | |
35fa52c0 | 5160 | |
a243b558 | 5161 | ltmain="$ac_aux_dir/ltmain.sh" |
35fa52c0 | 5162 | |
a243b558 JF |
5163 | # Make sure we can run config.sub. |
5164 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
5165 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
35fa52c0 | 5166 | |
a243b558 JF |
5167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
5168 | $as_echo_n "checking build system type... " >&6; } | |
5169 | if ${ac_cv_build+:} false; then : | |
5170 | $as_echo_n "(cached) " >&6 | |
5171 | else | |
5172 | ac_build_alias=$build_alias | |
5173 | test "x$ac_build_alias" = x && | |
5174 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
5175 | test "x$ac_build_alias" = x && | |
5176 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
5177 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
5178 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
35fa52c0 | 5179 | |
a243b558 JF |
5180 | fi |
5181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
5182 | $as_echo "$ac_cv_build" >&6; } | |
5183 | case $ac_cv_build in | |
5184 | *-*-*) ;; | |
5185 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
5186 | esac | |
5187 | build=$ac_cv_build | |
5188 | ac_save_IFS=$IFS; IFS='-' | |
5189 | set x $ac_cv_build | |
5190 | shift | |
5191 | build_cpu=$1 | |
5192 | build_vendor=$2 | |
5193 | shift; shift | |
5194 | # Remember, the first character of IFS is used to create $*, | |
5195 | # except with old shells: | |
5196 | build_os=$* | |
5197 | IFS=$ac_save_IFS | |
5198 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
35fa52c0 | 5199 | |
35fa52c0 | 5200 | |
a243b558 JF |
5201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
5202 | $as_echo_n "checking host system type... " >&6; } | |
5203 | if ${ac_cv_host+:} false; then : | |
5204 | $as_echo_n "(cached) " >&6 | |
5205 | else | |
5206 | if test "x$host_alias" = x; then | |
5207 | ac_cv_host=$ac_cv_build | |
5208 | else | |
5209 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
5210 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
5211 | fi | |
35fa52c0 | 5212 | |
a243b558 JF |
5213 | fi |
5214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
5215 | $as_echo "$ac_cv_host" >&6; } | |
5216 | case $ac_cv_host in | |
5217 | *-*-*) ;; | |
5218 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
5219 | esac | |
5220 | host=$ac_cv_host | |
5221 | ac_save_IFS=$IFS; IFS='-' | |
5222 | set x $ac_cv_host | |
5223 | shift | |
5224 | host_cpu=$1 | |
5225 | host_vendor=$2 | |
5226 | shift; shift | |
5227 | # Remember, the first character of IFS is used to create $*, | |
5228 | # except with old shells: | |
5229 | host_os=$* | |
5230 | IFS=$ac_save_IFS | |
5231 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
9c60689e | 5232 | |
9c60689e | 5233 | |
a243b558 JF |
5234 | # Backslashify metacharacters that are still active within |
5235 | # double-quoted strings. | |
5236 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
9c60689e | 5237 | |
a243b558 JF |
5238 | # Same as above, but do not quote variable references. |
5239 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
9c60689e | 5240 | |
a243b558 JF |
5241 | # Sed substitution to delay expansion of an escaped shell variable in a |
5242 | # double_quote_subst'ed string. | |
5243 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
9c60689e | 5244 | |
a243b558 JF |
5245 | # Sed substitution to delay expansion of an escaped single quote. |
5246 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
9c60689e | 5247 | |
a243b558 JF |
5248 | # Sed substitution to avoid accidental globbing in evaled expressions |
5249 | no_glob_subst='s/\*/\\\*/g' | |
35fa52c0 | 5250 | |
a243b558 JF |
5251 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
5252 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5253 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
ee134472 | 5254 | |
a243b558 JF |
5255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
5256 | $as_echo_n "checking how to print strings... " >&6; } | |
5257 | # Test print first, because it will be a builtin if present. | |
5258 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
5259 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5260 | ECHO='print -r --' | |
5261 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5262 | ECHO='printf %s\n' | |
5263 | else | |
5264 | # Use this function as a fallback that always works. | |
5265 | func_fallback_echo () | |
5266 | { | |
5267 | eval 'cat <<_LTECHO_EOF | |
5268 | $1 | |
5269 | _LTECHO_EOF' | |
5270 | } | |
5271 | ECHO='func_fallback_echo' | |
ee134472 JF |
5272 | fi |
5273 | ||
a243b558 JF |
5274 | # func_echo_all arg... |
5275 | # Invoke $ECHO with all args, space-separated. | |
5276 | func_echo_all () | |
5277 | { | |
5278 | $ECHO "" | |
5279 | } | |
35fa52c0 | 5280 | |
a243b558 JF |
5281 | case "$ECHO" in |
5282 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5283 | $as_echo "printf" >&6; } ;; | |
5284 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5285 | $as_echo "print -r" >&6; } ;; | |
5286 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5287 | $as_echo "cat" >&6; } ;; | |
5288 | esac | |
35fa52c0 | 5289 | |
35fa52c0 | 5290 | |
ee134472 JF |
5291 | |
5292 | ||
5293 | ||
5294 | ||
5295 | ||
5296 | ||
5297 | ||
5298 | ||
5299 | ||
5300 | ||
35fa52c0 | 5301 | |
9c60689e | 5302 | |
a243b558 JF |
5303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5304 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5305 | if ${ac_cv_path_SED+:} false; then : | |
9c60689e DWT |
5306 | $as_echo_n "(cached) " >&6 |
5307 | else | |
a243b558 JF |
5308 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
5309 | for ac_i in 1 2 3 4 5 6 7; do | |
5310 | ac_script="$ac_script$as_nl$ac_script" | |
5311 | done | |
5312 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5313 | { ac_script=; unset ac_script;} | |
5314 | if test -z "$SED"; then | |
5315 | ac_path_SED_found=false | |
5316 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9c60689e DWT |
5318 | for as_dir in $PATH |
5319 | do | |
5320 | IFS=$as_save_IFS | |
5321 | test -z "$as_dir" && as_dir=. | |
a243b558 | 5322 | for ac_prog in sed gsed; do |
9c60689e | 5323 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
5324 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
5325 | as_fn_executable_p "$ac_path_SED" || continue | |
5326 | # Check for GNU ac_path_SED and select it if it is found. | |
5327 | # Check for GNU $ac_path_SED | |
5328 | case `"$ac_path_SED" --version 2>&1` in | |
5329 | *GNU*) | |
5330 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5331 | *) | |
5332 | ac_count=0 | |
5333 | $as_echo_n 0123456789 >"conftest.in" | |
5334 | while : | |
5335 | do | |
5336 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5337 | mv "conftest.tmp" "conftest.in" | |
5338 | cp "conftest.in" "conftest.nl" | |
5339 | $as_echo '' >> "conftest.nl" | |
5340 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5341 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5342 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5343 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5344 | # Best one so far, save it but keep looking for a better one | |
5345 | ac_cv_path_SED="$ac_path_SED" | |
5346 | ac_path_SED_max=$ac_count | |
5347 | fi | |
5348 | # 10*(2^10) chars as input seems more than enough | |
5349 | test $ac_count -gt 10 && break | |
35fa52c0 | 5350 | done |
a243b558 JF |
5351 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
5352 | esac | |
9c60689e | 5353 | |
a243b558 JF |
5354 | $ac_path_SED_found && break 3 |
5355 | done | |
5356 | done | |
9c60689e DWT |
5357 | done |
5358 | IFS=$as_save_IFS | |
a243b558 JF |
5359 | if test -z "$ac_cv_path_SED"; then |
5360 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
9c60689e DWT |
5361 | fi |
5362 | else | |
a243b558 | 5363 | ac_cv_path_SED=$SED |
9c60689e DWT |
5364 | fi |
5365 | ||
a243b558 JF |
5366 | fi |
5367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5368 | $as_echo "$ac_cv_path_SED" >&6; } | |
5369 | SED="$ac_cv_path_SED" | |
5370 | rm -f conftest.sed | |
9c60689e | 5371 | |
a243b558 JF |
5372 | test -z "$SED" && SED=sed |
5373 | Xsed="$SED -e 1s/^X//" | |
9c60689e | 5374 | |
ee134472 | 5375 | |
ee134472 | 5376 | |
9c60689e DWT |
5377 | |
5378 | ||
5379 | ||
5380 | ||
5381 | ||
5382 | ||
5383 | ||
5384 | ||
a243b558 JF |
5385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
5386 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5387 | if ${ac_cv_path_GREP+:} false; then : | |
9c60689e DWT |
5388 | $as_echo_n "(cached) " >&6 |
5389 | else | |
a243b558 JF |
5390 | if test -z "$GREP"; then |
5391 | ac_path_GREP_found=false | |
5392 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5394 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
9c60689e DWT |
5395 | do |
5396 | IFS=$as_save_IFS | |
5397 | test -z "$as_dir" && as_dir=. | |
a243b558 | 5398 | for ac_prog in grep ggrep; do |
9c60689e | 5399 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
5400 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
5401 | as_fn_executable_p "$ac_path_GREP" || continue | |
5402 | # Check for GNU ac_path_GREP and select it if it is found. | |
5403 | # Check for GNU $ac_path_GREP | |
5404 | case `"$ac_path_GREP" --version 2>&1` in | |
5405 | *GNU*) | |
5406 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5407 | *) | |
5408 | ac_count=0 | |
5409 | $as_echo_n 0123456789 >"conftest.in" | |
5410 | while : | |
5411 | do | |
5412 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5413 | mv "conftest.tmp" "conftest.in" | |
5414 | cp "conftest.in" "conftest.nl" | |
5415 | $as_echo 'GREP' >> "conftest.nl" | |
5416 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5417 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5418 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5419 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5420 | # Best one so far, save it but keep looking for a better one | |
5421 | ac_cv_path_GREP="$ac_path_GREP" | |
5422 | ac_path_GREP_max=$ac_count | |
5423 | fi | |
5424 | # 10*(2^10) chars as input seems more than enough | |
5425 | test $ac_count -gt 10 && break | |
5426 | done | |
5427 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5428 | esac | |
9c60689e | 5429 | |
a243b558 JF |
5430 | $ac_path_GREP_found && break 3 |
5431 | done | |
ee134472 | 5432 | done |
a243b558 JF |
5433 | done |
5434 | IFS=$as_save_IFS | |
5435 | if test -z "$ac_cv_path_GREP"; then | |
5436 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5437 | fi | |
5438 | else | |
5439 | ac_cv_path_GREP=$GREP | |
9c60689e | 5440 | fi |
a243b558 JF |
5441 | |
5442 | fi | |
5443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5444 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5445 | GREP="$ac_cv_path_GREP" | |
5446 | ||
5447 | ||
5448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5449 | $as_echo_n "checking for egrep... " >&6; } | |
5450 | if ${ac_cv_path_EGREP+:} false; then : | |
9c60689e DWT |
5451 | $as_echo_n "(cached) " >&6 |
5452 | else | |
a243b558 JF |
5453 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
5454 | then ac_cv_path_EGREP="$GREP -E" | |
5455 | else | |
5456 | if test -z "$EGREP"; then | |
5457 | ac_path_EGREP_found=false | |
5458 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5460 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
9c60689e DWT |
5461 | do |
5462 | IFS=$as_save_IFS | |
5463 | test -z "$as_dir" && as_dir=. | |
a243b558 | 5464 | for ac_prog in egrep; do |
9c60689e | 5465 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
5466 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
5467 | as_fn_executable_p "$ac_path_EGREP" || continue | |
5468 | # Check for GNU ac_path_EGREP and select it if it is found. | |
5469 | # Check for GNU $ac_path_EGREP | |
5470 | case `"$ac_path_EGREP" --version 2>&1` in | |
5471 | *GNU*) | |
5472 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5473 | *) | |
5474 | ac_count=0 | |
5475 | $as_echo_n 0123456789 >"conftest.in" | |
5476 | while : | |
5477 | do | |
5478 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5479 | mv "conftest.tmp" "conftest.in" | |
5480 | cp "conftest.in" "conftest.nl" | |
5481 | $as_echo 'EGREP' >> "conftest.nl" | |
5482 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5483 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5484 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5485 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5486 | # Best one so far, save it but keep looking for a better one | |
5487 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5488 | ac_path_EGREP_max=$ac_count | |
5489 | fi | |
5490 | # 10*(2^10) chars as input seems more than enough | |
5491 | test $ac_count -gt 10 && break | |
9c60689e | 5492 | done |
a243b558 JF |
5493 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
5494 | esac | |
9c60689e | 5495 | |
a243b558 JF |
5496 | $ac_path_EGREP_found && break 3 |
5497 | done | |
5498 | done | |
5499 | done | |
5500 | IFS=$as_save_IFS | |
5501 | if test -z "$ac_cv_path_EGREP"; then | |
5502 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5503 | fi | |
9c60689e | 5504 | else |
a243b558 | 5505 | ac_cv_path_EGREP=$EGREP |
9c60689e DWT |
5506 | fi |
5507 | ||
a243b558 JF |
5508 | fi |
5509 | fi | |
5510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
5511 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5512 | EGREP="$ac_cv_path_EGREP" | |
ee134472 | 5513 | |
ee134472 | 5514 | |
a243b558 JF |
5515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
5516 | $as_echo_n "checking for fgrep... " >&6; } | |
5517 | if ${ac_cv_path_FGREP+:} false; then : | |
5518 | $as_echo_n "(cached) " >&6 | |
5519 | else | |
5520 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
5521 | then ac_cv_path_FGREP="$GREP -F" | |
5522 | else | |
5523 | if test -z "$FGREP"; then | |
5524 | ac_path_FGREP_found=false | |
5525 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5527 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5528 | do | |
5529 | IFS=$as_save_IFS | |
5530 | test -z "$as_dir" && as_dir=. | |
5531 | for ac_prog in fgrep; do | |
5532 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5533 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5534 | as_fn_executable_p "$ac_path_FGREP" || continue | |
5535 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5536 | # Check for GNU $ac_path_FGREP | |
5537 | case `"$ac_path_FGREP" --version 2>&1` in | |
5538 | *GNU*) | |
5539 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5540 | *) | |
5541 | ac_count=0 | |
5542 | $as_echo_n 0123456789 >"conftest.in" | |
5543 | while : | |
5544 | do | |
5545 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5546 | mv "conftest.tmp" "conftest.in" | |
5547 | cp "conftest.in" "conftest.nl" | |
5548 | $as_echo 'FGREP' >> "conftest.nl" | |
5549 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5550 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5551 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5552 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5553 | # Best one so far, save it but keep looking for a better one | |
5554 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5555 | ac_path_FGREP_max=$ac_count | |
5556 | fi | |
5557 | # 10*(2^10) chars as input seems more than enough | |
5558 | test $ac_count -gt 10 && break | |
5559 | done | |
5560 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
9c60689e | 5561 | esac |
a243b558 JF |
5562 | |
5563 | $ac_path_FGREP_found && break 3 | |
5564 | done | |
5565 | done | |
5566 | done | |
5567 | IFS=$as_save_IFS | |
5568 | if test -z "$ac_cv_path_FGREP"; then | |
5569 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
ee134472 | 5570 | fi |
a243b558 JF |
5571 | else |
5572 | ac_cv_path_FGREP=$FGREP | |
ee134472 JF |
5573 | fi |
5574 | ||
a243b558 JF |
5575 | fi |
5576 | fi | |
5577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5578 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5579 | FGREP="$ac_cv_path_FGREP" | |
ee134472 JF |
5580 | |
5581 | ||
a243b558 | 5582 | test -z "$GREP" && GREP=grep |
ee134472 JF |
5583 | |
5584 | ||
5585 | ||
5586 | ||
5587 | ||
5588 | ||
5589 | ||
ee134472 | 5590 | |
ee134472 | 5591 | |
ee134472 | 5592 | |
ee134472 | 5593 | |
ee134472 | 5594 | |
ee134472 JF |
5595 | |
5596 | ||
5597 | ||
5598 | ||
5599 | ||
5600 | ||
5601 | ||
a243b558 JF |
5602 | # Check whether --with-gnu-ld was given. |
5603 | if test "${with_gnu_ld+set}" = set; then : | |
5604 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5605 | else | |
5606 | with_gnu_ld=no | |
5607 | fi | |
5608 | ||
5609 | ac_prog=ld | |
5610 | if test "$GCC" = yes; then | |
5611 | # Check if gcc -print-prog-name=ld gives a path. | |
5612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5613 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5614 | case $host in | |
5615 | *-*-mingw*) | |
5616 | # gcc leaves a trailing carriage return which upsets mingw | |
5617 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5618 | *) | |
5619 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5620 | esac | |
5621 | case $ac_prog in | |
5622 | # Accept absolute paths. | |
5623 | [\\/]* | ?:[\\/]*) | |
5624 | re_direlt='/[^/][^/]*/\.\./' | |
5625 | # Canonicalize the pathname of ld | |
5626 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5627 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5628 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5629 | done | |
5630 | test -z "$LD" && LD="$ac_prog" | |
5631 | ;; | |
5632 | "") | |
5633 | # If it fails, then pretend we aren't using GCC. | |
5634 | ac_prog=ld | |
5635 | ;; | |
5636 | *) | |
5637 | # If it is relative, then search for the first ld in PATH. | |
5638 | with_gnu_ld=unknown | |
5639 | ;; | |
5640 | esac | |
5641 | elif test "$with_gnu_ld" = yes; then | |
5642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5643 | $as_echo_n "checking for GNU ld... " >&6; } | |
5644 | else | |
5645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5646 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
5647 | fi | |
5648 | if ${lt_cv_path_LD+:} false; then : | |
5649 | $as_echo_n "(cached) " >&6 | |
5650 | else | |
5651 | if test -z "$LD"; then | |
5652 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5653 | for ac_dir in $PATH; do | |
5654 | IFS="$lt_save_ifs" | |
5655 | test -z "$ac_dir" && ac_dir=. | |
5656 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5657 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5658 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5659 | # but apparently some variants of GNU ld only accept -v. | |
5660 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5661 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5662 | *GNU* | *'with BFD'*) | |
5663 | test "$with_gnu_ld" != no && break | |
5664 | ;; | |
5665 | *) | |
5666 | test "$with_gnu_ld" != yes && break | |
5667 | ;; | |
5668 | esac | |
5669 | fi | |
5670 | done | |
5671 | IFS="$lt_save_ifs" | |
5672 | else | |
5673 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5674 | fi | |
5675 | fi | |
5676 | ||
5677 | LD="$lt_cv_path_LD" | |
5678 | if test -n "$LD"; then | |
5679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5680 | $as_echo "$LD" >&6; } | |
5681 | else | |
5682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5683 | $as_echo "no" >&6; } | |
5684 | fi | |
5685 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
5686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5687 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5688 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
5689 | $as_echo_n "(cached) " >&6 | |
5690 | else | |
5691 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5692 | case `$LD -v 2>&1 </dev/null` in | |
5693 | *GNU* | *'with BFD'*) | |
5694 | lt_cv_prog_gnu_ld=yes | |
5695 | ;; | |
5696 | *) | |
5697 | lt_cv_prog_gnu_ld=no | |
5698 | ;; | |
5699 | esac | |
5700 | fi | |
5701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
5702 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
5703 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
5704 | ||
5705 | ||
5706 | ||
5707 | ||
5708 | ||
5709 | ||
5710 | ||
5711 | ||
5712 | ||
5713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
5714 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5715 | if ${lt_cv_path_NM+:} false; then : | |
5716 | $as_echo_n "(cached) " >&6 | |
5717 | else | |
5718 | if test -n "$NM"; then | |
5719 | # Let the user override the test. | |
5720 | lt_cv_path_NM="$NM" | |
5721 | else | |
5722 | lt_nm_to_check="${ac_tool_prefix}nm" | |
5723 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5724 | lt_nm_to_check="$lt_nm_to_check nm" | |
5725 | fi | |
5726 | for lt_tmp_nm in $lt_nm_to_check; do | |
5727 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5728 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5729 | IFS="$lt_save_ifs" | |
5730 | test -z "$ac_dir" && ac_dir=. | |
5731 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5732 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5733 | # Check to see if the nm accepts a BSD-compat flag. | |
5734 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5735 | # nm: unknown option "B" ignored | |
5736 | # Tru64's nm complains that /dev/null is an invalid object file | |
5737 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5738 | */dev/null* | *'Invalid file or object type'*) | |
5739 | lt_cv_path_NM="$tmp_nm -B" | |
5740 | break | |
5741 | ;; | |
5742 | *) | |
5743 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5744 | */dev/null*) | |
5745 | lt_cv_path_NM="$tmp_nm -p" | |
5746 | break | |
5747 | ;; | |
5748 | *) | |
5749 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5750 | continue # so that we can try to find one that supports BSD flags | |
5751 | ;; | |
5752 | esac | |
5753 | ;; | |
5754 | esac | |
5755 | fi | |
5756 | done | |
5757 | IFS="$lt_save_ifs" | |
5758 | done | |
5759 | : ${lt_cv_path_NM=no} | |
5760 | fi | |
5761 | fi | |
5762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
5763 | $as_echo "$lt_cv_path_NM" >&6; } | |
5764 | if test "$lt_cv_path_NM" != "no"; then | |
5765 | NM="$lt_cv_path_NM" | |
5766 | else | |
5767 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
5768 | if test -n "$DUMPBIN"; then : | |
5769 | # Let the user override the test. | |
5770 | else | |
5771 | if test -n "$ac_tool_prefix"; then | |
5772 | for ac_prog in dumpbin "link -dump" | |
5773 | do | |
5774 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5775 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ee134472 JF |
5776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5777 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 5778 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
ee134472 JF |
5779 | $as_echo_n "(cached) " >&6 |
5780 | else | |
a243b558 JF |
5781 | if test -n "$DUMPBIN"; then |
5782 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
ee134472 JF |
5783 | else |
5784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5785 | for as_dir in $PATH | |
5786 | do | |
5787 | IFS=$as_save_IFS | |
5788 | test -z "$as_dir" && as_dir=. | |
5789 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 5790 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 5791 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
ee134472 JF |
5792 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5793 | break 2 | |
5794 | fi | |
5795 | done | |
5796 | done | |
5797 | IFS=$as_save_IFS | |
5798 | ||
5799 | fi | |
5800 | fi | |
a243b558 JF |
5801 | DUMPBIN=$ac_cv_prog_DUMPBIN |
5802 | if test -n "$DUMPBIN"; then | |
5803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
5804 | $as_echo "$DUMPBIN" >&6; } | |
ee134472 JF |
5805 | else |
5806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5807 | $as_echo "no" >&6; } | |
5808 | fi | |
5809 | ||
5810 | ||
a243b558 JF |
5811 | test -n "$DUMPBIN" && break |
5812 | done | |
ee134472 | 5813 | fi |
a243b558 JF |
5814 | if test -z "$DUMPBIN"; then |
5815 | ac_ct_DUMPBIN=$DUMPBIN | |
5816 | for ac_prog in dumpbin "link -dump" | |
5817 | do | |
5818 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5819 | set dummy $ac_prog; ac_word=$2 | |
ee134472 JF |
5820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5821 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 5822 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
ee134472 JF |
5823 | $as_echo_n "(cached) " >&6 |
5824 | else | |
a243b558 JF |
5825 | if test -n "$ac_ct_DUMPBIN"; then |
5826 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
ee134472 JF |
5827 | else |
5828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5829 | for as_dir in $PATH | |
5830 | do | |
5831 | IFS=$as_save_IFS | |
5832 | test -z "$as_dir" && as_dir=. | |
5833 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 5834 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 5835 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
ee134472 JF |
5836 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5837 | break 2 | |
5838 | fi | |
5839 | done | |
5840 | done | |
5841 | IFS=$as_save_IFS | |
5842 | ||
5843 | fi | |
5844 | fi | |
a243b558 JF |
5845 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
5846 | if test -n "$ac_ct_DUMPBIN"; then | |
5847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
5848 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
ee134472 JF |
5849 | else |
5850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5851 | $as_echo "no" >&6; } | |
5852 | fi | |
5853 | ||
a243b558 JF |
5854 | |
5855 | test -n "$ac_ct_DUMPBIN" && break | |
5856 | done | |
5857 | ||
5858 | if test "x$ac_ct_DUMPBIN" = x; then | |
5859 | DUMPBIN=":" | |
ee134472 JF |
5860 | else |
5861 | case $cross_compiling:$ac_tool_warned in | |
5862 | yes:) | |
5863 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5864 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5865 | ac_tool_warned=yes ;; | |
5866 | esac | |
a243b558 | 5867 | DUMPBIN=$ac_ct_DUMPBIN |
9c60689e | 5868 | fi |
9c60689e DWT |
5869 | fi |
5870 | ||
a243b558 JF |
5871 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
5872 | *COFF*) | |
5873 | DUMPBIN="$DUMPBIN -symbols" | |
5874 | ;; | |
5875 | *) | |
5876 | DUMPBIN=: | |
5877 | ;; | |
5878 | esac | |
5879 | fi | |
9c60689e | 5880 | |
a243b558 JF |
5881 | if test "$DUMPBIN" != ":"; then |
5882 | NM="$DUMPBIN" | |
5883 | fi | |
5884 | fi | |
5885 | test -z "$NM" && NM=nm | |
9c60689e DWT |
5886 | |
5887 | ||
5888 | ||
5889 | ||
5890 | ||
a243b558 JF |
5891 | |
5892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
5893 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5894 | if ${lt_cv_nm_interface+:} false; then : | |
9c60689e DWT |
5895 | $as_echo_n "(cached) " >&6 |
5896 | else | |
a243b558 JF |
5897 | lt_cv_nm_interface="BSD nm" |
5898 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5899 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
5900 | (eval "$ac_compile" 2>conftest.err) | |
5901 | cat conftest.err >&5 | |
5902 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5903 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5904 | cat conftest.err >&5 | |
5905 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
5906 | cat conftest.out >&5 | |
5907 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5908 | lt_cv_nm_interface="MS dumpbin" | |
9c60689e | 5909 | fi |
a93f15c0 | 5910 | rm -f conftest* |
9c60689e | 5911 | fi |
a243b558 JF |
5912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5913 | $as_echo "$lt_cv_nm_interface" >&6; } | |
5914 | ||
5915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5916 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5917 | LN_S=$as_ln_s | |
5918 | if test "$LN_S" = "ln -s"; then | |
5919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5920 | $as_echo "yes" >&6; } | |
9c60689e | 5921 | else |
a243b558 JF |
5922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
5923 | $as_echo "no, using $LN_S" >&6; } | |
9c60689e DWT |
5924 | fi |
5925 | ||
a243b558 JF |
5926 | # find the maximum length of command line arguments |
5927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
5928 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5929 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
9c60689e DWT |
5930 | $as_echo_n "(cached) " >&6 |
5931 | else | |
a243b558 JF |
5932 | i=0 |
5933 | teststring="ABCD" | |
9c60689e | 5934 | |
a243b558 JF |
5935 | case $build_os in |
5936 | msdosdjgpp*) | |
5937 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5938 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5939 | # during glob expansion). Even if it were fixed, the result of this | |
5940 | # check would be larger than it should be. | |
5941 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5942 | ;; | |
9c60689e | 5943 | |
a243b558 JF |
5944 | gnu*) |
5945 | # Under GNU Hurd, this test is not required because there is | |
5946 | # no limit to the length of command line arguments. | |
5947 | # Libtool will interpret -1 as no limit whatsoever | |
5948 | lt_cv_sys_max_cmd_len=-1; | |
5949 | ;; | |
9c60689e | 5950 | |
a243b558 JF |
5951 | cygwin* | mingw* | cegcc*) |
5952 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5953 | # about 5 minutes as the teststring grows exponentially. | |
5954 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5955 | # you end up with a "frozen" computer, even though with patience | |
5956 | # the test eventually succeeds (with a max line length of 256k). | |
5957 | # Instead, let's just punt: use the minimum linelength reported by | |
5958 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5959 | lt_cv_sys_max_cmd_len=8192; | |
5960 | ;; | |
9c60689e | 5961 | |
a243b558 JF |
5962 | mint*) |
5963 | # On MiNT this can take a long time and run out of memory. | |
5964 | lt_cv_sys_max_cmd_len=8192; | |
5965 | ;; | |
9c60689e | 5966 | |
a243b558 JF |
5967 | amigaos*) |
5968 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5969 | # So we just punt and use a minimum line length of 8192. | |
5970 | lt_cv_sys_max_cmd_len=8192; | |
5971 | ;; | |
9c60689e | 5972 | |
a243b558 JF |
5973 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
5974 | # This has been around since 386BSD, at least. Likely further. | |
5975 | if test -x /sbin/sysctl; then | |
5976 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5977 | elif test -x /usr/sbin/sysctl; then | |
5978 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5979 | else | |
5980 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5981 | fi | |
5982 | # And add a safety zone | |
5983 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5984 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5985 | ;; | |
9c60689e | 5986 | |
a243b558 JF |
5987 | interix*) |
5988 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5989 | lt_cv_sys_max_cmd_len=196608 | |
5990 | ;; | |
9c60689e | 5991 | |
a243b558 JF |
5992 | os2*) |
5993 | # The test takes a long time on OS/2. | |
5994 | lt_cv_sys_max_cmd_len=8192 | |
5995 | ;; | |
9c60689e | 5996 | |
a243b558 JF |
5997 | osf*) |
5998 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5999 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6000 | # nice to cause kernel panics so lets avoid the loop below. | |
6001 | # First set a reasonable default. | |
6002 | lt_cv_sys_max_cmd_len=16384 | |
6003 | # | |
6004 | if test -x /sbin/sysconfig; then | |
6005 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6006 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6007 | esac | |
6008 | fi | |
6009 | ;; | |
6010 | sco3.2v5*) | |
6011 | lt_cv_sys_max_cmd_len=102400 | |
6012 | ;; | |
6013 | sysv5* | sco5v6* | sysv4.2uw2*) | |
6014 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6015 | if test -n "$kargmax"; then | |
6016 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6017 | else | |
6018 | lt_cv_sys_max_cmd_len=32768 | |
6019 | fi | |
9c60689e DWT |
6020 | ;; |
6021 | *) | |
a243b558 JF |
6022 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
6023 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
6024 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6025 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6026 | else | |
6027 | # Make teststring a little bigger before we do anything with it. | |
6028 | # a 1K string should be a reasonable start. | |
6029 | for i in 1 2 3 4 5 6 7 8 ; do | |
6030 | teststring=$teststring$teststring | |
6031 | done | |
6032 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6033 | # If test is not a shell built-in, we'll probably end up computing a | |
6034 | # maximum length that is only half of the actual maximum length, but | |
6035 | # we can't tell. | |
6036 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ | |
6037 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
6038 | test $i != 17 # 1/2 MB should be enough | |
6039 | do | |
6040 | i=`expr $i + 1` | |
6041 | teststring=$teststring$teststring | |
6042 | done | |
6043 | # Only check the string length outside the loop. | |
6044 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
6045 | teststring= | |
6046 | # Add a significant safety factor because C++ compilers can tack on | |
6047 | # massive amounts of additional arguments before passing them to the | |
6048 | # linker. It appears as though 1/2 is a usable value. | |
6049 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6050 | fi | |
9c60689e DWT |
6051 | ;; |
6052 | esac | |
ee134472 | 6053 | |
a243b558 | 6054 | fi |
ee134472 | 6055 | |
a243b558 JF |
6056 | if test -n $lt_cv_sys_max_cmd_len ; then |
6057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
6058 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
6059 | else | |
6060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
6061 | $as_echo "none" >&6; } | |
6062 | fi | |
6063 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
ee134472 JF |
6064 | |
6065 | ||
9c60689e DWT |
6066 | |
6067 | ||
6068 | ||
6069 | ||
a243b558 JF |
6070 | : ${CP="cp -f"} |
6071 | : ${MV="mv -f"} | |
6072 | : ${RM="rm -f"} | |
9c60689e | 6073 | |
a243b558 JF |
6074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
6075 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
6076 | # Try some XSI features | |
6077 | xsi_shell=no | |
6078 | ( _lt_dummy="a/b/c" | |
6079 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | |
6080 | = c,a/b,b/c, \ | |
6081 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
6082 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
6083 | && xsi_shell=yes | |
6084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
6085 | $as_echo "$xsi_shell" >&6; } | |
9c60689e DWT |
6086 | |
6087 | ||
a243b558 JF |
6088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
6089 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
6090 | lt_shell_append=no | |
6091 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6092 | >/dev/null 2>&1 \ | |
6093 | && lt_shell_append=yes | |
6094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
6095 | $as_echo "$lt_shell_append" >&6; } | |
9c60689e DWT |
6096 | |
6097 | ||
a243b558 JF |
6098 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
6099 | lt_unset=unset | |
6100 | else | |
6101 | lt_unset=false | |
6102 | fi | |
9c60689e DWT |
6103 | |
6104 | ||
6105 | ||
6106 | ||
6107 | ||
a243b558 JF |
6108 | # test EBCDIC or ASCII |
6109 | case `echo X|tr X '\101'` in | |
6110 | A) # ASCII based system | |
6111 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6112 | lt_SP2NL='tr \040 \012' | |
6113 | lt_NL2SP='tr \015\012 \040\040' | |
6114 | ;; | |
6115 | *) # EBCDIC based system | |
6116 | lt_SP2NL='tr \100 \n' | |
6117 | lt_NL2SP='tr \r\n \100\100' | |
6118 | ;; | |
6119 | esac | |
9c60689e DWT |
6120 | |
6121 | ||
6122 | ||
6123 | ||
6124 | ||
6125 | ||
6126 | ||
6127 | ||
6128 | ||
a243b558 JF |
6129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
6130 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
6131 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
6132 | $as_echo_n "(cached) " >&6 | |
6133 | else | |
6134 | case $host in | |
6135 | *-*-mingw* ) | |
6136 | case $build in | |
6137 | *-*-mingw* ) # actually msys | |
6138 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
6139 | ;; | |
6140 | *-*-cygwin* ) | |
6141 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
6142 | ;; | |
6143 | * ) # otherwise, assume *nix | |
6144 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
6145 | ;; | |
6146 | esac | |
6147 | ;; | |
6148 | *-*-cygwin* ) | |
6149 | case $build in | |
6150 | *-*-mingw* ) # actually msys | |
6151 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
6152 | ;; | |
6153 | *-*-cygwin* ) | |
6154 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6155 | ;; | |
6156 | * ) # otherwise, assume *nix | |
6157 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
6158 | ;; | |
6159 | esac | |
6160 | ;; | |
6161 | * ) # unhandled hosts (and "normal" native builds) | |
6162 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6163 | ;; | |
6164 | esac | |
9c60689e | 6165 | |
a243b558 | 6166 | fi |
9c60689e | 6167 | |
a243b558 JF |
6168 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
6169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
6170 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
9c60689e DWT |
6171 | |
6172 | ||
6173 | ||
6174 | ||
6175 | ||
a243b558 JF |
6176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
6177 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
6178 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
6179 | $as_echo_n "(cached) " >&6 | |
6180 | else | |
6181 | #assume ordinary cross tools, or native build. | |
6182 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
6183 | case $host in | |
6184 | *-*-mingw* ) | |
6185 | case $build in | |
6186 | *-*-mingw* ) # actually msys | |
6187 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
6188 | ;; | |
6189 | esac | |
6190 | ;; | |
6191 | esac | |
9c60689e | 6192 | |
a243b558 | 6193 | fi |
9c60689e | 6194 | |
a243b558 JF |
6195 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
6196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
6197 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
9c60689e | 6198 | |
9c60689e | 6199 | |
9c60689e | 6200 | |
9c60689e DWT |
6201 | |
6202 | ||
a243b558 JF |
6203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
6204 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6205 | if ${lt_cv_ld_reload_flag+:} false; then : | |
9c60689e DWT |
6206 | $as_echo_n "(cached) " >&6 |
6207 | else | |
a243b558 JF |
6208 | lt_cv_ld_reload_flag='-r' |
6209 | fi | |
6210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
6211 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6212 | reload_flag=$lt_cv_ld_reload_flag | |
6213 | case $reload_flag in | |
6214 | "" | " "*) ;; | |
6215 | *) reload_flag=" $reload_flag" ;; | |
6216 | esac | |
6217 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
9c60689e | 6218 | case $host_os in |
a243b558 JF |
6219 | cygwin* | mingw* | pw32* | cegcc*) |
6220 | if test "$GCC" != yes; then | |
6221 | reload_cmds=false | |
6222 | fi | |
6223 | ;; | |
6224 | darwin*) | |
6225 | if test "$GCC" = yes; then | |
6226 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6227 | else | |
6228 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6229 | fi | |
6230 | ;; | |
9c60689e DWT |
6231 | esac |
6232 | ||
9c60689e | 6233 | |
9c60689e | 6234 | |
9c60689e | 6235 | |
9c60689e | 6236 | |
9c60689e | 6237 | |
9c60689e | 6238 | |
9c60689e | 6239 | |
9c60689e | 6240 | |
a243b558 JF |
6241 | if test -n "$ac_tool_prefix"; then |
6242 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6243 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
6244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6245 | $as_echo_n "checking for $ac_word... " >&6; } | |
6246 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
6247 | $as_echo_n "(cached) " >&6 | |
6248 | else | |
6249 | if test -n "$OBJDUMP"; then | |
6250 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
6251 | else | |
6252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6253 | for as_dir in $PATH | |
6254 | do | |
6255 | IFS=$as_save_IFS | |
6256 | test -z "$as_dir" && as_dir=. | |
6257 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6258 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6259 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
6260 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6261 | break 2 | |
6262 | fi | |
6263 | done | |
6264 | done | |
6265 | IFS=$as_save_IFS | |
9c60689e | 6266 | |
a243b558 JF |
6267 | fi |
6268 | fi | |
6269 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
6270 | if test -n "$OBJDUMP"; then | |
6271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
6272 | $as_echo "$OBJDUMP" >&6; } | |
6273 | else | |
6274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6275 | $as_echo "no" >&6; } | |
6276 | fi | |
9c60689e | 6277 | |
9c60689e | 6278 | |
a243b558 JF |
6279 | fi |
6280 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
6281 | ac_ct_OBJDUMP=$OBJDUMP | |
6282 | # Extract the first word of "objdump", so it can be a program name with args. | |
6283 | set dummy objdump; ac_word=$2 | |
6284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6285 | $as_echo_n "checking for $ac_word... " >&6; } | |
6286 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
6287 | $as_echo_n "(cached) " >&6 | |
6288 | else | |
6289 | if test -n "$ac_ct_OBJDUMP"; then | |
6290 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6291 | else | |
6292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6293 | for as_dir in $PATH | |
6294 | do | |
6295 | IFS=$as_save_IFS | |
6296 | test -z "$as_dir" && as_dir=. | |
6297 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6298 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6299 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
6300 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6301 | break 2 | |
9c60689e DWT |
6302 | fi |
6303 | done | |
a243b558 JF |
6304 | done |
6305 | IFS=$as_save_IFS | |
9c60689e DWT |
6306 | |
6307 | fi | |
9c60689e | 6308 | fi |
a243b558 JF |
6309 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
6310 | if test -n "$ac_ct_OBJDUMP"; then | |
6311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
6312 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
9c60689e | 6313 | else |
a243b558 JF |
6314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6315 | $as_echo "no" >&6; } | |
9c60689e DWT |
6316 | fi |
6317 | ||
a243b558 JF |
6318 | if test "x$ac_ct_OBJDUMP" = x; then |
6319 | OBJDUMP="false" | |
6320 | else | |
6321 | case $cross_compiling:$ac_tool_warned in | |
6322 | yes:) | |
6323 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6324 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6325 | ac_tool_warned=yes ;; | |
6326 | esac | |
6327 | OBJDUMP=$ac_ct_OBJDUMP | |
6328 | fi | |
6329 | else | |
6330 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
ee134472 JF |
6331 | fi |
6332 | ||
a243b558 | 6333 | test -z "$OBJDUMP" && OBJDUMP=objdump |
ee134472 JF |
6334 | |
6335 | ||
6336 | ||
6337 | ||
6338 | ||
6339 | ||
6340 | ||
6341 | ||
6342 | ||
a243b558 JF |
6343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
6344 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6345 | if ${lt_cv_deplibs_check_method+:} false; then : | |
6346 | $as_echo_n "(cached) " >&6 | |
6347 | else | |
6348 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6349 | lt_cv_file_magic_test_file= | |
6350 | lt_cv_deplibs_check_method='unknown' | |
6351 | # Need to set the preceding variable on all platforms that support | |
6352 | # interlibrary dependencies. | |
6353 | # 'none' -- dependencies not supported. | |
6354 | # `unknown' -- same as none, but documents that we really don't know. | |
6355 | # 'pass_all' -- all dependencies passed with no checks. | |
6356 | # 'test_compile' -- check by making test program. | |
6357 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6358 | # which responds to the $file_magic_cmd with a given extended regex. | |
6359 | # If you have `file' or equivalent on your system and you're not sure | |
6360 | # whether `pass_all' will *always* work, you probably want this one. | |
9c60689e | 6361 | |
a243b558 JF |
6362 | case $host_os in |
6363 | aix[4-9]*) | |
6364 | lt_cv_deplibs_check_method=pass_all | |
6365 | ;; | |
9c60689e | 6366 | |
a243b558 JF |
6367 | beos*) |
6368 | lt_cv_deplibs_check_method=pass_all | |
6369 | ;; | |
9c60689e | 6370 | |
a243b558 JF |
6371 | bsdi[45]*) |
6372 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6373 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6374 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6375 | ;; | |
9c60689e | 6376 | |
a243b558 JF |
6377 | cygwin*) |
6378 | # func_win32_libid is a shell function defined in ltmain.sh | |
6379 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6380 | lt_cv_file_magic_cmd='func_win32_libid' | |
6381 | ;; | |
9c60689e | 6382 | |
a243b558 JF |
6383 | mingw* | pw32*) |
6384 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6385 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6386 | # unless we find 'file', for example because we are cross-compiling. | |
6387 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
6388 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
6389 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6390 | lt_cv_file_magic_cmd='func_win32_libid' | |
6391 | else | |
6392 | # Keep this pattern in sync with the one in func_win32_libid. | |
6393 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
6394 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6395 | fi | |
6396 | ;; | |
9c60689e | 6397 | |
a243b558 JF |
6398 | cegcc*) |
6399 | # use the weaker test based on 'objdump'. See mingw*. | |
6400 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6401 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6402 | ;; | |
9c60689e | 6403 | |
a243b558 JF |
6404 | darwin* | rhapsody*) |
6405 | lt_cv_deplibs_check_method=pass_all | |
6406 | ;; | |
9c60689e | 6407 | |
a243b558 JF |
6408 | freebsd* | dragonfly*) |
6409 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6410 | case $host_cpu in | |
6411 | i*86 ) | |
6412 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6413 | # Let's accept both of them until this is cleared up. | |
6414 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6415 | lt_cv_file_magic_cmd=/usr/bin/file | |
6416 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6417 | ;; | |
6418 | esac | |
6419 | else | |
6420 | lt_cv_deplibs_check_method=pass_all | |
6421 | fi | |
6422 | ;; | |
9c60689e | 6423 | |
a243b558 JF |
6424 | gnu*) |
6425 | lt_cv_deplibs_check_method=pass_all | |
6426 | ;; | |
9c60689e | 6427 | |
a243b558 JF |
6428 | haiku*) |
6429 | lt_cv_deplibs_check_method=pass_all | |
6430 | ;; | |
9c60689e | 6431 | |
a243b558 JF |
6432 | hpux10.20* | hpux11*) |
6433 | lt_cv_file_magic_cmd=/usr/bin/file | |
6434 | case $host_cpu in | |
6435 | ia64*) | |
6436 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6437 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6438 | ;; | |
6439 | hppa*64*) | |
6440 | 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]' | |
6441 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6442 | ;; | |
6443 | *) | |
6444 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6445 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6446 | ;; | |
6447 | esac | |
6448 | ;; | |
9c60689e | 6449 | |
a243b558 JF |
6450 | interix[3-9]*) |
6451 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6452 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6453 | ;; | |
9c60689e | 6454 | |
a243b558 JF |
6455 | irix5* | irix6* | nonstopux*) |
6456 | case $LD in | |
6457 | *-32|*"-32 ") libmagic=32-bit;; | |
6458 | *-n32|*"-n32 ") libmagic=N32;; | |
6459 | *-64|*"-64 ") libmagic=64-bit;; | |
6460 | *) libmagic=never-match;; | |
6461 | esac | |
6462 | lt_cv_deplibs_check_method=pass_all | |
6463 | ;; | |
9c60689e | 6464 | |
a243b558 JF |
6465 | # This must be glibc/ELF. |
6466 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
6467 | lt_cv_deplibs_check_method=pass_all | |
6468 | ;; | |
9c60689e | 6469 | |
a243b558 JF |
6470 | netbsd*) |
6471 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6472 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6473 | else | |
6474 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6475 | fi | |
6476 | ;; | |
9c60689e | 6477 | |
a243b558 JF |
6478 | newos6*) |
6479 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6480 | lt_cv_file_magic_cmd=/usr/bin/file | |
6481 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6482 | ;; | |
9c60689e | 6483 | |
a243b558 JF |
6484 | *nto* | *qnx*) |
6485 | lt_cv_deplibs_check_method=pass_all | |
6486 | ;; | |
9c60689e | 6487 | |
a243b558 JF |
6488 | openbsd*) |
6489 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6490 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6491 | else | |
6492 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6493 | fi | |
6494 | ;; | |
9c60689e | 6495 | |
a243b558 JF |
6496 | osf3* | osf4* | osf5*) |
6497 | lt_cv_deplibs_check_method=pass_all | |
6498 | ;; | |
9c60689e | 6499 | |
a243b558 JF |
6500 | rdos*) |
6501 | lt_cv_deplibs_check_method=pass_all | |
9c60689e | 6502 | ;; |
a243b558 JF |
6503 | |
6504 | solaris*) | |
6505 | lt_cv_deplibs_check_method=pass_all | |
9c60689e DWT |
6506 | ;; |
6507 | ||
a243b558 JF |
6508 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
6509 | lt_cv_deplibs_check_method=pass_all | |
9c60689e DWT |
6510 | ;; |
6511 | ||
a243b558 JF |
6512 | sysv4 | sysv4.3*) |
6513 | case $host_vendor in | |
6514 | motorola) | |
6515 | 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]' | |
6516 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6517 | ;; | |
6518 | ncr) | |
6519 | lt_cv_deplibs_check_method=pass_all | |
6520 | ;; | |
6521 | sequent) | |
6522 | lt_cv_file_magic_cmd='/bin/file' | |
6523 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6524 | ;; | |
6525 | sni) | |
6526 | lt_cv_file_magic_cmd='/bin/file' | |
6527 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6528 | lt_cv_file_magic_test_file=/lib/libc.so | |
6529 | ;; | |
6530 | siemens) | |
6531 | lt_cv_deplibs_check_method=pass_all | |
6532 | ;; | |
6533 | pc) | |
6534 | lt_cv_deplibs_check_method=pass_all | |
6535 | ;; | |
6536 | esac | |
6537 | ;; | |
9c60689e | 6538 | |
a243b558 JF |
6539 | tpf*) |
6540 | lt_cv_deplibs_check_method=pass_all | |
6541 | ;; | |
6542 | esac | |
9c60689e | 6543 | |
a243b558 JF |
6544 | fi |
6545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6546 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
9c60689e | 6547 | |
a243b558 JF |
6548 | file_magic_glob= |
6549 | want_nocaseglob=no | |
6550 | if test "$build" = "$host"; then | |
6551 | case $host_os in | |
6552 | mingw* | pw32*) | |
6553 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
6554 | want_nocaseglob=yes | |
6555 | else | |
6556 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
6557 | fi | |
6558 | ;; | |
6559 | esac | |
9c60689e | 6560 | fi |
9c60689e | 6561 | |
a243b558 JF |
6562 | file_magic_cmd=$lt_cv_file_magic_cmd |
6563 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6564 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6565 | ||
6566 | ||
6567 | ||
6568 | ||
6569 | ||
6570 | ||
6571 | ||
6572 | ||
6573 | ||
6574 | ||
6575 | ||
6576 | ||
6577 | ||
6578 | ||
6579 | ||
6580 | ||
6581 | ||
6582 | ||
6583 | ||
6584 | ||
9c60689e | 6585 | |
9c60689e | 6586 | |
ee134472 | 6587 | if test -n "$ac_tool_prefix"; then |
a243b558 JF |
6588 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
6589 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
ee134472 JF |
6590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6591 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6592 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
ee134472 JF |
6593 | $as_echo_n "(cached) " >&6 |
6594 | else | |
a243b558 JF |
6595 | if test -n "$DLLTOOL"; then |
6596 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ee134472 JF |
6597 | else |
6598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6599 | for as_dir in $PATH | |
6600 | do | |
6601 | IFS=$as_save_IFS | |
6602 | test -z "$as_dir" && as_dir=. | |
6603 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6604 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6605 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
ee134472 JF |
6606 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6607 | break 2 | |
6608 | fi | |
6609 | done | |
6610 | done | |
6611 | IFS=$as_save_IFS | |
6612 | ||
6613 | fi | |
6614 | fi | |
a243b558 JF |
6615 | DLLTOOL=$ac_cv_prog_DLLTOOL |
6616 | if test -n "$DLLTOOL"; then | |
6617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
6618 | $as_echo "$DLLTOOL" >&6; } | |
ee134472 JF |
6619 | else |
6620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6621 | $as_echo "no" >&6; } | |
6622 | fi | |
6623 | ||
6624 | ||
6625 | fi | |
a243b558 JF |
6626 | if test -z "$ac_cv_prog_DLLTOOL"; then |
6627 | ac_ct_DLLTOOL=$DLLTOOL | |
6628 | # Extract the first word of "dlltool", so it can be a program name with args. | |
6629 | set dummy dlltool; ac_word=$2 | |
ee134472 JF |
6630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6631 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6632 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
ee134472 JF |
6633 | $as_echo_n "(cached) " >&6 |
6634 | else | |
a243b558 JF |
6635 | if test -n "$ac_ct_DLLTOOL"; then |
6636 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
ee134472 JF |
6637 | else |
6638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6639 | for as_dir in $PATH | |
6640 | do | |
6641 | IFS=$as_save_IFS | |
6642 | test -z "$as_dir" && as_dir=. | |
6643 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6644 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6645 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
ee134472 JF |
6646 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6647 | break 2 | |
6648 | fi | |
6649 | done | |
6650 | done | |
6651 | IFS=$as_save_IFS | |
6652 | ||
6653 | fi | |
6654 | fi | |
a243b558 JF |
6655 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
6656 | if test -n "$ac_ct_DLLTOOL"; then | |
6657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
6658 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
ee134472 JF |
6659 | else |
6660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6661 | $as_echo "no" >&6; } | |
6662 | fi | |
6663 | ||
a243b558 JF |
6664 | if test "x$ac_ct_DLLTOOL" = x; then |
6665 | DLLTOOL="false" | |
ee134472 JF |
6666 | else |
6667 | case $cross_compiling:$ac_tool_warned in | |
6668 | yes:) | |
6669 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6670 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6671 | ac_tool_warned=yes ;; | |
6672 | esac | |
a243b558 | 6673 | DLLTOOL=$ac_ct_DLLTOOL |
ee134472 JF |
6674 | fi |
6675 | else | |
a243b558 | 6676 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
ee134472 JF |
6677 | fi |
6678 | ||
a243b558 JF |
6679 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
6680 | ||
6681 | ||
6682 | ||
6683 | ||
6684 | ||
6685 | ||
6686 | ||
6687 | ||
6688 | ||
6689 | ||
6690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
6691 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
6692 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
ee134472 JF |
6693 | $as_echo_n "(cached) " >&6 |
6694 | else | |
a243b558 JF |
6695 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
6696 | ||
6697 | case $host_os in | |
6698 | cygwin* | mingw* | pw32* | cegcc*) | |
6699 | # two different shell functions defined in ltmain.sh | |
6700 | # decide which to use based on capabilities of $DLLTOOL | |
6701 | case `$DLLTOOL --help 2>&1` in | |
6702 | *--identify-strict*) | |
6703 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
6704 | ;; | |
6705 | *) | |
6706 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
6707 | ;; | |
6708 | esac | |
6709 | ;; | |
6710 | *) | |
6711 | # fallback: assume linklib IS sharedlib | |
6712 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" | |
6713 | ;; | |
6714 | esac | |
6715 | ||
ee134472 | 6716 | fi |
a243b558 JF |
6717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
6718 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
6719 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
6720 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
ee134472 JF |
6721 | |
6722 | ||
6723 | ||
6724 | ||
6725 | ||
9c60689e | 6726 | |
a243b558 JF |
6727 | |
6728 | if test -n "$ac_tool_prefix"; then | |
6729 | for ac_prog in ar | |
6730 | do | |
6731 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6732 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
9c60689e DWT |
6733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6734 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6735 | if ${ac_cv_prog_AR+:} false; then : |
9c60689e DWT |
6736 | $as_echo_n "(cached) " >&6 |
6737 | else | |
a243b558 JF |
6738 | if test -n "$AR"; then |
6739 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9c60689e DWT |
6740 | else |
6741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6742 | for as_dir in $PATH | |
6743 | do | |
6744 | IFS=$as_save_IFS | |
6745 | test -z "$as_dir" && as_dir=. | |
6746 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6747 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6748 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
9c60689e DWT |
6749 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6750 | break 2 | |
6751 | fi | |
6752 | done | |
6753 | done | |
6754 | IFS=$as_save_IFS | |
6755 | ||
6756 | fi | |
6757 | fi | |
a243b558 JF |
6758 | AR=$ac_cv_prog_AR |
6759 | if test -n "$AR"; then | |
6760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6761 | $as_echo "$AR" >&6; } | |
9c60689e DWT |
6762 | else |
6763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6764 | $as_echo "no" >&6; } | |
6765 | fi | |
6766 | ||
6767 | ||
a243b558 JF |
6768 | test -n "$AR" && break |
6769 | done | |
9c60689e | 6770 | fi |
a243b558 JF |
6771 | if test -z "$AR"; then |
6772 | ac_ct_AR=$AR | |
6773 | for ac_prog in ar | |
6774 | do | |
6775 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6776 | set dummy $ac_prog; ac_word=$2 | |
9c60689e DWT |
6777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6778 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6779 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
9c60689e DWT |
6780 | $as_echo_n "(cached) " >&6 |
6781 | else | |
a243b558 JF |
6782 | if test -n "$ac_ct_AR"; then |
6783 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
9c60689e DWT |
6784 | else |
6785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6786 | for as_dir in $PATH | |
6787 | do | |
6788 | IFS=$as_save_IFS | |
6789 | test -z "$as_dir" && as_dir=. | |
6790 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6791 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6792 | ac_cv_prog_ac_ct_AR="$ac_prog" |
9c60689e DWT |
6793 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6794 | break 2 | |
6795 | fi | |
6796 | done | |
6797 | done | |
6798 | IFS=$as_save_IFS | |
6799 | ||
6800 | fi | |
6801 | fi | |
a243b558 JF |
6802 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6803 | if test -n "$ac_ct_AR"; then | |
6804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6805 | $as_echo "$ac_ct_AR" >&6; } | |
9c60689e DWT |
6806 | else |
6807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6808 | $as_echo "no" >&6; } | |
6809 | fi | |
6810 | ||
a243b558 JF |
6811 | |
6812 | test -n "$ac_ct_AR" && break | |
6813 | done | |
6814 | ||
6815 | if test "x$ac_ct_AR" = x; then | |
6816 | AR="false" | |
9c60689e DWT |
6817 | else |
6818 | case $cross_compiling:$ac_tool_warned in | |
6819 | yes:) | |
6820 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6821 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6822 | ac_tool_warned=yes ;; | |
6823 | esac | |
a243b558 | 6824 | AR=$ac_ct_AR |
9c60689e | 6825 | fi |
a243b558 JF |
6826 | fi |
6827 | ||
6828 | : ${AR=ar} | |
6829 | : ${AR_FLAGS=cru} | |
6830 | ||
6831 | ||
6832 | ||
6833 | ||
6834 | ||
6835 | ||
6836 | ||
6837 | ||
6838 | ||
6839 | ||
6840 | ||
6841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
6842 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
6843 | if ${lt_cv_ar_at_file+:} false; then : | |
6844 | $as_echo_n "(cached) " >&6 | |
9c60689e | 6845 | else |
a243b558 JF |
6846 | lt_cv_ar_at_file=no |
6847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6848 | /* end confdefs.h. */ | |
6849 | ||
6850 | int | |
6851 | main () | |
6852 | { | |
6853 | ||
6854 | ; | |
6855 | return 0; | |
6856 | } | |
6857 | _ACEOF | |
6858 | if ac_fn_c_try_compile "$LINENO"; then : | |
6859 | echo conftest.$ac_objext > conftest.lst | |
6860 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
6861 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6862 | (eval $lt_ar_try) 2>&5 | |
6863 | ac_status=$? | |
6864 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6865 | test $ac_status = 0; } | |
6866 | if test "$ac_status" -eq 0; then | |
6867 | # Ensure the archiver fails upon bogus file names. | |
6868 | rm -f conftest.$ac_objext libconftest.a | |
6869 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6870 | (eval $lt_ar_try) 2>&5 | |
6871 | ac_status=$? | |
6872 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6873 | test $ac_status = 0; } | |
6874 | if test "$ac_status" -ne 0; then | |
6875 | lt_cv_ar_at_file=@ | |
6876 | fi | |
6877 | fi | |
6878 | rm -f conftest.* libconftest.a | |
6879 | ||
9c60689e | 6880 | fi |
a243b558 | 6881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9c60689e | 6882 | |
a243b558 JF |
6883 | fi |
6884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
6885 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
6886 | ||
6887 | if test "x$lt_cv_ar_at_file" = xno; then | |
6888 | archiver_list_spec= | |
6889 | else | |
6890 | archiver_list_spec=$lt_cv_ar_at_file | |
6891 | fi | |
6892 | ||
6893 | ||
6894 | ||
6895 | ||
6896 | ||
6897 | ||
6898 | ||
6899 | if test -n "$ac_tool_prefix"; then | |
6900 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6901 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
9c60689e DWT |
6902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6903 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6904 | if ${ac_cv_prog_STRIP+:} false; then : |
9c60689e DWT |
6905 | $as_echo_n "(cached) " >&6 |
6906 | else | |
a243b558 JF |
6907 | if test -n "$STRIP"; then |
6908 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9c60689e DWT |
6909 | else |
6910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6911 | for as_dir in $PATH | |
6912 | do | |
6913 | IFS=$as_save_IFS | |
6914 | test -z "$as_dir" && as_dir=. | |
6915 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6916 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6917 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
9c60689e DWT |
6918 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6919 | break 2 | |
6920 | fi | |
6921 | done | |
6922 | done | |
6923 | IFS=$as_save_IFS | |
6924 | ||
6925 | fi | |
6926 | fi | |
a243b558 JF |
6927 | STRIP=$ac_cv_prog_STRIP |
6928 | if test -n "$STRIP"; then | |
6929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6930 | $as_echo "$STRIP" >&6; } | |
9c60689e DWT |
6931 | else |
6932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6933 | $as_echo "no" >&6; } | |
6934 | fi | |
6935 | ||
6936 | ||
6937 | fi | |
a243b558 JF |
6938 | if test -z "$ac_cv_prog_STRIP"; then |
6939 | ac_ct_STRIP=$STRIP | |
6940 | # Extract the first word of "strip", so it can be a program name with args. | |
6941 | set dummy strip; ac_word=$2 | |
9c60689e DWT |
6942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6943 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6944 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
9c60689e DWT |
6945 | $as_echo_n "(cached) " >&6 |
6946 | else | |
a243b558 JF |
6947 | if test -n "$ac_ct_STRIP"; then |
6948 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
9c60689e DWT |
6949 | else |
6950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6951 | for as_dir in $PATH | |
6952 | do | |
6953 | IFS=$as_save_IFS | |
6954 | test -z "$as_dir" && as_dir=. | |
6955 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6956 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6957 | ac_cv_prog_ac_ct_STRIP="strip" |
9c60689e DWT |
6958 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6959 | break 2 | |
6960 | fi | |
6961 | done | |
6962 | done | |
6963 | IFS=$as_save_IFS | |
6964 | ||
6965 | fi | |
6966 | fi | |
a243b558 JF |
6967 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6968 | if test -n "$ac_ct_STRIP"; then | |
6969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6970 | $as_echo "$ac_ct_STRIP" >&6; } | |
9c60689e DWT |
6971 | else |
6972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6973 | $as_echo "no" >&6; } | |
6974 | fi | |
6975 | ||
a243b558 JF |
6976 | if test "x$ac_ct_STRIP" = x; then |
6977 | STRIP=":" | |
9c60689e DWT |
6978 | else |
6979 | case $cross_compiling:$ac_tool_warned in | |
6980 | yes:) | |
6981 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6982 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6983 | ac_tool_warned=yes ;; | |
6984 | esac | |
a243b558 | 6985 | STRIP=$ac_ct_STRIP |
9c60689e DWT |
6986 | fi |
6987 | else | |
a243b558 | 6988 | STRIP="$ac_cv_prog_STRIP" |
9c60689e DWT |
6989 | fi |
6990 | ||
a243b558 JF |
6991 | test -z "$STRIP" && STRIP=: |
6992 | ||
6993 | ||
6994 | ||
6995 | ||
6996 | ||
6997 | ||
6998 | if test -n "$ac_tool_prefix"; then | |
6999 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7000 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
9c60689e DWT |
7001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7002 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 7003 | if ${ac_cv_prog_RANLIB+:} false; then : |
9c60689e DWT |
7004 | $as_echo_n "(cached) " >&6 |
7005 | else | |
a243b558 JF |
7006 | if test -n "$RANLIB"; then |
7007 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9c60689e DWT |
7008 | else |
7009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7010 | for as_dir in $PATH | |
7011 | do | |
7012 | IFS=$as_save_IFS | |
7013 | test -z "$as_dir" && as_dir=. | |
7014 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 7015 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 7016 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
9c60689e DWT |
7017 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7018 | break 2 | |
7019 | fi | |
7020 | done | |
7021 | done | |
7022 | IFS=$as_save_IFS | |
7023 | ||
7024 | fi | |
7025 | fi | |
a243b558 JF |
7026 | RANLIB=$ac_cv_prog_RANLIB |
7027 | if test -n "$RANLIB"; then | |
7028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
7029 | $as_echo "$RANLIB" >&6; } | |
9c60689e DWT |
7030 | else |
7031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7032 | $as_echo "no" >&6; } | |
7033 | fi | |
7034 | ||
7035 | ||
7036 | fi | |
a243b558 JF |
7037 | if test -z "$ac_cv_prog_RANLIB"; then |
7038 | ac_ct_RANLIB=$RANLIB | |
7039 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7040 | set dummy ranlib; ac_word=$2 | |
9c60689e DWT |
7041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7042 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 7043 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
9c60689e DWT |
7044 | $as_echo_n "(cached) " >&6 |
7045 | else | |
a243b558 JF |
7046 | if test -n "$ac_ct_RANLIB"; then |
7047 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
9c60689e DWT |
7048 | else |
7049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7050 | for as_dir in $PATH | |
7051 | do | |
7052 | IFS=$as_save_IFS | |
7053 | test -z "$as_dir" && as_dir=. | |
7054 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 7055 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 7056 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
9c60689e DWT |
7057 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7058 | break 2 | |
7059 | fi | |
7060 | done | |
7061 | done | |
7062 | IFS=$as_save_IFS | |
7063 | ||
7064 | fi | |
7065 | fi | |
a243b558 JF |
7066 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
7067 | if test -n "$ac_ct_RANLIB"; then | |
7068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
7069 | $as_echo "$ac_ct_RANLIB" >&6; } | |
9c60689e DWT |
7070 | else |
7071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7072 | $as_echo "no" >&6; } | |
7073 | fi | |
7074 | ||
a243b558 JF |
7075 | if test "x$ac_ct_RANLIB" = x; then |
7076 | RANLIB=":" | |
9c60689e DWT |
7077 | else |
7078 | case $cross_compiling:$ac_tool_warned in | |
7079 | yes:) | |
7080 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7081 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7082 | ac_tool_warned=yes ;; | |
7083 | esac | |
a243b558 | 7084 | RANLIB=$ac_ct_RANLIB |
9c60689e DWT |
7085 | fi |
7086 | else | |
a243b558 | 7087 | RANLIB="$ac_cv_prog_RANLIB" |
9c60689e DWT |
7088 | fi |
7089 | ||
a243b558 JF |
7090 | test -z "$RANLIB" && RANLIB=: |
7091 | ||
7092 | ||
9c60689e | 7093 | |
9c60689e DWT |
7094 | |
7095 | ||
a243b558 JF |
7096 | |
7097 | # Determine commands to create old-style static archives. | |
7098 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
7099 | old_postinstall_cmds='chmod 644 $oldlib' | |
7100 | old_postuninstall_cmds= | |
7101 | ||
7102 | if test -n "$RANLIB"; then | |
7103 | case $host_os in | |
7104 | openbsd*) | |
7105 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |
7106 | ;; | |
7107 | *) | |
7108 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
7109 | ;; | |
7110 | esac | |
7111 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
9c60689e DWT |
7112 | fi |
7113 | ||
a243b558 JF |
7114 | case $host_os in |
7115 | darwin*) | |
7116 | lock_old_archive_extraction=yes ;; | |
7117 | *) | |
7118 | lock_old_archive_extraction=no ;; | |
9c60689e | 7119 | esac |
9c60689e | 7120 | |
9c60689e | 7121 | |
9c60689e DWT |
7122 | |
7123 | ||
9c60689e | 7124 | |
9c60689e | 7125 | |
9c60689e DWT |
7126 | |
7127 | ||
7128 | ||
7129 | ||
7130 | ||
7131 | ||
7132 | ||
7133 | ||
7134 | ||
7135 | ||
7136 | ||
7137 | ||
7138 | ||
7139 | ||
7140 | ||
7141 | ||
7142 | ||
7143 | ||
7144 | ||
7145 | ||
7146 | ||
7147 | ||
7148 | ||
7149 | ||
7150 | ||
7151 | ||
7152 | ||
53ba6704 | 7153 | |
9c60689e | 7154 | |
9c60689e | 7155 | |
9c60689e | 7156 | |
53ba6704 | 7157 | |
a243b558 JF |
7158 | |
7159 | # If no C compiler was specified, use CC. | |
7160 | LTCC=${LTCC-"$CC"} | |
7161 | ||
7162 | # If no C compiler flags were specified, use CFLAGS. | |
7163 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7164 | ||
7165 | # Allow CC to be a program name with arguments. | |
7166 | compiler=$CC | |
7167 | ||
7168 | ||
7169 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
7170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
7171 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
7172 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
ee134472 JF |
7173 | $as_echo_n "(cached) " >&6 |
7174 | else | |
ee134472 | 7175 | |
a243b558 JF |
7176 | # These are sane defaults that work on at least a few old systems. |
7177 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
9c60689e | 7178 | |
a243b558 JF |
7179 | # Character class describing NM global symbol codes. |
7180 | symcode='[BCDEGRST]' | |
9c60689e | 7181 | |
a243b558 JF |
7182 | # Regexp to match symbols that can be accessed directly from C. |
7183 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
9c60689e | 7184 | |
a243b558 JF |
7185 | # Define system-specific variables. |
7186 | case $host_os in | |
7187 | aix*) | |
7188 | symcode='[BCDT]' | |
7189 | ;; | |
7190 | cygwin* | mingw* | pw32* | cegcc*) | |
7191 | symcode='[ABCDGISTW]' | |
7192 | ;; | |
7193 | hpux*) | |
7194 | if test "$host_cpu" = ia64; then | |
7195 | symcode='[ABCDEGRST]' | |
7196 | fi | |
7197 | ;; | |
7198 | irix* | nonstopux*) | |
7199 | symcode='[BCDEGRST]' | |
7200 | ;; | |
7201 | osf*) | |
7202 | symcode='[BCDEGQRST]' | |
7203 | ;; | |
7204 | solaris*) | |
7205 | symcode='[BDRT]' | |
7206 | ;; | |
7207 | sco3.2v5*) | |
7208 | symcode='[DT]' | |
7209 | ;; | |
7210 | sysv4.2uw2*) | |
7211 | symcode='[DT]' | |
7212 | ;; | |
7213 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7214 | symcode='[ABDT]' | |
7215 | ;; | |
7216 | sysv4) | |
7217 | symcode='[DFNSTU]' | |
7218 | ;; | |
7219 | esac | |
9c60689e | 7220 | |
a243b558 JF |
7221 | # If we're using GNU nm, then use its standard symbol codes. |
7222 | case `$NM -V 2>&1` in | |
7223 | *GNU* | *'with BFD'*) | |
7224 | symcode='[ABCDGIRSTW]' ;; | |
7225 | esac | |
9c60689e | 7226 | |
a243b558 JF |
7227 | # Transform an extracted symbol line into a proper C declaration. |
7228 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7229 | # so use this general approach. | |
7230 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
9c60689e | 7231 | |
a243b558 JF |
7232 | # Transform an extracted symbol line into symbol name and symbol address |
7233 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
7234 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | |
9c60689e | 7235 | |
a243b558 JF |
7236 | # Handle CRLF in mingw tool chain |
7237 | opt_cr= | |
7238 | case $build_os in | |
7239 | mingw*) | |
7240 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7241 | ;; | |
7242 | esac | |
9c60689e | 7243 | |
a243b558 JF |
7244 | # Try without a prefix underscore, then with it. |
7245 | for ac_symprfx in "" "_"; do | |
9c60689e | 7246 | |
a243b558 JF |
7247 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
7248 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
9c60689e | 7249 | |
a243b558 JF |
7250 | # Write the raw and C identifiers. |
7251 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7252 | # Fake it for dumpbin and say T for any non-static function | |
7253 | # and D for any global variable. | |
7254 | # Also find C++ and __fastcall symbols from MSVC++, | |
7255 | # which start with @ or ?. | |
7256 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7257 | " {last_section=section; section=\$ 3};"\ | |
7258 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
7259 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7260 | " \$ 0!~/External *\|/{next};"\ | |
7261 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7262 | " {if(hide[section]) next};"\ | |
7263 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7264 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7265 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7266 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7267 | " ' prfx=^$ac_symprfx" | |
7268 | else | |
7269 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7270 | fi | |
7271 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
9c60689e | 7272 | |
a243b558 JF |
7273 | # Check to see that the pipe works correctly. |
7274 | pipe_works=no | |
9c60689e | 7275 | |
a93f15c0 | 7276 | rm -f conftest* |
a243b558 JF |
7277 | cat > conftest.$ac_ext <<_LT_EOF |
7278 | #ifdef __cplusplus | |
7279 | extern "C" { | |
7280 | #endif | |
7281 | char nm_test_var; | |
7282 | void nm_test_func(void); | |
7283 | void nm_test_func(void){} | |
7284 | #ifdef __cplusplus | |
7285 | } | |
7286 | #endif | |
7287 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7288 | _LT_EOF | |
9c60689e | 7289 | |
a243b558 JF |
7290 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7291 | (eval $ac_compile) 2>&5 | |
7292 | ac_status=$? | |
7293 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7294 | test $ac_status = 0; }; then | |
7295 | # Now try to grab the symbols. | |
7296 | nlist=conftest.nm | |
7297 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
7298 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
7299 | ac_status=$? | |
7300 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7301 | test $ac_status = 0; } && test -s "$nlist"; then | |
7302 | # Try sorting and uniquifying the output. | |
7303 | if sort "$nlist" | uniq > "$nlist"T; then | |
7304 | mv -f "$nlist"T "$nlist" | |
7305 | else | |
7306 | rm -f "$nlist"T | |
7307 | fi | |
9c60689e | 7308 | |
a243b558 JF |
7309 | # Make sure that we snagged all the symbols we need. |
7310 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7311 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7312 | cat <<_LT_EOF > conftest.$ac_ext | |
7313 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
7314 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | |
7315 | /* DATA imports from DLLs on WIN32 con't be const, because runtime | |
7316 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
7317 | # define LT_DLSYM_CONST | |
7318 | #elif defined(__osf__) | |
7319 | /* This system does not cope well with relocations in const data. */ | |
7320 | # define LT_DLSYM_CONST | |
7321 | #else | |
7322 | # define LT_DLSYM_CONST const | |
7323 | #endif | |
9c60689e | 7324 | |
a243b558 JF |
7325 | #ifdef __cplusplus |
7326 | extern "C" { | |
7327 | #endif | |
9c60689e | 7328 | |
a243b558 JF |
7329 | _LT_EOF |
7330 | # Now generate the symbol file. | |
7331 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
9c60689e | 7332 | |
a243b558 | 7333 | cat <<_LT_EOF >> conftest.$ac_ext |
9c60689e | 7334 | |
a243b558 JF |
7335 | /* The mapping between symbol names and symbols. */ |
7336 | LT_DLSYM_CONST struct { | |
7337 | const char *name; | |
7338 | void *address; | |
7339 | } | |
7340 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7341 | { | |
7342 | { "@PROGRAM@", (void *) 0 }, | |
7343 | _LT_EOF | |
7344 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7345 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7346 | {0, (void *) 0} | |
7347 | }; | |
9c60689e | 7348 | |
a243b558 JF |
7349 | /* This works around a problem in FreeBSD linker */ |
7350 | #ifdef FREEBSD_WORKAROUND | |
7351 | static const void *lt_preloaded_setup() { | |
7352 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7353 | } | |
7354 | #endif | |
9c60689e | 7355 | |
a243b558 JF |
7356 | #ifdef __cplusplus |
7357 | } | |
7358 | #endif | |
7359 | _LT_EOF | |
7360 | # Now try linking the two files. | |
7361 | mv conftest.$ac_objext conftstm.$ac_objext | |
7362 | lt_globsym_save_LIBS=$LIBS | |
7363 | lt_globsym_save_CFLAGS=$CFLAGS | |
7364 | LIBS="conftstm.$ac_objext" | |
7365 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
7366 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
7367 | (eval $ac_link) 2>&5 | |
7368 | ac_status=$? | |
7369 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7370 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7371 | pipe_works=yes | |
7372 | fi | |
7373 | LIBS=$lt_globsym_save_LIBS | |
7374 | CFLAGS=$lt_globsym_save_CFLAGS | |
7375 | else | |
7376 | echo "cannot find nm_test_func in $nlist" >&5 | |
7377 | fi | |
7378 | else | |
7379 | echo "cannot find nm_test_var in $nlist" >&5 | |
7380 | fi | |
7381 | else | |
7382 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7383 | fi | |
7384 | else | |
7385 | echo "$progname: failed program was:" >&5 | |
7386 | cat conftest.$ac_ext >&5 | |
7387 | fi | |
7388 | rm -rf conftest* conftst* | |
9c60689e | 7389 | |
a243b558 JF |
7390 | # Do not use the global_symbol_pipe unless it works. |
7391 | if test "$pipe_works" = yes; then | |
7392 | break | |
7393 | else | |
7394 | lt_cv_sys_global_symbol_pipe= | |
7395 | fi | |
7396 | done | |
9c60689e | 7397 | |
9c60689e | 7398 | fi |
9c60689e | 7399 | |
a243b558 JF |
7400 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
7401 | lt_cv_sys_global_symbol_to_cdecl= | |
9c60689e | 7402 | fi |
a243b558 JF |
7403 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
7404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
7405 | $as_echo "failed" >&6; } | |
9c60689e | 7406 | else |
a243b558 JF |
7407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7408 | $as_echo "ok" >&6; } | |
9c60689e DWT |
7409 | fi |
7410 | ||
a243b558 JF |
7411 | # Response file support. |
7412 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7413 | nm_file_list_spec='@' | |
7414 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
7415 | nm_file_list_spec='@' | |
9c60689e | 7416 | fi |
9c60689e | 7417 | |
9c60689e | 7418 | |
9c60689e | 7419 | |
9c60689e | 7420 | |
9c60689e | 7421 | |
9c60689e DWT |
7422 | |
7423 | ||
9c60689e | 7424 | |
9c60689e | 7425 | |
9c60689e DWT |
7426 | |
7427 | ||
7428 | ||
ee134472 JF |
7429 | |
7430 | ||
9c60689e DWT |
7431 | |
7432 | ||
7433 | ||
7434 | ||
7435 | ||
7436 | ||
7437 | ||
7438 | ||
7439 | ||
549f29b5 | 7440 | |
549f29b5 DWT |
7441 | |
7442 | ||
549f29b5 | 7443 | |
a243b558 JF |
7444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
7445 | $as_echo_n "checking for sysroot... " >&6; } | |
549f29b5 | 7446 | |
a243b558 JF |
7447 | # Check whether --with-sysroot was given. |
7448 | if test "${with_sysroot+set}" = set; then : | |
7449 | withval=$with_sysroot; | |
9c60689e | 7450 | else |
a243b558 | 7451 | with_sysroot=no |
9c60689e DWT |
7452 | fi |
7453 | ||
7454 | ||
a243b558 JF |
7455 | lt_sysroot= |
7456 | case ${with_sysroot} in #( | |
7457 | yes) | |
7458 | if test "$GCC" = yes; then | |
7459 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
7460 | fi | |
7461 | ;; #( | |
7462 | /*) | |
7463 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
7464 | ;; #( | |
7465 | no|'') | |
7466 | ;; #( | |
7467 | *) | |
7468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 | |
7469 | $as_echo "${with_sysroot}" >&6; } | |
7470 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
7471 | ;; | |
7472 | esac | |
9c60689e | 7473 | |
a243b558 JF |
7474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
7475 | $as_echo "${lt_sysroot:-no}" >&6; } | |
9c60689e DWT |
7476 | |
7477 | ||
7478 | ||
7479 | ||
7480 | ||
a243b558 JF |
7481 | # Check whether --enable-libtool-lock was given. |
7482 | if test "${enable_libtool_lock+set}" = set; then : | |
7483 | enableval=$enable_libtool_lock; | |
9c60689e DWT |
7484 | fi |
7485 | ||
a243b558 | 7486 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
9c60689e | 7487 | |
a243b558 JF |
7488 | # Some flags need to be propagated to the compiler or linker for good |
7489 | # libtool support. | |
7490 | case $host in | |
7491 | ia64-*-hpux*) | |
7492 | # Find out which ABI we are using. | |
7493 | echo 'int i;' > conftest.$ac_ext | |
7494 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7495 | (eval $ac_compile) 2>&5 | |
7496 | ac_status=$? | |
7497 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7498 | test $ac_status = 0; }; then | |
7499 | case `/usr/bin/file conftest.$ac_objext` in | |
7500 | *ELF-32*) | |
7501 | HPUX_IA64_MODE="32" | |
7502 | ;; | |
7503 | *ELF-64*) | |
7504 | HPUX_IA64_MODE="64" | |
7505 | ;; | |
7506 | esac | |
7507 | fi | |
7508 | rm -rf conftest* | |
7509 | ;; | |
7510 | *-*-irix6*) | |
7511 | # Find out which ABI we are using. | |
7512 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7513 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7514 | (eval $ac_compile) 2>&5 | |
7515 | ac_status=$? | |
7516 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7517 | test $ac_status = 0; }; then | |
7518 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
7519 | case `/usr/bin/file conftest.$ac_objext` in | |
7520 | *32-bit*) | |
7521 | LD="${LD-ld} -melf32bsmip" | |
7522 | ;; | |
7523 | *N32*) | |
7524 | LD="${LD-ld} -melf32bmipn32" | |
7525 | ;; | |
7526 | *64-bit*) | |
7527 | LD="${LD-ld} -melf64bmip" | |
7528 | ;; | |
7529 | esac | |
7530 | else | |
7531 | case `/usr/bin/file conftest.$ac_objext` in | |
7532 | *32-bit*) | |
7533 | LD="${LD-ld} -32" | |
7534 | ;; | |
7535 | *N32*) | |
7536 | LD="${LD-ld} -n32" | |
7537 | ;; | |
7538 | *64-bit*) | |
7539 | LD="${LD-ld} -64" | |
7540 | ;; | |
7541 | esac | |
7542 | fi | |
7543 | fi | |
7544 | rm -rf conftest* | |
7545 | ;; | |
9c60689e | 7546 | |
a243b558 JF |
7547 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
7548 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
7549 | # Find out which ABI we are using. | |
7550 | echo 'int i;' > conftest.$ac_ext | |
7551 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7552 | (eval $ac_compile) 2>&5 | |
7553 | ac_status=$? | |
7554 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7555 | test $ac_status = 0; }; then | |
7556 | case `/usr/bin/file conftest.o` in | |
7557 | *32-bit*) | |
7558 | case $host in | |
7559 | x86_64-*kfreebsd*-gnu) | |
7560 | LD="${LD-ld} -m elf_i386_fbsd" | |
7561 | ;; | |
7562 | x86_64-*linux*) | |
7563 | LD="${LD-ld} -m elf_i386" | |
7564 | ;; | |
7565 | ppc64-*linux*|powerpc64-*linux*) | |
7566 | LD="${LD-ld} -m elf32ppclinux" | |
7567 | ;; | |
7568 | s390x-*linux*) | |
7569 | LD="${LD-ld} -m elf_s390" | |
7570 | ;; | |
7571 | sparc64-*linux*) | |
7572 | LD="${LD-ld} -m elf32_sparc" | |
7573 | ;; | |
7574 | esac | |
7575 | ;; | |
7576 | *64-bit*) | |
7577 | case $host in | |
7578 | x86_64-*kfreebsd*-gnu) | |
7579 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7580 | ;; | |
7581 | x86_64-*linux*) | |
7582 | LD="${LD-ld} -m elf_x86_64" | |
7583 | ;; | |
7584 | ppc*-*linux*|powerpc*-*linux*) | |
7585 | LD="${LD-ld} -m elf64ppc" | |
7586 | ;; | |
7587 | s390*-*linux*|s390*-*tpf*) | |
7588 | LD="${LD-ld} -m elf64_s390" | |
7589 | ;; | |
7590 | sparc*-*linux*) | |
7591 | LD="${LD-ld} -m elf64_sparc" | |
7592 | ;; | |
7593 | esac | |
7594 | ;; | |
7595 | esac | |
7596 | fi | |
7597 | rm -rf conftest* | |
7598 | ;; | |
9c60689e | 7599 | |
a243b558 JF |
7600 | *-*-sco3.2v5*) |
7601 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7602 | SAVE_CFLAGS="$CFLAGS" | |
7603 | CFLAGS="$CFLAGS -belf" | |
7604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
7605 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7606 | if ${lt_cv_cc_needs_belf+:} false; then : | |
7607 | $as_echo_n "(cached) " >&6 | |
7608 | else | |
7609 | ac_ext=c | |
7610 | ac_cpp='$CPP $CPPFLAGS' | |
7611 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7612 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7613 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 7614 | |
a243b558 JF |
7615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7616 | /* end confdefs.h. */ | |
9c60689e | 7617 | |
a243b558 JF |
7618 | int |
7619 | main () | |
7620 | { | |
9c60689e | 7621 | |
a243b558 JF |
7622 | ; |
7623 | return 0; | |
7624 | } | |
7625 | _ACEOF | |
7626 | if ac_fn_c_try_link "$LINENO"; then : | |
7627 | lt_cv_cc_needs_belf=yes | |
9c60689e | 7628 | else |
a243b558 | 7629 | lt_cv_cc_needs_belf=no |
9c60689e | 7630 | fi |
a243b558 JF |
7631 | rm -f core conftest.err conftest.$ac_objext \ |
7632 | conftest$ac_exeext conftest.$ac_ext | |
7633 | ac_ext=c | |
7634 | ac_cpp='$CPP $CPPFLAGS' | |
7635 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7636 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7637 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 7638 | |
a243b558 JF |
7639 | fi |
7640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7641 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7642 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7643 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7644 | CFLAGS="$SAVE_CFLAGS" | |
7645 | fi | |
7646 | ;; | |
7647 | *-*solaris*) | |
7648 | # Find out which ABI we are using. | |
7649 | echo 'int i;' > conftest.$ac_ext | |
7650 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7651 | (eval $ac_compile) 2>&5 | |
7652 | ac_status=$? | |
7653 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7654 | test $ac_status = 0; }; then | |
7655 | case `/usr/bin/file conftest.o` in | |
7656 | *64-bit*) | |
7657 | case $lt_cv_prog_gnu_ld in | |
7658 | yes*) | |
7659 | case $host in | |
7660 | i?86-*-solaris*) | |
7661 | LD="${LD-ld} -m elf_x86_64" | |
7662 | ;; | |
7663 | sparc*-*-solaris*) | |
7664 | LD="${LD-ld} -m elf64_sparc" | |
7665 | ;; | |
7666 | esac | |
7667 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
7668 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
7669 | LD="${LD-ld}_sol2" | |
7670 | fi | |
7671 | ;; | |
7672 | *) | |
7673 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7674 | LD="${LD-ld} -64" | |
7675 | fi | |
7676 | ;; | |
7677 | esac | |
7678 | ;; | |
7679 | esac | |
7680 | fi | |
7681 | rm -rf conftest* | |
7682 | ;; | |
7683 | esac | |
9c60689e | 7684 | |
a243b558 | 7685 | need_locks="$enable_libtool_lock" |
9c60689e | 7686 | |
a243b558 JF |
7687 | if test -n "$ac_tool_prefix"; then |
7688 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
7689 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
7690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7691 | $as_echo_n "checking for $ac_word... " >&6; } | |
7692 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
7693 | $as_echo_n "(cached) " >&6 | |
7694 | else | |
7695 | if test -n "$MANIFEST_TOOL"; then | |
7696 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
7697 | else | |
7698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7699 | for as_dir in $PATH | |
7700 | do | |
7701 | IFS=$as_save_IFS | |
7702 | test -z "$as_dir" && as_dir=. | |
7703 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7704 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7705 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
7706 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7707 | break 2 | |
7708 | fi | |
7709 | done | |
7710 | done | |
7711 | IFS=$as_save_IFS | |
9c60689e | 7712 | |
a243b558 JF |
7713 | fi |
7714 | fi | |
7715 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
7716 | if test -n "$MANIFEST_TOOL"; then | |
7717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
7718 | $as_echo "$MANIFEST_TOOL" >&6; } | |
7719 | else | |
7720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7721 | $as_echo "no" >&6; } | |
7722 | fi | |
9c60689e DWT |
7723 | |
7724 | ||
a243b558 JF |
7725 | fi |
7726 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
7727 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
7728 | # Extract the first word of "mt", so it can be a program name with args. | |
7729 | set dummy mt; ac_word=$2 | |
7730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7731 | $as_echo_n "checking for $ac_word... " >&6; } | |
7732 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
7733 | $as_echo_n "(cached) " >&6 | |
7734 | else | |
7735 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7736 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
7737 | else | |
7738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7739 | for as_dir in $PATH | |
7740 | do | |
7741 | IFS=$as_save_IFS | |
7742 | test -z "$as_dir" && as_dir=. | |
7743 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7744 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7745 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
7746 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7747 | break 2 | |
7748 | fi | |
7749 | done | |
7750 | done | |
7751 | IFS=$as_save_IFS | |
9c60689e | 7752 | |
a243b558 JF |
7753 | fi |
7754 | fi | |
7755 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
7756 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
7758 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
7759 | else | |
7760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7761 | $as_echo "no" >&6; } | |
7762 | fi | |
9c60689e | 7763 | |
a243b558 JF |
7764 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
7765 | MANIFEST_TOOL=":" | |
7766 | else | |
7767 | case $cross_compiling:$ac_tool_warned in | |
7768 | yes:) | |
7769 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7770 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7771 | ac_tool_warned=yes ;; | |
7772 | esac | |
7773 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
7774 | fi | |
7775 | else | |
7776 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
7777 | fi | |
9c60689e | 7778 | |
a243b558 JF |
7779 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
7780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
7781 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
7782 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
7783 | $as_echo_n "(cached) " >&6 | |
7784 | else | |
7785 | lt_cv_path_mainfest_tool=no | |
7786 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
7787 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
7788 | cat conftest.err >&5 | |
7789 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
7790 | lt_cv_path_mainfest_tool=yes | |
7791 | fi | |
a93f15c0 | 7792 | rm -f conftest* |
a243b558 JF |
7793 | fi |
7794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
7795 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
7796 | if test "x$lt_cv_path_mainfest_tool" != xyes; then | |
7797 | MANIFEST_TOOL=: | |
7798 | fi | |
9c60689e DWT |
7799 | |
7800 | ||
7801 | ||
7802 | ||
7803 | ||
7804 | ||
a243b558 JF |
7805 | case $host_os in |
7806 | rhapsody* | darwin*) | |
7807 | if test -n "$ac_tool_prefix"; then | |
7808 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7809 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7811 | $as_echo_n "checking for $ac_word... " >&6; } | |
7812 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
7813 | $as_echo_n "(cached) " >&6 | |
7814 | else | |
7815 | if test -n "$DSYMUTIL"; then | |
7816 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7817 | else | |
7818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7819 | for as_dir in $PATH | |
7820 | do | |
7821 | IFS=$as_save_IFS | |
7822 | test -z "$as_dir" && as_dir=. | |
7823 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7824 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7825 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7826 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7827 | break 2 | |
7828 | fi | |
7829 | done | |
7830 | done | |
7831 | IFS=$as_save_IFS | |
9c60689e | 7832 | |
a243b558 JF |
7833 | fi |
7834 | fi | |
7835 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7836 | if test -n "$DSYMUTIL"; then | |
7837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7838 | $as_echo "$DSYMUTIL" >&6; } | |
7839 | else | |
7840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7841 | $as_echo "no" >&6; } | |
7842 | fi | |
9c60689e DWT |
7843 | |
7844 | ||
9c60689e | 7845 | fi |
a243b558 JF |
7846 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
7847 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7848 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7849 | set dummy dsymutil; ac_word=$2 | |
7850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7851 | $as_echo_n "checking for $ac_word... " >&6; } | |
7852 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
9c60689e DWT |
7853 | $as_echo_n "(cached) " >&6 |
7854 | else | |
a243b558 JF |
7855 | if test -n "$ac_ct_DSYMUTIL"; then |
7856 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
9c60689e | 7857 | else |
a243b558 JF |
7858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7859 | for as_dir in $PATH | |
7860 | do | |
7861 | IFS=$as_save_IFS | |
7862 | test -z "$as_dir" && as_dir=. | |
7863 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7864 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7865 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
7866 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7867 | break 2 | |
7868 | fi | |
7869 | done | |
7870 | done | |
7871 | IFS=$as_save_IFS | |
7872 | ||
9c60689e | 7873 | fi |
9c60689e | 7874 | fi |
a243b558 JF |
7875 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
7876 | if test -n "$ac_ct_DSYMUTIL"; then | |
7877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7878 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
7879 | else | |
7880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7881 | $as_echo "no" >&6; } | |
7882 | fi | |
9c60689e | 7883 | |
a243b558 JF |
7884 | if test "x$ac_ct_DSYMUTIL" = x; then |
7885 | DSYMUTIL=":" | |
7886 | else | |
7887 | case $cross_compiling:$ac_tool_warned in | |
7888 | yes:) | |
7889 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7890 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7891 | ac_tool_warned=yes ;; | |
9c60689e | 7892 | esac |
a243b558 JF |
7893 | DSYMUTIL=$ac_ct_DSYMUTIL |
7894 | fi | |
7895 | else | |
7896 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7897 | fi | |
9c60689e | 7898 | |
a243b558 JF |
7899 | if test -n "$ac_tool_prefix"; then |
7900 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7901 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
7902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7903 | $as_echo_n "checking for $ac_word... " >&6; } | |
7904 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
9c60689e DWT |
7905 | $as_echo_n "(cached) " >&6 |
7906 | else | |
a243b558 JF |
7907 | if test -n "$NMEDIT"; then |
7908 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7909 | else | |
7910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7911 | for as_dir in $PATH | |
7912 | do | |
7913 | IFS=$as_save_IFS | |
7914 | test -z "$as_dir" && as_dir=. | |
7915 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7916 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7917 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
7918 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7919 | break 2 | |
7920 | fi | |
7921 | done | |
9c60689e | 7922 | done |
a243b558 | 7923 | IFS=$as_save_IFS |
9c60689e | 7924 | |
a243b558 JF |
7925 | fi |
7926 | fi | |
7927 | NMEDIT=$ac_cv_prog_NMEDIT | |
7928 | if test -n "$NMEDIT"; then | |
7929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7930 | $as_echo "$NMEDIT" >&6; } | |
9c60689e DWT |
7931 | else |
7932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7933 | $as_echo "no" >&6; } | |
7934 | fi | |
7935 | ||
7936 | ||
a243b558 JF |
7937 | fi |
7938 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7939 | ac_ct_NMEDIT=$NMEDIT | |
7940 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7941 | set dummy nmedit; ac_word=$2 | |
7942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7943 | $as_echo_n "checking for $ac_word... " >&6; } | |
7944 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
9c60689e DWT |
7945 | $as_echo_n "(cached) " >&6 |
7946 | else | |
a243b558 JF |
7947 | if test -n "$ac_ct_NMEDIT"; then |
7948 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7949 | else | |
7950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7951 | for as_dir in $PATH | |
7952 | do | |
7953 | IFS=$as_save_IFS | |
7954 | test -z "$as_dir" && as_dir=. | |
7955 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7956 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7957 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
7958 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7959 | break 2 | |
7960 | fi | |
7961 | done | |
9c60689e | 7962 | done |
a243b558 | 7963 | IFS=$as_save_IFS |
9c60689e | 7964 | |
a243b558 JF |
7965 | fi |
7966 | fi | |
7967 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7968 | if test -n "$ac_ct_NMEDIT"; then | |
7969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7970 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
9c60689e DWT |
7971 | else |
7972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7973 | $as_echo "no" >&6; } | |
7974 | fi | |
7975 | ||
a243b558 JF |
7976 | if test "x$ac_ct_NMEDIT" = x; then |
7977 | NMEDIT=":" | |
9c60689e | 7978 | else |
a243b558 JF |
7979 | case $cross_compiling:$ac_tool_warned in |
7980 | yes:) | |
7981 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7982 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7983 | ac_tool_warned=yes ;; | |
7984 | esac | |
7985 | NMEDIT=$ac_ct_NMEDIT | |
9c60689e | 7986 | fi |
a243b558 JF |
7987 | else |
7988 | NMEDIT="$ac_cv_prog_NMEDIT" | |
9c60689e DWT |
7989 | fi |
7990 | ||
a243b558 JF |
7991 | if test -n "$ac_tool_prefix"; then |
7992 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7993 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7995 | $as_echo_n "checking for $ac_word... " >&6; } | |
7996 | if ${ac_cv_prog_LIPO+:} false; then : | |
7997 | $as_echo_n "(cached) " >&6 | |
7998 | else | |
7999 | if test -n "$LIPO"; then | |
8000 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8001 | else | |
8002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8003 | for as_dir in $PATH | |
8004 | do | |
8005 | IFS=$as_save_IFS | |
8006 | test -z "$as_dir" && as_dir=. | |
8007 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8008 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8009 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
8010 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8011 | break 2 | |
8012 | fi | |
8013 | done | |
8014 | done | |
8015 | IFS=$as_save_IFS | |
9c60689e | 8016 | |
a243b558 JF |
8017 | fi |
8018 | fi | |
8019 | LIPO=$ac_cv_prog_LIPO | |
8020 | if test -n "$LIPO"; then | |
8021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
8022 | $as_echo "$LIPO" >&6; } | |
8023 | else | |
8024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8025 | $as_echo "no" >&6; } | |
8026 | fi | |
9c60689e | 8027 | |
9c60689e | 8028 | |
a243b558 JF |
8029 | fi |
8030 | if test -z "$ac_cv_prog_LIPO"; then | |
8031 | ac_ct_LIPO=$LIPO | |
8032 | # Extract the first word of "lipo", so it can be a program name with args. | |
8033 | set dummy lipo; ac_word=$2 | |
8034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8035 | $as_echo_n "checking for $ac_word... " >&6; } | |
8036 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
9c60689e DWT |
8037 | $as_echo_n "(cached) " >&6 |
8038 | else | |
a243b558 JF |
8039 | if test -n "$ac_ct_LIPO"; then |
8040 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
8041 | else | |
8042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8043 | for as_dir in $PATH | |
8044 | do | |
8045 | IFS=$as_save_IFS | |
8046 | test -z "$as_dir" && as_dir=. | |
8047 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8048 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8049 | ac_cv_prog_ac_ct_LIPO="lipo" | |
8050 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8051 | break 2 | |
8052 | fi | |
8053 | done | |
8054 | done | |
8055 | IFS=$as_save_IFS | |
9c60689e DWT |
8056 | |
8057 | fi | |
a243b558 JF |
8058 | fi |
8059 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
8060 | if test -n "$ac_ct_LIPO"; then | |
8061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
8062 | $as_echo "$ac_ct_LIPO" >&6; } | |
9c60689e | 8063 | else |
a243b558 JF |
8064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8065 | $as_echo "no" >&6; } | |
9c60689e DWT |
8066 | fi |
8067 | ||
a243b558 JF |
8068 | if test "x$ac_ct_LIPO" = x; then |
8069 | LIPO=":" | |
8070 | else | |
8071 | case $cross_compiling:$ac_tool_warned in | |
8072 | yes:) | |
8073 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8074 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8075 | ac_tool_warned=yes ;; | |
8076 | esac | |
8077 | LIPO=$ac_ct_LIPO | |
8078 | fi | |
8079 | else | |
8080 | LIPO="$ac_cv_prog_LIPO" | |
9c60689e DWT |
8081 | fi |
8082 | ||
a243b558 JF |
8083 | if test -n "$ac_tool_prefix"; then |
8084 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8085 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
8086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8087 | $as_echo_n "checking for $ac_word... " >&6; } | |
8088 | if ${ac_cv_prog_OTOOL+:} false; then : | |
8089 | $as_echo_n "(cached) " >&6 | |
8090 | else | |
8091 | if test -n "$OTOOL"; then | |
8092 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
8093 | else | |
8094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8095 | for as_dir in $PATH | |
8096 | do | |
8097 | IFS=$as_save_IFS | |
8098 | test -z "$as_dir" && as_dir=. | |
8099 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8100 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8101 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
8102 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8103 | break 2 | |
8104 | fi | |
8105 | done | |
8106 | done | |
8107 | IFS=$as_save_IFS | |
9c60689e | 8108 | |
a243b558 JF |
8109 | fi |
8110 | fi | |
8111 | OTOOL=$ac_cv_prog_OTOOL | |
8112 | if test -n "$OTOOL"; then | |
8113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
8114 | $as_echo "$OTOOL" >&6; } | |
8115 | else | |
8116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8117 | $as_echo "no" >&6; } | |
8118 | fi | |
9c60689e DWT |
8119 | |
8120 | ||
a243b558 JF |
8121 | fi |
8122 | if test -z "$ac_cv_prog_OTOOL"; then | |
8123 | ac_ct_OTOOL=$OTOOL | |
8124 | # Extract the first word of "otool", so it can be a program name with args. | |
8125 | set dummy otool; ac_word=$2 | |
8126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8127 | $as_echo_n "checking for $ac_word... " >&6; } | |
8128 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
8129 | $as_echo_n "(cached) " >&6 | |
8130 | else | |
8131 | if test -n "$ac_ct_OTOOL"; then | |
8132 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8133 | else | |
8134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8135 | for as_dir in $PATH | |
8136 | do | |
8137 | IFS=$as_save_IFS | |
8138 | test -z "$as_dir" && as_dir=. | |
8139 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8140 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8141 | ac_cv_prog_ac_ct_OTOOL="otool" | |
8142 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8143 | break 2 | |
8144 | fi | |
8145 | done | |
8146 | done | |
8147 | IFS=$as_save_IFS | |
9c60689e | 8148 | |
a243b558 JF |
8149 | fi |
8150 | fi | |
8151 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8152 | if test -n "$ac_ct_OTOOL"; then | |
8153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8154 | $as_echo "$ac_ct_OTOOL" >&6; } | |
8155 | else | |
8156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8157 | $as_echo "no" >&6; } | |
8158 | fi | |
9c60689e | 8159 | |
a243b558 JF |
8160 | if test "x$ac_ct_OTOOL" = x; then |
8161 | OTOOL=":" | |
8162 | else | |
8163 | case $cross_compiling:$ac_tool_warned in | |
8164 | yes:) | |
8165 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8166 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8167 | ac_tool_warned=yes ;; | |
8168 | esac | |
8169 | OTOOL=$ac_ct_OTOOL | |
8170 | fi | |
8171 | else | |
8172 | OTOOL="$ac_cv_prog_OTOOL" | |
8173 | fi | |
9c60689e | 8174 | |
a243b558 JF |
8175 | if test -n "$ac_tool_prefix"; then |
8176 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8177 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8179 | $as_echo_n "checking for $ac_word... " >&6; } | |
8180 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
8181 | $as_echo_n "(cached) " >&6 | |
8182 | else | |
8183 | if test -n "$OTOOL64"; then | |
8184 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8185 | else | |
8186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8187 | for as_dir in $PATH | |
8188 | do | |
8189 | IFS=$as_save_IFS | |
8190 | test -z "$as_dir" && as_dir=. | |
8191 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8192 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8193 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
8194 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8195 | break 2 | |
8196 | fi | |
8197 | done | |
8198 | done | |
8199 | IFS=$as_save_IFS | |
9c60689e | 8200 | |
a243b558 JF |
8201 | fi |
8202 | fi | |
8203 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8204 | if test -n "$OTOOL64"; then | |
8205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8206 | $as_echo "$OTOOL64" >&6; } | |
8207 | else | |
8208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8209 | $as_echo "no" >&6; } | |
8210 | fi | |
9c60689e | 8211 | |
9c60689e | 8212 | |
a243b558 JF |
8213 | fi |
8214 | if test -z "$ac_cv_prog_OTOOL64"; then | |
8215 | ac_ct_OTOOL64=$OTOOL64 | |
8216 | # Extract the first word of "otool64", so it can be a program name with args. | |
8217 | set dummy otool64; ac_word=$2 | |
8218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8219 | $as_echo_n "checking for $ac_word... " >&6; } | |
8220 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
8221 | $as_echo_n "(cached) " >&6 | |
8222 | else | |
8223 | if test -n "$ac_ct_OTOOL64"; then | |
8224 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8225 | else | |
8226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8227 | for as_dir in $PATH | |
8228 | do | |
8229 | IFS=$as_save_IFS | |
8230 | test -z "$as_dir" && as_dir=. | |
8231 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8232 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8233 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
8234 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8235 | break 2 | |
8236 | fi | |
8237 | done | |
8238 | done | |
8239 | IFS=$as_save_IFS | |
9c60689e | 8240 | |
a243b558 JF |
8241 | fi |
8242 | fi | |
8243 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8244 | if test -n "$ac_ct_OTOOL64"; then | |
8245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8246 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
8247 | else | |
8248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8249 | $as_echo "no" >&6; } | |
8250 | fi | |
9c60689e | 8251 | |
a243b558 JF |
8252 | if test "x$ac_ct_OTOOL64" = x; then |
8253 | OTOOL64=":" | |
8254 | else | |
8255 | case $cross_compiling:$ac_tool_warned in | |
8256 | yes:) | |
8257 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8258 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8259 | ac_tool_warned=yes ;; | |
8260 | esac | |
8261 | OTOOL64=$ac_ct_OTOOL64 | |
8262 | fi | |
8263 | else | |
8264 | OTOOL64="$ac_cv_prog_OTOOL64" | |
8265 | fi | |
ee134472 | 8266 | |
9c60689e | 8267 | |
9c60689e | 8268 | |
9c60689e | 8269 | |
9c60689e | 8270 | |
9c60689e | 8271 | |
ee134472 | 8272 | |
9c60689e | 8273 | |
9c60689e | 8274 | |
9c60689e | 8275 | |
9c60689e | 8276 | |
9c60689e | 8277 | |
9c60689e | 8278 | |
9c60689e | 8279 | |
9c60689e | 8280 | |
9c60689e | 8281 | |
9c60689e | 8282 | |
9c60689e | 8283 | |
9c60689e | 8284 | |
9c60689e | 8285 | |
9c60689e | 8286 | |
9c60689e | 8287 | |
9c60689e | 8288 | |
9c60689e | 8289 | |
9c60689e | 8290 | |
a243b558 JF |
8291 | |
8292 | ||
8293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
8294 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
8295 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
ee134472 JF |
8296 | $as_echo_n "(cached) " >&6 |
8297 | else | |
a243b558 JF |
8298 | lt_cv_apple_cc_single_mod=no |
8299 | if test -z "${LT_MULTI_MODULE}"; then | |
8300 | # By default we will add the -single_module flag. You can override | |
8301 | # by either setting the environment variable LT_MULTI_MODULE | |
8302 | # non-empty at configure time, or by adding -multi_module to the | |
8303 | # link flags. | |
8304 | rm -rf libconftest.dylib* | |
8305 | echo "int foo(void){return 1;}" > conftest.c | |
8306 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8307 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8308 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8309 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8310 | _lt_result=$? | |
8311 | # If there is a non-empty error log, and "single_module" | |
8312 | # appears in it, assume the flag caused a linker warning | |
8313 | if test -s conftest.err && $GREP single_module conftest.err; then | |
8314 | cat conftest.err >&5 | |
8315 | # Otherwise, if the output was created with a 0 exit code from | |
8316 | # the compiler, it worked. | |
8317 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then | |
8318 | lt_cv_apple_cc_single_mod=yes | |
8319 | else | |
8320 | cat conftest.err >&5 | |
8321 | fi | |
8322 | rm -rf libconftest.dylib* | |
8323 | rm -f conftest.* | |
8324 | fi | |
ee134472 | 8325 | fi |
a243b558 JF |
8326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
8327 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
9c60689e | 8328 | |
a243b558 JF |
8329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
8330 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8331 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
9c60689e DWT |
8332 | $as_echo_n "(cached) " >&6 |
8333 | else | |
a243b558 JF |
8334 | lt_cv_ld_exported_symbols_list=no |
8335 | save_LDFLAGS=$LDFLAGS | |
8336 | echo "_main" > conftest.sym | |
8337 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8338 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8339 | /* end confdefs.h. */ | |
9c60689e | 8340 | |
a243b558 JF |
8341 | int |
8342 | main () | |
8343 | { | |
9c60689e | 8344 | |
a243b558 JF |
8345 | ; |
8346 | return 0; | |
8347 | } | |
8348 | _ACEOF | |
8349 | if ac_fn_c_try_link "$LINENO"; then : | |
8350 | lt_cv_ld_exported_symbols_list=yes | |
9c60689e | 8351 | else |
a243b558 | 8352 | lt_cv_ld_exported_symbols_list=no |
9c60689e | 8353 | fi |
a243b558 JF |
8354 | rm -f core conftest.err conftest.$ac_objext \ |
8355 | conftest$ac_exeext conftest.$ac_ext | |
8356 | LDFLAGS="$save_LDFLAGS" | |
9c60689e DWT |
8357 | |
8358 | fi | |
a243b558 JF |
8359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8360 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
9c60689e | 8361 | |
a243b558 JF |
8362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
8363 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8364 | if ${lt_cv_ld_force_load+:} false; then : | |
9c60689e DWT |
8365 | $as_echo_n "(cached) " >&6 |
8366 | else | |
a243b558 JF |
8367 | lt_cv_ld_force_load=no |
8368 | cat > conftest.c << _LT_EOF | |
8369 | int forced_loaded() { return 2;} | |
8370 | _LT_EOF | |
8371 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8372 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8373 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8374 | $AR cru libconftest.a conftest.o 2>&5 | |
8375 | echo "$RANLIB libconftest.a" >&5 | |
8376 | $RANLIB libconftest.a 2>&5 | |
8377 | cat > conftest.c << _LT_EOF | |
8378 | int main() { return 0;} | |
8379 | _LT_EOF | |
8380 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8381 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8382 | _lt_result=$? | |
8383 | if test -s conftest.err && $GREP force_load conftest.err; then | |
8384 | cat conftest.err >&5 | |
8385 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then | |
8386 | lt_cv_ld_force_load=yes | |
8387 | else | |
8388 | cat conftest.err >&5 | |
8389 | fi | |
8390 | rm -f conftest.err libconftest.a conftest conftest.c | |
8391 | rm -rf conftest.dSYM | |
9c60689e DWT |
8392 | |
8393 | fi | |
a243b558 JF |
8394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
8395 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
8396 | case $host_os in | |
8397 | rhapsody* | darwin1.[012]) | |
8398 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
8399 | darwin1.*) | |
8400 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8401 | darwin*) # darwin 5.x on | |
8402 | # if running on 10.5 or later, the deployment target defaults | |
8403 | # to the OS version, if on x86, and 10.4, the deployment | |
8404 | # target defaults to 10.4. Don't you love it? | |
8405 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8406 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8407 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8408 | 10.[012]*) | |
8409 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8410 | 10.*) | |
8411 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8412 | esac | |
8413 | ;; | |
8414 | esac | |
8415 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8416 | _lt_dar_single_mod='$single_module' | |
8417 | fi | |
8418 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8419 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8420 | else | |
8421 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8422 | fi | |
8423 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
8424 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8425 | else | |
8426 | _lt_dsymutil= | |
8427 | fi | |
8428 | ;; | |
8429 | esac | |
9c60689e | 8430 | |
a243b558 JF |
8431 | ac_ext=c |
8432 | ac_cpp='$CPP $CPPFLAGS' | |
8433 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8434 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8435 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
8437 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
8438 | # On Suns, sometimes $CPP names a directory. | |
8439 | if test -n "$CPP" && test -d "$CPP"; then | |
8440 | CPP= | |
9c60689e | 8441 | fi |
a243b558 JF |
8442 | if test -z "$CPP"; then |
8443 | if ${ac_cv_prog_CPP+:} false; then : | |
8444 | $as_echo_n "(cached) " >&6 | |
8445 | else | |
8446 | # Double quotes because CPP needs to be expanded | |
8447 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
8448 | do | |
8449 | ac_preproc_ok=false | |
8450 | for ac_c_preproc_warn_flag in '' yes | |
8451 | do | |
8452 | # Use a header file that comes with gcc, so configuring glibc | |
8453 | # with a fresh cross-compiler works. | |
8454 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8455 | # <limits.h> exists even on freestanding compilers. | |
8456 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
8457 | # not just through cpp. "Syntax error" is here to catch this case. | |
8458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8459 | /* end confdefs.h. */ | |
8460 | #ifdef __STDC__ | |
8461 | # include <limits.h> | |
8462 | #else | |
8463 | # include <assert.h> | |
8464 | #endif | |
8465 | Syntax error | |
8466 | _ACEOF | |
8467 | if ac_fn_c_try_cpp "$LINENO"; then : | |
9c60689e | 8468 | |
a243b558 JF |
8469 | else |
8470 | # Broken: fails on valid input. | |
8471 | continue | |
8472 | fi | |
8473 | rm -f conftest.err conftest.i conftest.$ac_ext | |
9c60689e | 8474 | |
a243b558 JF |
8475 | # OK, works on sane cases. Now check whether nonexistent headers |
8476 | # can be detected and how. | |
8477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8478 | /* end confdefs.h. */ | |
8479 | #include <ac_nonexistent.h> | |
8480 | _ACEOF | |
8481 | if ac_fn_c_try_cpp "$LINENO"; then : | |
8482 | # Broken: success on invalid input. | |
8483 | continue | |
8484 | else | |
8485 | # Passes both tests. | |
8486 | ac_preproc_ok=: | |
8487 | break | |
8488 | fi | |
8489 | rm -f conftest.err conftest.i conftest.$ac_ext | |
9c60689e | 8490 | |
a243b558 JF |
8491 | done |
8492 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
8493 | rm -f conftest.i conftest.err conftest.$ac_ext | |
8494 | if $ac_preproc_ok; then : | |
8495 | break | |
8496 | fi | |
9c60689e | 8497 | |
a243b558 JF |
8498 | done |
8499 | ac_cv_prog_CPP=$CPP | |
9c60689e | 8500 | |
a243b558 JF |
8501 | fi |
8502 | CPP=$ac_cv_prog_CPP | |
9c60689e | 8503 | else |
a243b558 JF |
8504 | ac_cv_prog_CPP=$CPP |
8505 | fi | |
8506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
8507 | $as_echo "$CPP" >&6; } | |
8508 | ac_preproc_ok=false | |
8509 | for ac_c_preproc_warn_flag in '' yes | |
8510 | do | |
8511 | # Use a header file that comes with gcc, so configuring glibc | |
8512 | # with a fresh cross-compiler works. | |
8513 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8514 | # <limits.h> exists even on freestanding compilers. | |
8515 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
8516 | # not just through cpp. "Syntax error" is here to catch this case. | |
8517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8518 | /* end confdefs.h. */ | |
8519 | #ifdef __STDC__ | |
8520 | # include <limits.h> | |
8521 | #else | |
8522 | # include <assert.h> | |
8523 | #endif | |
8524 | Syntax error | |
8525 | _ACEOF | |
8526 | if ac_fn_c_try_cpp "$LINENO"; then : | |
9c60689e | 8527 | |
a243b558 JF |
8528 | else |
8529 | # Broken: fails on valid input. | |
8530 | continue | |
9c60689e | 8531 | fi |
a243b558 | 8532 | rm -f conftest.err conftest.i conftest.$ac_ext |
9c60689e | 8533 | |
a243b558 JF |
8534 | # OK, works on sane cases. Now check whether nonexistent headers |
8535 | # can be detected and how. | |
8536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8537 | /* end confdefs.h. */ | |
8538 | #include <ac_nonexistent.h> | |
8539 | _ACEOF | |
8540 | if ac_fn_c_try_cpp "$LINENO"; then : | |
8541 | # Broken: success on invalid input. | |
8542 | continue | |
8543 | else | |
8544 | # Passes both tests. | |
8545 | ac_preproc_ok=: | |
8546 | break | |
8547 | fi | |
8548 | rm -f conftest.err conftest.i conftest.$ac_ext | |
9c60689e | 8549 | |
a243b558 JF |
8550 | done |
8551 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
8552 | rm -f conftest.i conftest.err conftest.$ac_ext | |
8553 | if $ac_preproc_ok; then : | |
9c60689e | 8554 | |
a243b558 JF |
8555 | else |
8556 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8557 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8558 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
8559 | See \`config.log' for more details" "$LINENO" 5; } | |
8560 | fi | |
9c60689e | 8561 | |
a243b558 JF |
8562 | ac_ext=c |
8563 | ac_cpp='$CPP $CPPFLAGS' | |
8564 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8565 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8566 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e DWT |
8567 | |
8568 | ||
a243b558 JF |
8569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
8570 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
8571 | if ${ac_cv_header_stdc+:} false; then : | |
9c60689e DWT |
8572 | $as_echo_n "(cached) " >&6 |
8573 | else | |
a243b558 JF |
8574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8575 | /* end confdefs.h. */ | |
8576 | #include <stdlib.h> | |
8577 | #include <stdarg.h> | |
8578 | #include <string.h> | |
8579 | #include <float.h> | |
9c60689e | 8580 | |
a243b558 JF |
8581 | int |
8582 | main () | |
8583 | { | |
9c60689e | 8584 | |
a243b558 JF |
8585 | ; |
8586 | return 0; | |
8587 | } | |
8588 | _ACEOF | |
8589 | if ac_fn_c_try_compile "$LINENO"; then : | |
8590 | ac_cv_header_stdc=yes | |
8591 | else | |
8592 | ac_cv_header_stdc=no | |
9c60689e | 8593 | fi |
a243b558 JF |
8594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8595 | ||
8596 | if test $ac_cv_header_stdc = yes; then | |
8597 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
8598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8599 | /* end confdefs.h. */ | |
8600 | #include <string.h> | |
9c60689e | 8601 | |
a243b558 JF |
8602 | _ACEOF |
8603 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8604 | $EGREP "memchr" >/dev/null 2>&1; then : | |
9c60689e | 8605 | |
a243b558 JF |
8606 | else |
8607 | ac_cv_header_stdc=no | |
8608 | fi | |
8609 | rm -f conftest* | |
9c60689e | 8610 | |
a243b558 JF |
8611 | fi |
8612 | ||
8613 | if test $ac_cv_header_stdc = yes; then | |
8614 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
8615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8616 | /* end confdefs.h. */ | |
8617 | #include <stdlib.h> | |
8618 | ||
8619 | _ACEOF | |
8620 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8621 | $EGREP "free" >/dev/null 2>&1; then : | |
9c60689e | 8622 | |
9c60689e | 8623 | else |
a243b558 | 8624 | ac_cv_header_stdc=no |
9c60689e | 8625 | fi |
a243b558 | 8626 | rm -f conftest* |
9c60689e | 8627 | |
a243b558 | 8628 | fi |
9c60689e | 8629 | |
a243b558 JF |
8630 | if test $ac_cv_header_stdc = yes; then |
8631 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8632 | if test "$cross_compiling" = yes; then : | |
8633 | : | |
8634 | else | |
8635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8636 | /* end confdefs.h. */ | |
8637 | #include <ctype.h> | |
8638 | #include <stdlib.h> | |
8639 | #if ((' ' & 0x0FF) == 0x020) | |
8640 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
8641 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
8642 | #else | |
8643 | # define ISLOWER(c) \ | |
8644 | (('a' <= (c) && (c) <= 'i') \ | |
8645 | || ('j' <= (c) && (c) <= 'r') \ | |
8646 | || ('s' <= (c) && (c) <= 'z')) | |
8647 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
8648 | #endif | |
9c60689e | 8649 | |
a243b558 JF |
8650 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
8651 | int | |
8652 | main () | |
8653 | { | |
8654 | int i; | |
8655 | for (i = 0; i < 256; i++) | |
8656 | if (XOR (islower (i), ISLOWER (i)) | |
8657 | || toupper (i) != TOUPPER (i)) | |
8658 | return 2; | |
8659 | return 0; | |
8660 | } | |
8661 | _ACEOF | |
8662 | if ac_fn_c_try_run "$LINENO"; then : | |
9c60689e | 8663 | |
a243b558 JF |
8664 | else |
8665 | ac_cv_header_stdc=no | |
8666 | fi | |
8667 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
8668 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8669 | fi | |
9c60689e | 8670 | |
a243b558 JF |
8671 | fi |
8672 | fi | |
8673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
8674 | $as_echo "$ac_cv_header_stdc" >&6; } | |
8675 | if test $ac_cv_header_stdc = yes; then | |
9c60689e | 8676 | |
a243b558 | 8677 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
9c60689e | 8678 | |
a243b558 | 8679 | fi |
9c60689e | 8680 | |
a243b558 JF |
8681 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
8682 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
8683 | inttypes.h stdint.h unistd.h | |
8684 | do : | |
8685 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8686 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
8687 | " | |
8688 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8689 | cat >>confdefs.h <<_ACEOF | |
8690 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8691 | _ACEOF | |
9c60689e | 8692 | |
a243b558 | 8693 | fi |
ee134472 | 8694 | |
a243b558 | 8695 | done |
ee134472 | 8696 | |
9c60689e | 8697 | |
a243b558 JF |
8698 | for ac_header in dlfcn.h |
8699 | do : | |
8700 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8701 | " | |
8702 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8703 | cat >>confdefs.h <<_ACEOF | |
8704 | #define HAVE_DLFCN_H 1 | |
8705 | _ACEOF | |
9c60689e | 8706 | |
a243b558 | 8707 | fi |
9c60689e | 8708 | |
a243b558 | 8709 | done |
9c60689e | 8710 | |
9c60689e | 8711 | |
9c60689e | 8712 | |
9c60689e | 8713 | |
a243b558 JF |
8714 | func_stripname_cnf () |
8715 | { | |
8716 | case ${2} in | |
8717 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
8718 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
8719 | esac | |
8720 | } # func_stripname_cnf | |
9c60689e | 8721 | |
9c60689e | 8722 | |
ee134472 | 8723 | |
a243b558 JF |
8724 | |
8725 | ||
8726 | # Set options | |
8727 | # Check whether --enable-static was given. | |
8728 | if test "${enable_static+set}" = set; then : | |
8729 | enableval=$enable_static; p=${PACKAGE-default} | |
8730 | case $enableval in | |
8731 | yes) enable_static=yes ;; | |
8732 | no) enable_static=no ;; | |
8733 | *) | |
8734 | enable_static=no | |
8735 | # Look at the argument we got. We use all the common list separators. | |
8736 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8737 | for pkg in $enableval; do | |
8738 | IFS="$lt_save_ifs" | |
8739 | if test "X$pkg" = "X$p"; then | |
8740 | enable_static=yes | |
8741 | fi | |
8742 | done | |
8743 | IFS="$lt_save_ifs" | |
9c60689e | 8744 | ;; |
a243b558 JF |
8745 | esac |
8746 | else | |
8747 | enable_static=no | |
8748 | fi | |
9c60689e | 8749 | |
9c60689e | 8750 | |
9c60689e | 8751 | |
9c60689e | 8752 | |
9c60689e | 8753 | |
9c60689e | 8754 | |
9c60689e | 8755 | |
9c60689e | 8756 | |
9c60689e | 8757 | |
9c60689e | 8758 | |
a243b558 | 8759 | enable_dlopen=no |
9c60689e | 8760 | |
9c60689e | 8761 | |
a243b558 JF |
8762 | enable_win32_dll=no |
8763 | ||
8764 | ||
8765 | # Check whether --enable-shared was given. | |
8766 | if test "${enable_shared+set}" = set; then : | |
8767 | enableval=$enable_shared; p=${PACKAGE-default} | |
8768 | case $enableval in | |
8769 | yes) enable_shared=yes ;; | |
8770 | no) enable_shared=no ;; | |
9c60689e | 8771 | *) |
a243b558 JF |
8772 | enable_shared=no |
8773 | # Look at the argument we got. We use all the common list separators. | |
8774 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8775 | for pkg in $enableval; do | |
8776 | IFS="$lt_save_ifs" | |
8777 | if test "X$pkg" = "X$p"; then | |
8778 | enable_shared=yes | |
8779 | fi | |
8780 | done | |
8781 | IFS="$lt_save_ifs" | |
9c60689e DWT |
8782 | ;; |
8783 | esac | |
a243b558 JF |
8784 | else |
8785 | enable_shared=yes | |
8786 | fi | |
9c60689e | 8787 | |
9c60689e | 8788 | |
9c60689e | 8789 | |
9c60689e | 8790 | |
9c60689e | 8791 | |
9c60689e | 8792 | |
9c60689e | 8793 | |
9c60689e | 8794 | |
9c60689e | 8795 | |
9c60689e | 8796 | |
9c60689e | 8797 | |
a243b558 JF |
8798 | # Check whether --with-pic was given. |
8799 | if test "${with_pic+set}" = set; then : | |
8800 | withval=$with_pic; lt_p=${PACKAGE-default} | |
8801 | case $withval in | |
8802 | yes|no) pic_mode=$withval ;; | |
8803 | *) | |
8804 | pic_mode=default | |
8805 | # Look at the argument we got. We use all the common list separators. | |
8806 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8807 | for lt_pkg in $withval; do | |
8808 | IFS="$lt_save_ifs" | |
8809 | if test "X$lt_pkg" = "X$lt_p"; then | |
8810 | pic_mode=yes | |
8811 | fi | |
8812 | done | |
8813 | IFS="$lt_save_ifs" | |
8814 | ;; | |
8815 | esac | |
8816 | else | |
8817 | pic_mode=default | |
9c60689e | 8818 | fi |
ee134472 | 8819 | |
ee134472 | 8820 | |
a243b558 | 8821 | test -z "$pic_mode" && pic_mode=default |
9c60689e | 8822 | |
9c60689e | 8823 | |
9c60689e | 8824 | |
9c60689e | 8825 | |
ee134472 | 8826 | |
ee134472 | 8827 | |
9c60689e | 8828 | |
a243b558 JF |
8829 | # Check whether --enable-fast-install was given. |
8830 | if test "${enable_fast_install+set}" = set; then : | |
8831 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
8832 | case $enableval in | |
8833 | yes) enable_fast_install=yes ;; | |
8834 | no) enable_fast_install=no ;; | |
8835 | *) | |
8836 | enable_fast_install=no | |
8837 | # Look at the argument we got. We use all the common list separators. | |
8838 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8839 | for pkg in $enableval; do | |
8840 | IFS="$lt_save_ifs" | |
8841 | if test "X$pkg" = "X$p"; then | |
8842 | enable_fast_install=yes | |
9c60689e | 8843 | fi |
a243b558 JF |
8844 | done |
8845 | IFS="$lt_save_ifs" | |
9c60689e | 8846 | ;; |
a243b558 JF |
8847 | esac |
8848 | else | |
8849 | enable_fast_install=yes | |
8850 | fi | |
9c60689e | 8851 | |
9c60689e | 8852 | |
9c60689e | 8853 | |
9c60689e | 8854 | |
9c60689e DWT |
8855 | |
8856 | ||
53ba6704 | 8857 | |
9c60689e | 8858 | |
9c60689e | 8859 | |
9c60689e | 8860 | |
9c60689e | 8861 | |
a243b558 JF |
8862 | # This can be used to rebuild libtool when needed |
8863 | LIBTOOL_DEPS="$ltmain" | |
9c60689e | 8864 | |
a243b558 JF |
8865 | # Always use our own libtool. |
8866 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
9c60689e | 8867 | |
9c60689e | 8868 | |
9c60689e | 8869 | |
9c60689e | 8870 | |
9c60689e | 8871 | |
ee134472 | 8872 | |
ee134472 | 8873 | |
ee134472 | 8874 | |
ee134472 | 8875 | |
9c60689e | 8876 | |
9c60689e | 8877 | |
9c60689e | 8878 | |
9c60689e | 8879 | |
9c60689e | 8880 | |
9c60689e | 8881 | |
9c60689e | 8882 | |
9c60689e | 8883 | |
9c60689e | 8884 | |
9c60689e | 8885 | |
9c60689e | 8886 | |
9c60689e | 8887 | |
9c60689e | 8888 | |
9c60689e | 8889 | |
9c60689e | 8890 | |
9c60689e | 8891 | |
9c60689e | 8892 | |
9c60689e | 8893 | |
9c60689e | 8894 | |
9c60689e | 8895 | |
9c60689e | 8896 | |
a243b558 | 8897 | test -z "$LN_S" && LN_S="ln -s" |
9c60689e DWT |
8898 | |
8899 | ||
8900 | ||
8901 | ||
8902 | ||
8903 | ||
8904 | ||
8905 | ||
8906 | ||
8907 | ||
8908 | ||
8909 | ||
8910 | ||
8911 | ||
a243b558 JF |
8912 | if test -n "${ZSH_VERSION+set}" ; then |
8913 | setopt NO_GLOB_SUBST | |
8914 | fi | |
9c60689e | 8915 | |
a243b558 JF |
8916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8917 | $as_echo_n "checking for objdir... " >&6; } | |
8918 | if ${lt_cv_objdir+:} false; then : | |
ee134472 JF |
8919 | $as_echo_n "(cached) " >&6 |
8920 | else | |
a243b558 JF |
8921 | rm -f .libs 2>/dev/null |
8922 | mkdir .libs 2>/dev/null | |
8923 | if test -d .libs; then | |
8924 | lt_cv_objdir=.libs | |
8925 | else | |
8926 | # MS-DOS does not allow filenames that begin with a dot. | |
8927 | lt_cv_objdir=_libs | |
ee134472 | 8928 | fi |
a243b558 JF |
8929 | rmdir .libs 2>/dev/null |
8930 | fi | |
8931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
8932 | $as_echo "$lt_cv_objdir" >&6; } | |
8933 | objdir=$lt_cv_objdir | |
9c60689e DWT |
8934 | |
8935 | ||
8936 | ||
8937 | ||
8938 | ||
a243b558 JF |
8939 | cat >>confdefs.h <<_ACEOF |
8940 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8941 | _ACEOF | |
9c60689e DWT |
8942 | |
8943 | ||
8944 | ||
8945 | ||
a243b558 JF |
8946 | case $host_os in |
8947 | aix3*) | |
8948 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8949 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8950 | # vanish in a puff of smoke. | |
8951 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8952 | COLLECT_NAMES= | |
8953 | export COLLECT_NAMES | |
8954 | fi | |
8955 | ;; | |
8956 | esac | |
9c60689e | 8957 | |
a243b558 JF |
8958 | # Global variables: |
8959 | ofile=libtool | |
8960 | can_build_shared=yes | |
9c60689e | 8961 | |
a243b558 JF |
8962 | # All known linkers require a `.a' archive for static linking (except MSVC, |
8963 | # which needs '.lib'). | |
8964 | libext=a | |
9c60689e | 8965 | |
a243b558 | 8966 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
9c60689e | 8967 | |
a243b558 JF |
8968 | old_CC="$CC" |
8969 | old_CFLAGS="$CFLAGS" | |
9c60689e | 8970 | |
a243b558 JF |
8971 | # Set sane defaults for various variables |
8972 | test -z "$CC" && CC=cc | |
8973 | test -z "$LTCC" && LTCC=$CC | |
8974 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8975 | test -z "$LD" && LD=ld | |
8976 | test -z "$ac_objext" && ac_objext=o | |
9c60689e | 8977 | |
a243b558 JF |
8978 | for cc_temp in $compiler""; do |
8979 | case $cc_temp in | |
8980 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8981 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8982 | \-*) ;; | |
8983 | *) break;; | |
8984 | esac | |
8985 | done | |
8986 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
9c60689e DWT |
8987 | |
8988 | ||
a243b558 JF |
8989 | # Only perform the check for file, if the check method requires it |
8990 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8991 | case $deplibs_check_method in | |
8992 | file_magic*) | |
8993 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8995 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8996 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8997 | $as_echo_n "(cached) " >&6 | |
8998 | else | |
8999 | case $MAGIC_CMD in | |
9000 | [\\/*] | ?:[\\/]*) | |
9001 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9002 | ;; | |
9003 | *) | |
9004 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9005 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9006 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9007 | for ac_dir in $ac_dummy; do | |
9008 | IFS="$lt_save_ifs" | |
9009 | test -z "$ac_dir" && ac_dir=. | |
9010 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
9011 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
9012 | if test -n "$file_magic_test_file"; then | |
9013 | case $deplibs_check_method in | |
9014 | "file_magic "*) | |
9015 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9016 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9017 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9018 | $EGREP "$file_magic_regex" > /dev/null; then | |
9019 | : | |
9020 | else | |
9021 | cat <<_LT_EOF 1>&2 | |
9c60689e | 9022 | |
a243b558 JF |
9023 | *** Warning: the command libtool uses to detect shared libraries, |
9024 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9025 | *** The result is that libtool may fail to recognize shared libraries | |
9026 | *** as such. This will affect the creation of libtool libraries that | |
9027 | *** depend on shared libraries, but programs linked with such libtool | |
9028 | *** libraries will work regardless of this problem. Nevertheless, you | |
9029 | *** may want to report the problem to your system manager and/or to | |
9030 | *** bug-libtool@gnu.org | |
9c60689e | 9031 | |
a243b558 JF |
9032 | _LT_EOF |
9033 | fi ;; | |
9034 | esac | |
9035 | fi | |
9036 | break | |
9037 | fi | |
9038 | done | |
9039 | IFS="$lt_save_ifs" | |
9040 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9041 | ;; | |
9042 | esac | |
9043 | fi | |
9c60689e | 9044 | |
a243b558 JF |
9045 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
9046 | if test -n "$MAGIC_CMD"; then | |
9047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9048 | $as_echo "$MAGIC_CMD" >&6; } | |
9049 | else | |
9050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9051 | $as_echo "no" >&6; } | |
9052 | fi | |
9c60689e DWT |
9053 | |
9054 | ||
9055 | ||
9056 | ||
9057 | ||
a243b558 JF |
9058 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
9059 | if test -n "$ac_tool_prefix"; then | |
9060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
9061 | $as_echo_n "checking for file... " >&6; } | |
9062 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
9063 | $as_echo_n "(cached) " >&6 | |
9064 | else | |
9065 | case $MAGIC_CMD in | |
9066 | [\\/*] | ?:[\\/]*) | |
9067 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9068 | ;; | |
9069 | *) | |
9070 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9071 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9072 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9073 | for ac_dir in $ac_dummy; do | |
9074 | IFS="$lt_save_ifs" | |
9075 | test -z "$ac_dir" && ac_dir=. | |
9076 | if test -f $ac_dir/file; then | |
9077 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
9078 | if test -n "$file_magic_test_file"; then | |
9079 | case $deplibs_check_method in | |
9080 | "file_magic "*) | |
9081 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9082 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9083 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9084 | $EGREP "$file_magic_regex" > /dev/null; then | |
9085 | : | |
9086 | else | |
9087 | cat <<_LT_EOF 1>&2 | |
9c60689e | 9088 | |
a243b558 JF |
9089 | *** Warning: the command libtool uses to detect shared libraries, |
9090 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9091 | *** The result is that libtool may fail to recognize shared libraries | |
9092 | *** as such. This will affect the creation of libtool libraries that | |
9093 | *** depend on shared libraries, but programs linked with such libtool | |
9094 | *** libraries will work regardless of this problem. Nevertheless, you | |
9095 | *** may want to report the problem to your system manager and/or to | |
9096 | *** bug-libtool@gnu.org | |
9c60689e | 9097 | |
a243b558 JF |
9098 | _LT_EOF |
9099 | fi ;; | |
9100 | esac | |
9101 | fi | |
9102 | break | |
9103 | fi | |
9104 | done | |
9105 | IFS="$lt_save_ifs" | |
9106 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9107 | ;; | |
9108 | esac | |
9109 | fi | |
9c60689e | 9110 | |
a243b558 JF |
9111 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
9112 | if test -n "$MAGIC_CMD"; then | |
9113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9114 | $as_echo "$MAGIC_CMD" >&6; } | |
9115 | else | |
9116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9117 | $as_echo "no" >&6; } | |
9118 | fi | |
9c60689e DWT |
9119 | |
9120 | ||
a243b558 JF |
9121 | else |
9122 | MAGIC_CMD=: | |
9123 | fi | |
9124 | fi | |
9c60689e | 9125 | |
a243b558 JF |
9126 | fi |
9127 | ;; | |
9128 | esac | |
9c60689e | 9129 | |
a243b558 | 9130 | # Use C for the default configuration in the libtool script |
9c60689e | 9131 | |
a243b558 JF |
9132 | lt_save_CC="$CC" |
9133 | ac_ext=c | |
9134 | ac_cpp='$CPP $CPPFLAGS' | |
9135 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9136 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9137 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e DWT |
9138 | |
9139 | ||
a243b558 JF |
9140 | # Source file extension for C test sources. |
9141 | ac_ext=c | |
9c60689e | 9142 | |
a243b558 JF |
9143 | # Object file extension for compiled C test sources. |
9144 | objext=o | |
9145 | objext=$objext | |
9c60689e | 9146 | |
a243b558 JF |
9147 | # Code to be used in simple compile tests |
9148 | lt_simple_compile_test_code="int some_variable = 0;" | |
9c60689e | 9149 | |
a243b558 JF |
9150 | # Code to be used in simple link tests |
9151 | lt_simple_link_test_code='int main(){return(0);}' | |
9c60689e DWT |
9152 | |
9153 | ||
9154 | ||
9155 | ||
9156 | ||
9157 | ||
9158 | ||
a243b558 JF |
9159 | # If no C compiler was specified, use CC. |
9160 | LTCC=${LTCC-"$CC"} | |
9c60689e | 9161 | |
a243b558 JF |
9162 | # If no C compiler flags were specified, use CFLAGS. |
9163 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9c60689e | 9164 | |
a243b558 JF |
9165 | # Allow CC to be a program name with arguments. |
9166 | compiler=$CC | |
9c60689e | 9167 | |
a243b558 JF |
9168 | # Save the default compiler, since it gets overwritten when the other |
9169 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9170 | compiler_DEFAULT=$CC | |
9c60689e | 9171 | |
a243b558 JF |
9172 | # save warnings/boilerplate of simple test code |
9173 | ac_outfile=conftest.$ac_objext | |
9174 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9175 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9176 | _lt_compiler_boilerplate=`cat conftest.err` | |
a93f15c0 | 9177 | $RM conftest* |
9c60689e | 9178 | |
a243b558 JF |
9179 | ac_outfile=conftest.$ac_objext |
9180 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9181 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9182 | _lt_linker_boilerplate=`cat conftest.err` | |
9183 | $RM -r conftest* | |
9c60689e DWT |
9184 | |
9185 | ||
a243b558 JF |
9186 | ## CAVEAT EMPTOR: |
9187 | ## There is no encapsulation within the following macros, do not change | |
9188 | ## the running order or otherwise move them around unless you know exactly | |
9189 | ## what you are doing... | |
9190 | if test -n "$compiler"; then | |
9c60689e | 9191 | |
a243b558 | 9192 | lt_prog_compiler_no_builtin_flag= |
9c60689e | 9193 | |
a243b558 JF |
9194 | if test "$GCC" = yes; then |
9195 | case $cc_basename in | |
9196 | nvcc*) | |
9197 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9198 | *) | |
9199 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9200 | esac | |
9c60689e | 9201 | |
a243b558 JF |
9202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
9203 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
9204 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
9205 | $as_echo_n "(cached) " >&6 | |
9206 | else | |
9207 | lt_cv_prog_compiler_rtti_exceptions=no | |
9208 | ac_outfile=conftest.$ac_objext | |
9209 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9210 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9211 | # Insert the option either (1) after the last *FLAGS variable, or | |
9212 | # (2) before a word containing "conftest.", or (3) at the end. | |
9213 | # Note that $ac_compile itself does not contain backslashes and begins | |
9214 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9215 | # The option is referenced via a variable to avoid confusing sed. | |
9216 | lt_compile=`echo "$ac_compile" | $SED \ | |
9217 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9218 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9219 | -e 's:$: $lt_compiler_flag:'` | |
9220 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9221 | (eval "$lt_compile" 2>conftest.err) | |
9222 | ac_status=$? | |
9223 | cat conftest.err >&5 | |
9224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9225 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9226 | # The compiler can only warn and ignore the option if not recognized | |
9227 | # So say no if there are warnings other than the usual output. | |
9228 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9229 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9230 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9231 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9232 | fi | |
9233 | fi | |
a93f15c0 | 9234 | $RM conftest* |
9c60689e | 9235 | |
a243b558 JF |
9236 | fi |
9237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
9238 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
9c60689e | 9239 | |
a243b558 JF |
9240 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
9241 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9242 | else | |
9243 | : | |
9244 | fi | |
9c60689e | 9245 | |
a243b558 | 9246 | fi |
9c60689e DWT |
9247 | |
9248 | ||
9249 | ||
9250 | ||
9251 | ||
9252 | ||
a243b558 JF |
9253 | lt_prog_compiler_wl= |
9254 | lt_prog_compiler_pic= | |
9255 | lt_prog_compiler_static= | |
9c60689e DWT |
9256 | |
9257 | ||
a243b558 JF |
9258 | if test "$GCC" = yes; then |
9259 | lt_prog_compiler_wl='-Wl,' | |
9260 | lt_prog_compiler_static='-static' | |
9c60689e | 9261 | |
a243b558 JF |
9262 | case $host_os in |
9263 | aix*) | |
9264 | # All AIX code is PIC. | |
9265 | if test "$host_cpu" = ia64; then | |
9266 | # AIX 5 now supports IA64 processor | |
9267 | lt_prog_compiler_static='-Bstatic' | |
9268 | fi | |
9269 | ;; | |
9c60689e | 9270 | |
a243b558 JF |
9271 | amigaos*) |
9272 | case $host_cpu in | |
9273 | powerpc) | |
9274 | # see comment about AmigaOS4 .so support | |
9275 | lt_prog_compiler_pic='-fPIC' | |
9276 | ;; | |
9277 | m68k) | |
9278 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9279 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9280 | # like `-m68040'. | |
9281 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9282 | ;; | |
9283 | esac | |
9284 | ;; | |
9c60689e | 9285 | |
a243b558 JF |
9286 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
9287 | # PIC is the default for these OSes. | |
9288 | ;; | |
9c60689e | 9289 | |
a243b558 JF |
9290 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9291 | # This hack is so that the source file can tell whether it is being | |
9292 | # built for inclusion in a dll (and should export symbols for example). | |
9293 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9294 | # (--disable-auto-import) libraries | |
9295 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9296 | ;; | |
9c60689e | 9297 | |
a243b558 JF |
9298 | darwin* | rhapsody*) |
9299 | # PIC is the default on this platform | |
9300 | # Common symbols not allowed in MH_DYLIB files | |
9301 | lt_prog_compiler_pic='-fno-common' | |
9302 | ;; | |
9c60689e | 9303 | |
a243b558 JF |
9304 | haiku*) |
9305 | # PIC is the default for Haiku. | |
9306 | # The "-static" flag exists, but is broken. | |
9307 | lt_prog_compiler_static= | |
9308 | ;; | |
9c60689e | 9309 | |
a243b558 JF |
9310 | hpux*) |
9311 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
9312 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9313 | # sets the default TLS model and affects inlining. | |
9314 | case $host_cpu in | |
9315 | hppa*64*) | |
9316 | # +Z the default | |
9317 | ;; | |
9318 | *) | |
9319 | lt_prog_compiler_pic='-fPIC' | |
9320 | ;; | |
9321 | esac | |
9322 | ;; | |
9c60689e | 9323 | |
a243b558 JF |
9324 | interix[3-9]*) |
9325 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9326 | # Instead, we relocate shared libraries at runtime. | |
9327 | ;; | |
9c60689e | 9328 | |
a243b558 JF |
9329 | msdosdjgpp*) |
9330 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9331 | # on systems that don't support them. | |
9332 | lt_prog_compiler_can_build_shared=no | |
9333 | enable_shared=no | |
9334 | ;; | |
9c60689e | 9335 | |
a243b558 JF |
9336 | *nto* | *qnx*) |
9337 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9338 | # it will coredump. | |
9339 | lt_prog_compiler_pic='-fPIC -shared' | |
9340 | ;; | |
9c60689e | 9341 | |
a243b558 JF |
9342 | sysv4*MP*) |
9343 | if test -d /usr/nec; then | |
9344 | lt_prog_compiler_pic=-Kconform_pic | |
9345 | fi | |
9346 | ;; | |
9c60689e | 9347 | |
a243b558 JF |
9348 | *) |
9349 | lt_prog_compiler_pic='-fPIC' | |
9350 | ;; | |
9351 | esac | |
9c60689e | 9352 | |
a243b558 JF |
9353 | case $cc_basename in |
9354 | nvcc*) # Cuda Compiler Driver 2.2 | |
9355 | lt_prog_compiler_wl='-Xlinker ' | |
9356 | if test -n "$lt_prog_compiler_pic"; then | |
9357 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
9358 | fi | |
9359 | ;; | |
9360 | esac | |
9361 | else | |
9362 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9363 | case $host_os in | |
9364 | aix*) | |
9365 | lt_prog_compiler_wl='-Wl,' | |
9366 | if test "$host_cpu" = ia64; then | |
9367 | # AIX 5 now supports IA64 processor | |
9368 | lt_prog_compiler_static='-Bstatic' | |
9369 | else | |
9370 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9371 | fi | |
9372 | ;; | |
9c60689e | 9373 | |
a243b558 JF |
9374 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9375 | # This hack is so that the source file can tell whether it is being | |
9376 | # built for inclusion in a dll (and should export symbols for example). | |
9377 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9378 | ;; | |
9c60689e | 9379 | |
a243b558 JF |
9380 | hpux9* | hpux10* | hpux11*) |
9381 | lt_prog_compiler_wl='-Wl,' | |
9382 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9383 | # not for PA HP-UX. | |
9384 | case $host_cpu in | |
9385 | hppa*64*|ia64*) | |
9386 | # +Z the default | |
9387 | ;; | |
9388 | *) | |
9389 | lt_prog_compiler_pic='+Z' | |
9390 | ;; | |
9391 | esac | |
9392 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9393 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9394 | ;; | |
9c60689e | 9395 | |
a243b558 JF |
9396 | irix5* | irix6* | nonstopux*) |
9397 | lt_prog_compiler_wl='-Wl,' | |
9398 | # PIC (with -KPIC) is the default. | |
9399 | lt_prog_compiler_static='-non_shared' | |
9400 | ;; | |
9c60689e | 9401 | |
a243b558 JF |
9402 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
9403 | case $cc_basename in | |
9404 | # old Intel for x86_64 which still supported -KPIC. | |
9405 | ecc*) | |
9406 | lt_prog_compiler_wl='-Wl,' | |
9407 | lt_prog_compiler_pic='-KPIC' | |
9408 | lt_prog_compiler_static='-static' | |
9409 | ;; | |
9410 | # icc used to be incompatible with GCC. | |
9411 | # ICC 10 doesn't accept -KPIC any more. | |
9412 | icc* | ifort*) | |
9413 | lt_prog_compiler_wl='-Wl,' | |
9414 | lt_prog_compiler_pic='-fPIC' | |
9415 | lt_prog_compiler_static='-static' | |
9416 | ;; | |
9417 | # Lahey Fortran 8.1. | |
9418 | lf95*) | |
9419 | lt_prog_compiler_wl='-Wl,' | |
9420 | lt_prog_compiler_pic='--shared' | |
9421 | lt_prog_compiler_static='--static' | |
9422 | ;; | |
9423 | nagfor*) | |
9424 | # NAG Fortran compiler | |
9425 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
9426 | lt_prog_compiler_pic='-PIC' | |
9427 | lt_prog_compiler_static='-Bstatic' | |
9428 | ;; | |
9429 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9430 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
9431 | # which looks to be a dead project) | |
9432 | lt_prog_compiler_wl='-Wl,' | |
9433 | lt_prog_compiler_pic='-fpic' | |
9434 | lt_prog_compiler_static='-Bstatic' | |
9435 | ;; | |
9436 | ccc*) | |
9437 | lt_prog_compiler_wl='-Wl,' | |
9438 | # All Alpha code is PIC. | |
9439 | lt_prog_compiler_static='-non_shared' | |
9440 | ;; | |
9441 | xl* | bgxl* | bgf* | mpixl*) | |
9442 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
9443 | lt_prog_compiler_wl='-Wl,' | |
9444 | lt_prog_compiler_pic='-qpic' | |
9445 | lt_prog_compiler_static='-qstaticlink' | |
9446 | ;; | |
9447 | *) | |
9448 | case `$CC -V 2>&1 | sed 5q` in | |
9449 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
9450 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
9451 | lt_prog_compiler_pic='-KPIC' | |
9452 | lt_prog_compiler_static='-Bstatic' | |
9453 | lt_prog_compiler_wl='' | |
9454 | ;; | |
9455 | *Sun\ F* | *Sun*Fortran*) | |
9456 | lt_prog_compiler_pic='-KPIC' | |
9457 | lt_prog_compiler_static='-Bstatic' | |
9458 | lt_prog_compiler_wl='-Qoption ld ' | |
9459 | ;; | |
9460 | *Sun\ C*) | |
9461 | # Sun C 5.9 | |
9462 | lt_prog_compiler_pic='-KPIC' | |
9463 | lt_prog_compiler_static='-Bstatic' | |
9464 | lt_prog_compiler_wl='-Wl,' | |
9465 | ;; | |
9466 | *Intel*\ [CF]*Compiler*) | |
9467 | lt_prog_compiler_wl='-Wl,' | |
9468 | lt_prog_compiler_pic='-fPIC' | |
9469 | lt_prog_compiler_static='-static' | |
9470 | ;; | |
9471 | *Portland\ Group*) | |
9472 | lt_prog_compiler_wl='-Wl,' | |
9473 | lt_prog_compiler_pic='-fpic' | |
9474 | lt_prog_compiler_static='-Bstatic' | |
9475 | ;; | |
9476 | esac | |
9477 | ;; | |
9478 | esac | |
9479 | ;; | |
9c60689e | 9480 | |
a243b558 JF |
9481 | newsos6) |
9482 | lt_prog_compiler_pic='-KPIC' | |
9483 | lt_prog_compiler_static='-Bstatic' | |
9484 | ;; | |
9c60689e | 9485 | |
a243b558 JF |
9486 | *nto* | *qnx*) |
9487 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9488 | # it will coredump. | |
9489 | lt_prog_compiler_pic='-fPIC -shared' | |
9490 | ;; | |
9c60689e | 9491 | |
a243b558 JF |
9492 | osf3* | osf4* | osf5*) |
9493 | lt_prog_compiler_wl='-Wl,' | |
9494 | # All OSF/1 code is PIC. | |
9495 | lt_prog_compiler_static='-non_shared' | |
9496 | ;; | |
9c60689e | 9497 | |
a243b558 JF |
9498 | rdos*) |
9499 | lt_prog_compiler_static='-non_shared' | |
9500 | ;; | |
9c60689e | 9501 | |
a243b558 JF |
9502 | solaris*) |
9503 | lt_prog_compiler_pic='-KPIC' | |
9504 | lt_prog_compiler_static='-Bstatic' | |
9505 | case $cc_basename in | |
9506 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
9507 | lt_prog_compiler_wl='-Qoption ld ';; | |
9508 | *) | |
9509 | lt_prog_compiler_wl='-Wl,';; | |
9510 | esac | |
9511 | ;; | |
9c60689e | 9512 | |
a243b558 JF |
9513 | sunos4*) |
9514 | lt_prog_compiler_wl='-Qoption ld ' | |
9515 | lt_prog_compiler_pic='-PIC' | |
9516 | lt_prog_compiler_static='-Bstatic' | |
9517 | ;; | |
9c60689e | 9518 | |
a243b558 JF |
9519 | sysv4 | sysv4.2uw2* | sysv4.3*) |
9520 | lt_prog_compiler_wl='-Wl,' | |
9521 | lt_prog_compiler_pic='-KPIC' | |
9522 | lt_prog_compiler_static='-Bstatic' | |
9523 | ;; | |
9c60689e | 9524 | |
a243b558 JF |
9525 | sysv4*MP*) |
9526 | if test -d /usr/nec ;then | |
9527 | lt_prog_compiler_pic='-Kconform_pic' | |
9528 | lt_prog_compiler_static='-Bstatic' | |
9529 | fi | |
9530 | ;; | |
9c60689e | 9531 | |
a243b558 JF |
9532 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
9533 | lt_prog_compiler_wl='-Wl,' | |
9534 | lt_prog_compiler_pic='-KPIC' | |
9535 | lt_prog_compiler_static='-Bstatic' | |
9536 | ;; | |
9c60689e | 9537 | |
a243b558 JF |
9538 | unicos*) |
9539 | lt_prog_compiler_wl='-Wl,' | |
9540 | lt_prog_compiler_can_build_shared=no | |
9541 | ;; | |
9c60689e | 9542 | |
a243b558 JF |
9543 | uts4*) |
9544 | lt_prog_compiler_pic='-pic' | |
9545 | lt_prog_compiler_static='-Bstatic' | |
9546 | ;; | |
9c60689e | 9547 | |
a243b558 JF |
9548 | *) |
9549 | lt_prog_compiler_can_build_shared=no | |
9550 | ;; | |
9551 | esac | |
9552 | fi | |
9c60689e | 9553 | |
a243b558 JF |
9554 | case $host_os in |
9555 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9556 | *djgpp*) | |
9557 | lt_prog_compiler_pic= | |
9558 | ;; | |
9559 | *) | |
9560 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9561 | ;; | |
9562 | esac | |
9c60689e | 9563 | |
a243b558 JF |
9564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9565 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
9566 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
9567 | $as_echo_n "(cached) " >&6 | |
9568 | else | |
9569 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
9570 | fi | |
9571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
9572 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
9573 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
9c60689e | 9574 | |
a243b558 JF |
9575 | # |
9576 | # Check to make sure the PIC flag actually works. | |
9577 | # | |
9578 | if test -n "$lt_prog_compiler_pic"; then | |
9579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
9580 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
9581 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
9582 | $as_echo_n "(cached) " >&6 | |
9583 | else | |
9584 | lt_cv_prog_compiler_pic_works=no | |
9585 | ac_outfile=conftest.$ac_objext | |
9586 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9587 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
9588 | # Insert the option either (1) after the last *FLAGS variable, or | |
9589 | # (2) before a word containing "conftest.", or (3) at the end. | |
9590 | # Note that $ac_compile itself does not contain backslashes and begins | |
9591 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9592 | # The option is referenced via a variable to avoid confusing sed. | |
9593 | lt_compile=`echo "$ac_compile" | $SED \ | |
9594 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9595 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9596 | -e 's:$: $lt_compiler_flag:'` | |
9597 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9598 | (eval "$lt_compile" 2>conftest.err) | |
9599 | ac_status=$? | |
9600 | cat conftest.err >&5 | |
9601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9602 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9603 | # The compiler can only warn and ignore the option if not recognized | |
9604 | # So say no if there are warnings other than the usual output. | |
9605 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9606 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9607 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9608 | lt_cv_prog_compiler_pic_works=yes | |
9609 | fi | |
9610 | fi | |
a93f15c0 | 9611 | $RM conftest* |
9c60689e | 9612 | |
a243b558 JF |
9613 | fi |
9614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
9615 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
9c60689e | 9616 | |
a243b558 JF |
9617 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
9618 | case $lt_prog_compiler_pic in | |
9619 | "" | " "*) ;; | |
9620 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9621 | esac | |
9622 | else | |
9623 | lt_prog_compiler_pic= | |
9624 | lt_prog_compiler_can_build_shared=no | |
9625 | fi | |
9c60689e | 9626 | |
a243b558 | 9627 | fi |
9c60689e DWT |
9628 | |
9629 | ||
9630 | ||
9631 | ||
9632 | ||
9633 | ||
9c60689e DWT |
9634 | |
9635 | ||
9636 | ||
9637 | ||
9638 | ||
a243b558 JF |
9639 | # |
9640 | # Check to make sure the static flag actually works. | |
9641 | # | |
9642 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
9643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9644 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9645 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
9646 | $as_echo_n "(cached) " >&6 | |
9647 | else | |
9648 | lt_cv_prog_compiler_static_works=no | |
9649 | save_LDFLAGS="$LDFLAGS" | |
9650 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9651 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9652 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9653 | # The linker can only warn and ignore the option if not recognized | |
9654 | # So say no if there are warnings | |
9655 | if test -s conftest.err; then | |
9656 | # Append any errors to the config.log. | |
9657 | cat conftest.err 1>&5 | |
9658 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9659 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9660 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9661 | lt_cv_prog_compiler_static_works=yes | |
9662 | fi | |
9663 | else | |
9664 | lt_cv_prog_compiler_static_works=yes | |
9665 | fi | |
9666 | fi | |
9667 | $RM -r conftest* | |
9668 | LDFLAGS="$save_LDFLAGS" | |
9c60689e | 9669 | |
a243b558 JF |
9670 | fi |
9671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9672 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
9c60689e | 9673 | |
a243b558 JF |
9674 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
9675 | : | |
9c60689e | 9676 | else |
a243b558 | 9677 | lt_prog_compiler_static= |
9c60689e | 9678 | fi |
9c60689e | 9679 | |
9c60689e | 9680 | |
9c60689e | 9681 | |
9c60689e | 9682 | |
9c60689e | 9683 | |
9c60689e | 9684 | |
9c60689e | 9685 | |
a243b558 JF |
9686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9687 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9688 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9689 | $as_echo_n "(cached) " >&6 | |
9690 | else | |
9691 | lt_cv_prog_compiler_c_o=no | |
9692 | $RM -r conftest 2>/dev/null | |
9693 | mkdir conftest | |
9694 | cd conftest | |
9695 | mkdir out | |
9696 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9c60689e | 9697 | |
a243b558 JF |
9698 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9699 | # Insert the option either (1) after the last *FLAGS variable, or | |
9700 | # (2) before a word containing "conftest.", or (3) at the end. | |
9701 | # Note that $ac_compile itself does not contain backslashes and begins | |
9702 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9703 | lt_compile=`echo "$ac_compile" | $SED \ | |
9704 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9705 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9706 | -e 's:$: $lt_compiler_flag:'` | |
9707 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9708 | (eval "$lt_compile" 2>out/conftest.err) | |
9709 | ac_status=$? | |
9710 | cat out/conftest.err >&5 | |
9711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9712 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9713 | then | |
9714 | # The compiler can only warn and ignore the option if not recognized | |
9715 | # So say no if there are warnings | |
9716 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9717 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9718 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9719 | lt_cv_prog_compiler_c_o=yes | |
9720 | fi | |
9721 | fi | |
9722 | chmod u+w . 2>&5 | |
a93f15c0 | 9723 | $RM conftest* |
a243b558 JF |
9724 | # SGI C++ compiler will create directory out/ii_files/ for |
9725 | # template instantiation | |
9726 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9727 | $RM out/* && rmdir out | |
9728 | cd .. | |
9729 | $RM -r conftest | |
a93f15c0 | 9730 | $RM conftest* |
9c60689e | 9731 | |
a243b558 JF |
9732 | fi |
9733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9734 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9c60689e | 9735 | |
ee134472 | 9736 | |
ee134472 | 9737 | |
ee134472 | 9738 | |
ee134472 | 9739 | |
9c60689e | 9740 | |
a243b558 JF |
9741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9742 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9743 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9744 | $as_echo_n "(cached) " >&6 | |
9745 | else | |
9746 | lt_cv_prog_compiler_c_o=no | |
9747 | $RM -r conftest 2>/dev/null | |
9748 | mkdir conftest | |
9749 | cd conftest | |
9750 | mkdir out | |
9751 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9c60689e | 9752 | |
a243b558 JF |
9753 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9754 | # Insert the option either (1) after the last *FLAGS variable, or | |
9755 | # (2) before a word containing "conftest.", or (3) at the end. | |
9756 | # Note that $ac_compile itself does not contain backslashes and begins | |
9757 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9758 | lt_compile=`echo "$ac_compile" | $SED \ | |
9759 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9760 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9761 | -e 's:$: $lt_compiler_flag:'` | |
9762 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9763 | (eval "$lt_compile" 2>out/conftest.err) | |
9764 | ac_status=$? | |
9765 | cat out/conftest.err >&5 | |
9766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9767 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9768 | then | |
9769 | # The compiler can only warn and ignore the option if not recognized | |
9770 | # So say no if there are warnings | |
9771 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9772 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9773 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9774 | lt_cv_prog_compiler_c_o=yes | |
9775 | fi | |
9776 | fi | |
9777 | chmod u+w . 2>&5 | |
a93f15c0 | 9778 | $RM conftest* |
a243b558 JF |
9779 | # SGI C++ compiler will create directory out/ii_files/ for |
9780 | # template instantiation | |
9781 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9782 | $RM out/* && rmdir out | |
9783 | cd .. | |
9784 | $RM -r conftest | |
a93f15c0 | 9785 | $RM conftest* |
9c60689e | 9786 | |
a243b558 JF |
9787 | fi |
9788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9789 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9c60689e | 9790 | |
9c60689e | 9791 | |
a243b558 JF |
9792 | |
9793 | ||
9794 | hard_links="nottested" | |
9795 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9796 | # do not overwrite the value of need_locks provided by the user | |
9797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
9798 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
9799 | hard_links=yes | |
a93f15c0 | 9800 | $RM conftest* |
a243b558 JF |
9801 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
9802 | touch conftest.a | |
9803 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9804 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
9806 | $as_echo "$hard_links" >&6; } | |
9807 | if test "$hard_links" = no; then | |
9808 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
9809 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
9810 | need_locks=warn | |
9c60689e | 9811 | fi |
a243b558 JF |
9812 | else |
9813 | need_locks=no | |
9814 | fi | |
9c60689e | 9815 | |
ee134472 | 9816 | |
9c60689e | 9817 | |
9c60689e | 9818 | |
9c60689e | 9819 | |
a243b558 JF |
9820 | |
9821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
9822 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
9823 | ||
9824 | runpath_var= | |
9825 | allow_undefined_flag= | |
9826 | always_export_symbols=no | |
9827 | archive_cmds= | |
9828 | archive_expsym_cmds= | |
9829 | compiler_needs_object=no | |
9830 | enable_shared_with_static_runtimes=no | |
9831 | export_dynamic_flag_spec= | |
9832 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9833 | hardcode_automatic=no | |
9834 | hardcode_direct=no | |
9835 | hardcode_direct_absolute=no | |
9836 | hardcode_libdir_flag_spec= | |
9837 | hardcode_libdir_separator= | |
9838 | hardcode_minus_L=no | |
9839 | hardcode_shlibpath_var=unsupported | |
9840 | inherit_rpath=no | |
9841 | link_all_deplibs=unknown | |
9842 | module_cmds= | |
9843 | module_expsym_cmds= | |
9844 | old_archive_from_new_cmds= | |
9845 | old_archive_from_expsyms_cmds= | |
9846 | thread_safe_flag_spec= | |
9847 | whole_archive_flag_spec= | |
9848 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9849 | # included in the symbol list | |
9850 | include_expsyms= | |
9851 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9852 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9853 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9854 | # as well as any symbol that contains `d'. | |
9855 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
9856 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9857 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9858 | # the symbol is explicitly referenced. Since portable code cannot | |
9859 | # rely on this symbol name, it's probably fine to never include it in | |
9860 | # preloaded symbol tables. | |
9861 | # Exclude shared library initialization/finalization symbols. | |
9862 | extract_expsyms_cmds= | |
9863 | ||
9c60689e | 9864 | case $host_os in |
a243b558 JF |
9865 | cygwin* | mingw* | pw32* | cegcc*) |
9866 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9867 | # When not using gcc, we currently assume that we are using | |
9868 | # Microsoft Visual C++. | |
9869 | if test "$GCC" != yes; then | |
9870 | with_gnu_ld=no | |
9871 | fi | |
9c60689e | 9872 | ;; |
a243b558 JF |
9873 | interix*) |
9874 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9875 | with_gnu_ld=yes | |
9876 | ;; | |
9877 | openbsd*) | |
9878 | with_gnu_ld=no | |
9c60689e DWT |
9879 | ;; |
9880 | esac | |
9c60689e | 9881 | |
a243b558 | 9882 | ld_shlibs=yes |
ee134472 | 9883 | |
a243b558 JF |
9884 | # On some targets, GNU ld is compatible enough with the native linker |
9885 | # that we're better off using the native interface for both. | |
9886 | lt_use_gnu_ld_interface=no | |
9887 | if test "$with_gnu_ld" = yes; then | |
9888 | case $host_os in | |
9889 | aix*) | |
9890 | # The AIX port of GNU ld has always aspired to compatibility | |
9891 | # with the native linker. However, as the warning in the GNU ld | |
9892 | # block says, versions before 2.19.5* couldn't really create working | |
9893 | # shared libraries, regardless of the interface used. | |
9894 | case `$LD -v 2>&1` in | |
9895 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9896 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9897 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9898 | *) | |
9899 | lt_use_gnu_ld_interface=yes | |
9900 | ;; | |
9901 | esac | |
9902 | ;; | |
9903 | *) | |
9904 | lt_use_gnu_ld_interface=yes | |
9905 | ;; | |
9906 | esac | |
9907 | fi | |
9c60689e | 9908 | |
a243b558 JF |
9909 | if test "$lt_use_gnu_ld_interface" = yes; then |
9910 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9911 | wlarc='${wl}' | |
9c60689e | 9912 | |
a243b558 JF |
9913 | # Set some defaults for GNU ld with shared library support. These |
9914 | # are reset later if shared libraries are not supported. Putting them | |
9915 | # here allows them to be overridden if necessary. | |
9916 | runpath_var=LD_RUN_PATH | |
9917 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9918 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9919 | # ancient GNU ld didn't support --whole-archive et. al. | |
9920 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9921 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9922 | else | |
9923 | whole_archive_flag_spec= | |
9924 | fi | |
9925 | supports_anon_versioning=no | |
9926 | case `$LD -v 2>&1` in | |
9927 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
9928 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9929 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9930 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9931 | *\ 2.11.*) ;; # other 2.11 versions | |
9932 | *) supports_anon_versioning=yes ;; | |
9933 | esac | |
ee134472 | 9934 | |
a243b558 JF |
9935 | # See if GNU ld supports shared libraries. |
9936 | case $host_os in | |
9937 | aix[3-9]*) | |
9938 | # On AIX/PPC, the GNU linker is very broken | |
9939 | if test "$host_cpu" != ia64; then | |
9940 | ld_shlibs=no | |
9941 | cat <<_LT_EOF 1>&2 | |
ee134472 | 9942 | |
a243b558 JF |
9943 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
9944 | *** to be unable to reliably create shared libraries on AIX. | |
9945 | *** Therefore, libtool is disabling shared libraries support. If you | |
9946 | *** really care for shared libraries, you may want to install binutils | |
9947 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9948 | *** You will then need to restart the configuration process. | |
9c60689e | 9949 | |
a243b558 JF |
9950 | _LT_EOF |
9951 | fi | |
9952 | ;; | |
9c60689e | 9953 | |
a243b558 JF |
9954 | amigaos*) |
9955 | case $host_cpu in | |
9956 | powerpc) | |
9957 | # see comment about AmigaOS4 .so support | |
9958 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9959 | archive_expsym_cmds='' | |
9960 | ;; | |
9961 | m68k) | |
9962 | 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)' | |
9963 | hardcode_libdir_flag_spec='-L$libdir' | |
9964 | hardcode_minus_L=yes | |
9965 | ;; | |
9966 | esac | |
9967 | ;; | |
9c60689e | 9968 | |
a243b558 JF |
9969 | beos*) |
9970 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9971 | allow_undefined_flag=unsupported | |
9972 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9973 | # support --undefined. This deserves some investigation. FIXME | |
9974 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9975 | else | |
9976 | ld_shlibs=no | |
9977 | fi | |
9978 | ;; | |
9c60689e | 9979 | |
a243b558 JF |
9980 | cygwin* | mingw* | pw32* | cegcc*) |
9981 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9982 | # as there is no search path for DLLs. | |
9983 | hardcode_libdir_flag_spec='-L$libdir' | |
9984 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
9985 | allow_undefined_flag=unsupported | |
9986 | always_export_symbols=no | |
9987 | enable_shared_with_static_runtimes=yes | |
9988 | 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' | |
9989 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
9c60689e | 9990 | |
a243b558 JF |
9991 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
9992 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9993 | # If the export-symbols file already is a .def file (1st line | |
9994 | # is EXPORTS), use it as is; otherwise, prepend... | |
9995 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9996 | cp $export_symbols $output_objdir/$soname.def; | |
9997 | else | |
9998 | echo EXPORTS > $output_objdir/$soname.def; | |
9999 | cat $export_symbols >> $output_objdir/$soname.def; | |
10000 | fi~ | |
10001 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10002 | else | |
10003 | ld_shlibs=no | |
10004 | fi | |
10005 | ;; | |
9c60689e | 10006 | |
a243b558 JF |
10007 | haiku*) |
10008 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10009 | link_all_deplibs=yes | |
10010 | ;; | |
9c60689e | 10011 | |
a243b558 JF |
10012 | interix[3-9]*) |
10013 | hardcode_direct=no | |
10014 | hardcode_shlibpath_var=no | |
10015 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10016 | export_dynamic_flag_spec='${wl}-E' | |
10017 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
10018 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
10019 | # default) and relocated if they conflict, which is a slow very memory | |
10020 | # consuming and fragmenting process. To avoid this, we pick a random, | |
10021 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
10022 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
10023 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
10024 | 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' | |
10025 | ;; | |
9c60689e | 10026 | |
a243b558 JF |
10027 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
10028 | tmp_diet=no | |
10029 | if test "$host_os" = linux-dietlibc; then | |
10030 | case $cc_basename in | |
10031 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
10032 | esac | |
10033 | fi | |
10034 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
10035 | && test "$tmp_diet" = no | |
10036 | then | |
10037 | tmp_addflag=' $pic_flag' | |
10038 | tmp_sharedflag='-shared' | |
10039 | case $cc_basename,$host_cpu in | |
10040 | pgcc*) # Portland Group C compiler | |
10041 | 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' | |
10042 | tmp_addflag=' $pic_flag' | |
10043 | ;; | |
10044 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
10045 | # Portland Group f77 and f90 compilers | |
10046 | 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' | |
10047 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
10048 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
10049 | tmp_addflag=' -i_dynamic' ;; | |
10050 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
10051 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
10052 | ifc* | ifort*) # Intel Fortran compiler | |
10053 | tmp_addflag=' -nofor_main' ;; | |
10054 | lf95*) # Lahey Fortran 8.1 | |
10055 | whole_archive_flag_spec= | |
10056 | tmp_sharedflag='--shared' ;; | |
10057 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
10058 | tmp_sharedflag='-qmkshrobj' | |
10059 | tmp_addflag= ;; | |
10060 | nvcc*) # Cuda Compiler Driver 2.2 | |
10061 | 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' | |
10062 | compiler_needs_object=yes | |
10063 | ;; | |
10064 | esac | |
10065 | case `$CC -V 2>&1 | sed 5q` in | |
10066 | *Sun\ C*) # Sun C 5.9 | |
10067 | 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' | |
10068 | compiler_needs_object=yes | |
10069 | tmp_sharedflag='-G' ;; | |
10070 | *Sun\ F*) # Sun Fortran 8.3 | |
10071 | tmp_sharedflag='-G' ;; | |
10072 | esac | |
10073 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9c60689e | 10074 | |
a243b558 JF |
10075 | if test "x$supports_anon_versioning" = xyes; then |
10076 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10077 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10078 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10079 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
10080 | fi | |
9c60689e | 10081 | |
a243b558 JF |
10082 | case $cc_basename in |
10083 | xlf* | bgf* | bgxlf* | mpixlf*) | |
10084 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
10085 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
10086 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10087 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
10088 | if test "x$supports_anon_versioning" = xyes; then | |
10089 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10090 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10091 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10092 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
10093 | fi | |
10094 | ;; | |
10095 | esac | |
10096 | else | |
10097 | ld_shlibs=no | |
10098 | fi | |
10099 | ;; | |
9c60689e | 10100 | |
a243b558 JF |
10101 | netbsd*) |
10102 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10103 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
10104 | wlarc= | |
10105 | else | |
10106 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10107 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10108 | fi | |
10109 | ;; | |
9c60689e | 10110 | |
a243b558 JF |
10111 | solaris*) |
10112 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
10113 | ld_shlibs=no | |
10114 | cat <<_LT_EOF 1>&2 | |
9c60689e | 10115 | |
a243b558 JF |
10116 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
10117 | *** create shared libraries on Solaris systems. Therefore, libtool | |
10118 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10119 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
10120 | *** your PATH or compiler configuration so that the native linker is | |
10121 | *** used, and then restart. | |
9c60689e | 10122 | |
a243b558 JF |
10123 | _LT_EOF |
10124 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10125 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10126 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10127 | else | |
10128 | ld_shlibs=no | |
10129 | fi | |
10130 | ;; | |
9c60689e | 10131 | |
a243b558 JF |
10132 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
10133 | case `$LD -v 2>&1` in | |
10134 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
10135 | ld_shlibs=no | |
10136 | cat <<_LT_EOF 1>&2 | |
9c60689e | 10137 | |
a243b558 JF |
10138 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
10139 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
10140 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10141 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10142 | *** your PATH or compiler configuration so that the native linker is | |
10143 | *** used, and then restart. | |
9c60689e | 10144 | |
a243b558 JF |
10145 | _LT_EOF |
10146 | ;; | |
10147 | *) | |
10148 | # For security reasons, it is highly recommended that you always | |
10149 | # use absolute paths for naming shared libraries, and exclude the | |
10150 | # DT_RUNPATH tag from executables and libraries. But doing so | |
10151 | # requires that you compile everything twice, which is a pain. | |
10152 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10153 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10154 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10155 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10156 | else | |
10157 | ld_shlibs=no | |
10158 | fi | |
10159 | ;; | |
10160 | esac | |
10161 | ;; | |
9c60689e | 10162 | |
a243b558 JF |
10163 | sunos4*) |
10164 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10165 | wlarc= | |
10166 | hardcode_direct=yes | |
10167 | hardcode_shlibpath_var=no | |
10168 | ;; | |
9c60689e | 10169 | |
a243b558 JF |
10170 | *) |
10171 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10172 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10173 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10174 | else | |
10175 | ld_shlibs=no | |
10176 | fi | |
10177 | ;; | |
10178 | esac | |
9c60689e | 10179 | |
a243b558 JF |
10180 | if test "$ld_shlibs" = no; then |
10181 | runpath_var= | |
10182 | hardcode_libdir_flag_spec= | |
10183 | export_dynamic_flag_spec= | |
10184 | whole_archive_flag_spec= | |
10185 | fi | |
10186 | else | |
10187 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10188 | case $host_os in | |
10189 | aix3*) | |
10190 | allow_undefined_flag=unsupported | |
10191 | always_export_symbols=yes | |
10192 | 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' | |
10193 | # Note: this linker hardcodes the directories in LIBPATH if there | |
10194 | # are no directories specified by -L. | |
10195 | hardcode_minus_L=yes | |
10196 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
10197 | # Neither direct hardcoding nor static linking is supported with a | |
10198 | # broken collect2. | |
10199 | hardcode_direct=unsupported | |
10200 | fi | |
10201 | ;; | |
9c60689e | 10202 | |
a243b558 JF |
10203 | aix[4-9]*) |
10204 | if test "$host_cpu" = ia64; then | |
10205 | # On IA64, the linker does run time linking by default, so we don't | |
10206 | # have to do anything special. | |
10207 | aix_use_runtimelinking=no | |
10208 | exp_sym_flag='-Bexport' | |
10209 | no_entry_flag="" | |
10210 | else | |
10211 | # If we're using GNU nm, then we don't want the "-C" option. | |
10212 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
10213 | # Also, AIX nm treats weak defined symbols like other global | |
10214 | # defined symbols, whereas GNU nm marks them as "W". | |
10215 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
10216 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
10217 | else | |
10218 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
10219 | fi | |
10220 | aix_use_runtimelinking=no | |
9c60689e | 10221 | |
a243b558 JF |
10222 | # Test if we are trying to use run time linking or normal |
10223 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10224 | # need to do runtime linking. | |
10225 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
10226 | for ld_flag in $LDFLAGS; do | |
10227 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
10228 | aix_use_runtimelinking=yes | |
10229 | break | |
10230 | fi | |
10231 | done | |
10232 | ;; | |
10233 | esac | |
9c60689e | 10234 | |
a243b558 JF |
10235 | exp_sym_flag='-bexport' |
10236 | no_entry_flag='-bnoentry' | |
10237 | fi | |
9c60689e | 10238 | |
a243b558 JF |
10239 | # When large executables or shared objects are built, AIX ld can |
10240 | # have problems creating the table of contents. If linking a library | |
10241 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10242 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10243 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9c60689e | 10244 | |
a243b558 JF |
10245 | archive_cmds='' |
10246 | hardcode_direct=yes | |
10247 | hardcode_direct_absolute=yes | |
10248 | hardcode_libdir_separator=':' | |
10249 | link_all_deplibs=yes | |
10250 | file_list_spec='${wl}-f,' | |
9c60689e | 10251 | |
a243b558 JF |
10252 | if test "$GCC" = yes; then |
10253 | case $host_os in aix4.[012]|aix4.[012].*) | |
10254 | # We only want to do this on AIX 4.2 and lower, the check | |
10255 | # below for broken collect2 doesn't work under 4.3+ | |
10256 | collect2name=`${CC} -print-prog-name=collect2` | |
10257 | if test -f "$collect2name" && | |
10258 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10259 | then | |
10260 | # We have reworked collect2 | |
10261 | : | |
10262 | else | |
10263 | # We have old collect2 | |
10264 | hardcode_direct=unsupported | |
10265 | # It fails to find uninstalled libraries when the uninstalled | |
10266 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10267 | # to unsupported forces relinking | |
10268 | hardcode_minus_L=yes | |
10269 | hardcode_libdir_flag_spec='-L$libdir' | |
10270 | hardcode_libdir_separator= | |
10271 | fi | |
10272 | ;; | |
10273 | esac | |
10274 | shared_flag='-shared' | |
10275 | if test "$aix_use_runtimelinking" = yes; then | |
10276 | shared_flag="$shared_flag "'${wl}-G' | |
10277 | fi | |
10278 | else | |
10279 | # not using gcc | |
10280 | if test "$host_cpu" = ia64; then | |
10281 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10282 | # chokes on -Wl,-G. The following line is correct: | |
10283 | shared_flag='-G' | |
10284 | else | |
10285 | if test "$aix_use_runtimelinking" = yes; then | |
10286 | shared_flag='${wl}-G' | |
10287 | else | |
10288 | shared_flag='${wl}-bM:SRE' | |
10289 | fi | |
10290 | fi | |
10291 | fi | |
9c60689e | 10292 | |
a243b558 JF |
10293 | export_dynamic_flag_spec='${wl}-bexpall' |
10294 | # It seems that -bexpall does not export symbols beginning with | |
10295 | # underscore (_), so it is better to generate a list of symbols to export. | |
10296 | always_export_symbols=yes | |
10297 | if test "$aix_use_runtimelinking" = yes; then | |
10298 | # Warning - without using the other runtime loading flags (-brtl), | |
10299 | # -berok will link without error, but may produce a broken library. | |
10300 | allow_undefined_flag='-berok' | |
10301 | # Determine the default libpath from the value encoded in an | |
10302 | # empty executable. | |
10303 | if test "${lt_cv_aix_libpath+set}" = set; then | |
10304 | aix_libpath=$lt_cv_aix_libpath | |
9c60689e | 10305 | else |
a243b558 | 10306 | if ${lt_cv_aix_libpath_+:} false; then : |
9c60689e DWT |
10307 | $as_echo_n "(cached) " >&6 |
10308 | else | |
a243b558 | 10309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9c60689e DWT |
10310 | /* end confdefs.h. */ |
10311 | ||
9c60689e DWT |
10312 | int |
10313 | main () | |
10314 | { | |
a243b558 | 10315 | |
9c60689e DWT |
10316 | ; |
10317 | return 0; | |
10318 | } | |
10319 | _ACEOF | |
10320 | if ac_fn_c_try_link "$LINENO"; then : | |
a243b558 JF |
10321 | |
10322 | lt_aix_libpath_sed=' | |
10323 | /Import File Strings/,/^$/ { | |
10324 | /^0/ { | |
10325 | s/^0 *\([^ ]*\) *$/\1/ | |
10326 | p | |
10327 | } | |
10328 | }' | |
10329 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10330 | # Check for a 64-bit object if we didn't find anything. | |
10331 | if test -z "$lt_cv_aix_libpath_"; then | |
10332 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10333 | fi | |
9c60689e DWT |
10334 | fi |
10335 | rm -f core conftest.err conftest.$ac_objext \ | |
10336 | conftest$ac_exeext conftest.$ac_ext | |
a243b558 JF |
10337 | if test -z "$lt_cv_aix_libpath_"; then |
10338 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
10339 | fi | |
9c60689e DWT |
10340 | |
10341 | fi | |
10342 | ||
a243b558 JF |
10343 | aix_libpath=$lt_cv_aix_libpath_ |
10344 | fi | |
9c60689e | 10345 | |
a243b558 JF |
10346 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
10347 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
10348 | else | |
10349 | if test "$host_cpu" = ia64; then | |
10350 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
10351 | allow_undefined_flag="-z nodefs" | |
10352 | 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" | |
10353 | else | |
10354 | # Determine the default libpath from the value encoded in an | |
10355 | # empty executable. | |
10356 | if test "${lt_cv_aix_libpath+set}" = set; then | |
10357 | aix_libpath=$lt_cv_aix_libpath | |
9c60689e | 10358 | else |
a243b558 | 10359 | if ${lt_cv_aix_libpath_+:} false; then : |
9c60689e DWT |
10360 | $as_echo_n "(cached) " >&6 |
10361 | else | |
a243b558 | 10362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9c60689e DWT |
10363 | /* end confdefs.h. */ |
10364 | ||
9c60689e DWT |
10365 | int |
10366 | main () | |
10367 | { | |
a243b558 | 10368 | |
9c60689e DWT |
10369 | ; |
10370 | return 0; | |
10371 | } | |
10372 | _ACEOF | |
10373 | if ac_fn_c_try_link "$LINENO"; then : | |
9c60689e | 10374 | |
a243b558 JF |
10375 | lt_aix_libpath_sed=' |
10376 | /Import File Strings/,/^$/ { | |
10377 | /^0/ { | |
10378 | s/^0 *\([^ ]*\) *$/\1/ | |
10379 | p | |
10380 | } | |
10381 | }' | |
10382 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10383 | # Check for a 64-bit object if we didn't find anything. | |
10384 | if test -z "$lt_cv_aix_libpath_"; then | |
10385 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10386 | fi | |
9c60689e DWT |
10387 | fi |
10388 | rm -f core conftest.err conftest.$ac_objext \ | |
10389 | conftest$ac_exeext conftest.$ac_ext | |
a243b558 JF |
10390 | if test -z "$lt_cv_aix_libpath_"; then |
10391 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
10392 | fi | |
10393 | ||
9c60689e | 10394 | fi |
9c60689e | 10395 | |
a243b558 JF |
10396 | aix_libpath=$lt_cv_aix_libpath_ |
10397 | fi | |
10398 | ||
10399 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10400 | # Warning - without using the other run time loading flags, | |
10401 | # -berok will link without error, but may produce a broken library. | |
10402 | no_undefined_flag=' ${wl}-bernotok' | |
10403 | allow_undefined_flag=' ${wl}-berok' | |
10404 | if test "$with_gnu_ld" = yes; then | |
10405 | # We only use this code for GNU lds that support --whole-archive. | |
10406 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10407 | else | |
10408 | # Exported symbols can be pulled into shared objects from archives | |
10409 | whole_archive_flag_spec='$convenience' | |
10410 | fi | |
10411 | archive_cmds_need_lc=yes | |
10412 | # This is similar to how AIX traditionally builds its shared libraries. | |
10413 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
10414 | fi | |
10415 | fi | |
10416 | ;; | |
10417 | ||
10418 | amigaos*) | |
10419 | case $host_cpu in | |
10420 | powerpc) | |
10421 | # see comment about AmigaOS4 .so support | |
10422 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10423 | archive_expsym_cmds='' | |
10424 | ;; | |
10425 | m68k) | |
10426 | 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)' | |
10427 | hardcode_libdir_flag_spec='-L$libdir' | |
10428 | hardcode_minus_L=yes | |
10429 | ;; | |
10430 | esac | |
10431 | ;; | |
10432 | ||
10433 | bsdi[45]*) | |
10434 | export_dynamic_flag_spec=-rdynamic | |
10435 | ;; | |
10436 | ||
10437 | cygwin* | mingw* | pw32* | cegcc*) | |
10438 | # When not using gcc, we currently assume that we are using | |
10439 | # Microsoft Visual C++. | |
10440 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10441 | # no search path for DLLs. | |
10442 | case $cc_basename in | |
10443 | cl*) | |
10444 | # Native MSVC | |
10445 | hardcode_libdir_flag_spec=' ' | |
10446 | allow_undefined_flag=unsupported | |
10447 | always_export_symbols=yes | |
10448 | file_list_spec='@' | |
10449 | # Tell ltmain to make .lib files, not .a files. | |
10450 | libext=lib | |
10451 | # Tell ltmain to make .dll files, not .so files. | |
10452 | shrext_cmds=".dll" | |
10453 | # FIXME: Setting linknames here is a bad hack. | |
10454 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
10455 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10456 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
10457 | else | |
10458 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
10459 | fi~ | |
10460 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
10461 | linknames=' | |
10462 | # The linker will not automatically build a static lib if we build a DLL. | |
10463 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
10464 | enable_shared_with_static_runtimes=yes | |
10465 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
10466 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10467 | # Don't use ranlib | |
10468 | old_postinstall_cmds='chmod 644 $oldlib' | |
10469 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
10470 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
10471 | case $lt_outputfile in | |
10472 | *.exe|*.EXE) ;; | |
10473 | *) | |
10474 | lt_outputfile="$lt_outputfile.exe" | |
10475 | lt_tool_outputfile="$lt_tool_outputfile.exe" | |
10476 | ;; | |
10477 | esac~ | |
10478 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
10479 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
10480 | $RM "$lt_outputfile.manifest"; | |
10481 | fi' | |
10482 | ;; | |
10483 | *) | |
10484 | # Assume MSVC wrapper | |
10485 | hardcode_libdir_flag_spec=' ' | |
10486 | allow_undefined_flag=unsupported | |
10487 | # Tell ltmain to make .lib files, not .a files. | |
10488 | libext=lib | |
10489 | # Tell ltmain to make .dll files, not .so files. | |
10490 | shrext_cmds=".dll" | |
10491 | # FIXME: Setting linknames here is a bad hack. | |
10492 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
10493 | # The linker will automatically build a .lib file if we build a DLL. | |
10494 | old_archive_from_new_cmds='true' | |
10495 | # FIXME: Should let the user specify the lib program. | |
10496 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10497 | enable_shared_with_static_runtimes=yes | |
10498 | ;; | |
10499 | esac | |
10500 | ;; | |
10501 | ||
10502 | darwin* | rhapsody*) | |
10503 | ||
10504 | ||
10505 | archive_cmds_need_lc=no | |
10506 | hardcode_direct=no | |
10507 | hardcode_automatic=yes | |
10508 | hardcode_shlibpath_var=unsupported | |
10509 | if test "$lt_cv_ld_force_load" = "yes"; then | |
10510 | 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\"`' | |
10511 | ||
10512 | else | |
10513 | whole_archive_flag_spec='' | |
10514 | fi | |
10515 | link_all_deplibs=yes | |
10516 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10517 | case $cc_basename in | |
10518 | ifort*) _lt_dar_can_shared=yes ;; | |
10519 | *) _lt_dar_can_shared=$GCC ;; | |
10520 | esac | |
10521 | if test "$_lt_dar_can_shared" = "yes"; then | |
10522 | output_verbose_link_cmd=func_echo_all | |
10523 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
10524 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10525 | 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}" | |
10526 | 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}" | |
10527 | ||
10528 | else | |
10529 | ld_shlibs=no | |
10530 | fi | |
10531 | ||
10532 | ;; | |
10533 | ||
10534 | dgux*) | |
10535 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10536 | hardcode_libdir_flag_spec='-L$libdir' | |
10537 | hardcode_shlibpath_var=no | |
10538 | ;; | |
10539 | ||
10540 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
10541 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10542 | # does not break anything, and helps significantly (at the cost of a little | |
10543 | # extra space). | |
10544 | freebsd2.2*) | |
10545 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10546 | hardcode_libdir_flag_spec='-R$libdir' | |
10547 | hardcode_direct=yes | |
10548 | hardcode_shlibpath_var=no | |
10549 | ;; | |
10550 | ||
10551 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
10552 | freebsd2.*) | |
10553 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10554 | hardcode_direct=yes | |
10555 | hardcode_minus_L=yes | |
10556 | hardcode_shlibpath_var=no | |
10557 | ;; | |
10558 | ||
10559 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10560 | freebsd* | dragonfly*) | |
10561 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10562 | hardcode_libdir_flag_spec='-R$libdir' | |
10563 | hardcode_direct=yes | |
10564 | hardcode_shlibpath_var=no | |
10565 | ;; | |
10566 | ||
10567 | hpux9*) | |
10568 | if test "$GCC" = yes; then | |
10569 | archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
10570 | else | |
10571 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
10572 | fi | |
10573 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10574 | hardcode_libdir_separator=: | |
10575 | hardcode_direct=yes | |
10576 | ||
10577 | # hardcode_minus_L: Not really in the search PATH, | |
10578 | # but as the default location of the library. | |
10579 | hardcode_minus_L=yes | |
10580 | export_dynamic_flag_spec='${wl}-E' | |
10581 | ;; | |
10582 | ||
10583 | hpux10*) | |
10584 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10585 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10586 | else | |
10587 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10588 | fi | |
10589 | if test "$with_gnu_ld" = no; then | |
10590 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10591 | hardcode_libdir_separator=: | |
10592 | hardcode_direct=yes | |
10593 | hardcode_direct_absolute=yes | |
10594 | export_dynamic_flag_spec='${wl}-E' | |
10595 | # hardcode_minus_L: Not really in the search PATH, | |
10596 | # but as the default location of the library. | |
10597 | hardcode_minus_L=yes | |
10598 | fi | |
10599 | ;; | |
10600 | ||
10601 | hpux11*) | |
10602 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10603 | case $host_cpu in | |
10604 | hppa*64*) | |
10605 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10606 | ;; | |
10607 | ia64*) | |
10608 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10609 | ;; | |
10610 | *) | |
10611 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10612 | ;; | |
10613 | esac | |
10614 | else | |
10615 | case $host_cpu in | |
10616 | hppa*64*) | |
10617 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10618 | ;; | |
10619 | ia64*) | |
10620 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10621 | ;; | |
10622 | *) | |
10623 | ||
10624 | # Older versions of the 11.00 compiler do not understand -b yet | |
10625 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10627 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10628 | if ${lt_cv_prog_compiler__b+:} false; then : | |
10629 | $as_echo_n "(cached) " >&6 | |
10630 | else | |
10631 | lt_cv_prog_compiler__b=no | |
10632 | save_LDFLAGS="$LDFLAGS" | |
10633 | LDFLAGS="$LDFLAGS -b" | |
10634 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10635 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10636 | # The linker can only warn and ignore the option if not recognized | |
10637 | # So say no if there are warnings | |
10638 | if test -s conftest.err; then | |
10639 | # Append any errors to the config.log. | |
10640 | cat conftest.err 1>&5 | |
10641 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10642 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10643 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10644 | lt_cv_prog_compiler__b=yes | |
10645 | fi | |
10646 | else | |
10647 | lt_cv_prog_compiler__b=yes | |
10648 | fi | |
10649 | fi | |
10650 | $RM -r conftest* | |
10651 | LDFLAGS="$save_LDFLAGS" | |
10652 | ||
10653 | fi | |
10654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10655 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10656 | ||
10657 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
10658 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10659 | else | |
10660 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10661 | fi | |
10662 | ||
10663 | ;; | |
10664 | esac | |
10665 | fi | |
10666 | if test "$with_gnu_ld" = no; then | |
10667 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10668 | hardcode_libdir_separator=: | |
10669 | ||
10670 | case $host_cpu in | |
10671 | hppa*64*|ia64*) | |
10672 | hardcode_direct=no | |
10673 | hardcode_shlibpath_var=no | |
10674 | ;; | |
10675 | *) | |
10676 | hardcode_direct=yes | |
10677 | hardcode_direct_absolute=yes | |
10678 | export_dynamic_flag_spec='${wl}-E' | |
10679 | ||
10680 | # hardcode_minus_L: Not really in the search PATH, | |
10681 | # but as the default location of the library. | |
10682 | hardcode_minus_L=yes | |
10683 | ;; | |
10684 | esac | |
10685 | fi | |
10686 | ;; | |
10687 | ||
10688 | irix5* | irix6* | nonstopux*) | |
10689 | if test "$GCC" = yes; then | |
10690 | 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' | |
10691 | # Try to use the -exported_symbol ld option, if it does not | |
10692 | # work, assume that -exports_file does not work either and | |
10693 | # implicitly export all symbols. | |
10694 | # This should be the same for all languages, so no per-tag cache variable. | |
10695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
10696 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
10697 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
10698 | $as_echo_n "(cached) " >&6 | |
10699 | else | |
10700 | save_LDFLAGS="$LDFLAGS" | |
10701 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
10702 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10703 | /* end confdefs.h. */ | |
10704 | int foo (void) { return 0; } | |
10705 | _ACEOF | |
10706 | if ac_fn_c_try_link "$LINENO"; then : | |
10707 | lt_cv_irix_exported_symbol=yes | |
10708 | else | |
10709 | lt_cv_irix_exported_symbol=no | |
10710 | fi | |
10711 | rm -f core conftest.err conftest.$ac_objext \ | |
10712 | conftest$ac_exeext conftest.$ac_ext | |
10713 | LDFLAGS="$save_LDFLAGS" | |
10714 | fi | |
10715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
10716 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
10717 | if test "$lt_cv_irix_exported_symbol" = yes; then | |
10718 | 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' | |
10719 | fi | |
10720 | else | |
10721 | 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' | |
10722 | 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' | |
10723 | fi | |
10724 | archive_cmds_need_lc='no' | |
10725 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10726 | hardcode_libdir_separator=: | |
10727 | inherit_rpath=yes | |
10728 | link_all_deplibs=yes | |
10729 | ;; | |
10730 | ||
10731 | netbsd*) | |
10732 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10733 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10734 | else | |
10735 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10736 | fi | |
10737 | hardcode_libdir_flag_spec='-R$libdir' | |
10738 | hardcode_direct=yes | |
10739 | hardcode_shlibpath_var=no | |
10740 | ;; | |
10741 | ||
10742 | newsos6) | |
10743 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10744 | hardcode_direct=yes | |
10745 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10746 | hardcode_libdir_separator=: | |
10747 | hardcode_shlibpath_var=no | |
10748 | ;; | |
10749 | ||
10750 | *nto* | *qnx*) | |
10751 | ;; | |
10752 | ||
10753 | openbsd*) | |
10754 | if test -f /usr/libexec/ld.so; then | |
10755 | hardcode_direct=yes | |
10756 | hardcode_shlibpath_var=no | |
10757 | hardcode_direct_absolute=yes | |
10758 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10759 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10760 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
10761 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10762 | export_dynamic_flag_spec='${wl}-E' | |
10763 | else | |
10764 | case $host_os in | |
10765 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10766 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10767 | hardcode_libdir_flag_spec='-R$libdir' | |
10768 | ;; | |
10769 | *) | |
10770 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10771 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10772 | ;; | |
10773 | esac | |
10774 | fi | |
10775 | else | |
10776 | ld_shlibs=no | |
10777 | fi | |
10778 | ;; | |
10779 | ||
10780 | os2*) | |
10781 | hardcode_libdir_flag_spec='-L$libdir' | |
10782 | hardcode_minus_L=yes | |
10783 | allow_undefined_flag=unsupported | |
10784 | archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
10785 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
10786 | ;; | |
10787 | ||
10788 | osf3*) | |
10789 | if test "$GCC" = yes; then | |
10790 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10791 | 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' | |
10792 | else | |
10793 | allow_undefined_flag=' -expect_unresolved \*' | |
10794 | 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' | |
10795 | fi | |
10796 | archive_cmds_need_lc='no' | |
10797 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10798 | hardcode_libdir_separator=: | |
10799 | ;; | |
10800 | ||
10801 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
10802 | if test "$GCC" = yes; then | |
10803 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10804 | 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' | |
10805 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10806 | else | |
10807 | allow_undefined_flag=' -expect_unresolved \*' | |
10808 | 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' | |
10809 | 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~ | |
10810 | $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' | |
10811 | ||
10812 | # Both c and cxx compiler support -rpath directly | |
10813 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10814 | fi | |
10815 | archive_cmds_need_lc='no' | |
10816 | hardcode_libdir_separator=: | |
10817 | ;; | |
10818 | ||
10819 | solaris*) | |
10820 | no_undefined_flag=' -z defs' | |
10821 | if test "$GCC" = yes; then | |
10822 | wlarc='${wl}' | |
10823 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10824 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10825 | $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' | |
10826 | else | |
10827 | case `$CC -V 2>&1` in | |
10828 | *"Compilers 5.0"*) | |
10829 | wlarc='' | |
10830 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10831 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10832 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10833 | ;; | |
10834 | *) | |
10835 | wlarc='${wl}' | |
10836 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10837 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10838 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10839 | ;; | |
10840 | esac | |
10841 | fi | |
10842 | hardcode_libdir_flag_spec='-R$libdir' | |
10843 | hardcode_shlibpath_var=no | |
10844 | case $host_os in | |
10845 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10846 | *) | |
10847 | # The compiler driver will combine and reorder linker options, | |
10848 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10849 | # but is careful enough not to reorder. | |
10850 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10851 | if test "$GCC" = yes; then | |
10852 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10853 | else | |
10854 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10855 | fi | |
10856 | ;; | |
10857 | esac | |
10858 | link_all_deplibs=yes | |
10859 | ;; | |
10860 | ||
10861 | sunos4*) | |
10862 | if test "x$host_vendor" = xsequent; then | |
10863 | # Use $CC to link under sequent, because it throws in some extra .o | |
10864 | # files that make .init and .fini sections work. | |
10865 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10866 | else | |
10867 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10868 | fi | |
10869 | hardcode_libdir_flag_spec='-L$libdir' | |
10870 | hardcode_direct=yes | |
10871 | hardcode_minus_L=yes | |
10872 | hardcode_shlibpath_var=no | |
10873 | ;; | |
10874 | ||
10875 | sysv4) | |
10876 | case $host_vendor in | |
10877 | sni) | |
10878 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10879 | hardcode_direct=yes # is this really true??? | |
10880 | ;; | |
10881 | siemens) | |
10882 | ## LD is ld it makes a PLAMLIB | |
10883 | ## CC just makes a GrossModule. | |
10884 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10885 | reload_cmds='$CC -r -o $output$reload_objs' | |
10886 | hardcode_direct=no | |
10887 | ;; | |
10888 | motorola) | |
10889 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10890 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10891 | ;; | |
10892 | esac | |
10893 | runpath_var='LD_RUN_PATH' | |
10894 | hardcode_shlibpath_var=no | |
10895 | ;; | |
10896 | ||
10897 | sysv4.3*) | |
10898 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10899 | hardcode_shlibpath_var=no | |
10900 | export_dynamic_flag_spec='-Bexport' | |
10901 | ;; | |
10902 | ||
10903 | sysv4*MP*) | |
10904 | if test -d /usr/nec; then | |
10905 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10906 | hardcode_shlibpath_var=no | |
10907 | runpath_var=LD_RUN_PATH | |
10908 | hardcode_runpath_var=yes | |
10909 | ld_shlibs=yes | |
10910 | fi | |
10911 | ;; | |
10912 | ||
10913 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
10914 | no_undefined_flag='${wl}-z,text' | |
10915 | archive_cmds_need_lc=no | |
10916 | hardcode_shlibpath_var=no | |
10917 | runpath_var='LD_RUN_PATH' | |
10918 | ||
10919 | if test "$GCC" = yes; then | |
10920 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10921 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10922 | else | |
10923 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10924 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10925 | fi | |
10926 | ;; | |
10927 | ||
10928 | sysv5* | sco3.2v5* | sco5v6*) | |
10929 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10930 | # link with -lc, and that would cause any symbols used from libc to | |
10931 | # always be unresolved, which means just about no library would | |
10932 | # ever link correctly. If we're not using GNU ld we use -z text | |
10933 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10934 | # as -z defs. | |
10935 | no_undefined_flag='${wl}-z,text' | |
10936 | allow_undefined_flag='${wl}-z,nodefs' | |
10937 | archive_cmds_need_lc=no | |
10938 | hardcode_shlibpath_var=no | |
10939 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10940 | hardcode_libdir_separator=':' | |
10941 | link_all_deplibs=yes | |
10942 | export_dynamic_flag_spec='${wl}-Bexport' | |
10943 | runpath_var='LD_RUN_PATH' | |
10944 | ||
10945 | if test "$GCC" = yes; then | |
10946 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10947 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10948 | else | |
10949 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10950 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10951 | fi | |
10952 | ;; | |
10953 | ||
10954 | uts4*) | |
10955 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10956 | hardcode_libdir_flag_spec='-L$libdir' | |
10957 | hardcode_shlibpath_var=no | |
10958 | ;; | |
10959 | ||
10960 | *) | |
10961 | ld_shlibs=no | |
10962 | ;; | |
10963 | esac | |
10964 | ||
10965 | if test x$host_vendor = xsni; then | |
10966 | case $host in | |
10967 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10968 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10969 | ;; | |
10970 | esac | |
10971 | fi | |
10972 | fi | |
10973 | ||
10974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
10975 | $as_echo "$ld_shlibs" >&6; } | |
10976 | test "$ld_shlibs" = no && can_build_shared=no | |
10977 | ||
10978 | with_gnu_ld=$with_gnu_ld | |
10979 | ||
10980 | ||
10981 | ||
10982 | ||
10983 | ||
10984 | ||
10985 | ||
10986 | ||
10987 | ||
10988 | ||
10989 | ||
10990 | ||
10991 | ||
10992 | ||
10993 | ||
10994 | # | |
10995 | # Do we need to explicitly link libc? | |
10996 | # | |
10997 | case "x$archive_cmds_need_lc" in | |
10998 | x|xyes) | |
10999 | # Assume -lc should be added | |
11000 | archive_cmds_need_lc=yes | |
11001 | ||
11002 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
11003 | case $archive_cmds in | |
11004 | *'~'*) | |
11005 | # FIXME: we may have to deal with multi-command sequences. | |
11006 | ;; | |
11007 | '$CC '*) | |
11008 | # Test whether the compiler implicitly links with -lc since on some | |
11009 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
11010 | # to ld, don't add -lc before -lgcc. | |
11011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
11012 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
11013 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
11014 | $as_echo_n "(cached) " >&6 | |
11015 | else | |
a93f15c0 | 11016 | $RM conftest* |
a243b558 JF |
11017 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
11018 | ||
11019 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
11020 | (eval $ac_compile) 2>&5 | |
11021 | ac_status=$? | |
11022 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11023 | test $ac_status = 0; } 2>conftest.err; then | |
11024 | soname=conftest | |
11025 | lib=conftest | |
11026 | libobjs=conftest.$ac_objext | |
11027 | deplibs= | |
11028 | wl=$lt_prog_compiler_wl | |
11029 | pic_flag=$lt_prog_compiler_pic | |
11030 | compiler_flags=-v | |
11031 | linker_flags=-v | |
11032 | verstring= | |
11033 | output_objdir=. | |
11034 | libname=conftest | |
11035 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
11036 | allow_undefined_flag= | |
11037 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
11038 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
11039 | ac_status=$? | |
11040 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11041 | test $ac_status = 0; } | |
11042 | then | |
11043 | lt_cv_archive_cmds_need_lc=no | |
11044 | else | |
11045 | lt_cv_archive_cmds_need_lc=yes | |
11046 | fi | |
11047 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
11048 | else | |
11049 | cat conftest.err 1>&5 | |
11050 | fi | |
a93f15c0 | 11051 | $RM conftest* |
a243b558 JF |
11052 | |
11053 | fi | |
11054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
11055 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
11056 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
11057 | ;; | |
11058 | esac | |
11059 | fi | |
11060 | ;; | |
11061 | esac | |
11062 | ||
11063 | ||
11064 | ||
11065 | ||
11066 | ||
11067 | ||
11068 | ||
11069 | ||
11070 | ||
11071 | ||
11072 | ||
11073 | ||
11074 | ||
11075 | ||
11076 | ||
11077 | ||
11078 | ||
11079 | ||
11080 | ||
11081 | ||
11082 | ||
11083 | ||
11084 | ||
11085 | ||
11086 | ||
11087 | ||
11088 | ||
11089 | ||
11090 | ||
11091 | ||
11092 | ||
11093 | ||
11094 | ||
11095 | ||
11096 | ||
11097 | ||
11098 | ||
11099 | ||
11100 | ||
11101 | ||
11102 | ||
11103 | ||
11104 | ||
11105 | ||
11106 | ||
11107 | ||
11108 | ||
11109 | ||
11110 | ||
11111 | ||
11112 | ||
11113 | ||
11114 | ||
11115 | ||
11116 | ||
11117 | ||
11118 | ||
11119 | ||
11120 | ||
11121 | ||
11122 | ||
11123 | ||
11124 | ||
11125 | ||
11126 | ||
11127 | ||
11128 | ||
11129 | ||
11130 | ||
11131 | ||
11132 | ||
11133 | ||
11134 | ||
11135 | ||
11136 | ||
11137 | ||
11138 | ||
11139 | ||
11140 | ||
11141 | ||
11142 | ||
11143 | ||
11144 | ||
11145 | ||
11146 | ||
11147 | ||
11148 | ||
11149 | ||
11150 | ||
11151 | ||
11152 | ||
11153 | ||
11154 | ||
11155 | ||
11156 | ||
11157 | ||
11158 | ||
11159 | ||
11160 | ||
11161 | ||
11162 | ||
11163 | ||
11164 | ||
11165 | ||
11166 | ||
11167 | ||
11168 | ||
11169 | ||
11170 | ||
11171 | ||
11172 | ||
11173 | ||
11174 | ||
11175 | ||
11176 | ||
11177 | ||
11178 | ||
11179 | ||
11180 | ||
11181 | ||
11182 | ||
11183 | ||
11184 | ||
11185 | ||
11186 | ||
11187 | ||
11188 | ||
11189 | ||
11190 | ||
11191 | ||
11192 | ||
11193 | ||
11194 | ||
11195 | ||
11196 | ||
11197 | ||
11198 | ||
11199 | ||
11200 | ||
11201 | ||
11202 | ||
11203 | ||
11204 | ||
11205 | ||
11206 | ||
11207 | ||
11208 | ||
11209 | ||
11210 | ||
11211 | ||
11212 | ||
11213 | ||
11214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
11215 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
11216 | ||
11217 | if test "$GCC" = yes; then | |
11218 | case $host_os in | |
11219 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
11220 | *) lt_awk_arg="/^libraries:/" ;; | |
11221 | esac | |
11222 | case $host_os in | |
11223 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
11224 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
11225 | esac | |
11226 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11227 | case $lt_search_path_spec in | |
11228 | *\;*) | |
11229 | # if the path contains ";" then we assume it to be the separator | |
11230 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11231 | # assumed that no part of a normal pathname contains ";" but that should | |
11232 | # okay in the real world where ";" in dirpaths is itself problematic. | |
11233 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
11234 | ;; | |
11235 | *) | |
11236 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11237 | ;; | |
11238 | esac | |
11239 | # Ok, now we have the path, separated by spaces, we can step through it | |
11240 | # and add multilib dir if necessary. | |
11241 | lt_tmp_lt_search_path_spec= | |
11242 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
11243 | for lt_sys_path in $lt_search_path_spec; do | |
11244 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
11245 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
11246 | else | |
11247 | test -d "$lt_sys_path" && \ | |
11248 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11249 | fi | |
11250 | done | |
11251 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
11252 | BEGIN {RS=" "; FS="/|\n";} { | |
11253 | lt_foo=""; | |
11254 | lt_count=0; | |
11255 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
11256 | if ($lt_i != "" && $lt_i != ".") { | |
11257 | if ($lt_i == "..") { | |
11258 | lt_count++; | |
11259 | } else { | |
11260 | if (lt_count == 0) { | |
11261 | lt_foo="/" $lt_i lt_foo; | |
11262 | } else { | |
11263 | lt_count--; | |
11264 | } | |
11265 | } | |
11266 | } | |
11267 | } | |
11268 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11269 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11270 | }'` | |
11271 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
11272 | # for these hosts. | |
11273 | case $host_os in | |
11274 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
11275 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
11276 | esac | |
11277 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
11278 | else | |
11279 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11280 | fi | |
11281 | library_names_spec= | |
11282 | libname_spec='lib$name' | |
11283 | soname_spec= | |
11284 | shrext_cmds=".so" | |
11285 | postinstall_cmds= | |
11286 | postuninstall_cmds= | |
11287 | finish_cmds= | |
11288 | finish_eval= | |
11289 | shlibpath_var= | |
11290 | shlibpath_overrides_runpath=unknown | |
11291 | version_type=none | |
11292 | dynamic_linker="$host_os ld.so" | |
11293 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11294 | need_lib_prefix=unknown | |
11295 | hardcode_into_libs=no | |
11296 | ||
11297 | # when you set need_version to no, make sure it does not cause -set_version | |
11298 | # flags to be left without arguments | |
11299 | need_version=unknown | |
11300 | ||
11301 | case $host_os in | |
11302 | aix3*) | |
11303 | version_type=linux # correct to gnu/linux during the next big refactor | |
11304 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11305 | shlibpath_var=LIBPATH | |
11306 | ||
11307 | # AIX 3 has no versioning support, so we append a major version to the name. | |
11308 | soname_spec='${libname}${release}${shared_ext}$major' | |
11309 | ;; | |
11310 | ||
11311 | aix[4-9]*) | |
11312 | version_type=linux # correct to gnu/linux during the next big refactor | |
11313 | need_lib_prefix=no | |
11314 | need_version=no | |
11315 | hardcode_into_libs=yes | |
11316 | if test "$host_cpu" = ia64; then | |
11317 | # AIX 5 supports IA64 | |
11318 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11319 | shlibpath_var=LD_LIBRARY_PATH | |
11320 | else | |
11321 | # With GCC up to 2.95.x, collect2 would create an import file | |
11322 | # for dependence libraries. The import file would start with | |
11323 | # the line `#! .'. This would cause the generated library to | |
11324 | # depend on `.', always an invalid library. This was fixed in | |
11325 | # development snapshots of GCC prior to 3.0. | |
11326 | case $host_os in | |
11327 | aix4 | aix4.[01] | aix4.[01].*) | |
11328 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11329 | echo ' yes ' | |
11330 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
11331 | : | |
11332 | else | |
11333 | can_build_shared=no | |
11334 | fi | |
11335 | ;; | |
11336 | esac | |
11337 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11338 | # soname into executable. Probably we can add versioning support to | |
11339 | # collect2, so additional links can be useful in future. | |
11340 | if test "$aix_use_runtimelinking" = yes; then | |
11341 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11342 | # instead of lib<name>.a to let people know that these are not | |
11343 | # typical AIX shared libraries. | |
11344 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11345 | else | |
11346 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11347 | # and later when we are not doing run time linking. | |
11348 | library_names_spec='${libname}${release}.a $libname.a' | |
11349 | soname_spec='${libname}${release}${shared_ext}$major' | |
11350 | fi | |
11351 | shlibpath_var=LIBPATH | |
11352 | fi | |
11353 | ;; | |
11354 | ||
11355 | amigaos*) | |
11356 | case $host_cpu in | |
11357 | powerpc) | |
11358 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11359 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11360 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11361 | ;; | |
11362 | m68k) | |
11363 | library_names_spec='$libname.ixlibrary $libname.a' | |
11364 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
11365 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
11366 | ;; | |
11367 | esac | |
11368 | ;; | |
11369 | ||
11370 | beos*) | |
11371 | library_names_spec='${libname}${shared_ext}' | |
11372 | dynamic_linker="$host_os ld.so" | |
11373 | shlibpath_var=LIBRARY_PATH | |
11374 | ;; | |
11375 | ||
11376 | bsdi[45]*) | |
11377 | version_type=linux # correct to gnu/linux during the next big refactor | |
11378 | need_version=no | |
11379 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11380 | soname_spec='${libname}${release}${shared_ext}$major' | |
11381 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11382 | shlibpath_var=LD_LIBRARY_PATH | |
11383 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11384 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11385 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11386 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11387 | # libtool to hard-code these into programs | |
11388 | ;; | |
11389 | ||
11390 | cygwin* | mingw* | pw32* | cegcc*) | |
11391 | version_type=windows | |
11392 | shrext_cmds=".dll" | |
11393 | need_version=no | |
11394 | need_lib_prefix=no | |
9c60689e | 11395 | |
a243b558 JF |
11396 | case $GCC,$cc_basename in |
11397 | yes,*) | |
11398 | # gcc | |
11399 | library_names_spec='$libname.dll.a' | |
11400 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11401 | postinstall_cmds='base_file=`basename \${file}`~ | |
11402 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11403 | dldir=$destdir/`dirname \$dlpath`~ | |
11404 | test -d \$dldir || mkdir -p \$dldir~ | |
11405 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11406 | chmod a+x \$dldir/$dlname~ | |
11407 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11408 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11409 | fi' | |
11410 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11411 | dlpath=$dir/\$dldll~ | |
11412 | $RM \$dlpath' | |
11413 | shlibpath_overrides_runpath=yes | |
9c60689e | 11414 | |
a243b558 JF |
11415 | case $host_os in |
11416 | cygwin*) | |
11417 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11418 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9c60689e | 11419 | |
a243b558 JF |
11420 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
11421 | ;; | |
11422 | mingw* | cegcc*) | |
11423 | # MinGW DLLs use traditional 'lib' prefix | |
11424 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11425 | ;; | |
11426 | pw32*) | |
11427 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11428 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11429 | ;; | |
11430 | esac | |
11431 | dynamic_linker='Win32 ld.exe' | |
11432 | ;; | |
9c60689e | 11433 | |
a243b558 JF |
11434 | *,cl*) |
11435 | # Native MSVC | |
11436 | libname_spec='$name' | |
11437 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11438 | library_names_spec='${libname}.dll.lib' | |
9c60689e | 11439 | |
a243b558 JF |
11440 | case $build_os in |
11441 | mingw*) | |
11442 | sys_lib_search_path_spec= | |
11443 | lt_save_ifs=$IFS | |
11444 | IFS=';' | |
11445 | for lt_path in $LIB | |
11446 | do | |
11447 | IFS=$lt_save_ifs | |
11448 | # Let DOS variable expansion print the short 8.3 style file name. | |
11449 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
11450 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
11451 | done | |
11452 | IFS=$lt_save_ifs | |
11453 | # Convert to MSYS style. | |
11454 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
11455 | ;; | |
11456 | cygwin*) | |
11457 | # Convert to unix form, then to dos form, then back to unix form | |
11458 | # but this time dos style (no spaces!) so that the unix form looks | |
11459 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
11460 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
11461 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
11462 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11463 | ;; | |
11464 | *) | |
11465 | sys_lib_search_path_spec="$LIB" | |
11466 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
11467 | # It is most probably a Windows format PATH. | |
11468 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11469 | else | |
11470 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11471 | fi | |
11472 | # FIXME: find the short name or the path components, as spaces are | |
11473 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
11474 | ;; | |
11475 | esac | |
11476 | ||
11477 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11478 | postinstall_cmds='base_file=`basename \${file}`~ | |
11479 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11480 | dldir=$destdir/`dirname \$dlpath`~ | |
11481 | test -d \$dldir || mkdir -p \$dldir~ | |
11482 | $install_prog $dir/$dlname \$dldir/$dlname' | |
11483 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11484 | dlpath=$dir/\$dldll~ | |
11485 | $RM \$dlpath' | |
11486 | shlibpath_overrides_runpath=yes | |
11487 | dynamic_linker='Win32 link.exe' | |
11488 | ;; | |
9c60689e | 11489 | |
a243b558 JF |
11490 | *) |
11491 | # Assume MSVC wrapper | |
11492 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11493 | dynamic_linker='Win32 ld.exe' | |
11494 | ;; | |
11495 | esac | |
11496 | # FIXME: first we should search . and the directory the executable is in | |
11497 | shlibpath_var=PATH | |
11498 | ;; | |
9c60689e | 11499 | |
a243b558 JF |
11500 | darwin* | rhapsody*) |
11501 | dynamic_linker="$host_os dyld" | |
11502 | version_type=darwin | |
11503 | need_lib_prefix=no | |
11504 | need_version=no | |
11505 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11506 | soname_spec='${libname}${release}${major}$shared_ext' | |
11507 | shlibpath_overrides_runpath=yes | |
11508 | shlibpath_var=DYLD_LIBRARY_PATH | |
11509 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9c60689e | 11510 | |
a243b558 JF |
11511 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
11512 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11513 | ;; | |
9c60689e | 11514 | |
a243b558 JF |
11515 | dgux*) |
11516 | version_type=linux # correct to gnu/linux during the next big refactor | |
11517 | need_lib_prefix=no | |
11518 | need_version=no | |
11519 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11520 | soname_spec='${libname}${release}${shared_ext}$major' | |
11521 | shlibpath_var=LD_LIBRARY_PATH | |
11522 | ;; | |
11523 | ||
11524 | freebsd* | dragonfly*) | |
11525 | # DragonFly does not have aout. When/if they implement a new | |
11526 | # versioning mechanism, adjust this. | |
11527 | if test -x /usr/bin/objformat; then | |
11528 | objformat=`/usr/bin/objformat` | |
11529 | else | |
11530 | case $host_os in | |
11531 | freebsd[23].*) objformat=aout ;; | |
11532 | *) objformat=elf ;; | |
11533 | esac | |
11534 | fi | |
11535 | version_type=freebsd-$objformat | |
11536 | case $version_type in | |
11537 | freebsd-elf*) | |
11538 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11539 | need_version=no | |
11540 | need_lib_prefix=no | |
11541 | ;; | |
11542 | freebsd-*) | |
11543 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11544 | need_version=yes | |
11545 | ;; | |
11546 | esac | |
11547 | shlibpath_var=LD_LIBRARY_PATH | |
11548 | case $host_os in | |
11549 | freebsd2.*) | |
11550 | shlibpath_overrides_runpath=yes | |
11551 | ;; | |
11552 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11553 | shlibpath_overrides_runpath=yes | |
11554 | hardcode_into_libs=yes | |
11555 | ;; | |
11556 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11557 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11558 | shlibpath_overrides_runpath=no | |
11559 | hardcode_into_libs=yes | |
11560 | ;; | |
11561 | *) # from 4.6 on, and DragonFly | |
11562 | shlibpath_overrides_runpath=yes | |
11563 | hardcode_into_libs=yes | |
11564 | ;; | |
11565 | esac | |
11566 | ;; | |
9c60689e | 11567 | |
a243b558 JF |
11568 | gnu*) |
11569 | version_type=linux # correct to gnu/linux during the next big refactor | |
11570 | need_lib_prefix=no | |
11571 | need_version=no | |
11572 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11573 | soname_spec='${libname}${release}${shared_ext}$major' | |
11574 | shlibpath_var=LD_LIBRARY_PATH | |
11575 | shlibpath_overrides_runpath=no | |
11576 | hardcode_into_libs=yes | |
11577 | ;; | |
9c60689e | 11578 | |
a243b558 JF |
11579 | haiku*) |
11580 | version_type=linux # correct to gnu/linux during the next big refactor | |
11581 | need_lib_prefix=no | |
11582 | need_version=no | |
11583 | dynamic_linker="$host_os runtime_loader" | |
11584 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11585 | soname_spec='${libname}${release}${shared_ext}$major' | |
11586 | shlibpath_var=LIBRARY_PATH | |
11587 | shlibpath_overrides_runpath=yes | |
11588 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
11589 | hardcode_into_libs=yes | |
11590 | ;; | |
9c60689e | 11591 | |
a243b558 JF |
11592 | hpux9* | hpux10* | hpux11*) |
11593 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11594 | # link against other versions. | |
11595 | version_type=sunos | |
11596 | need_lib_prefix=no | |
11597 | need_version=no | |
11598 | case $host_cpu in | |
11599 | ia64*) | |
11600 | shrext_cmds='.so' | |
11601 | hardcode_into_libs=yes | |
11602 | dynamic_linker="$host_os dld.so" | |
11603 | shlibpath_var=LD_LIBRARY_PATH | |
11604 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11605 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11606 | soname_spec='${libname}${release}${shared_ext}$major' | |
11607 | if test "X$HPUX_IA64_MODE" = X32; then | |
11608 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11609 | else | |
11610 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11611 | fi | |
11612 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11613 | ;; | |
11614 | hppa*64*) | |
11615 | shrext_cmds='.sl' | |
11616 | hardcode_into_libs=yes | |
11617 | dynamic_linker="$host_os dld.sl" | |
11618 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11619 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11620 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11621 | soname_spec='${libname}${release}${shared_ext}$major' | |
11622 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11623 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11624 | ;; | |
11625 | *) | |
11626 | shrext_cmds='.sl' | |
11627 | dynamic_linker="$host_os dld.sl" | |
11628 | shlibpath_var=SHLIB_PATH | |
11629 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11630 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11631 | soname_spec='${libname}${release}${shared_ext}$major' | |
9c60689e DWT |
11632 | ;; |
11633 | esac | |
a243b558 JF |
11634 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
11635 | postinstall_cmds='chmod 555 $lib' | |
11636 | # or fails outright, so override atomically: | |
11637 | install_override_mode=555 | |
11638 | ;; | |
9c60689e | 11639 | |
a243b558 JF |
11640 | interix[3-9]*) |
11641 | version_type=linux # correct to gnu/linux during the next big refactor | |
11642 | need_lib_prefix=no | |
11643 | need_version=no | |
11644 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11645 | soname_spec='${libname}${release}${shared_ext}$major' | |
11646 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11647 | shlibpath_var=LD_LIBRARY_PATH | |
11648 | shlibpath_overrides_runpath=no | |
11649 | hardcode_into_libs=yes | |
11650 | ;; | |
9c60689e | 11651 | |
a243b558 JF |
11652 | irix5* | irix6* | nonstopux*) |
11653 | case $host_os in | |
11654 | nonstopux*) version_type=nonstopux ;; | |
11655 | *) | |
11656 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
11657 | version_type=linux # correct to gnu/linux during the next big refactor | |
11658 | else | |
11659 | version_type=irix | |
11660 | fi ;; | |
11661 | esac | |
11662 | need_lib_prefix=no | |
11663 | need_version=no | |
11664 | soname_spec='${libname}${release}${shared_ext}$major' | |
11665 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11666 | case $host_os in | |
11667 | irix5* | nonstopux*) | |
11668 | libsuff= shlibsuff= | |
11669 | ;; | |
11670 | *) | |
11671 | case $LD in # libtool.m4 will add one of these switches to LD | |
11672 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11673 | libsuff= shlibsuff= libmagic=32-bit;; | |
11674 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11675 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11676 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11677 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11678 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11679 | esac | |
11680 | ;; | |
11681 | esac | |
11682 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11683 | shlibpath_overrides_runpath=no | |
11684 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11685 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11686 | hardcode_into_libs=yes | |
11687 | ;; | |
9c60689e | 11688 | |
a243b558 JF |
11689 | # No shared lib support for Linux oldld, aout, or coff. |
11690 | linux*oldld* | linux*aout* | linux*coff*) | |
11691 | dynamic_linker=no | |
11692 | ;; | |
9c60689e | 11693 | |
a243b558 JF |
11694 | # This must be glibc/ELF. |
11695 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
11696 | version_type=linux # correct to gnu/linux during the next big refactor | |
11697 | need_lib_prefix=no | |
11698 | need_version=no | |
11699 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11700 | soname_spec='${libname}${release}${shared_ext}$major' | |
11701 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11702 | shlibpath_var=LD_LIBRARY_PATH | |
11703 | shlibpath_overrides_runpath=no | |
9c60689e | 11704 | |
a243b558 JF |
11705 | # Some binutils ld are patched to set DT_RUNPATH |
11706 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
9c60689e DWT |
11707 | $as_echo_n "(cached) " >&6 |
11708 | else | |
a243b558 JF |
11709 | lt_cv_shlibpath_overrides_runpath=no |
11710 | save_LDFLAGS=$LDFLAGS | |
11711 | save_libdir=$libdir | |
11712 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11713 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11715 | /* end confdefs.h. */ | |
ee134472 | 11716 | |
a243b558 JF |
11717 | int |
11718 | main () | |
9c60689e | 11719 | { |
9c60689e | 11720 | |
a243b558 JF |
11721 | ; |
11722 | return 0; | |
11723 | } | |
11724 | _ACEOF | |
11725 | if ac_fn_c_try_link "$LINENO"; then : | |
11726 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
11727 | lt_cv_shlibpath_overrides_runpath=yes | |
11728 | fi | |
11729 | fi | |
11730 | rm -f core conftest.err conftest.$ac_objext \ | |
11731 | conftest$ac_exeext conftest.$ac_ext | |
11732 | LDFLAGS=$save_LDFLAGS | |
11733 | libdir=$save_libdir | |
9c60689e | 11734 | |
a243b558 | 11735 | fi |
9c60689e | 11736 | |
a243b558 | 11737 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
9c60689e | 11738 | |
a243b558 JF |
11739 | # This implies no fast_install, which is unacceptable. |
11740 | # Some rework will be needed to allow for fast_install | |
11741 | # before this can be enabled. | |
11742 | hardcode_into_libs=yes | |
9c60689e | 11743 | |
a243b558 JF |
11744 | # Append ld.so.conf contents to the search path |
11745 | if test -f /etc/ld.so.conf; then | |
11746 | 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' ' '` | |
11747 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
11748 | fi | |
ee134472 | 11749 | |
a243b558 JF |
11750 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
11751 | # powerpc, because MkLinux only supported shared libraries with the | |
11752 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11753 | # most powerpc-linux boxes support dynamic linking these days and | |
11754 | # people can always --disable-shared, the test was removed, and we | |
11755 | # assume the GNU/Linux dynamic linker is in use. | |
11756 | dynamic_linker='GNU/Linux ld.so' | |
11757 | ;; | |
9c60689e | 11758 | |
a243b558 JF |
11759 | netbsd*) |
11760 | version_type=sunos | |
11761 | need_lib_prefix=no | |
11762 | need_version=no | |
11763 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11764 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11765 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11766 | dynamic_linker='NetBSD (a.out) ld.so' | |
9c60689e | 11767 | else |
a243b558 JF |
11768 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
11769 | soname_spec='${libname}${release}${shared_ext}$major' | |
11770 | dynamic_linker='NetBSD ld.elf_so' | |
9c60689e | 11771 | fi |
a243b558 JF |
11772 | shlibpath_var=LD_LIBRARY_PATH |
11773 | shlibpath_overrides_runpath=yes | |
11774 | hardcode_into_libs=yes | |
11775 | ;; | |
9c60689e | 11776 | |
a243b558 JF |
11777 | newsos6) |
11778 | version_type=linux # correct to gnu/linux during the next big refactor | |
11779 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11780 | shlibpath_var=LD_LIBRARY_PATH | |
11781 | shlibpath_overrides_runpath=yes | |
11782 | ;; | |
9c60689e | 11783 | |
a243b558 JF |
11784 | *nto* | *qnx*) |
11785 | version_type=qnx | |
11786 | need_lib_prefix=no | |
11787 | need_version=no | |
11788 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11789 | soname_spec='${libname}${release}${shared_ext}$major' | |
11790 | shlibpath_var=LD_LIBRARY_PATH | |
11791 | shlibpath_overrides_runpath=no | |
11792 | hardcode_into_libs=yes | |
11793 | dynamic_linker='ldqnx.so' | |
11794 | ;; | |
9c60689e | 11795 | |
a243b558 JF |
11796 | openbsd*) |
11797 | version_type=sunos | |
11798 | sys_lib_dlsearch_path_spec="/usr/lib" | |
11799 | need_lib_prefix=no | |
11800 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11801 | case $host_os in | |
11802 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11803 | *) need_version=no ;; | |
9c60689e | 11804 | esac |
a243b558 JF |
11805 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
11806 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11807 | shlibpath_var=LD_LIBRARY_PATH | |
11808 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11809 | case $host_os in | |
11810 | openbsd2.[89] | openbsd2.[89].*) | |
11811 | shlibpath_overrides_runpath=no | |
11812 | ;; | |
11813 | *) | |
11814 | shlibpath_overrides_runpath=yes | |
11815 | ;; | |
11816 | esac | |
11817 | else | |
11818 | shlibpath_overrides_runpath=yes | |
11819 | fi | |
11820 | ;; | |
9c60689e | 11821 | |
a243b558 JF |
11822 | os2*) |
11823 | libname_spec='$name' | |
11824 | shrext_cmds=".dll" | |
11825 | need_lib_prefix=no | |
11826 | library_names_spec='$libname${shared_ext} $libname.a' | |
11827 | dynamic_linker='OS/2 ld.exe' | |
11828 | shlibpath_var=LIBPATH | |
11829 | ;; | |
9c60689e | 11830 | |
a243b558 JF |
11831 | osf3* | osf4* | osf5*) |
11832 | version_type=osf | |
11833 | need_lib_prefix=no | |
11834 | need_version=no | |
11835 | soname_spec='${libname}${release}${shared_ext}$major' | |
11836 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11837 | shlibpath_var=LD_LIBRARY_PATH | |
11838 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11839 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11840 | ;; | |
11841 | ||
11842 | rdos*) | |
11843 | dynamic_linker=no | |
11844 | ;; | |
11845 | ||
11846 | solaris*) | |
11847 | version_type=linux # correct to gnu/linux during the next big refactor | |
11848 | need_lib_prefix=no | |
11849 | need_version=no | |
11850 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11851 | soname_spec='${libname}${release}${shared_ext}$major' | |
11852 | shlibpath_var=LD_LIBRARY_PATH | |
11853 | shlibpath_overrides_runpath=yes | |
11854 | hardcode_into_libs=yes | |
11855 | # ldd complains unless libraries are executable | |
11856 | postinstall_cmds='chmod +x $lib' | |
11857 | ;; | |
9c60689e | 11858 | |
a243b558 JF |
11859 | sunos4*) |
11860 | version_type=sunos | |
11861 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11862 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11863 | shlibpath_var=LD_LIBRARY_PATH | |
11864 | shlibpath_overrides_runpath=yes | |
11865 | if test "$with_gnu_ld" = yes; then | |
11866 | need_lib_prefix=no | |
11867 | fi | |
11868 | need_version=yes | |
11869 | ;; | |
9c60689e | 11870 | |
a243b558 JF |
11871 | sysv4 | sysv4.3*) |
11872 | version_type=linux # correct to gnu/linux during the next big refactor | |
11873 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11874 | soname_spec='${libname}${release}${shared_ext}$major' | |
11875 | shlibpath_var=LD_LIBRARY_PATH | |
11876 | case $host_vendor in | |
11877 | sni) | |
11878 | shlibpath_overrides_runpath=no | |
11879 | need_lib_prefix=no | |
11880 | runpath_var=LD_RUN_PATH | |
11881 | ;; | |
11882 | siemens) | |
11883 | need_lib_prefix=no | |
11884 | ;; | |
11885 | motorola) | |
11886 | need_lib_prefix=no | |
11887 | need_version=no | |
11888 | shlibpath_overrides_runpath=no | |
11889 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11890 | ;; | |
11891 | esac | |
11892 | ;; | |
9c60689e | 11893 | |
a243b558 JF |
11894 | sysv4*MP*) |
11895 | if test -d /usr/nec ;then | |
11896 | version_type=linux # correct to gnu/linux during the next big refactor | |
11897 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11898 | soname_spec='$libname${shared_ext}.$major' | |
11899 | shlibpath_var=LD_LIBRARY_PATH | |
11900 | fi | |
11901 | ;; | |
9c60689e | 11902 | |
a243b558 JF |
11903 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
11904 | version_type=freebsd-elf | |
11905 | need_lib_prefix=no | |
11906 | need_version=no | |
11907 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11908 | soname_spec='${libname}${release}${shared_ext}$major' | |
11909 | shlibpath_var=LD_LIBRARY_PATH | |
11910 | shlibpath_overrides_runpath=yes | |
11911 | hardcode_into_libs=yes | |
11912 | if test "$with_gnu_ld" = yes; then | |
11913 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11914 | else | |
11915 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11916 | case $host_os in | |
11917 | sco3.2v5*) | |
11918 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11919 | ;; | |
11920 | esac | |
11921 | fi | |
11922 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11923 | ;; | |
9c60689e | 11924 | |
a243b558 JF |
11925 | tpf*) |
11926 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11927 | version_type=linux # correct to gnu/linux during the next big refactor | |
11928 | need_lib_prefix=no | |
11929 | need_version=no | |
11930 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11931 | shlibpath_var=LD_LIBRARY_PATH | |
11932 | shlibpath_overrides_runpath=no | |
11933 | hardcode_into_libs=yes | |
11934 | ;; | |
9c60689e | 11935 | |
a243b558 JF |
11936 | uts4*) |
11937 | version_type=linux # correct to gnu/linux during the next big refactor | |
11938 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11939 | soname_spec='${libname}${release}${shared_ext}$major' | |
11940 | shlibpath_var=LD_LIBRARY_PATH | |
11941 | ;; | |
9c60689e | 11942 | |
a243b558 JF |
11943 | *) |
11944 | dynamic_linker=no | |
11945 | ;; | |
11946 | esac | |
11947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
11948 | $as_echo "$dynamic_linker" >&6; } | |
11949 | test "$dynamic_linker" = no && can_build_shared=no | |
9c60689e | 11950 | |
a243b558 JF |
11951 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
11952 | if test "$GCC" = yes; then | |
11953 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11954 | fi | |
9c60689e | 11955 | |
a243b558 JF |
11956 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
11957 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11958 | fi | |
11959 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11960 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11961 | fi | |
9c60689e DWT |
11962 | |
11963 | ||
11964 | ||
11965 | ||
11966 | ||
11967 | ||
11968 | ||
11969 | ||
9c60689e DWT |
11970 | |
11971 | ||
11972 | ||
11973 | ||
11974 | ||
11975 | ||
11976 | ||
11977 | ||
11978 | ||
11979 | ||
11980 | ||
11981 | ||
9c60689e | 11982 | |
9c60689e | 11983 | |
9c60689e | 11984 | |
9c60689e | 11985 | |
9c60689e DWT |
11986 | |
11987 | ||
11988 | ||
11989 | ||
9c60689e | 11990 | |
9c60689e DWT |
11991 | |
11992 | ||
11993 | ||
11994 | ||
11995 | ||
11996 | ||
11997 | ||
11998 | ||
11999 | ||
12000 | ||
12001 | ||
12002 | ||
12003 | ||
53ba6704 JF |
12004 | |
12005 | ||
9c60689e DWT |
12006 | |
12007 | ||
12008 | ||
12009 | ||
9c60689e DWT |
12010 | |
12011 | ||
3fd51f51 | 12012 | |
66170b30 JF |
12013 | |
12014 | ||
12015 | ||
3fd51f51 | 12016 | |
12833ad8 JF |
12017 | |
12018 | ||
12019 | ||
12020 | ||
3fd51f51 | 12021 | |
3fd51f51 DWT |
12022 | |
12023 | ||
3fd51f51 | 12024 | |
3fd51f51 | 12025 | |
3fd51f51 | 12026 | |
66170b30 | 12027 | |
632b71ea | 12028 | |
632b71ea DWT |
12029 | |
12030 | ||
790e5246 | 12031 | |
66170b30 | 12032 | |
9c60689e | 12033 | |
9c60689e DWT |
12034 | |
12035 | ||
9c60689e | 12036 | |
9c60689e DWT |
12037 | |
12038 | ||
66170b30 | 12039 | |
66170b30 | 12040 | |
9c60689e | 12041 | |
e9c9a47c DWT |
12042 | |
12043 | ||
12044 | ||
66170b30 JF |
12045 | |
12046 | ||
66170b30 | 12047 | |
e9c9a47c | 12048 | |
a243b558 JF |
12049 | |
12050 | ||
12051 | ||
12052 | ||
12053 | ||
12054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
12055 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
12056 | hardcode_action= | |
12057 | if test -n "$hardcode_libdir_flag_spec" || | |
12058 | test -n "$runpath_var" || | |
12059 | test "X$hardcode_automatic" = "Xyes" ; then | |
12060 | ||
12061 | # We can hardcode non-existent directories. | |
12062 | if test "$hardcode_direct" != no && | |
12063 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
12064 | # have to relink, otherwise we might link with an installed library | |
12065 | # when we should be linking with a yet-to-be-installed one | |
12066 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
12067 | test "$hardcode_minus_L" != no; then | |
12068 | # Linking always hardcodes the temporary library directory. | |
12069 | hardcode_action=relink | |
12070 | else | |
12071 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12072 | hardcode_action=immediate | |
9c60689e | 12073 | fi |
e9c9a47c | 12074 | else |
a243b558 JF |
12075 | # We cannot hardcode anything, or else we can only hardcode existing |
12076 | # directories. | |
12077 | hardcode_action=unsupported | |
12078 | fi | |
12079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
12080 | $as_echo "$hardcode_action" >&6; } | |
12081 | ||
12082 | if test "$hardcode_action" = relink || | |
12083 | test "$inherit_rpath" = yes; then | |
12084 | # Fast installation is not supported | |
12085 | enable_fast_install=no | |
12086 | elif test "$shlibpath_overrides_runpath" = yes || | |
12087 | test "$enable_shared" = no; then | |
12088 | # Fast installation is not necessary | |
12089 | enable_fast_install=needless | |
9c60689e | 12090 | fi |
9c60689e | 12091 | |
9c60689e | 12092 | |
66170b30 | 12093 | |
66170b30 | 12094 | |
9c60689e | 12095 | |
a243b558 JF |
12096 | |
12097 | if test "x$enable_dlopen" != xyes; then | |
12098 | enable_dlopen=unknown | |
12099 | enable_dlopen_self=unknown | |
12100 | enable_dlopen_self_static=unknown | |
66170b30 | 12101 | else |
a243b558 JF |
12102 | lt_cv_dlopen=no |
12103 | lt_cv_dlopen_libs= | |
66170b30 | 12104 | |
a243b558 JF |
12105 | case $host_os in |
12106 | beos*) | |
12107 | lt_cv_dlopen="load_add_on" | |
12108 | lt_cv_dlopen_libs= | |
12109 | lt_cv_dlopen_self=yes | |
12110 | ;; | |
66170b30 | 12111 | |
a243b558 JF |
12112 | mingw* | pw32* | cegcc*) |
12113 | lt_cv_dlopen="LoadLibrary" | |
12114 | lt_cv_dlopen_libs= | |
12115 | ;; | |
66170b30 | 12116 | |
a243b558 JF |
12117 | cygwin*) |
12118 | lt_cv_dlopen="dlopen" | |
12119 | lt_cv_dlopen_libs= | |
12120 | ;; | |
66170b30 | 12121 | |
a243b558 JF |
12122 | darwin*) |
12123 | # if libdl is installed we need to link against it | |
12124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12125 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12126 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
12127 | $as_echo_n "(cached) " >&6 | |
12128 | else | |
12129 | ac_check_lib_save_LIBS=$LIBS | |
12130 | LIBS="-ldl $LIBS" | |
12131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12132 | /* end confdefs.h. */ | |
66170b30 | 12133 | |
a243b558 JF |
12134 | /* Override any GCC internal prototype to avoid an error. |
12135 | Use char because int might match the return type of a GCC | |
12136 | builtin and then its argument prototype would still apply. */ | |
12137 | #ifdef __cplusplus | |
12138 | extern "C" | |
12139 | #endif | |
12140 | char dlopen (); | |
12141 | int | |
12142 | main () | |
12143 | { | |
12144 | return dlopen (); | |
12145 | ; | |
12146 | return 0; | |
12147 | } | |
12148 | _ACEOF | |
12149 | if ac_fn_c_try_link "$LINENO"; then : | |
12150 | ac_cv_lib_dl_dlopen=yes | |
12151 | else | |
12152 | ac_cv_lib_dl_dlopen=no | |
66170b30 | 12153 | fi |
a243b558 JF |
12154 | rm -f core conftest.err conftest.$ac_objext \ |
12155 | conftest$ac_exeext conftest.$ac_ext | |
12156 | LIBS=$ac_check_lib_save_LIBS | |
66170b30 | 12157 | fi |
a243b558 JF |
12158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
12159 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12160 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
12161 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
12162 | else | |
66170b30 | 12163 | |
a243b558 JF |
12164 | lt_cv_dlopen="dyld" |
12165 | lt_cv_dlopen_libs= | |
12166 | lt_cv_dlopen_self=yes | |
66170b30 | 12167 | |
a243b558 | 12168 | fi |
9c60689e | 12169 | |
a243b558 | 12170 | ;; |
9c60689e | 12171 | |
a243b558 JF |
12172 | *) |
12173 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
12174 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
12175 | lt_cv_dlopen="shl_load" | |
12176 | else | |
12177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
12178 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
12179 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
12180 | $as_echo_n "(cached) " >&6 | |
12181 | else | |
12182 | ac_check_lib_save_LIBS=$LIBS | |
12183 | LIBS="-ldld $LIBS" | |
12184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12185 | /* end confdefs.h. */ | |
66170b30 | 12186 | |
a243b558 JF |
12187 | /* Override any GCC internal prototype to avoid an error. |
12188 | Use char because int might match the return type of a GCC | |
12189 | builtin and then its argument prototype would still apply. */ | |
12190 | #ifdef __cplusplus | |
12191 | extern "C" | |
12192 | #endif | |
12193 | char shl_load (); | |
12194 | int | |
12195 | main () | |
12196 | { | |
12197 | return shl_load (); | |
12198 | ; | |
12199 | return 0; | |
12200 | } | |
12201 | _ACEOF | |
12202 | if ac_fn_c_try_link "$LINENO"; then : | |
12203 | ac_cv_lib_dld_shl_load=yes | |
66170b30 | 12204 | else |
a243b558 JF |
12205 | ac_cv_lib_dld_shl_load=no |
12206 | fi | |
12207 | rm -f core conftest.err conftest.$ac_objext \ | |
12208 | conftest$ac_exeext conftest.$ac_ext | |
12209 | LIBS=$ac_check_lib_save_LIBS | |
66170b30 | 12210 | fi |
a243b558 JF |
12211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
12212 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
12213 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
12214 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
12215 | else | |
12216 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
12217 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
12218 | lt_cv_dlopen="dlopen" | |
12219 | else | |
12220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12221 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12222 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
12223 | $as_echo_n "(cached) " >&6 | |
12224 | else | |
12225 | ac_check_lib_save_LIBS=$LIBS | |
12226 | LIBS="-ldl $LIBS" | |
12227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12228 | /* end confdefs.h. */ | |
e9c9a47c | 12229 | |
a243b558 JF |
12230 | /* Override any GCC internal prototype to avoid an error. |
12231 | Use char because int might match the return type of a GCC | |
12232 | builtin and then its argument prototype would still apply. */ | |
12233 | #ifdef __cplusplus | |
12234 | extern "C" | |
12235 | #endif | |
12236 | char dlopen (); | |
12237 | int | |
12238 | main () | |
12239 | { | |
12240 | return dlopen (); | |
12241 | ; | |
12242 | return 0; | |
12243 | } | |
12244 | _ACEOF | |
12245 | if ac_fn_c_try_link "$LINENO"; then : | |
12246 | ac_cv_lib_dl_dlopen=yes | |
12247 | else | |
12248 | ac_cv_lib_dl_dlopen=no | |
12249 | fi | |
12250 | rm -f core conftest.err conftest.$ac_objext \ | |
12251 | conftest$ac_exeext conftest.$ac_ext | |
12252 | LIBS=$ac_check_lib_save_LIBS | |
12253 | fi | |
12254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12255 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12256 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
12257 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
12258 | else | |
12259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
12260 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
12261 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
12262 | $as_echo_n "(cached) " >&6 | |
12263 | else | |
12264 | ac_check_lib_save_LIBS=$LIBS | |
12265 | LIBS="-lsvld $LIBS" | |
12266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12267 | /* end confdefs.h. */ | |
12268 | ||
12269 | /* Override any GCC internal prototype to avoid an error. | |
12270 | Use char because int might match the return type of a GCC | |
12271 | builtin and then its argument prototype would still apply. */ | |
12272 | #ifdef __cplusplus | |
12273 | extern "C" | |
12274 | #endif | |
12275 | char dlopen (); | |
12276 | int | |
12277 | main () | |
12278 | { | |
12279 | return dlopen (); | |
12280 | ; | |
12281 | return 0; | |
12282 | } | |
12283 | _ACEOF | |
12284 | if ac_fn_c_try_link "$LINENO"; then : | |
12285 | ac_cv_lib_svld_dlopen=yes | |
12286 | else | |
12287 | ac_cv_lib_svld_dlopen=no | |
12288 | fi | |
12289 | rm -f core conftest.err conftest.$ac_objext \ | |
12290 | conftest$ac_exeext conftest.$ac_ext | |
12291 | LIBS=$ac_check_lib_save_LIBS | |
12292 | fi | |
12293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
12294 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
12295 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
12296 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
12297 | else | |
12298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
12299 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
12300 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
12301 | $as_echo_n "(cached) " >&6 | |
12302 | else | |
12303 | ac_check_lib_save_LIBS=$LIBS | |
12304 | LIBS="-ldld $LIBS" | |
12305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12306 | /* end confdefs.h. */ | |
12307 | ||
12308 | /* Override any GCC internal prototype to avoid an error. | |
12309 | Use char because int might match the return type of a GCC | |
12310 | builtin and then its argument prototype would still apply. */ | |
12311 | #ifdef __cplusplus | |
12312 | extern "C" | |
12313 | #endif | |
12314 | char dld_link (); | |
12315 | int | |
12316 | main () | |
12317 | { | |
12318 | return dld_link (); | |
12319 | ; | |
12320 | return 0; | |
12321 | } | |
12322 | _ACEOF | |
12323 | if ac_fn_c_try_link "$LINENO"; then : | |
12324 | ac_cv_lib_dld_dld_link=yes | |
9c60689e | 12325 | else |
a243b558 JF |
12326 | ac_cv_lib_dld_dld_link=no |
12327 | fi | |
12328 | rm -f core conftest.err conftest.$ac_objext \ | |
12329 | conftest$ac_exeext conftest.$ac_ext | |
12330 | LIBS=$ac_check_lib_save_LIBS | |
12331 | fi | |
12332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
12333 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
12334 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
12335 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
9c60689e DWT |
12336 | fi |
12337 | ||
12338 | ||
a243b558 | 12339 | fi |
66170b30 | 12340 | |
66170b30 | 12341 | |
a243b558 | 12342 | fi |
66170b30 | 12343 | |
66170b30 JF |
12344 | |
12345 | fi | |
e9c9a47c | 12346 | |
66170b30 | 12347 | |
a243b558 | 12348 | fi |
66170b30 | 12349 | |
66170b30 | 12350 | |
66170b30 | 12351 | fi |
e9c9a47c | 12352 | |
a243b558 JF |
12353 | ;; |
12354 | esac | |
9c60689e | 12355 | |
a243b558 JF |
12356 | if test "x$lt_cv_dlopen" != xno; then |
12357 | enable_dlopen=yes | |
12358 | else | |
12359 | enable_dlopen=no | |
12360 | fi | |
9c60689e | 12361 | |
a243b558 JF |
12362 | case $lt_cv_dlopen in |
12363 | dlopen) | |
12364 | save_CPPFLAGS="$CPPFLAGS" | |
12365 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
66170b30 | 12366 | |
a243b558 JF |
12367 | save_LDFLAGS="$LDFLAGS" |
12368 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
66170b30 | 12369 | |
a243b558 JF |
12370 | save_LIBS="$LIBS" |
12371 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
3fd51f51 | 12372 | |
a243b558 JF |
12373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
12374 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
12375 | if ${lt_cv_dlopen_self+:} false; then : | |
12376 | $as_echo_n "(cached) " >&6 | |
e9c9a47c | 12377 | else |
a243b558 JF |
12378 | if test "$cross_compiling" = yes; then : |
12379 | lt_cv_dlopen_self=cross | |
12380 | else | |
12381 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12382 | lt_status=$lt_dlunknown | |
12383 | cat > conftest.$ac_ext <<_LT_EOF | |
12384 | #line $LINENO "configure" | |
12385 | #include "confdefs.h" | |
e9c9a47c | 12386 | |
a243b558 JF |
12387 | #if HAVE_DLFCN_H |
12388 | #include <dlfcn.h> | |
12389 | #endif | |
e9c9a47c | 12390 | |
a243b558 | 12391 | #include <stdio.h> |
66170b30 | 12392 | |
a243b558 JF |
12393 | #ifdef RTLD_GLOBAL |
12394 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12395 | #else | |
12396 | # ifdef DL_GLOBAL | |
12397 | # define LT_DLGLOBAL DL_GLOBAL | |
12398 | # else | |
12399 | # define LT_DLGLOBAL 0 | |
12400 | # endif | |
12401 | #endif | |
66170b30 | 12402 | |
a243b558 JF |
12403 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12404 | find out it does not work in some platform. */ | |
12405 | #ifndef LT_DLLAZY_OR_NOW | |
12406 | # ifdef RTLD_LAZY | |
12407 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12408 | # else | |
12409 | # ifdef DL_LAZY | |
12410 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12411 | # else | |
12412 | # ifdef RTLD_NOW | |
12413 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12414 | # else | |
12415 | # ifdef DL_NOW | |
12416 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12417 | # else | |
12418 | # define LT_DLLAZY_OR_NOW 0 | |
12419 | # endif | |
12420 | # endif | |
12421 | # endif | |
12422 | # endif | |
12423 | #endif | |
e9c9a47c | 12424 | |
a243b558 JF |
12425 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12426 | correspondingly for the symbols needed. */ | |
12427 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12428 | int fnord () __attribute__((visibility("default"))); | |
12429 | #endif | |
e9c9a47c | 12430 | |
a243b558 JF |
12431 | int fnord () { return 42; } |
12432 | int main () | |
12433 | { | |
12434 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12435 | int status = $lt_dlunknown; | |
e9c9a47c | 12436 | |
a243b558 JF |
12437 | if (self) |
12438 | { | |
12439 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12440 | else | |
12441 | { | |
12442 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12443 | else puts (dlerror ()); | |
12444 | } | |
12445 | /* dlclose (self); */ | |
12446 | } | |
12447 | else | |
12448 | puts (dlerror ()); | |
e9c9a47c | 12449 | |
a243b558 JF |
12450 | return status; |
12451 | } | |
12452 | _LT_EOF | |
12453 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12454 | (eval $ac_link) 2>&5 | |
12455 | ac_status=$? | |
12456 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12457 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12458 | (./conftest; exit; ) >&5 2>/dev/null | |
12459 | lt_status=$? | |
12460 | case x$lt_status in | |
12461 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12462 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12463 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12464 | esac | |
12465 | else : | |
12466 | # compilation failed | |
12467 | lt_cv_dlopen_self=no | |
12468 | fi | |
12469 | fi | |
12470 | rm -fr conftest* | |
e9c9a47c | 12471 | |
e9c9a47c | 12472 | |
e9c9a47c | 12473 | fi |
a243b558 JF |
12474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
12475 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
e9c9a47c | 12476 | |
a243b558 JF |
12477 | if test "x$lt_cv_dlopen_self" = xyes; then |
12478 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
12479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
12480 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
12481 | if ${lt_cv_dlopen_self_static+:} false; then : | |
12482 | $as_echo_n "(cached) " >&6 | |
e9c9a47c | 12483 | else |
a243b558 JF |
12484 | if test "$cross_compiling" = yes; then : |
12485 | lt_cv_dlopen_self_static=cross | |
12486 | else | |
12487 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12488 | lt_status=$lt_dlunknown | |
12489 | cat > conftest.$ac_ext <<_LT_EOF | |
12490 | #line $LINENO "configure" | |
12491 | #include "confdefs.h" | |
12492 | ||
12493 | #if HAVE_DLFCN_H | |
12494 | #include <dlfcn.h> | |
12495 | #endif | |
12496 | ||
12497 | #include <stdio.h> | |
e9c9a47c | 12498 | |
a243b558 JF |
12499 | #ifdef RTLD_GLOBAL |
12500 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12501 | #else | |
12502 | # ifdef DL_GLOBAL | |
12503 | # define LT_DLGLOBAL DL_GLOBAL | |
12504 | # else | |
12505 | # define LT_DLGLOBAL 0 | |
12506 | # endif | |
12507 | #endif | |
e9c9a47c | 12508 | |
a243b558 JF |
12509 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12510 | find out it does not work in some platform. */ | |
12511 | #ifndef LT_DLLAZY_OR_NOW | |
12512 | # ifdef RTLD_LAZY | |
12513 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12514 | # else | |
12515 | # ifdef DL_LAZY | |
12516 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12517 | # else | |
12518 | # ifdef RTLD_NOW | |
12519 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12520 | # else | |
12521 | # ifdef DL_NOW | |
12522 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12523 | # else | |
12524 | # define LT_DLLAZY_OR_NOW 0 | |
12525 | # endif | |
12526 | # endif | |
12527 | # endif | |
12528 | # endif | |
12529 | #endif | |
66170b30 | 12530 | |
a243b558 JF |
12531 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12532 | correspondingly for the symbols needed. */ | |
12533 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12534 | int fnord () __attribute__((visibility("default"))); | |
12535 | #endif | |
e9c9a47c | 12536 | |
a243b558 JF |
12537 | int fnord () { return 42; } |
12538 | int main () | |
12539 | { | |
12540 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12541 | int status = $lt_dlunknown; | |
e9c9a47c | 12542 | |
a243b558 JF |
12543 | if (self) |
12544 | { | |
12545 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12546 | else | |
12547 | { | |
12548 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12549 | else puts (dlerror ()); | |
12550 | } | |
12551 | /* dlclose (self); */ | |
12552 | } | |
12553 | else | |
12554 | puts (dlerror ()); | |
e9c9a47c | 12555 | |
a243b558 JF |
12556 | return status; |
12557 | } | |
12558 | _LT_EOF | |
12559 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12560 | (eval $ac_link) 2>&5 | |
12561 | ac_status=$? | |
12562 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12563 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12564 | (./conftest; exit; ) >&5 2>/dev/null | |
12565 | lt_status=$? | |
12566 | case x$lt_status in | |
12567 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12568 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12569 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12570 | esac | |
12571 | else : | |
12572 | # compilation failed | |
12573 | lt_cv_dlopen_self_static=no | |
12574 | fi | |
12575 | fi | |
12576 | rm -fr conftest* | |
e9c9a47c | 12577 | |
b65019fe | 12578 | |
a243b558 JF |
12579 | fi |
12580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
12581 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
12582 | fi | |
66170b30 | 12583 | |
a243b558 JF |
12584 | CPPFLAGS="$save_CPPFLAGS" |
12585 | LDFLAGS="$save_LDFLAGS" | |
12586 | LIBS="$save_LIBS" | |
12587 | ;; | |
12588 | esac | |
66170b30 | 12589 | |
a243b558 JF |
12590 | case $lt_cv_dlopen_self in |
12591 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12592 | *) enable_dlopen_self=unknown ;; | |
12593 | esac | |
12594 | ||
12595 | case $lt_cv_dlopen_self_static in | |
12596 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12597 | *) enable_dlopen_self_static=unknown ;; | |
12598 | esac | |
b65019fe DWT |
12599 | fi |
12600 | ||
12601 | ||
66170b30 | 12602 | |
b65019fe | 12603 | |
e9c9a47c | 12604 | |
e9c9a47c DWT |
12605 | |
12606 | ||
e9c9a47c | 12607 | |
e9c9a47c DWT |
12608 | |
12609 | ||
e9c9a47c | 12610 | |
e9c9a47c | 12611 | |
3530897b | 12612 | |
47aaa820 | 12613 | |
47aaa820 | 12614 | |
a243b558 JF |
12615 | |
12616 | ||
12617 | striplib= | |
12618 | old_striplib= | |
12619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12620 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12621 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12622 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12623 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12625 | $as_echo "yes" >&6; } | |
47aaa820 | 12626 | else |
a243b558 JF |
12627 | # FIXME - insert some real tests, host_os isn't really good enough |
12628 | case $host_os in | |
12629 | darwin*) | |
12630 | if test -n "$STRIP" ; then | |
12631 | striplib="$STRIP -x" | |
12632 | old_striplib="$STRIP -S" | |
12633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12634 | $as_echo "yes" >&6; } | |
12635 | else | |
12636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12637 | $as_echo "no" >&6; } | |
12638 | fi | |
12639 | ;; | |
12640 | *) | |
12641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12642 | $as_echo "no" >&6; } | |
12643 | ;; | |
12644 | esac | |
3530897b | 12645 | fi |
47aaa820 | 12646 | |
3530897b DWT |
12647 | |
12648 | ||
9c60689e | 12649 | |
9c60689e | 12650 | |
9c60689e | 12651 | |
9c60689e | 12652 | |
9c60689e | 12653 | |
66170b30 | 12654 | |
66170b30 | 12655 | |
66170b30 | 12656 | |
66170b30 | 12657 | |
a243b558 JF |
12658 | # Report which library types will actually be built |
12659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12660 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12662 | $as_echo "$can_build_shared" >&6; } | |
66170b30 | 12663 | |
a243b558 JF |
12664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
12665 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12666 | test "$can_build_shared" = "no" && enable_shared=no | |
66170b30 | 12667 | |
a243b558 JF |
12668 | # On AIX, shared libraries and static libraries use the same namespace, and |
12669 | # are all built from PIC. | |
12670 | case $host_os in | |
12671 | aix3*) | |
12672 | test "$enable_shared" = yes && enable_static=no | |
12673 | if test -n "$RANLIB"; then | |
12674 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12675 | postinstall_cmds='$RANLIB $lib' | |
12676 | fi | |
12677 | ;; | |
66170b30 | 12678 | |
a243b558 JF |
12679 | aix[4-9]*) |
12680 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12681 | test "$enable_shared" = yes && enable_static=no | |
12682 | fi | |
12683 | ;; | |
12684 | esac | |
12685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12686 | $as_echo "$enable_shared" >&6; } | |
66170b30 | 12687 | |
a243b558 JF |
12688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
12689 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12690 | # Make sure either enable_shared or enable_static is yes. | |
12691 | test "$enable_shared" = yes || enable_static=yes | |
12692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12693 | $as_echo "$enable_static" >&6; } | |
66170b30 | 12694 | |
9c60689e | 12695 | |
e9c9a47c | 12696 | |
9c60689e | 12697 | |
a243b558 JF |
12698 | fi |
12699 | ac_ext=c | |
12700 | ac_cpp='$CPP $CPPFLAGS' | |
12701 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12702 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12703 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12704 | ||
12705 | CC="$lt_save_CC" | |
e9c9a47c | 12706 | |
ee134472 | 12707 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
e9c9a47c DWT |
12708 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
12709 | (test "X$CXX" != "Xg++"))) ; then | |
12710 | ac_ext=cpp | |
12711 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12712 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12713 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12714 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
12716 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
12717 | if test -z "$CXXCPP"; then | |
ee134472 | 12718 | if ${ac_cv_prog_CXXCPP+:} false; then : |
e9c9a47c DWT |
12719 | $as_echo_n "(cached) " >&6 |
12720 | else | |
12721 | # Double quotes because CXXCPP needs to be expanded | |
12722 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
12723 | do | |
12724 | ac_preproc_ok=false | |
12725 | for ac_cxx_preproc_warn_flag in '' yes | |
12726 | do | |
12727 | # Use a header file that comes with gcc, so configuring glibc | |
12728 | # with a fresh cross-compiler works. | |
12729 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12730 | # <limits.h> exists even on freestanding compilers. | |
12731 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12732 | # not just through cpp. "Syntax error" is here to catch this case. | |
12733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12734 | /* end confdefs.h. */ | |
12735 | #ifdef __STDC__ | |
12736 | # include <limits.h> | |
12737 | #else | |
12738 | # include <assert.h> | |
12739 | #endif | |
12740 | Syntax error | |
12741 | _ACEOF | |
12742 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12743 | ||
12744 | else | |
12745 | # Broken: fails on valid input. | |
12746 | continue | |
12747 | fi | |
12833ad8 | 12748 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
12749 | |
12750 | # OK, works on sane cases. Now check whether nonexistent headers | |
12751 | # can be detected and how. | |
12752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12753 | /* end confdefs.h. */ | |
12754 | #include <ac_nonexistent.h> | |
12755 | _ACEOF | |
12756 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12757 | # Broken: success on invalid input. | |
12758 | continue | |
12759 | else | |
12760 | # Passes both tests. | |
12761 | ac_preproc_ok=: | |
12762 | break | |
12763 | fi | |
12833ad8 | 12764 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
12765 | |
12766 | done | |
12767 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12833ad8 | 12768 | rm -f conftest.i conftest.err conftest.$ac_ext |
e9c9a47c DWT |
12769 | if $ac_preproc_ok; then : |
12770 | break | |
12771 | fi | |
12772 | ||
12773 | done | |
12774 | ac_cv_prog_CXXCPP=$CXXCPP | |
12775 | ||
12776 | fi | |
12777 | CXXCPP=$ac_cv_prog_CXXCPP | |
12778 | else | |
12779 | ac_cv_prog_CXXCPP=$CXXCPP | |
12780 | fi | |
12781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
12782 | $as_echo "$CXXCPP" >&6; } | |
12783 | ac_preproc_ok=false | |
12784 | for ac_cxx_preproc_warn_flag in '' yes | |
12785 | do | |
12786 | # Use a header file that comes with gcc, so configuring glibc | |
12787 | # with a fresh cross-compiler works. | |
12788 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12789 | # <limits.h> exists even on freestanding compilers. | |
12790 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12791 | # not just through cpp. "Syntax error" is here to catch this case. | |
12792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12793 | /* end confdefs.h. */ | |
12794 | #ifdef __STDC__ | |
12795 | # include <limits.h> | |
12796 | #else | |
12797 | # include <assert.h> | |
12798 | #endif | |
12799 | Syntax error | |
12800 | _ACEOF | |
12801 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12802 | ||
12803 | else | |
12804 | # Broken: fails on valid input. | |
12805 | continue | |
12806 | fi | |
12833ad8 | 12807 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
12808 | |
12809 | # OK, works on sane cases. Now check whether nonexistent headers | |
12810 | # can be detected and how. | |
12811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12812 | /* end confdefs.h. */ | |
12813 | #include <ac_nonexistent.h> | |
12814 | _ACEOF | |
12815 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12816 | # Broken: success on invalid input. | |
12817 | continue | |
12818 | else | |
12819 | # Passes both tests. | |
12820 | ac_preproc_ok=: | |
12821 | break | |
12822 | fi | |
12833ad8 | 12823 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
12824 | |
12825 | done | |
12826 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12833ad8 | 12827 | rm -f conftest.i conftest.err conftest.$ac_ext |
e9c9a47c DWT |
12828 | if $ac_preproc_ok; then : |
12829 | ||
12830 | else | |
12831 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12832 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
ee134472 JF |
12833 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
12834 | See \`config.log' for more details" "$LINENO" 5; } | |
e9c9a47c DWT |
12835 | fi |
12836 | ||
a243b558 JF |
12837 | ac_ext=c |
12838 | ac_cpp='$CPP $CPPFLAGS' | |
12839 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12840 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12841 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
66170b30 JF |
12842 | |
12843 | else | |
e9c9a47c DWT |
12844 | _lt_caught_CXX_error=yes |
12845 | fi | |
12846 | ||
9c60689e DWT |
12847 | ac_ext=cpp |
12848 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12849 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12850 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12851 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
9c60689e | 12852 | |
47aaa820 DWT |
12853 | archive_cmds_need_lc_CXX=no |
12854 | allow_undefined_flag_CXX= | |
12855 | always_export_symbols_CXX=no | |
12856 | archive_expsym_cmds_CXX= | |
12857 | compiler_needs_object_CXX=no | |
12858 | export_dynamic_flag_spec_CXX= | |
12859 | hardcode_direct_CXX=no | |
12860 | hardcode_direct_absolute_CXX=no | |
12861 | hardcode_libdir_flag_spec_CXX= | |
47aaa820 DWT |
12862 | hardcode_libdir_separator_CXX= |
12863 | hardcode_minus_L_CXX=no | |
12864 | hardcode_shlibpath_var_CXX=unsupported | |
12865 | hardcode_automatic_CXX=no | |
12866 | inherit_rpath_CXX=no | |
12867 | module_cmds_CXX= | |
12868 | module_expsym_cmds_CXX= | |
12869 | link_all_deplibs_CXX=unknown | |
12870 | old_archive_cmds_CXX=$old_archive_cmds | |
ee134472 JF |
12871 | reload_flag_CXX=$reload_flag |
12872 | reload_cmds_CXX=$reload_cmds | |
47aaa820 DWT |
12873 | no_undefined_flag_CXX= |
12874 | whole_archive_flag_spec_CXX= | |
12875 | enable_shared_with_static_runtimes_CXX=no | |
9c60689e | 12876 | |
47aaa820 DWT |
12877 | # Source file extension for C++ test sources. |
12878 | ac_ext=cpp | |
9c60689e | 12879 | |
47aaa820 DWT |
12880 | # Object file extension for compiled C++ test sources. |
12881 | objext=o | |
12882 | objext_CXX=$objext | |
9c60689e | 12883 | |
47aaa820 DWT |
12884 | # No sense in running all these tests if we already determined that |
12885 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
12886 | # are currently assumed to apply to all compilers on this platform, | |
12887 | # and will be corrupted by setting them based on a non-working compiler. | |
12888 | if test "$_lt_caught_CXX_error" != yes; then | |
12889 | # Code to be used in simple compile tests | |
12890 | lt_simple_compile_test_code="int some_variable = 0;" | |
9c60689e | 12891 | |
47aaa820 DWT |
12892 | # Code to be used in simple link tests |
12893 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
9c60689e | 12894 | |
47aaa820 | 12895 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
9c60689e | 12896 | |
9c60689e | 12897 | |
9c60689e | 12898 | |
9c60689e | 12899 | |
9c60689e | 12900 | |
9c60689e | 12901 | |
47aaa820 DWT |
12902 | # If no C compiler was specified, use CC. |
12903 | LTCC=${LTCC-"$CC"} | |
9c60689e | 12904 | |
47aaa820 DWT |
12905 | # If no C compiler flags were specified, use CFLAGS. |
12906 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9c60689e | 12907 | |
47aaa820 DWT |
12908 | # Allow CC to be a program name with arguments. |
12909 | compiler=$CC | |
9c60689e | 12910 | |
9c60689e | 12911 | |
47aaa820 DWT |
12912 | # save warnings/boilerplate of simple test code |
12913 | ac_outfile=conftest.$ac_objext | |
12914 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
12915 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12916 | _lt_compiler_boilerplate=`cat conftest.err` | |
a93f15c0 | 12917 | $RM conftest* |
9c60689e | 12918 | |
47aaa820 DWT |
12919 | ac_outfile=conftest.$ac_objext |
12920 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
12921 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12922 | _lt_linker_boilerplate=`cat conftest.err` | |
12923 | $RM -r conftest* | |
9c60689e | 12924 | |
9c60689e | 12925 | |
47aaa820 DWT |
12926 | # Allow CC to be a program name with arguments. |
12927 | lt_save_CC=$CC | |
ee134472 | 12928 | lt_save_CFLAGS=$CFLAGS |
47aaa820 DWT |
12929 | lt_save_LD=$LD |
12930 | lt_save_GCC=$GCC | |
12931 | GCC=$GXX | |
12932 | lt_save_with_gnu_ld=$with_gnu_ld | |
12933 | lt_save_path_LD=$lt_cv_path_LD | |
12934 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
12935 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
9c60689e | 12936 | else |
47aaa820 | 12937 | $as_unset lt_cv_prog_gnu_ld |
9c60689e | 12938 | fi |
47aaa820 DWT |
12939 | if test -n "${lt_cv_path_LDCXX+set}"; then |
12940 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
9c60689e | 12941 | else |
47aaa820 | 12942 | $as_unset lt_cv_path_LD |
9c60689e | 12943 | fi |
47aaa820 DWT |
12944 | test -z "${LDCXX+set}" || LD=$LDCXX |
12945 | CC=${CXX-"c++"} | |
ee134472 | 12946 | CFLAGS=$CXXFLAGS |
47aaa820 DWT |
12947 | compiler=$CC |
12948 | compiler_CXX=$CC | |
12949 | for cc_temp in $compiler""; do | |
12950 | case $cc_temp in | |
12951 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
12952 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
12953 | \-*) ;; | |
12954 | *) break;; | |
12955 | esac | |
12956 | done | |
ee134472 | 12957 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
9c60689e DWT |
12958 | |
12959 | ||
47aaa820 DWT |
12960 | if test -n "$compiler"; then |
12961 | # We don't want -fno-exception when compiling C++ code, so set the | |
12962 | # no_builtin_flag separately | |
12963 | if test "$GXX" = yes; then | |
12964 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
12965 | else | |
12966 | lt_prog_compiler_no_builtin_flag_CXX= | |
12967 | fi | |
9c60689e | 12968 | |
47aaa820 DWT |
12969 | if test "$GXX" = yes; then |
12970 | # Set up default GNU C++ configuration | |
12971 | ||
12972 | ||
12973 | ||
12974 | # Check whether --with-gnu-ld was given. | |
12975 | if test "${with_gnu_ld+set}" = set; then : | |
12976 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
9c60689e | 12977 | else |
47aaa820 | 12978 | with_gnu_ld=no |
9c60689e DWT |
12979 | fi |
12980 | ||
47aaa820 DWT |
12981 | ac_prog=ld |
12982 | if test "$GCC" = yes; then | |
12983 | # Check if gcc -print-prog-name=ld gives a path. | |
12984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
12985 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
12986 | case $host in | |
12987 | *-*-mingw*) | |
12988 | # gcc leaves a trailing carriage return which upsets mingw | |
12989 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
12990 | *) | |
12991 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
12992 | esac | |
12993 | case $ac_prog in | |
12994 | # Accept absolute paths. | |
12995 | [\\/]* | ?:[\\/]*) | |
12996 | re_direlt='/[^/][^/]*/\.\./' | |
12997 | # Canonicalize the pathname of ld | |
12998 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
12999 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
13000 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
13001 | done | |
13002 | test -z "$LD" && LD="$ac_prog" | |
13003 | ;; | |
13004 | "") | |
13005 | # If it fails, then pretend we aren't using GCC. | |
13006 | ac_prog=ld | |
13007 | ;; | |
13008 | *) | |
13009 | # If it is relative, then search for the first ld in PATH. | |
13010 | with_gnu_ld=unknown | |
13011 | ;; | |
13012 | esac | |
13013 | elif test "$with_gnu_ld" = yes; then | |
13014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
13015 | $as_echo_n "checking for GNU ld... " >&6; } | |
13016 | else | |
13017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
13018 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
9c60689e | 13019 | fi |
ee134472 | 13020 | if ${lt_cv_path_LD+:} false; then : |
9c60689e DWT |
13021 | $as_echo_n "(cached) " >&6 |
13022 | else | |
47aaa820 DWT |
13023 | if test -z "$LD"; then |
13024 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
13025 | for ac_dir in $PATH; do | |
13026 | IFS="$lt_save_ifs" | |
13027 | test -z "$ac_dir" && ac_dir=. | |
13028 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
13029 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
13030 | # Check to see if the program is GNU ld. I'd rather use --version, | |
13031 | # but apparently some variants of GNU ld only accept -v. | |
13032 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
13033 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
13034 | *GNU* | *'with BFD'*) | |
13035 | test "$with_gnu_ld" != no && break | |
13036 | ;; | |
13037 | *) | |
13038 | test "$with_gnu_ld" != yes && break | |
13039 | ;; | |
13040 | esac | |
13041 | fi | |
9c60689e | 13042 | done |
47aaa820 DWT |
13043 | IFS="$lt_save_ifs" |
13044 | else | |
13045 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
9c60689e DWT |
13046 | fi |
13047 | fi | |
47aaa820 DWT |
13048 | |
13049 | LD="$lt_cv_path_LD" | |
13050 | if test -n "$LD"; then | |
13051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
13052 | $as_echo "$LD" >&6; } | |
9c60689e DWT |
13053 | else |
13054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13055 | $as_echo "no" >&6; } | |
13056 | fi | |
12833ad8 | 13057 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
47aaa820 DWT |
13058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
13059 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
ee134472 | 13060 | if ${lt_cv_prog_gnu_ld+:} false; then : |
47aaa820 DWT |
13061 | $as_echo_n "(cached) " >&6 |
13062 | else | |
13063 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
13064 | case `$LD -v 2>&1 </dev/null` in | |
13065 | *GNU* | *'with BFD'*) | |
13066 | lt_cv_prog_gnu_ld=yes | |
13067 | ;; | |
13068 | *) | |
13069 | lt_cv_prog_gnu_ld=no | |
13070 | ;; | |
13071 | esac | |
13072 | fi | |
13073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
13074 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
13075 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
9c60689e DWT |
13076 | |
13077 | ||
9c60689e | 13078 | |
9c60689e | 13079 | |
9c60689e | 13080 | |
9c60689e | 13081 | |
9c60689e | 13082 | |
47aaa820 DWT |
13083 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
13084 | # archiving commands below assume that GNU ld is being used. | |
13085 | if test "$with_gnu_ld" = yes; then | |
ee134472 JF |
13086 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13087 | 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 | 13088 | |
47aaa820 DWT |
13089 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
13090 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
9c60689e | 13091 | |
47aaa820 DWT |
13092 | # If archive_cmds runs LD, not CC, wlarc should be empty |
13093 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
13094 | # investigate it a little bit more. (MM) | |
13095 | wlarc='${wl}' | |
9c60689e | 13096 | |
47aaa820 DWT |
13097 | # ancient GNU ld didn't support --whole-archive et. al. |
13098 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
13099 | $GREP 'no-whole-archive' > /dev/null; then | |
13100 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
13101 | else | |
13102 | whole_archive_flag_spec_CXX= | |
13103 | fi | |
13104 | else | |
13105 | with_gnu_ld=no | |
13106 | wlarc= | |
13107 | ||
13108 | # A generic and very simple default shared library creation | |
13109 | # command for GNU C++ for the case where it uses the native | |
13110 | # linker, instead of GNU ld. If possible, this setting should | |
13111 | # overridden to take advantage of the native linker features on | |
13112 | # the platform it is being used on. | |
13113 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
13114 | fi | |
13115 | ||
13116 | # Commands to make compiler produce verbose output that lists | |
13117 | # what "hidden" libraries, object files and flags are used when | |
13118 | # linking a shared library. | |
ee134472 | 13119 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
47aaa820 DWT |
13120 | |
13121 | else | |
13122 | GXX=no | |
13123 | with_gnu_ld=no | |
13124 | wlarc= | |
13125 | fi | |
13126 | ||
13127 | # PORTME: fill in a description of your system's C++ link characteristics | |
13128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
13129 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
13130 | ld_shlibs_CXX=yes | |
13131 | case $host_os in | |
13132 | aix3*) | |
13133 | # FIXME: insert proper C++ library support | |
13134 | ld_shlibs_CXX=no | |
13135 | ;; | |
13136 | aix[4-9]*) | |
13137 | if test "$host_cpu" = ia64; then | |
13138 | # On IA64, the linker does run time linking by default, so we don't | |
13139 | # have to do anything special. | |
13140 | aix_use_runtimelinking=no | |
13141 | exp_sym_flag='-Bexport' | |
13142 | no_entry_flag="" | |
13143 | else | |
13144 | aix_use_runtimelinking=no | |
13145 | ||
13146 | # Test if we are trying to use run time linking or normal | |
13147 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
13148 | # need to do runtime linking. | |
13149 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
13150 | for ld_flag in $LDFLAGS; do | |
13151 | case $ld_flag in | |
13152 | *-brtl*) | |
13153 | aix_use_runtimelinking=yes | |
13154 | break | |
13155 | ;; | |
13156 | esac | |
13157 | done | |
13158 | ;; | |
13159 | esac | |
13160 | ||
13161 | exp_sym_flag='-bexport' | |
13162 | no_entry_flag='-bnoentry' | |
13163 | fi | |
13164 | ||
13165 | # When large executables or shared objects are built, AIX ld can | |
13166 | # have problems creating the table of contents. If linking a library | |
13167 | # or program results in "error TOC overflow" add -mminimal-toc to | |
13168 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
13169 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
13170 | ||
13171 | archive_cmds_CXX='' | |
13172 | hardcode_direct_CXX=yes | |
13173 | hardcode_direct_absolute_CXX=yes | |
13174 | hardcode_libdir_separator_CXX=':' | |
13175 | link_all_deplibs_CXX=yes | |
13176 | file_list_spec_CXX='${wl}-f,' | |
13177 | ||
13178 | if test "$GXX" = yes; then | |
13179 | case $host_os in aix4.[012]|aix4.[012].*) | |
13180 | # We only want to do this on AIX 4.2 and lower, the check | |
13181 | # below for broken collect2 doesn't work under 4.3+ | |
13182 | collect2name=`${CC} -print-prog-name=collect2` | |
13183 | if test -f "$collect2name" && | |
13184 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
13185 | then | |
13186 | # We have reworked collect2 | |
13187 | : | |
13188 | else | |
13189 | # We have old collect2 | |
13190 | hardcode_direct_CXX=unsupported | |
13191 | # It fails to find uninstalled libraries when the uninstalled | |
13192 | # path is not listed in the libpath. Setting hardcode_minus_L | |
13193 | # to unsupported forces relinking | |
13194 | hardcode_minus_L_CXX=yes | |
13195 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
13196 | hardcode_libdir_separator_CXX= | |
13197 | fi | |
13198 | esac | |
13199 | shared_flag='-shared' | |
13200 | if test "$aix_use_runtimelinking" = yes; then | |
13201 | shared_flag="$shared_flag "'${wl}-G' | |
13202 | fi | |
13203 | else | |
13204 | # not using gcc | |
13205 | if test "$host_cpu" = ia64; then | |
13206 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
13207 | # chokes on -Wl,-G. The following line is correct: | |
13208 | shared_flag='-G' | |
13209 | else | |
13210 | if test "$aix_use_runtimelinking" = yes; then | |
13211 | shared_flag='${wl}-G' | |
13212 | else | |
13213 | shared_flag='${wl}-bM:SRE' | |
13214 | fi | |
13215 | fi | |
13216 | fi | |
13217 | ||
13218 | export_dynamic_flag_spec_CXX='${wl}-bexpall' | |
13219 | # It seems that -bexpall does not export symbols beginning with | |
13220 | # underscore (_), so it is better to generate a list of symbols to | |
13221 | # export. | |
13222 | always_export_symbols_CXX=yes | |
13223 | if test "$aix_use_runtimelinking" = yes; then | |
13224 | # Warning - without using the other runtime loading flags (-brtl), | |
13225 | # -berok will link without error, but may produce a broken library. | |
13226 | allow_undefined_flag_CXX='-berok' | |
13227 | # Determine the default libpath from the value encoded in an empty | |
13228 | # executable. | |
ee134472 JF |
13229 | if test "${lt_cv_aix_libpath+set}" = set; then |
13230 | aix_libpath=$lt_cv_aix_libpath | |
13231 | else | |
13232 | if ${lt_cv_aix_libpath__CXX+:} false; then : | |
13233 | $as_echo_n "(cached) " >&6 | |
13234 | else | |
13235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
13236 | /* end confdefs.h. */ |
13237 | ||
13238 | int | |
13239 | main () | |
13240 | { | |
13241 | ||
13242 | ; | |
13243 | return 0; | |
13244 | } | |
13245 | _ACEOF | |
47aaa820 | 13246 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 13247 | |
ee134472 JF |
13248 | lt_aix_libpath_sed=' |
13249 | /Import File Strings/,/^$/ { | |
13250 | /^0/ { | |
13251 | s/^0 *\([^ ]*\) *$/\1/ | |
13252 | p | |
13253 | } | |
13254 | }' | |
13255 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13256 | # Check for a 64-bit object if we didn't find anything. | |
13257 | if test -z "$lt_cv_aix_libpath__CXX"; then | |
13258 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13259 | fi | |
47aaa820 DWT |
13260 | fi |
13261 | rm -f core conftest.err conftest.$ac_objext \ | |
13262 | conftest$ac_exeext conftest.$ac_ext | |
ee134472 JF |
13263 | if test -z "$lt_cv_aix_libpath__CXX"; then |
13264 | lt_cv_aix_libpath__CXX="/usr/lib:/lib" | |
13265 | fi | |
13266 | ||
13267 | fi | |
13268 | ||
13269 | aix_libpath=$lt_cv_aix_libpath__CXX | |
13270 | fi | |
47aaa820 DWT |
13271 | |
13272 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
13273 | ||
ee134472 | 13274 | archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
47aaa820 DWT |
13275 | else |
13276 | if test "$host_cpu" = ia64; then | |
13277 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
13278 | allow_undefined_flag_CXX="-z nodefs" | |
13279 | 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" | |
13280 | else | |
13281 | # Determine the default libpath from the value encoded in an | |
13282 | # empty executable. | |
ee134472 JF |
13283 | if test "${lt_cv_aix_libpath+set}" = set; then |
13284 | aix_libpath=$lt_cv_aix_libpath | |
13285 | else | |
13286 | if ${lt_cv_aix_libpath__CXX+:} false; then : | |
13287 | $as_echo_n "(cached) " >&6 | |
13288 | else | |
13289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
13290 | /* end confdefs.h. */ |
13291 | ||
13292 | int | |
13293 | main () | |
13294 | { | |
13295 | ||
13296 | ; | |
13297 | return 0; | |
13298 | } | |
13299 | _ACEOF | |
47aaa820 | 13300 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 13301 | |
ee134472 JF |
13302 | lt_aix_libpath_sed=' |
13303 | /Import File Strings/,/^$/ { | |
13304 | /^0/ { | |
13305 | s/^0 *\([^ ]*\) *$/\1/ | |
13306 | p | |
13307 | } | |
13308 | }' | |
13309 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13310 | # Check for a 64-bit object if we didn't find anything. | |
13311 | if test -z "$lt_cv_aix_libpath__CXX"; then | |
13312 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13313 | fi | |
9c60689e | 13314 | fi |
47aaa820 DWT |
13315 | rm -f core conftest.err conftest.$ac_objext \ |
13316 | conftest$ac_exeext conftest.$ac_ext | |
ee134472 JF |
13317 | if test -z "$lt_cv_aix_libpath__CXX"; then |
13318 | lt_cv_aix_libpath__CXX="/usr/lib:/lib" | |
13319 | fi | |
13320 | ||
13321 | fi | |
13322 | ||
13323 | aix_libpath=$lt_cv_aix_libpath__CXX | |
13324 | fi | |
9c60689e | 13325 | |
47aaa820 DWT |
13326 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
13327 | # Warning - without using the other run time loading flags, | |
13328 | # -berok will link without error, but may produce a broken library. | |
13329 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
13330 | allow_undefined_flag_CXX=' ${wl}-berok' | |
ee134472 JF |
13331 | if test "$with_gnu_ld" = yes; then |
13332 | # We only use this code for GNU lds that support --whole-archive. | |
13333 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
13334 | else | |
13335 | # Exported symbols can be pulled into shared objects from archives | |
13336 | whole_archive_flag_spec_CXX='$convenience' | |
13337 | fi | |
47aaa820 DWT |
13338 | archive_cmds_need_lc_CXX=yes |
13339 | # This is similar to how AIX traditionally builds its shared | |
13340 | # libraries. | |
13341 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
13342 | fi | |
13343 | fi | |
13344 | ;; | |
9c60689e | 13345 | |
47aaa820 DWT |
13346 | beos*) |
13347 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
13348 | allow_undefined_flag_CXX=unsupported | |
13349 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
13350 | # support --undefined. This deserves some investigation. FIXME | |
13351 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13352 | else | |
13353 | ld_shlibs_CXX=no | |
13354 | fi | |
13355 | ;; | |
9c60689e | 13356 | |
47aaa820 DWT |
13357 | chorus*) |
13358 | case $cc_basename in | |
13359 | *) | |
13360 | # FIXME: insert proper C++ library support | |
13361 | ld_shlibs_CXX=no | |
13362 | ;; | |
13363 | esac | |
13364 | ;; | |
9c60689e | 13365 | |
47aaa820 | 13366 | cygwin* | mingw* | pw32* | cegcc*) |
ee134472 JF |
13367 | case $GXX,$cc_basename in |
13368 | ,cl* | no,cl*) | |
13369 | # Native MSVC | |
13370 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
13371 | # no search path for DLLs. | |
13372 | hardcode_libdir_flag_spec_CXX=' ' | |
13373 | allow_undefined_flag_CXX=unsupported | |
13374 | always_export_symbols_CXX=yes | |
13375 | file_list_spec_CXX='@' | |
13376 | # Tell ltmain to make .lib files, not .a files. | |
13377 | libext=lib | |
13378 | # Tell ltmain to make .dll files, not .so files. | |
13379 | shrext_cmds=".dll" | |
13380 | # FIXME: Setting linknames here is a bad hack. | |
13381 | archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
13382 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
13383 | $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
13384 | else | |
13385 | $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
13386 | fi~ | |
13387 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
13388 | linknames=' | |
13389 | # The linker will not automatically build a static lib if we build a DLL. | |
13390 | # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' | |
13391 | enable_shared_with_static_runtimes_CXX=yes | |
13392 | # Don't use ranlib | |
13393 | old_postinstall_cmds_CXX='chmod 644 $oldlib' | |
13394 | postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ | |
13395 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
13396 | case $lt_outputfile in | |
13397 | *.exe|*.EXE) ;; | |
13398 | *) | |
13399 | lt_outputfile="$lt_outputfile.exe" | |
13400 | lt_tool_outputfile="$lt_tool_outputfile.exe" | |
13401 | ;; | |
13402 | esac~ | |
13403 | func_to_tool_file "$lt_outputfile"~ | |
13404 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
13405 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
13406 | $RM "$lt_outputfile.manifest"; | |
13407 | fi' | |
13408 | ;; | |
13409 | *) | |
13410 | # g++ | |
13411 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
13412 | # as there is no search path for DLLs. | |
13413 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
13414 | export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' | |
13415 | allow_undefined_flag_CXX=unsupported | |
13416 | always_export_symbols_CXX=no | |
13417 | enable_shared_with_static_runtimes_CXX=yes | |
13418 | ||
13419 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
13420 | 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' | |
13421 | # If the export-symbols file already is a .def file (1st line | |
13422 | # is EXPORTS), use it as is; otherwise, prepend... | |
13423 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
13424 | cp $export_symbols $output_objdir/$soname.def; | |
13425 | else | |
13426 | echo EXPORTS > $output_objdir/$soname.def; | |
13427 | cat $export_symbols >> $output_objdir/$soname.def; | |
13428 | fi~ | |
13429 | $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' | |
13430 | else | |
13431 | ld_shlibs_CXX=no | |
13432 | fi | |
13433 | ;; | |
13434 | esac | |
13435 | ;; | |
47aaa820 | 13436 | darwin* | rhapsody*) |
9c60689e | 13437 | |
9c60689e | 13438 | |
47aaa820 DWT |
13439 | archive_cmds_need_lc_CXX=no |
13440 | hardcode_direct_CXX=no | |
13441 | hardcode_automatic_CXX=yes | |
13442 | hardcode_shlibpath_var_CXX=unsupported | |
ee134472 JF |
13443 | if test "$lt_cv_ld_force_load" = "yes"; then |
13444 | 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 | 13445 | |
ee134472 JF |
13446 | else |
13447 | whole_archive_flag_spec_CXX='' | |
13448 | fi | |
47aaa820 DWT |
13449 | link_all_deplibs_CXX=yes |
13450 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | |
13451 | case $cc_basename in | |
13452 | ifort*) _lt_dar_can_shared=yes ;; | |
13453 | *) _lt_dar_can_shared=$GCC ;; | |
13454 | esac | |
13455 | if test "$_lt_dar_can_shared" = "yes"; then | |
ee134472 | 13456 | output_verbose_link_cmd=func_echo_all |
47aaa820 DWT |
13457 | 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}" |
13458 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
13459 | 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}" | |
13460 | 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}" | |
13461 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
13462 | 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}" | |
13463 | 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}" | |
13464 | fi | |
9c60689e | 13465 | |
47aaa820 DWT |
13466 | else |
13467 | ld_shlibs_CXX=no | |
13468 | fi | |
9c60689e | 13469 | |
47aaa820 | 13470 | ;; |
9c60689e | 13471 | |
47aaa820 DWT |
13472 | dgux*) |
13473 | case $cc_basename in | |
13474 | ec++*) | |
13475 | # FIXME: insert proper C++ library support | |
13476 | ld_shlibs_CXX=no | |
13477 | ;; | |
13478 | ghcx*) | |
13479 | # Green Hills C++ Compiler | |
13480 | # FIXME: insert proper C++ library support | |
13481 | ld_shlibs_CXX=no | |
13482 | ;; | |
13483 | *) | |
13484 | # FIXME: insert proper C++ library support | |
13485 | ld_shlibs_CXX=no | |
13486 | ;; | |
13487 | esac | |
13488 | ;; | |
9c60689e | 13489 | |
53ba6704 | 13490 | freebsd2.*) |
47aaa820 DWT |
13491 | # C++ shared libraries reported to be fairly broken before |
13492 | # switch to ELF | |
13493 | ld_shlibs_CXX=no | |
13494 | ;; | |
9c60689e | 13495 | |
47aaa820 DWT |
13496 | freebsd-elf*) |
13497 | archive_cmds_need_lc_CXX=no | |
13498 | ;; | |
9c60689e | 13499 | |
47aaa820 DWT |
13500 | freebsd* | dragonfly*) |
13501 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
13502 | # conventions | |
13503 | ld_shlibs_CXX=yes | |
13504 | ;; | |
9c60689e | 13505 | |
47aaa820 DWT |
13506 | gnu*) |
13507 | ;; | |
9c60689e | 13508 | |
ee134472 JF |
13509 | haiku*) |
13510 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13511 | link_all_deplibs_CXX=yes | |
13512 | ;; | |
13513 | ||
47aaa820 DWT |
13514 | hpux9*) |
13515 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
13516 | hardcode_libdir_separator_CXX=: | |
13517 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13518 | hardcode_direct_CXX=yes | |
13519 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
13520 | # but as the default | |
13521 | # location of the library. | |
9c60689e | 13522 | |
47aaa820 DWT |
13523 | case $cc_basename in |
13524 | CC*) | |
13525 | # FIXME: insert proper C++ library support | |
13526 | ld_shlibs_CXX=no | |
13527 | ;; | |
13528 | aCC*) | |
13529 | 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
13530 | # Commands to make compiler produce verbose output that lists | |
13531 | # what "hidden" libraries, object files and flags are used when | |
13532 | # linking a shared library. | |
13533 | # | |
13534 | # There doesn't appear to be a way to prevent this compiler from | |
13535 | # explicitly linking system object files so we need to strip them | |
13536 | # from the output so that they don't get included in the library | |
13537 | # dependencies. | |
ee134472 | 13538 | 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 |
13539 | ;; |
13540 | *) | |
13541 | if test "$GXX" = yes; then | |
ee134472 | 13542 | 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
47aaa820 DWT |
13543 | else |
13544 | # FIXME: insert proper C++ library support | |
13545 | ld_shlibs_CXX=no | |
13546 | fi | |
13547 | ;; | |
13548 | esac | |
13549 | ;; | |
9c60689e | 13550 | |
47aaa820 DWT |
13551 | hpux10*|hpux11*) |
13552 | if test $with_gnu_ld = no; then | |
13553 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
13554 | hardcode_libdir_separator_CXX=: | |
9c60689e | 13555 | |
47aaa820 DWT |
13556 | case $host_cpu in |
13557 | hppa*64*|ia64*) | |
13558 | ;; | |
13559 | *) | |
13560 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13561 | ;; | |
13562 | esac | |
13563 | fi | |
13564 | case $host_cpu in | |
13565 | hppa*64*|ia64*) | |
13566 | hardcode_direct_CXX=no | |
13567 | hardcode_shlibpath_var_CXX=no | |
13568 | ;; | |
13569 | *) | |
13570 | hardcode_direct_CXX=yes | |
13571 | hardcode_direct_absolute_CXX=yes | |
13572 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
13573 | # but as the default | |
13574 | # location of the library. | |
13575 | ;; | |
13576 | esac | |
9c60689e | 13577 | |
47aaa820 DWT |
13578 | case $cc_basename in |
13579 | CC*) | |
13580 | # FIXME: insert proper C++ library support | |
13581 | ld_shlibs_CXX=no | |
13582 | ;; | |
13583 | aCC*) | |
13584 | case $host_cpu in | |
13585 | hppa*64*) | |
13586 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13587 | ;; | |
13588 | ia64*) | |
13589 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13590 | ;; | |
13591 | *) | |
13592 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13593 | ;; | |
13594 | esac | |
13595 | # Commands to make compiler produce verbose output that lists | |
13596 | # what "hidden" libraries, object files and flags are used when | |
13597 | # linking a shared library. | |
13598 | # | |
13599 | # There doesn't appear to be a way to prevent this compiler from | |
13600 | # explicitly linking system object files so we need to strip them | |
13601 | # from the output so that they don't get included in the library | |
13602 | # dependencies. | |
ee134472 | 13603 | 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 |
13604 | ;; |
13605 | *) | |
13606 | if test "$GXX" = yes; then | |
13607 | if test $with_gnu_ld = no; then | |
13608 | case $host_cpu in | |
13609 | hppa*64*) | |
13610 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13611 | ;; | |
13612 | ia64*) | |
ee134472 | 13613 | 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 |
13614 | ;; |
13615 | *) | |
ee134472 | 13616 | 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 |
13617 | ;; |
13618 | esac | |
13619 | fi | |
13620 | else | |
13621 | # FIXME: insert proper C++ library support | |
13622 | ld_shlibs_CXX=no | |
13623 | fi | |
13624 | ;; | |
13625 | esac | |
13626 | ;; | |
9c60689e | 13627 | |
47aaa820 DWT |
13628 | interix[3-9]*) |
13629 | hardcode_direct_CXX=no | |
13630 | hardcode_shlibpath_var_CXX=no | |
13631 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13632 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13633 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
13634 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
13635 | # default) and relocated if they conflict, which is a slow very memory | |
13636 | # consuming and fragmenting process. To avoid this, we pick a random, | |
13637 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
13638 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
13639 | 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' | |
13640 | 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' | |
13641 | ;; | |
13642 | irix5* | irix6*) | |
13643 | case $cc_basename in | |
13644 | CC*) | |
13645 | # SGI C++ | |
ee134472 | 13646 | 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 | 13647 | |
47aaa820 DWT |
13648 | # Archives containing C++ object files must be created using |
13649 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
13650 | # necessary to make sure instantiated templates are included | |
13651 | # in the archive. | |
13652 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
13653 | ;; | |
13654 | *) | |
13655 | if test "$GXX" = yes; then | |
13656 | if test "$with_gnu_ld" = no; then | |
ee134472 | 13657 | 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 | 13658 | else |
ee134472 | 13659 | 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 |
13660 | fi |
13661 | fi | |
13662 | link_all_deplibs_CXX=yes | |
13663 | ;; | |
13664 | esac | |
13665 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13666 | hardcode_libdir_separator_CXX=: | |
13667 | inherit_rpath_CXX=yes | |
13668 | ;; | |
9c60689e | 13669 | |
1504c9b8 | 13670 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
47aaa820 DWT |
13671 | case $cc_basename in |
13672 | KCC*) | |
13673 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 13674 | |
47aaa820 DWT |
13675 | # KCC will only create a shared library if the output file |
13676 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13677 | # to its proper name (with version) after linking. | |
13678 | 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' | |
13679 | 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' | |
13680 | # Commands to make compiler produce verbose output that lists | |
13681 | # what "hidden" libraries, object files and flags are used when | |
13682 | # linking a shared library. | |
13683 | # | |
13684 | # There doesn't appear to be a way to prevent this compiler from | |
13685 | # explicitly linking system object files so we need to strip them | |
13686 | # from the output so that they don't get included in the library | |
13687 | # dependencies. | |
ee134472 | 13688 | 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 | 13689 | |
47aaa820 DWT |
13690 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
13691 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
9c60689e | 13692 | |
47aaa820 DWT |
13693 | # Archives containing C++ object files must be created using |
13694 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
13695 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
13696 | ;; | |
13697 | icpc* | ecpc* ) | |
13698 | # Intel C++ | |
13699 | with_gnu_ld=yes | |
13700 | # version 8.0 and above of icpc choke on multiply defined symbols | |
13701 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
13702 | # earlier do not add the objects themselves. | |
13703 | case `$CC -V 2>&1` in | |
13704 | *"Version 7."*) | |
13705 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13706 | 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' | |
13707 | ;; | |
13708 | *) # Version 8.0 or newer | |
13709 | tmp_idyn= | |
13710 | case $host_cpu in | |
13711 | ia64*) tmp_idyn=' -i_dynamic';; | |
13712 | esac | |
13713 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13714 | 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' | |
13715 | ;; | |
13716 | esac | |
13717 | archive_cmds_need_lc_CXX=no | |
13718 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13719 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13720 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
13721 | ;; | |
13722 | pgCC* | pgcpp*) | |
13723 | # Portland Group C++ compiler | |
13724 | case `$CC -V` in | |
ee134472 | 13725 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) |
47aaa820 DWT |
13726 | prelink_cmds_CXX='tpldir=Template.dir~ |
13727 | rm -rf $tpldir~ | |
13728 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
ee134472 | 13729 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' |
47aaa820 DWT |
13730 | old_archive_cmds_CXX='tpldir=Template.dir~ |
13731 | rm -rf $tpldir~ | |
13732 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
ee134472 | 13733 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ |
47aaa820 DWT |
13734 | $RANLIB $oldlib' |
13735 | archive_cmds_CXX='tpldir=Template.dir~ | |
13736 | rm -rf $tpldir~ | |
13737 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
ee134472 | 13738 | $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 DWT |
13739 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
13740 | rm -rf $tpldir~ | |
13741 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
ee134472 | 13742 | $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 | 13743 | ;; |
ee134472 | 13744 | *) # Version 6 and above use weak symbols |
47aaa820 DWT |
13745 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
13746 | 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' | |
13747 | ;; | |
13748 | esac | |
9c60689e | 13749 | |
47aaa820 DWT |
13750 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
13751 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
ee134472 | 13752 | 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 |
13753 | ;; |
13754 | cxx*) | |
13755 | # Compaq C++ | |
13756 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13757 | 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 | 13758 | |
47aaa820 DWT |
13759 | runpath_var=LD_RUN_PATH |
13760 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13761 | hardcode_libdir_separator_CXX=: | |
9c60689e | 13762 | |
47aaa820 DWT |
13763 | # Commands to make compiler produce verbose output that lists |
13764 | # what "hidden" libraries, object files and flags are used when | |
13765 | # linking a shared library. | |
13766 | # | |
13767 | # There doesn't appear to be a way to prevent this compiler from | |
13768 | # explicitly linking system object files so we need to strip them | |
13769 | # from the output so that they don't get included in the library | |
13770 | # dependencies. | |
ee134472 | 13771 | 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 | 13772 | ;; |
ee134472 | 13773 | xl* | mpixl* | bgxl*) |
47aaa820 DWT |
13774 | # IBM XL 8.0 on PPC, with GNU ld |
13775 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13776 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13777 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13778 | if test "x$supports_anon_versioning" = xyes; then | |
13779 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | |
13780 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
13781 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
13782 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
13783 | fi | |
13784 | ;; | |
13785 | *) | |
13786 | case `$CC -V 2>&1 | sed 5q` in | |
13787 | *Sun\ C*) | |
13788 | # Sun C++ 5.9 | |
13789 | no_undefined_flag_CXX=' -zdefs' | |
13790 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13791 | 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' | |
13792 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
ee134472 | 13793 | 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 | 13794 | compiler_needs_object_CXX=yes |
9c60689e | 13795 | |
47aaa820 DWT |
13796 | # Not sure whether something based on |
13797 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
13798 | # would be better. | |
ee134472 | 13799 | output_verbose_link_cmd='func_echo_all' |
9c60689e | 13800 | |
47aaa820 DWT |
13801 | # Archives containing C++ object files must be created using |
13802 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13803 | # necessary to make sure instantiated templates are included | |
13804 | # in the archive. | |
13805 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13806 | ;; | |
13807 | esac | |
13808 | ;; | |
13809 | esac | |
13810 | ;; | |
9c60689e | 13811 | |
47aaa820 DWT |
13812 | lynxos*) |
13813 | # FIXME: insert proper C++ library support | |
13814 | ld_shlibs_CXX=no | |
13815 | ;; | |
9c60689e | 13816 | |
47aaa820 DWT |
13817 | m88k*) |
13818 | # FIXME: insert proper C++ library support | |
13819 | ld_shlibs_CXX=no | |
13820 | ;; | |
9c60689e | 13821 | |
47aaa820 DWT |
13822 | mvs*) |
13823 | case $cc_basename in | |
13824 | cxx*) | |
13825 | # FIXME: insert proper C++ library support | |
13826 | ld_shlibs_CXX=no | |
13827 | ;; | |
13828 | *) | |
13829 | # FIXME: insert proper C++ library support | |
13830 | ld_shlibs_CXX=no | |
13831 | ;; | |
13832 | esac | |
13833 | ;; | |
9c60689e | 13834 | |
47aaa820 DWT |
13835 | netbsd*) |
13836 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13837 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
13838 | wlarc= | |
13839 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13840 | hardcode_direct_CXX=yes | |
13841 | hardcode_shlibpath_var_CXX=no | |
13842 | fi | |
13843 | # Workaround some broken pre-1.5 toolchains | |
13844 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
9c60689e | 13845 | ;; |
47aaa820 DWT |
13846 | |
13847 | *nto* | *qnx*) | |
13848 | ld_shlibs_CXX=yes | |
9c60689e | 13849 | ;; |
9c60689e | 13850 | |
47aaa820 DWT |
13851 | openbsd2*) |
13852 | # C++ shared libraries are fairly broken | |
13853 | ld_shlibs_CXX=no | |
13854 | ;; | |
9c60689e | 13855 | |
47aaa820 DWT |
13856 | openbsd*) |
13857 | if test -f /usr/libexec/ld.so; then | |
13858 | hardcode_direct_CXX=yes | |
13859 | hardcode_shlibpath_var_CXX=no | |
13860 | hardcode_direct_absolute_CXX=yes | |
13861 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
13862 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13863 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13864 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
13865 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13866 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
13867 | fi | |
ee134472 | 13868 | output_verbose_link_cmd=func_echo_all |
47aaa820 DWT |
13869 | else |
13870 | ld_shlibs_CXX=no | |
13871 | fi | |
13872 | ;; | |
9c60689e | 13873 | |
47aaa820 DWT |
13874 | osf3* | osf4* | osf5*) |
13875 | case $cc_basename in | |
13876 | KCC*) | |
13877 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 13878 | |
47aaa820 DWT |
13879 | # KCC will only create a shared library if the output file |
13880 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13881 | # to its proper name (with version) after linking. | |
13882 | 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 | 13883 | |
47aaa820 DWT |
13884 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
13885 | hardcode_libdir_separator_CXX=: | |
9c60689e | 13886 | |
47aaa820 DWT |
13887 | # Archives containing C++ object files must be created using |
13888 | # the KAI C++ compiler. | |
13889 | case $host in | |
13890 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
13891 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
13892 | esac | |
13893 | ;; | |
13894 | RCC*) | |
13895 | # Rational C++ 2.4.1 | |
13896 | # FIXME: insert proper C++ library support | |
13897 | ld_shlibs_CXX=no | |
13898 | ;; | |
13899 | cxx*) | |
13900 | case $host in | |
13901 | osf3*) | |
13902 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
ee134472 | 13903 | 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' |
47aaa820 DWT |
13904 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
13905 | ;; | |
13906 | *) | |
13907 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
ee134472 | 13908 | 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 DWT |
13909 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
13910 | echo "-hidden">> $lib.exp~ | |
ee134472 | 13911 | $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~ |
47aaa820 DWT |
13912 | $RM $lib.exp' |
13913 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13914 | ;; | |
13915 | esac | |
9c60689e | 13916 | |
47aaa820 | 13917 | hardcode_libdir_separator_CXX=: |
9c60689e | 13918 | |
47aaa820 DWT |
13919 | # Commands to make compiler produce verbose output that lists |
13920 | # what "hidden" libraries, object files and flags are used when | |
13921 | # linking a shared library. | |
13922 | # | |
13923 | # There doesn't appear to be a way to prevent this compiler from | |
13924 | # explicitly linking system object files so we need to strip them | |
13925 | # from the output so that they don't get included in the library | |
13926 | # dependencies. | |
ee134472 | 13927 | 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 |
13928 | ;; |
13929 | *) | |
13930 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13931 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13932 | case $host in | |
13933 | osf3*) | |
ee134472 | 13934 | 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 |
13935 | ;; |
13936 | *) | |
ee134472 | 13937 | 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 |
13938 | ;; |
13939 | esac | |
9c60689e | 13940 | |
47aaa820 DWT |
13941 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
13942 | hardcode_libdir_separator_CXX=: | |
9c60689e | 13943 | |
47aaa820 DWT |
13944 | # Commands to make compiler produce verbose output that lists |
13945 | # what "hidden" libraries, object files and flags are used when | |
13946 | # linking a shared library. | |
ee134472 | 13947 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
9c60689e | 13948 | |
47aaa820 DWT |
13949 | else |
13950 | # FIXME: insert proper C++ library support | |
13951 | ld_shlibs_CXX=no | |
13952 | fi | |
13953 | ;; | |
13954 | esac | |
13955 | ;; | |
9c60689e | 13956 | |
47aaa820 | 13957 | psos*) |
9c60689e DWT |
13958 | # FIXME: insert proper C++ library support |
13959 | ld_shlibs_CXX=no | |
13960 | ;; | |
9c60689e | 13961 | |
47aaa820 DWT |
13962 | sunos4*) |
13963 | case $cc_basename in | |
13964 | CC*) | |
13965 | # Sun C++ 4.x | |
13966 | # FIXME: insert proper C++ library support | |
13967 | ld_shlibs_CXX=no | |
9c60689e | 13968 | ;; |
47aaa820 DWT |
13969 | lcc*) |
13970 | # Lucid | |
13971 | # FIXME: insert proper C++ library support | |
13972 | ld_shlibs_CXX=no | |
13973 | ;; | |
13974 | *) | |
13975 | # FIXME: insert proper C++ library support | |
13976 | ld_shlibs_CXX=no | |
13977 | ;; | |
13978 | esac | |
13979 | ;; | |
9c60689e | 13980 | |
47aaa820 DWT |
13981 | solaris*) |
13982 | case $cc_basename in | |
ee134472 | 13983 | CC* | sunCC*) |
47aaa820 DWT |
13984 | # Sun C++ 4.2, 5.x and Centerline C++ |
13985 | archive_cmds_need_lc_CXX=yes | |
13986 | no_undefined_flag_CXX=' -zdefs' | |
13987 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13988 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13989 | $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 | 13990 | |
47aaa820 DWT |
13991 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
13992 | hardcode_shlibpath_var_CXX=no | |
13993 | case $host_os in | |
13994 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13995 | *) | |
13996 | # The compiler driver will combine and reorder linker options, | |
13997 | # but understands `-z linker_flag'. | |
13998 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
13999 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
14000 | ;; | |
14001 | esac | |
14002 | link_all_deplibs_CXX=yes | |
9c60689e | 14003 | |
ee134472 | 14004 | output_verbose_link_cmd='func_echo_all' |
9c60689e | 14005 | |
47aaa820 DWT |
14006 | # Archives containing C++ object files must be created using |
14007 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
14008 | # necessary to make sure instantiated templates are included | |
14009 | # in the archive. | |
14010 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
14011 | ;; | |
14012 | gcx*) | |
14013 | # Green Hills C++ Compiler | |
14014 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
9c60689e | 14015 | |
47aaa820 DWT |
14016 | # The C++ compiler must be used to create the archive. |
14017 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
14018 | ;; | |
14019 | *) | |
14020 | # GNU C++ compiler with Solaris linker | |
14021 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
14022 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
14023 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
ee134472 | 14024 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
47aaa820 | 14025 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
ee134472 | 14026 | $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
9c60689e | 14027 | |
47aaa820 DWT |
14028 | # Commands to make compiler produce verbose output that lists |
14029 | # what "hidden" libraries, object files and flags are used when | |
14030 | # linking a shared library. | |
ee134472 | 14031 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
47aaa820 DWT |
14032 | else |
14033 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
14034 | # platform. | |
14035 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
14036 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14037 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
9c60689e | 14038 | |
47aaa820 DWT |
14039 | # Commands to make compiler produce verbose output that lists |
14040 | # what "hidden" libraries, object files and flags are used when | |
14041 | # linking a shared library. | |
ee134472 | 14042 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
47aaa820 | 14043 | fi |
9c60689e | 14044 | |
47aaa820 DWT |
14045 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
14046 | case $host_os in | |
14047 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
14048 | *) | |
14049 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
14050 | ;; | |
14051 | esac | |
14052 | fi | |
14053 | ;; | |
14054 | esac | |
14055 | ;; | |
9c60689e | 14056 | |
47aaa820 DWT |
14057 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
14058 | no_undefined_flag_CXX='${wl}-z,text' | |
14059 | archive_cmds_need_lc_CXX=no | |
14060 | hardcode_shlibpath_var_CXX=no | |
14061 | runpath_var='LD_RUN_PATH' | |
9c60689e | 14062 | |
47aaa820 DWT |
14063 | case $cc_basename in |
14064 | CC*) | |
14065 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14066 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14067 | ;; | |
14068 | *) | |
14069 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14070 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14071 | ;; | |
14072 | esac | |
14073 | ;; | |
9c60689e | 14074 | |
47aaa820 DWT |
14075 | sysv5* | sco3.2v5* | sco5v6*) |
14076 | # Note: We can NOT use -z defs as we might desire, because we do not | |
14077 | # link with -lc, and that would cause any symbols used from libc to | |
14078 | # always be unresolved, which means just about no library would | |
14079 | # ever link correctly. If we're not using GNU ld we use -z text | |
14080 | # though, which does catch some bad symbols but isn't as heavy-handed | |
14081 | # as -z defs. | |
14082 | no_undefined_flag_CXX='${wl}-z,text' | |
14083 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
14084 | archive_cmds_need_lc_CXX=no | |
14085 | hardcode_shlibpath_var_CXX=no | |
14086 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | |
14087 | hardcode_libdir_separator_CXX=':' | |
14088 | link_all_deplibs_CXX=yes | |
14089 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
14090 | runpath_var='LD_RUN_PATH' | |
9c60689e | 14091 | |
47aaa820 DWT |
14092 | case $cc_basename in |
14093 | CC*) | |
14094 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14095 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
ee134472 JF |
14096 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ |
14097 | '"$old_archive_cmds_CXX" | |
14098 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ | |
14099 | '"$reload_cmds_CXX" | |
47aaa820 DWT |
14100 | ;; |
14101 | *) | |
14102 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14103 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14104 | ;; | |
14105 | esac | |
14106 | ;; | |
9c60689e | 14107 | |
47aaa820 | 14108 | tandem*) |
9c60689e | 14109 | case $cc_basename in |
47aaa820 DWT |
14110 | NCC*) |
14111 | # NonStop-UX NCC 3.20 | |
14112 | # FIXME: insert proper C++ library support | |
14113 | ld_shlibs_CXX=no | |
14114 | ;; | |
9c60689e | 14115 | *) |
47aaa820 DWT |
14116 | # FIXME: insert proper C++ library support |
14117 | ld_shlibs_CXX=no | |
14118 | ;; | |
9c60689e DWT |
14119 | esac |
14120 | ;; | |
14121 | ||
47aaa820 DWT |
14122 | vxworks*) |
14123 | # FIXME: insert proper C++ library support | |
14124 | ld_shlibs_CXX=no | |
14125 | ;; | |
9c60689e | 14126 | |
47aaa820 DWT |
14127 | *) |
14128 | # FIXME: insert proper C++ library support | |
14129 | ld_shlibs_CXX=no | |
9c60689e | 14130 | ;; |
47aaa820 | 14131 | esac |
9c60689e | 14132 | |
47aaa820 DWT |
14133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
14134 | $as_echo "$ld_shlibs_CXX" >&6; } | |
14135 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
9c60689e | 14136 | |
47aaa820 DWT |
14137 | GCC_CXX="$GXX" |
14138 | LD_CXX="$LD" | |
9c60689e | 14139 | |
47aaa820 DWT |
14140 | ## CAVEAT EMPTOR: |
14141 | ## There is no encapsulation within the following macros, do not change | |
14142 | ## the running order or otherwise move them around unless you know exactly | |
14143 | ## what you are doing... | |
14144 | # Dependencies to place before and after the object being linked: | |
14145 | predep_objects_CXX= | |
14146 | postdep_objects_CXX= | |
14147 | predeps_CXX= | |
14148 | postdeps_CXX= | |
14149 | compiler_lib_search_path_CXX= | |
9c60689e | 14150 | |
47aaa820 DWT |
14151 | cat > conftest.$ac_ext <<_LT_EOF |
14152 | class Foo | |
14153 | { | |
14154 | public: | |
14155 | Foo (void) { a = 0; } | |
14156 | private: | |
14157 | int a; | |
14158 | }; | |
14159 | _LT_EOF | |
9c60689e | 14160 | |
ee134472 JF |
14161 | |
14162 | _lt_libdeps_save_CFLAGS=$CFLAGS | |
14163 | case "$CC $CFLAGS " in #( | |
14164 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; | |
14165 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; | |
53ba6704 | 14166 | *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; |
ee134472 JF |
14167 | esac |
14168 | ||
47aaa820 DWT |
14169 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
14170 | (eval $ac_compile) 2>&5 | |
14171 | ac_status=$? | |
14172 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14173 | test $ac_status = 0; }; then | |
14174 | # Parse the compiler output and extract the necessary | |
14175 | # objects, libraries and library flags. | |
9c60689e | 14176 | |
47aaa820 DWT |
14177 | # Sentinel used to keep track of whether or not we are before |
14178 | # the conftest object file. | |
14179 | pre_test_object_deps_done=no | |
9c60689e | 14180 | |
47aaa820 | 14181 | for p in `eval "$output_verbose_link_cmd"`; do |
ee134472 | 14182 | case ${prev}${p} in |
9c60689e | 14183 | |
47aaa820 DWT |
14184 | -L* | -R* | -l*) |
14185 | # Some compilers place space between "-{L,R}" and the path. | |
14186 | # Remove the space. | |
14187 | if test $p = "-L" || | |
14188 | test $p = "-R"; then | |
14189 | prev=$p | |
14190 | continue | |
47aaa820 | 14191 | fi |
9c60689e | 14192 | |
ee134472 JF |
14193 | # Expand the sysroot to ease extracting the directories later. |
14194 | if test -z "$prev"; then | |
14195 | case $p in | |
14196 | -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; | |
14197 | -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; | |
14198 | -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; | |
14199 | esac | |
14200 | fi | |
14201 | case $p in | |
14202 | =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; | |
14203 | esac | |
47aaa820 | 14204 | if test "$pre_test_object_deps_done" = no; then |
ee134472 JF |
14205 | case ${prev} in |
14206 | -L | -R) | |
47aaa820 DWT |
14207 | # Internal compiler library paths should come after those |
14208 | # provided the user. The postdeps already come after the | |
14209 | # user supplied libs so there is no need to process them. | |
14210 | if test -z "$compiler_lib_search_path_CXX"; then | |
14211 | compiler_lib_search_path_CXX="${prev}${p}" | |
14212 | else | |
14213 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
14214 | fi | |
14215 | ;; | |
14216 | # The "-l" case would never come before the object being | |
14217 | # linked, so don't bother handling this case. | |
14218 | esac | |
14219 | else | |
14220 | if test -z "$postdeps_CXX"; then | |
14221 | postdeps_CXX="${prev}${p}" | |
14222 | else | |
14223 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
14224 | fi | |
14225 | fi | |
ee134472 | 14226 | prev= |
47aaa820 | 14227 | ;; |
9c60689e | 14228 | |
ee134472 | 14229 | *.lto.$objext) ;; # Ignore GCC LTO objects |
47aaa820 DWT |
14230 | *.$objext) |
14231 | # This assumes that the test object file only shows up | |
14232 | # once in the compiler output. | |
14233 | if test "$p" = "conftest.$objext"; then | |
14234 | pre_test_object_deps_done=yes | |
14235 | continue | |
14236 | fi | |
9c60689e | 14237 | |
47aaa820 DWT |
14238 | if test "$pre_test_object_deps_done" = no; then |
14239 | if test -z "$predep_objects_CXX"; then | |
14240 | predep_objects_CXX="$p" | |
14241 | else | |
14242 | predep_objects_CXX="$predep_objects_CXX $p" | |
14243 | fi | |
14244 | else | |
14245 | if test -z "$postdep_objects_CXX"; then | |
14246 | postdep_objects_CXX="$p" | |
14247 | else | |
14248 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
14249 | fi | |
14250 | fi | |
14251 | ;; | |
9c60689e | 14252 | |
47aaa820 | 14253 | *) ;; # Ignore the rest. |
9c60689e | 14254 | |
47aaa820 DWT |
14255 | esac |
14256 | done | |
9c60689e | 14257 | |
47aaa820 DWT |
14258 | # Clean up. |
14259 | rm -f a.out a.exe | |
14260 | else | |
14261 | echo "libtool.m4: error: problem compiling CXX test program" | |
14262 | fi | |
9c60689e | 14263 | |
47aaa820 | 14264 | $RM -f confest.$objext |
ee134472 | 14265 | CFLAGS=$_lt_libdeps_save_CFLAGS |
9c60689e | 14266 | |
47aaa820 DWT |
14267 | # PORTME: override above test on systems where it is broken |
14268 | case $host_os in | |
14269 | interix[3-9]*) | |
14270 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
14271 | # hack all around it, let's just trust "g++" to DTRT. | |
14272 | predep_objects_CXX= | |
14273 | postdep_objects_CXX= | |
14274 | postdeps_CXX= | |
14275 | ;; | |
9c60689e | 14276 | |
47aaa820 DWT |
14277 | linux*) |
14278 | case `$CC -V 2>&1 | sed 5q` in | |
14279 | *Sun\ C*) | |
14280 | # Sun C++ 5.9 | |
9c60689e | 14281 | |
47aaa820 DWT |
14282 | # The more standards-conforming stlport4 library is |
14283 | # incompatible with the Cstd library. Avoid specifying | |
14284 | # it if it's in CXXFLAGS. Ignore libCrun as | |
14285 | # -library=stlport4 depends on it. | |
14286 | case " $CXX $CXXFLAGS " in | |
14287 | *" -library=stlport4 "*) | |
14288 | solaris_use_stlport4=yes | |
14289 | ;; | |
14290 | esac | |
9c60689e | 14291 | |
47aaa820 DWT |
14292 | if test "$solaris_use_stlport4" != yes; then |
14293 | postdeps_CXX='-library=Cstd -library=Crun' | |
14294 | fi | |
14295 | ;; | |
14296 | esac | |
14297 | ;; | |
9c60689e | 14298 | |
47aaa820 DWT |
14299 | solaris*) |
14300 | case $cc_basename in | |
ee134472 | 14301 | CC* | sunCC*) |
47aaa820 DWT |
14302 | # The more standards-conforming stlport4 library is |
14303 | # incompatible with the Cstd library. Avoid specifying | |
14304 | # it if it's in CXXFLAGS. Ignore libCrun as | |
14305 | # -library=stlport4 depends on it. | |
14306 | case " $CXX $CXXFLAGS " in | |
14307 | *" -library=stlport4 "*) | |
14308 | solaris_use_stlport4=yes | |
14309 | ;; | |
14310 | esac | |
9c60689e | 14311 | |
47aaa820 DWT |
14312 | # Adding this requires a known-good setup of shared libraries for |
14313 | # Sun compiler versions before 5.6, else PIC objects from an old | |
14314 | # archive will be linked into the output, leading to subtle bugs. | |
14315 | if test "$solaris_use_stlport4" != yes; then | |
14316 | postdeps_CXX='-library=Cstd -library=Crun' | |
14317 | fi | |
14318 | ;; | |
14319 | esac | |
14320 | ;; | |
14321 | esac | |
9c60689e | 14322 | |
9c60689e | 14323 | |
47aaa820 DWT |
14324 | case " $postdeps_CXX " in |
14325 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
14326 | esac | |
14327 | compiler_lib_search_dirs_CXX= | |
14328 | if test -n "${compiler_lib_search_path_CXX}"; then | |
14329 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
14330 | fi | |
9c60689e | 14331 | |
9c60689e | 14332 | |
9c60689e | 14333 | |
9c60689e | 14334 | |
9c60689e | 14335 | |
9c60689e | 14336 | |
9c60689e | 14337 | |
9c60689e | 14338 | |
9c60689e | 14339 | |
9c60689e | 14340 | |
9c60689e | 14341 | |
9c60689e | 14342 | |
9c60689e | 14343 | |
9c60689e | 14344 | |
9c60689e | 14345 | |
9c60689e | 14346 | |
9c60689e | 14347 | |
9c60689e | 14348 | |
9c60689e | 14349 | |
9c60689e | 14350 | |
9c60689e | 14351 | |
9c60689e | 14352 | |
9c60689e | 14353 | |
9c60689e | 14354 | |
9c60689e | 14355 | |
9c60689e | 14356 | |
9c60689e | 14357 | |
9c60689e | 14358 | |
9c60689e | 14359 | |
9c60689e | 14360 | |
9c60689e | 14361 | |
47aaa820 DWT |
14362 | lt_prog_compiler_wl_CXX= |
14363 | lt_prog_compiler_pic_CXX= | |
14364 | lt_prog_compiler_static_CXX= | |
9c60689e | 14365 | |
9c60689e DWT |
14366 | |
14367 | # C++ specific cases for pic, static, wl, etc. | |
14368 | if test "$GXX" = yes; then | |
14369 | lt_prog_compiler_wl_CXX='-Wl,' | |
14370 | lt_prog_compiler_static_CXX='-static' | |
14371 | ||
14372 | case $host_os in | |
14373 | aix*) | |
14374 | # All AIX code is PIC. | |
14375 | if test "$host_cpu" = ia64; then | |
14376 | # AIX 5 now supports IA64 processor | |
14377 | lt_prog_compiler_static_CXX='-Bstatic' | |
14378 | fi | |
14379 | ;; | |
14380 | ||
14381 | amigaos*) | |
14382 | case $host_cpu in | |
14383 | powerpc) | |
14384 | # see comment about AmigaOS4 .so support | |
14385 | lt_prog_compiler_pic_CXX='-fPIC' | |
14386 | ;; | |
14387 | m68k) | |
14388 | # FIXME: we need at least 68020 code to build shared libraries, but | |
14389 | # adding the `-m68020' flag to GCC prevents building anything better, | |
14390 | # like `-m68040'. | |
14391 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
14392 | ;; | |
14393 | esac | |
14394 | ;; | |
14395 | ||
14396 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
14397 | # PIC is the default for these OSes. | |
14398 | ;; | |
14399 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
14400 | # This hack is so that the source file can tell whether it is being | |
14401 | # built for inclusion in a dll (and should export symbols for example). | |
14402 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
14403 | # (--disable-auto-import) libraries | |
14404 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
14405 | ;; | |
14406 | darwin* | rhapsody*) | |
14407 | # PIC is the default on this platform | |
14408 | # Common symbols not allowed in MH_DYLIB files | |
14409 | lt_prog_compiler_pic_CXX='-fno-common' | |
14410 | ;; | |
14411 | *djgpp*) | |
14412 | # DJGPP does not support shared libraries at all | |
14413 | lt_prog_compiler_pic_CXX= | |
14414 | ;; | |
ee134472 JF |
14415 | haiku*) |
14416 | # PIC is the default for Haiku. | |
14417 | # The "-static" flag exists, but is broken. | |
14418 | lt_prog_compiler_static_CXX= | |
14419 | ;; | |
9c60689e DWT |
14420 | interix[3-9]*) |
14421 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
14422 | # Instead, we relocate shared libraries at runtime. | |
14423 | ;; | |
14424 | sysv4*MP*) | |
14425 | if test -d /usr/nec; then | |
14426 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
14427 | fi | |
14428 | ;; | |
14429 | hpux*) | |
14430 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
14431 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
14432 | # sets the default TLS model and affects inlining. | |
14433 | case $host_cpu in | |
14434 | hppa*64*) | |
14435 | ;; | |
14436 | *) | |
14437 | lt_prog_compiler_pic_CXX='-fPIC' | |
14438 | ;; | |
14439 | esac | |
14440 | ;; | |
14441 | *qnx* | *nto*) | |
14442 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
14443 | # it will coredump. | |
14444 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
14445 | ;; | |
14446 | *) | |
14447 | lt_prog_compiler_pic_CXX='-fPIC' | |
14448 | ;; | |
14449 | esac | |
14450 | else | |
14451 | case $host_os in | |
14452 | aix[4-9]*) | |
14453 | # All AIX code is PIC. | |
14454 | if test "$host_cpu" = ia64; then | |
14455 | # AIX 5 now supports IA64 processor | |
14456 | lt_prog_compiler_static_CXX='-Bstatic' | |
14457 | else | |
14458 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
14459 | fi | |
14460 | ;; | |
14461 | chorus*) | |
14462 | case $cc_basename in | |
14463 | cxch68*) | |
14464 | # Green Hills C++ Compiler | |
14465 | # _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" | |
14466 | ;; | |
14467 | esac | |
14468 | ;; | |
ee134472 JF |
14469 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
14470 | # This hack is so that the source file can tell whether it is being | |
14471 | # built for inclusion in a dll (and should export symbols for example). | |
14472 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
14473 | ;; | |
9c60689e DWT |
14474 | dgux*) |
14475 | case $cc_basename in | |
14476 | ec++*) | |
14477 | lt_prog_compiler_pic_CXX='-KPIC' | |
14478 | ;; | |
14479 | ghcx*) | |
14480 | # Green Hills C++ Compiler | |
14481 | lt_prog_compiler_pic_CXX='-pic' | |
14482 | ;; | |
14483 | *) | |
14484 | ;; | |
14485 | esac | |
14486 | ;; | |
14487 | freebsd* | dragonfly*) | |
14488 | # FreeBSD uses GNU C++ | |
14489 | ;; | |
14490 | hpux9* | hpux10* | hpux11*) | |
14491 | case $cc_basename in | |
14492 | CC*) | |
14493 | lt_prog_compiler_wl_CXX='-Wl,' | |
14494 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
14495 | if test "$host_cpu" != ia64; then | |
14496 | lt_prog_compiler_pic_CXX='+Z' | |
14497 | fi | |
14498 | ;; | |
14499 | aCC*) | |
14500 | lt_prog_compiler_wl_CXX='-Wl,' | |
14501 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
14502 | case $host_cpu in | |
14503 | hppa*64*|ia64*) | |
14504 | # +Z the default | |
14505 | ;; | |
14506 | *) | |
14507 | lt_prog_compiler_pic_CXX='+Z' | |
14508 | ;; | |
14509 | esac | |
14510 | ;; | |
14511 | *) | |
14512 | ;; | |
14513 | esac | |
14514 | ;; | |
14515 | interix*) | |
14516 | # This is c89, which is MS Visual C++ (no shared libs) | |
14517 | # Anyone wants to do a port? | |
14518 | ;; | |
14519 | irix5* | irix6* | nonstopux*) | |
14520 | case $cc_basename in | |
14521 | CC*) | |
14522 | lt_prog_compiler_wl_CXX='-Wl,' | |
14523 | lt_prog_compiler_static_CXX='-non_shared' | |
14524 | # CC pic flag -KPIC is the default. | |
14525 | ;; | |
14526 | *) | |
14527 | ;; | |
14528 | esac | |
14529 | ;; | |
1504c9b8 | 14530 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
9c60689e DWT |
14531 | case $cc_basename in |
14532 | KCC*) | |
14533 | # KAI C++ Compiler | |
14534 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
14535 | lt_prog_compiler_pic_CXX='-fPIC' | |
14536 | ;; | |
14537 | ecpc* ) | |
14538 | # old Intel C++ for x86_64 which still supported -KPIC. | |
14539 | lt_prog_compiler_wl_CXX='-Wl,' | |
14540 | lt_prog_compiler_pic_CXX='-KPIC' | |
14541 | lt_prog_compiler_static_CXX='-static' | |
14542 | ;; | |
14543 | icpc* ) | |
14544 | # Intel C++, used to be incompatible with GCC. | |
14545 | # ICC 10 doesn't accept -KPIC any more. | |
14546 | lt_prog_compiler_wl_CXX='-Wl,' | |
14547 | lt_prog_compiler_pic_CXX='-fPIC' | |
14548 | lt_prog_compiler_static_CXX='-static' | |
14549 | ;; | |
14550 | pgCC* | pgcpp*) | |
14551 | # Portland Group C++ compiler | |
14552 | lt_prog_compiler_wl_CXX='-Wl,' | |
14553 | lt_prog_compiler_pic_CXX='-fpic' | |
14554 | lt_prog_compiler_static_CXX='-Bstatic' | |
14555 | ;; | |
14556 | cxx*) | |
14557 | # Compaq C++ | |
14558 | # Make sure the PIC flag is empty. It appears that all Alpha | |
14559 | # Linux and Compaq Tru64 Unix objects are PIC. | |
14560 | lt_prog_compiler_pic_CXX= | |
14561 | lt_prog_compiler_static_CXX='-non_shared' | |
14562 | ;; | |
ee134472 JF |
14563 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) |
14564 | # IBM XL 8.0, 9.0 on PPC and BlueGene | |
9c60689e DWT |
14565 | lt_prog_compiler_wl_CXX='-Wl,' |
14566 | lt_prog_compiler_pic_CXX='-qpic' | |
14567 | lt_prog_compiler_static_CXX='-qstaticlink' | |
14568 | ;; | |
14569 | *) | |
14570 | case `$CC -V 2>&1 | sed 5q` in | |
14571 | *Sun\ C*) | |
14572 | # Sun C++ 5.9 | |
14573 | lt_prog_compiler_pic_CXX='-KPIC' | |
14574 | lt_prog_compiler_static_CXX='-Bstatic' | |
14575 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
14576 | ;; | |
14577 | esac | |
14578 | ;; | |
14579 | esac | |
14580 | ;; | |
14581 | lynxos*) | |
14582 | ;; | |
14583 | m88k*) | |
14584 | ;; | |
14585 | mvs*) | |
14586 | case $cc_basename in | |
14587 | cxx*) | |
14588 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
14589 | ;; | |
14590 | *) | |
14591 | ;; | |
14592 | esac | |
14593 | ;; | |
53ba6704 | 14594 | netbsd*) |
9c60689e DWT |
14595 | ;; |
14596 | *qnx* | *nto*) | |
14597 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
14598 | # it will coredump. | |
14599 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
14600 | ;; | |
14601 | osf3* | osf4* | osf5*) | |
14602 | case $cc_basename in | |
14603 | KCC*) | |
14604 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
14605 | ;; | |
14606 | RCC*) | |
14607 | # Rational C++ 2.4.1 | |
14608 | lt_prog_compiler_pic_CXX='-pic' | |
14609 | ;; | |
14610 | cxx*) | |
14611 | # Digital/Compaq C++ | |
14612 | lt_prog_compiler_wl_CXX='-Wl,' | |
14613 | # Make sure the PIC flag is empty. It appears that all Alpha | |
14614 | # Linux and Compaq Tru64 Unix objects are PIC. | |
14615 | lt_prog_compiler_pic_CXX= | |
14616 | lt_prog_compiler_static_CXX='-non_shared' | |
14617 | ;; | |
14618 | *) | |
14619 | ;; | |
14620 | esac | |
14621 | ;; | |
14622 | psos*) | |
14623 | ;; | |
14624 | solaris*) | |
14625 | case $cc_basename in | |
ee134472 | 14626 | CC* | sunCC*) |
9c60689e DWT |
14627 | # Sun C++ 4.2, 5.x and Centerline C++ |
14628 | lt_prog_compiler_pic_CXX='-KPIC' | |
14629 | lt_prog_compiler_static_CXX='-Bstatic' | |
14630 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
14631 | ;; | |
14632 | gcx*) | |
14633 | # Green Hills C++ Compiler | |
14634 | lt_prog_compiler_pic_CXX='-PIC' | |
14635 | ;; | |
14636 | *) | |
14637 | ;; | |
14638 | esac | |
14639 | ;; | |
14640 | sunos4*) | |
14641 | case $cc_basename in | |
14642 | CC*) | |
14643 | # Sun C++ 4.x | |
14644 | lt_prog_compiler_pic_CXX='-pic' | |
14645 | lt_prog_compiler_static_CXX='-Bstatic' | |
14646 | ;; | |
14647 | lcc*) | |
14648 | # Lucid | |
14649 | lt_prog_compiler_pic_CXX='-pic' | |
14650 | ;; | |
14651 | *) | |
14652 | ;; | |
14653 | esac | |
14654 | ;; | |
14655 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
14656 | case $cc_basename in | |
14657 | CC*) | |
14658 | lt_prog_compiler_wl_CXX='-Wl,' | |
14659 | lt_prog_compiler_pic_CXX='-KPIC' | |
14660 | lt_prog_compiler_static_CXX='-Bstatic' | |
14661 | ;; | |
14662 | esac | |
14663 | ;; | |
14664 | tandem*) | |
14665 | case $cc_basename in | |
14666 | NCC*) | |
14667 | # NonStop-UX NCC 3.20 | |
14668 | lt_prog_compiler_pic_CXX='-KPIC' | |
14669 | ;; | |
14670 | *) | |
14671 | ;; | |
14672 | esac | |
14673 | ;; | |
14674 | vxworks*) | |
14675 | ;; | |
14676 | *) | |
14677 | lt_prog_compiler_can_build_shared_CXX=no | |
14678 | ;; | |
14679 | esac | |
14680 | fi | |
14681 | ||
14682 | case $host_os in | |
14683 | # For platforms which do not support PIC, -DPIC is meaningless: | |
14684 | *djgpp*) | |
14685 | lt_prog_compiler_pic_CXX= | |
14686 | ;; | |
14687 | *) | |
14688 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
14689 | ;; | |
14690 | esac | |
9c60689e | 14691 | |
ee134472 JF |
14692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
14693 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
14694 | if ${lt_cv_prog_compiler_pic_CXX+:} false; then : | |
14695 | $as_echo_n "(cached) " >&6 | |
14696 | else | |
14697 | lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX | |
14698 | fi | |
14699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 | |
14700 | $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } | |
14701 | lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX | |
9c60689e DWT |
14702 | |
14703 | # | |
14704 | # Check to make sure the PIC flag actually works. | |
14705 | # | |
14706 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
14707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
14708 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
ee134472 | 14709 | if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : |
9c60689e DWT |
14710 | $as_echo_n "(cached) " >&6 |
14711 | else | |
14712 | lt_cv_prog_compiler_pic_works_CXX=no | |
14713 | ac_outfile=conftest.$ac_objext | |
14714 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14715 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
14716 | # Insert the option either (1) after the last *FLAGS variable, or | |
14717 | # (2) before a word containing "conftest.", or (3) at the end. | |
14718 | # Note that $ac_compile itself does not contain backslashes and begins | |
14719 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14720 | # The option is referenced via a variable to avoid confusing sed. | |
14721 | lt_compile=`echo "$ac_compile" | $SED \ | |
14722 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14723 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14724 | -e 's:$: $lt_compiler_flag:'` | |
ee134472 | 14725 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
9c60689e DWT |
14726 | (eval "$lt_compile" 2>conftest.err) |
14727 | ac_status=$? | |
14728 | cat conftest.err >&5 | |
ee134472 | 14729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9c60689e DWT |
14730 | if (exit $ac_status) && test -s "$ac_outfile"; then |
14731 | # The compiler can only warn and ignore the option if not recognized | |
14732 | # So say no if there are warnings other than the usual output. | |
ee134472 | 14733 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
9c60689e DWT |
14734 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14735 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
14736 | lt_cv_prog_compiler_pic_works_CXX=yes | |
14737 | fi | |
14738 | fi | |
a93f15c0 | 14739 | $RM conftest* |
9c60689e DWT |
14740 | |
14741 | fi | |
14742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
14743 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
14744 | ||
14745 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | |
14746 | case $lt_prog_compiler_pic_CXX in | |
14747 | "" | " "*) ;; | |
14748 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
14749 | esac | |
14750 | else | |
14751 | lt_prog_compiler_pic_CXX= | |
14752 | lt_prog_compiler_can_build_shared_CXX=no | |
14753 | fi | |
14754 | ||
14755 | fi | |
14756 | ||
14757 | ||
14758 | ||
ee134472 JF |
14759 | |
14760 | ||
47aaa820 DWT |
14761 | # |
14762 | # Check to make sure the static flag actually works. | |
14763 | # | |
14764 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
14765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
14766 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
ee134472 | 14767 | if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : |
47aaa820 DWT |
14768 | $as_echo_n "(cached) " >&6 |
14769 | else | |
14770 | lt_cv_prog_compiler_static_works_CXX=no | |
14771 | save_LDFLAGS="$LDFLAGS" | |
14772 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
14773 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
14774 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
14775 | # The linker can only warn and ignore the option if not recognized | |
14776 | # So say no if there are warnings | |
14777 | if test -s conftest.err; then | |
14778 | # Append any errors to the config.log. | |
14779 | cat conftest.err 1>&5 | |
ee134472 | 14780 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
47aaa820 DWT |
14781 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14782 | if diff conftest.exp conftest.er2 >/dev/null; then | |
14783 | lt_cv_prog_compiler_static_works_CXX=yes | |
14784 | fi | |
14785 | else | |
14786 | lt_cv_prog_compiler_static_works_CXX=yes | |
14787 | fi | |
14788 | fi | |
14789 | $RM -r conftest* | |
14790 | LDFLAGS="$save_LDFLAGS" | |
14791 | ||
14792 | fi | |
14793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
14794 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
14795 | ||
14796 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | |
14797 | : | |
14798 | else | |
14799 | lt_prog_compiler_static_CXX= | |
14800 | fi | |
14801 | ||
14802 | ||
14803 | ||
14804 | ||
14805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14806 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
ee134472 | 14807 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
47aaa820 DWT |
14808 | $as_echo_n "(cached) " >&6 |
14809 | else | |
14810 | lt_cv_prog_compiler_c_o_CXX=no | |
14811 | $RM -r conftest 2>/dev/null | |
14812 | mkdir conftest | |
14813 | cd conftest | |
14814 | mkdir out | |
14815 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14816 | ||
14817 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14818 | # Insert the option either (1) after the last *FLAGS variable, or | |
14819 | # (2) before a word containing "conftest.", or (3) at the end. | |
14820 | # Note that $ac_compile itself does not contain backslashes and begins | |
14821 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14822 | lt_compile=`echo "$ac_compile" | $SED \ | |
14823 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14824 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14825 | -e 's:$: $lt_compiler_flag:'` | |
ee134472 | 14826 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
47aaa820 DWT |
14827 | (eval "$lt_compile" 2>out/conftest.err) |
14828 | ac_status=$? | |
14829 | cat out/conftest.err >&5 | |
ee134472 | 14830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47aaa820 DWT |
14831 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14832 | then | |
14833 | # The compiler can only warn and ignore the option if not recognized | |
14834 | # So say no if there are warnings | |
ee134472 | 14835 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
47aaa820 DWT |
14836 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14837 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14838 | lt_cv_prog_compiler_c_o_CXX=yes | |
14839 | fi | |
14840 | fi | |
14841 | chmod u+w . 2>&5 | |
a93f15c0 | 14842 | $RM conftest* |
47aaa820 DWT |
14843 | # SGI C++ compiler will create directory out/ii_files/ for |
14844 | # template instantiation | |
14845 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14846 | $RM out/* && rmdir out | |
14847 | cd .. | |
14848 | $RM -r conftest | |
a93f15c0 | 14849 | $RM conftest* |
47aaa820 DWT |
14850 | |
14851 | fi | |
14852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
14853 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
14854 | ||
14855 | ||
14856 | ||
14857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14858 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
ee134472 | 14859 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
47aaa820 DWT |
14860 | $as_echo_n "(cached) " >&6 |
14861 | else | |
14862 | lt_cv_prog_compiler_c_o_CXX=no | |
14863 | $RM -r conftest 2>/dev/null | |
14864 | mkdir conftest | |
14865 | cd conftest | |
14866 | mkdir out | |
14867 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14868 | ||
14869 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14870 | # Insert the option either (1) after the last *FLAGS variable, or | |
14871 | # (2) before a word containing "conftest.", or (3) at the end. | |
14872 | # Note that $ac_compile itself does not contain backslashes and begins | |
14873 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14874 | lt_compile=`echo "$ac_compile" | $SED \ | |
14875 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14876 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14877 | -e 's:$: $lt_compiler_flag:'` | |
ee134472 | 14878 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
47aaa820 DWT |
14879 | (eval "$lt_compile" 2>out/conftest.err) |
14880 | ac_status=$? | |
14881 | cat out/conftest.err >&5 | |
ee134472 | 14882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47aaa820 DWT |
14883 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14884 | then | |
14885 | # The compiler can only warn and ignore the option if not recognized | |
14886 | # So say no if there are warnings | |
ee134472 | 14887 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
47aaa820 DWT |
14888 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14889 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14890 | lt_cv_prog_compiler_c_o_CXX=yes | |
14891 | fi | |
14892 | fi | |
14893 | chmod u+w . 2>&5 | |
a93f15c0 | 14894 | $RM conftest* |
47aaa820 DWT |
14895 | # SGI C++ compiler will create directory out/ii_files/ for |
14896 | # template instantiation | |
14897 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14898 | $RM out/* && rmdir out | |
14899 | cd .. | |
14900 | $RM -r conftest | |
a93f15c0 | 14901 | $RM conftest* |
47aaa820 DWT |
14902 | |
14903 | fi | |
14904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
14905 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
14906 | ||
14907 | ||
14908 | ||
14909 | ||
14910 | hard_links="nottested" | |
14911 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
14912 | # do not overwrite the value of need_locks provided by the user | |
14913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
14914 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
14915 | hard_links=yes | |
a93f15c0 | 14916 | $RM conftest* |
47aaa820 DWT |
14917 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
14918 | touch conftest.a | |
14919 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
14920 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
14922 | $as_echo "$hard_links" >&6; } | |
14923 | if test "$hard_links" = no; then | |
14924 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
14925 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
14926 | need_locks=warn | |
14927 | fi | |
14928 | else | |
14929 | need_locks=no | |
14930 | fi | |
14931 | ||
14932 | ||
14933 | ||
14934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
14935 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
14936 | ||
14937 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
ee134472 | 14938 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
47aaa820 DWT |
14939 | case $host_os in |
14940 | aix[4-9]*) | |
14941 | # If we're using GNU nm, then we don't want the "-C" option. | |
14942 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
ee134472 JF |
14943 | # Also, AIX nm treats weak defined symbols like other global defined |
14944 | # symbols, whereas GNU nm marks them as "W". | |
47aaa820 | 14945 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
ee134472 | 14946 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
47aaa820 DWT |
14947 | else |
14948 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
14949 | fi | |
14950 | ;; | |
14951 | pw32*) | |
14952 | export_symbols_cmds_CXX="$ltdll_cmds" | |
ee134472 | 14953 | ;; |
47aaa820 | 14954 | cygwin* | mingw* | cegcc*) |
ee134472 | 14955 | case $cc_basename in |
53ba6704 JF |
14956 | cl*) |
14957 | exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
14958 | ;; | |
ee134472 JF |
14959 | *) |
14960 | 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' | |
14961 | exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
14962 | ;; | |
14963 | esac | |
14964 | ;; | |
47aaa820 DWT |
14965 | *) |
14966 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
ee134472 | 14967 | ;; |
47aaa820 | 14968 | esac |
47aaa820 DWT |
14969 | |
14970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
14971 | $as_echo "$ld_shlibs_CXX" >&6; } | |
14972 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
14973 | ||
14974 | with_gnu_ld_CXX=$with_gnu_ld | |
14975 | ||
14976 | ||
14977 | ||
14978 | ||
14979 | ||
14980 | ||
14981 | # | |
14982 | # Do we need to explicitly link libc? | |
14983 | # | |
14984 | case "x$archive_cmds_need_lc_CXX" in | |
14985 | x|xyes) | |
14986 | # Assume -lc should be added | |
14987 | archive_cmds_need_lc_CXX=yes | |
14988 | ||
14989 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
14990 | case $archive_cmds_CXX in | |
14991 | *'~'*) | |
14992 | # FIXME: we may have to deal with multi-command sequences. | |
14993 | ;; | |
14994 | '$CC '*) | |
14995 | # Test whether the compiler implicitly links with -lc since on some | |
14996 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
14997 | # to ld, don't add -lc before -lgcc. | |
14998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
14999 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
ee134472 JF |
15000 | if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : |
15001 | $as_echo_n "(cached) " >&6 | |
15002 | else | |
a93f15c0 | 15003 | $RM conftest* |
ee134472 | 15004 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
47aaa820 | 15005 | |
ee134472 | 15006 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
47aaa820 DWT |
15007 | (eval $ac_compile) 2>&5 |
15008 | ac_status=$? | |
15009 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15010 | test $ac_status = 0; } 2>conftest.err; then | |
ee134472 JF |
15011 | soname=conftest |
15012 | lib=conftest | |
15013 | libobjs=conftest.$ac_objext | |
15014 | deplibs= | |
15015 | wl=$lt_prog_compiler_wl_CXX | |
15016 | pic_flag=$lt_prog_compiler_pic_CXX | |
15017 | compiler_flags=-v | |
15018 | linker_flags=-v | |
15019 | verstring= | |
15020 | output_objdir=. | |
15021 | libname=conftest | |
15022 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
15023 | allow_undefined_flag_CXX= | |
15024 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
47aaa820 DWT |
15025 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
15026 | ac_status=$? | |
15027 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15028 | test $ac_status = 0; } | |
ee134472 JF |
15029 | then |
15030 | lt_cv_archive_cmds_need_lc_CXX=no | |
15031 | else | |
15032 | lt_cv_archive_cmds_need_lc_CXX=yes | |
15033 | fi | |
15034 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
15035 | else | |
15036 | cat conftest.err 1>&5 | |
15037 | fi | |
a93f15c0 | 15038 | $RM conftest* |
ee134472 JF |
15039 | |
15040 | fi | |
15041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 | |
15042 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } | |
15043 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX | |
47aaa820 DWT |
15044 | ;; |
15045 | esac | |
15046 | fi | |
15047 | ;; | |
15048 | esac | |
15049 | ||
15050 | ||
15051 | ||
15052 | ||
15053 | ||
15054 | ||
15055 | ||
15056 | ||
15057 | ||
15058 | ||
15059 | ||
15060 | ||
15061 | ||
15062 | ||
15063 | ||
15064 | ||
15065 | ||
15066 | ||
15067 | ||
15068 | ||
15069 | ||
15070 | ||
15071 | ||
15072 | ||
15073 | ||
15074 | ||
15075 | ||
15076 | ||
15077 | ||
15078 | ||
15079 | ||
15080 | ||
15081 | ||
15082 | ||
15083 | ||
15084 | ||
15085 | ||
15086 | ||
15087 | ||
15088 | ||
15089 | ||
15090 | ||
15091 | ||
15092 | ||
15093 | ||
15094 | ||
15095 | ||
15096 | ||
15097 | ||
15098 | ||
15099 | ||
15100 | ||
15101 | ||
15102 | ||
15103 | ||
15104 | ||
15105 | ||
15106 | ||
15107 | ||
47aaa820 DWT |
15108 | |
15109 | ||
15110 | ||
15111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
15112 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
15113 | ||
15114 | library_names_spec= | |
15115 | libname_spec='lib$name' | |
15116 | soname_spec= | |
15117 | shrext_cmds=".so" | |
15118 | postinstall_cmds= | |
15119 | postuninstall_cmds= | |
15120 | finish_cmds= | |
15121 | finish_eval= | |
15122 | shlibpath_var= | |
15123 | shlibpath_overrides_runpath=unknown | |
15124 | version_type=none | |
15125 | dynamic_linker="$host_os ld.so" | |
15126 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
15127 | need_lib_prefix=unknown | |
15128 | hardcode_into_libs=no | |
15129 | ||
15130 | # when you set need_version to no, make sure it does not cause -set_version | |
15131 | # flags to be left without arguments | |
15132 | need_version=unknown | |
15133 | ||
15134 | case $host_os in | |
15135 | aix3*) | |
53ba6704 | 15136 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15137 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
15138 | shlibpath_var=LIBPATH | |
15139 | ||
15140 | # AIX 3 has no versioning support, so we append a major version to the name. | |
15141 | soname_spec='${libname}${release}${shared_ext}$major' | |
15142 | ;; | |
15143 | ||
15144 | aix[4-9]*) | |
53ba6704 | 15145 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15146 | need_lib_prefix=no |
15147 | need_version=no | |
15148 | hardcode_into_libs=yes | |
15149 | if test "$host_cpu" = ia64; then | |
15150 | # AIX 5 supports IA64 | |
15151 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
15152 | shlibpath_var=LD_LIBRARY_PATH | |
15153 | else | |
15154 | # With GCC up to 2.95.x, collect2 would create an import file | |
15155 | # for dependence libraries. The import file would start with | |
15156 | # the line `#! .'. This would cause the generated library to | |
15157 | # depend on `.', always an invalid library. This was fixed in | |
15158 | # development snapshots of GCC prior to 3.0. | |
15159 | case $host_os in | |
15160 | aix4 | aix4.[01] | aix4.[01].*) | |
15161 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
15162 | echo ' yes ' | |
15163 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
15164 | : | |
15165 | else | |
15166 | can_build_shared=no | |
15167 | fi | |
15168 | ;; | |
15169 | esac | |
15170 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
15171 | # soname into executable. Probably we can add versioning support to | |
15172 | # collect2, so additional links can be useful in future. | |
15173 | if test "$aix_use_runtimelinking" = yes; then | |
15174 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
15175 | # instead of lib<name>.a to let people know that these are not | |
15176 | # typical AIX shared libraries. | |
15177 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15178 | else | |
15179 | # We preserve .a as extension for shared libraries through AIX4.2 | |
15180 | # and later when we are not doing run time linking. | |
15181 | library_names_spec='${libname}${release}.a $libname.a' | |
15182 | soname_spec='${libname}${release}${shared_ext}$major' | |
15183 | fi | |
15184 | shlibpath_var=LIBPATH | |
15185 | fi | |
15186 | ;; | |
15187 | ||
15188 | amigaos*) | |
15189 | case $host_cpu in | |
15190 | powerpc) | |
15191 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
15192 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
15193 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15194 | ;; | |
15195 | m68k) | |
15196 | library_names_spec='$libname.ixlibrary $libname.a' | |
15197 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
ee134472 | 15198 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
47aaa820 DWT |
15199 | ;; |
15200 | esac | |
15201 | ;; | |
15202 | ||
15203 | beos*) | |
15204 | library_names_spec='${libname}${shared_ext}' | |
15205 | dynamic_linker="$host_os ld.so" | |
15206 | shlibpath_var=LIBRARY_PATH | |
15207 | ;; | |
15208 | ||
15209 | bsdi[45]*) | |
53ba6704 | 15210 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15211 | need_version=no |
15212 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15213 | soname_spec='${libname}${release}${shared_ext}$major' | |
15214 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
15215 | shlibpath_var=LD_LIBRARY_PATH | |
15216 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
15217 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
15218 | # the default ld.so.conf also contains /usr/contrib/lib and | |
15219 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
15220 | # libtool to hard-code these into programs | |
15221 | ;; | |
9c60689e | 15222 | |
47aaa820 DWT |
15223 | cygwin* | mingw* | pw32* | cegcc*) |
15224 | version_type=windows | |
15225 | shrext_cmds=".dll" | |
15226 | need_version=no | |
15227 | need_lib_prefix=no | |
9c60689e | 15228 | |
ee134472 JF |
15229 | case $GCC,$cc_basename in |
15230 | yes,*) | |
15231 | # gcc | |
47aaa820 DWT |
15232 | library_names_spec='$libname.dll.a' |
15233 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
15234 | postinstall_cmds='base_file=`basename \${file}`~ | |
15235 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
15236 | dldir=$destdir/`dirname \$dlpath`~ | |
15237 | test -d \$dldir || mkdir -p \$dldir~ | |
15238 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
15239 | chmod a+x \$dldir/$dlname~ | |
15240 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
15241 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
15242 | fi' | |
15243 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
15244 | dlpath=$dir/\$dldll~ | |
15245 | $RM \$dlpath' | |
15246 | shlibpath_overrides_runpath=yes | |
9c60689e | 15247 | |
47aaa820 DWT |
15248 | case $host_os in |
15249 | cygwin*) | |
15250 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
15251 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
ee134472 | 15252 | |
47aaa820 DWT |
15253 | ;; |
15254 | mingw* | cegcc*) | |
15255 | # MinGW DLLs use traditional 'lib' prefix | |
15256 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
47aaa820 DWT |
15257 | ;; |
15258 | pw32*) | |
15259 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
15260 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
15261 | ;; | |
15262 | esac | |
ee134472 JF |
15263 | dynamic_linker='Win32 ld.exe' |
15264 | ;; | |
15265 | ||
15266 | *,cl*) | |
15267 | # Native MSVC | |
15268 | libname_spec='$name' | |
15269 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
15270 | library_names_spec='${libname}.dll.lib' | |
15271 | ||
15272 | case $build_os in | |
15273 | mingw*) | |
15274 | sys_lib_search_path_spec= | |
15275 | lt_save_ifs=$IFS | |
15276 | IFS=';' | |
15277 | for lt_path in $LIB | |
15278 | do | |
15279 | IFS=$lt_save_ifs | |
15280 | # Let DOS variable expansion print the short 8.3 style file name. | |
15281 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
15282 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
15283 | done | |
15284 | IFS=$lt_save_ifs | |
15285 | # Convert to MSYS style. | |
15286 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
15287 | ;; | |
15288 | cygwin*) | |
15289 | # Convert to unix form, then to dos form, then back to unix form | |
15290 | # but this time dos style (no spaces!) so that the unix form looks | |
15291 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
15292 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
15293 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
15294 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
15295 | ;; | |
15296 | *) | |
15297 | sys_lib_search_path_spec="$LIB" | |
15298 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
15299 | # It is most probably a Windows format PATH. | |
15300 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
15301 | else | |
15302 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
15303 | fi | |
15304 | # FIXME: find the short name or the path components, as spaces are | |
15305 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
15306 | ;; | |
15307 | esac | |
15308 | ||
15309 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
15310 | postinstall_cmds='base_file=`basename \${file}`~ | |
15311 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
15312 | dldir=$destdir/`dirname \$dlpath`~ | |
15313 | test -d \$dldir || mkdir -p \$dldir~ | |
15314 | $install_prog $dir/$dlname \$dldir/$dlname' | |
15315 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
15316 | dlpath=$dir/\$dldll~ | |
15317 | $RM \$dlpath' | |
15318 | shlibpath_overrides_runpath=yes | |
15319 | dynamic_linker='Win32 link.exe' | |
47aaa820 | 15320 | ;; |
9c60689e | 15321 | |
47aaa820 | 15322 | *) |
ee134472 | 15323 | # Assume MSVC wrapper |
47aaa820 | 15324 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
ee134472 | 15325 | dynamic_linker='Win32 ld.exe' |
47aaa820 DWT |
15326 | ;; |
15327 | esac | |
47aaa820 DWT |
15328 | # FIXME: first we should search . and the directory the executable is in |
15329 | shlibpath_var=PATH | |
15330 | ;; | |
9c60689e | 15331 | |
47aaa820 DWT |
15332 | darwin* | rhapsody*) |
15333 | dynamic_linker="$host_os dyld" | |
15334 | version_type=darwin | |
15335 | need_lib_prefix=no | |
15336 | need_version=no | |
15337 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
15338 | soname_spec='${libname}${release}${major}$shared_ext' | |
15339 | shlibpath_overrides_runpath=yes | |
15340 | shlibpath_var=DYLD_LIBRARY_PATH | |
15341 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9c60689e | 15342 | |
47aaa820 DWT |
15343 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
15344 | ;; | |
9c60689e | 15345 | |
47aaa820 | 15346 | dgux*) |
53ba6704 | 15347 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15348 | need_lib_prefix=no |
15349 | need_version=no | |
15350 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
15351 | soname_spec='${libname}${release}${shared_ext}$major' | |
15352 | shlibpath_var=LD_LIBRARY_PATH | |
15353 | ;; | |
9c60689e | 15354 | |
47aaa820 DWT |
15355 | freebsd* | dragonfly*) |
15356 | # DragonFly does not have aout. When/if they implement a new | |
15357 | # versioning mechanism, adjust this. | |
15358 | if test -x /usr/bin/objformat; then | |
15359 | objformat=`/usr/bin/objformat` | |
15360 | else | |
15361 | case $host_os in | |
53ba6704 | 15362 | freebsd[23].*) objformat=aout ;; |
47aaa820 DWT |
15363 | *) objformat=elf ;; |
15364 | esac | |
15365 | fi | |
15366 | version_type=freebsd-$objformat | |
15367 | case $version_type in | |
15368 | freebsd-elf*) | |
15369 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15370 | need_version=no | |
15371 | need_lib_prefix=no | |
15372 | ;; | |
15373 | freebsd-*) | |
15374 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
15375 | need_version=yes | |
15376 | ;; | |
15377 | esac | |
15378 | shlibpath_var=LD_LIBRARY_PATH | |
15379 | case $host_os in | |
53ba6704 | 15380 | freebsd2.*) |
47aaa820 DWT |
15381 | shlibpath_overrides_runpath=yes |
15382 | ;; | |
15383 | freebsd3.[01]* | freebsdelf3.[01]*) | |
15384 | shlibpath_overrides_runpath=yes | |
15385 | hardcode_into_libs=yes | |
15386 | ;; | |
15387 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
15388 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
15389 | shlibpath_overrides_runpath=no | |
15390 | hardcode_into_libs=yes | |
15391 | ;; | |
15392 | *) # from 4.6 on, and DragonFly | |
15393 | shlibpath_overrides_runpath=yes | |
15394 | hardcode_into_libs=yes | |
15395 | ;; | |
15396 | esac | |
15397 | ;; | |
9c60689e | 15398 | |
47aaa820 | 15399 | gnu*) |
53ba6704 | 15400 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15401 | need_lib_prefix=no |
15402 | need_version=no | |
15403 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15404 | soname_spec='${libname}${release}${shared_ext}$major' | |
15405 | shlibpath_var=LD_LIBRARY_PATH | |
ee134472 JF |
15406 | shlibpath_overrides_runpath=no |
15407 | hardcode_into_libs=yes | |
15408 | ;; | |
15409 | ||
15410 | haiku*) | |
53ba6704 | 15411 | version_type=linux # correct to gnu/linux during the next big refactor |
ee134472 JF |
15412 | need_lib_prefix=no |
15413 | need_version=no | |
15414 | dynamic_linker="$host_os runtime_loader" | |
15415 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15416 | soname_spec='${libname}${release}${shared_ext}$major' | |
15417 | shlibpath_var=LIBRARY_PATH | |
15418 | shlibpath_overrides_runpath=yes | |
15419 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
47aaa820 DWT |
15420 | hardcode_into_libs=yes |
15421 | ;; | |
9c60689e | 15422 | |
47aaa820 DWT |
15423 | hpux9* | hpux10* | hpux11*) |
15424 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
15425 | # link against other versions. | |
15426 | version_type=sunos | |
15427 | need_lib_prefix=no | |
15428 | need_version=no | |
15429 | case $host_cpu in | |
15430 | ia64*) | |
15431 | shrext_cmds='.so' | |
15432 | hardcode_into_libs=yes | |
15433 | dynamic_linker="$host_os dld.so" | |
15434 | shlibpath_var=LD_LIBRARY_PATH | |
15435 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15436 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15437 | soname_spec='${libname}${release}${shared_ext}$major' | |
15438 | if test "X$HPUX_IA64_MODE" = X32; then | |
15439 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
15440 | else | |
15441 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
15442 | fi | |
15443 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15444 | ;; | |
15445 | hppa*64*) | |
15446 | shrext_cmds='.sl' | |
15447 | hardcode_into_libs=yes | |
15448 | dynamic_linker="$host_os dld.sl" | |
15449 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
15450 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15451 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15452 | soname_spec='${libname}${release}${shared_ext}$major' | |
15453 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
15454 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15455 | ;; | |
15456 | *) | |
15457 | shrext_cmds='.sl' | |
15458 | dynamic_linker="$host_os dld.sl" | |
15459 | shlibpath_var=SHLIB_PATH | |
15460 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
15461 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15462 | soname_spec='${libname}${release}${shared_ext}$major' | |
15463 | ;; | |
15464 | esac | |
ee134472 | 15465 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
47aaa820 | 15466 | postinstall_cmds='chmod 555 $lib' |
ee134472 JF |
15467 | # or fails outright, so override atomically: |
15468 | install_override_mode=555 | |
47aaa820 | 15469 | ;; |
9c60689e | 15470 | |
47aaa820 | 15471 | interix[3-9]*) |
53ba6704 | 15472 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15473 | need_lib_prefix=no |
15474 | need_version=no | |
15475 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15476 | soname_spec='${libname}${release}${shared_ext}$major' | |
15477 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
15478 | shlibpath_var=LD_LIBRARY_PATH | |
15479 | shlibpath_overrides_runpath=no | |
15480 | hardcode_into_libs=yes | |
15481 | ;; | |
9c60689e | 15482 | |
47aaa820 DWT |
15483 | irix5* | irix6* | nonstopux*) |
15484 | case $host_os in | |
15485 | nonstopux*) version_type=nonstopux ;; | |
15486 | *) | |
15487 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
53ba6704 | 15488 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15489 | else |
15490 | version_type=irix | |
15491 | fi ;; | |
15492 | esac | |
15493 | need_lib_prefix=no | |
15494 | need_version=no | |
15495 | soname_spec='${libname}${release}${shared_ext}$major' | |
15496 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15497 | case $host_os in | |
15498 | irix5* | nonstopux*) | |
15499 | libsuff= shlibsuff= | |
15500 | ;; | |
15501 | *) | |
15502 | case $LD in # libtool.m4 will add one of these switches to LD | |
15503 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
15504 | libsuff= shlibsuff= libmagic=32-bit;; | |
15505 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
15506 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
15507 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
15508 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
15509 | *) libsuff= shlibsuff= libmagic=never-match;; | |
15510 | esac | |
15511 | ;; | |
15512 | esac | |
15513 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
15514 | shlibpath_overrides_runpath=no | |
15515 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
15516 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
15517 | hardcode_into_libs=yes | |
15518 | ;; | |
9c60689e | 15519 | |
47aaa820 DWT |
15520 | # No shared lib support for Linux oldld, aout, or coff. |
15521 | linux*oldld* | linux*aout* | linux*coff*) | |
15522 | dynamic_linker=no | |
15523 | ;; | |
9c60689e | 15524 | |
53ba6704 | 15525 | # This must be glibc/ELF. |
1504c9b8 | 15526 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
53ba6704 | 15527 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15528 | need_lib_prefix=no |
15529 | need_version=no | |
15530 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15531 | soname_spec='${libname}${release}${shared_ext}$major' | |
15532 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
15533 | shlibpath_var=LD_LIBRARY_PATH | |
15534 | shlibpath_overrides_runpath=no | |
ee134472 | 15535 | |
47aaa820 | 15536 | # Some binutils ld are patched to set DT_RUNPATH |
ee134472 JF |
15537 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
15538 | $as_echo_n "(cached) " >&6 | |
15539 | else | |
15540 | lt_cv_shlibpath_overrides_runpath=no | |
15541 | save_LDFLAGS=$LDFLAGS | |
15542 | save_libdir=$libdir | |
15543 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
15544 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
15545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
47aaa820 | 15546 | /* end confdefs.h. */ |
9c60689e | 15547 | |
47aaa820 DWT |
15548 | int |
15549 | main () | |
15550 | { | |
9c60689e | 15551 | |
47aaa820 DWT |
15552 | ; |
15553 | return 0; | |
15554 | } | |
15555 | _ACEOF | |
15556 | if ac_fn_cxx_try_link "$LINENO"; then : | |
15557 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
ee134472 | 15558 | lt_cv_shlibpath_overrides_runpath=yes |
9c60689e | 15559 | fi |
47aaa820 DWT |
15560 | fi |
15561 | rm -f core conftest.err conftest.$ac_objext \ | |
15562 | conftest$ac_exeext conftest.$ac_ext | |
ee134472 JF |
15563 | LDFLAGS=$save_LDFLAGS |
15564 | libdir=$save_libdir | |
15565 | ||
15566 | fi | |
15567 | ||
15568 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
9c60689e | 15569 | |
47aaa820 DWT |
15570 | # This implies no fast_install, which is unacceptable. |
15571 | # Some rework will be needed to allow for fast_install | |
15572 | # before this can be enabled. | |
15573 | hardcode_into_libs=yes | |
9c60689e | 15574 | |
47aaa820 DWT |
15575 | # Append ld.so.conf contents to the search path |
15576 | if test -f /etc/ld.so.conf; then | |
ee134472 | 15577 | 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 |
15578 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
15579 | fi | |
9c60689e | 15580 | |
47aaa820 DWT |
15581 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
15582 | # powerpc, because MkLinux only supported shared libraries with the | |
15583 | # GNU dynamic linker. Since this was broken with cross compilers, | |
15584 | # most powerpc-linux boxes support dynamic linking these days and | |
15585 | # people can always --disable-shared, the test was removed, and we | |
15586 | # assume the GNU/Linux dynamic linker is in use. | |
15587 | dynamic_linker='GNU/Linux ld.so' | |
9c60689e | 15588 | ;; |
47aaa820 | 15589 | |
47aaa820 DWT |
15590 | netbsd*) |
15591 | version_type=sunos | |
15592 | need_lib_prefix=no | |
15593 | need_version=no | |
15594 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
15595 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15596 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15597 | dynamic_linker='NetBSD (a.out) ld.so' | |
15598 | else | |
15599 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15600 | soname_spec='${libname}${release}${shared_ext}$major' | |
15601 | dynamic_linker='NetBSD ld.elf_so' | |
15602 | fi | |
15603 | shlibpath_var=LD_LIBRARY_PATH | |
15604 | shlibpath_overrides_runpath=yes | |
15605 | hardcode_into_libs=yes | |
9c60689e | 15606 | ;; |
9c60689e | 15607 | |
47aaa820 | 15608 | newsos6) |
53ba6704 | 15609 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15610 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15611 | shlibpath_var=LD_LIBRARY_PATH | |
15612 | shlibpath_overrides_runpath=yes | |
15613 | ;; | |
9c60689e | 15614 | |
47aaa820 DWT |
15615 | *nto* | *qnx*) |
15616 | version_type=qnx | |
15617 | need_lib_prefix=no | |
15618 | need_version=no | |
15619 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15620 | soname_spec='${libname}${release}${shared_ext}$major' | |
15621 | shlibpath_var=LD_LIBRARY_PATH | |
15622 | shlibpath_overrides_runpath=no | |
15623 | hardcode_into_libs=yes | |
15624 | dynamic_linker='ldqnx.so' | |
15625 | ;; | |
9c60689e | 15626 | |
47aaa820 DWT |
15627 | openbsd*) |
15628 | version_type=sunos | |
15629 | sys_lib_dlsearch_path_spec="/usr/lib" | |
15630 | need_lib_prefix=no | |
15631 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
15632 | case $host_os in | |
15633 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
15634 | *) need_version=no ;; | |
15635 | esac | |
15636 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15637 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15638 | shlibpath_var=LD_LIBRARY_PATH | |
15639 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
15640 | case $host_os in | |
15641 | openbsd2.[89] | openbsd2.[89].*) | |
15642 | shlibpath_overrides_runpath=no | |
15643 | ;; | |
15644 | *) | |
15645 | shlibpath_overrides_runpath=yes | |
15646 | ;; | |
15647 | esac | |
15648 | else | |
15649 | shlibpath_overrides_runpath=yes | |
15650 | fi | |
15651 | ;; | |
9c60689e | 15652 | |
47aaa820 DWT |
15653 | os2*) |
15654 | libname_spec='$name' | |
15655 | shrext_cmds=".dll" | |
15656 | need_lib_prefix=no | |
15657 | library_names_spec='$libname${shared_ext} $libname.a' | |
15658 | dynamic_linker='OS/2 ld.exe' | |
15659 | shlibpath_var=LIBPATH | |
15660 | ;; | |
9c60689e | 15661 | |
47aaa820 DWT |
15662 | osf3* | osf4* | osf5*) |
15663 | version_type=osf | |
15664 | need_lib_prefix=no | |
15665 | need_version=no | |
15666 | soname_spec='${libname}${release}${shared_ext}$major' | |
15667 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15668 | shlibpath_var=LD_LIBRARY_PATH | |
15669 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
15670 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
15671 | ;; | |
9c60689e | 15672 | |
47aaa820 DWT |
15673 | rdos*) |
15674 | dynamic_linker=no | |
15675 | ;; | |
9c60689e | 15676 | |
47aaa820 | 15677 | solaris*) |
53ba6704 | 15678 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15679 | need_lib_prefix=no |
15680 | need_version=no | |
15681 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15682 | soname_spec='${libname}${release}${shared_ext}$major' | |
15683 | shlibpath_var=LD_LIBRARY_PATH | |
15684 | shlibpath_overrides_runpath=yes | |
15685 | hardcode_into_libs=yes | |
15686 | # ldd complains unless libraries are executable | |
15687 | postinstall_cmds='chmod +x $lib' | |
15688 | ;; | |
9c60689e | 15689 | |
47aaa820 DWT |
15690 | sunos4*) |
15691 | version_type=sunos | |
15692 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15693 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
15694 | shlibpath_var=LD_LIBRARY_PATH | |
15695 | shlibpath_overrides_runpath=yes | |
15696 | if test "$with_gnu_ld" = yes; then | |
15697 | need_lib_prefix=no | |
15698 | fi | |
15699 | need_version=yes | |
15700 | ;; | |
9c60689e | 15701 | |
47aaa820 | 15702 | sysv4 | sysv4.3*) |
53ba6704 | 15703 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15704 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15705 | soname_spec='${libname}${release}${shared_ext}$major' | |
15706 | shlibpath_var=LD_LIBRARY_PATH | |
15707 | case $host_vendor in | |
15708 | sni) | |
15709 | shlibpath_overrides_runpath=no | |
15710 | need_lib_prefix=no | |
15711 | runpath_var=LD_RUN_PATH | |
9c60689e | 15712 | ;; |
47aaa820 DWT |
15713 | siemens) |
15714 | need_lib_prefix=no | |
9c60689e | 15715 | ;; |
47aaa820 DWT |
15716 | motorola) |
15717 | need_lib_prefix=no | |
15718 | need_version=no | |
15719 | shlibpath_overrides_runpath=no | |
15720 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
15721 | ;; | |
15722 | esac | |
9c60689e | 15723 | ;; |
9c60689e | 15724 | |
47aaa820 DWT |
15725 | sysv4*MP*) |
15726 | if test -d /usr/nec ;then | |
53ba6704 | 15727 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15728 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
15729 | soname_spec='$libname${shared_ext}.$major' | |
15730 | shlibpath_var=LD_LIBRARY_PATH | |
15731 | fi | |
15732 | ;; | |
9c60689e | 15733 | |
47aaa820 DWT |
15734 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
15735 | version_type=freebsd-elf | |
15736 | need_lib_prefix=no | |
15737 | need_version=no | |
15738 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15739 | soname_spec='${libname}${release}${shared_ext}$major' | |
15740 | shlibpath_var=LD_LIBRARY_PATH | |
15741 | shlibpath_overrides_runpath=yes | |
15742 | hardcode_into_libs=yes | |
15743 | if test "$with_gnu_ld" = yes; then | |
15744 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
15745 | else | |
15746 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
15747 | case $host_os in | |
15748 | sco3.2v5*) | |
15749 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
15750 | ;; | |
15751 | esac | |
15752 | fi | |
15753 | sys_lib_dlsearch_path_spec='/usr/lib' | |
15754 | ;; | |
9c60689e | 15755 | |
47aaa820 DWT |
15756 | tpf*) |
15757 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
53ba6704 | 15758 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15759 | need_lib_prefix=no |
15760 | need_version=no | |
15761 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15762 | shlibpath_var=LD_LIBRARY_PATH | |
15763 | shlibpath_overrides_runpath=no | |
15764 | hardcode_into_libs=yes | |
15765 | ;; | |
9c60689e | 15766 | |
47aaa820 | 15767 | uts4*) |
53ba6704 | 15768 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15769 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15770 | soname_spec='${libname}${release}${shared_ext}$major' | |
15771 | shlibpath_var=LD_LIBRARY_PATH | |
15772 | ;; | |
9c60689e | 15773 | |
47aaa820 DWT |
15774 | *) |
15775 | dynamic_linker=no | |
e9c9a47c DWT |
15776 | ;; |
15777 | esac | |
15778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
15779 | $as_echo "$dynamic_linker" >&6; } | |
15780 | test "$dynamic_linker" = no && can_build_shared=no | |
15781 | ||
15782 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
15783 | if test "$GCC" = yes; then | |
15784 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
47aaa820 | 15785 | fi |
9c60689e | 15786 | |
e9c9a47c DWT |
15787 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
15788 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
47aaa820 | 15789 | fi |
e9c9a47c DWT |
15790 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
15791 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
47aaa820 | 15792 | fi |
9c60689e | 15793 | |
9c60689e | 15794 | |
9c60689e | 15795 | |
9c60689e | 15796 | |
47aaa820 | 15797 | |
47aaa820 | 15798 | |
47aaa820 | 15799 | |
9c60689e | 15800 | |
9c60689e | 15801 | |
47aaa820 | 15802 | |
47aaa820 | 15803 | |
47aaa820 | 15804 | |
47aaa820 | 15805 | |
47aaa820 | 15806 | |
47aaa820 | 15807 | |
47aaa820 | 15808 | |
47aaa820 | 15809 | |
9c60689e | 15810 | |
9c60689e | 15811 | |
9c60689e | 15812 | |
9c60689e | 15813 | |
9c60689e | 15814 | |
e9c9a47c DWT |
15815 | |
15816 | ||
15817 | ||
15818 | ||
15819 | ||
15820 | ||
15821 | ||
15822 | ||
15823 | ||
15824 | ||
15825 | ||
ee134472 JF |
15826 | |
15827 | ||
e9c9a47c DWT |
15828 | |
15829 | ||
15830 | ||
15831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
15832 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
15833 | hardcode_action_CXX= | |
15834 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
15835 | test -n "$runpath_var_CXX" || | |
15836 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
15837 | ||
15838 | # We can hardcode non-existent directories. | |
15839 | if test "$hardcode_direct_CXX" != no && | |
15840 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
15841 | # have to relink, otherwise we might link with an installed library | |
15842 | # when we should be linking with a yet-to-be-installed one | |
15843 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
15844 | test "$hardcode_minus_L_CXX" != no; then | |
15845 | # Linking always hardcodes the temporary library directory. | |
15846 | hardcode_action_CXX=relink | |
15847 | else | |
15848 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
15849 | hardcode_action_CXX=immediate | |
15850 | fi | |
15851 | else | |
15852 | # We cannot hardcode anything, or else we can only hardcode existing | |
15853 | # directories. | |
15854 | hardcode_action_CXX=unsupported | |
15855 | fi | |
15856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
15857 | $as_echo "$hardcode_action_CXX" >&6; } | |
15858 | ||
15859 | if test "$hardcode_action_CXX" = relink || | |
15860 | test "$inherit_rpath_CXX" = yes; then | |
15861 | # Fast installation is not supported | |
15862 | enable_fast_install=no | |
15863 | elif test "$shlibpath_overrides_runpath" = yes || | |
15864 | test "$enable_shared" = no; then | |
15865 | # Fast installation is not necessary | |
15866 | enable_fast_install=needless | |
47aaa820 | 15867 | fi |
9c60689e | 15868 | |
47aaa820 | 15869 | |
47aaa820 | 15870 | |
e9c9a47c DWT |
15871 | |
15872 | ||
15873 | ||
15874 | ||
a243b558 JF |
15875 | fi # test -n "$compiler" |
15876 | ||
15877 | CC=$lt_save_CC | |
15878 | CFLAGS=$lt_save_CFLAGS | |
15879 | LDCXX=$LD | |
15880 | LD=$lt_save_LD | |
15881 | GCC=$lt_save_GCC | |
15882 | with_gnu_ld=$lt_save_with_gnu_ld | |
15883 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
15884 | lt_cv_path_LD=$lt_save_path_LD | |
15885 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
15886 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
15887 | fi # test "$_lt_caught_CXX_error" != yes | |
15888 | ||
15889 | ac_ext=c | |
15890 | ac_cpp='$CPP $CPPFLAGS' | |
15891 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15892 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15893 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15894 | ||
15895 | ||
15896 | ||
15897 | ||
15898 | ||
15899 | ||
15900 | ||
15901 | ||
15902 | ||
15903 | ||
15904 | ||
15905 | ||
15906 | ||
15907 | ||
15908 | ||
15909 | ac_config_commands="$ac_config_commands libtool" | |
15910 | ||
15911 | ||
15912 | ||
15913 | ||
15914 | # Only expand once: | |
15915 | ||
15916 | ||
15917 | ||
15918 | ac_ext=cpp | |
15919 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15920 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15921 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15922 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15923 | ||
15924 | ||
15925 | ||
15926 | ||
15927 | ||
15928 | ||
15929 | ||
15930 | ||
a93f15c0 | 15931 | |
a243b558 JF |
15932 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
15933 | if test -n "$ac_tool_prefix"; then | |
15934 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
15935 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
15936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15937 | $as_echo_n "checking for $ac_word... " >&6; } | |
15938 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
15939 | $as_echo_n "(cached) " >&6 | |
15940 | else | |
15941 | case $PKG_CONFIG in | |
15942 | [\\/]* | ?:[\\/]*) | |
15943 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
15944 | ;; | |
15945 | *) | |
15946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15947 | for as_dir in $PATH | |
15948 | do | |
15949 | IFS=$as_save_IFS | |
15950 | test -z "$as_dir" && as_dir=. | |
15951 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15952 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15953 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
15954 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15955 | break 2 | |
15956 | fi | |
15957 | done | |
15958 | done | |
15959 | IFS=$as_save_IFS | |
15960 | ||
15961 | ;; | |
15962 | esac | |
15963 | fi | |
15964 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
15965 | if test -n "$PKG_CONFIG"; then | |
15966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
15967 | $as_echo "$PKG_CONFIG" >&6; } | |
15968 | else | |
15969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15970 | $as_echo "no" >&6; } | |
15971 | fi | |
15972 | ||
15973 | ||
15974 | fi | |
15975 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
15976 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
15977 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
15978 | set dummy pkg-config; ac_word=$2 | |
15979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15980 | $as_echo_n "checking for $ac_word... " >&6; } | |
15981 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
15982 | $as_echo_n "(cached) " >&6 | |
15983 | else | |
15984 | case $ac_pt_PKG_CONFIG in | |
15985 | [\\/]* | ?:[\\/]*) | |
15986 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
15987 | ;; | |
15988 | *) | |
15989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15990 | for as_dir in $PATH | |
15991 | do | |
15992 | IFS=$as_save_IFS | |
15993 | test -z "$as_dir" && as_dir=. | |
15994 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15995 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15996 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
15997 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15998 | break 2 | |
15999 | fi | |
16000 | done | |
16001 | done | |
16002 | IFS=$as_save_IFS | |
16003 | ||
16004 | ;; | |
16005 | esac | |
16006 | fi | |
16007 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
16008 | if test -n "$ac_pt_PKG_CONFIG"; then | |
16009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
16010 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
16011 | else | |
16012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16013 | $as_echo "no" >&6; } | |
16014 | fi | |
16015 | ||
16016 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
16017 | PKG_CONFIG="" | |
16018 | else | |
16019 | case $cross_compiling:$ac_tool_warned in | |
16020 | yes:) | |
16021 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
16022 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
16023 | ac_tool_warned=yes ;; | |
16024 | esac | |
16025 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
16026 | fi | |
16027 | else | |
16028 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
16029 | fi | |
16030 | ||
16031 | fi | |
16032 | if test -n "$PKG_CONFIG"; then | |
16033 | _pkg_min_version=0.22 | |
16034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
16035 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
16036 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
16037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16038 | $as_echo "yes" >&6; } | |
16039 | else | |
16040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16041 | $as_echo "no" >&6; } | |
16042 | PKG_CONFIG="" | |
16043 | fi | |
16044 | fi | |
16045 | ||
a243b558 JF |
16046 | # Extract the first word of "git", so it can be a program name with args. |
16047 | set dummy git; ac_word=$2 | |
16048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16049 | $as_echo_n "checking for $ac_word... " >&6; } | |
16050 | if ${ac_cv_path_GIT+:} false; then : | |
16051 | $as_echo_n "(cached) " >&6 | |
16052 | else | |
16053 | case $GIT in | |
16054 | [\\/]* | ?:[\\/]*) | |
16055 | ac_cv_path_GIT="$GIT" # Let the user override the test with a path. | |
16056 | ;; | |
16057 | *) | |
16058 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16059 | for as_dir in $PATH | |
16060 | do | |
16061 | IFS=$as_save_IFS | |
16062 | test -z "$as_dir" && as_dir=. | |
16063 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16064 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16065 | ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext" | |
16066 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16067 | break 2 | |
16068 | fi | |
16069 | done | |
16070 | done | |
16071 | IFS=$as_save_IFS | |
e9c9a47c | 16072 | |
a243b558 JF |
16073 | ;; |
16074 | esac | |
16075 | fi | |
16076 | GIT=$ac_cv_path_GIT | |
16077 | if test -n "$GIT"; then | |
16078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5 | |
16079 | $as_echo "$GIT" >&6; } | |
16080 | else | |
16081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16082 | $as_echo "no" >&6; } | |
16083 | fi | |
e9c9a47c DWT |
16084 | |
16085 | ||
a243b558 JF |
16086 | # Extract the first word of "time", so it can be a program name with args. |
16087 | set dummy time; ac_word=$2 | |
632b71ea DWT |
16088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16089 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 16090 | if ${ac_cv_path_TIME+:} false; then : |
632b71ea DWT |
16091 | $as_echo_n "(cached) " >&6 |
16092 | else | |
a243b558 JF |
16093 | case $TIME in |
16094 | [\\/]* | ?:[\\/]*) | |
16095 | ac_cv_path_TIME="$TIME" # Let the user override the test with a path. | |
16096 | ;; | |
16097 | *) | |
16098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
632b71ea DWT |
16099 | for as_dir in $PATH |
16100 | do | |
16101 | IFS=$as_save_IFS | |
16102 | test -z "$as_dir" && as_dir=. | |
16103 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 16104 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 16105 | ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" |
632b71ea DWT |
16106 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
16107 | break 2 | |
16108 | fi | |
16109 | done | |
16110 | done | |
16111 | IFS=$as_save_IFS | |
16112 | ||
a243b558 JF |
16113 | ;; |
16114 | esac | |
632b71ea | 16115 | fi |
a243b558 JF |
16116 | TIME=$ac_cv_path_TIME |
16117 | if test -n "$TIME"; then | |
16118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 | |
16119 | $as_echo "$TIME" >&6; } | |
632b71ea DWT |
16120 | else |
16121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16122 | $as_echo "no" >&6; } | |
16123 | fi | |
16124 | ||
16125 | ||
a243b558 JF |
16126 | |
16127 | ||
16128 | ||
16129 | ||
16130 | ||
16131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5 | |
16132 | $as_echo_n "checking for bison >= 2.3... " >&6; } | |
16133 | if test -z "$BISON"; then | |
16134 | ac_path_BISON_found=false | |
16135 | # Loop through the user's path and test for each of PROGNAME-LIST | |
16136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16137 | for as_dir in $PATH | |
16138 | do | |
16139 | IFS=$as_save_IFS | |
16140 | test -z "$as_dir" && as_dir=. | |
16141 | for ac_prog in bison; do | |
16142 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16143 | ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext" | |
16144 | as_fn_executable_p "$ac_path_BISON" || continue | |
16145 | version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'` | |
16146 | if ${version:+false} :; then : | |
16147 | ||
16148 | else | |
16149 | as_awk_strverscmp=' | |
16150 | # Use only awk features that work with 7th edition Unix awk (1978). | |
16151 | # My, what an old awk you have, Mr. Solaris! | |
16152 | END { | |
16153 | while (length(v1) && length(v2)) { | |
16154 | # Set d1 to be the next thing to compare from v1, and likewise for d2. | |
16155 | # Normally this is a single character, but if v1 and v2 contain digits, | |
16156 | # compare them as integers and fractions as strverscmp does. | |
16157 | if (v1 ~ /^0-9/ && v2 ~ /^0-9/) { | |
16158 | # Split v1 and v2 into their leading digit string components d1 and d2, | |
16159 | # and advance v1 and v2 past the leading digit strings. | |
16160 | for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue | |
16161 | for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue | |
16162 | d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) | |
16163 | d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) | |
16164 | if (d1 ~ /^0/) { | |
16165 | if (d2 ~ /^0/) { | |
16166 | # Compare two fractions. | |
16167 | while (d1 ~ /^0/ && d2 ~ /^0/) { | |
16168 | d1 = substr(d1, 2); len1-- | |
16169 | d2 = substr(d2, 2); len2-- | |
16170 | } | |
16171 | if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { | |
16172 | # The two components differ in length, and the common prefix | |
16173 | # contains only leading zeros. Consider the longer to be less. | |
16174 | d1 = -len1 | |
16175 | d2 = -len2 | |
16176 | } else { | |
16177 | # Otherwise, compare as strings. | |
16178 | d1 = "x" d1 | |
16179 | d2 = "x" d2 | |
16180 | } | |
16181 | } else { | |
16182 | # A fraction is less than an integer. | |
16183 | exit 1 | |
16184 | } | |
16185 | } else { | |
16186 | if (d2 ~ /^0/) { | |
16187 | # An integer is greater than a fraction. | |
16188 | exit 2 | |
16189 | } else { | |
16190 | # Compare two integers. | |
16191 | d1 += 0 | |
16192 | d2 += 0 | |
16193 | } | |
16194 | } | |
16195 | } else { | |
16196 | # The normal case, without worrying about digits. | |
16197 | d1 = substr(v1, 1, 1); v1 = substr(v1, 2) | |
16198 | d2 = substr(v2, 1, 1); v2 = substr(v2, 2) | |
16199 | } | |
16200 | if (d1 < d2) exit 1 | |
16201 | if (d1 > d2) exit 2 | |
16202 | } | |
16203 | # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), | |
16204 | # which mishandles some comparisons of empty strings to integers. | |
16205 | if (length(v2)) exit 1 | |
16206 | if (length(v1)) exit 2 | |
16207 | } | |
16208 | ' | |
16209 | as_arg_v1=$version | |
16210 | as_arg_v2=2.3 | |
16211 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
16212 | case $? in #( | |
16213 | 1) : | |
16214 | ;; #( | |
16215 | 0) : | |
16216 | ac_cv_path_BISON=$ac_path_BISON ;; #( | |
16217 | 2) : | |
16218 | ac_cv_path_BISON=$ac_path_BISON ;; #( | |
16219 | *) : | |
16220 | ;; | |
16221 | esac | |
16222 | fi | |
16223 | ||
16224 | $ac_path_BISON_found && break 3 | |
16225 | done | |
16226 | done | |
e9c9a47c | 16227 | done |
a243b558 JF |
16228 | IFS=$as_save_IFS |
16229 | if test -z "$ac_cv_path_BISON"; then | |
16230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16231 | $as_echo "no" >&6; } | |
16232 | fi | |
16233 | else | |
16234 | ac_cv_path_BISON=$BISON | |
632b71ea | 16235 | fi |
a243b558 JF |
16236 | |
16237 | ||
16238 | if true; then : | |
16239 | ||
16240 | BISON=$ac_cv_path_BISON | |
16241 | ||
16242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 | |
16243 | $as_echo "$BISON" >&6; } | |
16244 | ||
47aaa820 | 16245 | else |
a243b558 JF |
16246 | if true; then : |
16247 | ||
16248 | as_fn_error $? "You need bison 2.3 or greater" "$LINENO" 5 | |
16249 | ||
47aaa820 | 16250 | else |
a243b558 JF |
16251 | |
16252 | BISON=: | |
16253 | ||
16254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16255 | $as_echo "no" >&6; } | |
16256 | ||
16257 | fi | |
16258 | fi | |
16259 | ||
16260 | ||
16261 | ||
16262 | ||
16263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5 | |
16264 | $as_echo_n "checking for flex >= 2.5.33... " >&6; } | |
16265 | if test -z "$FLEX"; then | |
16266 | ac_path_FLEX_found=false | |
16267 | # Loop through the user's path and test for each of PROGNAME-LIST | |
16268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47aaa820 DWT |
16269 | for as_dir in $PATH |
16270 | do | |
16271 | IFS=$as_save_IFS | |
16272 | test -z "$as_dir" && as_dir=. | |
a243b558 | 16273 | for ac_prog in flex; do |
47aaa820 | 16274 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
16275 | ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext" |
16276 | as_fn_executable_p "$ac_path_FLEX" || continue | |
16277 | version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'` | |
16278 | if ${version:+false} :; then : | |
9c60689e | 16279 | |
47aaa820 | 16280 | else |
a243b558 JF |
16281 | as_arg_v1=$version |
16282 | as_arg_v2=2.5.33 | |
16283 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
16284 | case $? in #( | |
16285 | 1) : | |
16286 | ;; #( | |
16287 | 0) : | |
16288 | ac_cv_path_FLEX=$ac_path_FLEX ;; #( | |
16289 | 2) : | |
16290 | ac_cv_path_FLEX=$ac_path_FLEX ;; #( | |
16291 | *) : | |
16292 | ;; | |
16293 | esac | |
16294 | fi | |
16295 | ||
16296 | $ac_path_FLEX_found && break 3 | |
16297 | done | |
16298 | done | |
16299 | done | |
16300 | IFS=$as_save_IFS | |
16301 | if test -z "$ac_cv_path_FLEX"; then | |
16302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
47aaa820 | 16303 | $as_echo "no" >&6; } |
a243b558 JF |
16304 | fi |
16305 | else | |
16306 | ac_cv_path_FLEX=$FLEX | |
9c60689e DWT |
16307 | fi |
16308 | ||
16309 | ||
a243b558 | 16310 | if true; then : |
e9c9a47c | 16311 | |
a243b558 | 16312 | FLEX=$ac_cv_path_FLEX |
e9c9a47c | 16313 | |
a243b558 JF |
16314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
16315 | $as_echo "$FLEX" >&6; } | |
9c60689e | 16316 | |
632b71ea | 16317 | else |
a243b558 | 16318 | if true; then : |
e9c9a47c | 16319 | |
a243b558 | 16320 | as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5 |
e9c9a47c | 16321 | |
e9c9a47c | 16322 | else |
a243b558 JF |
16323 | |
16324 | FLEX=: | |
16325 | ||
16326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16327 | $as_echo "no" >&6; } | |
9c60689e | 16328 | |
632b71ea | 16329 | fi |
a243b558 JF |
16330 | fi |
16331 | ||
16332 | ||
16333 | ||
16334 | ||
16335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5 | |
16336 | $as_echo_n "checking for gperf >= 3.0.3... " >&6; } | |
16337 | if test -z "$GPERF"; then | |
16338 | ac_path_GPERF_found=false | |
16339 | # Loop through the user's path and test for each of PROGNAME-LIST | |
16340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16341 | for as_dir in $PATH | |
16342 | do | |
16343 | IFS=$as_save_IFS | |
16344 | test -z "$as_dir" && as_dir=. | |
16345 | for ac_prog in gperf; do | |
16346 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16347 | ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext" | |
16348 | as_fn_executable_p "$ac_path_GPERF" || continue | |
16349 | version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'` | |
16350 | if ${version:+false} :; then : | |
16351 | ||
e9c9a47c | 16352 | else |
a243b558 JF |
16353 | as_arg_v1=$version |
16354 | as_arg_v2=3.0.3 | |
16355 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
16356 | case $? in #( | |
16357 | 1) : | |
16358 | ;; #( | |
16359 | 0) : | |
16360 | ac_cv_path_GPERF=$ac_path_GPERF ;; #( | |
16361 | 2) : | |
16362 | ac_cv_path_GPERF=$ac_path_GPERF ;; #( | |
16363 | *) : | |
16364 | ;; | |
16365 | esac | |
632b71ea | 16366 | fi |
a243b558 JF |
16367 | |
16368 | $ac_path_GPERF_found && break 3 | |
16369 | done | |
16370 | done | |
16371 | done | |
16372 | IFS=$as_save_IFS | |
16373 | if test -z "$ac_cv_path_GPERF"; then | |
16374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16375 | $as_echo "no" >&6; } | |
16376 | fi | |
47aaa820 | 16377 | else |
a243b558 JF |
16378 | ac_cv_path_GPERF=$GPERF |
16379 | fi | |
9c60689e DWT |
16380 | |
16381 | ||
a243b558 | 16382 | if true; then : |
9c60689e | 16383 | |
a243b558 | 16384 | GPERF=$ac_cv_path_GPERF |
9c60689e | 16385 | |
a243b558 JF |
16386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5 |
16387 | $as_echo "$GPERF" >&6; } | |
9c60689e | 16388 | |
47aaa820 | 16389 | else |
a243b558 | 16390 | if true; then : |
9c60689e | 16391 | |
a243b558 JF |
16392 | as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5 |
16393 | ||
16394 | else | |
16395 | ||
16396 | GPERF=: | |
16397 | ||
16398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16399 | $as_echo "no" >&6; } | |
9c60689e | 16400 | |
47aaa820 | 16401 | fi |
47aaa820 | 16402 | fi |
a243b558 JF |
16403 | |
16404 | ||
16405 | ||
16406 | ||
16407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5 | |
16408 | $as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; } | |
16409 | if test -z "$GNUTAR"; then | |
16410 | ac_path_GNUTAR_found=false | |
16411 | # Loop through the user's path and test for each of PROGNAME-LIST | |
16412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16413 | for as_dir in $PATH | |
16414 | do | |
16415 | IFS=$as_save_IFS | |
16416 | test -z "$as_dir" && as_dir=. | |
16417 | for ac_prog in tar gtar gnutar; do | |
16418 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16419 | ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext" | |
16420 | as_fn_executable_p "$ac_path_GNUTAR" || continue | |
16421 | version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'` | |
16422 | if ${version:+false} :; then : | |
16423 | ||
16424 | else | |
16425 | as_arg_v1=$version | |
16426 | as_arg_v2=1.19 | |
16427 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
16428 | case $? in #( | |
16429 | 1) : | |
16430 | ;; #( | |
16431 | 0) : | |
16432 | ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #( | |
16433 | 2) : | |
16434 | ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #( | |
16435 | *) : | |
16436 | ;; | |
16437 | esac | |
790e5246 | 16438 | fi |
a243b558 JF |
16439 | |
16440 | $ac_path_GNUTAR_found && break 3 | |
16441 | done | |
16442 | done | |
16443 | done | |
16444 | IFS=$as_save_IFS | |
16445 | if test -z "$ac_cv_path_GNUTAR"; then | |
16446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16447 | $as_echo "no" >&6; } | |
632b71ea | 16448 | fi |
632b71ea | 16449 | else |
a243b558 | 16450 | ac_cv_path_GNUTAR=$GNUTAR |
632b71ea | 16451 | fi |
66170b30 | 16452 | |
66170b30 | 16453 | |
a243b558 | 16454 | if true; then : |
66170b30 | 16455 | |
a243b558 | 16456 | GNUTAR=$ac_cv_path_GNUTAR |
66170b30 | 16457 | |
a243b558 JF |
16458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5 |
16459 | $as_echo "$GNUTAR" >&6; } | |
66170b30 | 16460 | |
a243b558 JF |
16461 | else |
16462 | if true; then : | |
66170b30 | 16463 | |
a243b558 | 16464 | as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5 |
66170b30 | 16465 | |
66170b30 | 16466 | else |
66170b30 | 16467 | |
a243b558 | 16468 | GNUTAR=: |
66170b30 | 16469 | |
a243b558 JF |
16470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16471 | $as_echo "no" >&6; } | |
66170b30 | 16472 | |
a243b558 JF |
16473 | fi |
16474 | fi | |
66170b30 JF |
16475 | |
16476 | ||
9228a43a JF |
16477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking bison for %code{}" >&5 |
16478 | $as_echo_n "checking bison for %code{}... " >&6; } | |
16479 | echo '%code{}%%_:' >conftest.y | |
16480 | if $BISON conftest.y -o/dev/null 2>/dev/null; then | |
16481 | ||
16482 | for element in Bison24; do | |
16483 | haveit= | |
16484 | for x in $CY_FILTERS; do | |
16485 | ||
16486 | acl_save_prefix="$prefix" | |
16487 | prefix="$acl_final_prefix" | |
16488 | acl_save_exec_prefix="$exec_prefix" | |
16489 | exec_prefix="$acl_final_exec_prefix" | |
16490 | eval x=\"$x\" | |
16491 | exec_prefix="$acl_save_exec_prefix" | |
16492 | prefix="$acl_save_prefix" | |
16493 | ||
16494 | if test "X$x" = "X$element"; then | |
16495 | haveit=yes | |
16496 | break | |
16497 | fi | |
16498 | done | |
16499 | if test -z "$haveit"; then | |
16500 | CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element" | |
16501 | fi | |
16502 | done | |
16503 | ||
16504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16505 | $as_echo "yes" >&6; } | |
16506 | else | |
16507 | ||
16508 | for element in Bison23; do | |
16509 | haveit= | |
16510 | for x in $CY_FILTERS; do | |
16511 | ||
16512 | acl_save_prefix="$prefix" | |
16513 | prefix="$acl_final_prefix" | |
16514 | acl_save_exec_prefix="$exec_prefix" | |
16515 | exec_prefix="$acl_final_exec_prefix" | |
16516 | eval x=\"$x\" | |
16517 | exec_prefix="$acl_save_exec_prefix" | |
16518 | prefix="$acl_save_prefix" | |
16519 | ||
16520 | if test "X$x" = "X$element"; then | |
16521 | haveit=yes | |
16522 | break | |
16523 | fi | |
16524 | done | |
16525 | if test -z "$haveit"; then | |
16526 | CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element" | |
16527 | fi | |
16528 | done | |
16529 | ||
16530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16531 | $as_echo "no" >&6; } | |
16532 | fi | |
16533 | ||
16534 | rm -f conftest.y | |
16535 | ||
16536 | ||
66170b30 JF |
16537 | |
16538 | ||
16539 | ||
16540 | ||
16541 | ||
16542 | ||
16543 | ||
16544 | ||
16545 | if ${CFLAGS+:} false; then : | |
16546 | case " $CFLAGS " in | |
16547 | *" "*) | |
16548 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5 | |
16549 | (: CFLAGS already contains ) 2>&5 | |
16550 | ac_status=$? | |
16551 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16552 | test $ac_status = 0; } | |
16553 | ;; | |
16554 | *) | |
16555 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5 | |
16556 | (: CFLAGS="$CFLAGS ") 2>&5 | |
16557 | ac_status=$? | |
16558 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16559 | test $ac_status = 0; } | |
16560 | CFLAGS="$CFLAGS " | |
16561 | ;; | |
16562 | esac | |
16563 | else | |
16564 | CFLAGS="" | |
16565 | fi | |
16566 | ||
e9c9a47c DWT |
16567 | ac_ext=c |
16568 | ac_cpp='$CPP $CPPFLAGS' | |
16569 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16570 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16571 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
632b71ea | 16572 | |
66170b30 JF |
16573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5 |
16574 | $as_echo_n "checking CFLAGS for maximum warnings... " >&6; } | |
16575 | if ${ac_cv_cflags_warn_all+:} false; then : | |
16576 | $as_echo_n "(cached) " >&6 | |
16577 | else | |
16578 | ac_cv_cflags_warn_all="no, unknown" | |
16579 | ac_save_CFLAGS="$CFLAGS" | |
16580 | 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" # | |
16581 | do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | |
16582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16583 | /* end confdefs.h. */ | |
16584 | ||
16585 | int | |
16586 | main () | |
16587 | { | |
16588 | ||
16589 | ; | |
16590 | return 0; | |
16591 | } | |
16592 | _ACEOF | |
16593 | if ac_fn_c_try_compile "$LINENO"; then : | |
16594 | ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | |
16595 | fi | |
16596 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16597 | done | |
16598 | CFLAGS="$ac_save_CFLAGS" | |
16599 | ||
16600 | fi | |
16601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5 | |
16602 | $as_echo "$ac_cv_cflags_warn_all" >&6; } | |
16603 | ||
16604 | case ".$ac_cv_cflags_warn_all" in | |
16605 | .ok|.ok,*) ;; | |
16606 | .|.no|.no,*) ;; | |
16607 | *) if ${CFLAGS+:} false; then : | |
16608 | case " $CFLAGS " in | |
16609 | *" $ac_cv_cflags_warn_all "*) | |
16610 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5 | |
16611 | (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5 | |
16612 | ac_status=$? | |
16613 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16614 | test $ac_status = 0; } | |
16615 | ;; | |
16616 | *) | |
16617 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5 | |
16618 | (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5 | |
16619 | ac_status=$? | |
16620 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16621 | test $ac_status = 0; } | |
16622 | CFLAGS="$CFLAGS $ac_cv_cflags_warn_all" | |
16623 | ;; | |
16624 | esac | |
16625 | else | |
16626 | CFLAGS="$ac_cv_cflags_warn_all" | |
16627 | fi | |
16628 | ;; | |
16629 | esac | |
16630 | ||
b816329d JF |
16631 | ac_ext=cpp |
16632 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16633 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16634 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16635 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16636 | ||
9c60689e | 16637 | |
66170b30 JF |
16638 | ac_ext=cpp |
16639 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16640 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16641 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16642 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
1504c9b8 | 16643 | |
66170b30 JF |
16644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5 |
16645 | $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; } | |
16646 | if ${ac_cv_cxxflags_warn_all+:} false; then : | |
16647 | $as_echo_n "(cached) " >&6 | |
16648 | else | |
16649 | ac_cv_cxxflags_warn_all="no, unknown" | |
16650 | ac_save_CXXFLAGS="$CXXFLAGS" | |
16651 | 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" # | |
16652 | do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | |
16653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16654 | /* end confdefs.h. */ | |
1504c9b8 | 16655 | |
66170b30 JF |
16656 | int |
16657 | main () | |
16658 | { | |
1504c9b8 | 16659 | |
66170b30 JF |
16660 | ; |
16661 | return 0; | |
16662 | } | |
16663 | _ACEOF | |
16664 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
16665 | ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | |
16666 | fi | |
16667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16668 | done | |
16669 | CXXFLAGS="$ac_save_CXXFLAGS" | |
1504c9b8 | 16670 | |
66170b30 JF |
16671 | fi |
16672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5 | |
16673 | $as_echo "$ac_cv_cxxflags_warn_all" >&6; } | |
16674 | ||
16675 | case ".$ac_cv_cxxflags_warn_all" in | |
16676 | .ok|.ok,*) ;; | |
16677 | .|.no|.no,*) ;; | |
16678 | *) if ${CXXFLAGS+:} false; then : | |
16679 | case " $CXXFLAGS " in | |
16680 | *" $ac_cv_cxxflags_warn_all "*) | |
16681 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5 | |
16682 | (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5 | |
16683 | ac_status=$? | |
16684 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16685 | test $ac_status = 0; } | |
16686 | ;; | |
16687 | *) | |
16688 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5 | |
16689 | (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5 | |
16690 | ac_status=$? | |
16691 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16692 | test $ac_status = 0; } | |
16693 | CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all" | |
16694 | ;; | |
16695 | esac | |
16696 | else | |
16697 | CXXFLAGS="$ac_cv_cxxflags_warn_all" | |
16698 | fi | |
16699 | ;; | |
16700 | esac | |
16701 | ||
16702 | ac_ext=cpp | |
16703 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16704 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16705 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16706 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16707 | ||
16708 | ||
babf7fe8 JF |
16709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5 |
16710 | $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; } | |
16711 | if ${ac_cv_cxxflags_warn_all+:} false; then : | |
16712 | $as_echo_n "(cached) " >&6 | |
16713 | else | |
16714 | ac_cv_cxxflags_warn_all="no, unknown" | |
16715 | ac_save_CXXFLAGS="$CXXFLAGS" | |
16716 | 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" # | |
16717 | do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | |
16718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16719 | /* end confdefs.h. */ | |
16720 | ||
16721 | int | |
16722 | main () | |
16723 | { | |
16724 | ||
16725 | ; | |
16726 | return 0; | |
16727 | } | |
16728 | _ACEOF | |
16729 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
16730 | ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | |
16731 | fi | |
16732 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16733 | done | |
16734 | CXXFLAGS="$ac_save_CXXFLAGS" | |
16735 | ||
16736 | fi | |
16737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5 | |
16738 | $as_echo "$ac_cv_cxxflags_warn_all" >&6; } | |
16739 | ||
16740 | case ".$ac_cv_cxxflags_warn_all" in | |
16741 | .ok|.ok,*) ;; | |
16742 | .|.no|.no,*) ;; | |
16743 | *) if ${CXXFLAGS+:} false; then : | |
16744 | case " $CXXFLAGS " in | |
16745 | *" $ac_cv_cxxflags_warn_all "*) | |
16746 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5 | |
16747 | (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5 | |
16748 | ac_status=$? | |
16749 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16750 | test $ac_status = 0; } | |
16751 | ;; | |
16752 | *) | |
16753 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5 | |
16754 | (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5 | |
16755 | ac_status=$? | |
16756 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16757 | test $ac_status = 0; } | |
16758 | CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all" | |
16759 | ;; | |
16760 | esac | |
16761 | else | |
16762 | CXXFLAGS="$ac_cv_cxxflags_warn_all" | |
16763 | fi | |
16764 | ;; | |
16765 | esac | |
16766 | ||
66170b30 JF |
16767 | |
16768 | ||
66170b30 | 16769 | |
66170b30 | 16770 | |
c10a2228 JF |
16771 | ac_ext=c |
16772 | ac_cpp='$CPP $CPPFLAGS' | |
16773 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16774 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16775 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16776 | ||
babf7fe8 JF |
16777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5 |
16778 | $as_echo_n "checking for cc -Werror... " >&6; } | |
c10a2228 JF |
16779 | |
16780 | cy_save=$CFLAGS | |
16781 | ||
babf7fe8 | 16782 | for element in -Werror; do |
c10a2228 JF |
16783 | haveit= |
16784 | for x in $CFLAGS; do | |
16785 | ||
16786 | acl_save_prefix="$prefix" | |
16787 | prefix="$acl_final_prefix" | |
16788 | acl_save_exec_prefix="$exec_prefix" | |
16789 | exec_prefix="$acl_final_exec_prefix" | |
16790 | eval x=\"$x\" | |
16791 | exec_prefix="$acl_save_exec_prefix" | |
16792 | prefix="$acl_save_prefix" | |
16793 | ||
16794 | if test "X$x" = "X$element"; then | |
16795 | haveit=yes | |
16796 | break | |
16797 | fi | |
16798 | done | |
16799 | if test -z "$haveit"; then | |
16800 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
16801 | fi | |
16802 | done | |
16803 | ||
16804 | ||
16805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16806 | /* end confdefs.h. */ | |
16807 | ||
16808 | _ACEOF | |
16809 | if ac_fn_c_try_compile "$LINENO"; then : | |
16810 | cy_good=1 | |
16811 | else | |
16812 | cy_good=0 | |
16813 | fi | |
16814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16815 | ||
16816 | CFLAGS=$cy_save | |
16817 | if test "x$cy_good" = x1; then : | |
16818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16819 | $as_echo "yes" >&6; } | |
16820 | ||
babf7fe8 | 16821 | for element in -Werror; do |
c10a2228 JF |
16822 | haveit= |
16823 | for x in $CFLAGS; do | |
16824 | ||
16825 | acl_save_prefix="$prefix" | |
16826 | prefix="$acl_final_prefix" | |
16827 | acl_save_exec_prefix="$exec_prefix" | |
16828 | exec_prefix="$acl_final_exec_prefix" | |
16829 | eval x=\"$x\" | |
16830 | exec_prefix="$acl_save_exec_prefix" | |
16831 | prefix="$acl_save_prefix" | |
16832 | ||
16833 | if test "X$x" = "X$element"; then | |
16834 | haveit=yes | |
16835 | break | |
16836 | fi | |
16837 | done | |
16838 | if test -z "$haveit"; then | |
16839 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
16840 | fi | |
16841 | done | |
16842 | ||
16843 | ||
16844 | else | |
16845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16846 | $as_echo "no" >&6; } | |
16847 | fi | |
16848 | ||
16849 | ac_ext=cpp | |
16850 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16851 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16852 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16853 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16854 | ||
16855 | ||
16856 | ||
16857 | ac_ext=cpp | |
16858 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16859 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16860 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16861 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16862 | ||
babf7fe8 JF |
16863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5 |
16864 | $as_echo_n "checking for c++ -Werror... " >&6; } | |
c10a2228 JF |
16865 | |
16866 | cy_save=$CXXFLAGS | |
16867 | ||
babf7fe8 | 16868 | for element in -Werror; do |
c10a2228 JF |
16869 | haveit= |
16870 | for x in $CXXFLAGS; do | |
16871 | ||
16872 | acl_save_prefix="$prefix" | |
16873 | prefix="$acl_final_prefix" | |
16874 | acl_save_exec_prefix="$exec_prefix" | |
16875 | exec_prefix="$acl_final_exec_prefix" | |
16876 | eval x=\"$x\" | |
16877 | exec_prefix="$acl_save_exec_prefix" | |
16878 | prefix="$acl_save_prefix" | |
16879 | ||
16880 | if test "X$x" = "X$element"; then | |
16881 | haveit=yes | |
16882 | break | |
16883 | fi | |
16884 | done | |
16885 | if test -z "$haveit"; then | |
16886 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16887 | fi | |
16888 | done | |
16889 | ||
16890 | ||
16891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16892 | /* end confdefs.h. */ | |
16893 | ||
16894 | _ACEOF | |
16895 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
16896 | cy_good=1 | |
16897 | else | |
16898 | cy_good=0 | |
16899 | fi | |
16900 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16901 | ||
16902 | CXXFLAGS=$cy_save | |
16903 | if test "x$cy_good" = x1; then : | |
16904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16905 | $as_echo "yes" >&6; } | |
16906 | ||
babf7fe8 | 16907 | for element in -Werror; do |
c10a2228 JF |
16908 | haveit= |
16909 | for x in $CXXFLAGS; do | |
16910 | ||
16911 | acl_save_prefix="$prefix" | |
16912 | prefix="$acl_final_prefix" | |
16913 | acl_save_exec_prefix="$exec_prefix" | |
16914 | exec_prefix="$acl_final_exec_prefix" | |
16915 | eval x=\"$x\" | |
16916 | exec_prefix="$acl_save_exec_prefix" | |
16917 | prefix="$acl_save_prefix" | |
16918 | ||
16919 | if test "X$x" = "X$element"; then | |
16920 | haveit=yes | |
16921 | break | |
16922 | fi | |
16923 | done | |
16924 | if test -z "$haveit"; then | |
16925 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16926 | fi | |
16927 | done | |
16928 | ||
16929 | ||
16930 | else | |
16931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16932 | $as_echo "no" >&6; } | |
16933 | fi | |
16934 | ||
16935 | ac_ext=cpp | |
16936 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16937 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16938 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16939 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16940 | ||
16941 | ||
16942 | ||
16943 | ac_ext=mm | |
16944 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
16945 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16946 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16947 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
16948 | ||
babf7fe8 JF |
16949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5 |
16950 | $as_echo_n "checking for c++ -ObjC -Werror... " >&6; } | |
c10a2228 JF |
16951 | |
16952 | cy_save=$OBJCXXFLAGS | |
16953 | ||
babf7fe8 | 16954 | for element in -Werror; do |
c10a2228 JF |
16955 | haveit= |
16956 | for x in $OBJCXXFLAGS; do | |
16957 | ||
16958 | acl_save_prefix="$prefix" | |
16959 | prefix="$acl_final_prefix" | |
16960 | acl_save_exec_prefix="$exec_prefix" | |
16961 | exec_prefix="$acl_final_exec_prefix" | |
16962 | eval x=\"$x\" | |
16963 | exec_prefix="$acl_save_exec_prefix" | |
16964 | prefix="$acl_save_prefix" | |
16965 | ||
16966 | if test "X$x" = "X$element"; then | |
16967 | haveit=yes | |
16968 | break | |
16969 | fi | |
16970 | done | |
16971 | if test -z "$haveit"; then | |
16972 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
16973 | fi | |
16974 | done | |
16975 | ||
16976 | ||
16977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16978 | /* end confdefs.h. */ | |
16979 | ||
16980 | _ACEOF | |
16981 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
16982 | cy_good=1 | |
16983 | else | |
16984 | cy_good=0 | |
16985 | fi | |
16986 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16987 | ||
16988 | OBJCXXFLAGS=$cy_save | |
16989 | if test "x$cy_good" = x1; then : | |
16990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16991 | $as_echo "yes" >&6; } | |
16992 | ||
babf7fe8 | 16993 | for element in -Werror; do |
c10a2228 JF |
16994 | haveit= |
16995 | for x in $OBJCXXFLAGS; do | |
16996 | ||
16997 | acl_save_prefix="$prefix" | |
16998 | prefix="$acl_final_prefix" | |
16999 | acl_save_exec_prefix="$exec_prefix" | |
17000 | exec_prefix="$acl_final_exec_prefix" | |
17001 | eval x=\"$x\" | |
17002 | exec_prefix="$acl_save_exec_prefix" | |
17003 | prefix="$acl_save_prefix" | |
17004 | ||
17005 | if test "X$x" = "X$element"; then | |
17006 | haveit=yes | |
17007 | break | |
17008 | fi | |
17009 | done | |
17010 | if test -z "$haveit"; then | |
17011 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
17012 | fi | |
17013 | done | |
17014 | ||
17015 | ||
17016 | else | |
17017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17018 | $as_echo "no" >&6; } | |
17019 | fi | |
17020 | ||
17021 | ac_ext=cpp | |
17022 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17023 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17024 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17025 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17026 | ||
17027 | ||
17028 | ||
17029 | ||
17030 | ||
17031 | ||
17032 | ac_ext=c | |
17033 | ac_cpp='$CPP $CPPFLAGS' | |
17034 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17035 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17036 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17037 | ||
babf7fe8 JF |
17038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5 |
17039 | $as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; } | |
c10a2228 JF |
17040 | |
17041 | cy_save=$CFLAGS | |
17042 | ||
babf7fe8 | 17043 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
17044 | haveit= |
17045 | for x in $CFLAGS; do | |
17046 | ||
17047 | acl_save_prefix="$prefix" | |
17048 | prefix="$acl_final_prefix" | |
17049 | acl_save_exec_prefix="$exec_prefix" | |
17050 | exec_prefix="$acl_final_exec_prefix" | |
17051 | eval x=\"$x\" | |
17052 | exec_prefix="$acl_save_exec_prefix" | |
17053 | prefix="$acl_save_prefix" | |
17054 | ||
17055 | if test "X$x" = "X$element"; then | |
17056 | haveit=yes | |
17057 | break | |
17058 | fi | |
17059 | done | |
17060 | if test -z "$haveit"; then | |
17061 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
17062 | fi | |
17063 | done | |
17064 | ||
17065 | ||
17066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17067 | /* end confdefs.h. */ | |
17068 | ||
17069 | _ACEOF | |
17070 | if ac_fn_c_try_compile "$LINENO"; then : | |
17071 | cy_good=1 | |
17072 | else | |
17073 | cy_good=0 | |
17074 | fi | |
17075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17076 | ||
17077 | CFLAGS=$cy_save | |
17078 | if test "x$cy_good" = x1; then : | |
17079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17080 | $as_echo "yes" >&6; } | |
17081 | ||
babf7fe8 | 17082 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
17083 | haveit= |
17084 | for x in $CFLAGS; do | |
17085 | ||
17086 | acl_save_prefix="$prefix" | |
17087 | prefix="$acl_final_prefix" | |
17088 | acl_save_exec_prefix="$exec_prefix" | |
17089 | exec_prefix="$acl_final_exec_prefix" | |
17090 | eval x=\"$x\" | |
17091 | exec_prefix="$acl_save_exec_prefix" | |
17092 | prefix="$acl_save_prefix" | |
17093 | ||
17094 | if test "X$x" = "X$element"; then | |
17095 | haveit=yes | |
17096 | break | |
17097 | fi | |
17098 | done | |
17099 | if test -z "$haveit"; then | |
17100 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
17101 | fi | |
17102 | done | |
17103 | ||
17104 | ||
17105 | else | |
17106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17107 | $as_echo "no" >&6; } | |
17108 | fi | |
17109 | ||
17110 | ac_ext=cpp | |
17111 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17112 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17113 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17114 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17115 | ||
17116 | ||
17117 | ||
17118 | ac_ext=cpp | |
17119 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17120 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17121 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17122 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17123 | ||
babf7fe8 JF |
17124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5 |
17125 | $as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; } | |
c10a2228 JF |
17126 | |
17127 | cy_save=$CXXFLAGS | |
17128 | ||
babf7fe8 | 17129 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
17130 | haveit= |
17131 | for x in $CXXFLAGS; do | |
17132 | ||
17133 | acl_save_prefix="$prefix" | |
17134 | prefix="$acl_final_prefix" | |
17135 | acl_save_exec_prefix="$exec_prefix" | |
17136 | exec_prefix="$acl_final_exec_prefix" | |
17137 | eval x=\"$x\" | |
17138 | exec_prefix="$acl_save_exec_prefix" | |
17139 | prefix="$acl_save_prefix" | |
17140 | ||
17141 | if test "X$x" = "X$element"; then | |
17142 | haveit=yes | |
17143 | break | |
17144 | fi | |
17145 | done | |
17146 | if test -z "$haveit"; then | |
17147 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17148 | fi | |
17149 | done | |
17150 | ||
17151 | ||
17152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17153 | /* end confdefs.h. */ | |
17154 | ||
17155 | _ACEOF | |
17156 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
17157 | cy_good=1 | |
17158 | else | |
17159 | cy_good=0 | |
17160 | fi | |
17161 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17162 | ||
17163 | CXXFLAGS=$cy_save | |
17164 | if test "x$cy_good" = x1; then : | |
17165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17166 | $as_echo "yes" >&6; } | |
17167 | ||
babf7fe8 | 17168 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
17169 | haveit= |
17170 | for x in $CXXFLAGS; do | |
17171 | ||
17172 | acl_save_prefix="$prefix" | |
17173 | prefix="$acl_final_prefix" | |
17174 | acl_save_exec_prefix="$exec_prefix" | |
17175 | exec_prefix="$acl_final_exec_prefix" | |
17176 | eval x=\"$x\" | |
17177 | exec_prefix="$acl_save_exec_prefix" | |
17178 | prefix="$acl_save_prefix" | |
17179 | ||
17180 | if test "X$x" = "X$element"; then | |
17181 | haveit=yes | |
17182 | break | |
17183 | fi | |
17184 | done | |
17185 | if test -z "$haveit"; then | |
17186 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17187 | fi | |
17188 | done | |
17189 | ||
17190 | ||
17191 | else | |
17192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17193 | $as_echo "no" >&6; } | |
17194 | fi | |
17195 | ||
17196 | ac_ext=cpp | |
17197 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17198 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17199 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17200 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17201 | ||
17202 | ||
17203 | ||
17204 | ac_ext=mm | |
17205 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
17206 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17207 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17208 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
17209 | ||
babf7fe8 JF |
17210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5 |
17211 | $as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; } | |
c10a2228 JF |
17212 | |
17213 | cy_save=$OBJCXXFLAGS | |
17214 | ||
babf7fe8 | 17215 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
17216 | haveit= |
17217 | for x in $OBJCXXFLAGS; do | |
17218 | ||
17219 | acl_save_prefix="$prefix" | |
17220 | prefix="$acl_final_prefix" | |
17221 | acl_save_exec_prefix="$exec_prefix" | |
17222 | exec_prefix="$acl_final_exec_prefix" | |
17223 | eval x=\"$x\" | |
17224 | exec_prefix="$acl_save_exec_prefix" | |
17225 | prefix="$acl_save_prefix" | |
17226 | ||
17227 | if test "X$x" = "X$element"; then | |
17228 | haveit=yes | |
17229 | break | |
17230 | fi | |
17231 | done | |
17232 | if test -z "$haveit"; then | |
17233 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
17234 | fi | |
17235 | done | |
17236 | ||
17237 | ||
17238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17239 | /* end confdefs.h. */ | |
17240 | ||
17241 | _ACEOF | |
17242 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
17243 | cy_good=1 | |
17244 | else | |
17245 | cy_good=0 | |
17246 | fi | |
17247 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17248 | ||
17249 | OBJCXXFLAGS=$cy_save | |
17250 | if test "x$cy_good" = x1; then : | |
17251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17252 | $as_echo "yes" >&6; } | |
17253 | ||
babf7fe8 | 17254 | for element in -Wno-deprecated-declarations; do |
c10a2228 JF |
17255 | haveit= |
17256 | for x in $OBJCXXFLAGS; do | |
17257 | ||
17258 | acl_save_prefix="$prefix" | |
17259 | prefix="$acl_final_prefix" | |
17260 | acl_save_exec_prefix="$exec_prefix" | |
17261 | exec_prefix="$acl_final_exec_prefix" | |
17262 | eval x=\"$x\" | |
17263 | exec_prefix="$acl_save_exec_prefix" | |
17264 | prefix="$acl_save_prefix" | |
17265 | ||
17266 | if test "X$x" = "X$element"; then | |
17267 | haveit=yes | |
17268 | break | |
17269 | fi | |
17270 | done | |
17271 | if test -z "$haveit"; then | |
17272 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
17273 | fi | |
17274 | done | |
17275 | ||
17276 | ||
17277 | else | |
17278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17279 | $as_echo "no" >&6; } | |
17280 | fi | |
17281 | ||
17282 | ac_ext=cpp | |
17283 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17284 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17285 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17286 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17287 | ||
17288 | ||
17289 | ||
17290 | ||
17291 | ||
babf7fe8 | 17292 | |
c10a2228 JF |
17293 | ac_ext=c |
17294 | ac_cpp='$CPP $CPPFLAGS' | |
17295 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17296 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17297 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17298 | ||
babf7fe8 JF |
17299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5 |
17300 | $as_echo_n "checking for cc -Wno-dangling-else... " >&6; } | |
c10a2228 JF |
17301 | |
17302 | cy_save=$CFLAGS | |
17303 | ||
babf7fe8 | 17304 | for element in -Wno-dangling-else; do |
c10a2228 JF |
17305 | haveit= |
17306 | for x in $CFLAGS; do | |
17307 | ||
17308 | acl_save_prefix="$prefix" | |
17309 | prefix="$acl_final_prefix" | |
17310 | acl_save_exec_prefix="$exec_prefix" | |
17311 | exec_prefix="$acl_final_exec_prefix" | |
17312 | eval x=\"$x\" | |
17313 | exec_prefix="$acl_save_exec_prefix" | |
17314 | prefix="$acl_save_prefix" | |
17315 | ||
17316 | if test "X$x" = "X$element"; then | |
17317 | haveit=yes | |
17318 | break | |
17319 | fi | |
17320 | done | |
17321 | if test -z "$haveit"; then | |
17322 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
17323 | fi | |
17324 | done | |
17325 | ||
17326 | ||
17327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17328 | /* end confdefs.h. */ | |
17329 | ||
17330 | _ACEOF | |
17331 | if ac_fn_c_try_compile "$LINENO"; then : | |
17332 | cy_good=1 | |
17333 | else | |
17334 | cy_good=0 | |
17335 | fi | |
17336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17337 | ||
17338 | CFLAGS=$cy_save | |
17339 | if test "x$cy_good" = x1; then : | |
17340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17341 | $as_echo "yes" >&6; } | |
17342 | ||
babf7fe8 | 17343 | for element in -Wno-dangling-else; do |
c10a2228 JF |
17344 | haveit= |
17345 | for x in $CFLAGS; do | |
17346 | ||
17347 | acl_save_prefix="$prefix" | |
17348 | prefix="$acl_final_prefix" | |
17349 | acl_save_exec_prefix="$exec_prefix" | |
17350 | exec_prefix="$acl_final_exec_prefix" | |
17351 | eval x=\"$x\" | |
17352 | exec_prefix="$acl_save_exec_prefix" | |
17353 | prefix="$acl_save_prefix" | |
17354 | ||
17355 | if test "X$x" = "X$element"; then | |
17356 | haveit=yes | |
17357 | break | |
17358 | fi | |
17359 | done | |
17360 | if test -z "$haveit"; then | |
17361 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
17362 | fi | |
17363 | done | |
17364 | ||
17365 | ||
17366 | else | |
17367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17368 | $as_echo "no" >&6; } | |
17369 | fi | |
17370 | ||
17371 | ac_ext=cpp | |
17372 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17373 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17374 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17375 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17376 | ||
17377 | ||
17378 | ||
17379 | ac_ext=cpp | |
17380 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17381 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17382 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17383 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17384 | ||
babf7fe8 JF |
17385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5 |
17386 | $as_echo_n "checking for c++ -Wno-dangling-else... " >&6; } | |
c10a2228 JF |
17387 | |
17388 | cy_save=$CXXFLAGS | |
17389 | ||
babf7fe8 | 17390 | for element in -Wno-dangling-else; do |
c10a2228 JF |
17391 | haveit= |
17392 | for x in $CXXFLAGS; do | |
17393 | ||
17394 | acl_save_prefix="$prefix" | |
17395 | prefix="$acl_final_prefix" | |
17396 | acl_save_exec_prefix="$exec_prefix" | |
17397 | exec_prefix="$acl_final_exec_prefix" | |
17398 | eval x=\"$x\" | |
17399 | exec_prefix="$acl_save_exec_prefix" | |
17400 | prefix="$acl_save_prefix" | |
17401 | ||
17402 | if test "X$x" = "X$element"; then | |
17403 | haveit=yes | |
17404 | break | |
17405 | fi | |
17406 | done | |
17407 | if test -z "$haveit"; then | |
17408 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17409 | fi | |
17410 | done | |
17411 | ||
17412 | ||
17413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17414 | /* end confdefs.h. */ | |
17415 | ||
17416 | _ACEOF | |
17417 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
17418 | cy_good=1 | |
17419 | else | |
17420 | cy_good=0 | |
17421 | fi | |
17422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17423 | ||
17424 | CXXFLAGS=$cy_save | |
17425 | if test "x$cy_good" = x1; then : | |
17426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17427 | $as_echo "yes" >&6; } | |
17428 | ||
babf7fe8 | 17429 | for element in -Wno-dangling-else; do |
c10a2228 JF |
17430 | haveit= |
17431 | for x in $CXXFLAGS; do | |
17432 | ||
17433 | acl_save_prefix="$prefix" | |
17434 | prefix="$acl_final_prefix" | |
17435 | acl_save_exec_prefix="$exec_prefix" | |
17436 | exec_prefix="$acl_final_exec_prefix" | |
17437 | eval x=\"$x\" | |
17438 | exec_prefix="$acl_save_exec_prefix" | |
17439 | prefix="$acl_save_prefix" | |
17440 | ||
17441 | if test "X$x" = "X$element"; then | |
17442 | haveit=yes | |
17443 | break | |
17444 | fi | |
17445 | done | |
17446 | if test -z "$haveit"; then | |
17447 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17448 | fi | |
17449 | done | |
17450 | ||
17451 | ||
17452 | else | |
17453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17454 | $as_echo "no" >&6; } | |
17455 | fi | |
17456 | ||
17457 | ac_ext=cpp | |
17458 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17459 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17460 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17461 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17462 | ||
17463 | ||
17464 | ||
17465 | ac_ext=mm | |
17466 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
17467 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17468 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17469 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
17470 | ||
babf7fe8 JF |
17471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5 |
17472 | $as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; } | |
c10a2228 JF |
17473 | |
17474 | cy_save=$OBJCXXFLAGS | |
17475 | ||
babf7fe8 | 17476 | for element in -Wno-dangling-else; do |
c10a2228 JF |
17477 | haveit= |
17478 | for x in $OBJCXXFLAGS; do | |
17479 | ||
17480 | acl_save_prefix="$prefix" | |
17481 | prefix="$acl_final_prefix" | |
17482 | acl_save_exec_prefix="$exec_prefix" | |
17483 | exec_prefix="$acl_final_exec_prefix" | |
17484 | eval x=\"$x\" | |
17485 | exec_prefix="$acl_save_exec_prefix" | |
17486 | prefix="$acl_save_prefix" | |
17487 | ||
17488 | if test "X$x" = "X$element"; then | |
17489 | haveit=yes | |
17490 | break | |
17491 | fi | |
17492 | done | |
17493 | if test -z "$haveit"; then | |
17494 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
17495 | fi | |
17496 | done | |
17497 | ||
17498 | ||
17499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17500 | /* end confdefs.h. */ | |
17501 | ||
17502 | _ACEOF | |
17503 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
17504 | cy_good=1 | |
17505 | else | |
17506 | cy_good=0 | |
17507 | fi | |
17508 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17509 | ||
17510 | OBJCXXFLAGS=$cy_save | |
17511 | if test "x$cy_good" = x1; then : | |
17512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17513 | $as_echo "yes" >&6; } | |
17514 | ||
babf7fe8 | 17515 | for element in -Wno-dangling-else; do |
c10a2228 JF |
17516 | haveit= |
17517 | for x in $OBJCXXFLAGS; do | |
17518 | ||
17519 | acl_save_prefix="$prefix" | |
17520 | prefix="$acl_final_prefix" | |
17521 | acl_save_exec_prefix="$exec_prefix" | |
17522 | exec_prefix="$acl_final_exec_prefix" | |
17523 | eval x=\"$x\" | |
17524 | exec_prefix="$acl_save_exec_prefix" | |
17525 | prefix="$acl_save_prefix" | |
17526 | ||
17527 | if test "X$x" = "X$element"; then | |
17528 | haveit=yes | |
17529 | break | |
17530 | fi | |
17531 | done | |
17532 | if test -z "$haveit"; then | |
17533 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
17534 | fi | |
17535 | done | |
17536 | ||
17537 | ||
17538 | else | |
17539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17540 | $as_echo "no" >&6; } | |
17541 | fi | |
17542 | ||
17543 | ac_ext=cpp | |
17544 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17545 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17546 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17547 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17548 | ||
17549 | ||
17550 | ||
17551 | ||
17552 | ||
17553 | ac_ext=c | |
17554 | ac_cpp='$CPP $CPPFLAGS' | |
17555 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17556 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17557 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17558 | ||
babf7fe8 JF |
17559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5 |
17560 | $as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; } | |
c10a2228 JF |
17561 | |
17562 | cy_save=$CFLAGS | |
17563 | ||
babf7fe8 | 17564 | for element in -Wno-overloaded-virtual; do |
1504c9b8 | 17565 | haveit= |
c10a2228 | 17566 | for x in $CFLAGS; do |
1504c9b8 DWT |
17567 | |
17568 | acl_save_prefix="$prefix" | |
17569 | prefix="$acl_final_prefix" | |
17570 | acl_save_exec_prefix="$exec_prefix" | |
17571 | exec_prefix="$acl_final_exec_prefix" | |
17572 | eval x=\"$x\" | |
17573 | exec_prefix="$acl_save_exec_prefix" | |
17574 | prefix="$acl_save_prefix" | |
17575 | ||
17576 | if test "X$x" = "X$element"; then | |
17577 | haveit=yes | |
17578 | break | |
17579 | fi | |
17580 | done | |
17581 | if test -z "$haveit"; then | |
c10a2228 | 17582 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
1504c9b8 DWT |
17583 | fi |
17584 | done | |
17585 | ||
66170b30 JF |
17586 | |
17587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1504c9b8 DWT |
17588 | /* end confdefs.h. */ |
17589 | ||
66170b30 | 17590 | _ACEOF |
c10a2228 | 17591 | if ac_fn_c_try_compile "$LINENO"; then : |
66170b30 JF |
17592 | cy_good=1 |
17593 | else | |
17594 | cy_good=0 | |
17595 | fi | |
17596 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17597 | ||
c10a2228 | 17598 | CFLAGS=$cy_save |
66170b30 JF |
17599 | if test "x$cy_good" = x1; then : |
17600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17601 | $as_echo "yes" >&6; } | |
17602 | ||
babf7fe8 | 17603 | for element in -Wno-overloaded-virtual; do |
66170b30 JF |
17604 | haveit= |
17605 | for x in $CFLAGS; do | |
17606 | ||
17607 | acl_save_prefix="$prefix" | |
17608 | prefix="$acl_final_prefix" | |
17609 | acl_save_exec_prefix="$exec_prefix" | |
17610 | exec_prefix="$acl_final_exec_prefix" | |
17611 | eval x=\"$x\" | |
17612 | exec_prefix="$acl_save_exec_prefix" | |
17613 | prefix="$acl_save_prefix" | |
17614 | ||
17615 | if test "X$x" = "X$element"; then | |
17616 | haveit=yes | |
17617 | break | |
17618 | fi | |
17619 | done | |
17620 | if test -z "$haveit"; then | |
17621 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
17622 | fi | |
17623 | done | |
17624 | ||
17625 | ||
c10a2228 JF |
17626 | else |
17627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17628 | $as_echo "no" >&6; } | |
17629 | fi | |
17630 | ||
17631 | ac_ext=cpp | |
17632 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17633 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17634 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17635 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17636 | ||
17637 | ||
17638 | ||
17639 | ac_ext=cpp | |
17640 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17641 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17642 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17643 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17644 | ||
babf7fe8 JF |
17645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5 |
17646 | $as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; } | |
c10a2228 JF |
17647 | |
17648 | cy_save=$CXXFLAGS | |
17649 | ||
babf7fe8 | 17650 | for element in -Wno-overloaded-virtual; do |
66170b30 JF |
17651 | haveit= |
17652 | for x in $CXXFLAGS; do | |
17653 | ||
17654 | acl_save_prefix="$prefix" | |
17655 | prefix="$acl_final_prefix" | |
17656 | acl_save_exec_prefix="$exec_prefix" | |
17657 | exec_prefix="$acl_final_exec_prefix" | |
17658 | eval x=\"$x\" | |
17659 | exec_prefix="$acl_save_exec_prefix" | |
17660 | prefix="$acl_save_prefix" | |
17661 | ||
17662 | if test "X$x" = "X$element"; then | |
17663 | haveit=yes | |
17664 | break | |
17665 | fi | |
17666 | done | |
17667 | if test -z "$haveit"; then | |
17668 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17669 | fi | |
17670 | done | |
17671 | ||
17672 | ||
c10a2228 JF |
17673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17674 | /* end confdefs.h. */ | |
17675 | ||
17676 | _ACEOF | |
17677 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
17678 | cy_good=1 | |
17679 | else | |
17680 | cy_good=0 | |
17681 | fi | |
17682 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17683 | ||
17684 | CXXFLAGS=$cy_save | |
17685 | if test "x$cy_good" = x1; then : | |
17686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17687 | $as_echo "yes" >&6; } | |
17688 | ||
babf7fe8 | 17689 | for element in -Wno-overloaded-virtual; do |
66170b30 | 17690 | haveit= |
c10a2228 | 17691 | for x in $CXXFLAGS; do |
66170b30 JF |
17692 | |
17693 | acl_save_prefix="$prefix" | |
17694 | prefix="$acl_final_prefix" | |
17695 | acl_save_exec_prefix="$exec_prefix" | |
17696 | exec_prefix="$acl_final_exec_prefix" | |
17697 | eval x=\"$x\" | |
17698 | exec_prefix="$acl_save_exec_prefix" | |
17699 | prefix="$acl_save_prefix" | |
17700 | ||
17701 | if test "X$x" = "X$element"; then | |
17702 | haveit=yes | |
17703 | break | |
17704 | fi | |
17705 | done | |
17706 | if test -z "$haveit"; then | |
c10a2228 | 17707 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" |
66170b30 JF |
17708 | fi |
17709 | done | |
17710 | ||
17711 | ||
66170b30 JF |
17712 | else |
17713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17714 | $as_echo "no" >&6; } | |
17715 | fi | |
17716 | ||
c10a2228 JF |
17717 | ac_ext=cpp |
17718 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17719 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17720 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17721 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17722 | ||
66170b30 JF |
17723 | |
17724 | ||
c10a2228 JF |
17725 | ac_ext=mm |
17726 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
17727 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17728 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17729 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
17730 | ||
babf7fe8 JF |
17731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5 |
17732 | $as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; } | |
66170b30 | 17733 | |
c10a2228 | 17734 | cy_save=$OBJCXXFLAGS |
66170b30 | 17735 | |
babf7fe8 | 17736 | for element in -Wno-overloaded-virtual; do |
66170b30 | 17737 | haveit= |
c10a2228 | 17738 | for x in $OBJCXXFLAGS; do |
66170b30 JF |
17739 | |
17740 | acl_save_prefix="$prefix" | |
17741 | prefix="$acl_final_prefix" | |
17742 | acl_save_exec_prefix="$exec_prefix" | |
17743 | exec_prefix="$acl_final_exec_prefix" | |
17744 | eval x=\"$x\" | |
17745 | exec_prefix="$acl_save_exec_prefix" | |
17746 | prefix="$acl_save_prefix" | |
17747 | ||
17748 | if test "X$x" = "X$element"; then | |
17749 | haveit=yes | |
17750 | break | |
17751 | fi | |
17752 | done | |
17753 | if test -z "$haveit"; then | |
c10a2228 | 17754 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
66170b30 JF |
17755 | fi |
17756 | done | |
17757 | ||
17758 | ||
17759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17760 | /* end confdefs.h. */ | |
1504c9b8 | 17761 | |
1504c9b8 | 17762 | _ACEOF |
c10a2228 | 17763 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
66170b30 JF |
17764 | cy_good=1 |
17765 | else | |
17766 | cy_good=0 | |
17767 | fi | |
17768 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17769 | ||
c10a2228 | 17770 | OBJCXXFLAGS=$cy_save |
66170b30 JF |
17771 | if test "x$cy_good" = x1; then : |
17772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17773 | $as_echo "yes" >&6; } | |
1504c9b8 | 17774 | |
babf7fe8 | 17775 | for element in -Wno-overloaded-virtual; do |
1504c9b8 | 17776 | haveit= |
c10a2228 | 17777 | for x in $OBJCXXFLAGS; do |
1504c9b8 DWT |
17778 | |
17779 | acl_save_prefix="$prefix" | |
17780 | prefix="$acl_final_prefix" | |
17781 | acl_save_exec_prefix="$exec_prefix" | |
17782 | exec_prefix="$acl_final_exec_prefix" | |
17783 | eval x=\"$x\" | |
17784 | exec_prefix="$acl_save_exec_prefix" | |
17785 | prefix="$acl_save_prefix" | |
17786 | ||
17787 | if test "X$x" = "X$element"; then | |
17788 | haveit=yes | |
17789 | break | |
17790 | fi | |
17791 | done | |
17792 | if test -z "$haveit"; then | |
c10a2228 | 17793 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
1504c9b8 DWT |
17794 | fi |
17795 | done | |
17796 | ||
17797 | ||
c10a2228 JF |
17798 | else |
17799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17800 | $as_echo "no" >&6; } | |
17801 | fi | |
17802 | ||
17803 | ac_ext=cpp | |
17804 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17805 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17806 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17807 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17808 | ||
17809 | ||
17810 | ||
17811 | ||
17812 | ||
17813 | ac_ext=c | |
17814 | ac_cpp='$CPP $CPPFLAGS' | |
17815 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17816 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17817 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17818 | ||
babf7fe8 JF |
17819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5 |
17820 | $as_echo_n "checking for cc -Wno-parentheses... " >&6; } | |
c10a2228 JF |
17821 | |
17822 | cy_save=$CFLAGS | |
17823 | ||
babf7fe8 | 17824 | for element in -Wno-parentheses; do |
66170b30 | 17825 | haveit= |
c10a2228 | 17826 | for x in $CFLAGS; do |
66170b30 JF |
17827 | |
17828 | acl_save_prefix="$prefix" | |
17829 | prefix="$acl_final_prefix" | |
17830 | acl_save_exec_prefix="$exec_prefix" | |
17831 | exec_prefix="$acl_final_exec_prefix" | |
17832 | eval x=\"$x\" | |
17833 | exec_prefix="$acl_save_exec_prefix" | |
17834 | prefix="$acl_save_prefix" | |
17835 | ||
17836 | if test "X$x" = "X$element"; then | |
17837 | haveit=yes | |
17838 | break | |
17839 | fi | |
17840 | done | |
17841 | if test -z "$haveit"; then | |
c10a2228 | 17842 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
66170b30 JF |
17843 | fi |
17844 | done | |
17845 | ||
17846 | ||
c10a2228 JF |
17847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17848 | /* end confdefs.h. */ | |
17849 | ||
17850 | _ACEOF | |
17851 | if ac_fn_c_try_compile "$LINENO"; then : | |
17852 | cy_good=1 | |
17853 | else | |
17854 | cy_good=0 | |
17855 | fi | |
17856 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17857 | ||
17858 | CFLAGS=$cy_save | |
17859 | if test "x$cy_good" = x1; then : | |
17860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17861 | $as_echo "yes" >&6; } | |
17862 | ||
babf7fe8 | 17863 | for element in -Wno-parentheses; do |
66170b30 | 17864 | haveit= |
c10a2228 | 17865 | for x in $CFLAGS; do |
66170b30 JF |
17866 | |
17867 | acl_save_prefix="$prefix" | |
17868 | prefix="$acl_final_prefix" | |
17869 | acl_save_exec_prefix="$exec_prefix" | |
17870 | exec_prefix="$acl_final_exec_prefix" | |
17871 | eval x=\"$x\" | |
17872 | exec_prefix="$acl_save_exec_prefix" | |
17873 | prefix="$acl_save_prefix" | |
17874 | ||
17875 | if test "X$x" = "X$element"; then | |
17876 | haveit=yes | |
17877 | break | |
17878 | fi | |
17879 | done | |
17880 | if test -z "$haveit"; then | |
c10a2228 | 17881 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
66170b30 JF |
17882 | fi |
17883 | done | |
17884 | ||
17885 | ||
66170b30 JF |
17886 | else |
17887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17888 | $as_echo "no" >&6; } | |
17889 | fi | |
17890 | ||
c10a2228 JF |
17891 | ac_ext=cpp |
17892 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17893 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17894 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17895 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17896 | ||
66170b30 JF |
17897 | |
17898 | ||
c10a2228 JF |
17899 | ac_ext=cpp |
17900 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17901 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17902 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17903 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17904 | ||
babf7fe8 JF |
17905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5 |
17906 | $as_echo_n "checking for c++ -Wno-parentheses... " >&6; } | |
66170b30 JF |
17907 | |
17908 | cy_save=$CXXFLAGS | |
17909 | ||
babf7fe8 | 17910 | for element in -Wno-parentheses; do |
66170b30 JF |
17911 | haveit= |
17912 | for x in $CXXFLAGS; do | |
17913 | ||
17914 | acl_save_prefix="$prefix" | |
17915 | prefix="$acl_final_prefix" | |
17916 | acl_save_exec_prefix="$exec_prefix" | |
17917 | exec_prefix="$acl_final_exec_prefix" | |
17918 | eval x=\"$x\" | |
17919 | exec_prefix="$acl_save_exec_prefix" | |
17920 | prefix="$acl_save_prefix" | |
17921 | ||
17922 | if test "X$x" = "X$element"; then | |
17923 | haveit=yes | |
17924 | break | |
17925 | fi | |
17926 | done | |
17927 | if test -z "$haveit"; then | |
17928 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17929 | fi | |
17930 | done | |
17931 | ||
17932 | ||
17933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17934 | /* end confdefs.h. */ | |
17935 | ||
17936 | _ACEOF | |
17937 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
17938 | cy_good=1 | |
17939 | else | |
17940 | cy_good=0 | |
17941 | fi | |
17942 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17943 | ||
17944 | CXXFLAGS=$cy_save | |
17945 | if test "x$cy_good" = x1; then : | |
17946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17947 | $as_echo "yes" >&6; } | |
17948 | ||
babf7fe8 | 17949 | for element in -Wno-parentheses; do |
1504c9b8 | 17950 | haveit= |
c10a2228 | 17951 | for x in $CXXFLAGS; do |
1504c9b8 DWT |
17952 | |
17953 | acl_save_prefix="$prefix" | |
17954 | prefix="$acl_final_prefix" | |
17955 | acl_save_exec_prefix="$exec_prefix" | |
17956 | exec_prefix="$acl_final_exec_prefix" | |
17957 | eval x=\"$x\" | |
17958 | exec_prefix="$acl_save_exec_prefix" | |
17959 | prefix="$acl_save_prefix" | |
17960 | ||
17961 | if test "X$x" = "X$element"; then | |
17962 | haveit=yes | |
17963 | break | |
17964 | fi | |
17965 | done | |
17966 | if test -z "$haveit"; then | |
c10a2228 | 17967 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" |
1504c9b8 DWT |
17968 | fi |
17969 | done | |
17970 | ||
17971 | ||
c10a2228 JF |
17972 | else |
17973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17974 | $as_echo "no" >&6; } | |
17975 | fi | |
17976 | ||
17977 | ac_ext=cpp | |
17978 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17979 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17980 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17981 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17982 | ||
17983 | ||
17984 | ||
17985 | ac_ext=mm | |
17986 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
17987 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17988 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17989 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
17990 | ||
babf7fe8 JF |
17991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5 |
17992 | $as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; } | |
c10a2228 JF |
17993 | |
17994 | cy_save=$OBJCXXFLAGS | |
17995 | ||
babf7fe8 | 17996 | for element in -Wno-parentheses; do |
1504c9b8 | 17997 | haveit= |
c10a2228 | 17998 | for x in $OBJCXXFLAGS; do |
1504c9b8 DWT |
17999 | |
18000 | acl_save_prefix="$prefix" | |
18001 | prefix="$acl_final_prefix" | |
18002 | acl_save_exec_prefix="$exec_prefix" | |
18003 | exec_prefix="$acl_final_exec_prefix" | |
18004 | eval x=\"$x\" | |
18005 | exec_prefix="$acl_save_exec_prefix" | |
18006 | prefix="$acl_save_prefix" | |
18007 | ||
18008 | if test "X$x" = "X$element"; then | |
18009 | haveit=yes | |
18010 | break | |
18011 | fi | |
18012 | done | |
18013 | if test -z "$haveit"; then | |
c10a2228 | 18014 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
1504c9b8 DWT |
18015 | fi |
18016 | done | |
18017 | ||
18018 | ||
c10a2228 JF |
18019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18020 | /* end confdefs.h. */ | |
18021 | ||
18022 | _ACEOF | |
18023 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
18024 | cy_good=1 | |
18025 | else | |
18026 | cy_good=0 | |
18027 | fi | |
18028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18029 | ||
18030 | OBJCXXFLAGS=$cy_save | |
18031 | if test "x$cy_good" = x1; then : | |
18032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18033 | $as_echo "yes" >&6; } | |
18034 | ||
babf7fe8 | 18035 | for element in -Wno-parentheses; do |
1504c9b8 | 18036 | haveit= |
c10a2228 | 18037 | for x in $OBJCXXFLAGS; do |
1504c9b8 DWT |
18038 | |
18039 | acl_save_prefix="$prefix" | |
18040 | prefix="$acl_final_prefix" | |
18041 | acl_save_exec_prefix="$exec_prefix" | |
18042 | exec_prefix="$acl_final_exec_prefix" | |
18043 | eval x=\"$x\" | |
18044 | exec_prefix="$acl_save_exec_prefix" | |
18045 | prefix="$acl_save_prefix" | |
18046 | ||
18047 | if test "X$x" = "X$element"; then | |
18048 | haveit=yes | |
18049 | break | |
18050 | fi | |
18051 | done | |
18052 | if test -z "$haveit"; then | |
c10a2228 | 18053 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
1504c9b8 DWT |
18054 | fi |
18055 | done | |
18056 | ||
18057 | ||
66170b30 JF |
18058 | else |
18059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18060 | $as_echo "no" >&6; } | |
1504c9b8 | 18061 | fi |
1504c9b8 | 18062 | |
c10a2228 JF |
18063 | ac_ext=cpp |
18064 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18065 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18066 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18067 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18068 | ||
18069 | ||
1504c9b8 | 18070 | |
1504c9b8 | 18071 | |
1504c9b8 | 18072 | |
babf7fe8 JF |
18073 | ac_ext=c |
18074 | ac_cpp='$CPP $CPPFLAGS' | |
18075 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18076 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18077 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1504c9b8 | 18078 | |
babf7fe8 JF |
18079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5 |
18080 | $as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; } | |
18081 | ||
18082 | cy_save=$CFLAGS | |
18083 | ||
18084 | for element in -Wno-unneeded-internal-declaration; do | |
1504c9b8 | 18085 | haveit= |
babf7fe8 | 18086 | for x in $CFLAGS; do |
1504c9b8 DWT |
18087 | |
18088 | acl_save_prefix="$prefix" | |
18089 | prefix="$acl_final_prefix" | |
18090 | acl_save_exec_prefix="$exec_prefix" | |
18091 | exec_prefix="$acl_final_exec_prefix" | |
18092 | eval x=\"$x\" | |
18093 | exec_prefix="$acl_save_exec_prefix" | |
18094 | prefix="$acl_save_prefix" | |
18095 | ||
18096 | if test "X$x" = "X$element"; then | |
18097 | haveit=yes | |
18098 | break | |
18099 | fi | |
18100 | done | |
18101 | if test -z "$haveit"; then | |
babf7fe8 | 18102 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
1504c9b8 DWT |
18103 | fi |
18104 | done | |
18105 | ||
66170b30 JF |
18106 | |
18107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1504c9b8 DWT |
18108 | /* end confdefs.h. */ |
18109 | ||
a243b558 | 18110 | _ACEOF |
babf7fe8 | 18111 | if ac_fn_c_try_compile "$LINENO"; then : |
a243b558 JF |
18112 | cy_good=1 |
18113 | else | |
18114 | cy_good=0 | |
18115 | fi | |
babf7fe8 | 18116 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1504c9b8 | 18117 | |
babf7fe8 | 18118 | CFLAGS=$cy_save |
a243b558 JF |
18119 | if test "x$cy_good" = x1; then : |
18120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18121 | $as_echo "yes" >&6; } | |
66170b30 | 18122 | |
babf7fe8 | 18123 | for element in -Wno-unneeded-internal-declaration; do |
1504c9b8 | 18124 | haveit= |
babf7fe8 | 18125 | for x in $CFLAGS; do |
1504c9b8 DWT |
18126 | |
18127 | acl_save_prefix="$prefix" | |
18128 | prefix="$acl_final_prefix" | |
18129 | acl_save_exec_prefix="$exec_prefix" | |
18130 | exec_prefix="$acl_final_exec_prefix" | |
18131 | eval x=\"$x\" | |
18132 | exec_prefix="$acl_save_exec_prefix" | |
18133 | prefix="$acl_save_prefix" | |
18134 | ||
18135 | if test "X$x" = "X$element"; then | |
18136 | haveit=yes | |
18137 | break | |
18138 | fi | |
18139 | done | |
18140 | if test -z "$haveit"; then | |
babf7fe8 | 18141 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
1504c9b8 DWT |
18142 | fi |
18143 | done | |
18144 | ||
18145 | ||
18146 | else | |
66170b30 JF |
18147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18148 | $as_echo "no" >&6; } | |
1504c9b8 DWT |
18149 | fi |
18150 | ||
babf7fe8 JF |
18151 | ac_ext=cpp |
18152 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18153 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18154 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18155 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
296ee9a6 | 18156 | |
9c60689e | 18157 | |
632b71ea | 18158 | |
babf7fe8 JF |
18159 | ac_ext=cpp |
18160 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18161 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18162 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18163 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
632b71ea | 18164 | |
babf7fe8 JF |
18165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5 |
18166 | $as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; } | |
9c60689e | 18167 | |
babf7fe8 | 18168 | cy_save=$CXXFLAGS |
9c60689e | 18169 | |
babf7fe8 JF |
18170 | for element in -Wno-unneeded-internal-declaration; do |
18171 | haveit= | |
18172 | for x in $CXXFLAGS; do | |
9c60689e | 18173 | |
babf7fe8 JF |
18174 | acl_save_prefix="$prefix" |
18175 | prefix="$acl_final_prefix" | |
18176 | acl_save_exec_prefix="$exec_prefix" | |
18177 | exec_prefix="$acl_final_exec_prefix" | |
18178 | eval x=\"$x\" | |
18179 | exec_prefix="$acl_save_exec_prefix" | |
18180 | prefix="$acl_save_prefix" | |
66170b30 | 18181 | |
babf7fe8 JF |
18182 | if test "X$x" = "X$element"; then |
18183 | haveit=yes | |
18184 | break | |
18185 | fi | |
18186 | done | |
18187 | if test -z "$haveit"; then | |
18188 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
18189 | fi | |
18190 | done | |
7eda51e0 | 18191 | |
7eda51e0 | 18192 | |
babf7fe8 JF |
18193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18194 | /* end confdefs.h. */ | |
7eda51e0 | 18195 | |
7eda51e0 | 18196 | _ACEOF |
babf7fe8 JF |
18197 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18198 | cy_good=1 | |
9c60689e | 18199 | else |
babf7fe8 | 18200 | cy_good=0 |
9c60689e | 18201 | fi |
babf7fe8 | 18202 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7eda51e0 | 18203 | |
babf7fe8 JF |
18204 | CXXFLAGS=$cy_save |
18205 | if test "x$cy_good" = x1; then : | |
18206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18207 | $as_echo "yes" >&6; } | |
7eda51e0 | 18208 | |
babf7fe8 | 18209 | for element in -Wno-unneeded-internal-declaration; do |
7eda51e0 | 18210 | haveit= |
babf7fe8 | 18211 | for x in $CXXFLAGS; do |
9c60689e | 18212 | |
7eda51e0 JF |
18213 | acl_save_prefix="$prefix" |
18214 | prefix="$acl_final_prefix" | |
18215 | acl_save_exec_prefix="$exec_prefix" | |
18216 | exec_prefix="$acl_final_exec_prefix" | |
18217 | eval x=\"$x\" | |
18218 | exec_prefix="$acl_save_exec_prefix" | |
18219 | prefix="$acl_save_prefix" | |
9c60689e | 18220 | |
7eda51e0 JF |
18221 | if test "X$x" = "X$element"; then |
18222 | haveit=yes | |
18223 | break | |
18224 | fi | |
18225 | done | |
18226 | if test -z "$haveit"; then | |
babf7fe8 | 18227 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" |
7eda51e0 JF |
18228 | fi |
18229 | done | |
9c60689e | 18230 | |
9c60689e | 18231 | |
5053a6d1 | 18232 | else |
babf7fe8 JF |
18233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18234 | $as_echo "no" >&6; } | |
632b71ea DWT |
18235 | fi |
18236 | ||
babf7fe8 JF |
18237 | ac_ext=cpp |
18238 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18239 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18240 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18241 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
632b71ea DWT |
18242 | |
18243 | ||
5053a6d1 | 18244 | |
babf7fe8 JF |
18245 | ac_ext=mm |
18246 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
18247 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18248 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18249 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
5053a6d1 | 18250 | |
babf7fe8 JF |
18251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5 |
18252 | $as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; } | |
632b71ea | 18253 | |
babf7fe8 | 18254 | cy_save=$OBJCXXFLAGS |
632b71ea | 18255 | |
babf7fe8 | 18256 | for element in -Wno-unneeded-internal-declaration; do |
5053a6d1 | 18257 | haveit= |
babf7fe8 | 18258 | for x in $OBJCXXFLAGS; do |
632b71ea DWT |
18259 | |
18260 | acl_save_prefix="$prefix" | |
18261 | prefix="$acl_final_prefix" | |
18262 | acl_save_exec_prefix="$exec_prefix" | |
18263 | exec_prefix="$acl_final_exec_prefix" | |
5053a6d1 | 18264 | eval x=\"$x\" |
632b71ea DWT |
18265 | exec_prefix="$acl_save_exec_prefix" |
18266 | prefix="$acl_save_prefix" | |
18267 | ||
5053a6d1 DWT |
18268 | if test "X$x" = "X$element"; then |
18269 | haveit=yes | |
18270 | break | |
18271 | fi | |
18272 | done | |
18273 | if test -z "$haveit"; then | |
babf7fe8 | 18274 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
5053a6d1 DWT |
18275 | fi |
18276 | done | |
18277 | ||
66170b30 | 18278 | |
babf7fe8 JF |
18279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18280 | /* end confdefs.h. */ | |
18281 | ||
18282 | _ACEOF | |
18283 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
18284 | cy_good=1 | |
18285 | else | |
18286 | cy_good=0 | |
18287 | fi | |
18288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18289 | ||
18290 | OBJCXXFLAGS=$cy_save | |
18291 | if test "x$cy_good" = x1; then : | |
18292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18293 | $as_echo "yes" >&6; } | |
18294 | ||
18295 | for element in -Wno-unneeded-internal-declaration; do | |
7eda51e0 | 18296 | haveit= |
babf7fe8 | 18297 | for x in $OBJCXXFLAGS; do |
7eda51e0 JF |
18298 | |
18299 | acl_save_prefix="$prefix" | |
18300 | prefix="$acl_final_prefix" | |
18301 | acl_save_exec_prefix="$exec_prefix" | |
18302 | exec_prefix="$acl_final_exec_prefix" | |
18303 | eval x=\"$x\" | |
18304 | exec_prefix="$acl_save_exec_prefix" | |
18305 | prefix="$acl_save_prefix" | |
18306 | ||
18307 | if test "X$x" = "X$element"; then | |
18308 | haveit=yes | |
18309 | break | |
18310 | fi | |
18311 | done | |
18312 | if test -z "$haveit"; then | |
babf7fe8 | 18313 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
7eda51e0 JF |
18314 | fi |
18315 | done | |
66170b30 JF |
18316 | |
18317 | ||
babf7fe8 JF |
18318 | else |
18319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18320 | $as_echo "no" >&6; } | |
5053a6d1 | 18321 | fi |
7eda51e0 | 18322 | |
babf7fe8 JF |
18323 | ac_ext=cpp |
18324 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18325 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18326 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18327 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5053a6d1 | 18328 | |
5053a6d1 DWT |
18329 | |
18330 | ||
5053a6d1 | 18331 | |
babf7fe8 JF |
18332 | |
18333 | ||
abc804fa JF |
18334 | for cy_arch in ppc ppc64 i386 x86_64 armv6; do |
18335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -arch $cy_arch" >&5 | |
18336 | $as_echo_n "checking for -arch $cy_arch... " >&6; } | |
18337 | ||
18338 | cy_save=$CXXFLAGS | |
18339 | ||
18340 | for element in "-arch $cy_arch"; do | |
18341 | haveit= | |
18342 | for x in $CXXFLAGS; do | |
18343 | ||
18344 | acl_save_prefix="$prefix" | |
18345 | prefix="$acl_final_prefix" | |
18346 | acl_save_exec_prefix="$exec_prefix" | |
18347 | exec_prefix="$acl_final_exec_prefix" | |
18348 | eval x=\"$x\" | |
18349 | exec_prefix="$acl_save_exec_prefix" | |
18350 | prefix="$acl_save_prefix" | |
18351 | ||
18352 | if test "X$x" = "X$element"; then | |
18353 | haveit=yes | |
18354 | break | |
18355 | fi | |
18356 | done | |
18357 | if test -z "$haveit"; then | |
18358 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
18359 | fi | |
18360 | done | |
18361 | ||
18362 | ||
18363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18364 | /* end confdefs.h. */ | |
18365 | ||
18366 | int | |
18367 | main () | |
18368 | { | |
18369 | ||
18370 | ; | |
18371 | return 0; | |
18372 | } | |
18373 | _ACEOF | |
18374 | if ac_fn_cxx_try_link "$LINENO"; then : | |
18375 | cy_good=1 | |
18376 | else | |
18377 | cy_good=0 | |
18378 | fi | |
18379 | rm -f core conftest.err conftest.$ac_objext \ | |
18380 | conftest$ac_exeext conftest.$ac_ext | |
18381 | ||
18382 | CXXFLAGS=$cy_save | |
18383 | if test "x$cy_good" = x1; then : | |
18384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18385 | $as_echo "yes" >&6; } | |
18386 | ||
18387 | for element in "-arch $cy_arch"; do | |
18388 | haveit= | |
18389 | for x in $CY_ARCH; do | |
18390 | ||
18391 | acl_save_prefix="$prefix" | |
18392 | prefix="$acl_final_prefix" | |
18393 | acl_save_exec_prefix="$exec_prefix" | |
18394 | exec_prefix="$acl_final_exec_prefix" | |
18395 | eval x=\"$x\" | |
18396 | exec_prefix="$acl_save_exec_prefix" | |
18397 | prefix="$acl_save_prefix" | |
18398 | ||
18399 | if test "X$x" = "X$element"; then | |
18400 | haveit=yes | |
18401 | break | |
18402 | fi | |
18403 | done | |
18404 | if test -z "$haveit"; then | |
18405 | CY_ARCH="${CY_ARCH}${CY_ARCH:+ }$element" | |
18406 | fi | |
18407 | done | |
18408 | ||
18409 | ||
18410 | else | |
18411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18412 | $as_echo "no" >&6; } | |
18413 | fi | |
18414 | ||
18415 | done | |
18416 | ||
18417 | ||
babf7fe8 JF |
18418 | |
18419 | ||
18420 | ||
18421 | ||
18422 | # Check whether --enable-javascript was given. | |
18423 | if test "${enable_javascript+set}" = set; then : | |
18424 | enableval=$enable_javascript; | |
18425 | case $enableval in #( | |
18426 | yes) : | |
18427 | ||
18428 | ||
18429 | ||
18430 | ||
18431 | cy_save=$LIBS | |
18432 | LIBS= | |
18433 | ||
18434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
18435 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
18436 | if ${ac_cv_framework_JavaScriptCore+:} false; then : | |
18437 | $as_echo_n "(cached) " >&6 | |
18438 | else | |
18439 | ||
18440 | ac_check_framework_save_LIBS=$LIBS | |
18441 | LIBS="-framework JavaScriptCore $LIBS" | |
18442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18443 | /* end confdefs.h. */ | |
18444 | ||
18445 | #include <JavaScriptCore/JSBase.h> | |
18446 | ||
18447 | int | |
18448 | main () | |
18449 | { | |
18450 | ||
18451 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
18452 | ||
18453 | ; | |
18454 | return 0; | |
18455 | } | |
18456 | _ACEOF | |
18457 | if ac_fn_cxx_try_link "$LINENO"; then : | |
18458 | ||
18459 | ac_cv_framework_JavaScriptCore=yes | |
18460 | ||
18461 | else | |
18462 | ac_cv_framework_JavaScriptCore=no | |
18463 | fi | |
18464 | rm -f core conftest.err conftest.$ac_objext \ | |
18465 | conftest$ac_exeext conftest.$ac_ext | |
18466 | LIBS=$ac_check_framework_save_LIBS | |
18467 | ||
18468 | fi | |
18469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
18470 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
18471 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
18472 | ||
18473 | ||
18474 | for element in "-framework JavaScriptCore"; do | |
18475 | haveit= | |
18476 | for x in $LIBS; do | |
18477 | ||
18478 | acl_save_prefix="$prefix" | |
18479 | prefix="$acl_final_prefix" | |
18480 | acl_save_exec_prefix="$exec_prefix" | |
18481 | exec_prefix="$acl_final_exec_prefix" | |
18482 | eval x=\"$x\" | |
18483 | exec_prefix="$acl_save_exec_prefix" | |
18484 | prefix="$acl_save_prefix" | |
18485 | ||
18486 | if test "X$x" = "X$element"; then | |
18487 | haveit=yes | |
18488 | break | |
18489 | fi | |
18490 | done | |
18491 | if test -z "$haveit"; then | |
18492 | LIBS="${LIBS}${LIBS:+ }$element" | |
18493 | fi | |
18494 | done | |
18495 | ||
18496 | ||
18497 | CY_EXECUTE=1 | |
18498 | ||
18499 | ||
18500 | ||
18501 | else | |
18502 | ||
18503 | for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do | |
18504 | ||
18505 | pkg_failed=no | |
18506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
7eda51e0 | 18507 | $as_echo_n "checking for WEBKIT... " >&6; } |
5053a6d1 | 18508 | |
7eda51e0 JF |
18509 | if test -n "$WEBKIT_CFLAGS"; then |
18510 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
18511 | elif test -n "$PKG_CONFIG"; then | |
18512 | if test -n "$PKG_CONFIG" && \ | |
18513 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
18514 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
18515 | ac_status=$? | |
18516 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18517 | test $ac_status = 0; }; then | |
18518 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null` | |
a93f15c0 | 18519 | test "x$?" != "x0" && pkg_failed=yes |
7eda51e0 JF |
18520 | else |
18521 | pkg_failed=yes | |
18522 | fi | |
18523 | else | |
18524 | pkg_failed=untried | |
18525 | fi | |
18526 | if test -n "$WEBKIT_LIBS"; then | |
18527 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
18528 | elif test -n "$PKG_CONFIG"; then | |
18529 | if test -n "$PKG_CONFIG" && \ | |
18530 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
18531 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
18532 | ac_status=$? | |
18533 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18534 | test $ac_status = 0; }; then | |
18535 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null` | |
a93f15c0 | 18536 | test "x$?" != "x0" && pkg_failed=yes |
7eda51e0 JF |
18537 | else |
18538 | pkg_failed=yes | |
18539 | fi | |
18540 | else | |
18541 | pkg_failed=untried | |
18542 | fi | |
632b71ea | 18543 | |
7eda51e0 JF |
18544 | |
18545 | ||
18546 | if test $pkg_failed = yes; then | |
18547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18548 | $as_echo "no" >&6; } | |
18549 | ||
18550 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
18551 | _pkg_short_errors_supported=yes | |
18552 | else | |
18553 | _pkg_short_errors_supported=no | |
18554 | fi | |
18555 | if test $_pkg_short_errors_supported = yes; then | |
a93f15c0 | 18556 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
7eda51e0 | 18557 | else |
a93f15c0 | 18558 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
7eda51e0 JF |
18559 | fi |
18560 | # Put the nasty error message in config.log where it belongs | |
18561 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
18562 | ||
18563 | : | |
18564 | elif test $pkg_failed = untried; then | |
18565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18566 | $as_echo "no" >&6; } | |
18567 | : | |
18568 | else | |
18569 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
18570 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
18571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18572 | $as_echo "yes" >&6; } | |
18573 | ||
18574 | CY_EXECUTE=1 | |
18575 | ||
18576 | ||
7eda51e0 JF |
18577 | for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do |
18578 | haveit= | |
d70419f1 | 18579 | for x in $CPPFLAGS; do |
5053a6d1 | 18580 | |
7eda51e0 JF |
18581 | acl_save_prefix="$prefix" |
18582 | prefix="$acl_final_prefix" | |
18583 | acl_save_exec_prefix="$exec_prefix" | |
18584 | exec_prefix="$acl_final_exec_prefix" | |
18585 | eval x=\"$x\" | |
18586 | exec_prefix="$acl_save_exec_prefix" | |
18587 | prefix="$acl_save_prefix" | |
5053a6d1 | 18588 | |
7eda51e0 JF |
18589 | if test "X$x" = "X$element"; then |
18590 | haveit=yes | |
18591 | break | |
18592 | fi | |
18593 | done | |
18594 | if test -z "$haveit"; then | |
d70419f1 | 18595 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
7eda51e0 JF |
18596 | fi |
18597 | done | |
5053a6d1 | 18598 | |
5053a6d1 | 18599 | |
7eda51e0 | 18600 | for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do |
632b71ea | 18601 | haveit= |
5053a6d1 | 18602 | for x in $LIBS; do |
9c60689e | 18603 | |
632b71ea DWT |
18604 | acl_save_prefix="$prefix" |
18605 | prefix="$acl_final_prefix" | |
18606 | acl_save_exec_prefix="$exec_prefix" | |
18607 | exec_prefix="$acl_final_exec_prefix" | |
18608 | eval x=\"$x\" | |
18609 | exec_prefix="$acl_save_exec_prefix" | |
18610 | prefix="$acl_save_prefix" | |
18611 | ||
18612 | if test "X$x" = "X$element"; then | |
18613 | haveit=yes | |
18614 | break | |
18615 | fi | |
18616 | done | |
18617 | if test -z "$haveit"; then | |
5053a6d1 | 18618 | LIBS="${LIBS}${LIBS:+ }$element" |
632b71ea DWT |
18619 | fi |
18620 | done | |
b128dfee | 18621 | |
66170b30 | 18622 | |
7eda51e0 JF |
18623 | fi; if test "x$CY_EXECUTE" = x1; then break; fi |
18624 | done | |
5053a6d1 DWT |
18625 | |
18626 | fi | |
babf7fe8 JF |
18627 | LTJAVASCRIPTCORE=$LIBS |
18628 | LIBS=$cy_save | |
18629 | ||
18630 | ||
7eda51e0 | 18631 | ;; #( |
babf7fe8 | 18632 | no) : |
7eda51e0 | 18633 | |
babf7fe8 JF |
18634 | CY_EXECUTE=0 |
18635 | ;; #( | |
18636 | JavaScriptCore) : | |
c823f118 | 18637 | |
5053a6d1 DWT |
18638 | |
18639 | ||
babf7fe8 JF |
18640 | cy_save=$LIBS |
18641 | LIBS= | |
18642 | ||
5053a6d1 DWT |
18643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 |
18644 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
ee134472 | 18645 | if ${ac_cv_framework_JavaScriptCore+:} false; then : |
c823f118 DWT |
18646 | $as_echo_n "(cached) " >&6 |
18647 | else | |
18648 | ||
5053a6d1 DWT |
18649 | ac_check_framework_save_LIBS=$LIBS |
18650 | LIBS="-framework JavaScriptCore $LIBS" | |
18651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
632b71ea | 18652 | /* end confdefs.h. */ |
5053a6d1 | 18653 | |
7eda51e0 | 18654 | #include <JavaScriptCore/JSBase.h> |
5053a6d1 | 18655 | |
632b71ea DWT |
18656 | int |
18657 | main () | |
18658 | { | |
66170b30 | 18659 | |
7eda51e0 | 18660 | JSEvaluateScript(0, 0, 0, 0, 0, 0); |
66170b30 | 18661 | |
632b71ea DWT |
18662 | ; |
18663 | return 0; | |
18664 | } | |
18665 | _ACEOF | |
5053a6d1 DWT |
18666 | if ac_fn_cxx_try_link "$LINENO"; then : |
18667 | ||
18668 | ac_cv_framework_JavaScriptCore=yes | |
18669 | ||
18670 | else | |
18671 | ac_cv_framework_JavaScriptCore=no | |
632b71ea DWT |
18672 | fi |
18673 | rm -f core conftest.err conftest.$ac_objext \ | |
18674 | conftest$ac_exeext conftest.$ac_ext | |
5053a6d1 | 18675 | LIBS=$ac_check_framework_save_LIBS |
b128dfee | 18676 | |
c823f118 | 18677 | fi |
5053a6d1 DWT |
18678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 |
18679 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
18680 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
c823f118 DWT |
18681 | |
18682 | ||
7eda51e0 | 18683 | for element in "-framework JavaScriptCore"; do |
5053a6d1 DWT |
18684 | haveit= |
18685 | for x in $LIBS; do | |
18686 | ||
18687 | acl_save_prefix="$prefix" | |
18688 | prefix="$acl_final_prefix" | |
18689 | acl_save_exec_prefix="$exec_prefix" | |
18690 | exec_prefix="$acl_final_exec_prefix" | |
18691 | eval x=\"$x\" | |
18692 | exec_prefix="$acl_save_exec_prefix" | |
18693 | prefix="$acl_save_prefix" | |
18694 | ||
18695 | if test "X$x" = "X$element"; then | |
18696 | haveit=yes | |
18697 | break | |
18698 | fi | |
18699 | done | |
18700 | if test -z "$haveit"; then | |
18701 | LIBS="${LIBS}${LIBS:+ }$element" | |
18702 | fi | |
18703 | done | |
c823f118 | 18704 | |
66170b30 | 18705 | |
7eda51e0 JF |
18706 | CY_EXECUTE=1 |
18707 | ||
18708 | ||
18709 | ||
18710 | else | |
18711 | ||
18712 | for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do | |
18713 | ||
18714 | pkg_failed=no | |
18715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
18716 | $as_echo_n "checking for WEBKIT... " >&6; } | |
18717 | ||
18718 | if test -n "$WEBKIT_CFLAGS"; then | |
18719 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
18720 | elif test -n "$PKG_CONFIG"; then | |
18721 | if test -n "$PKG_CONFIG" && \ | |
18722 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
18723 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
18724 | ac_status=$? | |
18725 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18726 | test $ac_status = 0; }; then | |
18727 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null` | |
a93f15c0 | 18728 | test "x$?" != "x0" && pkg_failed=yes |
7eda51e0 JF |
18729 | else |
18730 | pkg_failed=yes | |
18731 | fi | |
18732 | else | |
18733 | pkg_failed=untried | |
18734 | fi | |
18735 | if test -n "$WEBKIT_LIBS"; then | |
18736 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
18737 | elif test -n "$PKG_CONFIG"; then | |
18738 | if test -n "$PKG_CONFIG" && \ | |
18739 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
18740 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
18741 | ac_status=$? | |
18742 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18743 | test $ac_status = 0; }; then | |
18744 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null` | |
a93f15c0 | 18745 | test "x$?" != "x0" && pkg_failed=yes |
7eda51e0 JF |
18746 | else |
18747 | pkg_failed=yes | |
18748 | fi | |
18749 | else | |
18750 | pkg_failed=untried | |
18751 | fi | |
18752 | ||
66170b30 JF |
18753 | |
18754 | ||
7eda51e0 JF |
18755 | if test $pkg_failed = yes; then |
18756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18757 | $as_echo "no" >&6; } | |
b128dfee | 18758 | |
7eda51e0 JF |
18759 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
18760 | _pkg_short_errors_supported=yes | |
18761 | else | |
18762 | _pkg_short_errors_supported=no | |
632b71ea | 18763 | fi |
7eda51e0 | 18764 | if test $_pkg_short_errors_supported = yes; then |
a93f15c0 | 18765 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
7eda51e0 | 18766 | else |
a93f15c0 | 18767 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
7eda51e0 JF |
18768 | fi |
18769 | # Put the nasty error message in config.log where it belongs | |
18770 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
c823f118 | 18771 | |
7eda51e0 JF |
18772 | : |
18773 | elif test $pkg_failed = untried; then | |
18774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18775 | $as_echo "no" >&6; } | |
18776 | : | |
5053a6d1 DWT |
18777 | else |
18778 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
18779 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
18780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18781 | $as_echo "yes" >&6; } | |
c823f118 | 18782 | |
7eda51e0 JF |
18783 | CY_EXECUTE=1 |
18784 | ||
66170b30 | 18785 | |
7eda51e0 | 18786 | for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do |
5053a6d1 | 18787 | haveit= |
d70419f1 | 18788 | for x in $CPPFLAGS; do |
c823f118 | 18789 | |
5053a6d1 DWT |
18790 | acl_save_prefix="$prefix" |
18791 | prefix="$acl_final_prefix" | |
18792 | acl_save_exec_prefix="$exec_prefix" | |
18793 | exec_prefix="$acl_final_exec_prefix" | |
18794 | eval x=\"$x\" | |
18795 | exec_prefix="$acl_save_exec_prefix" | |
18796 | prefix="$acl_save_prefix" | |
c823f118 | 18797 | |
5053a6d1 DWT |
18798 | if test "X$x" = "X$element"; then |
18799 | haveit=yes | |
18800 | break | |
18801 | fi | |
18802 | done | |
18803 | if test -z "$haveit"; then | |
d70419f1 | 18804 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
5053a6d1 DWT |
18805 | fi |
18806 | done | |
c823f118 | 18807 | |
b66977f1 | 18808 | |
7eda51e0 | 18809 | for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do |
5053a6d1 DWT |
18810 | haveit= |
18811 | for x in $LIBS; do | |
18812 | ||
18813 | acl_save_prefix="$prefix" | |
18814 | prefix="$acl_final_prefix" | |
18815 | acl_save_exec_prefix="$exec_prefix" | |
18816 | exec_prefix="$acl_final_exec_prefix" | |
18817 | eval x=\"$x\" | |
18818 | exec_prefix="$acl_save_exec_prefix" | |
18819 | prefix="$acl_save_prefix" | |
18820 | ||
18821 | if test "X$x" = "X$element"; then | |
18822 | haveit=yes | |
18823 | break | |
18824 | fi | |
18825 | done | |
18826 | if test -z "$haveit"; then | |
18827 | LIBS="${LIBS}${LIBS:+ }$element" | |
18828 | fi | |
18829 | done | |
18830 | ||
18831 | ||
7eda51e0 JF |
18832 | fi; if test "x$CY_EXECUTE" = x1; then break; fi |
18833 | done | |
18834 | ||
5053a6d1 | 18835 | fi |
babf7fe8 JF |
18836 | LTJAVASCRIPTCORE=$LIBS |
18837 | LIBS=$cy_save | |
5053a6d1 | 18838 | |
b66977f1 | 18839 | |
babf7fe8 JF |
18840 | ;; #( |
18841 | *) : | |
18842 | as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;; | |
18843 | esac | |
b66977f1 | 18844 | |
babf7fe8 | 18845 | else |
b66977f1 | 18846 | |
7eda51e0 | 18847 | |
7eda51e0 | 18848 | |
babf7fe8 JF |
18849 | cy_save=$LIBS |
18850 | LIBS= | |
7eda51e0 | 18851 | |
babf7fe8 JF |
18852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 |
18853 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
18854 | if ${ac_cv_framework_JavaScriptCore+:} false; then : | |
18855 | $as_echo_n "(cached) " >&6 | |
18856 | else | |
7eda51e0 | 18857 | |
babf7fe8 JF |
18858 | ac_check_framework_save_LIBS=$LIBS |
18859 | LIBS="-framework JavaScriptCore $LIBS" | |
18860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18861 | /* end confdefs.h. */ | |
7eda51e0 | 18862 | |
babf7fe8 | 18863 | #include <JavaScriptCore/JSBase.h> |
7eda51e0 | 18864 | |
babf7fe8 JF |
18865 | int |
18866 | main () | |
18867 | { | |
7eda51e0 | 18868 | |
babf7fe8 | 18869 | JSEvaluateScript(0, 0, 0, 0, 0, 0); |
7eda51e0 | 18870 | |
babf7fe8 JF |
18871 | ; |
18872 | return 0; | |
18873 | } | |
18874 | _ACEOF | |
18875 | if ac_fn_cxx_try_link "$LINENO"; then : | |
7eda51e0 | 18876 | |
babf7fe8 | 18877 | ac_cv_framework_JavaScriptCore=yes |
b66977f1 | 18878 | |
b66977f1 | 18879 | else |
babf7fe8 JF |
18880 | ac_cv_framework_JavaScriptCore=no |
18881 | fi | |
18882 | rm -f core conftest.err conftest.$ac_objext \ | |
18883 | conftest$ac_exeext conftest.$ac_ext | |
18884 | LIBS=$ac_check_framework_save_LIBS | |
7eda51e0 | 18885 | |
babf7fe8 JF |
18886 | fi |
18887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
18888 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
18889 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
7eda51e0 | 18890 | |
7eda51e0 | 18891 | |
babf7fe8 JF |
18892 | for element in "-framework JavaScriptCore"; do |
18893 | haveit= | |
18894 | for x in $LIBS; do | |
18895 | ||
18896 | acl_save_prefix="$prefix" | |
18897 | prefix="$acl_final_prefix" | |
18898 | acl_save_exec_prefix="$exec_prefix" | |
18899 | exec_prefix="$acl_final_exec_prefix" | |
18900 | eval x=\"$x\" | |
18901 | exec_prefix="$acl_save_exec_prefix" | |
18902 | prefix="$acl_save_prefix" | |
18903 | ||
18904 | if test "X$x" = "X$element"; then | |
18905 | haveit=yes | |
18906 | break | |
18907 | fi | |
18908 | done | |
18909 | if test -z "$haveit"; then | |
18910 | LIBS="${LIBS}${LIBS:+ }$element" | |
18911 | fi | |
18912 | done | |
18913 | ||
18914 | ||
18915 | CY_EXECUTE=1 | |
18916 | ||
18917 | ||
18918 | ||
18919 | else | |
18920 | ||
18921 | for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do | |
18922 | ||
18923 | pkg_failed=no | |
18924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
18925 | $as_echo_n "checking for WEBKIT... " >&6; } | |
18926 | ||
18927 | if test -n "$WEBKIT_CFLAGS"; then | |
18928 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
18929 | elif test -n "$PKG_CONFIG"; then | |
18930 | if test -n "$PKG_CONFIG" && \ | |
18931 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
18932 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
18933 | ac_status=$? | |
18934 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18935 | test $ac_status = 0; }; then | |
18936 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null` | |
a93f15c0 | 18937 | test "x$?" != "x0" && pkg_failed=yes |
babf7fe8 JF |
18938 | else |
18939 | pkg_failed=yes | |
18940 | fi | |
18941 | else | |
18942 | pkg_failed=untried | |
18943 | fi | |
18944 | if test -n "$WEBKIT_LIBS"; then | |
18945 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
18946 | elif test -n "$PKG_CONFIG"; then | |
18947 | if test -n "$PKG_CONFIG" && \ | |
18948 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
18949 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
18950 | ac_status=$? | |
18951 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18952 | test $ac_status = 0; }; then | |
18953 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null` | |
a93f15c0 | 18954 | test "x$?" != "x0" && pkg_failed=yes |
babf7fe8 JF |
18955 | else |
18956 | pkg_failed=yes | |
18957 | fi | |
18958 | else | |
18959 | pkg_failed=untried | |
18960 | fi | |
18961 | ||
18962 | ||
18963 | ||
18964 | if test $pkg_failed = yes; then | |
18965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18966 | $as_echo "no" >&6; } | |
18967 | ||
18968 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
18969 | _pkg_short_errors_supported=yes | |
18970 | else | |
18971 | _pkg_short_errors_supported=no | |
18972 | fi | |
18973 | if test $_pkg_short_errors_supported = yes; then | |
a93f15c0 | 18974 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
babf7fe8 | 18975 | else |
a93f15c0 | 18976 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` |
babf7fe8 JF |
18977 | fi |
18978 | # Put the nasty error message in config.log where it belongs | |
18979 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
18980 | ||
18981 | : | |
18982 | elif test $pkg_failed = untried; then | |
18983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18984 | $as_echo "no" >&6; } | |
18985 | : | |
18986 | else | |
18987 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
18988 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
18989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18990 | $as_echo "yes" >&6; } | |
18991 | ||
18992 | CY_EXECUTE=1 | |
18993 | ||
18994 | ||
18995 | for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do | |
18996 | haveit= | |
18997 | for x in $CPPFLAGS; do | |
18998 | ||
18999 | acl_save_prefix="$prefix" | |
19000 | prefix="$acl_final_prefix" | |
19001 | acl_save_exec_prefix="$exec_prefix" | |
19002 | exec_prefix="$acl_final_exec_prefix" | |
19003 | eval x=\"$x\" | |
19004 | exec_prefix="$acl_save_exec_prefix" | |
19005 | prefix="$acl_save_prefix" | |
19006 | ||
19007 | if test "X$x" = "X$element"; then | |
19008 | haveit=yes | |
19009 | break | |
19010 | fi | |
19011 | done | |
19012 | if test -z "$haveit"; then | |
19013 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
19014 | fi | |
19015 | done | |
19016 | ||
19017 | ||
19018 | for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do | |
19019 | haveit= | |
19020 | for x in $LIBS; do | |
19021 | ||
19022 | acl_save_prefix="$prefix" | |
19023 | prefix="$acl_final_prefix" | |
19024 | acl_save_exec_prefix="$exec_prefix" | |
19025 | exec_prefix="$acl_final_exec_prefix" | |
19026 | eval x=\"$x\" | |
19027 | exec_prefix="$acl_save_exec_prefix" | |
19028 | prefix="$acl_save_prefix" | |
19029 | ||
19030 | if test "X$x" = "X$element"; then | |
19031 | haveit=yes | |
19032 | break | |
19033 | fi | |
19034 | done | |
19035 | if test -z "$haveit"; then | |
19036 | LIBS="${LIBS}${LIBS:+ }$element" | |
19037 | fi | |
19038 | done | |
19039 | ||
19040 | ||
19041 | fi; if test "x$CY_EXECUTE" = x1; then break; fi | |
19042 | done | |
19043 | ||
19044 | fi | |
19045 | LTJAVASCRIPTCORE=$LIBS | |
19046 | LIBS=$cy_save | |
19047 | ||
19048 | ||
19049 | ||
19050 | fi | |
19051 | ||
19052 | ||
a93f15c0 JF |
19053 | # Check whether --enable-console was given. |
19054 | if test "${enable_console+set}" = set; then : | |
19055 | enableval=$enable_console; | |
19056 | fi | |
19057 | ||
19058 | if test "x$enable_console" != "xno"; then | |
19059 | CY_CONSOLE_TRUE= | |
19060 | CY_CONSOLE_FALSE='#' | |
19061 | else | |
19062 | CY_CONSOLE_TRUE='#' | |
19063 | CY_CONSOLE_FALSE= | |
19064 | fi | |
19065 | ||
19066 | ||
19067 | if test -z "$CY_CONSOLE_TRUE"; then : | |
19068 | ||
19069 | if test "x$LTLIBAPR" != x; then : | |
19070 | ||
19071 | ||
19072 | ||
19073 | else | |
19074 | ||
babf7fe8 JF |
19075 | |
19076 | apr_found="no" | |
19077 | ||
19078 | if test "$target_os" = "os2-emx"; then | |
19079 | # Scripts don't pass test -x on OS/2 | |
19080 | TEST_X="test -f" | |
19081 | else | |
19082 | TEST_X="test -x" | |
19083 | fi | |
19084 | ||
19085 | acceptable_majors="1" | |
19086 | ||
19087 | apr_temp_acceptable_apr_config="" | |
19088 | for apr_temp_major in $acceptable_majors | |
19089 | do | |
19090 | case $apr_temp_major in | |
19091 | 0) | |
19092 | apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config" | |
19093 | ;; | |
19094 | *) | |
19095 | apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config" | |
19096 | ;; | |
19097 | esac | |
19098 | done | |
19099 | ||
19100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5 | |
19101 | $as_echo_n "checking for APR... " >&6; } | |
19102 | ||
19103 | # Check whether --with-apr was given. | |
19104 | if test "${with_apr+set}" = set; then : | |
19105 | withval=$with_apr; | |
19106 | if test "$withval" = "no" || test "$withval" = "yes"; then | |
19107 | as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5 | |
19108 | fi | |
19109 | ||
19110 | for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config | |
19111 | do | |
19112 | for lookdir in "$withval/bin" "$withval" | |
19113 | do | |
19114 | if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then | |
19115 | apr_config="$lookdir/$apr_temp_apr_config_file" | |
19116 | ||
19117 | apr_found="yes" | |
19118 | break 2 | |
19119 | fi | |
19120 | done | |
19121 | done | |
19122 | ||
19123 | if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then | |
19124 | apr_config="$withval" | |
19125 | apr_found="yes" | |
19126 | fi | |
19127 | ||
19128 | if test "$apr_found" != "yes"; then | |
19129 | as_fn_error $? "the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." "$LINENO" 5 | |
19130 | fi | |
19131 | ||
19132 | else | |
19133 | ||
19134 | if test -n "1" && test "1" = "1"; then | |
19135 | for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config | |
19136 | do | |
19137 | if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then | |
19138 | apr_config="$apr_temp_apr_config_file" | |
19139 | ||
19140 | apr_found="yes" | |
19141 | break | |
19142 | else | |
19143 | for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do | |
19144 | if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then | |
19145 | apr_config="$lookdir/bin/$apr_temp_apr_config_file" | |
19146 | ||
19147 | apr_found="yes" | |
19148 | break 2 | |
19149 | fi | |
19150 | done | |
19151 | fi | |
19152 | done | |
19153 | fi | |
19154 | if test "$apr_found" = "no" && test -d ""; then | |
19155 | apr_temp_abs_srcdir="`cd && pwd`" | |
19156 | apr_found="reconfig" | |
19157 | apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`" | |
19158 | case $apr_bundled_major in | |
19159 | "") | |
19160 | as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5 | |
19161 | ;; | |
19162 | 0) | |
7eda51e0 JF |
19163 | apr_temp_apr_config_file="apr-config" |
19164 | ;; | |
19165 | *) | |
19166 | apr_temp_apr_config_file="apr-$apr_bundled_major-config" | |
19167 | ;; | |
19168 | esac | |
19169 | if test -n ""; then | |
19170 | apr_config="/$apr_temp_apr_config_file" | |
19171 | else | |
19172 | apr_config="/$apr_temp_apr_config_file" | |
19173 | fi | |
19174 | fi | |
19175 | ||
b66977f1 | 19176 | fi |
7eda51e0 JF |
19177 | |
19178 | ||
19179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5 | |
19180 | $as_echo "$apr_found" >&6; } | |
19181 | ||
19182 | case $apr_found in #( | |
19183 | yes) : | |
19184 | ||
19185 | ||
19186 | for element in `$apr_config --includes`; do | |
19187 | haveit= | |
19188 | for x in $CPPFLAGS; do | |
19189 | ||
19190 | acl_save_prefix="$prefix" | |
19191 | prefix="$acl_final_prefix" | |
19192 | acl_save_exec_prefix="$exec_prefix" | |
19193 | exec_prefix="$acl_final_exec_prefix" | |
19194 | eval x=\"$x\" | |
19195 | exec_prefix="$acl_save_exec_prefix" | |
19196 | prefix="$acl_save_prefix" | |
19197 | ||
19198 | if test "X$x" = "X$element"; then | |
19199 | haveit=yes | |
19200 | break | |
19201 | fi | |
19202 | done | |
19203 | if test -z "$haveit"; then | |
19204 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
19205 | fi | |
19206 | done | |
19207 | ||
19208 | ||
19209 | for element in `$apr_config --link-libtool`; do | |
19210 | haveit= | |
19211 | for x in $LTLIBAPR; do | |
19212 | ||
19213 | acl_save_prefix="$prefix" | |
19214 | prefix="$acl_final_prefix" | |
19215 | acl_save_exec_prefix="$exec_prefix" | |
19216 | exec_prefix="$acl_final_exec_prefix" | |
19217 | eval x=\"$x\" | |
19218 | exec_prefix="$acl_save_exec_prefix" | |
19219 | prefix="$acl_save_prefix" | |
19220 | ||
19221 | if test "X$x" = "X$element"; then | |
19222 | haveit=yes | |
19223 | break | |
19224 | fi | |
19225 | done | |
19226 | if test -z "$haveit"; then | |
19227 | LTLIBAPR="${LTLIBAPR}${LTLIBAPR:+ }$element" | |
19228 | fi | |
19229 | done | |
19230 | ||
19231 | ||
19232 | ;; #( | |
19233 | *) : | |
a93f15c0 JF |
19234 | |
19235 | as_fn_error $? "missing \"libapr\"" "$LINENO" 5 | |
19236 | ;; | |
7eda51e0 | 19237 | esac |
a93f15c0 JF |
19238 | fi |
19239 | ||
19240 | fi | |
7eda51e0 JF |
19241 | |
19242 | ||
19243 | ||
19244 | if test "x$CY_EXECUTE" = x1; then | |
19245 | CY_EXECUTE_TRUE= | |
19246 | CY_EXECUTE_FALSE='#' | |
b66977f1 | 19247 | else |
7eda51e0 JF |
19248 | CY_EXECUTE_TRUE='#' |
19249 | CY_EXECUTE_FALSE= | |
b66977f1 DWT |
19250 | fi |
19251 | ||
19252 | ||
19253 | ||
7eda51e0 JF |
19254 | case $CY_EXECUTE in #( |
19255 | 1) : | |
19256 | ||
19257 | for ac_header in ffi.h ffi/ffi.h | |
19258 | do : | |
19259 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
19260 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
19261 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
19262 | cat >>confdefs.h <<_ACEOF | |
19263 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19264 | _ACEOF | |
19265 | break | |
b66977f1 | 19266 | fi |
7eda51e0 JF |
19267 | |
19268 | done | |
19269 | ||
296ee9a6 JF |
19270 | |
19271 | ||
19272 | cy_save=$LIBS | |
19273 | LIBS= | |
7eda51e0 | 19274 | if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then : |
b66977f1 | 19275 | |
b66977f1 | 19276 | |
296ee9a6 JF |
19277 | LIBFFI_CFLAGS |
19278 | C compiler flags for LIBFFI, overriding pkg-config | |
19279 | LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config | |
b66977f1 DWT |
19280 | |
19281 | pkg_failed=no | |
7eda51e0 JF |
19282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 |
19283 | $as_echo_n "checking for LIBFFI... " >&6; } | |
b66977f1 | 19284 | |
7eda51e0 JF |
19285 | if test -n "$LIBFFI_CFLAGS"; then |
19286 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
12833ad8 JF |
19287 | elif test -n "$PKG_CONFIG"; then |
19288 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
19289 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
19290 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
19291 | ac_status=$? |
19292 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19293 | test $ac_status = 0; }; then | |
7eda51e0 | 19294 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` |
a93f15c0 | 19295 | test "x$?" != "x0" && pkg_failed=yes |
b66977f1 DWT |
19296 | else |
19297 | pkg_failed=yes | |
19298 | fi | |
12833ad8 JF |
19299 | else |
19300 | pkg_failed=untried | |
b66977f1 | 19301 | fi |
7eda51e0 JF |
19302 | if test -n "$LIBFFI_LIBS"; then |
19303 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
12833ad8 JF |
19304 | elif test -n "$PKG_CONFIG"; then |
19305 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
19306 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
19307 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
19308 | ac_status=$? |
19309 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19310 | test $ac_status = 0; }; then | |
7eda51e0 | 19311 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` |
a93f15c0 | 19312 | test "x$?" != "x0" && pkg_failed=yes |
b66977f1 DWT |
19313 | else |
19314 | pkg_failed=yes | |
19315 | fi | |
12833ad8 JF |
19316 | else |
19317 | pkg_failed=untried | |
b66977f1 DWT |
19318 | fi |
19319 | ||
19320 | ||
19321 | ||
19322 | if test $pkg_failed = yes; then | |
12833ad8 JF |
19323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19324 | $as_echo "no" >&6; } | |
b66977f1 DWT |
19325 | |
19326 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
19327 | _pkg_short_errors_supported=yes | |
19328 | else | |
19329 | _pkg_short_errors_supported=no | |
19330 | fi | |
19331 | if test $_pkg_short_errors_supported = yes; then | |
a93f15c0 | 19332 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1` |
b66977f1 | 19333 | else |
a93f15c0 | 19334 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1` |
b66977f1 DWT |
19335 | fi |
19336 | # Put the nasty error message in config.log where it belongs | |
7eda51e0 | 19337 | echo "$LIBFFI_PKG_ERRORS" >&5 |
b66977f1 | 19338 | |
7eda51e0 JF |
19339 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 |
19340 | elif test $pkg_failed = untried; then | |
19341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19342 | $as_echo "no" >&6; } | |
19343 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 | |
19344 | else | |
19345 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS | |
19346 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
19347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19348 | $as_echo "yes" >&6; } | |
b66977f1 DWT |
19349 | |
19350 | ||
7eda51e0 | 19351 | for element in `$PKG_CONFIG --cflags libffi`; do |
b66977f1 | 19352 | haveit= |
d70419f1 | 19353 | for x in $CPPFLAGS; do |
b66977f1 DWT |
19354 | |
19355 | acl_save_prefix="$prefix" | |
19356 | prefix="$acl_final_prefix" | |
19357 | acl_save_exec_prefix="$exec_prefix" | |
19358 | exec_prefix="$acl_final_exec_prefix" | |
19359 | eval x=\"$x\" | |
19360 | exec_prefix="$acl_save_exec_prefix" | |
19361 | prefix="$acl_save_prefix" | |
19362 | ||
19363 | if test "X$x" = "X$element"; then | |
19364 | haveit=yes | |
19365 | break | |
19366 | fi | |
19367 | done | |
19368 | if test -z "$haveit"; then | |
d70419f1 | 19369 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
b66977f1 DWT |
19370 | fi |
19371 | done | |
19372 | ||
19373 | ||
7eda51e0 | 19374 | for element in `$PKG_CONFIG --libs libffi`; do |
b66977f1 DWT |
19375 | haveit= |
19376 | for x in $LIBS; do | |
19377 | ||
19378 | acl_save_prefix="$prefix" | |
19379 | prefix="$acl_final_prefix" | |
19380 | acl_save_exec_prefix="$exec_prefix" | |
19381 | exec_prefix="$acl_final_exec_prefix" | |
19382 | eval x=\"$x\" | |
19383 | exec_prefix="$acl_save_exec_prefix" | |
19384 | prefix="$acl_save_prefix" | |
19385 | ||
19386 | if test "X$x" = "X$element"; then | |
19387 | haveit=yes | |
19388 | break | |
19389 | fi | |
19390 | done | |
19391 | if test -z "$haveit"; then | |
19392 | LIBS="${LIBS}${LIBS:+ }$element" | |
19393 | fi | |
19394 | done | |
19395 | ||
19396 | ||
19397 | fi | |
19398 | ||
7eda51e0 JF |
19399 | else |
19400 | ||
19401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 | |
19402 | $as_echo_n "checking for library containing ffi_call... " >&6; } | |
19403 | if ${ac_cv_search_ffi_call+:} false; then : | |
19404 | $as_echo_n "(cached) " >&6 | |
19405 | else | |
19406 | ac_func_search_save_LIBS=$LIBS | |
19407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19408 | /* end confdefs.h. */ | |
19409 | ||
19410 | /* Override any GCC internal prototype to avoid an error. | |
19411 | Use char because int might match the return type of a GCC | |
19412 | builtin and then its argument prototype would still apply. */ | |
19413 | #ifdef __cplusplus | |
19414 | extern "C" | |
19415 | #endif | |
19416 | char ffi_call (); | |
19417 | int | |
19418 | main () | |
19419 | { | |
19420 | return ffi_call (); | |
19421 | ; | |
19422 | return 0; | |
19423 | } | |
19424 | _ACEOF | |
19425 | for ac_lib in '' ffi; do | |
19426 | if test -z "$ac_lib"; then | |
19427 | ac_res="none required" | |
19428 | else | |
19429 | ac_res=-l$ac_lib | |
19430 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
19431 | fi | |
19432 | if ac_fn_cxx_try_link "$LINENO"; then : | |
19433 | ac_cv_search_ffi_call=$ac_res | |
19434 | fi | |
19435 | rm -f core conftest.err conftest.$ac_objext \ | |
19436 | conftest$ac_exeext | |
19437 | if ${ac_cv_search_ffi_call+:} false; then : | |
19438 | break | |
19439 | fi | |
19440 | done | |
19441 | if ${ac_cv_search_ffi_call+:} false; then : | |
19442 | ||
19443 | else | |
19444 | ac_cv_search_ffi_call=no | |
19445 | fi | |
19446 | rm conftest.$ac_ext | |
19447 | LIBS=$ac_func_search_save_LIBS | |
19448 | fi | |
19449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 | |
19450 | $as_echo "$ac_cv_search_ffi_call" >&6; } | |
19451 | ac_res=$ac_cv_search_ffi_call | |
19452 | if test "$ac_res" != no; then : | |
19453 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
19454 | ||
19455 | fi | |
19456 | ||
19457 | case $ac_cv_search_ffi_call in #( | |
19458 | no) : | |
b66977f1 DWT |
19459 | |
19460 | ||
19461 | pkg_failed=no | |
7eda51e0 JF |
19462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 |
19463 | $as_echo_n "checking for LIBFFI... " >&6; } | |
b66977f1 | 19464 | |
7eda51e0 JF |
19465 | if test -n "$LIBFFI_CFLAGS"; then |
19466 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
12833ad8 JF |
19467 | elif test -n "$PKG_CONFIG"; then |
19468 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
19469 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
19470 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
19471 | ac_status=$? |
19472 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19473 | test $ac_status = 0; }; then | |
7eda51e0 | 19474 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` |
a93f15c0 | 19475 | test "x$?" != "x0" && pkg_failed=yes |
b66977f1 DWT |
19476 | else |
19477 | pkg_failed=yes | |
19478 | fi | |
12833ad8 JF |
19479 | else |
19480 | pkg_failed=untried | |
b66977f1 | 19481 | fi |
7eda51e0 JF |
19482 | if test -n "$LIBFFI_LIBS"; then |
19483 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
12833ad8 JF |
19484 | elif test -n "$PKG_CONFIG"; then |
19485 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
19486 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
19487 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
19488 | ac_status=$? |
19489 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19490 | test $ac_status = 0; }; then | |
7eda51e0 | 19491 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` |
a93f15c0 | 19492 | test "x$?" != "x0" && pkg_failed=yes |
b66977f1 DWT |
19493 | else |
19494 | pkg_failed=yes | |
19495 | fi | |
12833ad8 JF |
19496 | else |
19497 | pkg_failed=untried | |
b66977f1 DWT |
19498 | fi |
19499 | ||
19500 | ||
19501 | ||
19502 | if test $pkg_failed = yes; then | |
12833ad8 JF |
19503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19504 | $as_echo "no" >&6; } | |
b66977f1 DWT |
19505 | |
19506 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
19507 | _pkg_short_errors_supported=yes | |
19508 | else | |
19509 | _pkg_short_errors_supported=no | |
19510 | fi | |
19511 | if test $_pkg_short_errors_supported = yes; then | |
a93f15c0 | 19512 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1` |
b66977f1 | 19513 | else |
a93f15c0 | 19514 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1` |
b66977f1 DWT |
19515 | fi |
19516 | # Put the nasty error message in config.log where it belongs | |
7eda51e0 | 19517 | echo "$LIBFFI_PKG_ERRORS" >&5 |
b66977f1 | 19518 | |
7eda51e0 JF |
19519 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 |
19520 | elif test $pkg_failed = untried; then | |
19521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19522 | $as_echo "no" >&6; } | |
19523 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 | |
b66977f1 | 19524 | else |
7eda51e0 JF |
19525 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS |
19526 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
19527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19528 | $as_echo "yes" >&6; } | |
b66977f1 | 19529 | |
b66977f1 | 19530 | |
7eda51e0 | 19531 | for element in `$PKG_CONFIG --cflags libffi`; do |
b66977f1 | 19532 | haveit= |
d70419f1 | 19533 | for x in $CPPFLAGS; do |
7eda51e0 JF |
19534 | |
19535 | acl_save_prefix="$prefix" | |
19536 | prefix="$acl_final_prefix" | |
19537 | acl_save_exec_prefix="$exec_prefix" | |
19538 | exec_prefix="$acl_final_exec_prefix" | |
19539 | eval x=\"$x\" | |
19540 | exec_prefix="$acl_save_exec_prefix" | |
19541 | prefix="$acl_save_prefix" | |
19542 | ||
19543 | if test "X$x" = "X$element"; then | |
19544 | haveit=yes | |
19545 | break | |
19546 | fi | |
19547 | done | |
19548 | if test -z "$haveit"; then | |
d70419f1 | 19549 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
7eda51e0 JF |
19550 | fi |
19551 | done | |
19552 | ||
19553 | ||
7eda51e0 JF |
19554 | for element in `$PKG_CONFIG --libs libffi`; do |
19555 | haveit= | |
19556 | for x in $LIBS; do | |
19557 | ||
19558 | acl_save_prefix="$prefix" | |
19559 | prefix="$acl_final_prefix" | |
19560 | acl_save_exec_prefix="$exec_prefix" | |
19561 | exec_prefix="$acl_final_exec_prefix" | |
19562 | eval x=\"$x\" | |
19563 | exec_prefix="$acl_save_exec_prefix" | |
19564 | prefix="$acl_save_prefix" | |
19565 | ||
19566 | if test "X$x" = "X$element"; then | |
19567 | haveit=yes | |
19568 | break | |
19569 | fi | |
19570 | done | |
19571 | if test -z "$haveit"; then | |
19572 | LIBS="${LIBS}${LIBS:+ }$element" | |
19573 | fi | |
19574 | done | |
19575 | ||
19576 | ||
19577 | fi ;; #( | |
19578 | *) : | |
19579 | ;; | |
19580 | esac | |
19581 | ||
19582 | fi | |
296ee9a6 JF |
19583 | LTLIBFFI=$LIBS |
19584 | LIBS=$cy_save | |
19585 | ||
19586 | ||
7eda51e0 JF |
19587 | |
19588 | ac_ext=mm | |
19589 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
19590 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19591 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19592 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
19593 | ||
19594 | ||
19595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5 | |
19596 | $as_echo_n "checking if we really have Objective C++... " >&6; } | |
19597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19598 | /* end confdefs.h. */ | |
19599 | ||
19600 | _ACEOF | |
19601 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
19602 | ||
19603 | CY_OBJECTIVEC=1 | |
19604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19605 | $as_echo "yes" >&6; } | |
19606 | ||
19607 | else | |
19608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12833ad8 | 19609 | $as_echo "no" >&6; } |
7eda51e0 JF |
19610 | fi |
19611 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b66977f1 | 19612 | |
7eda51e0 | 19613 | if test "x$CY_OBJECTIVEC" = x1; then : |
b66977f1 | 19614 | |
7eda51e0 | 19615 | |
babf7fe8 JF |
19616 | cy_save=$LIBS |
19617 | LIBS= | |
19618 | ||
7eda51e0 JF |
19619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5 |
19620 | $as_echo_n "checking for framework CoreFoundation... " >&6; } | |
19621 | if ${ac_cv_framework_CoreFoundation+:} false; then : | |
b66977f1 DWT |
19622 | $as_echo_n "(cached) " >&6 |
19623 | else | |
19624 | ||
19625 | ac_check_framework_save_LIBS=$LIBS | |
7eda51e0 | 19626 | LIBS="-framework CoreFoundation $LIBS" |
b66977f1 DWT |
19627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
19628 | /* end confdefs.h. */ | |
19629 | ||
7eda51e0 | 19630 | #include <CoreFoundation/CFBase.h> |
b66977f1 DWT |
19631 | |
19632 | int | |
19633 | main () | |
19634 | { | |
7eda51e0 | 19635 | CFAllocatorGetDefault(); |
b66977f1 DWT |
19636 | ; |
19637 | return 0; | |
19638 | } | |
19639 | _ACEOF | |
7eda51e0 | 19640 | if ac_fn_objcxx_try_link "$LINENO"; then : |
b66977f1 | 19641 | |
7eda51e0 | 19642 | ac_cv_framework_CoreFoundation=yes |
b66977f1 DWT |
19643 | |
19644 | else | |
7eda51e0 | 19645 | ac_cv_framework_CoreFoundation=no |
b66977f1 DWT |
19646 | fi |
19647 | rm -f core conftest.err conftest.$ac_objext \ | |
19648 | conftest$ac_exeext conftest.$ac_ext | |
19649 | LIBS=$ac_check_framework_save_LIBS | |
19650 | ||
19651 | fi | |
7eda51e0 JF |
19652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5 |
19653 | $as_echo "$ac_cv_framework_CoreFoundation" >&6; } | |
19654 | if test $ac_cv_framework_CoreFoundation = yes; then : | |
b66977f1 DWT |
19655 | |
19656 | ||
7eda51e0 | 19657 | for element in "-framework CoreFoundation"; do |
b66977f1 DWT |
19658 | haveit= |
19659 | for x in $LIBS; do | |
19660 | ||
19661 | acl_save_prefix="$prefix" | |
19662 | prefix="$acl_final_prefix" | |
19663 | acl_save_exec_prefix="$exec_prefix" | |
19664 | exec_prefix="$acl_final_exec_prefix" | |
19665 | eval x=\"$x\" | |
19666 | exec_prefix="$acl_save_exec_prefix" | |
19667 | prefix="$acl_save_prefix" | |
19668 | ||
19669 | if test "X$x" = "X$element"; then | |
19670 | haveit=yes | |
19671 | break | |
19672 | fi | |
19673 | done | |
19674 | if test -z "$haveit"; then | |
19675 | LIBS="${LIBS}${LIBS:+ }$element" | |
19676 | fi | |
19677 | done | |
19678 | ||
66170b30 | 19679 | |
66170b30 JF |
19680 | |
19681 | ||
b66977f1 | 19682 | |
b66977f1 | 19683 | |
7eda51e0 JF |
19684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5 |
19685 | $as_echo_n "checking for framework Foundation... " >&6; } | |
19686 | if ${ac_cv_framework_Foundation+:} false; then : | |
19687 | $as_echo_n "(cached) " >&6 | |
b66977f1 | 19688 | else |
b66977f1 | 19689 | |
7eda51e0 JF |
19690 | ac_check_framework_save_LIBS=$LIBS |
19691 | LIBS="-framework Foundation $LIBS" | |
19692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19693 | /* end confdefs.h. */ | |
66170b30 | 19694 | |
7eda51e0 | 19695 | #include <Foundation/NSObject.h> |
b66977f1 | 19696 | |
7eda51e0 JF |
19697 | int |
19698 | main () | |
19699 | { | |
19700 | [[NSObject alloc] init]; | |
19701 | ; | |
19702 | return 0; | |
19703 | } | |
19704 | _ACEOF | |
19705 | if ac_fn_objcxx_try_link "$LINENO"; then : | |
b66977f1 | 19706 | |
7eda51e0 | 19707 | ac_cv_framework_Foundation=yes |
b66977f1 | 19708 | |
7eda51e0 JF |
19709 | else |
19710 | ac_cv_framework_Foundation=no | |
19711 | fi | |
19712 | rm -f core conftest.err conftest.$ac_objext \ | |
19713 | conftest$ac_exeext conftest.$ac_ext | |
19714 | LIBS=$ac_check_framework_save_LIBS | |
19715 | ||
19716 | fi | |
19717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5 | |
19718 | $as_echo "$ac_cv_framework_Foundation" >&6; } | |
19719 | if test $ac_cv_framework_Foundation = yes; then : | |
b66977f1 DWT |
19720 | |
19721 | ||
7eda51e0 | 19722 | for element in "-framework Foundation"; do |
b66977f1 DWT |
19723 | haveit= |
19724 | for x in $LIBS; do | |
19725 | ||
19726 | acl_save_prefix="$prefix" | |
19727 | prefix="$acl_final_prefix" | |
19728 | acl_save_exec_prefix="$exec_prefix" | |
19729 | exec_prefix="$acl_final_exec_prefix" | |
19730 | eval x=\"$x\" | |
19731 | exec_prefix="$acl_save_exec_prefix" | |
19732 | prefix="$acl_save_prefix" | |
19733 | ||
19734 | if test "X$x" = "X$element"; then | |
19735 | haveit=yes | |
19736 | break | |
19737 | fi | |
19738 | done | |
19739 | if test -z "$haveit"; then | |
19740 | LIBS="${LIBS}${LIBS:+ }$element" | |
19741 | fi | |
19742 | done | |
19743 | ||
7eda51e0 JF |
19744 | cat >>confdefs.h <<_ACEOF |
19745 | #define HAVE_FRAMEWORK_FOUNDATION 1 | |
19746 | _ACEOF | |
19747 | ||
b66977f1 | 19748 | |
7eda51e0 | 19749 | fi |
b66977f1 DWT |
19750 | |
19751 | ||
7eda51e0 | 19752 | else |
b66977f1 | 19753 | |
b66977f1 | 19754 | |
7eda51e0 JF |
19755 | for ac_prog in gnustep-config |
19756 | do | |
19757 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
19758 | set dummy $ac_prog; ac_word=$2 | |
19759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
19760 | $as_echo_n "checking for $ac_word... " >&6; } | |
19761 | if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then : | |
19762 | $as_echo_n "(cached) " >&6 | |
b66977f1 | 19763 | else |
7eda51e0 JF |
19764 | if test -n "$GNUSTEP_CONFIG"; then |
19765 | ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test. | |
b66977f1 | 19766 | else |
7eda51e0 JF |
19767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19768 | for as_dir in $PATH | |
19769 | do | |
19770 | IFS=$as_save_IFS | |
19771 | test -z "$as_dir" && as_dir=. | |
19772 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19773 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
19774 | ac_cv_prog_GNUSTEP_CONFIG="$ac_prog" | |
19775 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19776 | break 2 | |
19777 | fi | |
19778 | done | |
19779 | done | |
19780 | IFS=$as_save_IFS | |
b66977f1 | 19781 | |
b66977f1 | 19782 | fi |
b66977f1 | 19783 | fi |
7eda51e0 JF |
19784 | GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG |
19785 | if test -n "$GNUSTEP_CONFIG"; then | |
19786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5 | |
19787 | $as_echo "$GNUSTEP_CONFIG" >&6; } | |
b66977f1 | 19788 | else |
7eda51e0 | 19789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12833ad8 | 19790 | $as_echo "no" >&6; } |
b66977f1 | 19791 | fi |
66170b30 | 19792 | |
66170b30 | 19793 | |
7eda51e0 JF |
19794 | test -n "$GNUSTEP_CONFIG" && break |
19795 | done | |
b66977f1 | 19796 | |
b66977f1 | 19797 | |
7eda51e0 | 19798 | if test "x$GNUSTEP_CONFIG" != x; then : |
b66977f1 | 19799 | |
b66977f1 DWT |
19800 | |
19801 | ||
7eda51e0 | 19802 | for element in `$GNUSTEP_CONFIG --objc-flags`; do |
b66977f1 | 19803 | haveit= |
7eda51e0 | 19804 | for x in $OBJCXXFLAGS; do |
b66977f1 DWT |
19805 | |
19806 | acl_save_prefix="$prefix" | |
19807 | prefix="$acl_final_prefix" | |
19808 | acl_save_exec_prefix="$exec_prefix" | |
19809 | exec_prefix="$acl_final_exec_prefix" | |
19810 | eval x=\"$x\" | |
19811 | exec_prefix="$acl_save_exec_prefix" | |
19812 | prefix="$acl_save_prefix" | |
19813 | ||
19814 | if test "X$x" = "X$element"; then | |
19815 | haveit=yes | |
19816 | break | |
19817 | fi | |
19818 | done | |
babf7fe8 JF |
19819 | if test -z "$haveit"; then |
19820 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
19821 | fi | |
19822 | done | |
a667869d | 19823 | |
a667869d | 19824 | |
babf7fe8 | 19825 | for element in `$GNUSTEP_CONFIG --base-libs`; do |
632b71ea | 19826 | haveit= |
babf7fe8 | 19827 | for x in $LIBS; do |
a667869d | 19828 | |
632b71ea DWT |
19829 | acl_save_prefix="$prefix" |
19830 | prefix="$acl_final_prefix" | |
19831 | acl_save_exec_prefix="$exec_prefix" | |
19832 | exec_prefix="$acl_final_exec_prefix" | |
19833 | eval x=\"$x\" | |
19834 | exec_prefix="$acl_save_exec_prefix" | |
19835 | prefix="$acl_save_prefix" | |
19836 | ||
19837 | if test "X$x" = "X$element"; then | |
19838 | haveit=yes | |
19839 | break | |
19840 | fi | |
19841 | done | |
19842 | if test -z "$haveit"; then | |
babf7fe8 | 19843 | LIBS="${LIBS}${LIBS:+ }$element" |
632b71ea DWT |
19844 | fi |
19845 | done | |
19846 | ||
5053a6d1 | 19847 | |
babf7fe8 JF |
19848 | else |
19849 | CY_OBJECTIVEC=0 | |
19850 | ||
19851 | fi | |
19852 | ||
19853 | fi | |
19854 | LTOBJECTIVEC=$LIBS | |
19855 | LIBS=$cy_save | |
19856 | ||
19857 | ||
19858 | ||
19859 | fi | |
19860 | ||
19861 | ac_ext=cpp | |
19862 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19863 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19864 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19865 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19866 | ||
19867 | ;; #( | |
19868 | *) : | |
19869 | ;; | |
19870 | esac | |
19871 | ||
19872 | if test "x$CY_OBJECTIVEC" = x1; then | |
19873 | CY_OBJECTIVEC_TRUE= | |
19874 | CY_OBJECTIVEC_FALSE='#' | |
19875 | else | |
19876 | CY_OBJECTIVEC_TRUE='#' | |
19877 | CY_OBJECTIVEC_FALSE= | |
19878 | fi | |
19879 | ||
19880 | ||
19881 | ||
19882 | cy_save=$LIBS | |
19883 | LIBS= | |
19884 | ||
19885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5 | |
19886 | $as_echo_n "checking for a readline compatible library... " >&6; } | |
19887 | if ${ax_cv_lib_readline+:} false; then : | |
5053a6d1 | 19888 | $as_echo_n "(cached) " >&6 |
a667869d | 19889 | else |
632b71ea | 19890 | |
babf7fe8 JF |
19891 | ORIG_LIBS="$LIBS" |
19892 | for readline_lib in readline edit editline; do | |
19893 | for termcap_lib in "" termcap curses ncurses; do | |
19894 | if test -z "$termcap_lib"; then | |
19895 | TRY_LIB="-l$readline_lib" | |
19896 | else | |
19897 | TRY_LIB="-l$readline_lib -l$termcap_lib" | |
19898 | fi | |
19899 | LIBS="$ORIG_LIBS $TRY_LIB" | |
19900 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5053a6d1 | 19901 | /* end confdefs.h. */ |
632b71ea | 19902 | |
babf7fe8 JF |
19903 | /* Override any GCC internal prototype to avoid an error. |
19904 | Use char because int might match the return type of a GCC | |
19905 | builtin and then its argument prototype would still apply. */ | |
19906 | #ifdef __cplusplus | |
19907 | extern "C" | |
19908 | #endif | |
19909 | char readline (); | |
5053a6d1 DWT |
19910 | int |
19911 | main () | |
19912 | { | |
babf7fe8 | 19913 | return readline (); |
5053a6d1 DWT |
19914 | ; |
19915 | return 0; | |
19916 | } | |
19917 | _ACEOF | |
babf7fe8 JF |
19918 | if ac_fn_cxx_try_link "$LINENO"; then : |
19919 | ax_cv_lib_readline="$TRY_LIB" | |
5053a6d1 DWT |
19920 | fi |
19921 | rm -f core conftest.err conftest.$ac_objext \ | |
19922 | conftest$ac_exeext conftest.$ac_ext | |
babf7fe8 JF |
19923 | if test -n "$ax_cv_lib_readline"; then |
19924 | break | |
19925 | fi | |
19926 | done | |
19927 | if test -n "$ax_cv_lib_readline"; then | |
19928 | break | |
19929 | fi | |
19930 | done | |
19931 | if test -z "$ax_cv_lib_readline"; then | |
19932 | ax_cv_lib_readline="no" | |
19933 | fi | |
19934 | LIBS="$ORIG_LIBS" | |
19935 | ||
19936 | fi | |
19937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5 | |
19938 | $as_echo "$ax_cv_lib_readline" >&6; } | |
19939 | ||
19940 | if test "$ax_cv_lib_readline" != "no"; then | |
19941 | LIBS="$LIBS $ax_cv_lib_readline" | |
19942 | ||
19943 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | |
19944 | ||
19945 | for ac_header in readline.h readline/readline.h | |
19946 | do : | |
19947 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
19948 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
19949 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
19950 | cat >>confdefs.h <<_ACEOF | |
19951 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19952 | _ACEOF | |
19953 | ||
19954 | fi | |
19955 | ||
19956 | done | |
19957 | ||
19958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 | |
19959 | $as_echo_n "checking whether readline supports history... " >&6; } | |
19960 | if ${ax_cv_lib_readline_history+:} false; then : | |
19961 | $as_echo_n "(cached) " >&6 | |
19962 | else | |
19963 | ||
19964 | ax_cv_lib_readline_history="no" | |
7eda51e0 JF |
19965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
19966 | /* end confdefs.h. */ | |
5053a6d1 | 19967 | |
babf7fe8 JF |
19968 | /* Override any GCC internal prototype to avoid an error. |
19969 | Use char because int might match the return type of a GCC | |
19970 | builtin and then its argument prototype would still apply. */ | |
19971 | #ifdef __cplusplus | |
19972 | extern "C" | |
19973 | #endif | |
19974 | char add_history (); | |
058f1bc8 DWT |
19975 | int |
19976 | main () | |
19977 | { | |
babf7fe8 | 19978 | return add_history (); |
058f1bc8 DWT |
19979 | ; |
19980 | return 0; | |
19981 | } | |
19982 | _ACEOF | |
babf7fe8 JF |
19983 | if ac_fn_cxx_try_link "$LINENO"; then : |
19984 | ax_cv_lib_readline_history="yes" | |
058f1bc8 DWT |
19985 | fi |
19986 | rm -f core conftest.err conftest.$ac_objext \ | |
19987 | conftest$ac_exeext conftest.$ac_ext | |
a667869d | 19988 | |
a667869d | 19989 | fi |
babf7fe8 JF |
19990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5 |
19991 | $as_echo "$ax_cv_lib_readline_history" >&6; } | |
19992 | if test "$ax_cv_lib_readline_history" = "yes"; then | |
058f1bc8 | 19993 | |
babf7fe8 | 19994 | $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h |
058f1bc8 | 19995 | |
babf7fe8 JF |
19996 | for ac_header in history.h readline/history.h |
19997 | do : | |
19998 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
19999 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
20000 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
20001 | cat >>confdefs.h <<_ACEOF | |
20002 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7eda51e0 | 20003 | _ACEOF |
babf7fe8 | 20004 | |
7eda51e0 | 20005 | fi |
058f1bc8 | 20006 | |
babf7fe8 | 20007 | done |
058f1bc8 | 20008 | |
babf7fe8 | 20009 | fi |
7eda51e0 | 20010 | fi |
058f1bc8 | 20011 | |
babf7fe8 JF |
20012 | LTLIBREADLINE=$LIBS |
20013 | LIBS=$cy_save | |
058f1bc8 | 20014 | |
058f1bc8 | 20015 | |
babf7fe8 JF |
20016 | case $ax_cv_lib_readline in #( |
20017 | no) : | |
20018 | as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #( | |
20019 | *) : | |
20020 | ;; | |
20021 | esac | |
058f1bc8 DWT |
20022 | |
20023 | ||
babf7fe8 JF |
20024 | cy_save=$LIBS |
20025 | LIBS= | |
20026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5 | |
20027 | $as_echo_n "checking for library containing cur_term... " >&6; } | |
20028 | if ${ac_cv_search_cur_term+:} false; then : | |
7eda51e0 JF |
20029 | $as_echo_n "(cached) " >&6 |
20030 | else | |
babf7fe8 JF |
20031 | ac_func_search_save_LIBS=$LIBS |
20032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7eda51e0 JF |
20033 | /* end confdefs.h. */ |
20034 | ||
babf7fe8 JF |
20035 | /* Override any GCC internal prototype to avoid an error. |
20036 | Use char because int might match the return type of a GCC | |
20037 | builtin and then its argument prototype would still apply. */ | |
7eda51e0 | 20038 | #ifdef __cplusplus |
babf7fe8 | 20039 | extern "C" |
7eda51e0 | 20040 | #endif |
babf7fe8 | 20041 | char cur_term (); |
7eda51e0 JF |
20042 | int |
20043 | main () | |
20044 | { | |
babf7fe8 | 20045 | return cur_term (); |
7eda51e0 JF |
20046 | ; |
20047 | return 0; | |
20048 | } | |
20049 | _ACEOF | |
a93f15c0 | 20050 | for ac_lib in '' termcap ncurses; do |
babf7fe8 JF |
20051 | if test -z "$ac_lib"; then |
20052 | ac_res="none required" | |
20053 | else | |
20054 | ac_res=-l$ac_lib | |
20055 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
20056 | fi | |
20057 | if ac_fn_cxx_try_link "$LINENO"; then : | |
20058 | ac_cv_search_cur_term=$ac_res | |
7eda51e0 | 20059 | fi |
babf7fe8 JF |
20060 | rm -f core conftest.err conftest.$ac_objext \ |
20061 | conftest$ac_exeext | |
20062 | if ${ac_cv_search_cur_term+:} false; then : | |
20063 | break | |
7eda51e0 | 20064 | fi |
babf7fe8 JF |
20065 | done |
20066 | if ${ac_cv_search_cur_term+:} false; then : | |
058f1bc8 | 20067 | |
babf7fe8 JF |
20068 | else |
20069 | ac_cv_search_cur_term=no | |
20070 | fi | |
20071 | rm conftest.$ac_ext | |
20072 | LIBS=$ac_func_search_save_LIBS | |
20073 | fi | |
20074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5 | |
20075 | $as_echo "$ac_cv_search_cur_term" >&6; } | |
20076 | ac_res=$ac_cv_search_cur_term | |
20077 | if test "$ac_res" != no; then : | |
20078 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
058f1bc8 | 20079 | |
babf7fe8 | 20080 | fi |
058f1bc8 | 20081 | |
babf7fe8 JF |
20082 | LTLIBTERMCAP=$LIBS |
20083 | LIBS=$cy_save | |
058f1bc8 | 20084 | |
058f1bc8 | 20085 | |
66170b30 JF |
20086 | |
20087 | ||
9777bd50 JF |
20088 | SO=$acl_shlibext |
20089 | ||
e1cce270 | 20090 | |
7eda51e0 JF |
20091 | if test "x$CY_EXECUTE" = x1; then : |
20092 | ||
20093 | ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" | |
ee134472 | 20094 | if test "x$ac_cv_header_mach_mach_h" = xyes; then : |
e1cce270 | 20095 | |
7eda51e0 | 20096 | if test -n "$ac_tool_prefix"; then |
a243b558 | 20097 | for ac_prog in lipo |
794e88e7 DWT |
20098 | do |
20099 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
20100 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
20101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20102 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 20103 | if ${ac_cv_prog__LIPO+:} false; then : |
794e88e7 DWT |
20104 | $as_echo_n "(cached) " >&6 |
20105 | else | |
a243b558 JF |
20106 | if test -n "$_LIPO"; then |
20107 | ac_cv_prog__LIPO="$_LIPO" # Let the user override the test. | |
794e88e7 DWT |
20108 | else |
20109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20110 | for as_dir in $PATH | |
20111 | do | |
20112 | IFS=$as_save_IFS | |
20113 | test -z "$as_dir" && as_dir=. | |
20114 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 20115 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 20116 | ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog" |
794e88e7 DWT |
20117 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20118 | break 2 | |
20119 | fi | |
20120 | done | |
20121 | done | |
20122 | IFS=$as_save_IFS | |
20123 | ||
20124 | fi | |
20125 | fi | |
a243b558 JF |
20126 | _LIPO=$ac_cv_prog__LIPO |
20127 | if test -n "$_LIPO"; then | |
20128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5 | |
20129 | $as_echo "$_LIPO" >&6; } | |
794e88e7 DWT |
20130 | else |
20131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20132 | $as_echo "no" >&6; } | |
20133 | fi | |
20134 | ||
20135 | ||
a243b558 | 20136 | test -n "$_LIPO" && break |
794e88e7 DWT |
20137 | done |
20138 | fi | |
a243b558 JF |
20139 | if test -z "$_LIPO"; then |
20140 | ac_ct__LIPO=$_LIPO | |
20141 | for ac_prog in lipo | |
794e88e7 DWT |
20142 | do |
20143 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
20144 | set dummy $ac_prog; ac_word=$2 | |
20145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20146 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 20147 | if ${ac_cv_prog_ac_ct__LIPO+:} false; then : |
794e88e7 DWT |
20148 | $as_echo_n "(cached) " >&6 |
20149 | else | |
a243b558 JF |
20150 | if test -n "$ac_ct__LIPO"; then |
20151 | ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test. | |
794e88e7 DWT |
20152 | else |
20153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20154 | for as_dir in $PATH | |
20155 | do | |
20156 | IFS=$as_save_IFS | |
20157 | test -z "$as_dir" && as_dir=. | |
20158 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 20159 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 20160 | ac_cv_prog_ac_ct__LIPO="$ac_prog" |
794e88e7 DWT |
20161 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20162 | break 2 | |
20163 | fi | |
20164 | done | |
20165 | done | |
20166 | IFS=$as_save_IFS | |
20167 | ||
20168 | fi | |
20169 | fi | |
a243b558 JF |
20170 | ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO |
20171 | if test -n "$ac_ct__LIPO"; then | |
20172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5 | |
20173 | $as_echo "$ac_ct__LIPO" >&6; } | |
794e88e7 DWT |
20174 | else |
20175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20176 | $as_echo "no" >&6; } | |
20177 | fi | |
20178 | ||
20179 | ||
a243b558 | 20180 | test -n "$ac_ct__LIPO" && break |
794e88e7 DWT |
20181 | done |
20182 | ||
a243b558 JF |
20183 | if test "x$ac_ct__LIPO" = x; then |
20184 | _LIPO="as_fn_error $? "missing \"lipo\"" "$LINENO" 5" | |
794e88e7 DWT |
20185 | else |
20186 | case $cross_compiling:$ac_tool_warned in | |
20187 | yes:) | |
20188 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
20189 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
20190 | ac_tool_warned=yes ;; | |
e1cce270 | 20191 | esac |
a243b558 | 20192 | _LIPO=$ac_ct__LIPO |
794e88e7 DWT |
20193 | fi |
20194 | fi | |
20195 | ||
7eda51e0 | 20196 | if test -n "$ac_tool_prefix"; then |
a243b558 | 20197 | for ac_prog in nm |
794e88e7 DWT |
20198 | do |
20199 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
20200 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
20201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20202 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 20203 | if ${ac_cv_prog__NM+:} false; then : |
794e88e7 DWT |
20204 | $as_echo_n "(cached) " >&6 |
20205 | else | |
a243b558 JF |
20206 | if test -n "$_NM"; then |
20207 | ac_cv_prog__NM="$_NM" # Let the user override the test. | |
794e88e7 DWT |
20208 | else |
20209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20210 | for as_dir in $PATH | |
20211 | do | |
20212 | IFS=$as_save_IFS | |
20213 | test -z "$as_dir" && as_dir=. | |
20214 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 20215 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 20216 | ac_cv_prog__NM="$ac_tool_prefix$ac_prog" |
794e88e7 DWT |
20217 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20218 | break 2 | |
20219 | fi | |
20220 | done | |
20221 | done | |
20222 | IFS=$as_save_IFS | |
20223 | ||
20224 | fi | |
20225 | fi | |
a243b558 JF |
20226 | _NM=$ac_cv_prog__NM |
20227 | if test -n "$_NM"; then | |
20228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5 | |
20229 | $as_echo "$_NM" >&6; } | |
794e88e7 DWT |
20230 | else |
20231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20232 | $as_echo "no" >&6; } | |
20233 | fi | |
20234 | ||
20235 | ||
a243b558 | 20236 | test -n "$_NM" && break |
794e88e7 DWT |
20237 | done |
20238 | fi | |
a243b558 JF |
20239 | if test -z "$_NM"; then |
20240 | ac_ct__NM=$_NM | |
20241 | for ac_prog in nm | |
794e88e7 DWT |
20242 | do |
20243 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
20244 | set dummy $ac_prog; ac_word=$2 | |
20245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20246 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 20247 | if ${ac_cv_prog_ac_ct__NM+:} false; then : |
794e88e7 DWT |
20248 | $as_echo_n "(cached) " >&6 |
20249 | else | |
a243b558 JF |
20250 | if test -n "$ac_ct__NM"; then |
20251 | ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test. | |
794e88e7 DWT |
20252 | else |
20253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20254 | for as_dir in $PATH | |
20255 | do | |
20256 | IFS=$as_save_IFS | |
20257 | test -z "$as_dir" && as_dir=. | |
20258 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 20259 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 20260 | ac_cv_prog_ac_ct__NM="$ac_prog" |
794e88e7 DWT |
20261 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20262 | break 2 | |
20263 | fi | |
20264 | done | |
20265 | done | |
20266 | IFS=$as_save_IFS | |
20267 | ||
20268 | fi | |
20269 | fi | |
a243b558 JF |
20270 | ac_ct__NM=$ac_cv_prog_ac_ct__NM |
20271 | if test -n "$ac_ct__NM"; then | |
20272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5 | |
20273 | $as_echo "$ac_ct__NM" >&6; } | |
794e88e7 DWT |
20274 | else |
20275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20276 | $as_echo "no" >&6; } | |
20277 | fi | |
20278 | ||
20279 | ||
a243b558 | 20280 | test -n "$ac_ct__NM" && break |
794e88e7 DWT |
20281 | done |
20282 | ||
a243b558 JF |
20283 | if test "x$ac_ct__NM" = x; then |
20284 | _NM="as_fn_error $? "missing \"nm\"" "$LINENO" 5" | |
794e88e7 DWT |
20285 | else |
20286 | case $cross_compiling:$ac_tool_warned in | |
20287 | yes:) | |
20288 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
20289 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
20290 | ac_tool_warned=yes ;; | |
20291 | esac | |
a243b558 | 20292 | _NM=$ac_ct__NM |
794e88e7 DWT |
20293 | fi |
20294 | fi | |
20295 | ||
7eda51e0 | 20296 | if test -n "$ac_tool_prefix"; then |
a243b558 | 20297 | for ac_prog in otool |
794e88e7 DWT |
20298 | do |
20299 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
20300 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
20301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20302 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 20303 | if ${ac_cv_prog__OTOOL+:} false; then : |
794e88e7 DWT |
20304 | $as_echo_n "(cached) " >&6 |
20305 | else | |
a243b558 JF |
20306 | if test -n "$_OTOOL"; then |
20307 | ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test. | |
794e88e7 DWT |
20308 | else |
20309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20310 | for as_dir in $PATH | |
20311 | do | |
20312 | IFS=$as_save_IFS | |
20313 | test -z "$as_dir" && as_dir=. | |
20314 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 20315 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 20316 | ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog" |
794e88e7 DWT |
20317 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20318 | break 2 | |
20319 | fi | |
20320 | done | |
20321 | done | |
20322 | IFS=$as_save_IFS | |
20323 | ||
20324 | fi | |
20325 | fi | |
a243b558 JF |
20326 | _OTOOL=$ac_cv_prog__OTOOL |
20327 | if test -n "$_OTOOL"; then | |
20328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5 | |
20329 | $as_echo "$_OTOOL" >&6; } | |
794e88e7 DWT |
20330 | else |
20331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20332 | $as_echo "no" >&6; } | |
20333 | fi | |
20334 | ||
20335 | ||
a243b558 | 20336 | test -n "$_OTOOL" && break |
794e88e7 DWT |
20337 | done |
20338 | fi | |
a243b558 JF |
20339 | if test -z "$_OTOOL"; then |
20340 | ac_ct__OTOOL=$_OTOOL | |
20341 | for ac_prog in otool | |
794e88e7 DWT |
20342 | do |
20343 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
20344 | set dummy $ac_prog; ac_word=$2 | |
20345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20346 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 20347 | if ${ac_cv_prog_ac_ct__OTOOL+:} false; then : |
794e88e7 DWT |
20348 | $as_echo_n "(cached) " >&6 |
20349 | else | |
a243b558 JF |
20350 | if test -n "$ac_ct__OTOOL"; then |
20351 | ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test. | |
794e88e7 DWT |
20352 | else |
20353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20354 | for as_dir in $PATH | |
20355 | do | |
20356 | IFS=$as_save_IFS | |
20357 | test -z "$as_dir" && as_dir=. | |
20358 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 20359 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 20360 | ac_cv_prog_ac_ct__OTOOL="$ac_prog" |
794e88e7 DWT |
20361 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20362 | break 2 | |
20363 | fi | |
20364 | done | |
20365 | done | |
20366 | IFS=$as_save_IFS | |
20367 | ||
20368 | fi | |
20369 | fi | |
a243b558 JF |
20370 | ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL |
20371 | if test -n "$ac_ct__OTOOL"; then | |
20372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5 | |
20373 | $as_echo "$ac_ct__OTOOL" >&6; } | |
794e88e7 DWT |
20374 | else |
20375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20376 | $as_echo "no" >&6; } | |
20377 | fi | |
20378 | ||
20379 | ||
a243b558 | 20380 | test -n "$ac_ct__OTOOL" && break |
794e88e7 DWT |
20381 | done |
20382 | ||
a243b558 JF |
20383 | if test "x$ac_ct__OTOOL" = x; then |
20384 | _OTOOL="as_fn_error $? "missing \"otool\"" "$LINENO" 5" | |
794e88e7 DWT |
20385 | else |
20386 | case $cross_compiling:$ac_tool_warned in | |
20387 | yes:) | |
20388 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
20389 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
20390 | ac_tool_warned=yes ;; | |
20391 | esac | |
a243b558 | 20392 | _OTOOL=$ac_ct__OTOOL |
794e88e7 DWT |
20393 | fi |
20394 | fi | |
20395 | ||
7eda51e0 | 20396 | CY_ATTACH_GROUP=procmod |
794e88e7 | 20397 | |
7eda51e0 | 20398 | CY_MACH=1 |
e1cce270 DWT |
20399 | |
20400 | fi | |
20401 | ||
20402 | ||
7eda51e0 | 20403 | fi |
a243b558 JF |
20404 | if test "x$CY_MACH" = x1; then |
20405 | CY_MACH_TRUE= | |
20406 | CY_MACH_FALSE='#' | |
20407 | else | |
20408 | CY_MACH_TRUE='#' | |
20409 | CY_MACH_FALSE= | |
47aaa820 | 20410 | fi |
9c60689e | 20411 | |
66170b30 | 20412 | |
a243b558 JF |
20413 | ac_config_files="$ac_config_files Makefile" |
20414 | ||
9c60689e DWT |
20415 | cat >confcache <<\_ACEOF |
20416 | # This file is a shell script that caches the results of configure | |
20417 | # tests run on this system so they can be shared between configure | |
20418 | # scripts and configure runs, see configure's option --config-cache. | |
20419 | # It is not useful on other systems. If it contains results you don't | |
20420 | # want to keep, you may remove or edit it. | |
20421 | # | |
20422 | # config.status only pays attention to the cache file if you give it | |
20423 | # the --recheck option to rerun configure. | |
20424 | # | |
20425 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
20426 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
20427 | # following values. | |
20428 | ||
20429 | _ACEOF | |
20430 | ||
20431 | # The following way of writing the cache mishandles newlines in values, | |
20432 | # but we know of no workaround that is simple, portable, and efficient. | |
20433 | # So, we kill variables containing newlines. | |
20434 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20435 | # and sets the high bit in the cache file unless we assign to the vars. | |
20436 | ( | |
20437 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
20438 | eval ac_val=\$$ac_var | |
20439 | case $ac_val in #( | |
20440 | *${as_nl}*) | |
20441 | case $ac_var in #( | |
20442 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
20443 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
20444 | esac | |
20445 | case $ac_var in #( | |
20446 | _ | IFS | as_nl) ;; #( | |
20447 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
20448 | *) { eval $ac_var=; unset $ac_var;} ;; | |
20449 | esac ;; | |
20450 | esac | |
20451 | done | |
20452 | ||
20453 | (set) 2>&1 | | |
20454 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
20455 | *${as_nl}ac_space=\ *) | |
20456 | # `set' does not quote correctly, so add quotes: double-quote | |
20457 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
20458 | sed -n \ | |
20459 | "s/'/'\\\\''/g; | |
20460 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
20461 | ;; #( | |
20462 | *) | |
20463 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20464 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
20465 | ;; | |
20466 | esac | | |
20467 | sort | |
20468 | ) | | |
20469 | sed ' | |
20470 | /^ac_cv_env_/b end | |
20471 | t clear | |
20472 | :clear | |
20473 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
20474 | t end | |
20475 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
20476 | :end' >>confcache | |
20477 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
20478 | if test -w "$cache_file"; then | |
ee134472 | 20479 | if test "x$cache_file" != "x/dev/null"; then |
9c60689e DWT |
20480 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
20481 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ee134472 JF |
20482 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
20483 | cat confcache >"$cache_file" | |
20484 | else | |
20485 | case $cache_file in #( | |
20486 | */* | ?:*) | |
20487 | mv -f confcache "$cache_file"$$ && | |
20488 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
20489 | *) | |
20490 | mv -f confcache "$cache_file" ;; | |
20491 | esac | |
20492 | fi | |
20493 | fi | |
9c60689e DWT |
20494 | else |
20495 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
20496 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
20497 | fi | |
20498 | fi | |
20499 | rm -f confcache | |
20500 | ||
20501 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
20502 | # Let make expand exec_prefix. | |
20503 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
20504 | ||
296ee9a6 | 20505 | DEFS=-DHAVE_CONFIG_H |
9c60689e DWT |
20506 | |
20507 | ac_libobjs= | |
20508 | ac_ltlibobjs= | |
12833ad8 | 20509 | U= |
9c60689e DWT |
20510 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
20511 | # 1. Remove the extension, and $U if already installed. | |
20512 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
20513 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
20514 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
20515 | # will be set to the directory where LIBOBJS objects are built. | |
20516 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
20517 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
20518 | done | |
20519 | LIBOBJS=$ac_libobjs | |
20520 | ||
20521 | LTLIBOBJS=$ac_ltlibobjs | |
20522 | ||
20523 | ||
66170b30 JF |
20524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
20525 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
20526 | if test -n "$am_sleep_pid"; then | |
20527 | # Hide warnings about reused PIDs. | |
20528 | wait $am_sleep_pid 2>/dev/null | |
20529 | fi | |
20530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
20531 | $as_echo "done" >&6; } | |
20532 | if test -n "$EXEEXT"; then | |
20533 | am__EXEEXT_TRUE= | |
20534 | am__EXEEXT_FALSE='#' | |
20535 | else | |
20536 | am__EXEEXT_TRUE='#' | |
20537 | am__EXEEXT_FALSE= | |
20538 | fi | |
20539 | ||
babf7fe8 JF |
20540 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
20541 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
20542 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20543 | fi | |
66170b30 JF |
20544 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
20545 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
20546 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20547 | fi | |
a93f15c0 JF |
20548 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
20549 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
20550 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20551 | fi | |
66170b30 JF |
20552 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
20553 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | |
20554 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20555 | fi | |
20556 | if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then | |
20557 | as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined. | |
20558 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20559 | fi | |
a93f15c0 JF |
20560 | if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then |
20561 | as_fn_error $? "conditional \"CY_CONSOLE\" was never defined. | |
babf7fe8 JF |
20562 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
20563 | fi | |
a243b558 JF |
20564 | if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then |
20565 | as_fn_error $? "conditional \"CY_EXECUTE\" was never defined. | |
20566 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20567 | fi | |
20568 | if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then | |
20569 | as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined. | |
20570 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20571 | fi | |
20572 | if test -z "${CY_MACH_TRUE}" && test -z "${CY_MACH_FALSE}"; then | |
20573 | as_fn_error $? "conditional \"CY_MACH\" was never defined. | |
20574 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20575 | fi | |
9c60689e | 20576 | |
ee134472 | 20577 | : "${CONFIG_STATUS=./config.status}" |
9c60689e DWT |
20578 | ac_write_fail=0 |
20579 | ac_clean_files_save=$ac_clean_files | |
20580 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
20581 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
20582 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
20583 | as_write_fail=0 | |
20584 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
20585 | #! $SHELL | |
20586 | # Generated by $as_me. | |
20587 | # Run this file to recreate the current configuration. | |
20588 | # Compiler output produced by configure, useful for debugging | |
20589 | # configure, is in config.log if it exists. | |
20590 | ||
20591 | debug=false | |
20592 | ac_cs_recheck=false | |
20593 | ac_cs_silent=false | |
20594 | ||
20595 | SHELL=\${CONFIG_SHELL-$SHELL} | |
20596 | export SHELL | |
20597 | _ASEOF | |
20598 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
20599 | ## -------------------- ## | |
20600 | ## M4sh Initialization. ## | |
20601 | ## -------------------- ## | |
20602 | ||
20603 | # Be more Bourne compatible | |
20604 | DUALCASE=1; export DUALCASE # for MKS sh | |
20605 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
20606 | emulate sh | |
20607 | NULLCMD=: | |
20608 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
20609 | # is contrary to our usage. Disable this feature. | |
20610 | alias -g '${1+"$@"}'='"$@"' | |
20611 | setopt NO_GLOB_SUBST | |
20612 | else | |
20613 | case `(set -o) 2>/dev/null` in #( | |
20614 | *posix*) : | |
20615 | set -o posix ;; #( | |
20616 | *) : | |
20617 | ;; | |
20618 | esac | |
20619 | fi | |
20620 | ||
20621 | ||
20622 | as_nl=' | |
20623 | ' | |
20624 | export as_nl | |
20625 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
20626 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
20627 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
20628 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
20629 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
20630 | # but without wasting forks for bash or zsh. | |
20631 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
20632 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
20633 | as_echo='print -r --' | |
20634 | as_echo_n='print -rn --' | |
20635 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
20636 | as_echo='printf %s\n' | |
20637 | as_echo_n='printf %s' | |
20638 | else | |
20639 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
20640 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
20641 | as_echo_n='/usr/ucb/echo -n' | |
20642 | else | |
20643 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
20644 | as_echo_n_body='eval | |
20645 | arg=$1; | |
20646 | case $arg in #( | |
20647 | *"$as_nl"*) | |
20648 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
20649 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
20650 | esac; | |
20651 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
20652 | ' | |
20653 | export as_echo_n_body | |
20654 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
20655 | fi | |
20656 | export as_echo_body | |
20657 | as_echo='sh -c $as_echo_body as_echo' | |
20658 | fi | |
20659 | ||
20660 | # The user is always right. | |
20661 | if test "${PATH_SEPARATOR+set}" != set; then | |
20662 | PATH_SEPARATOR=: | |
20663 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
20664 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
20665 | PATH_SEPARATOR=';' | |
20666 | } | |
20667 | fi | |
20668 | ||
20669 | ||
20670 | # IFS | |
20671 | # We need space, tab and new line, in precisely that order. Quoting is | |
20672 | # there to prevent editors from complaining about space-tab. | |
20673 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
20674 | # splitting by setting IFS to empty value.) | |
20675 | IFS=" "" $as_nl" | |
20676 | ||
20677 | # Find who we are. Look in the path if we contain no directory separator. | |
ee134472 | 20678 | as_myself= |
9c60689e DWT |
20679 | case $0 in #(( |
20680 | *[\\/]* ) as_myself=$0 ;; | |
20681 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20682 | for as_dir in $PATH | |
20683 | do | |
20684 | IFS=$as_save_IFS | |
20685 | test -z "$as_dir" && as_dir=. | |
20686 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
20687 | done | |
20688 | IFS=$as_save_IFS | |
20689 | ||
20690 | ;; | |
20691 | esac | |
20692 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
20693 | # in which case we are not to be found in the path. | |
20694 | if test "x$as_myself" = x; then | |
20695 | as_myself=$0 | |
20696 | fi | |
20697 | if test ! -f "$as_myself"; then | |
20698 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
20699 | exit 1 | |
20700 | fi | |
20701 | ||
20702 | # Unset variables that we do not need and which cause bugs (e.g. in | |
20703 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
20704 | # suppresses any "Segmentation fault" message there. '((' could | |
20705 | # trigger a bug in pdksh 5.2.14. | |
20706 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
20707 | do eval test x\${$as_var+set} = xset \ | |
20708 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
20709 | done | |
20710 | PS1='$ ' | |
20711 | PS2='> ' | |
20712 | PS4='+ ' | |
20713 | ||
20714 | # NLS nuisances. | |
20715 | LC_ALL=C | |
20716 | export LC_ALL | |
20717 | LANGUAGE=C | |
20718 | export LANGUAGE | |
20719 | ||
20720 | # CDPATH. | |
20721 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
20722 | ||
20723 | ||
12833ad8 JF |
20724 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
20725 | # ---------------------------------------- | |
9c60689e DWT |
20726 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
20727 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
12833ad8 | 20728 | # script with STATUS, using 1 if that was 0. |
9c60689e DWT |
20729 | as_fn_error () |
20730 | { | |
12833ad8 JF |
20731 | as_status=$1; test $as_status -eq 0 && as_status=1 |
20732 | if test "$4"; then | |
20733 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
20734 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
9c60689e | 20735 | fi |
12833ad8 | 20736 | $as_echo "$as_me: error: $2" >&2 |
9c60689e DWT |
20737 | as_fn_exit $as_status |
20738 | } # as_fn_error | |
20739 | ||
20740 | ||
20741 | # as_fn_set_status STATUS | |
20742 | # ----------------------- | |
20743 | # Set $? to STATUS, without forking. | |
20744 | as_fn_set_status () | |
20745 | { | |
20746 | return $1 | |
20747 | } # as_fn_set_status | |
20748 | ||
20749 | # as_fn_exit STATUS | |
20750 | # ----------------- | |
20751 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
20752 | as_fn_exit () | |
20753 | { | |
20754 | set +e | |
20755 | as_fn_set_status $1 | |
20756 | exit $1 | |
20757 | } # as_fn_exit | |
20758 | ||
20759 | # as_fn_unset VAR | |
20760 | # --------------- | |
20761 | # Portably unset VAR. | |
20762 | as_fn_unset () | |
20763 | { | |
20764 | { eval $1=; unset $1;} | |
20765 | } | |
20766 | as_unset=as_fn_unset | |
20767 | # as_fn_append VAR VALUE | |
20768 | # ---------------------- | |
20769 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
20770 | # advantage of any shell optimizations that allow amortized linear growth over | |
20771 | # repeated appends, instead of the typical quadratic growth present in naive | |
20772 | # implementations. | |
20773 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
20774 | eval 'as_fn_append () | |
20775 | { | |
20776 | eval $1+=\$2 | |
20777 | }' | |
20778 | else | |
20779 | as_fn_append () | |
20780 | { | |
20781 | eval $1=\$$1\$2 | |
20782 | } | |
20783 | fi # as_fn_append | |
20784 | ||
20785 | # as_fn_arith ARG... | |
20786 | # ------------------ | |
20787 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
20788 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
20789 | # must be portable across $(()) and expr. | |
20790 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
20791 | eval 'as_fn_arith () | |
20792 | { | |
20793 | as_val=$(( $* )) | |
20794 | }' | |
20795 | else | |
20796 | as_fn_arith () | |
20797 | { | |
20798 | as_val=`expr "$@" || test $? -eq 1` | |
20799 | } | |
20800 | fi # as_fn_arith | |
20801 | ||
20802 | ||
20803 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
20804 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
20805 | as_expr=expr | |
20806 | else | |
20807 | as_expr=false | |
20808 | fi | |
20809 | ||
20810 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
20811 | as_basename=basename | |
20812 | else | |
20813 | as_basename=false | |
20814 | fi | |
20815 | ||
20816 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
20817 | as_dirname=dirname | |
20818 | else | |
20819 | as_dirname=false | |
20820 | fi | |
20821 | ||
20822 | as_me=`$as_basename -- "$0" || | |
20823 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
20824 | X"$0" : 'X\(//\)$' \| \ | |
20825 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
20826 | $as_echo X/"$0" | | |
20827 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
20828 | s//\1/ | |
20829 | q | |
20830 | } | |
20831 | /^X\/\(\/\/\)$/{ | |
20832 | s//\1/ | |
20833 | q | |
20834 | } | |
20835 | /^X\/\(\/\).*/{ | |
20836 | s//\1/ | |
20837 | q | |
20838 | } | |
20839 | s/.*/./; q'` | |
20840 | ||
20841 | # Avoid depending upon Character Ranges. | |
20842 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
20843 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
20844 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
20845 | as_cr_digits='0123456789' | |
20846 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
20847 | ||
20848 | ECHO_C= ECHO_N= ECHO_T= | |
20849 | case `echo -n x` in #((((( | |
20850 | -n*) | |
20851 | case `echo 'xy\c'` in | |
20852 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
20853 | xy) ECHO_C='\c';; | |
20854 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
20855 | ECHO_T=' ';; | |
20856 | esac;; | |
20857 | *) | |
20858 | ECHO_N='-n';; | |
20859 | esac | |
20860 | ||
20861 | rm -f conf$$ conf$$.exe conf$$.file | |
20862 | if test -d conf$$.dir; then | |
20863 | rm -f conf$$.dir/conf$$.file | |
20864 | else | |
20865 | rm -f conf$$.dir | |
20866 | mkdir conf$$.dir 2>/dev/null | |
20867 | fi | |
20868 | if (echo >conf$$.file) 2>/dev/null; then | |
20869 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
20870 | as_ln_s='ln -s' | |
20871 | # ... but there are two gotchas: | |
20872 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
20873 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
53ba6704 | 20874 | # In both cases, we have to default to `cp -pR'. |
9c60689e | 20875 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
53ba6704 | 20876 | as_ln_s='cp -pR' |
9c60689e DWT |
20877 | elif ln conf$$.file conf$$ 2>/dev/null; then |
20878 | as_ln_s=ln | |
20879 | else | |
53ba6704 | 20880 | as_ln_s='cp -pR' |
9c60689e DWT |
20881 | fi |
20882 | else | |
53ba6704 | 20883 | as_ln_s='cp -pR' |
9c60689e DWT |
20884 | fi |
20885 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
20886 | rmdir conf$$.dir 2>/dev/null | |
20887 | ||
20888 | ||
20889 | # as_fn_mkdir_p | |
20890 | # ------------- | |
20891 | # Create "$as_dir" as a directory, including parents if necessary. | |
20892 | as_fn_mkdir_p () | |
20893 | { | |
20894 | ||
20895 | case $as_dir in #( | |
20896 | -*) as_dir=./$as_dir;; | |
20897 | esac | |
20898 | test -d "$as_dir" || eval $as_mkdir_p || { | |
20899 | as_dirs= | |
20900 | while :; do | |
20901 | case $as_dir in #( | |
20902 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
20903 | *) as_qdir=$as_dir;; | |
20904 | esac | |
20905 | as_dirs="'$as_qdir' $as_dirs" | |
20906 | as_dir=`$as_dirname -- "$as_dir" || | |
20907 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20908 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
20909 | X"$as_dir" : 'X\(//\)$' \| \ | |
20910 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
20911 | $as_echo X"$as_dir" | | |
20912 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20913 | s//\1/ | |
20914 | q | |
20915 | } | |
20916 | /^X\(\/\/\)[^/].*/{ | |
20917 | s//\1/ | |
20918 | q | |
20919 | } | |
20920 | /^X\(\/\/\)$/{ | |
20921 | s//\1/ | |
20922 | q | |
20923 | } | |
20924 | /^X\(\/\).*/{ | |
20925 | s//\1/ | |
20926 | q | |
20927 | } | |
20928 | s/.*/./; q'` | |
20929 | test -d "$as_dir" && break | |
20930 | done | |
20931 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
12833ad8 | 20932 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
9c60689e DWT |
20933 | |
20934 | ||
20935 | } # as_fn_mkdir_p | |
20936 | if mkdir -p . 2>/dev/null; then | |
20937 | as_mkdir_p='mkdir -p "$as_dir"' | |
20938 | else | |
20939 | test -d ./-p && rmdir ./-p | |
20940 | as_mkdir_p=false | |
20941 | fi | |
20942 | ||
53ba6704 JF |
20943 | |
20944 | # as_fn_executable_p FILE | |
20945 | # ----------------------- | |
20946 | # Test if FILE is an executable regular file. | |
20947 | as_fn_executable_p () | |
20948 | { | |
20949 | test -f "$1" && test -x "$1" | |
20950 | } # as_fn_executable_p | |
20951 | as_test_x='test -x' | |
20952 | as_executable_p=as_fn_executable_p | |
9c60689e DWT |
20953 | |
20954 | # Sed expression to map a string onto a valid CPP name. | |
20955 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
20956 | ||
20957 | # Sed expression to map a string onto a valid variable name. | |
20958 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
20959 | ||
20960 | ||
20961 | exec 6>&1 | |
20962 | ## ----------------------------------- ## | |
20963 | ## Main body of $CONFIG_STATUS script. ## | |
20964 | ## ----------------------------------- ## | |
20965 | _ASEOF | |
20966 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
20967 | ||
20968 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20969 | # Save the log message, to keep $0 and so on meaningful, and to | |
20970 | # report actual input values of CONFIG_FILES etc. instead of their | |
20971 | # values after options handling. | |
20972 | ac_log=" | |
20973 | This file was extended by Cycript $as_me 0.9, which was | |
53ba6704 | 20974 | generated by GNU Autoconf 2.69. Invocation command line was |
9c60689e DWT |
20975 | |
20976 | CONFIG_FILES = $CONFIG_FILES | |
20977 | CONFIG_HEADERS = $CONFIG_HEADERS | |
20978 | CONFIG_LINKS = $CONFIG_LINKS | |
20979 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
20980 | $ $0 $@ | |
20981 | ||
20982 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
20983 | " | |
20984 | ||
20985 | _ACEOF | |
20986 | ||
20987 | case $ac_config_files in *" | |
20988 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
20989 | esac | |
20990 | ||
296ee9a6 JF |
20991 | case $ac_config_headers in *" |
20992 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
20993 | esac | |
9c60689e DWT |
20994 | |
20995 | ||
20996 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20997 | # Files that config.status was made for. | |
20998 | config_files="$ac_config_files" | |
296ee9a6 | 20999 | config_headers="$ac_config_headers" |
9c60689e DWT |
21000 | config_commands="$ac_config_commands" |
21001 | ||
21002 | _ACEOF | |
21003 | ||
21004 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21005 | ac_cs_usage="\ | |
21006 | \`$as_me' instantiates files and other configuration actions | |
21007 | from templates according to the current configuration. Unless the files | |
21008 | and actions are specified as TAGs, all are instantiated by default. | |
21009 | ||
21010 | Usage: $0 [OPTION]... [TAG]... | |
21011 | ||
21012 | -h, --help print this help, then exit | |
21013 | -V, --version print version number and configuration settings, then exit | |
21014 | --config print configuration, then exit | |
21015 | -q, --quiet, --silent | |
21016 | do not print progress messages | |
21017 | -d, --debug don't remove temporary files | |
21018 | --recheck update $as_me by reconfiguring in the same conditions | |
21019 | --file=FILE[:TEMPLATE] | |
21020 | instantiate the configuration file FILE | |
296ee9a6 JF |
21021 | --header=FILE[:TEMPLATE] |
21022 | instantiate the configuration header FILE | |
9c60689e DWT |
21023 | |
21024 | Configuration files: | |
21025 | $config_files | |
21026 | ||
296ee9a6 JF |
21027 | Configuration headers: |
21028 | $config_headers | |
21029 | ||
9c60689e DWT |
21030 | Configuration commands: |
21031 | $config_commands | |
21032 | ||
21033 | Report bugs to <saurik@saurik.com>. | |
21034 | Cycript home page: <http://www.cycript.org/>." | |
21035 | ||
21036 | _ACEOF | |
21037 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21038 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
21039 | ac_cs_version="\\ | |
21040 | Cycript config.status 0.9 | |
53ba6704 | 21041 | configured by $0, generated by GNU Autoconf 2.69, |
9c60689e DWT |
21042 | with options \\"\$ac_cs_config\\" |
21043 | ||
53ba6704 | 21044 | Copyright (C) 2012 Free Software Foundation, Inc. |
9c60689e DWT |
21045 | This config.status script is free software; the Free Software Foundation |
21046 | gives unlimited permission to copy, distribute and modify it." | |
21047 | ||
21048 | ac_pwd='$ac_pwd' | |
21049 | srcdir='$srcdir' | |
21050 | INSTALL='$INSTALL' | |
66170b30 JF |
21051 | MKDIR_P='$MKDIR_P' |
21052 | AWK='$AWK' | |
9c60689e DWT |
21053 | test -n "\$AWK" || AWK=awk |
21054 | _ACEOF | |
21055 | ||
21056 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21057 | # The default lists apply if the user does not specify any file. | |
21058 | ac_need_defaults=: | |
21059 | while test $# != 0 | |
21060 | do | |
21061 | case $1 in | |
12833ad8 | 21062 | --*=?*) |
9c60689e DWT |
21063 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
21064 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
21065 | ac_shift=: | |
21066 | ;; | |
12833ad8 JF |
21067 | --*=) |
21068 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
21069 | ac_optarg= | |
21070 | ac_shift=: | |
21071 | ;; | |
9c60689e DWT |
21072 | *) |
21073 | ac_option=$1 | |
21074 | ac_optarg=$2 | |
21075 | ac_shift=shift | |
21076 | ;; | |
21077 | esac | |
21078 | ||
21079 | case $ac_option in | |
21080 | # Handling of the options. | |
21081 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
21082 | ac_cs_recheck=: ;; | |
21083 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
21084 | $as_echo "$ac_cs_version"; exit ;; | |
21085 | --config | --confi | --conf | --con | --co | --c ) | |
21086 | $as_echo "$ac_cs_config"; exit ;; | |
21087 | --debug | --debu | --deb | --de | --d | -d ) | |
21088 | debug=: ;; | |
21089 | --file | --fil | --fi | --f ) | |
21090 | $ac_shift | |
21091 | case $ac_optarg in | |
21092 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12833ad8 | 21093 | '') as_fn_error $? "missing file argument" ;; |
9c60689e DWT |
21094 | esac |
21095 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
21096 | ac_need_defaults=false;; | |
296ee9a6 JF |
21097 | --header | --heade | --head | --hea ) |
21098 | $ac_shift | |
21099 | case $ac_optarg in | |
21100 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
21101 | esac | |
21102 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
21103 | ac_need_defaults=false;; | |
21104 | --he | --h) | |
21105 | # Conflict between --help and --header | |
21106 | as_fn_error $? "ambiguous option: \`$1' | |
21107 | Try \`$0 --help' for more information.";; | |
21108 | --help | --hel | -h ) | |
9c60689e DWT |
21109 | $as_echo "$ac_cs_usage"; exit ;; |
21110 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
21111 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
21112 | ac_cs_silent=: ;; | |
21113 | ||
21114 | # This is an error. | |
12833ad8 | 21115 | -*) as_fn_error $? "unrecognized option: \`$1' |
9c60689e DWT |
21116 | Try \`$0 --help' for more information." ;; |
21117 | ||
21118 | *) as_fn_append ac_config_targets " $1" | |
21119 | ac_need_defaults=false ;; | |
21120 | ||
21121 | esac | |
21122 | shift | |
21123 | done | |
21124 | ||
21125 | ac_configure_extra_args= | |
21126 | ||
21127 | if $ac_cs_silent; then | |
21128 | exec 6>/dev/null | |
21129 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
21130 | fi | |
21131 | ||
21132 | _ACEOF | |
21133 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21134 | if \$ac_cs_recheck; then | |
53ba6704 | 21135 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
9c60689e DWT |
21136 | shift |
21137 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
21138 | CONFIG_SHELL='$SHELL' | |
21139 | export CONFIG_SHELL | |
21140 | exec "\$@" | |
21141 | fi | |
21142 | ||
21143 | _ACEOF | |
21144 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21145 | exec 5>>config.log | |
21146 | { | |
21147 | echo | |
21148 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
21149 | ## Running $as_me. ## | |
21150 | _ASBOX | |
21151 | $as_echo "$ac_log" | |
21152 | } >&5 | |
21153 | ||
21154 | _ACEOF | |
21155 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21156 | # | |
21157 | # INIT-COMMANDS | |
21158 | # | |
66170b30 | 21159 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
9c60689e DWT |
21160 | |
21161 | ||
21162 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
21163 | # if CDPATH is set. | |
21164 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
21165 | ||
21166 | sed_quote_subst='$sed_quote_subst' | |
21167 | double_quote_subst='$double_quote_subst' | |
21168 | delay_variable_subst='$delay_variable_subst' | |
ee134472 JF |
21169 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
21170 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
21171 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
21172 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
21173 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
21174 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
21175 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
21176 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
53ba6704 | 21177 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
ee134472 JF |
21178 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
21179 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
21180 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
21181 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
21182 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
21183 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
21184 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
21185 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
21186 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
21187 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
21188 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
21189 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
21190 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
21191 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
21192 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
21193 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
21194 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
21195 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
21196 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
21197 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
21198 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
21199 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
21200 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
21201 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
21202 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
21203 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
21204 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
21205 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
21206 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
21207 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
21208 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
21209 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
21210 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
21211 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
21212 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
21213 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
21214 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
21215 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
21216 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
21217 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
21218 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
21219 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
21220 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
21221 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
21222 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
21223 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
21224 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
21225 | 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"`' | |
21226 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
21227 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
21228 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
21229 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
21230 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
21231 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
21232 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
21233 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
21234 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
21235 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
21236 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
21237 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
21238 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
21239 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
21240 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
21241 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
21242 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
21243 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
21244 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
21245 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
21246 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
21247 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
21248 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
21249 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
21250 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
21251 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
21252 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
21253 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
21254 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
21255 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
21256 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
21257 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
21258 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
21259 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
ee134472 JF |
21260 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
21261 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
21262 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
21263 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
21264 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
21265 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
21266 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
21267 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
21268 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
21269 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
21270 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
21271 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
21272 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
21273 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
21274 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
21275 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
21276 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
21277 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
21278 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
21279 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
21280 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
21281 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
21282 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
21283 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
21284 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
21285 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
21286 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
21287 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
21288 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
21289 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
21290 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
21291 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
21292 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
21293 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
21294 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
21295 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
21296 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
21297 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
21298 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
21299 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
21300 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
21301 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
21302 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
21303 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
21304 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
21305 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' | |
21306 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
21307 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21308 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21309 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' | |
21310 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' | |
21311 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
21312 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' | |
21313 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' | |
21314 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' | |
21315 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' | |
21316 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' | |
21317 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' | |
21318 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
21319 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
21320 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' | |
21321 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21322 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21323 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21324 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21325 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21326 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21327 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
21328 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
21329 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
21330 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
ee134472 JF |
21331 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' |
21332 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' | |
21333 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' | |
21334 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' | |
21335 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' | |
21336 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' | |
21337 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' | |
21338 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' | |
21339 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' | |
21340 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21341 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
21342 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
21343 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21344 | postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21345 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
21346 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' | |
21347 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' | |
21348 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
21349 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
21350 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' | |
21351 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' | |
21352 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' | |
9c60689e DWT |
21353 | |
21354 | LTCC='$LTCC' | |
21355 | LTCFLAGS='$LTCFLAGS' | |
21356 | compiler='$compiler_DEFAULT' | |
21357 | ||
ee134472 JF |
21358 | # A function that is used when there is no print builtin or printf. |
21359 | func_fallback_echo () | |
21360 | { | |
21361 | eval 'cat <<_LTECHO_EOF | |
21362 | \$1 | |
21363 | _LTECHO_EOF' | |
21364 | } | |
21365 | ||
9c60689e | 21366 | # Quote evaled strings. |
ee134472 JF |
21367 | for var in SHELL \ |
21368 | ECHO \ | |
53ba6704 | 21369 | PATH_SEPARATOR \ |
ee134472 | 21370 | SED \ |
9c60689e DWT |
21371 | GREP \ |
21372 | EGREP \ | |
21373 | FGREP \ | |
21374 | LD \ | |
21375 | NM \ | |
21376 | LN_S \ | |
21377 | lt_SP2NL \ | |
21378 | lt_NL2SP \ | |
21379 | reload_flag \ | |
21380 | OBJDUMP \ | |
21381 | deplibs_check_method \ | |
21382 | file_magic_cmd \ | |
ee134472 JF |
21383 | file_magic_glob \ |
21384 | want_nocaseglob \ | |
21385 | DLLTOOL \ | |
21386 | sharedlib_from_linklib_cmd \ | |
9c60689e DWT |
21387 | AR \ |
21388 | AR_FLAGS \ | |
ee134472 | 21389 | archiver_list_spec \ |
9c60689e DWT |
21390 | STRIP \ |
21391 | RANLIB \ | |
21392 | CC \ | |
21393 | CFLAGS \ | |
21394 | compiler \ | |
21395 | lt_cv_sys_global_symbol_pipe \ | |
21396 | lt_cv_sys_global_symbol_to_cdecl \ | |
21397 | lt_cv_sys_global_symbol_to_c_name_address \ | |
21398 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
ee134472 | 21399 | nm_file_list_spec \ |
9c60689e | 21400 | lt_prog_compiler_no_builtin_flag \ |
9c60689e | 21401 | lt_prog_compiler_pic \ |
ee134472 | 21402 | lt_prog_compiler_wl \ |
9c60689e DWT |
21403 | lt_prog_compiler_static \ |
21404 | lt_cv_prog_compiler_c_o \ | |
21405 | need_locks \ | |
ee134472 | 21406 | MANIFEST_TOOL \ |
9c60689e DWT |
21407 | DSYMUTIL \ |
21408 | NMEDIT \ | |
21409 | LIPO \ | |
21410 | OTOOL \ | |
21411 | OTOOL64 \ | |
21412 | shrext_cmds \ | |
21413 | export_dynamic_flag_spec \ | |
21414 | whole_archive_flag_spec \ | |
21415 | compiler_needs_object \ | |
21416 | with_gnu_ld \ | |
21417 | allow_undefined_flag \ | |
21418 | no_undefined_flag \ | |
21419 | hardcode_libdir_flag_spec \ | |
9c60689e | 21420 | hardcode_libdir_separator \ |
9c60689e DWT |
21421 | exclude_expsyms \ |
21422 | include_expsyms \ | |
21423 | file_list_spec \ | |
21424 | variables_saved_for_relink \ | |
21425 | libname_spec \ | |
21426 | library_names_spec \ | |
21427 | soname_spec \ | |
ee134472 | 21428 | install_override_mode \ |
9c60689e DWT |
21429 | finish_eval \ |
21430 | old_striplib \ | |
21431 | striplib \ | |
21432 | compiler_lib_search_dirs \ | |
21433 | predep_objects \ | |
21434 | postdep_objects \ | |
21435 | predeps \ | |
21436 | postdeps \ | |
21437 | compiler_lib_search_path \ | |
21438 | LD_CXX \ | |
ee134472 | 21439 | reload_flag_CXX \ |
9c60689e DWT |
21440 | compiler_CXX \ |
21441 | lt_prog_compiler_no_builtin_flag_CXX \ | |
9c60689e | 21442 | lt_prog_compiler_pic_CXX \ |
ee134472 | 21443 | lt_prog_compiler_wl_CXX \ |
9c60689e DWT |
21444 | lt_prog_compiler_static_CXX \ |
21445 | lt_cv_prog_compiler_c_o_CXX \ | |
21446 | export_dynamic_flag_spec_CXX \ | |
21447 | whole_archive_flag_spec_CXX \ | |
21448 | compiler_needs_object_CXX \ | |
21449 | with_gnu_ld_CXX \ | |
21450 | allow_undefined_flag_CXX \ | |
21451 | no_undefined_flag_CXX \ | |
21452 | hardcode_libdir_flag_spec_CXX \ | |
9c60689e | 21453 | hardcode_libdir_separator_CXX \ |
9c60689e DWT |
21454 | exclude_expsyms_CXX \ |
21455 | include_expsyms_CXX \ | |
21456 | file_list_spec_CXX \ | |
21457 | compiler_lib_search_dirs_CXX \ | |
21458 | predep_objects_CXX \ | |
21459 | postdep_objects_CXX \ | |
21460 | predeps_CXX \ | |
21461 | postdeps_CXX \ | |
21462 | compiler_lib_search_path_CXX; do | |
ee134472 | 21463 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
9c60689e | 21464 | *[\\\\\\\`\\"\\\$]*) |
ee134472 | 21465 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
9c60689e DWT |
21466 | ;; |
21467 | *) | |
21468 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
21469 | ;; | |
21470 | esac | |
21471 | done | |
21472 | ||
21473 | # Double-quote double-evaled strings. | |
21474 | for var in reload_cmds \ | |
21475 | old_postinstall_cmds \ | |
21476 | old_postuninstall_cmds \ | |
21477 | old_archive_cmds \ | |
21478 | extract_expsyms_cmds \ | |
21479 | old_archive_from_new_cmds \ | |
21480 | old_archive_from_expsyms_cmds \ | |
21481 | archive_cmds \ | |
21482 | archive_expsym_cmds \ | |
21483 | module_cmds \ | |
21484 | module_expsym_cmds \ | |
21485 | export_symbols_cmds \ | |
21486 | prelink_cmds \ | |
ee134472 | 21487 | postlink_cmds \ |
9c60689e DWT |
21488 | postinstall_cmds \ |
21489 | postuninstall_cmds \ | |
21490 | finish_cmds \ | |
21491 | sys_lib_search_path_spec \ | |
21492 | sys_lib_dlsearch_path_spec \ | |
ee134472 | 21493 | reload_cmds_CXX \ |
9c60689e DWT |
21494 | old_archive_cmds_CXX \ |
21495 | old_archive_from_new_cmds_CXX \ | |
21496 | old_archive_from_expsyms_cmds_CXX \ | |
21497 | archive_cmds_CXX \ | |
21498 | archive_expsym_cmds_CXX \ | |
21499 | module_cmds_CXX \ | |
21500 | module_expsym_cmds_CXX \ | |
21501 | export_symbols_cmds_CXX \ | |
ee134472 JF |
21502 | prelink_cmds_CXX \ |
21503 | postlink_cmds_CXX; do | |
21504 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
9c60689e | 21505 | *[\\\\\\\`\\"\\\$]*) |
ee134472 | 21506 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
9c60689e DWT |
21507 | ;; |
21508 | *) | |
21509 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
21510 | ;; | |
21511 | esac | |
21512 | done | |
21513 | ||
9c60689e DWT |
21514 | ac_aux_dir='$ac_aux_dir' |
21515 | xsi_shell='$xsi_shell' | |
21516 | lt_shell_append='$lt_shell_append' | |
21517 | ||
21518 | # See if we are running on zsh, and set the options which allow our | |
21519 | # commands through without removal of \ escapes INIT. | |
21520 | if test -n "\${ZSH_VERSION+set}" ; then | |
21521 | setopt NO_GLOB_SUBST | |
21522 | fi | |
21523 | ||
21524 | ||
21525 | PACKAGE='$PACKAGE' | |
21526 | VERSION='$VERSION' | |
21527 | TIMESTAMP='$TIMESTAMP' | |
21528 | RM='$RM' | |
21529 | ofile='$ofile' | |
21530 | ||
21531 | ||
21532 | ||
21533 | ||
21534 | ||
21535 | ||
21536 | _ACEOF | |
21537 | ||
21538 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21539 | ||
21540 | # Handling of arguments. | |
21541 | for ac_config_target in $ac_config_targets | |
21542 | do | |
21543 | case $ac_config_target in | |
296ee9a6 | 21544 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
66170b30 | 21545 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
9c60689e | 21546 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
790e5246 | 21547 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
9c60689e | 21548 | |
ee134472 | 21549 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
9c60689e DWT |
21550 | esac |
21551 | done | |
21552 | ||
21553 | ||
21554 | # If the user did not use the arguments to specify the items to instantiate, | |
21555 | # then the envvar interface is used. Set only those that are not. | |
21556 | # We use the long form for the default assignment because of an extremely | |
21557 | # bizarre bug on SunOS 4.1.3. | |
21558 | if $ac_need_defaults; then | |
21559 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
296ee9a6 | 21560 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
9c60689e DWT |
21561 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
21562 | fi | |
21563 | ||
21564 | # Have a temporary directory for convenience. Make it in the build tree | |
21565 | # simply because there is no reason against having it here, and in addition, | |
21566 | # creating and moving files from /tmp can sometimes cause problems. | |
21567 | # Hook for its removal unless debugging. | |
21568 | # Note that there is a small window in which the directory will not be cleaned: | |
21569 | # after its creation but before its name has been assigned to `$tmp'. | |
21570 | $debug || | |
21571 | { | |
ee134472 | 21572 | tmp= ac_tmp= |
9c60689e | 21573 | trap 'exit_status=$? |
ee134472 JF |
21574 | : "${ac_tmp:=$tmp}" |
21575 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
9c60689e DWT |
21576 | ' 0 |
21577 | trap 'as_fn_exit 1' 1 2 13 15 | |
21578 | } | |
21579 | # Create a (secure) tmp directory for tmp files. | |
21580 | ||
21581 | { | |
21582 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
ee134472 | 21583 | test -d "$tmp" |
9c60689e DWT |
21584 | } || |
21585 | { | |
21586 | tmp=./conf$$-$RANDOM | |
21587 | (umask 077 && mkdir "$tmp") | |
12833ad8 | 21588 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
ee134472 | 21589 | ac_tmp=$tmp |
9c60689e DWT |
21590 | |
21591 | # Set up the scripts for CONFIG_FILES section. | |
21592 | # No need to generate them if there are no CONFIG_FILES. | |
21593 | # This happens for instance with `./config.status config.h'. | |
21594 | if test -n "$CONFIG_FILES"; then | |
21595 | ||
21596 | ||
21597 | ac_cr=`echo X | tr X '\015'` | |
21598 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
21599 | # But we know of no other shell where ac_cr would be empty at this | |
21600 | # point, so we can use a bashism as a fallback. | |
21601 | if test "x$ac_cr" = x; then | |
21602 | eval ac_cr=\$\'\\r\' | |
21603 | fi | |
21604 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
21605 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
12833ad8 | 21606 | ac_cs_awk_cr='\\r' |
9c60689e DWT |
21607 | else |
21608 | ac_cs_awk_cr=$ac_cr | |
21609 | fi | |
21610 | ||
ee134472 | 21611 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
9c60689e DWT |
21612 | _ACEOF |
21613 | ||
21614 | ||
21615 | { | |
21616 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
21617 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
21618 | echo "_ACEOF" | |
21619 | } >conf$$subs.sh || | |
12833ad8 JF |
21620 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
21621 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
9c60689e DWT |
21622 | ac_delim='%!_!# ' |
21623 | for ac_last_try in false false false false false :; do | |
21624 | . ./conf$$subs.sh || | |
12833ad8 | 21625 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
9c60689e DWT |
21626 | |
21627 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
21628 | if test $ac_delim_n = $ac_delim_num; then | |
21629 | break | |
21630 | elif $ac_last_try; then | |
12833ad8 | 21631 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
9c60689e DWT |
21632 | else |
21633 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
21634 | fi | |
21635 | done | |
21636 | rm -f conf$$subs.sh | |
21637 | ||
21638 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ee134472 | 21639 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
9c60689e DWT |
21640 | _ACEOF |
21641 | sed -n ' | |
21642 | h | |
21643 | s/^/S["/; s/!.*/"]=/ | |
21644 | p | |
21645 | g | |
21646 | s/^[^!]*!// | |
21647 | :repl | |
21648 | t repl | |
21649 | s/'"$ac_delim"'$// | |
21650 | t delim | |
21651 | :nl | |
21652 | h | |
21653 | s/\(.\{148\}\)..*/\1/ | |
21654 | t more1 | |
21655 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
21656 | p | |
21657 | n | |
21658 | b repl | |
21659 | :more1 | |
21660 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
21661 | p | |
21662 | g | |
21663 | s/.\{148\}// | |
21664 | t nl | |
21665 | :delim | |
21666 | h | |
21667 | s/\(.\{148\}\)..*/\1/ | |
21668 | t more2 | |
21669 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
21670 | p | |
21671 | b | |
21672 | :more2 | |
21673 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
21674 | p | |
21675 | g | |
21676 | s/.\{148\}// | |
21677 | t delim | |
21678 | ' <conf$$subs.awk | sed ' | |
21679 | /^[^""]/{ | |
21680 | N | |
21681 | s/\n// | |
21682 | } | |
21683 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
21684 | rm -f conf$$subs.awk | |
21685 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21686 | _ACAWK | |
ee134472 | 21687 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
9c60689e DWT |
21688 | for (key in S) S_is_set[key] = 1 |
21689 | FS = "\a" | |
21690 | ||
21691 | } | |
21692 | { | |
21693 | line = $ 0 | |
21694 | nfields = split(line, field, "@") | |
21695 | substed = 0 | |
21696 | len = length(field[1]) | |
21697 | for (i = 2; i < nfields; i++) { | |
21698 | key = field[i] | |
21699 | keylen = length(key) | |
21700 | if (S_is_set[key]) { | |
21701 | value = S[key] | |
21702 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
21703 | len += length(value) + length(field[++i]) | |
21704 | substed = 1 | |
21705 | } else | |
21706 | len += 1 + keylen | |
21707 | } | |
21708 | ||
21709 | print line | |
21710 | } | |
21711 | ||
21712 | _ACAWK | |
21713 | _ACEOF | |
21714 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21715 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
21716 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
21717 | else | |
21718 | cat | |
ee134472 | 21719 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
12833ad8 | 21720 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
9c60689e DWT |
21721 | _ACEOF |
21722 | ||
12833ad8 JF |
21723 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
21724 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
9c60689e DWT |
21725 | # trailing colons and then remove the whole line if VPATH becomes empty |
21726 | # (actually we leave an empty line to preserve line numbers). | |
21727 | if test "x$srcdir" = x.; then | |
12833ad8 JF |
21728 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
21729 | h | |
21730 | s/// | |
21731 | s/^/:/ | |
21732 | s/[ ]*$/:/ | |
21733 | s/:\$(srcdir):/:/g | |
21734 | s/:\${srcdir}:/:/g | |
21735 | s/:@srcdir@:/:/g | |
21736 | s/^:*// | |
9c60689e | 21737 | s/:*$// |
12833ad8 JF |
21738 | x |
21739 | s/\(=[ ]*\).*/\1/ | |
21740 | G | |
21741 | s/\n// | |
9c60689e DWT |
21742 | s/^[^=]*=[ ]*$// |
21743 | }' | |
21744 | fi | |
21745 | ||
21746 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21747 | fi # test -n "$CONFIG_FILES" | |
21748 | ||
296ee9a6 JF |
21749 | # Set up the scripts for CONFIG_HEADERS section. |
21750 | # No need to generate them if there are no CONFIG_HEADERS. | |
21751 | # This happens for instance with `./config.status Makefile'. | |
21752 | if test -n "$CONFIG_HEADERS"; then | |
21753 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
21754 | BEGIN { | |
21755 | _ACEOF | |
21756 | ||
21757 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
21758 | # here-document in config.status, that substitutes the proper values into | |
21759 | # config.h.in to produce config.h. | |
21760 | ||
21761 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
21762 | # handling of long lines. | |
21763 | ac_delim='%!_!# ' | |
21764 | for ac_last_try in false false :; do | |
21765 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
21766 | if test -z "$ac_tt"; then | |
21767 | break | |
21768 | elif $ac_last_try; then | |
21769 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
21770 | else | |
21771 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
21772 | fi | |
21773 | done | |
21774 | ||
21775 | # For the awk script, D is an array of macro values keyed by name, | |
21776 | # likewise P contains macro parameters if any. Preserve backslash | |
21777 | # newline sequences. | |
21778 | ||
21779 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
21780 | sed -n ' | |
21781 | s/.\{148\}/&'"$ac_delim"'/g | |
21782 | t rset | |
21783 | :rset | |
21784 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
21785 | t def | |
21786 | d | |
21787 | :def | |
21788 | s/\\$// | |
21789 | t bsnl | |
21790 | s/["\\]/\\&/g | |
21791 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
21792 | D["\1"]=" \3"/p | |
21793 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
21794 | d | |
21795 | :bsnl | |
21796 | s/["\\]/\\&/g | |
21797 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
21798 | D["\1"]=" \3\\\\\\n"\\/p | |
21799 | t cont | |
21800 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
21801 | t cont | |
21802 | d | |
21803 | :cont | |
21804 | n | |
21805 | s/.\{148\}/&'"$ac_delim"'/g | |
21806 | t clear | |
21807 | :clear | |
21808 | s/\\$// | |
21809 | t bsnlc | |
21810 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
21811 | d | |
21812 | :bsnlc | |
21813 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
21814 | b cont | |
21815 | ' <confdefs.h | sed ' | |
21816 | s/'"$ac_delim"'/"\\\ | |
21817 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
21818 | ||
21819 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21820 | for (key in D) D_is_set[key] = 1 | |
21821 | FS = "\a" | |
21822 | } | |
21823 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
21824 | line = \$ 0 | |
21825 | split(line, arg, " ") | |
21826 | if (arg[1] == "#") { | |
21827 | defundef = arg[2] | |
21828 | mac1 = arg[3] | |
21829 | } else { | |
21830 | defundef = substr(arg[1], 2) | |
21831 | mac1 = arg[2] | |
21832 | } | |
21833 | split(mac1, mac2, "(") #) | |
21834 | macro = mac2[1] | |
21835 | prefix = substr(line, 1, index(line, defundef) - 1) | |
21836 | if (D_is_set[macro]) { | |
21837 | # Preserve the white space surrounding the "#". | |
21838 | print prefix "define", macro P[macro] D[macro] | |
21839 | next | |
21840 | } else { | |
21841 | # Replace #undef with comments. This is necessary, for example, | |
21842 | # in the case of _POSIX_SOURCE, which is predefined and required | |
21843 | # on some systems where configure will not decide to define it. | |
21844 | if (defundef == "undef") { | |
21845 | print "/*", prefix defundef, macro, "*/" | |
21846 | next | |
21847 | } | |
21848 | } | |
21849 | } | |
21850 | { print } | |
21851 | _ACAWK | |
21852 | _ACEOF | |
21853 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21854 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
21855 | fi # test -n "$CONFIG_HEADERS" | |
21856 | ||
9c60689e | 21857 | |
296ee9a6 | 21858 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
9c60689e DWT |
21859 | shift |
21860 | for ac_tag | |
21861 | do | |
21862 | case $ac_tag in | |
21863 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
21864 | esac | |
21865 | case $ac_mode$ac_tag in | |
21866 | :[FHL]*:*);; | |
ee134472 | 21867 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
9c60689e DWT |
21868 | :[FH]-) ac_tag=-:-;; |
21869 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
21870 | esac | |
21871 | ac_save_IFS=$IFS | |
21872 | IFS=: | |
21873 | set x $ac_tag | |
21874 | IFS=$ac_save_IFS | |
21875 | shift | |
21876 | ac_file=$1 | |
21877 | shift | |
21878 | ||
21879 | case $ac_mode in | |
21880 | :L) ac_source=$1;; | |
21881 | :[FH]) | |
21882 | ac_file_inputs= | |
21883 | for ac_f | |
21884 | do | |
21885 | case $ac_f in | |
ee134472 | 21886 | -) ac_f="$ac_tmp/stdin";; |
9c60689e DWT |
21887 | *) # Look for the file first in the build tree, then in the source tree |
21888 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
21889 | # because $ac_f cannot contain `:'. | |
21890 | test -f "$ac_f" || | |
21891 | case $ac_f in | |
21892 | [\\/$]*) false;; | |
21893 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
21894 | esac || | |
ee134472 | 21895 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
9c60689e DWT |
21896 | esac |
21897 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
21898 | as_fn_append ac_file_inputs " '$ac_f'" | |
21899 | done | |
21900 | ||
21901 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
21902 | # use $as_me), people would be surprised to read: | |
21903 | # /* config.h. Generated by config.status. */ | |
21904 | configure_input='Generated from '` | |
21905 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
21906 | `' by configure.' | |
21907 | if test x"$ac_file" != x-; then | |
21908 | configure_input="$ac_file. $configure_input" | |
21909 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
21910 | $as_echo "$as_me: creating $ac_file" >&6;} | |
21911 | fi | |
21912 | # Neutralize special characters interpreted by sed in replacement strings. | |
21913 | case $configure_input in #( | |
21914 | *\&* | *\|* | *\\* ) | |
21915 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
21916 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
21917 | *) ac_sed_conf_input=$configure_input;; | |
21918 | esac | |
21919 | ||
21920 | case $ac_tag in | |
ee134472 JF |
21921 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
21922 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
9c60689e DWT |
21923 | esac |
21924 | ;; | |
21925 | esac | |
21926 | ||
21927 | ac_dir=`$as_dirname -- "$ac_file" || | |
21928 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21929 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
21930 | X"$ac_file" : 'X\(//\)$' \| \ | |
21931 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
21932 | $as_echo X"$ac_file" | | |
21933 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
21934 | s//\1/ | |
21935 | q | |
21936 | } | |
21937 | /^X\(\/\/\)[^/].*/{ | |
21938 | s//\1/ | |
21939 | q | |
21940 | } | |
21941 | /^X\(\/\/\)$/{ | |
21942 | s//\1/ | |
21943 | q | |
21944 | } | |
21945 | /^X\(\/\).*/{ | |
21946 | s//\1/ | |
21947 | q | |
21948 | } | |
21949 | s/.*/./; q'` | |
21950 | as_dir="$ac_dir"; as_fn_mkdir_p | |
21951 | ac_builddir=. | |
21952 | ||
21953 | case "$ac_dir" in | |
21954 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
21955 | *) | |
21956 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
21957 | # A ".." for each directory in $ac_dir_suffix. | |
21958 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
21959 | case $ac_top_builddir_sub in | |
21960 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
21961 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
21962 | esac ;; | |
21963 | esac | |
21964 | ac_abs_top_builddir=$ac_pwd | |
21965 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
21966 | # for backward compatibility: | |
21967 | ac_top_builddir=$ac_top_build_prefix | |
35fa52c0 | 21968 | |
9c60689e DWT |
21969 | case $srcdir in |
21970 | .) # We are building in place. | |
21971 | ac_srcdir=. | |
21972 | ac_top_srcdir=$ac_top_builddir_sub | |
21973 | ac_abs_top_srcdir=$ac_pwd ;; | |
21974 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
21975 | ac_srcdir=$srcdir$ac_dir_suffix; | |
21976 | ac_top_srcdir=$srcdir | |
21977 | ac_abs_top_srcdir=$srcdir ;; | |
21978 | *) # Relative name. | |
21979 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
21980 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
21981 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
21982 | esac | |
21983 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
35fa52c0 DWT |
21984 | |
21985 | ||
9c60689e DWT |
21986 | case $ac_mode in |
21987 | :F) | |
21988 | # | |
21989 | # CONFIG_FILE | |
21990 | # | |
35fa52c0 | 21991 | |
9c60689e DWT |
21992 | case $INSTALL in |
21993 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
21994 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
21995 | esac | |
66170b30 JF |
21996 | ac_MKDIR_P=$MKDIR_P |
21997 | case $MKDIR_P in | |
21998 | [\\/$]* | ?:[\\/]* ) ;; | |
21999 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
22000 | esac | |
9c60689e | 22001 | _ACEOF |
35fa52c0 | 22002 | |
9c60689e DWT |
22003 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
22004 | # If the template does not know about datarootdir, expand it. | |
22005 | # FIXME: This hack should be removed a few years after 2.60. | |
22006 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
22007 | ac_sed_dataroot=' | |
22008 | /datarootdir/ { | |
22009 | p | |
22010 | q | |
22011 | } | |
22012 | /@datadir@/p | |
22013 | /@docdir@/p | |
22014 | /@infodir@/p | |
22015 | /@localedir@/p | |
22016 | /@mandir@/p' | |
22017 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
22018 | *datarootdir*) ac_datarootdir_seen=yes;; | |
22019 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
22020 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
22021 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
22022 | _ACEOF | |
22023 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22024 | ac_datarootdir_hack=' | |
22025 | s&@datadir@&$datadir&g | |
22026 | s&@docdir@&$docdir&g | |
22027 | s&@infodir@&$infodir&g | |
22028 | s&@localedir@&$localedir&g | |
22029 | s&@mandir@&$mandir&g | |
22030 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
22031 | esac | |
22032 | _ACEOF | |
35fa52c0 | 22033 | |
9c60689e DWT |
22034 | # Neutralize VPATH when `$srcdir' = `.'. |
22035 | # Shell code in configure.ac might set extrasub. | |
22036 | # FIXME: do we really want to maintain this feature? | |
22037 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22038 | ac_sed_extra="$ac_vpsub | |
22039 | $extrasub | |
22040 | _ACEOF | |
22041 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22042 | :t | |
22043 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
22044 | s|@configure_input@|$ac_sed_conf_input|;t t | |
22045 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
22046 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
22047 | s&@srcdir@&$ac_srcdir&;t t | |
22048 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
22049 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
22050 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
22051 | s&@builddir@&$ac_builddir&;t t | |
22052 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
22053 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
22054 | s&@INSTALL@&$ac_INSTALL&;t t | |
66170b30 | 22055 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
9c60689e DWT |
22056 | $ac_datarootdir_hack |
22057 | " | |
ee134472 JF |
22058 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
22059 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
9c60689e DWT |
22060 | |
22061 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
ee134472 JF |
22062 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
22063 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
22064 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
9c60689e | 22065 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12833ad8 | 22066 | which seems to be undefined. Please make sure it is defined" >&5 |
9c60689e | 22067 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12833ad8 | 22068 | which seems to be undefined. Please make sure it is defined" >&2;} |
9c60689e | 22069 | |
ee134472 | 22070 | rm -f "$ac_tmp/stdin" |
9c60689e | 22071 | case $ac_file in |
ee134472 JF |
22072 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
22073 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
9c60689e | 22074 | esac \ |
12833ad8 | 22075 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
9c60689e | 22076 | ;; |
296ee9a6 JF |
22077 | :H) |
22078 | # | |
22079 | # CONFIG_HEADER | |
22080 | # | |
22081 | if test x"$ac_file" != x-; then | |
22082 | { | |
22083 | $as_echo "/* $configure_input */" \ | |
22084 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
22085 | } >"$ac_tmp/config.h" \ | |
22086 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
22087 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
22088 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
22089 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
22090 | else | |
22091 | rm -f "$ac_file" | |
22092 | mv "$ac_tmp/config.h" "$ac_file" \ | |
22093 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
22094 | fi | |
22095 | else | |
22096 | $as_echo "/* $configure_input */" \ | |
22097 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
22098 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
22099 | fi | |
22100 | # Compute "$ac_file"'s index in $config_headers. | |
22101 | _am_arg="$ac_file" | |
22102 | _am_stamp_count=1 | |
22103 | for _am_header in $config_headers :; do | |
22104 | case $_am_header in | |
22105 | $_am_arg | $_am_arg:* ) | |
22106 | break ;; | |
22107 | * ) | |
22108 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
22109 | esac | |
22110 | done | |
22111 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
22112 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22113 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
22114 | X"$_am_arg" : 'X\(//\)$' \| \ | |
22115 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
22116 | $as_echo X"$_am_arg" | | |
22117 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22118 | s//\1/ | |
22119 | q | |
22120 | } | |
22121 | /^X\(\/\/\)[^/].*/{ | |
22122 | s//\1/ | |
22123 | q | |
22124 | } | |
22125 | /^X\(\/\/\)$/{ | |
22126 | s//\1/ | |
22127 | q | |
22128 | } | |
22129 | /^X\(\/\).*/{ | |
22130 | s//\1/ | |
22131 | q | |
22132 | } | |
22133 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
22134 | ;; | |
35fa52c0 | 22135 | |
9c60689e DWT |
22136 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
22137 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
22138 | ;; | |
22139 | esac | |
35fa52c0 | 22140 | |
35fa52c0 | 22141 | |
9c60689e | 22142 | case $ac_file$ac_mode in |
66170b30 JF |
22143 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
22144 | # Older Autoconf quotes --file arguments for eval, but not when files | |
22145 | # are listed without --file. Let's play safe and only enable the eval | |
22146 | # if we detect the quoting. | |
22147 | case $CONFIG_FILES in | |
22148 | *\'*) eval set x "$CONFIG_FILES" ;; | |
22149 | *) set x $CONFIG_FILES ;; | |
22150 | esac | |
22151 | shift | |
22152 | for mf | |
22153 | do | |
22154 | # Strip MF so we end up with the name of the file. | |
22155 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
22156 | # Check whether this is an Automake generated Makefile or not. | |
22157 | # We used to match only the files named 'Makefile.in', but | |
22158 | # some people rename them; so instead we look at the file content. | |
22159 | # Grep'ing the first line is not enough: some people post-process | |
22160 | # each Makefile.in and add a new line on top of each file to say so. | |
22161 | # Grep'ing the whole file is not good either: AIX grep has a line | |
22162 | # limit of 2048, but all sed's we know have understand at least 4000. | |
22163 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
22164 | dirpart=`$as_dirname -- "$mf" || | |
22165 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22166 | X"$mf" : 'X\(//\)[^/]' \| \ | |
22167 | X"$mf" : 'X\(//\)$' \| \ | |
22168 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
22169 | $as_echo X"$mf" | | |
22170 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22171 | s//\1/ | |
22172 | q | |
22173 | } | |
22174 | /^X\(\/\/\)[^/].*/{ | |
22175 | s//\1/ | |
22176 | q | |
22177 | } | |
22178 | /^X\(\/\/\)$/{ | |
22179 | s//\1/ | |
22180 | q | |
22181 | } | |
22182 | /^X\(\/\).*/{ | |
22183 | s//\1/ | |
22184 | q | |
22185 | } | |
22186 | s/.*/./; q'` | |
22187 | else | |
22188 | continue | |
22189 | fi | |
22190 | # Extract the definition of DEPDIR, am__include, and am__quote | |
22191 | # from the Makefile without running 'make'. | |
22192 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
22193 | test -z "$DEPDIR" && continue | |
22194 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
a93f15c0 | 22195 | test -z "$am__include" && continue |
66170b30 JF |
22196 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
22197 | # Find all dependency output files, they are included files with | |
22198 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
22199 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
22200 | # expansion. | |
22201 | for file in `sed -n " | |
22202 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
22203 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
22204 | # Make sure the directory exists. | |
22205 | test -f "$dirpart/$file" && continue | |
22206 | fdir=`$as_dirname -- "$file" || | |
22207 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22208 | X"$file" : 'X\(//\)[^/]' \| \ | |
22209 | X"$file" : 'X\(//\)$' \| \ | |
22210 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
22211 | $as_echo X"$file" | | |
22212 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22213 | s//\1/ | |
22214 | q | |
22215 | } | |
22216 | /^X\(\/\/\)[^/].*/{ | |
22217 | s//\1/ | |
22218 | q | |
22219 | } | |
22220 | /^X\(\/\/\)$/{ | |
22221 | s//\1/ | |
22222 | q | |
22223 | } | |
22224 | /^X\(\/\).*/{ | |
22225 | s//\1/ | |
22226 | q | |
22227 | } | |
22228 | s/.*/./; q'` | |
22229 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
22230 | # echo "creating $dirpart/$file" | |
22231 | echo '# dummy' > "$dirpart/$file" | |
22232 | done | |
22233 | done | |
22234 | } | |
22235 | ;; | |
9c60689e DWT |
22236 | "libtool":C) |
22237 | ||
22238 | # See if we are running on zsh, and set the options which allow our | |
22239 | # commands through without removal of \ escapes. | |
22240 | if test -n "${ZSH_VERSION+set}" ; then | |
22241 | setopt NO_GLOB_SUBST | |
35fa52c0 | 22242 | fi |
35fa52c0 | 22243 | |
9c60689e DWT |
22244 | cfgfile="${ofile}T" |
22245 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
22246 | $RM "$cfgfile" | |
35fa52c0 | 22247 | |
9c60689e DWT |
22248 | cat <<_LT_EOF >> "$cfgfile" |
22249 | #! $SHELL | |
35fa52c0 | 22250 | |
9c60689e DWT |
22251 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
22252 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
22253 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
22254 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
22255 | # | |
22256 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
53ba6704 JF |
22257 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
22258 | # Foundation, Inc. | |
9c60689e DWT |
22259 | # Written by Gordon Matzigkeit, 1996 |
22260 | # | |
22261 | # This file is part of GNU Libtool. | |
22262 | # | |
22263 | # GNU Libtool is free software; you can redistribute it and/or | |
22264 | # modify it under the terms of the GNU General Public License as | |
22265 | # published by the Free Software Foundation; either version 2 of | |
22266 | # the License, or (at your option) any later version. | |
22267 | # | |
22268 | # As a special exception to the GNU General Public License, | |
22269 | # if you distribute this file as part of a program or library that | |
22270 | # is built using GNU Libtool, you may include this file under the | |
22271 | # same distribution terms that you use for the rest of that program. | |
22272 | # | |
22273 | # GNU Libtool is distributed in the hope that it will be useful, | |
22274 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
22275 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
22276 | # GNU General Public License for more details. | |
22277 | # | |
22278 | # You should have received a copy of the GNU General Public License | |
22279 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
22280 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
22281 | # obtained by writing to the Free Software Foundation, Inc., | |
22282 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
35fa52c0 | 22283 | |
35fa52c0 | 22284 | |
9c60689e DWT |
22285 | # The names of the tagged configurations supported by this script. |
22286 | available_tags="CXX " | |
35fa52c0 | 22287 | |
9c60689e | 22288 | # ### BEGIN LIBTOOL CONFIG |
35fa52c0 | 22289 | |
9c60689e DWT |
22290 | # Which release of libtool.m4 was used? |
22291 | macro_version=$macro_version | |
22292 | macro_revision=$macro_revision | |
35fa52c0 | 22293 | |
9c60689e DWT |
22294 | # Whether or not to build static libraries. |
22295 | build_old_libs=$enable_static | |
35fa52c0 | 22296 | |
549f29b5 DWT |
22297 | # Whether or not to build shared libraries. |
22298 | build_libtool_libs=$enable_shared | |
22299 | ||
9c60689e DWT |
22300 | # What type of objects to build. |
22301 | pic_mode=$pic_mode | |
35fa52c0 | 22302 | |
9c60689e DWT |
22303 | # Whether or not to optimize for fast installation. |
22304 | fast_install=$enable_fast_install | |
35fa52c0 | 22305 | |
ee134472 JF |
22306 | # Shell to use when invoking shell scripts. |
22307 | SHELL=$lt_SHELL | |
22308 | ||
22309 | # An echo program that protects backslashes. | |
22310 | ECHO=$lt_ECHO | |
22311 | ||
53ba6704 JF |
22312 | # The PATH separator for the build system. |
22313 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
22314 | ||
9c60689e DWT |
22315 | # The host system. |
22316 | host_alias=$host_alias | |
22317 | host=$host | |
22318 | host_os=$host_os | |
35fa52c0 | 22319 | |
9c60689e DWT |
22320 | # The build system. |
22321 | build_alias=$build_alias | |
22322 | build=$build | |
22323 | build_os=$build_os | |
22324 | ||
22325 | # A sed program that does not truncate output. | |
22326 | SED=$lt_SED | |
22327 | ||
22328 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
22329 | Xsed="\$SED -e 1s/^X//" | |
22330 | ||
22331 | # A grep program that handles long lines. | |
22332 | GREP=$lt_GREP | |
22333 | ||
22334 | # An ERE matcher. | |
22335 | EGREP=$lt_EGREP | |
22336 | ||
22337 | # A literal string matcher. | |
22338 | FGREP=$lt_FGREP | |
22339 | ||
22340 | # A BSD- or MS-compatible name lister. | |
22341 | NM=$lt_NM | |
22342 | ||
22343 | # Whether we need soft or hard links. | |
22344 | LN_S=$lt_LN_S | |
22345 | ||
22346 | # What is the maximum length of a command? | |
22347 | max_cmd_len=$max_cmd_len | |
22348 | ||
22349 | # Object file suffix (normally "o"). | |
22350 | objext=$ac_objext | |
22351 | ||
22352 | # Executable file suffix (normally ""). | |
22353 | exeext=$exeext | |
22354 | ||
22355 | # whether the shell understands "unset". | |
22356 | lt_unset=$lt_unset | |
22357 | ||
22358 | # turn spaces into newlines. | |
22359 | SP2NL=$lt_lt_SP2NL | |
22360 | ||
22361 | # turn newlines into spaces. | |
22362 | NL2SP=$lt_lt_NL2SP | |
22363 | ||
ee134472 JF |
22364 | # convert \$build file names to \$host format. |
22365 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
22366 | ||
22367 | # convert \$build files to toolchain format. | |
22368 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
9c60689e DWT |
22369 | |
22370 | # An object symbol dumper. | |
22371 | OBJDUMP=$lt_OBJDUMP | |
22372 | ||
22373 | # Method to check whether dependent libraries are shared objects. | |
22374 | deplibs_check_method=$lt_deplibs_check_method | |
22375 | ||
ee134472 | 22376 | # Command to use when deplibs_check_method = "file_magic". |
9c60689e DWT |
22377 | file_magic_cmd=$lt_file_magic_cmd |
22378 | ||
ee134472 JF |
22379 | # How to find potential files when deplibs_check_method = "file_magic". |
22380 | file_magic_glob=$lt_file_magic_glob | |
22381 | ||
22382 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
22383 | want_nocaseglob=$lt_want_nocaseglob | |
22384 | ||
22385 | # DLL creation program. | |
22386 | DLLTOOL=$lt_DLLTOOL | |
22387 | ||
22388 | # Command to associate shared and link libraries. | |
22389 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
22390 | ||
9c60689e DWT |
22391 | # The archiver. |
22392 | AR=$lt_AR | |
ee134472 JF |
22393 | |
22394 | # Flags to create an archive. | |
9c60689e DWT |
22395 | AR_FLAGS=$lt_AR_FLAGS |
22396 | ||
ee134472 JF |
22397 | # How to feed a file listing to the archiver. |
22398 | archiver_list_spec=$lt_archiver_list_spec | |
22399 | ||
9c60689e DWT |
22400 | # A symbol stripping program. |
22401 | STRIP=$lt_STRIP | |
22402 | ||
22403 | # Commands used to install an old-style archive. | |
22404 | RANLIB=$lt_RANLIB | |
22405 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
22406 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
22407 | ||
ee134472 JF |
22408 | # Whether to use a lock for old archive extraction. |
22409 | lock_old_archive_extraction=$lock_old_archive_extraction | |
22410 | ||
9c60689e DWT |
22411 | # A C compiler. |
22412 | LTCC=$lt_CC | |
22413 | ||
22414 | # LTCC compiler flags. | |
22415 | LTCFLAGS=$lt_CFLAGS | |
22416 | ||
22417 | # Take the output of nm and produce a listing of raw symbols and C names. | |
22418 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
22419 | ||
22420 | # Transform the output of nm in a proper C declaration. | |
22421 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
22422 | ||
22423 | # Transform the output of nm in a C name address pair. | |
22424 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
22425 | ||
22426 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
22427 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
22428 | ||
ee134472 JF |
22429 | # Specify filename containing input files for \$NM. |
22430 | nm_file_list_spec=$lt_nm_file_list_spec | |
9c60689e | 22431 | |
ee134472 JF |
22432 | # The root where to search for dependent libraries,and in which our libraries should be installed. |
22433 | lt_sysroot=$lt_sysroot | |
9c60689e | 22434 | |
ee134472 JF |
22435 | # The name of the directory that contains temporary libtool files. |
22436 | objdir=$objdir | |
9c60689e DWT |
22437 | |
22438 | # Used to examine libraries when file_magic_cmd begins with "file". | |
22439 | MAGIC_CMD=$MAGIC_CMD | |
22440 | ||
22441 | # Must we lock files when doing compilation? | |
22442 | need_locks=$lt_need_locks | |
22443 | ||
ee134472 JF |
22444 | # Manifest tool. |
22445 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
22446 | ||
9c60689e DWT |
22447 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
22448 | DSYMUTIL=$lt_DSYMUTIL | |
22449 | ||
22450 | # Tool to change global to local symbols on Mac OS X. | |
22451 | NMEDIT=$lt_NMEDIT | |
22452 | ||
22453 | # Tool to manipulate fat objects and archives on Mac OS X. | |
22454 | LIPO=$lt_LIPO | |
22455 | ||
22456 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
22457 | OTOOL=$lt_OTOOL | |
22458 | ||
22459 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
22460 | OTOOL64=$lt_OTOOL64 | |
22461 | ||
22462 | # Old archive suffix (normally "a"). | |
22463 | libext=$libext | |
22464 | ||
22465 | # Shared library suffix (normally ".so"). | |
22466 | shrext_cmds=$lt_shrext_cmds | |
35fa52c0 | 22467 | |
9c60689e DWT |
22468 | # The commands to extract the exported symbol list from a shared archive. |
22469 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
35fa52c0 | 22470 | |
9c60689e DWT |
22471 | # Variables whose values should be saved in libtool wrapper scripts and |
22472 | # restored at link time. | |
22473 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
35fa52c0 | 22474 | |
9c60689e DWT |
22475 | # Do we need the "lib" prefix for modules? |
22476 | need_lib_prefix=$need_lib_prefix | |
35fa52c0 | 22477 | |
9c60689e DWT |
22478 | # Do we need a version for libraries? |
22479 | need_version=$need_version | |
35fa52c0 | 22480 | |
9c60689e DWT |
22481 | # Library versioning type. |
22482 | version_type=$version_type | |
35fa52c0 | 22483 | |
9c60689e DWT |
22484 | # Shared library runtime path variable. |
22485 | runpath_var=$runpath_var | |
35fa52c0 | 22486 | |
9c60689e DWT |
22487 | # Shared library path variable. |
22488 | shlibpath_var=$shlibpath_var | |
35fa52c0 | 22489 | |
9c60689e DWT |
22490 | # Is shlibpath searched before the hard-coded library search path? |
22491 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
35fa52c0 | 22492 | |
9c60689e DWT |
22493 | # Format of library name prefix. |
22494 | libname_spec=$lt_libname_spec | |
35fa52c0 | 22495 | |
9c60689e DWT |
22496 | # List of archive names. First name is the real one, the rest are links. |
22497 | # The last name is the one that the linker finds with -lNAME | |
22498 | library_names_spec=$lt_library_names_spec | |
dbadc56a | 22499 | |
9c60689e DWT |
22500 | # The coded name of the library, if different from the real name. |
22501 | soname_spec=$lt_soname_spec | |
dbadc56a | 22502 | |
ee134472 JF |
22503 | # Permission mode override for installation of shared libraries. |
22504 | install_override_mode=$lt_install_override_mode | |
22505 | ||
9c60689e DWT |
22506 | # Command to use after installation of a shared archive. |
22507 | postinstall_cmds=$lt_postinstall_cmds | |
35fa52c0 | 22508 | |
9c60689e DWT |
22509 | # Command to use after uninstallation of a shared archive. |
22510 | postuninstall_cmds=$lt_postuninstall_cmds | |
dbadc56a | 22511 | |
9c60689e DWT |
22512 | # Commands used to finish a libtool library installation in a directory. |
22513 | finish_cmds=$lt_finish_cmds | |
35fa52c0 | 22514 | |
9c60689e DWT |
22515 | # As "finish_cmds", except a single script fragment to be evaled but |
22516 | # not shown. | |
22517 | finish_eval=$lt_finish_eval | |
35fa52c0 | 22518 | |
9c60689e DWT |
22519 | # Whether we should hardcode library paths into libraries. |
22520 | hardcode_into_libs=$hardcode_into_libs | |
dbadc56a | 22521 | |
9c60689e DWT |
22522 | # Compile-time system search path for libraries. |
22523 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
35fa52c0 | 22524 | |
9c60689e DWT |
22525 | # Run-time system search path for libraries. |
22526 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
dbadc56a | 22527 | |
9c60689e DWT |
22528 | # Whether dlopen is supported. |
22529 | dlopen_support=$enable_dlopen | |
dbadc56a | 22530 | |
9c60689e DWT |
22531 | # Whether dlopen of programs is supported. |
22532 | dlopen_self=$enable_dlopen_self | |
35fa52c0 | 22533 | |
9c60689e DWT |
22534 | # Whether dlopen of statically linked programs is supported. |
22535 | dlopen_self_static=$enable_dlopen_self_static | |
35fa52c0 | 22536 | |
9c60689e DWT |
22537 | # Commands to strip libraries. |
22538 | old_striplib=$lt_old_striplib | |
22539 | striplib=$lt_striplib | |
35fa52c0 | 22540 | |
35fa52c0 | 22541 | |
9c60689e DWT |
22542 | # The linker used to build libraries. |
22543 | LD=$lt_LD | |
dbadc56a | 22544 | |
ee134472 JF |
22545 | # How to create reloadable object files. |
22546 | reload_flag=$lt_reload_flag | |
22547 | reload_cmds=$lt_reload_cmds | |
22548 | ||
9c60689e DWT |
22549 | # Commands used to build an old-style archive. |
22550 | old_archive_cmds=$lt_old_archive_cmds | |
dbadc56a | 22551 | |
9c60689e DWT |
22552 | # A language specific compiler. |
22553 | CC=$lt_compiler | |
35fa52c0 | 22554 | |
9c60689e DWT |
22555 | # Is the compiler the GNU compiler? |
22556 | with_gcc=$GCC | |
dbadc56a | 22557 | |
9c60689e DWT |
22558 | # Compiler flag to turn off builtin functions. |
22559 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dbadc56a | 22560 | |
9c60689e DWT |
22561 | # Additional compiler flags for building library objects. |
22562 | pic_flag=$lt_lt_prog_compiler_pic | |
35fa52c0 | 22563 | |
ee134472 JF |
22564 | # How to pass a linker flag through the compiler. |
22565 | wl=$lt_lt_prog_compiler_wl | |
22566 | ||
9c60689e DWT |
22567 | # Compiler flag to prevent dynamic linking. |
22568 | link_static_flag=$lt_lt_prog_compiler_static | |
35fa52c0 | 22569 | |
9c60689e DWT |
22570 | # Does compiler simultaneously support -c and -o options? |
22571 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
dbadc56a | 22572 | |
9c60689e DWT |
22573 | # Whether or not to add -lc for building shared libraries. |
22574 | build_libtool_need_lc=$archive_cmds_need_lc | |
35fa52c0 | 22575 | |
9c60689e DWT |
22576 | # Whether or not to disallow shared libs when runtime libs are static. |
22577 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
35fa52c0 | 22578 | |
9c60689e DWT |
22579 | # Compiler flag to allow reflexive dlopens. |
22580 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
35fa52c0 | 22581 | |
9c60689e DWT |
22582 | # Compiler flag to generate shared objects directly from archives. |
22583 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
dbadc56a | 22584 | |
9c60689e DWT |
22585 | # Whether the compiler copes with passing no objects directly. |
22586 | compiler_needs_object=$lt_compiler_needs_object | |
dbadc56a | 22587 | |
9c60689e DWT |
22588 | # Create an old-style archive from a shared archive. |
22589 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
dbadc56a | 22590 | |
9c60689e DWT |
22591 | # Create a temporary old-style archive to link instead of a shared archive. |
22592 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
dbadc56a | 22593 | |
9c60689e DWT |
22594 | # Commands used to build a shared archive. |
22595 | archive_cmds=$lt_archive_cmds | |
22596 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
35fa52c0 | 22597 | |
9c60689e DWT |
22598 | # Commands used to build a loadable module if different from building |
22599 | # a shared archive. | |
22600 | module_cmds=$lt_module_cmds | |
22601 | module_expsym_cmds=$lt_module_expsym_cmds | |
dbadc56a | 22602 | |
9c60689e DWT |
22603 | # Whether we are building with GNU ld or not. |
22604 | with_gnu_ld=$lt_with_gnu_ld | |
6b66678a | 22605 | |
9c60689e DWT |
22606 | # Flag that allows shared libraries with undefined symbols to be built. |
22607 | allow_undefined_flag=$lt_allow_undefined_flag | |
6b66678a | 22608 | |
9c60689e DWT |
22609 | # Flag that enforces no undefined symbols. |
22610 | no_undefined_flag=$lt_no_undefined_flag | |
6b66678a | 22611 | |
9c60689e DWT |
22612 | # Flag to hardcode \$libdir into a binary during linking. |
22613 | # This must work even if \$libdir does not exist | |
22614 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
6b66678a | 22615 | |
9c60689e DWT |
22616 | # Whether we need a single "-rpath" flag with a separated argument. |
22617 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
6b66678a | 22618 | |
9c60689e DWT |
22619 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
22620 | # DIR into the resulting binary. | |
22621 | hardcode_direct=$hardcode_direct | |
6b66678a | 22622 | |
9c60689e DWT |
22623 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
22624 | # DIR into the resulting binary and the resulting library dependency is | |
22625 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
22626 | # library is relocated. | |
22627 | hardcode_direct_absolute=$hardcode_direct_absolute | |
6b66678a | 22628 | |
9c60689e DWT |
22629 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
22630 | # into the resulting binary. | |
22631 | hardcode_minus_L=$hardcode_minus_L | |
6b66678a | 22632 | |
9c60689e DWT |
22633 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
22634 | # into the resulting binary. | |
22635 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
6b66678a | 22636 | |
9c60689e DWT |
22637 | # Set to "yes" if building a shared library automatically hardcodes DIR |
22638 | # into the library and all subsequent libraries and executables linked | |
22639 | # against it. | |
22640 | hardcode_automatic=$hardcode_automatic | |
6b66678a | 22641 | |
9c60689e DWT |
22642 | # Set to yes if linker adds runtime paths of dependent libraries |
22643 | # to runtime path list. | |
22644 | inherit_rpath=$inherit_rpath | |
6b66678a | 22645 | |
9c60689e DWT |
22646 | # Whether libtool must link a program against all its dependency libraries. |
22647 | link_all_deplibs=$link_all_deplibs | |
22648 | ||
9c60689e DWT |
22649 | # Set to "yes" if exported symbols are required. |
22650 | always_export_symbols=$always_export_symbols | |
6b66678a | 22651 | |
9c60689e DWT |
22652 | # The commands to list exported symbols. |
22653 | export_symbols_cmds=$lt_export_symbols_cmds | |
6b66678a | 22654 | |
9c60689e DWT |
22655 | # Symbols that should not be listed in the preloaded symbols. |
22656 | exclude_expsyms=$lt_exclude_expsyms | |
6b66678a | 22657 | |
9c60689e DWT |
22658 | # Symbols that must always be exported. |
22659 | include_expsyms=$lt_include_expsyms | |
6b66678a | 22660 | |
9c60689e DWT |
22661 | # Commands necessary for linking programs (against libraries) with templates. |
22662 | prelink_cmds=$lt_prelink_cmds | |
6b66678a | 22663 | |
ee134472 JF |
22664 | # Commands necessary for finishing linking programs. |
22665 | postlink_cmds=$lt_postlink_cmds | |
22666 | ||
9c60689e DWT |
22667 | # Specify filename containing input files. |
22668 | file_list_spec=$lt_file_list_spec | |
6b66678a | 22669 | |
9c60689e DWT |
22670 | # How to hardcode a shared library path into an executable. |
22671 | hardcode_action=$hardcode_action | |
22672 | ||
22673 | # The directories searched by this compiler when creating a shared library. | |
22674 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
22675 | ||
22676 | # Dependencies to place before and after the objects being linked to | |
22677 | # create a shared library. | |
22678 | predep_objects=$lt_predep_objects | |
22679 | postdep_objects=$lt_postdep_objects | |
22680 | predeps=$lt_predeps | |
22681 | postdeps=$lt_postdeps | |
22682 | ||
22683 | # The library search path used internally by the compiler when linking | |
22684 | # a shared library. | |
22685 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
22686 | ||
22687 | # ### END LIBTOOL CONFIG | |
22688 | ||
22689 | _LT_EOF | |
22690 | ||
22691 | case $host_os in | |
22692 | aix3*) | |
22693 | cat <<\_LT_EOF >> "$cfgfile" | |
22694 | # AIX sometimes has problems with the GCC collect2 program. For some | |
22695 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
22696 | # vanish in a puff of smoke. | |
22697 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
22698 | COLLECT_NAMES= | |
22699 | export COLLECT_NAMES | |
6b66678a | 22700 | fi |
9c60689e DWT |
22701 | _LT_EOF |
22702 | ;; | |
22703 | esac | |
6b66678a DWT |
22704 | |
22705 | ||
9c60689e | 22706 | ltmain="$ac_aux_dir/ltmain.sh" |
6b66678a | 22707 | |
9c60689e DWT |
22708 | |
22709 | # We use sed instead of cat because bash on DJGPP gets confused if | |
22710 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
22711 | # text mode, it properly converts lines to CR/LF. This bash problem | |
22712 | # is reportedly fixed, but why not run on old versions too? | |
ee134472 JF |
22713 | sed '$q' "$ltmain" >> "$cfgfile" \ |
22714 | || (rm -f "$cfgfile"; exit 1) | |
22715 | ||
22716 | if test x"$xsi_shell" = xyes; then | |
22717 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | |
22718 | func_dirname ()\ | |
22719 | {\ | |
22720 | \ case ${1} in\ | |
22721 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
22722 | \ * ) func_dirname_result="${3}" ;;\ | |
22723 | \ esac\ | |
22724 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | |
22725 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22726 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22727 | test 0 -eq $? || _lt_function_replace_fail=: | |
22728 | ||
22729 | ||
22730 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ | |
22731 | func_basename ()\ | |
22732 | {\ | |
22733 | \ func_basename_result="${1##*/}"\ | |
22734 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
22735 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22736 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22737 | test 0 -eq $? || _lt_function_replace_fail=: | |
22738 | ||
22739 | ||
22740 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | |
22741 | func_dirname_and_basename ()\ | |
22742 | {\ | |
22743 | \ case ${1} in\ | |
22744 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
22745 | \ * ) func_dirname_result="${3}" ;;\ | |
22746 | \ esac\ | |
22747 | \ func_basename_result="${1##*/}"\ | |
22748 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
22749 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22750 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22751 | test 0 -eq $? || _lt_function_replace_fail=: | |
22752 | ||
22753 | ||
22754 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | |
22755 | func_stripname ()\ | |
22756 | {\ | |
22757 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | |
22758 | \ # positional parameters, so assign one to ordinary parameter first.\ | |
22759 | \ func_stripname_result=${3}\ | |
22760 | \ func_stripname_result=${func_stripname_result#"${1}"}\ | |
22761 | \ func_stripname_result=${func_stripname_result%"${2}"}\ | |
22762 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | |
22763 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22764 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22765 | test 0 -eq $? || _lt_function_replace_fail=: | |
22766 | ||
22767 | ||
22768 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | |
22769 | func_split_long_opt ()\ | |
22770 | {\ | |
22771 | \ func_split_long_opt_name=${1%%=*}\ | |
22772 | \ func_split_long_opt_arg=${1#*=}\ | |
22773 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
22774 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22775 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22776 | test 0 -eq $? || _lt_function_replace_fail=: | |
22777 | ||
22778 | ||
22779 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | |
22780 | func_split_short_opt ()\ | |
22781 | {\ | |
22782 | \ func_split_short_opt_arg=${1#??}\ | |
22783 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | |
22784 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
22785 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22786 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22787 | test 0 -eq $? || _lt_function_replace_fail=: | |
22788 | ||
22789 | ||
22790 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | |
22791 | func_lo2o ()\ | |
22792 | {\ | |
22793 | \ case ${1} in\ | |
22794 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | |
22795 | \ *) func_lo2o_result=${1} ;;\ | |
22796 | \ esac\ | |
22797 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | |
22798 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22799 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22800 | test 0 -eq $? || _lt_function_replace_fail=: | |
22801 | ||
22802 | ||
22803 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ | |
22804 | func_xform ()\ | |
22805 | {\ | |
22806 | func_xform_result=${1%.*}.lo\ | |
22807 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | |
22808 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22809 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22810 | test 0 -eq $? || _lt_function_replace_fail=: | |
22811 | ||
22812 | ||
22813 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ | |
22814 | func_arith ()\ | |
22815 | {\ | |
22816 | func_arith_result=$(( $* ))\ | |
22817 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | |
22818 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22819 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22820 | test 0 -eq $? || _lt_function_replace_fail=: | |
22821 | ||
22822 | ||
22823 | sed -e '/^func_len ()$/,/^} # func_len /c\ | |
22824 | func_len ()\ | |
22825 | {\ | |
22826 | func_len_result=${#1}\ | |
22827 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | |
22828 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22829 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22830 | test 0 -eq $? || _lt_function_replace_fail=: | |
22831 | ||
22832 | fi | |
22833 | ||
22834 | if test x"$lt_shell_append" = xyes; then | |
22835 | sed -e '/^func_append ()$/,/^} # func_append /c\ | |
22836 | func_append ()\ | |
22837 | {\ | |
22838 | eval "${1}+=\\${2}"\ | |
22839 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | |
22840 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22841 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22842 | test 0 -eq $? || _lt_function_replace_fail=: | |
22843 | ||
22844 | ||
22845 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | |
22846 | func_append_quoted ()\ | |
22847 | {\ | |
22848 | \ func_quote_for_eval "${2}"\ | |
22849 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | |
22850 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | |
22851 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22852 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22853 | test 0 -eq $? || _lt_function_replace_fail=: | |
22854 | ||
22855 | ||
22856 | # Save a `func_append' function call where possible by direct use of '+=' | |
22857 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | |
22858 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22859 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22860 | test 0 -eq $? || _lt_function_replace_fail=: | |
22861 | else | |
22862 | # Save a `func_append' function call even when '+=' is not available | |
22863 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | |
22864 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22865 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22866 | test 0 -eq $? || _lt_function_replace_fail=: | |
22867 | fi | |
22868 | ||
22869 | if test x"$_lt_function_replace_fail" = x":"; then | |
22870 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | |
22871 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | |
22872 | fi | |
22873 | ||
22874 | ||
22875 | mv -f "$cfgfile" "$ofile" || | |
9c60689e DWT |
22876 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
22877 | chmod +x "$ofile" | |
22878 | ||
22879 | ||
22880 | cat <<_LT_EOF >> "$ofile" | |
22881 | ||
22882 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
22883 | ||
22884 | # The linker used to build libraries. | |
22885 | LD=$lt_LD_CXX | |
22886 | ||
ee134472 JF |
22887 | # How to create reloadable object files. |
22888 | reload_flag=$lt_reload_flag_CXX | |
22889 | reload_cmds=$lt_reload_cmds_CXX | |
22890 | ||
9c60689e DWT |
22891 | # Commands used to build an old-style archive. |
22892 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
22893 | ||
22894 | # A language specific compiler. | |
22895 | CC=$lt_compiler_CXX | |
22896 | ||
22897 | # Is the compiler the GNU compiler? | |
22898 | with_gcc=$GCC_CXX | |
22899 | ||
22900 | # Compiler flag to turn off builtin functions. | |
22901 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
6b66678a | 22902 | |
9c60689e DWT |
22903 | # Additional compiler flags for building library objects. |
22904 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
6b66678a | 22905 | |
ee134472 JF |
22906 | # How to pass a linker flag through the compiler. |
22907 | wl=$lt_lt_prog_compiler_wl_CXX | |
22908 | ||
9c60689e DWT |
22909 | # Compiler flag to prevent dynamic linking. |
22910 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
6b66678a | 22911 | |
9c60689e DWT |
22912 | # Does compiler simultaneously support -c and -o options? |
22913 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
dbadc56a | 22914 | |
9c60689e DWT |
22915 | # Whether or not to add -lc for building shared libraries. |
22916 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
dbadc56a | 22917 | |
9c60689e DWT |
22918 | # Whether or not to disallow shared libs when runtime libs are static. |
22919 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
35fa52c0 | 22920 | |
9c60689e DWT |
22921 | # Compiler flag to allow reflexive dlopens. |
22922 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
35fa52c0 | 22923 | |
9c60689e DWT |
22924 | # Compiler flag to generate shared objects directly from archives. |
22925 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
35fa52c0 | 22926 | |
9c60689e DWT |
22927 | # Whether the compiler copes with passing no objects directly. |
22928 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
35fa52c0 | 22929 | |
9c60689e DWT |
22930 | # Create an old-style archive from a shared archive. |
22931 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
35fa52c0 | 22932 | |
9c60689e DWT |
22933 | # Create a temporary old-style archive to link instead of a shared archive. |
22934 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
35fa52c0 | 22935 | |
9c60689e DWT |
22936 | # Commands used to build a shared archive. |
22937 | archive_cmds=$lt_archive_cmds_CXX | |
22938 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
6b66678a | 22939 | |
9c60689e DWT |
22940 | # Commands used to build a loadable module if different from building |
22941 | # a shared archive. | |
22942 | module_cmds=$lt_module_cmds_CXX | |
22943 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
6b66678a | 22944 | |
9c60689e DWT |
22945 | # Whether we are building with GNU ld or not. |
22946 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
6b66678a | 22947 | |
9c60689e DWT |
22948 | # Flag that allows shared libraries with undefined symbols to be built. |
22949 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
35fa52c0 | 22950 | |
9c60689e DWT |
22951 | # Flag that enforces no undefined symbols. |
22952 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
35fa52c0 | 22953 | |
9c60689e DWT |
22954 | # Flag to hardcode \$libdir into a binary during linking. |
22955 | # This must work even if \$libdir does not exist | |
22956 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
6b66678a | 22957 | |
9c60689e DWT |
22958 | # Whether we need a single "-rpath" flag with a separated argument. |
22959 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
6b66678a | 22960 | |
9c60689e DWT |
22961 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
22962 | # DIR into the resulting binary. | |
22963 | hardcode_direct=$hardcode_direct_CXX | |
6b66678a | 22964 | |
9c60689e DWT |
22965 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
22966 | # DIR into the resulting binary and the resulting library dependency is | |
22967 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
22968 | # library is relocated. | |
22969 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
6b66678a | 22970 | |
9c60689e DWT |
22971 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
22972 | # into the resulting binary. | |
22973 | hardcode_minus_L=$hardcode_minus_L_CXX | |
35fa52c0 | 22974 | |
9c60689e DWT |
22975 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
22976 | # into the resulting binary. | |
22977 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
35fa52c0 | 22978 | |
9c60689e DWT |
22979 | # Set to "yes" if building a shared library automatically hardcodes DIR |
22980 | # into the library and all subsequent libraries and executables linked | |
22981 | # against it. | |
22982 | hardcode_automatic=$hardcode_automatic_CXX | |
6b66678a | 22983 | |
9c60689e DWT |
22984 | # Set to yes if linker adds runtime paths of dependent libraries |
22985 | # to runtime path list. | |
22986 | inherit_rpath=$inherit_rpath_CXX | |
6b66678a | 22987 | |
9c60689e DWT |
22988 | # Whether libtool must link a program against all its dependency libraries. |
22989 | link_all_deplibs=$link_all_deplibs_CXX | |
6b66678a | 22990 | |
9c60689e DWT |
22991 | # Set to "yes" if exported symbols are required. |
22992 | always_export_symbols=$always_export_symbols_CXX | |
6b66678a | 22993 | |
9c60689e DWT |
22994 | # The commands to list exported symbols. |
22995 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
6b66678a | 22996 | |
9c60689e DWT |
22997 | # Symbols that should not be listed in the preloaded symbols. |
22998 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
6b66678a | 22999 | |
9c60689e DWT |
23000 | # Symbols that must always be exported. |
23001 | include_expsyms=$lt_include_expsyms_CXX | |
6b66678a | 23002 | |
9c60689e DWT |
23003 | # Commands necessary for linking programs (against libraries) with templates. |
23004 | prelink_cmds=$lt_prelink_cmds_CXX | |
6b66678a | 23005 | |
ee134472 JF |
23006 | # Commands necessary for finishing linking programs. |
23007 | postlink_cmds=$lt_postlink_cmds_CXX | |
23008 | ||
9c60689e DWT |
23009 | # Specify filename containing input files. |
23010 | file_list_spec=$lt_file_list_spec_CXX | |
dbadc56a | 23011 | |
9c60689e DWT |
23012 | # How to hardcode a shared library path into an executable. |
23013 | hardcode_action=$hardcode_action_CXX | |
309b0535 | 23014 | |
9c60689e DWT |
23015 | # The directories searched by this compiler when creating a shared library. |
23016 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
309b0535 | 23017 | |
9c60689e DWT |
23018 | # Dependencies to place before and after the objects being linked to |
23019 | # create a shared library. | |
23020 | predep_objects=$lt_predep_objects_CXX | |
23021 | postdep_objects=$lt_postdep_objects_CXX | |
23022 | predeps=$lt_predeps_CXX | |
23023 | postdeps=$lt_postdeps_CXX | |
309b0535 | 23024 | |
9c60689e DWT |
23025 | # The library search path used internally by the compiler when linking |
23026 | # a shared library. | |
23027 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
23028 | ||
23029 | # ### END LIBTOOL TAG CONFIG: CXX | |
23030 | _LT_EOF | |
23031 | ||
23032 | ;; | |
23033 | ||
23034 | esac | |
23035 | done # for ac_tag | |
23036 | ||
23037 | ||
23038 | as_fn_exit 0 | |
23039 | _ACEOF | |
23040 | ac_clean_files=$ac_clean_files_save | |
23041 | ||
23042 | test $ac_write_fail = 0 || | |
12833ad8 | 23043 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
9c60689e DWT |
23044 | |
23045 | ||
23046 | # configure is writing to config.log, and then calls config.status. | |
23047 | # config.status does its own redirection, appending to config.log. | |
23048 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
23049 | # by configure, so config.status won't be able to write to it; its | |
23050 | # output is simply discarded. So we exec the FD to /dev/null, | |
23051 | # effectively closing config.log, so it can be properly (re)opened and | |
23052 | # appended to by config.status. When coming back to configure, we | |
23053 | # need to make the FD available again. | |
23054 | if test "$no_create" != yes; then | |
23055 | ac_cs_success=: | |
23056 | ac_config_status_args= | |
23057 | test "$silent" = yes && | |
23058 | ac_config_status_args="$ac_config_status_args --quiet" | |
23059 | exec 5>/dev/null | |
23060 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
23061 | exec 5>>config.log | |
23062 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
23063 | # would make configure fail if this is the last instruction. | |
12833ad8 | 23064 | $ac_cs_success || as_fn_exit 1 |
309b0535 | 23065 | fi |
9c60689e DWT |
23066 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
23067 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
23068 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
23069 | fi | |
23070 |