]>
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 |
5053a6d1 DWT |
653 | LTLIBICONV |
654 | LIBICONV | |
6f9aea2b JF |
655 | LTLIBTERMCAP |
656 | LTLIBREADLINE | |
a243b558 JF |
657 | CY_OBJECTIVEC_FALSE |
658 | CY_OBJECTIVEC_TRUE | |
47aaa820 | 659 | GNUSTEP_CONFIG |
c823f118 | 660 | CY_OBJECTIVEC |
296ee9a6 | 661 | LTLIBFFI |
309b0535 | 662 | LIBFFI_LIBS |
35fa52c0 | 663 | LIBFFI_CFLAGS |
a243b558 JF |
664 | CY_EXECUTE_FALSE |
665 | CY_EXECUTE_TRUE | |
d4f27204 | 666 | LTLIBAPR |
35fa52c0 DWT |
667 | WEBKIT_LIBS |
668 | WEBKIT_CFLAGS | |
7eda51e0 | 669 | CY_EXECUTE |
a243b558 | 670 | CY_ARCH |
9228a43a | 671 | CY_FILTERS |
e9c9a47c | 672 | GNUTAR |
e9c9a47c DWT |
673 | GPERF |
674 | FLEX | |
675 | BISON | |
676 | TIME | |
66170b30 | 677 | GIT |
e9c9a47c | 678 | _BASH |
12833ad8 JF |
679 | PKG_CONFIG_LIBDIR |
680 | PKG_CONFIG_PATH | |
3fd51f51 | 681 | PKG_CONFIG |
a243b558 | 682 | CXXCPP |
9c60689e DWT |
683 | CPP |
684 | OTOOL64 | |
685 | OTOOL | |
686 | LIPO | |
687 | NMEDIT | |
688 | DSYMUTIL | |
ee134472 | 689 | MANIFEST_TOOL |
9c60689e | 690 | RANLIB |
ee134472 | 691 | DLLTOOL |
9c60689e DWT |
692 | OBJDUMP |
693 | LN_S | |
694 | NM | |
695 | ac_ct_DUMPBIN | |
696 | DUMPBIN | |
697 | LD | |
698 | FGREP | |
699 | EGREP | |
700 | GREP | |
701 | SED | |
a243b558 JF |
702 | host_os |
703 | host_vendor | |
704 | host_cpu | |
705 | host | |
706 | build_os | |
707 | build_vendor | |
708 | build_cpu | |
709 | build | |
710 | LIBTOOL | |
66170b30 JF |
711 | am__fastdepCC_FALSE |
712 | am__fastdepCC_TRUE | |
713 | CCDEPMODE | |
a243b558 JF |
714 | ac_ct_CC |
715 | CFLAGS | |
716 | CC | |
717 | ac_ct_AR | |
718 | AR | |
719 | am__fastdepOBJCXX_FALSE | |
720 | am__fastdepOBJCXX_TRUE | |
721 | OBJCXXDEPMODE | |
722 | ac_ct_OBJCXX | |
723 | OBJCXXFLAGS | |
724 | OBJCXX | |
725 | am__fastdepCXX_FALSE | |
726 | am__fastdepCXX_TRUE | |
727 | CXXDEPMODE | |
66170b30 JF |
728 | am__nodep |
729 | AMDEPBACKSLASH | |
730 | AMDEP_FALSE | |
731 | AMDEP_TRUE | |
732 | am__quote | |
733 | am__include | |
734 | DEPDIR | |
35fa52c0 DWT |
735 | OBJEXT |
736 | EXEEXT | |
a243b558 | 737 | ac_ct_CXX |
35fa52c0 DWT |
738 | CPPFLAGS |
739 | LDFLAGS | |
a243b558 JF |
740 | CXXFLAGS |
741 | CXX | |
66170b30 JF |
742 | AM_BACKSLASH |
743 | AM_DEFAULT_VERBOSITY | |
744 | AM_DEFAULT_V | |
745 | AM_V | |
746 | am__untar | |
747 | am__tar | |
748 | AMTAR | |
749 | am__leading_dot | |
750 | SET_MAKE | |
751 | AWK | |
752 | mkdir_p | |
753 | MKDIR_P | |
754 | INSTALL_STRIP_PROGRAM | |
755 | STRIP | |
756 | install_sh | |
757 | MAKEINFO | |
758 | AUTOHEADER | |
759 | AUTOMAKE | |
760 | AUTOCONF | |
761 | ACLOCAL | |
762 | VERSION | |
763 | PACKAGE | |
764 | CYGPATH_W | |
765 | am__isrc | |
766 | INSTALL_DATA | |
767 | INSTALL_SCRIPT | |
768 | INSTALL_PROGRAM | |
dbadc56a | 769 | target_alias |
c7aa54aa DWT |
770 | host_alias |
771 | build_alias | |
772 | LIBS | |
773 | ECHO_T | |
774 | ECHO_N | |
775 | ECHO_C | |
776 | DEFS | |
777 | mandir | |
778 | localedir | |
779 | libdir | |
780 | psdir | |
781 | pdfdir | |
782 | dvidir | |
783 | htmldir | |
784 | infodir | |
785 | docdir | |
786 | oldincludedir | |
787 | includedir | |
788 | localstatedir | |
789 | sharedstatedir | |
790 | sysconfdir | |
791 | datadir | |
792 | datarootdir | |
793 | libexecdir | |
794 | sbindir | |
795 | bindir | |
796 | program_transform_name | |
797 | prefix | |
798 | exec_prefix | |
799 | PACKAGE_URL | |
800 | PACKAGE_BUGREPORT | |
801 | PACKAGE_STRING | |
802 | PACKAGE_VERSION | |
803 | PACKAGE_TARNAME | |
804 | PACKAGE_NAME | |
805 | PATH_SEPARATOR | |
806 | SHELL' | |
807 | ac_subst_files='' | |
808 | ac_user_opts=' | |
809 | enable_option_checking | |
66170b30 | 810 | enable_silent_rules |
a243b558 | 811 | enable_dependency_tracking |
9c60689e | 812 | enable_static |
549f29b5 | 813 | enable_shared |
9c60689e DWT |
814 | with_pic |
815 | enable_fast_install | |
35fa52c0 | 816 | with_gnu_ld |
ee134472 | 817 | with_sysroot |
9c60689e | 818 | enable_libtool_lock |
5053a6d1 | 819 | enable_javascript |
66170b30 | 820 | with_apr |
35fa52c0 DWT |
821 | enable_rpath |
822 | with_libiconv_prefix | |
c7aa54aa DWT |
823 | ' |
824 | ac_precious_vars='build_alias | |
825 | host_alias | |
dbadc56a | 826 | target_alias |
a243b558 JF |
827 | CXX |
828 | CXXFLAGS | |
dbadc56a DWT |
829 | LDFLAGS |
830 | LIBS | |
831 | CPPFLAGS | |
a243b558 JF |
832 | CCC |
833 | OBJCXX | |
834 | OBJCXXFLAGS | |
835 | CC | |
836 | CFLAGS | |
9c60689e | 837 | CPP |
a243b558 | 838 | CXXCPP |
3fd51f51 | 839 | PKG_CONFIG |
12833ad8 JF |
840 | PKG_CONFIG_PATH |
841 | PKG_CONFIG_LIBDIR | |
e9c9a47c DWT |
842 | BISON |
843 | FLEX | |
844 | GPERF | |
66170b30 | 845 | GNUTAR |
35fa52c0 DWT |
846 | WEBKIT_CFLAGS |
847 | WEBKIT_LIBS | |
a667869d | 848 | LIBFFI_CFLAGS |
790e5246 DWT |
849 | LIBFFI_LIBS |
850 | GNUSTEP_CONFIG' | |
c7aa54aa DWT |
851 | |
852 | ||
853 | # Initialize some variables set by options. | |
854 | ac_init_help= | |
855 | ac_init_version=false | |
856 | ac_unrecognized_opts= | |
857 | ac_unrecognized_sep= | |
858 | # The variables have the same names as the options, with | |
859 | # dashes changed to underlines. | |
860 | cache_file=/dev/null | |
861 | exec_prefix=NONE | |
862 | no_create= | |
863 | no_recursion= | |
864 | prefix=NONE | |
865 | program_prefix=NONE | |
866 | program_suffix=NONE | |
867 | program_transform_name=s,x,x, | |
868 | silent= | |
869 | site= | |
870 | srcdir= | |
871 | verbose= | |
872 | x_includes=NONE | |
873 | x_libraries=NONE | |
874 | ||
875 | # Installation directory options. | |
876 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
877 | # and all the variables that are supposed to be based on exec_prefix | |
878 | # by default will actually change. | |
879 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
880 | # (The list follows the same order as the GNU Coding Standards.) | |
881 | bindir='${exec_prefix}/bin' | |
882 | sbindir='${exec_prefix}/sbin' | |
883 | libexecdir='${exec_prefix}/libexec' | |
884 | datarootdir='${prefix}/share' | |
885 | datadir='${datarootdir}' | |
886 | sysconfdir='${prefix}/etc' | |
887 | sharedstatedir='${prefix}/com' | |
888 | localstatedir='${prefix}/var' | |
889 | includedir='${prefix}/include' | |
890 | oldincludedir='/usr/include' | |
891 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
892 | infodir='${datarootdir}/info' | |
893 | htmldir='${docdir}' | |
894 | dvidir='${docdir}' | |
895 | pdfdir='${docdir}' | |
896 | psdir='${docdir}' | |
897 | libdir='${exec_prefix}/lib' | |
898 | localedir='${datarootdir}/locale' | |
899 | mandir='${datarootdir}/man' | |
900 | ||
901 | ac_prev= | |
902 | ac_dashdash= | |
903 | for ac_option | |
904 | do | |
905 | # If the previous option needs an argument, assign it. | |
906 | if test -n "$ac_prev"; then | |
907 | eval $ac_prev=\$ac_option | |
908 | ac_prev= | |
909 | continue | |
910 | fi | |
911 | ||
912 | case $ac_option in | |
12833ad8 JF |
913 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
914 | *=) ac_optarg= ;; | |
915 | *) ac_optarg=yes ;; | |
c7aa54aa DWT |
916 | esac |
917 | ||
918 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
919 | ||
920 | case $ac_dashdash$ac_option in | |
921 | --) | |
922 | ac_dashdash=yes ;; | |
923 | ||
924 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
925 | ac_prev=bindir ;; | |
926 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
927 | bindir=$ac_optarg ;; | |
928 | ||
929 | -build | --build | --buil | --bui | --bu) | |
930 | ac_prev=build_alias ;; | |
931 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
932 | build_alias=$ac_optarg ;; | |
933 | ||
934 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
935 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
936 | ac_prev=cache_file ;; | |
937 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
938 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
939 | cache_file=$ac_optarg ;; | |
940 | ||
941 | --config-cache | -C) | |
942 | cache_file=config.cache ;; | |
943 | ||
944 | -datadir | --datadir | --datadi | --datad) | |
945 | ac_prev=datadir ;; | |
946 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
947 | datadir=$ac_optarg ;; | |
948 | ||
949 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
950 | | --dataroo | --dataro | --datar) | |
951 | ac_prev=datarootdir ;; | |
952 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
953 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
954 | datarootdir=$ac_optarg ;; | |
955 | ||
956 | -disable-* | --disable-*) | |
957 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
958 | # Reject names that are not valid shell variable names. | |
959 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 960 | as_fn_error $? "invalid feature name: $ac_useropt" |
c7aa54aa DWT |
961 | ac_useropt_orig=$ac_useropt |
962 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
963 | case $ac_user_opts in | |
964 | *" | |
965 | "enable_$ac_useropt" | |
966 | "*) ;; | |
967 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
968 | ac_unrecognized_sep=', ';; | |
969 | esac | |
970 | eval enable_$ac_useropt=no ;; | |
971 | ||
972 | -docdir | --docdir | --docdi | --doc | --do) | |
973 | ac_prev=docdir ;; | |
974 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
975 | docdir=$ac_optarg ;; | |
976 | ||
977 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
978 | ac_prev=dvidir ;; | |
979 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
980 | dvidir=$ac_optarg ;; | |
981 | ||
982 | -enable-* | --enable-*) | |
983 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
984 | # Reject names that are not valid shell variable names. | |
985 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 986 | as_fn_error $? "invalid feature name: $ac_useropt" |
c7aa54aa DWT |
987 | ac_useropt_orig=$ac_useropt |
988 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
989 | case $ac_user_opts in | |
990 | *" | |
991 | "enable_$ac_useropt" | |
992 | "*) ;; | |
993 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
994 | ac_unrecognized_sep=', ';; | |
995 | esac | |
996 | eval enable_$ac_useropt=\$ac_optarg ;; | |
997 | ||
998 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
999 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1000 | | --exec | --exe | --ex) | |
1001 | ac_prev=exec_prefix ;; | |
1002 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1003 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1004 | | --exec=* | --exe=* | --ex=*) | |
1005 | exec_prefix=$ac_optarg ;; | |
1006 | ||
1007 | -gas | --gas | --ga | --g) | |
1008 | # Obsolete; use --with-gas. | |
1009 | with_gas=yes ;; | |
1010 | ||
1011 | -help | --help | --hel | --he | -h) | |
1012 | ac_init_help=long ;; | |
1013 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1014 | ac_init_help=recursive ;; | |
1015 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1016 | ac_init_help=short ;; | |
1017 | ||
1018 | -host | --host | --hos | --ho) | |
1019 | ac_prev=host_alias ;; | |
1020 | -host=* | --host=* | --hos=* | --ho=*) | |
1021 | host_alias=$ac_optarg ;; | |
1022 | ||
1023 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1024 | ac_prev=htmldir ;; | |
1025 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1026 | | --ht=*) | |
1027 | htmldir=$ac_optarg ;; | |
1028 | ||
1029 | -includedir | --includedir | --includedi | --included | --include \ | |
1030 | | --includ | --inclu | --incl | --inc) | |
1031 | ac_prev=includedir ;; | |
1032 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1033 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1034 | includedir=$ac_optarg ;; | |
1035 | ||
1036 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1037 | ac_prev=infodir ;; | |
1038 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1039 | infodir=$ac_optarg ;; | |
1040 | ||
1041 | -libdir | --libdir | --libdi | --libd) | |
1042 | ac_prev=libdir ;; | |
1043 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1044 | libdir=$ac_optarg ;; | |
1045 | ||
1046 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1047 | | --libexe | --libex | --libe) | |
1048 | ac_prev=libexecdir ;; | |
1049 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1050 | | --libexe=* | --libex=* | --libe=*) | |
1051 | libexecdir=$ac_optarg ;; | |
1052 | ||
1053 | -localedir | --localedir | --localedi | --localed | --locale) | |
1054 | ac_prev=localedir ;; | |
1055 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1056 | localedir=$ac_optarg ;; | |
1057 | ||
1058 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1059 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1060 | ac_prev=localstatedir ;; | |
1061 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1062 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1063 | localstatedir=$ac_optarg ;; | |
1064 | ||
1065 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1066 | ac_prev=mandir ;; | |
1067 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1068 | mandir=$ac_optarg ;; | |
1069 | ||
1070 | -nfp | --nfp | --nf) | |
1071 | # Obsolete; use --without-fp. | |
1072 | with_fp=no ;; | |
1073 | ||
1074 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1075 | | --no-cr | --no-c | -n) | |
1076 | no_create=yes ;; | |
1077 | ||
1078 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1079 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1080 | no_recursion=yes ;; | |
1081 | ||
1082 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1083 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1084 | | --oldin | --oldi | --old | --ol | --o) | |
1085 | ac_prev=oldincludedir ;; | |
1086 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1087 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1088 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1089 | oldincludedir=$ac_optarg ;; | |
1090 | ||
1091 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1092 | ac_prev=prefix ;; | |
1093 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1094 | prefix=$ac_optarg ;; | |
1095 | ||
1096 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1097 | | --program-pre | --program-pr | --program-p) | |
1098 | ac_prev=program_prefix ;; | |
1099 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1100 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1101 | program_prefix=$ac_optarg ;; | |
1102 | ||
1103 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1104 | | --program-suf | --program-su | --program-s) | |
1105 | ac_prev=program_suffix ;; | |
1106 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1107 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1108 | program_suffix=$ac_optarg ;; | |
1109 | ||
1110 | -program-transform-name | --program-transform-name \ | |
1111 | | --program-transform-nam | --program-transform-na \ | |
1112 | | --program-transform-n | --program-transform- \ | |
1113 | | --program-transform | --program-transfor \ | |
1114 | | --program-transfo | --program-transf \ | |
1115 | | --program-trans | --program-tran \ | |
1116 | | --progr-tra | --program-tr | --program-t) | |
1117 | ac_prev=program_transform_name ;; | |
1118 | -program-transform-name=* | --program-transform-name=* \ | |
1119 | | --program-transform-nam=* | --program-transform-na=* \ | |
1120 | | --program-transform-n=* | --program-transform-=* \ | |
1121 | | --program-transform=* | --program-transfor=* \ | |
1122 | | --program-transfo=* | --program-transf=* \ | |
1123 | | --program-trans=* | --program-tran=* \ | |
1124 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1125 | program_transform_name=$ac_optarg ;; | |
1126 | ||
1127 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1128 | ac_prev=pdfdir ;; | |
1129 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1130 | pdfdir=$ac_optarg ;; | |
1131 | ||
1132 | -psdir | --psdir | --psdi | --psd | --ps) | |
1133 | ac_prev=psdir ;; | |
1134 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1135 | psdir=$ac_optarg ;; | |
1136 | ||
1137 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1138 | | -silent | --silent | --silen | --sile | --sil) | |
1139 | silent=yes ;; | |
1140 | ||
1141 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1142 | ac_prev=sbindir ;; | |
1143 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1144 | | --sbi=* | --sb=*) | |
1145 | sbindir=$ac_optarg ;; | |
1146 | ||
1147 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1148 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1149 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1150 | | --sha | --sh) | |
1151 | ac_prev=sharedstatedir ;; | |
1152 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1153 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1154 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1155 | | --sha=* | --sh=*) | |
1156 | sharedstatedir=$ac_optarg ;; | |
1157 | ||
1158 | -site | --site | --sit) | |
1159 | ac_prev=site ;; | |
1160 | -site=* | --site=* | --sit=*) | |
1161 | site=$ac_optarg ;; | |
1162 | ||
1163 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1164 | ac_prev=srcdir ;; | |
1165 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1166 | srcdir=$ac_optarg ;; | |
1167 | ||
1168 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1169 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1170 | ac_prev=sysconfdir ;; | |
1171 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1172 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1173 | sysconfdir=$ac_optarg ;; | |
1174 | ||
1175 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1176 | ac_prev=target_alias ;; | |
1177 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1178 | target_alias=$ac_optarg ;; | |
1179 | ||
1180 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1181 | verbose=yes ;; | |
1182 | ||
1183 | -version | --version | --versio | --versi | --vers | -V) | |
1184 | ac_init_version=: ;; | |
1185 | ||
1186 | -with-* | --with-*) | |
1187 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1188 | # Reject names that are not valid shell variable names. | |
1189 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 1190 | as_fn_error $? "invalid package name: $ac_useropt" |
c7aa54aa DWT |
1191 | ac_useropt_orig=$ac_useropt |
1192 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1193 | case $ac_user_opts in | |
1194 | *" | |
1195 | "with_$ac_useropt" | |
1196 | "*) ;; | |
1197 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1198 | ac_unrecognized_sep=', ';; | |
1199 | esac | |
1200 | eval with_$ac_useropt=\$ac_optarg ;; | |
1201 | ||
1202 | -without-* | --without-*) | |
1203 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1204 | # Reject names that are not valid shell variable names. | |
1205 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
12833ad8 | 1206 | as_fn_error $? "invalid package name: $ac_useropt" |
c7aa54aa DWT |
1207 | ac_useropt_orig=$ac_useropt |
1208 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1209 | case $ac_user_opts in | |
1210 | *" | |
1211 | "with_$ac_useropt" | |
1212 | "*) ;; | |
1213 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1214 | ac_unrecognized_sep=', ';; | |
1215 | esac | |
1216 | eval with_$ac_useropt=no ;; | |
1217 | ||
1218 | --x) | |
1219 | # Obsolete; use --with-x. | |
1220 | with_x=yes ;; | |
1221 | ||
1222 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1223 | | --x-incl | --x-inc | --x-in | --x-i) | |
1224 | ac_prev=x_includes ;; | |
1225 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1226 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1227 | x_includes=$ac_optarg ;; | |
1228 | ||
1229 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1230 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1231 | ac_prev=x_libraries ;; | |
1232 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1233 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1234 | x_libraries=$ac_optarg ;; | |
1235 | ||
12833ad8 JF |
1236 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1237 | Try \`$0 --help' for more information" | |
c7aa54aa DWT |
1238 | ;; |
1239 | ||
1240 | *=*) | |
1241 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1242 | # Reject names that are not valid shell variable names. | |
1243 | case $ac_envvar in #( | |
1244 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
12833ad8 | 1245 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
c7aa54aa DWT |
1246 | esac |
1247 | eval $ac_envvar=\$ac_optarg | |
1248 | export $ac_envvar ;; | |
1249 | ||
1250 | *) | |
1251 | # FIXME: should be removed in autoconf 3.0. | |
1252 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1253 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1254 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
ee134472 | 1255 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
c7aa54aa DWT |
1256 | ;; |
1257 | ||
1258 | esac | |
1259 | done | |
1260 | ||
1261 | if test -n "$ac_prev"; then | |
1262 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
12833ad8 | 1263 | as_fn_error $? "missing argument to $ac_option" |
c7aa54aa DWT |
1264 | fi |
1265 | ||
1266 | if test -n "$ac_unrecognized_opts"; then | |
1267 | case $enable_option_checking in | |
1268 | no) ;; | |
12833ad8 | 1269 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
c7aa54aa DWT |
1270 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1271 | esac | |
1272 | fi | |
1273 | ||
1274 | # Check all directory arguments for consistency. | |
1275 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1276 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1277 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1278 | libdir localedir mandir | |
1279 | do | |
1280 | eval ac_val=\$$ac_var | |
1281 | # Remove trailing slashes. | |
1282 | case $ac_val in | |
1283 | */ ) | |
1284 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1285 | eval $ac_var=\$ac_val;; | |
1286 | esac | |
1287 | # Be sure to have absolute directory names. | |
1288 | case $ac_val in | |
1289 | [\\/$]* | ?:[\\/]* ) continue;; | |
1290 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1291 | esac | |
12833ad8 | 1292 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
c7aa54aa DWT |
1293 | done |
1294 | ||
1295 | # There might be people who depend on the old broken behavior: `$host' | |
1296 | # used to hold the argument of --host etc. | |
1297 | # FIXME: To remove some day. | |
1298 | build=$build_alias | |
1299 | host=$host_alias | |
1300 | target=$target_alias | |
1301 | ||
1302 | # FIXME: To remove some day. | |
1303 | if test "x$host_alias" != x; then | |
1304 | if test "x$build_alias" = x; then | |
1305 | cross_compiling=maybe | |
c7aa54aa DWT |
1306 | elif test "x$build_alias" != "x$host_alias"; then |
1307 | cross_compiling=yes | |
1308 | fi | |
1309 | fi | |
1310 | ||
1311 | ac_tool_prefix= | |
1312 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1313 | ||
1314 | test "$silent" = yes && exec 6>/dev/null | |
1315 | ||
1316 | ||
1317 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1318 | ac_ls_di=`ls -di .` && | |
1319 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
12833ad8 | 1320 | as_fn_error $? "working directory cannot be determined" |
c7aa54aa | 1321 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
12833ad8 | 1322 | as_fn_error $? "pwd does not report name of working directory" |
c7aa54aa DWT |
1323 | |
1324 | ||
1325 | # Find the source files, if location was not specified. | |
1326 | if test -z "$srcdir"; then | |
1327 | ac_srcdir_defaulted=yes | |
1328 | # Try the directory containing this script, then the parent directory. | |
1329 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1330 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1331 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1332 | X"$as_myself" : 'X\(//\)$' \| \ | |
1333 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1334 | $as_echo X"$as_myself" | | |
1335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1336 | s//\1/ | |
1337 | q | |
1338 | } | |
1339 | /^X\(\/\/\)[^/].*/{ | |
1340 | s//\1/ | |
1341 | q | |
1342 | } | |
1343 | /^X\(\/\/\)$/{ | |
1344 | s//\1/ | |
1345 | q | |
1346 | } | |
1347 | /^X\(\/\).*/{ | |
1348 | s//\1/ | |
1349 | q | |
1350 | } | |
1351 | s/.*/./; q'` | |
1352 | srcdir=$ac_confdir | |
1353 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1354 | srcdir=.. | |
1355 | fi | |
1356 | else | |
1357 | ac_srcdir_defaulted=no | |
1358 | fi | |
1359 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1360 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
12833ad8 | 1361 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
c7aa54aa DWT |
1362 | fi |
1363 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1364 | ac_abs_confdir=`( | |
12833ad8 | 1365 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
c7aa54aa DWT |
1366 | pwd)` |
1367 | # When building in place, set srcdir=. | |
1368 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1369 | srcdir=. | |
1370 | fi | |
1371 | # Remove unnecessary trailing slashes from srcdir. | |
1372 | # Double slashes in file names in object file debugging info | |
1373 | # mess up M-x gdb in Emacs. | |
1374 | case $srcdir in | |
1375 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1376 | esac | |
1377 | for ac_var in $ac_precious_vars; do | |
1378 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1379 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1380 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1381 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1382 | done | |
1383 | ||
1384 | # | |
1385 | # Report the --help message. | |
1386 | # | |
1387 | if test "$ac_init_help" = "long"; then | |
1388 | # Omit some internal or obsolete options to make the list less imposing. | |
1389 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1390 | cat <<_ACEOF | |
1391 | \`configure' configures Cycript 0.9 to adapt to many kinds of systems. | |
1392 | ||
1393 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1394 | ||
1395 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1396 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1397 | ||
1398 | Defaults for the options are specified in brackets. | |
1399 | ||
1400 | Configuration: | |
1401 | -h, --help display this help and exit | |
1402 | --help=short display options specific to this package | |
1403 | --help=recursive display the short help of all the included packages | |
1404 | -V, --version display version information and exit | |
12833ad8 | 1405 | -q, --quiet, --silent do not print \`checking ...' messages |
c7aa54aa DWT |
1406 | --cache-file=FILE cache test results in FILE [disabled] |
1407 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1408 | -n, --no-create do not create output files | |
1409 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1410 | ||
1411 | Installation directories: | |
1412 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1413 | [$ac_default_prefix] | |
1414 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1415 | [PREFIX] | |
1416 | ||
1417 | By default, \`make install' will install all the files in | |
1418 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1419 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1420 | for instance \`--prefix=\$HOME'. | |
1421 | ||
1422 | For better control, use the options below. | |
1423 | ||
1424 | Fine tuning of the installation directories: | |
1425 | --bindir=DIR user executables [EPREFIX/bin] | |
1426 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1427 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1428 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1429 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1430 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1431 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1432 | --includedir=DIR C header files [PREFIX/include] | |
1433 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1434 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1435 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1436 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1437 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1438 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1439 | --docdir=DIR documentation root [DATAROOTDIR/doc/cycript] | |
1440 | --htmldir=DIR html documentation [DOCDIR] | |
1441 | --dvidir=DIR dvi documentation [DOCDIR] | |
1442 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1443 | --psdir=DIR ps documentation [DOCDIR] | |
1444 | _ACEOF | |
1445 | ||
1446 | cat <<\_ACEOF | |
35fa52c0 | 1447 | |
66170b30 JF |
1448 | Program names: |
1449 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1450 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1451 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1452 | ||
35fa52c0 DWT |
1453 | System types: |
1454 | --build=BUILD configure for building on BUILD [guessed] | |
1455 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
c7aa54aa DWT |
1456 | _ACEOF |
1457 | fi | |
1458 | ||
1459 | if test -n "$ac_init_help"; then | |
1460 | case $ac_init_help in | |
1461 | short | recursive ) echo "Configuration of Cycript 0.9:";; | |
1462 | esac | |
1463 | cat <<\_ACEOF | |
1464 | ||
35fa52c0 DWT |
1465 | Optional Features: |
1466 | --disable-option-checking ignore unrecognized --enable/--with options | |
1467 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1468 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
66170b30 JF |
1469 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1470 | --disable-silent-rules verbose build output (undo: "make V=0") | |
66170b30 JF |
1471 | --enable-dependency-tracking |
1472 | do not reject slow dependency extractors | |
1473 | --disable-dependency-tracking | |
1474 | speeds up one-time build | |
a243b558 JF |
1475 | --enable-static[=PKGS] build static libraries [default=no] |
1476 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1477 | --enable-fast-install[=PKGS] | |
1478 | optimize for fast installation [default=yes] | |
9c60689e | 1479 | --disable-libtool-lock avoid locking (might break parallel builds) |
b66977f1 | 1480 | --enable-javascript[=ENGINE] |
790e5246 | 1481 | use a JavaScript runtime (currently the only |
b66977f1 DWT |
1482 | available option for ENGINE is JavaScriptCore) |
1483 | [default=yes] | |
5053a6d1 | 1484 | --disable-rpath do not hardcode runtime library paths |
35fa52c0 DWT |
1485 | |
1486 | Optional Packages: | |
1487 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1488 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
53ba6704 | 1489 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
9c60689e DWT |
1490 | both] |
1491 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
ee134472 JF |
1492 | --with-sysroot=DIR Search for dependent libraries within DIR |
1493 | (or the compiler's sysroot if not specified). | |
309b0535 DWT |
1494 | --with-apr=PATH prefix for installed APR or the full path to |
1495 | apr-config | |
53ba6704 | 1496 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
35fa52c0 DWT |
1497 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
1498 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
1499 | ||
dbadc56a | 1500 | Some influential environment variables: |
a243b558 JF |
1501 | CXX C++ compiler command |
1502 | CXXFLAGS C++ compiler flags | |
dbadc56a DWT |
1503 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1504 | nonstandard directory <lib dir> | |
1505 | LIBS libraries to pass to the linker, e.g. -l<library> | |
9c60689e | 1506 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
dbadc56a | 1507 | you have headers in a nonstandard directory <include dir> |
a243b558 JF |
1508 | OBJCXX Objective C++ compiler command |
1509 | OBJCXXFLAGS Objective C++ compiler flags | |
1510 | CC C compiler command | |
1511 | CFLAGS C compiler flags | |
9c60689e | 1512 | CPP C preprocessor |
a243b558 | 1513 | CXXCPP C++ preprocessor |
3fd51f51 | 1514 | PKG_CONFIG path to pkg-config utility |
12833ad8 JF |
1515 | PKG_CONFIG_PATH |
1516 | directories to add to pkg-config's search path | |
1517 | PKG_CONFIG_LIBDIR | |
1518 | path overriding pkg-config's built-in search path | |
e9c9a47c DWT |
1519 | BISON GNU Project parser generator (yacc replacement) |
1520 | FLEX the fast lexical analyser generator | |
1521 | GPERF perfect hash function generator | |
66170b30 | 1522 | GNUTAR a very sticky lump of files |
35fa52c0 DWT |
1523 | WEBKIT_CFLAGS |
1524 | C compiler flags for WEBKIT, overriding pkg-config | |
1525 | WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config | |
790e5246 DWT |
1526 | GNUSTEP_CONFIG |
1527 | prints information about the current gnustep installation | |
dbadc56a DWT |
1528 | |
1529 | Use these variables to override the choices made by `configure' or to help | |
1530 | it to find libraries and programs with nonstandard names/locations. | |
1531 | ||
c7aa54aa DWT |
1532 | Report bugs to <saurik@saurik.com>. |
1533 | Cycript home page: <http://www.cycript.org/>. | |
1534 | _ACEOF | |
1535 | ac_status=$? | |
1536 | fi | |
1537 | ||
1538 | if test "$ac_init_help" = "recursive"; then | |
1539 | # If there are subdirs, report their specific --help. | |
1540 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1541 | test -d "$ac_dir" || | |
1542 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1543 | continue | |
1544 | ac_builddir=. | |
1545 | ||
1546 | case "$ac_dir" in | |
1547 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1548 | *) | |
1549 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1550 | # A ".." for each directory in $ac_dir_suffix. | |
1551 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1552 | case $ac_top_builddir_sub in | |
1553 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1554 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1555 | esac ;; | |
1556 | esac | |
1557 | ac_abs_top_builddir=$ac_pwd | |
1558 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1559 | # for backward compatibility: | |
1560 | ac_top_builddir=$ac_top_build_prefix | |
1561 | ||
1562 | case $srcdir in | |
1563 | .) # We are building in place. | |
1564 | ac_srcdir=. | |
1565 | ac_top_srcdir=$ac_top_builddir_sub | |
1566 | ac_abs_top_srcdir=$ac_pwd ;; | |
1567 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1568 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1569 | ac_top_srcdir=$srcdir | |
1570 | ac_abs_top_srcdir=$srcdir ;; | |
1571 | *) # Relative name. | |
1572 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1573 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1574 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1575 | esac | |
1576 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1577 | ||
1578 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1579 | # Check for guested configure. | |
1580 | if test -f "$ac_srcdir/configure.gnu"; then | |
1581 | echo && | |
1582 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1583 | elif test -f "$ac_srcdir/configure"; then | |
1584 | echo && | |
1585 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1586 | else | |
1587 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1588 | fi || ac_status=$? | |
1589 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1590 | done | |
1591 | fi | |
1592 | ||
1593 | test -n "$ac_init_help" && exit $ac_status | |
1594 | if $ac_init_version; then | |
1595 | cat <<\_ACEOF | |
1596 | Cycript configure 0.9 | |
53ba6704 | 1597 | generated by GNU Autoconf 2.69 |
c7aa54aa | 1598 | |
53ba6704 | 1599 | Copyright (C) 2012 Free Software Foundation, Inc. |
c7aa54aa DWT |
1600 | This configure script is free software; the Free Software Foundation |
1601 | gives unlimited permission to copy, distribute and modify it. | |
66170b30 JF |
1602 | |
1603 | Copyright (C) 2009-2012 Jay Freeman (saurik) | |
c7aa54aa DWT |
1604 | _ACEOF |
1605 | exit | |
1606 | fi | |
1607 | ||
1608 | ## ------------------------ ## | |
1609 | ## Autoconf initialization. ## | |
1610 | ## ------------------------ ## | |
dbadc56a | 1611 | |
a243b558 JF |
1612 | # ac_fn_cxx_try_compile LINENO |
1613 | # ---------------------------- | |
1614 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1615 | ac_fn_cxx_try_compile () | |
1616 | { | |
1617 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1618 | rm -f conftest.$ac_objext | |
1619 | if { { ac_try="$ac_compile" | |
1620 | case "(($ac_try" in | |
1621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1622 | *) ac_try_echo=$ac_try;; | |
1623 | esac | |
1624 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1625 | $as_echo "$ac_try_echo"; } >&5 | |
1626 | (eval "$ac_compile") 2>conftest.err | |
1627 | ac_status=$? | |
1628 | if test -s conftest.err; then | |
1629 | grep -v '^ *+' conftest.err >conftest.er1 | |
1630 | cat conftest.er1 >&5 | |
1631 | mv -f conftest.er1 conftest.err | |
1632 | fi | |
1633 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1634 | test $ac_status = 0; } && { | |
1635 | test -z "$ac_cxx_werror_flag" || | |
1636 | test ! -s conftest.err | |
1637 | } && test -s conftest.$ac_objext; then : | |
1638 | ac_retval=0 | |
1639 | else | |
1640 | $as_echo "$as_me: failed program was:" >&5 | |
1641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1642 | ||
1643 | ac_retval=1 | |
1644 | fi | |
1645 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1646 | as_fn_set_status $ac_retval | |
1647 | ||
1648 | } # ac_fn_cxx_try_compile | |
1649 | ||
1650 | # ac_fn_objcxx_try_compile LINENO | |
1651 | # ------------------------------- | |
1652 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1653 | ac_fn_objcxx_try_compile () | |
1654 | { | |
1655 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1656 | rm -f conftest.$ac_objext | |
1657 | if { { ac_try="$ac_compile" | |
1658 | case "(($ac_try" in | |
1659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1660 | *) ac_try_echo=$ac_try;; | |
1661 | esac | |
1662 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1663 | $as_echo "$ac_try_echo"; } >&5 | |
1664 | (eval "$ac_compile") 2>conftest.err | |
1665 | ac_status=$? | |
1666 | if test -s conftest.err; then | |
1667 | grep -v '^ *+' conftest.err >conftest.er1 | |
1668 | cat conftest.er1 >&5 | |
1669 | mv -f conftest.er1 conftest.err | |
1670 | fi | |
1671 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1672 | test $ac_status = 0; } && { | |
1673 | test -z "$ac_objcxx_werror_flag" || | |
1674 | test ! -s conftest.err | |
1675 | } && test -s conftest.$ac_objext; then : | |
1676 | ac_retval=0 | |
1677 | else | |
1678 | $as_echo "$as_me: failed program was:" >&5 | |
1679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1680 | ||
1681 | ac_retval=1 | |
1682 | fi | |
1683 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1684 | as_fn_set_status $ac_retval | |
1685 | ||
1686 | } # ac_fn_objcxx_try_compile | |
1687 | ||
35fa52c0 DWT |
1688 | # ac_fn_c_try_compile LINENO |
1689 | # -------------------------- | |
1690 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1691 | ac_fn_c_try_compile () | |
1692 | { | |
1693 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1694 | rm -f conftest.$ac_objext | |
1695 | if { { ac_try="$ac_compile" | |
1696 | case "(($ac_try" in | |
1697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1698 | *) ac_try_echo=$ac_try;; | |
1699 | esac | |
1700 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1701 | $as_echo "$ac_try_echo"; } >&5 | |
1702 | (eval "$ac_compile") 2>conftest.err | |
1703 | ac_status=$? | |
1704 | if test -s conftest.err; then | |
1705 | grep -v '^ *+' conftest.err >conftest.er1 | |
1706 | cat conftest.er1 >&5 | |
1707 | mv -f conftest.er1 conftest.err | |
1708 | fi | |
1709 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1710 | test $ac_status = 0; } && { | |
1711 | test -z "$ac_c_werror_flag" || | |
1712 | test ! -s conftest.err | |
1713 | } && test -s conftest.$ac_objext; then : | |
1714 | ac_retval=0 | |
1715 | else | |
1716 | $as_echo "$as_me: failed program was:" >&5 | |
1717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1718 | ||
1719 | ac_retval=1 | |
1720 | fi | |
ee134472 | 1721 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1722 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1723 | |
1724 | } # ac_fn_c_try_compile | |
1725 | ||
1726 | # ac_fn_c_try_link LINENO | |
1727 | # ----------------------- | |
1728 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1729 | ac_fn_c_try_link () | |
1730 | { | |
1731 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1732 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1733 | if { { ac_try="$ac_link" | |
1734 | case "(($ac_try" in | |
1735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1736 | *) ac_try_echo=$ac_try;; | |
1737 | esac | |
1738 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1739 | $as_echo "$ac_try_echo"; } >&5 | |
1740 | (eval "$ac_link") 2>conftest.err | |
1741 | ac_status=$? | |
1742 | if test -s conftest.err; then | |
1743 | grep -v '^ *+' conftest.err >conftest.er1 | |
1744 | cat conftest.er1 >&5 | |
1745 | mv -f conftest.er1 conftest.err | |
1746 | fi | |
1747 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1748 | test $ac_status = 0; } && { | |
1749 | test -z "$ac_c_werror_flag" || | |
1750 | test ! -s conftest.err | |
1751 | } && test -s conftest$ac_exeext && { | |
1752 | test "$cross_compiling" = yes || | |
53ba6704 | 1753 | test -x conftest$ac_exeext |
35fa52c0 DWT |
1754 | }; then : |
1755 | ac_retval=0 | |
1756 | else | |
1757 | $as_echo "$as_me: failed program was:" >&5 | |
1758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1759 | ||
1760 | ac_retval=1 | |
1761 | fi | |
1762 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1763 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1764 | # interfere with the next link command; also delete a directory that is | |
1765 | # left behind by Apple's compiler. We do this before executing the actions. | |
1766 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 1767 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1768 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1769 | |
1770 | } # ac_fn_c_try_link | |
1771 | ||
9c60689e DWT |
1772 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1773 | # ------------------------------------------------------- | |
1774 | # Tests whether HEADER exists and can be compiled using the include files in | |
1775 | # INCLUDES, setting the cache variable VAR accordingly. | |
1776 | ac_fn_c_check_header_compile () | |
dbadc56a DWT |
1777 | { |
1778 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1780 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 1781 | if eval \${$3+:} false; then : |
9c60689e DWT |
1782 | $as_echo_n "(cached) " >&6 |
1783 | else | |
1784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1785 | /* end confdefs.h. */ | |
1786 | $4 | |
1787 | #include <$2> | |
1788 | _ACEOF | |
1789 | if ac_fn_c_try_compile "$LINENO"; then : | |
1790 | eval "$3=yes" | |
1791 | else | |
1792 | eval "$3=no" | |
1793 | fi | |
1794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1795 | fi | |
1796 | eval ac_res=\$$3 | |
1797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1798 | $as_echo "$ac_res" >&6; } | |
ee134472 | 1799 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e DWT |
1800 | |
1801 | } # ac_fn_c_check_header_compile | |
1802 | ||
1803 | # ac_fn_c_try_cpp LINENO | |
1804 | # ---------------------- | |
1805 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1806 | ac_fn_c_try_cpp () | |
1807 | { | |
1808 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1809 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
dbadc56a DWT |
1810 | case "(($ac_try" in |
1811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1812 | *) ac_try_echo=$ac_try;; | |
1813 | esac | |
1814 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1815 | $as_echo "$ac_try_echo"; } >&5 | |
9c60689e | 1816 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
dbadc56a DWT |
1817 | ac_status=$? |
1818 | if test -s conftest.err; then | |
1819 | grep -v '^ *+' conftest.err >conftest.er1 | |
1820 | cat conftest.er1 >&5 | |
1821 | mv -f conftest.er1 conftest.err | |
1822 | fi | |
1823 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12833ad8 | 1824 | test $ac_status = 0; } > conftest.i && { |
9c60689e | 1825 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
dbadc56a | 1826 | test ! -s conftest.err |
9c60689e | 1827 | }; then : |
dbadc56a DWT |
1828 | ac_retval=0 |
1829 | else | |
1830 | $as_echo "$as_me: failed program was:" >&5 | |
1831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1832 | ||
9c60689e | 1833 | ac_retval=1 |
dbadc56a | 1834 | fi |
ee134472 | 1835 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1836 | as_fn_set_status $ac_retval |
dbadc56a | 1837 | |
9c60689e | 1838 | } # ac_fn_c_try_cpp |
35fa52c0 DWT |
1839 | |
1840 | # ac_fn_c_try_run LINENO | |
1841 | # ---------------------- | |
1842 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1843 | # that executables *can* be run. | |
1844 | ac_fn_c_try_run () | |
1845 | { | |
1846 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1847 | if { { ac_try="$ac_link" | |
1848 | case "(($ac_try" in | |
1849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1850 | *) ac_try_echo=$ac_try;; | |
1851 | esac | |
1852 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1853 | $as_echo "$ac_try_echo"; } >&5 | |
1854 | (eval "$ac_link") 2>&5 | |
1855 | ac_status=$? | |
1856 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1857 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1858 | { { case "(($ac_try" in | |
1859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1860 | *) ac_try_echo=$ac_try;; | |
1861 | esac | |
1862 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1863 | $as_echo "$ac_try_echo"; } >&5 | |
1864 | (eval "$ac_try") 2>&5 | |
1865 | ac_status=$? | |
1866 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1867 | test $ac_status = 0; }; }; then : | |
1868 | ac_retval=0 | |
1869 | else | |
1870 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1871 | $as_echo "$as_me: failed program was:" >&5 | |
1872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1873 | ||
1874 | ac_retval=$ac_status | |
1875 | fi | |
1876 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 1877 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e | 1878 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1879 | |
1880 | } # ac_fn_c_try_run | |
6b66678a | 1881 | |
9c60689e DWT |
1882 | # ac_fn_c_check_func LINENO FUNC VAR |
1883 | # ---------------------------------- | |
1884 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1885 | ac_fn_c_check_func () | |
6b66678a DWT |
1886 | { |
1887 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1889 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 1890 | if eval \${$3+:} false; then : |
9c60689e | 1891 | $as_echo_n "(cached) " >&6 |
6b66678a | 1892 | else |
9c60689e DWT |
1893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1894 | /* end confdefs.h. */ | |
1895 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1896 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1897 | #define $2 innocuous_$2 | |
6b66678a | 1898 | |
9c60689e DWT |
1899 | /* System header to define __stub macros and hopefully few prototypes, |
1900 | which can conflict with char $2 (); below. | |
1901 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1902 | <limits.h> exists even on freestanding compilers. */ | |
1903 | ||
1904 | #ifdef __STDC__ | |
1905 | # include <limits.h> | |
1906 | #else | |
1907 | # include <assert.h> | |
1908 | #endif | |
1909 | ||
1910 | #undef $2 | |
1911 | ||
1912 | /* Override any GCC internal prototype to avoid an error. | |
1913 | Use char because int might match the return type of a GCC | |
1914 | builtin and then its argument prototype would still apply. */ | |
1915 | #ifdef __cplusplus | |
1916 | extern "C" | |
1917 | #endif | |
1918 | char $2 (); | |
1919 | /* The GNU C library defines this for functions which it implements | |
1920 | to always fail with ENOSYS. Some functions are actually named | |
1921 | something starting with __ and the normal name is an alias. */ | |
1922 | #if defined __stub_$2 || defined __stub___$2 | |
1923 | choke me | |
1924 | #endif | |
1925 | ||
1926 | int | |
1927 | main () | |
1928 | { | |
1929 | return $2 (); | |
1930 | ; | |
1931 | return 0; | |
1932 | } | |
1933 | _ACEOF | |
1934 | if ac_fn_c_try_link "$LINENO"; then : | |
1935 | eval "$3=yes" | |
1936 | else | |
1937 | eval "$3=no" | |
1938 | fi | |
1939 | rm -f core conftest.err conftest.$ac_objext \ | |
1940 | conftest$ac_exeext conftest.$ac_ext | |
6b66678a | 1941 | fi |
9c60689e DWT |
1942 | eval ac_res=\$$3 |
1943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1944 | $as_echo "$ac_res" >&6; } | |
ee134472 | 1945 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6b66678a | 1946 | |
9c60689e | 1947 | } # ac_fn_c_check_func |
6b66678a | 1948 | |
9c60689e DWT |
1949 | # ac_fn_cxx_try_cpp LINENO |
1950 | # ------------------------ | |
1951 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1952 | ac_fn_cxx_try_cpp () | |
1953 | { | |
1954 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1955 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1956 | case "(($ac_try" in | |
1957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1958 | *) ac_try_echo=$ac_try;; | |
1959 | esac | |
1960 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1961 | $as_echo "$ac_try_echo"; } >&5 | |
1962 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1963 | ac_status=$? | |
1964 | if test -s conftest.err; then | |
1965 | grep -v '^ *+' conftest.err >conftest.er1 | |
1966 | cat conftest.er1 >&5 | |
1967 | mv -f conftest.er1 conftest.err | |
1968 | fi | |
1969 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12833ad8 | 1970 | test $ac_status = 0; } > conftest.i && { |
9c60689e DWT |
1971 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
1972 | test ! -s conftest.err | |
1973 | }; then : | |
1974 | ac_retval=0 | |
1975 | else | |
1976 | $as_echo "$as_me: failed program was:" >&5 | |
1977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1978 | ||
1979 | ac_retval=1 | |
1980 | fi | |
ee134472 | 1981 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e DWT |
1982 | as_fn_set_status $ac_retval |
1983 | ||
1984 | } # ac_fn_cxx_try_cpp | |
1985 | ||
1986 | # ac_fn_cxx_try_link LINENO | |
1987 | # ------------------------- | |
1988 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1989 | ac_fn_cxx_try_link () | |
1990 | { | |
1991 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1992 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1993 | if { { ac_try="$ac_link" | |
1994 | case "(($ac_try" in | |
1995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1996 | *) ac_try_echo=$ac_try;; | |
1997 | esac | |
1998 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1999 | $as_echo "$ac_try_echo"; } >&5 | |
2000 | (eval "$ac_link") 2>conftest.err | |
2001 | ac_status=$? | |
2002 | if test -s conftest.err; then | |
2003 | grep -v '^ *+' conftest.err >conftest.er1 | |
2004 | cat conftest.er1 >&5 | |
2005 | mv -f conftest.er1 conftest.err | |
2006 | fi | |
2007 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2008 | test $ac_status = 0; } && { | |
2009 | test -z "$ac_cxx_werror_flag" || | |
2010 | test ! -s conftest.err | |
2011 | } && test -s conftest$ac_exeext && { | |
2012 | test "$cross_compiling" = yes || | |
53ba6704 | 2013 | test -x conftest$ac_exeext |
9c60689e DWT |
2014 | }; then : |
2015 | ac_retval=0 | |
2016 | else | |
2017 | $as_echo "$as_me: failed program was:" >&5 | |
2018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2019 | ||
2020 | ac_retval=1 | |
2021 | fi | |
2022 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2023 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2024 | # interfere with the next link command; also delete a directory that is | |
2025 | # left behind by Apple's compiler. We do this before executing the actions. | |
2026 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 2027 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
9c60689e DWT |
2028 | as_fn_set_status $ac_retval |
2029 | ||
2030 | } # ac_fn_cxx_try_link | |
2031 | ||
47aaa820 DWT |
2032 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
2033 | # --------------------------------------------------------- | |
2034 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2035 | # the include files in INCLUDES and setting the cache variable VAR | |
2036 | # accordingly. | |
2037 | ac_fn_cxx_check_header_mongrel () | |
2038 | { | |
2039 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
ee134472 | 2040 | if eval \${$3+:} false; then : |
47aaa820 DWT |
2041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2042 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 2043 | if eval \${$3+:} false; then : |
47aaa820 DWT |
2044 | $as_echo_n "(cached) " >&6 |
2045 | fi | |
2046 | eval ac_res=\$$3 | |
2047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2048 | $as_echo "$ac_res" >&6; } | |
2049 | else | |
2050 | # Is the header compilable? | |
2051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2052 | $as_echo_n "checking $2 usability... " >&6; } | |
2053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2054 | /* end confdefs.h. */ | |
2055 | $4 | |
2056 | #include <$2> | |
2057 | _ACEOF | |
2058 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2059 | ac_header_compiler=yes | |
2060 | else | |
2061 | ac_header_compiler=no | |
2062 | fi | |
2063 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2065 | $as_echo "$ac_header_compiler" >&6; } | |
2066 | ||
2067 | # Is the header present? | |
2068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2069 | $as_echo_n "checking $2 presence... " >&6; } | |
2070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2071 | /* end confdefs.h. */ | |
2072 | #include <$2> | |
2073 | _ACEOF | |
2074 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
2075 | ac_header_preproc=yes | |
2076 | else | |
2077 | ac_header_preproc=no | |
2078 | fi | |
12833ad8 | 2079 | rm -f conftest.err conftest.i conftest.$ac_ext |
47aaa820 DWT |
2080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
2081 | $as_echo "$ac_header_preproc" >&6; } | |
2082 | ||
2083 | # So? What about this header? | |
2084 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
2085 | yes:no: ) | |
2086 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2087 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2088 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2089 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2090 | ;; | |
2091 | no:yes:* ) | |
2092 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2093 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2094 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2095 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2096 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2097 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2098 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2099 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2100 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2101 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
12833ad8 | 2102 | ( $as_echo "## -------------------------------- ## |
47aaa820 | 2103 | ## Report this to saurik@saurik.com ## |
12833ad8 | 2104 | ## -------------------------------- ##" |
47aaa820 DWT |
2105 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
2106 | ;; | |
2107 | esac | |
2108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2109 | $as_echo_n "checking for $2... " >&6; } | |
ee134472 | 2110 | if eval \${$3+:} false; then : |
47aaa820 DWT |
2111 | $as_echo_n "(cached) " >&6 |
2112 | else | |
2113 | eval "$3=\$ac_header_compiler" | |
2114 | fi | |
2115 | eval ac_res=\$$3 | |
2116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2117 | $as_echo "$ac_res" >&6; } | |
2118 | fi | |
ee134472 | 2119 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
47aaa820 DWT |
2120 | |
2121 | } # ac_fn_cxx_check_header_mongrel | |
2122 | ||
c823f118 DWT |
2123 | # ac_fn_objcxx_try_link LINENO |
2124 | # ---------------------------- | |
2125 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2126 | ac_fn_objcxx_try_link () | |
2127 | { | |
2128 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2129 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2130 | if { { ac_try="$ac_link" | |
2131 | case "(($ac_try" in | |
2132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2133 | *) ac_try_echo=$ac_try;; | |
2134 | esac | |
2135 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2136 | $as_echo "$ac_try_echo"; } >&5 | |
2137 | (eval "$ac_link") 2>conftest.err | |
2138 | ac_status=$? | |
2139 | if test -s conftest.err; then | |
2140 | grep -v '^ *+' conftest.err >conftest.er1 | |
2141 | cat conftest.er1 >&5 | |
2142 | mv -f conftest.er1 conftest.err | |
2143 | fi | |
2144 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2145 | test $ac_status = 0; } && { | |
2146 | test -z "$ac_objcxx_werror_flag" || | |
2147 | test ! -s conftest.err | |
2148 | } && test -s conftest$ac_exeext && { | |
2149 | test "$cross_compiling" = yes || | |
53ba6704 | 2150 | test -x conftest$ac_exeext |
c823f118 DWT |
2151 | }; then : |
2152 | ac_retval=0 | |
2153 | else | |
2154 | $as_echo "$as_me: failed program was:" >&5 | |
2155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2156 | ||
2157 | ac_retval=1 | |
2158 | fi | |
2159 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2160 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2161 | # interfere with the next link command; also delete a directory that is | |
2162 | # left behind by Apple's compiler. We do this before executing the actions. | |
2163 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
ee134472 | 2164 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
c823f118 DWT |
2165 | as_fn_set_status $ac_retval |
2166 | ||
2167 | } # ac_fn_objcxx_try_link | |
c7aa54aa DWT |
2168 | cat >config.log <<_ACEOF |
2169 | This file contains any messages produced by compilers while | |
2170 | running configure, to aid debugging if configure makes a mistake. | |
2171 | ||
2172 | It was created by Cycript $as_me 0.9, which was | |
53ba6704 | 2173 | generated by GNU Autoconf 2.69. Invocation command line was |
c7aa54aa DWT |
2174 | |
2175 | $ $0 $@ | |
2176 | ||
2177 | _ACEOF | |
2178 | exec 5>>config.log | |
2179 | { | |
2180 | cat <<_ASUNAME | |
2181 | ## --------- ## | |
2182 | ## Platform. ## | |
2183 | ## --------- ## | |
2184 | ||
2185 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2186 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2187 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2188 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2189 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2190 | ||
2191 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2192 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2193 | ||
2194 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2195 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2196 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2197 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2198 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2199 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2200 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2201 | ||
2202 | _ASUNAME | |
2203 | ||
2204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2205 | for as_dir in $PATH | |
2206 | do | |
2207 | IFS=$as_save_IFS | |
2208 | test -z "$as_dir" && as_dir=. | |
2209 | $as_echo "PATH: $as_dir" | |
2210 | done | |
2211 | IFS=$as_save_IFS | |
2212 | ||
2213 | } >&5 | |
2214 | ||
2215 | cat >&5 <<_ACEOF | |
2216 | ||
2217 | ||
2218 | ## ----------- ## | |
2219 | ## Core tests. ## | |
2220 | ## ----------- ## | |
2221 | ||
2222 | _ACEOF | |
2223 | ||
2224 | ||
2225 | # Keep a trace of the command line. | |
2226 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2227 | # Strip out --silent because we don't want to record it for future runs. | |
2228 | # Also quote any args containing shell meta-characters. | |
2229 | # Make two passes to allow for proper duplicate-argument suppression. | |
2230 | ac_configure_args= | |
2231 | ac_configure_args0= | |
2232 | ac_configure_args1= | |
2233 | ac_must_keep_next=false | |
2234 | for ac_pass in 1 2 | |
2235 | do | |
2236 | for ac_arg | |
2237 | do | |
2238 | case $ac_arg in | |
2239 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2240 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2241 | | -silent | --silent | --silen | --sile | --sil) | |
2242 | continue ;; | |
2243 | *\'*) | |
2244 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2245 | esac | |
2246 | case $ac_pass in | |
2247 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2248 | 2) | |
2249 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2250 | if test $ac_must_keep_next = true; then | |
2251 | ac_must_keep_next=false # Got value, back to normal. | |
2252 | else | |
2253 | case $ac_arg in | |
2254 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2255 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2256 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2257 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2258 | case "$ac_configure_args0 " in | |
2259 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2260 | esac | |
2261 | ;; | |
2262 | -* ) ac_must_keep_next=true ;; | |
2263 | esac | |
2264 | fi | |
2265 | as_fn_append ac_configure_args " '$ac_arg'" | |
2266 | ;; | |
2267 | esac | |
2268 | done | |
2269 | done | |
2270 | { ac_configure_args0=; unset ac_configure_args0;} | |
2271 | { ac_configure_args1=; unset ac_configure_args1;} | |
2272 | ||
2273 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2274 | # config.log. We remove comments because anyway the quotes in there | |
2275 | # would cause problems or look ugly. | |
2276 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2277 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2278 | trap 'exit_status=$? | |
2279 | # Save into config.log some information that might help in debugging. | |
2280 | { | |
2281 | echo | |
2282 | ||
12833ad8 | 2283 | $as_echo "## ---------------- ## |
c7aa54aa | 2284 | ## Cache variables. ## |
12833ad8 | 2285 | ## ---------------- ##" |
c7aa54aa DWT |
2286 | echo |
2287 | # The following way of writing the cache mishandles newlines in values, | |
2288 | ( | |
2289 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2290 | eval ac_val=\$$ac_var | |
2291 | case $ac_val in #( | |
2292 | *${as_nl}*) | |
2293 | case $ac_var in #( | |
2294 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2295 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2296 | esac | |
2297 | case $ac_var in #( | |
2298 | _ | IFS | as_nl) ;; #( | |
2299 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2300 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2301 | esac ;; | |
2302 | esac | |
2303 | done | |
2304 | (set) 2>&1 | | |
2305 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2306 | *${as_nl}ac_space=\ *) | |
2307 | sed -n \ | |
2308 | "s/'\''/'\''\\\\'\'''\''/g; | |
2309 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2310 | ;; #( | |
2311 | *) | |
2312 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2313 | ;; | |
2314 | esac | | |
2315 | sort | |
2316 | ) | |
2317 | echo | |
2318 | ||
12833ad8 | 2319 | $as_echo "## ----------------- ## |
c7aa54aa | 2320 | ## Output variables. ## |
12833ad8 | 2321 | ## ----------------- ##" |
c7aa54aa DWT |
2322 | echo |
2323 | for ac_var in $ac_subst_vars | |
2324 | do | |
2325 | eval ac_val=\$$ac_var | |
2326 | case $ac_val in | |
2327 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2328 | esac | |
2329 | $as_echo "$ac_var='\''$ac_val'\''" | |
2330 | done | sort | |
2331 | echo | |
2332 | ||
2333 | if test -n "$ac_subst_files"; then | |
12833ad8 | 2334 | $as_echo "## ------------------- ## |
c7aa54aa | 2335 | ## File substitutions. ## |
12833ad8 | 2336 | ## ------------------- ##" |
c7aa54aa DWT |
2337 | echo |
2338 | for ac_var in $ac_subst_files | |
2339 | do | |
2340 | eval ac_val=\$$ac_var | |
2341 | case $ac_val in | |
2342 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2343 | esac | |
2344 | $as_echo "$ac_var='\''$ac_val'\''" | |
2345 | done | sort | |
2346 | echo | |
2347 | fi | |
2348 | ||
2349 | if test -s confdefs.h; then | |
12833ad8 | 2350 | $as_echo "## ----------- ## |
c7aa54aa | 2351 | ## confdefs.h. ## |
12833ad8 | 2352 | ## ----------- ##" |
c7aa54aa DWT |
2353 | echo |
2354 | cat confdefs.h | |
2355 | echo | |
2356 | fi | |
2357 | test "$ac_signal" != 0 && | |
2358 | $as_echo "$as_me: caught signal $ac_signal" | |
2359 | $as_echo "$as_me: exit $exit_status" | |
2360 | } >&5 | |
2361 | rm -f core *.core core.conftest.* && | |
2362 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2363 | exit $exit_status | |
2364 | ' 0 | |
2365 | for ac_signal in 1 2 13 15; do | |
2366 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2367 | done | |
2368 | ac_signal=0 | |
2369 | ||
2370 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2371 | rm -f -r conftest* confdefs.h | |
2372 | ||
2373 | $as_echo "/* confdefs.h */" > confdefs.h | |
2374 | ||
2375 | # Predefined preprocessor variables. | |
2376 | ||
2377 | cat >>confdefs.h <<_ACEOF | |
2378 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2379 | _ACEOF | |
2380 | ||
2381 | cat >>confdefs.h <<_ACEOF | |
2382 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2383 | _ACEOF | |
2384 | ||
2385 | cat >>confdefs.h <<_ACEOF | |
2386 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2387 | _ACEOF | |
2388 | ||
2389 | cat >>confdefs.h <<_ACEOF | |
2390 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2391 | _ACEOF | |
2392 | ||
2393 | cat >>confdefs.h <<_ACEOF | |
2394 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2395 | _ACEOF | |
2396 | ||
2397 | cat >>confdefs.h <<_ACEOF | |
2398 | #define PACKAGE_URL "$PACKAGE_URL" | |
2399 | _ACEOF | |
2400 | ||
2401 | ||
2402 | # Let the site file select an alternate cache file if it wants to. | |
2403 | # Prefer an explicitly selected file to automatically selected ones. | |
2404 | ac_site_file1=NONE | |
2405 | ac_site_file2=NONE | |
2406 | if test -n "$CONFIG_SITE"; then | |
12833ad8 JF |
2407 | # We do not want a PATH search for config.site. |
2408 | case $CONFIG_SITE in #(( | |
2409 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2410 | */*) ac_site_file1=$CONFIG_SITE;; | |
2411 | *) ac_site_file1=./$CONFIG_SITE;; | |
2412 | esac | |
c7aa54aa DWT |
2413 | elif test "x$prefix" != xNONE; then |
2414 | ac_site_file1=$prefix/share/config.site | |
2415 | ac_site_file2=$prefix/etc/config.site | |
2416 | else | |
2417 | ac_site_file1=$ac_default_prefix/share/config.site | |
2418 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2419 | fi | |
2420 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2421 | do | |
2422 | test "x$ac_site_file" = xNONE && continue | |
9c60689e | 2423 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
c7aa54aa DWT |
2424 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2425 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2426 | sed 's/^/| /' "$ac_site_file" >&5 | |
12833ad8 JF |
2427 | . "$ac_site_file" \ |
2428 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2429 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2430 | as_fn_error $? "failed to load site script $ac_site_file | |
ee134472 | 2431 | See \`config.log' for more details" "$LINENO" 5; } |
c7aa54aa DWT |
2432 | fi |
2433 | done | |
2434 | ||
2435 | if test -r "$cache_file"; then | |
9c60689e DWT |
2436 | # Some versions of bash will fail to source /dev/null (special files |
2437 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2438 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
c7aa54aa DWT |
2439 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2440 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2441 | case $cache_file in | |
2442 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2443 | *) . "./$cache_file";; | |
2444 | esac | |
2445 | fi | |
2446 | else | |
2447 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2448 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2449 | >$cache_file | |
2450 | fi | |
2451 | ||
2452 | # Check that the precious variables saved in the cache have kept the same | |
2453 | # value. | |
2454 | ac_cache_corrupted=false | |
2455 | for ac_var in $ac_precious_vars; do | |
2456 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2457 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2458 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2459 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2460 | case $ac_old_set,$ac_new_set in | |
2461 | set,) | |
2462 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2463 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2464 | ac_cache_corrupted=: ;; | |
2465 | ,set) | |
2466 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2467 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2468 | ac_cache_corrupted=: ;; | |
2469 | ,);; | |
2470 | *) | |
2471 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2472 | # differences in whitespace do not lead to failure. | |
2473 | ac_old_val_w=`echo x $ac_old_val` | |
2474 | ac_new_val_w=`echo x $ac_new_val` | |
2475 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2476 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2477 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2478 | ac_cache_corrupted=: | |
2479 | else | |
2480 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2481 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2482 | eval $ac_var=\$ac_old_val | |
2483 | fi | |
2484 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2485 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2486 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2487 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2488 | fi;; | |
2489 | esac | |
2490 | # Pass precious variables to config.status. | |
2491 | if test "$ac_new_set" = set; then | |
2492 | case $ac_new_val in | |
2493 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2494 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2495 | esac | |
2496 | case " $ac_configure_args " in | |
2497 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2498 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2499 | esac | |
2500 | fi | |
2501 | done | |
2502 | if $ac_cache_corrupted; then | |
2503 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2504 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2505 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2506 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
12833ad8 | 2507 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
c7aa54aa DWT |
2508 | fi |
2509 | ## -------------------- ## | |
2510 | ## Main body of script. ## | |
2511 | ## -------------------- ## | |
2512 | ||
2513 | ac_ext=c | |
2514 | ac_cpp='$CPP $CPPFLAGS' | |
2515 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2516 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2517 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2518 | ||
2519 | ||
66170b30 JF |
2520 | |
2521 | ||
35fa52c0 | 2522 | |
6b66678a DWT |
2523 | ac_aux_dir= |
2524 | for ac_dir in . "$srcdir"/.; do | |
12833ad8 JF |
2525 | if test -f "$ac_dir/install-sh"; then |
2526 | ac_aux_dir=$ac_dir | |
2527 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2528 | break | |
2529 | elif 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/shtool"; then | |
2534 | ac_aux_dir=$ac_dir | |
2535 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2536 | break | |
2537 | fi | |
6b66678a DWT |
2538 | done |
2539 | if test -z "$ac_aux_dir"; then | |
12833ad8 | 2540 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 |
6b66678a DWT |
2541 | fi |
2542 | ||
2543 | # These three variables are undocumented and unsupported, | |
2544 | # and are intended to be withdrawn in a future Autoconf release. | |
2545 | # They can cause serious problems if a builder's source tree is in a directory | |
2546 | # whose full name contains unusual characters. | |
2547 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2548 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2549 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2550 | ||
2551 | ||
9c60689e | 2552 | |
296ee9a6 JF |
2553 | ac_config_headers="$ac_config_headers config.h" |
2554 | ||
9c60689e | 2555 | |
66170b30 | 2556 | am__api_version='1.13' |
9c60689e | 2557 | |
66170b30 JF |
2558 | # Find a good install program. We prefer a C program (faster), |
2559 | # so one script is as good as another. But avoid the broken or | |
2560 | # incompatible versions: | |
2561 | # SysV /etc/install, /usr/sbin/install | |
2562 | # SunOS /usr/etc/install | |
2563 | # IRIX /sbin/install | |
2564 | # AIX /bin/install | |
2565 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2566 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2567 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2568 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2569 | # OS/2's system install, which has a completely different semantic | |
2570 | # ./install, which can be erroneously created by make from ./install.sh. | |
2571 | # Reject install programs that cannot install multiple files. | |
2572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2573 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2574 | if test -z "$INSTALL"; then | |
2575 | if ${ac_cv_path_install+:} false; then : | |
2576 | $as_echo_n "(cached) " >&6 | |
2577 | else | |
2578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2579 | for as_dir in $PATH | |
2580 | do | |
2581 | IFS=$as_save_IFS | |
2582 | test -z "$as_dir" && as_dir=. | |
2583 | # Account for people who put trailing slashes in PATH elements. | |
2584 | case $as_dir/ in #(( | |
2585 | ./ | .// | /[cC]/* | \ | |
2586 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2587 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2588 | /usr/ucb/* ) ;; | |
2589 | *) | |
2590 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2591 | # Don't use installbsd from OSF since it installs stuff as root | |
2592 | # by default. | |
2593 | for ac_prog in ginstall scoinst install; do | |
2594 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2595 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2596 | if test $ac_prog = install && | |
2597 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2598 | # AIX install. It has an incompatible calling convention. | |
2599 | : | |
2600 | elif test $ac_prog = install && | |
2601 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2602 | # program-specific install script used by HP pwplus--don't use. | |
2603 | : | |
2604 | else | |
2605 | rm -rf conftest.one conftest.two conftest.dir | |
2606 | echo one > conftest.one | |
2607 | echo two > conftest.two | |
2608 | mkdir conftest.dir | |
2609 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2610 | test -s conftest.one && test -s conftest.two && | |
2611 | test -s conftest.dir/conftest.one && | |
2612 | test -s conftest.dir/conftest.two | |
2613 | then | |
2614 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2615 | break 3 | |
2616 | fi | |
2617 | fi | |
2618 | fi | |
2619 | done | |
2620 | done | |
2621 | ;; | |
2622 | esac | |
9c60689e | 2623 | |
66170b30 JF |
2624 | done |
2625 | IFS=$as_save_IFS | |
9c60689e | 2626 | |
66170b30 | 2627 | rm -rf conftest.one conftest.two conftest.dir |
9c60689e | 2628 | |
66170b30 JF |
2629 | fi |
2630 | if test "${ac_cv_path_install+set}" = set; then | |
2631 | INSTALL=$ac_cv_path_install | |
2632 | else | |
2633 | # As a last resort, use the slow shell script. Don't cache a | |
2634 | # value for INSTALL within a source directory, because that will | |
2635 | # break other packages using the cache if that directory is | |
2636 | # removed, or if the value is a relative name. | |
2637 | INSTALL=$ac_install_sh | |
2638 | fi | |
2639 | fi | |
2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2641 | $as_echo "$INSTALL" >&6; } | |
9c60689e | 2642 | |
66170b30 JF |
2643 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2644 | # It thinks the first close brace ends the variable substitution. | |
2645 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9c60689e | 2646 | |
66170b30 | 2647 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
9c60689e | 2648 | |
66170b30 | 2649 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
9c60689e | 2650 | |
66170b30 JF |
2651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2652 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
2653 | # Reject unsafe characters in $srcdir or the absolute working directory | |
2654 | # name. Accept space and tab only in the latter. | |
2655 | am_lf=' | |
2656 | ' | |
2657 | case `pwd` in | |
2658 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2659 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
2660 | esac | |
2661 | case $srcdir in | |
2662 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2663 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
2664 | esac | |
9c60689e | 2665 | |
66170b30 JF |
2666 | # Do 'set' in a subshell so we don't clobber the current shell's |
2667 | # arguments. Must try -L first in case configure is actually a | |
2668 | # symlink; some systems play weird games with the mod time of symlinks | |
2669 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2670 | # directory). | |
2671 | if ( | |
2672 | am_has_slept=no | |
2673 | for am_try in 1 2; do | |
2674 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2675 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2676 | if test "$*" = "X"; then | |
2677 | # -L didn't work. | |
2678 | set X `ls -t "$srcdir/configure" conftest.file` | |
2679 | fi | |
2680 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2681 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2682 | ||
2683 | # If neither matched, then we have a broken ls. This can happen | |
2684 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2685 | # broken ls alias from the environment. This has actually | |
2686 | # happened. Such a system could not be considered "sane". | |
2687 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2688 | alias in your environment" "$LINENO" 5 | |
2689 | fi | |
2690 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2691 | break | |
2692 | fi | |
2693 | # Just in case. | |
2694 | sleep 1 | |
2695 | am_has_slept=yes | |
2696 | done | |
2697 | test "$2" = conftest.file | |
2698 | ) | |
2699 | then | |
2700 | # Ok. | |
2701 | : | |
2702 | else | |
2703 | as_fn_error $? "newly created file is older than distributed files! | |
2704 | Check your system clock" "$LINENO" 5 | |
2705 | fi | |
2706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2707 | $as_echo "yes" >&6; } | |
2708 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
2709 | # generated files are strictly newer. | |
2710 | am_sleep_pid= | |
2711 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2712 | ( sleep 1 ) & | |
2713 | am_sleep_pid=$! | |
2714 | fi | |
2715 | ||
2716 | rm -f conftest.file | |
2717 | ||
2718 | test "$program_prefix" != NONE && | |
2719 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2720 | # Use a double $ so make ignores it. | |
2721 | test "$program_suffix" != NONE && | |
2722 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2723 | # Double any \ or $. | |
2724 | # By default was `s,x,x', remove it if useless. | |
2725 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2726 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2727 | ||
2728 | # expand $ac_aux_dir to an absolute path | |
2729 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2730 | ||
2731 | if test x"${MISSING+set}" != xset; then | |
2732 | case $am_aux_dir in | |
2733 | *\ * | *\ *) | |
2734 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2735 | *) | |
2736 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2737 | esac | |
2738 | fi | |
2739 | # Use eval to expand $SHELL | |
2740 | if eval "$MISSING --is-lightweight"; then | |
2741 | am_missing_run="$MISSING " | |
2742 | else | |
2743 | am_missing_run= | |
2744 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2745 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
2746 | fi | |
9c60689e | 2747 | |
66170b30 JF |
2748 | if test x"${install_sh}" != xset; then |
2749 | case $am_aux_dir in | |
2750 | *\ * | *\ *) | |
2751 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2752 | *) | |
2753 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2754 | esac | |
2755 | fi | |
9c60689e | 2756 | |
66170b30 JF |
2757 | # Installed binaries are usually stripped using 'strip' when the user |
2758 | # run "make install-strip". However 'strip' might not be the right | |
2759 | # tool to use in cross-compilation environments, therefore Automake | |
2760 | # will honor the 'STRIP' environment variable to overrule this program. | |
2761 | if test "$cross_compiling" != no; then | |
2762 | if test -n "$ac_tool_prefix"; then | |
2763 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2764 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2766 | $as_echo_n "checking for $ac_word... " >&6; } | |
2767 | if ${ac_cv_prog_STRIP+:} false; then : | |
2768 | $as_echo_n "(cached) " >&6 | |
2769 | else | |
2770 | if test -n "$STRIP"; then | |
2771 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2772 | else | |
2773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2774 | for as_dir in $PATH | |
2775 | do | |
2776 | IFS=$as_save_IFS | |
2777 | test -z "$as_dir" && as_dir=. | |
2778 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2779 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2780 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2781 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2782 | break 2 | |
2783 | fi | |
2784 | done | |
2785 | done | |
2786 | IFS=$as_save_IFS | |
9c60689e | 2787 | |
66170b30 JF |
2788 | fi |
2789 | fi | |
2790 | STRIP=$ac_cv_prog_STRIP | |
2791 | if test -n "$STRIP"; then | |
2792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2793 | $as_echo "$STRIP" >&6; } | |
2794 | else | |
2795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2796 | $as_echo "no" >&6; } | |
2797 | fi | |
9c60689e | 2798 | |
9c60689e | 2799 | |
66170b30 JF |
2800 | fi |
2801 | if test -z "$ac_cv_prog_STRIP"; then | |
2802 | ac_ct_STRIP=$STRIP | |
2803 | # Extract the first word of "strip", so it can be a program name with args. | |
2804 | set dummy strip; ac_word=$2 | |
2805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2806 | $as_echo_n "checking for $ac_word... " >&6; } | |
2807 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
9c60689e DWT |
2808 | $as_echo_n "(cached) " >&6 |
2809 | else | |
66170b30 JF |
2810 | if test -n "$ac_ct_STRIP"; then |
2811 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2812 | else | |
2813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2814 | for as_dir in $PATH | |
2815 | do | |
2816 | IFS=$as_save_IFS | |
2817 | test -z "$as_dir" && as_dir=. | |
2818 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2819 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2820 | ac_cv_prog_ac_ct_STRIP="strip" | |
2821 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2822 | break 2 | |
2823 | fi | |
2824 | done | |
2825 | done | |
2826 | IFS=$as_save_IFS | |
9c60689e DWT |
2827 | |
2828 | fi | |
66170b30 JF |
2829 | fi |
2830 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2831 | if test -n "$ac_ct_STRIP"; then | |
2832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2833 | $as_echo "$ac_ct_STRIP" >&6; } | |
2834 | else | |
2835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2836 | $as_echo "no" >&6; } | |
2837 | fi | |
2838 | ||
2839 | if test "x$ac_ct_STRIP" = x; then | |
2840 | STRIP=":" | |
2841 | else | |
2842 | case $cross_compiling:$ac_tool_warned in | |
2843 | yes:) | |
2844 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2845 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2846 | ac_tool_warned=yes ;; | |
9c60689e | 2847 | esac |
66170b30 JF |
2848 | STRIP=$ac_ct_STRIP |
2849 | fi | |
2850 | else | |
2851 | STRIP="$ac_cv_prog_STRIP" | |
2852 | fi | |
9c60689e | 2853 | |
66170b30 JF |
2854 | fi |
2855 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
9c60689e | 2856 | |
66170b30 JF |
2857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
2858 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2859 | if test -z "$MKDIR_P"; then | |
2860 | if ${ac_cv_path_mkdir+:} false; then : | |
9c60689e DWT |
2861 | $as_echo_n "(cached) " >&6 |
2862 | else | |
66170b30 JF |
2863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2864 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2865 | do | |
2866 | IFS=$as_save_IFS | |
2867 | test -z "$as_dir" && as_dir=. | |
2868 | for ac_prog in mkdir gmkdir; do | |
2869 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2870 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
2871 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2872 | 'mkdir (GNU coreutils) '* | \ | |
2873 | 'mkdir (coreutils) '* | \ | |
2874 | 'mkdir (fileutils) '4.1*) | |
2875 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2876 | break 3;; | |
2877 | esac | |
2878 | done | |
2879 | done | |
2880 | done | |
2881 | IFS=$as_save_IFS | |
2882 | ||
2883 | fi | |
2884 | ||
2885 | test -d ./--version && rmdir ./--version | |
2886 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2887 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2888 | else | |
2889 | # As a last resort, use the slow shell script. Don't cache a | |
2890 | # value for MKDIR_P within a source directory, because that will | |
2891 | # break other packages using the cache if that directory is | |
2892 | # removed, or if the value is a relative name. | |
2893 | MKDIR_P="$ac_install_sh -d" | |
2894 | fi | |
2895 | fi | |
2896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2897 | $as_echo "$MKDIR_P" >&6; } | |
2898 | ||
2899 | for ac_prog in gawk mawk nawk awk | |
2900 | do | |
2901 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2902 | set dummy $ac_prog; ac_word=$2 | |
2903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2904 | $as_echo_n "checking for $ac_word... " >&6; } | |
2905 | if ${ac_cv_prog_AWK+:} false; then : | |
2906 | $as_echo_n "(cached) " >&6 | |
2907 | else | |
2908 | if test -n "$AWK"; then | |
2909 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2910 | else | |
2911 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2912 | for as_dir in $PATH | |
2913 | do | |
2914 | IFS=$as_save_IFS | |
2915 | test -z "$as_dir" && as_dir=. | |
2916 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2917 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2918 | ac_cv_prog_AWK="$ac_prog" | |
2919 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2920 | break 2 | |
2921 | fi | |
2922 | done | |
2923 | done | |
2924 | IFS=$as_save_IFS | |
2925 | ||
2926 | fi | |
2927 | fi | |
2928 | AWK=$ac_cv_prog_AWK | |
2929 | if test -n "$AWK"; then | |
2930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2931 | $as_echo "$AWK" >&6; } | |
2932 | else | |
2933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2934 | $as_echo "no" >&6; } | |
2935 | fi | |
2936 | ||
2937 | ||
2938 | test -n "$AWK" && break | |
2939 | done | |
2940 | ||
2941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2942 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2943 | set x ${MAKE-make} | |
2944 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2945 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
2946 | $as_echo_n "(cached) " >&6 | |
2947 | else | |
2948 | cat >conftest.make <<\_ACEOF | |
2949 | SHELL = /bin/sh | |
2950 | all: | |
2951 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2952 | _ACEOF | |
2953 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
2954 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2955 | *@@@%%%=?*=@@@%%%*) | |
2956 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2957 | *) | |
2958 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2959 | esac | |
2960 | rm -f conftest.make | |
2961 | fi | |
2962 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
2963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2964 | $as_echo "yes" >&6; } | |
2965 | SET_MAKE= | |
2966 | else | |
2967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2968 | $as_echo "no" >&6; } | |
2969 | SET_MAKE="MAKE=${MAKE-make}" | |
2970 | fi | |
2971 | ||
2972 | rm -rf .tst 2>/dev/null | |
2973 | mkdir .tst 2>/dev/null | |
2974 | if test -d .tst; then | |
2975 | am__leading_dot=. | |
2976 | else | |
2977 | am__leading_dot=_ | |
2978 | fi | |
2979 | rmdir .tst 2>/dev/null | |
2980 | ||
2981 | # Check whether --enable-silent-rules was given. | |
2982 | if test "${enable_silent_rules+set}" = set; then : | |
2983 | enableval=$enable_silent_rules; | |
2984 | fi | |
2985 | ||
2986 | case $enable_silent_rules in # ((( | |
2987 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2988 | no) AM_DEFAULT_VERBOSITY=1;; | |
2989 | *) AM_DEFAULT_VERBOSITY=1;; | |
2990 | esac | |
2991 | am_make=${MAKE-make} | |
2992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2993 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2994 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2995 | $as_echo_n "(cached) " >&6 | |
2996 | else | |
2997 | if $as_echo 'TRUE=$(BAR$(V)) | |
2998 | BAR0=false | |
2999 | BAR1=true | |
3000 | V=1 | |
3001 | am__doit: | |
3002 | @$(TRUE) | |
3003 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3004 | am_cv_make_support_nested_variables=yes | |
3005 | else | |
3006 | am_cv_make_support_nested_variables=no | |
3007 | fi | |
3008 | fi | |
3009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3010 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3011 | if test $am_cv_make_support_nested_variables = yes; then | |
3012 | AM_V='$(V)' | |
3013 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3014 | else | |
3015 | AM_V=$AM_DEFAULT_VERBOSITY | |
3016 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3017 | fi | |
3018 | AM_BACKSLASH='\' | |
3019 | ||
3020 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
3021 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3022 | # is not polluted with repeated "-I." | |
3023 | am__isrc=' -I$(srcdir)' | |
3024 | # test to see if srcdir already configured | |
3025 | if test -f $srcdir/config.status; then | |
3026 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3027 | fi | |
3028 | fi | |
3029 | ||
3030 | # test whether we have cygpath | |
3031 | if test -z "$CYGPATH_W"; then | |
3032 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3033 | CYGPATH_W='cygpath -w' | |
3034 | else | |
3035 | CYGPATH_W=echo | |
3036 | fi | |
3037 | fi | |
3038 | ||
3039 | ||
3040 | # Define the identity of the package. | |
3041 | PACKAGE='cycript' | |
3042 | VERSION='0.9' | |
3043 | ||
3044 | ||
3045 | cat >>confdefs.h <<_ACEOF | |
3046 | #define PACKAGE "$PACKAGE" | |
3047 | _ACEOF | |
3048 | ||
3049 | ||
3050 | cat >>confdefs.h <<_ACEOF | |
3051 | #define VERSION "$VERSION" | |
3052 | _ACEOF | |
3053 | ||
3054 | # Some tools Automake needs. | |
3055 | ||
3056 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3057 | ||
3058 | ||
3059 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3060 | ||
3061 | ||
3062 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3063 | ||
3064 | ||
3065 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3066 | ||
3067 | ||
3068 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3069 | ||
3070 | # For better backward compatibility. To be removed once Automake 1.9.x | |
3071 | # dies out for good. For more background, see: | |
3072 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3073 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3074 | mkdir_p='$(MKDIR_P)' | |
3075 | ||
3076 | # We need awk for the "check" target. The system "awk" is bad on | |
3077 | # some platforms. | |
3078 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
3079 | # in the wild :-( We should find a proper way to deprecate it ... | |
3080 | AMTAR='$${TAR-tar}' | |
3081 | ||
3082 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
3083 | ||
3084 | ||
3085 | ||
3086 | ||
3087 | ||
66170b30 | 3088 | |
a243b558 JF |
3089 | ac_ext=cpp |
3090 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3091 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3092 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3093 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3094 | if test -z "$CXX"; then | |
3095 | if test -n "$CCC"; then | |
3096 | CXX=$CCC | |
3097 | else | |
3098 | if test -n "$ac_tool_prefix"; then | |
3099 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
3100 | do | |
3101 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3102 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
dbadc56a DWT |
3103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3104 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 3105 | if ${ac_cv_prog_CXX+:} false; then : |
dbadc56a DWT |
3106 | $as_echo_n "(cached) " >&6 |
3107 | else | |
a243b558 JF |
3108 | if test -n "$CXX"; then |
3109 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
dbadc56a DWT |
3110 | else |
3111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3112 | for as_dir in $PATH | |
3113 | do | |
3114 | IFS=$as_save_IFS | |
3115 | test -z "$as_dir" && as_dir=. | |
3116 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 3117 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 3118 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
dbadc56a DWT |
3119 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3120 | break 2 | |
3121 | fi | |
3122 | done | |
3123 | done | |
3124 | IFS=$as_save_IFS | |
3125 | ||
3126 | fi | |
3127 | fi | |
a243b558 JF |
3128 | CXX=$ac_cv_prog_CXX |
3129 | if test -n "$CXX"; then | |
3130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
3131 | $as_echo "$CXX" >&6; } | |
35fa52c0 DWT |
3132 | else |
3133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3134 | $as_echo "no" >&6; } | |
3135 | fi | |
3136 | ||
3137 | ||
a243b558 | 3138 | test -n "$CXX" && break |
35fa52c0 DWT |
3139 | done |
3140 | fi | |
a243b558 JF |
3141 | if test -z "$CXX"; then |
3142 | ac_ct_CXX=$CXX | |
3143 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
35fa52c0 DWT |
3144 | do |
3145 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3146 | set dummy $ac_prog; ac_word=$2 | |
3147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3148 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 3149 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
35fa52c0 DWT |
3150 | $as_echo_n "(cached) " >&6 |
3151 | else | |
a243b558 JF |
3152 | if test -n "$ac_ct_CXX"; then |
3153 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
35fa52c0 DWT |
3154 | else |
3155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3156 | for as_dir in $PATH | |
3157 | do | |
3158 | IFS=$as_save_IFS | |
3159 | test -z "$as_dir" && as_dir=. | |
3160 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 3161 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 3162 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
35fa52c0 DWT |
3163 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3164 | break 2 | |
3165 | fi | |
3166 | done | |
3167 | done | |
3168 | IFS=$as_save_IFS | |
3169 | ||
3170 | fi | |
3171 | fi | |
a243b558 JF |
3172 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
3173 | if test -n "$ac_ct_CXX"; then | |
3174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
3175 | $as_echo "$ac_ct_CXX" >&6; } | |
35fa52c0 DWT |
3176 | else |
3177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3178 | $as_echo "no" >&6; } | |
3179 | fi | |
3180 | ||
3181 | ||
a243b558 | 3182 | test -n "$ac_ct_CXX" && break |
35fa52c0 DWT |
3183 | done |
3184 | ||
a243b558 JF |
3185 | if test "x$ac_ct_CXX" = x; then |
3186 | CXX="g++" | |
35fa52c0 DWT |
3187 | else |
3188 | case $cross_compiling:$ac_tool_warned in | |
3189 | yes:) | |
3190 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3191 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3192 | ac_tool_warned=yes ;; | |
3193 | esac | |
a243b558 | 3194 | CXX=$ac_ct_CXX |
35fa52c0 DWT |
3195 | fi |
3196 | fi | |
3197 | ||
a243b558 | 3198 | fi |
35fa52c0 | 3199 | fi |
35fa52c0 | 3200 | # Provide some information about the compiler. |
a243b558 | 3201 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
35fa52c0 DWT |
3202 | set X $ac_compile |
3203 | ac_compiler=$2 | |
3204 | for ac_option in --version -v -V -qversion; do | |
3205 | { { ac_try="$ac_compiler $ac_option >&5" | |
3206 | case "(($ac_try" in | |
3207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3208 | *) ac_try_echo=$ac_try;; | |
3209 | esac | |
3210 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3211 | $as_echo "$ac_try_echo"; } >&5 | |
3212 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3213 | ac_status=$? | |
3214 | if test -s conftest.err; then | |
3215 | sed '10a\ | |
3216 | ... rest of stderr output deleted ... | |
3217 | 10q' conftest.err >conftest.er1 | |
3218 | cat conftest.er1 >&5 | |
35fa52c0 | 3219 | fi |
9c60689e | 3220 | rm -f conftest.er1 conftest.err |
35fa52c0 DWT |
3221 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3222 | test $ac_status = 0; } | |
3223 | done | |
3224 | ||
3225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3226 | /* end confdefs.h. */ | |
9c60689e | 3227 | |
35fa52c0 DWT |
3228 | int |
3229 | main () | |
3230 | { | |
35fa52c0 DWT |
3231 | |
3232 | ; | |
3233 | return 0; | |
3234 | } | |
3235 | _ACEOF | |
3236 | ac_clean_files_save=$ac_clean_files | |
9c60689e | 3237 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
35fa52c0 DWT |
3238 | # Try to create an executable without -o first, disregard a.out. |
3239 | # It will help us diagnose broken compilers, and finding out an intuition | |
3240 | # of exeext. | |
a243b558 JF |
3241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 |
3242 | $as_echo_n "checking whether the C++ compiler works... " >&6; } | |
35fa52c0 DWT |
3243 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3244 | ||
3245 | # The possible output files: | |
3246 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3247 | ||
3248 | ac_rmfiles= | |
3249 | for ac_file in $ac_files | |
3250 | do | |
3251 | case $ac_file in | |
3252 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3253 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3254 | esac | |
3255 | done | |
3256 | rm -f $ac_rmfiles | |
3257 | ||
3258 | if { { ac_try="$ac_link_default" | |
3259 | case "(($ac_try" in | |
3260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3261 | *) ac_try_echo=$ac_try;; | |
3262 | esac | |
3263 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3264 | $as_echo "$ac_try_echo"; } >&5 | |
3265 | (eval "$ac_link_default") 2>&5 | |
3266 | ac_status=$? | |
3267 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3268 | test $ac_status = 0; }; then : | |
3269 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3270 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3271 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3272 | # so that the user can short-circuit this test for compilers unknown to | |
3273 | # Autoconf. | |
3274 | for ac_file in $ac_files '' | |
3275 | do | |
3276 | test -f "$ac_file" || continue | |
3277 | case $ac_file in | |
3278 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3279 | ;; | |
3280 | [ab].out ) | |
3281 | # We found the default executable, but exeext='' is most | |
3282 | # certainly right. | |
3283 | break;; | |
3284 | *.* ) | |
3285 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3286 | then :; else | |
3287 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3288 | fi | |
3289 | # We set ac_cv_exeext here because the later test for it is not | |
3290 | # safe: cross compilers may not add the suffix if given an `-o' | |
3291 | # argument, so we may need to know it at that point already. | |
3292 | # Even if this section looks crufty: it has the advantage of | |
3293 | # actually working. | |
3294 | break;; | |
3295 | * ) | |
3296 | break;; | |
3297 | esac | |
3298 | done | |
3299 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3300 | ||
3301 | else | |
3302 | ac_file='' | |
3303 | fi | |
35fa52c0 | 3304 | if test -z "$ac_file"; then : |
9c60689e DWT |
3305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3306 | $as_echo "no" >&6; } | |
3307 | $as_echo "$as_me: failed program was:" >&5 | |
35fa52c0 DWT |
3308 | sed 's/^/| /' conftest.$ac_ext >&5 |
3309 | ||
3310 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3311 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
a243b558 | 3312 | as_fn_error 77 "C++ compiler cannot create executables |
ee134472 | 3313 | See \`config.log' for more details" "$LINENO" 5; } |
9c60689e DWT |
3314 | else |
3315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3316 | $as_echo "yes" >&6; } | |
35fa52c0 | 3317 | fi |
a243b558 JF |
3318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 |
3319 | $as_echo_n "checking for C++ compiler default output file name... " >&6; } | |
9c60689e DWT |
3320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
3321 | $as_echo "$ac_file" >&6; } | |
35fa52c0 DWT |
3322 | ac_exeext=$ac_cv_exeext |
3323 | ||
9c60689e | 3324 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
35fa52c0 | 3325 | ac_clean_files=$ac_clean_files_save |
35fa52c0 DWT |
3326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3327 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3328 | if { { ac_try="$ac_link" | |
3329 | case "(($ac_try" in | |
3330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3331 | *) ac_try_echo=$ac_try;; | |
3332 | esac | |
3333 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3334 | $as_echo "$ac_try_echo"; } >&5 | |
3335 | (eval "$ac_link") 2>&5 | |
3336 | ac_status=$? | |
3337 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3338 | test $ac_status = 0; }; then : | |
3339 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3340 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3341 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3342 | # `rm'. | |
3343 | for ac_file in conftest.exe conftest conftest.*; do | |
3344 | test -f "$ac_file" || continue | |
3345 | case $ac_file in | |
3346 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3347 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3348 | break;; | |
3349 | * ) break;; | |
3350 | esac | |
3351 | done | |
3352 | else | |
3353 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3354 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12833ad8 | 3355 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
ee134472 | 3356 | See \`config.log' for more details" "$LINENO" 5; } |
35fa52c0 | 3357 | fi |
9c60689e | 3358 | rm -f conftest conftest$ac_cv_exeext |
35fa52c0 DWT |
3359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3360 | $as_echo "$ac_cv_exeext" >&6; } | |
3361 | ||
3362 | rm -f conftest.$ac_ext | |
3363 | EXEEXT=$ac_cv_exeext | |
3364 | ac_exeext=$EXEEXT | |
9c60689e DWT |
3365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3366 | /* end confdefs.h. */ | |
3367 | #include <stdio.h> | |
3368 | int | |
3369 | main () | |
3370 | { | |
3371 | FILE *f = fopen ("conftest.out", "w"); | |
3372 | return ferror (f) || fclose (f) != 0; | |
3373 | ||
3374 | ; | |
3375 | return 0; | |
3376 | } | |
3377 | _ACEOF | |
3378 | ac_clean_files="$ac_clean_files conftest.out" | |
3379 | # Check that the compiler produces executables we can run. If not, either | |
3380 | # the compiler is broken, or we cross compile. | |
3381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3382 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3383 | if test "$cross_compiling" != yes; then | |
3384 | { { ac_try="$ac_link" | |
3385 | case "(($ac_try" in | |
3386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3387 | *) ac_try_echo=$ac_try;; | |
3388 | esac | |
3389 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3390 | $as_echo "$ac_try_echo"; } >&5 | |
3391 | (eval "$ac_link") 2>&5 | |
3392 | ac_status=$? | |
3393 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3394 | test $ac_status = 0; } | |
3395 | if { ac_try='./conftest$ac_cv_exeext' | |
3396 | { { case "(($ac_try" in | |
3397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3398 | *) ac_try_echo=$ac_try;; | |
3399 | esac | |
3400 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3401 | $as_echo "$ac_try_echo"; } >&5 | |
3402 | (eval "$ac_try") 2>&5 | |
3403 | ac_status=$? | |
3404 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3405 | test $ac_status = 0; }; }; then | |
3406 | cross_compiling=no | |
3407 | else | |
3408 | if test "$cross_compiling" = maybe; then | |
3409 | cross_compiling=yes | |
3410 | else | |
3411 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3412 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
a243b558 | 3413 | as_fn_error $? "cannot run C++ compiled programs. |
9c60689e | 3414 | If you meant to cross compile, use \`--host'. |
ee134472 | 3415 | See \`config.log' for more details" "$LINENO" 5; } |
9c60689e DWT |
3416 | fi |
3417 | fi | |
3418 | fi | |
3419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3420 | $as_echo "$cross_compiling" >&6; } | |
3421 | ||
3422 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3423 | ac_clean_files=$ac_clean_files_save | |
35fa52c0 DWT |
3424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3425 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ee134472 | 3426 | if ${ac_cv_objext+:} false; then : |
35fa52c0 DWT |
3427 | $as_echo_n "(cached) " >&6 |
3428 | else | |
3429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3430 | /* end confdefs.h. */ | |
3431 | ||
3432 | int | |
3433 | main () | |
3434 | { | |
3435 | ||
3436 | ; | |
3437 | return 0; | |
3438 | } | |
3439 | _ACEOF | |
3440 | rm -f conftest.o conftest.obj | |
3441 | if { { ac_try="$ac_compile" | |
3442 | case "(($ac_try" in | |
3443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3444 | *) ac_try_echo=$ac_try;; | |
3445 | esac | |
3446 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3447 | $as_echo "$ac_try_echo"; } >&5 | |
3448 | (eval "$ac_compile") 2>&5 | |
3449 | ac_status=$? | |
3450 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3451 | test $ac_status = 0; }; then : | |
3452 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3453 | test -f "$ac_file" || continue; | |
3454 | case $ac_file in | |
3455 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3456 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3457 | break;; | |
3458 | esac | |
3459 | done | |
3460 | else | |
3461 | $as_echo "$as_me: failed program was:" >&5 | |
3462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3463 | ||
3464 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3465 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12833ad8 | 3466 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
ee134472 | 3467 | See \`config.log' for more details" "$LINENO" 5; } |
35fa52c0 DWT |
3468 | fi |
3469 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3470 | fi | |
3471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3472 | $as_echo "$ac_cv_objext" >&6; } | |
3473 | OBJEXT=$ac_cv_objext | |
3474 | ac_objext=$OBJEXT | |
a243b558 JF |
3475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
3476 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
3477 | if ${ac_cv_cxx_compiler_gnu+:} false; then : | |
35fa52c0 DWT |
3478 | $as_echo_n "(cached) " >&6 |
3479 | else | |
3480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3481 | /* end confdefs.h. */ | |
3482 | ||
3483 | int | |
3484 | main () | |
3485 | { | |
3486 | #ifndef __GNUC__ | |
3487 | choke me | |
3488 | #endif | |
3489 | ||
3490 | ; | |
3491 | return 0; | |
3492 | } | |
3493 | _ACEOF | |
a243b558 | 3494 | if ac_fn_cxx_try_compile "$LINENO"; then : |
35fa52c0 DWT |
3495 | ac_compiler_gnu=yes |
3496 | else | |
3497 | ac_compiler_gnu=no | |
3498 | fi | |
3499 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a243b558 | 3500 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
35fa52c0 DWT |
3501 | |
3502 | fi | |
a243b558 JF |
3503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
3504 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
35fa52c0 | 3505 | if test $ac_compiler_gnu = yes; then |
a243b558 | 3506 | GXX=yes |
35fa52c0 | 3507 | else |
a243b558 | 3508 | GXX= |
35fa52c0 | 3509 | fi |
a243b558 JF |
3510 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
3511 | ac_save_CXXFLAGS=$CXXFLAGS | |
3512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
3513 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
3514 | if ${ac_cv_prog_cxx_g+:} false; then : | |
35fa52c0 DWT |
3515 | $as_echo_n "(cached) " >&6 |
3516 | else | |
a243b558 JF |
3517 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
3518 | ac_cxx_werror_flag=yes | |
3519 | ac_cv_prog_cxx_g=no | |
3520 | CXXFLAGS="-g" | |
35fa52c0 DWT |
3521 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3522 | /* end confdefs.h. */ | |
3523 | ||
3524 | int | |
3525 | main () | |
3526 | { | |
3527 | ||
3528 | ; | |
3529 | return 0; | |
3530 | } | |
3531 | _ACEOF | |
a243b558 JF |
3532 | if ac_fn_cxx_try_compile "$LINENO"; then : |
3533 | ac_cv_prog_cxx_g=yes | |
35fa52c0 | 3534 | else |
a243b558 | 3535 | CXXFLAGS="" |
35fa52c0 DWT |
3536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3537 | /* end confdefs.h. */ | |
3538 | ||
3539 | int | |
3540 | main () | |
3541 | { | |
3542 | ||
3543 | ; | |
3544 | return 0; | |
3545 | } | |
3546 | _ACEOF | |
a243b558 | 3547 | if ac_fn_cxx_try_compile "$LINENO"; then : |
35fa52c0 DWT |
3548 | |
3549 | else | |
a243b558 JF |
3550 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
3551 | CXXFLAGS="-g" | |
35fa52c0 DWT |
3552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3553 | /* end confdefs.h. */ | |
3554 | ||
3555 | int | |
3556 | main () | |
3557 | { | |
3558 | ||
3559 | ; | |
3560 | return 0; | |
3561 | } | |
3562 | _ACEOF | |
a243b558 JF |
3563 | if ac_fn_cxx_try_compile "$LINENO"; then : |
3564 | ac_cv_prog_cxx_g=yes | |
35fa52c0 DWT |
3565 | fi |
3566 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3567 | fi | |
3568 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3569 | fi | |
3570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a243b558 | 3571 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
35fa52c0 | 3572 | fi |
a243b558 JF |
3573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
3574 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
3575 | if test "$ac_test_CXXFLAGS" = set; then | |
3576 | CXXFLAGS=$ac_save_CXXFLAGS | |
3577 | elif test $ac_cv_prog_cxx_g = yes; then | |
3578 | if test "$GXX" = yes; then | |
3579 | CXXFLAGS="-g -O2" | |
35fa52c0 | 3580 | else |
a243b558 | 3581 | CXXFLAGS="-g" |
35fa52c0 DWT |
3582 | fi |
3583 | else | |
a243b558 JF |
3584 | if test "$GXX" = yes; then |
3585 | CXXFLAGS="-O2" | |
35fa52c0 | 3586 | else |
a243b558 | 3587 | CXXFLAGS= |
35fa52c0 DWT |
3588 | fi |
3589 | fi | |
a243b558 JF |
3590 | ac_ext=c |
3591 | ac_cpp='$CPP $CPPFLAGS' | |
3592 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3593 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3594 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3595 | DEPDIR="${am__leading_dot}deps" | |
35fa52c0 | 3596 | |
a243b558 | 3597 | ac_config_commands="$ac_config_commands depfiles" |
35fa52c0 | 3598 | |
35fa52c0 | 3599 | |
a243b558 JF |
3600 | am_make=${MAKE-make} |
3601 | cat > confinc << 'END' | |
3602 | am__doit: | |
3603 | @echo this is the am__doit target | |
3604 | .PHONY: am__doit | |
3605 | END | |
3606 | # If we don't find an include directive, just comment out the code. | |
3607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3608 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3609 | am__include="#" | |
3610 | am__quote= | |
3611 | _am_result=none | |
3612 | # First try GNU make style include. | |
3613 | echo "include confinc" > confmf | |
3614 | # Ignore all kinds of additional output from 'make'. | |
3615 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3616 | *the\ am__doit\ target*) | |
3617 | am__include=include | |
3618 | am__quote= | |
3619 | _am_result=GNU | |
3620 | ;; | |
3621 | esac | |
3622 | # Now try BSD make style include. | |
3623 | if test "$am__include" = "#"; then | |
3624 | echo '.include "confinc"' > confmf | |
3625 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3626 | *the\ am__doit\ target*) | |
3627 | am__include=.include | |
3628 | am__quote="\"" | |
3629 | _am_result=BSD | |
3630 | ;; | |
3631 | esac | |
35fa52c0 | 3632 | fi |
35fa52c0 | 3633 | |
a243b558 JF |
3634 | |
3635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
3636 | $as_echo "$_am_result" >&6; } | |
3637 | rm -f confinc confmf | |
3638 | ||
3639 | # Check whether --enable-dependency-tracking was given. | |
3640 | if test "${enable_dependency_tracking+set}" = set; then : | |
3641 | enableval=$enable_dependency_tracking; | |
35fa52c0 | 3642 | fi |
35fa52c0 | 3643 | |
a243b558 JF |
3644 | if test "x$enable_dependency_tracking" != xno; then |
3645 | am_depcomp="$ac_aux_dir/depcomp" | |
3646 | AMDEPBACKSLASH='\' | |
3647 | am__nodep='_no' | |
3648 | fi | |
3649 | if test "x$enable_dependency_tracking" != xno; then | |
3650 | AMDEP_TRUE= | |
3651 | AMDEP_FALSE='#' | |
3652 | else | |
3653 | AMDEP_TRUE='#' | |
3654 | AMDEP_FALSE= | |
35fa52c0 DWT |
3655 | fi |
3656 | ||
35fa52c0 | 3657 | |
a243b558 JF |
3658 | |
3659 | depcc="$CXX" am_compiler_list= | |
66170b30 JF |
3660 | |
3661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
3662 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
a243b558 | 3663 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
66170b30 JF |
3664 | $as_echo_n "(cached) " >&6 |
3665 | else | |
3666 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3667 | # We make a subdir and do the tests there. Otherwise we can end up | |
3668 | # making bogus files that we don't know about and never remove. For | |
3669 | # instance it was reported that on HP-UX the gcc test will end up | |
3670 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
3671 | # in D". | |
3672 | rm -rf conftest.dir | |
3673 | mkdir conftest.dir | |
3674 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3675 | # using a relative directory. | |
3676 | cp "$am_depcomp" conftest.dir | |
3677 | cd conftest.dir | |
3678 | # We will build objects and dependencies in a subdirectory because | |
3679 | # it helps to detect inapplicable dependency modes. For instance | |
3680 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3681 | # side effect of compilation, but ICC will put the dependencies in | |
3682 | # the current directory while Tru64 will put them in the object | |
3683 | # directory. | |
3684 | mkdir sub | |
3685 | ||
a243b558 | 3686 | am_cv_CXX_dependencies_compiler_type=none |
66170b30 JF |
3687 | if test "$am_compiler_list" = ""; then |
3688 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3689 | fi | |
3690 | am__universal=false | |
3691 | case " $depcc " in #( | |
3692 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3693 | esac | |
3694 | ||
3695 | for depmode in $am_compiler_list; do | |
3696 | # Setup a source with many dependencies, because some compilers | |
3697 | # like to wrap large dependency lists on column 80 (with \), and | |
3698 | # we should not choose a depcomp mode which is confused by this. | |
3699 | # | |
3700 | # We need to recreate these files for each test, as the compiler may | |
3701 | # overwrite some of them when testing with obscure command lines. | |
3702 | # This happens at least with the AIX C compiler. | |
3703 | : > sub/conftest.c | |
3704 | for i in 1 2 3 4 5 6; do | |
3705 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3706 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
3707 | # Solaris 10 /bin/sh. | |
3708 | echo '/* dummy */' > sub/conftst$i.h | |
3709 | done | |
3710 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3711 | ||
3712 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
3713 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3714 | # handle '-M -o', and we need to detect this. Also, some Intel | |
3715 | # versions had trouble with output in subdirs. | |
3716 | am__obj=sub/conftest.${OBJEXT-o} | |
3717 | am__minus_obj="-o $am__obj" | |
3718 | case $depmode in | |
3719 | gcc) | |
3720 | # This depmode causes a compiler race in universal mode. | |
3721 | test "$am__universal" = false || continue | |
3722 | ;; | |
3723 | nosideeffect) | |
3724 | # After this tag, mechanisms are not by side-effect, so they'll | |
3725 | # only be used when explicitly requested. | |
3726 | if test "x$enable_dependency_tracking" = xyes; then | |
3727 | continue | |
3728 | else | |
3729 | break | |
3730 | fi | |
3731 | ;; | |
3732 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
3733 | # This compiler won't grok '-c -o', but also, the minuso test has | |
3734 | # not run yet. These depmodes are late enough in the game, and | |
3735 | # so weak that their functioning should not be impacted. | |
3736 | am__obj=conftest.${OBJEXT-o} | |
3737 | am__minus_obj= | |
3738 | ;; | |
3739 | none) break ;; | |
3740 | esac | |
3741 | if depmode=$depmode \ | |
3742 | source=sub/conftest.c object=$am__obj \ | |
3743 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3744 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
3745 | >/dev/null 2>conftest.err && | |
3746 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
3747 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3748 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
3749 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3750 | # icc doesn't choke on unknown options, it will just issue warnings | |
3751 | # or remarks (even with -Werror). So we grep stderr for any message | |
3752 | # that says an option was ignored or not supported. | |
3753 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3754 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3755 | # The diagnosis changed in icc 8.0: | |
3756 | # icc: Command line remark: option '-MP' not supported | |
3757 | if (grep 'ignoring option' conftest.err || | |
3758 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
a243b558 | 3759 | am_cv_CXX_dependencies_compiler_type=$depmode |
66170b30 JF |
3760 | break |
3761 | fi | |
3762 | fi | |
3763 | done | |
3764 | ||
3765 | cd .. | |
3766 | rm -rf conftest.dir | |
3767 | else | |
a243b558 | 3768 | am_cv_CXX_dependencies_compiler_type=none |
66170b30 JF |
3769 | fi |
3770 | ||
3771 | fi | |
a243b558 JF |
3772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
3773 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
3774 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
66170b30 JF |
3775 | |
3776 | if | |
3777 | test "x$enable_dependency_tracking" != xno \ | |
a243b558 JF |
3778 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
3779 | am__fastdepCXX_TRUE= | |
3780 | am__fastdepCXX_FALSE='#' | |
66170b30 | 3781 | else |
a243b558 JF |
3782 | am__fastdepCXX_TRUE='#' |
3783 | am__fastdepCXX_FALSE= | |
66170b30 JF |
3784 | fi |
3785 | ||
3786 | ||
a243b558 JF |
3787 | ac_ext=mm |
3788 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
3789 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3790 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3791 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
3792 | if test -n "$ac_tool_prefix"; then | |
3793 | for ac_prog in g++ objc++ objcxx c++ CXX | |
3794 | do | |
3795 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3796 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3798 | $as_echo_n "checking for $ac_word... " >&6; } | |
3799 | if ${ac_cv_prog_OBJCXX+:} false; then : | |
35fa52c0 DWT |
3800 | $as_echo_n "(cached) " >&6 |
3801 | else | |
a243b558 JF |
3802 | if test -n "$OBJCXX"; then |
3803 | ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test. | |
3804 | else | |
3805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3806 | for as_dir in $PATH | |
3807 | do | |
35fa52c0 DWT |
3808 | IFS=$as_save_IFS |
3809 | test -z "$as_dir" && as_dir=. | |
3810 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a243b558 JF |
3811 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3812 | ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog" | |
3813 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3814 | break 2 | |
3815 | fi | |
3816 | done | |
9c60689e DWT |
3817 | done |
3818 | IFS=$as_save_IFS | |
35fa52c0 | 3819 | |
9c60689e | 3820 | fi |
a243b558 JF |
3821 | fi |
3822 | OBJCXX=$ac_cv_prog_OBJCXX | |
3823 | if test -n "$OBJCXX"; then | |
3824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5 | |
3825 | $as_echo "$OBJCXX" >&6; } | |
3826 | else | |
3827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3828 | $as_echo "no" >&6; } | |
3829 | fi | |
35fa52c0 | 3830 | |
35fa52c0 | 3831 | |
a243b558 JF |
3832 | test -n "$OBJCXX" && break |
3833 | done | |
3834 | fi | |
3835 | if test -z "$OBJCXX"; then | |
3836 | ac_ct_OBJCXX=$OBJCXX | |
3837 | for ac_prog in g++ objc++ objcxx c++ CXX | |
3838 | do | |
3839 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3840 | set dummy $ac_prog; ac_word=$2 | |
3841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3842 | $as_echo_n "checking for $ac_word... " >&6; } | |
3843 | if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then : | |
9c60689e DWT |
3844 | $as_echo_n "(cached) " >&6 |
3845 | else | |
a243b558 JF |
3846 | if test -n "$ac_ct_OBJCXX"; then |
3847 | ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test. | |
3848 | else | |
3849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3850 | for as_dir in $PATH | |
9c60689e DWT |
3851 | do |
3852 | IFS=$as_save_IFS | |
3853 | test -z "$as_dir" && as_dir=. | |
9c60689e | 3854 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
3855 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3856 | ac_cv_prog_ac_ct_OBJCXX="$ac_prog" | |
3857 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3858 | break 2 | |
3859 | fi | |
3860 | done | |
9c60689e DWT |
3861 | done |
3862 | IFS=$as_save_IFS | |
a243b558 JF |
3863 | |
3864 | fi | |
3865 | fi | |
3866 | ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX | |
3867 | if test -n "$ac_ct_OBJCXX"; then | |
3868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5 | |
3869 | $as_echo "$ac_ct_OBJCXX" >&6; } | |
9c60689e | 3870 | else |
a243b558 JF |
3871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3872 | $as_echo "no" >&6; } | |
9c60689e | 3873 | fi |
6b66678a DWT |
3874 | |
3875 | ||
a243b558 JF |
3876 | test -n "$ac_ct_OBJCXX" && break |
3877 | done | |
6b66678a | 3878 | |
a243b558 JF |
3879 | if test "x$ac_ct_OBJCXX" = x; then |
3880 | OBJCXX="g++" | |
3881 | else | |
3882 | case $cross_compiling:$ac_tool_warned in | |
3883 | yes:) | |
3884 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3885 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3886 | ac_tool_warned=yes ;; | |
9c60689e | 3887 | esac |
a243b558 | 3888 | OBJCXX=$ac_ct_OBJCXX |
9c60689e | 3889 | fi |
9c60689e | 3890 | fi |
6b66678a | 3891 | |
a243b558 JF |
3892 | # Provide some information about the compiler. |
3893 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5 | |
3894 | set X $ac_compile | |
3895 | ac_compiler=$2 | |
3896 | for ac_option in --version -v -V -qversion; do | |
3897 | { { ac_try="$ac_compiler $ac_option >&5" | |
3898 | case "(($ac_try" in | |
3899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3900 | *) ac_try_echo=$ac_try;; | |
3901 | esac | |
3902 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3903 | $as_echo "$ac_try_echo"; } >&5 | |
3904 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3905 | ac_status=$? | |
3906 | if test -s conftest.err; then | |
3907 | sed '10a\ | |
3908 | ... rest of stderr output deleted ... | |
3909 | 10q' conftest.err >conftest.er1 | |
3910 | cat conftest.er1 >&5 | |
3911 | fi | |
3912 | rm -f conftest.er1 conftest.err | |
3913 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3914 | test $ac_status = 0; } | |
3915 | done | |
6b66678a | 3916 | |
a243b558 JF |
3917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5 |
3918 | $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; } | |
3919 | if ${ac_cv_objcxx_compiler_gnu+:} false; then : | |
9c60689e | 3920 | $as_echo_n "(cached) " >&6 |
6b66678a | 3921 | else |
a243b558 JF |
3922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3923 | /* end confdefs.h. */ | |
6b66678a | 3924 | |
a243b558 JF |
3925 | int |
3926 | main () | |
3927 | { | |
3928 | #ifndef __GNUC__ | |
3929 | choke me | |
3930 | #endif | |
3931 | ||
3932 | ; | |
3933 | return 0; | |
3934 | } | |
3935 | _ACEOF | |
3936 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
3937 | ac_compiler_gnu=yes | |
9c60689e | 3938 | else |
a243b558 | 3939 | ac_compiler_gnu=no |
6b66678a | 3940 | fi |
a243b558 JF |
3941 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3942 | ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu | |
6b66678a DWT |
3943 | |
3944 | fi | |
a243b558 JF |
3945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5 |
3946 | $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; } | |
3947 | if test $ac_compiler_gnu = yes; then | |
3948 | GOBJCXX=yes | |
3949 | else | |
3950 | GOBJCXX= | |
3951 | fi | |
3952 | ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set} | |
3953 | ac_save_OBJCXXFLAGS=$OBJCXXFLAGS | |
3954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5 | |
3955 | $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; } | |
3956 | if ${ac_cv_prog_objcxx_g+:} false; then : | |
3957 | $as_echo_n "(cached) " >&6 | |
3958 | else | |
3959 | ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag | |
3960 | ac_objcxx_werror_flag=yes | |
3961 | ac_cv_prog_objcxx_g=no | |
3962 | OBJCXXFLAGS="-g" | |
3963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3964 | /* end confdefs.h. */ | |
309b0535 | 3965 | |
a243b558 JF |
3966 | int |
3967 | main () | |
3968 | { | |
309b0535 | 3969 | |
a243b558 JF |
3970 | ; |
3971 | return 0; | |
3972 | } | |
3973 | _ACEOF | |
3974 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
3975 | ac_cv_prog_objcxx_g=yes | |
3976 | else | |
3977 | OBJCXXFLAGS="" | |
3978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3979 | /* end confdefs.h. */ | |
309b0535 | 3980 | |
a243b558 JF |
3981 | int |
3982 | main () | |
3983 | { | |
309b0535 | 3984 | |
a243b558 JF |
3985 | ; |
3986 | return 0; | |
3987 | } | |
3988 | _ACEOF | |
3989 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
309b0535 | 3990 | |
a243b558 JF |
3991 | else |
3992 | ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag | |
3993 | OBJCXXFLAGS="-g" | |
3994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3995 | /* end confdefs.h. */ | |
309b0535 | 3996 | |
a243b558 JF |
3997 | int |
3998 | main () | |
3999 | { | |
309b0535 | 4000 | |
a243b558 JF |
4001 | ; |
4002 | return 0; | |
4003 | } | |
4004 | _ACEOF | |
4005 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
4006 | ac_cv_prog_objcxx_g=yes | |
9c60689e | 4007 | fi |
a243b558 | 4008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9c60689e | 4009 | fi |
a243b558 | 4010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9c60689e | 4011 | fi |
a243b558 JF |
4012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4013 | ac_objcxx_werror_flag=$ac_save_objcx_werror_flag | |
9c60689e | 4014 | fi |
a243b558 JF |
4015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5 |
4016 | $as_echo "$ac_cv_prog_objcxx_g" >&6; } | |
4017 | if test "$ac_test_OBJCXXFLAGS" = set; then | |
4018 | OBJCXXFLAGS=$ac_save_OBJCXXFLAGS | |
4019 | elif test $ac_cv_prog_objcxx_g = yes; then | |
4020 | if test "$GOBJCXX" = yes; then | |
4021 | OBJCXXFLAGS="-g -O2" | |
4022 | else | |
4023 | OBJCXXFLAGS="-g" | |
4024 | fi | |
9c60689e | 4025 | else |
a243b558 JF |
4026 | if test "$GOBJCXX" = yes; then |
4027 | OBJCXXFLAGS="-O2" | |
4028 | else | |
4029 | OBJCXXFLAGS= | |
4030 | fi | |
9c60689e | 4031 | fi |
a243b558 JF |
4032 | ac_ext=c |
4033 | ac_cpp='$CPP $CPPFLAGS' | |
4034 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4035 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4036 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
309b0535 | 4037 | |
a243b558 | 4038 | depcc="$OBJCXX" am_compiler_list='gcc3 gcc' |
309b0535 | 4039 | |
a243b558 JF |
4040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4041 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4042 | if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then : | |
4043 | $as_echo_n "(cached) " >&6 | |
4044 | else | |
4045 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4046 | # We make a subdir and do the tests there. Otherwise we can end up | |
4047 | # making bogus files that we don't know about and never remove. For | |
4048 | # instance it was reported that on HP-UX the gcc test will end up | |
4049 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4050 | # in D". | |
4051 | rm -rf conftest.dir | |
4052 | mkdir conftest.dir | |
4053 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4054 | # using a relative directory. | |
4055 | cp "$am_depcomp" conftest.dir | |
4056 | cd conftest.dir | |
4057 | # We will build objects and dependencies in a subdirectory because | |
4058 | # it helps to detect inapplicable dependency modes. For instance | |
4059 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4060 | # side effect of compilation, but ICC will put the dependencies in | |
4061 | # the current directory while Tru64 will put them in the object | |
4062 | # directory. | |
4063 | mkdir sub | |
309b0535 | 4064 | |
a243b558 JF |
4065 | am_cv_OBJCXX_dependencies_compiler_type=none |
4066 | if test "$am_compiler_list" = ""; then | |
4067 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4068 | fi | |
4069 | am__universal=false | |
309b0535 | 4070 | |
9c60689e | 4071 | |
a243b558 JF |
4072 | for depmode in $am_compiler_list; do |
4073 | # Setup a source with many dependencies, because some compilers | |
4074 | # like to wrap large dependency lists on column 80 (with \), and | |
4075 | # we should not choose a depcomp mode which is confused by this. | |
4076 | # | |
4077 | # We need to recreate these files for each test, as the compiler may | |
4078 | # overwrite some of them when testing with obscure command lines. | |
4079 | # This happens at least with the AIX C compiler. | |
4080 | : > sub/conftest.c | |
4081 | for i in 1 2 3 4 5 6; do | |
4082 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4083 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4084 | # Solaris 10 /bin/sh. | |
4085 | echo '/* dummy */' > sub/conftst$i.h | |
4086 | done | |
4087 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
9c60689e | 4088 | |
a243b558 JF |
4089 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
4090 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4091 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4092 | # versions had trouble with output in subdirs. | |
4093 | am__obj=sub/conftest.${OBJEXT-o} | |
4094 | am__minus_obj="-o $am__obj" | |
4095 | case $depmode in | |
4096 | gcc) | |
4097 | # This depmode causes a compiler race in universal mode. | |
4098 | test "$am__universal" = false || continue | |
4099 | ;; | |
4100 | nosideeffect) | |
4101 | # After this tag, mechanisms are not by side-effect, so they'll | |
4102 | # only be used when explicitly requested. | |
4103 | if test "x$enable_dependency_tracking" = xyes; then | |
4104 | continue | |
4105 | else | |
4106 | break | |
309b0535 | 4107 | fi |
a243b558 JF |
4108 | ;; |
4109 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4110 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4111 | # not run yet. These depmodes are late enough in the game, and | |
4112 | # so weak that their functioning should not be impacted. | |
4113 | am__obj=conftest.${OBJEXT-o} | |
4114 | am__minus_obj= | |
4115 | ;; | |
4116 | none) break ;; | |
4117 | esac | |
4118 | if depmode=$depmode \ | |
4119 | source=sub/conftest.c object=$am__obj \ | |
4120 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4121 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4122 | >/dev/null 2>conftest.err && | |
4123 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4124 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4125 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4126 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4127 | # icc doesn't choke on unknown options, it will just issue warnings | |
4128 | # or remarks (even with -Werror). So we grep stderr for any message | |
4129 | # that says an option was ignored or not supported. | |
4130 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4131 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4132 | # The diagnosis changed in icc 8.0: | |
4133 | # icc: Command line remark: option '-MP' not supported | |
4134 | if (grep 'ignoring option' conftest.err || | |
4135 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4136 | am_cv_OBJCXX_dependencies_compiler_type=$depmode | |
4137 | break | |
4138 | fi | |
4139 | fi | |
309b0535 | 4140 | done |
a243b558 JF |
4141 | |
4142 | cd .. | |
4143 | rm -rf conftest.dir | |
4144 | else | |
4145 | am_cv_OBJCXX_dependencies_compiler_type=none | |
9c60689e | 4146 | fi |
a243b558 | 4147 | |
9c60689e | 4148 | fi |
a243b558 JF |
4149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5 |
4150 | $as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; } | |
4151 | OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type | |
4152 | ||
4153 | if | |
4154 | test "x$enable_dependency_tracking" != xno \ | |
4155 | && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then | |
4156 | am__fastdepOBJCXX_TRUE= | |
4157 | am__fastdepOBJCXX_FALSE='#' | |
9c60689e | 4158 | else |
a243b558 JF |
4159 | am__fastdepOBJCXX_TRUE='#' |
4160 | am__fastdepOBJCXX_FALSE= | |
4161 | fi | |
4162 | ||
4163 | ||
4164 | ac_ext=c | |
4165 | ac_cpp='$CPP $CPPFLAGS' | |
4166 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4167 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4168 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4169 | if test -n "$ac_tool_prefix"; then | |
4170 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4171 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
35fa52c0 DWT |
4172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4173 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 4174 | if ${ac_cv_prog_CC+:} false; then : |
35fa52c0 DWT |
4175 | $as_echo_n "(cached) " >&6 |
4176 | else | |
a243b558 JF |
4177 | if test -n "$CC"; then |
4178 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
35fa52c0 DWT |
4179 | else |
4180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4181 | for as_dir in $PATH | |
4182 | do | |
4183 | IFS=$as_save_IFS | |
4184 | test -z "$as_dir" && as_dir=. | |
4185 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 4186 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 4187 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
35fa52c0 DWT |
4188 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4189 | break 2 | |
4190 | fi | |
4191 | done | |
4192 | done | |
4193 | IFS=$as_save_IFS | |
4194 | ||
4195 | fi | |
4196 | fi | |
a243b558 JF |
4197 | CC=$ac_cv_prog_CC |
4198 | if test -n "$CC"; then | |
4199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4200 | $as_echo "$CC" >&6; } | |
35fa52c0 DWT |
4201 | else |
4202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4203 | $as_echo "no" >&6; } | |
4204 | fi | |
4205 | ||
4206 | ||
35fa52c0 | 4207 | fi |
a243b558 JF |
4208 | if test -z "$ac_cv_prog_CC"; then |
4209 | ac_ct_CC=$CC | |
4210 | # Extract the first word of "gcc", so it can be a program name with args. | |
4211 | set dummy gcc; ac_word=$2 | |
35fa52c0 DWT |
4212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4213 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 4214 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
35fa52c0 DWT |
4215 | $as_echo_n "(cached) " >&6 |
4216 | else | |
a243b558 JF |
4217 | if test -n "$ac_ct_CC"; then |
4218 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
35fa52c0 DWT |
4219 | else |
4220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4221 | for as_dir in $PATH | |
4222 | do | |
4223 | IFS=$as_save_IFS | |
4224 | test -z "$as_dir" && as_dir=. | |
4225 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 4226 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 4227 | ac_cv_prog_ac_ct_CC="gcc" |
35fa52c0 DWT |
4228 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4229 | break 2 | |
4230 | fi | |
4231 | done | |
4232 | done | |
4233 | IFS=$as_save_IFS | |
4234 | ||
4235 | fi | |
4236 | fi | |
a243b558 JF |
4237 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4238 | if test -n "$ac_ct_CC"; then | |
4239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4240 | $as_echo "$ac_ct_CC" >&6; } | |
35fa52c0 DWT |
4241 | else |
4242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4243 | $as_echo "no" >&6; } | |
4244 | fi | |
4245 | ||
a243b558 JF |
4246 | if test "x$ac_ct_CC" = x; then |
4247 | CC="" | |
35fa52c0 DWT |
4248 | else |
4249 | case $cross_compiling:$ac_tool_warned in | |
4250 | yes:) | |
4251 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4252 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4253 | ac_tool_warned=yes ;; | |
4254 | esac | |
a243b558 | 4255 | CC=$ac_ct_CC |
35fa52c0 | 4256 | fi |
a243b558 JF |
4257 | else |
4258 | CC="$ac_cv_prog_CC" | |
35fa52c0 DWT |
4259 | fi |
4260 | ||
a243b558 JF |
4261 | if test -z "$CC"; then |
4262 | if test -n "$ac_tool_prefix"; then | |
4263 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4264 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4266 | $as_echo_n "checking for $ac_word... " >&6; } | |
4267 | if ${ac_cv_prog_CC+:} false; then : | |
4268 | $as_echo_n "(cached) " >&6 | |
4269 | else | |
4270 | if test -n "$CC"; then | |
4271 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4272 | else | |
4273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4274 | for as_dir in $PATH | |
4275 | do | |
4276 | IFS=$as_save_IFS | |
4277 | test -z "$as_dir" && as_dir=. | |
4278 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4279 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4280 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
4281 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4282 | break 2 | |
ee134472 | 4283 | fi |
a243b558 JF |
4284 | done |
4285 | done | |
4286 | IFS=$as_save_IFS | |
9c60689e | 4287 | |
35fa52c0 | 4288 | fi |
a243b558 JF |
4289 | fi |
4290 | CC=$ac_cv_prog_CC | |
4291 | if test -n "$CC"; then | |
4292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4293 | $as_echo "$CC" >&6; } | |
4294 | else | |
4295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4296 | $as_echo "no" >&6; } | |
4297 | fi | |
35fa52c0 | 4298 | |
35fa52c0 | 4299 | |
a243b558 JF |
4300 | fi |
4301 | fi | |
4302 | if test -z "$CC"; then | |
4303 | # Extract the first word of "cc", so it can be a program name with args. | |
4304 | set dummy cc; ac_word=$2 | |
4305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4306 | $as_echo_n "checking for $ac_word... " >&6; } | |
4307 | if ${ac_cv_prog_CC+:} false; then : | |
4308 | $as_echo_n "(cached) " >&6 | |
4309 | else | |
4310 | if test -n "$CC"; then | |
4311 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4312 | else | |
4313 | ac_prog_rejected=no | |
4314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4315 | for as_dir in $PATH | |
4316 | do | |
4317 | IFS=$as_save_IFS | |
4318 | test -z "$as_dir" && as_dir=. | |
4319 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4320 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4321 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
4322 | ac_prog_rejected=yes | |
4323 | continue | |
4324 | fi | |
4325 | ac_cv_prog_CC="cc" | |
4326 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4327 | break 2 | |
4328 | fi | |
4329 | done | |
4330 | done | |
4331 | IFS=$as_save_IFS | |
35fa52c0 | 4332 | |
a243b558 JF |
4333 | if test $ac_prog_rejected = yes; then |
4334 | # We found a bogon in the path, so make sure we never use it. | |
4335 | set dummy $ac_cv_prog_CC | |
4336 | shift | |
4337 | if test $# != 0; then | |
4338 | # We chose a different compiler from the bogus one. | |
4339 | # However, it has the same basename, so the bogon will be chosen | |
4340 | # first if we set CC to just the basename; use the full file name. | |
4341 | shift | |
4342 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4343 | fi | |
4344 | fi | |
4345 | fi | |
4346 | fi | |
4347 | CC=$ac_cv_prog_CC | |
4348 | if test -n "$CC"; then | |
4349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4350 | $as_echo "$CC" >&6; } | |
4351 | else | |
4352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4353 | $as_echo "no" >&6; } | |
4354 | fi | |
9c60689e DWT |
4355 | |
4356 | ||
a243b558 JF |
4357 | fi |
4358 | if test -z "$CC"; then | |
4359 | if test -n "$ac_tool_prefix"; then | |
4360 | for ac_prog in cl.exe | |
4361 | do | |
4362 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4363 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4365 | $as_echo_n "checking for $ac_word... " >&6; } | |
4366 | if ${ac_cv_prog_CC+:} false; then : | |
9c60689e DWT |
4367 | $as_echo_n "(cached) " >&6 |
4368 | else | |
a243b558 JF |
4369 | if test -n "$CC"; then |
4370 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4371 | else | |
4372 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4373 | for as_dir in $PATH | |
4374 | do | |
4375 | IFS=$as_save_IFS | |
4376 | test -z "$as_dir" && as_dir=. | |
4377 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4378 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4379 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
4380 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4381 | break 2 | |
9c60689e | 4382 | fi |
a243b558 JF |
4383 | done |
4384 | done | |
4385 | IFS=$as_save_IFS | |
9c60689e | 4386 | |
a243b558 JF |
4387 | fi |
4388 | fi | |
4389 | CC=$ac_cv_prog_CC | |
4390 | if test -n "$CC"; then | |
4391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4392 | $as_echo "$CC" >&6; } | |
35fa52c0 | 4393 | else |
a243b558 JF |
4394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4395 | $as_echo "no" >&6; } | |
35fa52c0 | 4396 | fi |
9c60689e | 4397 | |
a243b558 JF |
4398 | |
4399 | test -n "$CC" && break | |
4400 | done | |
4401 | fi | |
4402 | if test -z "$CC"; then | |
4403 | ac_ct_CC=$CC | |
4404 | for ac_prog in cl.exe | |
4405 | do | |
4406 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4407 | set dummy $ac_prog; ac_word=$2 | |
4408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4409 | $as_echo_n "checking for $ac_word... " >&6; } | |
4410 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
35fa52c0 DWT |
4411 | $as_echo_n "(cached) " >&6 |
4412 | else | |
a243b558 JF |
4413 | if test -n "$ac_ct_CC"; then |
4414 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4415 | else | |
4416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4417 | for as_dir in $PATH | |
4418 | do | |
4419 | IFS=$as_save_IFS | |
4420 | test -z "$as_dir" && as_dir=. | |
4421 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4422 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4423 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
4424 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4425 | break 2 | |
4426 | fi | |
4427 | done | |
4428 | done | |
4429 | IFS=$as_save_IFS | |
9c60689e | 4430 | |
a243b558 JF |
4431 | fi |
4432 | fi | |
4433 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4434 | if test -n "$ac_ct_CC"; then | |
4435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4436 | $as_echo "$ac_ct_CC" >&6; } | |
4437 | else | |
4438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4439 | $as_echo "no" >&6; } | |
4440 | fi | |
35fa52c0 | 4441 | |
35fa52c0 | 4442 | |
a243b558 JF |
4443 | test -n "$ac_ct_CC" && break |
4444 | done | |
35fa52c0 | 4445 | |
a243b558 JF |
4446 | if test "x$ac_ct_CC" = x; then |
4447 | CC="" | |
4448 | else | |
4449 | case $cross_compiling:$ac_tool_warned in | |
4450 | yes:) | |
4451 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4452 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4453 | ac_tool_warned=yes ;; | |
4454 | esac | |
4455 | CC=$ac_ct_CC | |
4456 | fi | |
4457 | fi | |
ee134472 | 4458 | |
a243b558 | 4459 | fi |
35fa52c0 | 4460 | |
35fa52c0 | 4461 | |
a243b558 JF |
4462 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4463 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4464 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
4465 | See \`config.log' for more details" "$LINENO" 5; } | |
35fa52c0 | 4466 | |
a243b558 JF |
4467 | # Provide some information about the compiler. |
4468 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
4469 | set X $ac_compile | |
4470 | ac_compiler=$2 | |
4471 | for ac_option in --version -v -V -qversion; do | |
4472 | { { ac_try="$ac_compiler $ac_option >&5" | |
4473 | case "(($ac_try" in | |
4474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4475 | *) ac_try_echo=$ac_try;; | |
4476 | esac | |
4477 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4478 | $as_echo "$ac_try_echo"; } >&5 | |
4479 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4480 | ac_status=$? | |
4481 | if test -s conftest.err; then | |
4482 | sed '10a\ | |
4483 | ... rest of stderr output deleted ... | |
4484 | 10q' conftest.err >conftest.er1 | |
4485 | cat conftest.er1 >&5 | |
4486 | fi | |
4487 | rm -f conftest.er1 conftest.err | |
4488 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4489 | test $ac_status = 0; } | |
4490 | done | |
53ba6704 | 4491 | |
a243b558 JF |
4492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4493 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4494 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
4495 | $as_echo_n "(cached) " >&6 | |
4496 | else | |
4497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4498 | /* end confdefs.h. */ | |
35fa52c0 | 4499 | |
a243b558 JF |
4500 | int |
4501 | main () | |
4502 | { | |
4503 | #ifndef __GNUC__ | |
4504 | choke me | |
4505 | #endif | |
9c60689e | 4506 | |
a243b558 JF |
4507 | ; |
4508 | return 0; | |
4509 | } | |
4510 | _ACEOF | |
4511 | if ac_fn_c_try_compile "$LINENO"; then : | |
4512 | ac_compiler_gnu=yes | |
35fa52c0 | 4513 | else |
a243b558 | 4514 | ac_compiler_gnu=no |
35fa52c0 | 4515 | fi |
a243b558 JF |
4516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4517 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
9c60689e | 4518 | |
a243b558 JF |
4519 | fi |
4520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
4521 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4522 | if test $ac_compiler_gnu = yes; then | |
4523 | GCC=yes | |
35fa52c0 | 4524 | else |
a243b558 | 4525 | GCC= |
9c60689e | 4526 | fi |
a243b558 JF |
4527 | ac_test_CFLAGS=${CFLAGS+set} |
4528 | ac_save_CFLAGS=$CFLAGS | |
4529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4530 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4531 | if ${ac_cv_prog_cc_g+:} false; then : | |
4532 | $as_echo_n "(cached) " >&6 | |
4533 | else | |
4534 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4535 | ac_c_werror_flag=yes | |
4536 | ac_cv_prog_cc_g=no | |
4537 | CFLAGS="-g" | |
4538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4539 | /* end confdefs.h. */ | |
9c60689e | 4540 | |
a243b558 JF |
4541 | int |
4542 | main () | |
4543 | { | |
9c60689e | 4544 | |
a243b558 JF |
4545 | ; |
4546 | return 0; | |
4547 | } | |
4548 | _ACEOF | |
4549 | if ac_fn_c_try_compile "$LINENO"; then : | |
4550 | ac_cv_prog_cc_g=yes | |
4551 | else | |
4552 | CFLAGS="" | |
4553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4554 | /* end confdefs.h. */ | |
9c60689e | 4555 | |
a243b558 JF |
4556 | int |
4557 | main () | |
4558 | { | |
9c60689e | 4559 | |
a243b558 JF |
4560 | ; |
4561 | return 0; | |
4562 | } | |
4563 | _ACEOF | |
4564 | if ac_fn_c_try_compile "$LINENO"; then : | |
9c60689e | 4565 | |
a243b558 JF |
4566 | else |
4567 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4568 | CFLAGS="-g" | |
4569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4570 | /* end confdefs.h. */ | |
35fa52c0 | 4571 | |
a243b558 JF |
4572 | int |
4573 | main () | |
4574 | { | |
9c60689e | 4575 | |
a243b558 JF |
4576 | ; |
4577 | return 0; | |
4578 | } | |
4579 | _ACEOF | |
4580 | if ac_fn_c_try_compile "$LINENO"; then : | |
4581 | ac_cv_prog_cc_g=yes | |
ee134472 | 4582 | fi |
a243b558 JF |
4583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4584 | fi | |
4585 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4586 | fi | |
4587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4588 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4589 | fi | |
4590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4591 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4592 | if test "$ac_test_CFLAGS" = set; then | |
4593 | CFLAGS=$ac_save_CFLAGS | |
4594 | elif test $ac_cv_prog_cc_g = yes; then | |
4595 | if test "$GCC" = yes; then | |
4596 | CFLAGS="-g -O2" | |
4597 | else | |
4598 | CFLAGS="-g" | |
4599 | fi | |
ee134472 | 4600 | else |
a243b558 JF |
4601 | if test "$GCC" = yes; then |
4602 | CFLAGS="-O2" | |
4603 | else | |
4604 | CFLAGS= | |
4605 | fi | |
ee134472 | 4606 | fi |
a243b558 JF |
4607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4608 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4609 | if ${ac_cv_prog_cc_c89+:} false; then : | |
35fa52c0 DWT |
4610 | $as_echo_n "(cached) " >&6 |
4611 | else | |
a243b558 JF |
4612 | ac_cv_prog_cc_c89=no |
4613 | ac_save_CC=$CC | |
4614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4615 | /* end confdefs.h. */ | |
4616 | #include <stdarg.h> | |
4617 | #include <stdio.h> | |
4618 | struct stat; | |
4619 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4620 | struct buf { int x; }; | |
4621 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4622 | static char *e (p, i) | |
4623 | char **p; | |
4624 | int i; | |
4625 | { | |
4626 | return p[i]; | |
4627 | } | |
4628 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4629 | { | |
4630 | char *s; | |
4631 | va_list v; | |
4632 | va_start (v,p); | |
4633 | s = g (p, va_arg (v,int)); | |
4634 | va_end (v); | |
4635 | return s; | |
4636 | } | |
9c60689e | 4637 | |
a243b558 JF |
4638 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4639 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4640 | These don't provoke an error unfortunately, instead are silently treated | |
4641 | as 'x'. The following induces an error, until -std is added to get | |
4642 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4643 | array size at least. It's necessary to write '\x00'==0 to get something | |
4644 | that's true only with -std. */ | |
4645 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
9c60689e | 4646 | |
a243b558 JF |
4647 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4648 | inside strings and character constants. */ | |
4649 | #define FOO(x) 'x' | |
4650 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
9c60689e | 4651 | |
a243b558 JF |
4652 | int test (int i, double x); |
4653 | struct s1 {int (*f) (int a);}; | |
4654 | struct s2 {int (*f) (double a);}; | |
4655 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4656 | int argc; | |
4657 | char **argv; | |
4658 | int | |
4659 | main () | |
4660 | { | |
4661 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4662 | ; | |
4663 | return 0; | |
4664 | } | |
4665 | _ACEOF | |
4666 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4667 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
9c60689e | 4668 | do |
a243b558 JF |
4669 | CC="$ac_save_CC $ac_arg" |
4670 | if ac_fn_c_try_compile "$LINENO"; then : | |
4671 | ac_cv_prog_cc_c89=$ac_arg | |
4672 | fi | |
4673 | rm -f core conftest.err conftest.$ac_objext | |
4674 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
9c60689e | 4675 | done |
a243b558 JF |
4676 | rm -f conftest.$ac_ext |
4677 | CC=$ac_save_CC | |
35fa52c0 | 4678 | |
35fa52c0 | 4679 | fi |
a243b558 JF |
4680 | # AC_CACHE_VAL |
4681 | case "x$ac_cv_prog_cc_c89" in | |
4682 | x) | |
4683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4684 | $as_echo "none needed" >&6; } ;; | |
4685 | xno) | |
4686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4687 | $as_echo "unsupported" >&6; } ;; | |
4688 | *) | |
4689 | CC="$CC $ac_cv_prog_cc_c89" | |
4690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4691 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4692 | esac | |
4693 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
4694 | ||
35fa52c0 | 4695 | fi |
9c60689e | 4696 | |
a243b558 JF |
4697 | ac_ext=c |
4698 | ac_cpp='$CPP $CPPFLAGS' | |
4699 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4700 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4701 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4702 | ||
4703 | depcc="$CC" am_compiler_list= | |
9c60689e | 4704 | |
a243b558 JF |
4705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4706 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4707 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
35fa52c0 DWT |
4708 | $as_echo_n "(cached) " >&6 |
4709 | else | |
a243b558 JF |
4710 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4711 | # We make a subdir and do the tests there. Otherwise we can end up | |
4712 | # making bogus files that we don't know about and never remove. For | |
4713 | # instance it was reported that on HP-UX the gcc test will end up | |
4714 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4715 | # in D". | |
4716 | rm -rf conftest.dir | |
4717 | mkdir conftest.dir | |
4718 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4719 | # using a relative directory. | |
4720 | cp "$am_depcomp" conftest.dir | |
4721 | cd conftest.dir | |
4722 | # We will build objects and dependencies in a subdirectory because | |
4723 | # it helps to detect inapplicable dependency modes. For instance | |
4724 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4725 | # side effect of compilation, but ICC will put the dependencies in | |
4726 | # the current directory while Tru64 will put them in the object | |
4727 | # directory. | |
4728 | mkdir sub | |
4729 | ||
4730 | am_cv_CC_dependencies_compiler_type=none | |
4731 | if test "$am_compiler_list" = ""; then | |
4732 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4733 | fi | |
4734 | am__universal=false | |
4735 | case " $depcc " in #( | |
4736 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4737 | esac | |
4738 | ||
4739 | for depmode in $am_compiler_list; do | |
4740 | # Setup a source with many dependencies, because some compilers | |
4741 | # like to wrap large dependency lists on column 80 (with \), and | |
4742 | # we should not choose a depcomp mode which is confused by this. | |
4743 | # | |
4744 | # We need to recreate these files for each test, as the compiler may | |
4745 | # overwrite some of them when testing with obscure command lines. | |
4746 | # This happens at least with the AIX C compiler. | |
4747 | : > sub/conftest.c | |
4748 | for i in 1 2 3 4 5 6; do | |
4749 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4750 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4751 | # Solaris 10 /bin/sh. | |
4752 | echo '/* dummy */' > sub/conftst$i.h | |
4753 | done | |
4754 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4755 | ||
4756 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4757 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4758 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4759 | # versions had trouble with output in subdirs. | |
4760 | am__obj=sub/conftest.${OBJEXT-o} | |
4761 | am__minus_obj="-o $am__obj" | |
4762 | case $depmode in | |
4763 | gcc) | |
4764 | # This depmode causes a compiler race in universal mode. | |
4765 | test "$am__universal" = false || continue | |
4766 | ;; | |
4767 | nosideeffect) | |
4768 | # After this tag, mechanisms are not by side-effect, so they'll | |
4769 | # only be used when explicitly requested. | |
4770 | if test "x$enable_dependency_tracking" = xyes; then | |
4771 | continue | |
4772 | else | |
4773 | break | |
4774 | fi | |
4775 | ;; | |
4776 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4777 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4778 | # not run yet. These depmodes are late enough in the game, and | |
4779 | # so weak that their functioning should not be impacted. | |
4780 | am__obj=conftest.${OBJEXT-o} | |
4781 | am__minus_obj= | |
4782 | ;; | |
4783 | none) break ;; | |
4784 | esac | |
4785 | if depmode=$depmode \ | |
4786 | source=sub/conftest.c object=$am__obj \ | |
4787 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4788 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4789 | >/dev/null 2>conftest.err && | |
4790 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4791 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4792 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4793 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4794 | # icc doesn't choke on unknown options, it will just issue warnings | |
4795 | # or remarks (even with -Werror). So we grep stderr for any message | |
4796 | # that says an option was ignored or not supported. | |
4797 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4798 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4799 | # The diagnosis changed in icc 8.0: | |
4800 | # icc: Command line remark: option '-MP' not supported | |
4801 | if (grep 'ignoring option' conftest.err || | |
4802 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4803 | am_cv_CC_dependencies_compiler_type=$depmode | |
4804 | break | |
4805 | fi | |
4806 | fi | |
4807 | done | |
9c60689e | 4808 | |
a243b558 JF |
4809 | cd .. |
4810 | rm -rf conftest.dir | |
4811 | else | |
4812 | am_cv_CC_dependencies_compiler_type=none | |
35fa52c0 | 4813 | fi |
a243b558 | 4814 | |
35fa52c0 | 4815 | fi |
a243b558 JF |
4816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4817 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4818 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4819 | ||
4820 | if | |
4821 | test "x$enable_dependency_tracking" != xno \ | |
4822 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4823 | am__fastdepCC_TRUE= | |
4824 | am__fastdepCC_FALSE='#' | |
4825 | else | |
4826 | am__fastdepCC_TRUE='#' | |
4827 | am__fastdepCC_FALSE= | |
4828 | fi | |
4829 | ||
4830 | ||
4831 | ||
4832 | if test -n "$ac_tool_prefix"; then | |
4833 | for ac_prog in ar lib "link -lib" | |
4834 | do | |
4835 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4836 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4838 | $as_echo_n "checking for $ac_word... " >&6; } | |
4839 | if ${ac_cv_prog_AR+:} false; then : | |
4840 | $as_echo_n "(cached) " >&6 | |
4841 | else | |
4842 | if test -n "$AR"; then | |
4843 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4844 | else | |
4845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4846 | for as_dir in $PATH | |
4847 | do | |
4848 | IFS=$as_save_IFS | |
4849 | test -z "$as_dir" && as_dir=. | |
4850 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4851 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4852 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
4853 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4854 | break 2 | |
4855 | fi | |
4856 | done | |
4857 | done | |
4858 | IFS=$as_save_IFS | |
4859 | ||
4860 | fi | |
4861 | fi | |
4862 | AR=$ac_cv_prog_AR | |
4863 | if test -n "$AR"; then | |
4864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
4865 | $as_echo "$AR" >&6; } | |
35fa52c0 DWT |
4866 | else |
4867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4868 | $as_echo "no" >&6; } | |
4869 | fi | |
9c60689e | 4870 | |
a243b558 JF |
4871 | |
4872 | test -n "$AR" && break | |
4873 | done | |
4874 | fi | |
4875 | if test -z "$AR"; then | |
4876 | ac_ct_AR=$AR | |
4877 | for ac_prog in ar lib "link -lib" | |
4878 | do | |
4879 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4880 | set dummy $ac_prog; ac_word=$2 | |
4881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4882 | $as_echo_n "checking for $ac_word... " >&6; } | |
4883 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
4884 | $as_echo_n "(cached) " >&6 | |
4885 | else | |
4886 | if test -n "$ac_ct_AR"; then | |
4887 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4888 | else | |
4889 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4890 | for as_dir in $PATH | |
4891 | do | |
4892 | IFS=$as_save_IFS | |
4893 | test -z "$as_dir" && as_dir=. | |
4894 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4895 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4896 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
4897 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4898 | break 2 | |
4899 | fi | |
4900 | done | |
4901 | done | |
4902 | IFS=$as_save_IFS | |
4903 | ||
4904 | fi | |
4905 | fi | |
4906 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4907 | if test -n "$ac_ct_AR"; then | |
4908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
4909 | $as_echo "$ac_ct_AR" >&6; } | |
4910 | else | |
4911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4912 | $as_echo "no" >&6; } | |
4913 | fi | |
4914 | ||
4915 | ||
4916 | test -n "$ac_ct_AR" && break | |
4917 | done | |
4918 | ||
4919 | if test "x$ac_ct_AR" = x; then | |
4920 | AR="false" | |
9c60689e DWT |
4921 | else |
4922 | case $cross_compiling:$ac_tool_warned in | |
4923 | yes:) | |
4924 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4925 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4926 | ac_tool_warned=yes ;; | |
35fa52c0 | 4927 | esac |
a243b558 | 4928 | AR=$ac_ct_AR |
9c60689e | 4929 | fi |
a243b558 JF |
4930 | fi |
4931 | ||
4932 | : ${AR=ar} | |
4933 | ||
4934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 | |
4935 | $as_echo_n "checking the archiver ($AR) interface... " >&6; } | |
4936 | if ${am_cv_ar_interface+:} false; then : | |
4937 | $as_echo_n "(cached) " >&6 | |
9c60689e | 4938 | else |
a243b558 JF |
4939 | am_cv_ar_interface=ar |
4940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4941 | /* end confdefs.h. */ | |
4942 | int some_variable = 0; | |
4943 | _ACEOF | |
4944 | if ac_fn_c_try_compile "$LINENO"; then : | |
4945 | am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' | |
4946 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
4947 | (eval $am_ar_try) 2>&5 | |
4948 | ac_status=$? | |
4949 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4950 | test $ac_status = 0; } | |
4951 | if test "$ac_status" -eq 0; then | |
4952 | am_cv_ar_interface=ar | |
4953 | else | |
4954 | am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' | |
4955 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
4956 | (eval $am_ar_try) 2>&5 | |
4957 | ac_status=$? | |
4958 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4959 | test $ac_status = 0; } | |
4960 | if test "$ac_status" -eq 0; then | |
4961 | am_cv_ar_interface=lib | |
4962 | else | |
4963 | am_cv_ar_interface=unknown | |
4964 | fi | |
4965 | fi | |
4966 | rm -f conftest.lib libconftest.a | |
4967 | ||
35fa52c0 | 4968 | fi |
a243b558 | 4969 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
35fa52c0 | 4970 | |
a243b558 JF |
4971 | fi |
4972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 | |
4973 | $as_echo "$am_cv_ar_interface" >&6; } | |
35fa52c0 | 4974 | |
a243b558 JF |
4975 | case $am_cv_ar_interface in |
4976 | ar) | |
4977 | ;; | |
4978 | lib) | |
4979 | # Microsoft lib, so override with the ar-lib wrapper script. | |
4980 | # FIXME: It is wrong to rewrite AR. | |
4981 | # But if we don't then we get into trouble of one sort or another. | |
4982 | # A longer-term fix would be to have automake use am__AR in this case, | |
4983 | # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something | |
4984 | # similar. | |
4985 | AR="$am_aux_dir/ar-lib $AR" | |
4986 | ;; | |
4987 | unknown) | |
4988 | as_fn_error $? "could not determine $AR interface" "$LINENO" 5 | |
4989 | ;; | |
4990 | esac | |
35fa52c0 | 4991 | |
35fa52c0 | 4992 | |
35fa52c0 | 4993 | |
a243b558 JF |
4994 | case `pwd` in |
4995 | *\ * | *\ *) | |
4996 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
4997 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
4998 | esac | |
35fa52c0 DWT |
4999 | |
5000 | ||
5001 | ||
a243b558 JF |
5002 | macro_version='2.4.2' |
5003 | macro_revision='1.3337' | |
35fa52c0 DWT |
5004 | |
5005 | ||
5006 | ||
5007 | ||
5008 | ||
5009 | ||
5010 | ||
5011 | ||
5012 | ||
35fa52c0 | 5013 | |
35fa52c0 | 5014 | |
ee134472 | 5015 | |
35fa52c0 | 5016 | |
a243b558 | 5017 | ltmain="$ac_aux_dir/ltmain.sh" |
35fa52c0 | 5018 | |
a243b558 JF |
5019 | # Make sure we can run config.sub. |
5020 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
5021 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
35fa52c0 | 5022 | |
a243b558 JF |
5023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
5024 | $as_echo_n "checking build system type... " >&6; } | |
5025 | if ${ac_cv_build+:} false; then : | |
5026 | $as_echo_n "(cached) " >&6 | |
5027 | else | |
5028 | ac_build_alias=$build_alias | |
5029 | test "x$ac_build_alias" = x && | |
5030 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
5031 | test "x$ac_build_alias" = x && | |
5032 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
5033 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
5034 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
35fa52c0 | 5035 | |
a243b558 JF |
5036 | fi |
5037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
5038 | $as_echo "$ac_cv_build" >&6; } | |
5039 | case $ac_cv_build in | |
5040 | *-*-*) ;; | |
5041 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
5042 | esac | |
5043 | build=$ac_cv_build | |
5044 | ac_save_IFS=$IFS; IFS='-' | |
5045 | set x $ac_cv_build | |
5046 | shift | |
5047 | build_cpu=$1 | |
5048 | build_vendor=$2 | |
5049 | shift; shift | |
5050 | # Remember, the first character of IFS is used to create $*, | |
5051 | # except with old shells: | |
5052 | build_os=$* | |
5053 | IFS=$ac_save_IFS | |
5054 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
35fa52c0 | 5055 | |
35fa52c0 | 5056 | |
a243b558 JF |
5057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
5058 | $as_echo_n "checking host system type... " >&6; } | |
5059 | if ${ac_cv_host+:} false; then : | |
5060 | $as_echo_n "(cached) " >&6 | |
5061 | else | |
5062 | if test "x$host_alias" = x; then | |
5063 | ac_cv_host=$ac_cv_build | |
5064 | else | |
5065 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
5066 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
5067 | fi | |
35fa52c0 | 5068 | |
a243b558 JF |
5069 | fi |
5070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
5071 | $as_echo "$ac_cv_host" >&6; } | |
5072 | case $ac_cv_host in | |
5073 | *-*-*) ;; | |
5074 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
5075 | esac | |
5076 | host=$ac_cv_host | |
5077 | ac_save_IFS=$IFS; IFS='-' | |
5078 | set x $ac_cv_host | |
5079 | shift | |
5080 | host_cpu=$1 | |
5081 | host_vendor=$2 | |
5082 | shift; shift | |
5083 | # Remember, the first character of IFS is used to create $*, | |
5084 | # except with old shells: | |
5085 | host_os=$* | |
5086 | IFS=$ac_save_IFS | |
5087 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
9c60689e | 5088 | |
9c60689e | 5089 | |
a243b558 JF |
5090 | # Backslashify metacharacters that are still active within |
5091 | # double-quoted strings. | |
5092 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
9c60689e | 5093 | |
a243b558 JF |
5094 | # Same as above, but do not quote variable references. |
5095 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
9c60689e | 5096 | |
a243b558 JF |
5097 | # Sed substitution to delay expansion of an escaped shell variable in a |
5098 | # double_quote_subst'ed string. | |
5099 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
9c60689e | 5100 | |
a243b558 JF |
5101 | # Sed substitution to delay expansion of an escaped single quote. |
5102 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
9c60689e | 5103 | |
a243b558 JF |
5104 | # Sed substitution to avoid accidental globbing in evaled expressions |
5105 | no_glob_subst='s/\*/\\\*/g' | |
35fa52c0 | 5106 | |
a243b558 JF |
5107 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
5108 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5109 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
ee134472 | 5110 | |
a243b558 JF |
5111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
5112 | $as_echo_n "checking how to print strings... " >&6; } | |
5113 | # Test print first, because it will be a builtin if present. | |
5114 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
5115 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5116 | ECHO='print -r --' | |
5117 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5118 | ECHO='printf %s\n' | |
5119 | else | |
5120 | # Use this function as a fallback that always works. | |
5121 | func_fallback_echo () | |
5122 | { | |
5123 | eval 'cat <<_LTECHO_EOF | |
5124 | $1 | |
5125 | _LTECHO_EOF' | |
5126 | } | |
5127 | ECHO='func_fallback_echo' | |
ee134472 JF |
5128 | fi |
5129 | ||
a243b558 JF |
5130 | # func_echo_all arg... |
5131 | # Invoke $ECHO with all args, space-separated. | |
5132 | func_echo_all () | |
5133 | { | |
5134 | $ECHO "" | |
5135 | } | |
35fa52c0 | 5136 | |
a243b558 JF |
5137 | case "$ECHO" in |
5138 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5139 | $as_echo "printf" >&6; } ;; | |
5140 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5141 | $as_echo "print -r" >&6; } ;; | |
5142 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5143 | $as_echo "cat" >&6; } ;; | |
5144 | esac | |
35fa52c0 | 5145 | |
35fa52c0 | 5146 | |
ee134472 JF |
5147 | |
5148 | ||
5149 | ||
5150 | ||
5151 | ||
5152 | ||
5153 | ||
5154 | ||
5155 | ||
5156 | ||
35fa52c0 | 5157 | |
9c60689e | 5158 | |
a243b558 JF |
5159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5160 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5161 | if ${ac_cv_path_SED+:} false; then : | |
9c60689e DWT |
5162 | $as_echo_n "(cached) " >&6 |
5163 | else | |
a243b558 JF |
5164 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
5165 | for ac_i in 1 2 3 4 5 6 7; do | |
5166 | ac_script="$ac_script$as_nl$ac_script" | |
5167 | done | |
5168 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5169 | { ac_script=; unset ac_script;} | |
5170 | if test -z "$SED"; then | |
5171 | ac_path_SED_found=false | |
5172 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9c60689e DWT |
5174 | for as_dir in $PATH |
5175 | do | |
5176 | IFS=$as_save_IFS | |
5177 | test -z "$as_dir" && as_dir=. | |
a243b558 | 5178 | for ac_prog in sed gsed; do |
9c60689e | 5179 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
5180 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
5181 | as_fn_executable_p "$ac_path_SED" || continue | |
5182 | # Check for GNU ac_path_SED and select it if it is found. | |
5183 | # Check for GNU $ac_path_SED | |
5184 | case `"$ac_path_SED" --version 2>&1` in | |
5185 | *GNU*) | |
5186 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5187 | *) | |
5188 | ac_count=0 | |
5189 | $as_echo_n 0123456789 >"conftest.in" | |
5190 | while : | |
5191 | do | |
5192 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5193 | mv "conftest.tmp" "conftest.in" | |
5194 | cp "conftest.in" "conftest.nl" | |
5195 | $as_echo '' >> "conftest.nl" | |
5196 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5197 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5198 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5199 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5200 | # Best one so far, save it but keep looking for a better one | |
5201 | ac_cv_path_SED="$ac_path_SED" | |
5202 | ac_path_SED_max=$ac_count | |
5203 | fi | |
5204 | # 10*(2^10) chars as input seems more than enough | |
5205 | test $ac_count -gt 10 && break | |
35fa52c0 | 5206 | done |
a243b558 JF |
5207 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
5208 | esac | |
9c60689e | 5209 | |
a243b558 JF |
5210 | $ac_path_SED_found && break 3 |
5211 | done | |
5212 | done | |
9c60689e DWT |
5213 | done |
5214 | IFS=$as_save_IFS | |
a243b558 JF |
5215 | if test -z "$ac_cv_path_SED"; then |
5216 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
9c60689e DWT |
5217 | fi |
5218 | else | |
a243b558 | 5219 | ac_cv_path_SED=$SED |
9c60689e DWT |
5220 | fi |
5221 | ||
a243b558 JF |
5222 | fi |
5223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5224 | $as_echo "$ac_cv_path_SED" >&6; } | |
5225 | SED="$ac_cv_path_SED" | |
5226 | rm -f conftest.sed | |
9c60689e | 5227 | |
a243b558 JF |
5228 | test -z "$SED" && SED=sed |
5229 | Xsed="$SED -e 1s/^X//" | |
9c60689e | 5230 | |
ee134472 | 5231 | |
ee134472 | 5232 | |
9c60689e DWT |
5233 | |
5234 | ||
5235 | ||
5236 | ||
5237 | ||
5238 | ||
5239 | ||
5240 | ||
a243b558 JF |
5241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
5242 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5243 | if ${ac_cv_path_GREP+:} false; then : | |
9c60689e DWT |
5244 | $as_echo_n "(cached) " >&6 |
5245 | else | |
a243b558 JF |
5246 | if test -z "$GREP"; then |
5247 | ac_path_GREP_found=false | |
5248 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5250 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
9c60689e DWT |
5251 | do |
5252 | IFS=$as_save_IFS | |
5253 | test -z "$as_dir" && as_dir=. | |
a243b558 | 5254 | for ac_prog in grep ggrep; do |
9c60689e | 5255 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
5256 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
5257 | as_fn_executable_p "$ac_path_GREP" || continue | |
5258 | # Check for GNU ac_path_GREP and select it if it is found. | |
5259 | # Check for GNU $ac_path_GREP | |
5260 | case `"$ac_path_GREP" --version 2>&1` in | |
5261 | *GNU*) | |
5262 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5263 | *) | |
5264 | ac_count=0 | |
5265 | $as_echo_n 0123456789 >"conftest.in" | |
5266 | while : | |
5267 | do | |
5268 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5269 | mv "conftest.tmp" "conftest.in" | |
5270 | cp "conftest.in" "conftest.nl" | |
5271 | $as_echo 'GREP' >> "conftest.nl" | |
5272 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5273 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5274 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5275 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5276 | # Best one so far, save it but keep looking for a better one | |
5277 | ac_cv_path_GREP="$ac_path_GREP" | |
5278 | ac_path_GREP_max=$ac_count | |
5279 | fi | |
5280 | # 10*(2^10) chars as input seems more than enough | |
5281 | test $ac_count -gt 10 && break | |
5282 | done | |
5283 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5284 | esac | |
9c60689e | 5285 | |
a243b558 JF |
5286 | $ac_path_GREP_found && break 3 |
5287 | done | |
ee134472 | 5288 | done |
a243b558 JF |
5289 | done |
5290 | IFS=$as_save_IFS | |
5291 | if test -z "$ac_cv_path_GREP"; then | |
5292 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5293 | fi | |
5294 | else | |
5295 | ac_cv_path_GREP=$GREP | |
9c60689e | 5296 | fi |
a243b558 JF |
5297 | |
5298 | fi | |
5299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5300 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5301 | GREP="$ac_cv_path_GREP" | |
5302 | ||
5303 | ||
5304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5305 | $as_echo_n "checking for egrep... " >&6; } | |
5306 | if ${ac_cv_path_EGREP+:} false; then : | |
9c60689e DWT |
5307 | $as_echo_n "(cached) " >&6 |
5308 | else | |
a243b558 JF |
5309 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
5310 | then ac_cv_path_EGREP="$GREP -E" | |
5311 | else | |
5312 | if test -z "$EGREP"; then | |
5313 | ac_path_EGREP_found=false | |
5314 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5316 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
9c60689e DWT |
5317 | do |
5318 | IFS=$as_save_IFS | |
5319 | test -z "$as_dir" && as_dir=. | |
a243b558 | 5320 | for ac_prog in egrep; do |
9c60689e | 5321 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
5322 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
5323 | as_fn_executable_p "$ac_path_EGREP" || continue | |
5324 | # Check for GNU ac_path_EGREP and select it if it is found. | |
5325 | # Check for GNU $ac_path_EGREP | |
5326 | case `"$ac_path_EGREP" --version 2>&1` in | |
5327 | *GNU*) | |
5328 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5329 | *) | |
5330 | ac_count=0 | |
5331 | $as_echo_n 0123456789 >"conftest.in" | |
5332 | while : | |
5333 | do | |
5334 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5335 | mv "conftest.tmp" "conftest.in" | |
5336 | cp "conftest.in" "conftest.nl" | |
5337 | $as_echo 'EGREP' >> "conftest.nl" | |
5338 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5339 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5340 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5341 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5342 | # Best one so far, save it but keep looking for a better one | |
5343 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5344 | ac_path_EGREP_max=$ac_count | |
5345 | fi | |
5346 | # 10*(2^10) chars as input seems more than enough | |
5347 | test $ac_count -gt 10 && break | |
9c60689e | 5348 | done |
a243b558 JF |
5349 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
5350 | esac | |
9c60689e | 5351 | |
a243b558 JF |
5352 | $ac_path_EGREP_found && break 3 |
5353 | done | |
5354 | done | |
5355 | done | |
5356 | IFS=$as_save_IFS | |
5357 | if test -z "$ac_cv_path_EGREP"; then | |
5358 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5359 | fi | |
9c60689e | 5360 | else |
a243b558 | 5361 | ac_cv_path_EGREP=$EGREP |
9c60689e DWT |
5362 | fi |
5363 | ||
a243b558 JF |
5364 | fi |
5365 | fi | |
5366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
5367 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5368 | EGREP="$ac_cv_path_EGREP" | |
ee134472 | 5369 | |
ee134472 | 5370 | |
a243b558 JF |
5371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
5372 | $as_echo_n "checking for fgrep... " >&6; } | |
5373 | if ${ac_cv_path_FGREP+:} false; then : | |
5374 | $as_echo_n "(cached) " >&6 | |
5375 | else | |
5376 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
5377 | then ac_cv_path_FGREP="$GREP -F" | |
5378 | else | |
5379 | if test -z "$FGREP"; then | |
5380 | ac_path_FGREP_found=false | |
5381 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5383 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5384 | do | |
5385 | IFS=$as_save_IFS | |
5386 | test -z "$as_dir" && as_dir=. | |
5387 | for ac_prog in fgrep; do | |
5388 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5389 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5390 | as_fn_executable_p "$ac_path_FGREP" || continue | |
5391 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5392 | # Check for GNU $ac_path_FGREP | |
5393 | case `"$ac_path_FGREP" --version 2>&1` in | |
5394 | *GNU*) | |
5395 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5396 | *) | |
5397 | ac_count=0 | |
5398 | $as_echo_n 0123456789 >"conftest.in" | |
5399 | while : | |
5400 | do | |
5401 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5402 | mv "conftest.tmp" "conftest.in" | |
5403 | cp "conftest.in" "conftest.nl" | |
5404 | $as_echo 'FGREP' >> "conftest.nl" | |
5405 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5406 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5407 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5408 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5409 | # Best one so far, save it but keep looking for a better one | |
5410 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5411 | ac_path_FGREP_max=$ac_count | |
5412 | fi | |
5413 | # 10*(2^10) chars as input seems more than enough | |
5414 | test $ac_count -gt 10 && break | |
5415 | done | |
5416 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
9c60689e | 5417 | esac |
a243b558 JF |
5418 | |
5419 | $ac_path_FGREP_found && break 3 | |
5420 | done | |
5421 | done | |
5422 | done | |
5423 | IFS=$as_save_IFS | |
5424 | if test -z "$ac_cv_path_FGREP"; then | |
5425 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
ee134472 | 5426 | fi |
a243b558 JF |
5427 | else |
5428 | ac_cv_path_FGREP=$FGREP | |
ee134472 JF |
5429 | fi |
5430 | ||
a243b558 JF |
5431 | fi |
5432 | fi | |
5433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5434 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5435 | FGREP="$ac_cv_path_FGREP" | |
ee134472 JF |
5436 | |
5437 | ||
a243b558 | 5438 | test -z "$GREP" && GREP=grep |
ee134472 JF |
5439 | |
5440 | ||
5441 | ||
5442 | ||
5443 | ||
5444 | ||
5445 | ||
ee134472 | 5446 | |
ee134472 | 5447 | |
ee134472 | 5448 | |
ee134472 | 5449 | |
ee134472 | 5450 | |
ee134472 JF |
5451 | |
5452 | ||
5453 | ||
5454 | ||
5455 | ||
5456 | ||
5457 | ||
a243b558 JF |
5458 | # Check whether --with-gnu-ld was given. |
5459 | if test "${with_gnu_ld+set}" = set; then : | |
5460 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5461 | else | |
5462 | with_gnu_ld=no | |
5463 | fi | |
5464 | ||
5465 | ac_prog=ld | |
5466 | if test "$GCC" = yes; then | |
5467 | # Check if gcc -print-prog-name=ld gives a path. | |
5468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5469 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5470 | case $host in | |
5471 | *-*-mingw*) | |
5472 | # gcc leaves a trailing carriage return which upsets mingw | |
5473 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5474 | *) | |
5475 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5476 | esac | |
5477 | case $ac_prog in | |
5478 | # Accept absolute paths. | |
5479 | [\\/]* | ?:[\\/]*) | |
5480 | re_direlt='/[^/][^/]*/\.\./' | |
5481 | # Canonicalize the pathname of ld | |
5482 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5483 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5484 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5485 | done | |
5486 | test -z "$LD" && LD="$ac_prog" | |
5487 | ;; | |
5488 | "") | |
5489 | # If it fails, then pretend we aren't using GCC. | |
5490 | ac_prog=ld | |
5491 | ;; | |
5492 | *) | |
5493 | # If it is relative, then search for the first ld in PATH. | |
5494 | with_gnu_ld=unknown | |
5495 | ;; | |
5496 | esac | |
5497 | elif test "$with_gnu_ld" = yes; then | |
5498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5499 | $as_echo_n "checking for GNU ld... " >&6; } | |
5500 | else | |
5501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5502 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
5503 | fi | |
5504 | if ${lt_cv_path_LD+:} false; then : | |
5505 | $as_echo_n "(cached) " >&6 | |
5506 | else | |
5507 | if test -z "$LD"; then | |
5508 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5509 | for ac_dir in $PATH; do | |
5510 | IFS="$lt_save_ifs" | |
5511 | test -z "$ac_dir" && ac_dir=. | |
5512 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5513 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5514 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5515 | # but apparently some variants of GNU ld only accept -v. | |
5516 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5517 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5518 | *GNU* | *'with BFD'*) | |
5519 | test "$with_gnu_ld" != no && break | |
5520 | ;; | |
5521 | *) | |
5522 | test "$with_gnu_ld" != yes && break | |
5523 | ;; | |
5524 | esac | |
5525 | fi | |
5526 | done | |
5527 | IFS="$lt_save_ifs" | |
5528 | else | |
5529 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5530 | fi | |
5531 | fi | |
5532 | ||
5533 | LD="$lt_cv_path_LD" | |
5534 | if test -n "$LD"; then | |
5535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5536 | $as_echo "$LD" >&6; } | |
5537 | else | |
5538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5539 | $as_echo "no" >&6; } | |
5540 | fi | |
5541 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
5542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5543 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5544 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
5545 | $as_echo_n "(cached) " >&6 | |
5546 | else | |
5547 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5548 | case `$LD -v 2>&1 </dev/null` in | |
5549 | *GNU* | *'with BFD'*) | |
5550 | lt_cv_prog_gnu_ld=yes | |
5551 | ;; | |
5552 | *) | |
5553 | lt_cv_prog_gnu_ld=no | |
5554 | ;; | |
5555 | esac | |
5556 | fi | |
5557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
5558 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
5559 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
5560 | ||
5561 | ||
5562 | ||
5563 | ||
5564 | ||
5565 | ||
5566 | ||
5567 | ||
5568 | ||
5569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
5570 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5571 | if ${lt_cv_path_NM+:} false; then : | |
5572 | $as_echo_n "(cached) " >&6 | |
5573 | else | |
5574 | if test -n "$NM"; then | |
5575 | # Let the user override the test. | |
5576 | lt_cv_path_NM="$NM" | |
5577 | else | |
5578 | lt_nm_to_check="${ac_tool_prefix}nm" | |
5579 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5580 | lt_nm_to_check="$lt_nm_to_check nm" | |
5581 | fi | |
5582 | for lt_tmp_nm in $lt_nm_to_check; do | |
5583 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5584 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5585 | IFS="$lt_save_ifs" | |
5586 | test -z "$ac_dir" && ac_dir=. | |
5587 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5588 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5589 | # Check to see if the nm accepts a BSD-compat flag. | |
5590 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5591 | # nm: unknown option "B" ignored | |
5592 | # Tru64's nm complains that /dev/null is an invalid object file | |
5593 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5594 | */dev/null* | *'Invalid file or object type'*) | |
5595 | lt_cv_path_NM="$tmp_nm -B" | |
5596 | break | |
5597 | ;; | |
5598 | *) | |
5599 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5600 | */dev/null*) | |
5601 | lt_cv_path_NM="$tmp_nm -p" | |
5602 | break | |
5603 | ;; | |
5604 | *) | |
5605 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5606 | continue # so that we can try to find one that supports BSD flags | |
5607 | ;; | |
5608 | esac | |
5609 | ;; | |
5610 | esac | |
5611 | fi | |
5612 | done | |
5613 | IFS="$lt_save_ifs" | |
5614 | done | |
5615 | : ${lt_cv_path_NM=no} | |
5616 | fi | |
5617 | fi | |
5618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
5619 | $as_echo "$lt_cv_path_NM" >&6; } | |
5620 | if test "$lt_cv_path_NM" != "no"; then | |
5621 | NM="$lt_cv_path_NM" | |
5622 | else | |
5623 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
5624 | if test -n "$DUMPBIN"; then : | |
5625 | # Let the user override the test. | |
5626 | else | |
5627 | if test -n "$ac_tool_prefix"; then | |
5628 | for ac_prog in dumpbin "link -dump" | |
5629 | do | |
5630 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5631 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ee134472 JF |
5632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5633 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 5634 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
ee134472 JF |
5635 | $as_echo_n "(cached) " >&6 |
5636 | else | |
a243b558 JF |
5637 | if test -n "$DUMPBIN"; then |
5638 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
ee134472 JF |
5639 | else |
5640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5641 | for as_dir in $PATH | |
5642 | do | |
5643 | IFS=$as_save_IFS | |
5644 | test -z "$as_dir" && as_dir=. | |
5645 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 5646 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 5647 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
ee134472 JF |
5648 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5649 | break 2 | |
5650 | fi | |
5651 | done | |
5652 | done | |
5653 | IFS=$as_save_IFS | |
5654 | ||
5655 | fi | |
5656 | fi | |
a243b558 JF |
5657 | DUMPBIN=$ac_cv_prog_DUMPBIN |
5658 | if test -n "$DUMPBIN"; then | |
5659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
5660 | $as_echo "$DUMPBIN" >&6; } | |
ee134472 JF |
5661 | else |
5662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5663 | $as_echo "no" >&6; } | |
5664 | fi | |
5665 | ||
5666 | ||
a243b558 JF |
5667 | test -n "$DUMPBIN" && break |
5668 | done | |
ee134472 | 5669 | fi |
a243b558 JF |
5670 | if test -z "$DUMPBIN"; then |
5671 | ac_ct_DUMPBIN=$DUMPBIN | |
5672 | for ac_prog in dumpbin "link -dump" | |
5673 | do | |
5674 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5675 | set dummy $ac_prog; ac_word=$2 | |
ee134472 JF |
5676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5677 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 5678 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
ee134472 JF |
5679 | $as_echo_n "(cached) " >&6 |
5680 | else | |
a243b558 JF |
5681 | if test -n "$ac_ct_DUMPBIN"; then |
5682 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
ee134472 JF |
5683 | else |
5684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5685 | for as_dir in $PATH | |
5686 | do | |
5687 | IFS=$as_save_IFS | |
5688 | test -z "$as_dir" && as_dir=. | |
5689 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 5690 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 5691 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
ee134472 JF |
5692 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5693 | break 2 | |
5694 | fi | |
5695 | done | |
5696 | done | |
5697 | IFS=$as_save_IFS | |
5698 | ||
5699 | fi | |
5700 | fi | |
a243b558 JF |
5701 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
5702 | if test -n "$ac_ct_DUMPBIN"; then | |
5703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
5704 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
ee134472 JF |
5705 | else |
5706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5707 | $as_echo "no" >&6; } | |
5708 | fi | |
5709 | ||
a243b558 JF |
5710 | |
5711 | test -n "$ac_ct_DUMPBIN" && break | |
5712 | done | |
5713 | ||
5714 | if test "x$ac_ct_DUMPBIN" = x; then | |
5715 | DUMPBIN=":" | |
ee134472 JF |
5716 | else |
5717 | case $cross_compiling:$ac_tool_warned in | |
5718 | yes:) | |
5719 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5720 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5721 | ac_tool_warned=yes ;; | |
5722 | esac | |
a243b558 | 5723 | DUMPBIN=$ac_ct_DUMPBIN |
9c60689e | 5724 | fi |
9c60689e DWT |
5725 | fi |
5726 | ||
a243b558 JF |
5727 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
5728 | *COFF*) | |
5729 | DUMPBIN="$DUMPBIN -symbols" | |
5730 | ;; | |
5731 | *) | |
5732 | DUMPBIN=: | |
5733 | ;; | |
5734 | esac | |
5735 | fi | |
9c60689e | 5736 | |
a243b558 JF |
5737 | if test "$DUMPBIN" != ":"; then |
5738 | NM="$DUMPBIN" | |
5739 | fi | |
5740 | fi | |
5741 | test -z "$NM" && NM=nm | |
9c60689e DWT |
5742 | |
5743 | ||
5744 | ||
5745 | ||
5746 | ||
a243b558 JF |
5747 | |
5748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
5749 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5750 | if ${lt_cv_nm_interface+:} false; then : | |
9c60689e DWT |
5751 | $as_echo_n "(cached) " >&6 |
5752 | else | |
a243b558 JF |
5753 | lt_cv_nm_interface="BSD nm" |
5754 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5755 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
5756 | (eval "$ac_compile" 2>conftest.err) | |
5757 | cat conftest.err >&5 | |
5758 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5759 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5760 | cat conftest.err >&5 | |
5761 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
5762 | cat conftest.out >&5 | |
5763 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5764 | lt_cv_nm_interface="MS dumpbin" | |
9c60689e | 5765 | fi |
a243b558 | 5766 | rm -rf conftest* |
9c60689e | 5767 | fi |
a243b558 JF |
5768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5769 | $as_echo "$lt_cv_nm_interface" >&6; } | |
5770 | ||
5771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5772 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5773 | LN_S=$as_ln_s | |
5774 | if test "$LN_S" = "ln -s"; then | |
5775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5776 | $as_echo "yes" >&6; } | |
9c60689e | 5777 | else |
a243b558 JF |
5778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
5779 | $as_echo "no, using $LN_S" >&6; } | |
9c60689e DWT |
5780 | fi |
5781 | ||
a243b558 JF |
5782 | # find the maximum length of command line arguments |
5783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
5784 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5785 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
9c60689e DWT |
5786 | $as_echo_n "(cached) " >&6 |
5787 | else | |
a243b558 JF |
5788 | i=0 |
5789 | teststring="ABCD" | |
9c60689e | 5790 | |
a243b558 JF |
5791 | case $build_os in |
5792 | msdosdjgpp*) | |
5793 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5794 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5795 | # during glob expansion). Even if it were fixed, the result of this | |
5796 | # check would be larger than it should be. | |
5797 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5798 | ;; | |
9c60689e | 5799 | |
a243b558 JF |
5800 | gnu*) |
5801 | # Under GNU Hurd, this test is not required because there is | |
5802 | # no limit to the length of command line arguments. | |
5803 | # Libtool will interpret -1 as no limit whatsoever | |
5804 | lt_cv_sys_max_cmd_len=-1; | |
5805 | ;; | |
9c60689e | 5806 | |
a243b558 JF |
5807 | cygwin* | mingw* | cegcc*) |
5808 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5809 | # about 5 minutes as the teststring grows exponentially. | |
5810 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5811 | # you end up with a "frozen" computer, even though with patience | |
5812 | # the test eventually succeeds (with a max line length of 256k). | |
5813 | # Instead, let's just punt: use the minimum linelength reported by | |
5814 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5815 | lt_cv_sys_max_cmd_len=8192; | |
5816 | ;; | |
9c60689e | 5817 | |
a243b558 JF |
5818 | mint*) |
5819 | # On MiNT this can take a long time and run out of memory. | |
5820 | lt_cv_sys_max_cmd_len=8192; | |
5821 | ;; | |
9c60689e | 5822 | |
a243b558 JF |
5823 | amigaos*) |
5824 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5825 | # So we just punt and use a minimum line length of 8192. | |
5826 | lt_cv_sys_max_cmd_len=8192; | |
5827 | ;; | |
9c60689e | 5828 | |
a243b558 JF |
5829 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
5830 | # This has been around since 386BSD, at least. Likely further. | |
5831 | if test -x /sbin/sysctl; then | |
5832 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5833 | elif test -x /usr/sbin/sysctl; then | |
5834 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5835 | else | |
5836 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5837 | fi | |
5838 | # And add a safety zone | |
5839 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5840 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5841 | ;; | |
9c60689e | 5842 | |
a243b558 JF |
5843 | interix*) |
5844 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5845 | lt_cv_sys_max_cmd_len=196608 | |
5846 | ;; | |
9c60689e | 5847 | |
a243b558 JF |
5848 | os2*) |
5849 | # The test takes a long time on OS/2. | |
5850 | lt_cv_sys_max_cmd_len=8192 | |
5851 | ;; | |
9c60689e | 5852 | |
a243b558 JF |
5853 | osf*) |
5854 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5855 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5856 | # nice to cause kernel panics so lets avoid the loop below. | |
5857 | # First set a reasonable default. | |
5858 | lt_cv_sys_max_cmd_len=16384 | |
5859 | # | |
5860 | if test -x /sbin/sysconfig; then | |
5861 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5862 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5863 | esac | |
5864 | fi | |
5865 | ;; | |
5866 | sco3.2v5*) | |
5867 | lt_cv_sys_max_cmd_len=102400 | |
5868 | ;; | |
5869 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5870 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5871 | if test -n "$kargmax"; then | |
5872 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5873 | else | |
5874 | lt_cv_sys_max_cmd_len=32768 | |
5875 | fi | |
9c60689e DWT |
5876 | ;; |
5877 | *) | |
a243b558 JF |
5878 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
5879 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
5880 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5881 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5882 | else | |
5883 | # Make teststring a little bigger before we do anything with it. | |
5884 | # a 1K string should be a reasonable start. | |
5885 | for i in 1 2 3 4 5 6 7 8 ; do | |
5886 | teststring=$teststring$teststring | |
5887 | done | |
5888 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5889 | # If test is not a shell built-in, we'll probably end up computing a | |
5890 | # maximum length that is only half of the actual maximum length, but | |
5891 | # we can't tell. | |
5892 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ | |
5893 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
5894 | test $i != 17 # 1/2 MB should be enough | |
5895 | do | |
5896 | i=`expr $i + 1` | |
5897 | teststring=$teststring$teststring | |
5898 | done | |
5899 | # Only check the string length outside the loop. | |
5900 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5901 | teststring= | |
5902 | # Add a significant safety factor because C++ compilers can tack on | |
5903 | # massive amounts of additional arguments before passing them to the | |
5904 | # linker. It appears as though 1/2 is a usable value. | |
5905 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5906 | fi | |
9c60689e DWT |
5907 | ;; |
5908 | esac | |
ee134472 | 5909 | |
a243b558 | 5910 | fi |
ee134472 | 5911 | |
a243b558 JF |
5912 | if test -n $lt_cv_sys_max_cmd_len ; then |
5913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
5914 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
5915 | else | |
5916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
5917 | $as_echo "none" >&6; } | |
5918 | fi | |
5919 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
ee134472 JF |
5920 | |
5921 | ||
9c60689e DWT |
5922 | |
5923 | ||
5924 | ||
5925 | ||
a243b558 JF |
5926 | : ${CP="cp -f"} |
5927 | : ${MV="mv -f"} | |
5928 | : ${RM="rm -f"} | |
9c60689e | 5929 | |
a243b558 JF |
5930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
5931 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
5932 | # Try some XSI features | |
5933 | xsi_shell=no | |
5934 | ( _lt_dummy="a/b/c" | |
5935 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | |
5936 | = c,a/b,b/c, \ | |
5937 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5938 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
5939 | && xsi_shell=yes | |
5940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
5941 | $as_echo "$xsi_shell" >&6; } | |
9c60689e DWT |
5942 | |
5943 | ||
a243b558 JF |
5944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
5945 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
5946 | lt_shell_append=no | |
5947 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5948 | >/dev/null 2>&1 \ | |
5949 | && lt_shell_append=yes | |
5950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
5951 | $as_echo "$lt_shell_append" >&6; } | |
9c60689e DWT |
5952 | |
5953 | ||
a243b558 JF |
5954 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
5955 | lt_unset=unset | |
5956 | else | |
5957 | lt_unset=false | |
5958 | fi | |
9c60689e DWT |
5959 | |
5960 | ||
5961 | ||
5962 | ||
5963 | ||
a243b558 JF |
5964 | # test EBCDIC or ASCII |
5965 | case `echo X|tr X '\101'` in | |
5966 | A) # ASCII based system | |
5967 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5968 | lt_SP2NL='tr \040 \012' | |
5969 | lt_NL2SP='tr \015\012 \040\040' | |
5970 | ;; | |
5971 | *) # EBCDIC based system | |
5972 | lt_SP2NL='tr \100 \n' | |
5973 | lt_NL2SP='tr \r\n \100\100' | |
5974 | ;; | |
5975 | esac | |
9c60689e DWT |
5976 | |
5977 | ||
5978 | ||
5979 | ||
5980 | ||
5981 | ||
5982 | ||
5983 | ||
5984 | ||
a243b558 JF |
5985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
5986 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
5987 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
5988 | $as_echo_n "(cached) " >&6 | |
5989 | else | |
5990 | case $host in | |
5991 | *-*-mingw* ) | |
5992 | case $build in | |
5993 | *-*-mingw* ) # actually msys | |
5994 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
5995 | ;; | |
5996 | *-*-cygwin* ) | |
5997 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
5998 | ;; | |
5999 | * ) # otherwise, assume *nix | |
6000 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
6001 | ;; | |
6002 | esac | |
6003 | ;; | |
6004 | *-*-cygwin* ) | |
6005 | case $build in | |
6006 | *-*-mingw* ) # actually msys | |
6007 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
6008 | ;; | |
6009 | *-*-cygwin* ) | |
6010 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6011 | ;; | |
6012 | * ) # otherwise, assume *nix | |
6013 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
6014 | ;; | |
6015 | esac | |
6016 | ;; | |
6017 | * ) # unhandled hosts (and "normal" native builds) | |
6018 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6019 | ;; | |
6020 | esac | |
9c60689e | 6021 | |
a243b558 | 6022 | fi |
9c60689e | 6023 | |
a243b558 JF |
6024 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
6025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
6026 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
9c60689e DWT |
6027 | |
6028 | ||
6029 | ||
6030 | ||
6031 | ||
a243b558 JF |
6032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
6033 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
6034 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
6035 | $as_echo_n "(cached) " >&6 | |
6036 | else | |
6037 | #assume ordinary cross tools, or native build. | |
6038 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
6039 | case $host in | |
6040 | *-*-mingw* ) | |
6041 | case $build in | |
6042 | *-*-mingw* ) # actually msys | |
6043 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
6044 | ;; | |
6045 | esac | |
6046 | ;; | |
6047 | esac | |
9c60689e | 6048 | |
a243b558 | 6049 | fi |
9c60689e | 6050 | |
a243b558 JF |
6051 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
6052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
6053 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
9c60689e | 6054 | |
9c60689e | 6055 | |
9c60689e | 6056 | |
9c60689e DWT |
6057 | |
6058 | ||
a243b558 JF |
6059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
6060 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6061 | if ${lt_cv_ld_reload_flag+:} false; then : | |
9c60689e DWT |
6062 | $as_echo_n "(cached) " >&6 |
6063 | else | |
a243b558 JF |
6064 | lt_cv_ld_reload_flag='-r' |
6065 | fi | |
6066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
6067 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6068 | reload_flag=$lt_cv_ld_reload_flag | |
6069 | case $reload_flag in | |
6070 | "" | " "*) ;; | |
6071 | *) reload_flag=" $reload_flag" ;; | |
6072 | esac | |
6073 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
9c60689e | 6074 | case $host_os in |
a243b558 JF |
6075 | cygwin* | mingw* | pw32* | cegcc*) |
6076 | if test "$GCC" != yes; then | |
6077 | reload_cmds=false | |
6078 | fi | |
6079 | ;; | |
6080 | darwin*) | |
6081 | if test "$GCC" = yes; then | |
6082 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6083 | else | |
6084 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6085 | fi | |
6086 | ;; | |
9c60689e DWT |
6087 | esac |
6088 | ||
9c60689e | 6089 | |
9c60689e | 6090 | |
9c60689e | 6091 | |
9c60689e | 6092 | |
9c60689e | 6093 | |
9c60689e | 6094 | |
9c60689e | 6095 | |
9c60689e | 6096 | |
a243b558 JF |
6097 | if test -n "$ac_tool_prefix"; then |
6098 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6099 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
6100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6101 | $as_echo_n "checking for $ac_word... " >&6; } | |
6102 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
6103 | $as_echo_n "(cached) " >&6 | |
6104 | else | |
6105 | if test -n "$OBJDUMP"; then | |
6106 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
6107 | else | |
6108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6109 | for as_dir in $PATH | |
6110 | do | |
6111 | IFS=$as_save_IFS | |
6112 | test -z "$as_dir" && as_dir=. | |
6113 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6114 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6115 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
6116 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6117 | break 2 | |
6118 | fi | |
6119 | done | |
6120 | done | |
6121 | IFS=$as_save_IFS | |
9c60689e | 6122 | |
a243b558 JF |
6123 | fi |
6124 | fi | |
6125 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
6126 | if test -n "$OBJDUMP"; then | |
6127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
6128 | $as_echo "$OBJDUMP" >&6; } | |
6129 | else | |
6130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6131 | $as_echo "no" >&6; } | |
6132 | fi | |
9c60689e | 6133 | |
9c60689e | 6134 | |
a243b558 JF |
6135 | fi |
6136 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
6137 | ac_ct_OBJDUMP=$OBJDUMP | |
6138 | # Extract the first word of "objdump", so it can be a program name with args. | |
6139 | set dummy objdump; ac_word=$2 | |
6140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6141 | $as_echo_n "checking for $ac_word... " >&6; } | |
6142 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
6143 | $as_echo_n "(cached) " >&6 | |
6144 | else | |
6145 | if test -n "$ac_ct_OBJDUMP"; then | |
6146 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6147 | else | |
6148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6149 | for as_dir in $PATH | |
6150 | do | |
6151 | IFS=$as_save_IFS | |
6152 | test -z "$as_dir" && as_dir=. | |
6153 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6154 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6155 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
6156 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6157 | break 2 | |
9c60689e DWT |
6158 | fi |
6159 | done | |
a243b558 JF |
6160 | done |
6161 | IFS=$as_save_IFS | |
9c60689e DWT |
6162 | |
6163 | fi | |
9c60689e | 6164 | fi |
a243b558 JF |
6165 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
6166 | if test -n "$ac_ct_OBJDUMP"; then | |
6167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
6168 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
9c60689e | 6169 | else |
a243b558 JF |
6170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6171 | $as_echo "no" >&6; } | |
9c60689e DWT |
6172 | fi |
6173 | ||
a243b558 JF |
6174 | if test "x$ac_ct_OBJDUMP" = x; then |
6175 | OBJDUMP="false" | |
6176 | else | |
6177 | case $cross_compiling:$ac_tool_warned in | |
6178 | yes:) | |
6179 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6180 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6181 | ac_tool_warned=yes ;; | |
6182 | esac | |
6183 | OBJDUMP=$ac_ct_OBJDUMP | |
6184 | fi | |
6185 | else | |
6186 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
ee134472 JF |
6187 | fi |
6188 | ||
a243b558 | 6189 | test -z "$OBJDUMP" && OBJDUMP=objdump |
ee134472 JF |
6190 | |
6191 | ||
6192 | ||
6193 | ||
6194 | ||
6195 | ||
6196 | ||
6197 | ||
6198 | ||
a243b558 JF |
6199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
6200 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6201 | if ${lt_cv_deplibs_check_method+:} false; then : | |
6202 | $as_echo_n "(cached) " >&6 | |
6203 | else | |
6204 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6205 | lt_cv_file_magic_test_file= | |
6206 | lt_cv_deplibs_check_method='unknown' | |
6207 | # Need to set the preceding variable on all platforms that support | |
6208 | # interlibrary dependencies. | |
6209 | # 'none' -- dependencies not supported. | |
6210 | # `unknown' -- same as none, but documents that we really don't know. | |
6211 | # 'pass_all' -- all dependencies passed with no checks. | |
6212 | # 'test_compile' -- check by making test program. | |
6213 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6214 | # which responds to the $file_magic_cmd with a given extended regex. | |
6215 | # If you have `file' or equivalent on your system and you're not sure | |
6216 | # whether `pass_all' will *always* work, you probably want this one. | |
9c60689e | 6217 | |
a243b558 JF |
6218 | case $host_os in |
6219 | aix[4-9]*) | |
6220 | lt_cv_deplibs_check_method=pass_all | |
6221 | ;; | |
9c60689e | 6222 | |
a243b558 JF |
6223 | beos*) |
6224 | lt_cv_deplibs_check_method=pass_all | |
6225 | ;; | |
9c60689e | 6226 | |
a243b558 JF |
6227 | bsdi[45]*) |
6228 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6229 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6230 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6231 | ;; | |
9c60689e | 6232 | |
a243b558 JF |
6233 | cygwin*) |
6234 | # func_win32_libid is a shell function defined in ltmain.sh | |
6235 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6236 | lt_cv_file_magic_cmd='func_win32_libid' | |
6237 | ;; | |
9c60689e | 6238 | |
a243b558 JF |
6239 | mingw* | pw32*) |
6240 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6241 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6242 | # unless we find 'file', for example because we are cross-compiling. | |
6243 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
6244 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
6245 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6246 | lt_cv_file_magic_cmd='func_win32_libid' | |
6247 | else | |
6248 | # Keep this pattern in sync with the one in func_win32_libid. | |
6249 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
6250 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6251 | fi | |
6252 | ;; | |
9c60689e | 6253 | |
a243b558 JF |
6254 | cegcc*) |
6255 | # use the weaker test based on 'objdump'. See mingw*. | |
6256 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6257 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6258 | ;; | |
9c60689e | 6259 | |
a243b558 JF |
6260 | darwin* | rhapsody*) |
6261 | lt_cv_deplibs_check_method=pass_all | |
6262 | ;; | |
9c60689e | 6263 | |
a243b558 JF |
6264 | freebsd* | dragonfly*) |
6265 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6266 | case $host_cpu in | |
6267 | i*86 ) | |
6268 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6269 | # Let's accept both of them until this is cleared up. | |
6270 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6271 | lt_cv_file_magic_cmd=/usr/bin/file | |
6272 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6273 | ;; | |
6274 | esac | |
6275 | else | |
6276 | lt_cv_deplibs_check_method=pass_all | |
6277 | fi | |
6278 | ;; | |
9c60689e | 6279 | |
a243b558 JF |
6280 | gnu*) |
6281 | lt_cv_deplibs_check_method=pass_all | |
6282 | ;; | |
9c60689e | 6283 | |
a243b558 JF |
6284 | haiku*) |
6285 | lt_cv_deplibs_check_method=pass_all | |
6286 | ;; | |
9c60689e | 6287 | |
a243b558 JF |
6288 | hpux10.20* | hpux11*) |
6289 | lt_cv_file_magic_cmd=/usr/bin/file | |
6290 | case $host_cpu in | |
6291 | ia64*) | |
6292 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6293 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6294 | ;; | |
6295 | hppa*64*) | |
6296 | 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]' | |
6297 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6298 | ;; | |
6299 | *) | |
6300 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6301 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6302 | ;; | |
6303 | esac | |
6304 | ;; | |
9c60689e | 6305 | |
a243b558 JF |
6306 | interix[3-9]*) |
6307 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6308 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6309 | ;; | |
9c60689e | 6310 | |
a243b558 JF |
6311 | irix5* | irix6* | nonstopux*) |
6312 | case $LD in | |
6313 | *-32|*"-32 ") libmagic=32-bit;; | |
6314 | *-n32|*"-n32 ") libmagic=N32;; | |
6315 | *-64|*"-64 ") libmagic=64-bit;; | |
6316 | *) libmagic=never-match;; | |
6317 | esac | |
6318 | lt_cv_deplibs_check_method=pass_all | |
6319 | ;; | |
9c60689e | 6320 | |
a243b558 JF |
6321 | # This must be glibc/ELF. |
6322 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
6323 | lt_cv_deplibs_check_method=pass_all | |
6324 | ;; | |
9c60689e | 6325 | |
a243b558 JF |
6326 | netbsd*) |
6327 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6328 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6329 | else | |
6330 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6331 | fi | |
6332 | ;; | |
9c60689e | 6333 | |
a243b558 JF |
6334 | newos6*) |
6335 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6336 | lt_cv_file_magic_cmd=/usr/bin/file | |
6337 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6338 | ;; | |
9c60689e | 6339 | |
a243b558 JF |
6340 | *nto* | *qnx*) |
6341 | lt_cv_deplibs_check_method=pass_all | |
6342 | ;; | |
9c60689e | 6343 | |
a243b558 JF |
6344 | openbsd*) |
6345 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6346 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6347 | else | |
6348 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6349 | fi | |
6350 | ;; | |
9c60689e | 6351 | |
a243b558 JF |
6352 | osf3* | osf4* | osf5*) |
6353 | lt_cv_deplibs_check_method=pass_all | |
6354 | ;; | |
9c60689e | 6355 | |
a243b558 JF |
6356 | rdos*) |
6357 | lt_cv_deplibs_check_method=pass_all | |
9c60689e | 6358 | ;; |
a243b558 JF |
6359 | |
6360 | solaris*) | |
6361 | lt_cv_deplibs_check_method=pass_all | |
9c60689e DWT |
6362 | ;; |
6363 | ||
a243b558 JF |
6364 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
6365 | lt_cv_deplibs_check_method=pass_all | |
9c60689e DWT |
6366 | ;; |
6367 | ||
a243b558 JF |
6368 | sysv4 | sysv4.3*) |
6369 | case $host_vendor in | |
6370 | motorola) | |
6371 | 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]' | |
6372 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6373 | ;; | |
6374 | ncr) | |
6375 | lt_cv_deplibs_check_method=pass_all | |
6376 | ;; | |
6377 | sequent) | |
6378 | lt_cv_file_magic_cmd='/bin/file' | |
6379 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6380 | ;; | |
6381 | sni) | |
6382 | lt_cv_file_magic_cmd='/bin/file' | |
6383 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6384 | lt_cv_file_magic_test_file=/lib/libc.so | |
6385 | ;; | |
6386 | siemens) | |
6387 | lt_cv_deplibs_check_method=pass_all | |
6388 | ;; | |
6389 | pc) | |
6390 | lt_cv_deplibs_check_method=pass_all | |
6391 | ;; | |
6392 | esac | |
6393 | ;; | |
9c60689e | 6394 | |
a243b558 JF |
6395 | tpf*) |
6396 | lt_cv_deplibs_check_method=pass_all | |
6397 | ;; | |
6398 | esac | |
9c60689e | 6399 | |
a243b558 JF |
6400 | fi |
6401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6402 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
9c60689e | 6403 | |
a243b558 JF |
6404 | file_magic_glob= |
6405 | want_nocaseglob=no | |
6406 | if test "$build" = "$host"; then | |
6407 | case $host_os in | |
6408 | mingw* | pw32*) | |
6409 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
6410 | want_nocaseglob=yes | |
6411 | else | |
6412 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
6413 | fi | |
6414 | ;; | |
6415 | esac | |
9c60689e | 6416 | fi |
9c60689e | 6417 | |
a243b558 JF |
6418 | file_magic_cmd=$lt_cv_file_magic_cmd |
6419 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6420 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6421 | ||
6422 | ||
6423 | ||
6424 | ||
6425 | ||
6426 | ||
6427 | ||
6428 | ||
6429 | ||
6430 | ||
6431 | ||
6432 | ||
6433 | ||
6434 | ||
6435 | ||
6436 | ||
6437 | ||
6438 | ||
6439 | ||
6440 | ||
9c60689e | 6441 | |
9c60689e | 6442 | |
ee134472 | 6443 | if test -n "$ac_tool_prefix"; then |
a243b558 JF |
6444 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
6445 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
ee134472 JF |
6446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6447 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6448 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
ee134472 JF |
6449 | $as_echo_n "(cached) " >&6 |
6450 | else | |
a243b558 JF |
6451 | if test -n "$DLLTOOL"; then |
6452 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ee134472 JF |
6453 | else |
6454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6455 | for as_dir in $PATH | |
6456 | do | |
6457 | IFS=$as_save_IFS | |
6458 | test -z "$as_dir" && as_dir=. | |
6459 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6460 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6461 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
ee134472 JF |
6462 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6463 | break 2 | |
6464 | fi | |
6465 | done | |
6466 | done | |
6467 | IFS=$as_save_IFS | |
6468 | ||
6469 | fi | |
6470 | fi | |
a243b558 JF |
6471 | DLLTOOL=$ac_cv_prog_DLLTOOL |
6472 | if test -n "$DLLTOOL"; then | |
6473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
6474 | $as_echo "$DLLTOOL" >&6; } | |
ee134472 JF |
6475 | else |
6476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6477 | $as_echo "no" >&6; } | |
6478 | fi | |
6479 | ||
6480 | ||
6481 | fi | |
a243b558 JF |
6482 | if test -z "$ac_cv_prog_DLLTOOL"; then |
6483 | ac_ct_DLLTOOL=$DLLTOOL | |
6484 | # Extract the first word of "dlltool", so it can be a program name with args. | |
6485 | set dummy dlltool; ac_word=$2 | |
ee134472 JF |
6486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6487 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6488 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
ee134472 JF |
6489 | $as_echo_n "(cached) " >&6 |
6490 | else | |
a243b558 JF |
6491 | if test -n "$ac_ct_DLLTOOL"; then |
6492 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
ee134472 JF |
6493 | else |
6494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6495 | for as_dir in $PATH | |
6496 | do | |
6497 | IFS=$as_save_IFS | |
6498 | test -z "$as_dir" && as_dir=. | |
6499 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6500 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6501 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
ee134472 JF |
6502 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6503 | break 2 | |
6504 | fi | |
6505 | done | |
6506 | done | |
6507 | IFS=$as_save_IFS | |
6508 | ||
6509 | fi | |
6510 | fi | |
a243b558 JF |
6511 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
6512 | if test -n "$ac_ct_DLLTOOL"; then | |
6513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
6514 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
ee134472 JF |
6515 | else |
6516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6517 | $as_echo "no" >&6; } | |
6518 | fi | |
6519 | ||
a243b558 JF |
6520 | if test "x$ac_ct_DLLTOOL" = x; then |
6521 | DLLTOOL="false" | |
ee134472 JF |
6522 | else |
6523 | case $cross_compiling:$ac_tool_warned in | |
6524 | yes:) | |
6525 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6526 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6527 | ac_tool_warned=yes ;; | |
6528 | esac | |
a243b558 | 6529 | DLLTOOL=$ac_ct_DLLTOOL |
ee134472 JF |
6530 | fi |
6531 | else | |
a243b558 | 6532 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
ee134472 JF |
6533 | fi |
6534 | ||
a243b558 JF |
6535 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
6536 | ||
6537 | ||
6538 | ||
6539 | ||
6540 | ||
6541 | ||
6542 | ||
6543 | ||
6544 | ||
6545 | ||
6546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
6547 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
6548 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
ee134472 JF |
6549 | $as_echo_n "(cached) " >&6 |
6550 | else | |
a243b558 JF |
6551 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
6552 | ||
6553 | case $host_os in | |
6554 | cygwin* | mingw* | pw32* | cegcc*) | |
6555 | # two different shell functions defined in ltmain.sh | |
6556 | # decide which to use based on capabilities of $DLLTOOL | |
6557 | case `$DLLTOOL --help 2>&1` in | |
6558 | *--identify-strict*) | |
6559 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
6560 | ;; | |
6561 | *) | |
6562 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
6563 | ;; | |
6564 | esac | |
6565 | ;; | |
6566 | *) | |
6567 | # fallback: assume linklib IS sharedlib | |
6568 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" | |
6569 | ;; | |
6570 | esac | |
6571 | ||
ee134472 | 6572 | fi |
a243b558 JF |
6573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
6574 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
6575 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
6576 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
ee134472 JF |
6577 | |
6578 | ||
6579 | ||
6580 | ||
6581 | ||
9c60689e | 6582 | |
a243b558 JF |
6583 | |
6584 | if test -n "$ac_tool_prefix"; then | |
6585 | for ac_prog in ar | |
6586 | do | |
6587 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6588 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
9c60689e DWT |
6589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6590 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6591 | if ${ac_cv_prog_AR+:} false; then : |
9c60689e DWT |
6592 | $as_echo_n "(cached) " >&6 |
6593 | else | |
a243b558 JF |
6594 | if test -n "$AR"; then |
6595 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9c60689e DWT |
6596 | else |
6597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6598 | for as_dir in $PATH | |
6599 | do | |
6600 | IFS=$as_save_IFS | |
6601 | test -z "$as_dir" && as_dir=. | |
6602 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6603 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6604 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
9c60689e DWT |
6605 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6606 | break 2 | |
6607 | fi | |
6608 | done | |
6609 | done | |
6610 | IFS=$as_save_IFS | |
6611 | ||
6612 | fi | |
6613 | fi | |
a243b558 JF |
6614 | AR=$ac_cv_prog_AR |
6615 | if test -n "$AR"; then | |
6616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6617 | $as_echo "$AR" >&6; } | |
9c60689e DWT |
6618 | else |
6619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6620 | $as_echo "no" >&6; } | |
6621 | fi | |
6622 | ||
6623 | ||
a243b558 JF |
6624 | test -n "$AR" && break |
6625 | done | |
9c60689e | 6626 | fi |
a243b558 JF |
6627 | if test -z "$AR"; then |
6628 | ac_ct_AR=$AR | |
6629 | for ac_prog in ar | |
6630 | do | |
6631 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6632 | set dummy $ac_prog; ac_word=$2 | |
9c60689e DWT |
6633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6634 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6635 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
9c60689e DWT |
6636 | $as_echo_n "(cached) " >&6 |
6637 | else | |
a243b558 JF |
6638 | if test -n "$ac_ct_AR"; then |
6639 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
9c60689e DWT |
6640 | else |
6641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6642 | for as_dir in $PATH | |
6643 | do | |
6644 | IFS=$as_save_IFS | |
6645 | test -z "$as_dir" && as_dir=. | |
6646 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6647 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6648 | ac_cv_prog_ac_ct_AR="$ac_prog" |
9c60689e DWT |
6649 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6650 | break 2 | |
6651 | fi | |
6652 | done | |
6653 | done | |
6654 | IFS=$as_save_IFS | |
6655 | ||
6656 | fi | |
6657 | fi | |
a243b558 JF |
6658 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6659 | if test -n "$ac_ct_AR"; then | |
6660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6661 | $as_echo "$ac_ct_AR" >&6; } | |
9c60689e DWT |
6662 | else |
6663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6664 | $as_echo "no" >&6; } | |
6665 | fi | |
6666 | ||
a243b558 JF |
6667 | |
6668 | test -n "$ac_ct_AR" && break | |
6669 | done | |
6670 | ||
6671 | if test "x$ac_ct_AR" = x; then | |
6672 | AR="false" | |
9c60689e DWT |
6673 | else |
6674 | case $cross_compiling:$ac_tool_warned in | |
6675 | yes:) | |
6676 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6677 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6678 | ac_tool_warned=yes ;; | |
6679 | esac | |
a243b558 | 6680 | AR=$ac_ct_AR |
9c60689e | 6681 | fi |
a243b558 JF |
6682 | fi |
6683 | ||
6684 | : ${AR=ar} | |
6685 | : ${AR_FLAGS=cru} | |
6686 | ||
6687 | ||
6688 | ||
6689 | ||
6690 | ||
6691 | ||
6692 | ||
6693 | ||
6694 | ||
6695 | ||
6696 | ||
6697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
6698 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
6699 | if ${lt_cv_ar_at_file+:} false; then : | |
6700 | $as_echo_n "(cached) " >&6 | |
9c60689e | 6701 | else |
a243b558 JF |
6702 | lt_cv_ar_at_file=no |
6703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6704 | /* end confdefs.h. */ | |
6705 | ||
6706 | int | |
6707 | main () | |
6708 | { | |
6709 | ||
6710 | ; | |
6711 | return 0; | |
6712 | } | |
6713 | _ACEOF | |
6714 | if ac_fn_c_try_compile "$LINENO"; then : | |
6715 | echo conftest.$ac_objext > conftest.lst | |
6716 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
6717 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6718 | (eval $lt_ar_try) 2>&5 | |
6719 | ac_status=$? | |
6720 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6721 | test $ac_status = 0; } | |
6722 | if test "$ac_status" -eq 0; then | |
6723 | # Ensure the archiver fails upon bogus file names. | |
6724 | rm -f conftest.$ac_objext libconftest.a | |
6725 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6726 | (eval $lt_ar_try) 2>&5 | |
6727 | ac_status=$? | |
6728 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6729 | test $ac_status = 0; } | |
6730 | if test "$ac_status" -ne 0; then | |
6731 | lt_cv_ar_at_file=@ | |
6732 | fi | |
6733 | fi | |
6734 | rm -f conftest.* libconftest.a | |
6735 | ||
9c60689e | 6736 | fi |
a243b558 | 6737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9c60689e | 6738 | |
a243b558 JF |
6739 | fi |
6740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
6741 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
6742 | ||
6743 | if test "x$lt_cv_ar_at_file" = xno; then | |
6744 | archiver_list_spec= | |
6745 | else | |
6746 | archiver_list_spec=$lt_cv_ar_at_file | |
6747 | fi | |
6748 | ||
6749 | ||
6750 | ||
6751 | ||
6752 | ||
6753 | ||
6754 | ||
6755 | if test -n "$ac_tool_prefix"; then | |
6756 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6757 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
9c60689e DWT |
6758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6759 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6760 | if ${ac_cv_prog_STRIP+:} false; then : |
9c60689e DWT |
6761 | $as_echo_n "(cached) " >&6 |
6762 | else | |
a243b558 JF |
6763 | if test -n "$STRIP"; then |
6764 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9c60689e DWT |
6765 | else |
6766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6767 | for as_dir in $PATH | |
6768 | do | |
6769 | IFS=$as_save_IFS | |
6770 | test -z "$as_dir" && as_dir=. | |
6771 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6772 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6773 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
9c60689e DWT |
6774 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6775 | break 2 | |
6776 | fi | |
6777 | done | |
6778 | done | |
6779 | IFS=$as_save_IFS | |
6780 | ||
6781 | fi | |
6782 | fi | |
a243b558 JF |
6783 | STRIP=$ac_cv_prog_STRIP |
6784 | if test -n "$STRIP"; then | |
6785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6786 | $as_echo "$STRIP" >&6; } | |
9c60689e DWT |
6787 | else |
6788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6789 | $as_echo "no" >&6; } | |
6790 | fi | |
6791 | ||
6792 | ||
6793 | fi | |
a243b558 JF |
6794 | if test -z "$ac_cv_prog_STRIP"; then |
6795 | ac_ct_STRIP=$STRIP | |
6796 | # Extract the first word of "strip", so it can be a program name with args. | |
6797 | set dummy strip; ac_word=$2 | |
9c60689e DWT |
6798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6799 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6800 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
9c60689e DWT |
6801 | $as_echo_n "(cached) " >&6 |
6802 | else | |
a243b558 JF |
6803 | if test -n "$ac_ct_STRIP"; then |
6804 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
9c60689e DWT |
6805 | else |
6806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6807 | for as_dir in $PATH | |
6808 | do | |
6809 | IFS=$as_save_IFS | |
6810 | test -z "$as_dir" && as_dir=. | |
6811 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6812 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6813 | ac_cv_prog_ac_ct_STRIP="strip" |
9c60689e DWT |
6814 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6815 | break 2 | |
6816 | fi | |
6817 | done | |
6818 | done | |
6819 | IFS=$as_save_IFS | |
6820 | ||
6821 | fi | |
6822 | fi | |
a243b558 JF |
6823 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6824 | if test -n "$ac_ct_STRIP"; then | |
6825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6826 | $as_echo "$ac_ct_STRIP" >&6; } | |
9c60689e DWT |
6827 | else |
6828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6829 | $as_echo "no" >&6; } | |
6830 | fi | |
6831 | ||
a243b558 JF |
6832 | if test "x$ac_ct_STRIP" = x; then |
6833 | STRIP=":" | |
9c60689e DWT |
6834 | else |
6835 | case $cross_compiling:$ac_tool_warned in | |
6836 | yes:) | |
6837 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6838 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6839 | ac_tool_warned=yes ;; | |
6840 | esac | |
a243b558 | 6841 | STRIP=$ac_ct_STRIP |
9c60689e DWT |
6842 | fi |
6843 | else | |
a243b558 | 6844 | STRIP="$ac_cv_prog_STRIP" |
9c60689e DWT |
6845 | fi |
6846 | ||
a243b558 JF |
6847 | test -z "$STRIP" && STRIP=: |
6848 | ||
6849 | ||
6850 | ||
6851 | ||
6852 | ||
6853 | ||
6854 | if test -n "$ac_tool_prefix"; then | |
6855 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6856 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
9c60689e DWT |
6857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6858 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6859 | if ${ac_cv_prog_RANLIB+:} false; then : |
9c60689e DWT |
6860 | $as_echo_n "(cached) " >&6 |
6861 | else | |
a243b558 JF |
6862 | if test -n "$RANLIB"; then |
6863 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9c60689e DWT |
6864 | else |
6865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6866 | for as_dir in $PATH | |
6867 | do | |
6868 | IFS=$as_save_IFS | |
6869 | test -z "$as_dir" && as_dir=. | |
6870 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6871 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6872 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
9c60689e DWT |
6873 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6874 | break 2 | |
6875 | fi | |
6876 | done | |
6877 | done | |
6878 | IFS=$as_save_IFS | |
6879 | ||
6880 | fi | |
6881 | fi | |
a243b558 JF |
6882 | RANLIB=$ac_cv_prog_RANLIB |
6883 | if test -n "$RANLIB"; then | |
6884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6885 | $as_echo "$RANLIB" >&6; } | |
9c60689e DWT |
6886 | else |
6887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6888 | $as_echo "no" >&6; } | |
6889 | fi | |
6890 | ||
6891 | ||
6892 | fi | |
a243b558 JF |
6893 | if test -z "$ac_cv_prog_RANLIB"; then |
6894 | ac_ct_RANLIB=$RANLIB | |
6895 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6896 | set dummy ranlib; ac_word=$2 | |
9c60689e DWT |
6897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6898 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 6899 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
9c60689e DWT |
6900 | $as_echo_n "(cached) " >&6 |
6901 | else | |
a243b558 JF |
6902 | if test -n "$ac_ct_RANLIB"; then |
6903 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
9c60689e DWT |
6904 | else |
6905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6906 | for as_dir in $PATH | |
6907 | do | |
6908 | IFS=$as_save_IFS | |
6909 | test -z "$as_dir" && as_dir=. | |
6910 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 6911 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 6912 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
9c60689e DWT |
6913 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6914 | break 2 | |
6915 | fi | |
6916 | done | |
6917 | done | |
6918 | IFS=$as_save_IFS | |
6919 | ||
6920 | fi | |
6921 | fi | |
a243b558 JF |
6922 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6923 | if test -n "$ac_ct_RANLIB"; then | |
6924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6925 | $as_echo "$ac_ct_RANLIB" >&6; } | |
9c60689e DWT |
6926 | else |
6927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6928 | $as_echo "no" >&6; } | |
6929 | fi | |
6930 | ||
a243b558 JF |
6931 | if test "x$ac_ct_RANLIB" = x; then |
6932 | RANLIB=":" | |
9c60689e DWT |
6933 | else |
6934 | case $cross_compiling:$ac_tool_warned in | |
6935 | yes:) | |
6936 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6937 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6938 | ac_tool_warned=yes ;; | |
6939 | esac | |
a243b558 | 6940 | RANLIB=$ac_ct_RANLIB |
9c60689e DWT |
6941 | fi |
6942 | else | |
a243b558 | 6943 | RANLIB="$ac_cv_prog_RANLIB" |
9c60689e DWT |
6944 | fi |
6945 | ||
a243b558 JF |
6946 | test -z "$RANLIB" && RANLIB=: |
6947 | ||
6948 | ||
9c60689e | 6949 | |
9c60689e DWT |
6950 | |
6951 | ||
a243b558 JF |
6952 | |
6953 | # Determine commands to create old-style static archives. | |
6954 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
6955 | old_postinstall_cmds='chmod 644 $oldlib' | |
6956 | old_postuninstall_cmds= | |
6957 | ||
6958 | if test -n "$RANLIB"; then | |
6959 | case $host_os in | |
6960 | openbsd*) | |
6961 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |
6962 | ;; | |
6963 | *) | |
6964 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
6965 | ;; | |
6966 | esac | |
6967 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
9c60689e DWT |
6968 | fi |
6969 | ||
a243b558 JF |
6970 | case $host_os in |
6971 | darwin*) | |
6972 | lock_old_archive_extraction=yes ;; | |
6973 | *) | |
6974 | lock_old_archive_extraction=no ;; | |
9c60689e | 6975 | esac |
9c60689e | 6976 | |
9c60689e | 6977 | |
9c60689e DWT |
6978 | |
6979 | ||
9c60689e | 6980 | |
9c60689e | 6981 | |
9c60689e DWT |
6982 | |
6983 | ||
6984 | ||
6985 | ||
6986 | ||
6987 | ||
6988 | ||
6989 | ||
6990 | ||
6991 | ||
6992 | ||
6993 | ||
6994 | ||
6995 | ||
6996 | ||
6997 | ||
6998 | ||
6999 | ||
7000 | ||
7001 | ||
7002 | ||
7003 | ||
7004 | ||
7005 | ||
7006 | ||
7007 | ||
7008 | ||
53ba6704 | 7009 | |
9c60689e | 7010 | |
9c60689e | 7011 | |
9c60689e | 7012 | |
53ba6704 | 7013 | |
a243b558 JF |
7014 | |
7015 | # If no C compiler was specified, use CC. | |
7016 | LTCC=${LTCC-"$CC"} | |
7017 | ||
7018 | # If no C compiler flags were specified, use CFLAGS. | |
7019 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7020 | ||
7021 | # Allow CC to be a program name with arguments. | |
7022 | compiler=$CC | |
7023 | ||
7024 | ||
7025 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
7026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
7027 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
7028 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
ee134472 JF |
7029 | $as_echo_n "(cached) " >&6 |
7030 | else | |
ee134472 | 7031 | |
a243b558 JF |
7032 | # These are sane defaults that work on at least a few old systems. |
7033 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
9c60689e | 7034 | |
a243b558 JF |
7035 | # Character class describing NM global symbol codes. |
7036 | symcode='[BCDEGRST]' | |
9c60689e | 7037 | |
a243b558 JF |
7038 | # Regexp to match symbols that can be accessed directly from C. |
7039 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
9c60689e | 7040 | |
a243b558 JF |
7041 | # Define system-specific variables. |
7042 | case $host_os in | |
7043 | aix*) | |
7044 | symcode='[BCDT]' | |
7045 | ;; | |
7046 | cygwin* | mingw* | pw32* | cegcc*) | |
7047 | symcode='[ABCDGISTW]' | |
7048 | ;; | |
7049 | hpux*) | |
7050 | if test "$host_cpu" = ia64; then | |
7051 | symcode='[ABCDEGRST]' | |
7052 | fi | |
7053 | ;; | |
7054 | irix* | nonstopux*) | |
7055 | symcode='[BCDEGRST]' | |
7056 | ;; | |
7057 | osf*) | |
7058 | symcode='[BCDEGQRST]' | |
7059 | ;; | |
7060 | solaris*) | |
7061 | symcode='[BDRT]' | |
7062 | ;; | |
7063 | sco3.2v5*) | |
7064 | symcode='[DT]' | |
7065 | ;; | |
7066 | sysv4.2uw2*) | |
7067 | symcode='[DT]' | |
7068 | ;; | |
7069 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7070 | symcode='[ABDT]' | |
7071 | ;; | |
7072 | sysv4) | |
7073 | symcode='[DFNSTU]' | |
7074 | ;; | |
7075 | esac | |
9c60689e | 7076 | |
a243b558 JF |
7077 | # If we're using GNU nm, then use its standard symbol codes. |
7078 | case `$NM -V 2>&1` in | |
7079 | *GNU* | *'with BFD'*) | |
7080 | symcode='[ABCDGIRSTW]' ;; | |
7081 | esac | |
9c60689e | 7082 | |
a243b558 JF |
7083 | # Transform an extracted symbol line into a proper C declaration. |
7084 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7085 | # so use this general approach. | |
7086 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
9c60689e | 7087 | |
a243b558 JF |
7088 | # Transform an extracted symbol line into symbol name and symbol address |
7089 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
7090 | 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 | 7091 | |
a243b558 JF |
7092 | # Handle CRLF in mingw tool chain |
7093 | opt_cr= | |
7094 | case $build_os in | |
7095 | mingw*) | |
7096 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7097 | ;; | |
7098 | esac | |
9c60689e | 7099 | |
a243b558 JF |
7100 | # Try without a prefix underscore, then with it. |
7101 | for ac_symprfx in "" "_"; do | |
9c60689e | 7102 | |
a243b558 JF |
7103 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
7104 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
9c60689e | 7105 | |
a243b558 JF |
7106 | # Write the raw and C identifiers. |
7107 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7108 | # Fake it for dumpbin and say T for any non-static function | |
7109 | # and D for any global variable. | |
7110 | # Also find C++ and __fastcall symbols from MSVC++, | |
7111 | # which start with @ or ?. | |
7112 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7113 | " {last_section=section; section=\$ 3};"\ | |
7114 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
7115 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7116 | " \$ 0!~/External *\|/{next};"\ | |
7117 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7118 | " {if(hide[section]) next};"\ | |
7119 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7120 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7121 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7122 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7123 | " ' prfx=^$ac_symprfx" | |
7124 | else | |
7125 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7126 | fi | |
7127 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
9c60689e | 7128 | |
a243b558 JF |
7129 | # Check to see that the pipe works correctly. |
7130 | pipe_works=no | |
9c60689e | 7131 | |
a243b558 JF |
7132 | rm -rf conftest* |
7133 | cat > conftest.$ac_ext <<_LT_EOF | |
7134 | #ifdef __cplusplus | |
7135 | extern "C" { | |
7136 | #endif | |
7137 | char nm_test_var; | |
7138 | void nm_test_func(void); | |
7139 | void nm_test_func(void){} | |
7140 | #ifdef __cplusplus | |
7141 | } | |
7142 | #endif | |
7143 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7144 | _LT_EOF | |
9c60689e | 7145 | |
a243b558 JF |
7146 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7147 | (eval $ac_compile) 2>&5 | |
7148 | ac_status=$? | |
7149 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7150 | test $ac_status = 0; }; then | |
7151 | # Now try to grab the symbols. | |
7152 | nlist=conftest.nm | |
7153 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
7154 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
7155 | ac_status=$? | |
7156 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7157 | test $ac_status = 0; } && test -s "$nlist"; then | |
7158 | # Try sorting and uniquifying the output. | |
7159 | if sort "$nlist" | uniq > "$nlist"T; then | |
7160 | mv -f "$nlist"T "$nlist" | |
7161 | else | |
7162 | rm -f "$nlist"T | |
7163 | fi | |
9c60689e | 7164 | |
a243b558 JF |
7165 | # Make sure that we snagged all the symbols we need. |
7166 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7167 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7168 | cat <<_LT_EOF > conftest.$ac_ext | |
7169 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
7170 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | |
7171 | /* DATA imports from DLLs on WIN32 con't be const, because runtime | |
7172 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
7173 | # define LT_DLSYM_CONST | |
7174 | #elif defined(__osf__) | |
7175 | /* This system does not cope well with relocations in const data. */ | |
7176 | # define LT_DLSYM_CONST | |
7177 | #else | |
7178 | # define LT_DLSYM_CONST const | |
7179 | #endif | |
9c60689e | 7180 | |
a243b558 JF |
7181 | #ifdef __cplusplus |
7182 | extern "C" { | |
7183 | #endif | |
9c60689e | 7184 | |
a243b558 JF |
7185 | _LT_EOF |
7186 | # Now generate the symbol file. | |
7187 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
9c60689e | 7188 | |
a243b558 | 7189 | cat <<_LT_EOF >> conftest.$ac_ext |
9c60689e | 7190 | |
a243b558 JF |
7191 | /* The mapping between symbol names and symbols. */ |
7192 | LT_DLSYM_CONST struct { | |
7193 | const char *name; | |
7194 | void *address; | |
7195 | } | |
7196 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7197 | { | |
7198 | { "@PROGRAM@", (void *) 0 }, | |
7199 | _LT_EOF | |
7200 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7201 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7202 | {0, (void *) 0} | |
7203 | }; | |
9c60689e | 7204 | |
a243b558 JF |
7205 | /* This works around a problem in FreeBSD linker */ |
7206 | #ifdef FREEBSD_WORKAROUND | |
7207 | static const void *lt_preloaded_setup() { | |
7208 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7209 | } | |
7210 | #endif | |
9c60689e | 7211 | |
a243b558 JF |
7212 | #ifdef __cplusplus |
7213 | } | |
7214 | #endif | |
7215 | _LT_EOF | |
7216 | # Now try linking the two files. | |
7217 | mv conftest.$ac_objext conftstm.$ac_objext | |
7218 | lt_globsym_save_LIBS=$LIBS | |
7219 | lt_globsym_save_CFLAGS=$CFLAGS | |
7220 | LIBS="conftstm.$ac_objext" | |
7221 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
7222 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
7223 | (eval $ac_link) 2>&5 | |
7224 | ac_status=$? | |
7225 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7226 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7227 | pipe_works=yes | |
7228 | fi | |
7229 | LIBS=$lt_globsym_save_LIBS | |
7230 | CFLAGS=$lt_globsym_save_CFLAGS | |
7231 | else | |
7232 | echo "cannot find nm_test_func in $nlist" >&5 | |
7233 | fi | |
7234 | else | |
7235 | echo "cannot find nm_test_var in $nlist" >&5 | |
7236 | fi | |
7237 | else | |
7238 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7239 | fi | |
7240 | else | |
7241 | echo "$progname: failed program was:" >&5 | |
7242 | cat conftest.$ac_ext >&5 | |
7243 | fi | |
7244 | rm -rf conftest* conftst* | |
9c60689e | 7245 | |
a243b558 JF |
7246 | # Do not use the global_symbol_pipe unless it works. |
7247 | if test "$pipe_works" = yes; then | |
7248 | break | |
7249 | else | |
7250 | lt_cv_sys_global_symbol_pipe= | |
7251 | fi | |
7252 | done | |
9c60689e | 7253 | |
9c60689e | 7254 | fi |
9c60689e | 7255 | |
a243b558 JF |
7256 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
7257 | lt_cv_sys_global_symbol_to_cdecl= | |
9c60689e | 7258 | fi |
a243b558 JF |
7259 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
7260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
7261 | $as_echo "failed" >&6; } | |
9c60689e | 7262 | else |
a243b558 JF |
7263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7264 | $as_echo "ok" >&6; } | |
9c60689e DWT |
7265 | fi |
7266 | ||
a243b558 JF |
7267 | # Response file support. |
7268 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7269 | nm_file_list_spec='@' | |
7270 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
7271 | nm_file_list_spec='@' | |
9c60689e | 7272 | fi |
9c60689e | 7273 | |
9c60689e | 7274 | |
9c60689e | 7275 | |
9c60689e | 7276 | |
9c60689e | 7277 | |
9c60689e DWT |
7278 | |
7279 | ||
9c60689e | 7280 | |
9c60689e | 7281 | |
9c60689e DWT |
7282 | |
7283 | ||
7284 | ||
ee134472 JF |
7285 | |
7286 | ||
9c60689e DWT |
7287 | |
7288 | ||
7289 | ||
7290 | ||
7291 | ||
7292 | ||
7293 | ||
7294 | ||
7295 | ||
549f29b5 | 7296 | |
549f29b5 DWT |
7297 | |
7298 | ||
549f29b5 | 7299 | |
a243b558 JF |
7300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
7301 | $as_echo_n "checking for sysroot... " >&6; } | |
549f29b5 | 7302 | |
a243b558 JF |
7303 | # Check whether --with-sysroot was given. |
7304 | if test "${with_sysroot+set}" = set; then : | |
7305 | withval=$with_sysroot; | |
9c60689e | 7306 | else |
a243b558 | 7307 | with_sysroot=no |
9c60689e DWT |
7308 | fi |
7309 | ||
7310 | ||
a243b558 JF |
7311 | lt_sysroot= |
7312 | case ${with_sysroot} in #( | |
7313 | yes) | |
7314 | if test "$GCC" = yes; then | |
7315 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
7316 | fi | |
7317 | ;; #( | |
7318 | /*) | |
7319 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
7320 | ;; #( | |
7321 | no|'') | |
7322 | ;; #( | |
7323 | *) | |
7324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 | |
7325 | $as_echo "${with_sysroot}" >&6; } | |
7326 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
7327 | ;; | |
7328 | esac | |
9c60689e | 7329 | |
a243b558 JF |
7330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
7331 | $as_echo "${lt_sysroot:-no}" >&6; } | |
9c60689e DWT |
7332 | |
7333 | ||
7334 | ||
7335 | ||
7336 | ||
a243b558 JF |
7337 | # Check whether --enable-libtool-lock was given. |
7338 | if test "${enable_libtool_lock+set}" = set; then : | |
7339 | enableval=$enable_libtool_lock; | |
9c60689e DWT |
7340 | fi |
7341 | ||
a243b558 | 7342 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
9c60689e | 7343 | |
a243b558 JF |
7344 | # Some flags need to be propagated to the compiler or linker for good |
7345 | # libtool support. | |
7346 | case $host in | |
7347 | ia64-*-hpux*) | |
7348 | # Find out which ABI we are using. | |
7349 | echo 'int i;' > conftest.$ac_ext | |
7350 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7351 | (eval $ac_compile) 2>&5 | |
7352 | ac_status=$? | |
7353 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7354 | test $ac_status = 0; }; then | |
7355 | case `/usr/bin/file conftest.$ac_objext` in | |
7356 | *ELF-32*) | |
7357 | HPUX_IA64_MODE="32" | |
7358 | ;; | |
7359 | *ELF-64*) | |
7360 | HPUX_IA64_MODE="64" | |
7361 | ;; | |
7362 | esac | |
7363 | fi | |
7364 | rm -rf conftest* | |
7365 | ;; | |
7366 | *-*-irix6*) | |
7367 | # Find out which ABI we are using. | |
7368 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7369 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7370 | (eval $ac_compile) 2>&5 | |
7371 | ac_status=$? | |
7372 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7373 | test $ac_status = 0; }; then | |
7374 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
7375 | case `/usr/bin/file conftest.$ac_objext` in | |
7376 | *32-bit*) | |
7377 | LD="${LD-ld} -melf32bsmip" | |
7378 | ;; | |
7379 | *N32*) | |
7380 | LD="${LD-ld} -melf32bmipn32" | |
7381 | ;; | |
7382 | *64-bit*) | |
7383 | LD="${LD-ld} -melf64bmip" | |
7384 | ;; | |
7385 | esac | |
7386 | else | |
7387 | case `/usr/bin/file conftest.$ac_objext` in | |
7388 | *32-bit*) | |
7389 | LD="${LD-ld} -32" | |
7390 | ;; | |
7391 | *N32*) | |
7392 | LD="${LD-ld} -n32" | |
7393 | ;; | |
7394 | *64-bit*) | |
7395 | LD="${LD-ld} -64" | |
7396 | ;; | |
7397 | esac | |
7398 | fi | |
7399 | fi | |
7400 | rm -rf conftest* | |
7401 | ;; | |
9c60689e | 7402 | |
a243b558 JF |
7403 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
7404 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
7405 | # Find out which ABI we are using. | |
7406 | echo 'int i;' > conftest.$ac_ext | |
7407 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7408 | (eval $ac_compile) 2>&5 | |
7409 | ac_status=$? | |
7410 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7411 | test $ac_status = 0; }; then | |
7412 | case `/usr/bin/file conftest.o` in | |
7413 | *32-bit*) | |
7414 | case $host in | |
7415 | x86_64-*kfreebsd*-gnu) | |
7416 | LD="${LD-ld} -m elf_i386_fbsd" | |
7417 | ;; | |
7418 | x86_64-*linux*) | |
7419 | LD="${LD-ld} -m elf_i386" | |
7420 | ;; | |
7421 | ppc64-*linux*|powerpc64-*linux*) | |
7422 | LD="${LD-ld} -m elf32ppclinux" | |
7423 | ;; | |
7424 | s390x-*linux*) | |
7425 | LD="${LD-ld} -m elf_s390" | |
7426 | ;; | |
7427 | sparc64-*linux*) | |
7428 | LD="${LD-ld} -m elf32_sparc" | |
7429 | ;; | |
7430 | esac | |
7431 | ;; | |
7432 | *64-bit*) | |
7433 | case $host in | |
7434 | x86_64-*kfreebsd*-gnu) | |
7435 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7436 | ;; | |
7437 | x86_64-*linux*) | |
7438 | LD="${LD-ld} -m elf_x86_64" | |
7439 | ;; | |
7440 | ppc*-*linux*|powerpc*-*linux*) | |
7441 | LD="${LD-ld} -m elf64ppc" | |
7442 | ;; | |
7443 | s390*-*linux*|s390*-*tpf*) | |
7444 | LD="${LD-ld} -m elf64_s390" | |
7445 | ;; | |
7446 | sparc*-*linux*) | |
7447 | LD="${LD-ld} -m elf64_sparc" | |
7448 | ;; | |
7449 | esac | |
7450 | ;; | |
7451 | esac | |
7452 | fi | |
7453 | rm -rf conftest* | |
7454 | ;; | |
9c60689e | 7455 | |
a243b558 JF |
7456 | *-*-sco3.2v5*) |
7457 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7458 | SAVE_CFLAGS="$CFLAGS" | |
7459 | CFLAGS="$CFLAGS -belf" | |
7460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
7461 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7462 | if ${lt_cv_cc_needs_belf+:} false; then : | |
7463 | $as_echo_n "(cached) " >&6 | |
7464 | else | |
7465 | ac_ext=c | |
7466 | ac_cpp='$CPP $CPPFLAGS' | |
7467 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7468 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7469 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 7470 | |
a243b558 JF |
7471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7472 | /* end confdefs.h. */ | |
9c60689e | 7473 | |
a243b558 JF |
7474 | int |
7475 | main () | |
7476 | { | |
9c60689e | 7477 | |
a243b558 JF |
7478 | ; |
7479 | return 0; | |
7480 | } | |
7481 | _ACEOF | |
7482 | if ac_fn_c_try_link "$LINENO"; then : | |
7483 | lt_cv_cc_needs_belf=yes | |
9c60689e | 7484 | else |
a243b558 | 7485 | lt_cv_cc_needs_belf=no |
9c60689e | 7486 | fi |
a243b558 JF |
7487 | rm -f core conftest.err conftest.$ac_objext \ |
7488 | conftest$ac_exeext conftest.$ac_ext | |
7489 | ac_ext=c | |
7490 | ac_cpp='$CPP $CPPFLAGS' | |
7491 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7492 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7493 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 7494 | |
a243b558 JF |
7495 | fi |
7496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7497 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7498 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7499 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7500 | CFLAGS="$SAVE_CFLAGS" | |
7501 | fi | |
7502 | ;; | |
7503 | *-*solaris*) | |
7504 | # Find out which ABI we are using. | |
7505 | echo 'int i;' > conftest.$ac_ext | |
7506 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7507 | (eval $ac_compile) 2>&5 | |
7508 | ac_status=$? | |
7509 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7510 | test $ac_status = 0; }; then | |
7511 | case `/usr/bin/file conftest.o` in | |
7512 | *64-bit*) | |
7513 | case $lt_cv_prog_gnu_ld in | |
7514 | yes*) | |
7515 | case $host in | |
7516 | i?86-*-solaris*) | |
7517 | LD="${LD-ld} -m elf_x86_64" | |
7518 | ;; | |
7519 | sparc*-*-solaris*) | |
7520 | LD="${LD-ld} -m elf64_sparc" | |
7521 | ;; | |
7522 | esac | |
7523 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
7524 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
7525 | LD="${LD-ld}_sol2" | |
7526 | fi | |
7527 | ;; | |
7528 | *) | |
7529 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7530 | LD="${LD-ld} -64" | |
7531 | fi | |
7532 | ;; | |
7533 | esac | |
7534 | ;; | |
7535 | esac | |
7536 | fi | |
7537 | rm -rf conftest* | |
7538 | ;; | |
7539 | esac | |
9c60689e | 7540 | |
a243b558 | 7541 | need_locks="$enable_libtool_lock" |
9c60689e | 7542 | |
a243b558 JF |
7543 | if test -n "$ac_tool_prefix"; then |
7544 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
7545 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
7546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7547 | $as_echo_n "checking for $ac_word... " >&6; } | |
7548 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
7549 | $as_echo_n "(cached) " >&6 | |
7550 | else | |
7551 | if test -n "$MANIFEST_TOOL"; then | |
7552 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
7553 | else | |
7554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7555 | for as_dir in $PATH | |
7556 | do | |
7557 | IFS=$as_save_IFS | |
7558 | test -z "$as_dir" && as_dir=. | |
7559 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7560 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7561 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
7562 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7563 | break 2 | |
7564 | fi | |
7565 | done | |
7566 | done | |
7567 | IFS=$as_save_IFS | |
9c60689e | 7568 | |
a243b558 JF |
7569 | fi |
7570 | fi | |
7571 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
7572 | if test -n "$MANIFEST_TOOL"; then | |
7573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
7574 | $as_echo "$MANIFEST_TOOL" >&6; } | |
7575 | else | |
7576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7577 | $as_echo "no" >&6; } | |
7578 | fi | |
9c60689e DWT |
7579 | |
7580 | ||
a243b558 JF |
7581 | fi |
7582 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
7583 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
7584 | # Extract the first word of "mt", so it can be a program name with args. | |
7585 | set dummy mt; ac_word=$2 | |
7586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7587 | $as_echo_n "checking for $ac_word... " >&6; } | |
7588 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
7589 | $as_echo_n "(cached) " >&6 | |
7590 | else | |
7591 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7592 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
7593 | else | |
7594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7595 | for as_dir in $PATH | |
7596 | do | |
7597 | IFS=$as_save_IFS | |
7598 | test -z "$as_dir" && as_dir=. | |
7599 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7600 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7601 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
7602 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7603 | break 2 | |
7604 | fi | |
7605 | done | |
7606 | done | |
7607 | IFS=$as_save_IFS | |
9c60689e | 7608 | |
a243b558 JF |
7609 | fi |
7610 | fi | |
7611 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
7612 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
7614 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
7615 | else | |
7616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7617 | $as_echo "no" >&6; } | |
7618 | fi | |
9c60689e | 7619 | |
a243b558 JF |
7620 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
7621 | MANIFEST_TOOL=":" | |
7622 | else | |
7623 | case $cross_compiling:$ac_tool_warned in | |
7624 | yes:) | |
7625 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7626 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7627 | ac_tool_warned=yes ;; | |
7628 | esac | |
7629 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
7630 | fi | |
7631 | else | |
7632 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
7633 | fi | |
9c60689e | 7634 | |
a243b558 JF |
7635 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
7636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
7637 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
7638 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
7639 | $as_echo_n "(cached) " >&6 | |
7640 | else | |
7641 | lt_cv_path_mainfest_tool=no | |
7642 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
7643 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
7644 | cat conftest.err >&5 | |
7645 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
7646 | lt_cv_path_mainfest_tool=yes | |
7647 | fi | |
7648 | rm -rf conftest* | |
7649 | fi | |
7650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
7651 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
7652 | if test "x$lt_cv_path_mainfest_tool" != xyes; then | |
7653 | MANIFEST_TOOL=: | |
7654 | fi | |
9c60689e DWT |
7655 | |
7656 | ||
7657 | ||
7658 | ||
7659 | ||
7660 | ||
a243b558 JF |
7661 | case $host_os in |
7662 | rhapsody* | darwin*) | |
7663 | if test -n "$ac_tool_prefix"; then | |
7664 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7665 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7667 | $as_echo_n "checking for $ac_word... " >&6; } | |
7668 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
7669 | $as_echo_n "(cached) " >&6 | |
7670 | else | |
7671 | if test -n "$DSYMUTIL"; then | |
7672 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7673 | else | |
7674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7675 | for as_dir in $PATH | |
7676 | do | |
7677 | IFS=$as_save_IFS | |
7678 | test -z "$as_dir" && as_dir=. | |
7679 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7680 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7681 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7682 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7683 | break 2 | |
7684 | fi | |
7685 | done | |
7686 | done | |
7687 | IFS=$as_save_IFS | |
9c60689e | 7688 | |
a243b558 JF |
7689 | fi |
7690 | fi | |
7691 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7692 | if test -n "$DSYMUTIL"; then | |
7693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7694 | $as_echo "$DSYMUTIL" >&6; } | |
7695 | else | |
7696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7697 | $as_echo "no" >&6; } | |
7698 | fi | |
9c60689e DWT |
7699 | |
7700 | ||
9c60689e | 7701 | fi |
a243b558 JF |
7702 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
7703 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7704 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7705 | set dummy dsymutil; ac_word=$2 | |
7706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7707 | $as_echo_n "checking for $ac_word... " >&6; } | |
7708 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
9c60689e DWT |
7709 | $as_echo_n "(cached) " >&6 |
7710 | else | |
a243b558 JF |
7711 | if test -n "$ac_ct_DSYMUTIL"; then |
7712 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
9c60689e | 7713 | else |
a243b558 JF |
7714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7715 | for as_dir in $PATH | |
7716 | do | |
7717 | IFS=$as_save_IFS | |
7718 | test -z "$as_dir" && as_dir=. | |
7719 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7720 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7721 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
7722 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7723 | break 2 | |
7724 | fi | |
7725 | done | |
7726 | done | |
7727 | IFS=$as_save_IFS | |
7728 | ||
9c60689e | 7729 | fi |
9c60689e | 7730 | fi |
a243b558 JF |
7731 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
7732 | if test -n "$ac_ct_DSYMUTIL"; then | |
7733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7734 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
7735 | else | |
7736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7737 | $as_echo "no" >&6; } | |
7738 | fi | |
9c60689e | 7739 | |
a243b558 JF |
7740 | if test "x$ac_ct_DSYMUTIL" = x; then |
7741 | DSYMUTIL=":" | |
7742 | else | |
7743 | case $cross_compiling:$ac_tool_warned in | |
7744 | yes:) | |
7745 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7746 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7747 | ac_tool_warned=yes ;; | |
9c60689e | 7748 | esac |
a243b558 JF |
7749 | DSYMUTIL=$ac_ct_DSYMUTIL |
7750 | fi | |
7751 | else | |
7752 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7753 | fi | |
9c60689e | 7754 | |
a243b558 JF |
7755 | if test -n "$ac_tool_prefix"; then |
7756 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7757 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
7758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7759 | $as_echo_n "checking for $ac_word... " >&6; } | |
7760 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
9c60689e DWT |
7761 | $as_echo_n "(cached) " >&6 |
7762 | else | |
a243b558 JF |
7763 | if test -n "$NMEDIT"; then |
7764 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7765 | else | |
7766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7767 | for as_dir in $PATH | |
7768 | do | |
7769 | IFS=$as_save_IFS | |
7770 | test -z "$as_dir" && as_dir=. | |
7771 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7772 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7773 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
7774 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7775 | break 2 | |
7776 | fi | |
7777 | done | |
9c60689e | 7778 | done |
a243b558 | 7779 | IFS=$as_save_IFS |
9c60689e | 7780 | |
a243b558 JF |
7781 | fi |
7782 | fi | |
7783 | NMEDIT=$ac_cv_prog_NMEDIT | |
7784 | if test -n "$NMEDIT"; then | |
7785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7786 | $as_echo "$NMEDIT" >&6; } | |
9c60689e DWT |
7787 | else |
7788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7789 | $as_echo "no" >&6; } | |
7790 | fi | |
7791 | ||
7792 | ||
a243b558 JF |
7793 | fi |
7794 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7795 | ac_ct_NMEDIT=$NMEDIT | |
7796 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7797 | set dummy nmedit; ac_word=$2 | |
7798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7799 | $as_echo_n "checking for $ac_word... " >&6; } | |
7800 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
9c60689e DWT |
7801 | $as_echo_n "(cached) " >&6 |
7802 | else | |
a243b558 JF |
7803 | if test -n "$ac_ct_NMEDIT"; then |
7804 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7805 | else | |
7806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7807 | for as_dir in $PATH | |
7808 | do | |
7809 | IFS=$as_save_IFS | |
7810 | test -z "$as_dir" && as_dir=. | |
7811 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7812 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7813 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
7814 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7815 | break 2 | |
7816 | fi | |
7817 | done | |
9c60689e | 7818 | done |
a243b558 | 7819 | IFS=$as_save_IFS |
9c60689e | 7820 | |
a243b558 JF |
7821 | fi |
7822 | fi | |
7823 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7824 | if test -n "$ac_ct_NMEDIT"; then | |
7825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7826 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
9c60689e DWT |
7827 | else |
7828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7829 | $as_echo "no" >&6; } | |
7830 | fi | |
7831 | ||
a243b558 JF |
7832 | if test "x$ac_ct_NMEDIT" = x; then |
7833 | NMEDIT=":" | |
9c60689e | 7834 | else |
a243b558 JF |
7835 | case $cross_compiling:$ac_tool_warned in |
7836 | yes:) | |
7837 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7838 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7839 | ac_tool_warned=yes ;; | |
7840 | esac | |
7841 | NMEDIT=$ac_ct_NMEDIT | |
9c60689e | 7842 | fi |
a243b558 JF |
7843 | else |
7844 | NMEDIT="$ac_cv_prog_NMEDIT" | |
9c60689e DWT |
7845 | fi |
7846 | ||
a243b558 JF |
7847 | if test -n "$ac_tool_prefix"; then |
7848 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7849 | set dummy ${ac_tool_prefix}lipo; 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_LIPO+:} false; then : | |
7853 | $as_echo_n "(cached) " >&6 | |
7854 | else | |
7855 | if test -n "$LIPO"; then | |
7856 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7857 | else | |
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_LIPO="${ac_tool_prefix}lipo" | |
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 | |
9c60689e | 7872 | |
a243b558 JF |
7873 | fi |
7874 | fi | |
7875 | LIPO=$ac_cv_prog_LIPO | |
7876 | if test -n "$LIPO"; then | |
7877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7878 | $as_echo "$LIPO" >&6; } | |
7879 | else | |
7880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7881 | $as_echo "no" >&6; } | |
7882 | fi | |
9c60689e | 7883 | |
9c60689e | 7884 | |
a243b558 JF |
7885 | fi |
7886 | if test -z "$ac_cv_prog_LIPO"; then | |
7887 | ac_ct_LIPO=$LIPO | |
7888 | # Extract the first word of "lipo", so it can be a program name with args. | |
7889 | set dummy lipo; ac_word=$2 | |
7890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7891 | $as_echo_n "checking for $ac_word... " >&6; } | |
7892 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
9c60689e DWT |
7893 | $as_echo_n "(cached) " >&6 |
7894 | else | |
a243b558 JF |
7895 | if test -n "$ac_ct_LIPO"; then |
7896 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7897 | else | |
7898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7899 | for as_dir in $PATH | |
7900 | do | |
7901 | IFS=$as_save_IFS | |
7902 | test -z "$as_dir" && as_dir=. | |
7903 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7904 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7905 | ac_cv_prog_ac_ct_LIPO="lipo" | |
7906 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7907 | break 2 | |
7908 | fi | |
7909 | done | |
7910 | done | |
7911 | IFS=$as_save_IFS | |
9c60689e DWT |
7912 | |
7913 | fi | |
a243b558 JF |
7914 | fi |
7915 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7916 | if test -n "$ac_ct_LIPO"; then | |
7917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7918 | $as_echo "$ac_ct_LIPO" >&6; } | |
9c60689e | 7919 | else |
a243b558 JF |
7920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7921 | $as_echo "no" >&6; } | |
9c60689e DWT |
7922 | fi |
7923 | ||
a243b558 JF |
7924 | if test "x$ac_ct_LIPO" = x; then |
7925 | LIPO=":" | |
7926 | else | |
7927 | case $cross_compiling:$ac_tool_warned in | |
7928 | yes:) | |
7929 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7930 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7931 | ac_tool_warned=yes ;; | |
7932 | esac | |
7933 | LIPO=$ac_ct_LIPO | |
7934 | fi | |
7935 | else | |
7936 | LIPO="$ac_cv_prog_LIPO" | |
9c60689e DWT |
7937 | fi |
7938 | ||
a243b558 JF |
7939 | if test -n "$ac_tool_prefix"; then |
7940 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7941 | set dummy ${ac_tool_prefix}otool; 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_OTOOL+:} false; then : | |
7945 | $as_echo_n "(cached) " >&6 | |
7946 | else | |
7947 | if test -n "$OTOOL"; then | |
7948 | ac_cv_prog_OTOOL="$OTOOL" # 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_OTOOL="${ac_tool_prefix}otool" | |
7958 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7959 | break 2 | |
7960 | fi | |
7961 | done | |
7962 | done | |
7963 | IFS=$as_save_IFS | |
9c60689e | 7964 | |
a243b558 JF |
7965 | fi |
7966 | fi | |
7967 | OTOOL=$ac_cv_prog_OTOOL | |
7968 | if test -n "$OTOOL"; then | |
7969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
7970 | $as_echo "$OTOOL" >&6; } | |
7971 | else | |
7972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7973 | $as_echo "no" >&6; } | |
7974 | fi | |
9c60689e DWT |
7975 | |
7976 | ||
a243b558 JF |
7977 | fi |
7978 | if test -z "$ac_cv_prog_OTOOL"; then | |
7979 | ac_ct_OTOOL=$OTOOL | |
7980 | # Extract the first word of "otool", so it can be a program name with args. | |
7981 | set dummy otool; ac_word=$2 | |
7982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7983 | $as_echo_n "checking for $ac_word... " >&6; } | |
7984 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
7985 | $as_echo_n "(cached) " >&6 | |
7986 | else | |
7987 | if test -n "$ac_ct_OTOOL"; then | |
7988 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7989 | else | |
7990 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7991 | for as_dir in $PATH | |
7992 | do | |
7993 | IFS=$as_save_IFS | |
7994 | test -z "$as_dir" && as_dir=. | |
7995 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7996 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7997 | ac_cv_prog_ac_ct_OTOOL="otool" | |
7998 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7999 | break 2 | |
8000 | fi | |
8001 | done | |
8002 | done | |
8003 | IFS=$as_save_IFS | |
9c60689e | 8004 | |
a243b558 JF |
8005 | fi |
8006 | fi | |
8007 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8008 | if test -n "$ac_ct_OTOOL"; then | |
8009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8010 | $as_echo "$ac_ct_OTOOL" >&6; } | |
8011 | else | |
8012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8013 | $as_echo "no" >&6; } | |
8014 | fi | |
9c60689e | 8015 | |
a243b558 JF |
8016 | if test "x$ac_ct_OTOOL" = x; then |
8017 | OTOOL=":" | |
8018 | else | |
8019 | case $cross_compiling:$ac_tool_warned in | |
8020 | yes:) | |
8021 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8022 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8023 | ac_tool_warned=yes ;; | |
8024 | esac | |
8025 | OTOOL=$ac_ct_OTOOL | |
8026 | fi | |
8027 | else | |
8028 | OTOOL="$ac_cv_prog_OTOOL" | |
8029 | fi | |
9c60689e | 8030 | |
a243b558 JF |
8031 | if test -n "$ac_tool_prefix"; then |
8032 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8033 | set dummy ${ac_tool_prefix}otool64; 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_OTOOL64+:} false; then : | |
8037 | $as_echo_n "(cached) " >&6 | |
8038 | else | |
8039 | if test -n "$OTOOL64"; then | |
8040 | ac_cv_prog_OTOOL64="$OTOOL64" # 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_OTOOL64="${ac_tool_prefix}otool64" | |
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 | 8056 | |
a243b558 JF |
8057 | fi |
8058 | fi | |
8059 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8060 | if test -n "$OTOOL64"; then | |
8061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8062 | $as_echo "$OTOOL64" >&6; } | |
8063 | else | |
8064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8065 | $as_echo "no" >&6; } | |
8066 | fi | |
9c60689e | 8067 | |
9c60689e | 8068 | |
a243b558 JF |
8069 | fi |
8070 | if test -z "$ac_cv_prog_OTOOL64"; then | |
8071 | ac_ct_OTOOL64=$OTOOL64 | |
8072 | # Extract the first word of "otool64", so it can be a program name with args. | |
8073 | set dummy otool64; ac_word=$2 | |
8074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8075 | $as_echo_n "checking for $ac_word... " >&6; } | |
8076 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
8077 | $as_echo_n "(cached) " >&6 | |
8078 | else | |
8079 | if test -n "$ac_ct_OTOOL64"; then | |
8080 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8081 | else | |
8082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8083 | for as_dir in $PATH | |
8084 | do | |
8085 | IFS=$as_save_IFS | |
8086 | test -z "$as_dir" && as_dir=. | |
8087 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8088 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8089 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
8090 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8091 | break 2 | |
8092 | fi | |
8093 | done | |
8094 | done | |
8095 | IFS=$as_save_IFS | |
9c60689e | 8096 | |
a243b558 JF |
8097 | fi |
8098 | fi | |
8099 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8100 | if test -n "$ac_ct_OTOOL64"; then | |
8101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8102 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
8103 | else | |
8104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8105 | $as_echo "no" >&6; } | |
8106 | fi | |
9c60689e | 8107 | |
a243b558 JF |
8108 | if test "x$ac_ct_OTOOL64" = x; then |
8109 | OTOOL64=":" | |
8110 | else | |
8111 | case $cross_compiling:$ac_tool_warned in | |
8112 | yes:) | |
8113 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8114 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8115 | ac_tool_warned=yes ;; | |
8116 | esac | |
8117 | OTOOL64=$ac_ct_OTOOL64 | |
8118 | fi | |
8119 | else | |
8120 | OTOOL64="$ac_cv_prog_OTOOL64" | |
8121 | fi | |
ee134472 | 8122 | |
9c60689e | 8123 | |
9c60689e | 8124 | |
9c60689e | 8125 | |
9c60689e | 8126 | |
9c60689e | 8127 | |
ee134472 | 8128 | |
9c60689e | 8129 | |
9c60689e | 8130 | |
9c60689e | 8131 | |
9c60689e | 8132 | |
9c60689e | 8133 | |
9c60689e | 8134 | |
9c60689e | 8135 | |
9c60689e | 8136 | |
9c60689e | 8137 | |
9c60689e | 8138 | |
9c60689e | 8139 | |
9c60689e | 8140 | |
9c60689e | 8141 | |
9c60689e | 8142 | |
9c60689e | 8143 | |
9c60689e | 8144 | |
9c60689e | 8145 | |
9c60689e | 8146 | |
a243b558 JF |
8147 | |
8148 | ||
8149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
8150 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
8151 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
ee134472 JF |
8152 | $as_echo_n "(cached) " >&6 |
8153 | else | |
a243b558 JF |
8154 | lt_cv_apple_cc_single_mod=no |
8155 | if test -z "${LT_MULTI_MODULE}"; then | |
8156 | # By default we will add the -single_module flag. You can override | |
8157 | # by either setting the environment variable LT_MULTI_MODULE | |
8158 | # non-empty at configure time, or by adding -multi_module to the | |
8159 | # link flags. | |
8160 | rm -rf libconftest.dylib* | |
8161 | echo "int foo(void){return 1;}" > conftest.c | |
8162 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8163 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8164 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8165 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8166 | _lt_result=$? | |
8167 | # If there is a non-empty error log, and "single_module" | |
8168 | # appears in it, assume the flag caused a linker warning | |
8169 | if test -s conftest.err && $GREP single_module conftest.err; then | |
8170 | cat conftest.err >&5 | |
8171 | # Otherwise, if the output was created with a 0 exit code from | |
8172 | # the compiler, it worked. | |
8173 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then | |
8174 | lt_cv_apple_cc_single_mod=yes | |
8175 | else | |
8176 | cat conftest.err >&5 | |
8177 | fi | |
8178 | rm -rf libconftest.dylib* | |
8179 | rm -f conftest.* | |
8180 | fi | |
ee134472 | 8181 | fi |
a243b558 JF |
8182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
8183 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
9c60689e | 8184 | |
a243b558 JF |
8185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
8186 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8187 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
9c60689e DWT |
8188 | $as_echo_n "(cached) " >&6 |
8189 | else | |
a243b558 JF |
8190 | lt_cv_ld_exported_symbols_list=no |
8191 | save_LDFLAGS=$LDFLAGS | |
8192 | echo "_main" > conftest.sym | |
8193 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8195 | /* end confdefs.h. */ | |
9c60689e | 8196 | |
a243b558 JF |
8197 | int |
8198 | main () | |
8199 | { | |
9c60689e | 8200 | |
a243b558 JF |
8201 | ; |
8202 | return 0; | |
8203 | } | |
8204 | _ACEOF | |
8205 | if ac_fn_c_try_link "$LINENO"; then : | |
8206 | lt_cv_ld_exported_symbols_list=yes | |
9c60689e | 8207 | else |
a243b558 | 8208 | lt_cv_ld_exported_symbols_list=no |
9c60689e | 8209 | fi |
a243b558 JF |
8210 | rm -f core conftest.err conftest.$ac_objext \ |
8211 | conftest$ac_exeext conftest.$ac_ext | |
8212 | LDFLAGS="$save_LDFLAGS" | |
9c60689e DWT |
8213 | |
8214 | fi | |
a243b558 JF |
8215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8216 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
9c60689e | 8217 | |
a243b558 JF |
8218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
8219 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8220 | if ${lt_cv_ld_force_load+:} false; then : | |
9c60689e DWT |
8221 | $as_echo_n "(cached) " >&6 |
8222 | else | |
a243b558 JF |
8223 | lt_cv_ld_force_load=no |
8224 | cat > conftest.c << _LT_EOF | |
8225 | int forced_loaded() { return 2;} | |
8226 | _LT_EOF | |
8227 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8228 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8229 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8230 | $AR cru libconftest.a conftest.o 2>&5 | |
8231 | echo "$RANLIB libconftest.a" >&5 | |
8232 | $RANLIB libconftest.a 2>&5 | |
8233 | cat > conftest.c << _LT_EOF | |
8234 | int main() { return 0;} | |
8235 | _LT_EOF | |
8236 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8237 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8238 | _lt_result=$? | |
8239 | if test -s conftest.err && $GREP force_load conftest.err; then | |
8240 | cat conftest.err >&5 | |
8241 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then | |
8242 | lt_cv_ld_force_load=yes | |
8243 | else | |
8244 | cat conftest.err >&5 | |
8245 | fi | |
8246 | rm -f conftest.err libconftest.a conftest conftest.c | |
8247 | rm -rf conftest.dSYM | |
9c60689e DWT |
8248 | |
8249 | fi | |
a243b558 JF |
8250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
8251 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
8252 | case $host_os in | |
8253 | rhapsody* | darwin1.[012]) | |
8254 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
8255 | darwin1.*) | |
8256 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8257 | darwin*) # darwin 5.x on | |
8258 | # if running on 10.5 or later, the deployment target defaults | |
8259 | # to the OS version, if on x86, and 10.4, the deployment | |
8260 | # target defaults to 10.4. Don't you love it? | |
8261 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8262 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8263 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8264 | 10.[012]*) | |
8265 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8266 | 10.*) | |
8267 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8268 | esac | |
8269 | ;; | |
8270 | esac | |
8271 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8272 | _lt_dar_single_mod='$single_module' | |
8273 | fi | |
8274 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8275 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8276 | else | |
8277 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8278 | fi | |
8279 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
8280 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8281 | else | |
8282 | _lt_dsymutil= | |
8283 | fi | |
8284 | ;; | |
8285 | esac | |
9c60689e | 8286 | |
a243b558 JF |
8287 | ac_ext=c |
8288 | ac_cpp='$CPP $CPPFLAGS' | |
8289 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8290 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8291 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
8293 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
8294 | # On Suns, sometimes $CPP names a directory. | |
8295 | if test -n "$CPP" && test -d "$CPP"; then | |
8296 | CPP= | |
9c60689e | 8297 | fi |
a243b558 JF |
8298 | if test -z "$CPP"; then |
8299 | if ${ac_cv_prog_CPP+:} false; then : | |
8300 | $as_echo_n "(cached) " >&6 | |
8301 | else | |
8302 | # Double quotes because CPP needs to be expanded | |
8303 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
8304 | do | |
8305 | ac_preproc_ok=false | |
8306 | for ac_c_preproc_warn_flag in '' yes | |
8307 | do | |
8308 | # Use a header file that comes with gcc, so configuring glibc | |
8309 | # with a fresh cross-compiler works. | |
8310 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8311 | # <limits.h> exists even on freestanding compilers. | |
8312 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
8313 | # not just through cpp. "Syntax error" is here to catch this case. | |
8314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8315 | /* end confdefs.h. */ | |
8316 | #ifdef __STDC__ | |
8317 | # include <limits.h> | |
8318 | #else | |
8319 | # include <assert.h> | |
8320 | #endif | |
8321 | Syntax error | |
8322 | _ACEOF | |
8323 | if ac_fn_c_try_cpp "$LINENO"; then : | |
9c60689e | 8324 | |
a243b558 JF |
8325 | else |
8326 | # Broken: fails on valid input. | |
8327 | continue | |
8328 | fi | |
8329 | rm -f conftest.err conftest.i conftest.$ac_ext | |
9c60689e | 8330 | |
a243b558 JF |
8331 | # OK, works on sane cases. Now check whether nonexistent headers |
8332 | # can be detected and how. | |
8333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8334 | /* end confdefs.h. */ | |
8335 | #include <ac_nonexistent.h> | |
8336 | _ACEOF | |
8337 | if ac_fn_c_try_cpp "$LINENO"; then : | |
8338 | # Broken: success on invalid input. | |
8339 | continue | |
8340 | else | |
8341 | # Passes both tests. | |
8342 | ac_preproc_ok=: | |
8343 | break | |
8344 | fi | |
8345 | rm -f conftest.err conftest.i conftest.$ac_ext | |
9c60689e | 8346 | |
a243b558 JF |
8347 | done |
8348 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
8349 | rm -f conftest.i conftest.err conftest.$ac_ext | |
8350 | if $ac_preproc_ok; then : | |
8351 | break | |
8352 | fi | |
9c60689e | 8353 | |
a243b558 JF |
8354 | done |
8355 | ac_cv_prog_CPP=$CPP | |
9c60689e | 8356 | |
a243b558 JF |
8357 | fi |
8358 | CPP=$ac_cv_prog_CPP | |
9c60689e | 8359 | else |
a243b558 JF |
8360 | ac_cv_prog_CPP=$CPP |
8361 | fi | |
8362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
8363 | $as_echo "$CPP" >&6; } | |
8364 | ac_preproc_ok=false | |
8365 | for ac_c_preproc_warn_flag in '' yes | |
8366 | do | |
8367 | # Use a header file that comes with gcc, so configuring glibc | |
8368 | # with a fresh cross-compiler works. | |
8369 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8370 | # <limits.h> exists even on freestanding compilers. | |
8371 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
8372 | # not just through cpp. "Syntax error" is here to catch this case. | |
8373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8374 | /* end confdefs.h. */ | |
8375 | #ifdef __STDC__ | |
8376 | # include <limits.h> | |
8377 | #else | |
8378 | # include <assert.h> | |
8379 | #endif | |
8380 | Syntax error | |
8381 | _ACEOF | |
8382 | if ac_fn_c_try_cpp "$LINENO"; then : | |
9c60689e | 8383 | |
a243b558 JF |
8384 | else |
8385 | # Broken: fails on valid input. | |
8386 | continue | |
9c60689e | 8387 | fi |
a243b558 | 8388 | rm -f conftest.err conftest.i conftest.$ac_ext |
9c60689e | 8389 | |
a243b558 JF |
8390 | # OK, works on sane cases. Now check whether nonexistent headers |
8391 | # can be detected and how. | |
8392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8393 | /* end confdefs.h. */ | |
8394 | #include <ac_nonexistent.h> | |
8395 | _ACEOF | |
8396 | if ac_fn_c_try_cpp "$LINENO"; then : | |
8397 | # Broken: success on invalid input. | |
8398 | continue | |
8399 | else | |
8400 | # Passes both tests. | |
8401 | ac_preproc_ok=: | |
8402 | break | |
8403 | fi | |
8404 | rm -f conftest.err conftest.i conftest.$ac_ext | |
9c60689e | 8405 | |
a243b558 JF |
8406 | done |
8407 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
8408 | rm -f conftest.i conftest.err conftest.$ac_ext | |
8409 | if $ac_preproc_ok; then : | |
9c60689e | 8410 | |
a243b558 JF |
8411 | else |
8412 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8413 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8414 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
8415 | See \`config.log' for more details" "$LINENO" 5; } | |
8416 | fi | |
9c60689e | 8417 | |
a243b558 JF |
8418 | ac_ext=c |
8419 | ac_cpp='$CPP $CPPFLAGS' | |
8420 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8421 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8422 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e DWT |
8423 | |
8424 | ||
a243b558 JF |
8425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
8426 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
8427 | if ${ac_cv_header_stdc+:} false; then : | |
9c60689e DWT |
8428 | $as_echo_n "(cached) " >&6 |
8429 | else | |
a243b558 JF |
8430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8431 | /* end confdefs.h. */ | |
8432 | #include <stdlib.h> | |
8433 | #include <stdarg.h> | |
8434 | #include <string.h> | |
8435 | #include <float.h> | |
9c60689e | 8436 | |
a243b558 JF |
8437 | int |
8438 | main () | |
8439 | { | |
9c60689e | 8440 | |
a243b558 JF |
8441 | ; |
8442 | return 0; | |
8443 | } | |
8444 | _ACEOF | |
8445 | if ac_fn_c_try_compile "$LINENO"; then : | |
8446 | ac_cv_header_stdc=yes | |
8447 | else | |
8448 | ac_cv_header_stdc=no | |
9c60689e | 8449 | fi |
a243b558 JF |
8450 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8451 | ||
8452 | if test $ac_cv_header_stdc = yes; then | |
8453 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
8454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8455 | /* end confdefs.h. */ | |
8456 | #include <string.h> | |
9c60689e | 8457 | |
a243b558 JF |
8458 | _ACEOF |
8459 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8460 | $EGREP "memchr" >/dev/null 2>&1; then : | |
9c60689e | 8461 | |
a243b558 JF |
8462 | else |
8463 | ac_cv_header_stdc=no | |
8464 | fi | |
8465 | rm -f conftest* | |
9c60689e | 8466 | |
a243b558 JF |
8467 | fi |
8468 | ||
8469 | if test $ac_cv_header_stdc = yes; then | |
8470 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
8471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8472 | /* end confdefs.h. */ | |
8473 | #include <stdlib.h> | |
8474 | ||
8475 | _ACEOF | |
8476 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8477 | $EGREP "free" >/dev/null 2>&1; then : | |
9c60689e | 8478 | |
9c60689e | 8479 | else |
a243b558 | 8480 | ac_cv_header_stdc=no |
9c60689e | 8481 | fi |
a243b558 | 8482 | rm -f conftest* |
9c60689e | 8483 | |
a243b558 | 8484 | fi |
9c60689e | 8485 | |
a243b558 JF |
8486 | if test $ac_cv_header_stdc = yes; then |
8487 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8488 | if test "$cross_compiling" = yes; then : | |
8489 | : | |
8490 | else | |
8491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8492 | /* end confdefs.h. */ | |
8493 | #include <ctype.h> | |
8494 | #include <stdlib.h> | |
8495 | #if ((' ' & 0x0FF) == 0x020) | |
8496 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
8497 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
8498 | #else | |
8499 | # define ISLOWER(c) \ | |
8500 | (('a' <= (c) && (c) <= 'i') \ | |
8501 | || ('j' <= (c) && (c) <= 'r') \ | |
8502 | || ('s' <= (c) && (c) <= 'z')) | |
8503 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
8504 | #endif | |
9c60689e | 8505 | |
a243b558 JF |
8506 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
8507 | int | |
8508 | main () | |
8509 | { | |
8510 | int i; | |
8511 | for (i = 0; i < 256; i++) | |
8512 | if (XOR (islower (i), ISLOWER (i)) | |
8513 | || toupper (i) != TOUPPER (i)) | |
8514 | return 2; | |
8515 | return 0; | |
8516 | } | |
8517 | _ACEOF | |
8518 | if ac_fn_c_try_run "$LINENO"; then : | |
9c60689e | 8519 | |
a243b558 JF |
8520 | else |
8521 | ac_cv_header_stdc=no | |
8522 | fi | |
8523 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
8524 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8525 | fi | |
9c60689e | 8526 | |
a243b558 JF |
8527 | fi |
8528 | fi | |
8529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
8530 | $as_echo "$ac_cv_header_stdc" >&6; } | |
8531 | if test $ac_cv_header_stdc = yes; then | |
9c60689e | 8532 | |
a243b558 | 8533 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
9c60689e | 8534 | |
a243b558 | 8535 | fi |
9c60689e | 8536 | |
a243b558 JF |
8537 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
8538 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
8539 | inttypes.h stdint.h unistd.h | |
8540 | do : | |
8541 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8542 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
8543 | " | |
8544 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8545 | cat >>confdefs.h <<_ACEOF | |
8546 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8547 | _ACEOF | |
9c60689e | 8548 | |
a243b558 | 8549 | fi |
ee134472 | 8550 | |
a243b558 | 8551 | done |
ee134472 | 8552 | |
9c60689e | 8553 | |
a243b558 JF |
8554 | for ac_header in dlfcn.h |
8555 | do : | |
8556 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8557 | " | |
8558 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8559 | cat >>confdefs.h <<_ACEOF | |
8560 | #define HAVE_DLFCN_H 1 | |
8561 | _ACEOF | |
9c60689e | 8562 | |
a243b558 | 8563 | fi |
9c60689e | 8564 | |
a243b558 | 8565 | done |
9c60689e | 8566 | |
9c60689e | 8567 | |
9c60689e | 8568 | |
9c60689e | 8569 | |
a243b558 JF |
8570 | func_stripname_cnf () |
8571 | { | |
8572 | case ${2} in | |
8573 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
8574 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
8575 | esac | |
8576 | } # func_stripname_cnf | |
9c60689e | 8577 | |
9c60689e | 8578 | |
ee134472 | 8579 | |
a243b558 JF |
8580 | |
8581 | ||
8582 | # Set options | |
8583 | # Check whether --enable-static was given. | |
8584 | if test "${enable_static+set}" = set; then : | |
8585 | enableval=$enable_static; p=${PACKAGE-default} | |
8586 | case $enableval in | |
8587 | yes) enable_static=yes ;; | |
8588 | no) enable_static=no ;; | |
8589 | *) | |
8590 | enable_static=no | |
8591 | # Look at the argument we got. We use all the common list separators. | |
8592 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8593 | for pkg in $enableval; do | |
8594 | IFS="$lt_save_ifs" | |
8595 | if test "X$pkg" = "X$p"; then | |
8596 | enable_static=yes | |
8597 | fi | |
8598 | done | |
8599 | IFS="$lt_save_ifs" | |
9c60689e | 8600 | ;; |
a243b558 JF |
8601 | esac |
8602 | else | |
8603 | enable_static=no | |
8604 | fi | |
9c60689e | 8605 | |
9c60689e | 8606 | |
9c60689e | 8607 | |
9c60689e | 8608 | |
9c60689e | 8609 | |
9c60689e | 8610 | |
9c60689e | 8611 | |
9c60689e | 8612 | |
9c60689e | 8613 | |
9c60689e | 8614 | |
a243b558 | 8615 | enable_dlopen=no |
9c60689e | 8616 | |
9c60689e | 8617 | |
a243b558 JF |
8618 | enable_win32_dll=no |
8619 | ||
8620 | ||
8621 | # Check whether --enable-shared was given. | |
8622 | if test "${enable_shared+set}" = set; then : | |
8623 | enableval=$enable_shared; p=${PACKAGE-default} | |
8624 | case $enableval in | |
8625 | yes) enable_shared=yes ;; | |
8626 | no) enable_shared=no ;; | |
9c60689e | 8627 | *) |
a243b558 JF |
8628 | enable_shared=no |
8629 | # Look at the argument we got. We use all the common list separators. | |
8630 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8631 | for pkg in $enableval; do | |
8632 | IFS="$lt_save_ifs" | |
8633 | if test "X$pkg" = "X$p"; then | |
8634 | enable_shared=yes | |
8635 | fi | |
8636 | done | |
8637 | IFS="$lt_save_ifs" | |
9c60689e DWT |
8638 | ;; |
8639 | esac | |
a243b558 JF |
8640 | else |
8641 | enable_shared=yes | |
8642 | fi | |
9c60689e | 8643 | |
9c60689e | 8644 | |
9c60689e | 8645 | |
9c60689e | 8646 | |
9c60689e | 8647 | |
9c60689e | 8648 | |
9c60689e | 8649 | |
9c60689e | 8650 | |
9c60689e | 8651 | |
9c60689e | 8652 | |
9c60689e | 8653 | |
a243b558 JF |
8654 | # Check whether --with-pic was given. |
8655 | if test "${with_pic+set}" = set; then : | |
8656 | withval=$with_pic; lt_p=${PACKAGE-default} | |
8657 | case $withval in | |
8658 | yes|no) pic_mode=$withval ;; | |
8659 | *) | |
8660 | pic_mode=default | |
8661 | # Look at the argument we got. We use all the common list separators. | |
8662 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8663 | for lt_pkg in $withval; do | |
8664 | IFS="$lt_save_ifs" | |
8665 | if test "X$lt_pkg" = "X$lt_p"; then | |
8666 | pic_mode=yes | |
8667 | fi | |
8668 | done | |
8669 | IFS="$lt_save_ifs" | |
8670 | ;; | |
8671 | esac | |
8672 | else | |
8673 | pic_mode=default | |
9c60689e | 8674 | fi |
ee134472 | 8675 | |
ee134472 | 8676 | |
a243b558 | 8677 | test -z "$pic_mode" && pic_mode=default |
9c60689e | 8678 | |
9c60689e | 8679 | |
9c60689e | 8680 | |
9c60689e | 8681 | |
ee134472 | 8682 | |
ee134472 | 8683 | |
9c60689e | 8684 | |
a243b558 JF |
8685 | # Check whether --enable-fast-install was given. |
8686 | if test "${enable_fast_install+set}" = set; then : | |
8687 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
8688 | case $enableval in | |
8689 | yes) enable_fast_install=yes ;; | |
8690 | no) enable_fast_install=no ;; | |
8691 | *) | |
8692 | enable_fast_install=no | |
8693 | # Look at the argument we got. We use all the common list separators. | |
8694 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8695 | for pkg in $enableval; do | |
8696 | IFS="$lt_save_ifs" | |
8697 | if test "X$pkg" = "X$p"; then | |
8698 | enable_fast_install=yes | |
9c60689e | 8699 | fi |
a243b558 JF |
8700 | done |
8701 | IFS="$lt_save_ifs" | |
9c60689e | 8702 | ;; |
a243b558 JF |
8703 | esac |
8704 | else | |
8705 | enable_fast_install=yes | |
8706 | fi | |
9c60689e | 8707 | |
9c60689e | 8708 | |
9c60689e | 8709 | |
9c60689e | 8710 | |
9c60689e DWT |
8711 | |
8712 | ||
53ba6704 | 8713 | |
9c60689e | 8714 | |
9c60689e | 8715 | |
9c60689e | 8716 | |
9c60689e | 8717 | |
a243b558 JF |
8718 | # This can be used to rebuild libtool when needed |
8719 | LIBTOOL_DEPS="$ltmain" | |
9c60689e | 8720 | |
a243b558 JF |
8721 | # Always use our own libtool. |
8722 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
9c60689e | 8723 | |
9c60689e | 8724 | |
9c60689e | 8725 | |
9c60689e | 8726 | |
9c60689e | 8727 | |
ee134472 | 8728 | |
ee134472 | 8729 | |
ee134472 | 8730 | |
ee134472 | 8731 | |
9c60689e | 8732 | |
9c60689e | 8733 | |
9c60689e | 8734 | |
9c60689e | 8735 | |
9c60689e | 8736 | |
9c60689e | 8737 | |
9c60689e | 8738 | |
9c60689e | 8739 | |
9c60689e | 8740 | |
9c60689e | 8741 | |
9c60689e | 8742 | |
9c60689e | 8743 | |
9c60689e | 8744 | |
9c60689e | 8745 | |
9c60689e | 8746 | |
9c60689e | 8747 | |
9c60689e | 8748 | |
9c60689e | 8749 | |
9c60689e | 8750 | |
9c60689e | 8751 | |
9c60689e | 8752 | |
a243b558 | 8753 | test -z "$LN_S" && LN_S="ln -s" |
9c60689e DWT |
8754 | |
8755 | ||
8756 | ||
8757 | ||
8758 | ||
8759 | ||
8760 | ||
8761 | ||
8762 | ||
8763 | ||
8764 | ||
8765 | ||
8766 | ||
8767 | ||
a243b558 JF |
8768 | if test -n "${ZSH_VERSION+set}" ; then |
8769 | setopt NO_GLOB_SUBST | |
8770 | fi | |
9c60689e | 8771 | |
a243b558 JF |
8772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8773 | $as_echo_n "checking for objdir... " >&6; } | |
8774 | if ${lt_cv_objdir+:} false; then : | |
ee134472 JF |
8775 | $as_echo_n "(cached) " >&6 |
8776 | else | |
a243b558 JF |
8777 | rm -f .libs 2>/dev/null |
8778 | mkdir .libs 2>/dev/null | |
8779 | if test -d .libs; then | |
8780 | lt_cv_objdir=.libs | |
8781 | else | |
8782 | # MS-DOS does not allow filenames that begin with a dot. | |
8783 | lt_cv_objdir=_libs | |
ee134472 | 8784 | fi |
a243b558 JF |
8785 | rmdir .libs 2>/dev/null |
8786 | fi | |
8787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
8788 | $as_echo "$lt_cv_objdir" >&6; } | |
8789 | objdir=$lt_cv_objdir | |
9c60689e DWT |
8790 | |
8791 | ||
8792 | ||
8793 | ||
8794 | ||
a243b558 JF |
8795 | cat >>confdefs.h <<_ACEOF |
8796 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8797 | _ACEOF | |
9c60689e DWT |
8798 | |
8799 | ||
8800 | ||
8801 | ||
a243b558 JF |
8802 | case $host_os in |
8803 | aix3*) | |
8804 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8805 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8806 | # vanish in a puff of smoke. | |
8807 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8808 | COLLECT_NAMES= | |
8809 | export COLLECT_NAMES | |
8810 | fi | |
8811 | ;; | |
8812 | esac | |
9c60689e | 8813 | |
a243b558 JF |
8814 | # Global variables: |
8815 | ofile=libtool | |
8816 | can_build_shared=yes | |
9c60689e | 8817 | |
a243b558 JF |
8818 | # All known linkers require a `.a' archive for static linking (except MSVC, |
8819 | # which needs '.lib'). | |
8820 | libext=a | |
9c60689e | 8821 | |
a243b558 | 8822 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
9c60689e | 8823 | |
a243b558 JF |
8824 | old_CC="$CC" |
8825 | old_CFLAGS="$CFLAGS" | |
9c60689e | 8826 | |
a243b558 JF |
8827 | # Set sane defaults for various variables |
8828 | test -z "$CC" && CC=cc | |
8829 | test -z "$LTCC" && LTCC=$CC | |
8830 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8831 | test -z "$LD" && LD=ld | |
8832 | test -z "$ac_objext" && ac_objext=o | |
9c60689e | 8833 | |
a243b558 JF |
8834 | for cc_temp in $compiler""; do |
8835 | case $cc_temp in | |
8836 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8837 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8838 | \-*) ;; | |
8839 | *) break;; | |
8840 | esac | |
8841 | done | |
8842 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
9c60689e DWT |
8843 | |
8844 | ||
a243b558 JF |
8845 | # Only perform the check for file, if the check method requires it |
8846 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8847 | case $deplibs_check_method in | |
8848 | file_magic*) | |
8849 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8851 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8852 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8853 | $as_echo_n "(cached) " >&6 | |
8854 | else | |
8855 | case $MAGIC_CMD in | |
8856 | [\\/*] | ?:[\\/]*) | |
8857 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8858 | ;; | |
8859 | *) | |
8860 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8861 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8862 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8863 | for ac_dir in $ac_dummy; do | |
8864 | IFS="$lt_save_ifs" | |
8865 | test -z "$ac_dir" && ac_dir=. | |
8866 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8867 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8868 | if test -n "$file_magic_test_file"; then | |
8869 | case $deplibs_check_method in | |
8870 | "file_magic "*) | |
8871 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8872 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8873 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8874 | $EGREP "$file_magic_regex" > /dev/null; then | |
8875 | : | |
8876 | else | |
8877 | cat <<_LT_EOF 1>&2 | |
9c60689e | 8878 | |
a243b558 JF |
8879 | *** Warning: the command libtool uses to detect shared libraries, |
8880 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8881 | *** The result is that libtool may fail to recognize shared libraries | |
8882 | *** as such. This will affect the creation of libtool libraries that | |
8883 | *** depend on shared libraries, but programs linked with such libtool | |
8884 | *** libraries will work regardless of this problem. Nevertheless, you | |
8885 | *** may want to report the problem to your system manager and/or to | |
8886 | *** bug-libtool@gnu.org | |
9c60689e | 8887 | |
a243b558 JF |
8888 | _LT_EOF |
8889 | fi ;; | |
8890 | esac | |
8891 | fi | |
8892 | break | |
8893 | fi | |
8894 | done | |
8895 | IFS="$lt_save_ifs" | |
8896 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8897 | ;; | |
8898 | esac | |
8899 | fi | |
9c60689e | 8900 | |
a243b558 JF |
8901 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8902 | if test -n "$MAGIC_CMD"; then | |
8903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8904 | $as_echo "$MAGIC_CMD" >&6; } | |
8905 | else | |
8906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8907 | $as_echo "no" >&6; } | |
8908 | fi | |
9c60689e DWT |
8909 | |
8910 | ||
8911 | ||
8912 | ||
8913 | ||
a243b558 JF |
8914 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
8915 | if test -n "$ac_tool_prefix"; then | |
8916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
8917 | $as_echo_n "checking for file... " >&6; } | |
8918 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8919 | $as_echo_n "(cached) " >&6 | |
8920 | else | |
8921 | case $MAGIC_CMD in | |
8922 | [\\/*] | ?:[\\/]*) | |
8923 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8924 | ;; | |
8925 | *) | |
8926 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8927 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8928 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8929 | for ac_dir in $ac_dummy; do | |
8930 | IFS="$lt_save_ifs" | |
8931 | test -z "$ac_dir" && ac_dir=. | |
8932 | if test -f $ac_dir/file; then | |
8933 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8934 | if test -n "$file_magic_test_file"; then | |
8935 | case $deplibs_check_method in | |
8936 | "file_magic "*) | |
8937 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8938 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8939 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8940 | $EGREP "$file_magic_regex" > /dev/null; then | |
8941 | : | |
8942 | else | |
8943 | cat <<_LT_EOF 1>&2 | |
9c60689e | 8944 | |
a243b558 JF |
8945 | *** Warning: the command libtool uses to detect shared libraries, |
8946 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8947 | *** The result is that libtool may fail to recognize shared libraries | |
8948 | *** as such. This will affect the creation of libtool libraries that | |
8949 | *** depend on shared libraries, but programs linked with such libtool | |
8950 | *** libraries will work regardless of this problem. Nevertheless, you | |
8951 | *** may want to report the problem to your system manager and/or to | |
8952 | *** bug-libtool@gnu.org | |
9c60689e | 8953 | |
a243b558 JF |
8954 | _LT_EOF |
8955 | fi ;; | |
8956 | esac | |
8957 | fi | |
8958 | break | |
8959 | fi | |
8960 | done | |
8961 | IFS="$lt_save_ifs" | |
8962 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8963 | ;; | |
8964 | esac | |
8965 | fi | |
9c60689e | 8966 | |
a243b558 JF |
8967 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8968 | if test -n "$MAGIC_CMD"; then | |
8969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8970 | $as_echo "$MAGIC_CMD" >&6; } | |
8971 | else | |
8972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8973 | $as_echo "no" >&6; } | |
8974 | fi | |
9c60689e DWT |
8975 | |
8976 | ||
a243b558 JF |
8977 | else |
8978 | MAGIC_CMD=: | |
8979 | fi | |
8980 | fi | |
9c60689e | 8981 | |
a243b558 JF |
8982 | fi |
8983 | ;; | |
8984 | esac | |
9c60689e | 8985 | |
a243b558 | 8986 | # Use C for the default configuration in the libtool script |
9c60689e | 8987 | |
a243b558 JF |
8988 | lt_save_CC="$CC" |
8989 | ac_ext=c | |
8990 | ac_cpp='$CPP $CPPFLAGS' | |
8991 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8992 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8993 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e DWT |
8994 | |
8995 | ||
a243b558 JF |
8996 | # Source file extension for C test sources. |
8997 | ac_ext=c | |
9c60689e | 8998 | |
a243b558 JF |
8999 | # Object file extension for compiled C test sources. |
9000 | objext=o | |
9001 | objext=$objext | |
9c60689e | 9002 | |
a243b558 JF |
9003 | # Code to be used in simple compile tests |
9004 | lt_simple_compile_test_code="int some_variable = 0;" | |
9c60689e | 9005 | |
a243b558 JF |
9006 | # Code to be used in simple link tests |
9007 | lt_simple_link_test_code='int main(){return(0);}' | |
9c60689e DWT |
9008 | |
9009 | ||
9010 | ||
9011 | ||
9012 | ||
9013 | ||
9014 | ||
a243b558 JF |
9015 | # If no C compiler was specified, use CC. |
9016 | LTCC=${LTCC-"$CC"} | |
9c60689e | 9017 | |
a243b558 JF |
9018 | # If no C compiler flags were specified, use CFLAGS. |
9019 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9c60689e | 9020 | |
a243b558 JF |
9021 | # Allow CC to be a program name with arguments. |
9022 | compiler=$CC | |
9c60689e | 9023 | |
a243b558 JF |
9024 | # Save the default compiler, since it gets overwritten when the other |
9025 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9026 | compiler_DEFAULT=$CC | |
9c60689e | 9027 | |
a243b558 JF |
9028 | # save warnings/boilerplate of simple test code |
9029 | ac_outfile=conftest.$ac_objext | |
9030 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9031 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9032 | _lt_compiler_boilerplate=`cat conftest.err` | |
9033 | $RM -r conftest* | |
9c60689e | 9034 | |
a243b558 JF |
9035 | ac_outfile=conftest.$ac_objext |
9036 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9037 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9038 | _lt_linker_boilerplate=`cat conftest.err` | |
9039 | $RM -r conftest* | |
9c60689e DWT |
9040 | |
9041 | ||
a243b558 JF |
9042 | ## CAVEAT EMPTOR: |
9043 | ## There is no encapsulation within the following macros, do not change | |
9044 | ## the running order or otherwise move them around unless you know exactly | |
9045 | ## what you are doing... | |
9046 | if test -n "$compiler"; then | |
9c60689e | 9047 | |
a243b558 | 9048 | lt_prog_compiler_no_builtin_flag= |
9c60689e | 9049 | |
a243b558 JF |
9050 | if test "$GCC" = yes; then |
9051 | case $cc_basename in | |
9052 | nvcc*) | |
9053 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9054 | *) | |
9055 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9056 | esac | |
9c60689e | 9057 | |
a243b558 JF |
9058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
9059 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
9060 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
9061 | $as_echo_n "(cached) " >&6 | |
9062 | else | |
9063 | lt_cv_prog_compiler_rtti_exceptions=no | |
9064 | ac_outfile=conftest.$ac_objext | |
9065 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9066 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9067 | # Insert the option either (1) after the last *FLAGS variable, or | |
9068 | # (2) before a word containing "conftest.", or (3) at the end. | |
9069 | # Note that $ac_compile itself does not contain backslashes and begins | |
9070 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9071 | # The option is referenced via a variable to avoid confusing sed. | |
9072 | lt_compile=`echo "$ac_compile" | $SED \ | |
9073 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9074 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9075 | -e 's:$: $lt_compiler_flag:'` | |
9076 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9077 | (eval "$lt_compile" 2>conftest.err) | |
9078 | ac_status=$? | |
9079 | cat conftest.err >&5 | |
9080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9081 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9082 | # The compiler can only warn and ignore the option if not recognized | |
9083 | # So say no if there are warnings other than the usual output. | |
9084 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9085 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9086 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9087 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9088 | fi | |
9089 | fi | |
9090 | $RM -r conftest* | |
9c60689e | 9091 | |
a243b558 JF |
9092 | fi |
9093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
9094 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
9c60689e | 9095 | |
a243b558 JF |
9096 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
9097 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9098 | else | |
9099 | : | |
9100 | fi | |
9c60689e | 9101 | |
a243b558 | 9102 | fi |
9c60689e DWT |
9103 | |
9104 | ||
9105 | ||
9106 | ||
9107 | ||
9108 | ||
a243b558 JF |
9109 | lt_prog_compiler_wl= |
9110 | lt_prog_compiler_pic= | |
9111 | lt_prog_compiler_static= | |
9c60689e DWT |
9112 | |
9113 | ||
a243b558 JF |
9114 | if test "$GCC" = yes; then |
9115 | lt_prog_compiler_wl='-Wl,' | |
9116 | lt_prog_compiler_static='-static' | |
9c60689e | 9117 | |
a243b558 JF |
9118 | case $host_os in |
9119 | aix*) | |
9120 | # All AIX code is PIC. | |
9121 | if test "$host_cpu" = ia64; then | |
9122 | # AIX 5 now supports IA64 processor | |
9123 | lt_prog_compiler_static='-Bstatic' | |
9124 | fi | |
9125 | ;; | |
9c60689e | 9126 | |
a243b558 JF |
9127 | amigaos*) |
9128 | case $host_cpu in | |
9129 | powerpc) | |
9130 | # see comment about AmigaOS4 .so support | |
9131 | lt_prog_compiler_pic='-fPIC' | |
9132 | ;; | |
9133 | m68k) | |
9134 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9135 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9136 | # like `-m68040'. | |
9137 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9138 | ;; | |
9139 | esac | |
9140 | ;; | |
9c60689e | 9141 | |
a243b558 JF |
9142 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
9143 | # PIC is the default for these OSes. | |
9144 | ;; | |
9c60689e | 9145 | |
a243b558 JF |
9146 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9147 | # This hack is so that the source file can tell whether it is being | |
9148 | # built for inclusion in a dll (and should export symbols for example). | |
9149 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9150 | # (--disable-auto-import) libraries | |
9151 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9152 | ;; | |
9c60689e | 9153 | |
a243b558 JF |
9154 | darwin* | rhapsody*) |
9155 | # PIC is the default on this platform | |
9156 | # Common symbols not allowed in MH_DYLIB files | |
9157 | lt_prog_compiler_pic='-fno-common' | |
9158 | ;; | |
9c60689e | 9159 | |
a243b558 JF |
9160 | haiku*) |
9161 | # PIC is the default for Haiku. | |
9162 | # The "-static" flag exists, but is broken. | |
9163 | lt_prog_compiler_static= | |
9164 | ;; | |
9c60689e | 9165 | |
a243b558 JF |
9166 | hpux*) |
9167 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
9168 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9169 | # sets the default TLS model and affects inlining. | |
9170 | case $host_cpu in | |
9171 | hppa*64*) | |
9172 | # +Z the default | |
9173 | ;; | |
9174 | *) | |
9175 | lt_prog_compiler_pic='-fPIC' | |
9176 | ;; | |
9177 | esac | |
9178 | ;; | |
9c60689e | 9179 | |
a243b558 JF |
9180 | interix[3-9]*) |
9181 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9182 | # Instead, we relocate shared libraries at runtime. | |
9183 | ;; | |
9c60689e | 9184 | |
a243b558 JF |
9185 | msdosdjgpp*) |
9186 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9187 | # on systems that don't support them. | |
9188 | lt_prog_compiler_can_build_shared=no | |
9189 | enable_shared=no | |
9190 | ;; | |
9c60689e | 9191 | |
a243b558 JF |
9192 | *nto* | *qnx*) |
9193 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9194 | # it will coredump. | |
9195 | lt_prog_compiler_pic='-fPIC -shared' | |
9196 | ;; | |
9c60689e | 9197 | |
a243b558 JF |
9198 | sysv4*MP*) |
9199 | if test -d /usr/nec; then | |
9200 | lt_prog_compiler_pic=-Kconform_pic | |
9201 | fi | |
9202 | ;; | |
9c60689e | 9203 | |
a243b558 JF |
9204 | *) |
9205 | lt_prog_compiler_pic='-fPIC' | |
9206 | ;; | |
9207 | esac | |
9c60689e | 9208 | |
a243b558 JF |
9209 | case $cc_basename in |
9210 | nvcc*) # Cuda Compiler Driver 2.2 | |
9211 | lt_prog_compiler_wl='-Xlinker ' | |
9212 | if test -n "$lt_prog_compiler_pic"; then | |
9213 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
9214 | fi | |
9215 | ;; | |
9216 | esac | |
9217 | else | |
9218 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9219 | case $host_os in | |
9220 | aix*) | |
9221 | lt_prog_compiler_wl='-Wl,' | |
9222 | if test "$host_cpu" = ia64; then | |
9223 | # AIX 5 now supports IA64 processor | |
9224 | lt_prog_compiler_static='-Bstatic' | |
9225 | else | |
9226 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9227 | fi | |
9228 | ;; | |
9c60689e | 9229 | |
a243b558 JF |
9230 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9231 | # This hack is so that the source file can tell whether it is being | |
9232 | # built for inclusion in a dll (and should export symbols for example). | |
9233 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9234 | ;; | |
9c60689e | 9235 | |
a243b558 JF |
9236 | hpux9* | hpux10* | hpux11*) |
9237 | lt_prog_compiler_wl='-Wl,' | |
9238 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9239 | # not for PA HP-UX. | |
9240 | case $host_cpu in | |
9241 | hppa*64*|ia64*) | |
9242 | # +Z the default | |
9243 | ;; | |
9244 | *) | |
9245 | lt_prog_compiler_pic='+Z' | |
9246 | ;; | |
9247 | esac | |
9248 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9249 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9250 | ;; | |
9c60689e | 9251 | |
a243b558 JF |
9252 | irix5* | irix6* | nonstopux*) |
9253 | lt_prog_compiler_wl='-Wl,' | |
9254 | # PIC (with -KPIC) is the default. | |
9255 | lt_prog_compiler_static='-non_shared' | |
9256 | ;; | |
9c60689e | 9257 | |
a243b558 JF |
9258 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
9259 | case $cc_basename in | |
9260 | # old Intel for x86_64 which still supported -KPIC. | |
9261 | ecc*) | |
9262 | lt_prog_compiler_wl='-Wl,' | |
9263 | lt_prog_compiler_pic='-KPIC' | |
9264 | lt_prog_compiler_static='-static' | |
9265 | ;; | |
9266 | # icc used to be incompatible with GCC. | |
9267 | # ICC 10 doesn't accept -KPIC any more. | |
9268 | icc* | ifort*) | |
9269 | lt_prog_compiler_wl='-Wl,' | |
9270 | lt_prog_compiler_pic='-fPIC' | |
9271 | lt_prog_compiler_static='-static' | |
9272 | ;; | |
9273 | # Lahey Fortran 8.1. | |
9274 | lf95*) | |
9275 | lt_prog_compiler_wl='-Wl,' | |
9276 | lt_prog_compiler_pic='--shared' | |
9277 | lt_prog_compiler_static='--static' | |
9278 | ;; | |
9279 | nagfor*) | |
9280 | # NAG Fortran compiler | |
9281 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
9282 | lt_prog_compiler_pic='-PIC' | |
9283 | lt_prog_compiler_static='-Bstatic' | |
9284 | ;; | |
9285 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9286 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
9287 | # which looks to be a dead project) | |
9288 | lt_prog_compiler_wl='-Wl,' | |
9289 | lt_prog_compiler_pic='-fpic' | |
9290 | lt_prog_compiler_static='-Bstatic' | |
9291 | ;; | |
9292 | ccc*) | |
9293 | lt_prog_compiler_wl='-Wl,' | |
9294 | # All Alpha code is PIC. | |
9295 | lt_prog_compiler_static='-non_shared' | |
9296 | ;; | |
9297 | xl* | bgxl* | bgf* | mpixl*) | |
9298 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
9299 | lt_prog_compiler_wl='-Wl,' | |
9300 | lt_prog_compiler_pic='-qpic' | |
9301 | lt_prog_compiler_static='-qstaticlink' | |
9302 | ;; | |
9303 | *) | |
9304 | case `$CC -V 2>&1 | sed 5q` in | |
9305 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
9306 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
9307 | lt_prog_compiler_pic='-KPIC' | |
9308 | lt_prog_compiler_static='-Bstatic' | |
9309 | lt_prog_compiler_wl='' | |
9310 | ;; | |
9311 | *Sun\ F* | *Sun*Fortran*) | |
9312 | lt_prog_compiler_pic='-KPIC' | |
9313 | lt_prog_compiler_static='-Bstatic' | |
9314 | lt_prog_compiler_wl='-Qoption ld ' | |
9315 | ;; | |
9316 | *Sun\ C*) | |
9317 | # Sun C 5.9 | |
9318 | lt_prog_compiler_pic='-KPIC' | |
9319 | lt_prog_compiler_static='-Bstatic' | |
9320 | lt_prog_compiler_wl='-Wl,' | |
9321 | ;; | |
9322 | *Intel*\ [CF]*Compiler*) | |
9323 | lt_prog_compiler_wl='-Wl,' | |
9324 | lt_prog_compiler_pic='-fPIC' | |
9325 | lt_prog_compiler_static='-static' | |
9326 | ;; | |
9327 | *Portland\ Group*) | |
9328 | lt_prog_compiler_wl='-Wl,' | |
9329 | lt_prog_compiler_pic='-fpic' | |
9330 | lt_prog_compiler_static='-Bstatic' | |
9331 | ;; | |
9332 | esac | |
9333 | ;; | |
9334 | esac | |
9335 | ;; | |
9c60689e | 9336 | |
a243b558 JF |
9337 | newsos6) |
9338 | lt_prog_compiler_pic='-KPIC' | |
9339 | lt_prog_compiler_static='-Bstatic' | |
9340 | ;; | |
9c60689e | 9341 | |
a243b558 JF |
9342 | *nto* | *qnx*) |
9343 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9344 | # it will coredump. | |
9345 | lt_prog_compiler_pic='-fPIC -shared' | |
9346 | ;; | |
9c60689e | 9347 | |
a243b558 JF |
9348 | osf3* | osf4* | osf5*) |
9349 | lt_prog_compiler_wl='-Wl,' | |
9350 | # All OSF/1 code is PIC. | |
9351 | lt_prog_compiler_static='-non_shared' | |
9352 | ;; | |
9c60689e | 9353 | |
a243b558 JF |
9354 | rdos*) |
9355 | lt_prog_compiler_static='-non_shared' | |
9356 | ;; | |
9c60689e | 9357 | |
a243b558 JF |
9358 | solaris*) |
9359 | lt_prog_compiler_pic='-KPIC' | |
9360 | lt_prog_compiler_static='-Bstatic' | |
9361 | case $cc_basename in | |
9362 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
9363 | lt_prog_compiler_wl='-Qoption ld ';; | |
9364 | *) | |
9365 | lt_prog_compiler_wl='-Wl,';; | |
9366 | esac | |
9367 | ;; | |
9c60689e | 9368 | |
a243b558 JF |
9369 | sunos4*) |
9370 | lt_prog_compiler_wl='-Qoption ld ' | |
9371 | lt_prog_compiler_pic='-PIC' | |
9372 | lt_prog_compiler_static='-Bstatic' | |
9373 | ;; | |
9c60689e | 9374 | |
a243b558 JF |
9375 | sysv4 | sysv4.2uw2* | sysv4.3*) |
9376 | lt_prog_compiler_wl='-Wl,' | |
9377 | lt_prog_compiler_pic='-KPIC' | |
9378 | lt_prog_compiler_static='-Bstatic' | |
9379 | ;; | |
9c60689e | 9380 | |
a243b558 JF |
9381 | sysv4*MP*) |
9382 | if test -d /usr/nec ;then | |
9383 | lt_prog_compiler_pic='-Kconform_pic' | |
9384 | lt_prog_compiler_static='-Bstatic' | |
9385 | fi | |
9386 | ;; | |
9c60689e | 9387 | |
a243b558 JF |
9388 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
9389 | lt_prog_compiler_wl='-Wl,' | |
9390 | lt_prog_compiler_pic='-KPIC' | |
9391 | lt_prog_compiler_static='-Bstatic' | |
9392 | ;; | |
9c60689e | 9393 | |
a243b558 JF |
9394 | unicos*) |
9395 | lt_prog_compiler_wl='-Wl,' | |
9396 | lt_prog_compiler_can_build_shared=no | |
9397 | ;; | |
9c60689e | 9398 | |
a243b558 JF |
9399 | uts4*) |
9400 | lt_prog_compiler_pic='-pic' | |
9401 | lt_prog_compiler_static='-Bstatic' | |
9402 | ;; | |
9c60689e | 9403 | |
a243b558 JF |
9404 | *) |
9405 | lt_prog_compiler_can_build_shared=no | |
9406 | ;; | |
9407 | esac | |
9408 | fi | |
9c60689e | 9409 | |
a243b558 JF |
9410 | case $host_os in |
9411 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9412 | *djgpp*) | |
9413 | lt_prog_compiler_pic= | |
9414 | ;; | |
9415 | *) | |
9416 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9417 | ;; | |
9418 | esac | |
9c60689e | 9419 | |
a243b558 JF |
9420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9421 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
9422 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
9423 | $as_echo_n "(cached) " >&6 | |
9424 | else | |
9425 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
9426 | fi | |
9427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
9428 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
9429 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
9c60689e | 9430 | |
a243b558 JF |
9431 | # |
9432 | # Check to make sure the PIC flag actually works. | |
9433 | # | |
9434 | if test -n "$lt_prog_compiler_pic"; then | |
9435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
9436 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
9437 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
9438 | $as_echo_n "(cached) " >&6 | |
9439 | else | |
9440 | lt_cv_prog_compiler_pic_works=no | |
9441 | ac_outfile=conftest.$ac_objext | |
9442 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9443 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
9444 | # Insert the option either (1) after the last *FLAGS variable, or | |
9445 | # (2) before a word containing "conftest.", or (3) at the end. | |
9446 | # Note that $ac_compile itself does not contain backslashes and begins | |
9447 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9448 | # The option is referenced via a variable to avoid confusing sed. | |
9449 | lt_compile=`echo "$ac_compile" | $SED \ | |
9450 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9451 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9452 | -e 's:$: $lt_compiler_flag:'` | |
9453 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9454 | (eval "$lt_compile" 2>conftest.err) | |
9455 | ac_status=$? | |
9456 | cat conftest.err >&5 | |
9457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9458 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9459 | # The compiler can only warn and ignore the option if not recognized | |
9460 | # So say no if there are warnings other than the usual output. | |
9461 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9462 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9463 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9464 | lt_cv_prog_compiler_pic_works=yes | |
9465 | fi | |
9466 | fi | |
9467 | $RM -r conftest* | |
9c60689e | 9468 | |
a243b558 JF |
9469 | fi |
9470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
9471 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
9c60689e | 9472 | |
a243b558 JF |
9473 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
9474 | case $lt_prog_compiler_pic in | |
9475 | "" | " "*) ;; | |
9476 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9477 | esac | |
9478 | else | |
9479 | lt_prog_compiler_pic= | |
9480 | lt_prog_compiler_can_build_shared=no | |
9481 | fi | |
9c60689e | 9482 | |
a243b558 | 9483 | fi |
9c60689e DWT |
9484 | |
9485 | ||
9486 | ||
9487 | ||
9488 | ||
9489 | ||
9c60689e DWT |
9490 | |
9491 | ||
9492 | ||
9493 | ||
9494 | ||
a243b558 JF |
9495 | # |
9496 | # Check to make sure the static flag actually works. | |
9497 | # | |
9498 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
9499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9500 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9501 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
9502 | $as_echo_n "(cached) " >&6 | |
9503 | else | |
9504 | lt_cv_prog_compiler_static_works=no | |
9505 | save_LDFLAGS="$LDFLAGS" | |
9506 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9507 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9508 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9509 | # The linker can only warn and ignore the option if not recognized | |
9510 | # So say no if there are warnings | |
9511 | if test -s conftest.err; then | |
9512 | # Append any errors to the config.log. | |
9513 | cat conftest.err 1>&5 | |
9514 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9515 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9516 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9517 | lt_cv_prog_compiler_static_works=yes | |
9518 | fi | |
9519 | else | |
9520 | lt_cv_prog_compiler_static_works=yes | |
9521 | fi | |
9522 | fi | |
9523 | $RM -r conftest* | |
9524 | LDFLAGS="$save_LDFLAGS" | |
9c60689e | 9525 | |
a243b558 JF |
9526 | fi |
9527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9528 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
9c60689e | 9529 | |
a243b558 JF |
9530 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
9531 | : | |
9c60689e | 9532 | else |
a243b558 | 9533 | lt_prog_compiler_static= |
9c60689e | 9534 | fi |
9c60689e | 9535 | |
9c60689e | 9536 | |
9c60689e | 9537 | |
9c60689e | 9538 | |
9c60689e | 9539 | |
9c60689e | 9540 | |
9c60689e | 9541 | |
a243b558 JF |
9542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9543 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9544 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9545 | $as_echo_n "(cached) " >&6 | |
9546 | else | |
9547 | lt_cv_prog_compiler_c_o=no | |
9548 | $RM -r conftest 2>/dev/null | |
9549 | mkdir conftest | |
9550 | cd conftest | |
9551 | mkdir out | |
9552 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9c60689e | 9553 | |
a243b558 JF |
9554 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9555 | # Insert the option either (1) after the last *FLAGS variable, or | |
9556 | # (2) before a word containing "conftest.", or (3) at the end. | |
9557 | # Note that $ac_compile itself does not contain backslashes and begins | |
9558 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9559 | lt_compile=`echo "$ac_compile" | $SED \ | |
9560 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9561 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9562 | -e 's:$: $lt_compiler_flag:'` | |
9563 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9564 | (eval "$lt_compile" 2>out/conftest.err) | |
9565 | ac_status=$? | |
9566 | cat out/conftest.err >&5 | |
9567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9568 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9569 | then | |
9570 | # The compiler can only warn and ignore the option if not recognized | |
9571 | # So say no if there are warnings | |
9572 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9573 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9574 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9575 | lt_cv_prog_compiler_c_o=yes | |
9576 | fi | |
9577 | fi | |
9578 | chmod u+w . 2>&5 | |
9579 | $RM -r conftest* | |
9580 | # SGI C++ compiler will create directory out/ii_files/ for | |
9581 | # template instantiation | |
9582 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9583 | $RM out/* && rmdir out | |
9584 | cd .. | |
9585 | $RM -r conftest | |
9586 | $RM -r conftest* | |
9c60689e | 9587 | |
a243b558 JF |
9588 | fi |
9589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9590 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9c60689e | 9591 | |
ee134472 | 9592 | |
ee134472 | 9593 | |
ee134472 | 9594 | |
ee134472 | 9595 | |
9c60689e | 9596 | |
a243b558 JF |
9597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9598 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9599 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9600 | $as_echo_n "(cached) " >&6 | |
9601 | else | |
9602 | lt_cv_prog_compiler_c_o=no | |
9603 | $RM -r conftest 2>/dev/null | |
9604 | mkdir conftest | |
9605 | cd conftest | |
9606 | mkdir out | |
9607 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9c60689e | 9608 | |
a243b558 JF |
9609 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9610 | # Insert the option either (1) after the last *FLAGS variable, or | |
9611 | # (2) before a word containing "conftest.", or (3) at the end. | |
9612 | # Note that $ac_compile itself does not contain backslashes and begins | |
9613 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9614 | lt_compile=`echo "$ac_compile" | $SED \ | |
9615 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9616 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9617 | -e 's:$: $lt_compiler_flag:'` | |
9618 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9619 | (eval "$lt_compile" 2>out/conftest.err) | |
9620 | ac_status=$? | |
9621 | cat out/conftest.err >&5 | |
9622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9623 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9624 | then | |
9625 | # The compiler can only warn and ignore the option if not recognized | |
9626 | # So say no if there are warnings | |
9627 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9628 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9629 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9630 | lt_cv_prog_compiler_c_o=yes | |
9631 | fi | |
9632 | fi | |
9633 | chmod u+w . 2>&5 | |
9634 | $RM -r conftest* | |
9635 | # SGI C++ compiler will create directory out/ii_files/ for | |
9636 | # template instantiation | |
9637 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9638 | $RM out/* && rmdir out | |
9639 | cd .. | |
9640 | $RM -r conftest | |
9641 | $RM -r conftest* | |
9c60689e | 9642 | |
a243b558 JF |
9643 | fi |
9644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9645 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9c60689e | 9646 | |
9c60689e | 9647 | |
a243b558 JF |
9648 | |
9649 | ||
9650 | hard_links="nottested" | |
9651 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9652 | # do not overwrite the value of need_locks provided by the user | |
9653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
9654 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
9655 | hard_links=yes | |
9656 | $RM -r conftest* | |
9657 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9658 | touch conftest.a | |
9659 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9660 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
9662 | $as_echo "$hard_links" >&6; } | |
9663 | if test "$hard_links" = no; then | |
9664 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
9665 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
9666 | need_locks=warn | |
9c60689e | 9667 | fi |
a243b558 JF |
9668 | else |
9669 | need_locks=no | |
9670 | fi | |
9c60689e | 9671 | |
ee134472 | 9672 | |
9c60689e | 9673 | |
9c60689e | 9674 | |
9c60689e | 9675 | |
a243b558 JF |
9676 | |
9677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
9678 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
9679 | ||
9680 | runpath_var= | |
9681 | allow_undefined_flag= | |
9682 | always_export_symbols=no | |
9683 | archive_cmds= | |
9684 | archive_expsym_cmds= | |
9685 | compiler_needs_object=no | |
9686 | enable_shared_with_static_runtimes=no | |
9687 | export_dynamic_flag_spec= | |
9688 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9689 | hardcode_automatic=no | |
9690 | hardcode_direct=no | |
9691 | hardcode_direct_absolute=no | |
9692 | hardcode_libdir_flag_spec= | |
9693 | hardcode_libdir_separator= | |
9694 | hardcode_minus_L=no | |
9695 | hardcode_shlibpath_var=unsupported | |
9696 | inherit_rpath=no | |
9697 | link_all_deplibs=unknown | |
9698 | module_cmds= | |
9699 | module_expsym_cmds= | |
9700 | old_archive_from_new_cmds= | |
9701 | old_archive_from_expsyms_cmds= | |
9702 | thread_safe_flag_spec= | |
9703 | whole_archive_flag_spec= | |
9704 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9705 | # included in the symbol list | |
9706 | include_expsyms= | |
9707 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9708 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9709 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9710 | # as well as any symbol that contains `d'. | |
9711 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
9712 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9713 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9714 | # the symbol is explicitly referenced. Since portable code cannot | |
9715 | # rely on this symbol name, it's probably fine to never include it in | |
9716 | # preloaded symbol tables. | |
9717 | # Exclude shared library initialization/finalization symbols. | |
9718 | extract_expsyms_cmds= | |
9719 | ||
9c60689e | 9720 | case $host_os in |
a243b558 JF |
9721 | cygwin* | mingw* | pw32* | cegcc*) |
9722 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9723 | # When not using gcc, we currently assume that we are using | |
9724 | # Microsoft Visual C++. | |
9725 | if test "$GCC" != yes; then | |
9726 | with_gnu_ld=no | |
9727 | fi | |
9c60689e | 9728 | ;; |
a243b558 JF |
9729 | interix*) |
9730 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9731 | with_gnu_ld=yes | |
9732 | ;; | |
9733 | openbsd*) | |
9734 | with_gnu_ld=no | |
9c60689e DWT |
9735 | ;; |
9736 | esac | |
9c60689e | 9737 | |
a243b558 | 9738 | ld_shlibs=yes |
ee134472 | 9739 | |
a243b558 JF |
9740 | # On some targets, GNU ld is compatible enough with the native linker |
9741 | # that we're better off using the native interface for both. | |
9742 | lt_use_gnu_ld_interface=no | |
9743 | if test "$with_gnu_ld" = yes; then | |
9744 | case $host_os in | |
9745 | aix*) | |
9746 | # The AIX port of GNU ld has always aspired to compatibility | |
9747 | # with the native linker. However, as the warning in the GNU ld | |
9748 | # block says, versions before 2.19.5* couldn't really create working | |
9749 | # shared libraries, regardless of the interface used. | |
9750 | case `$LD -v 2>&1` in | |
9751 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9752 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9753 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9754 | *) | |
9755 | lt_use_gnu_ld_interface=yes | |
9756 | ;; | |
9757 | esac | |
9758 | ;; | |
9759 | *) | |
9760 | lt_use_gnu_ld_interface=yes | |
9761 | ;; | |
9762 | esac | |
9763 | fi | |
9c60689e | 9764 | |
a243b558 JF |
9765 | if test "$lt_use_gnu_ld_interface" = yes; then |
9766 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9767 | wlarc='${wl}' | |
9c60689e | 9768 | |
a243b558 JF |
9769 | # Set some defaults for GNU ld with shared library support. These |
9770 | # are reset later if shared libraries are not supported. Putting them | |
9771 | # here allows them to be overridden if necessary. | |
9772 | runpath_var=LD_RUN_PATH | |
9773 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9774 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9775 | # ancient GNU ld didn't support --whole-archive et. al. | |
9776 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9777 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9778 | else | |
9779 | whole_archive_flag_spec= | |
9780 | fi | |
9781 | supports_anon_versioning=no | |
9782 | case `$LD -v 2>&1` in | |
9783 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
9784 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9785 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9786 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9787 | *\ 2.11.*) ;; # other 2.11 versions | |
9788 | *) supports_anon_versioning=yes ;; | |
9789 | esac | |
ee134472 | 9790 | |
a243b558 JF |
9791 | # See if GNU ld supports shared libraries. |
9792 | case $host_os in | |
9793 | aix[3-9]*) | |
9794 | # On AIX/PPC, the GNU linker is very broken | |
9795 | if test "$host_cpu" != ia64; then | |
9796 | ld_shlibs=no | |
9797 | cat <<_LT_EOF 1>&2 | |
ee134472 | 9798 | |
a243b558 JF |
9799 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
9800 | *** to be unable to reliably create shared libraries on AIX. | |
9801 | *** Therefore, libtool is disabling shared libraries support. If you | |
9802 | *** really care for shared libraries, you may want to install binutils | |
9803 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9804 | *** You will then need to restart the configuration process. | |
9c60689e | 9805 | |
a243b558 JF |
9806 | _LT_EOF |
9807 | fi | |
9808 | ;; | |
9c60689e | 9809 | |
a243b558 JF |
9810 | amigaos*) |
9811 | case $host_cpu in | |
9812 | powerpc) | |
9813 | # see comment about AmigaOS4 .so support | |
9814 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9815 | archive_expsym_cmds='' | |
9816 | ;; | |
9817 | m68k) | |
9818 | 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)' | |
9819 | hardcode_libdir_flag_spec='-L$libdir' | |
9820 | hardcode_minus_L=yes | |
9821 | ;; | |
9822 | esac | |
9823 | ;; | |
9c60689e | 9824 | |
a243b558 JF |
9825 | beos*) |
9826 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9827 | allow_undefined_flag=unsupported | |
9828 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9829 | # support --undefined. This deserves some investigation. FIXME | |
9830 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9831 | else | |
9832 | ld_shlibs=no | |
9833 | fi | |
9834 | ;; | |
9c60689e | 9835 | |
a243b558 JF |
9836 | cygwin* | mingw* | pw32* | cegcc*) |
9837 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9838 | # as there is no search path for DLLs. | |
9839 | hardcode_libdir_flag_spec='-L$libdir' | |
9840 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
9841 | allow_undefined_flag=unsupported | |
9842 | always_export_symbols=no | |
9843 | enable_shared_with_static_runtimes=yes | |
9844 | 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' | |
9845 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
9c60689e | 9846 | |
a243b558 JF |
9847 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
9848 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9849 | # If the export-symbols file already is a .def file (1st line | |
9850 | # is EXPORTS), use it as is; otherwise, prepend... | |
9851 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9852 | cp $export_symbols $output_objdir/$soname.def; | |
9853 | else | |
9854 | echo EXPORTS > $output_objdir/$soname.def; | |
9855 | cat $export_symbols >> $output_objdir/$soname.def; | |
9856 | fi~ | |
9857 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9858 | else | |
9859 | ld_shlibs=no | |
9860 | fi | |
9861 | ;; | |
9c60689e | 9862 | |
a243b558 JF |
9863 | haiku*) |
9864 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9865 | link_all_deplibs=yes | |
9866 | ;; | |
9c60689e | 9867 | |
a243b558 JF |
9868 | interix[3-9]*) |
9869 | hardcode_direct=no | |
9870 | hardcode_shlibpath_var=no | |
9871 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9872 | export_dynamic_flag_spec='${wl}-E' | |
9873 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9874 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9875 | # default) and relocated if they conflict, which is a slow very memory | |
9876 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9877 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9878 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9879 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9880 | 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' | |
9881 | ;; | |
9c60689e | 9882 | |
a243b558 JF |
9883 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
9884 | tmp_diet=no | |
9885 | if test "$host_os" = linux-dietlibc; then | |
9886 | case $cc_basename in | |
9887 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9888 | esac | |
9889 | fi | |
9890 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9891 | && test "$tmp_diet" = no | |
9892 | then | |
9893 | tmp_addflag=' $pic_flag' | |
9894 | tmp_sharedflag='-shared' | |
9895 | case $cc_basename,$host_cpu in | |
9896 | pgcc*) # Portland Group C compiler | |
9897 | 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' | |
9898 | tmp_addflag=' $pic_flag' | |
9899 | ;; | |
9900 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9901 | # Portland Group f77 and f90 compilers | |
9902 | 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' | |
9903 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
9904 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9905 | tmp_addflag=' -i_dynamic' ;; | |
9906 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9907 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9908 | ifc* | ifort*) # Intel Fortran compiler | |
9909 | tmp_addflag=' -nofor_main' ;; | |
9910 | lf95*) # Lahey Fortran 8.1 | |
9911 | whole_archive_flag_spec= | |
9912 | tmp_sharedflag='--shared' ;; | |
9913 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9914 | tmp_sharedflag='-qmkshrobj' | |
9915 | tmp_addflag= ;; | |
9916 | nvcc*) # Cuda Compiler Driver 2.2 | |
9917 | 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' | |
9918 | compiler_needs_object=yes | |
9919 | ;; | |
9920 | esac | |
9921 | case `$CC -V 2>&1 | sed 5q` in | |
9922 | *Sun\ C*) # Sun C 5.9 | |
9923 | 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' | |
9924 | compiler_needs_object=yes | |
9925 | tmp_sharedflag='-G' ;; | |
9926 | *Sun\ F*) # Sun Fortran 8.3 | |
9927 | tmp_sharedflag='-G' ;; | |
9928 | esac | |
9929 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9c60689e | 9930 | |
a243b558 JF |
9931 | if test "x$supports_anon_versioning" = xyes; then |
9932 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9933 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9934 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9935 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9936 | fi | |
9c60689e | 9937 | |
a243b558 JF |
9938 | case $cc_basename in |
9939 | xlf* | bgf* | bgxlf* | mpixlf*) | |
9940 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9941 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9942 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9943 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
9944 | if test "x$supports_anon_versioning" = xyes; then | |
9945 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9946 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9947 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9948 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9949 | fi | |
9950 | ;; | |
9951 | esac | |
9952 | else | |
9953 | ld_shlibs=no | |
9954 | fi | |
9955 | ;; | |
9c60689e | 9956 | |
a243b558 JF |
9957 | netbsd*) |
9958 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9959 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9960 | wlarc= | |
9961 | else | |
9962 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9963 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9964 | fi | |
9965 | ;; | |
9c60689e | 9966 | |
a243b558 JF |
9967 | solaris*) |
9968 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9969 | ld_shlibs=no | |
9970 | cat <<_LT_EOF 1>&2 | |
9c60689e | 9971 | |
a243b558 JF |
9972 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
9973 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9974 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9975 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9976 | *** your PATH or compiler configuration so that the native linker is | |
9977 | *** used, and then restart. | |
9c60689e | 9978 | |
a243b558 JF |
9979 | _LT_EOF |
9980 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9981 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9982 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9983 | else | |
9984 | ld_shlibs=no | |
9985 | fi | |
9986 | ;; | |
9c60689e | 9987 | |
a243b558 JF |
9988 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
9989 | case `$LD -v 2>&1` in | |
9990 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9991 | ld_shlibs=no | |
9992 | cat <<_LT_EOF 1>&2 | |
9c60689e | 9993 | |
a243b558 JF |
9994 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
9995 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9996 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9997 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9998 | *** your PATH or compiler configuration so that the native linker is | |
9999 | *** used, and then restart. | |
9c60689e | 10000 | |
a243b558 JF |
10001 | _LT_EOF |
10002 | ;; | |
10003 | *) | |
10004 | # For security reasons, it is highly recommended that you always | |
10005 | # use absolute paths for naming shared libraries, and exclude the | |
10006 | # DT_RUNPATH tag from executables and libraries. But doing so | |
10007 | # requires that you compile everything twice, which is a pain. | |
10008 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10009 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10010 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10011 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10012 | else | |
10013 | ld_shlibs=no | |
10014 | fi | |
10015 | ;; | |
10016 | esac | |
10017 | ;; | |
9c60689e | 10018 | |
a243b558 JF |
10019 | sunos4*) |
10020 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10021 | wlarc= | |
10022 | hardcode_direct=yes | |
10023 | hardcode_shlibpath_var=no | |
10024 | ;; | |
9c60689e | 10025 | |
a243b558 JF |
10026 | *) |
10027 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10028 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10029 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10030 | else | |
10031 | ld_shlibs=no | |
10032 | fi | |
10033 | ;; | |
10034 | esac | |
9c60689e | 10035 | |
a243b558 JF |
10036 | if test "$ld_shlibs" = no; then |
10037 | runpath_var= | |
10038 | hardcode_libdir_flag_spec= | |
10039 | export_dynamic_flag_spec= | |
10040 | whole_archive_flag_spec= | |
10041 | fi | |
10042 | else | |
10043 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10044 | case $host_os in | |
10045 | aix3*) | |
10046 | allow_undefined_flag=unsupported | |
10047 | always_export_symbols=yes | |
10048 | 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' | |
10049 | # Note: this linker hardcodes the directories in LIBPATH if there | |
10050 | # are no directories specified by -L. | |
10051 | hardcode_minus_L=yes | |
10052 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
10053 | # Neither direct hardcoding nor static linking is supported with a | |
10054 | # broken collect2. | |
10055 | hardcode_direct=unsupported | |
10056 | fi | |
10057 | ;; | |
9c60689e | 10058 | |
a243b558 JF |
10059 | aix[4-9]*) |
10060 | if test "$host_cpu" = ia64; then | |
10061 | # On IA64, the linker does run time linking by default, so we don't | |
10062 | # have to do anything special. | |
10063 | aix_use_runtimelinking=no | |
10064 | exp_sym_flag='-Bexport' | |
10065 | no_entry_flag="" | |
10066 | else | |
10067 | # If we're using GNU nm, then we don't want the "-C" option. | |
10068 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
10069 | # Also, AIX nm treats weak defined symbols like other global | |
10070 | # defined symbols, whereas GNU nm marks them as "W". | |
10071 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
10072 | 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' | |
10073 | else | |
10074 | 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' | |
10075 | fi | |
10076 | aix_use_runtimelinking=no | |
9c60689e | 10077 | |
a243b558 JF |
10078 | # Test if we are trying to use run time linking or normal |
10079 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10080 | # need to do runtime linking. | |
10081 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
10082 | for ld_flag in $LDFLAGS; do | |
10083 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
10084 | aix_use_runtimelinking=yes | |
10085 | break | |
10086 | fi | |
10087 | done | |
10088 | ;; | |
10089 | esac | |
9c60689e | 10090 | |
a243b558 JF |
10091 | exp_sym_flag='-bexport' |
10092 | no_entry_flag='-bnoentry' | |
10093 | fi | |
9c60689e | 10094 | |
a243b558 JF |
10095 | # When large executables or shared objects are built, AIX ld can |
10096 | # have problems creating the table of contents. If linking a library | |
10097 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10098 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10099 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9c60689e | 10100 | |
a243b558 JF |
10101 | archive_cmds='' |
10102 | hardcode_direct=yes | |
10103 | hardcode_direct_absolute=yes | |
10104 | hardcode_libdir_separator=':' | |
10105 | link_all_deplibs=yes | |
10106 | file_list_spec='${wl}-f,' | |
9c60689e | 10107 | |
a243b558 JF |
10108 | if test "$GCC" = yes; then |
10109 | case $host_os in aix4.[012]|aix4.[012].*) | |
10110 | # We only want to do this on AIX 4.2 and lower, the check | |
10111 | # below for broken collect2 doesn't work under 4.3+ | |
10112 | collect2name=`${CC} -print-prog-name=collect2` | |
10113 | if test -f "$collect2name" && | |
10114 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10115 | then | |
10116 | # We have reworked collect2 | |
10117 | : | |
10118 | else | |
10119 | # We have old collect2 | |
10120 | hardcode_direct=unsupported | |
10121 | # It fails to find uninstalled libraries when the uninstalled | |
10122 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10123 | # to unsupported forces relinking | |
10124 | hardcode_minus_L=yes | |
10125 | hardcode_libdir_flag_spec='-L$libdir' | |
10126 | hardcode_libdir_separator= | |
10127 | fi | |
10128 | ;; | |
10129 | esac | |
10130 | shared_flag='-shared' | |
10131 | if test "$aix_use_runtimelinking" = yes; then | |
10132 | shared_flag="$shared_flag "'${wl}-G' | |
10133 | fi | |
10134 | else | |
10135 | # not using gcc | |
10136 | if test "$host_cpu" = ia64; then | |
10137 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10138 | # chokes on -Wl,-G. The following line is correct: | |
10139 | shared_flag='-G' | |
10140 | else | |
10141 | if test "$aix_use_runtimelinking" = yes; then | |
10142 | shared_flag='${wl}-G' | |
10143 | else | |
10144 | shared_flag='${wl}-bM:SRE' | |
10145 | fi | |
10146 | fi | |
10147 | fi | |
9c60689e | 10148 | |
a243b558 JF |
10149 | export_dynamic_flag_spec='${wl}-bexpall' |
10150 | # It seems that -bexpall does not export symbols beginning with | |
10151 | # underscore (_), so it is better to generate a list of symbols to export. | |
10152 | always_export_symbols=yes | |
10153 | if test "$aix_use_runtimelinking" = yes; then | |
10154 | # Warning - without using the other runtime loading flags (-brtl), | |
10155 | # -berok will link without error, but may produce a broken library. | |
10156 | allow_undefined_flag='-berok' | |
10157 | # Determine the default libpath from the value encoded in an | |
10158 | # empty executable. | |
10159 | if test "${lt_cv_aix_libpath+set}" = set; then | |
10160 | aix_libpath=$lt_cv_aix_libpath | |
9c60689e | 10161 | else |
a243b558 | 10162 | if ${lt_cv_aix_libpath_+:} false; then : |
9c60689e DWT |
10163 | $as_echo_n "(cached) " >&6 |
10164 | else | |
a243b558 | 10165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9c60689e DWT |
10166 | /* end confdefs.h. */ |
10167 | ||
9c60689e DWT |
10168 | int |
10169 | main () | |
10170 | { | |
a243b558 | 10171 | |
9c60689e DWT |
10172 | ; |
10173 | return 0; | |
10174 | } | |
10175 | _ACEOF | |
10176 | if ac_fn_c_try_link "$LINENO"; then : | |
a243b558 JF |
10177 | |
10178 | lt_aix_libpath_sed=' | |
10179 | /Import File Strings/,/^$/ { | |
10180 | /^0/ { | |
10181 | s/^0 *\([^ ]*\) *$/\1/ | |
10182 | p | |
10183 | } | |
10184 | }' | |
10185 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10186 | # Check for a 64-bit object if we didn't find anything. | |
10187 | if test -z "$lt_cv_aix_libpath_"; then | |
10188 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10189 | fi | |
9c60689e DWT |
10190 | fi |
10191 | rm -f core conftest.err conftest.$ac_objext \ | |
10192 | conftest$ac_exeext conftest.$ac_ext | |
a243b558 JF |
10193 | if test -z "$lt_cv_aix_libpath_"; then |
10194 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
10195 | fi | |
9c60689e DWT |
10196 | |
10197 | fi | |
10198 | ||
a243b558 JF |
10199 | aix_libpath=$lt_cv_aix_libpath_ |
10200 | fi | |
9c60689e | 10201 | |
a243b558 JF |
10202 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
10203 | 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" | |
10204 | else | |
10205 | if test "$host_cpu" = ia64; then | |
10206 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
10207 | allow_undefined_flag="-z nodefs" | |
10208 | 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" | |
10209 | else | |
10210 | # Determine the default libpath from the value encoded in an | |
10211 | # empty executable. | |
10212 | if test "${lt_cv_aix_libpath+set}" = set; then | |
10213 | aix_libpath=$lt_cv_aix_libpath | |
9c60689e | 10214 | else |
a243b558 | 10215 | if ${lt_cv_aix_libpath_+:} false; then : |
9c60689e DWT |
10216 | $as_echo_n "(cached) " >&6 |
10217 | else | |
a243b558 | 10218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9c60689e DWT |
10219 | /* end confdefs.h. */ |
10220 | ||
9c60689e DWT |
10221 | int |
10222 | main () | |
10223 | { | |
a243b558 | 10224 | |
9c60689e DWT |
10225 | ; |
10226 | return 0; | |
10227 | } | |
10228 | _ACEOF | |
10229 | if ac_fn_c_try_link "$LINENO"; then : | |
9c60689e | 10230 | |
a243b558 JF |
10231 | lt_aix_libpath_sed=' |
10232 | /Import File Strings/,/^$/ { | |
10233 | /^0/ { | |
10234 | s/^0 *\([^ ]*\) *$/\1/ | |
10235 | p | |
10236 | } | |
10237 | }' | |
10238 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10239 | # Check for a 64-bit object if we didn't find anything. | |
10240 | if test -z "$lt_cv_aix_libpath_"; then | |
10241 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10242 | fi | |
9c60689e DWT |
10243 | fi |
10244 | rm -f core conftest.err conftest.$ac_objext \ | |
10245 | conftest$ac_exeext conftest.$ac_ext | |
a243b558 JF |
10246 | if test -z "$lt_cv_aix_libpath_"; then |
10247 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
10248 | fi | |
10249 | ||
9c60689e | 10250 | fi |
9c60689e | 10251 | |
a243b558 JF |
10252 | aix_libpath=$lt_cv_aix_libpath_ |
10253 | fi | |
10254 | ||
10255 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10256 | # Warning - without using the other run time loading flags, | |
10257 | # -berok will link without error, but may produce a broken library. | |
10258 | no_undefined_flag=' ${wl}-bernotok' | |
10259 | allow_undefined_flag=' ${wl}-berok' | |
10260 | if test "$with_gnu_ld" = yes; then | |
10261 | # We only use this code for GNU lds that support --whole-archive. | |
10262 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10263 | else | |
10264 | # Exported symbols can be pulled into shared objects from archives | |
10265 | whole_archive_flag_spec='$convenience' | |
10266 | fi | |
10267 | archive_cmds_need_lc=yes | |
10268 | # This is similar to how AIX traditionally builds its shared libraries. | |
10269 | 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' | |
10270 | fi | |
10271 | fi | |
10272 | ;; | |
10273 | ||
10274 | amigaos*) | |
10275 | case $host_cpu in | |
10276 | powerpc) | |
10277 | # see comment about AmigaOS4 .so support | |
10278 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10279 | archive_expsym_cmds='' | |
10280 | ;; | |
10281 | m68k) | |
10282 | 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)' | |
10283 | hardcode_libdir_flag_spec='-L$libdir' | |
10284 | hardcode_minus_L=yes | |
10285 | ;; | |
10286 | esac | |
10287 | ;; | |
10288 | ||
10289 | bsdi[45]*) | |
10290 | export_dynamic_flag_spec=-rdynamic | |
10291 | ;; | |
10292 | ||
10293 | cygwin* | mingw* | pw32* | cegcc*) | |
10294 | # When not using gcc, we currently assume that we are using | |
10295 | # Microsoft Visual C++. | |
10296 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10297 | # no search path for DLLs. | |
10298 | case $cc_basename in | |
10299 | cl*) | |
10300 | # Native MSVC | |
10301 | hardcode_libdir_flag_spec=' ' | |
10302 | allow_undefined_flag=unsupported | |
10303 | always_export_symbols=yes | |
10304 | file_list_spec='@' | |
10305 | # Tell ltmain to make .lib files, not .a files. | |
10306 | libext=lib | |
10307 | # Tell ltmain to make .dll files, not .so files. | |
10308 | shrext_cmds=".dll" | |
10309 | # FIXME: Setting linknames here is a bad hack. | |
10310 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
10311 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10312 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
10313 | else | |
10314 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
10315 | fi~ | |
10316 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
10317 | linknames=' | |
10318 | # The linker will not automatically build a static lib if we build a DLL. | |
10319 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
10320 | enable_shared_with_static_runtimes=yes | |
10321 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
10322 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10323 | # Don't use ranlib | |
10324 | old_postinstall_cmds='chmod 644 $oldlib' | |
10325 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
10326 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
10327 | case $lt_outputfile in | |
10328 | *.exe|*.EXE) ;; | |
10329 | *) | |
10330 | lt_outputfile="$lt_outputfile.exe" | |
10331 | lt_tool_outputfile="$lt_tool_outputfile.exe" | |
10332 | ;; | |
10333 | esac~ | |
10334 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
10335 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
10336 | $RM "$lt_outputfile.manifest"; | |
10337 | fi' | |
10338 | ;; | |
10339 | *) | |
10340 | # Assume MSVC wrapper | |
10341 | hardcode_libdir_flag_spec=' ' | |
10342 | allow_undefined_flag=unsupported | |
10343 | # Tell ltmain to make .lib files, not .a files. | |
10344 | libext=lib | |
10345 | # Tell ltmain to make .dll files, not .so files. | |
10346 | shrext_cmds=".dll" | |
10347 | # FIXME: Setting linknames here is a bad hack. | |
10348 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
10349 | # The linker will automatically build a .lib file if we build a DLL. | |
10350 | old_archive_from_new_cmds='true' | |
10351 | # FIXME: Should let the user specify the lib program. | |
10352 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10353 | enable_shared_with_static_runtimes=yes | |
10354 | ;; | |
10355 | esac | |
10356 | ;; | |
10357 | ||
10358 | darwin* | rhapsody*) | |
10359 | ||
10360 | ||
10361 | archive_cmds_need_lc=no | |
10362 | hardcode_direct=no | |
10363 | hardcode_automatic=yes | |
10364 | hardcode_shlibpath_var=unsupported | |
10365 | if test "$lt_cv_ld_force_load" = "yes"; then | |
10366 | 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\"`' | |
10367 | ||
10368 | else | |
10369 | whole_archive_flag_spec='' | |
10370 | fi | |
10371 | link_all_deplibs=yes | |
10372 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10373 | case $cc_basename in | |
10374 | ifort*) _lt_dar_can_shared=yes ;; | |
10375 | *) _lt_dar_can_shared=$GCC ;; | |
10376 | esac | |
10377 | if test "$_lt_dar_can_shared" = "yes"; then | |
10378 | output_verbose_link_cmd=func_echo_all | |
10379 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
10380 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10381 | 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}" | |
10382 | 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}" | |
10383 | ||
10384 | else | |
10385 | ld_shlibs=no | |
10386 | fi | |
10387 | ||
10388 | ;; | |
10389 | ||
10390 | dgux*) | |
10391 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10392 | hardcode_libdir_flag_spec='-L$libdir' | |
10393 | hardcode_shlibpath_var=no | |
10394 | ;; | |
10395 | ||
10396 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
10397 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10398 | # does not break anything, and helps significantly (at the cost of a little | |
10399 | # extra space). | |
10400 | freebsd2.2*) | |
10401 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10402 | hardcode_libdir_flag_spec='-R$libdir' | |
10403 | hardcode_direct=yes | |
10404 | hardcode_shlibpath_var=no | |
10405 | ;; | |
10406 | ||
10407 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
10408 | freebsd2.*) | |
10409 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10410 | hardcode_direct=yes | |
10411 | hardcode_minus_L=yes | |
10412 | hardcode_shlibpath_var=no | |
10413 | ;; | |
10414 | ||
10415 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10416 | freebsd* | dragonfly*) | |
10417 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10418 | hardcode_libdir_flag_spec='-R$libdir' | |
10419 | hardcode_direct=yes | |
10420 | hardcode_shlibpath_var=no | |
10421 | ;; | |
10422 | ||
10423 | hpux9*) | |
10424 | if test "$GCC" = yes; then | |
10425 | 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' | |
10426 | else | |
10427 | 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' | |
10428 | fi | |
10429 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10430 | hardcode_libdir_separator=: | |
10431 | hardcode_direct=yes | |
10432 | ||
10433 | # hardcode_minus_L: Not really in the search PATH, | |
10434 | # but as the default location of the library. | |
10435 | hardcode_minus_L=yes | |
10436 | export_dynamic_flag_spec='${wl}-E' | |
10437 | ;; | |
10438 | ||
10439 | hpux10*) | |
10440 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10441 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10442 | else | |
10443 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10444 | fi | |
10445 | if test "$with_gnu_ld" = no; then | |
10446 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10447 | hardcode_libdir_separator=: | |
10448 | hardcode_direct=yes | |
10449 | hardcode_direct_absolute=yes | |
10450 | export_dynamic_flag_spec='${wl}-E' | |
10451 | # hardcode_minus_L: Not really in the search PATH, | |
10452 | # but as the default location of the library. | |
10453 | hardcode_minus_L=yes | |
10454 | fi | |
10455 | ;; | |
10456 | ||
10457 | hpux11*) | |
10458 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10459 | case $host_cpu in | |
10460 | hppa*64*) | |
10461 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10462 | ;; | |
10463 | ia64*) | |
10464 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10465 | ;; | |
10466 | *) | |
10467 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10468 | ;; | |
10469 | esac | |
10470 | else | |
10471 | case $host_cpu in | |
10472 | hppa*64*) | |
10473 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10474 | ;; | |
10475 | ia64*) | |
10476 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10477 | ;; | |
10478 | *) | |
10479 | ||
10480 | # Older versions of the 11.00 compiler do not understand -b yet | |
10481 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10483 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10484 | if ${lt_cv_prog_compiler__b+:} false; then : | |
10485 | $as_echo_n "(cached) " >&6 | |
10486 | else | |
10487 | lt_cv_prog_compiler__b=no | |
10488 | save_LDFLAGS="$LDFLAGS" | |
10489 | LDFLAGS="$LDFLAGS -b" | |
10490 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10491 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10492 | # The linker can only warn and ignore the option if not recognized | |
10493 | # So say no if there are warnings | |
10494 | if test -s conftest.err; then | |
10495 | # Append any errors to the config.log. | |
10496 | cat conftest.err 1>&5 | |
10497 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10498 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10499 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10500 | lt_cv_prog_compiler__b=yes | |
10501 | fi | |
10502 | else | |
10503 | lt_cv_prog_compiler__b=yes | |
10504 | fi | |
10505 | fi | |
10506 | $RM -r conftest* | |
10507 | LDFLAGS="$save_LDFLAGS" | |
10508 | ||
10509 | fi | |
10510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10511 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10512 | ||
10513 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
10514 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10515 | else | |
10516 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10517 | fi | |
10518 | ||
10519 | ;; | |
10520 | esac | |
10521 | fi | |
10522 | if test "$with_gnu_ld" = no; then | |
10523 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10524 | hardcode_libdir_separator=: | |
10525 | ||
10526 | case $host_cpu in | |
10527 | hppa*64*|ia64*) | |
10528 | hardcode_direct=no | |
10529 | hardcode_shlibpath_var=no | |
10530 | ;; | |
10531 | *) | |
10532 | hardcode_direct=yes | |
10533 | hardcode_direct_absolute=yes | |
10534 | export_dynamic_flag_spec='${wl}-E' | |
10535 | ||
10536 | # hardcode_minus_L: Not really in the search PATH, | |
10537 | # but as the default location of the library. | |
10538 | hardcode_minus_L=yes | |
10539 | ;; | |
10540 | esac | |
10541 | fi | |
10542 | ;; | |
10543 | ||
10544 | irix5* | irix6* | nonstopux*) | |
10545 | if test "$GCC" = yes; then | |
10546 | 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' | |
10547 | # Try to use the -exported_symbol ld option, if it does not | |
10548 | # work, assume that -exports_file does not work either and | |
10549 | # implicitly export all symbols. | |
10550 | # This should be the same for all languages, so no per-tag cache variable. | |
10551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
10552 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
10553 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
10554 | $as_echo_n "(cached) " >&6 | |
10555 | else | |
10556 | save_LDFLAGS="$LDFLAGS" | |
10557 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
10558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10559 | /* end confdefs.h. */ | |
10560 | int foo (void) { return 0; } | |
10561 | _ACEOF | |
10562 | if ac_fn_c_try_link "$LINENO"; then : | |
10563 | lt_cv_irix_exported_symbol=yes | |
10564 | else | |
10565 | lt_cv_irix_exported_symbol=no | |
10566 | fi | |
10567 | rm -f core conftest.err conftest.$ac_objext \ | |
10568 | conftest$ac_exeext conftest.$ac_ext | |
10569 | LDFLAGS="$save_LDFLAGS" | |
10570 | fi | |
10571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
10572 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
10573 | if test "$lt_cv_irix_exported_symbol" = yes; then | |
10574 | 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' | |
10575 | fi | |
10576 | else | |
10577 | 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' | |
10578 | 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' | |
10579 | fi | |
10580 | archive_cmds_need_lc='no' | |
10581 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10582 | hardcode_libdir_separator=: | |
10583 | inherit_rpath=yes | |
10584 | link_all_deplibs=yes | |
10585 | ;; | |
10586 | ||
10587 | netbsd*) | |
10588 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10589 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10590 | else | |
10591 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10592 | fi | |
10593 | hardcode_libdir_flag_spec='-R$libdir' | |
10594 | hardcode_direct=yes | |
10595 | hardcode_shlibpath_var=no | |
10596 | ;; | |
10597 | ||
10598 | newsos6) | |
10599 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10600 | hardcode_direct=yes | |
10601 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10602 | hardcode_libdir_separator=: | |
10603 | hardcode_shlibpath_var=no | |
10604 | ;; | |
10605 | ||
10606 | *nto* | *qnx*) | |
10607 | ;; | |
10608 | ||
10609 | openbsd*) | |
10610 | if test -f /usr/libexec/ld.so; then | |
10611 | hardcode_direct=yes | |
10612 | hardcode_shlibpath_var=no | |
10613 | hardcode_direct_absolute=yes | |
10614 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10615 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10616 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
10617 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10618 | export_dynamic_flag_spec='${wl}-E' | |
10619 | else | |
10620 | case $host_os in | |
10621 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10622 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10623 | hardcode_libdir_flag_spec='-R$libdir' | |
10624 | ;; | |
10625 | *) | |
10626 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10627 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10628 | ;; | |
10629 | esac | |
10630 | fi | |
10631 | else | |
10632 | ld_shlibs=no | |
10633 | fi | |
10634 | ;; | |
10635 | ||
10636 | os2*) | |
10637 | hardcode_libdir_flag_spec='-L$libdir' | |
10638 | hardcode_minus_L=yes | |
10639 | allow_undefined_flag=unsupported | |
10640 | 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' | |
10641 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
10642 | ;; | |
10643 | ||
10644 | osf3*) | |
10645 | if test "$GCC" = yes; then | |
10646 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10647 | 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' | |
10648 | else | |
10649 | allow_undefined_flag=' -expect_unresolved \*' | |
10650 | 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' | |
10651 | fi | |
10652 | archive_cmds_need_lc='no' | |
10653 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10654 | hardcode_libdir_separator=: | |
10655 | ;; | |
10656 | ||
10657 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
10658 | if test "$GCC" = yes; then | |
10659 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10660 | 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' | |
10661 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10662 | else | |
10663 | allow_undefined_flag=' -expect_unresolved \*' | |
10664 | 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' | |
10665 | 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~ | |
10666 | $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' | |
10667 | ||
10668 | # Both c and cxx compiler support -rpath directly | |
10669 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10670 | fi | |
10671 | archive_cmds_need_lc='no' | |
10672 | hardcode_libdir_separator=: | |
10673 | ;; | |
10674 | ||
10675 | solaris*) | |
10676 | no_undefined_flag=' -z defs' | |
10677 | if test "$GCC" = yes; then | |
10678 | wlarc='${wl}' | |
10679 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10680 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10681 | $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' | |
10682 | else | |
10683 | case `$CC -V 2>&1` in | |
10684 | *"Compilers 5.0"*) | |
10685 | wlarc='' | |
10686 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10687 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10688 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10689 | ;; | |
10690 | *) | |
10691 | wlarc='${wl}' | |
10692 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10693 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10694 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10695 | ;; | |
10696 | esac | |
10697 | fi | |
10698 | hardcode_libdir_flag_spec='-R$libdir' | |
10699 | hardcode_shlibpath_var=no | |
10700 | case $host_os in | |
10701 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10702 | *) | |
10703 | # The compiler driver will combine and reorder linker options, | |
10704 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10705 | # but is careful enough not to reorder. | |
10706 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10707 | if test "$GCC" = yes; then | |
10708 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10709 | else | |
10710 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10711 | fi | |
10712 | ;; | |
10713 | esac | |
10714 | link_all_deplibs=yes | |
10715 | ;; | |
10716 | ||
10717 | sunos4*) | |
10718 | if test "x$host_vendor" = xsequent; then | |
10719 | # Use $CC to link under sequent, because it throws in some extra .o | |
10720 | # files that make .init and .fini sections work. | |
10721 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10722 | else | |
10723 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10724 | fi | |
10725 | hardcode_libdir_flag_spec='-L$libdir' | |
10726 | hardcode_direct=yes | |
10727 | hardcode_minus_L=yes | |
10728 | hardcode_shlibpath_var=no | |
10729 | ;; | |
10730 | ||
10731 | sysv4) | |
10732 | case $host_vendor in | |
10733 | sni) | |
10734 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10735 | hardcode_direct=yes # is this really true??? | |
10736 | ;; | |
10737 | siemens) | |
10738 | ## LD is ld it makes a PLAMLIB | |
10739 | ## CC just makes a GrossModule. | |
10740 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10741 | reload_cmds='$CC -r -o $output$reload_objs' | |
10742 | hardcode_direct=no | |
10743 | ;; | |
10744 | motorola) | |
10745 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10746 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10747 | ;; | |
10748 | esac | |
10749 | runpath_var='LD_RUN_PATH' | |
10750 | hardcode_shlibpath_var=no | |
10751 | ;; | |
10752 | ||
10753 | sysv4.3*) | |
10754 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10755 | hardcode_shlibpath_var=no | |
10756 | export_dynamic_flag_spec='-Bexport' | |
10757 | ;; | |
10758 | ||
10759 | sysv4*MP*) | |
10760 | if test -d /usr/nec; then | |
10761 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10762 | hardcode_shlibpath_var=no | |
10763 | runpath_var=LD_RUN_PATH | |
10764 | hardcode_runpath_var=yes | |
10765 | ld_shlibs=yes | |
10766 | fi | |
10767 | ;; | |
10768 | ||
10769 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
10770 | no_undefined_flag='${wl}-z,text' | |
10771 | archive_cmds_need_lc=no | |
10772 | hardcode_shlibpath_var=no | |
10773 | runpath_var='LD_RUN_PATH' | |
10774 | ||
10775 | if test "$GCC" = yes; then | |
10776 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10777 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10778 | else | |
10779 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10780 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10781 | fi | |
10782 | ;; | |
10783 | ||
10784 | sysv5* | sco3.2v5* | sco5v6*) | |
10785 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10786 | # link with -lc, and that would cause any symbols used from libc to | |
10787 | # always be unresolved, which means just about no library would | |
10788 | # ever link correctly. If we're not using GNU ld we use -z text | |
10789 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10790 | # as -z defs. | |
10791 | no_undefined_flag='${wl}-z,text' | |
10792 | allow_undefined_flag='${wl}-z,nodefs' | |
10793 | archive_cmds_need_lc=no | |
10794 | hardcode_shlibpath_var=no | |
10795 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10796 | hardcode_libdir_separator=':' | |
10797 | link_all_deplibs=yes | |
10798 | export_dynamic_flag_spec='${wl}-Bexport' | |
10799 | runpath_var='LD_RUN_PATH' | |
10800 | ||
10801 | if test "$GCC" = yes; then | |
10802 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10803 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10804 | else | |
10805 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10806 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10807 | fi | |
10808 | ;; | |
10809 | ||
10810 | uts4*) | |
10811 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10812 | hardcode_libdir_flag_spec='-L$libdir' | |
10813 | hardcode_shlibpath_var=no | |
10814 | ;; | |
10815 | ||
10816 | *) | |
10817 | ld_shlibs=no | |
10818 | ;; | |
10819 | esac | |
10820 | ||
10821 | if test x$host_vendor = xsni; then | |
10822 | case $host in | |
10823 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10824 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10825 | ;; | |
10826 | esac | |
10827 | fi | |
10828 | fi | |
10829 | ||
10830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
10831 | $as_echo "$ld_shlibs" >&6; } | |
10832 | test "$ld_shlibs" = no && can_build_shared=no | |
10833 | ||
10834 | with_gnu_ld=$with_gnu_ld | |
10835 | ||
10836 | ||
10837 | ||
10838 | ||
10839 | ||
10840 | ||
10841 | ||
10842 | ||
10843 | ||
10844 | ||
10845 | ||
10846 | ||
10847 | ||
10848 | ||
10849 | ||
10850 | # | |
10851 | # Do we need to explicitly link libc? | |
10852 | # | |
10853 | case "x$archive_cmds_need_lc" in | |
10854 | x|xyes) | |
10855 | # Assume -lc should be added | |
10856 | archive_cmds_need_lc=yes | |
10857 | ||
10858 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
10859 | case $archive_cmds in | |
10860 | *'~'*) | |
10861 | # FIXME: we may have to deal with multi-command sequences. | |
10862 | ;; | |
10863 | '$CC '*) | |
10864 | # Test whether the compiler implicitly links with -lc since on some | |
10865 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10866 | # to ld, don't add -lc before -lgcc. | |
10867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
10868 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
10869 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
10870 | $as_echo_n "(cached) " >&6 | |
10871 | else | |
10872 | $RM -r conftest* | |
10873 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10874 | ||
10875 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
10876 | (eval $ac_compile) 2>&5 | |
10877 | ac_status=$? | |
10878 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10879 | test $ac_status = 0; } 2>conftest.err; then | |
10880 | soname=conftest | |
10881 | lib=conftest | |
10882 | libobjs=conftest.$ac_objext | |
10883 | deplibs= | |
10884 | wl=$lt_prog_compiler_wl | |
10885 | pic_flag=$lt_prog_compiler_pic | |
10886 | compiler_flags=-v | |
10887 | linker_flags=-v | |
10888 | verstring= | |
10889 | output_objdir=. | |
10890 | libname=conftest | |
10891 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10892 | allow_undefined_flag= | |
10893 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
10894 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10895 | ac_status=$? | |
10896 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10897 | test $ac_status = 0; } | |
10898 | then | |
10899 | lt_cv_archive_cmds_need_lc=no | |
10900 | else | |
10901 | lt_cv_archive_cmds_need_lc=yes | |
10902 | fi | |
10903 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10904 | else | |
10905 | cat conftest.err 1>&5 | |
10906 | fi | |
10907 | $RM -r conftest* | |
10908 | ||
10909 | fi | |
10910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10911 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10912 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
10913 | ;; | |
10914 | esac | |
10915 | fi | |
10916 | ;; | |
10917 | esac | |
10918 | ||
10919 | ||
10920 | ||
10921 | ||
10922 | ||
10923 | ||
10924 | ||
10925 | ||
10926 | ||
10927 | ||
10928 | ||
10929 | ||
10930 | ||
10931 | ||
10932 | ||
10933 | ||
10934 | ||
10935 | ||
10936 | ||
10937 | ||
10938 | ||
10939 | ||
10940 | ||
10941 | ||
10942 | ||
10943 | ||
10944 | ||
10945 | ||
10946 | ||
10947 | ||
10948 | ||
10949 | ||
10950 | ||
10951 | ||
10952 | ||
10953 | ||
10954 | ||
10955 | ||
10956 | ||
10957 | ||
10958 | ||
10959 | ||
10960 | ||
10961 | ||
10962 | ||
10963 | ||
10964 | ||
10965 | ||
10966 | ||
10967 | ||
10968 | ||
10969 | ||
10970 | ||
10971 | ||
10972 | ||
10973 | ||
10974 | ||
10975 | ||
10976 | ||
10977 | ||
10978 | ||
10979 | ||
10980 | ||
10981 | ||
10982 | ||
10983 | ||
10984 | ||
10985 | ||
10986 | ||
10987 | ||
10988 | ||
10989 | ||
10990 | ||
10991 | ||
10992 | ||
10993 | ||
10994 | ||
10995 | ||
10996 | ||
10997 | ||
10998 | ||
10999 | ||
11000 | ||
11001 | ||
11002 | ||
11003 | ||
11004 | ||
11005 | ||
11006 | ||
11007 | ||
11008 | ||
11009 | ||
11010 | ||
11011 | ||
11012 | ||
11013 | ||
11014 | ||
11015 | ||
11016 | ||
11017 | ||
11018 | ||
11019 | ||
11020 | ||
11021 | ||
11022 | ||
11023 | ||
11024 | ||
11025 | ||
11026 | ||
11027 | ||
11028 | ||
11029 | ||
11030 | ||
11031 | ||
11032 | ||
11033 | ||
11034 | ||
11035 | ||
11036 | ||
11037 | ||
11038 | ||
11039 | ||
11040 | ||
11041 | ||
11042 | ||
11043 | ||
11044 | ||
11045 | ||
11046 | ||
11047 | ||
11048 | ||
11049 | ||
11050 | ||
11051 | ||
11052 | ||
11053 | ||
11054 | ||
11055 | ||
11056 | ||
11057 | ||
11058 | ||
11059 | ||
11060 | ||
11061 | ||
11062 | ||
11063 | ||
11064 | ||
11065 | ||
11066 | ||
11067 | ||
11068 | ||
11069 | ||
11070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
11071 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
11072 | ||
11073 | if test "$GCC" = yes; then | |
11074 | case $host_os in | |
11075 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
11076 | *) lt_awk_arg="/^libraries:/" ;; | |
11077 | esac | |
11078 | case $host_os in | |
11079 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
11080 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
11081 | esac | |
11082 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11083 | case $lt_search_path_spec in | |
11084 | *\;*) | |
11085 | # if the path contains ";" then we assume it to be the separator | |
11086 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11087 | # assumed that no part of a normal pathname contains ";" but that should | |
11088 | # okay in the real world where ";" in dirpaths is itself problematic. | |
11089 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
11090 | ;; | |
11091 | *) | |
11092 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11093 | ;; | |
11094 | esac | |
11095 | # Ok, now we have the path, separated by spaces, we can step through it | |
11096 | # and add multilib dir if necessary. | |
11097 | lt_tmp_lt_search_path_spec= | |
11098 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
11099 | for lt_sys_path in $lt_search_path_spec; do | |
11100 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
11101 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
11102 | else | |
11103 | test -d "$lt_sys_path" && \ | |
11104 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11105 | fi | |
11106 | done | |
11107 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
11108 | BEGIN {RS=" "; FS="/|\n";} { | |
11109 | lt_foo=""; | |
11110 | lt_count=0; | |
11111 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
11112 | if ($lt_i != "" && $lt_i != ".") { | |
11113 | if ($lt_i == "..") { | |
11114 | lt_count++; | |
11115 | } else { | |
11116 | if (lt_count == 0) { | |
11117 | lt_foo="/" $lt_i lt_foo; | |
11118 | } else { | |
11119 | lt_count--; | |
11120 | } | |
11121 | } | |
11122 | } | |
11123 | } | |
11124 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11125 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11126 | }'` | |
11127 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
11128 | # for these hosts. | |
11129 | case $host_os in | |
11130 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
11131 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
11132 | esac | |
11133 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
11134 | else | |
11135 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11136 | fi | |
11137 | library_names_spec= | |
11138 | libname_spec='lib$name' | |
11139 | soname_spec= | |
11140 | shrext_cmds=".so" | |
11141 | postinstall_cmds= | |
11142 | postuninstall_cmds= | |
11143 | finish_cmds= | |
11144 | finish_eval= | |
11145 | shlibpath_var= | |
11146 | shlibpath_overrides_runpath=unknown | |
11147 | version_type=none | |
11148 | dynamic_linker="$host_os ld.so" | |
11149 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11150 | need_lib_prefix=unknown | |
11151 | hardcode_into_libs=no | |
11152 | ||
11153 | # when you set need_version to no, make sure it does not cause -set_version | |
11154 | # flags to be left without arguments | |
11155 | need_version=unknown | |
11156 | ||
11157 | case $host_os in | |
11158 | aix3*) | |
11159 | version_type=linux # correct to gnu/linux during the next big refactor | |
11160 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11161 | shlibpath_var=LIBPATH | |
11162 | ||
11163 | # AIX 3 has no versioning support, so we append a major version to the name. | |
11164 | soname_spec='${libname}${release}${shared_ext}$major' | |
11165 | ;; | |
11166 | ||
11167 | aix[4-9]*) | |
11168 | version_type=linux # correct to gnu/linux during the next big refactor | |
11169 | need_lib_prefix=no | |
11170 | need_version=no | |
11171 | hardcode_into_libs=yes | |
11172 | if test "$host_cpu" = ia64; then | |
11173 | # AIX 5 supports IA64 | |
11174 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11175 | shlibpath_var=LD_LIBRARY_PATH | |
11176 | else | |
11177 | # With GCC up to 2.95.x, collect2 would create an import file | |
11178 | # for dependence libraries. The import file would start with | |
11179 | # the line `#! .'. This would cause the generated library to | |
11180 | # depend on `.', always an invalid library. This was fixed in | |
11181 | # development snapshots of GCC prior to 3.0. | |
11182 | case $host_os in | |
11183 | aix4 | aix4.[01] | aix4.[01].*) | |
11184 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11185 | echo ' yes ' | |
11186 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
11187 | : | |
11188 | else | |
11189 | can_build_shared=no | |
11190 | fi | |
11191 | ;; | |
11192 | esac | |
11193 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11194 | # soname into executable. Probably we can add versioning support to | |
11195 | # collect2, so additional links can be useful in future. | |
11196 | if test "$aix_use_runtimelinking" = yes; then | |
11197 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11198 | # instead of lib<name>.a to let people know that these are not | |
11199 | # typical AIX shared libraries. | |
11200 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11201 | else | |
11202 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11203 | # and later when we are not doing run time linking. | |
11204 | library_names_spec='${libname}${release}.a $libname.a' | |
11205 | soname_spec='${libname}${release}${shared_ext}$major' | |
11206 | fi | |
11207 | shlibpath_var=LIBPATH | |
11208 | fi | |
11209 | ;; | |
11210 | ||
11211 | amigaos*) | |
11212 | case $host_cpu in | |
11213 | powerpc) | |
11214 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11215 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11216 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11217 | ;; | |
11218 | m68k) | |
11219 | library_names_spec='$libname.ixlibrary $libname.a' | |
11220 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
11221 | 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' | |
11222 | ;; | |
11223 | esac | |
11224 | ;; | |
11225 | ||
11226 | beos*) | |
11227 | library_names_spec='${libname}${shared_ext}' | |
11228 | dynamic_linker="$host_os ld.so" | |
11229 | shlibpath_var=LIBRARY_PATH | |
11230 | ;; | |
11231 | ||
11232 | bsdi[45]*) | |
11233 | version_type=linux # correct to gnu/linux during the next big refactor | |
11234 | need_version=no | |
11235 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11236 | soname_spec='${libname}${release}${shared_ext}$major' | |
11237 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11238 | shlibpath_var=LD_LIBRARY_PATH | |
11239 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11240 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11241 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11242 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11243 | # libtool to hard-code these into programs | |
11244 | ;; | |
11245 | ||
11246 | cygwin* | mingw* | pw32* | cegcc*) | |
11247 | version_type=windows | |
11248 | shrext_cmds=".dll" | |
11249 | need_version=no | |
11250 | need_lib_prefix=no | |
9c60689e | 11251 | |
a243b558 JF |
11252 | case $GCC,$cc_basename in |
11253 | yes,*) | |
11254 | # gcc | |
11255 | library_names_spec='$libname.dll.a' | |
11256 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11257 | postinstall_cmds='base_file=`basename \${file}`~ | |
11258 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11259 | dldir=$destdir/`dirname \$dlpath`~ | |
11260 | test -d \$dldir || mkdir -p \$dldir~ | |
11261 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11262 | chmod a+x \$dldir/$dlname~ | |
11263 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11264 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11265 | fi' | |
11266 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11267 | dlpath=$dir/\$dldll~ | |
11268 | $RM \$dlpath' | |
11269 | shlibpath_overrides_runpath=yes | |
9c60689e | 11270 | |
a243b558 JF |
11271 | case $host_os in |
11272 | cygwin*) | |
11273 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11274 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9c60689e | 11275 | |
a243b558 JF |
11276 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
11277 | ;; | |
11278 | mingw* | cegcc*) | |
11279 | # MinGW DLLs use traditional 'lib' prefix | |
11280 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11281 | ;; | |
11282 | pw32*) | |
11283 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11284 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11285 | ;; | |
11286 | esac | |
11287 | dynamic_linker='Win32 ld.exe' | |
11288 | ;; | |
9c60689e | 11289 | |
a243b558 JF |
11290 | *,cl*) |
11291 | # Native MSVC | |
11292 | libname_spec='$name' | |
11293 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11294 | library_names_spec='${libname}.dll.lib' | |
9c60689e | 11295 | |
a243b558 JF |
11296 | case $build_os in |
11297 | mingw*) | |
11298 | sys_lib_search_path_spec= | |
11299 | lt_save_ifs=$IFS | |
11300 | IFS=';' | |
11301 | for lt_path in $LIB | |
11302 | do | |
11303 | IFS=$lt_save_ifs | |
11304 | # Let DOS variable expansion print the short 8.3 style file name. | |
11305 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
11306 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
11307 | done | |
11308 | IFS=$lt_save_ifs | |
11309 | # Convert to MSYS style. | |
11310 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
11311 | ;; | |
11312 | cygwin*) | |
11313 | # Convert to unix form, then to dos form, then back to unix form | |
11314 | # but this time dos style (no spaces!) so that the unix form looks | |
11315 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
11316 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
11317 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
11318 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11319 | ;; | |
11320 | *) | |
11321 | sys_lib_search_path_spec="$LIB" | |
11322 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
11323 | # It is most probably a Windows format PATH. | |
11324 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11325 | else | |
11326 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11327 | fi | |
11328 | # FIXME: find the short name or the path components, as spaces are | |
11329 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
11330 | ;; | |
11331 | esac | |
11332 | ||
11333 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11334 | postinstall_cmds='base_file=`basename \${file}`~ | |
11335 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11336 | dldir=$destdir/`dirname \$dlpath`~ | |
11337 | test -d \$dldir || mkdir -p \$dldir~ | |
11338 | $install_prog $dir/$dlname \$dldir/$dlname' | |
11339 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11340 | dlpath=$dir/\$dldll~ | |
11341 | $RM \$dlpath' | |
11342 | shlibpath_overrides_runpath=yes | |
11343 | dynamic_linker='Win32 link.exe' | |
11344 | ;; | |
9c60689e | 11345 | |
a243b558 JF |
11346 | *) |
11347 | # Assume MSVC wrapper | |
11348 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11349 | dynamic_linker='Win32 ld.exe' | |
11350 | ;; | |
11351 | esac | |
11352 | # FIXME: first we should search . and the directory the executable is in | |
11353 | shlibpath_var=PATH | |
11354 | ;; | |
9c60689e | 11355 | |
a243b558 JF |
11356 | darwin* | rhapsody*) |
11357 | dynamic_linker="$host_os dyld" | |
11358 | version_type=darwin | |
11359 | need_lib_prefix=no | |
11360 | need_version=no | |
11361 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11362 | soname_spec='${libname}${release}${major}$shared_ext' | |
11363 | shlibpath_overrides_runpath=yes | |
11364 | shlibpath_var=DYLD_LIBRARY_PATH | |
11365 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9c60689e | 11366 | |
a243b558 JF |
11367 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
11368 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11369 | ;; | |
9c60689e | 11370 | |
a243b558 JF |
11371 | dgux*) |
11372 | version_type=linux # correct to gnu/linux during the next big refactor | |
11373 | need_lib_prefix=no | |
11374 | need_version=no | |
11375 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11376 | soname_spec='${libname}${release}${shared_ext}$major' | |
11377 | shlibpath_var=LD_LIBRARY_PATH | |
11378 | ;; | |
11379 | ||
11380 | freebsd* | dragonfly*) | |
11381 | # DragonFly does not have aout. When/if they implement a new | |
11382 | # versioning mechanism, adjust this. | |
11383 | if test -x /usr/bin/objformat; then | |
11384 | objformat=`/usr/bin/objformat` | |
11385 | else | |
11386 | case $host_os in | |
11387 | freebsd[23].*) objformat=aout ;; | |
11388 | *) objformat=elf ;; | |
11389 | esac | |
11390 | fi | |
11391 | version_type=freebsd-$objformat | |
11392 | case $version_type in | |
11393 | freebsd-elf*) | |
11394 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11395 | need_version=no | |
11396 | need_lib_prefix=no | |
11397 | ;; | |
11398 | freebsd-*) | |
11399 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11400 | need_version=yes | |
11401 | ;; | |
11402 | esac | |
11403 | shlibpath_var=LD_LIBRARY_PATH | |
11404 | case $host_os in | |
11405 | freebsd2.*) | |
11406 | shlibpath_overrides_runpath=yes | |
11407 | ;; | |
11408 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11409 | shlibpath_overrides_runpath=yes | |
11410 | hardcode_into_libs=yes | |
11411 | ;; | |
11412 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11413 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11414 | shlibpath_overrides_runpath=no | |
11415 | hardcode_into_libs=yes | |
11416 | ;; | |
11417 | *) # from 4.6 on, and DragonFly | |
11418 | shlibpath_overrides_runpath=yes | |
11419 | hardcode_into_libs=yes | |
11420 | ;; | |
11421 | esac | |
11422 | ;; | |
9c60689e | 11423 | |
a243b558 JF |
11424 | gnu*) |
11425 | version_type=linux # correct to gnu/linux during the next big refactor | |
11426 | need_lib_prefix=no | |
11427 | need_version=no | |
11428 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11429 | soname_spec='${libname}${release}${shared_ext}$major' | |
11430 | shlibpath_var=LD_LIBRARY_PATH | |
11431 | shlibpath_overrides_runpath=no | |
11432 | hardcode_into_libs=yes | |
11433 | ;; | |
9c60689e | 11434 | |
a243b558 JF |
11435 | haiku*) |
11436 | version_type=linux # correct to gnu/linux during the next big refactor | |
11437 | need_lib_prefix=no | |
11438 | need_version=no | |
11439 | dynamic_linker="$host_os runtime_loader" | |
11440 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11441 | soname_spec='${libname}${release}${shared_ext}$major' | |
11442 | shlibpath_var=LIBRARY_PATH | |
11443 | shlibpath_overrides_runpath=yes | |
11444 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
11445 | hardcode_into_libs=yes | |
11446 | ;; | |
9c60689e | 11447 | |
a243b558 JF |
11448 | hpux9* | hpux10* | hpux11*) |
11449 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11450 | # link against other versions. | |
11451 | version_type=sunos | |
11452 | need_lib_prefix=no | |
11453 | need_version=no | |
11454 | case $host_cpu in | |
11455 | ia64*) | |
11456 | shrext_cmds='.so' | |
11457 | hardcode_into_libs=yes | |
11458 | dynamic_linker="$host_os dld.so" | |
11459 | shlibpath_var=LD_LIBRARY_PATH | |
11460 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11461 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11462 | soname_spec='${libname}${release}${shared_ext}$major' | |
11463 | if test "X$HPUX_IA64_MODE" = X32; then | |
11464 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11465 | else | |
11466 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11467 | fi | |
11468 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11469 | ;; | |
11470 | hppa*64*) | |
11471 | shrext_cmds='.sl' | |
11472 | hardcode_into_libs=yes | |
11473 | dynamic_linker="$host_os dld.sl" | |
11474 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11475 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11476 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11477 | soname_spec='${libname}${release}${shared_ext}$major' | |
11478 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11479 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11480 | ;; | |
11481 | *) | |
11482 | shrext_cmds='.sl' | |
11483 | dynamic_linker="$host_os dld.sl" | |
11484 | shlibpath_var=SHLIB_PATH | |
11485 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11486 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11487 | soname_spec='${libname}${release}${shared_ext}$major' | |
9c60689e DWT |
11488 | ;; |
11489 | esac | |
a243b558 JF |
11490 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
11491 | postinstall_cmds='chmod 555 $lib' | |
11492 | # or fails outright, so override atomically: | |
11493 | install_override_mode=555 | |
11494 | ;; | |
9c60689e | 11495 | |
a243b558 JF |
11496 | interix[3-9]*) |
11497 | version_type=linux # correct to gnu/linux during the next big refactor | |
11498 | need_lib_prefix=no | |
11499 | need_version=no | |
11500 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11501 | soname_spec='${libname}${release}${shared_ext}$major' | |
11502 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11503 | shlibpath_var=LD_LIBRARY_PATH | |
11504 | shlibpath_overrides_runpath=no | |
11505 | hardcode_into_libs=yes | |
11506 | ;; | |
9c60689e | 11507 | |
a243b558 JF |
11508 | irix5* | irix6* | nonstopux*) |
11509 | case $host_os in | |
11510 | nonstopux*) version_type=nonstopux ;; | |
11511 | *) | |
11512 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
11513 | version_type=linux # correct to gnu/linux during the next big refactor | |
11514 | else | |
11515 | version_type=irix | |
11516 | fi ;; | |
11517 | esac | |
11518 | need_lib_prefix=no | |
11519 | need_version=no | |
11520 | soname_spec='${libname}${release}${shared_ext}$major' | |
11521 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11522 | case $host_os in | |
11523 | irix5* | nonstopux*) | |
11524 | libsuff= shlibsuff= | |
11525 | ;; | |
11526 | *) | |
11527 | case $LD in # libtool.m4 will add one of these switches to LD | |
11528 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11529 | libsuff= shlibsuff= libmagic=32-bit;; | |
11530 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11531 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11532 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11533 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11534 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11535 | esac | |
11536 | ;; | |
11537 | esac | |
11538 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11539 | shlibpath_overrides_runpath=no | |
11540 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11541 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11542 | hardcode_into_libs=yes | |
11543 | ;; | |
9c60689e | 11544 | |
a243b558 JF |
11545 | # No shared lib support for Linux oldld, aout, or coff. |
11546 | linux*oldld* | linux*aout* | linux*coff*) | |
11547 | dynamic_linker=no | |
11548 | ;; | |
9c60689e | 11549 | |
a243b558 JF |
11550 | # This must be glibc/ELF. |
11551 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
11552 | version_type=linux # correct to gnu/linux during the next big refactor | |
11553 | need_lib_prefix=no | |
11554 | need_version=no | |
11555 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11556 | soname_spec='${libname}${release}${shared_ext}$major' | |
11557 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11558 | shlibpath_var=LD_LIBRARY_PATH | |
11559 | shlibpath_overrides_runpath=no | |
9c60689e | 11560 | |
a243b558 JF |
11561 | # Some binutils ld are patched to set DT_RUNPATH |
11562 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
9c60689e DWT |
11563 | $as_echo_n "(cached) " >&6 |
11564 | else | |
a243b558 JF |
11565 | lt_cv_shlibpath_overrides_runpath=no |
11566 | save_LDFLAGS=$LDFLAGS | |
11567 | save_libdir=$libdir | |
11568 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11569 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11571 | /* end confdefs.h. */ | |
ee134472 | 11572 | |
a243b558 JF |
11573 | int |
11574 | main () | |
9c60689e | 11575 | { |
9c60689e | 11576 | |
a243b558 JF |
11577 | ; |
11578 | return 0; | |
11579 | } | |
11580 | _ACEOF | |
11581 | if ac_fn_c_try_link "$LINENO"; then : | |
11582 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
11583 | lt_cv_shlibpath_overrides_runpath=yes | |
11584 | fi | |
11585 | fi | |
11586 | rm -f core conftest.err conftest.$ac_objext \ | |
11587 | conftest$ac_exeext conftest.$ac_ext | |
11588 | LDFLAGS=$save_LDFLAGS | |
11589 | libdir=$save_libdir | |
9c60689e | 11590 | |
a243b558 | 11591 | fi |
9c60689e | 11592 | |
a243b558 | 11593 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
9c60689e | 11594 | |
a243b558 JF |
11595 | # This implies no fast_install, which is unacceptable. |
11596 | # Some rework will be needed to allow for fast_install | |
11597 | # before this can be enabled. | |
11598 | hardcode_into_libs=yes | |
9c60689e | 11599 | |
a243b558 JF |
11600 | # Append ld.so.conf contents to the search path |
11601 | if test -f /etc/ld.so.conf; then | |
11602 | 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' ' '` | |
11603 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
11604 | fi | |
ee134472 | 11605 | |
a243b558 JF |
11606 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
11607 | # powerpc, because MkLinux only supported shared libraries with the | |
11608 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11609 | # most powerpc-linux boxes support dynamic linking these days and | |
11610 | # people can always --disable-shared, the test was removed, and we | |
11611 | # assume the GNU/Linux dynamic linker is in use. | |
11612 | dynamic_linker='GNU/Linux ld.so' | |
11613 | ;; | |
9c60689e | 11614 | |
a243b558 JF |
11615 | netbsd*) |
11616 | version_type=sunos | |
11617 | need_lib_prefix=no | |
11618 | need_version=no | |
11619 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11620 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11621 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11622 | dynamic_linker='NetBSD (a.out) ld.so' | |
9c60689e | 11623 | else |
a243b558 JF |
11624 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
11625 | soname_spec='${libname}${release}${shared_ext}$major' | |
11626 | dynamic_linker='NetBSD ld.elf_so' | |
9c60689e | 11627 | fi |
a243b558 JF |
11628 | shlibpath_var=LD_LIBRARY_PATH |
11629 | shlibpath_overrides_runpath=yes | |
11630 | hardcode_into_libs=yes | |
11631 | ;; | |
9c60689e | 11632 | |
a243b558 JF |
11633 | newsos6) |
11634 | version_type=linux # correct to gnu/linux during the next big refactor | |
11635 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11636 | shlibpath_var=LD_LIBRARY_PATH | |
11637 | shlibpath_overrides_runpath=yes | |
11638 | ;; | |
9c60689e | 11639 | |
a243b558 JF |
11640 | *nto* | *qnx*) |
11641 | version_type=qnx | |
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 | shlibpath_var=LD_LIBRARY_PATH | |
11647 | shlibpath_overrides_runpath=no | |
11648 | hardcode_into_libs=yes | |
11649 | dynamic_linker='ldqnx.so' | |
11650 | ;; | |
9c60689e | 11651 | |
a243b558 JF |
11652 | openbsd*) |
11653 | version_type=sunos | |
11654 | sys_lib_dlsearch_path_spec="/usr/lib" | |
11655 | need_lib_prefix=no | |
11656 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11657 | case $host_os in | |
11658 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11659 | *) need_version=no ;; | |
9c60689e | 11660 | esac |
a243b558 JF |
11661 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
11662 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11663 | shlibpath_var=LD_LIBRARY_PATH | |
11664 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11665 | case $host_os in | |
11666 | openbsd2.[89] | openbsd2.[89].*) | |
11667 | shlibpath_overrides_runpath=no | |
11668 | ;; | |
11669 | *) | |
11670 | shlibpath_overrides_runpath=yes | |
11671 | ;; | |
11672 | esac | |
11673 | else | |
11674 | shlibpath_overrides_runpath=yes | |
11675 | fi | |
11676 | ;; | |
9c60689e | 11677 | |
a243b558 JF |
11678 | os2*) |
11679 | libname_spec='$name' | |
11680 | shrext_cmds=".dll" | |
11681 | need_lib_prefix=no | |
11682 | library_names_spec='$libname${shared_ext} $libname.a' | |
11683 | dynamic_linker='OS/2 ld.exe' | |
11684 | shlibpath_var=LIBPATH | |
11685 | ;; | |
9c60689e | 11686 | |
a243b558 JF |
11687 | osf3* | osf4* | osf5*) |
11688 | version_type=osf | |
11689 | need_lib_prefix=no | |
11690 | need_version=no | |
11691 | soname_spec='${libname}${release}${shared_ext}$major' | |
11692 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11693 | shlibpath_var=LD_LIBRARY_PATH | |
11694 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11695 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11696 | ;; | |
11697 | ||
11698 | rdos*) | |
11699 | dynamic_linker=no | |
11700 | ;; | |
11701 | ||
11702 | solaris*) | |
11703 | version_type=linux # correct to gnu/linux during the next big refactor | |
11704 | need_lib_prefix=no | |
11705 | need_version=no | |
11706 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11707 | soname_spec='${libname}${release}${shared_ext}$major' | |
11708 | shlibpath_var=LD_LIBRARY_PATH | |
11709 | shlibpath_overrides_runpath=yes | |
11710 | hardcode_into_libs=yes | |
11711 | # ldd complains unless libraries are executable | |
11712 | postinstall_cmds='chmod +x $lib' | |
11713 | ;; | |
9c60689e | 11714 | |
a243b558 JF |
11715 | sunos4*) |
11716 | version_type=sunos | |
11717 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11718 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11719 | shlibpath_var=LD_LIBRARY_PATH | |
11720 | shlibpath_overrides_runpath=yes | |
11721 | if test "$with_gnu_ld" = yes; then | |
11722 | need_lib_prefix=no | |
11723 | fi | |
11724 | need_version=yes | |
11725 | ;; | |
9c60689e | 11726 | |
a243b558 JF |
11727 | sysv4 | sysv4.3*) |
11728 | version_type=linux # correct to gnu/linux during the next big refactor | |
11729 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11730 | soname_spec='${libname}${release}${shared_ext}$major' | |
11731 | shlibpath_var=LD_LIBRARY_PATH | |
11732 | case $host_vendor in | |
11733 | sni) | |
11734 | shlibpath_overrides_runpath=no | |
11735 | need_lib_prefix=no | |
11736 | runpath_var=LD_RUN_PATH | |
11737 | ;; | |
11738 | siemens) | |
11739 | need_lib_prefix=no | |
11740 | ;; | |
11741 | motorola) | |
11742 | need_lib_prefix=no | |
11743 | need_version=no | |
11744 | shlibpath_overrides_runpath=no | |
11745 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11746 | ;; | |
11747 | esac | |
11748 | ;; | |
9c60689e | 11749 | |
a243b558 JF |
11750 | sysv4*MP*) |
11751 | if test -d /usr/nec ;then | |
11752 | version_type=linux # correct to gnu/linux during the next big refactor | |
11753 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11754 | soname_spec='$libname${shared_ext}.$major' | |
11755 | shlibpath_var=LD_LIBRARY_PATH | |
11756 | fi | |
11757 | ;; | |
9c60689e | 11758 | |
a243b558 JF |
11759 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
11760 | version_type=freebsd-elf | |
11761 | need_lib_prefix=no | |
11762 | need_version=no | |
11763 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11764 | soname_spec='${libname}${release}${shared_ext}$major' | |
11765 | shlibpath_var=LD_LIBRARY_PATH | |
11766 | shlibpath_overrides_runpath=yes | |
11767 | hardcode_into_libs=yes | |
11768 | if test "$with_gnu_ld" = yes; then | |
11769 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11770 | else | |
11771 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11772 | case $host_os in | |
11773 | sco3.2v5*) | |
11774 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11775 | ;; | |
11776 | esac | |
11777 | fi | |
11778 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11779 | ;; | |
9c60689e | 11780 | |
a243b558 JF |
11781 | tpf*) |
11782 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11783 | version_type=linux # correct to gnu/linux during the next big refactor | |
11784 | need_lib_prefix=no | |
11785 | need_version=no | |
11786 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11787 | shlibpath_var=LD_LIBRARY_PATH | |
11788 | shlibpath_overrides_runpath=no | |
11789 | hardcode_into_libs=yes | |
11790 | ;; | |
9c60689e | 11791 | |
a243b558 JF |
11792 | uts4*) |
11793 | version_type=linux # correct to gnu/linux during the next big refactor | |
11794 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11795 | soname_spec='${libname}${release}${shared_ext}$major' | |
11796 | shlibpath_var=LD_LIBRARY_PATH | |
11797 | ;; | |
9c60689e | 11798 | |
a243b558 JF |
11799 | *) |
11800 | dynamic_linker=no | |
11801 | ;; | |
11802 | esac | |
11803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
11804 | $as_echo "$dynamic_linker" >&6; } | |
11805 | test "$dynamic_linker" = no && can_build_shared=no | |
9c60689e | 11806 | |
a243b558 JF |
11807 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
11808 | if test "$GCC" = yes; then | |
11809 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11810 | fi | |
9c60689e | 11811 | |
a243b558 JF |
11812 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
11813 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11814 | fi | |
11815 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11816 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11817 | fi | |
9c60689e DWT |
11818 | |
11819 | ||
11820 | ||
11821 | ||
11822 | ||
11823 | ||
11824 | ||
11825 | ||
9c60689e DWT |
11826 | |
11827 | ||
11828 | ||
11829 | ||
11830 | ||
11831 | ||
11832 | ||
11833 | ||
11834 | ||
11835 | ||
11836 | ||
11837 | ||
9c60689e | 11838 | |
9c60689e | 11839 | |
9c60689e | 11840 | |
9c60689e | 11841 | |
9c60689e DWT |
11842 | |
11843 | ||
11844 | ||
11845 | ||
9c60689e | 11846 | |
9c60689e DWT |
11847 | |
11848 | ||
11849 | ||
11850 | ||
11851 | ||
11852 | ||
11853 | ||
11854 | ||
11855 | ||
11856 | ||
11857 | ||
11858 | ||
11859 | ||
53ba6704 JF |
11860 | |
11861 | ||
9c60689e DWT |
11862 | |
11863 | ||
11864 | ||
11865 | ||
9c60689e DWT |
11866 | |
11867 | ||
3fd51f51 | 11868 | |
66170b30 JF |
11869 | |
11870 | ||
11871 | ||
3fd51f51 | 11872 | |
12833ad8 JF |
11873 | |
11874 | ||
11875 | ||
11876 | ||
3fd51f51 | 11877 | |
3fd51f51 DWT |
11878 | |
11879 | ||
3fd51f51 | 11880 | |
3fd51f51 | 11881 | |
3fd51f51 | 11882 | |
66170b30 | 11883 | |
632b71ea | 11884 | |
632b71ea DWT |
11885 | |
11886 | ||
790e5246 | 11887 | |
66170b30 | 11888 | |
9c60689e | 11889 | |
9c60689e DWT |
11890 | |
11891 | ||
9c60689e | 11892 | |
9c60689e DWT |
11893 | |
11894 | ||
66170b30 | 11895 | |
66170b30 | 11896 | |
9c60689e | 11897 | |
e9c9a47c DWT |
11898 | |
11899 | ||
11900 | ||
66170b30 JF |
11901 | |
11902 | ||
66170b30 | 11903 | |
e9c9a47c | 11904 | |
a243b558 JF |
11905 | |
11906 | ||
11907 | ||
11908 | ||
11909 | ||
11910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
11911 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
11912 | hardcode_action= | |
11913 | if test -n "$hardcode_libdir_flag_spec" || | |
11914 | test -n "$runpath_var" || | |
11915 | test "X$hardcode_automatic" = "Xyes" ; then | |
11916 | ||
11917 | # We can hardcode non-existent directories. | |
11918 | if test "$hardcode_direct" != no && | |
11919 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11920 | # have to relink, otherwise we might link with an installed library | |
11921 | # when we should be linking with a yet-to-be-installed one | |
11922 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11923 | test "$hardcode_minus_L" != no; then | |
11924 | # Linking always hardcodes the temporary library directory. | |
11925 | hardcode_action=relink | |
11926 | else | |
11927 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11928 | hardcode_action=immediate | |
9c60689e | 11929 | fi |
e9c9a47c | 11930 | else |
a243b558 JF |
11931 | # We cannot hardcode anything, or else we can only hardcode existing |
11932 | # directories. | |
11933 | hardcode_action=unsupported | |
11934 | fi | |
11935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
11936 | $as_echo "$hardcode_action" >&6; } | |
11937 | ||
11938 | if test "$hardcode_action" = relink || | |
11939 | test "$inherit_rpath" = yes; then | |
11940 | # Fast installation is not supported | |
11941 | enable_fast_install=no | |
11942 | elif test "$shlibpath_overrides_runpath" = yes || | |
11943 | test "$enable_shared" = no; then | |
11944 | # Fast installation is not necessary | |
11945 | enable_fast_install=needless | |
9c60689e | 11946 | fi |
9c60689e | 11947 | |
9c60689e | 11948 | |
66170b30 | 11949 | |
66170b30 | 11950 | |
9c60689e | 11951 | |
a243b558 JF |
11952 | |
11953 | if test "x$enable_dlopen" != xyes; then | |
11954 | enable_dlopen=unknown | |
11955 | enable_dlopen_self=unknown | |
11956 | enable_dlopen_self_static=unknown | |
66170b30 | 11957 | else |
a243b558 JF |
11958 | lt_cv_dlopen=no |
11959 | lt_cv_dlopen_libs= | |
66170b30 | 11960 | |
a243b558 JF |
11961 | case $host_os in |
11962 | beos*) | |
11963 | lt_cv_dlopen="load_add_on" | |
11964 | lt_cv_dlopen_libs= | |
11965 | lt_cv_dlopen_self=yes | |
11966 | ;; | |
66170b30 | 11967 | |
a243b558 JF |
11968 | mingw* | pw32* | cegcc*) |
11969 | lt_cv_dlopen="LoadLibrary" | |
11970 | lt_cv_dlopen_libs= | |
11971 | ;; | |
66170b30 | 11972 | |
a243b558 JF |
11973 | cygwin*) |
11974 | lt_cv_dlopen="dlopen" | |
11975 | lt_cv_dlopen_libs= | |
11976 | ;; | |
66170b30 | 11977 | |
a243b558 JF |
11978 | darwin*) |
11979 | # if libdl is installed we need to link against it | |
11980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11981 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11982 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11983 | $as_echo_n "(cached) " >&6 | |
11984 | else | |
11985 | ac_check_lib_save_LIBS=$LIBS | |
11986 | LIBS="-ldl $LIBS" | |
11987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11988 | /* end confdefs.h. */ | |
66170b30 | 11989 | |
a243b558 JF |
11990 | /* Override any GCC internal prototype to avoid an error. |
11991 | Use char because int might match the return type of a GCC | |
11992 | builtin and then its argument prototype would still apply. */ | |
11993 | #ifdef __cplusplus | |
11994 | extern "C" | |
11995 | #endif | |
11996 | char dlopen (); | |
11997 | int | |
11998 | main () | |
11999 | { | |
12000 | return dlopen (); | |
12001 | ; | |
12002 | return 0; | |
12003 | } | |
12004 | _ACEOF | |
12005 | if ac_fn_c_try_link "$LINENO"; then : | |
12006 | ac_cv_lib_dl_dlopen=yes | |
12007 | else | |
12008 | ac_cv_lib_dl_dlopen=no | |
66170b30 | 12009 | fi |
a243b558 JF |
12010 | rm -f core conftest.err conftest.$ac_objext \ |
12011 | conftest$ac_exeext conftest.$ac_ext | |
12012 | LIBS=$ac_check_lib_save_LIBS | |
66170b30 | 12013 | fi |
a243b558 JF |
12014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
12015 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12016 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
12017 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
12018 | else | |
66170b30 | 12019 | |
a243b558 JF |
12020 | lt_cv_dlopen="dyld" |
12021 | lt_cv_dlopen_libs= | |
12022 | lt_cv_dlopen_self=yes | |
66170b30 | 12023 | |
a243b558 | 12024 | fi |
9c60689e | 12025 | |
a243b558 | 12026 | ;; |
9c60689e | 12027 | |
a243b558 JF |
12028 | *) |
12029 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
12030 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
12031 | lt_cv_dlopen="shl_load" | |
12032 | else | |
12033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
12034 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
12035 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
12036 | $as_echo_n "(cached) " >&6 | |
12037 | else | |
12038 | ac_check_lib_save_LIBS=$LIBS | |
12039 | LIBS="-ldld $LIBS" | |
12040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12041 | /* end confdefs.h. */ | |
66170b30 | 12042 | |
a243b558 JF |
12043 | /* Override any GCC internal prototype to avoid an error. |
12044 | Use char because int might match the return type of a GCC | |
12045 | builtin and then its argument prototype would still apply. */ | |
12046 | #ifdef __cplusplus | |
12047 | extern "C" | |
12048 | #endif | |
12049 | char shl_load (); | |
12050 | int | |
12051 | main () | |
12052 | { | |
12053 | return shl_load (); | |
12054 | ; | |
12055 | return 0; | |
12056 | } | |
12057 | _ACEOF | |
12058 | if ac_fn_c_try_link "$LINENO"; then : | |
12059 | ac_cv_lib_dld_shl_load=yes | |
66170b30 | 12060 | else |
a243b558 JF |
12061 | ac_cv_lib_dld_shl_load=no |
12062 | fi | |
12063 | rm -f core conftest.err conftest.$ac_objext \ | |
12064 | conftest$ac_exeext conftest.$ac_ext | |
12065 | LIBS=$ac_check_lib_save_LIBS | |
66170b30 | 12066 | fi |
a243b558 JF |
12067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
12068 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
12069 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
12070 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
12071 | else | |
12072 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
12073 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
12074 | lt_cv_dlopen="dlopen" | |
12075 | else | |
12076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12077 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12078 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
12079 | $as_echo_n "(cached) " >&6 | |
12080 | else | |
12081 | ac_check_lib_save_LIBS=$LIBS | |
12082 | LIBS="-ldl $LIBS" | |
12083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12084 | /* end confdefs.h. */ | |
e9c9a47c | 12085 | |
a243b558 JF |
12086 | /* Override any GCC internal prototype to avoid an error. |
12087 | Use char because int might match the return type of a GCC | |
12088 | builtin and then its argument prototype would still apply. */ | |
12089 | #ifdef __cplusplus | |
12090 | extern "C" | |
12091 | #endif | |
12092 | char dlopen (); | |
12093 | int | |
12094 | main () | |
12095 | { | |
12096 | return dlopen (); | |
12097 | ; | |
12098 | return 0; | |
12099 | } | |
12100 | _ACEOF | |
12101 | if ac_fn_c_try_link "$LINENO"; then : | |
12102 | ac_cv_lib_dl_dlopen=yes | |
12103 | else | |
12104 | ac_cv_lib_dl_dlopen=no | |
12105 | fi | |
12106 | rm -f core conftest.err conftest.$ac_objext \ | |
12107 | conftest$ac_exeext conftest.$ac_ext | |
12108 | LIBS=$ac_check_lib_save_LIBS | |
12109 | fi | |
12110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12111 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12112 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
12113 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
12114 | else | |
12115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
12116 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
12117 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
12118 | $as_echo_n "(cached) " >&6 | |
12119 | else | |
12120 | ac_check_lib_save_LIBS=$LIBS | |
12121 | LIBS="-lsvld $LIBS" | |
12122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12123 | /* end confdefs.h. */ | |
12124 | ||
12125 | /* Override any GCC internal prototype to avoid an error. | |
12126 | Use char because int might match the return type of a GCC | |
12127 | builtin and then its argument prototype would still apply. */ | |
12128 | #ifdef __cplusplus | |
12129 | extern "C" | |
12130 | #endif | |
12131 | char dlopen (); | |
12132 | int | |
12133 | main () | |
12134 | { | |
12135 | return dlopen (); | |
12136 | ; | |
12137 | return 0; | |
12138 | } | |
12139 | _ACEOF | |
12140 | if ac_fn_c_try_link "$LINENO"; then : | |
12141 | ac_cv_lib_svld_dlopen=yes | |
12142 | else | |
12143 | ac_cv_lib_svld_dlopen=no | |
12144 | fi | |
12145 | rm -f core conftest.err conftest.$ac_objext \ | |
12146 | conftest$ac_exeext conftest.$ac_ext | |
12147 | LIBS=$ac_check_lib_save_LIBS | |
12148 | fi | |
12149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
12150 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
12151 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
12152 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
12153 | else | |
12154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
12155 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
12156 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
12157 | $as_echo_n "(cached) " >&6 | |
12158 | else | |
12159 | ac_check_lib_save_LIBS=$LIBS | |
12160 | LIBS="-ldld $LIBS" | |
12161 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12162 | /* end confdefs.h. */ | |
12163 | ||
12164 | /* Override any GCC internal prototype to avoid an error. | |
12165 | Use char because int might match the return type of a GCC | |
12166 | builtin and then its argument prototype would still apply. */ | |
12167 | #ifdef __cplusplus | |
12168 | extern "C" | |
12169 | #endif | |
12170 | char dld_link (); | |
12171 | int | |
12172 | main () | |
12173 | { | |
12174 | return dld_link (); | |
12175 | ; | |
12176 | return 0; | |
12177 | } | |
12178 | _ACEOF | |
12179 | if ac_fn_c_try_link "$LINENO"; then : | |
12180 | ac_cv_lib_dld_dld_link=yes | |
9c60689e | 12181 | else |
a243b558 JF |
12182 | ac_cv_lib_dld_dld_link=no |
12183 | fi | |
12184 | rm -f core conftest.err conftest.$ac_objext \ | |
12185 | conftest$ac_exeext conftest.$ac_ext | |
12186 | LIBS=$ac_check_lib_save_LIBS | |
12187 | fi | |
12188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
12189 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
12190 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
12191 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
9c60689e DWT |
12192 | fi |
12193 | ||
12194 | ||
a243b558 | 12195 | fi |
66170b30 | 12196 | |
66170b30 | 12197 | |
a243b558 | 12198 | fi |
66170b30 | 12199 | |
66170b30 JF |
12200 | |
12201 | fi | |
e9c9a47c | 12202 | |
66170b30 | 12203 | |
a243b558 | 12204 | fi |
66170b30 | 12205 | |
66170b30 | 12206 | |
66170b30 | 12207 | fi |
e9c9a47c | 12208 | |
a243b558 JF |
12209 | ;; |
12210 | esac | |
9c60689e | 12211 | |
a243b558 JF |
12212 | if test "x$lt_cv_dlopen" != xno; then |
12213 | enable_dlopen=yes | |
12214 | else | |
12215 | enable_dlopen=no | |
12216 | fi | |
9c60689e | 12217 | |
a243b558 JF |
12218 | case $lt_cv_dlopen in |
12219 | dlopen) | |
12220 | save_CPPFLAGS="$CPPFLAGS" | |
12221 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
66170b30 | 12222 | |
a243b558 JF |
12223 | save_LDFLAGS="$LDFLAGS" |
12224 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
66170b30 | 12225 | |
a243b558 JF |
12226 | save_LIBS="$LIBS" |
12227 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
3fd51f51 | 12228 | |
a243b558 JF |
12229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
12230 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
12231 | if ${lt_cv_dlopen_self+:} false; then : | |
12232 | $as_echo_n "(cached) " >&6 | |
e9c9a47c | 12233 | else |
a243b558 JF |
12234 | if test "$cross_compiling" = yes; then : |
12235 | lt_cv_dlopen_self=cross | |
12236 | else | |
12237 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12238 | lt_status=$lt_dlunknown | |
12239 | cat > conftest.$ac_ext <<_LT_EOF | |
12240 | #line $LINENO "configure" | |
12241 | #include "confdefs.h" | |
e9c9a47c | 12242 | |
a243b558 JF |
12243 | #if HAVE_DLFCN_H |
12244 | #include <dlfcn.h> | |
12245 | #endif | |
e9c9a47c | 12246 | |
a243b558 | 12247 | #include <stdio.h> |
66170b30 | 12248 | |
a243b558 JF |
12249 | #ifdef RTLD_GLOBAL |
12250 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12251 | #else | |
12252 | # ifdef DL_GLOBAL | |
12253 | # define LT_DLGLOBAL DL_GLOBAL | |
12254 | # else | |
12255 | # define LT_DLGLOBAL 0 | |
12256 | # endif | |
12257 | #endif | |
66170b30 | 12258 | |
a243b558 JF |
12259 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12260 | find out it does not work in some platform. */ | |
12261 | #ifndef LT_DLLAZY_OR_NOW | |
12262 | # ifdef RTLD_LAZY | |
12263 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12264 | # else | |
12265 | # ifdef DL_LAZY | |
12266 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12267 | # else | |
12268 | # ifdef RTLD_NOW | |
12269 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12270 | # else | |
12271 | # ifdef DL_NOW | |
12272 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12273 | # else | |
12274 | # define LT_DLLAZY_OR_NOW 0 | |
12275 | # endif | |
12276 | # endif | |
12277 | # endif | |
12278 | # endif | |
12279 | #endif | |
e9c9a47c | 12280 | |
a243b558 JF |
12281 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12282 | correspondingly for the symbols needed. */ | |
12283 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12284 | int fnord () __attribute__((visibility("default"))); | |
12285 | #endif | |
e9c9a47c | 12286 | |
a243b558 JF |
12287 | int fnord () { return 42; } |
12288 | int main () | |
12289 | { | |
12290 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12291 | int status = $lt_dlunknown; | |
e9c9a47c | 12292 | |
a243b558 JF |
12293 | if (self) |
12294 | { | |
12295 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12296 | else | |
12297 | { | |
12298 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12299 | else puts (dlerror ()); | |
12300 | } | |
12301 | /* dlclose (self); */ | |
12302 | } | |
12303 | else | |
12304 | puts (dlerror ()); | |
e9c9a47c | 12305 | |
a243b558 JF |
12306 | return status; |
12307 | } | |
12308 | _LT_EOF | |
12309 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12310 | (eval $ac_link) 2>&5 | |
12311 | ac_status=$? | |
12312 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12313 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12314 | (./conftest; exit; ) >&5 2>/dev/null | |
12315 | lt_status=$? | |
12316 | case x$lt_status in | |
12317 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12318 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12319 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12320 | esac | |
12321 | else : | |
12322 | # compilation failed | |
12323 | lt_cv_dlopen_self=no | |
12324 | fi | |
12325 | fi | |
12326 | rm -fr conftest* | |
e9c9a47c | 12327 | |
e9c9a47c | 12328 | |
e9c9a47c | 12329 | fi |
a243b558 JF |
12330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
12331 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
e9c9a47c | 12332 | |
a243b558 JF |
12333 | if test "x$lt_cv_dlopen_self" = xyes; then |
12334 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
12335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
12336 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
12337 | if ${lt_cv_dlopen_self_static+:} false; then : | |
12338 | $as_echo_n "(cached) " >&6 | |
e9c9a47c | 12339 | else |
a243b558 JF |
12340 | if test "$cross_compiling" = yes; then : |
12341 | lt_cv_dlopen_self_static=cross | |
12342 | else | |
12343 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12344 | lt_status=$lt_dlunknown | |
12345 | cat > conftest.$ac_ext <<_LT_EOF | |
12346 | #line $LINENO "configure" | |
12347 | #include "confdefs.h" | |
12348 | ||
12349 | #if HAVE_DLFCN_H | |
12350 | #include <dlfcn.h> | |
12351 | #endif | |
12352 | ||
12353 | #include <stdio.h> | |
e9c9a47c | 12354 | |
a243b558 JF |
12355 | #ifdef RTLD_GLOBAL |
12356 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12357 | #else | |
12358 | # ifdef DL_GLOBAL | |
12359 | # define LT_DLGLOBAL DL_GLOBAL | |
12360 | # else | |
12361 | # define LT_DLGLOBAL 0 | |
12362 | # endif | |
12363 | #endif | |
e9c9a47c | 12364 | |
a243b558 JF |
12365 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12366 | find out it does not work in some platform. */ | |
12367 | #ifndef LT_DLLAZY_OR_NOW | |
12368 | # ifdef RTLD_LAZY | |
12369 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12370 | # else | |
12371 | # ifdef DL_LAZY | |
12372 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12373 | # else | |
12374 | # ifdef RTLD_NOW | |
12375 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12376 | # else | |
12377 | # ifdef DL_NOW | |
12378 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12379 | # else | |
12380 | # define LT_DLLAZY_OR_NOW 0 | |
12381 | # endif | |
12382 | # endif | |
12383 | # endif | |
12384 | # endif | |
12385 | #endif | |
66170b30 | 12386 | |
a243b558 JF |
12387 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12388 | correspondingly for the symbols needed. */ | |
12389 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12390 | int fnord () __attribute__((visibility("default"))); | |
12391 | #endif | |
e9c9a47c | 12392 | |
a243b558 JF |
12393 | int fnord () { return 42; } |
12394 | int main () | |
12395 | { | |
12396 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12397 | int status = $lt_dlunknown; | |
e9c9a47c | 12398 | |
a243b558 JF |
12399 | if (self) |
12400 | { | |
12401 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12402 | else | |
12403 | { | |
12404 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12405 | else puts (dlerror ()); | |
12406 | } | |
12407 | /* dlclose (self); */ | |
12408 | } | |
12409 | else | |
12410 | puts (dlerror ()); | |
e9c9a47c | 12411 | |
a243b558 JF |
12412 | return status; |
12413 | } | |
12414 | _LT_EOF | |
12415 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12416 | (eval $ac_link) 2>&5 | |
12417 | ac_status=$? | |
12418 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12419 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12420 | (./conftest; exit; ) >&5 2>/dev/null | |
12421 | lt_status=$? | |
12422 | case x$lt_status in | |
12423 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12424 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12425 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12426 | esac | |
12427 | else : | |
12428 | # compilation failed | |
12429 | lt_cv_dlopen_self_static=no | |
12430 | fi | |
12431 | fi | |
12432 | rm -fr conftest* | |
e9c9a47c | 12433 | |
b65019fe | 12434 | |
a243b558 JF |
12435 | fi |
12436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
12437 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
12438 | fi | |
66170b30 | 12439 | |
a243b558 JF |
12440 | CPPFLAGS="$save_CPPFLAGS" |
12441 | LDFLAGS="$save_LDFLAGS" | |
12442 | LIBS="$save_LIBS" | |
12443 | ;; | |
12444 | esac | |
66170b30 | 12445 | |
a243b558 JF |
12446 | case $lt_cv_dlopen_self in |
12447 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12448 | *) enable_dlopen_self=unknown ;; | |
12449 | esac | |
12450 | ||
12451 | case $lt_cv_dlopen_self_static in | |
12452 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12453 | *) enable_dlopen_self_static=unknown ;; | |
12454 | esac | |
b65019fe DWT |
12455 | fi |
12456 | ||
12457 | ||
66170b30 | 12458 | |
b65019fe | 12459 | |
e9c9a47c | 12460 | |
e9c9a47c DWT |
12461 | |
12462 | ||
e9c9a47c | 12463 | |
e9c9a47c DWT |
12464 | |
12465 | ||
e9c9a47c | 12466 | |
e9c9a47c | 12467 | |
3530897b | 12468 | |
47aaa820 | 12469 | |
47aaa820 | 12470 | |
a243b558 JF |
12471 | |
12472 | ||
12473 | striplib= | |
12474 | old_striplib= | |
12475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12476 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12477 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12478 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12479 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12481 | $as_echo "yes" >&6; } | |
47aaa820 | 12482 | else |
a243b558 JF |
12483 | # FIXME - insert some real tests, host_os isn't really good enough |
12484 | case $host_os in | |
12485 | darwin*) | |
12486 | if test -n "$STRIP" ; then | |
12487 | striplib="$STRIP -x" | |
12488 | old_striplib="$STRIP -S" | |
12489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12490 | $as_echo "yes" >&6; } | |
12491 | else | |
12492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12493 | $as_echo "no" >&6; } | |
12494 | fi | |
12495 | ;; | |
12496 | *) | |
12497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12498 | $as_echo "no" >&6; } | |
12499 | ;; | |
12500 | esac | |
3530897b | 12501 | fi |
47aaa820 | 12502 | |
3530897b DWT |
12503 | |
12504 | ||
9c60689e | 12505 | |
9c60689e | 12506 | |
9c60689e | 12507 | |
9c60689e | 12508 | |
9c60689e | 12509 | |
66170b30 | 12510 | |
66170b30 | 12511 | |
66170b30 | 12512 | |
66170b30 | 12513 | |
a243b558 JF |
12514 | # Report which library types will actually be built |
12515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12516 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12518 | $as_echo "$can_build_shared" >&6; } | |
66170b30 | 12519 | |
a243b558 JF |
12520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
12521 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12522 | test "$can_build_shared" = "no" && enable_shared=no | |
66170b30 | 12523 | |
a243b558 JF |
12524 | # On AIX, shared libraries and static libraries use the same namespace, and |
12525 | # are all built from PIC. | |
12526 | case $host_os in | |
12527 | aix3*) | |
12528 | test "$enable_shared" = yes && enable_static=no | |
12529 | if test -n "$RANLIB"; then | |
12530 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12531 | postinstall_cmds='$RANLIB $lib' | |
12532 | fi | |
12533 | ;; | |
66170b30 | 12534 | |
a243b558 JF |
12535 | aix[4-9]*) |
12536 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12537 | test "$enable_shared" = yes && enable_static=no | |
12538 | fi | |
12539 | ;; | |
12540 | esac | |
12541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12542 | $as_echo "$enable_shared" >&6; } | |
66170b30 | 12543 | |
a243b558 JF |
12544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
12545 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12546 | # Make sure either enable_shared or enable_static is yes. | |
12547 | test "$enable_shared" = yes || enable_static=yes | |
12548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12549 | $as_echo "$enable_static" >&6; } | |
66170b30 | 12550 | |
9c60689e | 12551 | |
e9c9a47c | 12552 | |
9c60689e | 12553 | |
a243b558 JF |
12554 | fi |
12555 | ac_ext=c | |
12556 | ac_cpp='$CPP $CPPFLAGS' | |
12557 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12558 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12559 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12560 | ||
12561 | CC="$lt_save_CC" | |
e9c9a47c | 12562 | |
ee134472 | 12563 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
e9c9a47c DWT |
12564 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
12565 | (test "X$CXX" != "Xg++"))) ; then | |
12566 | ac_ext=cpp | |
12567 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12568 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12569 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12570 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
12572 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
12573 | if test -z "$CXXCPP"; then | |
ee134472 | 12574 | if ${ac_cv_prog_CXXCPP+:} false; then : |
e9c9a47c DWT |
12575 | $as_echo_n "(cached) " >&6 |
12576 | else | |
12577 | # Double quotes because CXXCPP needs to be expanded | |
12578 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
12579 | do | |
12580 | ac_preproc_ok=false | |
12581 | for ac_cxx_preproc_warn_flag in '' yes | |
12582 | do | |
12583 | # Use a header file that comes with gcc, so configuring glibc | |
12584 | # with a fresh cross-compiler works. | |
12585 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12586 | # <limits.h> exists even on freestanding compilers. | |
12587 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12588 | # not just through cpp. "Syntax error" is here to catch this case. | |
12589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12590 | /* end confdefs.h. */ | |
12591 | #ifdef __STDC__ | |
12592 | # include <limits.h> | |
12593 | #else | |
12594 | # include <assert.h> | |
12595 | #endif | |
12596 | Syntax error | |
12597 | _ACEOF | |
12598 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12599 | ||
12600 | else | |
12601 | # Broken: fails on valid input. | |
12602 | continue | |
12603 | fi | |
12833ad8 | 12604 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
12605 | |
12606 | # OK, works on sane cases. Now check whether nonexistent headers | |
12607 | # can be detected and how. | |
12608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12609 | /* end confdefs.h. */ | |
12610 | #include <ac_nonexistent.h> | |
12611 | _ACEOF | |
12612 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12613 | # Broken: success on invalid input. | |
12614 | continue | |
12615 | else | |
12616 | # Passes both tests. | |
12617 | ac_preproc_ok=: | |
12618 | break | |
12619 | fi | |
12833ad8 | 12620 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
12621 | |
12622 | done | |
12623 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12833ad8 | 12624 | rm -f conftest.i conftest.err conftest.$ac_ext |
e9c9a47c DWT |
12625 | if $ac_preproc_ok; then : |
12626 | break | |
12627 | fi | |
12628 | ||
12629 | done | |
12630 | ac_cv_prog_CXXCPP=$CXXCPP | |
12631 | ||
12632 | fi | |
12633 | CXXCPP=$ac_cv_prog_CXXCPP | |
12634 | else | |
12635 | ac_cv_prog_CXXCPP=$CXXCPP | |
12636 | fi | |
12637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
12638 | $as_echo "$CXXCPP" >&6; } | |
12639 | ac_preproc_ok=false | |
12640 | for ac_cxx_preproc_warn_flag in '' yes | |
12641 | do | |
12642 | # Use a header file that comes with gcc, so configuring glibc | |
12643 | # with a fresh cross-compiler works. | |
12644 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12645 | # <limits.h> exists even on freestanding compilers. | |
12646 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12647 | # not just through cpp. "Syntax error" is here to catch this case. | |
12648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12649 | /* end confdefs.h. */ | |
12650 | #ifdef __STDC__ | |
12651 | # include <limits.h> | |
12652 | #else | |
12653 | # include <assert.h> | |
12654 | #endif | |
12655 | Syntax error | |
12656 | _ACEOF | |
12657 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12658 | ||
12659 | else | |
12660 | # Broken: fails on valid input. | |
12661 | continue | |
12662 | fi | |
12833ad8 | 12663 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
12664 | |
12665 | # OK, works on sane cases. Now check whether nonexistent headers | |
12666 | # can be detected and how. | |
12667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12668 | /* end confdefs.h. */ | |
12669 | #include <ac_nonexistent.h> | |
12670 | _ACEOF | |
12671 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12672 | # Broken: success on invalid input. | |
12673 | continue | |
12674 | else | |
12675 | # Passes both tests. | |
12676 | ac_preproc_ok=: | |
12677 | break | |
12678 | fi | |
12833ad8 | 12679 | rm -f conftest.err conftest.i conftest.$ac_ext |
e9c9a47c DWT |
12680 | |
12681 | done | |
12682 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12833ad8 | 12683 | rm -f conftest.i conftest.err conftest.$ac_ext |
e9c9a47c DWT |
12684 | if $ac_preproc_ok; then : |
12685 | ||
12686 | else | |
12687 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12688 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
ee134472 JF |
12689 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
12690 | See \`config.log' for more details" "$LINENO" 5; } | |
e9c9a47c DWT |
12691 | fi |
12692 | ||
a243b558 JF |
12693 | ac_ext=c |
12694 | ac_cpp='$CPP $CPPFLAGS' | |
12695 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12696 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12697 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
66170b30 JF |
12698 | |
12699 | else | |
e9c9a47c DWT |
12700 | _lt_caught_CXX_error=yes |
12701 | fi | |
12702 | ||
9c60689e DWT |
12703 | ac_ext=cpp |
12704 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12705 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12706 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12707 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
9c60689e | 12708 | |
47aaa820 DWT |
12709 | archive_cmds_need_lc_CXX=no |
12710 | allow_undefined_flag_CXX= | |
12711 | always_export_symbols_CXX=no | |
12712 | archive_expsym_cmds_CXX= | |
12713 | compiler_needs_object_CXX=no | |
12714 | export_dynamic_flag_spec_CXX= | |
12715 | hardcode_direct_CXX=no | |
12716 | hardcode_direct_absolute_CXX=no | |
12717 | hardcode_libdir_flag_spec_CXX= | |
47aaa820 DWT |
12718 | hardcode_libdir_separator_CXX= |
12719 | hardcode_minus_L_CXX=no | |
12720 | hardcode_shlibpath_var_CXX=unsupported | |
12721 | hardcode_automatic_CXX=no | |
12722 | inherit_rpath_CXX=no | |
12723 | module_cmds_CXX= | |
12724 | module_expsym_cmds_CXX= | |
12725 | link_all_deplibs_CXX=unknown | |
12726 | old_archive_cmds_CXX=$old_archive_cmds | |
ee134472 JF |
12727 | reload_flag_CXX=$reload_flag |
12728 | reload_cmds_CXX=$reload_cmds | |
47aaa820 DWT |
12729 | no_undefined_flag_CXX= |
12730 | whole_archive_flag_spec_CXX= | |
12731 | enable_shared_with_static_runtimes_CXX=no | |
9c60689e | 12732 | |
47aaa820 DWT |
12733 | # Source file extension for C++ test sources. |
12734 | ac_ext=cpp | |
9c60689e | 12735 | |
47aaa820 DWT |
12736 | # Object file extension for compiled C++ test sources. |
12737 | objext=o | |
12738 | objext_CXX=$objext | |
9c60689e | 12739 | |
47aaa820 DWT |
12740 | # No sense in running all these tests if we already determined that |
12741 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
12742 | # are currently assumed to apply to all compilers on this platform, | |
12743 | # and will be corrupted by setting them based on a non-working compiler. | |
12744 | if test "$_lt_caught_CXX_error" != yes; then | |
12745 | # Code to be used in simple compile tests | |
12746 | lt_simple_compile_test_code="int some_variable = 0;" | |
9c60689e | 12747 | |
47aaa820 DWT |
12748 | # Code to be used in simple link tests |
12749 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
9c60689e | 12750 | |
47aaa820 | 12751 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
9c60689e | 12752 | |
9c60689e | 12753 | |
9c60689e | 12754 | |
9c60689e | 12755 | |
9c60689e | 12756 | |
9c60689e | 12757 | |
47aaa820 DWT |
12758 | # If no C compiler was specified, use CC. |
12759 | LTCC=${LTCC-"$CC"} | |
9c60689e | 12760 | |
47aaa820 DWT |
12761 | # If no C compiler flags were specified, use CFLAGS. |
12762 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9c60689e | 12763 | |
47aaa820 DWT |
12764 | # Allow CC to be a program name with arguments. |
12765 | compiler=$CC | |
9c60689e | 12766 | |
9c60689e | 12767 | |
47aaa820 DWT |
12768 | # save warnings/boilerplate of simple test code |
12769 | ac_outfile=conftest.$ac_objext | |
12770 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
12771 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12772 | _lt_compiler_boilerplate=`cat conftest.err` | |
53ba6704 | 12773 | $RM -r conftest* |
9c60689e | 12774 | |
47aaa820 DWT |
12775 | ac_outfile=conftest.$ac_objext |
12776 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
12777 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12778 | _lt_linker_boilerplate=`cat conftest.err` | |
12779 | $RM -r conftest* | |
9c60689e | 12780 | |
9c60689e | 12781 | |
47aaa820 DWT |
12782 | # Allow CC to be a program name with arguments. |
12783 | lt_save_CC=$CC | |
ee134472 | 12784 | lt_save_CFLAGS=$CFLAGS |
47aaa820 DWT |
12785 | lt_save_LD=$LD |
12786 | lt_save_GCC=$GCC | |
12787 | GCC=$GXX | |
12788 | lt_save_with_gnu_ld=$with_gnu_ld | |
12789 | lt_save_path_LD=$lt_cv_path_LD | |
12790 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
12791 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
9c60689e | 12792 | else |
47aaa820 | 12793 | $as_unset lt_cv_prog_gnu_ld |
9c60689e | 12794 | fi |
47aaa820 DWT |
12795 | if test -n "${lt_cv_path_LDCXX+set}"; then |
12796 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
9c60689e | 12797 | else |
47aaa820 | 12798 | $as_unset lt_cv_path_LD |
9c60689e | 12799 | fi |
47aaa820 DWT |
12800 | test -z "${LDCXX+set}" || LD=$LDCXX |
12801 | CC=${CXX-"c++"} | |
ee134472 | 12802 | CFLAGS=$CXXFLAGS |
47aaa820 DWT |
12803 | compiler=$CC |
12804 | compiler_CXX=$CC | |
12805 | for cc_temp in $compiler""; do | |
12806 | case $cc_temp in | |
12807 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
12808 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
12809 | \-*) ;; | |
12810 | *) break;; | |
12811 | esac | |
12812 | done | |
ee134472 | 12813 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
9c60689e DWT |
12814 | |
12815 | ||
47aaa820 DWT |
12816 | if test -n "$compiler"; then |
12817 | # We don't want -fno-exception when compiling C++ code, so set the | |
12818 | # no_builtin_flag separately | |
12819 | if test "$GXX" = yes; then | |
12820 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
12821 | else | |
12822 | lt_prog_compiler_no_builtin_flag_CXX= | |
12823 | fi | |
9c60689e | 12824 | |
47aaa820 DWT |
12825 | if test "$GXX" = yes; then |
12826 | # Set up default GNU C++ configuration | |
12827 | ||
12828 | ||
12829 | ||
12830 | # Check whether --with-gnu-ld was given. | |
12831 | if test "${with_gnu_ld+set}" = set; then : | |
12832 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
9c60689e | 12833 | else |
47aaa820 | 12834 | with_gnu_ld=no |
9c60689e DWT |
12835 | fi |
12836 | ||
47aaa820 DWT |
12837 | ac_prog=ld |
12838 | if test "$GCC" = yes; then | |
12839 | # Check if gcc -print-prog-name=ld gives a path. | |
12840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
12841 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
12842 | case $host in | |
12843 | *-*-mingw*) | |
12844 | # gcc leaves a trailing carriage return which upsets mingw | |
12845 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
12846 | *) | |
12847 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
12848 | esac | |
12849 | case $ac_prog in | |
12850 | # Accept absolute paths. | |
12851 | [\\/]* | ?:[\\/]*) | |
12852 | re_direlt='/[^/][^/]*/\.\./' | |
12853 | # Canonicalize the pathname of ld | |
12854 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
12855 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
12856 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
12857 | done | |
12858 | test -z "$LD" && LD="$ac_prog" | |
12859 | ;; | |
12860 | "") | |
12861 | # If it fails, then pretend we aren't using GCC. | |
12862 | ac_prog=ld | |
12863 | ;; | |
12864 | *) | |
12865 | # If it is relative, then search for the first ld in PATH. | |
12866 | with_gnu_ld=unknown | |
12867 | ;; | |
12868 | esac | |
12869 | elif test "$with_gnu_ld" = yes; then | |
12870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
12871 | $as_echo_n "checking for GNU ld... " >&6; } | |
12872 | else | |
12873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
12874 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
9c60689e | 12875 | fi |
ee134472 | 12876 | if ${lt_cv_path_LD+:} false; then : |
9c60689e DWT |
12877 | $as_echo_n "(cached) " >&6 |
12878 | else | |
47aaa820 DWT |
12879 | if test -z "$LD"; then |
12880 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
12881 | for ac_dir in $PATH; do | |
12882 | IFS="$lt_save_ifs" | |
12883 | test -z "$ac_dir" && ac_dir=. | |
12884 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
12885 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
12886 | # Check to see if the program is GNU ld. I'd rather use --version, | |
12887 | # but apparently some variants of GNU ld only accept -v. | |
12888 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
12889 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
12890 | *GNU* | *'with BFD'*) | |
12891 | test "$with_gnu_ld" != no && break | |
12892 | ;; | |
12893 | *) | |
12894 | test "$with_gnu_ld" != yes && break | |
12895 | ;; | |
12896 | esac | |
12897 | fi | |
9c60689e | 12898 | done |
47aaa820 DWT |
12899 | IFS="$lt_save_ifs" |
12900 | else | |
12901 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
9c60689e DWT |
12902 | fi |
12903 | fi | |
47aaa820 DWT |
12904 | |
12905 | LD="$lt_cv_path_LD" | |
12906 | if test -n "$LD"; then | |
12907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
12908 | $as_echo "$LD" >&6; } | |
9c60689e DWT |
12909 | else |
12910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12911 | $as_echo "no" >&6; } | |
12912 | fi | |
12833ad8 | 12913 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
47aaa820 DWT |
12914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
12915 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
ee134472 | 12916 | if ${lt_cv_prog_gnu_ld+:} false; then : |
47aaa820 DWT |
12917 | $as_echo_n "(cached) " >&6 |
12918 | else | |
12919 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
12920 | case `$LD -v 2>&1 </dev/null` in | |
12921 | *GNU* | *'with BFD'*) | |
12922 | lt_cv_prog_gnu_ld=yes | |
12923 | ;; | |
12924 | *) | |
12925 | lt_cv_prog_gnu_ld=no | |
12926 | ;; | |
12927 | esac | |
12928 | fi | |
12929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
12930 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
12931 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
9c60689e DWT |
12932 | |
12933 | ||
9c60689e | 12934 | |
9c60689e | 12935 | |
9c60689e | 12936 | |
9c60689e | 12937 | |
9c60689e | 12938 | |
47aaa820 DWT |
12939 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
12940 | # archiving commands below assume that GNU ld is being used. | |
12941 | if test "$with_gnu_ld" = yes; then | |
ee134472 JF |
12942 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
12943 | 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 | 12944 | |
47aaa820 DWT |
12945 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
12946 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
9c60689e | 12947 | |
47aaa820 DWT |
12948 | # If archive_cmds runs LD, not CC, wlarc should be empty |
12949 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
12950 | # investigate it a little bit more. (MM) | |
12951 | wlarc='${wl}' | |
9c60689e | 12952 | |
47aaa820 DWT |
12953 | # ancient GNU ld didn't support --whole-archive et. al. |
12954 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
12955 | $GREP 'no-whole-archive' > /dev/null; then | |
12956 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12957 | else | |
12958 | whole_archive_flag_spec_CXX= | |
12959 | fi | |
12960 | else | |
12961 | with_gnu_ld=no | |
12962 | wlarc= | |
12963 | ||
12964 | # A generic and very simple default shared library creation | |
12965 | # command for GNU C++ for the case where it uses the native | |
12966 | # linker, instead of GNU ld. If possible, this setting should | |
12967 | # overridden to take advantage of the native linker features on | |
12968 | # the platform it is being used on. | |
12969 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
12970 | fi | |
12971 | ||
12972 | # Commands to make compiler produce verbose output that lists | |
12973 | # what "hidden" libraries, object files and flags are used when | |
12974 | # linking a shared library. | |
ee134472 | 12975 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
47aaa820 DWT |
12976 | |
12977 | else | |
12978 | GXX=no | |
12979 | with_gnu_ld=no | |
12980 | wlarc= | |
12981 | fi | |
12982 | ||
12983 | # PORTME: fill in a description of your system's C++ link characteristics | |
12984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
12985 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
12986 | ld_shlibs_CXX=yes | |
12987 | case $host_os in | |
12988 | aix3*) | |
12989 | # FIXME: insert proper C++ library support | |
12990 | ld_shlibs_CXX=no | |
12991 | ;; | |
12992 | aix[4-9]*) | |
12993 | if test "$host_cpu" = ia64; then | |
12994 | # On IA64, the linker does run time linking by default, so we don't | |
12995 | # have to do anything special. | |
12996 | aix_use_runtimelinking=no | |
12997 | exp_sym_flag='-Bexport' | |
12998 | no_entry_flag="" | |
12999 | else | |
13000 | aix_use_runtimelinking=no | |
13001 | ||
13002 | # Test if we are trying to use run time linking or normal | |
13003 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
13004 | # need to do runtime linking. | |
13005 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
13006 | for ld_flag in $LDFLAGS; do | |
13007 | case $ld_flag in | |
13008 | *-brtl*) | |
13009 | aix_use_runtimelinking=yes | |
13010 | break | |
13011 | ;; | |
13012 | esac | |
13013 | done | |
13014 | ;; | |
13015 | esac | |
13016 | ||
13017 | exp_sym_flag='-bexport' | |
13018 | no_entry_flag='-bnoentry' | |
13019 | fi | |
13020 | ||
13021 | # When large executables or shared objects are built, AIX ld can | |
13022 | # have problems creating the table of contents. If linking a library | |
13023 | # or program results in "error TOC overflow" add -mminimal-toc to | |
13024 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
13025 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
13026 | ||
13027 | archive_cmds_CXX='' | |
13028 | hardcode_direct_CXX=yes | |
13029 | hardcode_direct_absolute_CXX=yes | |
13030 | hardcode_libdir_separator_CXX=':' | |
13031 | link_all_deplibs_CXX=yes | |
13032 | file_list_spec_CXX='${wl}-f,' | |
13033 | ||
13034 | if test "$GXX" = yes; then | |
13035 | case $host_os in aix4.[012]|aix4.[012].*) | |
13036 | # We only want to do this on AIX 4.2 and lower, the check | |
13037 | # below for broken collect2 doesn't work under 4.3+ | |
13038 | collect2name=`${CC} -print-prog-name=collect2` | |
13039 | if test -f "$collect2name" && | |
13040 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
13041 | then | |
13042 | # We have reworked collect2 | |
13043 | : | |
13044 | else | |
13045 | # We have old collect2 | |
13046 | hardcode_direct_CXX=unsupported | |
13047 | # It fails to find uninstalled libraries when the uninstalled | |
13048 | # path is not listed in the libpath. Setting hardcode_minus_L | |
13049 | # to unsupported forces relinking | |
13050 | hardcode_minus_L_CXX=yes | |
13051 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
13052 | hardcode_libdir_separator_CXX= | |
13053 | fi | |
13054 | esac | |
13055 | shared_flag='-shared' | |
13056 | if test "$aix_use_runtimelinking" = yes; then | |
13057 | shared_flag="$shared_flag "'${wl}-G' | |
13058 | fi | |
13059 | else | |
13060 | # not using gcc | |
13061 | if test "$host_cpu" = ia64; then | |
13062 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
13063 | # chokes on -Wl,-G. The following line is correct: | |
13064 | shared_flag='-G' | |
13065 | else | |
13066 | if test "$aix_use_runtimelinking" = yes; then | |
13067 | shared_flag='${wl}-G' | |
13068 | else | |
13069 | shared_flag='${wl}-bM:SRE' | |
13070 | fi | |
13071 | fi | |
13072 | fi | |
13073 | ||
13074 | export_dynamic_flag_spec_CXX='${wl}-bexpall' | |
13075 | # It seems that -bexpall does not export symbols beginning with | |
13076 | # underscore (_), so it is better to generate a list of symbols to | |
13077 | # export. | |
13078 | always_export_symbols_CXX=yes | |
13079 | if test "$aix_use_runtimelinking" = yes; then | |
13080 | # Warning - without using the other runtime loading flags (-brtl), | |
13081 | # -berok will link without error, but may produce a broken library. | |
13082 | allow_undefined_flag_CXX='-berok' | |
13083 | # Determine the default libpath from the value encoded in an empty | |
13084 | # executable. | |
ee134472 JF |
13085 | if test "${lt_cv_aix_libpath+set}" = set; then |
13086 | aix_libpath=$lt_cv_aix_libpath | |
13087 | else | |
13088 | if ${lt_cv_aix_libpath__CXX+:} false; then : | |
13089 | $as_echo_n "(cached) " >&6 | |
13090 | else | |
13091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
13092 | /* end confdefs.h. */ |
13093 | ||
13094 | int | |
13095 | main () | |
13096 | { | |
13097 | ||
13098 | ; | |
13099 | return 0; | |
13100 | } | |
13101 | _ACEOF | |
47aaa820 | 13102 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 13103 | |
ee134472 JF |
13104 | lt_aix_libpath_sed=' |
13105 | /Import File Strings/,/^$/ { | |
13106 | /^0/ { | |
13107 | s/^0 *\([^ ]*\) *$/\1/ | |
13108 | p | |
13109 | } | |
13110 | }' | |
13111 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13112 | # Check for a 64-bit object if we didn't find anything. | |
13113 | if test -z "$lt_cv_aix_libpath__CXX"; then | |
13114 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13115 | fi | |
47aaa820 DWT |
13116 | fi |
13117 | rm -f core conftest.err conftest.$ac_objext \ | |
13118 | conftest$ac_exeext conftest.$ac_ext | |
ee134472 JF |
13119 | if test -z "$lt_cv_aix_libpath__CXX"; then |
13120 | lt_cv_aix_libpath__CXX="/usr/lib:/lib" | |
13121 | fi | |
13122 | ||
13123 | fi | |
13124 | ||
13125 | aix_libpath=$lt_cv_aix_libpath__CXX | |
13126 | fi | |
47aaa820 DWT |
13127 | |
13128 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
13129 | ||
ee134472 | 13130 | 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 |
13131 | else |
13132 | if test "$host_cpu" = ia64; then | |
13133 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
13134 | allow_undefined_flag_CXX="-z nodefs" | |
13135 | 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" | |
13136 | else | |
13137 | # Determine the default libpath from the value encoded in an | |
13138 | # empty executable. | |
ee134472 JF |
13139 | if test "${lt_cv_aix_libpath+set}" = set; then |
13140 | aix_libpath=$lt_cv_aix_libpath | |
13141 | else | |
13142 | if ${lt_cv_aix_libpath__CXX+:} false; then : | |
13143 | $as_echo_n "(cached) " >&6 | |
13144 | else | |
13145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
13146 | /* end confdefs.h. */ |
13147 | ||
13148 | int | |
13149 | main () | |
13150 | { | |
13151 | ||
13152 | ; | |
13153 | return 0; | |
13154 | } | |
13155 | _ACEOF | |
47aaa820 | 13156 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 13157 | |
ee134472 JF |
13158 | lt_aix_libpath_sed=' |
13159 | /Import File Strings/,/^$/ { | |
13160 | /^0/ { | |
13161 | s/^0 *\([^ ]*\) *$/\1/ | |
13162 | p | |
13163 | } | |
13164 | }' | |
13165 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13166 | # Check for a 64-bit object if we didn't find anything. | |
13167 | if test -z "$lt_cv_aix_libpath__CXX"; then | |
13168 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13169 | fi | |
9c60689e | 13170 | fi |
47aaa820 DWT |
13171 | rm -f core conftest.err conftest.$ac_objext \ |
13172 | conftest$ac_exeext conftest.$ac_ext | |
ee134472 JF |
13173 | if test -z "$lt_cv_aix_libpath__CXX"; then |
13174 | lt_cv_aix_libpath__CXX="/usr/lib:/lib" | |
13175 | fi | |
13176 | ||
13177 | fi | |
13178 | ||
13179 | aix_libpath=$lt_cv_aix_libpath__CXX | |
13180 | fi | |
9c60689e | 13181 | |
47aaa820 DWT |
13182 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
13183 | # Warning - without using the other run time loading flags, | |
13184 | # -berok will link without error, but may produce a broken library. | |
13185 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
13186 | allow_undefined_flag_CXX=' ${wl}-berok' | |
ee134472 JF |
13187 | if test "$with_gnu_ld" = yes; then |
13188 | # We only use this code for GNU lds that support --whole-archive. | |
13189 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
13190 | else | |
13191 | # Exported symbols can be pulled into shared objects from archives | |
13192 | whole_archive_flag_spec_CXX='$convenience' | |
13193 | fi | |
47aaa820 DWT |
13194 | archive_cmds_need_lc_CXX=yes |
13195 | # This is similar to how AIX traditionally builds its shared | |
13196 | # libraries. | |
13197 | 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' | |
13198 | fi | |
13199 | fi | |
13200 | ;; | |
9c60689e | 13201 | |
47aaa820 DWT |
13202 | beos*) |
13203 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
13204 | allow_undefined_flag_CXX=unsupported | |
13205 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
13206 | # support --undefined. This deserves some investigation. FIXME | |
13207 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13208 | else | |
13209 | ld_shlibs_CXX=no | |
13210 | fi | |
13211 | ;; | |
9c60689e | 13212 | |
47aaa820 DWT |
13213 | chorus*) |
13214 | case $cc_basename in | |
13215 | *) | |
13216 | # FIXME: insert proper C++ library support | |
13217 | ld_shlibs_CXX=no | |
13218 | ;; | |
13219 | esac | |
13220 | ;; | |
9c60689e | 13221 | |
47aaa820 | 13222 | cygwin* | mingw* | pw32* | cegcc*) |
ee134472 JF |
13223 | case $GXX,$cc_basename in |
13224 | ,cl* | no,cl*) | |
13225 | # Native MSVC | |
13226 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
13227 | # no search path for DLLs. | |
13228 | hardcode_libdir_flag_spec_CXX=' ' | |
13229 | allow_undefined_flag_CXX=unsupported | |
13230 | always_export_symbols_CXX=yes | |
13231 | file_list_spec_CXX='@' | |
13232 | # Tell ltmain to make .lib files, not .a files. | |
13233 | libext=lib | |
13234 | # Tell ltmain to make .dll files, not .so files. | |
13235 | shrext_cmds=".dll" | |
13236 | # FIXME: Setting linknames here is a bad hack. | |
13237 | archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
13238 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
13239 | $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
13240 | else | |
13241 | $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
13242 | fi~ | |
13243 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
13244 | linknames=' | |
13245 | # The linker will not automatically build a static lib if we build a DLL. | |
13246 | # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' | |
13247 | enable_shared_with_static_runtimes_CXX=yes | |
13248 | # Don't use ranlib | |
13249 | old_postinstall_cmds_CXX='chmod 644 $oldlib' | |
13250 | postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ | |
13251 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
13252 | case $lt_outputfile in | |
13253 | *.exe|*.EXE) ;; | |
13254 | *) | |
13255 | lt_outputfile="$lt_outputfile.exe" | |
13256 | lt_tool_outputfile="$lt_tool_outputfile.exe" | |
13257 | ;; | |
13258 | esac~ | |
13259 | func_to_tool_file "$lt_outputfile"~ | |
13260 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
13261 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
13262 | $RM "$lt_outputfile.manifest"; | |
13263 | fi' | |
13264 | ;; | |
13265 | *) | |
13266 | # g++ | |
13267 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
13268 | # as there is no search path for DLLs. | |
13269 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
13270 | export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' | |
13271 | allow_undefined_flag_CXX=unsupported | |
13272 | always_export_symbols_CXX=no | |
13273 | enable_shared_with_static_runtimes_CXX=yes | |
13274 | ||
13275 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
13276 | 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' | |
13277 | # If the export-symbols file already is a .def file (1st line | |
13278 | # is EXPORTS), use it as is; otherwise, prepend... | |
13279 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
13280 | cp $export_symbols $output_objdir/$soname.def; | |
13281 | else | |
13282 | echo EXPORTS > $output_objdir/$soname.def; | |
13283 | cat $export_symbols >> $output_objdir/$soname.def; | |
13284 | fi~ | |
13285 | $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' | |
13286 | else | |
13287 | ld_shlibs_CXX=no | |
13288 | fi | |
13289 | ;; | |
13290 | esac | |
13291 | ;; | |
47aaa820 | 13292 | darwin* | rhapsody*) |
9c60689e | 13293 | |
9c60689e | 13294 | |
47aaa820 DWT |
13295 | archive_cmds_need_lc_CXX=no |
13296 | hardcode_direct_CXX=no | |
13297 | hardcode_automatic_CXX=yes | |
13298 | hardcode_shlibpath_var_CXX=unsupported | |
ee134472 JF |
13299 | if test "$lt_cv_ld_force_load" = "yes"; then |
13300 | 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 | 13301 | |
ee134472 JF |
13302 | else |
13303 | whole_archive_flag_spec_CXX='' | |
13304 | fi | |
47aaa820 DWT |
13305 | link_all_deplibs_CXX=yes |
13306 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | |
13307 | case $cc_basename in | |
13308 | ifort*) _lt_dar_can_shared=yes ;; | |
13309 | *) _lt_dar_can_shared=$GCC ;; | |
13310 | esac | |
13311 | if test "$_lt_dar_can_shared" = "yes"; then | |
ee134472 | 13312 | output_verbose_link_cmd=func_echo_all |
47aaa820 DWT |
13313 | 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}" |
13314 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
13315 | 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}" | |
13316 | 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}" | |
13317 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
13318 | 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}" | |
13319 | 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}" | |
13320 | fi | |
9c60689e | 13321 | |
47aaa820 DWT |
13322 | else |
13323 | ld_shlibs_CXX=no | |
13324 | fi | |
9c60689e | 13325 | |
47aaa820 | 13326 | ;; |
9c60689e | 13327 | |
47aaa820 DWT |
13328 | dgux*) |
13329 | case $cc_basename in | |
13330 | ec++*) | |
13331 | # FIXME: insert proper C++ library support | |
13332 | ld_shlibs_CXX=no | |
13333 | ;; | |
13334 | ghcx*) | |
13335 | # Green Hills C++ Compiler | |
13336 | # FIXME: insert proper C++ library support | |
13337 | ld_shlibs_CXX=no | |
13338 | ;; | |
13339 | *) | |
13340 | # FIXME: insert proper C++ library support | |
13341 | ld_shlibs_CXX=no | |
13342 | ;; | |
13343 | esac | |
13344 | ;; | |
9c60689e | 13345 | |
53ba6704 | 13346 | freebsd2.*) |
47aaa820 DWT |
13347 | # C++ shared libraries reported to be fairly broken before |
13348 | # switch to ELF | |
13349 | ld_shlibs_CXX=no | |
13350 | ;; | |
9c60689e | 13351 | |
47aaa820 DWT |
13352 | freebsd-elf*) |
13353 | archive_cmds_need_lc_CXX=no | |
13354 | ;; | |
9c60689e | 13355 | |
47aaa820 DWT |
13356 | freebsd* | dragonfly*) |
13357 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
13358 | # conventions | |
13359 | ld_shlibs_CXX=yes | |
13360 | ;; | |
9c60689e | 13361 | |
47aaa820 DWT |
13362 | gnu*) |
13363 | ;; | |
9c60689e | 13364 | |
ee134472 JF |
13365 | haiku*) |
13366 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13367 | link_all_deplibs_CXX=yes | |
13368 | ;; | |
13369 | ||
47aaa820 DWT |
13370 | hpux9*) |
13371 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
13372 | hardcode_libdir_separator_CXX=: | |
13373 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13374 | hardcode_direct_CXX=yes | |
13375 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
13376 | # but as the default | |
13377 | # location of the library. | |
9c60689e | 13378 | |
47aaa820 DWT |
13379 | case $cc_basename in |
13380 | CC*) | |
13381 | # FIXME: insert proper C++ library support | |
13382 | ld_shlibs_CXX=no | |
13383 | ;; | |
13384 | aCC*) | |
13385 | 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' | |
13386 | # Commands to make compiler produce verbose output that lists | |
13387 | # what "hidden" libraries, object files and flags are used when | |
13388 | # linking a shared library. | |
13389 | # | |
13390 | # There doesn't appear to be a way to prevent this compiler from | |
13391 | # explicitly linking system object files so we need to strip them | |
13392 | # from the output so that they don't get included in the library | |
13393 | # dependencies. | |
ee134472 | 13394 | 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 |
13395 | ;; |
13396 | *) | |
13397 | if test "$GXX" = yes; then | |
ee134472 | 13398 | 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 |
13399 | else |
13400 | # FIXME: insert proper C++ library support | |
13401 | ld_shlibs_CXX=no | |
13402 | fi | |
13403 | ;; | |
13404 | esac | |
13405 | ;; | |
9c60689e | 13406 | |
47aaa820 DWT |
13407 | hpux10*|hpux11*) |
13408 | if test $with_gnu_ld = no; then | |
13409 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
13410 | hardcode_libdir_separator_CXX=: | |
9c60689e | 13411 | |
47aaa820 DWT |
13412 | case $host_cpu in |
13413 | hppa*64*|ia64*) | |
13414 | ;; | |
13415 | *) | |
13416 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13417 | ;; | |
13418 | esac | |
13419 | fi | |
13420 | case $host_cpu in | |
13421 | hppa*64*|ia64*) | |
13422 | hardcode_direct_CXX=no | |
13423 | hardcode_shlibpath_var_CXX=no | |
13424 | ;; | |
13425 | *) | |
13426 | hardcode_direct_CXX=yes | |
13427 | hardcode_direct_absolute_CXX=yes | |
13428 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
13429 | # but as the default | |
13430 | # location of the library. | |
13431 | ;; | |
13432 | esac | |
9c60689e | 13433 | |
47aaa820 DWT |
13434 | case $cc_basename in |
13435 | CC*) | |
13436 | # FIXME: insert proper C++ library support | |
13437 | ld_shlibs_CXX=no | |
13438 | ;; | |
13439 | aCC*) | |
13440 | case $host_cpu in | |
13441 | hppa*64*) | |
13442 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13443 | ;; | |
13444 | ia64*) | |
13445 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13446 | ;; | |
13447 | *) | |
13448 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13449 | ;; | |
13450 | esac | |
13451 | # Commands to make compiler produce verbose output that lists | |
13452 | # what "hidden" libraries, object files and flags are used when | |
13453 | # linking a shared library. | |
13454 | # | |
13455 | # There doesn't appear to be a way to prevent this compiler from | |
13456 | # explicitly linking system object files so we need to strip them | |
13457 | # from the output so that they don't get included in the library | |
13458 | # dependencies. | |
ee134472 | 13459 | 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 |
13460 | ;; |
13461 | *) | |
13462 | if test "$GXX" = yes; then | |
13463 | if test $with_gnu_ld = no; then | |
13464 | case $host_cpu in | |
13465 | hppa*64*) | |
13466 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13467 | ;; | |
13468 | ia64*) | |
ee134472 | 13469 | 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 |
13470 | ;; |
13471 | *) | |
ee134472 | 13472 | 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 |
13473 | ;; |
13474 | esac | |
13475 | fi | |
13476 | else | |
13477 | # FIXME: insert proper C++ library support | |
13478 | ld_shlibs_CXX=no | |
13479 | fi | |
13480 | ;; | |
13481 | esac | |
13482 | ;; | |
9c60689e | 13483 | |
47aaa820 DWT |
13484 | interix[3-9]*) |
13485 | hardcode_direct_CXX=no | |
13486 | hardcode_shlibpath_var_CXX=no | |
13487 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13488 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13489 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
13490 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
13491 | # default) and relocated if they conflict, which is a slow very memory | |
13492 | # consuming and fragmenting process. To avoid this, we pick a random, | |
13493 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
13494 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
13495 | 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' | |
13496 | 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' | |
13497 | ;; | |
13498 | irix5* | irix6*) | |
13499 | case $cc_basename in | |
13500 | CC*) | |
13501 | # SGI C++ | |
ee134472 | 13502 | 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 | 13503 | |
47aaa820 DWT |
13504 | # Archives containing C++ object files must be created using |
13505 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
13506 | # necessary to make sure instantiated templates are included | |
13507 | # in the archive. | |
13508 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
13509 | ;; | |
13510 | *) | |
13511 | if test "$GXX" = yes; then | |
13512 | if test "$with_gnu_ld" = no; then | |
ee134472 | 13513 | 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 | 13514 | else |
ee134472 | 13515 | 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 |
13516 | fi |
13517 | fi | |
13518 | link_all_deplibs_CXX=yes | |
13519 | ;; | |
13520 | esac | |
13521 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13522 | hardcode_libdir_separator_CXX=: | |
13523 | inherit_rpath_CXX=yes | |
13524 | ;; | |
9c60689e | 13525 | |
1504c9b8 | 13526 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
47aaa820 DWT |
13527 | case $cc_basename in |
13528 | KCC*) | |
13529 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 13530 | |
47aaa820 DWT |
13531 | # KCC will only create a shared library if the output file |
13532 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13533 | # to its proper name (with version) after linking. | |
13534 | 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' | |
13535 | 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' | |
13536 | # Commands to make compiler produce verbose output that lists | |
13537 | # what "hidden" libraries, object files and flags are used when | |
13538 | # linking a shared library. | |
13539 | # | |
13540 | # There doesn't appear to be a way to prevent this compiler from | |
13541 | # explicitly linking system object files so we need to strip them | |
13542 | # from the output so that they don't get included in the library | |
13543 | # dependencies. | |
ee134472 | 13544 | 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 | 13545 | |
47aaa820 DWT |
13546 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
13547 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
9c60689e | 13548 | |
47aaa820 DWT |
13549 | # Archives containing C++ object files must be created using |
13550 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
13551 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
13552 | ;; | |
13553 | icpc* | ecpc* ) | |
13554 | # Intel C++ | |
13555 | with_gnu_ld=yes | |
13556 | # version 8.0 and above of icpc choke on multiply defined symbols | |
13557 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
13558 | # earlier do not add the objects themselves. | |
13559 | case `$CC -V 2>&1` in | |
13560 | *"Version 7."*) | |
13561 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13562 | 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' | |
13563 | ;; | |
13564 | *) # Version 8.0 or newer | |
13565 | tmp_idyn= | |
13566 | case $host_cpu in | |
13567 | ia64*) tmp_idyn=' -i_dynamic';; | |
13568 | esac | |
13569 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13570 | 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' | |
13571 | ;; | |
13572 | esac | |
13573 | archive_cmds_need_lc_CXX=no | |
13574 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13575 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13576 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
13577 | ;; | |
13578 | pgCC* | pgcpp*) | |
13579 | # Portland Group C++ compiler | |
13580 | case `$CC -V` in | |
ee134472 | 13581 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) |
47aaa820 DWT |
13582 | prelink_cmds_CXX='tpldir=Template.dir~ |
13583 | rm -rf $tpldir~ | |
13584 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
ee134472 | 13585 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' |
47aaa820 DWT |
13586 | old_archive_cmds_CXX='tpldir=Template.dir~ |
13587 | rm -rf $tpldir~ | |
13588 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
ee134472 | 13589 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ |
47aaa820 DWT |
13590 | $RANLIB $oldlib' |
13591 | archive_cmds_CXX='tpldir=Template.dir~ | |
13592 | rm -rf $tpldir~ | |
13593 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
ee134472 | 13594 | $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 |
13595 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
13596 | rm -rf $tpldir~ | |
13597 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
ee134472 | 13598 | $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 | 13599 | ;; |
ee134472 | 13600 | *) # Version 6 and above use weak symbols |
47aaa820 DWT |
13601 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
13602 | 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' | |
13603 | ;; | |
13604 | esac | |
9c60689e | 13605 | |
47aaa820 DWT |
13606 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
13607 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
ee134472 | 13608 | 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 |
13609 | ;; |
13610 | cxx*) | |
13611 | # Compaq C++ | |
13612 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13613 | 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 | 13614 | |
47aaa820 DWT |
13615 | runpath_var=LD_RUN_PATH |
13616 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13617 | hardcode_libdir_separator_CXX=: | |
9c60689e | 13618 | |
47aaa820 DWT |
13619 | # Commands to make compiler produce verbose output that lists |
13620 | # what "hidden" libraries, object files and flags are used when | |
13621 | # linking a shared library. | |
13622 | # | |
13623 | # There doesn't appear to be a way to prevent this compiler from | |
13624 | # explicitly linking system object files so we need to strip them | |
13625 | # from the output so that they don't get included in the library | |
13626 | # dependencies. | |
ee134472 | 13627 | 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 | 13628 | ;; |
ee134472 | 13629 | xl* | mpixl* | bgxl*) |
47aaa820 DWT |
13630 | # IBM XL 8.0 on PPC, with GNU ld |
13631 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13632 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13633 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13634 | if test "x$supports_anon_versioning" = xyes; then | |
13635 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | |
13636 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
13637 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
13638 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
13639 | fi | |
13640 | ;; | |
13641 | *) | |
13642 | case `$CC -V 2>&1 | sed 5q` in | |
13643 | *Sun\ C*) | |
13644 | # Sun C++ 5.9 | |
13645 | no_undefined_flag_CXX=' -zdefs' | |
13646 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13647 | 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' | |
13648 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
ee134472 | 13649 | 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 | 13650 | compiler_needs_object_CXX=yes |
9c60689e | 13651 | |
47aaa820 DWT |
13652 | # Not sure whether something based on |
13653 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
13654 | # would be better. | |
ee134472 | 13655 | output_verbose_link_cmd='func_echo_all' |
9c60689e | 13656 | |
47aaa820 DWT |
13657 | # Archives containing C++ object files must be created using |
13658 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13659 | # necessary to make sure instantiated templates are included | |
13660 | # in the archive. | |
13661 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13662 | ;; | |
13663 | esac | |
13664 | ;; | |
13665 | esac | |
13666 | ;; | |
9c60689e | 13667 | |
47aaa820 DWT |
13668 | lynxos*) |
13669 | # FIXME: insert proper C++ library support | |
13670 | ld_shlibs_CXX=no | |
13671 | ;; | |
9c60689e | 13672 | |
47aaa820 DWT |
13673 | m88k*) |
13674 | # FIXME: insert proper C++ library support | |
13675 | ld_shlibs_CXX=no | |
13676 | ;; | |
9c60689e | 13677 | |
47aaa820 DWT |
13678 | mvs*) |
13679 | case $cc_basename in | |
13680 | cxx*) | |
13681 | # FIXME: insert proper C++ library support | |
13682 | ld_shlibs_CXX=no | |
13683 | ;; | |
13684 | *) | |
13685 | # FIXME: insert proper C++ library support | |
13686 | ld_shlibs_CXX=no | |
13687 | ;; | |
13688 | esac | |
13689 | ;; | |
9c60689e | 13690 | |
47aaa820 DWT |
13691 | netbsd*) |
13692 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13693 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
13694 | wlarc= | |
13695 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13696 | hardcode_direct_CXX=yes | |
13697 | hardcode_shlibpath_var_CXX=no | |
13698 | fi | |
13699 | # Workaround some broken pre-1.5 toolchains | |
13700 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
9c60689e | 13701 | ;; |
47aaa820 DWT |
13702 | |
13703 | *nto* | *qnx*) | |
13704 | ld_shlibs_CXX=yes | |
9c60689e | 13705 | ;; |
9c60689e | 13706 | |
47aaa820 DWT |
13707 | openbsd2*) |
13708 | # C++ shared libraries are fairly broken | |
13709 | ld_shlibs_CXX=no | |
13710 | ;; | |
9c60689e | 13711 | |
47aaa820 DWT |
13712 | openbsd*) |
13713 | if test -f /usr/libexec/ld.so; then | |
13714 | hardcode_direct_CXX=yes | |
13715 | hardcode_shlibpath_var_CXX=no | |
13716 | hardcode_direct_absolute_CXX=yes | |
13717 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
13718 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13719 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13720 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
13721 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13722 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
13723 | fi | |
ee134472 | 13724 | output_verbose_link_cmd=func_echo_all |
47aaa820 DWT |
13725 | else |
13726 | ld_shlibs_CXX=no | |
13727 | fi | |
13728 | ;; | |
9c60689e | 13729 | |
47aaa820 DWT |
13730 | osf3* | osf4* | osf5*) |
13731 | case $cc_basename in | |
13732 | KCC*) | |
13733 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 13734 | |
47aaa820 DWT |
13735 | # KCC will only create a shared library if the output file |
13736 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13737 | # to its proper name (with version) after linking. | |
13738 | 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 | 13739 | |
47aaa820 DWT |
13740 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
13741 | hardcode_libdir_separator_CXX=: | |
9c60689e | 13742 | |
47aaa820 DWT |
13743 | # Archives containing C++ object files must be created using |
13744 | # the KAI C++ compiler. | |
13745 | case $host in | |
13746 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
13747 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
13748 | esac | |
13749 | ;; | |
13750 | RCC*) | |
13751 | # Rational C++ 2.4.1 | |
13752 | # FIXME: insert proper C++ library support | |
13753 | ld_shlibs_CXX=no | |
13754 | ;; | |
13755 | cxx*) | |
13756 | case $host in | |
13757 | osf3*) | |
13758 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
ee134472 | 13759 | 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 |
13760 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
13761 | ;; | |
13762 | *) | |
13763 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
ee134472 | 13764 | 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 |
13765 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
13766 | echo "-hidden">> $lib.exp~ | |
ee134472 | 13767 | $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 |
13768 | $RM $lib.exp' |
13769 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13770 | ;; | |
13771 | esac | |
9c60689e | 13772 | |
47aaa820 | 13773 | hardcode_libdir_separator_CXX=: |
9c60689e | 13774 | |
47aaa820 DWT |
13775 | # Commands to make compiler produce verbose output that lists |
13776 | # what "hidden" libraries, object files and flags are used when | |
13777 | # linking a shared library. | |
13778 | # | |
13779 | # There doesn't appear to be a way to prevent this compiler from | |
13780 | # explicitly linking system object files so we need to strip them | |
13781 | # from the output so that they don't get included in the library | |
13782 | # dependencies. | |
ee134472 | 13783 | 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 |
13784 | ;; |
13785 | *) | |
13786 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13787 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13788 | case $host in | |
13789 | osf3*) | |
ee134472 | 13790 | 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 |
13791 | ;; |
13792 | *) | |
ee134472 | 13793 | 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 |
13794 | ;; |
13795 | esac | |
9c60689e | 13796 | |
47aaa820 DWT |
13797 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
13798 | hardcode_libdir_separator_CXX=: | |
9c60689e | 13799 | |
47aaa820 DWT |
13800 | # Commands to make compiler produce verbose output that lists |
13801 | # what "hidden" libraries, object files and flags are used when | |
13802 | # linking a shared library. | |
ee134472 | 13803 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
9c60689e | 13804 | |
47aaa820 DWT |
13805 | else |
13806 | # FIXME: insert proper C++ library support | |
13807 | ld_shlibs_CXX=no | |
13808 | fi | |
13809 | ;; | |
13810 | esac | |
13811 | ;; | |
9c60689e | 13812 | |
47aaa820 | 13813 | psos*) |
9c60689e DWT |
13814 | # FIXME: insert proper C++ library support |
13815 | ld_shlibs_CXX=no | |
13816 | ;; | |
9c60689e | 13817 | |
47aaa820 DWT |
13818 | sunos4*) |
13819 | case $cc_basename in | |
13820 | CC*) | |
13821 | # Sun C++ 4.x | |
13822 | # FIXME: insert proper C++ library support | |
13823 | ld_shlibs_CXX=no | |
9c60689e | 13824 | ;; |
47aaa820 DWT |
13825 | lcc*) |
13826 | # Lucid | |
13827 | # FIXME: insert proper C++ library support | |
13828 | ld_shlibs_CXX=no | |
13829 | ;; | |
13830 | *) | |
13831 | # FIXME: insert proper C++ library support | |
13832 | ld_shlibs_CXX=no | |
13833 | ;; | |
13834 | esac | |
13835 | ;; | |
9c60689e | 13836 | |
47aaa820 DWT |
13837 | solaris*) |
13838 | case $cc_basename in | |
ee134472 | 13839 | CC* | sunCC*) |
47aaa820 DWT |
13840 | # Sun C++ 4.2, 5.x and Centerline C++ |
13841 | archive_cmds_need_lc_CXX=yes | |
13842 | no_undefined_flag_CXX=' -zdefs' | |
13843 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13844 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13845 | $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 | 13846 | |
47aaa820 DWT |
13847 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
13848 | hardcode_shlibpath_var_CXX=no | |
13849 | case $host_os in | |
13850 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13851 | *) | |
13852 | # The compiler driver will combine and reorder linker options, | |
13853 | # but understands `-z linker_flag'. | |
13854 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
13855 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
13856 | ;; | |
13857 | esac | |
13858 | link_all_deplibs_CXX=yes | |
9c60689e | 13859 | |
ee134472 | 13860 | output_verbose_link_cmd='func_echo_all' |
9c60689e | 13861 | |
47aaa820 DWT |
13862 | # Archives containing C++ object files must be created using |
13863 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13864 | # necessary to make sure instantiated templates are included | |
13865 | # in the archive. | |
13866 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13867 | ;; | |
13868 | gcx*) | |
13869 | # Green Hills C++ Compiler | |
13870 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
9c60689e | 13871 | |
47aaa820 DWT |
13872 | # The C++ compiler must be used to create the archive. |
13873 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
13874 | ;; | |
13875 | *) | |
13876 | # GNU C++ compiler with Solaris linker | |
13877 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13878 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
13879 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
ee134472 | 13880 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
47aaa820 | 13881 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
ee134472 | 13882 | $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
9c60689e | 13883 | |
47aaa820 DWT |
13884 | # Commands to make compiler produce verbose output that lists |
13885 | # what "hidden" libraries, object files and flags are used when | |
13886 | # linking a shared library. | |
ee134472 | 13887 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
47aaa820 DWT |
13888 | else |
13889 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
13890 | # platform. | |
13891 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13892 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13893 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
9c60689e | 13894 | |
47aaa820 DWT |
13895 | # Commands to make compiler produce verbose output that lists |
13896 | # what "hidden" libraries, object files and flags are used when | |
13897 | # linking a shared library. | |
ee134472 | 13898 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
47aaa820 | 13899 | fi |
9c60689e | 13900 | |
47aaa820 DWT |
13901 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
13902 | case $host_os in | |
13903 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13904 | *) | |
13905 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
13906 | ;; | |
13907 | esac | |
13908 | fi | |
13909 | ;; | |
13910 | esac | |
13911 | ;; | |
9c60689e | 13912 | |
47aaa820 DWT |
13913 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
13914 | no_undefined_flag_CXX='${wl}-z,text' | |
13915 | archive_cmds_need_lc_CXX=no | |
13916 | hardcode_shlibpath_var_CXX=no | |
13917 | runpath_var='LD_RUN_PATH' | |
9c60689e | 13918 | |
47aaa820 DWT |
13919 | case $cc_basename in |
13920 | CC*) | |
13921 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13922 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13923 | ;; | |
13924 | *) | |
13925 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13926 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13927 | ;; | |
13928 | esac | |
13929 | ;; | |
9c60689e | 13930 | |
47aaa820 DWT |
13931 | sysv5* | sco3.2v5* | sco5v6*) |
13932 | # Note: We can NOT use -z defs as we might desire, because we do not | |
13933 | # link with -lc, and that would cause any symbols used from libc to | |
13934 | # always be unresolved, which means just about no library would | |
13935 | # ever link correctly. If we're not using GNU ld we use -z text | |
13936 | # though, which does catch some bad symbols but isn't as heavy-handed | |
13937 | # as -z defs. | |
13938 | no_undefined_flag_CXX='${wl}-z,text' | |
13939 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
13940 | archive_cmds_need_lc_CXX=no | |
13941 | hardcode_shlibpath_var_CXX=no | |
13942 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | |
13943 | hardcode_libdir_separator_CXX=':' | |
13944 | link_all_deplibs_CXX=yes | |
13945 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
13946 | runpath_var='LD_RUN_PATH' | |
9c60689e | 13947 | |
47aaa820 DWT |
13948 | case $cc_basename in |
13949 | CC*) | |
13950 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13951 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
ee134472 JF |
13952 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ |
13953 | '"$old_archive_cmds_CXX" | |
13954 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ | |
13955 | '"$reload_cmds_CXX" | |
47aaa820 DWT |
13956 | ;; |
13957 | *) | |
13958 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13959 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13960 | ;; | |
13961 | esac | |
13962 | ;; | |
9c60689e | 13963 | |
47aaa820 | 13964 | tandem*) |
9c60689e | 13965 | case $cc_basename in |
47aaa820 DWT |
13966 | NCC*) |
13967 | # NonStop-UX NCC 3.20 | |
13968 | # FIXME: insert proper C++ library support | |
13969 | ld_shlibs_CXX=no | |
13970 | ;; | |
9c60689e | 13971 | *) |
47aaa820 DWT |
13972 | # FIXME: insert proper C++ library support |
13973 | ld_shlibs_CXX=no | |
13974 | ;; | |
9c60689e DWT |
13975 | esac |
13976 | ;; | |
13977 | ||
47aaa820 DWT |
13978 | vxworks*) |
13979 | # FIXME: insert proper C++ library support | |
13980 | ld_shlibs_CXX=no | |
13981 | ;; | |
9c60689e | 13982 | |
47aaa820 DWT |
13983 | *) |
13984 | # FIXME: insert proper C++ library support | |
13985 | ld_shlibs_CXX=no | |
9c60689e | 13986 | ;; |
47aaa820 | 13987 | esac |
9c60689e | 13988 | |
47aaa820 DWT |
13989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
13990 | $as_echo "$ld_shlibs_CXX" >&6; } | |
13991 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
9c60689e | 13992 | |
47aaa820 DWT |
13993 | GCC_CXX="$GXX" |
13994 | LD_CXX="$LD" | |
9c60689e | 13995 | |
47aaa820 DWT |
13996 | ## CAVEAT EMPTOR: |
13997 | ## There is no encapsulation within the following macros, do not change | |
13998 | ## the running order or otherwise move them around unless you know exactly | |
13999 | ## what you are doing... | |
14000 | # Dependencies to place before and after the object being linked: | |
14001 | predep_objects_CXX= | |
14002 | postdep_objects_CXX= | |
14003 | predeps_CXX= | |
14004 | postdeps_CXX= | |
14005 | compiler_lib_search_path_CXX= | |
9c60689e | 14006 | |
47aaa820 DWT |
14007 | cat > conftest.$ac_ext <<_LT_EOF |
14008 | class Foo | |
14009 | { | |
14010 | public: | |
14011 | Foo (void) { a = 0; } | |
14012 | private: | |
14013 | int a; | |
14014 | }; | |
14015 | _LT_EOF | |
9c60689e | 14016 | |
ee134472 JF |
14017 | |
14018 | _lt_libdeps_save_CFLAGS=$CFLAGS | |
14019 | case "$CC $CFLAGS " in #( | |
14020 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; | |
14021 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; | |
53ba6704 | 14022 | *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; |
ee134472 JF |
14023 | esac |
14024 | ||
47aaa820 DWT |
14025 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
14026 | (eval $ac_compile) 2>&5 | |
14027 | ac_status=$? | |
14028 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14029 | test $ac_status = 0; }; then | |
14030 | # Parse the compiler output and extract the necessary | |
14031 | # objects, libraries and library flags. | |
9c60689e | 14032 | |
47aaa820 DWT |
14033 | # Sentinel used to keep track of whether or not we are before |
14034 | # the conftest object file. | |
14035 | pre_test_object_deps_done=no | |
9c60689e | 14036 | |
47aaa820 | 14037 | for p in `eval "$output_verbose_link_cmd"`; do |
ee134472 | 14038 | case ${prev}${p} in |
9c60689e | 14039 | |
47aaa820 DWT |
14040 | -L* | -R* | -l*) |
14041 | # Some compilers place space between "-{L,R}" and the path. | |
14042 | # Remove the space. | |
14043 | if test $p = "-L" || | |
14044 | test $p = "-R"; then | |
14045 | prev=$p | |
14046 | continue | |
47aaa820 | 14047 | fi |
9c60689e | 14048 | |
ee134472 JF |
14049 | # Expand the sysroot to ease extracting the directories later. |
14050 | if test -z "$prev"; then | |
14051 | case $p in | |
14052 | -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; | |
14053 | -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; | |
14054 | -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; | |
14055 | esac | |
14056 | fi | |
14057 | case $p in | |
14058 | =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; | |
14059 | esac | |
47aaa820 | 14060 | if test "$pre_test_object_deps_done" = no; then |
ee134472 JF |
14061 | case ${prev} in |
14062 | -L | -R) | |
47aaa820 DWT |
14063 | # Internal compiler library paths should come after those |
14064 | # provided the user. The postdeps already come after the | |
14065 | # user supplied libs so there is no need to process them. | |
14066 | if test -z "$compiler_lib_search_path_CXX"; then | |
14067 | compiler_lib_search_path_CXX="${prev}${p}" | |
14068 | else | |
14069 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
14070 | fi | |
14071 | ;; | |
14072 | # The "-l" case would never come before the object being | |
14073 | # linked, so don't bother handling this case. | |
14074 | esac | |
14075 | else | |
14076 | if test -z "$postdeps_CXX"; then | |
14077 | postdeps_CXX="${prev}${p}" | |
14078 | else | |
14079 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
14080 | fi | |
14081 | fi | |
ee134472 | 14082 | prev= |
47aaa820 | 14083 | ;; |
9c60689e | 14084 | |
ee134472 | 14085 | *.lto.$objext) ;; # Ignore GCC LTO objects |
47aaa820 DWT |
14086 | *.$objext) |
14087 | # This assumes that the test object file only shows up | |
14088 | # once in the compiler output. | |
14089 | if test "$p" = "conftest.$objext"; then | |
14090 | pre_test_object_deps_done=yes | |
14091 | continue | |
14092 | fi | |
9c60689e | 14093 | |
47aaa820 DWT |
14094 | if test "$pre_test_object_deps_done" = no; then |
14095 | if test -z "$predep_objects_CXX"; then | |
14096 | predep_objects_CXX="$p" | |
14097 | else | |
14098 | predep_objects_CXX="$predep_objects_CXX $p" | |
14099 | fi | |
14100 | else | |
14101 | if test -z "$postdep_objects_CXX"; then | |
14102 | postdep_objects_CXX="$p" | |
14103 | else | |
14104 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
14105 | fi | |
14106 | fi | |
14107 | ;; | |
9c60689e | 14108 | |
47aaa820 | 14109 | *) ;; # Ignore the rest. |
9c60689e | 14110 | |
47aaa820 DWT |
14111 | esac |
14112 | done | |
9c60689e | 14113 | |
47aaa820 DWT |
14114 | # Clean up. |
14115 | rm -f a.out a.exe | |
14116 | else | |
14117 | echo "libtool.m4: error: problem compiling CXX test program" | |
14118 | fi | |
9c60689e | 14119 | |
47aaa820 | 14120 | $RM -f confest.$objext |
ee134472 | 14121 | CFLAGS=$_lt_libdeps_save_CFLAGS |
9c60689e | 14122 | |
47aaa820 DWT |
14123 | # PORTME: override above test on systems where it is broken |
14124 | case $host_os in | |
14125 | interix[3-9]*) | |
14126 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
14127 | # hack all around it, let's just trust "g++" to DTRT. | |
14128 | predep_objects_CXX= | |
14129 | postdep_objects_CXX= | |
14130 | postdeps_CXX= | |
14131 | ;; | |
9c60689e | 14132 | |
47aaa820 DWT |
14133 | linux*) |
14134 | case `$CC -V 2>&1 | sed 5q` in | |
14135 | *Sun\ C*) | |
14136 | # Sun C++ 5.9 | |
9c60689e | 14137 | |
47aaa820 DWT |
14138 | # The more standards-conforming stlport4 library is |
14139 | # incompatible with the Cstd library. Avoid specifying | |
14140 | # it if it's in CXXFLAGS. Ignore libCrun as | |
14141 | # -library=stlport4 depends on it. | |
14142 | case " $CXX $CXXFLAGS " in | |
14143 | *" -library=stlport4 "*) | |
14144 | solaris_use_stlport4=yes | |
14145 | ;; | |
14146 | esac | |
9c60689e | 14147 | |
47aaa820 DWT |
14148 | if test "$solaris_use_stlport4" != yes; then |
14149 | postdeps_CXX='-library=Cstd -library=Crun' | |
14150 | fi | |
14151 | ;; | |
14152 | esac | |
14153 | ;; | |
9c60689e | 14154 | |
47aaa820 DWT |
14155 | solaris*) |
14156 | case $cc_basename in | |
ee134472 | 14157 | CC* | sunCC*) |
47aaa820 DWT |
14158 | # The more standards-conforming stlport4 library is |
14159 | # incompatible with the Cstd library. Avoid specifying | |
14160 | # it if it's in CXXFLAGS. Ignore libCrun as | |
14161 | # -library=stlport4 depends on it. | |
14162 | case " $CXX $CXXFLAGS " in | |
14163 | *" -library=stlport4 "*) | |
14164 | solaris_use_stlport4=yes | |
14165 | ;; | |
14166 | esac | |
9c60689e | 14167 | |
47aaa820 DWT |
14168 | # Adding this requires a known-good setup of shared libraries for |
14169 | # Sun compiler versions before 5.6, else PIC objects from an old | |
14170 | # archive will be linked into the output, leading to subtle bugs. | |
14171 | if test "$solaris_use_stlport4" != yes; then | |
14172 | postdeps_CXX='-library=Cstd -library=Crun' | |
14173 | fi | |
14174 | ;; | |
14175 | esac | |
14176 | ;; | |
14177 | esac | |
9c60689e | 14178 | |
9c60689e | 14179 | |
47aaa820 DWT |
14180 | case " $postdeps_CXX " in |
14181 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
14182 | esac | |
14183 | compiler_lib_search_dirs_CXX= | |
14184 | if test -n "${compiler_lib_search_path_CXX}"; then | |
14185 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
14186 | fi | |
9c60689e | 14187 | |
9c60689e | 14188 | |
9c60689e | 14189 | |
9c60689e | 14190 | |
9c60689e | 14191 | |
9c60689e | 14192 | |
9c60689e | 14193 | |
9c60689e | 14194 | |
9c60689e | 14195 | |
9c60689e | 14196 | |
9c60689e | 14197 | |
9c60689e | 14198 | |
9c60689e | 14199 | |
9c60689e | 14200 | |
9c60689e | 14201 | |
9c60689e | 14202 | |
9c60689e | 14203 | |
9c60689e | 14204 | |
9c60689e | 14205 | |
9c60689e | 14206 | |
9c60689e | 14207 | |
9c60689e | 14208 | |
9c60689e | 14209 | |
9c60689e | 14210 | |
9c60689e | 14211 | |
9c60689e | 14212 | |
9c60689e | 14213 | |
9c60689e | 14214 | |
9c60689e | 14215 | |
9c60689e | 14216 | |
9c60689e | 14217 | |
47aaa820 DWT |
14218 | lt_prog_compiler_wl_CXX= |
14219 | lt_prog_compiler_pic_CXX= | |
14220 | lt_prog_compiler_static_CXX= | |
9c60689e | 14221 | |
9c60689e DWT |
14222 | |
14223 | # C++ specific cases for pic, static, wl, etc. | |
14224 | if test "$GXX" = yes; then | |
14225 | lt_prog_compiler_wl_CXX='-Wl,' | |
14226 | lt_prog_compiler_static_CXX='-static' | |
14227 | ||
14228 | case $host_os in | |
14229 | aix*) | |
14230 | # All AIX code is PIC. | |
14231 | if test "$host_cpu" = ia64; then | |
14232 | # AIX 5 now supports IA64 processor | |
14233 | lt_prog_compiler_static_CXX='-Bstatic' | |
14234 | fi | |
14235 | ;; | |
14236 | ||
14237 | amigaos*) | |
14238 | case $host_cpu in | |
14239 | powerpc) | |
14240 | # see comment about AmigaOS4 .so support | |
14241 | lt_prog_compiler_pic_CXX='-fPIC' | |
14242 | ;; | |
14243 | m68k) | |
14244 | # FIXME: we need at least 68020 code to build shared libraries, but | |
14245 | # adding the `-m68020' flag to GCC prevents building anything better, | |
14246 | # like `-m68040'. | |
14247 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
14248 | ;; | |
14249 | esac | |
14250 | ;; | |
14251 | ||
14252 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
14253 | # PIC is the default for these OSes. | |
14254 | ;; | |
14255 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
14256 | # This hack is so that the source file can tell whether it is being | |
14257 | # built for inclusion in a dll (and should export symbols for example). | |
14258 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
14259 | # (--disable-auto-import) libraries | |
14260 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
14261 | ;; | |
14262 | darwin* | rhapsody*) | |
14263 | # PIC is the default on this platform | |
14264 | # Common symbols not allowed in MH_DYLIB files | |
14265 | lt_prog_compiler_pic_CXX='-fno-common' | |
14266 | ;; | |
14267 | *djgpp*) | |
14268 | # DJGPP does not support shared libraries at all | |
14269 | lt_prog_compiler_pic_CXX= | |
14270 | ;; | |
ee134472 JF |
14271 | haiku*) |
14272 | # PIC is the default for Haiku. | |
14273 | # The "-static" flag exists, but is broken. | |
14274 | lt_prog_compiler_static_CXX= | |
14275 | ;; | |
9c60689e DWT |
14276 | interix[3-9]*) |
14277 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
14278 | # Instead, we relocate shared libraries at runtime. | |
14279 | ;; | |
14280 | sysv4*MP*) | |
14281 | if test -d /usr/nec; then | |
14282 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
14283 | fi | |
14284 | ;; | |
14285 | hpux*) | |
14286 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
14287 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
14288 | # sets the default TLS model and affects inlining. | |
14289 | case $host_cpu in | |
14290 | hppa*64*) | |
14291 | ;; | |
14292 | *) | |
14293 | lt_prog_compiler_pic_CXX='-fPIC' | |
14294 | ;; | |
14295 | esac | |
14296 | ;; | |
14297 | *qnx* | *nto*) | |
14298 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
14299 | # it will coredump. | |
14300 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
14301 | ;; | |
14302 | *) | |
14303 | lt_prog_compiler_pic_CXX='-fPIC' | |
14304 | ;; | |
14305 | esac | |
14306 | else | |
14307 | case $host_os in | |
14308 | aix[4-9]*) | |
14309 | # All AIX code is PIC. | |
14310 | if test "$host_cpu" = ia64; then | |
14311 | # AIX 5 now supports IA64 processor | |
14312 | lt_prog_compiler_static_CXX='-Bstatic' | |
14313 | else | |
14314 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
14315 | fi | |
14316 | ;; | |
14317 | chorus*) | |
14318 | case $cc_basename in | |
14319 | cxch68*) | |
14320 | # Green Hills C++ Compiler | |
14321 | # _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" | |
14322 | ;; | |
14323 | esac | |
14324 | ;; | |
ee134472 JF |
14325 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
14326 | # This hack is so that the source file can tell whether it is being | |
14327 | # built for inclusion in a dll (and should export symbols for example). | |
14328 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
14329 | ;; | |
9c60689e DWT |
14330 | dgux*) |
14331 | case $cc_basename in | |
14332 | ec++*) | |
14333 | lt_prog_compiler_pic_CXX='-KPIC' | |
14334 | ;; | |
14335 | ghcx*) | |
14336 | # Green Hills C++ Compiler | |
14337 | lt_prog_compiler_pic_CXX='-pic' | |
14338 | ;; | |
14339 | *) | |
14340 | ;; | |
14341 | esac | |
14342 | ;; | |
14343 | freebsd* | dragonfly*) | |
14344 | # FreeBSD uses GNU C++ | |
14345 | ;; | |
14346 | hpux9* | hpux10* | hpux11*) | |
14347 | case $cc_basename in | |
14348 | CC*) | |
14349 | lt_prog_compiler_wl_CXX='-Wl,' | |
14350 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
14351 | if test "$host_cpu" != ia64; then | |
14352 | lt_prog_compiler_pic_CXX='+Z' | |
14353 | fi | |
14354 | ;; | |
14355 | aCC*) | |
14356 | lt_prog_compiler_wl_CXX='-Wl,' | |
14357 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
14358 | case $host_cpu in | |
14359 | hppa*64*|ia64*) | |
14360 | # +Z the default | |
14361 | ;; | |
14362 | *) | |
14363 | lt_prog_compiler_pic_CXX='+Z' | |
14364 | ;; | |
14365 | esac | |
14366 | ;; | |
14367 | *) | |
14368 | ;; | |
14369 | esac | |
14370 | ;; | |
14371 | interix*) | |
14372 | # This is c89, which is MS Visual C++ (no shared libs) | |
14373 | # Anyone wants to do a port? | |
14374 | ;; | |
14375 | irix5* | irix6* | nonstopux*) | |
14376 | case $cc_basename in | |
14377 | CC*) | |
14378 | lt_prog_compiler_wl_CXX='-Wl,' | |
14379 | lt_prog_compiler_static_CXX='-non_shared' | |
14380 | # CC pic flag -KPIC is the default. | |
14381 | ;; | |
14382 | *) | |
14383 | ;; | |
14384 | esac | |
14385 | ;; | |
1504c9b8 | 14386 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
9c60689e DWT |
14387 | case $cc_basename in |
14388 | KCC*) | |
14389 | # KAI C++ Compiler | |
14390 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
14391 | lt_prog_compiler_pic_CXX='-fPIC' | |
14392 | ;; | |
14393 | ecpc* ) | |
14394 | # old Intel C++ for x86_64 which still supported -KPIC. | |
14395 | lt_prog_compiler_wl_CXX='-Wl,' | |
14396 | lt_prog_compiler_pic_CXX='-KPIC' | |
14397 | lt_prog_compiler_static_CXX='-static' | |
14398 | ;; | |
14399 | icpc* ) | |
14400 | # Intel C++, used to be incompatible with GCC. | |
14401 | # ICC 10 doesn't accept -KPIC any more. | |
14402 | lt_prog_compiler_wl_CXX='-Wl,' | |
14403 | lt_prog_compiler_pic_CXX='-fPIC' | |
14404 | lt_prog_compiler_static_CXX='-static' | |
14405 | ;; | |
14406 | pgCC* | pgcpp*) | |
14407 | # Portland Group C++ compiler | |
14408 | lt_prog_compiler_wl_CXX='-Wl,' | |
14409 | lt_prog_compiler_pic_CXX='-fpic' | |
14410 | lt_prog_compiler_static_CXX='-Bstatic' | |
14411 | ;; | |
14412 | cxx*) | |
14413 | # Compaq C++ | |
14414 | # Make sure the PIC flag is empty. It appears that all Alpha | |
14415 | # Linux and Compaq Tru64 Unix objects are PIC. | |
14416 | lt_prog_compiler_pic_CXX= | |
14417 | lt_prog_compiler_static_CXX='-non_shared' | |
14418 | ;; | |
ee134472 JF |
14419 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) |
14420 | # IBM XL 8.0, 9.0 on PPC and BlueGene | |
9c60689e DWT |
14421 | lt_prog_compiler_wl_CXX='-Wl,' |
14422 | lt_prog_compiler_pic_CXX='-qpic' | |
14423 | lt_prog_compiler_static_CXX='-qstaticlink' | |
14424 | ;; | |
14425 | *) | |
14426 | case `$CC -V 2>&1 | sed 5q` in | |
14427 | *Sun\ C*) | |
14428 | # Sun C++ 5.9 | |
14429 | lt_prog_compiler_pic_CXX='-KPIC' | |
14430 | lt_prog_compiler_static_CXX='-Bstatic' | |
14431 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
14432 | ;; | |
14433 | esac | |
14434 | ;; | |
14435 | esac | |
14436 | ;; | |
14437 | lynxos*) | |
14438 | ;; | |
14439 | m88k*) | |
14440 | ;; | |
14441 | mvs*) | |
14442 | case $cc_basename in | |
14443 | cxx*) | |
14444 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
14445 | ;; | |
14446 | *) | |
14447 | ;; | |
14448 | esac | |
14449 | ;; | |
53ba6704 | 14450 | netbsd*) |
9c60689e DWT |
14451 | ;; |
14452 | *qnx* | *nto*) | |
14453 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
14454 | # it will coredump. | |
14455 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
14456 | ;; | |
14457 | osf3* | osf4* | osf5*) | |
14458 | case $cc_basename in | |
14459 | KCC*) | |
14460 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
14461 | ;; | |
14462 | RCC*) | |
14463 | # Rational C++ 2.4.1 | |
14464 | lt_prog_compiler_pic_CXX='-pic' | |
14465 | ;; | |
14466 | cxx*) | |
14467 | # Digital/Compaq C++ | |
14468 | lt_prog_compiler_wl_CXX='-Wl,' | |
14469 | # Make sure the PIC flag is empty. It appears that all Alpha | |
14470 | # Linux and Compaq Tru64 Unix objects are PIC. | |
14471 | lt_prog_compiler_pic_CXX= | |
14472 | lt_prog_compiler_static_CXX='-non_shared' | |
14473 | ;; | |
14474 | *) | |
14475 | ;; | |
14476 | esac | |
14477 | ;; | |
14478 | psos*) | |
14479 | ;; | |
14480 | solaris*) | |
14481 | case $cc_basename in | |
ee134472 | 14482 | CC* | sunCC*) |
9c60689e DWT |
14483 | # Sun C++ 4.2, 5.x and Centerline C++ |
14484 | lt_prog_compiler_pic_CXX='-KPIC' | |
14485 | lt_prog_compiler_static_CXX='-Bstatic' | |
14486 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
14487 | ;; | |
14488 | gcx*) | |
14489 | # Green Hills C++ Compiler | |
14490 | lt_prog_compiler_pic_CXX='-PIC' | |
14491 | ;; | |
14492 | *) | |
14493 | ;; | |
14494 | esac | |
14495 | ;; | |
14496 | sunos4*) | |
14497 | case $cc_basename in | |
14498 | CC*) | |
14499 | # Sun C++ 4.x | |
14500 | lt_prog_compiler_pic_CXX='-pic' | |
14501 | lt_prog_compiler_static_CXX='-Bstatic' | |
14502 | ;; | |
14503 | lcc*) | |
14504 | # Lucid | |
14505 | lt_prog_compiler_pic_CXX='-pic' | |
14506 | ;; | |
14507 | *) | |
14508 | ;; | |
14509 | esac | |
14510 | ;; | |
14511 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
14512 | case $cc_basename in | |
14513 | CC*) | |
14514 | lt_prog_compiler_wl_CXX='-Wl,' | |
14515 | lt_prog_compiler_pic_CXX='-KPIC' | |
14516 | lt_prog_compiler_static_CXX='-Bstatic' | |
14517 | ;; | |
14518 | esac | |
14519 | ;; | |
14520 | tandem*) | |
14521 | case $cc_basename in | |
14522 | NCC*) | |
14523 | # NonStop-UX NCC 3.20 | |
14524 | lt_prog_compiler_pic_CXX='-KPIC' | |
14525 | ;; | |
14526 | *) | |
14527 | ;; | |
14528 | esac | |
14529 | ;; | |
14530 | vxworks*) | |
14531 | ;; | |
14532 | *) | |
14533 | lt_prog_compiler_can_build_shared_CXX=no | |
14534 | ;; | |
14535 | esac | |
14536 | fi | |
14537 | ||
14538 | case $host_os in | |
14539 | # For platforms which do not support PIC, -DPIC is meaningless: | |
14540 | *djgpp*) | |
14541 | lt_prog_compiler_pic_CXX= | |
14542 | ;; | |
14543 | *) | |
14544 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
14545 | ;; | |
14546 | esac | |
9c60689e | 14547 | |
ee134472 JF |
14548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
14549 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
14550 | if ${lt_cv_prog_compiler_pic_CXX+:} false; then : | |
14551 | $as_echo_n "(cached) " >&6 | |
14552 | else | |
14553 | lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX | |
14554 | fi | |
14555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 | |
14556 | $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } | |
14557 | lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX | |
9c60689e DWT |
14558 | |
14559 | # | |
14560 | # Check to make sure the PIC flag actually works. | |
14561 | # | |
14562 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
14563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
14564 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
ee134472 | 14565 | if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : |
9c60689e DWT |
14566 | $as_echo_n "(cached) " >&6 |
14567 | else | |
14568 | lt_cv_prog_compiler_pic_works_CXX=no | |
14569 | ac_outfile=conftest.$ac_objext | |
14570 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14571 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
14572 | # Insert the option either (1) after the last *FLAGS variable, or | |
14573 | # (2) before a word containing "conftest.", or (3) at the end. | |
14574 | # Note that $ac_compile itself does not contain backslashes and begins | |
14575 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14576 | # The option is referenced via a variable to avoid confusing sed. | |
14577 | lt_compile=`echo "$ac_compile" | $SED \ | |
14578 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14579 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14580 | -e 's:$: $lt_compiler_flag:'` | |
ee134472 | 14581 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
9c60689e DWT |
14582 | (eval "$lt_compile" 2>conftest.err) |
14583 | ac_status=$? | |
14584 | cat conftest.err >&5 | |
ee134472 | 14585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9c60689e DWT |
14586 | if (exit $ac_status) && test -s "$ac_outfile"; then |
14587 | # The compiler can only warn and ignore the option if not recognized | |
14588 | # So say no if there are warnings other than the usual output. | |
ee134472 | 14589 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
9c60689e DWT |
14590 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14591 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
14592 | lt_cv_prog_compiler_pic_works_CXX=yes | |
14593 | fi | |
14594 | fi | |
53ba6704 | 14595 | $RM -r conftest* |
9c60689e DWT |
14596 | |
14597 | fi | |
14598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
14599 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
14600 | ||
14601 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | |
14602 | case $lt_prog_compiler_pic_CXX in | |
14603 | "" | " "*) ;; | |
14604 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
14605 | esac | |
14606 | else | |
14607 | lt_prog_compiler_pic_CXX= | |
14608 | lt_prog_compiler_can_build_shared_CXX=no | |
14609 | fi | |
14610 | ||
14611 | fi | |
14612 | ||
14613 | ||
14614 | ||
ee134472 JF |
14615 | |
14616 | ||
47aaa820 DWT |
14617 | # |
14618 | # Check to make sure the static flag actually works. | |
14619 | # | |
14620 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
14621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
14622 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
ee134472 | 14623 | if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : |
47aaa820 DWT |
14624 | $as_echo_n "(cached) " >&6 |
14625 | else | |
14626 | lt_cv_prog_compiler_static_works_CXX=no | |
14627 | save_LDFLAGS="$LDFLAGS" | |
14628 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
14629 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
14630 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
14631 | # The linker can only warn and ignore the option if not recognized | |
14632 | # So say no if there are warnings | |
14633 | if test -s conftest.err; then | |
14634 | # Append any errors to the config.log. | |
14635 | cat conftest.err 1>&5 | |
ee134472 | 14636 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
47aaa820 DWT |
14637 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14638 | if diff conftest.exp conftest.er2 >/dev/null; then | |
14639 | lt_cv_prog_compiler_static_works_CXX=yes | |
14640 | fi | |
14641 | else | |
14642 | lt_cv_prog_compiler_static_works_CXX=yes | |
14643 | fi | |
14644 | fi | |
14645 | $RM -r conftest* | |
14646 | LDFLAGS="$save_LDFLAGS" | |
14647 | ||
14648 | fi | |
14649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
14650 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
14651 | ||
14652 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | |
14653 | : | |
14654 | else | |
14655 | lt_prog_compiler_static_CXX= | |
14656 | fi | |
14657 | ||
14658 | ||
14659 | ||
14660 | ||
14661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14662 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
ee134472 | 14663 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
47aaa820 DWT |
14664 | $as_echo_n "(cached) " >&6 |
14665 | else | |
14666 | lt_cv_prog_compiler_c_o_CXX=no | |
14667 | $RM -r conftest 2>/dev/null | |
14668 | mkdir conftest | |
14669 | cd conftest | |
14670 | mkdir out | |
14671 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14672 | ||
14673 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14674 | # Insert the option either (1) after the last *FLAGS variable, or | |
14675 | # (2) before a word containing "conftest.", or (3) at the end. | |
14676 | # Note that $ac_compile itself does not contain backslashes and begins | |
14677 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14678 | lt_compile=`echo "$ac_compile" | $SED \ | |
14679 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14680 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14681 | -e 's:$: $lt_compiler_flag:'` | |
ee134472 | 14682 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
47aaa820 DWT |
14683 | (eval "$lt_compile" 2>out/conftest.err) |
14684 | ac_status=$? | |
14685 | cat out/conftest.err >&5 | |
ee134472 | 14686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47aaa820 DWT |
14687 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14688 | then | |
14689 | # The compiler can only warn and ignore the option if not recognized | |
14690 | # So say no if there are warnings | |
ee134472 | 14691 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
47aaa820 DWT |
14692 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14693 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14694 | lt_cv_prog_compiler_c_o_CXX=yes | |
14695 | fi | |
14696 | fi | |
14697 | chmod u+w . 2>&5 | |
53ba6704 | 14698 | $RM -r conftest* |
47aaa820 DWT |
14699 | # SGI C++ compiler will create directory out/ii_files/ for |
14700 | # template instantiation | |
14701 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14702 | $RM out/* && rmdir out | |
14703 | cd .. | |
14704 | $RM -r conftest | |
53ba6704 | 14705 | $RM -r conftest* |
47aaa820 DWT |
14706 | |
14707 | fi | |
14708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
14709 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
14710 | ||
14711 | ||
14712 | ||
14713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14714 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
ee134472 | 14715 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
47aaa820 DWT |
14716 | $as_echo_n "(cached) " >&6 |
14717 | else | |
14718 | lt_cv_prog_compiler_c_o_CXX=no | |
14719 | $RM -r conftest 2>/dev/null | |
14720 | mkdir conftest | |
14721 | cd conftest | |
14722 | mkdir out | |
14723 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14724 | ||
14725 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14726 | # Insert the option either (1) after the last *FLAGS variable, or | |
14727 | # (2) before a word containing "conftest.", or (3) at the end. | |
14728 | # Note that $ac_compile itself does not contain backslashes and begins | |
14729 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14730 | lt_compile=`echo "$ac_compile" | $SED \ | |
14731 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14732 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14733 | -e 's:$: $lt_compiler_flag:'` | |
ee134472 | 14734 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
47aaa820 DWT |
14735 | (eval "$lt_compile" 2>out/conftest.err) |
14736 | ac_status=$? | |
14737 | cat out/conftest.err >&5 | |
ee134472 | 14738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47aaa820 DWT |
14739 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14740 | then | |
14741 | # The compiler can only warn and ignore the option if not recognized | |
14742 | # So say no if there are warnings | |
ee134472 | 14743 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
47aaa820 DWT |
14744 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14745 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14746 | lt_cv_prog_compiler_c_o_CXX=yes | |
14747 | fi | |
14748 | fi | |
14749 | chmod u+w . 2>&5 | |
53ba6704 | 14750 | $RM -r conftest* |
47aaa820 DWT |
14751 | # SGI C++ compiler will create directory out/ii_files/ for |
14752 | # template instantiation | |
14753 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14754 | $RM out/* && rmdir out | |
14755 | cd .. | |
14756 | $RM -r conftest | |
53ba6704 | 14757 | $RM -r conftest* |
47aaa820 DWT |
14758 | |
14759 | fi | |
14760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
14761 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
14762 | ||
14763 | ||
14764 | ||
14765 | ||
14766 | hard_links="nottested" | |
14767 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
14768 | # do not overwrite the value of need_locks provided by the user | |
14769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
14770 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
14771 | hard_links=yes | |
53ba6704 | 14772 | $RM -r conftest* |
47aaa820 DWT |
14773 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
14774 | touch conftest.a | |
14775 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
14776 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
14778 | $as_echo "$hard_links" >&6; } | |
14779 | if test "$hard_links" = no; then | |
14780 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
14781 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
14782 | need_locks=warn | |
14783 | fi | |
14784 | else | |
14785 | need_locks=no | |
14786 | fi | |
14787 | ||
14788 | ||
14789 | ||
14790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
14791 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
14792 | ||
14793 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
ee134472 | 14794 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
47aaa820 DWT |
14795 | case $host_os in |
14796 | aix[4-9]*) | |
14797 | # If we're using GNU nm, then we don't want the "-C" option. | |
14798 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
ee134472 JF |
14799 | # Also, AIX nm treats weak defined symbols like other global defined |
14800 | # symbols, whereas GNU nm marks them as "W". | |
47aaa820 | 14801 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
ee134472 | 14802 | 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 |
14803 | else |
14804 | 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' | |
14805 | fi | |
14806 | ;; | |
14807 | pw32*) | |
14808 | export_symbols_cmds_CXX="$ltdll_cmds" | |
ee134472 | 14809 | ;; |
47aaa820 | 14810 | cygwin* | mingw* | cegcc*) |
ee134472 | 14811 | case $cc_basename in |
53ba6704 JF |
14812 | cl*) |
14813 | exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
14814 | ;; | |
ee134472 JF |
14815 | *) |
14816 | 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' | |
14817 | exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
14818 | ;; | |
14819 | esac | |
14820 | ;; | |
47aaa820 DWT |
14821 | *) |
14822 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
ee134472 | 14823 | ;; |
47aaa820 | 14824 | esac |
47aaa820 DWT |
14825 | |
14826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
14827 | $as_echo "$ld_shlibs_CXX" >&6; } | |
14828 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
14829 | ||
14830 | with_gnu_ld_CXX=$with_gnu_ld | |
14831 | ||
14832 | ||
14833 | ||
14834 | ||
14835 | ||
14836 | ||
14837 | # | |
14838 | # Do we need to explicitly link libc? | |
14839 | # | |
14840 | case "x$archive_cmds_need_lc_CXX" in | |
14841 | x|xyes) | |
14842 | # Assume -lc should be added | |
14843 | archive_cmds_need_lc_CXX=yes | |
14844 | ||
14845 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
14846 | case $archive_cmds_CXX in | |
14847 | *'~'*) | |
14848 | # FIXME: we may have to deal with multi-command sequences. | |
14849 | ;; | |
14850 | '$CC '*) | |
14851 | # Test whether the compiler implicitly links with -lc since on some | |
14852 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
14853 | # to ld, don't add -lc before -lgcc. | |
14854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
14855 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
ee134472 JF |
14856 | if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : |
14857 | $as_echo_n "(cached) " >&6 | |
14858 | else | |
53ba6704 | 14859 | $RM -r conftest* |
ee134472 | 14860 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
47aaa820 | 14861 | |
ee134472 | 14862 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
47aaa820 DWT |
14863 | (eval $ac_compile) 2>&5 |
14864 | ac_status=$? | |
14865 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14866 | test $ac_status = 0; } 2>conftest.err; then | |
ee134472 JF |
14867 | soname=conftest |
14868 | lib=conftest | |
14869 | libobjs=conftest.$ac_objext | |
14870 | deplibs= | |
14871 | wl=$lt_prog_compiler_wl_CXX | |
14872 | pic_flag=$lt_prog_compiler_pic_CXX | |
14873 | compiler_flags=-v | |
14874 | linker_flags=-v | |
14875 | verstring= | |
14876 | output_objdir=. | |
14877 | libname=conftest | |
14878 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
14879 | allow_undefined_flag_CXX= | |
14880 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
47aaa820 DWT |
14881 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
14882 | ac_status=$? | |
14883 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14884 | test $ac_status = 0; } | |
ee134472 JF |
14885 | then |
14886 | lt_cv_archive_cmds_need_lc_CXX=no | |
14887 | else | |
14888 | lt_cv_archive_cmds_need_lc_CXX=yes | |
14889 | fi | |
14890 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
14891 | else | |
14892 | cat conftest.err 1>&5 | |
14893 | fi | |
53ba6704 | 14894 | $RM -r conftest* |
ee134472 JF |
14895 | |
14896 | fi | |
14897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 | |
14898 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } | |
14899 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX | |
47aaa820 DWT |
14900 | ;; |
14901 | esac | |
14902 | fi | |
14903 | ;; | |
14904 | esac | |
14905 | ||
14906 | ||
14907 | ||
14908 | ||
14909 | ||
14910 | ||
14911 | ||
14912 | ||
14913 | ||
14914 | ||
14915 | ||
14916 | ||
14917 | ||
14918 | ||
14919 | ||
14920 | ||
14921 | ||
14922 | ||
14923 | ||
14924 | ||
14925 | ||
14926 | ||
14927 | ||
14928 | ||
14929 | ||
14930 | ||
14931 | ||
14932 | ||
14933 | ||
14934 | ||
14935 | ||
14936 | ||
14937 | ||
14938 | ||
14939 | ||
14940 | ||
14941 | ||
14942 | ||
14943 | ||
14944 | ||
14945 | ||
14946 | ||
14947 | ||
14948 | ||
14949 | ||
14950 | ||
14951 | ||
14952 | ||
14953 | ||
14954 | ||
14955 | ||
14956 | ||
14957 | ||
14958 | ||
14959 | ||
14960 | ||
14961 | ||
14962 | ||
14963 | ||
47aaa820 DWT |
14964 | |
14965 | ||
14966 | ||
14967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
14968 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
14969 | ||
14970 | library_names_spec= | |
14971 | libname_spec='lib$name' | |
14972 | soname_spec= | |
14973 | shrext_cmds=".so" | |
14974 | postinstall_cmds= | |
14975 | postuninstall_cmds= | |
14976 | finish_cmds= | |
14977 | finish_eval= | |
14978 | shlibpath_var= | |
14979 | shlibpath_overrides_runpath=unknown | |
14980 | version_type=none | |
14981 | dynamic_linker="$host_os ld.so" | |
14982 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
14983 | need_lib_prefix=unknown | |
14984 | hardcode_into_libs=no | |
14985 | ||
14986 | # when you set need_version to no, make sure it does not cause -set_version | |
14987 | # flags to be left without arguments | |
14988 | need_version=unknown | |
14989 | ||
14990 | case $host_os in | |
14991 | aix3*) | |
53ba6704 | 14992 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
14993 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
14994 | shlibpath_var=LIBPATH | |
14995 | ||
14996 | # AIX 3 has no versioning support, so we append a major version to the name. | |
14997 | soname_spec='${libname}${release}${shared_ext}$major' | |
14998 | ;; | |
14999 | ||
15000 | aix[4-9]*) | |
53ba6704 | 15001 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15002 | need_lib_prefix=no |
15003 | need_version=no | |
15004 | hardcode_into_libs=yes | |
15005 | if test "$host_cpu" = ia64; then | |
15006 | # AIX 5 supports IA64 | |
15007 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
15008 | shlibpath_var=LD_LIBRARY_PATH | |
15009 | else | |
15010 | # With GCC up to 2.95.x, collect2 would create an import file | |
15011 | # for dependence libraries. The import file would start with | |
15012 | # the line `#! .'. This would cause the generated library to | |
15013 | # depend on `.', always an invalid library. This was fixed in | |
15014 | # development snapshots of GCC prior to 3.0. | |
15015 | case $host_os in | |
15016 | aix4 | aix4.[01] | aix4.[01].*) | |
15017 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
15018 | echo ' yes ' | |
15019 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
15020 | : | |
15021 | else | |
15022 | can_build_shared=no | |
15023 | fi | |
15024 | ;; | |
15025 | esac | |
15026 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
15027 | # soname into executable. Probably we can add versioning support to | |
15028 | # collect2, so additional links can be useful in future. | |
15029 | if test "$aix_use_runtimelinking" = yes; then | |
15030 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
15031 | # instead of lib<name>.a to let people know that these are not | |
15032 | # typical AIX shared libraries. | |
15033 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15034 | else | |
15035 | # We preserve .a as extension for shared libraries through AIX4.2 | |
15036 | # and later when we are not doing run time linking. | |
15037 | library_names_spec='${libname}${release}.a $libname.a' | |
15038 | soname_spec='${libname}${release}${shared_ext}$major' | |
15039 | fi | |
15040 | shlibpath_var=LIBPATH | |
15041 | fi | |
15042 | ;; | |
15043 | ||
15044 | amigaos*) | |
15045 | case $host_cpu in | |
15046 | powerpc) | |
15047 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
15048 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
15049 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15050 | ;; | |
15051 | m68k) | |
15052 | library_names_spec='$libname.ixlibrary $libname.a' | |
15053 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
ee134472 | 15054 | 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 |
15055 | ;; |
15056 | esac | |
15057 | ;; | |
15058 | ||
15059 | beos*) | |
15060 | library_names_spec='${libname}${shared_ext}' | |
15061 | dynamic_linker="$host_os ld.so" | |
15062 | shlibpath_var=LIBRARY_PATH | |
15063 | ;; | |
15064 | ||
15065 | bsdi[45]*) | |
53ba6704 | 15066 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15067 | need_version=no |
15068 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15069 | soname_spec='${libname}${release}${shared_ext}$major' | |
15070 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
15071 | shlibpath_var=LD_LIBRARY_PATH | |
15072 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
15073 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
15074 | # the default ld.so.conf also contains /usr/contrib/lib and | |
15075 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
15076 | # libtool to hard-code these into programs | |
15077 | ;; | |
9c60689e | 15078 | |
47aaa820 DWT |
15079 | cygwin* | mingw* | pw32* | cegcc*) |
15080 | version_type=windows | |
15081 | shrext_cmds=".dll" | |
15082 | need_version=no | |
15083 | need_lib_prefix=no | |
9c60689e | 15084 | |
ee134472 JF |
15085 | case $GCC,$cc_basename in |
15086 | yes,*) | |
15087 | # gcc | |
47aaa820 DWT |
15088 | library_names_spec='$libname.dll.a' |
15089 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
15090 | postinstall_cmds='base_file=`basename \${file}`~ | |
15091 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
15092 | dldir=$destdir/`dirname \$dlpath`~ | |
15093 | test -d \$dldir || mkdir -p \$dldir~ | |
15094 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
15095 | chmod a+x \$dldir/$dlname~ | |
15096 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
15097 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
15098 | fi' | |
15099 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
15100 | dlpath=$dir/\$dldll~ | |
15101 | $RM \$dlpath' | |
15102 | shlibpath_overrides_runpath=yes | |
9c60689e | 15103 | |
47aaa820 DWT |
15104 | case $host_os in |
15105 | cygwin*) | |
15106 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
15107 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
ee134472 | 15108 | |
47aaa820 DWT |
15109 | ;; |
15110 | mingw* | cegcc*) | |
15111 | # MinGW DLLs use traditional 'lib' prefix | |
15112 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
47aaa820 DWT |
15113 | ;; |
15114 | pw32*) | |
15115 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
15116 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
15117 | ;; | |
15118 | esac | |
ee134472 JF |
15119 | dynamic_linker='Win32 ld.exe' |
15120 | ;; | |
15121 | ||
15122 | *,cl*) | |
15123 | # Native MSVC | |
15124 | libname_spec='$name' | |
15125 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
15126 | library_names_spec='${libname}.dll.lib' | |
15127 | ||
15128 | case $build_os in | |
15129 | mingw*) | |
15130 | sys_lib_search_path_spec= | |
15131 | lt_save_ifs=$IFS | |
15132 | IFS=';' | |
15133 | for lt_path in $LIB | |
15134 | do | |
15135 | IFS=$lt_save_ifs | |
15136 | # Let DOS variable expansion print the short 8.3 style file name. | |
15137 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
15138 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
15139 | done | |
15140 | IFS=$lt_save_ifs | |
15141 | # Convert to MSYS style. | |
15142 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
15143 | ;; | |
15144 | cygwin*) | |
15145 | # Convert to unix form, then to dos form, then back to unix form | |
15146 | # but this time dos style (no spaces!) so that the unix form looks | |
15147 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
15148 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
15149 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
15150 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
15151 | ;; | |
15152 | *) | |
15153 | sys_lib_search_path_spec="$LIB" | |
15154 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
15155 | # It is most probably a Windows format PATH. | |
15156 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
15157 | else | |
15158 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
15159 | fi | |
15160 | # FIXME: find the short name or the path components, as spaces are | |
15161 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
15162 | ;; | |
15163 | esac | |
15164 | ||
15165 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
15166 | postinstall_cmds='base_file=`basename \${file}`~ | |
15167 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
15168 | dldir=$destdir/`dirname \$dlpath`~ | |
15169 | test -d \$dldir || mkdir -p \$dldir~ | |
15170 | $install_prog $dir/$dlname \$dldir/$dlname' | |
15171 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
15172 | dlpath=$dir/\$dldll~ | |
15173 | $RM \$dlpath' | |
15174 | shlibpath_overrides_runpath=yes | |
15175 | dynamic_linker='Win32 link.exe' | |
47aaa820 | 15176 | ;; |
9c60689e | 15177 | |
47aaa820 | 15178 | *) |
ee134472 | 15179 | # Assume MSVC wrapper |
47aaa820 | 15180 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
ee134472 | 15181 | dynamic_linker='Win32 ld.exe' |
47aaa820 DWT |
15182 | ;; |
15183 | esac | |
47aaa820 DWT |
15184 | # FIXME: first we should search . and the directory the executable is in |
15185 | shlibpath_var=PATH | |
15186 | ;; | |
9c60689e | 15187 | |
47aaa820 DWT |
15188 | darwin* | rhapsody*) |
15189 | dynamic_linker="$host_os dyld" | |
15190 | version_type=darwin | |
15191 | need_lib_prefix=no | |
15192 | need_version=no | |
15193 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
15194 | soname_spec='${libname}${release}${major}$shared_ext' | |
15195 | shlibpath_overrides_runpath=yes | |
15196 | shlibpath_var=DYLD_LIBRARY_PATH | |
15197 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9c60689e | 15198 | |
47aaa820 DWT |
15199 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
15200 | ;; | |
9c60689e | 15201 | |
47aaa820 | 15202 | dgux*) |
53ba6704 | 15203 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15204 | need_lib_prefix=no |
15205 | need_version=no | |
15206 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
15207 | soname_spec='${libname}${release}${shared_ext}$major' | |
15208 | shlibpath_var=LD_LIBRARY_PATH | |
15209 | ;; | |
9c60689e | 15210 | |
47aaa820 DWT |
15211 | freebsd* | dragonfly*) |
15212 | # DragonFly does not have aout. When/if they implement a new | |
15213 | # versioning mechanism, adjust this. | |
15214 | if test -x /usr/bin/objformat; then | |
15215 | objformat=`/usr/bin/objformat` | |
15216 | else | |
15217 | case $host_os in | |
53ba6704 | 15218 | freebsd[23].*) objformat=aout ;; |
47aaa820 DWT |
15219 | *) objformat=elf ;; |
15220 | esac | |
15221 | fi | |
15222 | version_type=freebsd-$objformat | |
15223 | case $version_type in | |
15224 | freebsd-elf*) | |
15225 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15226 | need_version=no | |
15227 | need_lib_prefix=no | |
15228 | ;; | |
15229 | freebsd-*) | |
15230 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
15231 | need_version=yes | |
15232 | ;; | |
15233 | esac | |
15234 | shlibpath_var=LD_LIBRARY_PATH | |
15235 | case $host_os in | |
53ba6704 | 15236 | freebsd2.*) |
47aaa820 DWT |
15237 | shlibpath_overrides_runpath=yes |
15238 | ;; | |
15239 | freebsd3.[01]* | freebsdelf3.[01]*) | |
15240 | shlibpath_overrides_runpath=yes | |
15241 | hardcode_into_libs=yes | |
15242 | ;; | |
15243 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
15244 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
15245 | shlibpath_overrides_runpath=no | |
15246 | hardcode_into_libs=yes | |
15247 | ;; | |
15248 | *) # from 4.6 on, and DragonFly | |
15249 | shlibpath_overrides_runpath=yes | |
15250 | hardcode_into_libs=yes | |
15251 | ;; | |
15252 | esac | |
15253 | ;; | |
9c60689e | 15254 | |
47aaa820 | 15255 | gnu*) |
53ba6704 | 15256 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15257 | need_lib_prefix=no |
15258 | need_version=no | |
15259 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15260 | soname_spec='${libname}${release}${shared_ext}$major' | |
15261 | shlibpath_var=LD_LIBRARY_PATH | |
ee134472 JF |
15262 | shlibpath_overrides_runpath=no |
15263 | hardcode_into_libs=yes | |
15264 | ;; | |
15265 | ||
15266 | haiku*) | |
53ba6704 | 15267 | version_type=linux # correct to gnu/linux during the next big refactor |
ee134472 JF |
15268 | need_lib_prefix=no |
15269 | need_version=no | |
15270 | dynamic_linker="$host_os runtime_loader" | |
15271 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15272 | soname_spec='${libname}${release}${shared_ext}$major' | |
15273 | shlibpath_var=LIBRARY_PATH | |
15274 | shlibpath_overrides_runpath=yes | |
15275 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
47aaa820 DWT |
15276 | hardcode_into_libs=yes |
15277 | ;; | |
9c60689e | 15278 | |
47aaa820 DWT |
15279 | hpux9* | hpux10* | hpux11*) |
15280 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
15281 | # link against other versions. | |
15282 | version_type=sunos | |
15283 | need_lib_prefix=no | |
15284 | need_version=no | |
15285 | case $host_cpu in | |
15286 | ia64*) | |
15287 | shrext_cmds='.so' | |
15288 | hardcode_into_libs=yes | |
15289 | dynamic_linker="$host_os dld.so" | |
15290 | shlibpath_var=LD_LIBRARY_PATH | |
15291 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15292 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15293 | soname_spec='${libname}${release}${shared_ext}$major' | |
15294 | if test "X$HPUX_IA64_MODE" = X32; then | |
15295 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
15296 | else | |
15297 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
15298 | fi | |
15299 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15300 | ;; | |
15301 | hppa*64*) | |
15302 | shrext_cmds='.sl' | |
15303 | hardcode_into_libs=yes | |
15304 | dynamic_linker="$host_os dld.sl" | |
15305 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
15306 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15307 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15308 | soname_spec='${libname}${release}${shared_ext}$major' | |
15309 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
15310 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15311 | ;; | |
15312 | *) | |
15313 | shrext_cmds='.sl' | |
15314 | dynamic_linker="$host_os dld.sl" | |
15315 | shlibpath_var=SHLIB_PATH | |
15316 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
15317 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15318 | soname_spec='${libname}${release}${shared_ext}$major' | |
15319 | ;; | |
15320 | esac | |
ee134472 | 15321 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
47aaa820 | 15322 | postinstall_cmds='chmod 555 $lib' |
ee134472 JF |
15323 | # or fails outright, so override atomically: |
15324 | install_override_mode=555 | |
47aaa820 | 15325 | ;; |
9c60689e | 15326 | |
47aaa820 | 15327 | interix[3-9]*) |
53ba6704 | 15328 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15329 | need_lib_prefix=no |
15330 | need_version=no | |
15331 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15332 | soname_spec='${libname}${release}${shared_ext}$major' | |
15333 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
15334 | shlibpath_var=LD_LIBRARY_PATH | |
15335 | shlibpath_overrides_runpath=no | |
15336 | hardcode_into_libs=yes | |
15337 | ;; | |
9c60689e | 15338 | |
47aaa820 DWT |
15339 | irix5* | irix6* | nonstopux*) |
15340 | case $host_os in | |
15341 | nonstopux*) version_type=nonstopux ;; | |
15342 | *) | |
15343 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
53ba6704 | 15344 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15345 | else |
15346 | version_type=irix | |
15347 | fi ;; | |
15348 | esac | |
15349 | need_lib_prefix=no | |
15350 | need_version=no | |
15351 | soname_spec='${libname}${release}${shared_ext}$major' | |
15352 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15353 | case $host_os in | |
15354 | irix5* | nonstopux*) | |
15355 | libsuff= shlibsuff= | |
15356 | ;; | |
15357 | *) | |
15358 | case $LD in # libtool.m4 will add one of these switches to LD | |
15359 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
15360 | libsuff= shlibsuff= libmagic=32-bit;; | |
15361 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
15362 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
15363 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
15364 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
15365 | *) libsuff= shlibsuff= libmagic=never-match;; | |
15366 | esac | |
15367 | ;; | |
15368 | esac | |
15369 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
15370 | shlibpath_overrides_runpath=no | |
15371 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
15372 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
15373 | hardcode_into_libs=yes | |
15374 | ;; | |
9c60689e | 15375 | |
47aaa820 DWT |
15376 | # No shared lib support for Linux oldld, aout, or coff. |
15377 | linux*oldld* | linux*aout* | linux*coff*) | |
15378 | dynamic_linker=no | |
15379 | ;; | |
9c60689e | 15380 | |
53ba6704 | 15381 | # This must be glibc/ELF. |
1504c9b8 | 15382 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
53ba6704 | 15383 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15384 | need_lib_prefix=no |
15385 | need_version=no | |
15386 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15387 | soname_spec='${libname}${release}${shared_ext}$major' | |
15388 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
15389 | shlibpath_var=LD_LIBRARY_PATH | |
15390 | shlibpath_overrides_runpath=no | |
ee134472 | 15391 | |
47aaa820 | 15392 | # Some binutils ld are patched to set DT_RUNPATH |
ee134472 JF |
15393 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
15394 | $as_echo_n "(cached) " >&6 | |
15395 | else | |
15396 | lt_cv_shlibpath_overrides_runpath=no | |
15397 | save_LDFLAGS=$LDFLAGS | |
15398 | save_libdir=$libdir | |
15399 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
15400 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
15401 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
47aaa820 | 15402 | /* end confdefs.h. */ |
9c60689e | 15403 | |
47aaa820 DWT |
15404 | int |
15405 | main () | |
15406 | { | |
9c60689e | 15407 | |
47aaa820 DWT |
15408 | ; |
15409 | return 0; | |
15410 | } | |
15411 | _ACEOF | |
15412 | if ac_fn_cxx_try_link "$LINENO"; then : | |
15413 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
ee134472 | 15414 | lt_cv_shlibpath_overrides_runpath=yes |
9c60689e | 15415 | fi |
47aaa820 DWT |
15416 | fi |
15417 | rm -f core conftest.err conftest.$ac_objext \ | |
15418 | conftest$ac_exeext conftest.$ac_ext | |
ee134472 JF |
15419 | LDFLAGS=$save_LDFLAGS |
15420 | libdir=$save_libdir | |
15421 | ||
15422 | fi | |
15423 | ||
15424 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
9c60689e | 15425 | |
47aaa820 DWT |
15426 | # This implies no fast_install, which is unacceptable. |
15427 | # Some rework will be needed to allow for fast_install | |
15428 | # before this can be enabled. | |
15429 | hardcode_into_libs=yes | |
9c60689e | 15430 | |
47aaa820 DWT |
15431 | # Append ld.so.conf contents to the search path |
15432 | if test -f /etc/ld.so.conf; then | |
ee134472 | 15433 | 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 |
15434 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
15435 | fi | |
9c60689e | 15436 | |
47aaa820 DWT |
15437 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
15438 | # powerpc, because MkLinux only supported shared libraries with the | |
15439 | # GNU dynamic linker. Since this was broken with cross compilers, | |
15440 | # most powerpc-linux boxes support dynamic linking these days and | |
15441 | # people can always --disable-shared, the test was removed, and we | |
15442 | # assume the GNU/Linux dynamic linker is in use. | |
15443 | dynamic_linker='GNU/Linux ld.so' | |
9c60689e | 15444 | ;; |
47aaa820 | 15445 | |
47aaa820 DWT |
15446 | netbsd*) |
15447 | version_type=sunos | |
15448 | need_lib_prefix=no | |
15449 | need_version=no | |
15450 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
15451 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15452 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15453 | dynamic_linker='NetBSD (a.out) ld.so' | |
15454 | else | |
15455 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15456 | soname_spec='${libname}${release}${shared_ext}$major' | |
15457 | dynamic_linker='NetBSD ld.elf_so' | |
15458 | fi | |
15459 | shlibpath_var=LD_LIBRARY_PATH | |
15460 | shlibpath_overrides_runpath=yes | |
15461 | hardcode_into_libs=yes | |
9c60689e | 15462 | ;; |
9c60689e | 15463 | |
47aaa820 | 15464 | newsos6) |
53ba6704 | 15465 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15466 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15467 | shlibpath_var=LD_LIBRARY_PATH | |
15468 | shlibpath_overrides_runpath=yes | |
15469 | ;; | |
9c60689e | 15470 | |
47aaa820 DWT |
15471 | *nto* | *qnx*) |
15472 | version_type=qnx | |
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 | shlibpath_var=LD_LIBRARY_PATH | |
15478 | shlibpath_overrides_runpath=no | |
15479 | hardcode_into_libs=yes | |
15480 | dynamic_linker='ldqnx.so' | |
15481 | ;; | |
9c60689e | 15482 | |
47aaa820 DWT |
15483 | openbsd*) |
15484 | version_type=sunos | |
15485 | sys_lib_dlsearch_path_spec="/usr/lib" | |
15486 | need_lib_prefix=no | |
15487 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
15488 | case $host_os in | |
15489 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
15490 | *) need_version=no ;; | |
15491 | esac | |
15492 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15493 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15494 | shlibpath_var=LD_LIBRARY_PATH | |
15495 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
15496 | case $host_os in | |
15497 | openbsd2.[89] | openbsd2.[89].*) | |
15498 | shlibpath_overrides_runpath=no | |
15499 | ;; | |
15500 | *) | |
15501 | shlibpath_overrides_runpath=yes | |
15502 | ;; | |
15503 | esac | |
15504 | else | |
15505 | shlibpath_overrides_runpath=yes | |
15506 | fi | |
15507 | ;; | |
9c60689e | 15508 | |
47aaa820 DWT |
15509 | os2*) |
15510 | libname_spec='$name' | |
15511 | shrext_cmds=".dll" | |
15512 | need_lib_prefix=no | |
15513 | library_names_spec='$libname${shared_ext} $libname.a' | |
15514 | dynamic_linker='OS/2 ld.exe' | |
15515 | shlibpath_var=LIBPATH | |
15516 | ;; | |
9c60689e | 15517 | |
47aaa820 DWT |
15518 | osf3* | osf4* | osf5*) |
15519 | version_type=osf | |
15520 | need_lib_prefix=no | |
15521 | need_version=no | |
15522 | soname_spec='${libname}${release}${shared_ext}$major' | |
15523 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15524 | shlibpath_var=LD_LIBRARY_PATH | |
15525 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
15526 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
15527 | ;; | |
9c60689e | 15528 | |
47aaa820 DWT |
15529 | rdos*) |
15530 | dynamic_linker=no | |
15531 | ;; | |
9c60689e | 15532 | |
47aaa820 | 15533 | solaris*) |
53ba6704 | 15534 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15535 | need_lib_prefix=no |
15536 | need_version=no | |
15537 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15538 | soname_spec='${libname}${release}${shared_ext}$major' | |
15539 | shlibpath_var=LD_LIBRARY_PATH | |
15540 | shlibpath_overrides_runpath=yes | |
15541 | hardcode_into_libs=yes | |
15542 | # ldd complains unless libraries are executable | |
15543 | postinstall_cmds='chmod +x $lib' | |
15544 | ;; | |
9c60689e | 15545 | |
47aaa820 DWT |
15546 | sunos4*) |
15547 | version_type=sunos | |
15548 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15549 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
15550 | shlibpath_var=LD_LIBRARY_PATH | |
15551 | shlibpath_overrides_runpath=yes | |
15552 | if test "$with_gnu_ld" = yes; then | |
15553 | need_lib_prefix=no | |
15554 | fi | |
15555 | need_version=yes | |
15556 | ;; | |
9c60689e | 15557 | |
47aaa820 | 15558 | sysv4 | sysv4.3*) |
53ba6704 | 15559 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15560 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15561 | soname_spec='${libname}${release}${shared_ext}$major' | |
15562 | shlibpath_var=LD_LIBRARY_PATH | |
15563 | case $host_vendor in | |
15564 | sni) | |
15565 | shlibpath_overrides_runpath=no | |
15566 | need_lib_prefix=no | |
15567 | runpath_var=LD_RUN_PATH | |
9c60689e | 15568 | ;; |
47aaa820 DWT |
15569 | siemens) |
15570 | need_lib_prefix=no | |
9c60689e | 15571 | ;; |
47aaa820 DWT |
15572 | motorola) |
15573 | need_lib_prefix=no | |
15574 | need_version=no | |
15575 | shlibpath_overrides_runpath=no | |
15576 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
15577 | ;; | |
15578 | esac | |
9c60689e | 15579 | ;; |
9c60689e | 15580 | |
47aaa820 DWT |
15581 | sysv4*MP*) |
15582 | if test -d /usr/nec ;then | |
53ba6704 | 15583 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15584 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
15585 | soname_spec='$libname${shared_ext}.$major' | |
15586 | shlibpath_var=LD_LIBRARY_PATH | |
15587 | fi | |
15588 | ;; | |
9c60689e | 15589 | |
47aaa820 DWT |
15590 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
15591 | version_type=freebsd-elf | |
15592 | need_lib_prefix=no | |
15593 | need_version=no | |
15594 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15595 | soname_spec='${libname}${release}${shared_ext}$major' | |
15596 | shlibpath_var=LD_LIBRARY_PATH | |
15597 | shlibpath_overrides_runpath=yes | |
15598 | hardcode_into_libs=yes | |
15599 | if test "$with_gnu_ld" = yes; then | |
15600 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
15601 | else | |
15602 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
15603 | case $host_os in | |
15604 | sco3.2v5*) | |
15605 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
15606 | ;; | |
15607 | esac | |
15608 | fi | |
15609 | sys_lib_dlsearch_path_spec='/usr/lib' | |
15610 | ;; | |
9c60689e | 15611 | |
47aaa820 DWT |
15612 | tpf*) |
15613 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
53ba6704 | 15614 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15615 | need_lib_prefix=no |
15616 | need_version=no | |
15617 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15618 | shlibpath_var=LD_LIBRARY_PATH | |
15619 | shlibpath_overrides_runpath=no | |
15620 | hardcode_into_libs=yes | |
15621 | ;; | |
9c60689e | 15622 | |
47aaa820 | 15623 | uts4*) |
53ba6704 | 15624 | version_type=linux # correct to gnu/linux during the next big refactor |
47aaa820 DWT |
15625 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15626 | soname_spec='${libname}${release}${shared_ext}$major' | |
15627 | shlibpath_var=LD_LIBRARY_PATH | |
15628 | ;; | |
9c60689e | 15629 | |
47aaa820 DWT |
15630 | *) |
15631 | dynamic_linker=no | |
e9c9a47c DWT |
15632 | ;; |
15633 | esac | |
15634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
15635 | $as_echo "$dynamic_linker" >&6; } | |
15636 | test "$dynamic_linker" = no && can_build_shared=no | |
15637 | ||
15638 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
15639 | if test "$GCC" = yes; then | |
15640 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
47aaa820 | 15641 | fi |
9c60689e | 15642 | |
e9c9a47c DWT |
15643 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
15644 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
47aaa820 | 15645 | fi |
e9c9a47c DWT |
15646 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
15647 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
47aaa820 | 15648 | fi |
9c60689e | 15649 | |
9c60689e | 15650 | |
9c60689e | 15651 | |
9c60689e | 15652 | |
47aaa820 | 15653 | |
47aaa820 | 15654 | |
47aaa820 | 15655 | |
9c60689e | 15656 | |
9c60689e | 15657 | |
47aaa820 | 15658 | |
47aaa820 | 15659 | |
47aaa820 | 15660 | |
47aaa820 | 15661 | |
47aaa820 | 15662 | |
47aaa820 | 15663 | |
47aaa820 | 15664 | |
47aaa820 | 15665 | |
9c60689e | 15666 | |
9c60689e | 15667 | |
9c60689e | 15668 | |
9c60689e | 15669 | |
9c60689e | 15670 | |
e9c9a47c DWT |
15671 | |
15672 | ||
15673 | ||
15674 | ||
15675 | ||
15676 | ||
15677 | ||
15678 | ||
15679 | ||
15680 | ||
15681 | ||
ee134472 JF |
15682 | |
15683 | ||
e9c9a47c DWT |
15684 | |
15685 | ||
15686 | ||
15687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
15688 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
15689 | hardcode_action_CXX= | |
15690 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
15691 | test -n "$runpath_var_CXX" || | |
15692 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
15693 | ||
15694 | # We can hardcode non-existent directories. | |
15695 | if test "$hardcode_direct_CXX" != no && | |
15696 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
15697 | # have to relink, otherwise we might link with an installed library | |
15698 | # when we should be linking with a yet-to-be-installed one | |
15699 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
15700 | test "$hardcode_minus_L_CXX" != no; then | |
15701 | # Linking always hardcodes the temporary library directory. | |
15702 | hardcode_action_CXX=relink | |
15703 | else | |
15704 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
15705 | hardcode_action_CXX=immediate | |
15706 | fi | |
15707 | else | |
15708 | # We cannot hardcode anything, or else we can only hardcode existing | |
15709 | # directories. | |
15710 | hardcode_action_CXX=unsupported | |
15711 | fi | |
15712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
15713 | $as_echo "$hardcode_action_CXX" >&6; } | |
15714 | ||
15715 | if test "$hardcode_action_CXX" = relink || | |
15716 | test "$inherit_rpath_CXX" = yes; then | |
15717 | # Fast installation is not supported | |
15718 | enable_fast_install=no | |
15719 | elif test "$shlibpath_overrides_runpath" = yes || | |
15720 | test "$enable_shared" = no; then | |
15721 | # Fast installation is not necessary | |
15722 | enable_fast_install=needless | |
47aaa820 | 15723 | fi |
9c60689e | 15724 | |
47aaa820 | 15725 | |
47aaa820 | 15726 | |
e9c9a47c DWT |
15727 | |
15728 | ||
15729 | ||
15730 | ||
a243b558 JF |
15731 | fi # test -n "$compiler" |
15732 | ||
15733 | CC=$lt_save_CC | |
15734 | CFLAGS=$lt_save_CFLAGS | |
15735 | LDCXX=$LD | |
15736 | LD=$lt_save_LD | |
15737 | GCC=$lt_save_GCC | |
15738 | with_gnu_ld=$lt_save_with_gnu_ld | |
15739 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
15740 | lt_cv_path_LD=$lt_save_path_LD | |
15741 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
15742 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
15743 | fi # test "$_lt_caught_CXX_error" != yes | |
15744 | ||
15745 | ac_ext=c | |
15746 | ac_cpp='$CPP $CPPFLAGS' | |
15747 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15748 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15749 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15750 | ||
15751 | ||
15752 | ||
15753 | ||
15754 | ||
15755 | ||
15756 | ||
15757 | ||
15758 | ||
15759 | ||
15760 | ||
15761 | ||
15762 | ||
15763 | ||
15764 | ||
15765 | ac_config_commands="$ac_config_commands libtool" | |
15766 | ||
15767 | ||
15768 | ||
15769 | ||
15770 | # Only expand once: | |
15771 | ||
15772 | ||
15773 | ||
15774 | ac_ext=cpp | |
15775 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15776 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15777 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15778 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15779 | ||
15780 | ||
15781 | ||
15782 | ||
15783 | ||
15784 | ||
15785 | ||
15786 | ||
15787 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
15788 | if test -n "$ac_tool_prefix"; then | |
15789 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
15790 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
15791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15792 | $as_echo_n "checking for $ac_word... " >&6; } | |
15793 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
15794 | $as_echo_n "(cached) " >&6 | |
15795 | else | |
15796 | case $PKG_CONFIG in | |
15797 | [\\/]* | ?:[\\/]*) | |
15798 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
15799 | ;; | |
15800 | *) | |
15801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15802 | for as_dir in $PATH | |
15803 | do | |
15804 | IFS=$as_save_IFS | |
15805 | test -z "$as_dir" && as_dir=. | |
15806 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15807 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15808 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
15809 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15810 | break 2 | |
15811 | fi | |
15812 | done | |
15813 | done | |
15814 | IFS=$as_save_IFS | |
15815 | ||
15816 | ;; | |
15817 | esac | |
15818 | fi | |
15819 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
15820 | if test -n "$PKG_CONFIG"; then | |
15821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
15822 | $as_echo "$PKG_CONFIG" >&6; } | |
15823 | else | |
15824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15825 | $as_echo "no" >&6; } | |
15826 | fi | |
15827 | ||
15828 | ||
15829 | fi | |
15830 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
15831 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
15832 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
15833 | set dummy pkg-config; ac_word=$2 | |
15834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15835 | $as_echo_n "checking for $ac_word... " >&6; } | |
15836 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
15837 | $as_echo_n "(cached) " >&6 | |
15838 | else | |
15839 | case $ac_pt_PKG_CONFIG in | |
15840 | [\\/]* | ?:[\\/]*) | |
15841 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
15842 | ;; | |
15843 | *) | |
15844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15845 | for as_dir in $PATH | |
15846 | do | |
15847 | IFS=$as_save_IFS | |
15848 | test -z "$as_dir" && as_dir=. | |
15849 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15850 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15851 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
15852 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15853 | break 2 | |
15854 | fi | |
15855 | done | |
15856 | done | |
15857 | IFS=$as_save_IFS | |
15858 | ||
15859 | ;; | |
15860 | esac | |
15861 | fi | |
15862 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
15863 | if test -n "$ac_pt_PKG_CONFIG"; then | |
15864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
15865 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
15866 | else | |
15867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15868 | $as_echo "no" >&6; } | |
15869 | fi | |
15870 | ||
15871 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
15872 | PKG_CONFIG="" | |
15873 | else | |
15874 | case $cross_compiling:$ac_tool_warned in | |
15875 | yes:) | |
15876 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
15877 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
15878 | ac_tool_warned=yes ;; | |
15879 | esac | |
15880 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
15881 | fi | |
15882 | else | |
15883 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
15884 | fi | |
15885 | ||
15886 | fi | |
15887 | if test -n "$PKG_CONFIG"; then | |
15888 | _pkg_min_version=0.22 | |
15889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
15890 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
15891 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
15892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15893 | $as_echo "yes" >&6; } | |
15894 | else | |
15895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15896 | $as_echo "no" >&6; } | |
15897 | PKG_CONFIG="" | |
15898 | fi | |
15899 | fi | |
15900 | ||
a243b558 JF |
15901 | # Extract the first word of "bash", so it can be a program name with args. |
15902 | set dummy bash; ac_word=$2 | |
15903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15904 | $as_echo_n "checking for $ac_word... " >&6; } | |
15905 | if ${ac_cv_path__BASH+:} false; then : | |
15906 | $as_echo_n "(cached) " >&6 | |
15907 | else | |
15908 | case $_BASH in | |
15909 | [\\/]* | ?:[\\/]*) | |
15910 | ac_cv_path__BASH="$_BASH" # Let the user override the test with a path. | |
15911 | ;; | |
15912 | *) | |
15913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15914 | for as_dir in $PATH | |
15915 | do | |
15916 | IFS=$as_save_IFS | |
15917 | test -z "$as_dir" && as_dir=. | |
15918 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15919 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15920 | ac_cv_path__BASH="$as_dir/$ac_word$ac_exec_ext" | |
15921 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15922 | break 2 | |
15923 | fi | |
15924 | done | |
15925 | done | |
15926 | IFS=$as_save_IFS | |
15927 | ||
15928 | test -z "$ac_cv_path__BASH" && ac_cv_path__BASH="as_fn_error $? "missing \"bash\"" "$LINENO" 5" | |
15929 | ;; | |
15930 | esac | |
15931 | fi | |
15932 | _BASH=$ac_cv_path__BASH | |
15933 | if test -n "$_BASH"; then | |
15934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5 | |
15935 | $as_echo "$_BASH" >&6; } | |
15936 | else | |
15937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15938 | $as_echo "no" >&6; } | |
15939 | fi | |
15940 | ||
e9c9a47c | 15941 | |
a243b558 JF |
15942 | # Extract the first word of "git", so it can be a program name with args. |
15943 | set dummy git; ac_word=$2 | |
15944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15945 | $as_echo_n "checking for $ac_word... " >&6; } | |
15946 | if ${ac_cv_path_GIT+:} false; then : | |
15947 | $as_echo_n "(cached) " >&6 | |
15948 | else | |
15949 | case $GIT in | |
15950 | [\\/]* | ?:[\\/]*) | |
15951 | ac_cv_path_GIT="$GIT" # Let the user override the test with a path. | |
15952 | ;; | |
15953 | *) | |
15954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15955 | for as_dir in $PATH | |
15956 | do | |
15957 | IFS=$as_save_IFS | |
15958 | test -z "$as_dir" && as_dir=. | |
15959 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15960 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15961 | ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext" | |
15962 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15963 | break 2 | |
15964 | fi | |
15965 | done | |
15966 | done | |
15967 | IFS=$as_save_IFS | |
e9c9a47c | 15968 | |
a243b558 JF |
15969 | ;; |
15970 | esac | |
15971 | fi | |
15972 | GIT=$ac_cv_path_GIT | |
15973 | if test -n "$GIT"; then | |
15974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5 | |
15975 | $as_echo "$GIT" >&6; } | |
15976 | else | |
15977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15978 | $as_echo "no" >&6; } | |
15979 | fi | |
e9c9a47c DWT |
15980 | |
15981 | ||
a243b558 JF |
15982 | # Extract the first word of "time", so it can be a program name with args. |
15983 | set dummy time; ac_word=$2 | |
632b71ea DWT |
15984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15985 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 15986 | if ${ac_cv_path_TIME+:} false; then : |
632b71ea DWT |
15987 | $as_echo_n "(cached) " >&6 |
15988 | else | |
a243b558 JF |
15989 | case $TIME in |
15990 | [\\/]* | ?:[\\/]*) | |
15991 | ac_cv_path_TIME="$TIME" # Let the user override the test with a path. | |
15992 | ;; | |
15993 | *) | |
15994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
632b71ea DWT |
15995 | for as_dir in $PATH |
15996 | do | |
15997 | IFS=$as_save_IFS | |
15998 | test -z "$as_dir" && as_dir=. | |
15999 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 16000 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 16001 | ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" |
632b71ea DWT |
16002 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
16003 | break 2 | |
16004 | fi | |
16005 | done | |
16006 | done | |
16007 | IFS=$as_save_IFS | |
16008 | ||
a243b558 JF |
16009 | ;; |
16010 | esac | |
632b71ea | 16011 | fi |
a243b558 JF |
16012 | TIME=$ac_cv_path_TIME |
16013 | if test -n "$TIME"; then | |
16014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 | |
16015 | $as_echo "$TIME" >&6; } | |
632b71ea DWT |
16016 | else |
16017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16018 | $as_echo "no" >&6; } | |
16019 | fi | |
16020 | ||
16021 | ||
a243b558 JF |
16022 | |
16023 | ||
16024 | ||
16025 | ||
16026 | ||
16027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5 | |
16028 | $as_echo_n "checking for bison >= 2.3... " >&6; } | |
16029 | if test -z "$BISON"; then | |
16030 | ac_path_BISON_found=false | |
16031 | # Loop through the user's path and test for each of PROGNAME-LIST | |
16032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16033 | for as_dir in $PATH | |
16034 | do | |
16035 | IFS=$as_save_IFS | |
16036 | test -z "$as_dir" && as_dir=. | |
16037 | for ac_prog in bison; do | |
16038 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16039 | ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext" | |
16040 | as_fn_executable_p "$ac_path_BISON" || continue | |
16041 | version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'` | |
16042 | if ${version:+false} :; then : | |
16043 | ||
16044 | else | |
16045 | as_awk_strverscmp=' | |
16046 | # Use only awk features that work with 7th edition Unix awk (1978). | |
16047 | # My, what an old awk you have, Mr. Solaris! | |
16048 | END { | |
16049 | while (length(v1) && length(v2)) { | |
16050 | # Set d1 to be the next thing to compare from v1, and likewise for d2. | |
16051 | # Normally this is a single character, but if v1 and v2 contain digits, | |
16052 | # compare them as integers and fractions as strverscmp does. | |
16053 | if (v1 ~ /^0-9/ && v2 ~ /^0-9/) { | |
16054 | # Split v1 and v2 into their leading digit string components d1 and d2, | |
16055 | # and advance v1 and v2 past the leading digit strings. | |
16056 | for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue | |
16057 | for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue | |
16058 | d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) | |
16059 | d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) | |
16060 | if (d1 ~ /^0/) { | |
16061 | if (d2 ~ /^0/) { | |
16062 | # Compare two fractions. | |
16063 | while (d1 ~ /^0/ && d2 ~ /^0/) { | |
16064 | d1 = substr(d1, 2); len1-- | |
16065 | d2 = substr(d2, 2); len2-- | |
16066 | } | |
16067 | if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { | |
16068 | # The two components differ in length, and the common prefix | |
16069 | # contains only leading zeros. Consider the longer to be less. | |
16070 | d1 = -len1 | |
16071 | d2 = -len2 | |
16072 | } else { | |
16073 | # Otherwise, compare as strings. | |
16074 | d1 = "x" d1 | |
16075 | d2 = "x" d2 | |
16076 | } | |
16077 | } else { | |
16078 | # A fraction is less than an integer. | |
16079 | exit 1 | |
16080 | } | |
16081 | } else { | |
16082 | if (d2 ~ /^0/) { | |
16083 | # An integer is greater than a fraction. | |
16084 | exit 2 | |
16085 | } else { | |
16086 | # Compare two integers. | |
16087 | d1 += 0 | |
16088 | d2 += 0 | |
16089 | } | |
16090 | } | |
16091 | } else { | |
16092 | # The normal case, without worrying about digits. | |
16093 | d1 = substr(v1, 1, 1); v1 = substr(v1, 2) | |
16094 | d2 = substr(v2, 1, 1); v2 = substr(v2, 2) | |
16095 | } | |
16096 | if (d1 < d2) exit 1 | |
16097 | if (d1 > d2) exit 2 | |
16098 | } | |
16099 | # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), | |
16100 | # which mishandles some comparisons of empty strings to integers. | |
16101 | if (length(v2)) exit 1 | |
16102 | if (length(v1)) exit 2 | |
16103 | } | |
16104 | ' | |
16105 | as_arg_v1=$version | |
16106 | as_arg_v2=2.3 | |
16107 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
16108 | case $? in #( | |
16109 | 1) : | |
16110 | ;; #( | |
16111 | 0) : | |
16112 | ac_cv_path_BISON=$ac_path_BISON ;; #( | |
16113 | 2) : | |
16114 | ac_cv_path_BISON=$ac_path_BISON ;; #( | |
16115 | *) : | |
16116 | ;; | |
16117 | esac | |
16118 | fi | |
16119 | ||
16120 | $ac_path_BISON_found && break 3 | |
16121 | done | |
16122 | done | |
e9c9a47c | 16123 | done |
a243b558 JF |
16124 | IFS=$as_save_IFS |
16125 | if test -z "$ac_cv_path_BISON"; then | |
16126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16127 | $as_echo "no" >&6; } | |
16128 | fi | |
16129 | else | |
16130 | ac_cv_path_BISON=$BISON | |
632b71ea | 16131 | fi |
a243b558 JF |
16132 | |
16133 | ||
16134 | if true; then : | |
16135 | ||
16136 | BISON=$ac_cv_path_BISON | |
16137 | ||
16138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 | |
16139 | $as_echo "$BISON" >&6; } | |
16140 | ||
47aaa820 | 16141 | else |
a243b558 JF |
16142 | if true; then : |
16143 | ||
16144 | as_fn_error $? "You need bison 2.3 or greater" "$LINENO" 5 | |
16145 | ||
47aaa820 | 16146 | else |
a243b558 JF |
16147 | |
16148 | BISON=: | |
16149 | ||
16150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16151 | $as_echo "no" >&6; } | |
16152 | ||
16153 | fi | |
16154 | fi | |
16155 | ||
16156 | ||
16157 | ||
16158 | ||
16159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5 | |
16160 | $as_echo_n "checking for flex >= 2.5.33... " >&6; } | |
16161 | if test -z "$FLEX"; then | |
16162 | ac_path_FLEX_found=false | |
16163 | # Loop through the user's path and test for each of PROGNAME-LIST | |
16164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47aaa820 DWT |
16165 | for as_dir in $PATH |
16166 | do | |
16167 | IFS=$as_save_IFS | |
16168 | test -z "$as_dir" && as_dir=. | |
a243b558 | 16169 | for ac_prog in flex; do |
47aaa820 | 16170 | for ac_exec_ext in '' $ac_executable_extensions; do |
a243b558 JF |
16171 | ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext" |
16172 | as_fn_executable_p "$ac_path_FLEX" || continue | |
16173 | version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'` | |
16174 | if ${version:+false} :; then : | |
9c60689e | 16175 | |
47aaa820 | 16176 | else |
a243b558 JF |
16177 | as_arg_v1=$version |
16178 | as_arg_v2=2.5.33 | |
16179 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
16180 | case $? in #( | |
16181 | 1) : | |
16182 | ;; #( | |
16183 | 0) : | |
16184 | ac_cv_path_FLEX=$ac_path_FLEX ;; #( | |
16185 | 2) : | |
16186 | ac_cv_path_FLEX=$ac_path_FLEX ;; #( | |
16187 | *) : | |
16188 | ;; | |
16189 | esac | |
16190 | fi | |
16191 | ||
16192 | $ac_path_FLEX_found && break 3 | |
16193 | done | |
16194 | done | |
16195 | done | |
16196 | IFS=$as_save_IFS | |
16197 | if test -z "$ac_cv_path_FLEX"; then | |
16198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
47aaa820 | 16199 | $as_echo "no" >&6; } |
a243b558 JF |
16200 | fi |
16201 | else | |
16202 | ac_cv_path_FLEX=$FLEX | |
9c60689e DWT |
16203 | fi |
16204 | ||
16205 | ||
a243b558 | 16206 | if true; then : |
e9c9a47c | 16207 | |
a243b558 | 16208 | FLEX=$ac_cv_path_FLEX |
e9c9a47c | 16209 | |
a243b558 JF |
16210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
16211 | $as_echo "$FLEX" >&6; } | |
9c60689e | 16212 | |
632b71ea | 16213 | else |
a243b558 | 16214 | if true; then : |
e9c9a47c | 16215 | |
a243b558 | 16216 | as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5 |
e9c9a47c | 16217 | |
e9c9a47c | 16218 | else |
a243b558 JF |
16219 | |
16220 | FLEX=: | |
16221 | ||
16222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16223 | $as_echo "no" >&6; } | |
9c60689e | 16224 | |
632b71ea | 16225 | fi |
a243b558 JF |
16226 | fi |
16227 | ||
16228 | ||
16229 | ||
16230 | ||
16231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5 | |
16232 | $as_echo_n "checking for gperf >= 3.0.3... " >&6; } | |
16233 | if test -z "$GPERF"; then | |
16234 | ac_path_GPERF_found=false | |
16235 | # Loop through the user's path and test for each of PROGNAME-LIST | |
16236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16237 | for as_dir in $PATH | |
16238 | do | |
16239 | IFS=$as_save_IFS | |
16240 | test -z "$as_dir" && as_dir=. | |
16241 | for ac_prog in gperf; do | |
16242 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16243 | ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext" | |
16244 | as_fn_executable_p "$ac_path_GPERF" || continue | |
16245 | version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'` | |
16246 | if ${version:+false} :; then : | |
16247 | ||
e9c9a47c | 16248 | else |
a243b558 JF |
16249 | as_arg_v1=$version |
16250 | as_arg_v2=3.0.3 | |
16251 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
16252 | case $? in #( | |
16253 | 1) : | |
16254 | ;; #( | |
16255 | 0) : | |
16256 | ac_cv_path_GPERF=$ac_path_GPERF ;; #( | |
16257 | 2) : | |
16258 | ac_cv_path_GPERF=$ac_path_GPERF ;; #( | |
16259 | *) : | |
16260 | ;; | |
16261 | esac | |
632b71ea | 16262 | fi |
a243b558 JF |
16263 | |
16264 | $ac_path_GPERF_found && break 3 | |
16265 | done | |
16266 | done | |
16267 | done | |
16268 | IFS=$as_save_IFS | |
16269 | if test -z "$ac_cv_path_GPERF"; then | |
16270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16271 | $as_echo "no" >&6; } | |
16272 | fi | |
47aaa820 | 16273 | else |
a243b558 JF |
16274 | ac_cv_path_GPERF=$GPERF |
16275 | fi | |
9c60689e DWT |
16276 | |
16277 | ||
a243b558 | 16278 | if true; then : |
9c60689e | 16279 | |
a243b558 | 16280 | GPERF=$ac_cv_path_GPERF |
9c60689e | 16281 | |
a243b558 JF |
16282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5 |
16283 | $as_echo "$GPERF" >&6; } | |
9c60689e | 16284 | |
47aaa820 | 16285 | else |
a243b558 | 16286 | if true; then : |
9c60689e | 16287 | |
a243b558 JF |
16288 | as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5 |
16289 | ||
16290 | else | |
16291 | ||
16292 | GPERF=: | |
16293 | ||
16294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16295 | $as_echo "no" >&6; } | |
9c60689e | 16296 | |
47aaa820 | 16297 | fi |
47aaa820 | 16298 | fi |
a243b558 JF |
16299 | |
16300 | ||
16301 | ||
16302 | ||
16303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5 | |
16304 | $as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; } | |
16305 | if test -z "$GNUTAR"; then | |
16306 | ac_path_GNUTAR_found=false | |
16307 | # Loop through the user's path and test for each of PROGNAME-LIST | |
16308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16309 | for as_dir in $PATH | |
16310 | do | |
16311 | IFS=$as_save_IFS | |
16312 | test -z "$as_dir" && as_dir=. | |
16313 | for ac_prog in tar gtar gnutar; do | |
16314 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16315 | ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext" | |
16316 | as_fn_executable_p "$ac_path_GNUTAR" || continue | |
16317 | version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'` | |
16318 | if ${version:+false} :; then : | |
16319 | ||
16320 | else | |
16321 | as_arg_v1=$version | |
16322 | as_arg_v2=1.19 | |
16323 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
16324 | case $? in #( | |
16325 | 1) : | |
16326 | ;; #( | |
16327 | 0) : | |
16328 | ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #( | |
16329 | 2) : | |
16330 | ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #( | |
16331 | *) : | |
16332 | ;; | |
16333 | esac | |
790e5246 | 16334 | fi |
a243b558 JF |
16335 | |
16336 | $ac_path_GNUTAR_found && break 3 | |
16337 | done | |
16338 | done | |
16339 | done | |
16340 | IFS=$as_save_IFS | |
16341 | if test -z "$ac_cv_path_GNUTAR"; then | |
16342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16343 | $as_echo "no" >&6; } | |
632b71ea | 16344 | fi |
632b71ea | 16345 | else |
a243b558 | 16346 | ac_cv_path_GNUTAR=$GNUTAR |
632b71ea | 16347 | fi |
66170b30 | 16348 | |
66170b30 | 16349 | |
a243b558 | 16350 | if true; then : |
66170b30 | 16351 | |
a243b558 | 16352 | GNUTAR=$ac_cv_path_GNUTAR |
66170b30 | 16353 | |
a243b558 JF |
16354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5 |
16355 | $as_echo "$GNUTAR" >&6; } | |
66170b30 | 16356 | |
a243b558 JF |
16357 | else |
16358 | if true; then : | |
66170b30 | 16359 | |
a243b558 | 16360 | as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5 |
66170b30 | 16361 | |
66170b30 | 16362 | else |
66170b30 | 16363 | |
a243b558 | 16364 | GNUTAR=: |
66170b30 | 16365 | |
a243b558 JF |
16366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16367 | $as_echo "no" >&6; } | |
66170b30 | 16368 | |
a243b558 JF |
16369 | fi |
16370 | fi | |
66170b30 JF |
16371 | |
16372 | ||
9228a43a JF |
16373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking bison for %code{}" >&5 |
16374 | $as_echo_n "checking bison for %code{}... " >&6; } | |
16375 | echo '%code{}%%_:' >conftest.y | |
16376 | if $BISON conftest.y -o/dev/null 2>/dev/null; then | |
16377 | ||
16378 | for element in Bison24; do | |
16379 | haveit= | |
16380 | for x in $CY_FILTERS; do | |
16381 | ||
16382 | acl_save_prefix="$prefix" | |
16383 | prefix="$acl_final_prefix" | |
16384 | acl_save_exec_prefix="$exec_prefix" | |
16385 | exec_prefix="$acl_final_exec_prefix" | |
16386 | eval x=\"$x\" | |
16387 | exec_prefix="$acl_save_exec_prefix" | |
16388 | prefix="$acl_save_prefix" | |
16389 | ||
16390 | if test "X$x" = "X$element"; then | |
16391 | haveit=yes | |
16392 | break | |
16393 | fi | |
16394 | done | |
16395 | if test -z "$haveit"; then | |
16396 | CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element" | |
16397 | fi | |
16398 | done | |
16399 | ||
16400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16401 | $as_echo "yes" >&6; } | |
16402 | else | |
16403 | ||
16404 | for element in Bison23; do | |
16405 | haveit= | |
16406 | for x in $CY_FILTERS; do | |
16407 | ||
16408 | acl_save_prefix="$prefix" | |
16409 | prefix="$acl_final_prefix" | |
16410 | acl_save_exec_prefix="$exec_prefix" | |
16411 | exec_prefix="$acl_final_exec_prefix" | |
16412 | eval x=\"$x\" | |
16413 | exec_prefix="$acl_save_exec_prefix" | |
16414 | prefix="$acl_save_prefix" | |
16415 | ||
16416 | if test "X$x" = "X$element"; then | |
16417 | haveit=yes | |
16418 | break | |
16419 | fi | |
16420 | done | |
16421 | if test -z "$haveit"; then | |
16422 | CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element" | |
16423 | fi | |
16424 | done | |
16425 | ||
16426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16427 | $as_echo "no" >&6; } | |
16428 | fi | |
16429 | ||
16430 | rm -f conftest.y | |
16431 | ||
16432 | ||
66170b30 JF |
16433 | |
16434 | ||
16435 | ||
16436 | ||
16437 | ||
16438 | ||
16439 | ||
16440 | ||
16441 | if ${CFLAGS+:} false; then : | |
16442 | case " $CFLAGS " in | |
16443 | *" "*) | |
16444 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5 | |
16445 | (: CFLAGS already contains ) 2>&5 | |
16446 | ac_status=$? | |
16447 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16448 | test $ac_status = 0; } | |
16449 | ;; | |
16450 | *) | |
16451 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5 | |
16452 | (: CFLAGS="$CFLAGS ") 2>&5 | |
16453 | ac_status=$? | |
16454 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16455 | test $ac_status = 0; } | |
16456 | CFLAGS="$CFLAGS " | |
16457 | ;; | |
16458 | esac | |
16459 | else | |
16460 | CFLAGS="" | |
16461 | fi | |
16462 | ||
e9c9a47c DWT |
16463 | ac_ext=c |
16464 | ac_cpp='$CPP $CPPFLAGS' | |
16465 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16466 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16467 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
632b71ea | 16468 | |
66170b30 JF |
16469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5 |
16470 | $as_echo_n "checking CFLAGS for maximum warnings... " >&6; } | |
16471 | if ${ac_cv_cflags_warn_all+:} false; then : | |
16472 | $as_echo_n "(cached) " >&6 | |
16473 | else | |
16474 | ac_cv_cflags_warn_all="no, unknown" | |
16475 | ac_save_CFLAGS="$CFLAGS" | |
16476 | 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" # | |
16477 | do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | |
16478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16479 | /* end confdefs.h. */ | |
16480 | ||
16481 | int | |
16482 | main () | |
16483 | { | |
16484 | ||
16485 | ; | |
16486 | return 0; | |
16487 | } | |
16488 | _ACEOF | |
16489 | if ac_fn_c_try_compile "$LINENO"; then : | |
16490 | ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | |
16491 | fi | |
16492 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16493 | done | |
16494 | CFLAGS="$ac_save_CFLAGS" | |
16495 | ||
16496 | fi | |
16497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5 | |
16498 | $as_echo "$ac_cv_cflags_warn_all" >&6; } | |
16499 | ||
16500 | case ".$ac_cv_cflags_warn_all" in | |
16501 | .ok|.ok,*) ;; | |
16502 | .|.no|.no,*) ;; | |
16503 | *) if ${CFLAGS+:} false; then : | |
16504 | case " $CFLAGS " in | |
16505 | *" $ac_cv_cflags_warn_all "*) | |
16506 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5 | |
16507 | (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5 | |
16508 | ac_status=$? | |
16509 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16510 | test $ac_status = 0; } | |
16511 | ;; | |
16512 | *) | |
16513 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5 | |
16514 | (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5 | |
16515 | ac_status=$? | |
16516 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16517 | test $ac_status = 0; } | |
16518 | CFLAGS="$CFLAGS $ac_cv_cflags_warn_all" | |
16519 | ;; | |
16520 | esac | |
16521 | else | |
16522 | CFLAGS="$ac_cv_cflags_warn_all" | |
16523 | fi | |
16524 | ;; | |
16525 | esac | |
16526 | ||
b816329d JF |
16527 | ac_ext=cpp |
16528 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16529 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16530 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16531 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16532 | ||
9c60689e | 16533 | |
66170b30 JF |
16534 | ac_ext=cpp |
16535 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16536 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16537 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16538 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
1504c9b8 | 16539 | |
66170b30 JF |
16540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5 |
16541 | $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; } | |
16542 | if ${ac_cv_cxxflags_warn_all+:} false; then : | |
16543 | $as_echo_n "(cached) " >&6 | |
16544 | else | |
16545 | ac_cv_cxxflags_warn_all="no, unknown" | |
16546 | ac_save_CXXFLAGS="$CXXFLAGS" | |
16547 | 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" # | |
16548 | do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | |
16549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16550 | /* end confdefs.h. */ | |
1504c9b8 | 16551 | |
66170b30 JF |
16552 | int |
16553 | main () | |
16554 | { | |
1504c9b8 | 16555 | |
66170b30 JF |
16556 | ; |
16557 | return 0; | |
16558 | } | |
16559 | _ACEOF | |
16560 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
16561 | ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | |
16562 | fi | |
16563 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16564 | done | |
16565 | CXXFLAGS="$ac_save_CXXFLAGS" | |
1504c9b8 | 16566 | |
66170b30 JF |
16567 | fi |
16568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5 | |
16569 | $as_echo "$ac_cv_cxxflags_warn_all" >&6; } | |
16570 | ||
16571 | case ".$ac_cv_cxxflags_warn_all" in | |
16572 | .ok|.ok,*) ;; | |
16573 | .|.no|.no,*) ;; | |
16574 | *) if ${CXXFLAGS+:} false; then : | |
16575 | case " $CXXFLAGS " in | |
16576 | *" $ac_cv_cxxflags_warn_all "*) | |
16577 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5 | |
16578 | (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5 | |
16579 | ac_status=$? | |
16580 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16581 | test $ac_status = 0; } | |
16582 | ;; | |
16583 | *) | |
16584 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5 | |
16585 | (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5 | |
16586 | ac_status=$? | |
16587 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16588 | test $ac_status = 0; } | |
16589 | CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all" | |
16590 | ;; | |
16591 | esac | |
16592 | else | |
16593 | CXXFLAGS="$ac_cv_cxxflags_warn_all" | |
16594 | fi | |
16595 | ;; | |
16596 | esac | |
16597 | ||
16598 | ac_ext=cpp | |
16599 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16600 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16601 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16602 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16603 | ||
16604 | ||
16605 | ||
16606 | ||
66170b30 | 16607 | |
66170b30 | 16608 | |
c10a2228 JF |
16609 | ac_ext=c |
16610 | ac_cpp='$CPP $CPPFLAGS' | |
16611 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16612 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16613 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16614 | ||
16615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5 | |
16616 | $as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; } | |
16617 | ||
16618 | cy_save=$CFLAGS | |
16619 | ||
16620 | for element in -Wno-deprecated-declarations; do | |
16621 | haveit= | |
16622 | for x in $CFLAGS; do | |
16623 | ||
16624 | acl_save_prefix="$prefix" | |
16625 | prefix="$acl_final_prefix" | |
16626 | acl_save_exec_prefix="$exec_prefix" | |
16627 | exec_prefix="$acl_final_exec_prefix" | |
16628 | eval x=\"$x\" | |
16629 | exec_prefix="$acl_save_exec_prefix" | |
16630 | prefix="$acl_save_prefix" | |
16631 | ||
16632 | if test "X$x" = "X$element"; then | |
16633 | haveit=yes | |
16634 | break | |
16635 | fi | |
16636 | done | |
16637 | if test -z "$haveit"; then | |
16638 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
16639 | fi | |
16640 | done | |
16641 | ||
16642 | ||
16643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16644 | /* end confdefs.h. */ | |
16645 | ||
16646 | _ACEOF | |
16647 | if ac_fn_c_try_compile "$LINENO"; then : | |
16648 | cy_good=1 | |
16649 | else | |
16650 | cy_good=0 | |
16651 | fi | |
16652 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16653 | ||
16654 | CFLAGS=$cy_save | |
16655 | if test "x$cy_good" = x1; then : | |
16656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16657 | $as_echo "yes" >&6; } | |
16658 | ||
16659 | for element in -Wno-deprecated-declarations; do | |
16660 | haveit= | |
16661 | for x in $CFLAGS; do | |
16662 | ||
16663 | acl_save_prefix="$prefix" | |
16664 | prefix="$acl_final_prefix" | |
16665 | acl_save_exec_prefix="$exec_prefix" | |
16666 | exec_prefix="$acl_final_exec_prefix" | |
16667 | eval x=\"$x\" | |
16668 | exec_prefix="$acl_save_exec_prefix" | |
16669 | prefix="$acl_save_prefix" | |
16670 | ||
16671 | if test "X$x" = "X$element"; then | |
16672 | haveit=yes | |
16673 | break | |
16674 | fi | |
16675 | done | |
16676 | if test -z "$haveit"; then | |
16677 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
16678 | fi | |
16679 | done | |
16680 | ||
16681 | ||
16682 | else | |
16683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16684 | $as_echo "no" >&6; } | |
16685 | fi | |
16686 | ||
16687 | ac_ext=cpp | |
16688 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16689 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16690 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16691 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16692 | ||
16693 | ||
16694 | ||
16695 | ac_ext=cpp | |
16696 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16697 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16698 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16699 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16700 | ||
16701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5 | |
16702 | $as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; } | |
16703 | ||
16704 | cy_save=$CXXFLAGS | |
16705 | ||
16706 | for element in -Wno-deprecated-declarations; do | |
16707 | haveit= | |
16708 | for x in $CXXFLAGS; do | |
16709 | ||
16710 | acl_save_prefix="$prefix" | |
16711 | prefix="$acl_final_prefix" | |
16712 | acl_save_exec_prefix="$exec_prefix" | |
16713 | exec_prefix="$acl_final_exec_prefix" | |
16714 | eval x=\"$x\" | |
16715 | exec_prefix="$acl_save_exec_prefix" | |
16716 | prefix="$acl_save_prefix" | |
16717 | ||
16718 | if test "X$x" = "X$element"; then | |
16719 | haveit=yes | |
16720 | break | |
16721 | fi | |
16722 | done | |
16723 | if test -z "$haveit"; then | |
16724 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16725 | fi | |
16726 | done | |
16727 | ||
16728 | ||
16729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16730 | /* end confdefs.h. */ | |
16731 | ||
16732 | _ACEOF | |
16733 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
16734 | cy_good=1 | |
16735 | else | |
16736 | cy_good=0 | |
16737 | fi | |
16738 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16739 | ||
16740 | CXXFLAGS=$cy_save | |
16741 | if test "x$cy_good" = x1; then : | |
16742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16743 | $as_echo "yes" >&6; } | |
16744 | ||
16745 | for element in -Wno-deprecated-declarations; do | |
16746 | haveit= | |
16747 | for x in $CXXFLAGS; do | |
16748 | ||
16749 | acl_save_prefix="$prefix" | |
16750 | prefix="$acl_final_prefix" | |
16751 | acl_save_exec_prefix="$exec_prefix" | |
16752 | exec_prefix="$acl_final_exec_prefix" | |
16753 | eval x=\"$x\" | |
16754 | exec_prefix="$acl_save_exec_prefix" | |
16755 | prefix="$acl_save_prefix" | |
16756 | ||
16757 | if test "X$x" = "X$element"; then | |
16758 | haveit=yes | |
16759 | break | |
16760 | fi | |
16761 | done | |
16762 | if test -z "$haveit"; then | |
16763 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16764 | fi | |
16765 | done | |
16766 | ||
16767 | ||
16768 | else | |
16769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16770 | $as_echo "no" >&6; } | |
16771 | fi | |
16772 | ||
16773 | ac_ext=cpp | |
16774 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16775 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16776 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16777 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16778 | ||
16779 | ||
16780 | ||
16781 | ac_ext=mm | |
16782 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
16783 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16784 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16785 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
16786 | ||
16787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5 | |
16788 | $as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; } | |
16789 | ||
16790 | cy_save=$OBJCXXFLAGS | |
16791 | ||
16792 | for element in -Wno-deprecated-declarations; do | |
16793 | haveit= | |
16794 | for x in $OBJCXXFLAGS; do | |
16795 | ||
16796 | acl_save_prefix="$prefix" | |
16797 | prefix="$acl_final_prefix" | |
16798 | acl_save_exec_prefix="$exec_prefix" | |
16799 | exec_prefix="$acl_final_exec_prefix" | |
16800 | eval x=\"$x\" | |
16801 | exec_prefix="$acl_save_exec_prefix" | |
16802 | prefix="$acl_save_prefix" | |
16803 | ||
16804 | if test "X$x" = "X$element"; then | |
16805 | haveit=yes | |
16806 | break | |
16807 | fi | |
16808 | done | |
16809 | if test -z "$haveit"; then | |
16810 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
16811 | fi | |
16812 | done | |
16813 | ||
16814 | ||
16815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16816 | /* end confdefs.h. */ | |
16817 | ||
16818 | _ACEOF | |
16819 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
16820 | cy_good=1 | |
16821 | else | |
16822 | cy_good=0 | |
16823 | fi | |
16824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16825 | ||
16826 | OBJCXXFLAGS=$cy_save | |
16827 | if test "x$cy_good" = x1; then : | |
16828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16829 | $as_echo "yes" >&6; } | |
16830 | ||
16831 | for element in -Wno-deprecated-declarations; do | |
16832 | haveit= | |
16833 | for x in $OBJCXXFLAGS; do | |
16834 | ||
16835 | acl_save_prefix="$prefix" | |
16836 | prefix="$acl_final_prefix" | |
16837 | acl_save_exec_prefix="$exec_prefix" | |
16838 | exec_prefix="$acl_final_exec_prefix" | |
16839 | eval x=\"$x\" | |
16840 | exec_prefix="$acl_save_exec_prefix" | |
16841 | prefix="$acl_save_prefix" | |
16842 | ||
16843 | if test "X$x" = "X$element"; then | |
16844 | haveit=yes | |
16845 | break | |
16846 | fi | |
16847 | done | |
16848 | if test -z "$haveit"; then | |
16849 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
16850 | fi | |
16851 | done | |
16852 | ||
16853 | ||
16854 | else | |
16855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16856 | $as_echo "no" >&6; } | |
16857 | fi | |
16858 | ||
16859 | ac_ext=cpp | |
16860 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16861 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16862 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16863 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16864 | ||
16865 | ||
16866 | ||
16867 | ||
16868 | ||
16869 | ||
16870 | ac_ext=c | |
16871 | ac_cpp='$CPP $CPPFLAGS' | |
16872 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16873 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16874 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16875 | ||
16876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5 | |
16877 | $as_echo_n "checking for cc -Wno-dangling-else... " >&6; } | |
16878 | ||
16879 | cy_save=$CFLAGS | |
16880 | ||
16881 | for element in -Wno-dangling-else; do | |
16882 | haveit= | |
16883 | for x in $CFLAGS; do | |
16884 | ||
16885 | acl_save_prefix="$prefix" | |
16886 | prefix="$acl_final_prefix" | |
16887 | acl_save_exec_prefix="$exec_prefix" | |
16888 | exec_prefix="$acl_final_exec_prefix" | |
16889 | eval x=\"$x\" | |
16890 | exec_prefix="$acl_save_exec_prefix" | |
16891 | prefix="$acl_save_prefix" | |
16892 | ||
16893 | if test "X$x" = "X$element"; then | |
16894 | haveit=yes | |
16895 | break | |
16896 | fi | |
16897 | done | |
16898 | if test -z "$haveit"; then | |
16899 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
16900 | fi | |
16901 | done | |
16902 | ||
16903 | ||
16904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16905 | /* end confdefs.h. */ | |
16906 | ||
16907 | _ACEOF | |
16908 | if ac_fn_c_try_compile "$LINENO"; then : | |
16909 | cy_good=1 | |
16910 | else | |
16911 | cy_good=0 | |
16912 | fi | |
16913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16914 | ||
16915 | CFLAGS=$cy_save | |
16916 | if test "x$cy_good" = x1; then : | |
16917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16918 | $as_echo "yes" >&6; } | |
16919 | ||
16920 | for element in -Wno-dangling-else; do | |
16921 | haveit= | |
16922 | for x in $CFLAGS; do | |
16923 | ||
16924 | acl_save_prefix="$prefix" | |
16925 | prefix="$acl_final_prefix" | |
16926 | acl_save_exec_prefix="$exec_prefix" | |
16927 | exec_prefix="$acl_final_exec_prefix" | |
16928 | eval x=\"$x\" | |
16929 | exec_prefix="$acl_save_exec_prefix" | |
16930 | prefix="$acl_save_prefix" | |
16931 | ||
16932 | if test "X$x" = "X$element"; then | |
16933 | haveit=yes | |
16934 | break | |
16935 | fi | |
16936 | done | |
16937 | if test -z "$haveit"; then | |
16938 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
16939 | fi | |
16940 | done | |
16941 | ||
16942 | ||
16943 | else | |
16944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16945 | $as_echo "no" >&6; } | |
16946 | fi | |
16947 | ||
16948 | ac_ext=cpp | |
16949 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16950 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16951 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16952 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16953 | ||
16954 | ||
16955 | ||
16956 | ac_ext=cpp | |
16957 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16958 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16959 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16960 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16961 | ||
16962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5 | |
16963 | $as_echo_n "checking for c++ -Wno-dangling-else... " >&6; } | |
16964 | ||
16965 | cy_save=$CXXFLAGS | |
16966 | ||
16967 | for element in -Wno-dangling-else; do | |
16968 | haveit= | |
16969 | for x in $CXXFLAGS; do | |
16970 | ||
16971 | acl_save_prefix="$prefix" | |
16972 | prefix="$acl_final_prefix" | |
16973 | acl_save_exec_prefix="$exec_prefix" | |
16974 | exec_prefix="$acl_final_exec_prefix" | |
16975 | eval x=\"$x\" | |
16976 | exec_prefix="$acl_save_exec_prefix" | |
16977 | prefix="$acl_save_prefix" | |
16978 | ||
16979 | if test "X$x" = "X$element"; then | |
16980 | haveit=yes | |
16981 | break | |
16982 | fi | |
16983 | done | |
16984 | if test -z "$haveit"; then | |
16985 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16986 | fi | |
16987 | done | |
16988 | ||
16989 | ||
16990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16991 | /* end confdefs.h. */ | |
16992 | ||
16993 | _ACEOF | |
16994 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
16995 | cy_good=1 | |
16996 | else | |
16997 | cy_good=0 | |
16998 | fi | |
16999 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17000 | ||
17001 | CXXFLAGS=$cy_save | |
17002 | if test "x$cy_good" = x1; then : | |
17003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17004 | $as_echo "yes" >&6; } | |
17005 | ||
17006 | for element in -Wno-dangling-else; do | |
17007 | haveit= | |
17008 | for x in $CXXFLAGS; do | |
17009 | ||
17010 | acl_save_prefix="$prefix" | |
17011 | prefix="$acl_final_prefix" | |
17012 | acl_save_exec_prefix="$exec_prefix" | |
17013 | exec_prefix="$acl_final_exec_prefix" | |
17014 | eval x=\"$x\" | |
17015 | exec_prefix="$acl_save_exec_prefix" | |
17016 | prefix="$acl_save_prefix" | |
17017 | ||
17018 | if test "X$x" = "X$element"; then | |
17019 | haveit=yes | |
17020 | break | |
17021 | fi | |
17022 | done | |
17023 | if test -z "$haveit"; then | |
17024 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17025 | fi | |
17026 | done | |
17027 | ||
17028 | ||
17029 | else | |
17030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17031 | $as_echo "no" >&6; } | |
17032 | fi | |
17033 | ||
17034 | ac_ext=cpp | |
17035 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17036 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17037 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17038 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17039 | ||
17040 | ||
17041 | ||
17042 | ac_ext=mm | |
17043 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
17044 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17045 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17046 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
17047 | ||
17048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5 | |
17049 | $as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; } | |
17050 | ||
17051 | cy_save=$OBJCXXFLAGS | |
17052 | ||
17053 | for element in -Wno-dangling-else; do | |
17054 | haveit= | |
17055 | for x in $OBJCXXFLAGS; do | |
17056 | ||
17057 | acl_save_prefix="$prefix" | |
17058 | prefix="$acl_final_prefix" | |
17059 | acl_save_exec_prefix="$exec_prefix" | |
17060 | exec_prefix="$acl_final_exec_prefix" | |
17061 | eval x=\"$x\" | |
17062 | exec_prefix="$acl_save_exec_prefix" | |
17063 | prefix="$acl_save_prefix" | |
17064 | ||
17065 | if test "X$x" = "X$element"; then | |
17066 | haveit=yes | |
17067 | break | |
17068 | fi | |
17069 | done | |
17070 | if test -z "$haveit"; then | |
17071 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
17072 | fi | |
17073 | done | |
17074 | ||
17075 | ||
17076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17077 | /* end confdefs.h. */ | |
17078 | ||
17079 | _ACEOF | |
17080 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
17081 | cy_good=1 | |
17082 | else | |
17083 | cy_good=0 | |
17084 | fi | |
17085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17086 | ||
17087 | OBJCXXFLAGS=$cy_save | |
17088 | if test "x$cy_good" = x1; then : | |
17089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17090 | $as_echo "yes" >&6; } | |
17091 | ||
17092 | for element in -Wno-dangling-else; do | |
17093 | haveit= | |
17094 | for x in $OBJCXXFLAGS; do | |
17095 | ||
17096 | acl_save_prefix="$prefix" | |
17097 | prefix="$acl_final_prefix" | |
17098 | acl_save_exec_prefix="$exec_prefix" | |
17099 | exec_prefix="$acl_final_exec_prefix" | |
17100 | eval x=\"$x\" | |
17101 | exec_prefix="$acl_save_exec_prefix" | |
17102 | prefix="$acl_save_prefix" | |
17103 | ||
17104 | if test "X$x" = "X$element"; then | |
17105 | haveit=yes | |
17106 | break | |
17107 | fi | |
17108 | done | |
17109 | if test -z "$haveit"; then | |
17110 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
17111 | fi | |
17112 | done | |
17113 | ||
17114 | ||
17115 | else | |
17116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17117 | $as_echo "no" >&6; } | |
17118 | fi | |
17119 | ||
17120 | ac_ext=cpp | |
17121 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17122 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17123 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17124 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17125 | ||
17126 | ||
17127 | ||
17128 | ||
17129 | ||
17130 | ac_ext=c | |
17131 | ac_cpp='$CPP $CPPFLAGS' | |
17132 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17133 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17134 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17135 | ||
17136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5 | |
17137 | $as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; } | |
17138 | ||
17139 | cy_save=$CFLAGS | |
17140 | ||
17141 | for element in -Wno-overloaded-virtual; do | |
17142 | haveit= | |
17143 | for x in $CFLAGS; do | |
17144 | ||
17145 | acl_save_prefix="$prefix" | |
17146 | prefix="$acl_final_prefix" | |
17147 | acl_save_exec_prefix="$exec_prefix" | |
17148 | exec_prefix="$acl_final_exec_prefix" | |
17149 | eval x=\"$x\" | |
17150 | exec_prefix="$acl_save_exec_prefix" | |
17151 | prefix="$acl_save_prefix" | |
17152 | ||
17153 | if test "X$x" = "X$element"; then | |
17154 | haveit=yes | |
17155 | break | |
17156 | fi | |
17157 | done | |
17158 | if test -z "$haveit"; then | |
17159 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
17160 | fi | |
17161 | done | |
17162 | ||
17163 | ||
17164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17165 | /* end confdefs.h. */ | |
17166 | ||
17167 | _ACEOF | |
17168 | if ac_fn_c_try_compile "$LINENO"; then : | |
17169 | cy_good=1 | |
17170 | else | |
17171 | cy_good=0 | |
17172 | fi | |
17173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17174 | ||
17175 | CFLAGS=$cy_save | |
17176 | if test "x$cy_good" = x1; then : | |
17177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17178 | $as_echo "yes" >&6; } | |
17179 | ||
17180 | for element in -Wno-overloaded-virtual; do | |
17181 | haveit= | |
17182 | for x in $CFLAGS; do | |
17183 | ||
17184 | acl_save_prefix="$prefix" | |
17185 | prefix="$acl_final_prefix" | |
17186 | acl_save_exec_prefix="$exec_prefix" | |
17187 | exec_prefix="$acl_final_exec_prefix" | |
17188 | eval x=\"$x\" | |
17189 | exec_prefix="$acl_save_exec_prefix" | |
17190 | prefix="$acl_save_prefix" | |
17191 | ||
17192 | if test "X$x" = "X$element"; then | |
17193 | haveit=yes | |
17194 | break | |
17195 | fi | |
17196 | done | |
17197 | if test -z "$haveit"; then | |
17198 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
17199 | fi | |
17200 | done | |
17201 | ||
17202 | ||
17203 | else | |
17204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17205 | $as_echo "no" >&6; } | |
17206 | fi | |
17207 | ||
17208 | ac_ext=cpp | |
17209 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17210 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17211 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17212 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17213 | ||
17214 | ||
17215 | ||
17216 | ac_ext=cpp | |
17217 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17218 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17219 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17220 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17221 | ||
17222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5 | |
17223 | $as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; } | |
17224 | ||
17225 | cy_save=$CXXFLAGS | |
17226 | ||
17227 | for element in -Wno-overloaded-virtual; do | |
17228 | haveit= | |
17229 | for x in $CXXFLAGS; do | |
17230 | ||
17231 | acl_save_prefix="$prefix" | |
17232 | prefix="$acl_final_prefix" | |
17233 | acl_save_exec_prefix="$exec_prefix" | |
17234 | exec_prefix="$acl_final_exec_prefix" | |
17235 | eval x=\"$x\" | |
17236 | exec_prefix="$acl_save_exec_prefix" | |
17237 | prefix="$acl_save_prefix" | |
17238 | ||
17239 | if test "X$x" = "X$element"; then | |
17240 | haveit=yes | |
17241 | break | |
17242 | fi | |
17243 | done | |
17244 | if test -z "$haveit"; then | |
17245 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17246 | fi | |
17247 | done | |
17248 | ||
17249 | ||
17250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17251 | /* end confdefs.h. */ | |
17252 | ||
17253 | _ACEOF | |
17254 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
17255 | cy_good=1 | |
17256 | else | |
17257 | cy_good=0 | |
17258 | fi | |
17259 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17260 | ||
17261 | CXXFLAGS=$cy_save | |
17262 | if test "x$cy_good" = x1; then : | |
17263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17264 | $as_echo "yes" >&6; } | |
17265 | ||
17266 | for element in -Wno-overloaded-virtual; do | |
17267 | haveit= | |
17268 | for x in $CXXFLAGS; do | |
17269 | ||
17270 | acl_save_prefix="$prefix" | |
17271 | prefix="$acl_final_prefix" | |
17272 | acl_save_exec_prefix="$exec_prefix" | |
17273 | exec_prefix="$acl_final_exec_prefix" | |
17274 | eval x=\"$x\" | |
17275 | exec_prefix="$acl_save_exec_prefix" | |
17276 | prefix="$acl_save_prefix" | |
17277 | ||
17278 | if test "X$x" = "X$element"; then | |
17279 | haveit=yes | |
17280 | break | |
17281 | fi | |
17282 | done | |
17283 | if test -z "$haveit"; then | |
17284 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17285 | fi | |
17286 | done | |
17287 | ||
17288 | ||
17289 | else | |
17290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17291 | $as_echo "no" >&6; } | |
17292 | fi | |
17293 | ||
17294 | ac_ext=cpp | |
17295 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17296 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17297 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17298 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17299 | ||
17300 | ||
17301 | ||
17302 | ac_ext=mm | |
17303 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
17304 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17305 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17306 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
17307 | ||
17308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5 | |
17309 | $as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; } | |
17310 | ||
17311 | cy_save=$OBJCXXFLAGS | |
17312 | ||
17313 | for element in -Wno-overloaded-virtual; do | |
17314 | haveit= | |
17315 | for x in $OBJCXXFLAGS; do | |
17316 | ||
17317 | acl_save_prefix="$prefix" | |
17318 | prefix="$acl_final_prefix" | |
17319 | acl_save_exec_prefix="$exec_prefix" | |
17320 | exec_prefix="$acl_final_exec_prefix" | |
17321 | eval x=\"$x\" | |
17322 | exec_prefix="$acl_save_exec_prefix" | |
17323 | prefix="$acl_save_prefix" | |
17324 | ||
17325 | if test "X$x" = "X$element"; then | |
17326 | haveit=yes | |
17327 | break | |
17328 | fi | |
17329 | done | |
17330 | if test -z "$haveit"; then | |
17331 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
17332 | fi | |
17333 | done | |
17334 | ||
17335 | ||
17336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17337 | /* end confdefs.h. */ | |
17338 | ||
17339 | _ACEOF | |
17340 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
17341 | cy_good=1 | |
17342 | else | |
17343 | cy_good=0 | |
17344 | fi | |
17345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17346 | ||
17347 | OBJCXXFLAGS=$cy_save | |
17348 | if test "x$cy_good" = x1; then : | |
17349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17350 | $as_echo "yes" >&6; } | |
17351 | ||
17352 | for element in -Wno-overloaded-virtual; do | |
17353 | haveit= | |
17354 | for x in $OBJCXXFLAGS; do | |
17355 | ||
17356 | acl_save_prefix="$prefix" | |
17357 | prefix="$acl_final_prefix" | |
17358 | acl_save_exec_prefix="$exec_prefix" | |
17359 | exec_prefix="$acl_final_exec_prefix" | |
17360 | eval x=\"$x\" | |
17361 | exec_prefix="$acl_save_exec_prefix" | |
17362 | prefix="$acl_save_prefix" | |
17363 | ||
17364 | if test "X$x" = "X$element"; then | |
17365 | haveit=yes | |
17366 | break | |
17367 | fi | |
17368 | done | |
17369 | if test -z "$haveit"; then | |
17370 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
17371 | fi | |
17372 | done | |
17373 | ||
17374 | ||
17375 | else | |
17376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17377 | $as_echo "no" >&6; } | |
17378 | fi | |
17379 | ||
17380 | ac_ext=cpp | |
17381 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17382 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17383 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17384 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17385 | ||
17386 | ||
17387 | ||
17388 | ||
17389 | ||
17390 | ac_ext=c | |
17391 | ac_cpp='$CPP $CPPFLAGS' | |
17392 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17393 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17394 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17395 | ||
17396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5 | |
17397 | $as_echo_n "checking for cc -Wno-parentheses... " >&6; } | |
17398 | ||
17399 | cy_save=$CFLAGS | |
17400 | ||
17401 | for element in -Wno-parentheses; do | |
1504c9b8 | 17402 | haveit= |
c10a2228 | 17403 | for x in $CFLAGS; do |
1504c9b8 DWT |
17404 | |
17405 | acl_save_prefix="$prefix" | |
17406 | prefix="$acl_final_prefix" | |
17407 | acl_save_exec_prefix="$exec_prefix" | |
17408 | exec_prefix="$acl_final_exec_prefix" | |
17409 | eval x=\"$x\" | |
17410 | exec_prefix="$acl_save_exec_prefix" | |
17411 | prefix="$acl_save_prefix" | |
17412 | ||
17413 | if test "X$x" = "X$element"; then | |
17414 | haveit=yes | |
17415 | break | |
17416 | fi | |
17417 | done | |
17418 | if test -z "$haveit"; then | |
c10a2228 | 17419 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
1504c9b8 DWT |
17420 | fi |
17421 | done | |
17422 | ||
66170b30 JF |
17423 | |
17424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1504c9b8 DWT |
17425 | /* end confdefs.h. */ |
17426 | ||
66170b30 | 17427 | _ACEOF |
c10a2228 | 17428 | if ac_fn_c_try_compile "$LINENO"; then : |
66170b30 JF |
17429 | cy_good=1 |
17430 | else | |
17431 | cy_good=0 | |
17432 | fi | |
17433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17434 | ||
c10a2228 | 17435 | CFLAGS=$cy_save |
66170b30 JF |
17436 | if test "x$cy_good" = x1; then : |
17437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17438 | $as_echo "yes" >&6; } | |
17439 | ||
c10a2228 | 17440 | for element in -Wno-parentheses; do |
66170b30 JF |
17441 | haveit= |
17442 | for x in $CFLAGS; do | |
17443 | ||
17444 | acl_save_prefix="$prefix" | |
17445 | prefix="$acl_final_prefix" | |
17446 | acl_save_exec_prefix="$exec_prefix" | |
17447 | exec_prefix="$acl_final_exec_prefix" | |
17448 | eval x=\"$x\" | |
17449 | exec_prefix="$acl_save_exec_prefix" | |
17450 | prefix="$acl_save_prefix" | |
17451 | ||
17452 | if test "X$x" = "X$element"; then | |
17453 | haveit=yes | |
17454 | break | |
17455 | fi | |
17456 | done | |
17457 | if test -z "$haveit"; then | |
17458 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
17459 | fi | |
17460 | done | |
17461 | ||
17462 | ||
c10a2228 JF |
17463 | else |
17464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17465 | $as_echo "no" >&6; } | |
17466 | fi | |
17467 | ||
17468 | ac_ext=cpp | |
17469 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17470 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17471 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17472 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17473 | ||
17474 | ||
17475 | ||
17476 | ac_ext=cpp | |
17477 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17478 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17479 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17480 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17481 | ||
17482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5 | |
17483 | $as_echo_n "checking for c++ -Wno-parentheses... " >&6; } | |
17484 | ||
17485 | cy_save=$CXXFLAGS | |
17486 | ||
17487 | for element in -Wno-parentheses; do | |
66170b30 JF |
17488 | haveit= |
17489 | for x in $CXXFLAGS; do | |
17490 | ||
17491 | acl_save_prefix="$prefix" | |
17492 | prefix="$acl_final_prefix" | |
17493 | acl_save_exec_prefix="$exec_prefix" | |
17494 | exec_prefix="$acl_final_exec_prefix" | |
17495 | eval x=\"$x\" | |
17496 | exec_prefix="$acl_save_exec_prefix" | |
17497 | prefix="$acl_save_prefix" | |
17498 | ||
17499 | if test "X$x" = "X$element"; then | |
17500 | haveit=yes | |
17501 | break | |
17502 | fi | |
17503 | done | |
17504 | if test -z "$haveit"; then | |
17505 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17506 | fi | |
17507 | done | |
17508 | ||
17509 | ||
c10a2228 JF |
17510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17511 | /* end confdefs.h. */ | |
17512 | ||
17513 | _ACEOF | |
17514 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
17515 | cy_good=1 | |
17516 | else | |
17517 | cy_good=0 | |
17518 | fi | |
17519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17520 | ||
17521 | CXXFLAGS=$cy_save | |
17522 | if test "x$cy_good" = x1; then : | |
17523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17524 | $as_echo "yes" >&6; } | |
17525 | ||
17526 | for element in -Wno-parentheses; do | |
66170b30 | 17527 | haveit= |
c10a2228 | 17528 | for x in $CXXFLAGS; do |
66170b30 JF |
17529 | |
17530 | acl_save_prefix="$prefix" | |
17531 | prefix="$acl_final_prefix" | |
17532 | acl_save_exec_prefix="$exec_prefix" | |
17533 | exec_prefix="$acl_final_exec_prefix" | |
17534 | eval x=\"$x\" | |
17535 | exec_prefix="$acl_save_exec_prefix" | |
17536 | prefix="$acl_save_prefix" | |
17537 | ||
17538 | if test "X$x" = "X$element"; then | |
17539 | haveit=yes | |
17540 | break | |
17541 | fi | |
17542 | done | |
17543 | if test -z "$haveit"; then | |
c10a2228 | 17544 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" |
66170b30 JF |
17545 | fi |
17546 | done | |
17547 | ||
17548 | ||
66170b30 JF |
17549 | else |
17550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17551 | $as_echo "no" >&6; } | |
17552 | fi | |
17553 | ||
c10a2228 JF |
17554 | ac_ext=cpp |
17555 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17556 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17557 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17558 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17559 | ||
66170b30 JF |
17560 | |
17561 | ||
c10a2228 JF |
17562 | ac_ext=mm |
17563 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
17564 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17565 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17566 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
17567 | ||
17568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5 | |
17569 | $as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; } | |
66170b30 | 17570 | |
c10a2228 | 17571 | cy_save=$OBJCXXFLAGS |
66170b30 JF |
17572 | |
17573 | for element in -Wno-parentheses; do | |
17574 | haveit= | |
c10a2228 | 17575 | for x in $OBJCXXFLAGS; do |
66170b30 JF |
17576 | |
17577 | acl_save_prefix="$prefix" | |
17578 | prefix="$acl_final_prefix" | |
17579 | acl_save_exec_prefix="$exec_prefix" | |
17580 | exec_prefix="$acl_final_exec_prefix" | |
17581 | eval x=\"$x\" | |
17582 | exec_prefix="$acl_save_exec_prefix" | |
17583 | prefix="$acl_save_prefix" | |
17584 | ||
17585 | if test "X$x" = "X$element"; then | |
17586 | haveit=yes | |
17587 | break | |
17588 | fi | |
17589 | done | |
17590 | if test -z "$haveit"; then | |
c10a2228 | 17591 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
66170b30 JF |
17592 | fi |
17593 | done | |
17594 | ||
17595 | ||
17596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17597 | /* end confdefs.h. */ | |
1504c9b8 | 17598 | |
1504c9b8 | 17599 | _ACEOF |
c10a2228 | 17600 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
66170b30 JF |
17601 | cy_good=1 |
17602 | else | |
17603 | cy_good=0 | |
17604 | fi | |
17605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17606 | ||
c10a2228 | 17607 | OBJCXXFLAGS=$cy_save |
66170b30 JF |
17608 | if test "x$cy_good" = x1; then : |
17609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17610 | $as_echo "yes" >&6; } | |
1504c9b8 | 17611 | |
66170b30 | 17612 | for element in -Wno-parentheses; do |
1504c9b8 | 17613 | haveit= |
c10a2228 | 17614 | for x in $OBJCXXFLAGS; do |
1504c9b8 DWT |
17615 | |
17616 | acl_save_prefix="$prefix" | |
17617 | prefix="$acl_final_prefix" | |
17618 | acl_save_exec_prefix="$exec_prefix" | |
17619 | exec_prefix="$acl_final_exec_prefix" | |
17620 | eval x=\"$x\" | |
17621 | exec_prefix="$acl_save_exec_prefix" | |
17622 | prefix="$acl_save_prefix" | |
17623 | ||
17624 | if test "X$x" = "X$element"; then | |
17625 | haveit=yes | |
17626 | break | |
17627 | fi | |
17628 | done | |
17629 | if test -z "$haveit"; then | |
c10a2228 | 17630 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
1504c9b8 DWT |
17631 | fi |
17632 | done | |
17633 | ||
17634 | ||
c10a2228 JF |
17635 | else |
17636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17637 | $as_echo "no" >&6; } | |
17638 | fi | |
17639 | ||
17640 | ac_ext=cpp | |
17641 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17642 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17643 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17644 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17645 | ||
17646 | ||
17647 | ||
17648 | ||
17649 | ||
17650 | ac_ext=c | |
17651 | ac_cpp='$CPP $CPPFLAGS' | |
17652 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17653 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17654 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17655 | ||
17656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5 | |
17657 | $as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; } | |
17658 | ||
17659 | cy_save=$CFLAGS | |
17660 | ||
17661 | for element in -Wno-unneeded-internal-declaration; do | |
66170b30 | 17662 | haveit= |
c10a2228 | 17663 | for x in $CFLAGS; do |
66170b30 JF |
17664 | |
17665 | acl_save_prefix="$prefix" | |
17666 | prefix="$acl_final_prefix" | |
17667 | acl_save_exec_prefix="$exec_prefix" | |
17668 | exec_prefix="$acl_final_exec_prefix" | |
17669 | eval x=\"$x\" | |
17670 | exec_prefix="$acl_save_exec_prefix" | |
17671 | prefix="$acl_save_prefix" | |
17672 | ||
17673 | if test "X$x" = "X$element"; then | |
17674 | haveit=yes | |
17675 | break | |
17676 | fi | |
17677 | done | |
17678 | if test -z "$haveit"; then | |
c10a2228 | 17679 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
66170b30 JF |
17680 | fi |
17681 | done | |
17682 | ||
17683 | ||
c10a2228 JF |
17684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17685 | /* end confdefs.h. */ | |
17686 | ||
17687 | _ACEOF | |
17688 | if ac_fn_c_try_compile "$LINENO"; then : | |
17689 | cy_good=1 | |
17690 | else | |
17691 | cy_good=0 | |
17692 | fi | |
17693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17694 | ||
17695 | CFLAGS=$cy_save | |
17696 | if test "x$cy_good" = x1; then : | |
17697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17698 | $as_echo "yes" >&6; } | |
17699 | ||
17700 | for element in -Wno-unneeded-internal-declaration; do | |
66170b30 | 17701 | haveit= |
c10a2228 | 17702 | for x in $CFLAGS; do |
66170b30 JF |
17703 | |
17704 | acl_save_prefix="$prefix" | |
17705 | prefix="$acl_final_prefix" | |
17706 | acl_save_exec_prefix="$exec_prefix" | |
17707 | exec_prefix="$acl_final_exec_prefix" | |
17708 | eval x=\"$x\" | |
17709 | exec_prefix="$acl_save_exec_prefix" | |
17710 | prefix="$acl_save_prefix" | |
17711 | ||
17712 | if test "X$x" = "X$element"; then | |
17713 | haveit=yes | |
17714 | break | |
17715 | fi | |
17716 | done | |
17717 | if test -z "$haveit"; then | |
c10a2228 | 17718 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" |
66170b30 JF |
17719 | fi |
17720 | done | |
17721 | ||
17722 | ||
66170b30 JF |
17723 | else |
17724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17725 | $as_echo "no" >&6; } | |
17726 | fi | |
17727 | ||
c10a2228 JF |
17728 | ac_ext=cpp |
17729 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17730 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17731 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17732 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17733 | ||
66170b30 JF |
17734 | |
17735 | ||
c10a2228 JF |
17736 | ac_ext=cpp |
17737 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17738 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17739 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17740 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17741 | ||
17742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5 | |
17743 | $as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; } | |
66170b30 JF |
17744 | |
17745 | cy_save=$CXXFLAGS | |
17746 | ||
17747 | for element in -Wno-unneeded-internal-declaration; do | |
17748 | haveit= | |
17749 | for x in $CXXFLAGS; do | |
17750 | ||
17751 | acl_save_prefix="$prefix" | |
17752 | prefix="$acl_final_prefix" | |
17753 | acl_save_exec_prefix="$exec_prefix" | |
17754 | exec_prefix="$acl_final_exec_prefix" | |
17755 | eval x=\"$x\" | |
17756 | exec_prefix="$acl_save_exec_prefix" | |
17757 | prefix="$acl_save_prefix" | |
17758 | ||
17759 | if test "X$x" = "X$element"; then | |
17760 | haveit=yes | |
17761 | break | |
17762 | fi | |
17763 | done | |
17764 | if test -z "$haveit"; then | |
17765 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17766 | fi | |
17767 | done | |
17768 | ||
17769 | ||
17770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17771 | /* end confdefs.h. */ | |
17772 | ||
17773 | _ACEOF | |
17774 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
17775 | cy_good=1 | |
17776 | else | |
17777 | cy_good=0 | |
17778 | fi | |
17779 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17780 | ||
17781 | CXXFLAGS=$cy_save | |
17782 | if test "x$cy_good" = x1; then : | |
17783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17784 | $as_echo "yes" >&6; } | |
17785 | ||
66170b30 | 17786 | for element in -Wno-unneeded-internal-declaration; do |
1504c9b8 | 17787 | haveit= |
c10a2228 | 17788 | for x in $CXXFLAGS; do |
1504c9b8 DWT |
17789 | |
17790 | acl_save_prefix="$prefix" | |
17791 | prefix="$acl_final_prefix" | |
17792 | acl_save_exec_prefix="$exec_prefix" | |
17793 | exec_prefix="$acl_final_exec_prefix" | |
17794 | eval x=\"$x\" | |
17795 | exec_prefix="$acl_save_exec_prefix" | |
17796 | prefix="$acl_save_prefix" | |
17797 | ||
17798 | if test "X$x" = "X$element"; then | |
17799 | haveit=yes | |
17800 | break | |
17801 | fi | |
17802 | done | |
17803 | if test -z "$haveit"; then | |
c10a2228 | 17804 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" |
1504c9b8 DWT |
17805 | fi |
17806 | done | |
17807 | ||
17808 | ||
c10a2228 JF |
17809 | else |
17810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17811 | $as_echo "no" >&6; } | |
17812 | fi | |
17813 | ||
17814 | ac_ext=cpp | |
17815 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17816 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17817 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17818 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17819 | ||
17820 | ||
17821 | ||
17822 | ac_ext=mm | |
17823 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
17824 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17825 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17826 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
17827 | ||
17828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5 | |
17829 | $as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; } | |
17830 | ||
17831 | cy_save=$OBJCXXFLAGS | |
17832 | ||
66170b30 | 17833 | for element in -Wno-unneeded-internal-declaration; do |
1504c9b8 | 17834 | haveit= |
c10a2228 | 17835 | for x in $OBJCXXFLAGS; do |
1504c9b8 DWT |
17836 | |
17837 | acl_save_prefix="$prefix" | |
17838 | prefix="$acl_final_prefix" | |
17839 | acl_save_exec_prefix="$exec_prefix" | |
17840 | exec_prefix="$acl_final_exec_prefix" | |
17841 | eval x=\"$x\" | |
17842 | exec_prefix="$acl_save_exec_prefix" | |
17843 | prefix="$acl_save_prefix" | |
17844 | ||
17845 | if test "X$x" = "X$element"; then | |
17846 | haveit=yes | |
17847 | break | |
17848 | fi | |
17849 | done | |
17850 | if test -z "$haveit"; then | |
c10a2228 | 17851 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
1504c9b8 DWT |
17852 | fi |
17853 | done | |
17854 | ||
17855 | ||
c10a2228 JF |
17856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17857 | /* end confdefs.h. */ | |
17858 | ||
17859 | _ACEOF | |
17860 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
17861 | cy_good=1 | |
17862 | else | |
17863 | cy_good=0 | |
17864 | fi | |
17865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17866 | ||
17867 | OBJCXXFLAGS=$cy_save | |
17868 | if test "x$cy_good" = x1; then : | |
17869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17870 | $as_echo "yes" >&6; } | |
17871 | ||
66170b30 | 17872 | for element in -Wno-unneeded-internal-declaration; do |
1504c9b8 | 17873 | haveit= |
c10a2228 | 17874 | for x in $OBJCXXFLAGS; do |
1504c9b8 DWT |
17875 | |
17876 | acl_save_prefix="$prefix" | |
17877 | prefix="$acl_final_prefix" | |
17878 | acl_save_exec_prefix="$exec_prefix" | |
17879 | exec_prefix="$acl_final_exec_prefix" | |
17880 | eval x=\"$x\" | |
17881 | exec_prefix="$acl_save_exec_prefix" | |
17882 | prefix="$acl_save_prefix" | |
17883 | ||
17884 | if test "X$x" = "X$element"; then | |
17885 | haveit=yes | |
17886 | break | |
17887 | fi | |
17888 | done | |
17889 | if test -z "$haveit"; then | |
c10a2228 | 17890 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
1504c9b8 DWT |
17891 | fi |
17892 | done | |
17893 | ||
17894 | ||
66170b30 JF |
17895 | else |
17896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17897 | $as_echo "no" >&6; } | |
1504c9b8 | 17898 | fi |
1504c9b8 | 17899 | |
c10a2228 JF |
17900 | ac_ext=cpp |
17901 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17902 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17903 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17904 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17905 | ||
17906 | ||
1504c9b8 | 17907 | |
1504c9b8 | 17908 | |
66170b30 JF |
17909 | for cy_arch in ppc ppc64 i386 x86_64 armv6; do |
17910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -arch $cy_arch" >&5 | |
17911 | $as_echo_n "checking for -arch $cy_arch... " >&6; } | |
1504c9b8 | 17912 | |
66170b30 | 17913 | cy_save=$CXXFLAGS |
1504c9b8 DWT |
17914 | |
17915 | for element in "-arch $cy_arch"; do | |
17916 | haveit= | |
17917 | for x in $CXXFLAGS; do | |
17918 | ||
17919 | acl_save_prefix="$prefix" | |
17920 | prefix="$acl_final_prefix" | |
17921 | acl_save_exec_prefix="$exec_prefix" | |
17922 | exec_prefix="$acl_final_exec_prefix" | |
17923 | eval x=\"$x\" | |
17924 | exec_prefix="$acl_save_exec_prefix" | |
17925 | prefix="$acl_save_prefix" | |
17926 | ||
17927 | if test "X$x" = "X$element"; then | |
17928 | haveit=yes | |
17929 | break | |
17930 | fi | |
17931 | done | |
17932 | if test -z "$haveit"; then | |
17933 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17934 | fi | |
17935 | done | |
17936 | ||
66170b30 JF |
17937 | |
17938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1504c9b8 DWT |
17939 | /* end confdefs.h. */ |
17940 | ||
17941 | int | |
17942 | main () | |
17943 | { | |
17944 | ||
17945 | ; | |
17946 | return 0; | |
a243b558 JF |
17947 | } |
17948 | _ACEOF | |
17949 | if ac_fn_cxx_try_link "$LINENO"; then : | |
17950 | cy_good=1 | |
17951 | else | |
17952 | cy_good=0 | |
17953 | fi | |
17954 | rm -f core conftest.err conftest.$ac_objext \ | |
17955 | conftest$ac_exeext conftest.$ac_ext | |
1504c9b8 | 17956 | |
a243b558 JF |
17957 | CXXFLAGS=$cy_save |
17958 | if test "x$cy_good" = x1; then : | |
17959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17960 | $as_echo "yes" >&6; } | |
66170b30 | 17961 | |
1504c9b8 DWT |
17962 | for element in "-arch $cy_arch"; do |
17963 | haveit= | |
a243b558 | 17964 | for x in $CY_ARCH; do |
1504c9b8 DWT |
17965 | |
17966 | acl_save_prefix="$prefix" | |
17967 | prefix="$acl_final_prefix" | |
17968 | acl_save_exec_prefix="$exec_prefix" | |
17969 | exec_prefix="$acl_final_exec_prefix" | |
17970 | eval x=\"$x\" | |
17971 | exec_prefix="$acl_save_exec_prefix" | |
17972 | prefix="$acl_save_prefix" | |
17973 | ||
17974 | if test "X$x" = "X$element"; then | |
17975 | haveit=yes | |
17976 | break | |
17977 | fi | |
17978 | done | |
17979 | if test -z "$haveit"; then | |
a243b558 | 17980 | CY_ARCH="${CY_ARCH}${CY_ARCH:+ }$element" |
1504c9b8 DWT |
17981 | fi |
17982 | done | |
17983 | ||
17984 | ||
17985 | else | |
66170b30 JF |
17986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17987 | $as_echo "no" >&6; } | |
1504c9b8 DWT |
17988 | fi |
17989 | ||
66170b30 | 17990 | done |
1504c9b8 | 17991 | |
a243b558 JF |
17992 | |
17993 | ||
296ee9a6 JF |
17994 | |
17995 | ||
9c60689e | 17996 | |
632b71ea DWT |
17997 | |
17998 | ||
5053a6d1 DWT |
17999 | # Check whether --enable-javascript was given. |
18000 | if test "${enable_javascript+set}" = set; then : | |
18001 | enableval=$enable_javascript; | |
66170b30 | 18002 | case $enableval in #( |
5053a6d1 | 18003 | yes) : |
9c60689e DWT |
18004 | |
18005 | ||
9c60689e | 18006 | |
66170b30 | 18007 | |
7eda51e0 JF |
18008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 |
18009 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
18010 | if ${ac_cv_framework_JavaScriptCore+:} false; then : | |
18011 | $as_echo_n "(cached) " >&6 | |
9c60689e | 18012 | else |
7eda51e0 JF |
18013 | |
18014 | ac_check_framework_save_LIBS=$LIBS | |
18015 | LIBS="-framework JavaScriptCore $LIBS" | |
18016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18017 | /* end confdefs.h. */ | |
18018 | ||
18019 | #include <JavaScriptCore/JSBase.h> | |
18020 | ||
18021 | int | |
18022 | main () | |
18023 | { | |
18024 | ||
18025 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
18026 | ||
18027 | ; | |
18028 | return 0; | |
18029 | } | |
18030 | _ACEOF | |
18031 | if ac_fn_cxx_try_link "$LINENO"; then : | |
18032 | ||
18033 | ac_cv_framework_JavaScriptCore=yes | |
18034 | ||
9c60689e | 18035 | else |
7eda51e0 | 18036 | ac_cv_framework_JavaScriptCore=no |
9c60689e | 18037 | fi |
7eda51e0 JF |
18038 | rm -f core conftest.err conftest.$ac_objext \ |
18039 | conftest$ac_exeext conftest.$ac_ext | |
18040 | LIBS=$ac_check_framework_save_LIBS | |
18041 | ||
9c60689e | 18042 | fi |
7eda51e0 JF |
18043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 |
18044 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
18045 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
18046 | ||
18047 | ||
18048 | for element in "-framework JavaScriptCore"; do | |
18049 | haveit= | |
18050 | for x in $LIBS; do | |
9c60689e | 18051 | |
7eda51e0 JF |
18052 | acl_save_prefix="$prefix" |
18053 | prefix="$acl_final_prefix" | |
18054 | acl_save_exec_prefix="$exec_prefix" | |
18055 | exec_prefix="$acl_final_exec_prefix" | |
18056 | eval x=\"$x\" | |
18057 | exec_prefix="$acl_save_exec_prefix" | |
18058 | prefix="$acl_save_prefix" | |
9c60689e | 18059 | |
7eda51e0 JF |
18060 | if test "X$x" = "X$element"; then |
18061 | haveit=yes | |
18062 | break | |
18063 | fi | |
18064 | done | |
18065 | if test -z "$haveit"; then | |
18066 | LIBS="${LIBS}${LIBS:+ }$element" | |
18067 | fi | |
18068 | done | |
9c60689e | 18069 | |
9c60689e | 18070 | |
7eda51e0 | 18071 | CY_EXECUTE=1 |
632b71ea | 18072 | |
5053a6d1 DWT |
18073 | |
18074 | ||
7eda51e0 JF |
18075 | else |
18076 | ||
18077 | for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do | |
18078 | ||
5053a6d1 DWT |
18079 | pkg_failed=no |
18080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
18081 | $as_echo_n "checking for WEBKIT... " >&6; } | |
632b71ea | 18082 | |
12833ad8 JF |
18083 | if test -n "$WEBKIT_CFLAGS"; then |
18084 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
18085 | elif test -n "$PKG_CONFIG"; then | |
18086 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
18087 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 |
18088 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
5053a6d1 DWT |
18089 | ac_status=$? |
18090 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18091 | test $ac_status = 0; }; then | |
7eda51e0 | 18092 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null` |
5053a6d1 DWT |
18093 | else |
18094 | pkg_failed=yes | |
9c60689e | 18095 | fi |
12833ad8 JF |
18096 | else |
18097 | pkg_failed=untried | |
5053a6d1 | 18098 | fi |
12833ad8 JF |
18099 | if test -n "$WEBKIT_LIBS"; then |
18100 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
18101 | elif test -n "$PKG_CONFIG"; then | |
18102 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
18103 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 |
18104 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
5053a6d1 DWT |
18105 | ac_status=$? |
18106 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18107 | test $ac_status = 0; }; then | |
7eda51e0 | 18108 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null` |
5053a6d1 DWT |
18109 | else |
18110 | pkg_failed=yes | |
18111 | fi | |
12833ad8 JF |
18112 | else |
18113 | pkg_failed=untried | |
632b71ea DWT |
18114 | fi |
18115 | ||
18116 | ||
18117 | ||
5053a6d1 | 18118 | if test $pkg_failed = yes; then |
12833ad8 JF |
18119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18120 | $as_echo "no" >&6; } | |
5053a6d1 DWT |
18121 | |
18122 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
18123 | _pkg_short_errors_supported=yes | |
18124 | else | |
18125 | _pkg_short_errors_supported=no | |
18126 | fi | |
18127 | if test $_pkg_short_errors_supported = yes; then | |
7eda51e0 | 18128 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1` |
5053a6d1 | 18129 | else |
7eda51e0 | 18130 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1` |
5053a6d1 DWT |
18131 | fi |
18132 | # Put the nasty error message in config.log where it belongs | |
18133 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
18134 | ||
7eda51e0 JF |
18135 | : |
18136 | elif test $pkg_failed = untried; then | |
18137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18138 | $as_echo "no" >&6; } | |
18139 | : | |
18140 | else | |
18141 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
18142 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
18143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18144 | $as_echo "yes" >&6; } | |
5053a6d1 | 18145 | |
7eda51e0 | 18146 | CY_EXECUTE=1 |
632b71ea DWT |
18147 | |
18148 | ||
7eda51e0 | 18149 | for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do |
5053a6d1 | 18150 | haveit= |
d70419f1 | 18151 | for x in $CPPFLAGS; do |
632b71ea DWT |
18152 | |
18153 | acl_save_prefix="$prefix" | |
18154 | prefix="$acl_final_prefix" | |
18155 | acl_save_exec_prefix="$exec_prefix" | |
18156 | exec_prefix="$acl_final_exec_prefix" | |
5053a6d1 | 18157 | eval x=\"$x\" |
632b71ea DWT |
18158 | exec_prefix="$acl_save_exec_prefix" |
18159 | prefix="$acl_save_prefix" | |
18160 | ||
5053a6d1 DWT |
18161 | if test "X$x" = "X$element"; then |
18162 | haveit=yes | |
18163 | break | |
18164 | fi | |
18165 | done | |
18166 | if test -z "$haveit"; then | |
d70419f1 | 18167 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
5053a6d1 DWT |
18168 | fi |
18169 | done | |
18170 | ||
66170b30 | 18171 | |
7eda51e0 JF |
18172 | for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do |
18173 | haveit= | |
18174 | for x in $LIBS; do | |
18175 | ||
18176 | acl_save_prefix="$prefix" | |
18177 | prefix="$acl_final_prefix" | |
18178 | acl_save_exec_prefix="$exec_prefix" | |
18179 | exec_prefix="$acl_final_exec_prefix" | |
18180 | eval x=\"$x\" | |
18181 | exec_prefix="$acl_save_exec_prefix" | |
18182 | prefix="$acl_save_prefix" | |
18183 | ||
18184 | if test "X$x" = "X$element"; then | |
18185 | haveit=yes | |
18186 | break | |
18187 | fi | |
18188 | done | |
18189 | if test -z "$haveit"; then | |
18190 | LIBS="${LIBS}${LIBS:+ }$element" | |
18191 | fi | |
18192 | done | |
66170b30 JF |
18193 | |
18194 | ||
7eda51e0 JF |
18195 | fi; if test "x$CY_EXECUTE" = x1; then break; fi |
18196 | done | |
632b71ea | 18197 | |
5053a6d1 | 18198 | fi |
7eda51e0 JF |
18199 | ;; #( |
18200 | no) : | |
18201 | ||
18202 | CY_EXECUTE=0 | |
18203 | ;; #( | |
18204 | JavaScriptCore) : | |
5053a6d1 | 18205 | |
5053a6d1 DWT |
18206 | |
18207 | ||
18208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
18209 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
ee134472 | 18210 | if ${ac_cv_framework_JavaScriptCore+:} false; then : |
5053a6d1 DWT |
18211 | $as_echo_n "(cached) " >&6 |
18212 | else | |
18213 | ||
18214 | ac_check_framework_save_LIBS=$LIBS | |
18215 | LIBS="-framework JavaScriptCore $LIBS" | |
18216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18217 | /* end confdefs.h. */ | |
18218 | ||
7eda51e0 | 18219 | #include <JavaScriptCore/JSBase.h> |
5053a6d1 DWT |
18220 | |
18221 | int | |
18222 | main () | |
18223 | { | |
66170b30 | 18224 | |
7eda51e0 | 18225 | JSEvaluateScript(0, 0, 0, 0, 0, 0); |
66170b30 | 18226 | |
5053a6d1 DWT |
18227 | ; |
18228 | return 0; | |
18229 | } | |
18230 | _ACEOF | |
18231 | if ac_fn_cxx_try_link "$LINENO"; then : | |
18232 | ||
18233 | ac_cv_framework_JavaScriptCore=yes | |
18234 | ||
18235 | else | |
18236 | ac_cv_framework_JavaScriptCore=no | |
18237 | fi | |
18238 | rm -f core conftest.err conftest.$ac_objext \ | |
18239 | conftest$ac_exeext conftest.$ac_ext | |
18240 | LIBS=$ac_check_framework_save_LIBS | |
18241 | ||
18242 | fi | |
18243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
18244 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
18245 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
18246 | ||
18247 | ||
7eda51e0 | 18248 | for element in "-framework JavaScriptCore"; do |
5053a6d1 DWT |
18249 | haveit= |
18250 | for x in $LIBS; do | |
632b71ea DWT |
18251 | |
18252 | acl_save_prefix="$prefix" | |
18253 | prefix="$acl_final_prefix" | |
18254 | acl_save_exec_prefix="$exec_prefix" | |
18255 | exec_prefix="$acl_final_exec_prefix" | |
5053a6d1 DWT |
18256 | eval x=\"$x\" |
18257 | exec_prefix="$acl_save_exec_prefix" | |
18258 | prefix="$acl_save_prefix" | |
632b71ea | 18259 | |
5053a6d1 DWT |
18260 | if test "X$x" = "X$element"; then |
18261 | haveit=yes | |
18262 | break | |
18263 | fi | |
18264 | done | |
18265 | if test -z "$haveit"; then | |
18266 | LIBS="${LIBS}${LIBS:+ }$element" | |
18267 | fi | |
18268 | done | |
18269 | ||
66170b30 | 18270 | |
7eda51e0 | 18271 | CY_EXECUTE=1 |
66170b30 | 18272 | |
5053a6d1 | 18273 | |
5053a6d1 DWT |
18274 | |
18275 | else | |
5053a6d1 | 18276 | |
7eda51e0 | 18277 | for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do |
66170b30 | 18278 | |
7eda51e0 JF |
18279 | pkg_failed=no |
18280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
18281 | $as_echo_n "checking for WEBKIT... " >&6; } | |
5053a6d1 | 18282 | |
7eda51e0 JF |
18283 | if test -n "$WEBKIT_CFLAGS"; then |
18284 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
18285 | elif test -n "$PKG_CONFIG"; then | |
18286 | if test -n "$PKG_CONFIG" && \ | |
18287 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
18288 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
18289 | ac_status=$? | |
18290 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18291 | test $ac_status = 0; }; then | |
18292 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null` | |
18293 | else | |
18294 | pkg_failed=yes | |
18295 | fi | |
18296 | else | |
18297 | pkg_failed=untried | |
18298 | fi | |
18299 | if test -n "$WEBKIT_LIBS"; then | |
18300 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
18301 | elif test -n "$PKG_CONFIG"; then | |
18302 | if test -n "$PKG_CONFIG" && \ | |
18303 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
18304 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
18305 | ac_status=$? | |
18306 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18307 | test $ac_status = 0; }; then | |
18308 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null` | |
18309 | else | |
18310 | pkg_failed=yes | |
18311 | fi | |
18312 | else | |
18313 | pkg_failed=untried | |
18314 | fi | |
632b71ea | 18315 | |
7eda51e0 JF |
18316 | |
18317 | ||
18318 | if test $pkg_failed = yes; then | |
18319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18320 | $as_echo "no" >&6; } | |
18321 | ||
18322 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
18323 | _pkg_short_errors_supported=yes | |
18324 | else | |
18325 | _pkg_short_errors_supported=no | |
18326 | fi | |
18327 | if test $_pkg_short_errors_supported = yes; then | |
18328 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1` | |
18329 | else | |
18330 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1` | |
18331 | fi | |
18332 | # Put the nasty error message in config.log where it belongs | |
18333 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
18334 | ||
18335 | : | |
18336 | elif test $pkg_failed = untried; then | |
18337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18338 | $as_echo "no" >&6; } | |
18339 | : | |
18340 | else | |
18341 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
18342 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
18343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18344 | $as_echo "yes" >&6; } | |
18345 | ||
18346 | CY_EXECUTE=1 | |
18347 | ||
18348 | ||
7eda51e0 JF |
18349 | for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do |
18350 | haveit= | |
d70419f1 | 18351 | for x in $CPPFLAGS; do |
5053a6d1 | 18352 | |
7eda51e0 JF |
18353 | acl_save_prefix="$prefix" |
18354 | prefix="$acl_final_prefix" | |
18355 | acl_save_exec_prefix="$exec_prefix" | |
18356 | exec_prefix="$acl_final_exec_prefix" | |
18357 | eval x=\"$x\" | |
18358 | exec_prefix="$acl_save_exec_prefix" | |
18359 | prefix="$acl_save_prefix" | |
5053a6d1 | 18360 | |
7eda51e0 JF |
18361 | if test "X$x" = "X$element"; then |
18362 | haveit=yes | |
18363 | break | |
18364 | fi | |
18365 | done | |
18366 | if test -z "$haveit"; then | |
d70419f1 | 18367 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
7eda51e0 JF |
18368 | fi |
18369 | done | |
5053a6d1 | 18370 | |
5053a6d1 | 18371 | |
7eda51e0 | 18372 | for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do |
632b71ea | 18373 | haveit= |
5053a6d1 | 18374 | for x in $LIBS; do |
9c60689e | 18375 | |
632b71ea DWT |
18376 | acl_save_prefix="$prefix" |
18377 | prefix="$acl_final_prefix" | |
18378 | acl_save_exec_prefix="$exec_prefix" | |
18379 | exec_prefix="$acl_final_exec_prefix" | |
18380 | eval x=\"$x\" | |
18381 | exec_prefix="$acl_save_exec_prefix" | |
18382 | prefix="$acl_save_prefix" | |
18383 | ||
18384 | if test "X$x" = "X$element"; then | |
18385 | haveit=yes | |
18386 | break | |
18387 | fi | |
18388 | done | |
18389 | if test -z "$haveit"; then | |
5053a6d1 | 18390 | LIBS="${LIBS}${LIBS:+ }$element" |
632b71ea DWT |
18391 | fi |
18392 | done | |
b128dfee | 18393 | |
66170b30 | 18394 | |
7eda51e0 JF |
18395 | fi; if test "x$CY_EXECUTE" = x1; then break; fi |
18396 | done | |
5053a6d1 DWT |
18397 | |
18398 | fi | |
7eda51e0 JF |
18399 | ;; #( |
18400 | *) : | |
18401 | as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;; | |
18402 | esac | |
18403 | ||
18404 | else | |
c823f118 | 18405 | |
5053a6d1 DWT |
18406 | |
18407 | ||
18408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
18409 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
ee134472 | 18410 | if ${ac_cv_framework_JavaScriptCore+:} false; then : |
c823f118 DWT |
18411 | $as_echo_n "(cached) " >&6 |
18412 | else | |
18413 | ||
5053a6d1 DWT |
18414 | ac_check_framework_save_LIBS=$LIBS |
18415 | LIBS="-framework JavaScriptCore $LIBS" | |
18416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
632b71ea | 18417 | /* end confdefs.h. */ |
5053a6d1 | 18418 | |
7eda51e0 | 18419 | #include <JavaScriptCore/JSBase.h> |
5053a6d1 | 18420 | |
632b71ea DWT |
18421 | int |
18422 | main () | |
18423 | { | |
66170b30 | 18424 | |
7eda51e0 | 18425 | JSEvaluateScript(0, 0, 0, 0, 0, 0); |
66170b30 | 18426 | |
632b71ea DWT |
18427 | ; |
18428 | return 0; | |
18429 | } | |
18430 | _ACEOF | |
5053a6d1 DWT |
18431 | if ac_fn_cxx_try_link "$LINENO"; then : |
18432 | ||
18433 | ac_cv_framework_JavaScriptCore=yes | |
18434 | ||
18435 | else | |
18436 | ac_cv_framework_JavaScriptCore=no | |
632b71ea DWT |
18437 | fi |
18438 | rm -f core conftest.err conftest.$ac_objext \ | |
18439 | conftest$ac_exeext conftest.$ac_ext | |
5053a6d1 | 18440 | LIBS=$ac_check_framework_save_LIBS |
b128dfee | 18441 | |
c823f118 | 18442 | fi |
5053a6d1 DWT |
18443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 |
18444 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
18445 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
c823f118 DWT |
18446 | |
18447 | ||
7eda51e0 | 18448 | for element in "-framework JavaScriptCore"; do |
5053a6d1 DWT |
18449 | haveit= |
18450 | for x in $LIBS; do | |
18451 | ||
18452 | acl_save_prefix="$prefix" | |
18453 | prefix="$acl_final_prefix" | |
18454 | acl_save_exec_prefix="$exec_prefix" | |
18455 | exec_prefix="$acl_final_exec_prefix" | |
18456 | eval x=\"$x\" | |
18457 | exec_prefix="$acl_save_exec_prefix" | |
18458 | prefix="$acl_save_prefix" | |
18459 | ||
18460 | if test "X$x" = "X$element"; then | |
18461 | haveit=yes | |
18462 | break | |
18463 | fi | |
18464 | done | |
18465 | if test -z "$haveit"; then | |
18466 | LIBS="${LIBS}${LIBS:+ }$element" | |
18467 | fi | |
18468 | done | |
c823f118 | 18469 | |
66170b30 | 18470 | |
7eda51e0 JF |
18471 | CY_EXECUTE=1 |
18472 | ||
18473 | ||
18474 | ||
18475 | else | |
18476 | ||
18477 | for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do | |
18478 | ||
18479 | pkg_failed=no | |
18480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
18481 | $as_echo_n "checking for WEBKIT... " >&6; } | |
18482 | ||
18483 | if test -n "$WEBKIT_CFLAGS"; then | |
18484 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
18485 | elif test -n "$PKG_CONFIG"; then | |
18486 | if test -n "$PKG_CONFIG" && \ | |
18487 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
18488 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
18489 | ac_status=$? | |
18490 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18491 | test $ac_status = 0; }; then | |
18492 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null` | |
18493 | else | |
18494 | pkg_failed=yes | |
18495 | fi | |
18496 | else | |
18497 | pkg_failed=untried | |
18498 | fi | |
18499 | if test -n "$WEBKIT_LIBS"; then | |
18500 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
18501 | elif test -n "$PKG_CONFIG"; then | |
18502 | if test -n "$PKG_CONFIG" && \ | |
18503 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
18504 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
18505 | ac_status=$? | |
18506 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18507 | test $ac_status = 0; }; then | |
18508 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null` | |
18509 | else | |
18510 | pkg_failed=yes | |
18511 | fi | |
18512 | else | |
18513 | pkg_failed=untried | |
18514 | fi | |
18515 | ||
66170b30 JF |
18516 | |
18517 | ||
7eda51e0 JF |
18518 | if test $pkg_failed = yes; then |
18519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18520 | $as_echo "no" >&6; } | |
b128dfee | 18521 | |
7eda51e0 JF |
18522 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
18523 | _pkg_short_errors_supported=yes | |
18524 | else | |
18525 | _pkg_short_errors_supported=no | |
632b71ea | 18526 | fi |
7eda51e0 JF |
18527 | if test $_pkg_short_errors_supported = yes; then |
18528 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1` | |
18529 | else | |
18530 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1` | |
18531 | fi | |
18532 | # Put the nasty error message in config.log where it belongs | |
18533 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
c823f118 | 18534 | |
7eda51e0 JF |
18535 | : |
18536 | elif test $pkg_failed = untried; then | |
18537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18538 | $as_echo "no" >&6; } | |
18539 | : | |
5053a6d1 DWT |
18540 | else |
18541 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
18542 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
18543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18544 | $as_echo "yes" >&6; } | |
c823f118 | 18545 | |
7eda51e0 JF |
18546 | CY_EXECUTE=1 |
18547 | ||
66170b30 | 18548 | |
7eda51e0 | 18549 | for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do |
5053a6d1 | 18550 | haveit= |
d70419f1 | 18551 | for x in $CPPFLAGS; do |
c823f118 | 18552 | |
5053a6d1 DWT |
18553 | acl_save_prefix="$prefix" |
18554 | prefix="$acl_final_prefix" | |
18555 | acl_save_exec_prefix="$exec_prefix" | |
18556 | exec_prefix="$acl_final_exec_prefix" | |
18557 | eval x=\"$x\" | |
18558 | exec_prefix="$acl_save_exec_prefix" | |
18559 | prefix="$acl_save_prefix" | |
c823f118 | 18560 | |
5053a6d1 DWT |
18561 | if test "X$x" = "X$element"; then |
18562 | haveit=yes | |
18563 | break | |
18564 | fi | |
18565 | done | |
18566 | if test -z "$haveit"; then | |
d70419f1 | 18567 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
5053a6d1 DWT |
18568 | fi |
18569 | done | |
c823f118 | 18570 | |
b66977f1 | 18571 | |
7eda51e0 | 18572 | for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do |
5053a6d1 DWT |
18573 | haveit= |
18574 | for x in $LIBS; do | |
18575 | ||
18576 | acl_save_prefix="$prefix" | |
18577 | prefix="$acl_final_prefix" | |
18578 | acl_save_exec_prefix="$exec_prefix" | |
18579 | exec_prefix="$acl_final_exec_prefix" | |
18580 | eval x=\"$x\" | |
18581 | exec_prefix="$acl_save_exec_prefix" | |
18582 | prefix="$acl_save_prefix" | |
18583 | ||
18584 | if test "X$x" = "X$element"; then | |
18585 | haveit=yes | |
18586 | break | |
18587 | fi | |
18588 | done | |
18589 | if test -z "$haveit"; then | |
18590 | LIBS="${LIBS}${LIBS:+ }$element" | |
18591 | fi | |
18592 | done | |
18593 | ||
18594 | ||
7eda51e0 JF |
18595 | fi; if test "x$CY_EXECUTE" = x1; then break; fi |
18596 | done | |
18597 | ||
5053a6d1 | 18598 | fi |
5053a6d1 | 18599 | |
7eda51e0 | 18600 | fi |
b66977f1 DWT |
18601 | |
18602 | ||
18603 | ||
7eda51e0 JF |
18604 | apr_found="no" |
18605 | ||
18606 | if test "$target_os" = "os2-emx"; then | |
18607 | # Scripts don't pass test -x on OS/2 | |
18608 | TEST_X="test -f" | |
18609 | else | |
18610 | TEST_X="test -x" | |
18611 | fi | |
18612 | ||
18613 | acceptable_majors="1" | |
18614 | ||
18615 | apr_temp_acceptable_apr_config="" | |
18616 | for apr_temp_major in $acceptable_majors | |
18617 | do | |
18618 | case $apr_temp_major in | |
18619 | 0) | |
18620 | apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config" | |
18621 | ;; | |
18622 | *) | |
18623 | apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config" | |
18624 | ;; | |
18625 | esac | |
18626 | done | |
18627 | ||
18628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5 | |
18629 | $as_echo_n "checking for APR... " >&6; } | |
18630 | ||
18631 | # Check whether --with-apr was given. | |
18632 | if test "${with_apr+set}" = set; then : | |
18633 | withval=$with_apr; | |
18634 | if test "$withval" = "no" || test "$withval" = "yes"; then | |
18635 | as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5 | |
18636 | fi | |
18637 | ||
18638 | for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config | |
18639 | do | |
18640 | for lookdir in "$withval/bin" "$withval" | |
18641 | do | |
18642 | if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then | |
18643 | apr_config="$lookdir/$apr_temp_apr_config_file" | |
18644 | ||
18645 | apr_found="yes" | |
18646 | break 2 | |
18647 | fi | |
18648 | done | |
18649 | done | |
18650 | ||
18651 | if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then | |
18652 | apr_config="$withval" | |
18653 | apr_found="yes" | |
18654 | fi | |
18655 | ||
18656 | if test "$apr_found" != "yes"; then | |
18657 | 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 | |
18658 | fi | |
b66977f1 | 18659 | |
b66977f1 | 18660 | else |
7eda51e0 JF |
18661 | |
18662 | if test -n "1" && test "1" = "1"; then | |
18663 | for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config | |
18664 | do | |
18665 | if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then | |
18666 | apr_config="$apr_temp_apr_config_file" | |
18667 | ||
18668 | apr_found="yes" | |
18669 | break | |
18670 | else | |
18671 | for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do | |
18672 | if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then | |
18673 | apr_config="$lookdir/bin/$apr_temp_apr_config_file" | |
18674 | ||
18675 | apr_found="yes" | |
18676 | break 2 | |
18677 | fi | |
18678 | done | |
18679 | fi | |
18680 | done | |
18681 | fi | |
18682 | if test "$apr_found" = "no" && test -d ""; then | |
18683 | apr_temp_abs_srcdir="`cd && pwd`" | |
18684 | apr_found="reconfig" | |
18685 | apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`" | |
18686 | case $apr_bundled_major in | |
18687 | "") | |
18688 | as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5 | |
18689 | ;; | |
18690 | 0) | |
18691 | apr_temp_apr_config_file="apr-config" | |
18692 | ;; | |
18693 | *) | |
18694 | apr_temp_apr_config_file="apr-$apr_bundled_major-config" | |
18695 | ;; | |
18696 | esac | |
18697 | if test -n ""; then | |
18698 | apr_config="/$apr_temp_apr_config_file" | |
18699 | else | |
18700 | apr_config="/$apr_temp_apr_config_file" | |
18701 | fi | |
18702 | fi | |
18703 | ||
b66977f1 | 18704 | fi |
7eda51e0 JF |
18705 | |
18706 | ||
18707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5 | |
18708 | $as_echo "$apr_found" >&6; } | |
18709 | ||
18710 | case $apr_found in #( | |
18711 | yes) : | |
18712 | ||
18713 | ||
18714 | for element in `$apr_config --includes`; do | |
18715 | haveit= | |
18716 | for x in $CPPFLAGS; do | |
18717 | ||
18718 | acl_save_prefix="$prefix" | |
18719 | prefix="$acl_final_prefix" | |
18720 | acl_save_exec_prefix="$exec_prefix" | |
18721 | exec_prefix="$acl_final_exec_prefix" | |
18722 | eval x=\"$x\" | |
18723 | exec_prefix="$acl_save_exec_prefix" | |
18724 | prefix="$acl_save_prefix" | |
18725 | ||
18726 | if test "X$x" = "X$element"; then | |
18727 | haveit=yes | |
18728 | break | |
18729 | fi | |
18730 | done | |
18731 | if test -z "$haveit"; then | |
18732 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
18733 | fi | |
18734 | done | |
18735 | ||
18736 | ||
18737 | for element in `$apr_config --link-libtool`; do | |
18738 | haveit= | |
18739 | for x in $LTLIBAPR; do | |
18740 | ||
18741 | acl_save_prefix="$prefix" | |
18742 | prefix="$acl_final_prefix" | |
18743 | acl_save_exec_prefix="$exec_prefix" | |
18744 | exec_prefix="$acl_final_exec_prefix" | |
18745 | eval x=\"$x\" | |
18746 | exec_prefix="$acl_save_exec_prefix" | |
18747 | prefix="$acl_save_prefix" | |
18748 | ||
18749 | if test "X$x" = "X$element"; then | |
18750 | haveit=yes | |
18751 | break | |
18752 | fi | |
18753 | done | |
18754 | if test -z "$haveit"; then | |
18755 | LTLIBAPR="${LTLIBAPR}${LTLIBAPR:+ }$element" | |
18756 | fi | |
18757 | done | |
18758 | ||
18759 | ||
18760 | ;; #( | |
18761 | *) : | |
18762 | as_fn_error $? "missing \"libapr\"" "$LINENO" 5 ;; | |
18763 | esac | |
18764 | ||
18765 | ||
18766 | ||
18767 | if test "x$CY_EXECUTE" = x1; then | |
18768 | CY_EXECUTE_TRUE= | |
18769 | CY_EXECUTE_FALSE='#' | |
b66977f1 | 18770 | else |
7eda51e0 JF |
18771 | CY_EXECUTE_TRUE='#' |
18772 | CY_EXECUTE_FALSE= | |
b66977f1 DWT |
18773 | fi |
18774 | ||
18775 | ||
18776 | ||
7eda51e0 JF |
18777 | case $CY_EXECUTE in #( |
18778 | 1) : | |
18779 | ||
18780 | for ac_header in ffi.h ffi/ffi.h | |
18781 | do : | |
18782 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
18783 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
18784 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
18785 | cat >>confdefs.h <<_ACEOF | |
18786 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
18787 | _ACEOF | |
18788 | break | |
b66977f1 | 18789 | fi |
7eda51e0 JF |
18790 | |
18791 | done | |
18792 | ||
296ee9a6 JF |
18793 | |
18794 | ||
18795 | cy_save=$LIBS | |
18796 | LIBS= | |
7eda51e0 | 18797 | if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then : |
b66977f1 | 18798 | |
b66977f1 | 18799 | |
296ee9a6 JF |
18800 | LIBFFI_CFLAGS |
18801 | C compiler flags for LIBFFI, overriding pkg-config | |
18802 | LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config | |
b66977f1 DWT |
18803 | |
18804 | pkg_failed=no | |
7eda51e0 JF |
18805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 |
18806 | $as_echo_n "checking for LIBFFI... " >&6; } | |
b66977f1 | 18807 | |
7eda51e0 JF |
18808 | if test -n "$LIBFFI_CFLAGS"; then |
18809 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
12833ad8 JF |
18810 | elif test -n "$PKG_CONFIG"; then |
18811 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
18812 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
18813 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
18814 | ac_status=$? |
18815 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18816 | test $ac_status = 0; }; then | |
7eda51e0 | 18817 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` |
b66977f1 DWT |
18818 | else |
18819 | pkg_failed=yes | |
18820 | fi | |
12833ad8 JF |
18821 | else |
18822 | pkg_failed=untried | |
b66977f1 | 18823 | fi |
7eda51e0 JF |
18824 | if test -n "$LIBFFI_LIBS"; then |
18825 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
12833ad8 JF |
18826 | elif test -n "$PKG_CONFIG"; then |
18827 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
18828 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
18829 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
18830 | ac_status=$? |
18831 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18832 | test $ac_status = 0; }; then | |
7eda51e0 | 18833 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` |
b66977f1 DWT |
18834 | else |
18835 | pkg_failed=yes | |
18836 | fi | |
12833ad8 JF |
18837 | else |
18838 | pkg_failed=untried | |
b66977f1 DWT |
18839 | fi |
18840 | ||
18841 | ||
18842 | ||
18843 | if test $pkg_failed = yes; then | |
12833ad8 JF |
18844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18845 | $as_echo "no" >&6; } | |
b66977f1 DWT |
18846 | |
18847 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
18848 | _pkg_short_errors_supported=yes | |
18849 | else | |
18850 | _pkg_short_errors_supported=no | |
18851 | fi | |
18852 | if test $_pkg_short_errors_supported = yes; then | |
7eda51e0 | 18853 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` |
b66977f1 | 18854 | else |
7eda51e0 | 18855 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` |
b66977f1 DWT |
18856 | fi |
18857 | # Put the nasty error message in config.log where it belongs | |
7eda51e0 | 18858 | echo "$LIBFFI_PKG_ERRORS" >&5 |
b66977f1 | 18859 | |
7eda51e0 JF |
18860 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 |
18861 | elif test $pkg_failed = untried; then | |
18862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18863 | $as_echo "no" >&6; } | |
18864 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 | |
18865 | else | |
18866 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS | |
18867 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
18868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18869 | $as_echo "yes" >&6; } | |
b66977f1 DWT |
18870 | |
18871 | ||
7eda51e0 | 18872 | for element in `$PKG_CONFIG --cflags libffi`; do |
b66977f1 | 18873 | haveit= |
d70419f1 | 18874 | for x in $CPPFLAGS; do |
b66977f1 DWT |
18875 | |
18876 | acl_save_prefix="$prefix" | |
18877 | prefix="$acl_final_prefix" | |
18878 | acl_save_exec_prefix="$exec_prefix" | |
18879 | exec_prefix="$acl_final_exec_prefix" | |
18880 | eval x=\"$x\" | |
18881 | exec_prefix="$acl_save_exec_prefix" | |
18882 | prefix="$acl_save_prefix" | |
18883 | ||
18884 | if test "X$x" = "X$element"; then | |
18885 | haveit=yes | |
18886 | break | |
18887 | fi | |
18888 | done | |
18889 | if test -z "$haveit"; then | |
d70419f1 | 18890 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
b66977f1 DWT |
18891 | fi |
18892 | done | |
18893 | ||
18894 | ||
7eda51e0 | 18895 | for element in `$PKG_CONFIG --libs libffi`; do |
b66977f1 DWT |
18896 | haveit= |
18897 | for x in $LIBS; do | |
18898 | ||
18899 | acl_save_prefix="$prefix" | |
18900 | prefix="$acl_final_prefix" | |
18901 | acl_save_exec_prefix="$exec_prefix" | |
18902 | exec_prefix="$acl_final_exec_prefix" | |
18903 | eval x=\"$x\" | |
18904 | exec_prefix="$acl_save_exec_prefix" | |
18905 | prefix="$acl_save_prefix" | |
18906 | ||
18907 | if test "X$x" = "X$element"; then | |
18908 | haveit=yes | |
18909 | break | |
18910 | fi | |
18911 | done | |
18912 | if test -z "$haveit"; then | |
18913 | LIBS="${LIBS}${LIBS:+ }$element" | |
18914 | fi | |
18915 | done | |
18916 | ||
18917 | ||
18918 | fi | |
18919 | ||
7eda51e0 JF |
18920 | else |
18921 | ||
18922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 | |
18923 | $as_echo_n "checking for library containing ffi_call... " >&6; } | |
18924 | if ${ac_cv_search_ffi_call+:} false; then : | |
18925 | $as_echo_n "(cached) " >&6 | |
18926 | else | |
18927 | ac_func_search_save_LIBS=$LIBS | |
18928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18929 | /* end confdefs.h. */ | |
18930 | ||
18931 | /* Override any GCC internal prototype to avoid an error. | |
18932 | Use char because int might match the return type of a GCC | |
18933 | builtin and then its argument prototype would still apply. */ | |
18934 | #ifdef __cplusplus | |
18935 | extern "C" | |
18936 | #endif | |
18937 | char ffi_call (); | |
18938 | int | |
18939 | main () | |
18940 | { | |
18941 | return ffi_call (); | |
18942 | ; | |
18943 | return 0; | |
18944 | } | |
18945 | _ACEOF | |
18946 | for ac_lib in '' ffi; do | |
18947 | if test -z "$ac_lib"; then | |
18948 | ac_res="none required" | |
18949 | else | |
18950 | ac_res=-l$ac_lib | |
18951 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
18952 | fi | |
18953 | if ac_fn_cxx_try_link "$LINENO"; then : | |
18954 | ac_cv_search_ffi_call=$ac_res | |
18955 | fi | |
18956 | rm -f core conftest.err conftest.$ac_objext \ | |
18957 | conftest$ac_exeext | |
18958 | if ${ac_cv_search_ffi_call+:} false; then : | |
18959 | break | |
18960 | fi | |
18961 | done | |
18962 | if ${ac_cv_search_ffi_call+:} false; then : | |
18963 | ||
18964 | else | |
18965 | ac_cv_search_ffi_call=no | |
18966 | fi | |
18967 | rm conftest.$ac_ext | |
18968 | LIBS=$ac_func_search_save_LIBS | |
18969 | fi | |
18970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 | |
18971 | $as_echo "$ac_cv_search_ffi_call" >&6; } | |
18972 | ac_res=$ac_cv_search_ffi_call | |
18973 | if test "$ac_res" != no; then : | |
18974 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
18975 | ||
18976 | fi | |
18977 | ||
18978 | case $ac_cv_search_ffi_call in #( | |
18979 | no) : | |
b66977f1 DWT |
18980 | |
18981 | ||
18982 | pkg_failed=no | |
7eda51e0 JF |
18983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 |
18984 | $as_echo_n "checking for LIBFFI... " >&6; } | |
b66977f1 | 18985 | |
7eda51e0 JF |
18986 | if test -n "$LIBFFI_CFLAGS"; then |
18987 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
12833ad8 JF |
18988 | elif test -n "$PKG_CONFIG"; then |
18989 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
18990 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
18991 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
18992 | ac_status=$? |
18993 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18994 | test $ac_status = 0; }; then | |
7eda51e0 | 18995 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` |
b66977f1 DWT |
18996 | else |
18997 | pkg_failed=yes | |
18998 | fi | |
12833ad8 JF |
18999 | else |
19000 | pkg_failed=untried | |
b66977f1 | 19001 | fi |
7eda51e0 JF |
19002 | if test -n "$LIBFFI_LIBS"; then |
19003 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
12833ad8 JF |
19004 | elif test -n "$PKG_CONFIG"; then |
19005 | if test -n "$PKG_CONFIG" && \ | |
7eda51e0 JF |
19006 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
19007 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
b66977f1 DWT |
19008 | ac_status=$? |
19009 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19010 | test $ac_status = 0; }; then | |
7eda51e0 | 19011 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` |
b66977f1 DWT |
19012 | else |
19013 | pkg_failed=yes | |
19014 | fi | |
12833ad8 JF |
19015 | else |
19016 | pkg_failed=untried | |
b66977f1 DWT |
19017 | fi |
19018 | ||
19019 | ||
19020 | ||
19021 | if test $pkg_failed = yes; then | |
12833ad8 JF |
19022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19023 | $as_echo "no" >&6; } | |
b66977f1 DWT |
19024 | |
19025 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
19026 | _pkg_short_errors_supported=yes | |
19027 | else | |
19028 | _pkg_short_errors_supported=no | |
19029 | fi | |
19030 | if test $_pkg_short_errors_supported = yes; then | |
7eda51e0 | 19031 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` |
b66977f1 | 19032 | else |
7eda51e0 | 19033 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` |
b66977f1 DWT |
19034 | fi |
19035 | # Put the nasty error message in config.log where it belongs | |
7eda51e0 | 19036 | echo "$LIBFFI_PKG_ERRORS" >&5 |
b66977f1 | 19037 | |
7eda51e0 JF |
19038 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 |
19039 | elif test $pkg_failed = untried; then | |
19040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19041 | $as_echo "no" >&6; } | |
19042 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 | |
b66977f1 | 19043 | else |
7eda51e0 JF |
19044 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS |
19045 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
19046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19047 | $as_echo "yes" >&6; } | |
b66977f1 | 19048 | |
b66977f1 | 19049 | |
7eda51e0 | 19050 | for element in `$PKG_CONFIG --cflags libffi`; do |
b66977f1 | 19051 | haveit= |
d70419f1 | 19052 | for x in $CPPFLAGS; do |
7eda51e0 JF |
19053 | |
19054 | acl_save_prefix="$prefix" | |
19055 | prefix="$acl_final_prefix" | |
19056 | acl_save_exec_prefix="$exec_prefix" | |
19057 | exec_prefix="$acl_final_exec_prefix" | |
19058 | eval x=\"$x\" | |
19059 | exec_prefix="$acl_save_exec_prefix" | |
19060 | prefix="$acl_save_prefix" | |
19061 | ||
19062 | if test "X$x" = "X$element"; then | |
19063 | haveit=yes | |
19064 | break | |
19065 | fi | |
19066 | done | |
19067 | if test -z "$haveit"; then | |
d70419f1 | 19068 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
7eda51e0 JF |
19069 | fi |
19070 | done | |
19071 | ||
19072 | ||
7eda51e0 JF |
19073 | for element in `$PKG_CONFIG --libs libffi`; do |
19074 | haveit= | |
19075 | for x in $LIBS; do | |
19076 | ||
19077 | acl_save_prefix="$prefix" | |
19078 | prefix="$acl_final_prefix" | |
19079 | acl_save_exec_prefix="$exec_prefix" | |
19080 | exec_prefix="$acl_final_exec_prefix" | |
19081 | eval x=\"$x\" | |
19082 | exec_prefix="$acl_save_exec_prefix" | |
19083 | prefix="$acl_save_prefix" | |
19084 | ||
19085 | if test "X$x" = "X$element"; then | |
19086 | haveit=yes | |
19087 | break | |
19088 | fi | |
19089 | done | |
19090 | if test -z "$haveit"; then | |
19091 | LIBS="${LIBS}${LIBS:+ }$element" | |
19092 | fi | |
19093 | done | |
19094 | ||
19095 | ||
19096 | fi ;; #( | |
19097 | *) : | |
19098 | ;; | |
19099 | esac | |
19100 | ||
19101 | fi | |
296ee9a6 JF |
19102 | LTLIBFFI=$LIBS |
19103 | LIBS=$cy_save | |
19104 | ||
19105 | ||
7eda51e0 JF |
19106 | |
19107 | ac_ext=mm | |
19108 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
19109 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19110 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19111 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
19112 | ||
19113 | ||
19114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5 | |
19115 | $as_echo_n "checking if we really have Objective C++... " >&6; } | |
19116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19117 | /* end confdefs.h. */ | |
19118 | ||
19119 | _ACEOF | |
19120 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
19121 | ||
19122 | CY_OBJECTIVEC=1 | |
19123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19124 | $as_echo "yes" >&6; } | |
19125 | ||
19126 | else | |
19127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12833ad8 | 19128 | $as_echo "no" >&6; } |
7eda51e0 JF |
19129 | fi |
19130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b66977f1 | 19131 | |
7eda51e0 | 19132 | if test "x$CY_OBJECTIVEC" = x1; then : |
b66977f1 | 19133 | |
7eda51e0 JF |
19134 | |
19135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5 | |
19136 | $as_echo_n "checking for framework CoreFoundation... " >&6; } | |
19137 | if ${ac_cv_framework_CoreFoundation+:} false; then : | |
b66977f1 DWT |
19138 | $as_echo_n "(cached) " >&6 |
19139 | else | |
19140 | ||
19141 | ac_check_framework_save_LIBS=$LIBS | |
7eda51e0 | 19142 | LIBS="-framework CoreFoundation $LIBS" |
b66977f1 DWT |
19143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
19144 | /* end confdefs.h. */ | |
19145 | ||
7eda51e0 | 19146 | #include <CoreFoundation/CFBase.h> |
b66977f1 DWT |
19147 | |
19148 | int | |
19149 | main () | |
19150 | { | |
7eda51e0 | 19151 | CFAllocatorGetDefault(); |
b66977f1 DWT |
19152 | ; |
19153 | return 0; | |
19154 | } | |
19155 | _ACEOF | |
7eda51e0 | 19156 | if ac_fn_objcxx_try_link "$LINENO"; then : |
b66977f1 | 19157 | |
7eda51e0 | 19158 | ac_cv_framework_CoreFoundation=yes |
b66977f1 DWT |
19159 | |
19160 | else | |
7eda51e0 | 19161 | ac_cv_framework_CoreFoundation=no |
b66977f1 DWT |
19162 | fi |
19163 | rm -f core conftest.err conftest.$ac_objext \ | |
19164 | conftest$ac_exeext conftest.$ac_ext | |
19165 | LIBS=$ac_check_framework_save_LIBS | |
19166 | ||
19167 | fi | |
7eda51e0 JF |
19168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5 |
19169 | $as_echo "$ac_cv_framework_CoreFoundation" >&6; } | |
19170 | if test $ac_cv_framework_CoreFoundation = yes; then : | |
b66977f1 DWT |
19171 | |
19172 | ||
7eda51e0 | 19173 | for element in "-framework CoreFoundation"; do |
b66977f1 DWT |
19174 | haveit= |
19175 | for x in $LIBS; do | |
19176 | ||
19177 | acl_save_prefix="$prefix" | |
19178 | prefix="$acl_final_prefix" | |
19179 | acl_save_exec_prefix="$exec_prefix" | |
19180 | exec_prefix="$acl_final_exec_prefix" | |
19181 | eval x=\"$x\" | |
19182 | exec_prefix="$acl_save_exec_prefix" | |
19183 | prefix="$acl_save_prefix" | |
19184 | ||
19185 | if test "X$x" = "X$element"; then | |
19186 | haveit=yes | |
19187 | break | |
19188 | fi | |
19189 | done | |
19190 | if test -z "$haveit"; then | |
19191 | LIBS="${LIBS}${LIBS:+ }$element" | |
19192 | fi | |
19193 | done | |
19194 | ||
66170b30 | 19195 | |
66170b30 JF |
19196 | |
19197 | ||
b66977f1 | 19198 | |
b66977f1 | 19199 | |
7eda51e0 JF |
19200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5 |
19201 | $as_echo_n "checking for framework Foundation... " >&6; } | |
19202 | if ${ac_cv_framework_Foundation+:} false; then : | |
19203 | $as_echo_n "(cached) " >&6 | |
b66977f1 | 19204 | else |
b66977f1 | 19205 | |
7eda51e0 JF |
19206 | ac_check_framework_save_LIBS=$LIBS |
19207 | LIBS="-framework Foundation $LIBS" | |
19208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19209 | /* end confdefs.h. */ | |
66170b30 | 19210 | |
7eda51e0 | 19211 | #include <Foundation/NSObject.h> |
b66977f1 | 19212 | |
7eda51e0 JF |
19213 | int |
19214 | main () | |
19215 | { | |
19216 | [[NSObject alloc] init]; | |
19217 | ; | |
19218 | return 0; | |
19219 | } | |
19220 | _ACEOF | |
19221 | if ac_fn_objcxx_try_link "$LINENO"; then : | |
b66977f1 | 19222 | |
7eda51e0 | 19223 | ac_cv_framework_Foundation=yes |
b66977f1 | 19224 | |
7eda51e0 JF |
19225 | else |
19226 | ac_cv_framework_Foundation=no | |
19227 | fi | |
19228 | rm -f core conftest.err conftest.$ac_objext \ | |
19229 | conftest$ac_exeext conftest.$ac_ext | |
19230 | LIBS=$ac_check_framework_save_LIBS | |
19231 | ||
19232 | fi | |
19233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5 | |
19234 | $as_echo "$ac_cv_framework_Foundation" >&6; } | |
19235 | if test $ac_cv_framework_Foundation = yes; then : | |
b66977f1 DWT |
19236 | |
19237 | ||
7eda51e0 | 19238 | for element in "-framework Foundation"; do |
b66977f1 DWT |
19239 | haveit= |
19240 | for x in $LIBS; do | |
19241 | ||
19242 | acl_save_prefix="$prefix" | |
19243 | prefix="$acl_final_prefix" | |
19244 | acl_save_exec_prefix="$exec_prefix" | |
19245 | exec_prefix="$acl_final_exec_prefix" | |
19246 | eval x=\"$x\" | |
19247 | exec_prefix="$acl_save_exec_prefix" | |
19248 | prefix="$acl_save_prefix" | |
19249 | ||
19250 | if test "X$x" = "X$element"; then | |
19251 | haveit=yes | |
19252 | break | |
19253 | fi | |
19254 | done | |
19255 | if test -z "$haveit"; then | |
19256 | LIBS="${LIBS}${LIBS:+ }$element" | |
19257 | fi | |
19258 | done | |
19259 | ||
7eda51e0 JF |
19260 | cat >>confdefs.h <<_ACEOF |
19261 | #define HAVE_FRAMEWORK_FOUNDATION 1 | |
19262 | _ACEOF | |
19263 | ||
b66977f1 DWT |
19264 | |
19265 | fi | |
19266 | ||
7eda51e0 JF |
19267 | |
19268 | ||
19269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework WebKit" >&5 | |
19270 | $as_echo_n "checking for framework WebKit... " >&6; } | |
19271 | if ${ac_cv_framework_WebKit+:} false; then : | |
19272 | $as_echo_n "(cached) " >&6 | |
b66977f1 | 19273 | else |
b66977f1 | 19274 | |
7eda51e0 JF |
19275 | ac_check_framework_save_LIBS=$LIBS |
19276 | LIBS="-framework WebKit $LIBS" | |
19277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19278 | /* end confdefs.h. */ | |
66170b30 | 19279 | |
7eda51e0 | 19280 | #include <WebKit/WebScriptObject.h> |
b66977f1 | 19281 | |
7eda51e0 JF |
19282 | int |
19283 | main () | |
19284 | { | |
19285 | [[WebScriptObject alloc] init]; | |
19286 | ; | |
19287 | return 0; | |
19288 | } | |
19289 | _ACEOF | |
19290 | if ac_fn_objcxx_try_link "$LINENO"; then : | |
b66977f1 | 19291 | |
7eda51e0 | 19292 | ac_cv_framework_WebKit=yes |
b66977f1 | 19293 | |
7eda51e0 JF |
19294 | else |
19295 | ac_cv_framework_WebKit=no | |
19296 | fi | |
19297 | rm -f core conftest.err conftest.$ac_objext \ | |
19298 | conftest$ac_exeext conftest.$ac_ext | |
19299 | LIBS=$ac_check_framework_save_LIBS | |
19300 | ||
19301 | fi | |
19302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_WebKit" >&5 | |
19303 | $as_echo "$ac_cv_framework_WebKit" >&6; } | |
19304 | if test $ac_cv_framework_WebKit = yes; then : | |
b66977f1 DWT |
19305 | |
19306 | ||
7eda51e0 | 19307 | for element in "-framework WebKit"; do |
b66977f1 DWT |
19308 | haveit= |
19309 | for x in $LIBS; do | |
19310 | ||
19311 | acl_save_prefix="$prefix" | |
19312 | prefix="$acl_final_prefix" | |
19313 | acl_save_exec_prefix="$exec_prefix" | |
19314 | exec_prefix="$acl_final_exec_prefix" | |
19315 | eval x=\"$x\" | |
19316 | exec_prefix="$acl_save_exec_prefix" | |
19317 | prefix="$acl_save_prefix" | |
19318 | ||
19319 | if test "X$x" = "X$element"; then | |
19320 | haveit=yes | |
19321 | break | |
19322 | fi | |
19323 | done | |
19324 | if test -z "$haveit"; then | |
19325 | LIBS="${LIBS}${LIBS:+ }$element" | |
19326 | fi | |
19327 | done | |
19328 | ||
7eda51e0 JF |
19329 | cat >>confdefs.h <<_ACEOF |
19330 | #define HAVE_FRAMEWORK_WEBKIT 1 | |
19331 | _ACEOF | |
b66977f1 | 19332 | |
5053a6d1 | 19333 | |
7eda51e0 | 19334 | fi |
b66977f1 DWT |
19335 | |
19336 | ||
7eda51e0 | 19337 | else |
b66977f1 | 19338 | |
b66977f1 | 19339 | |
7eda51e0 JF |
19340 | for ac_prog in gnustep-config |
19341 | do | |
19342 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
19343 | set dummy $ac_prog; ac_word=$2 | |
19344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
19345 | $as_echo_n "checking for $ac_word... " >&6; } | |
19346 | if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then : | |
19347 | $as_echo_n "(cached) " >&6 | |
b66977f1 | 19348 | else |
7eda51e0 JF |
19349 | if test -n "$GNUSTEP_CONFIG"; then |
19350 | ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test. | |
b66977f1 | 19351 | else |
7eda51e0 JF |
19352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19353 | for as_dir in $PATH | |
19354 | do | |
19355 | IFS=$as_save_IFS | |
19356 | test -z "$as_dir" && as_dir=. | |
19357 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19358 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
19359 | ac_cv_prog_GNUSTEP_CONFIG="$ac_prog" | |
19360 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19361 | break 2 | |
19362 | fi | |
19363 | done | |
19364 | done | |
19365 | IFS=$as_save_IFS | |
b66977f1 | 19366 | |
b66977f1 | 19367 | fi |
b66977f1 | 19368 | fi |
7eda51e0 JF |
19369 | GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG |
19370 | if test -n "$GNUSTEP_CONFIG"; then | |
19371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5 | |
19372 | $as_echo "$GNUSTEP_CONFIG" >&6; } | |
b66977f1 | 19373 | else |
7eda51e0 | 19374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12833ad8 | 19375 | $as_echo "no" >&6; } |
b66977f1 | 19376 | fi |
66170b30 | 19377 | |
66170b30 | 19378 | |
7eda51e0 JF |
19379 | test -n "$GNUSTEP_CONFIG" && break |
19380 | done | |
b66977f1 | 19381 | |
b66977f1 | 19382 | |
7eda51e0 | 19383 | if test "x$GNUSTEP_CONFIG" != x; then : |
b66977f1 | 19384 | |
b66977f1 DWT |
19385 | |
19386 | ||
7eda51e0 | 19387 | for element in `$GNUSTEP_CONFIG --objc-flags`; do |
b66977f1 | 19388 | haveit= |
7eda51e0 | 19389 | for x in $OBJCXXFLAGS; do |
b66977f1 DWT |
19390 | |
19391 | acl_save_prefix="$prefix" | |
19392 | prefix="$acl_final_prefix" | |
19393 | acl_save_exec_prefix="$exec_prefix" | |
19394 | exec_prefix="$acl_final_exec_prefix" | |
19395 | eval x=\"$x\" | |
19396 | exec_prefix="$acl_save_exec_prefix" | |
19397 | prefix="$acl_save_prefix" | |
19398 | ||
19399 | if test "X$x" = "X$element"; then | |
19400 | haveit=yes | |
19401 | break | |
19402 | fi | |
19403 | done | |
19404 | if test -z "$haveit"; then | |
7eda51e0 | 19405 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
b66977f1 DWT |
19406 | fi |
19407 | done | |
19408 | ||
66170b30 | 19409 | |
7eda51e0 | 19410 | for element in `$GNUSTEP_CONFIG --base-libs`; do |
b66977f1 DWT |
19411 | haveit= |
19412 | for x in $LIBS; do | |
19413 | ||
19414 | acl_save_prefix="$prefix" | |
19415 | prefix="$acl_final_prefix" | |
19416 | acl_save_exec_prefix="$exec_prefix" | |
19417 | exec_prefix="$acl_final_exec_prefix" | |
19418 | eval x=\"$x\" | |
19419 | exec_prefix="$acl_save_exec_prefix" | |
19420 | prefix="$acl_save_prefix" | |
19421 | ||
19422 | if test "X$x" = "X$element"; then | |
19423 | haveit=yes | |
19424 | break | |
19425 | fi | |
19426 | done | |
19427 | if test -z "$haveit"; then | |
19428 | LIBS="${LIBS}${LIBS:+ }$element" | |
19429 | fi | |
19430 | done | |
19431 | ||
66170b30 | 19432 | |
7eda51e0 JF |
19433 | else |
19434 | CY_OBJECTIVEC=0 | |
66170b30 | 19435 | |
7eda51e0 | 19436 | fi |
b66977f1 DWT |
19437 | |
19438 | fi | |
19439 | ||
7eda51e0 | 19440 | fi |
b66977f1 | 19441 | |
7eda51e0 JF |
19442 | ac_ext=cpp |
19443 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19444 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19445 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19446 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
66170b30 | 19447 | |
7eda51e0 JF |
19448 | ;; #( |
19449 | *) : | |
19450 | ;; | |
19451 | esac | |
b66977f1 | 19452 | |
7eda51e0 JF |
19453 | if test "x$CY_OBJECTIVEC" = x1; then |
19454 | CY_OBJECTIVEC_TRUE= | |
19455 | CY_OBJECTIVEC_FALSE='#' | |
19456 | else | |
19457 | CY_OBJECTIVEC_TRUE='#' | |
19458 | CY_OBJECTIVEC_FALSE= | |
19459 | fi | |
b66977f1 | 19460 | |
b66977f1 | 19461 | |
b66977f1 | 19462 | |
7eda51e0 JF |
19463 | cy_save=$LIBS |
19464 | LIBS= | |
b66977f1 | 19465 | |
7eda51e0 JF |
19466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5 |
19467 | $as_echo_n "checking for a readline compatible library... " >&6; } | |
19468 | if ${ax_cv_lib_readline+:} false; then : | |
19469 | $as_echo_n "(cached) " >&6 | |
b66977f1 | 19470 | else |
b66977f1 | 19471 | |
7eda51e0 JF |
19472 | ORIG_LIBS="$LIBS" |
19473 | for readline_lib in readline edit editline; do | |
19474 | for termcap_lib in "" termcap curses ncurses; do | |
19475 | if test -z "$termcap_lib"; then | |
19476 | TRY_LIB="-l$readline_lib" | |
b66977f1 | 19477 | else |
7eda51e0 | 19478 | TRY_LIB="-l$readline_lib -l$termcap_lib" |
b66977f1 | 19479 | fi |
7eda51e0 JF |
19480 | LIBS="$ORIG_LIBS $TRY_LIB" |
19481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b66977f1 DWT |
19482 | /* end confdefs.h. */ |
19483 | ||
7eda51e0 JF |
19484 | /* Override any GCC internal prototype to avoid an error. |
19485 | Use char because int might match the return type of a GCC | |
19486 | builtin and then its argument prototype would still apply. */ | |
19487 | #ifdef __cplusplus | |
19488 | extern "C" | |
19489 | #endif | |
19490 | char readline (); | |
b66977f1 DWT |
19491 | int |
19492 | main () | |
19493 | { | |
7eda51e0 | 19494 | return readline (); |
b66977f1 DWT |
19495 | ; |
19496 | return 0; | |
19497 | } | |
19498 | _ACEOF | |
19499 | if ac_fn_cxx_try_link "$LINENO"; then : | |
7eda51e0 | 19500 | ax_cv_lib_readline="$TRY_LIB" |
b66977f1 DWT |
19501 | fi |
19502 | rm -f core conftest.err conftest.$ac_objext \ | |
19503 | conftest$ac_exeext conftest.$ac_ext | |
7eda51e0 JF |
19504 | if test -n "$ax_cv_lib_readline"; then |
19505 | break | |
19506 | fi | |
19507 | done | |
19508 | if test -n "$ax_cv_lib_readline"; then | |
b66977f1 DWT |
19509 | break |
19510 | fi | |
19511 | done | |
7eda51e0 JF |
19512 | if test -z "$ax_cv_lib_readline"; then |
19513 | ax_cv_lib_readline="no" | |
b66977f1 | 19514 | fi |
7eda51e0 | 19515 | LIBS="$ORIG_LIBS" |
b66977f1 | 19516 | |
7eda51e0 JF |
19517 | fi |
19518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5 | |
19519 | $as_echo "$ax_cv_lib_readline" >&6; } | |
66170b30 | 19520 | |
7eda51e0 JF |
19521 | if test "$ax_cv_lib_readline" != "no"; then |
19522 | LIBS="$LIBS $ax_cv_lib_readline" | |
66170b30 | 19523 | |
7eda51e0 | 19524 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h |
66170b30 | 19525 | |
7eda51e0 JF |
19526 | for ac_header in readline.h readline/readline.h |
19527 | do : | |
19528 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
19529 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
19530 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
19531 | cat >>confdefs.h <<_ACEOF | |
19532 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19533 | _ACEOF | |
b66977f1 DWT |
19534 | |
19535 | fi | |
19536 | ||
7eda51e0 | 19537 | done |
b66977f1 | 19538 | |
7eda51e0 JF |
19539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 |
19540 | $as_echo_n "checking whether readline supports history... " >&6; } | |
19541 | if ${ax_cv_lib_readline_history+:} false; then : | |
b66977f1 DWT |
19542 | $as_echo_n "(cached) " >&6 |
19543 | else | |
19544 | ||
7eda51e0 JF |
19545 | ax_cv_lib_readline_history="no" |
19546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b66977f1 DWT |
19547 | /* end confdefs.h. */ |
19548 | ||
7eda51e0 JF |
19549 | /* Override any GCC internal prototype to avoid an error. |
19550 | Use char because int might match the return type of a GCC | |
19551 | builtin and then its argument prototype would still apply. */ | |
19552 | #ifdef __cplusplus | |
19553 | extern "C" | |
19554 | #endif | |
19555 | char add_history (); | |
b66977f1 DWT |
19556 | int |
19557 | main () | |
19558 | { | |
7eda51e0 | 19559 | return add_history (); |
b66977f1 DWT |
19560 | ; |
19561 | return 0; | |
19562 | } | |
19563 | _ACEOF | |
19564 | if ac_fn_cxx_try_link "$LINENO"; then : | |
7eda51e0 | 19565 | ax_cv_lib_readline_history="yes" |
b66977f1 DWT |
19566 | fi |
19567 | rm -f core conftest.err conftest.$ac_objext \ | |
19568 | conftest$ac_exeext conftest.$ac_ext | |
b66977f1 DWT |
19569 | |
19570 | fi | |
7eda51e0 JF |
19571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5 |
19572 | $as_echo "$ax_cv_lib_readline_history" >&6; } | |
19573 | if test "$ax_cv_lib_readline_history" = "yes"; then | |
b66977f1 | 19574 | |
7eda51e0 | 19575 | $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h |
b66977f1 | 19576 | |
7eda51e0 JF |
19577 | for ac_header in history.h readline/history.h |
19578 | do : | |
19579 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
19580 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
19581 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
19582 | cat >>confdefs.h <<_ACEOF | |
19583 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19584 | _ACEOF | |
b66977f1 | 19585 | |
7eda51e0 | 19586 | fi |
b66977f1 | 19587 | |
7eda51e0 | 19588 | done |
b66977f1 | 19589 | |
7eda51e0 JF |
19590 | fi |
19591 | fi | |
66170b30 | 19592 | |
7eda51e0 JF |
19593 | LTLIBREADLINE=$LIBS |
19594 | LIBS=$cy_save | |
66170b30 JF |
19595 | |
19596 | ||
7eda51e0 JF |
19597 | case $ax_cv_lib_readline in #( |
19598 | no) : | |
19599 | as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #( | |
19600 | *) : | |
19601 | ;; | |
19602 | esac | |
b66977f1 | 19603 | |
b66977f1 | 19604 | |
7eda51e0 JF |
19605 | cy_save=$LIBS |
19606 | LIBS= | |
19607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5 | |
19608 | $as_echo_n "checking for library containing cur_term... " >&6; } | |
19609 | if ${ac_cv_search_cur_term+:} false; then : | |
19610 | $as_echo_n "(cached) " >&6 | |
b66977f1 | 19611 | else |
7eda51e0 JF |
19612 | ac_func_search_save_LIBS=$LIBS |
19613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19614 | /* end confdefs.h. */ | |
b66977f1 | 19615 | |
7eda51e0 JF |
19616 | /* Override any GCC internal prototype to avoid an error. |
19617 | Use char because int might match the return type of a GCC | |
19618 | builtin and then its argument prototype would still apply. */ | |
19619 | #ifdef __cplusplus | |
19620 | extern "C" | |
19621 | #endif | |
19622 | char cur_term (); | |
19623 | int | |
19624 | main () | |
19625 | { | |
19626 | return cur_term (); | |
19627 | ; | |
19628 | return 0; | |
19629 | } | |
19630 | _ACEOF | |
19631 | for ac_lib in '' termcap; do | |
19632 | if test -z "$ac_lib"; then | |
19633 | ac_res="none required" | |
19634 | else | |
19635 | ac_res=-l$ac_lib | |
19636 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
19637 | fi | |
19638 | if ac_fn_cxx_try_link "$LINENO"; then : | |
19639 | ac_cv_search_cur_term=$ac_res | |
19640 | fi | |
19641 | rm -f core conftest.err conftest.$ac_objext \ | |
19642 | conftest$ac_exeext | |
19643 | if ${ac_cv_search_cur_term+:} false; then : | |
19644 | break | |
19645 | fi | |
19646 | done | |
19647 | if ${ac_cv_search_cur_term+:} false; then : | |
b66977f1 | 19648 | |
7eda51e0 JF |
19649 | else |
19650 | ac_cv_search_cur_term=no | |
19651 | fi | |
19652 | rm conftest.$ac_ext | |
19653 | LIBS=$ac_func_search_save_LIBS | |
19654 | fi | |
19655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5 | |
19656 | $as_echo "$ac_cv_search_cur_term" >&6; } | |
19657 | ac_res=$ac_cv_search_cur_term | |
19658 | if test "$ac_res" != no; then : | |
19659 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
b66977f1 DWT |
19660 | |
19661 | fi | |
19662 | ||
7eda51e0 JF |
19663 | LTLIBTERMCAP=$LIBS |
19664 | LIBS=$cy_save | |
b66977f1 | 19665 | |
66170b30 | 19666 | |
b66977f1 | 19667 | |
7eda51e0 JF |
19668 | ac_ext=c |
19669 | ac_cpp='$CPP $CPPFLAGS' | |
19670 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19671 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19672 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19673 | ||
b66977f1 | 19674 | |
7eda51e0 JF |
19675 | if test "X$prefix" = "XNONE"; then |
19676 | acl_final_prefix="$ac_default_prefix" | |
19677 | else | |
19678 | acl_final_prefix="$prefix" | |
19679 | fi | |
19680 | if test "X$exec_prefix" = "XNONE"; then | |
19681 | acl_final_exec_prefix='${prefix}' | |
19682 | else | |
19683 | acl_final_exec_prefix="$exec_prefix" | |
19684 | fi | |
b66977f1 DWT |
19685 | acl_save_prefix="$prefix" |
19686 | prefix="$acl_final_prefix" | |
7eda51e0 | 19687 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
b66977f1 DWT |
19688 | prefix="$acl_save_prefix" |
19689 | ||
b66977f1 DWT |
19690 | |
19691 | ||
7eda51e0 JF |
19692 | # Check whether --with-gnu-ld was given. |
19693 | if test "${with_gnu_ld+set}" = set; then : | |
19694 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
19695 | else | |
19696 | with_gnu_ld=no | |
19697 | fi | |
b66977f1 | 19698 | |
7eda51e0 JF |
19699 | # Prepare PATH_SEPARATOR. |
19700 | # The user is always right. | |
19701 | if test "${PATH_SEPARATOR+set}" != set; then | |
19702 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which | |
19703 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
19704 | # so we have to set that as well for the test. | |
19705 | PATH_SEPARATOR=: | |
19706 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
19707 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
19708 | || PATH_SEPARATOR=';' | |
19709 | } | |
19710 | fi | |
b66977f1 | 19711 | |
7eda51e0 JF |
19712 | ac_prog=ld |
19713 | if test "$GCC" = yes; then | |
19714 | # Check if gcc -print-prog-name=ld gives a path. | |
19715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
19716 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
19717 | case $host in | |
19718 | *-*-mingw*) | |
19719 | # gcc leaves a trailing carriage return which upsets mingw | |
19720 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
19721 | *) | |
19722 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
19723 | esac | |
19724 | case $ac_prog in | |
19725 | # Accept absolute paths. | |
19726 | [\\/]* | ?:[\\/]*) | |
19727 | re_direlt='/[^/][^/]*/\.\./' | |
19728 | # Canonicalize the pathname of ld | |
19729 | ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` | |
19730 | while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do | |
19731 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
19732 | done | |
19733 | test -z "$LD" && LD="$ac_prog" | |
19734 | ;; | |
19735 | "") | |
19736 | # If it fails, then pretend we aren't using GCC. | |
19737 | ac_prog=ld | |
19738 | ;; | |
19739 | *) | |
19740 | # If it is relative, then search for the first ld in PATH. | |
19741 | with_gnu_ld=unknown | |
19742 | ;; | |
19743 | esac | |
19744 | elif test "$with_gnu_ld" = yes; then | |
19745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
19746 | $as_echo_n "checking for GNU ld... " >&6; } | |
19747 | else | |
19748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
19749 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
19750 | fi | |
19751 | if ${acl_cv_path_LD+:} false; then : | |
19752 | $as_echo_n "(cached) " >&6 | |
19753 | else | |
19754 | if test -z "$LD"; then | |
19755 | acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
19756 | for ac_dir in $PATH; do | |
19757 | IFS="$acl_save_ifs" | |
19758 | test -z "$ac_dir" && ac_dir=. | |
19759 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
19760 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
19761 | # Check to see if the program is GNU ld. I'd rather use --version, | |
19762 | # but apparently some variants of GNU ld only accept -v. | |
19763 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
19764 | case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in | |
19765 | *GNU* | *'with BFD'*) | |
19766 | test "$with_gnu_ld" != no && break | |
19767 | ;; | |
19768 | *) | |
19769 | test "$with_gnu_ld" != yes && break | |
19770 | ;; | |
19771 | esac | |
b66977f1 DWT |
19772 | fi |
19773 | done | |
7eda51e0 JF |
19774 | IFS="$acl_save_ifs" |
19775 | else | |
19776 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
b66977f1 | 19777 | fi |
66170b30 JF |
19778 | fi |
19779 | ||
7eda51e0 JF |
19780 | LD="$acl_cv_path_LD" |
19781 | if test -n "$LD"; then | |
19782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
19783 | $as_echo "$LD" >&6; } | |
19784 | else | |
19785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19786 | $as_echo "no" >&6; } | |
19787 | fi | |
19788 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
19789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
19790 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
19791 | if ${acl_cv_prog_gnu_ld+:} false; then : | |
19792 | $as_echo_n "(cached) " >&6 | |
19793 | else | |
19794 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
19795 | case `$LD -v 2>&1 </dev/null` in | |
19796 | *GNU* | *'with BFD'*) | |
19797 | acl_cv_prog_gnu_ld=yes | |
19798 | ;; | |
19799 | *) | |
19800 | acl_cv_prog_gnu_ld=no | |
19801 | ;; | |
19802 | esac | |
19803 | fi | |
19804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 | |
19805 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
19806 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
66170b30 JF |
19807 | |
19808 | ||
66170b30 | 19809 | |
66170b30 | 19810 | |
7eda51e0 JF |
19811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
19812 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
19813 | if ${acl_cv_rpath+:} false; then : | |
19814 | $as_echo_n "(cached) " >&6 | |
19815 | else | |
66170b30 | 19816 | |
7eda51e0 JF |
19817 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
19818 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
19819 | . ./conftest.sh | |
19820 | rm -f ./conftest.sh | |
19821 | acl_cv_rpath=done | |
66170b30 | 19822 | |
7eda51e0 JF |
19823 | fi |
19824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 | |
19825 | $as_echo "$acl_cv_rpath" >&6; } | |
19826 | wl="$acl_cv_wl" | |
19827 | acl_libext="$acl_cv_libext" | |
19828 | acl_shlibext="$acl_cv_shlibext" | |
19829 | acl_libname_spec="$acl_cv_libname_spec" | |
19830 | acl_library_names_spec="$acl_cv_library_names_spec" | |
19831 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
19832 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
19833 | acl_hardcode_direct="$acl_cv_hardcode_direct" | |
19834 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
19835 | # Check whether --enable-rpath was given. | |
19836 | if test "${enable_rpath+set}" = set; then : | |
19837 | enableval=$enable_rpath; : | |
19838 | else | |
19839 | enable_rpath=yes | |
19840 | fi | |
66170b30 | 19841 | |
66170b30 | 19842 | |
66170b30 | 19843 | |
66170b30 | 19844 | |
7eda51e0 JF |
19845 | acl_libdirstem=lib |
19846 | acl_libdirstem2= | |
19847 | case "$host_os" in | |
19848 | solaris*) | |
19849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 | |
19850 | $as_echo_n "checking for 64-bit host... " >&6; } | |
19851 | if ${gl_cv_solaris_64bit+:} false; then : | |
19852 | $as_echo_n "(cached) " >&6 | |
19853 | else | |
19854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19855 | /* end confdefs.h. */ | |
66170b30 | 19856 | |
7eda51e0 JF |
19857 | #ifdef _LP64 |
19858 | sixtyfour bits | |
19859 | #endif | |
66170b30 | 19860 | |
7eda51e0 JF |
19861 | _ACEOF |
19862 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
19863 | $EGREP "sixtyfour bits" >/dev/null 2>&1; then : | |
19864 | gl_cv_solaris_64bit=yes | |
66170b30 | 19865 | else |
7eda51e0 JF |
19866 | gl_cv_solaris_64bit=no |
19867 | fi | |
19868 | rm -f conftest* | |
66170b30 | 19869 | |
66170b30 | 19870 | |
7eda51e0 JF |
19871 | fi |
19872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 | |
19873 | $as_echo "$gl_cv_solaris_64bit" >&6; } | |
19874 | if test $gl_cv_solaris_64bit = yes; then | |
19875 | acl_libdirstem=lib/64 | |
19876 | case "$host_cpu" in | |
19877 | sparc*) acl_libdirstem2=lib/sparcv9 ;; | |
19878 | i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; | |
19879 | esac | |
66170b30 | 19880 | fi |
7eda51e0 JF |
19881 | ;; |
19882 | *) | |
19883 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | |
19884 | if test -n "$searchpath"; then | |
19885 | acl_save_IFS="${IFS= }"; IFS=":" | |
19886 | for searchdir in $searchpath; do | |
19887 | if test -d "$searchdir"; then | |
19888 | case "$searchdir" in | |
19889 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; | |
19890 | */../ | */.. ) | |
19891 | # Better ignore directories of this form. They are misleading. | |
19892 | ;; | |
19893 | *) searchdir=`cd "$searchdir" && pwd` | |
19894 | case "$searchdir" in | |
19895 | */lib64 ) acl_libdirstem=lib64 ;; | |
19896 | esac ;; | |
19897 | esac | |
19898 | fi | |
19899 | done | |
19900 | IFS="$acl_save_IFS" | |
19901 | fi | |
19902 | ;; | |
19903 | esac | |
19904 | test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" | |
5053a6d1 | 19905 | |
9c60689e | 19906 | |
5053a6d1 | 19907 | |
66170b30 | 19908 | |
66170b30 JF |
19909 | |
19910 | ||
7eda51e0 JF |
19911 | |
19912 | ||
19913 | ||
19914 | ||
19915 | ||
19916 | ||
19917 | use_additional=yes | |
66170b30 JF |
19918 | |
19919 | acl_save_prefix="$prefix" | |
19920 | prefix="$acl_final_prefix" | |
19921 | acl_save_exec_prefix="$exec_prefix" | |
19922 | exec_prefix="$acl_final_exec_prefix" | |
7eda51e0 JF |
19923 | |
19924 | eval additional_includedir=\"$includedir\" | |
19925 | eval additional_libdir=\"$libdir\" | |
19926 | ||
66170b30 JF |
19927 | exec_prefix="$acl_save_exec_prefix" |
19928 | prefix="$acl_save_prefix" | |
19929 | ||
a243b558 | 19930 | |
7eda51e0 JF |
19931 | # Check whether --with-libiconv-prefix was given. |
19932 | if test "${with_libiconv_prefix+set}" = set; then : | |
19933 | withval=$with_libiconv_prefix; | |
19934 | if test "X$withval" = "Xno"; then | |
19935 | use_additional=no | |
19936 | else | |
19937 | if test "X$withval" = "X"; then | |
a243b558 JF |
19938 | |
19939 | acl_save_prefix="$prefix" | |
19940 | prefix="$acl_final_prefix" | |
19941 | acl_save_exec_prefix="$exec_prefix" | |
19942 | exec_prefix="$acl_final_exec_prefix" | |
7eda51e0 JF |
19943 | |
19944 | eval additional_includedir=\"$includedir\" | |
19945 | eval additional_libdir=\"$libdir\" | |
19946 | ||
a243b558 JF |
19947 | exec_prefix="$acl_save_exec_prefix" |
19948 | prefix="$acl_save_prefix" | |
19949 | ||
7eda51e0 JF |
19950 | else |
19951 | additional_includedir="$withval/include" | |
19952 | additional_libdir="$withval/$acl_libdirstem" | |
19953 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ | |
19954 | && ! test -d "$withval/$acl_libdirstem"; then | |
19955 | additional_libdir="$withval/$acl_libdirstem2" | |
19956 | fi | |
a243b558 | 19957 | fi |
a243b558 | 19958 | fi |
5053a6d1 | 19959 | |
e5cca37d DWT |
19960 | fi |
19961 | ||
7eda51e0 JF |
19962 | LIBICONV= |
19963 | LTLIBICONV= | |
19964 | INCICONV= | |
19965 | LIBICONV_PREFIX= | |
19966 | HAVE_LIBICONV= | |
19967 | rpathdirs= | |
19968 | ltrpathdirs= | |
19969 | names_already_handled= | |
19970 | names_next_round='iconv ' | |
19971 | while test -n "$names_next_round"; do | |
19972 | names_this_round="$names_next_round" | |
19973 | names_next_round= | |
19974 | for name in $names_this_round; do | |
19975 | already_handled= | |
19976 | for n in $names_already_handled; do | |
19977 | if test "$n" = "$name"; then | |
19978 | already_handled=yes | |
19979 | break | |
9c60689e | 19980 | fi |
7eda51e0 JF |
19981 | done |
19982 | if test -z "$already_handled"; then | |
19983 | names_already_handled="$names_already_handled $name" | |
19984 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` | |
19985 | eval value=\"\$HAVE_LIB$uppername\" | |
19986 | if test -n "$value"; then | |
19987 | if test "$value" = yes; then | |
19988 | eval value=\"\$LIB$uppername\" | |
19989 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
19990 | eval value=\"\$LTLIB$uppername\" | |
19991 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
19992 | else | |
19993 | : | |
19994 | fi | |
19995 | else | |
19996 | found_dir= | |
19997 | found_la= | |
19998 | found_so= | |
19999 | found_a= | |
20000 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
20001 | if test -n "$acl_shlibext"; then | |
20002 | shrext=".$acl_shlibext" # typically: shrext=.so | |
20003 | else | |
20004 | shrext= | |
20005 | fi | |
20006 | if test $use_additional = yes; then | |
20007 | dir="$additional_libdir" | |
20008 | if test -n "$acl_shlibext"; then | |
20009 | if test -f "$dir/$libname$shrext"; then | |
20010 | found_dir="$dir" | |
20011 | found_so="$dir/$libname$shrext" | |
20012 | else | |
20013 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
20014 | ver=`(cd "$dir" && \ | |
20015 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
20016 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
20017 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
20018 | | sed 1q ) 2>/dev/null` | |
20019 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
20020 | found_dir="$dir" | |
20021 | found_so="$dir/$libname$shrext.$ver" | |
20022 | fi | |
20023 | else | |
20024 | eval library_names=\"$acl_library_names_spec\" | |
20025 | for f in $library_names; do | |
20026 | if test -f "$dir/$f"; then | |
20027 | found_dir="$dir" | |
20028 | found_so="$dir/$f" | |
20029 | break | |
20030 | fi | |
20031 | done | |
20032 | fi | |
20033 | fi | |
20034 | fi | |
20035 | if test "X$found_dir" = "X"; then | |
20036 | if test -f "$dir/$libname.$acl_libext"; then | |
20037 | found_dir="$dir" | |
20038 | found_a="$dir/$libname.$acl_libext" | |
20039 | fi | |
20040 | fi | |
20041 | if test "X$found_dir" != "X"; then | |
20042 | if test -f "$dir/$libname.la"; then | |
20043 | found_la="$dir/$libname.la" | |
20044 | fi | |
20045 | fi | |
20046 | fi | |
20047 | if test "X$found_dir" = "X"; then | |
20048 | for x in $LDFLAGS $LTLIBICONV; do | |
e5cca37d DWT |
20049 | |
20050 | acl_save_prefix="$prefix" | |
20051 | prefix="$acl_final_prefix" | |
20052 | acl_save_exec_prefix="$exec_prefix" | |
20053 | exec_prefix="$acl_final_exec_prefix" | |
20054 | eval x=\"$x\" | |
20055 | exec_prefix="$acl_save_exec_prefix" | |
20056 | prefix="$acl_save_prefix" | |
20057 | ||
7eda51e0 JF |
20058 | case "$x" in |
20059 | -L*) | |
20060 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
20061 | if test -n "$acl_shlibext"; then | |
20062 | if test -f "$dir/$libname$shrext"; then | |
20063 | found_dir="$dir" | |
20064 | found_so="$dir/$libname$shrext" | |
20065 | else | |
20066 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
20067 | ver=`(cd "$dir" && \ | |
20068 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
20069 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
20070 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
20071 | | sed 1q ) 2>/dev/null` | |
20072 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
20073 | found_dir="$dir" | |
20074 | found_so="$dir/$libname$shrext.$ver" | |
20075 | fi | |
20076 | else | |
20077 | eval library_names=\"$acl_library_names_spec\" | |
20078 | for f in $library_names; do | |
20079 | if test -f "$dir/$f"; then | |
20080 | found_dir="$dir" | |
20081 | found_so="$dir/$f" | |
20082 | break | |
20083 | fi | |
20084 | done | |
20085 | fi | |
20086 | fi | |
20087 | fi | |
20088 | if test "X$found_dir" = "X"; then | |
20089 | if test -f "$dir/$libname.$acl_libext"; then | |
20090 | found_dir="$dir" | |
20091 | found_a="$dir/$libname.$acl_libext" | |
20092 | fi | |
20093 | fi | |
20094 | if test "X$found_dir" != "X"; then | |
20095 | if test -f "$dir/$libname.la"; then | |
20096 | found_la="$dir/$libname.la" | |
20097 | fi | |
20098 | fi | |
20099 | ;; | |
20100 | esac | |
20101 | if test "X$found_dir" != "X"; then | |
20102 | break | |
20103 | fi | |
20104 | done | |
20105 | fi | |
20106 | if test "X$found_dir" != "X"; then | |
20107 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
20108 | if test "X$found_so" != "X"; then | |
20109 | if test "$enable_rpath" = no \ | |
20110 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ | |
20111 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then | |
20112 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
20113 | else | |
20114 | haveit= | |
20115 | for x in $ltrpathdirs; do | |
20116 | if test "X$x" = "X$found_dir"; then | |
20117 | haveit=yes | |
20118 | break | |
20119 | fi | |
20120 | done | |
20121 | if test -z "$haveit"; then | |
20122 | ltrpathdirs="$ltrpathdirs $found_dir" | |
20123 | fi | |
20124 | if test "$acl_hardcode_direct" = yes; then | |
20125 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
20126 | else | |
20127 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
20128 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
20129 | haveit= | |
20130 | for x in $rpathdirs; do | |
20131 | if test "X$x" = "X$found_dir"; then | |
20132 | haveit=yes | |
20133 | break | |
20134 | fi | |
20135 | done | |
20136 | if test -z "$haveit"; then | |
20137 | rpathdirs="$rpathdirs $found_dir" | |
20138 | fi | |
20139 | else | |
20140 | haveit= | |
20141 | for x in $LDFLAGS $LIBICONV; do | |
e5cca37d DWT |
20142 | |
20143 | acl_save_prefix="$prefix" | |
20144 | prefix="$acl_final_prefix" | |
20145 | acl_save_exec_prefix="$exec_prefix" | |
20146 | exec_prefix="$acl_final_exec_prefix" | |
20147 | eval x=\"$x\" | |
20148 | exec_prefix="$acl_save_exec_prefix" | |
20149 | prefix="$acl_save_prefix" | |
20150 | ||
7eda51e0 JF |
20151 | if test "X$x" = "X-L$found_dir"; then |
20152 | haveit=yes | |
20153 | break | |
20154 | fi | |
20155 | done | |
20156 | if test -z "$haveit"; then | |
20157 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
20158 | fi | |
20159 | if test "$acl_hardcode_minus_L" != no; then | |
20160 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
20161 | else | |
20162 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
20163 | fi | |
20164 | fi | |
20165 | fi | |
20166 | fi | |
20167 | else | |
20168 | if test "X$found_a" != "X"; then | |
20169 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
20170 | else | |
20171 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
20172 | fi | |
20173 | fi | |
20174 | additional_includedir= | |
20175 | case "$found_dir" in | |
20176 | */$acl_libdirstem | */$acl_libdirstem/) | |
20177 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
20178 | if test "$name" = 'iconv'; then | |
20179 | LIBICONV_PREFIX="$basedir" | |
20180 | fi | |
20181 | additional_includedir="$basedir/include" | |
20182 | ;; | |
20183 | */$acl_libdirstem2 | */$acl_libdirstem2/) | |
20184 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` | |
20185 | if test "$name" = 'iconv'; then | |
20186 | LIBICONV_PREFIX="$basedir" | |
20187 | fi | |
20188 | additional_includedir="$basedir/include" | |
20189 | ;; | |
20190 | esac | |
20191 | if test "X$additional_includedir" != "X"; then | |
20192 | if test "X$additional_includedir" != "X/usr/include"; then | |
20193 | haveit= | |
20194 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
20195 | if test -n "$GCC"; then | |
20196 | case $host_os in | |
20197 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
20198 | esac | |
20199 | fi | |
20200 | fi | |
20201 | if test -z "$haveit"; then | |
20202 | for x in $CPPFLAGS $INCICONV; do | |
3fd51f51 DWT |
20203 | |
20204 | acl_save_prefix="$prefix" | |
20205 | prefix="$acl_final_prefix" | |
20206 | acl_save_exec_prefix="$exec_prefix" | |
20207 | exec_prefix="$acl_final_exec_prefix" | |
20208 | eval x=\"$x\" | |
20209 | exec_prefix="$acl_save_exec_prefix" | |
20210 | prefix="$acl_save_prefix" | |
20211 | ||
7eda51e0 JF |
20212 | if test "X$x" = "X-I$additional_includedir"; then |
20213 | haveit=yes | |
20214 | break | |
20215 | fi | |
20216 | done | |
20217 | if test -z "$haveit"; then | |
20218 | if test -d "$additional_includedir"; then | |
20219 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
20220 | fi | |
20221 | fi | |
20222 | fi | |
20223 | fi | |
20224 | fi | |
20225 | if test -n "$found_la"; then | |
20226 | save_libdir="$libdir" | |
20227 | case "$found_la" in | |
20228 | */* | *\\*) . "$found_la" ;; | |
20229 | *) . "./$found_la" ;; | |
20230 | esac | |
20231 | libdir="$save_libdir" | |
20232 | for dep in $dependency_libs; do | |
20233 | case "$dep" in | |
20234 | -L*) | |
20235 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
20236 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ | |
20237 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then | |
20238 | haveit= | |
20239 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ | |
20240 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then | |
20241 | if test -n "$GCC"; then | |
20242 | case $host_os in | |
20243 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
20244 | esac | |
20245 | fi | |
20246 | fi | |
20247 | if test -z "$haveit"; then | |
20248 | haveit= | |
20249 | for x in $LDFLAGS $LIBICONV; do | |
3fd51f51 DWT |
20250 | |
20251 | acl_save_prefix="$prefix" | |
20252 | prefix="$acl_final_prefix" | |
20253 | acl_save_exec_prefix="$exec_prefix" | |
20254 | exec_prefix="$acl_final_exec_prefix" | |
20255 | eval x=\"$x\" | |
20256 | exec_prefix="$acl_save_exec_prefix" | |
20257 | prefix="$acl_save_prefix" | |
20258 | ||
7eda51e0 JF |
20259 | if test "X$x" = "X-L$additional_libdir"; then |
20260 | haveit=yes | |
20261 | break | |
20262 | fi | |
20263 | done | |
20264 | if test -z "$haveit"; then | |
20265 | if test -d "$additional_libdir"; then | |
20266 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
20267 | fi | |
20268 | fi | |
20269 | haveit= | |
20270 | for x in $LDFLAGS $LTLIBICONV; do | |
632b71ea DWT |
20271 | |
20272 | acl_save_prefix="$prefix" | |
20273 | prefix="$acl_final_prefix" | |
20274 | acl_save_exec_prefix="$exec_prefix" | |
20275 | exec_prefix="$acl_final_exec_prefix" | |
20276 | eval x=\"$x\" | |
20277 | exec_prefix="$acl_save_exec_prefix" | |
20278 | prefix="$acl_save_prefix" | |
20279 | ||
7eda51e0 JF |
20280 | if test "X$x" = "X-L$additional_libdir"; then |
20281 | haveit=yes | |
20282 | break | |
20283 | fi | |
20284 | done | |
20285 | if test -z "$haveit"; then | |
20286 | if test -d "$additional_libdir"; then | |
20287 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
20288 | fi | |
20289 | fi | |
20290 | fi | |
20291 | fi | |
20292 | ;; | |
20293 | -R*) | |
20294 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
20295 | if test "$enable_rpath" != no; then | |
20296 | haveit= | |
20297 | for x in $rpathdirs; do | |
20298 | if test "X$x" = "X$dir"; then | |
20299 | haveit=yes | |
20300 | break | |
20301 | fi | |
20302 | done | |
20303 | if test -z "$haveit"; then | |
20304 | rpathdirs="$rpathdirs $dir" | |
20305 | fi | |
20306 | haveit= | |
20307 | for x in $ltrpathdirs; do | |
20308 | if test "X$x" = "X$dir"; then | |
20309 | haveit=yes | |
20310 | break | |
20311 | fi | |
20312 | done | |
20313 | if test -z "$haveit"; then | |
20314 | ltrpathdirs="$ltrpathdirs $dir" | |
20315 | fi | |
20316 | fi | |
20317 | ;; | |
20318 | -l*) | |
20319 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
20320 | ;; | |
20321 | *.la) | |
20322 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
20323 | ;; | |
20324 | *) | |
20325 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
20326 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
20327 | ;; | |
20328 | esac | |
20329 | done | |
20330 | fi | |
20331 | else | |
20332 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
20333 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
20334 | fi | |
20335 | fi | |
632b71ea DWT |
20336 | fi |
20337 | done | |
632b71ea | 20338 | done |
7eda51e0 JF |
20339 | if test "X$rpathdirs" != "X"; then |
20340 | if test -n "$acl_hardcode_libdir_separator"; then | |
20341 | alldirs= | |
20342 | for found_dir in $rpathdirs; do | |
20343 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
20344 | done | |
20345 | acl_save_libdir="$libdir" | |
20346 | libdir="$alldirs" | |
20347 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
20348 | libdir="$acl_save_libdir" | |
20349 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
20350 | else | |
20351 | for found_dir in $rpathdirs; do | |
20352 | acl_save_libdir="$libdir" | |
20353 | libdir="$found_dir" | |
20354 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
20355 | libdir="$acl_save_libdir" | |
20356 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
20357 | done | |
20358 | fi | |
20359 | fi | |
20360 | if test "X$ltrpathdirs" != "X"; then | |
20361 | for found_dir in $ltrpathdirs; do | |
20362 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
20363 | done | |
20364 | fi | |
632b71ea | 20365 | |
632b71ea | 20366 | |
632b71ea | 20367 | |
632b71ea DWT |
20368 | |
20369 | ||
66170b30 | 20370 | |
a667869d | 20371 | |
632b71ea | 20372 | |
632b71ea | 20373 | |
632b71ea | 20374 | |
a667869d | 20375 | |
a667869d | 20376 | |
7eda51e0 | 20377 | am_save_CPPFLAGS="$CPPFLAGS" |
a667869d | 20378 | |
7eda51e0 | 20379 | for element in $INCICONV; do |
632b71ea | 20380 | haveit= |
7eda51e0 | 20381 | for x in $CPPFLAGS; do |
a667869d | 20382 | |
632b71ea DWT |
20383 | acl_save_prefix="$prefix" |
20384 | prefix="$acl_final_prefix" | |
20385 | acl_save_exec_prefix="$exec_prefix" | |
20386 | exec_prefix="$acl_final_exec_prefix" | |
20387 | eval x=\"$x\" | |
20388 | exec_prefix="$acl_save_exec_prefix" | |
20389 | prefix="$acl_save_prefix" | |
20390 | ||
20391 | if test "X$x" = "X$element"; then | |
20392 | haveit=yes | |
20393 | break | |
20394 | fi | |
20395 | done | |
20396 | if test -z "$haveit"; then | |
7eda51e0 | 20397 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
632b71ea DWT |
20398 | fi |
20399 | done | |
20400 | ||
5053a6d1 | 20401 | |
7eda51e0 JF |
20402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
20403 | $as_echo_n "checking for iconv... " >&6; } | |
20404 | if ${am_cv_func_iconv+:} false; then : | |
5053a6d1 | 20405 | $as_echo_n "(cached) " >&6 |
a667869d | 20406 | else |
632b71ea | 20407 | |
7eda51e0 JF |
20408 | am_cv_func_iconv="no, consider installing GNU libiconv" |
20409 | am_cv_lib_iconv=no | |
20410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5053a6d1 | 20411 | /* end confdefs.h. */ |
632b71ea | 20412 | |
7eda51e0 JF |
20413 | #include <stdlib.h> |
20414 | #include <iconv.h> | |
632b71ea | 20415 | |
5053a6d1 DWT |
20416 | int |
20417 | main () | |
20418 | { | |
7eda51e0 JF |
20419 | iconv_t cd = iconv_open("",""); |
20420 | iconv(cd,NULL,NULL,NULL,NULL); | |
20421 | iconv_close(cd); | |
5053a6d1 DWT |
20422 | ; |
20423 | return 0; | |
20424 | } | |
20425 | _ACEOF | |
7eda51e0 JF |
20426 | if ac_fn_c_try_link "$LINENO"; then : |
20427 | am_cv_func_iconv=yes | |
5053a6d1 DWT |
20428 | fi |
20429 | rm -f core conftest.err conftest.$ac_objext \ | |
20430 | conftest$ac_exeext conftest.$ac_ext | |
7eda51e0 JF |
20431 | if test "$am_cv_func_iconv" != yes; then |
20432 | am_save_LIBS="$LIBS" | |
20433 | LIBS="$LIBS $LIBICONV" | |
20434 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20435 | /* end confdefs.h. */ | |
5053a6d1 | 20436 | |
7eda51e0 JF |
20437 | #include <stdlib.h> |
20438 | #include <iconv.h> | |
5053a6d1 | 20439 | |
058f1bc8 DWT |
20440 | int |
20441 | main () | |
20442 | { | |
7eda51e0 JF |
20443 | iconv_t cd = iconv_open("",""); |
20444 | iconv(cd,NULL,NULL,NULL,NULL); | |
20445 | iconv_close(cd); | |
058f1bc8 DWT |
20446 | ; |
20447 | return 0; | |
20448 | } | |
20449 | _ACEOF | |
7eda51e0 JF |
20450 | if ac_fn_c_try_link "$LINENO"; then : |
20451 | am_cv_lib_iconv=yes | |
20452 | am_cv_func_iconv=yes | |
058f1bc8 DWT |
20453 | fi |
20454 | rm -f core conftest.err conftest.$ac_objext \ | |
20455 | conftest$ac_exeext conftest.$ac_ext | |
7eda51e0 | 20456 | LIBS="$am_save_LIBS" |
058f1bc8 | 20457 | fi |
a667869d | 20458 | |
a667869d | 20459 | fi |
7eda51e0 JF |
20460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
20461 | $as_echo "$am_cv_func_iconv" >&6; } | |
20462 | if test "$am_cv_func_iconv" = yes; then | |
20463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 | |
20464 | $as_echo_n "checking for working iconv... " >&6; } | |
20465 | if ${am_cv_func_iconv_works+:} false; then : | |
20466 | $as_echo_n "(cached) " >&6 | |
20467 | else | |
5053a6d1 | 20468 | |
7eda51e0 JF |
20469 | am_save_LIBS="$LIBS" |
20470 | if test $am_cv_lib_iconv = yes; then | |
20471 | LIBS="$LIBS $LIBICONV" | |
20472 | fi | |
20473 | if test "$cross_compiling" = yes; then : | |
058f1bc8 | 20474 | |
7eda51e0 JF |
20475 | case "$host_os" in |
20476 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; | |
20477 | *) am_cv_func_iconv_works="guessing yes" ;; | |
20478 | esac | |
058f1bc8 | 20479 | |
058f1bc8 | 20480 | else |
7eda51e0 | 20481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
058f1bc8 DWT |
20482 | /* end confdefs.h. */ |
20483 | ||
7eda51e0 JF |
20484 | #include <iconv.h> |
20485 | #include <string.h> | |
20486 | int main () | |
a243b558 | 20487 | { |
7eda51e0 JF |
20488 | int result = 0; |
20489 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful | |
20490 | returns. */ | |
20491 | { | |
20492 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | |
20493 | if (cd_utf8_to_88591 != (iconv_t)(-1)) | |
20494 | { | |
20495 | static const char input[] = "\342\202\254"; /* EURO SIGN */ | |
20496 | char buf[10]; | |
20497 | const char *inptr = input; | |
20498 | size_t inbytesleft = strlen (input); | |
20499 | char *outptr = buf; | |
20500 | size_t outbytesleft = sizeof (buf); | |
20501 | size_t res = iconv (cd_utf8_to_88591, | |
20502 | (char **) &inptr, &inbytesleft, | |
20503 | &outptr, &outbytesleft); | |
20504 | if (res == 0) | |
20505 | result |= 1; | |
20506 | iconv_close (cd_utf8_to_88591); | |
20507 | } | |
20508 | } | |
20509 | /* Test against Solaris 10 bug: Failures are not distinguishable from | |
20510 | successful returns. */ | |
20511 | { | |
20512 | iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); | |
20513 | if (cd_ascii_to_88591 != (iconv_t)(-1)) | |
20514 | { | |
20515 | static const char input[] = "\263"; | |
20516 | char buf[10]; | |
20517 | const char *inptr = input; | |
20518 | size_t inbytesleft = strlen (input); | |
20519 | char *outptr = buf; | |
20520 | size_t outbytesleft = sizeof (buf); | |
20521 | size_t res = iconv (cd_ascii_to_88591, | |
20522 | (char **) &inptr, &inbytesleft, | |
20523 | &outptr, &outbytesleft); | |
20524 | if (res == 0) | |
20525 | result |= 2; | |
20526 | iconv_close (cd_ascii_to_88591); | |
20527 | } | |
20528 | } | |
20529 | /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ | |
20530 | { | |
20531 | iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); | |
20532 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
20533 | { | |
20534 | static const char input[] = "\304"; | |
20535 | static char buf[2] = { (char)0xDE, (char)0xAD }; | |
20536 | const char *inptr = input; | |
20537 | size_t inbytesleft = 1; | |
20538 | char *outptr = buf; | |
20539 | size_t outbytesleft = 1; | |
20540 | size_t res = iconv (cd_88591_to_utf8, | |
20541 | (char **) &inptr, &inbytesleft, | |
20542 | &outptr, &outbytesleft); | |
20543 | if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) | |
20544 | result |= 4; | |
20545 | iconv_close (cd_88591_to_utf8); | |
20546 | } | |
20547 | } | |
20548 | #if 0 /* This bug could be worked around by the caller. */ | |
20549 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | |
20550 | { | |
20551 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | |
20552 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
20553 | { | |
20554 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; | |
20555 | char buf[50]; | |
20556 | const char *inptr = input; | |
20557 | size_t inbytesleft = strlen (input); | |
20558 | char *outptr = buf; | |
20559 | size_t outbytesleft = sizeof (buf); | |
20560 | size_t res = iconv (cd_88591_to_utf8, | |
20561 | (char **) &inptr, &inbytesleft, | |
20562 | &outptr, &outbytesleft); | |
20563 | if ((int)res > 0) | |
20564 | result |= 8; | |
20565 | iconv_close (cd_88591_to_utf8); | |
20566 | } | |
20567 | } | |
20568 | #endif | |
20569 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | |
20570 | provided. */ | |
20571 | if (/* Try standardized names. */ | |
20572 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | |
20573 | /* Try IRIX, OSF/1 names. */ | |
20574 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | |
20575 | /* Try AIX names. */ | |
20576 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | |
20577 | /* Try HP-UX names. */ | |
20578 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | |
20579 | result |= 16; | |
20580 | return result; | |
20581 | } | |
20582 | _ACEOF | |
20583 | if ac_fn_c_try_run "$LINENO"; then : | |
20584 | am_cv_func_iconv_works=yes | |
20585 | else | |
20586 | am_cv_func_iconv_works=no | |
20587 | fi | |
20588 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
20589 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
20590 | fi | |
058f1bc8 | 20591 | |
7eda51e0 | 20592 | LIBS="$am_save_LIBS" |
058f1bc8 | 20593 | |
7eda51e0 JF |
20594 | fi |
20595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 | |
20596 | $as_echo "$am_cv_func_iconv_works" >&6; } | |
20597 | case "$am_cv_func_iconv_works" in | |
20598 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; | |
20599 | *) am_func_iconv=yes ;; | |
20600 | esac | |
20601 | else | |
20602 | am_func_iconv=no am_cv_lib_iconv=no | |
20603 | fi | |
20604 | if test "$am_func_iconv" = yes; then | |
058f1bc8 | 20605 | |
7eda51e0 | 20606 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h |
058f1bc8 | 20607 | |
058f1bc8 | 20608 | fi |
7eda51e0 JF |
20609 | if test "$am_cv_lib_iconv" = yes; then |
20610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | |
20611 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
20612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
20613 | $as_echo "$LIBICONV" >&6; } | |
20614 | else | |
20615 | CPPFLAGS="$am_save_CPPFLAGS" | |
20616 | LIBICONV= | |
20617 | LTLIBICONV= | |
058f1bc8 DWT |
20618 | fi |
20619 | ||
20620 | ||
20621 | ||
7eda51e0 JF |
20622 | if test "$am_cv_func_iconv" = yes; then |
20623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 | |
20624 | $as_echo_n "checking for iconv declaration... " >&6; } | |
20625 | if ${am_cv_proto_iconv+:} false; then : | |
20626 | $as_echo_n "(cached) " >&6 | |
20627 | else | |
20628 | ||
20629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20630 | /* end confdefs.h. */ | |
20631 | ||
20632 | #include <stdlib.h> | |
20633 | #include <iconv.h> | |
20634 | extern | |
20635 | #ifdef __cplusplus | |
20636 | "C" | |
20637 | #endif | |
20638 | #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) | |
20639 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
20640 | #else | |
20641 | size_t iconv(); | |
20642 | #endif | |
20643 | ||
20644 | int | |
20645 | main () | |
20646 | { | |
20647 | ||
20648 | ; | |
20649 | return 0; | |
20650 | } | |
20651 | _ACEOF | |
20652 | if ac_fn_c_try_compile "$LINENO"; then : | |
20653 | am_cv_proto_iconv_arg1="" | |
20654 | else | |
20655 | am_cv_proto_iconv_arg1="const" | |
20656 | fi | |
20657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20658 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" | |
20659 | fi | |
058f1bc8 | 20660 | |
7eda51e0 JF |
20661 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
20662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: | |
20663 | $am_cv_proto_iconv" >&5 | |
20664 | $as_echo " | |
20665 | $am_cv_proto_iconv" >&6; } | |
058f1bc8 | 20666 | |
7eda51e0 JF |
20667 | cat >>confdefs.h <<_ACEOF |
20668 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
20669 | _ACEOF | |
058f1bc8 DWT |
20670 | |
20671 | ||
7eda51e0 | 20672 | fi |
058f1bc8 | 20673 | |
058f1bc8 DWT |
20674 | case $am_cv_func_iconv in #( |
20675 | yes) : | |
20676 | ;; #( | |
20677 | *) : | |
66170b30 | 20678 | as_fn_error $? "missing \"libiconv\"" "$LINENO" 5 ;; |
058f1bc8 DWT |
20679 | esac |
20680 | ac_ext=cpp | |
20681 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20682 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20683 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20684 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20685 | ||
66170b30 JF |
20686 | |
20687 | ||
9777bd50 JF |
20688 | SO=$acl_shlibext |
20689 | ||
e1cce270 | 20690 | |
7eda51e0 JF |
20691 | if test "x$CY_EXECUTE" = x1; then : |
20692 | ||
20693 | ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" | |
ee134472 | 20694 | if test "x$ac_cv_header_mach_mach_h" = xyes; then : |
e1cce270 | 20695 | |
7eda51e0 | 20696 | if test -n "$ac_tool_prefix"; then |
a243b558 | 20697 | for ac_prog in lipo |
794e88e7 DWT |
20698 | do |
20699 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
20700 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
20701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20702 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 20703 | if ${ac_cv_prog__LIPO+:} false; then : |
794e88e7 DWT |
20704 | $as_echo_n "(cached) " >&6 |
20705 | else | |
a243b558 JF |
20706 | if test -n "$_LIPO"; then |
20707 | ac_cv_prog__LIPO="$_LIPO" # Let the user override the test. | |
794e88e7 DWT |
20708 | else |
20709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20710 | for as_dir in $PATH | |
20711 | do | |
20712 | IFS=$as_save_IFS | |
20713 | test -z "$as_dir" && as_dir=. | |
20714 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 20715 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 20716 | ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog" |
794e88e7 DWT |
20717 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20718 | break 2 | |
20719 | fi | |
20720 | done | |
20721 | done | |
20722 | IFS=$as_save_IFS | |
20723 | ||
20724 | fi | |
20725 | fi | |
a243b558 JF |
20726 | _LIPO=$ac_cv_prog__LIPO |
20727 | if test -n "$_LIPO"; then | |
20728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5 | |
20729 | $as_echo "$_LIPO" >&6; } | |
794e88e7 DWT |
20730 | else |
20731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20732 | $as_echo "no" >&6; } | |
20733 | fi | |
20734 | ||
20735 | ||
a243b558 | 20736 | test -n "$_LIPO" && break |
794e88e7 DWT |
20737 | done |
20738 | fi | |
a243b558 JF |
20739 | if test -z "$_LIPO"; then |
20740 | ac_ct__LIPO=$_LIPO | |
20741 | for ac_prog in lipo | |
794e88e7 DWT |
20742 | do |
20743 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
20744 | set dummy $ac_prog; ac_word=$2 | |
20745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20746 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 20747 | if ${ac_cv_prog_ac_ct__LIPO+:} false; then : |
794e88e7 DWT |
20748 | $as_echo_n "(cached) " >&6 |
20749 | else | |
a243b558 JF |
20750 | if test -n "$ac_ct__LIPO"; then |
20751 | ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test. | |
794e88e7 DWT |
20752 | else |
20753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20754 | for as_dir in $PATH | |
20755 | do | |
20756 | IFS=$as_save_IFS | |
20757 | test -z "$as_dir" && as_dir=. | |
20758 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 20759 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 20760 | ac_cv_prog_ac_ct__LIPO="$ac_prog" |
794e88e7 DWT |
20761 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20762 | break 2 | |
20763 | fi | |
20764 | done | |
20765 | done | |
20766 | IFS=$as_save_IFS | |
20767 | ||
20768 | fi | |
20769 | fi | |
a243b558 JF |
20770 | ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO |
20771 | if test -n "$ac_ct__LIPO"; then | |
20772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5 | |
20773 | $as_echo "$ac_ct__LIPO" >&6; } | |
794e88e7 DWT |
20774 | else |
20775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20776 | $as_echo "no" >&6; } | |
20777 | fi | |
20778 | ||
20779 | ||
a243b558 | 20780 | test -n "$ac_ct__LIPO" && break |
794e88e7 DWT |
20781 | done |
20782 | ||
a243b558 JF |
20783 | if test "x$ac_ct__LIPO" = x; then |
20784 | _LIPO="as_fn_error $? "missing \"lipo\"" "$LINENO" 5" | |
794e88e7 DWT |
20785 | else |
20786 | case $cross_compiling:$ac_tool_warned in | |
20787 | yes:) | |
20788 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
20789 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
20790 | ac_tool_warned=yes ;; | |
e1cce270 | 20791 | esac |
a243b558 | 20792 | _LIPO=$ac_ct__LIPO |
794e88e7 DWT |
20793 | fi |
20794 | fi | |
20795 | ||
7eda51e0 | 20796 | if test -n "$ac_tool_prefix"; then |
a243b558 | 20797 | for ac_prog in nm |
794e88e7 DWT |
20798 | do |
20799 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
20800 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
20801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20802 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 20803 | if ${ac_cv_prog__NM+:} false; then : |
794e88e7 DWT |
20804 | $as_echo_n "(cached) " >&6 |
20805 | else | |
a243b558 JF |
20806 | if test -n "$_NM"; then |
20807 | ac_cv_prog__NM="$_NM" # Let the user override the test. | |
794e88e7 DWT |
20808 | else |
20809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20810 | for as_dir in $PATH | |
20811 | do | |
20812 | IFS=$as_save_IFS | |
20813 | test -z "$as_dir" && as_dir=. | |
20814 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 20815 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 20816 | ac_cv_prog__NM="$ac_tool_prefix$ac_prog" |
794e88e7 DWT |
20817 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20818 | break 2 | |
20819 | fi | |
20820 | done | |
20821 | done | |
20822 | IFS=$as_save_IFS | |
20823 | ||
20824 | fi | |
20825 | fi | |
a243b558 JF |
20826 | _NM=$ac_cv_prog__NM |
20827 | if test -n "$_NM"; then | |
20828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5 | |
20829 | $as_echo "$_NM" >&6; } | |
794e88e7 DWT |
20830 | else |
20831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20832 | $as_echo "no" >&6; } | |
20833 | fi | |
20834 | ||
20835 | ||
a243b558 | 20836 | test -n "$_NM" && break |
794e88e7 DWT |
20837 | done |
20838 | fi | |
a243b558 JF |
20839 | if test -z "$_NM"; then |
20840 | ac_ct__NM=$_NM | |
20841 | for ac_prog in nm | |
794e88e7 DWT |
20842 | do |
20843 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
20844 | set dummy $ac_prog; ac_word=$2 | |
20845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20846 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 20847 | if ${ac_cv_prog_ac_ct__NM+:} false; then : |
794e88e7 DWT |
20848 | $as_echo_n "(cached) " >&6 |
20849 | else | |
a243b558 JF |
20850 | if test -n "$ac_ct__NM"; then |
20851 | ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test. | |
794e88e7 DWT |
20852 | else |
20853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20854 | for as_dir in $PATH | |
20855 | do | |
20856 | IFS=$as_save_IFS | |
20857 | test -z "$as_dir" && as_dir=. | |
20858 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 20859 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 20860 | ac_cv_prog_ac_ct__NM="$ac_prog" |
794e88e7 DWT |
20861 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20862 | break 2 | |
20863 | fi | |
20864 | done | |
20865 | done | |
20866 | IFS=$as_save_IFS | |
20867 | ||
20868 | fi | |
20869 | fi | |
a243b558 JF |
20870 | ac_ct__NM=$ac_cv_prog_ac_ct__NM |
20871 | if test -n "$ac_ct__NM"; then | |
20872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5 | |
20873 | $as_echo "$ac_ct__NM" >&6; } | |
794e88e7 DWT |
20874 | else |
20875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20876 | $as_echo "no" >&6; } | |
20877 | fi | |
20878 | ||
20879 | ||
a243b558 | 20880 | test -n "$ac_ct__NM" && break |
794e88e7 DWT |
20881 | done |
20882 | ||
a243b558 JF |
20883 | if test "x$ac_ct__NM" = x; then |
20884 | _NM="as_fn_error $? "missing \"nm\"" "$LINENO" 5" | |
794e88e7 DWT |
20885 | else |
20886 | case $cross_compiling:$ac_tool_warned in | |
20887 | yes:) | |
20888 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
20889 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
20890 | ac_tool_warned=yes ;; | |
20891 | esac | |
a243b558 | 20892 | _NM=$ac_ct__NM |
794e88e7 DWT |
20893 | fi |
20894 | fi | |
20895 | ||
7eda51e0 | 20896 | if test -n "$ac_tool_prefix"; then |
a243b558 | 20897 | for ac_prog in otool |
794e88e7 DWT |
20898 | do |
20899 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
20900 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
20901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20902 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 20903 | if ${ac_cv_prog__OTOOL+:} false; then : |
794e88e7 DWT |
20904 | $as_echo_n "(cached) " >&6 |
20905 | else | |
a243b558 JF |
20906 | if test -n "$_OTOOL"; then |
20907 | ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test. | |
794e88e7 DWT |
20908 | else |
20909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20910 | for as_dir in $PATH | |
20911 | do | |
20912 | IFS=$as_save_IFS | |
20913 | test -z "$as_dir" && as_dir=. | |
20914 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 20915 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 20916 | ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog" |
794e88e7 DWT |
20917 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20918 | break 2 | |
20919 | fi | |
20920 | done | |
20921 | done | |
20922 | IFS=$as_save_IFS | |
20923 | ||
20924 | fi | |
20925 | fi | |
a243b558 JF |
20926 | _OTOOL=$ac_cv_prog__OTOOL |
20927 | if test -n "$_OTOOL"; then | |
20928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5 | |
20929 | $as_echo "$_OTOOL" >&6; } | |
794e88e7 DWT |
20930 | else |
20931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20932 | $as_echo "no" >&6; } | |
20933 | fi | |
20934 | ||
20935 | ||
a243b558 | 20936 | test -n "$_OTOOL" && break |
794e88e7 DWT |
20937 | done |
20938 | fi | |
a243b558 JF |
20939 | if test -z "$_OTOOL"; then |
20940 | ac_ct__OTOOL=$_OTOOL | |
20941 | for ac_prog in otool | |
794e88e7 DWT |
20942 | do |
20943 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
20944 | set dummy $ac_prog; ac_word=$2 | |
20945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20946 | $as_echo_n "checking for $ac_word... " >&6; } | |
a243b558 | 20947 | if ${ac_cv_prog_ac_ct__OTOOL+:} false; then : |
794e88e7 DWT |
20948 | $as_echo_n "(cached) " >&6 |
20949 | else | |
a243b558 JF |
20950 | if test -n "$ac_ct__OTOOL"; then |
20951 | ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test. | |
794e88e7 DWT |
20952 | else |
20953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20954 | for as_dir in $PATH | |
20955 | do | |
20956 | IFS=$as_save_IFS | |
20957 | test -z "$as_dir" && as_dir=. | |
20958 | for ac_exec_ext in '' $ac_executable_extensions; do | |
53ba6704 | 20959 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a243b558 | 20960 | ac_cv_prog_ac_ct__OTOOL="$ac_prog" |
794e88e7 DWT |
20961 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20962 | break 2 | |
20963 | fi | |
20964 | done | |
20965 | done | |
20966 | IFS=$as_save_IFS | |
20967 | ||
20968 | fi | |
20969 | fi | |
a243b558 JF |
20970 | ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL |
20971 | if test -n "$ac_ct__OTOOL"; then | |
20972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5 | |
20973 | $as_echo "$ac_ct__OTOOL" >&6; } | |
794e88e7 DWT |
20974 | else |
20975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20976 | $as_echo "no" >&6; } | |
20977 | fi | |
20978 | ||
20979 | ||
a243b558 | 20980 | test -n "$ac_ct__OTOOL" && break |
794e88e7 DWT |
20981 | done |
20982 | ||
a243b558 JF |
20983 | if test "x$ac_ct__OTOOL" = x; then |
20984 | _OTOOL="as_fn_error $? "missing \"otool\"" "$LINENO" 5" | |
794e88e7 DWT |
20985 | else |
20986 | case $cross_compiling:$ac_tool_warned in | |
20987 | yes:) | |
20988 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
20989 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
20990 | ac_tool_warned=yes ;; | |
20991 | esac | |
a243b558 | 20992 | _OTOOL=$ac_ct__OTOOL |
794e88e7 DWT |
20993 | fi |
20994 | fi | |
20995 | ||
7eda51e0 | 20996 | CY_ATTACH_GROUP=procmod |
794e88e7 | 20997 | |
7eda51e0 | 20998 | CY_MACH=1 |
e1cce270 DWT |
20999 | |
21000 | fi | |
21001 | ||
21002 | ||
7eda51e0 | 21003 | fi |
a243b558 JF |
21004 | if test "x$CY_MACH" = x1; then |
21005 | CY_MACH_TRUE= | |
21006 | CY_MACH_FALSE='#' | |
21007 | else | |
21008 | CY_MACH_TRUE='#' | |
21009 | CY_MACH_FALSE= | |
47aaa820 | 21010 | fi |
9c60689e | 21011 | |
66170b30 | 21012 | |
a243b558 JF |
21013 | ac_config_files="$ac_config_files Makefile" |
21014 | ||
9c60689e DWT |
21015 | cat >confcache <<\_ACEOF |
21016 | # This file is a shell script that caches the results of configure | |
21017 | # tests run on this system so they can be shared between configure | |
21018 | # scripts and configure runs, see configure's option --config-cache. | |
21019 | # It is not useful on other systems. If it contains results you don't | |
21020 | # want to keep, you may remove or edit it. | |
21021 | # | |
21022 | # config.status only pays attention to the cache file if you give it | |
21023 | # the --recheck option to rerun configure. | |
21024 | # | |
21025 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
21026 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
21027 | # following values. | |
21028 | ||
21029 | _ACEOF | |
21030 | ||
21031 | # The following way of writing the cache mishandles newlines in values, | |
21032 | # but we know of no workaround that is simple, portable, and efficient. | |
21033 | # So, we kill variables containing newlines. | |
21034 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
21035 | # and sets the high bit in the cache file unless we assign to the vars. | |
21036 | ( | |
21037 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
21038 | eval ac_val=\$$ac_var | |
21039 | case $ac_val in #( | |
21040 | *${as_nl}*) | |
21041 | case $ac_var in #( | |
21042 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
21043 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
21044 | esac | |
21045 | case $ac_var in #( | |
21046 | _ | IFS | as_nl) ;; #( | |
21047 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
21048 | *) { eval $ac_var=; unset $ac_var;} ;; | |
21049 | esac ;; | |
21050 | esac | |
21051 | done | |
21052 | ||
21053 | (set) 2>&1 | | |
21054 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
21055 | *${as_nl}ac_space=\ *) | |
21056 | # `set' does not quote correctly, so add quotes: double-quote | |
21057 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
21058 | sed -n \ | |
21059 | "s/'/'\\\\''/g; | |
21060 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
21061 | ;; #( | |
21062 | *) | |
21063 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
21064 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
21065 | ;; | |
21066 | esac | | |
21067 | sort | |
21068 | ) | | |
21069 | sed ' | |
21070 | /^ac_cv_env_/b end | |
21071 | t clear | |
21072 | :clear | |
21073 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
21074 | t end | |
21075 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
21076 | :end' >>confcache | |
21077 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
21078 | if test -w "$cache_file"; then | |
ee134472 | 21079 | if test "x$cache_file" != "x/dev/null"; then |
9c60689e DWT |
21080 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
21081 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ee134472 JF |
21082 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
21083 | cat confcache >"$cache_file" | |
21084 | else | |
21085 | case $cache_file in #( | |
21086 | */* | ?:*) | |
21087 | mv -f confcache "$cache_file"$$ && | |
21088 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
21089 | *) | |
21090 | mv -f confcache "$cache_file" ;; | |
21091 | esac | |
21092 | fi | |
21093 | fi | |
9c60689e DWT |
21094 | else |
21095 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
21096 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
21097 | fi | |
21098 | fi | |
21099 | rm -f confcache | |
21100 | ||
21101 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
21102 | # Let make expand exec_prefix. | |
21103 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
21104 | ||
296ee9a6 | 21105 | DEFS=-DHAVE_CONFIG_H |
9c60689e DWT |
21106 | |
21107 | ac_libobjs= | |
21108 | ac_ltlibobjs= | |
12833ad8 | 21109 | U= |
9c60689e DWT |
21110 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
21111 | # 1. Remove the extension, and $U if already installed. | |
21112 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
21113 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
21114 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
21115 | # will be set to the directory where LIBOBJS objects are built. | |
21116 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
21117 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
21118 | done | |
21119 | LIBOBJS=$ac_libobjs | |
21120 | ||
21121 | LTLIBOBJS=$ac_ltlibobjs | |
21122 | ||
21123 | ||
66170b30 JF |
21124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
21125 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
21126 | if test -n "$am_sleep_pid"; then | |
21127 | # Hide warnings about reused PIDs. | |
21128 | wait $am_sleep_pid 2>/dev/null | |
21129 | fi | |
21130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
21131 | $as_echo "done" >&6; } | |
21132 | if test -n "$EXEEXT"; then | |
21133 | am__EXEEXT_TRUE= | |
21134 | am__EXEEXT_FALSE='#' | |
21135 | else | |
21136 | am__EXEEXT_TRUE='#' | |
21137 | am__EXEEXT_FALSE= | |
21138 | fi | |
21139 | ||
21140 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
21141 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
21142 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21143 | fi | |
66170b30 JF |
21144 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
21145 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | |
21146 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21147 | fi | |
21148 | if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then | |
21149 | as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined. | |
21150 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21151 | fi | |
a243b558 JF |
21152 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
21153 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
21154 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21155 | fi | |
21156 | if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then | |
21157 | as_fn_error $? "conditional \"CY_EXECUTE\" was never defined. | |
21158 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21159 | fi | |
21160 | if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then | |
21161 | as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined. | |
21162 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21163 | fi | |
21164 | if test -z "${CY_MACH_TRUE}" && test -z "${CY_MACH_FALSE}"; then | |
21165 | as_fn_error $? "conditional \"CY_MACH\" was never defined. | |
21166 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21167 | fi | |
9c60689e | 21168 | |
ee134472 | 21169 | : "${CONFIG_STATUS=./config.status}" |
9c60689e DWT |
21170 | ac_write_fail=0 |
21171 | ac_clean_files_save=$ac_clean_files | |
21172 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
21173 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
21174 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
21175 | as_write_fail=0 | |
21176 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
21177 | #! $SHELL | |
21178 | # Generated by $as_me. | |
21179 | # Run this file to recreate the current configuration. | |
21180 | # Compiler output produced by configure, useful for debugging | |
21181 | # configure, is in config.log if it exists. | |
21182 | ||
21183 | debug=false | |
21184 | ac_cs_recheck=false | |
21185 | ac_cs_silent=false | |
21186 | ||
21187 | SHELL=\${CONFIG_SHELL-$SHELL} | |
21188 | export SHELL | |
21189 | _ASEOF | |
21190 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
21191 | ## -------------------- ## | |
21192 | ## M4sh Initialization. ## | |
21193 | ## -------------------- ## | |
21194 | ||
21195 | # Be more Bourne compatible | |
21196 | DUALCASE=1; export DUALCASE # for MKS sh | |
21197 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
21198 | emulate sh | |
21199 | NULLCMD=: | |
21200 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
21201 | # is contrary to our usage. Disable this feature. | |
21202 | alias -g '${1+"$@"}'='"$@"' | |
21203 | setopt NO_GLOB_SUBST | |
21204 | else | |
21205 | case `(set -o) 2>/dev/null` in #( | |
21206 | *posix*) : | |
21207 | set -o posix ;; #( | |
21208 | *) : | |
21209 | ;; | |
21210 | esac | |
21211 | fi | |
21212 | ||
21213 | ||
21214 | as_nl=' | |
21215 | ' | |
21216 | export as_nl | |
21217 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
21218 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
21219 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
21220 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
21221 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
21222 | # but without wasting forks for bash or zsh. | |
21223 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
21224 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
21225 | as_echo='print -r --' | |
21226 | as_echo_n='print -rn --' | |
21227 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
21228 | as_echo='printf %s\n' | |
21229 | as_echo_n='printf %s' | |
21230 | else | |
21231 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
21232 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
21233 | as_echo_n='/usr/ucb/echo -n' | |
21234 | else | |
21235 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
21236 | as_echo_n_body='eval | |
21237 | arg=$1; | |
21238 | case $arg in #( | |
21239 | *"$as_nl"*) | |
21240 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
21241 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
21242 | esac; | |
21243 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
21244 | ' | |
21245 | export as_echo_n_body | |
21246 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
21247 | fi | |
21248 | export as_echo_body | |
21249 | as_echo='sh -c $as_echo_body as_echo' | |
21250 | fi | |
21251 | ||
21252 | # The user is always right. | |
21253 | if test "${PATH_SEPARATOR+set}" != set; then | |
21254 | PATH_SEPARATOR=: | |
21255 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
21256 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
21257 | PATH_SEPARATOR=';' | |
21258 | } | |
21259 | fi | |
21260 | ||
21261 | ||
21262 | # IFS | |
21263 | # We need space, tab and new line, in precisely that order. Quoting is | |
21264 | # there to prevent editors from complaining about space-tab. | |
21265 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
21266 | # splitting by setting IFS to empty value.) | |
21267 | IFS=" "" $as_nl" | |
21268 | ||
21269 | # Find who we are. Look in the path if we contain no directory separator. | |
ee134472 | 21270 | as_myself= |
9c60689e DWT |
21271 | case $0 in #(( |
21272 | *[\\/]* ) as_myself=$0 ;; | |
21273 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21274 | for as_dir in $PATH | |
21275 | do | |
21276 | IFS=$as_save_IFS | |
21277 | test -z "$as_dir" && as_dir=. | |
21278 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
21279 | done | |
21280 | IFS=$as_save_IFS | |
21281 | ||
21282 | ;; | |
21283 | esac | |
21284 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
21285 | # in which case we are not to be found in the path. | |
21286 | if test "x$as_myself" = x; then | |
21287 | as_myself=$0 | |
21288 | fi | |
21289 | if test ! -f "$as_myself"; then | |
21290 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
21291 | exit 1 | |
21292 | fi | |
21293 | ||
21294 | # Unset variables that we do not need and which cause bugs (e.g. in | |
21295 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
21296 | # suppresses any "Segmentation fault" message there. '((' could | |
21297 | # trigger a bug in pdksh 5.2.14. | |
21298 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
21299 | do eval test x\${$as_var+set} = xset \ | |
21300 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
21301 | done | |
21302 | PS1='$ ' | |
21303 | PS2='> ' | |
21304 | PS4='+ ' | |
21305 | ||
21306 | # NLS nuisances. | |
21307 | LC_ALL=C | |
21308 | export LC_ALL | |
21309 | LANGUAGE=C | |
21310 | export LANGUAGE | |
21311 | ||
21312 | # CDPATH. | |
21313 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
21314 | ||
21315 | ||
12833ad8 JF |
21316 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
21317 | # ---------------------------------------- | |
9c60689e DWT |
21318 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
21319 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
12833ad8 | 21320 | # script with STATUS, using 1 if that was 0. |
9c60689e DWT |
21321 | as_fn_error () |
21322 | { | |
12833ad8 JF |
21323 | as_status=$1; test $as_status -eq 0 && as_status=1 |
21324 | if test "$4"; then | |
21325 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
21326 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
9c60689e | 21327 | fi |
12833ad8 | 21328 | $as_echo "$as_me: error: $2" >&2 |
9c60689e DWT |
21329 | as_fn_exit $as_status |
21330 | } # as_fn_error | |
21331 | ||
21332 | ||
21333 | # as_fn_set_status STATUS | |
21334 | # ----------------------- | |
21335 | # Set $? to STATUS, without forking. | |
21336 | as_fn_set_status () | |
21337 | { | |
21338 | return $1 | |
21339 | } # as_fn_set_status | |
21340 | ||
21341 | # as_fn_exit STATUS | |
21342 | # ----------------- | |
21343 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
21344 | as_fn_exit () | |
21345 | { | |
21346 | set +e | |
21347 | as_fn_set_status $1 | |
21348 | exit $1 | |
21349 | } # as_fn_exit | |
21350 | ||
21351 | # as_fn_unset VAR | |
21352 | # --------------- | |
21353 | # Portably unset VAR. | |
21354 | as_fn_unset () | |
21355 | { | |
21356 | { eval $1=; unset $1;} | |
21357 | } | |
21358 | as_unset=as_fn_unset | |
21359 | # as_fn_append VAR VALUE | |
21360 | # ---------------------- | |
21361 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
21362 | # advantage of any shell optimizations that allow amortized linear growth over | |
21363 | # repeated appends, instead of the typical quadratic growth present in naive | |
21364 | # implementations. | |
21365 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
21366 | eval 'as_fn_append () | |
21367 | { | |
21368 | eval $1+=\$2 | |
21369 | }' | |
21370 | else | |
21371 | as_fn_append () | |
21372 | { | |
21373 | eval $1=\$$1\$2 | |
21374 | } | |
21375 | fi # as_fn_append | |
21376 | ||
21377 | # as_fn_arith ARG... | |
21378 | # ------------------ | |
21379 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
21380 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
21381 | # must be portable across $(()) and expr. | |
21382 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
21383 | eval 'as_fn_arith () | |
21384 | { | |
21385 | as_val=$(( $* )) | |
21386 | }' | |
21387 | else | |
21388 | as_fn_arith () | |
21389 | { | |
21390 | as_val=`expr "$@" || test $? -eq 1` | |
21391 | } | |
21392 | fi # as_fn_arith | |
21393 | ||
21394 | ||
21395 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
21396 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
21397 | as_expr=expr | |
21398 | else | |
21399 | as_expr=false | |
21400 | fi | |
21401 | ||
21402 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
21403 | as_basename=basename | |
21404 | else | |
21405 | as_basename=false | |
21406 | fi | |
21407 | ||
21408 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
21409 | as_dirname=dirname | |
21410 | else | |
21411 | as_dirname=false | |
21412 | fi | |
21413 | ||
21414 | as_me=`$as_basename -- "$0" || | |
21415 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
21416 | X"$0" : 'X\(//\)$' \| \ | |
21417 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
21418 | $as_echo X/"$0" | | |
21419 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
21420 | s//\1/ | |
21421 | q | |
21422 | } | |
21423 | /^X\/\(\/\/\)$/{ | |
21424 | s//\1/ | |
21425 | q | |
21426 | } | |
21427 | /^X\/\(\/\).*/{ | |
21428 | s//\1/ | |
21429 | q | |
21430 | } | |
21431 | s/.*/./; q'` | |
21432 | ||
21433 | # Avoid depending upon Character Ranges. | |
21434 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
21435 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
21436 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
21437 | as_cr_digits='0123456789' | |
21438 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
21439 | ||
21440 | ECHO_C= ECHO_N= ECHO_T= | |
21441 | case `echo -n x` in #((((( | |
21442 | -n*) | |
21443 | case `echo 'xy\c'` in | |
21444 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
21445 | xy) ECHO_C='\c';; | |
21446 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
21447 | ECHO_T=' ';; | |
21448 | esac;; | |
21449 | *) | |
21450 | ECHO_N='-n';; | |
21451 | esac | |
21452 | ||
21453 | rm -f conf$$ conf$$.exe conf$$.file | |
21454 | if test -d conf$$.dir; then | |
21455 | rm -f conf$$.dir/conf$$.file | |
21456 | else | |
21457 | rm -f conf$$.dir | |
21458 | mkdir conf$$.dir 2>/dev/null | |
21459 | fi | |
21460 | if (echo >conf$$.file) 2>/dev/null; then | |
21461 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
21462 | as_ln_s='ln -s' | |
21463 | # ... but there are two gotchas: | |
21464 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
21465 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
53ba6704 | 21466 | # In both cases, we have to default to `cp -pR'. |
9c60689e | 21467 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
53ba6704 | 21468 | as_ln_s='cp -pR' |
9c60689e DWT |
21469 | elif ln conf$$.file conf$$ 2>/dev/null; then |
21470 | as_ln_s=ln | |
21471 | else | |
53ba6704 | 21472 | as_ln_s='cp -pR' |
9c60689e DWT |
21473 | fi |
21474 | else | |
53ba6704 | 21475 | as_ln_s='cp -pR' |
9c60689e DWT |
21476 | fi |
21477 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
21478 | rmdir conf$$.dir 2>/dev/null | |
21479 | ||
21480 | ||
21481 | # as_fn_mkdir_p | |
21482 | # ------------- | |
21483 | # Create "$as_dir" as a directory, including parents if necessary. | |
21484 | as_fn_mkdir_p () | |
21485 | { | |
21486 | ||
21487 | case $as_dir in #( | |
21488 | -*) as_dir=./$as_dir;; | |
21489 | esac | |
21490 | test -d "$as_dir" || eval $as_mkdir_p || { | |
21491 | as_dirs= | |
21492 | while :; do | |
21493 | case $as_dir in #( | |
21494 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
21495 | *) as_qdir=$as_dir;; | |
21496 | esac | |
21497 | as_dirs="'$as_qdir' $as_dirs" | |
21498 | as_dir=`$as_dirname -- "$as_dir" || | |
21499 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21500 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
21501 | X"$as_dir" : 'X\(//\)$' \| \ | |
21502 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
21503 | $as_echo X"$as_dir" | | |
21504 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
21505 | s//\1/ | |
21506 | q | |
21507 | } | |
21508 | /^X\(\/\/\)[^/].*/{ | |
21509 | s//\1/ | |
21510 | q | |
21511 | } | |
21512 | /^X\(\/\/\)$/{ | |
21513 | s//\1/ | |
21514 | q | |
21515 | } | |
21516 | /^X\(\/\).*/{ | |
21517 | s//\1/ | |
21518 | q | |
21519 | } | |
21520 | s/.*/./; q'` | |
21521 | test -d "$as_dir" && break | |
21522 | done | |
21523 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
12833ad8 | 21524 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
9c60689e DWT |
21525 | |
21526 | ||
21527 | } # as_fn_mkdir_p | |
21528 | if mkdir -p . 2>/dev/null; then | |
21529 | as_mkdir_p='mkdir -p "$as_dir"' | |
21530 | else | |
21531 | test -d ./-p && rmdir ./-p | |
21532 | as_mkdir_p=false | |
21533 | fi | |
21534 | ||
53ba6704 JF |
21535 | |
21536 | # as_fn_executable_p FILE | |
21537 | # ----------------------- | |
21538 | # Test if FILE is an executable regular file. | |
21539 | as_fn_executable_p () | |
21540 | { | |
21541 | test -f "$1" && test -x "$1" | |
21542 | } # as_fn_executable_p | |
21543 | as_test_x='test -x' | |
21544 | as_executable_p=as_fn_executable_p | |
9c60689e DWT |
21545 | |
21546 | # Sed expression to map a string onto a valid CPP name. | |
21547 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
21548 | ||
21549 | # Sed expression to map a string onto a valid variable name. | |
21550 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
21551 | ||
21552 | ||
21553 | exec 6>&1 | |
21554 | ## ----------------------------------- ## | |
21555 | ## Main body of $CONFIG_STATUS script. ## | |
21556 | ## ----------------------------------- ## | |
21557 | _ASEOF | |
21558 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
21559 | ||
21560 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21561 | # Save the log message, to keep $0 and so on meaningful, and to | |
21562 | # report actual input values of CONFIG_FILES etc. instead of their | |
21563 | # values after options handling. | |
21564 | ac_log=" | |
21565 | This file was extended by Cycript $as_me 0.9, which was | |
53ba6704 | 21566 | generated by GNU Autoconf 2.69. Invocation command line was |
9c60689e DWT |
21567 | |
21568 | CONFIG_FILES = $CONFIG_FILES | |
21569 | CONFIG_HEADERS = $CONFIG_HEADERS | |
21570 | CONFIG_LINKS = $CONFIG_LINKS | |
21571 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
21572 | $ $0 $@ | |
21573 | ||
21574 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
21575 | " | |
21576 | ||
21577 | _ACEOF | |
21578 | ||
21579 | case $ac_config_files in *" | |
21580 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
21581 | esac | |
21582 | ||
296ee9a6 JF |
21583 | case $ac_config_headers in *" |
21584 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
21585 | esac | |
9c60689e DWT |
21586 | |
21587 | ||
21588 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21589 | # Files that config.status was made for. | |
21590 | config_files="$ac_config_files" | |
296ee9a6 | 21591 | config_headers="$ac_config_headers" |
9c60689e DWT |
21592 | config_commands="$ac_config_commands" |
21593 | ||
21594 | _ACEOF | |
21595 | ||
21596 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21597 | ac_cs_usage="\ | |
21598 | \`$as_me' instantiates files and other configuration actions | |
21599 | from templates according to the current configuration. Unless the files | |
21600 | and actions are specified as TAGs, all are instantiated by default. | |
21601 | ||
21602 | Usage: $0 [OPTION]... [TAG]... | |
21603 | ||
21604 | -h, --help print this help, then exit | |
21605 | -V, --version print version number and configuration settings, then exit | |
21606 | --config print configuration, then exit | |
21607 | -q, --quiet, --silent | |
21608 | do not print progress messages | |
21609 | -d, --debug don't remove temporary files | |
21610 | --recheck update $as_me by reconfiguring in the same conditions | |
21611 | --file=FILE[:TEMPLATE] | |
21612 | instantiate the configuration file FILE | |
296ee9a6 JF |
21613 | --header=FILE[:TEMPLATE] |
21614 | instantiate the configuration header FILE | |
9c60689e DWT |
21615 | |
21616 | Configuration files: | |
21617 | $config_files | |
21618 | ||
296ee9a6 JF |
21619 | Configuration headers: |
21620 | $config_headers | |
21621 | ||
9c60689e DWT |
21622 | Configuration commands: |
21623 | $config_commands | |
21624 | ||
21625 | Report bugs to <saurik@saurik.com>. | |
21626 | Cycript home page: <http://www.cycript.org/>." | |
21627 | ||
21628 | _ACEOF | |
21629 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21630 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
21631 | ac_cs_version="\\ | |
21632 | Cycript config.status 0.9 | |
53ba6704 | 21633 | configured by $0, generated by GNU Autoconf 2.69, |
9c60689e DWT |
21634 | with options \\"\$ac_cs_config\\" |
21635 | ||
53ba6704 | 21636 | Copyright (C) 2012 Free Software Foundation, Inc. |
9c60689e DWT |
21637 | This config.status script is free software; the Free Software Foundation |
21638 | gives unlimited permission to copy, distribute and modify it." | |
21639 | ||
21640 | ac_pwd='$ac_pwd' | |
21641 | srcdir='$srcdir' | |
21642 | INSTALL='$INSTALL' | |
66170b30 JF |
21643 | MKDIR_P='$MKDIR_P' |
21644 | AWK='$AWK' | |
9c60689e DWT |
21645 | test -n "\$AWK" || AWK=awk |
21646 | _ACEOF | |
21647 | ||
21648 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21649 | # The default lists apply if the user does not specify any file. | |
21650 | ac_need_defaults=: | |
21651 | while test $# != 0 | |
21652 | do | |
21653 | case $1 in | |
12833ad8 | 21654 | --*=?*) |
9c60689e DWT |
21655 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
21656 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
21657 | ac_shift=: | |
21658 | ;; | |
12833ad8 JF |
21659 | --*=) |
21660 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
21661 | ac_optarg= | |
21662 | ac_shift=: | |
21663 | ;; | |
9c60689e DWT |
21664 | *) |
21665 | ac_option=$1 | |
21666 | ac_optarg=$2 | |
21667 | ac_shift=shift | |
21668 | ;; | |
21669 | esac | |
21670 | ||
21671 | case $ac_option in | |
21672 | # Handling of the options. | |
21673 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
21674 | ac_cs_recheck=: ;; | |
21675 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
21676 | $as_echo "$ac_cs_version"; exit ;; | |
21677 | --config | --confi | --conf | --con | --co | --c ) | |
21678 | $as_echo "$ac_cs_config"; exit ;; | |
21679 | --debug | --debu | --deb | --de | --d | -d ) | |
21680 | debug=: ;; | |
21681 | --file | --fil | --fi | --f ) | |
21682 | $ac_shift | |
21683 | case $ac_optarg in | |
21684 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12833ad8 | 21685 | '') as_fn_error $? "missing file argument" ;; |
9c60689e DWT |
21686 | esac |
21687 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
21688 | ac_need_defaults=false;; | |
296ee9a6 JF |
21689 | --header | --heade | --head | --hea ) |
21690 | $ac_shift | |
21691 | case $ac_optarg in | |
21692 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
21693 | esac | |
21694 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
21695 | ac_need_defaults=false;; | |
21696 | --he | --h) | |
21697 | # Conflict between --help and --header | |
21698 | as_fn_error $? "ambiguous option: \`$1' | |
21699 | Try \`$0 --help' for more information.";; | |
21700 | --help | --hel | -h ) | |
9c60689e DWT |
21701 | $as_echo "$ac_cs_usage"; exit ;; |
21702 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
21703 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
21704 | ac_cs_silent=: ;; | |
21705 | ||
21706 | # This is an error. | |
12833ad8 | 21707 | -*) as_fn_error $? "unrecognized option: \`$1' |
9c60689e DWT |
21708 | Try \`$0 --help' for more information." ;; |
21709 | ||
21710 | *) as_fn_append ac_config_targets " $1" | |
21711 | ac_need_defaults=false ;; | |
21712 | ||
21713 | esac | |
21714 | shift | |
21715 | done | |
21716 | ||
21717 | ac_configure_extra_args= | |
21718 | ||
21719 | if $ac_cs_silent; then | |
21720 | exec 6>/dev/null | |
21721 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
21722 | fi | |
21723 | ||
21724 | _ACEOF | |
21725 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21726 | if \$ac_cs_recheck; then | |
53ba6704 | 21727 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
9c60689e DWT |
21728 | shift |
21729 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
21730 | CONFIG_SHELL='$SHELL' | |
21731 | export CONFIG_SHELL | |
21732 | exec "\$@" | |
21733 | fi | |
21734 | ||
21735 | _ACEOF | |
21736 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21737 | exec 5>>config.log | |
21738 | { | |
21739 | echo | |
21740 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
21741 | ## Running $as_me. ## | |
21742 | _ASBOX | |
21743 | $as_echo "$ac_log" | |
21744 | } >&5 | |
21745 | ||
21746 | _ACEOF | |
21747 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21748 | # | |
21749 | # INIT-COMMANDS | |
21750 | # | |
66170b30 | 21751 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
9c60689e DWT |
21752 | |
21753 | ||
21754 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
21755 | # if CDPATH is set. | |
21756 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
21757 | ||
21758 | sed_quote_subst='$sed_quote_subst' | |
21759 | double_quote_subst='$double_quote_subst' | |
21760 | delay_variable_subst='$delay_variable_subst' | |
ee134472 JF |
21761 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
21762 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
21763 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
21764 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
21765 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
21766 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
21767 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
21768 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
53ba6704 | 21769 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
ee134472 JF |
21770 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
21771 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
21772 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
21773 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
21774 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
21775 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
21776 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
21777 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
21778 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
21779 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
21780 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
21781 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
21782 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
21783 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
21784 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
21785 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
21786 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
21787 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
21788 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
21789 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
21790 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
21791 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
21792 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
21793 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
21794 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
21795 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
21796 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
21797 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
21798 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
21799 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
21800 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
21801 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
21802 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
21803 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
21804 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
21805 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
21806 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
21807 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
21808 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
21809 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
21810 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
21811 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
21812 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
21813 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
21814 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
21815 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
21816 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
21817 | 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"`' | |
21818 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
21819 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
21820 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
21821 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
21822 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
21823 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
21824 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
21825 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
21826 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
21827 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
21828 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
21829 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
21830 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
21831 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
21832 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
21833 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
21834 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
21835 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
21836 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
21837 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
21838 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
21839 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
21840 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
21841 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
21842 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
21843 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
21844 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
21845 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
21846 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
21847 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
21848 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
21849 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
21850 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
21851 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
ee134472 JF |
21852 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
21853 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
21854 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
21855 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
21856 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
21857 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
21858 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
21859 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
21860 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
21861 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
21862 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
21863 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
21864 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
21865 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
21866 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
21867 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
21868 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
21869 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
21870 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
21871 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
21872 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
21873 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
21874 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
21875 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
21876 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
21877 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
21878 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
21879 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
21880 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
21881 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
21882 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
21883 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
21884 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
21885 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
21886 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
21887 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
21888 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
21889 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
21890 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
21891 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
21892 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
21893 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
21894 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
21895 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
21896 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
21897 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' | |
21898 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
21899 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21900 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21901 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' | |
21902 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' | |
21903 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
21904 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' | |
21905 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' | |
21906 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' | |
21907 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' | |
21908 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' | |
21909 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' | |
21910 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
21911 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
21912 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' | |
21913 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21914 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21915 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21916 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21917 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21918 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21919 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
21920 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
21921 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
21922 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
ee134472 JF |
21923 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' |
21924 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' | |
21925 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' | |
21926 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' | |
21927 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' | |
21928 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' | |
21929 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' | |
21930 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' | |
21931 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' | |
21932 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21933 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
21934 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
21935 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21936 | postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
21937 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
21938 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' | |
21939 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' | |
21940 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
21941 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
21942 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' | |
21943 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' | |
21944 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' | |
9c60689e DWT |
21945 | |
21946 | LTCC='$LTCC' | |
21947 | LTCFLAGS='$LTCFLAGS' | |
21948 | compiler='$compiler_DEFAULT' | |
21949 | ||
ee134472 JF |
21950 | # A function that is used when there is no print builtin or printf. |
21951 | func_fallback_echo () | |
21952 | { | |
21953 | eval 'cat <<_LTECHO_EOF | |
21954 | \$1 | |
21955 | _LTECHO_EOF' | |
21956 | } | |
21957 | ||
9c60689e | 21958 | # Quote evaled strings. |
ee134472 JF |
21959 | for var in SHELL \ |
21960 | ECHO \ | |
53ba6704 | 21961 | PATH_SEPARATOR \ |
ee134472 | 21962 | SED \ |
9c60689e DWT |
21963 | GREP \ |
21964 | EGREP \ | |
21965 | FGREP \ | |
21966 | LD \ | |
21967 | NM \ | |
21968 | LN_S \ | |
21969 | lt_SP2NL \ | |
21970 | lt_NL2SP \ | |
21971 | reload_flag \ | |
21972 | OBJDUMP \ | |
21973 | deplibs_check_method \ | |
21974 | file_magic_cmd \ | |
ee134472 JF |
21975 | file_magic_glob \ |
21976 | want_nocaseglob \ | |
21977 | DLLTOOL \ | |
21978 | sharedlib_from_linklib_cmd \ | |
9c60689e DWT |
21979 | AR \ |
21980 | AR_FLAGS \ | |
ee134472 | 21981 | archiver_list_spec \ |
9c60689e DWT |
21982 | STRIP \ |
21983 | RANLIB \ | |
21984 | CC \ | |
21985 | CFLAGS \ | |
21986 | compiler \ | |
21987 | lt_cv_sys_global_symbol_pipe \ | |
21988 | lt_cv_sys_global_symbol_to_cdecl \ | |
21989 | lt_cv_sys_global_symbol_to_c_name_address \ | |
21990 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
ee134472 | 21991 | nm_file_list_spec \ |
9c60689e | 21992 | lt_prog_compiler_no_builtin_flag \ |
9c60689e | 21993 | lt_prog_compiler_pic \ |
ee134472 | 21994 | lt_prog_compiler_wl \ |
9c60689e DWT |
21995 | lt_prog_compiler_static \ |
21996 | lt_cv_prog_compiler_c_o \ | |
21997 | need_locks \ | |
ee134472 | 21998 | MANIFEST_TOOL \ |
9c60689e DWT |
21999 | DSYMUTIL \ |
22000 | NMEDIT \ | |
22001 | LIPO \ | |
22002 | OTOOL \ | |
22003 | OTOOL64 \ | |
22004 | shrext_cmds \ | |
22005 | export_dynamic_flag_spec \ | |
22006 | whole_archive_flag_spec \ | |
22007 | compiler_needs_object \ | |
22008 | with_gnu_ld \ | |
22009 | allow_undefined_flag \ | |
22010 | no_undefined_flag \ | |
22011 | hardcode_libdir_flag_spec \ | |
9c60689e | 22012 | hardcode_libdir_separator \ |
9c60689e DWT |
22013 | exclude_expsyms \ |
22014 | include_expsyms \ | |
22015 | file_list_spec \ | |
22016 | variables_saved_for_relink \ | |
22017 | libname_spec \ | |
22018 | library_names_spec \ | |
22019 | soname_spec \ | |
ee134472 | 22020 | install_override_mode \ |
9c60689e DWT |
22021 | finish_eval \ |
22022 | old_striplib \ | |
22023 | striplib \ | |
22024 | compiler_lib_search_dirs \ | |
22025 | predep_objects \ | |
22026 | postdep_objects \ | |
22027 | predeps \ | |
22028 | postdeps \ | |
22029 | compiler_lib_search_path \ | |
22030 | LD_CXX \ | |
ee134472 | 22031 | reload_flag_CXX \ |
9c60689e DWT |
22032 | compiler_CXX \ |
22033 | lt_prog_compiler_no_builtin_flag_CXX \ | |
9c60689e | 22034 | lt_prog_compiler_pic_CXX \ |
ee134472 | 22035 | lt_prog_compiler_wl_CXX \ |
9c60689e DWT |
22036 | lt_prog_compiler_static_CXX \ |
22037 | lt_cv_prog_compiler_c_o_CXX \ | |
22038 | export_dynamic_flag_spec_CXX \ | |
22039 | whole_archive_flag_spec_CXX \ | |
22040 | compiler_needs_object_CXX \ | |
22041 | with_gnu_ld_CXX \ | |
22042 | allow_undefined_flag_CXX \ | |
22043 | no_undefined_flag_CXX \ | |
22044 | hardcode_libdir_flag_spec_CXX \ | |
9c60689e | 22045 | hardcode_libdir_separator_CXX \ |
9c60689e DWT |
22046 | exclude_expsyms_CXX \ |
22047 | include_expsyms_CXX \ | |
22048 | file_list_spec_CXX \ | |
22049 | compiler_lib_search_dirs_CXX \ | |
22050 | predep_objects_CXX \ | |
22051 | postdep_objects_CXX \ | |
22052 | predeps_CXX \ | |
22053 | postdeps_CXX \ | |
22054 | compiler_lib_search_path_CXX; do | |
ee134472 | 22055 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
9c60689e | 22056 | *[\\\\\\\`\\"\\\$]*) |
ee134472 | 22057 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
9c60689e DWT |
22058 | ;; |
22059 | *) | |
22060 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
22061 | ;; | |
22062 | esac | |
22063 | done | |
22064 | ||
22065 | # Double-quote double-evaled strings. | |
22066 | for var in reload_cmds \ | |
22067 | old_postinstall_cmds \ | |
22068 | old_postuninstall_cmds \ | |
22069 | old_archive_cmds \ | |
22070 | extract_expsyms_cmds \ | |
22071 | old_archive_from_new_cmds \ | |
22072 | old_archive_from_expsyms_cmds \ | |
22073 | archive_cmds \ | |
22074 | archive_expsym_cmds \ | |
22075 | module_cmds \ | |
22076 | module_expsym_cmds \ | |
22077 | export_symbols_cmds \ | |
22078 | prelink_cmds \ | |
ee134472 | 22079 | postlink_cmds \ |
9c60689e DWT |
22080 | postinstall_cmds \ |
22081 | postuninstall_cmds \ | |
22082 | finish_cmds \ | |
22083 | sys_lib_search_path_spec \ | |
22084 | sys_lib_dlsearch_path_spec \ | |
ee134472 | 22085 | reload_cmds_CXX \ |
9c60689e DWT |
22086 | old_archive_cmds_CXX \ |
22087 | old_archive_from_new_cmds_CXX \ | |
22088 | old_archive_from_expsyms_cmds_CXX \ | |
22089 | archive_cmds_CXX \ | |
22090 | archive_expsym_cmds_CXX \ | |
22091 | module_cmds_CXX \ | |
22092 | module_expsym_cmds_CXX \ | |
22093 | export_symbols_cmds_CXX \ | |
ee134472 JF |
22094 | prelink_cmds_CXX \ |
22095 | postlink_cmds_CXX; do | |
22096 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
9c60689e | 22097 | *[\\\\\\\`\\"\\\$]*) |
ee134472 | 22098 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
9c60689e DWT |
22099 | ;; |
22100 | *) | |
22101 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
22102 | ;; | |
22103 | esac | |
22104 | done | |
22105 | ||
9c60689e DWT |
22106 | ac_aux_dir='$ac_aux_dir' |
22107 | xsi_shell='$xsi_shell' | |
22108 | lt_shell_append='$lt_shell_append' | |
22109 | ||
22110 | # See if we are running on zsh, and set the options which allow our | |
22111 | # commands through without removal of \ escapes INIT. | |
22112 | if test -n "\${ZSH_VERSION+set}" ; then | |
22113 | setopt NO_GLOB_SUBST | |
22114 | fi | |
22115 | ||
22116 | ||
22117 | PACKAGE='$PACKAGE' | |
22118 | VERSION='$VERSION' | |
22119 | TIMESTAMP='$TIMESTAMP' | |
22120 | RM='$RM' | |
22121 | ofile='$ofile' | |
22122 | ||
22123 | ||
22124 | ||
22125 | ||
22126 | ||
22127 | ||
22128 | _ACEOF | |
22129 | ||
22130 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22131 | ||
22132 | # Handling of arguments. | |
22133 | for ac_config_target in $ac_config_targets | |
22134 | do | |
22135 | case $ac_config_target in | |
296ee9a6 | 22136 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
66170b30 | 22137 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
9c60689e | 22138 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
790e5246 | 22139 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
9c60689e | 22140 | |
ee134472 | 22141 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
9c60689e DWT |
22142 | esac |
22143 | done | |
22144 | ||
22145 | ||
22146 | # If the user did not use the arguments to specify the items to instantiate, | |
22147 | # then the envvar interface is used. Set only those that are not. | |
22148 | # We use the long form for the default assignment because of an extremely | |
22149 | # bizarre bug on SunOS 4.1.3. | |
22150 | if $ac_need_defaults; then | |
22151 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
296ee9a6 | 22152 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
9c60689e DWT |
22153 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
22154 | fi | |
22155 | ||
22156 | # Have a temporary directory for convenience. Make it in the build tree | |
22157 | # simply because there is no reason against having it here, and in addition, | |
22158 | # creating and moving files from /tmp can sometimes cause problems. | |
22159 | # Hook for its removal unless debugging. | |
22160 | # Note that there is a small window in which the directory will not be cleaned: | |
22161 | # after its creation but before its name has been assigned to `$tmp'. | |
22162 | $debug || | |
22163 | { | |
ee134472 | 22164 | tmp= ac_tmp= |
9c60689e | 22165 | trap 'exit_status=$? |
ee134472 JF |
22166 | : "${ac_tmp:=$tmp}" |
22167 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
9c60689e DWT |
22168 | ' 0 |
22169 | trap 'as_fn_exit 1' 1 2 13 15 | |
22170 | } | |
22171 | # Create a (secure) tmp directory for tmp files. | |
22172 | ||
22173 | { | |
22174 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
ee134472 | 22175 | test -d "$tmp" |
9c60689e DWT |
22176 | } || |
22177 | { | |
22178 | tmp=./conf$$-$RANDOM | |
22179 | (umask 077 && mkdir "$tmp") | |
12833ad8 | 22180 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
ee134472 | 22181 | ac_tmp=$tmp |
9c60689e DWT |
22182 | |
22183 | # Set up the scripts for CONFIG_FILES section. | |
22184 | # No need to generate them if there are no CONFIG_FILES. | |
22185 | # This happens for instance with `./config.status config.h'. | |
22186 | if test -n "$CONFIG_FILES"; then | |
22187 | ||
22188 | ||
22189 | ac_cr=`echo X | tr X '\015'` | |
22190 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
22191 | # But we know of no other shell where ac_cr would be empty at this | |
22192 | # point, so we can use a bashism as a fallback. | |
22193 | if test "x$ac_cr" = x; then | |
22194 | eval ac_cr=\$\'\\r\' | |
22195 | fi | |
22196 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
22197 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
12833ad8 | 22198 | ac_cs_awk_cr='\\r' |
9c60689e DWT |
22199 | else |
22200 | ac_cs_awk_cr=$ac_cr | |
22201 | fi | |
22202 | ||
ee134472 | 22203 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
9c60689e DWT |
22204 | _ACEOF |
22205 | ||
22206 | ||
22207 | { | |
22208 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
22209 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
22210 | echo "_ACEOF" | |
22211 | } >conf$$subs.sh || | |
12833ad8 JF |
22212 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
22213 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
9c60689e DWT |
22214 | ac_delim='%!_!# ' |
22215 | for ac_last_try in false false false false false :; do | |
22216 | . ./conf$$subs.sh || | |
12833ad8 | 22217 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
9c60689e DWT |
22218 | |
22219 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
22220 | if test $ac_delim_n = $ac_delim_num; then | |
22221 | break | |
22222 | elif $ac_last_try; then | |
12833ad8 | 22223 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
9c60689e DWT |
22224 | else |
22225 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
22226 | fi | |
22227 | done | |
22228 | rm -f conf$$subs.sh | |
22229 | ||
22230 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ee134472 | 22231 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
9c60689e DWT |
22232 | _ACEOF |
22233 | sed -n ' | |
22234 | h | |
22235 | s/^/S["/; s/!.*/"]=/ | |
22236 | p | |
22237 | g | |
22238 | s/^[^!]*!// | |
22239 | :repl | |
22240 | t repl | |
22241 | s/'"$ac_delim"'$// | |
22242 | t delim | |
22243 | :nl | |
22244 | h | |
22245 | s/\(.\{148\}\)..*/\1/ | |
22246 | t more1 | |
22247 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
22248 | p | |
22249 | n | |
22250 | b repl | |
22251 | :more1 | |
22252 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
22253 | p | |
22254 | g | |
22255 | s/.\{148\}// | |
22256 | t nl | |
22257 | :delim | |
22258 | h | |
22259 | s/\(.\{148\}\)..*/\1/ | |
22260 | t more2 | |
22261 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
22262 | p | |
22263 | b | |
22264 | :more2 | |
22265 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
22266 | p | |
22267 | g | |
22268 | s/.\{148\}// | |
22269 | t delim | |
22270 | ' <conf$$subs.awk | sed ' | |
22271 | /^[^""]/{ | |
22272 | N | |
22273 | s/\n// | |
22274 | } | |
22275 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
22276 | rm -f conf$$subs.awk | |
22277 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22278 | _ACAWK | |
ee134472 | 22279 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
9c60689e DWT |
22280 | for (key in S) S_is_set[key] = 1 |
22281 | FS = "\a" | |
22282 | ||
22283 | } | |
22284 | { | |
22285 | line = $ 0 | |
22286 | nfields = split(line, field, "@") | |
22287 | substed = 0 | |
22288 | len = length(field[1]) | |
22289 | for (i = 2; i < nfields; i++) { | |
22290 | key = field[i] | |
22291 | keylen = length(key) | |
22292 | if (S_is_set[key]) { | |
22293 | value = S[key] | |
22294 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
22295 | len += length(value) + length(field[++i]) | |
22296 | substed = 1 | |
22297 | } else | |
22298 | len += 1 + keylen | |
22299 | } | |
22300 | ||
22301 | print line | |
22302 | } | |
22303 | ||
22304 | _ACAWK | |
22305 | _ACEOF | |
22306 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22307 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
22308 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
22309 | else | |
22310 | cat | |
ee134472 | 22311 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
12833ad8 | 22312 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
9c60689e DWT |
22313 | _ACEOF |
22314 | ||
12833ad8 JF |
22315 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
22316 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
9c60689e DWT |
22317 | # trailing colons and then remove the whole line if VPATH becomes empty |
22318 | # (actually we leave an empty line to preserve line numbers). | |
22319 | if test "x$srcdir" = x.; then | |
12833ad8 JF |
22320 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
22321 | h | |
22322 | s/// | |
22323 | s/^/:/ | |
22324 | s/[ ]*$/:/ | |
22325 | s/:\$(srcdir):/:/g | |
22326 | s/:\${srcdir}:/:/g | |
22327 | s/:@srcdir@:/:/g | |
22328 | s/^:*// | |
9c60689e | 22329 | s/:*$// |
12833ad8 JF |
22330 | x |
22331 | s/\(=[ ]*\).*/\1/ | |
22332 | G | |
22333 | s/\n// | |
9c60689e DWT |
22334 | s/^[^=]*=[ ]*$// |
22335 | }' | |
22336 | fi | |
22337 | ||
22338 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22339 | fi # test -n "$CONFIG_FILES" | |
22340 | ||
296ee9a6 JF |
22341 | # Set up the scripts for CONFIG_HEADERS section. |
22342 | # No need to generate them if there are no CONFIG_HEADERS. | |
22343 | # This happens for instance with `./config.status Makefile'. | |
22344 | if test -n "$CONFIG_HEADERS"; then | |
22345 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
22346 | BEGIN { | |
22347 | _ACEOF | |
22348 | ||
22349 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
22350 | # here-document in config.status, that substitutes the proper values into | |
22351 | # config.h.in to produce config.h. | |
22352 | ||
22353 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
22354 | # handling of long lines. | |
22355 | ac_delim='%!_!# ' | |
22356 | for ac_last_try in false false :; do | |
22357 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
22358 | if test -z "$ac_tt"; then | |
22359 | break | |
22360 | elif $ac_last_try; then | |
22361 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
22362 | else | |
22363 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
22364 | fi | |
22365 | done | |
22366 | ||
22367 | # For the awk script, D is an array of macro values keyed by name, | |
22368 | # likewise P contains macro parameters if any. Preserve backslash | |
22369 | # newline sequences. | |
22370 | ||
22371 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
22372 | sed -n ' | |
22373 | s/.\{148\}/&'"$ac_delim"'/g | |
22374 | t rset | |
22375 | :rset | |
22376 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
22377 | t def | |
22378 | d | |
22379 | :def | |
22380 | s/\\$// | |
22381 | t bsnl | |
22382 | s/["\\]/\\&/g | |
22383 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
22384 | D["\1"]=" \3"/p | |
22385 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
22386 | d | |
22387 | :bsnl | |
22388 | s/["\\]/\\&/g | |
22389 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
22390 | D["\1"]=" \3\\\\\\n"\\/p | |
22391 | t cont | |
22392 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
22393 | t cont | |
22394 | d | |
22395 | :cont | |
22396 | n | |
22397 | s/.\{148\}/&'"$ac_delim"'/g | |
22398 | t clear | |
22399 | :clear | |
22400 | s/\\$// | |
22401 | t bsnlc | |
22402 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
22403 | d | |
22404 | :bsnlc | |
22405 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
22406 | b cont | |
22407 | ' <confdefs.h | sed ' | |
22408 | s/'"$ac_delim"'/"\\\ | |
22409 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
22410 | ||
22411 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22412 | for (key in D) D_is_set[key] = 1 | |
22413 | FS = "\a" | |
22414 | } | |
22415 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
22416 | line = \$ 0 | |
22417 | split(line, arg, " ") | |
22418 | if (arg[1] == "#") { | |
22419 | defundef = arg[2] | |
22420 | mac1 = arg[3] | |
22421 | } else { | |
22422 | defundef = substr(arg[1], 2) | |
22423 | mac1 = arg[2] | |
22424 | } | |
22425 | split(mac1, mac2, "(") #) | |
22426 | macro = mac2[1] | |
22427 | prefix = substr(line, 1, index(line, defundef) - 1) | |
22428 | if (D_is_set[macro]) { | |
22429 | # Preserve the white space surrounding the "#". | |
22430 | print prefix "define", macro P[macro] D[macro] | |
22431 | next | |
22432 | } else { | |
22433 | # Replace #undef with comments. This is necessary, for example, | |
22434 | # in the case of _POSIX_SOURCE, which is predefined and required | |
22435 | # on some systems where configure will not decide to define it. | |
22436 | if (defundef == "undef") { | |
22437 | print "/*", prefix defundef, macro, "*/" | |
22438 | next | |
22439 | } | |
22440 | } | |
22441 | } | |
22442 | { print } | |
22443 | _ACAWK | |
22444 | _ACEOF | |
22445 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22446 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
22447 | fi # test -n "$CONFIG_HEADERS" | |
22448 | ||
9c60689e | 22449 | |
296ee9a6 | 22450 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
9c60689e DWT |
22451 | shift |
22452 | for ac_tag | |
22453 | do | |
22454 | case $ac_tag in | |
22455 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
22456 | esac | |
22457 | case $ac_mode$ac_tag in | |
22458 | :[FHL]*:*);; | |
ee134472 | 22459 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
9c60689e DWT |
22460 | :[FH]-) ac_tag=-:-;; |
22461 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
22462 | esac | |
22463 | ac_save_IFS=$IFS | |
22464 | IFS=: | |
22465 | set x $ac_tag | |
22466 | IFS=$ac_save_IFS | |
22467 | shift | |
22468 | ac_file=$1 | |
22469 | shift | |
22470 | ||
22471 | case $ac_mode in | |
22472 | :L) ac_source=$1;; | |
22473 | :[FH]) | |
22474 | ac_file_inputs= | |
22475 | for ac_f | |
22476 | do | |
22477 | case $ac_f in | |
ee134472 | 22478 | -) ac_f="$ac_tmp/stdin";; |
9c60689e DWT |
22479 | *) # Look for the file first in the build tree, then in the source tree |
22480 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
22481 | # because $ac_f cannot contain `:'. | |
22482 | test -f "$ac_f" || | |
22483 | case $ac_f in | |
22484 | [\\/$]*) false;; | |
22485 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
22486 | esac || | |
ee134472 | 22487 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
9c60689e DWT |
22488 | esac |
22489 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
22490 | as_fn_append ac_file_inputs " '$ac_f'" | |
22491 | done | |
22492 | ||
22493 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
22494 | # use $as_me), people would be surprised to read: | |
22495 | # /* config.h. Generated by config.status. */ | |
22496 | configure_input='Generated from '` | |
22497 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
22498 | `' by configure.' | |
22499 | if test x"$ac_file" != x-; then | |
22500 | configure_input="$ac_file. $configure_input" | |
22501 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
22502 | $as_echo "$as_me: creating $ac_file" >&6;} | |
22503 | fi | |
22504 | # Neutralize special characters interpreted by sed in replacement strings. | |
22505 | case $configure_input in #( | |
22506 | *\&* | *\|* | *\\* ) | |
22507 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
22508 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
22509 | *) ac_sed_conf_input=$configure_input;; | |
22510 | esac | |
22511 | ||
22512 | case $ac_tag in | |
ee134472 JF |
22513 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
22514 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
9c60689e DWT |
22515 | esac |
22516 | ;; | |
22517 | esac | |
22518 | ||
22519 | ac_dir=`$as_dirname -- "$ac_file" || | |
22520 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22521 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
22522 | X"$ac_file" : 'X\(//\)$' \| \ | |
22523 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
22524 | $as_echo X"$ac_file" | | |
22525 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22526 | s//\1/ | |
22527 | q | |
22528 | } | |
22529 | /^X\(\/\/\)[^/].*/{ | |
22530 | s//\1/ | |
22531 | q | |
22532 | } | |
22533 | /^X\(\/\/\)$/{ | |
22534 | s//\1/ | |
22535 | q | |
22536 | } | |
22537 | /^X\(\/\).*/{ | |
22538 | s//\1/ | |
22539 | q | |
22540 | } | |
22541 | s/.*/./; q'` | |
22542 | as_dir="$ac_dir"; as_fn_mkdir_p | |
22543 | ac_builddir=. | |
22544 | ||
22545 | case "$ac_dir" in | |
22546 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
22547 | *) | |
22548 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
22549 | # A ".." for each directory in $ac_dir_suffix. | |
22550 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
22551 | case $ac_top_builddir_sub in | |
22552 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
22553 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
22554 | esac ;; | |
22555 | esac | |
22556 | ac_abs_top_builddir=$ac_pwd | |
22557 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
22558 | # for backward compatibility: | |
22559 | ac_top_builddir=$ac_top_build_prefix | |
35fa52c0 | 22560 | |
9c60689e DWT |
22561 | case $srcdir in |
22562 | .) # We are building in place. | |
22563 | ac_srcdir=. | |
22564 | ac_top_srcdir=$ac_top_builddir_sub | |
22565 | ac_abs_top_srcdir=$ac_pwd ;; | |
22566 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
22567 | ac_srcdir=$srcdir$ac_dir_suffix; | |
22568 | ac_top_srcdir=$srcdir | |
22569 | ac_abs_top_srcdir=$srcdir ;; | |
22570 | *) # Relative name. | |
22571 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
22572 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
22573 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
22574 | esac | |
22575 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
35fa52c0 DWT |
22576 | |
22577 | ||
9c60689e DWT |
22578 | case $ac_mode in |
22579 | :F) | |
22580 | # | |
22581 | # CONFIG_FILE | |
22582 | # | |
35fa52c0 | 22583 | |
9c60689e DWT |
22584 | case $INSTALL in |
22585 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
22586 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
22587 | esac | |
66170b30 JF |
22588 | ac_MKDIR_P=$MKDIR_P |
22589 | case $MKDIR_P in | |
22590 | [\\/$]* | ?:[\\/]* ) ;; | |
22591 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
22592 | esac | |
9c60689e | 22593 | _ACEOF |
35fa52c0 | 22594 | |
9c60689e DWT |
22595 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
22596 | # If the template does not know about datarootdir, expand it. | |
22597 | # FIXME: This hack should be removed a few years after 2.60. | |
22598 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
22599 | ac_sed_dataroot=' | |
22600 | /datarootdir/ { | |
22601 | p | |
22602 | q | |
22603 | } | |
22604 | /@datadir@/p | |
22605 | /@docdir@/p | |
22606 | /@infodir@/p | |
22607 | /@localedir@/p | |
22608 | /@mandir@/p' | |
22609 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
22610 | *datarootdir*) ac_datarootdir_seen=yes;; | |
22611 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
22612 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
22613 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
22614 | _ACEOF | |
22615 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22616 | ac_datarootdir_hack=' | |
22617 | s&@datadir@&$datadir&g | |
22618 | s&@docdir@&$docdir&g | |
22619 | s&@infodir@&$infodir&g | |
22620 | s&@localedir@&$localedir&g | |
22621 | s&@mandir@&$mandir&g | |
22622 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
22623 | esac | |
22624 | _ACEOF | |
35fa52c0 | 22625 | |
9c60689e DWT |
22626 | # Neutralize VPATH when `$srcdir' = `.'. |
22627 | # Shell code in configure.ac might set extrasub. | |
22628 | # FIXME: do we really want to maintain this feature? | |
22629 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22630 | ac_sed_extra="$ac_vpsub | |
22631 | $extrasub | |
22632 | _ACEOF | |
22633 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22634 | :t | |
22635 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
22636 | s|@configure_input@|$ac_sed_conf_input|;t t | |
22637 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
22638 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
22639 | s&@srcdir@&$ac_srcdir&;t t | |
22640 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
22641 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
22642 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
22643 | s&@builddir@&$ac_builddir&;t t | |
22644 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
22645 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
22646 | s&@INSTALL@&$ac_INSTALL&;t t | |
66170b30 | 22647 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
9c60689e DWT |
22648 | $ac_datarootdir_hack |
22649 | " | |
ee134472 JF |
22650 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
22651 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
9c60689e DWT |
22652 | |
22653 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
ee134472 JF |
22654 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
22655 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
22656 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
9c60689e | 22657 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12833ad8 | 22658 | which seems to be undefined. Please make sure it is defined" >&5 |
9c60689e | 22659 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12833ad8 | 22660 | which seems to be undefined. Please make sure it is defined" >&2;} |
9c60689e | 22661 | |
ee134472 | 22662 | rm -f "$ac_tmp/stdin" |
9c60689e | 22663 | case $ac_file in |
ee134472 JF |
22664 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
22665 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
9c60689e | 22666 | esac \ |
12833ad8 | 22667 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
9c60689e | 22668 | ;; |
296ee9a6 JF |
22669 | :H) |
22670 | # | |
22671 | # CONFIG_HEADER | |
22672 | # | |
22673 | if test x"$ac_file" != x-; then | |
22674 | { | |
22675 | $as_echo "/* $configure_input */" \ | |
22676 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
22677 | } >"$ac_tmp/config.h" \ | |
22678 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
22679 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
22680 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
22681 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
22682 | else | |
22683 | rm -f "$ac_file" | |
22684 | mv "$ac_tmp/config.h" "$ac_file" \ | |
22685 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
22686 | fi | |
22687 | else | |
22688 | $as_echo "/* $configure_input */" \ | |
22689 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
22690 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
22691 | fi | |
22692 | # Compute "$ac_file"'s index in $config_headers. | |
22693 | _am_arg="$ac_file" | |
22694 | _am_stamp_count=1 | |
22695 | for _am_header in $config_headers :; do | |
22696 | case $_am_header in | |
22697 | $_am_arg | $_am_arg:* ) | |
22698 | break ;; | |
22699 | * ) | |
22700 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
22701 | esac | |
22702 | done | |
22703 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
22704 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22705 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
22706 | X"$_am_arg" : 'X\(//\)$' \| \ | |
22707 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
22708 | $as_echo X"$_am_arg" | | |
22709 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22710 | s//\1/ | |
22711 | q | |
22712 | } | |
22713 | /^X\(\/\/\)[^/].*/{ | |
22714 | s//\1/ | |
22715 | q | |
22716 | } | |
22717 | /^X\(\/\/\)$/{ | |
22718 | s//\1/ | |
22719 | q | |
22720 | } | |
22721 | /^X\(\/\).*/{ | |
22722 | s//\1/ | |
22723 | q | |
22724 | } | |
22725 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
22726 | ;; | |
35fa52c0 | 22727 | |
9c60689e DWT |
22728 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
22729 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
22730 | ;; | |
22731 | esac | |
35fa52c0 | 22732 | |
35fa52c0 | 22733 | |
9c60689e | 22734 | case $ac_file$ac_mode in |
66170b30 JF |
22735 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
22736 | # Older Autoconf quotes --file arguments for eval, but not when files | |
22737 | # are listed without --file. Let's play safe and only enable the eval | |
22738 | # if we detect the quoting. | |
22739 | case $CONFIG_FILES in | |
22740 | *\'*) eval set x "$CONFIG_FILES" ;; | |
22741 | *) set x $CONFIG_FILES ;; | |
22742 | esac | |
22743 | shift | |
22744 | for mf | |
22745 | do | |
22746 | # Strip MF so we end up with the name of the file. | |
22747 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
22748 | # Check whether this is an Automake generated Makefile or not. | |
22749 | # We used to match only the files named 'Makefile.in', but | |
22750 | # some people rename them; so instead we look at the file content. | |
22751 | # Grep'ing the first line is not enough: some people post-process | |
22752 | # each Makefile.in and add a new line on top of each file to say so. | |
22753 | # Grep'ing the whole file is not good either: AIX grep has a line | |
22754 | # limit of 2048, but all sed's we know have understand at least 4000. | |
22755 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
22756 | dirpart=`$as_dirname -- "$mf" || | |
22757 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22758 | X"$mf" : 'X\(//\)[^/]' \| \ | |
22759 | X"$mf" : 'X\(//\)$' \| \ | |
22760 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
22761 | $as_echo X"$mf" | | |
22762 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22763 | s//\1/ | |
22764 | q | |
22765 | } | |
22766 | /^X\(\/\/\)[^/].*/{ | |
22767 | s//\1/ | |
22768 | q | |
22769 | } | |
22770 | /^X\(\/\/\)$/{ | |
22771 | s//\1/ | |
22772 | q | |
22773 | } | |
22774 | /^X\(\/\).*/{ | |
22775 | s//\1/ | |
22776 | q | |
22777 | } | |
22778 | s/.*/./; q'` | |
22779 | else | |
22780 | continue | |
22781 | fi | |
22782 | # Extract the definition of DEPDIR, am__include, and am__quote | |
22783 | # from the Makefile without running 'make'. | |
22784 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
22785 | test -z "$DEPDIR" && continue | |
22786 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
22787 | test -z "am__include" && continue | |
22788 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
22789 | # Find all dependency output files, they are included files with | |
22790 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
22791 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
22792 | # expansion. | |
22793 | for file in `sed -n " | |
22794 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
22795 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
22796 | # Make sure the directory exists. | |
22797 | test -f "$dirpart/$file" && continue | |
22798 | fdir=`$as_dirname -- "$file" || | |
22799 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22800 | X"$file" : 'X\(//\)[^/]' \| \ | |
22801 | X"$file" : 'X\(//\)$' \| \ | |
22802 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
22803 | $as_echo X"$file" | | |
22804 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22805 | s//\1/ | |
22806 | q | |
22807 | } | |
22808 | /^X\(\/\/\)[^/].*/{ | |
22809 | s//\1/ | |
22810 | q | |
22811 | } | |
22812 | /^X\(\/\/\)$/{ | |
22813 | s//\1/ | |
22814 | q | |
22815 | } | |
22816 | /^X\(\/\).*/{ | |
22817 | s//\1/ | |
22818 | q | |
22819 | } | |
22820 | s/.*/./; q'` | |
22821 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
22822 | # echo "creating $dirpart/$file" | |
22823 | echo '# dummy' > "$dirpart/$file" | |
22824 | done | |
22825 | done | |
22826 | } | |
22827 | ;; | |
9c60689e DWT |
22828 | "libtool":C) |
22829 | ||
22830 | # See if we are running on zsh, and set the options which allow our | |
22831 | # commands through without removal of \ escapes. | |
22832 | if test -n "${ZSH_VERSION+set}" ; then | |
22833 | setopt NO_GLOB_SUBST | |
35fa52c0 | 22834 | fi |
35fa52c0 | 22835 | |
9c60689e DWT |
22836 | cfgfile="${ofile}T" |
22837 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
22838 | $RM "$cfgfile" | |
35fa52c0 | 22839 | |
9c60689e DWT |
22840 | cat <<_LT_EOF >> "$cfgfile" |
22841 | #! $SHELL | |
35fa52c0 | 22842 | |
9c60689e DWT |
22843 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
22844 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
22845 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
22846 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
22847 | # | |
22848 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
53ba6704 JF |
22849 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
22850 | # Foundation, Inc. | |
9c60689e DWT |
22851 | # Written by Gordon Matzigkeit, 1996 |
22852 | # | |
22853 | # This file is part of GNU Libtool. | |
22854 | # | |
22855 | # GNU Libtool is free software; you can redistribute it and/or | |
22856 | # modify it under the terms of the GNU General Public License as | |
22857 | # published by the Free Software Foundation; either version 2 of | |
22858 | # the License, or (at your option) any later version. | |
22859 | # | |
22860 | # As a special exception to the GNU General Public License, | |
22861 | # if you distribute this file as part of a program or library that | |
22862 | # is built using GNU Libtool, you may include this file under the | |
22863 | # same distribution terms that you use for the rest of that program. | |
22864 | # | |
22865 | # GNU Libtool is distributed in the hope that it will be useful, | |
22866 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
22867 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
22868 | # GNU General Public License for more details. | |
22869 | # | |
22870 | # You should have received a copy of the GNU General Public License | |
22871 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
22872 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
22873 | # obtained by writing to the Free Software Foundation, Inc., | |
22874 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
35fa52c0 | 22875 | |
35fa52c0 | 22876 | |
9c60689e DWT |
22877 | # The names of the tagged configurations supported by this script. |
22878 | available_tags="CXX " | |
35fa52c0 | 22879 | |
9c60689e | 22880 | # ### BEGIN LIBTOOL CONFIG |
35fa52c0 | 22881 | |
9c60689e DWT |
22882 | # Which release of libtool.m4 was used? |
22883 | macro_version=$macro_version | |
22884 | macro_revision=$macro_revision | |
35fa52c0 | 22885 | |
9c60689e DWT |
22886 | # Whether or not to build static libraries. |
22887 | build_old_libs=$enable_static | |
35fa52c0 | 22888 | |
549f29b5 DWT |
22889 | # Whether or not to build shared libraries. |
22890 | build_libtool_libs=$enable_shared | |
22891 | ||
9c60689e DWT |
22892 | # What type of objects to build. |
22893 | pic_mode=$pic_mode | |
35fa52c0 | 22894 | |
9c60689e DWT |
22895 | # Whether or not to optimize for fast installation. |
22896 | fast_install=$enable_fast_install | |
35fa52c0 | 22897 | |
ee134472 JF |
22898 | # Shell to use when invoking shell scripts. |
22899 | SHELL=$lt_SHELL | |
22900 | ||
22901 | # An echo program that protects backslashes. | |
22902 | ECHO=$lt_ECHO | |
22903 | ||
53ba6704 JF |
22904 | # The PATH separator for the build system. |
22905 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
22906 | ||
9c60689e DWT |
22907 | # The host system. |
22908 | host_alias=$host_alias | |
22909 | host=$host | |
22910 | host_os=$host_os | |
35fa52c0 | 22911 | |
9c60689e DWT |
22912 | # The build system. |
22913 | build_alias=$build_alias | |
22914 | build=$build | |
22915 | build_os=$build_os | |
22916 | ||
22917 | # A sed program that does not truncate output. | |
22918 | SED=$lt_SED | |
22919 | ||
22920 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
22921 | Xsed="\$SED -e 1s/^X//" | |
22922 | ||
22923 | # A grep program that handles long lines. | |
22924 | GREP=$lt_GREP | |
22925 | ||
22926 | # An ERE matcher. | |
22927 | EGREP=$lt_EGREP | |
22928 | ||
22929 | # A literal string matcher. | |
22930 | FGREP=$lt_FGREP | |
22931 | ||
22932 | # A BSD- or MS-compatible name lister. | |
22933 | NM=$lt_NM | |
22934 | ||
22935 | # Whether we need soft or hard links. | |
22936 | LN_S=$lt_LN_S | |
22937 | ||
22938 | # What is the maximum length of a command? | |
22939 | max_cmd_len=$max_cmd_len | |
22940 | ||
22941 | # Object file suffix (normally "o"). | |
22942 | objext=$ac_objext | |
22943 | ||
22944 | # Executable file suffix (normally ""). | |
22945 | exeext=$exeext | |
22946 | ||
22947 | # whether the shell understands "unset". | |
22948 | lt_unset=$lt_unset | |
22949 | ||
22950 | # turn spaces into newlines. | |
22951 | SP2NL=$lt_lt_SP2NL | |
22952 | ||
22953 | # turn newlines into spaces. | |
22954 | NL2SP=$lt_lt_NL2SP | |
22955 | ||
ee134472 JF |
22956 | # convert \$build file names to \$host format. |
22957 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
22958 | ||
22959 | # convert \$build files to toolchain format. | |
22960 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
9c60689e DWT |
22961 | |
22962 | # An object symbol dumper. | |
22963 | OBJDUMP=$lt_OBJDUMP | |
22964 | ||
22965 | # Method to check whether dependent libraries are shared objects. | |
22966 | deplibs_check_method=$lt_deplibs_check_method | |
22967 | ||
ee134472 | 22968 | # Command to use when deplibs_check_method = "file_magic". |
9c60689e DWT |
22969 | file_magic_cmd=$lt_file_magic_cmd |
22970 | ||
ee134472 JF |
22971 | # How to find potential files when deplibs_check_method = "file_magic". |
22972 | file_magic_glob=$lt_file_magic_glob | |
22973 | ||
22974 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
22975 | want_nocaseglob=$lt_want_nocaseglob | |
22976 | ||
22977 | # DLL creation program. | |
22978 | DLLTOOL=$lt_DLLTOOL | |
22979 | ||
22980 | # Command to associate shared and link libraries. | |
22981 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
22982 | ||
9c60689e DWT |
22983 | # The archiver. |
22984 | AR=$lt_AR | |
ee134472 JF |
22985 | |
22986 | # Flags to create an archive. | |
9c60689e DWT |
22987 | AR_FLAGS=$lt_AR_FLAGS |
22988 | ||
ee134472 JF |
22989 | # How to feed a file listing to the archiver. |
22990 | archiver_list_spec=$lt_archiver_list_spec | |
22991 | ||
9c60689e DWT |
22992 | # A symbol stripping program. |
22993 | STRIP=$lt_STRIP | |
22994 | ||
22995 | # Commands used to install an old-style archive. | |
22996 | RANLIB=$lt_RANLIB | |
22997 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
22998 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
22999 | ||
ee134472 JF |
23000 | # Whether to use a lock for old archive extraction. |
23001 | lock_old_archive_extraction=$lock_old_archive_extraction | |
23002 | ||
9c60689e DWT |
23003 | # A C compiler. |
23004 | LTCC=$lt_CC | |
23005 | ||
23006 | # LTCC compiler flags. | |
23007 | LTCFLAGS=$lt_CFLAGS | |
23008 | ||
23009 | # Take the output of nm and produce a listing of raw symbols and C names. | |
23010 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
23011 | ||
23012 | # Transform the output of nm in a proper C declaration. | |
23013 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
23014 | ||
23015 | # Transform the output of nm in a C name address pair. | |
23016 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
23017 | ||
23018 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
23019 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
23020 | ||
ee134472 JF |
23021 | # Specify filename containing input files for \$NM. |
23022 | nm_file_list_spec=$lt_nm_file_list_spec | |
9c60689e | 23023 | |
ee134472 JF |
23024 | # The root where to search for dependent libraries,and in which our libraries should be installed. |
23025 | lt_sysroot=$lt_sysroot | |
9c60689e | 23026 | |
ee134472 JF |
23027 | # The name of the directory that contains temporary libtool files. |
23028 | objdir=$objdir | |
9c60689e DWT |
23029 | |
23030 | # Used to examine libraries when file_magic_cmd begins with "file". | |
23031 | MAGIC_CMD=$MAGIC_CMD | |
23032 | ||
23033 | # Must we lock files when doing compilation? | |
23034 | need_locks=$lt_need_locks | |
23035 | ||
ee134472 JF |
23036 | # Manifest tool. |
23037 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
23038 | ||
9c60689e DWT |
23039 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
23040 | DSYMUTIL=$lt_DSYMUTIL | |
23041 | ||
23042 | # Tool to change global to local symbols on Mac OS X. | |
23043 | NMEDIT=$lt_NMEDIT | |
23044 | ||
23045 | # Tool to manipulate fat objects and archives on Mac OS X. | |
23046 | LIPO=$lt_LIPO | |
23047 | ||
23048 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
23049 | OTOOL=$lt_OTOOL | |
23050 | ||
23051 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
23052 | OTOOL64=$lt_OTOOL64 | |
23053 | ||
23054 | # Old archive suffix (normally "a"). | |
23055 | libext=$libext | |
23056 | ||
23057 | # Shared library suffix (normally ".so"). | |
23058 | shrext_cmds=$lt_shrext_cmds | |
35fa52c0 | 23059 | |
9c60689e DWT |
23060 | # The commands to extract the exported symbol list from a shared archive. |
23061 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
35fa52c0 | 23062 | |
9c60689e DWT |
23063 | # Variables whose values should be saved in libtool wrapper scripts and |
23064 | # restored at link time. | |
23065 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
35fa52c0 | 23066 | |
9c60689e DWT |
23067 | # Do we need the "lib" prefix for modules? |
23068 | need_lib_prefix=$need_lib_prefix | |
35fa52c0 | 23069 | |
9c60689e DWT |
23070 | # Do we need a version for libraries? |
23071 | need_version=$need_version | |
35fa52c0 | 23072 | |
9c60689e DWT |
23073 | # Library versioning type. |
23074 | version_type=$version_type | |
35fa52c0 | 23075 | |
9c60689e DWT |
23076 | # Shared library runtime path variable. |
23077 | runpath_var=$runpath_var | |
35fa52c0 | 23078 | |
9c60689e DWT |
23079 | # Shared library path variable. |
23080 | shlibpath_var=$shlibpath_var | |
35fa52c0 | 23081 | |
9c60689e DWT |
23082 | # Is shlibpath searched before the hard-coded library search path? |
23083 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
35fa52c0 | 23084 | |
9c60689e DWT |
23085 | # Format of library name prefix. |
23086 | libname_spec=$lt_libname_spec | |
35fa52c0 | 23087 | |
9c60689e DWT |
23088 | # List of archive names. First name is the real one, the rest are links. |
23089 | # The last name is the one that the linker finds with -lNAME | |
23090 | library_names_spec=$lt_library_names_spec | |
dbadc56a | 23091 | |
9c60689e DWT |
23092 | # The coded name of the library, if different from the real name. |
23093 | soname_spec=$lt_soname_spec | |
dbadc56a | 23094 | |
ee134472 JF |
23095 | # Permission mode override for installation of shared libraries. |
23096 | install_override_mode=$lt_install_override_mode | |
23097 | ||
9c60689e DWT |
23098 | # Command to use after installation of a shared archive. |
23099 | postinstall_cmds=$lt_postinstall_cmds | |
35fa52c0 | 23100 | |
9c60689e DWT |
23101 | # Command to use after uninstallation of a shared archive. |
23102 | postuninstall_cmds=$lt_postuninstall_cmds | |
dbadc56a | 23103 | |
9c60689e DWT |
23104 | # Commands used to finish a libtool library installation in a directory. |
23105 | finish_cmds=$lt_finish_cmds | |
35fa52c0 | 23106 | |
9c60689e DWT |
23107 | # As "finish_cmds", except a single script fragment to be evaled but |
23108 | # not shown. | |
23109 | finish_eval=$lt_finish_eval | |
35fa52c0 | 23110 | |
9c60689e DWT |
23111 | # Whether we should hardcode library paths into libraries. |
23112 | hardcode_into_libs=$hardcode_into_libs | |
dbadc56a | 23113 | |
9c60689e DWT |
23114 | # Compile-time system search path for libraries. |
23115 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
35fa52c0 | 23116 | |
9c60689e DWT |
23117 | # Run-time system search path for libraries. |
23118 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
dbadc56a | 23119 | |
9c60689e DWT |
23120 | # Whether dlopen is supported. |
23121 | dlopen_support=$enable_dlopen | |
dbadc56a | 23122 | |
9c60689e DWT |
23123 | # Whether dlopen of programs is supported. |
23124 | dlopen_self=$enable_dlopen_self | |
35fa52c0 | 23125 | |
9c60689e DWT |
23126 | # Whether dlopen of statically linked programs is supported. |
23127 | dlopen_self_static=$enable_dlopen_self_static | |
35fa52c0 | 23128 | |
9c60689e DWT |
23129 | # Commands to strip libraries. |
23130 | old_striplib=$lt_old_striplib | |
23131 | striplib=$lt_striplib | |
35fa52c0 | 23132 | |
35fa52c0 | 23133 | |
9c60689e DWT |
23134 | # The linker used to build libraries. |
23135 | LD=$lt_LD | |
dbadc56a | 23136 | |
ee134472 JF |
23137 | # How to create reloadable object files. |
23138 | reload_flag=$lt_reload_flag | |
23139 | reload_cmds=$lt_reload_cmds | |
23140 | ||
9c60689e DWT |
23141 | # Commands used to build an old-style archive. |
23142 | old_archive_cmds=$lt_old_archive_cmds | |
dbadc56a | 23143 | |
9c60689e DWT |
23144 | # A language specific compiler. |
23145 | CC=$lt_compiler | |
35fa52c0 | 23146 | |
9c60689e DWT |
23147 | # Is the compiler the GNU compiler? |
23148 | with_gcc=$GCC | |
dbadc56a | 23149 | |
9c60689e DWT |
23150 | # Compiler flag to turn off builtin functions. |
23151 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dbadc56a | 23152 | |
9c60689e DWT |
23153 | # Additional compiler flags for building library objects. |
23154 | pic_flag=$lt_lt_prog_compiler_pic | |
35fa52c0 | 23155 | |
ee134472 JF |
23156 | # How to pass a linker flag through the compiler. |
23157 | wl=$lt_lt_prog_compiler_wl | |
23158 | ||
9c60689e DWT |
23159 | # Compiler flag to prevent dynamic linking. |
23160 | link_static_flag=$lt_lt_prog_compiler_static | |
35fa52c0 | 23161 | |
9c60689e DWT |
23162 | # Does compiler simultaneously support -c and -o options? |
23163 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
dbadc56a | 23164 | |
9c60689e DWT |
23165 | # Whether or not to add -lc for building shared libraries. |
23166 | build_libtool_need_lc=$archive_cmds_need_lc | |
35fa52c0 | 23167 | |
9c60689e DWT |
23168 | # Whether or not to disallow shared libs when runtime libs are static. |
23169 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
35fa52c0 | 23170 | |
9c60689e DWT |
23171 | # Compiler flag to allow reflexive dlopens. |
23172 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
35fa52c0 | 23173 | |
9c60689e DWT |
23174 | # Compiler flag to generate shared objects directly from archives. |
23175 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
dbadc56a | 23176 | |
9c60689e DWT |
23177 | # Whether the compiler copes with passing no objects directly. |
23178 | compiler_needs_object=$lt_compiler_needs_object | |
dbadc56a | 23179 | |
9c60689e DWT |
23180 | # Create an old-style archive from a shared archive. |
23181 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
dbadc56a | 23182 | |
9c60689e DWT |
23183 | # Create a temporary old-style archive to link instead of a shared archive. |
23184 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
dbadc56a | 23185 | |
9c60689e DWT |
23186 | # Commands used to build a shared archive. |
23187 | archive_cmds=$lt_archive_cmds | |
23188 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
35fa52c0 | 23189 | |
9c60689e DWT |
23190 | # Commands used to build a loadable module if different from building |
23191 | # a shared archive. | |
23192 | module_cmds=$lt_module_cmds | |
23193 | module_expsym_cmds=$lt_module_expsym_cmds | |
dbadc56a | 23194 | |
9c60689e DWT |
23195 | # Whether we are building with GNU ld or not. |
23196 | with_gnu_ld=$lt_with_gnu_ld | |
6b66678a | 23197 | |
9c60689e DWT |
23198 | # Flag that allows shared libraries with undefined symbols to be built. |
23199 | allow_undefined_flag=$lt_allow_undefined_flag | |
6b66678a | 23200 | |
9c60689e DWT |
23201 | # Flag that enforces no undefined symbols. |
23202 | no_undefined_flag=$lt_no_undefined_flag | |
6b66678a | 23203 | |
9c60689e DWT |
23204 | # Flag to hardcode \$libdir into a binary during linking. |
23205 | # This must work even if \$libdir does not exist | |
23206 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
6b66678a | 23207 | |
9c60689e DWT |
23208 | # Whether we need a single "-rpath" flag with a separated argument. |
23209 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
6b66678a | 23210 | |
9c60689e DWT |
23211 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
23212 | # DIR into the resulting binary. | |
23213 | hardcode_direct=$hardcode_direct | |
6b66678a | 23214 | |
9c60689e DWT |
23215 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
23216 | # DIR into the resulting binary and the resulting library dependency is | |
23217 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
23218 | # library is relocated. | |
23219 | hardcode_direct_absolute=$hardcode_direct_absolute | |
6b66678a | 23220 | |
9c60689e DWT |
23221 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
23222 | # into the resulting binary. | |
23223 | hardcode_minus_L=$hardcode_minus_L | |
6b66678a | 23224 | |
9c60689e DWT |
23225 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
23226 | # into the resulting binary. | |
23227 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
6b66678a | 23228 | |
9c60689e DWT |
23229 | # Set to "yes" if building a shared library automatically hardcodes DIR |
23230 | # into the library and all subsequent libraries and executables linked | |
23231 | # against it. | |
23232 | hardcode_automatic=$hardcode_automatic | |
6b66678a | 23233 | |
9c60689e DWT |
23234 | # Set to yes if linker adds runtime paths of dependent libraries |
23235 | # to runtime path list. | |
23236 | inherit_rpath=$inherit_rpath | |
6b66678a | 23237 | |
9c60689e DWT |
23238 | # Whether libtool must link a program against all its dependency libraries. |
23239 | link_all_deplibs=$link_all_deplibs | |
23240 | ||
9c60689e DWT |
23241 | # Set to "yes" if exported symbols are required. |
23242 | always_export_symbols=$always_export_symbols | |
6b66678a | 23243 | |
9c60689e DWT |
23244 | # The commands to list exported symbols. |
23245 | export_symbols_cmds=$lt_export_symbols_cmds | |
6b66678a | 23246 | |
9c60689e DWT |
23247 | # Symbols that should not be listed in the preloaded symbols. |
23248 | exclude_expsyms=$lt_exclude_expsyms | |
6b66678a | 23249 | |
9c60689e DWT |
23250 | # Symbols that must always be exported. |
23251 | include_expsyms=$lt_include_expsyms | |
6b66678a | 23252 | |
9c60689e DWT |
23253 | # Commands necessary for linking programs (against libraries) with templates. |
23254 | prelink_cmds=$lt_prelink_cmds | |
6b66678a | 23255 | |
ee134472 JF |
23256 | # Commands necessary for finishing linking programs. |
23257 | postlink_cmds=$lt_postlink_cmds | |
23258 | ||
9c60689e DWT |
23259 | # Specify filename containing input files. |
23260 | file_list_spec=$lt_file_list_spec | |
6b66678a | 23261 | |
9c60689e DWT |
23262 | # How to hardcode a shared library path into an executable. |
23263 | hardcode_action=$hardcode_action | |
23264 | ||
23265 | # The directories searched by this compiler when creating a shared library. | |
23266 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
23267 | ||
23268 | # Dependencies to place before and after the objects being linked to | |
23269 | # create a shared library. | |
23270 | predep_objects=$lt_predep_objects | |
23271 | postdep_objects=$lt_postdep_objects | |
23272 | predeps=$lt_predeps | |
23273 | postdeps=$lt_postdeps | |
23274 | ||
23275 | # The library search path used internally by the compiler when linking | |
23276 | # a shared library. | |
23277 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
23278 | ||
23279 | # ### END LIBTOOL CONFIG | |
23280 | ||
23281 | _LT_EOF | |
23282 | ||
23283 | case $host_os in | |
23284 | aix3*) | |
23285 | cat <<\_LT_EOF >> "$cfgfile" | |
23286 | # AIX sometimes has problems with the GCC collect2 program. For some | |
23287 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
23288 | # vanish in a puff of smoke. | |
23289 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
23290 | COLLECT_NAMES= | |
23291 | export COLLECT_NAMES | |
6b66678a | 23292 | fi |
9c60689e DWT |
23293 | _LT_EOF |
23294 | ;; | |
23295 | esac | |
6b66678a DWT |
23296 | |
23297 | ||
9c60689e | 23298 | ltmain="$ac_aux_dir/ltmain.sh" |
6b66678a | 23299 | |
9c60689e DWT |
23300 | |
23301 | # We use sed instead of cat because bash on DJGPP gets confused if | |
23302 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
23303 | # text mode, it properly converts lines to CR/LF. This bash problem | |
23304 | # is reportedly fixed, but why not run on old versions too? | |
ee134472 JF |
23305 | sed '$q' "$ltmain" >> "$cfgfile" \ |
23306 | || (rm -f "$cfgfile"; exit 1) | |
23307 | ||
23308 | if test x"$xsi_shell" = xyes; then | |
23309 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | |
23310 | func_dirname ()\ | |
23311 | {\ | |
23312 | \ case ${1} in\ | |
23313 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
23314 | \ * ) func_dirname_result="${3}" ;;\ | |
23315 | \ esac\ | |
23316 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | |
23317 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
23318 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
23319 | test 0 -eq $? || _lt_function_replace_fail=: | |
23320 | ||
23321 | ||
23322 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ | |
23323 | func_basename ()\ | |
23324 | {\ | |
23325 | \ func_basename_result="${1##*/}"\ | |
23326 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
23327 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
23328 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
23329 | test 0 -eq $? || _lt_function_replace_fail=: | |
23330 | ||
23331 | ||
23332 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | |
23333 | func_dirname_and_basename ()\ | |
23334 | {\ | |
23335 | \ case ${1} in\ | |
23336 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
23337 | \ * ) func_dirname_result="${3}" ;;\ | |
23338 | \ esac\ | |
23339 | \ func_basename_result="${1##*/}"\ | |
23340 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
23341 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
23342 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
23343 | test 0 -eq $? || _lt_function_replace_fail=: | |
23344 | ||
23345 | ||
23346 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | |
23347 | func_stripname ()\ | |
23348 | {\ | |
23349 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | |
23350 | \ # positional parameters, so assign one to ordinary parameter first.\ | |
23351 | \ func_stripname_result=${3}\ | |
23352 | \ func_stripname_result=${func_stripname_result#"${1}"}\ | |
23353 | \ func_stripname_result=${func_stripname_result%"${2}"}\ | |
23354 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | |
23355 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
23356 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
23357 | test 0 -eq $? || _lt_function_replace_fail=: | |
23358 | ||
23359 | ||
23360 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | |
23361 | func_split_long_opt ()\ | |
23362 | {\ | |
23363 | \ func_split_long_opt_name=${1%%=*}\ | |
23364 | \ func_split_long_opt_arg=${1#*=}\ | |
23365 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
23366 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
23367 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
23368 | test 0 -eq $? || _lt_function_replace_fail=: | |
23369 | ||
23370 | ||
23371 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | |
23372 | func_split_short_opt ()\ | |
23373 | {\ | |
23374 | \ func_split_short_opt_arg=${1#??}\ | |
23375 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | |
23376 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
23377 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
23378 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
23379 | test 0 -eq $? || _lt_function_replace_fail=: | |
23380 | ||
23381 | ||
23382 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | |
23383 | func_lo2o ()\ | |
23384 | {\ | |
23385 | \ case ${1} in\ | |
23386 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | |
23387 | \ *) func_lo2o_result=${1} ;;\ | |
23388 | \ esac\ | |
23389 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | |
23390 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
23391 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
23392 | test 0 -eq $? || _lt_function_replace_fail=: | |
23393 | ||
23394 | ||
23395 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ | |
23396 | func_xform ()\ | |
23397 | {\ | |
23398 | func_xform_result=${1%.*}.lo\ | |
23399 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | |
23400 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
23401 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
23402 | test 0 -eq $? || _lt_function_replace_fail=: | |
23403 | ||
23404 | ||
23405 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ | |
23406 | func_arith ()\ | |
23407 | {\ | |
23408 | func_arith_result=$(( $* ))\ | |
23409 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | |
23410 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
23411 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
23412 | test 0 -eq $? || _lt_function_replace_fail=: | |
23413 | ||
23414 | ||
23415 | sed -e '/^func_len ()$/,/^} # func_len /c\ | |
23416 | func_len ()\ | |
23417 | {\ | |
23418 | func_len_result=${#1}\ | |
23419 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | |
23420 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
23421 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
23422 | test 0 -eq $? || _lt_function_replace_fail=: | |
23423 | ||
23424 | fi | |
23425 | ||
23426 | if test x"$lt_shell_append" = xyes; then | |
23427 | sed -e '/^func_append ()$/,/^} # func_append /c\ | |
23428 | func_append ()\ | |
23429 | {\ | |
23430 | eval "${1}+=\\${2}"\ | |
23431 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | |
23432 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
23433 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
23434 | test 0 -eq $? || _lt_function_replace_fail=: | |
23435 | ||
23436 | ||
23437 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | |
23438 | func_append_quoted ()\ | |
23439 | {\ | |
23440 | \ func_quote_for_eval "${2}"\ | |
23441 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | |
23442 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | |
23443 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
23444 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
23445 | test 0 -eq $? || _lt_function_replace_fail=: | |
23446 | ||
23447 | ||
23448 | # Save a `func_append' function call where possible by direct use of '+=' | |
23449 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | |
23450 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
23451 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
23452 | test 0 -eq $? || _lt_function_replace_fail=: | |
23453 | else | |
23454 | # Save a `func_append' function call even when '+=' is not available | |
23455 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | |
23456 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
23457 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
23458 | test 0 -eq $? || _lt_function_replace_fail=: | |
23459 | fi | |
23460 | ||
23461 | if test x"$_lt_function_replace_fail" = x":"; then | |
23462 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | |
23463 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | |
23464 | fi | |
23465 | ||
23466 | ||
23467 | mv -f "$cfgfile" "$ofile" || | |
9c60689e DWT |
23468 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
23469 | chmod +x "$ofile" | |
23470 | ||
23471 | ||
23472 | cat <<_LT_EOF >> "$ofile" | |
23473 | ||
23474 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
23475 | ||
23476 | # The linker used to build libraries. | |
23477 | LD=$lt_LD_CXX | |
23478 | ||
ee134472 JF |
23479 | # How to create reloadable object files. |
23480 | reload_flag=$lt_reload_flag_CXX | |
23481 | reload_cmds=$lt_reload_cmds_CXX | |
23482 | ||
9c60689e DWT |
23483 | # Commands used to build an old-style archive. |
23484 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
23485 | ||
23486 | # A language specific compiler. | |
23487 | CC=$lt_compiler_CXX | |
23488 | ||
23489 | # Is the compiler the GNU compiler? | |
23490 | with_gcc=$GCC_CXX | |
23491 | ||
23492 | # Compiler flag to turn off builtin functions. | |
23493 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
6b66678a | 23494 | |
9c60689e DWT |
23495 | # Additional compiler flags for building library objects. |
23496 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
6b66678a | 23497 | |
ee134472 JF |
23498 | # How to pass a linker flag through the compiler. |
23499 | wl=$lt_lt_prog_compiler_wl_CXX | |
23500 | ||
9c60689e DWT |
23501 | # Compiler flag to prevent dynamic linking. |
23502 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
6b66678a | 23503 | |
9c60689e DWT |
23504 | # Does compiler simultaneously support -c and -o options? |
23505 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
dbadc56a | 23506 | |
9c60689e DWT |
23507 | # Whether or not to add -lc for building shared libraries. |
23508 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
dbadc56a | 23509 | |
9c60689e DWT |
23510 | # Whether or not to disallow shared libs when runtime libs are static. |
23511 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
35fa52c0 | 23512 | |
9c60689e DWT |
23513 | # Compiler flag to allow reflexive dlopens. |
23514 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
35fa52c0 | 23515 | |
9c60689e DWT |
23516 | # Compiler flag to generate shared objects directly from archives. |
23517 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
35fa52c0 | 23518 | |
9c60689e DWT |
23519 | # Whether the compiler copes with passing no objects directly. |
23520 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
35fa52c0 | 23521 | |
9c60689e DWT |
23522 | # Create an old-style archive from a shared archive. |
23523 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
35fa52c0 | 23524 | |
9c60689e DWT |
23525 | # Create a temporary old-style archive to link instead of a shared archive. |
23526 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
35fa52c0 | 23527 | |
9c60689e DWT |
23528 | # Commands used to build a shared archive. |
23529 | archive_cmds=$lt_archive_cmds_CXX | |
23530 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
6b66678a | 23531 | |
9c60689e DWT |
23532 | # Commands used to build a loadable module if different from building |
23533 | # a shared archive. | |
23534 | module_cmds=$lt_module_cmds_CXX | |
23535 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
6b66678a | 23536 | |
9c60689e DWT |
23537 | # Whether we are building with GNU ld or not. |
23538 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
6b66678a | 23539 | |
9c60689e DWT |
23540 | # Flag that allows shared libraries with undefined symbols to be built. |
23541 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
35fa52c0 | 23542 | |
9c60689e DWT |
23543 | # Flag that enforces no undefined symbols. |
23544 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
35fa52c0 | 23545 | |
9c60689e DWT |
23546 | # Flag to hardcode \$libdir into a binary during linking. |
23547 | # This must work even if \$libdir does not exist | |
23548 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
6b66678a | 23549 | |
9c60689e DWT |
23550 | # Whether we need a single "-rpath" flag with a separated argument. |
23551 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
6b66678a | 23552 | |
9c60689e DWT |
23553 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
23554 | # DIR into the resulting binary. | |
23555 | hardcode_direct=$hardcode_direct_CXX | |
6b66678a | 23556 | |
9c60689e DWT |
23557 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
23558 | # DIR into the resulting binary and the resulting library dependency is | |
23559 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
23560 | # library is relocated. | |
23561 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
6b66678a | 23562 | |
9c60689e DWT |
23563 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
23564 | # into the resulting binary. | |
23565 | hardcode_minus_L=$hardcode_minus_L_CXX | |
35fa52c0 | 23566 | |
9c60689e DWT |
23567 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
23568 | # into the resulting binary. | |
23569 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
35fa52c0 | 23570 | |
9c60689e DWT |
23571 | # Set to "yes" if building a shared library automatically hardcodes DIR |
23572 | # into the library and all subsequent libraries and executables linked | |
23573 | # against it. | |
23574 | hardcode_automatic=$hardcode_automatic_CXX | |
6b66678a | 23575 | |
9c60689e DWT |
23576 | # Set to yes if linker adds runtime paths of dependent libraries |
23577 | # to runtime path list. | |
23578 | inherit_rpath=$inherit_rpath_CXX | |
6b66678a | 23579 | |
9c60689e DWT |
23580 | # Whether libtool must link a program against all its dependency libraries. |
23581 | link_all_deplibs=$link_all_deplibs_CXX | |
6b66678a | 23582 | |
9c60689e DWT |
23583 | # Set to "yes" if exported symbols are required. |
23584 | always_export_symbols=$always_export_symbols_CXX | |
6b66678a | 23585 | |
9c60689e DWT |
23586 | # The commands to list exported symbols. |
23587 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
6b66678a | 23588 | |
9c60689e DWT |
23589 | # Symbols that should not be listed in the preloaded symbols. |
23590 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
6b66678a | 23591 | |
9c60689e DWT |
23592 | # Symbols that must always be exported. |
23593 | include_expsyms=$lt_include_expsyms_CXX | |
6b66678a | 23594 | |
9c60689e DWT |
23595 | # Commands necessary for linking programs (against libraries) with templates. |
23596 | prelink_cmds=$lt_prelink_cmds_CXX | |
6b66678a | 23597 | |
ee134472 JF |
23598 | # Commands necessary for finishing linking programs. |
23599 | postlink_cmds=$lt_postlink_cmds_CXX | |
23600 | ||
9c60689e DWT |
23601 | # Specify filename containing input files. |
23602 | file_list_spec=$lt_file_list_spec_CXX | |
dbadc56a | 23603 | |
9c60689e DWT |
23604 | # How to hardcode a shared library path into an executable. |
23605 | hardcode_action=$hardcode_action_CXX | |
309b0535 | 23606 | |
9c60689e DWT |
23607 | # The directories searched by this compiler when creating a shared library. |
23608 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
309b0535 | 23609 | |
9c60689e DWT |
23610 | # Dependencies to place before and after the objects being linked to |
23611 | # create a shared library. | |
23612 | predep_objects=$lt_predep_objects_CXX | |
23613 | postdep_objects=$lt_postdep_objects_CXX | |
23614 | predeps=$lt_predeps_CXX | |
23615 | postdeps=$lt_postdeps_CXX | |
309b0535 | 23616 | |
9c60689e DWT |
23617 | # The library search path used internally by the compiler when linking |
23618 | # a shared library. | |
23619 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
23620 | ||
23621 | # ### END LIBTOOL TAG CONFIG: CXX | |
23622 | _LT_EOF | |
23623 | ||
23624 | ;; | |
23625 | ||
23626 | esac | |
23627 | done # for ac_tag | |
23628 | ||
23629 | ||
23630 | as_fn_exit 0 | |
23631 | _ACEOF | |
23632 | ac_clean_files=$ac_clean_files_save | |
23633 | ||
23634 | test $ac_write_fail = 0 || | |
12833ad8 | 23635 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
9c60689e DWT |
23636 | |
23637 | ||
23638 | # configure is writing to config.log, and then calls config.status. | |
23639 | # config.status does its own redirection, appending to config.log. | |
23640 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
23641 | # by configure, so config.status won't be able to write to it; its | |
23642 | # output is simply discarded. So we exec the FD to /dev/null, | |
23643 | # effectively closing config.log, so it can be properly (re)opened and | |
23644 | # appended to by config.status. When coming back to configure, we | |
23645 | # need to make the FD available again. | |
23646 | if test "$no_create" != yes; then | |
23647 | ac_cs_success=: | |
23648 | ac_config_status_args= | |
23649 | test "$silent" = yes && | |
23650 | ac_config_status_args="$ac_config_status_args --quiet" | |
23651 | exec 5>/dev/null | |
23652 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
23653 | exec 5>>config.log | |
23654 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
23655 | # would make configure fail if this is the last instruction. | |
12833ad8 | 23656 | $ac_cs_success || as_fn_exit 1 |
309b0535 | 23657 | fi |
9c60689e DWT |
23658 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
23659 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
23660 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
23661 | fi | |
23662 |