diff options
Diffstat (limited to '')
-rwxr-xr-x | libraries/eina/configure | 23589 | ||||
-rw-r--r-- | libraries/eina/configure.ac | 797 |
2 files changed, 24386 insertions, 0 deletions
diff --git a/libraries/eina/configure b/libraries/eina/configure new file mode 100755 index 0000000..7c01482 --- /dev/null +++ b/libraries/eina/configure | |||
@@ -0,0 +1,23589 @@ | |||
1 | #! /bin/sh | ||
2 | # Guess values for system-dependent variables and create Makefiles. | ||
3 | # Generated by GNU Autoconf 2.67 for eina 1.1.0. | ||
4 | # | ||
5 | # Report bugs to <enlightenment-devel@lists.sourceforge.net>. | ||
6 | # | ||
7 | # | ||
8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | ||
10 | # Foundation, Inc. | ||
11 | # | ||
12 | # | ||
13 | # This configure script is free software; the Free Software Foundation | ||
14 | # gives unlimited permission to copy, distribute and modify it. | ||
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. | ||
94 | case $0 in #(( | ||
95 | *[\\/]* ) as_myself=$0 ;; | ||
96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
97 | for as_dir in $PATH | ||
98 | do | ||
99 | IFS=$as_save_IFS | ||
100 | test -z "$as_dir" && as_dir=. | ||
101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
102 | done | ||
103 | IFS=$as_save_IFS | ||
104 | |||
105 | ;; | ||
106 | esac | ||
107 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
108 | # in which case we are not to be found in the path. | ||
109 | if test "x$as_myself" = x; then | ||
110 | as_myself=$0 | ||
111 | fi | ||
112 | if test ! -f "$as_myself"; then | ||
113 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
114 | exit 1 | ||
115 | fi | ||
116 | |||
117 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
118 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
119 | # suppresses any "Segmentation fault" message there. '((' could | ||
120 | # trigger a bug in pdksh 5.2.14. | ||
121 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
122 | do eval test x\${$as_var+set} = xset \ | ||
123 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
124 | done | ||
125 | PS1='$ ' | ||
126 | PS2='> ' | ||
127 | PS4='+ ' | ||
128 | |||
129 | # NLS nuisances. | ||
130 | LC_ALL=C | ||
131 | export LC_ALL | ||
132 | LANGUAGE=C | ||
133 | export LANGUAGE | ||
134 | |||
135 | # CDPATH. | ||
136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
137 | |||
138 | if test "x$CONFIG_SHELL" = x; then | ||
139 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | ||
140 | emulate sh | ||
141 | NULLCMD=: | ||
142 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | ||
143 | # is contrary to our usage. Disable this feature. | ||
144 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | ||
145 | setopt NO_GLOB_SUBST | ||
146 | else | ||
147 | case \`(set -o) 2>/dev/null\` in #( | ||
148 | *posix*) : | ||
149 | set -o posix ;; #( | ||
150 | *) : | ||
151 | ;; | ||
152 | esac | ||
153 | fi | ||
154 | " | ||
155 | as_required="as_fn_return () { (exit \$1); } | ||
156 | as_fn_success () { as_fn_return 0; } | ||
157 | as_fn_failure () { as_fn_return 1; } | ||
158 | as_fn_ret_success () { return 0; } | ||
159 | as_fn_ret_failure () { return 1; } | ||
160 | |||
161 | exitcode=0 | ||
162 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | ||
163 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | ||
164 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | ||
165 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | ||
166 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | ||
167 | |||
168 | else | ||
169 | exitcode=1; echo positional parameters were not saved. | ||
170 | fi | ||
171 | test x\$exitcode = x0 || exit 1" | ||
172 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | ||
173 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | ||
174 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | ||
175 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | ||
176 | test \$(( 1 + 1 )) = 2 || exit 1" | ||
177 | if (eval "$as_required") 2>/dev/null; then : | ||
178 | as_have_required=yes | ||
179 | else | ||
180 | as_have_required=no | ||
181 | fi | ||
182 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | ||
183 | |||
184 | else | ||
185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
186 | as_found=false | ||
187 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
188 | do | ||
189 | IFS=$as_save_IFS | ||
190 | test -z "$as_dir" && as_dir=. | ||
191 | as_found=: | ||
192 | case $as_dir in #( | ||
193 | /*) | ||
194 | for as_base in sh bash ksh sh5; do | ||
195 | # Try only shells that exist, to save several forks. | ||
196 | as_shell=$as_dir/$as_base | ||
197 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | ||
198 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||
199 | CONFIG_SHELL=$as_shell as_have_required=yes | ||
200 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||
201 | break 2 | ||
202 | fi | ||
203 | fi | ||
204 | done;; | ||
205 | esac | ||
206 | as_found=false | ||
207 | done | ||
208 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | ||
209 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | ||
210 | CONFIG_SHELL=$SHELL as_have_required=yes | ||
211 | fi; } | ||
212 | IFS=$as_save_IFS | ||
213 | |||
214 | |||
215 | if test "x$CONFIG_SHELL" != x; then : | ||
216 | # We cannot yet assume a decent shell, so we have to provide a | ||
217 | # neutralization value for shells without unset; and this also | ||
218 | # works around shells that cannot unset nonexistent variables. | ||
219 | BASH_ENV=/dev/null | ||
220 | ENV=/dev/null | ||
221 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | ||
222 | export CONFIG_SHELL | ||
223 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | ||
224 | fi | ||
225 | |||
226 | if test x$as_have_required = xno; then : | ||
227 | $as_echo "$0: This script requires a shell more modern than all" | ||
228 | $as_echo "$0: the shells that I found on your system." | ||
229 | if test x${ZSH_VERSION+set} = xset ; then | ||
230 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | ||
231 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | ||
232 | else | ||
233 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | ||
234 | $0: enlightenment-devel@lists.sourceforge.net about your | ||
235 | $0: system, including any error possibly output before this | ||
236 | $0: message. Then install a modern shell, or manually run | ||
237 | $0: the script under such a shell if you do have one." | ||
238 | fi | ||
239 | exit 1 | ||
240 | fi | ||
241 | fi | ||
242 | fi | ||
243 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
244 | export SHELL | ||
245 | # Unset more variables known to interfere with behavior of common tools. | ||
246 | CLICOLOR_FORCE= GREP_OPTIONS= | ||
247 | unset CLICOLOR_FORCE GREP_OPTIONS | ||
248 | |||
249 | ## --------------------- ## | ||
250 | ## M4sh Shell Functions. ## | ||
251 | ## --------------------- ## | ||
252 | # as_fn_unset VAR | ||
253 | # --------------- | ||
254 | # Portably unset VAR. | ||
255 | as_fn_unset () | ||
256 | { | ||
257 | { eval $1=; unset $1;} | ||
258 | } | ||
259 | as_unset=as_fn_unset | ||
260 | |||
261 | # as_fn_set_status STATUS | ||
262 | # ----------------------- | ||
263 | # Set $? to STATUS, without forking. | ||
264 | as_fn_set_status () | ||
265 | { | ||
266 | return $1 | ||
267 | } # as_fn_set_status | ||
268 | |||
269 | # as_fn_exit STATUS | ||
270 | # ----------------- | ||
271 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
272 | as_fn_exit () | ||
273 | { | ||
274 | set +e | ||
275 | as_fn_set_status $1 | ||
276 | exit $1 | ||
277 | } # as_fn_exit | ||
278 | |||
279 | # as_fn_mkdir_p | ||
280 | # ------------- | ||
281 | # Create "$as_dir" as a directory, including parents if necessary. | ||
282 | as_fn_mkdir_p () | ||
283 | { | ||
284 | |||
285 | case $as_dir in #( | ||
286 | -*) as_dir=./$as_dir;; | ||
287 | esac | ||
288 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
289 | as_dirs= | ||
290 | while :; do | ||
291 | case $as_dir in #( | ||
292 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
293 | *) as_qdir=$as_dir;; | ||
294 | esac | ||
295 | as_dirs="'$as_qdir' $as_dirs" | ||
296 | as_dir=`$as_dirname -- "$as_dir" || | ||
297 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
298 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
299 | X"$as_dir" : 'X\(//\)$' \| \ | ||
300 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
301 | $as_echo X"$as_dir" | | ||
302 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
303 | s//\1/ | ||
304 | q | ||
305 | } | ||
306 | /^X\(\/\/\)[^/].*/{ | ||
307 | s//\1/ | ||
308 | q | ||
309 | } | ||
310 | /^X\(\/\/\)$/{ | ||
311 | s//\1/ | ||
312 | q | ||
313 | } | ||
314 | /^X\(\/\).*/{ | ||
315 | s//\1/ | ||
316 | q | ||
317 | } | ||
318 | s/.*/./; q'` | ||
319 | test -d "$as_dir" && break | ||
320 | done | ||
321 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
322 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | ||
323 | |||
324 | |||
325 | } # as_fn_mkdir_p | ||
326 | # as_fn_append VAR VALUE | ||
327 | # ---------------------- | ||
328 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
329 | # advantage of any shell optimizations that allow amortized linear growth over | ||
330 | # repeated appends, instead of the typical quadratic growth present in naive | ||
331 | # implementations. | ||
332 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
333 | eval 'as_fn_append () | ||
334 | { | ||
335 | eval $1+=\$2 | ||
336 | }' | ||
337 | else | ||
338 | as_fn_append () | ||
339 | { | ||
340 | eval $1=\$$1\$2 | ||
341 | } | ||
342 | fi # as_fn_append | ||
343 | |||
344 | # as_fn_arith ARG... | ||
345 | # ------------------ | ||
346 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
347 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
348 | # must be portable across $(()) and expr. | ||
349 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
350 | eval 'as_fn_arith () | ||
351 | { | ||
352 | as_val=$(( $* )) | ||
353 | }' | ||
354 | else | ||
355 | as_fn_arith () | ||
356 | { | ||
357 | as_val=`expr "$@" || test $? -eq 1` | ||
358 | } | ||
359 | fi # as_fn_arith | ||
360 | |||
361 | |||
362 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
363 | # ---------------------------------------- | ||
364 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
365 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
366 | # script with STATUS, using 1 if that was 0. | ||
367 | as_fn_error () | ||
368 | { | ||
369 | as_status=$1; test $as_status -eq 0 && as_status=1 | ||
370 | if test "$4"; then | ||
371 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
372 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
373 | fi | ||
374 | $as_echo "$as_me: error: $2" >&2 | ||
375 | as_fn_exit $as_status | ||
376 | } # as_fn_error | ||
377 | |||
378 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
379 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
380 | as_expr=expr | ||
381 | else | ||
382 | as_expr=false | ||
383 | fi | ||
384 | |||
385 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
386 | as_basename=basename | ||
387 | else | ||
388 | as_basename=false | ||
389 | fi | ||
390 | |||
391 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
392 | as_dirname=dirname | ||
393 | else | ||
394 | as_dirname=false | ||
395 | fi | ||
396 | |||
397 | as_me=`$as_basename -- "$0" || | ||
398 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
399 | X"$0" : 'X\(//\)$' \| \ | ||
400 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
401 | $as_echo X/"$0" | | ||
402 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
403 | s//\1/ | ||
404 | q | ||
405 | } | ||
406 | /^X\/\(\/\/\)$/{ | ||
407 | s//\1/ | ||
408 | q | ||
409 | } | ||
410 | /^X\/\(\/\).*/{ | ||
411 | s//\1/ | ||
412 | q | ||
413 | } | ||
414 | s/.*/./; q'` | ||
415 | |||
416 | # Avoid depending upon Character Ranges. | ||
417 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
418 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
419 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
420 | as_cr_digits='0123456789' | ||
421 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
422 | |||
423 | |||
424 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | ||
425 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | ||
426 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | ||
427 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | ||
428 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | ||
429 | sed -n ' | ||
430 | p | ||
431 | /[$]LINENO/= | ||
432 | ' <$as_myself | | ||
433 | sed ' | ||
434 | s/[$]LINENO.*/&-/ | ||
435 | t lineno | ||
436 | b | ||
437 | :lineno | ||
438 | N | ||
439 | :loop | ||
440 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
441 | t loop | ||
442 | s/-\n.*// | ||
443 | ' >$as_me.lineno && | ||
444 | chmod +x "$as_me.lineno" || | ||
445 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | ||
446 | |||
447 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
448 | # (the dirname of $[0] is not the place where we might find the | ||
449 | # original and so on. Autoconf is especially sensitive to this). | ||
450 | . "./$as_me.lineno" | ||
451 | # Exit status is that of the last command. | ||
452 | exit | ||
453 | } | ||
454 | |||
455 | ECHO_C= ECHO_N= ECHO_T= | ||
456 | case `echo -n x` in #((((( | ||
457 | -n*) | ||
458 | case `echo 'xy\c'` in | ||
459 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
460 | xy) ECHO_C='\c';; | ||
461 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
462 | ECHO_T=' ';; | ||
463 | esac;; | ||
464 | *) | ||
465 | ECHO_N='-n';; | ||
466 | esac | ||
467 | |||
468 | rm -f conf$$ conf$$.exe conf$$.file | ||
469 | if test -d conf$$.dir; then | ||
470 | rm -f conf$$.dir/conf$$.file | ||
471 | else | ||
472 | rm -f conf$$.dir | ||
473 | mkdir conf$$.dir 2>/dev/null | ||
474 | fi | ||
475 | if (echo >conf$$.file) 2>/dev/null; then | ||
476 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
477 | as_ln_s='ln -s' | ||
478 | # ... but there are two gotchas: | ||
479 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
480 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
481 | # In both cases, we have to default to `cp -p'. | ||
482 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
483 | as_ln_s='cp -p' | ||
484 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
485 | as_ln_s=ln | ||
486 | else | ||
487 | as_ln_s='cp -p' | ||
488 | fi | ||
489 | else | ||
490 | as_ln_s='cp -p' | ||
491 | fi | ||
492 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
493 | rmdir conf$$.dir 2>/dev/null | ||
494 | |||
495 | if mkdir -p . 2>/dev/null; then | ||
496 | as_mkdir_p='mkdir -p "$as_dir"' | ||
497 | else | ||
498 | test -d ./-p && rmdir ./-p | ||
499 | as_mkdir_p=false | ||
500 | fi | ||
501 | |||
502 | if test -x / >/dev/null 2>&1; then | ||
503 | as_test_x='test -x' | ||
504 | else | ||
505 | if ls -dL / >/dev/null 2>&1; then | ||
506 | as_ls_L_option=L | ||
507 | else | ||
508 | as_ls_L_option= | ||
509 | fi | ||
510 | as_test_x=' | ||
511 | eval sh -c '\'' | ||
512 | if test -d "$1"; then | ||
513 | test -d "$1/."; | ||
514 | else | ||
515 | case $1 in #( | ||
516 | -*)set "./$1";; | ||
517 | esac; | ||
518 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | ||
519 | ???[sx]*):;;*)false;;esac;fi | ||
520 | '\'' sh | ||
521 | ' | ||
522 | fi | ||
523 | as_executable_p=$as_test_x | ||
524 | |||
525 | # Sed expression to map a string onto a valid CPP name. | ||
526 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
527 | |||
528 | # Sed expression to map a string onto a valid variable name. | ||
529 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
530 | |||
531 | |||
532 | |||
533 | # Check that we are running under the correct shell. | ||
534 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
535 | |||
536 | case X$lt_ECHO in | ||
537 | X*--fallback-echo) | ||
538 | # Remove one level of quotation (which was required for Make). | ||
539 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | ||
540 | ;; | ||
541 | esac | ||
542 | |||
543 | ECHO=${lt_ECHO-echo} | ||
544 | if test "X$1" = X--no-reexec; then | ||
545 | # Discard the --no-reexec flag, and continue. | ||
546 | shift | ||
547 | elif test "X$1" = X--fallback-echo; then | ||
548 | # Avoid inline document here, it may be left over | ||
549 | : | ||
550 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | ||
551 | # Yippee, $ECHO works! | ||
552 | : | ||
553 | else | ||
554 | # Restart under the correct shell. | ||
555 | exec $SHELL "$0" --no-reexec ${1+"$@"} | ||
556 | fi | ||
557 | |||
558 | if test "X$1" = X--fallback-echo; then | ||
559 | # used as fallback echo | ||
560 | shift | ||
561 | cat <<_LT_EOF | ||
562 | $* | ||
563 | _LT_EOF | ||
564 | exit 0 | ||
565 | fi | ||
566 | |||
567 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
568 | # if CDPATH is set. | ||
569 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
570 | |||
571 | if test -z "$lt_ECHO"; then | ||
572 | if test "X${echo_test_string+set}" != Xset; then | ||
573 | # find a string as large as possible, as long as the shell can cope with it | ||
574 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | ||
575 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | ||
576 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | ||
577 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | ||
578 | then | ||
579 | break | ||
580 | fi | ||
581 | done | ||
582 | fi | ||
583 | |||
584 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | ||
585 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | ||
586 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
587 | : | ||
588 | else | ||
589 | # The Solaris, AIX, and Digital Unix default echo programs unquote | ||
590 | # backslashes. This makes it impossible to quote backslashes using | ||
591 | # echo "$something" | sed 's/\\/\\\\/g' | ||
592 | # | ||
593 | # So, first we look for a working echo in the user's PATH. | ||
594 | |||
595 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
596 | for dir in $PATH /usr/ucb; do | ||
597 | IFS="$lt_save_ifs" | ||
598 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | ||
599 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | ||
600 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | ||
601 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
602 | ECHO="$dir/echo" | ||
603 | break | ||
604 | fi | ||
605 | done | ||
606 | IFS="$lt_save_ifs" | ||
607 | |||
608 | if test "X$ECHO" = Xecho; then | ||
609 | # We didn't find a better echo, so look for alternatives. | ||
610 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | ||
611 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | ||
612 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
613 | # This shell has a builtin print -r that does the trick. | ||
614 | ECHO='print -r' | ||
615 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | ||
616 | test "X$CONFIG_SHELL" != X/bin/ksh; then | ||
617 | # If we have ksh, try running configure again with it. | ||
618 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | ||
619 | export ORIGINAL_CONFIG_SHELL | ||
620 | CONFIG_SHELL=/bin/ksh | ||
621 | export CONFIG_SHELL | ||
622 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | ||
623 | else | ||
624 | # Try using printf. | ||
625 | ECHO='printf %s\n' | ||
626 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | ||
627 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | ||
628 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
629 | # Cool, printf works | ||
630 | : | ||
631 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
632 | test "X$echo_testing_string" = 'X\t' && | ||
633 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
634 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
635 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | ||
636 | export CONFIG_SHELL | ||
637 | SHELL="$CONFIG_SHELL" | ||
638 | export SHELL | ||
639 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | ||
640 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
641 | test "X$echo_testing_string" = 'X\t' && | ||
642 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
643 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
644 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | ||
645 | else | ||
646 | # maybe with a smaller string... | ||
647 | prev=: | ||
648 | |||
649 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | ||
650 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | ||
651 | then | ||
652 | break | ||
653 | fi | ||
654 | prev="$cmd" | ||
655 | done | ||
656 | |||
657 | if test "$prev" != 'sed 50q "$0"'; then | ||
658 | echo_test_string=`eval $prev` | ||
659 | export echo_test_string | ||
660 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | ||
661 | else | ||
662 | # Oops. We lost completely, so just stick with echo. | ||
663 | ECHO=echo | ||
664 | fi | ||
665 | fi | ||
666 | fi | ||
667 | fi | ||
668 | fi | ||
669 | fi | ||
670 | |||
671 | # Copy echo and quote the copy suitably for passing to libtool from | ||
672 | # the Makefile, instead of quoting the original, which is used later. | ||
673 | lt_ECHO=$ECHO | ||
674 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | ||
675 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | ||
676 | fi | ||
677 | |||
678 | |||
679 | |||
680 | |||
681 | test -n "$DJDIR" || exec 7<&0 </dev/null | ||
682 | exec 6>&1 | ||
683 | |||
684 | # Name of the host. | ||
685 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | ||
686 | # so uname gets run too. | ||
687 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
688 | |||
689 | # | ||
690 | # Initializations. | ||
691 | # | ||
692 | ac_default_prefix=/usr/local | ||
693 | ac_clean_files= | ||
694 | ac_config_libobj_dir=. | ||
695 | LIBOBJS= | ||
696 | cross_compiling=no | ||
697 | subdirs= | ||
698 | MFLAGS= | ||
699 | MAKEFLAGS= | ||
700 | |||
701 | # Identity of this package. | ||
702 | PACKAGE_NAME='eina' | ||
703 | PACKAGE_TARNAME='eina' | ||
704 | PACKAGE_VERSION='1.1.0' | ||
705 | PACKAGE_STRING='eina 1.1.0' | ||
706 | PACKAGE_BUGREPORT='enlightenment-devel@lists.sourceforge.net' | ||
707 | PACKAGE_URL='' | ||
708 | |||
709 | ac_unique_file="configure.ac" | ||
710 | # Factoring default headers for most tests. | ||
711 | ac_includes_default="\ | ||
712 | #include <stdio.h> | ||
713 | #ifdef HAVE_SYS_TYPES_H | ||
714 | # include <sys/types.h> | ||
715 | #endif | ||
716 | #ifdef HAVE_SYS_STAT_H | ||
717 | # include <sys/stat.h> | ||
718 | #endif | ||
719 | #ifdef STDC_HEADERS | ||
720 | # include <stdlib.h> | ||
721 | # include <stddef.h> | ||
722 | #else | ||
723 | # ifdef HAVE_STDLIB_H | ||
724 | # include <stdlib.h> | ||
725 | # endif | ||
726 | #endif | ||
727 | #ifdef HAVE_STRING_H | ||
728 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | ||
729 | # include <memory.h> | ||
730 | # endif | ||
731 | # include <string.h> | ||
732 | #endif | ||
733 | #ifdef HAVE_STRINGS_H | ||
734 | # include <strings.h> | ||
735 | #endif | ||
736 | #ifdef HAVE_INTTYPES_H | ||
737 | # include <inttypes.h> | ||
738 | #endif | ||
739 | #ifdef HAVE_STDINT_H | ||
740 | # include <stdint.h> | ||
741 | #endif | ||
742 | #ifdef HAVE_UNISTD_H | ||
743 | # include <unistd.h> | ||
744 | #endif" | ||
745 | |||
746 | ac_subst_vars='am__EXEEXT_FALSE | ||
747 | am__EXEEXT_TRUE | ||
748 | LTLIBOBJS | ||
749 | LIBOBJS | ||
750 | EFL_INSTALL_EXAMPLES_FALSE | ||
751 | EFL_INSTALL_EXAMPLES_TRUE | ||
752 | EFL_BUILD_EXAMPLES_FALSE | ||
753 | EFL_BUILD_EXAMPLES_TRUE | ||
754 | requirement_eina | ||
755 | CITYHASH_BENCH_FALSE | ||
756 | CITYHASH_BENCH_TRUE | ||
757 | EINA_HAVE_GLIB_FALSE | ||
758 | EINA_HAVE_GLIB_TRUE | ||
759 | GLIB_LIBS | ||
760 | GLIB_CFLAGS | ||
761 | EFL_ENABLE_BENCHMARK_FALSE | ||
762 | EFL_ENABLE_BENCHMARK_TRUE | ||
763 | EFL_ENABLE_COVERAGE_FALSE | ||
764 | EFL_ENABLE_COVERAGE_TRUE | ||
765 | EFL_COVERAGE_LIBS | ||
766 | EFL_COVERAGE_CFLAGS | ||
767 | have_lcov | ||
768 | EFL_ENABLE_TESTS_FALSE | ||
769 | EFL_ENABLE_TESTS_TRUE | ||
770 | CHECK_LIBS | ||
771 | CHECK_CFLAGS | ||
772 | EINA_STATIC_BUILD_ONE_BIG_FALSE | ||
773 | EINA_STATIC_BUILD_ONE_BIG_TRUE | ||
774 | EINA_BUILD_ONE_BIG_FALSE | ||
775 | EINA_BUILD_ONE_BIG_TRUE | ||
776 | EINA_STATIC_BUILD_BUDDY_FALSE | ||
777 | EINA_STATIC_BUILD_BUDDY_TRUE | ||
778 | EINA_BUILD_BUDDY_FALSE | ||
779 | EINA_BUILD_BUDDY_TRUE | ||
780 | EINA_STATIC_BUILD_PASS_THROUGH_FALSE | ||
781 | EINA_STATIC_BUILD_PASS_THROUGH_TRUE | ||
782 | EINA_BUILD_PASS_THROUGH_FALSE | ||
783 | EINA_BUILD_PASS_THROUGH_TRUE | ||
784 | EINA_STATIC_BUILD_FIXED_BITMAP_FALSE | ||
785 | EINA_STATIC_BUILD_FIXED_BITMAP_TRUE | ||
786 | EINA_BUILD_FIXED_BITMAP_FALSE | ||
787 | EINA_BUILD_FIXED_BITMAP_TRUE | ||
788 | EINA_STATIC_BUILD_EMEMOA_UNKNOWN_FALSE | ||
789 | EINA_STATIC_BUILD_EMEMOA_UNKNOWN_TRUE | ||
790 | EINA_BUILD_EMEMOA_UNKNOWN_FALSE | ||
791 | EINA_BUILD_EMEMOA_UNKNOWN_TRUE | ||
792 | EINA_STATIC_BUILD_EMEMOA_FIXED_FALSE | ||
793 | EINA_STATIC_BUILD_EMEMOA_FIXED_TRUE | ||
794 | EINA_BUILD_EMEMOA_FIXED_FALSE | ||
795 | EINA_BUILD_EMEMOA_FIXED_TRUE | ||
796 | EINA_STATIC_BUILD_CHAINED_POOL_FALSE | ||
797 | EINA_STATIC_BUILD_CHAINED_POOL_TRUE | ||
798 | EINA_BUILD_CHAINED_POOL_FALSE | ||
799 | EINA_BUILD_CHAINED_POOL_TRUE | ||
800 | rt_libs | ||
801 | iconv_libs | ||
802 | EFL_FNMATCH_LIBS | ||
803 | dlopen_libs | ||
804 | ALLOCA | ||
805 | ESCAPE_LIBS | ||
806 | ESCAPE_CFLAGS | ||
807 | lt_enable_auto_import | ||
808 | EINA_LIBS | ||
809 | EINA_CFLAGS | ||
810 | EINA_CPPFLAGS | ||
811 | EINA_HAVE_WIN32_FALSE | ||
812 | EINA_HAVE_WIN32_TRUE | ||
813 | EINA_HAVE_WINCE_FALSE | ||
814 | EINA_HAVE_WINCE_TRUE | ||
815 | EINA_SIZEOF_WCHAR_T | ||
816 | EINA_CONFIGURE_HAVE_STDINT_H | ||
817 | EINA_CONFIGURE_HAVE_INTTYPES_H | ||
818 | BUILD_TILER_EXAMPLE_FALSE | ||
819 | BUILD_TILER_EXAMPLE_TRUE | ||
820 | ECORE_EVAS_LIBS | ||
821 | ECORE_EVAS_CFLAGS | ||
822 | EMEMOA_LIBS | ||
823 | EMEMOA_CFLAGS | ||
824 | EFL_EINA_BUILD | ||
825 | EVIL_LIBS | ||
826 | EVIL_CFLAGS | ||
827 | VALGRIND_LIBS | ||
828 | VALGRIND_CFLAGS | ||
829 | EFL_BUILD_DOC_FALSE | ||
830 | EFL_BUILD_DOC_TRUE | ||
831 | efl_doxygen | ||
832 | efl_have_doxygen | ||
833 | pkgconfig_requires_private | ||
834 | PKG_CONFIG_LIBDIR | ||
835 | PKG_CONFIG_PATH | ||
836 | PKG_CONFIG | ||
837 | CXXCPP | ||
838 | am__fastdepCXX_FALSE | ||
839 | am__fastdepCXX_TRUE | ||
840 | CXXDEPMODE | ||
841 | ac_ct_CXX | ||
842 | CXXFLAGS | ||
843 | CXX | ||
844 | EINA_ENABLE_BENCHMARK_E17_FALSE | ||
845 | EINA_ENABLE_BENCHMARK_E17_TRUE | ||
846 | EINA_CONFIGURE_DEFAULT_MEMPOOL | ||
847 | EINA_AMALGAMATION_FALSE | ||
848 | EINA_AMALGAMATION_TRUE | ||
849 | EINA_CONFIGURE_SAFETY_CHECKS | ||
850 | SAFETY_CHECKS_FALSE | ||
851 | SAFETY_CHECKS_TRUE | ||
852 | EINA_CONFIGURE_MAGIC_DEBUG | ||
853 | EINA_ON_OFF_THREADS_FALSE | ||
854 | EINA_ON_OFF_THREADS_TRUE | ||
855 | EINA_CONFIGURE_HAVE_ON_OFF_THREADS | ||
856 | EINA_DEBUG_THREADS_FALSE | ||
857 | EINA_DEBUG_THREADS_TRUE | ||
858 | EINA_CONFIGURE_HAVE_DEBUG_THREADS | ||
859 | EINA_HAVE_THREADS_FALSE | ||
860 | EINA_HAVE_THREADS_TRUE | ||
861 | EINA_CONFIGURE_HAVE_THREADS | ||
862 | EFL_PTHREAD_LIBS | ||
863 | EFL_PTHREAD_CFLAGS | ||
864 | EFL_SIMD_FLAGS | ||
865 | MODULE_ARCH | ||
866 | VMAJ | ||
867 | release_info | ||
868 | version_info | ||
869 | OTOOL64 | ||
870 | OTOOL | ||
871 | LIPO | ||
872 | NMEDIT | ||
873 | DSYMUTIL | ||
874 | lt_ECHO | ||
875 | RANLIB | ||
876 | AR | ||
877 | LN_S | ||
878 | NM | ||
879 | ac_ct_DUMPBIN | ||
880 | DUMPBIN | ||
881 | LD | ||
882 | FGREP | ||
883 | SED | ||
884 | LIBTOOL | ||
885 | OBJDUMP | ||
886 | DLLTOOL | ||
887 | AS | ||
888 | host_os | ||
889 | host_vendor | ||
890 | host_cpu | ||
891 | host | ||
892 | build_os | ||
893 | build_vendor | ||
894 | build_cpu | ||
895 | build | ||
896 | EGREP | ||
897 | GREP | ||
898 | CPP | ||
899 | am__fastdepCC_FALSE | ||
900 | am__fastdepCC_TRUE | ||
901 | CCDEPMODE | ||
902 | AMDEPBACKSLASH | ||
903 | AMDEP_FALSE | ||
904 | AMDEP_TRUE | ||
905 | am__quote | ||
906 | am__include | ||
907 | DEPDIR | ||
908 | OBJEXT | ||
909 | EXEEXT | ||
910 | ac_ct_CC | ||
911 | CPPFLAGS | ||
912 | LDFLAGS | ||
913 | CFLAGS | ||
914 | CC | ||
915 | AM_BACKSLASH | ||
916 | AM_DEFAULT_VERBOSITY | ||
917 | am__untar | ||
918 | am__tar | ||
919 | AMTAR | ||
920 | am__leading_dot | ||
921 | SET_MAKE | ||
922 | AWK | ||
923 | mkdir_p | ||
924 | MKDIR_P | ||
925 | INSTALL_STRIP_PROGRAM | ||
926 | STRIP | ||
927 | install_sh | ||
928 | MAKEINFO | ||
929 | AUTOHEADER | ||
930 | AUTOMAKE | ||
931 | AUTOCONF | ||
932 | ACLOCAL | ||
933 | VERSION | ||
934 | PACKAGE | ||
935 | CYGPATH_W | ||
936 | am__isrc | ||
937 | INSTALL_DATA | ||
938 | INSTALL_SCRIPT | ||
939 | INSTALL_PROGRAM | ||
940 | target_alias | ||
941 | host_alias | ||
942 | build_alias | ||
943 | LIBS | ||
944 | ECHO_T | ||
945 | ECHO_N | ||
946 | ECHO_C | ||
947 | DEFS | ||
948 | mandir | ||
949 | localedir | ||
950 | libdir | ||
951 | psdir | ||
952 | pdfdir | ||
953 | dvidir | ||
954 | htmldir | ||
955 | infodir | ||
956 | docdir | ||
957 | oldincludedir | ||
958 | includedir | ||
959 | localstatedir | ||
960 | sharedstatedir | ||
961 | sysconfdir | ||
962 | datadir | ||
963 | datarootdir | ||
964 | libexecdir | ||
965 | sbindir | ||
966 | bindir | ||
967 | program_transform_name | ||
968 | prefix | ||
969 | exec_prefix | ||
970 | PACKAGE_URL | ||
971 | PACKAGE_BUGREPORT | ||
972 | PACKAGE_STRING | ||
973 | PACKAGE_VERSION | ||
974 | PACKAGE_TARNAME | ||
975 | PACKAGE_NAME | ||
976 | PATH_SEPARATOR | ||
977 | SHELL' | ||
978 | ac_subst_files='' | ||
979 | ac_user_opts=' | ||
980 | enable_option_checking | ||
981 | enable_silent_rules | ||
982 | enable_dependency_tracking | ||
983 | enable_largefile | ||
984 | enable_shared | ||
985 | enable_static | ||
986 | with_pic | ||
987 | enable_fast_install | ||
988 | with_gnu_ld | ||
989 | enable_libtool_lock | ||
990 | enable_cpu_mmx | ||
991 | enable_cpu_sse | ||
992 | enable_cpu_sse2 | ||
993 | enable_cpu_altivec | ||
994 | enable_posix_threads | ||
995 | enable_win32_threads | ||
996 | enable_on_off_threads | ||
997 | enable_debug_threads | ||
998 | enable_magic_debug | ||
999 | enable_safety_checks | ||
1000 | with_internal_maximum_log_level | ||
1001 | enable_amalgamation | ||
1002 | enable_default_mempool | ||
1003 | enable_stringshare_usage | ||
1004 | enable_e17 | ||
1005 | enable_doc | ||
1006 | with_doxygen | ||
1007 | enable_valgrind | ||
1008 | enable_ememoa | ||
1009 | enable_assert | ||
1010 | with_iconv_link | ||
1011 | enable_mempool_chained_pool | ||
1012 | enable_mempool_ememoa_fixed | ||
1013 | enable_mempool_ememoa_unknown | ||
1014 | enable_mempool_fixed_bitmap | ||
1015 | enable_mempool_pass_through | ||
1016 | enable_mempool_buddy | ||
1017 | enable_mempool_one_big | ||
1018 | enable_tests | ||
1019 | enable_coverage | ||
1020 | enable_benchmark | ||
1021 | enable_glib | ||
1022 | enable_build_examples | ||
1023 | enable_install_examples | ||
1024 | enable_voltron | ||
1025 | ' | ||
1026 | ac_precious_vars='build_alias | ||
1027 | host_alias | ||
1028 | target_alias | ||
1029 | CC | ||
1030 | CFLAGS | ||
1031 | LDFLAGS | ||
1032 | LIBS | ||
1033 | CPPFLAGS | ||
1034 | CPP | ||
1035 | CXX | ||
1036 | CXXFLAGS | ||
1037 | CCC | ||
1038 | CXXCPP | ||
1039 | PKG_CONFIG | ||
1040 | PKG_CONFIG_PATH | ||
1041 | PKG_CONFIG_LIBDIR | ||
1042 | VALGRIND_CFLAGS | ||
1043 | VALGRIND_LIBS | ||
1044 | EVIL_CFLAGS | ||
1045 | EVIL_LIBS | ||
1046 | EMEMOA_CFLAGS | ||
1047 | EMEMOA_LIBS | ||
1048 | ECORE_EVAS_CFLAGS | ||
1049 | ECORE_EVAS_LIBS | ||
1050 | ESCAPE_CFLAGS | ||
1051 | ESCAPE_LIBS | ||
1052 | CHECK_CFLAGS | ||
1053 | CHECK_LIBS | ||
1054 | GLIB_CFLAGS | ||
1055 | GLIB_LIBS' | ||
1056 | |||
1057 | |||
1058 | # Initialize some variables set by options. | ||
1059 | ac_init_help= | ||
1060 | ac_init_version=false | ||
1061 | ac_unrecognized_opts= | ||
1062 | ac_unrecognized_sep= | ||
1063 | # The variables have the same names as the options, with | ||
1064 | # dashes changed to underlines. | ||
1065 | cache_file=/dev/null | ||
1066 | exec_prefix=NONE | ||
1067 | no_create= | ||
1068 | no_recursion= | ||
1069 | prefix=NONE | ||
1070 | program_prefix=NONE | ||
1071 | program_suffix=NONE | ||
1072 | program_transform_name=s,x,x, | ||
1073 | silent= | ||
1074 | site= | ||
1075 | srcdir= | ||
1076 | verbose= | ||
1077 | x_includes=NONE | ||
1078 | x_libraries=NONE | ||
1079 | |||
1080 | # Installation directory options. | ||
1081 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
1082 | # and all the variables that are supposed to be based on exec_prefix | ||
1083 | # by default will actually change. | ||
1084 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
1085 | # (The list follows the same order as the GNU Coding Standards.) | ||
1086 | bindir='${exec_prefix}/bin' | ||
1087 | sbindir='${exec_prefix}/sbin' | ||
1088 | libexecdir='${exec_prefix}/libexec' | ||
1089 | datarootdir='${prefix}/share' | ||
1090 | datadir='${datarootdir}' | ||
1091 | sysconfdir='${prefix}/etc' | ||
1092 | sharedstatedir='${prefix}/com' | ||
1093 | localstatedir='${prefix}/var' | ||
1094 | includedir='${prefix}/include' | ||
1095 | oldincludedir='/usr/include' | ||
1096 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
1097 | infodir='${datarootdir}/info' | ||
1098 | htmldir='${docdir}' | ||
1099 | dvidir='${docdir}' | ||
1100 | pdfdir='${docdir}' | ||
1101 | psdir='${docdir}' | ||
1102 | libdir='${exec_prefix}/lib' | ||
1103 | localedir='${datarootdir}/locale' | ||
1104 | mandir='${datarootdir}/man' | ||
1105 | |||
1106 | ac_prev= | ||
1107 | ac_dashdash= | ||
1108 | for ac_option | ||
1109 | do | ||
1110 | # If the previous option needs an argument, assign it. | ||
1111 | if test -n "$ac_prev"; then | ||
1112 | eval $ac_prev=\$ac_option | ||
1113 | ac_prev= | ||
1114 | continue | ||
1115 | fi | ||
1116 | |||
1117 | case $ac_option in | ||
1118 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
1119 | *=) ac_optarg= ;; | ||
1120 | *) ac_optarg=yes ;; | ||
1121 | esac | ||
1122 | |||
1123 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
1124 | |||
1125 | case $ac_dashdash$ac_option in | ||
1126 | --) | ||
1127 | ac_dashdash=yes ;; | ||
1128 | |||
1129 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
1130 | ac_prev=bindir ;; | ||
1131 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
1132 | bindir=$ac_optarg ;; | ||
1133 | |||
1134 | -build | --build | --buil | --bui | --bu) | ||
1135 | ac_prev=build_alias ;; | ||
1136 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
1137 | build_alias=$ac_optarg ;; | ||
1138 | |||
1139 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
1140 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
1141 | ac_prev=cache_file ;; | ||
1142 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
1143 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
1144 | cache_file=$ac_optarg ;; | ||
1145 | |||
1146 | --config-cache | -C) | ||
1147 | cache_file=config.cache ;; | ||
1148 | |||
1149 | -datadir | --datadir | --datadi | --datad) | ||
1150 | ac_prev=datadir ;; | ||
1151 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
1152 | datadir=$ac_optarg ;; | ||
1153 | |||
1154 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
1155 | | --dataroo | --dataro | --datar) | ||
1156 | ac_prev=datarootdir ;; | ||
1157 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
1158 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
1159 | datarootdir=$ac_optarg ;; | ||
1160 | |||
1161 | -disable-* | --disable-*) | ||
1162 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
1163 | # Reject names that are not valid shell variable names. | ||
1164 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1165 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
1166 | ac_useropt_orig=$ac_useropt | ||
1167 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1168 | case $ac_user_opts in | ||
1169 | *" | ||
1170 | "enable_$ac_useropt" | ||
1171 | "*) ;; | ||
1172 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | ||
1173 | ac_unrecognized_sep=', ';; | ||
1174 | esac | ||
1175 | eval enable_$ac_useropt=no ;; | ||
1176 | |||
1177 | -docdir | --docdir | --docdi | --doc | --do) | ||
1178 | ac_prev=docdir ;; | ||
1179 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
1180 | docdir=$ac_optarg ;; | ||
1181 | |||
1182 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
1183 | ac_prev=dvidir ;; | ||
1184 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
1185 | dvidir=$ac_optarg ;; | ||
1186 | |||
1187 | -enable-* | --enable-*) | ||
1188 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
1189 | # Reject names that are not valid shell variable names. | ||
1190 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1191 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
1192 | ac_useropt_orig=$ac_useropt | ||
1193 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1194 | case $ac_user_opts in | ||
1195 | *" | ||
1196 | "enable_$ac_useropt" | ||
1197 | "*) ;; | ||
1198 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | ||
1199 | ac_unrecognized_sep=', ';; | ||
1200 | esac | ||
1201 | eval enable_$ac_useropt=\$ac_optarg ;; | ||
1202 | |||
1203 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
1204 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
1205 | | --exec | --exe | --ex) | ||
1206 | ac_prev=exec_prefix ;; | ||
1207 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
1208 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
1209 | | --exec=* | --exe=* | --ex=*) | ||
1210 | exec_prefix=$ac_optarg ;; | ||
1211 | |||
1212 | -gas | --gas | --ga | --g) | ||
1213 | # Obsolete; use --with-gas. | ||
1214 | with_gas=yes ;; | ||
1215 | |||
1216 | -help | --help | --hel | --he | -h) | ||
1217 | ac_init_help=long ;; | ||
1218 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
1219 | ac_init_help=recursive ;; | ||
1220 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
1221 | ac_init_help=short ;; | ||
1222 | |||
1223 | -host | --host | --hos | --ho) | ||
1224 | ac_prev=host_alias ;; | ||
1225 | -host=* | --host=* | --hos=* | --ho=*) | ||
1226 | host_alias=$ac_optarg ;; | ||
1227 | |||
1228 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
1229 | ac_prev=htmldir ;; | ||
1230 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
1231 | | --ht=*) | ||
1232 | htmldir=$ac_optarg ;; | ||
1233 | |||
1234 | -includedir | --includedir | --includedi | --included | --include \ | ||
1235 | | --includ | --inclu | --incl | --inc) | ||
1236 | ac_prev=includedir ;; | ||
1237 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
1238 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
1239 | includedir=$ac_optarg ;; | ||
1240 | |||
1241 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
1242 | ac_prev=infodir ;; | ||
1243 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
1244 | infodir=$ac_optarg ;; | ||
1245 | |||
1246 | -libdir | --libdir | --libdi | --libd) | ||
1247 | ac_prev=libdir ;; | ||
1248 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
1249 | libdir=$ac_optarg ;; | ||
1250 | |||
1251 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
1252 | | --libexe | --libex | --libe) | ||
1253 | ac_prev=libexecdir ;; | ||
1254 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
1255 | | --libexe=* | --libex=* | --libe=*) | ||
1256 | libexecdir=$ac_optarg ;; | ||
1257 | |||
1258 | -localedir | --localedir | --localedi | --localed | --locale) | ||
1259 | ac_prev=localedir ;; | ||
1260 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
1261 | localedir=$ac_optarg ;; | ||
1262 | |||
1263 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
1264 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
1265 | ac_prev=localstatedir ;; | ||
1266 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
1267 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
1268 | localstatedir=$ac_optarg ;; | ||
1269 | |||
1270 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
1271 | ac_prev=mandir ;; | ||
1272 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
1273 | mandir=$ac_optarg ;; | ||
1274 | |||
1275 | -nfp | --nfp | --nf) | ||
1276 | # Obsolete; use --without-fp. | ||
1277 | with_fp=no ;; | ||
1278 | |||
1279 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
1280 | | --no-cr | --no-c | -n) | ||
1281 | no_create=yes ;; | ||
1282 | |||
1283 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
1284 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
1285 | no_recursion=yes ;; | ||
1286 | |||
1287 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
1288 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
1289 | | --oldin | --oldi | --old | --ol | --o) | ||
1290 | ac_prev=oldincludedir ;; | ||
1291 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
1292 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
1293 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
1294 | oldincludedir=$ac_optarg ;; | ||
1295 | |||
1296 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
1297 | ac_prev=prefix ;; | ||
1298 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
1299 | prefix=$ac_optarg ;; | ||
1300 | |||
1301 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
1302 | | --program-pre | --program-pr | --program-p) | ||
1303 | ac_prev=program_prefix ;; | ||
1304 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
1305 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
1306 | program_prefix=$ac_optarg ;; | ||
1307 | |||
1308 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
1309 | | --program-suf | --program-su | --program-s) | ||
1310 | ac_prev=program_suffix ;; | ||
1311 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
1312 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
1313 | program_suffix=$ac_optarg ;; | ||
1314 | |||
1315 | -program-transform-name | --program-transform-name \ | ||
1316 | | --program-transform-nam | --program-transform-na \ | ||
1317 | | --program-transform-n | --program-transform- \ | ||
1318 | | --program-transform | --program-transfor \ | ||
1319 | | --program-transfo | --program-transf \ | ||
1320 | | --program-trans | --program-tran \ | ||
1321 | | --progr-tra | --program-tr | --program-t) | ||
1322 | ac_prev=program_transform_name ;; | ||
1323 | -program-transform-name=* | --program-transform-name=* \ | ||
1324 | | --program-transform-nam=* | --program-transform-na=* \ | ||
1325 | | --program-transform-n=* | --program-transform-=* \ | ||
1326 | | --program-transform=* | --program-transfor=* \ | ||
1327 | | --program-transfo=* | --program-transf=* \ | ||
1328 | | --program-trans=* | --program-tran=* \ | ||
1329 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
1330 | program_transform_name=$ac_optarg ;; | ||
1331 | |||
1332 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
1333 | ac_prev=pdfdir ;; | ||
1334 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
1335 | pdfdir=$ac_optarg ;; | ||
1336 | |||
1337 | -psdir | --psdir | --psdi | --psd | --ps) | ||
1338 | ac_prev=psdir ;; | ||
1339 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
1340 | psdir=$ac_optarg ;; | ||
1341 | |||
1342 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1343 | | -silent | --silent | --silen | --sile | --sil) | ||
1344 | silent=yes ;; | ||
1345 | |||
1346 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1347 | ac_prev=sbindir ;; | ||
1348 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1349 | | --sbi=* | --sb=*) | ||
1350 | sbindir=$ac_optarg ;; | ||
1351 | |||
1352 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1353 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1354 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1355 | | --sha | --sh) | ||
1356 | ac_prev=sharedstatedir ;; | ||
1357 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1358 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1359 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1360 | | --sha=* | --sh=*) | ||
1361 | sharedstatedir=$ac_optarg ;; | ||
1362 | |||
1363 | -site | --site | --sit) | ||
1364 | ac_prev=site ;; | ||
1365 | -site=* | --site=* | --sit=*) | ||
1366 | site=$ac_optarg ;; | ||
1367 | |||
1368 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1369 | ac_prev=srcdir ;; | ||
1370 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1371 | srcdir=$ac_optarg ;; | ||
1372 | |||
1373 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1374 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1375 | ac_prev=sysconfdir ;; | ||
1376 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1377 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1378 | sysconfdir=$ac_optarg ;; | ||
1379 | |||
1380 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1381 | ac_prev=target_alias ;; | ||
1382 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1383 | target_alias=$ac_optarg ;; | ||
1384 | |||
1385 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1386 | verbose=yes ;; | ||
1387 | |||
1388 | -version | --version | --versio | --versi | --vers | -V) | ||
1389 | ac_init_version=: ;; | ||
1390 | |||
1391 | -with-* | --with-*) | ||
1392 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1393 | # Reject names that are not valid shell variable names. | ||
1394 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1395 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1396 | ac_useropt_orig=$ac_useropt | ||
1397 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1398 | case $ac_user_opts in | ||
1399 | *" | ||
1400 | "with_$ac_useropt" | ||
1401 | "*) ;; | ||
1402 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | ||
1403 | ac_unrecognized_sep=', ';; | ||
1404 | esac | ||
1405 | eval with_$ac_useropt=\$ac_optarg ;; | ||
1406 | |||
1407 | -without-* | --without-*) | ||
1408 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1409 | # Reject names that are not valid shell variable names. | ||
1410 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1411 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1412 | ac_useropt_orig=$ac_useropt | ||
1413 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1414 | case $ac_user_opts in | ||
1415 | *" | ||
1416 | "with_$ac_useropt" | ||
1417 | "*) ;; | ||
1418 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | ||
1419 | ac_unrecognized_sep=', ';; | ||
1420 | esac | ||
1421 | eval with_$ac_useropt=no ;; | ||
1422 | |||
1423 | --x) | ||
1424 | # Obsolete; use --with-x. | ||
1425 | with_x=yes ;; | ||
1426 | |||
1427 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1428 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1429 | ac_prev=x_includes ;; | ||
1430 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1431 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1432 | x_includes=$ac_optarg ;; | ||
1433 | |||
1434 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1435 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1436 | ac_prev=x_libraries ;; | ||
1437 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1438 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1439 | x_libraries=$ac_optarg ;; | ||
1440 | |||
1441 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | ||
1442 | Try \`$0 --help' for more information" | ||
1443 | ;; | ||
1444 | |||
1445 | *=*) | ||
1446 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1447 | # Reject names that are not valid shell variable names. | ||
1448 | case $ac_envvar in #( | ||
1449 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | ||
1450 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | ||
1451 | esac | ||
1452 | eval $ac_envvar=\$ac_optarg | ||
1453 | export $ac_envvar ;; | ||
1454 | |||
1455 | *) | ||
1456 | # FIXME: should be removed in autoconf 3.0. | ||
1457 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1458 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1459 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1460 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
1461 | ;; | ||
1462 | |||
1463 | esac | ||
1464 | done | ||
1465 | |||
1466 | if test -n "$ac_prev"; then | ||
1467 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1468 | as_fn_error $? "missing argument to $ac_option" | ||
1469 | fi | ||
1470 | |||
1471 | if test -n "$ac_unrecognized_opts"; then | ||
1472 | case $enable_option_checking in | ||
1473 | no) ;; | ||
1474 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | ||
1475 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | ||
1476 | esac | ||
1477 | fi | ||
1478 | |||
1479 | # Check all directory arguments for consistency. | ||
1480 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1481 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1482 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1483 | libdir localedir mandir | ||
1484 | do | ||
1485 | eval ac_val=\$$ac_var | ||
1486 | # Remove trailing slashes. | ||
1487 | case $ac_val in | ||
1488 | */ ) | ||
1489 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | ||
1490 | eval $ac_var=\$ac_val;; | ||
1491 | esac | ||
1492 | # Be sure to have absolute directory names. | ||
1493 | case $ac_val in | ||
1494 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1495 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1496 | esac | ||
1497 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | ||
1498 | done | ||
1499 | |||
1500 | # There might be people who depend on the old broken behavior: `$host' | ||
1501 | # used to hold the argument of --host etc. | ||
1502 | # FIXME: To remove some day. | ||
1503 | build=$build_alias | ||
1504 | host=$host_alias | ||
1505 | target=$target_alias | ||
1506 | |||
1507 | # FIXME: To remove some day. | ||
1508 | if test "x$host_alias" != x; then | ||
1509 | if test "x$build_alias" = x; then | ||
1510 | cross_compiling=maybe | ||
1511 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | ||
1512 | If a cross compiler is detected then cross compile mode will be used" >&2 | ||
1513 | elif test "x$build_alias" != "x$host_alias"; then | ||
1514 | cross_compiling=yes | ||
1515 | fi | ||
1516 | fi | ||
1517 | |||
1518 | ac_tool_prefix= | ||
1519 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1520 | |||
1521 | test "$silent" = yes && exec 6>/dev/null | ||
1522 | |||
1523 | |||
1524 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1525 | ac_ls_di=`ls -di .` && | ||
1526 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1527 | as_fn_error $? "working directory cannot be determined" | ||
1528 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1529 | as_fn_error $? "pwd does not report name of working directory" | ||
1530 | |||
1531 | |||
1532 | # Find the source files, if location was not specified. | ||
1533 | if test -z "$srcdir"; then | ||
1534 | ac_srcdir_defaulted=yes | ||
1535 | # Try the directory containing this script, then the parent directory. | ||
1536 | ac_confdir=`$as_dirname -- "$as_myself" || | ||
1537 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1538 | X"$as_myself" : 'X\(//\)[^/]' \| \ | ||
1539 | X"$as_myself" : 'X\(//\)$' \| \ | ||
1540 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | ||
1541 | $as_echo X"$as_myself" | | ||
1542 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1543 | s//\1/ | ||
1544 | q | ||
1545 | } | ||
1546 | /^X\(\/\/\)[^/].*/{ | ||
1547 | s//\1/ | ||
1548 | q | ||
1549 | } | ||
1550 | /^X\(\/\/\)$/{ | ||
1551 | s//\1/ | ||
1552 | q | ||
1553 | } | ||
1554 | /^X\(\/\).*/{ | ||
1555 | s//\1/ | ||
1556 | q | ||
1557 | } | ||
1558 | s/.*/./; q'` | ||
1559 | srcdir=$ac_confdir | ||
1560 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1561 | srcdir=.. | ||
1562 | fi | ||
1563 | else | ||
1564 | ac_srcdir_defaulted=no | ||
1565 | fi | ||
1566 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1567 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1568 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | ||
1569 | fi | ||
1570 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1571 | ac_abs_confdir=`( | ||
1572 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | ||
1573 | pwd)` | ||
1574 | # When building in place, set srcdir=. | ||
1575 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1576 | srcdir=. | ||
1577 | fi | ||
1578 | # Remove unnecessary trailing slashes from srcdir. | ||
1579 | # Double slashes in file names in object file debugging info | ||
1580 | # mess up M-x gdb in Emacs. | ||
1581 | case $srcdir in | ||
1582 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1583 | esac | ||
1584 | for ac_var in $ac_precious_vars; do | ||
1585 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1586 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1587 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1588 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1589 | done | ||
1590 | |||
1591 | # | ||
1592 | # Report the --help message. | ||
1593 | # | ||
1594 | if test "$ac_init_help" = "long"; then | ||
1595 | # Omit some internal or obsolete options to make the list less imposing. | ||
1596 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1597 | cat <<_ACEOF | ||
1598 | \`configure' configures eina 1.1.0 to adapt to many kinds of systems. | ||
1599 | |||
1600 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1601 | |||
1602 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1603 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1604 | |||
1605 | Defaults for the options are specified in brackets. | ||
1606 | |||
1607 | Configuration: | ||
1608 | -h, --help display this help and exit | ||
1609 | --help=short display options specific to this package | ||
1610 | --help=recursive display the short help of all the included packages | ||
1611 | -V, --version display version information and exit | ||
1612 | -q, --quiet, --silent do not print \`checking ...' messages | ||
1613 | --cache-file=FILE cache test results in FILE [disabled] | ||
1614 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1615 | -n, --no-create do not create output files | ||
1616 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1617 | |||
1618 | Installation directories: | ||
1619 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1620 | [$ac_default_prefix] | ||
1621 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1622 | [PREFIX] | ||
1623 | |||
1624 | By default, \`make install' will install all the files in | ||
1625 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1626 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1627 | for instance \`--prefix=\$HOME'. | ||
1628 | |||
1629 | For better control, use the options below. | ||
1630 | |||
1631 | Fine tuning of the installation directories: | ||
1632 | --bindir=DIR user executables [EPREFIX/bin] | ||
1633 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1634 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1635 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1636 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1637 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1638 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1639 | --includedir=DIR C header files [PREFIX/include] | ||
1640 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1641 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1642 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1643 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1644 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1645 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1646 | --docdir=DIR documentation root [DATAROOTDIR/doc/eina] | ||
1647 | --htmldir=DIR html documentation [DOCDIR] | ||
1648 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1649 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1650 | --psdir=DIR ps documentation [DOCDIR] | ||
1651 | _ACEOF | ||
1652 | |||
1653 | cat <<\_ACEOF | ||
1654 | |||
1655 | Program names: | ||
1656 | --program-prefix=PREFIX prepend PREFIX to installed program names | ||
1657 | --program-suffix=SUFFIX append SUFFIX to installed program names | ||
1658 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | ||
1659 | |||
1660 | System types: | ||
1661 | --build=BUILD configure for building on BUILD [guessed] | ||
1662 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1663 | _ACEOF | ||
1664 | fi | ||
1665 | |||
1666 | if test -n "$ac_init_help"; then | ||
1667 | case $ac_init_help in | ||
1668 | short | recursive ) echo "Configuration of eina 1.1.0:";; | ||
1669 | esac | ||
1670 | cat <<\_ACEOF | ||
1671 | |||
1672 | Optional Features: | ||
1673 | --disable-option-checking ignore unrecognized --enable/--with options | ||
1674 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1675 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1676 | --enable-silent-rules less verbose build output (undo: `make V=1') | ||
1677 | --disable-silent-rules verbose build output (undo: `make V=0') | ||
1678 | --disable-dependency-tracking speeds up one-time build | ||
1679 | --enable-dependency-tracking do not reject slow dependency extractors | ||
1680 | --disable-largefile omit support for large files | ||
1681 | --enable-shared[=PKGS] build shared libraries [default=yes] | ||
1682 | --enable-static[=PKGS] build static libraries [default=yes] | ||
1683 | --enable-fast-install[=PKGS] | ||
1684 | optimize for fast installation [default=yes] | ||
1685 | --disable-libtool-lock avoid locking (might break parallel builds) | ||
1686 | --disable-cpu-mmx disable mmx code [default=enabled] | ||
1687 | --disable-cpu-sse disable sse code [default=enabled] | ||
1688 | --disable-cpu-sse2 disable sse2 code [default=enabled] | ||
1689 | --disable-cpu-altivec disable altivec code [default=enabled] | ||
1690 | --disable-posix-threads enable POSIX threads code [default=auto] | ||
1691 | --disable-win32-threads enable Win32 threads code [default=no] | ||
1692 | --enable-on-off-threads only turn this on if you know what you are doing, | ||
1693 | and don't complain if the world freeze | ||
1694 | --enable-debug-threads disable assert when you forgot to call | ||
1695 | eina_threads_init | ||
1696 | --disable-magic-debug disable magic debug of eina structure | ||
1697 | [default=enabled] | ||
1698 | --disable-safety-checks disable safety checks for NULL pointers and like. | ||
1699 | [default=enabled] | ||
1700 | --enable-amalgamation enable generation of one single file with all source | ||
1701 | code in it, helps compiler optimizations. | ||
1702 | --enable-default-mempool | ||
1703 | Default memory allocator could be faster for some | ||
1704 | computer. [default=disabled] | ||
1705 | --enable-stringshare-usage | ||
1706 | Report stringshare usage on stringshare shutdown. | ||
1707 | [default=disabled] | ||
1708 | --enable-e17 enable heavy benchmark [default=no] | ||
1709 | --disable-doc Disable documentation build [default=enabled] | ||
1710 | --enable-valgrind improve valgrind support by hinting it of our memory | ||
1711 | usages, having it to report proper mempool leaks. | ||
1712 | --enable-ememoa build ememoa memory pool module [default=yes] | ||
1713 | --disable-assert turn off assertions | ||
1714 | --enable-mempool-chained-pool | ||
1715 | enable build of chained pool | ||
1716 | [default=${enable_chained_pool}] | ||
1717 | --enable-mempool-ememoa-fixed | ||
1718 | enable build of ememoa fixed | ||
1719 | [default=${enable_ememoa}] | ||
1720 | --enable-mempool-ememoa-unknown | ||
1721 | enable build of ememoa unknown | ||
1722 | [default=${enable_ememoa}] | ||
1723 | --enable-mempool-fixed-bitmap | ||
1724 | enable build of fixed bitmap [default=no] | ||
1725 | --enable-mempool-pass-through | ||
1726 | enable build of pass through | ||
1727 | [default=${enable_pass_through}] | ||
1728 | --enable-mempool-buddy enable build of buddy [default=no] | ||
1729 | --enable-mempool-one-big | ||
1730 | enable build of one big [default=${enable_one_big}] | ||
1731 | --enable-tests enable tests [default=disabled] | ||
1732 | --enable-coverage enable coverage profiling instrumentation | ||
1733 | [default=disabled] | ||
1734 | --enable-benchmark enable benchmarking [default=disabled] | ||
1735 | --disable-benchmark-glib | ||
1736 | disable benchmarking against glib [default=yes] | ||
1737 | --enable-build-examples enable building examples [default=disabled] | ||
1738 | --enable-install-examples | ||
1739 | enable installing example source files | ||
1740 | [default=disabled] | ||
1741 | --enable-voltron enable forming of voltron when all files combine | ||
1742 | [default=no] | ||
1743 | |||
1744 | Optional Packages: | ||
1745 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1746 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1747 | --with-pic try to use only PIC/non-PIC objects [default=use | ||
1748 | both] | ||
1749 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | ||
1750 | --with-internal-maximum-log-level=NUMBER | ||
1751 | limit eina internal log level to the given number, | ||
1752 | any call to EINA_LOG() with values greater than this | ||
1753 | will be compiled out, ignoring runtime settings, but | ||
1754 | saving function calls. | ||
1755 | --with-doxygen=FILE doxygen program to use [default=doxygen] | ||
1756 | --with-iconv-link=ICONV_LINK | ||
1757 | explicitly specify an iconv link option | ||
1758 | |||
1759 | Some influential environment variables: | ||
1760 | CC C compiler command | ||
1761 | CFLAGS C compiler flags | ||
1762 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1763 | nonstandard directory <lib dir> | ||
1764 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
1765 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | ||
1766 | you have headers in a nonstandard directory <include dir> | ||
1767 | CPP C preprocessor | ||
1768 | CXX C++ compiler command | ||
1769 | CXXFLAGS C++ compiler flags | ||
1770 | CXXCPP C++ preprocessor | ||
1771 | PKG_CONFIG path to pkg-config utility | ||
1772 | PKG_CONFIG_PATH | ||
1773 | directories to add to pkg-config's search path | ||
1774 | PKG_CONFIG_LIBDIR | ||
1775 | path overriding pkg-config's built-in search path | ||
1776 | VALGRIND_CFLAGS | ||
1777 | C compiler flags for VALGRIND, overriding pkg-config | ||
1778 | VALGRIND_LIBS | ||
1779 | linker flags for VALGRIND, overriding pkg-config | ||
1780 | EVIL_CFLAGS C compiler flags for EVIL, overriding pkg-config | ||
1781 | EVIL_LIBS linker flags for EVIL, overriding pkg-config | ||
1782 | EMEMOA_CFLAGS | ||
1783 | C compiler flags for EMEMOA, overriding pkg-config | ||
1784 | EMEMOA_LIBS linker flags for EMEMOA, overriding pkg-config | ||
1785 | ECORE_EVAS_CFLAGS | ||
1786 | C compiler flags for ECORE_EVAS, overriding pkg-config | ||
1787 | ECORE_EVAS_LIBS | ||
1788 | linker flags for ECORE_EVAS, overriding pkg-config | ||
1789 | ESCAPE_CFLAGS | ||
1790 | C compiler flags for ESCAPE, overriding pkg-config | ||
1791 | ESCAPE_LIBS linker flags for ESCAPE, overriding pkg-config | ||
1792 | CHECK_CFLAGS | ||
1793 | C compiler flags for CHECK, overriding pkg-config | ||
1794 | CHECK_LIBS linker flags for CHECK, overriding pkg-config | ||
1795 | GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config | ||
1796 | GLIB_LIBS linker flags for GLIB, overriding pkg-config | ||
1797 | |||
1798 | Use these variables to override the choices made by `configure' or to help | ||
1799 | it to find libraries and programs with nonstandard names/locations. | ||
1800 | |||
1801 | Report bugs to <enlightenment-devel@lists.sourceforge.net>. | ||
1802 | _ACEOF | ||
1803 | ac_status=$? | ||
1804 | fi | ||
1805 | |||
1806 | if test "$ac_init_help" = "recursive"; then | ||
1807 | # If there are subdirs, report their specific --help. | ||
1808 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1809 | test -d "$ac_dir" || | ||
1810 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | ||
1811 | continue | ||
1812 | ac_builddir=. | ||
1813 | |||
1814 | case "$ac_dir" in | ||
1815 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1816 | *) | ||
1817 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
1818 | # A ".." for each directory in $ac_dir_suffix. | ||
1819 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
1820 | case $ac_top_builddir_sub in | ||
1821 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1822 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
1823 | esac ;; | ||
1824 | esac | ||
1825 | ac_abs_top_builddir=$ac_pwd | ||
1826 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1827 | # for backward compatibility: | ||
1828 | ac_top_builddir=$ac_top_build_prefix | ||
1829 | |||
1830 | case $srcdir in | ||
1831 | .) # We are building in place. | ||
1832 | ac_srcdir=. | ||
1833 | ac_top_srcdir=$ac_top_builddir_sub | ||
1834 | ac_abs_top_srcdir=$ac_pwd ;; | ||
1835 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
1836 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1837 | ac_top_srcdir=$srcdir | ||
1838 | ac_abs_top_srcdir=$srcdir ;; | ||
1839 | *) # Relative name. | ||
1840 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
1841 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
1842 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
1843 | esac | ||
1844 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
1845 | |||
1846 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
1847 | # Check for guested configure. | ||
1848 | if test -f "$ac_srcdir/configure.gnu"; then | ||
1849 | echo && | ||
1850 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
1851 | elif test -f "$ac_srcdir/configure"; then | ||
1852 | echo && | ||
1853 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
1854 | else | ||
1855 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1856 | fi || ac_status=$? | ||
1857 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
1858 | done | ||
1859 | fi | ||
1860 | |||
1861 | test -n "$ac_init_help" && exit $ac_status | ||
1862 | if $ac_init_version; then | ||
1863 | cat <<\_ACEOF | ||
1864 | eina configure 1.1.0 | ||
1865 | generated by GNU Autoconf 2.67 | ||
1866 | |||
1867 | Copyright (C) 2010 Free Software Foundation, Inc. | ||
1868 | This configure script is free software; the Free Software Foundation | ||
1869 | gives unlimited permission to copy, distribute and modify it. | ||
1870 | _ACEOF | ||
1871 | exit | ||
1872 | fi | ||
1873 | |||
1874 | ## ------------------------ ## | ||
1875 | ## Autoconf initialization. ## | ||
1876 | ## ------------------------ ## | ||
1877 | |||
1878 | # ac_fn_c_try_compile LINENO | ||
1879 | # -------------------------- | ||
1880 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
1881 | ac_fn_c_try_compile () | ||
1882 | { | ||
1883 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1884 | rm -f conftest.$ac_objext | ||
1885 | if { { ac_try="$ac_compile" | ||
1886 | case "(($ac_try" in | ||
1887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1888 | *) ac_try_echo=$ac_try;; | ||
1889 | esac | ||
1890 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1891 | $as_echo "$ac_try_echo"; } >&5 | ||
1892 | (eval "$ac_compile") 2>conftest.err | ||
1893 | ac_status=$? | ||
1894 | if test -s conftest.err; then | ||
1895 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1896 | cat conftest.er1 >&5 | ||
1897 | mv -f conftest.er1 conftest.err | ||
1898 | fi | ||
1899 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1900 | test $ac_status = 0; } && { | ||
1901 | test -z "$ac_c_werror_flag" || | ||
1902 | test ! -s conftest.err | ||
1903 | } && test -s conftest.$ac_objext; then : | ||
1904 | ac_retval=0 | ||
1905 | else | ||
1906 | $as_echo "$as_me: failed program was:" >&5 | ||
1907 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1908 | |||
1909 | ac_retval=1 | ||
1910 | fi | ||
1911 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1912 | as_fn_set_status $ac_retval | ||
1913 | |||
1914 | } # ac_fn_c_try_compile | ||
1915 | |||
1916 | # ac_fn_c_try_cpp LINENO | ||
1917 | # ---------------------- | ||
1918 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||
1919 | ac_fn_c_try_cpp () | ||
1920 | { | ||
1921 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1922 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||
1923 | case "(($ac_try" in | ||
1924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1925 | *) ac_try_echo=$ac_try;; | ||
1926 | esac | ||
1927 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1928 | $as_echo "$ac_try_echo"; } >&5 | ||
1929 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||
1930 | ac_status=$? | ||
1931 | if test -s conftest.err; then | ||
1932 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1933 | cat conftest.er1 >&5 | ||
1934 | mv -f conftest.er1 conftest.err | ||
1935 | fi | ||
1936 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1937 | test $ac_status = 0; } > conftest.i && { | ||
1938 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
1939 | test ! -s conftest.err | ||
1940 | }; then : | ||
1941 | ac_retval=0 | ||
1942 | else | ||
1943 | $as_echo "$as_me: failed program was:" >&5 | ||
1944 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1945 | |||
1946 | ac_retval=1 | ||
1947 | fi | ||
1948 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1949 | as_fn_set_status $ac_retval | ||
1950 | |||
1951 | } # ac_fn_c_try_cpp | ||
1952 | |||
1953 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | ||
1954 | # ------------------------------------------------------- | ||
1955 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | ||
1956 | # the include files in INCLUDES and setting the cache variable VAR | ||
1957 | # accordingly. | ||
1958 | ac_fn_c_check_header_mongrel () | ||
1959 | { | ||
1960 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1961 | if eval "test \"\${$3+set}\"" = set; then : | ||
1962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1963 | $as_echo_n "checking for $2... " >&6; } | ||
1964 | if eval "test \"\${$3+set}\"" = set; then : | ||
1965 | $as_echo_n "(cached) " >&6 | ||
1966 | fi | ||
1967 | eval ac_res=\$$3 | ||
1968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1969 | $as_echo "$ac_res" >&6; } | ||
1970 | else | ||
1971 | # Is the header compilable? | ||
1972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | ||
1973 | $as_echo_n "checking $2 usability... " >&6; } | ||
1974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1975 | /* end confdefs.h. */ | ||
1976 | $4 | ||
1977 | #include <$2> | ||
1978 | _ACEOF | ||
1979 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1980 | ac_header_compiler=yes | ||
1981 | else | ||
1982 | ac_header_compiler=no | ||
1983 | fi | ||
1984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | ||
1986 | $as_echo "$ac_header_compiler" >&6; } | ||
1987 | |||
1988 | # Is the header present? | ||
1989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | ||
1990 | $as_echo_n "checking $2 presence... " >&6; } | ||
1991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1992 | /* end confdefs.h. */ | ||
1993 | #include <$2> | ||
1994 | _ACEOF | ||
1995 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
1996 | ac_header_preproc=yes | ||
1997 | else | ||
1998 | ac_header_preproc=no | ||
1999 | fi | ||
2000 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
2001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | ||
2002 | $as_echo "$ac_header_preproc" >&6; } | ||
2003 | |||
2004 | # So? What about this header? | ||
2005 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | ||
2006 | yes:no: ) | ||
2007 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
2008 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
2009 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
2010 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
2011 | ;; | ||
2012 | no:yes:* ) | ||
2013 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | ||
2014 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | ||
2015 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | ||
2016 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | ||
2017 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | ||
2018 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | ||
2019 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | ||
2020 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | ||
2021 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
2022 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
2023 | ( $as_echo "## -------------------------------------------------------- ## | ||
2024 | ## Report this to enlightenment-devel@lists.sourceforge.net ## | ||
2025 | ## -------------------------------------------------------- ##" | ||
2026 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
2027 | ;; | ||
2028 | esac | ||
2029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2030 | $as_echo_n "checking for $2... " >&6; } | ||
2031 | if eval "test \"\${$3+set}\"" = set; then : | ||
2032 | $as_echo_n "(cached) " >&6 | ||
2033 | else | ||
2034 | eval "$3=\$ac_header_compiler" | ||
2035 | fi | ||
2036 | eval ac_res=\$$3 | ||
2037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2038 | $as_echo "$ac_res" >&6; } | ||
2039 | fi | ||
2040 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2041 | |||
2042 | } # ac_fn_c_check_header_mongrel | ||
2043 | |||
2044 | # ac_fn_c_try_run LINENO | ||
2045 | # ---------------------- | ||
2046 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | ||
2047 | # that executables *can* be run. | ||
2048 | ac_fn_c_try_run () | ||
2049 | { | ||
2050 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2051 | if { { ac_try="$ac_link" | ||
2052 | case "(($ac_try" in | ||
2053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2054 | *) ac_try_echo=$ac_try;; | ||
2055 | esac | ||
2056 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2057 | $as_echo "$ac_try_echo"; } >&5 | ||
2058 | (eval "$ac_link") 2>&5 | ||
2059 | ac_status=$? | ||
2060 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2061 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | ||
2062 | { { case "(($ac_try" in | ||
2063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2064 | *) ac_try_echo=$ac_try;; | ||
2065 | esac | ||
2066 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2067 | $as_echo "$ac_try_echo"; } >&5 | ||
2068 | (eval "$ac_try") 2>&5 | ||
2069 | ac_status=$? | ||
2070 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2071 | test $ac_status = 0; }; }; then : | ||
2072 | ac_retval=0 | ||
2073 | else | ||
2074 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
2075 | $as_echo "$as_me: failed program was:" >&5 | ||
2076 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2077 | |||
2078 | ac_retval=$ac_status | ||
2079 | fi | ||
2080 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
2081 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2082 | as_fn_set_status $ac_retval | ||
2083 | |||
2084 | } # ac_fn_c_try_run | ||
2085 | |||
2086 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | ||
2087 | # ------------------------------------------------------- | ||
2088 | # Tests whether HEADER exists and can be compiled using the include files in | ||
2089 | # INCLUDES, setting the cache variable VAR accordingly. | ||
2090 | ac_fn_c_check_header_compile () | ||
2091 | { | ||
2092 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2094 | $as_echo_n "checking for $2... " >&6; } | ||
2095 | if eval "test \"\${$3+set}\"" = set; then : | ||
2096 | $as_echo_n "(cached) " >&6 | ||
2097 | else | ||
2098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2099 | /* end confdefs.h. */ | ||
2100 | $4 | ||
2101 | #include <$2> | ||
2102 | _ACEOF | ||
2103 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2104 | eval "$3=yes" | ||
2105 | else | ||
2106 | eval "$3=no" | ||
2107 | fi | ||
2108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2109 | fi | ||
2110 | eval ac_res=\$$3 | ||
2111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2112 | $as_echo "$ac_res" >&6; } | ||
2113 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2114 | |||
2115 | } # ac_fn_c_check_header_compile | ||
2116 | |||
2117 | # ac_fn_c_try_link LINENO | ||
2118 | # ----------------------- | ||
2119 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
2120 | ac_fn_c_try_link () | ||
2121 | { | ||
2122 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2123 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
2124 | if { { ac_try="$ac_link" | ||
2125 | case "(($ac_try" in | ||
2126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2127 | *) ac_try_echo=$ac_try;; | ||
2128 | esac | ||
2129 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2130 | $as_echo "$ac_try_echo"; } >&5 | ||
2131 | (eval "$ac_link") 2>conftest.err | ||
2132 | ac_status=$? | ||
2133 | if test -s conftest.err; then | ||
2134 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2135 | cat conftest.er1 >&5 | ||
2136 | mv -f conftest.er1 conftest.err | ||
2137 | fi | ||
2138 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2139 | test $ac_status = 0; } && { | ||
2140 | test -z "$ac_c_werror_flag" || | ||
2141 | test ! -s conftest.err | ||
2142 | } && test -s conftest$ac_exeext && { | ||
2143 | test "$cross_compiling" = yes || | ||
2144 | $as_test_x conftest$ac_exeext | ||
2145 | }; then : | ||
2146 | ac_retval=0 | ||
2147 | else | ||
2148 | $as_echo "$as_me: failed program was:" >&5 | ||
2149 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2150 | |||
2151 | ac_retval=1 | ||
2152 | fi | ||
2153 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
2154 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
2155 | # interfere with the next link command; also delete a directory that is | ||
2156 | # left behind by Apple's compiler. We do this before executing the actions. | ||
2157 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
2158 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2159 | as_fn_set_status $ac_retval | ||
2160 | |||
2161 | } # ac_fn_c_try_link | ||
2162 | |||
2163 | # ac_fn_c_check_func LINENO FUNC VAR | ||
2164 | # ---------------------------------- | ||
2165 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | ||
2166 | ac_fn_c_check_func () | ||
2167 | { | ||
2168 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2170 | $as_echo_n "checking for $2... " >&6; } | ||
2171 | if eval "test \"\${$3+set}\"" = set; then : | ||
2172 | $as_echo_n "(cached) " >&6 | ||
2173 | else | ||
2174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2175 | /* end confdefs.h. */ | ||
2176 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | ||
2177 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
2178 | #define $2 innocuous_$2 | ||
2179 | |||
2180 | /* System header to define __stub macros and hopefully few prototypes, | ||
2181 | which can conflict with char $2 (); below. | ||
2182 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2183 | <limits.h> exists even on freestanding compilers. */ | ||
2184 | |||
2185 | #ifdef __STDC__ | ||
2186 | # include <limits.h> | ||
2187 | #else | ||
2188 | # include <assert.h> | ||
2189 | #endif | ||
2190 | |||
2191 | #undef $2 | ||
2192 | |||
2193 | /* Override any GCC internal prototype to avoid an error. | ||
2194 | Use char because int might match the return type of a GCC | ||
2195 | builtin and then its argument prototype would still apply. */ | ||
2196 | #ifdef __cplusplus | ||
2197 | extern "C" | ||
2198 | #endif | ||
2199 | char $2 (); | ||
2200 | /* The GNU C library defines this for functions which it implements | ||
2201 | to always fail with ENOSYS. Some functions are actually named | ||
2202 | something starting with __ and the normal name is an alias. */ | ||
2203 | #if defined __stub_$2 || defined __stub___$2 | ||
2204 | choke me | ||
2205 | #endif | ||
2206 | |||
2207 | int | ||
2208 | main () | ||
2209 | { | ||
2210 | return $2 (); | ||
2211 | ; | ||
2212 | return 0; | ||
2213 | } | ||
2214 | _ACEOF | ||
2215 | if ac_fn_c_try_link "$LINENO"; then : | ||
2216 | eval "$3=yes" | ||
2217 | else | ||
2218 | eval "$3=no" | ||
2219 | fi | ||
2220 | rm -f core conftest.err conftest.$ac_objext \ | ||
2221 | conftest$ac_exeext conftest.$ac_ext | ||
2222 | fi | ||
2223 | eval ac_res=\$$3 | ||
2224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2225 | $as_echo "$ac_res" >&6; } | ||
2226 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2227 | |||
2228 | } # ac_fn_c_check_func | ||
2229 | |||
2230 | # ac_fn_cxx_try_compile LINENO | ||
2231 | # ---------------------------- | ||
2232 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
2233 | ac_fn_cxx_try_compile () | ||
2234 | { | ||
2235 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2236 | rm -f conftest.$ac_objext | ||
2237 | if { { ac_try="$ac_compile" | ||
2238 | case "(($ac_try" in | ||
2239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2240 | *) ac_try_echo=$ac_try;; | ||
2241 | esac | ||
2242 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2243 | $as_echo "$ac_try_echo"; } >&5 | ||
2244 | (eval "$ac_compile") 2>conftest.err | ||
2245 | ac_status=$? | ||
2246 | if test -s conftest.err; then | ||
2247 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2248 | cat conftest.er1 >&5 | ||
2249 | mv -f conftest.er1 conftest.err | ||
2250 | fi | ||
2251 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2252 | test $ac_status = 0; } && { | ||
2253 | test -z "$ac_cxx_werror_flag" || | ||
2254 | test ! -s conftest.err | ||
2255 | } && test -s conftest.$ac_objext; then : | ||
2256 | ac_retval=0 | ||
2257 | else | ||
2258 | $as_echo "$as_me: failed program was:" >&5 | ||
2259 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2260 | |||
2261 | ac_retval=1 | ||
2262 | fi | ||
2263 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2264 | as_fn_set_status $ac_retval | ||
2265 | |||
2266 | } # ac_fn_cxx_try_compile | ||
2267 | |||
2268 | # ac_fn_cxx_try_cpp LINENO | ||
2269 | # ------------------------ | ||
2270 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||
2271 | ac_fn_cxx_try_cpp () | ||
2272 | { | ||
2273 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2274 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||
2275 | case "(($ac_try" in | ||
2276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2277 | *) ac_try_echo=$ac_try;; | ||
2278 | esac | ||
2279 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2280 | $as_echo "$ac_try_echo"; } >&5 | ||
2281 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||
2282 | ac_status=$? | ||
2283 | if test -s conftest.err; then | ||
2284 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2285 | cat conftest.er1 >&5 | ||
2286 | mv -f conftest.er1 conftest.err | ||
2287 | fi | ||
2288 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2289 | test $ac_status = 0; } > conftest.i && { | ||
2290 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | ||
2291 | test ! -s conftest.err | ||
2292 | }; then : | ||
2293 | ac_retval=0 | ||
2294 | else | ||
2295 | $as_echo "$as_me: failed program was:" >&5 | ||
2296 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2297 | |||
2298 | ac_retval=1 | ||
2299 | fi | ||
2300 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2301 | as_fn_set_status $ac_retval | ||
2302 | |||
2303 | } # ac_fn_cxx_try_cpp | ||
2304 | |||
2305 | # ac_fn_cxx_try_link LINENO | ||
2306 | # ------------------------- | ||
2307 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
2308 | ac_fn_cxx_try_link () | ||
2309 | { | ||
2310 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2311 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
2312 | if { { ac_try="$ac_link" | ||
2313 | case "(($ac_try" in | ||
2314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2315 | *) ac_try_echo=$ac_try;; | ||
2316 | esac | ||
2317 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2318 | $as_echo "$ac_try_echo"; } >&5 | ||
2319 | (eval "$ac_link") 2>conftest.err | ||
2320 | ac_status=$? | ||
2321 | if test -s conftest.err; then | ||
2322 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2323 | cat conftest.er1 >&5 | ||
2324 | mv -f conftest.er1 conftest.err | ||
2325 | fi | ||
2326 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2327 | test $ac_status = 0; } && { | ||
2328 | test -z "$ac_cxx_werror_flag" || | ||
2329 | test ! -s conftest.err | ||
2330 | } && test -s conftest$ac_exeext && { | ||
2331 | test "$cross_compiling" = yes || | ||
2332 | $as_test_x conftest$ac_exeext | ||
2333 | }; then : | ||
2334 | ac_retval=0 | ||
2335 | else | ||
2336 | $as_echo "$as_me: failed program was:" >&5 | ||
2337 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2338 | |||
2339 | ac_retval=1 | ||
2340 | fi | ||
2341 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
2342 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
2343 | # interfere with the next link command; also delete a directory that is | ||
2344 | # left behind by Apple's compiler. We do this before executing the actions. | ||
2345 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
2346 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2347 | as_fn_set_status $ac_retval | ||
2348 | |||
2349 | } # ac_fn_cxx_try_link | ||
2350 | |||
2351 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | ||
2352 | # -------------------------------------------- | ||
2353 | # Tries to find the compile-time value of EXPR in a program that includes | ||
2354 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | ||
2355 | # computed | ||
2356 | ac_fn_c_compute_int () | ||
2357 | { | ||
2358 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2359 | if test "$cross_compiling" = yes; then | ||
2360 | # Depending upon the size, compute the lo and hi bounds. | ||
2361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2362 | /* end confdefs.h. */ | ||
2363 | $4 | ||
2364 | int | ||
2365 | main () | ||
2366 | { | ||
2367 | static int test_array [1 - 2 * !(($2) >= 0)]; | ||
2368 | test_array [0] = 0 | ||
2369 | |||
2370 | ; | ||
2371 | return 0; | ||
2372 | } | ||
2373 | _ACEOF | ||
2374 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2375 | ac_lo=0 ac_mid=0 | ||
2376 | while :; do | ||
2377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2378 | /* end confdefs.h. */ | ||
2379 | $4 | ||
2380 | int | ||
2381 | main () | ||
2382 | { | ||
2383 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||
2384 | test_array [0] = 0 | ||
2385 | |||
2386 | ; | ||
2387 | return 0; | ||
2388 | } | ||
2389 | _ACEOF | ||
2390 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2391 | ac_hi=$ac_mid; break | ||
2392 | else | ||
2393 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | ||
2394 | if test $ac_lo -le $ac_mid; then | ||
2395 | ac_lo= ac_hi= | ||
2396 | break | ||
2397 | fi | ||
2398 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | ||
2399 | fi | ||
2400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2401 | done | ||
2402 | else | ||
2403 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2404 | /* end confdefs.h. */ | ||
2405 | $4 | ||
2406 | int | ||
2407 | main () | ||
2408 | { | ||
2409 | static int test_array [1 - 2 * !(($2) < 0)]; | ||
2410 | test_array [0] = 0 | ||
2411 | |||
2412 | ; | ||
2413 | return 0; | ||
2414 | } | ||
2415 | _ACEOF | ||
2416 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2417 | ac_hi=-1 ac_mid=-1 | ||
2418 | while :; do | ||
2419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2420 | /* end confdefs.h. */ | ||
2421 | $4 | ||
2422 | int | ||
2423 | main () | ||
2424 | { | ||
2425 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | ||
2426 | test_array [0] = 0 | ||
2427 | |||
2428 | ; | ||
2429 | return 0; | ||
2430 | } | ||
2431 | _ACEOF | ||
2432 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2433 | ac_lo=$ac_mid; break | ||
2434 | else | ||
2435 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | ||
2436 | if test $ac_mid -le $ac_hi; then | ||
2437 | ac_lo= ac_hi= | ||
2438 | break | ||
2439 | fi | ||
2440 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | ||
2441 | fi | ||
2442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2443 | done | ||
2444 | else | ||
2445 | ac_lo= ac_hi= | ||
2446 | fi | ||
2447 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2448 | fi | ||
2449 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2450 | # Binary search between lo and hi bounds. | ||
2451 | while test "x$ac_lo" != "x$ac_hi"; do | ||
2452 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | ||
2453 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2454 | /* end confdefs.h. */ | ||
2455 | $4 | ||
2456 | int | ||
2457 | main () | ||
2458 | { | ||
2459 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||
2460 | test_array [0] = 0 | ||
2461 | |||
2462 | ; | ||
2463 | return 0; | ||
2464 | } | ||
2465 | _ACEOF | ||
2466 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2467 | ac_hi=$ac_mid | ||
2468 | else | ||
2469 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | ||
2470 | fi | ||
2471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2472 | done | ||
2473 | case $ac_lo in #(( | ||
2474 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | ||
2475 | '') ac_retval=1 ;; | ||
2476 | esac | ||
2477 | else | ||
2478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2479 | /* end confdefs.h. */ | ||
2480 | $4 | ||
2481 | static long int longval () { return $2; } | ||
2482 | static unsigned long int ulongval () { return $2; } | ||
2483 | #include <stdio.h> | ||
2484 | #include <stdlib.h> | ||
2485 | int | ||
2486 | main () | ||
2487 | { | ||
2488 | |||
2489 | FILE *f = fopen ("conftest.val", "w"); | ||
2490 | if (! f) | ||
2491 | return 1; | ||
2492 | if (($2) < 0) | ||
2493 | { | ||
2494 | long int i = longval (); | ||
2495 | if (i != ($2)) | ||
2496 | return 1; | ||
2497 | fprintf (f, "%ld", i); | ||
2498 | } | ||
2499 | else | ||
2500 | { | ||
2501 | unsigned long int i = ulongval (); | ||
2502 | if (i != ($2)) | ||
2503 | return 1; | ||
2504 | fprintf (f, "%lu", i); | ||
2505 | } | ||
2506 | /* Do not output a trailing newline, as this causes \r\n confusion | ||
2507 | on some platforms. */ | ||
2508 | return ferror (f) || fclose (f) != 0; | ||
2509 | |||
2510 | ; | ||
2511 | return 0; | ||
2512 | } | ||
2513 | _ACEOF | ||
2514 | if ac_fn_c_try_run "$LINENO"; then : | ||
2515 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | ||
2516 | else | ||
2517 | ac_retval=1 | ||
2518 | fi | ||
2519 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
2520 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
2521 | rm -f conftest.val | ||
2522 | |||
2523 | fi | ||
2524 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2525 | as_fn_set_status $ac_retval | ||
2526 | |||
2527 | } # ac_fn_c_compute_int | ||
2528 | |||
2529 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | ||
2530 | # ------------------------------------------- | ||
2531 | # Tests whether TYPE exists after having included INCLUDES, setting cache | ||
2532 | # variable VAR accordingly. | ||
2533 | ac_fn_c_check_type () | ||
2534 | { | ||
2535 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2537 | $as_echo_n "checking for $2... " >&6; } | ||
2538 | if eval "test \"\${$3+set}\"" = set; then : | ||
2539 | $as_echo_n "(cached) " >&6 | ||
2540 | else | ||
2541 | eval "$3=no" | ||
2542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2543 | /* end confdefs.h. */ | ||
2544 | $4 | ||
2545 | int | ||
2546 | main () | ||
2547 | { | ||
2548 | if (sizeof ($2)) | ||
2549 | return 0; | ||
2550 | ; | ||
2551 | return 0; | ||
2552 | } | ||
2553 | _ACEOF | ||
2554 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2556 | /* end confdefs.h. */ | ||
2557 | $4 | ||
2558 | int | ||
2559 | main () | ||
2560 | { | ||
2561 | if (sizeof (($2))) | ||
2562 | return 0; | ||
2563 | ; | ||
2564 | return 0; | ||
2565 | } | ||
2566 | _ACEOF | ||
2567 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2568 | |||
2569 | else | ||
2570 | eval "$3=yes" | ||
2571 | fi | ||
2572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2573 | fi | ||
2574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2575 | fi | ||
2576 | eval ac_res=\$$3 | ||
2577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2578 | $as_echo "$ac_res" >&6; } | ||
2579 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2580 | |||
2581 | } # ac_fn_c_check_type | ||
2582 | cat >config.log <<_ACEOF | ||
2583 | This file contains any messages produced by compilers while | ||
2584 | running configure, to aid debugging if configure makes a mistake. | ||
2585 | |||
2586 | It was created by eina $as_me 1.1.0, which was | ||
2587 | generated by GNU Autoconf 2.67. Invocation command line was | ||
2588 | |||
2589 | $ $0 $@ | ||
2590 | |||
2591 | _ACEOF | ||
2592 | exec 5>>config.log | ||
2593 | { | ||
2594 | cat <<_ASUNAME | ||
2595 | ## --------- ## | ||
2596 | ## Platform. ## | ||
2597 | ## --------- ## | ||
2598 | |||
2599 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
2600 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
2601 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
2602 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
2603 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
2604 | |||
2605 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
2606 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
2607 | |||
2608 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
2609 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
2610 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
2611 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
2612 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
2613 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
2614 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
2615 | |||
2616 | _ASUNAME | ||
2617 | |||
2618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2619 | for as_dir in $PATH | ||
2620 | do | ||
2621 | IFS=$as_save_IFS | ||
2622 | test -z "$as_dir" && as_dir=. | ||
2623 | $as_echo "PATH: $as_dir" | ||
2624 | done | ||
2625 | IFS=$as_save_IFS | ||
2626 | |||
2627 | } >&5 | ||
2628 | |||
2629 | cat >&5 <<_ACEOF | ||
2630 | |||
2631 | |||
2632 | ## ----------- ## | ||
2633 | ## Core tests. ## | ||
2634 | ## ----------- ## | ||
2635 | |||
2636 | _ACEOF | ||
2637 | |||
2638 | |||
2639 | # Keep a trace of the command line. | ||
2640 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
2641 | # Strip out --silent because we don't want to record it for future runs. | ||
2642 | # Also quote any args containing shell meta-characters. | ||
2643 | # Make two passes to allow for proper duplicate-argument suppression. | ||
2644 | ac_configure_args= | ||
2645 | ac_configure_args0= | ||
2646 | ac_configure_args1= | ||
2647 | ac_must_keep_next=false | ||
2648 | for ac_pass in 1 2 | ||
2649 | do | ||
2650 | for ac_arg | ||
2651 | do | ||
2652 | case $ac_arg in | ||
2653 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
2654 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
2655 | | -silent | --silent | --silen | --sile | --sil) | ||
2656 | continue ;; | ||
2657 | *\'*) | ||
2658 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
2659 | esac | ||
2660 | case $ac_pass in | ||
2661 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | ||
2662 | 2) | ||
2663 | as_fn_append ac_configure_args1 " '$ac_arg'" | ||
2664 | if test $ac_must_keep_next = true; then | ||
2665 | ac_must_keep_next=false # Got value, back to normal. | ||
2666 | else | ||
2667 | case $ac_arg in | ||
2668 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
2669 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
2670 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
2671 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
2672 | case "$ac_configure_args0 " in | ||
2673 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
2674 | esac | ||
2675 | ;; | ||
2676 | -* ) ac_must_keep_next=true ;; | ||
2677 | esac | ||
2678 | fi | ||
2679 | as_fn_append ac_configure_args " '$ac_arg'" | ||
2680 | ;; | ||
2681 | esac | ||
2682 | done | ||
2683 | done | ||
2684 | { ac_configure_args0=; unset ac_configure_args0;} | ||
2685 | { ac_configure_args1=; unset ac_configure_args1;} | ||
2686 | |||
2687 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
2688 | # config.log. We remove comments because anyway the quotes in there | ||
2689 | # would cause problems or look ugly. | ||
2690 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
2691 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
2692 | trap 'exit_status=$? | ||
2693 | # Save into config.log some information that might help in debugging. | ||
2694 | { | ||
2695 | echo | ||
2696 | |||
2697 | $as_echo "## ---------------- ## | ||
2698 | ## Cache variables. ## | ||
2699 | ## ---------------- ##" | ||
2700 | echo | ||
2701 | # The following way of writing the cache mishandles newlines in values, | ||
2702 | ( | ||
2703 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
2704 | eval ac_val=\$$ac_var | ||
2705 | case $ac_val in #( | ||
2706 | *${as_nl}*) | ||
2707 | case $ac_var in #( | ||
2708 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
2709 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
2710 | esac | ||
2711 | case $ac_var in #( | ||
2712 | _ | IFS | as_nl) ;; #( | ||
2713 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
2714 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
2715 | esac ;; | ||
2716 | esac | ||
2717 | done | ||
2718 | (set) 2>&1 | | ||
2719 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
2720 | *${as_nl}ac_space=\ *) | ||
2721 | sed -n \ | ||
2722 | "s/'\''/'\''\\\\'\'''\''/g; | ||
2723 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
2724 | ;; #( | ||
2725 | *) | ||
2726 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
2727 | ;; | ||
2728 | esac | | ||
2729 | sort | ||
2730 | ) | ||
2731 | echo | ||
2732 | |||
2733 | $as_echo "## ----------------- ## | ||
2734 | ## Output variables. ## | ||
2735 | ## ----------------- ##" | ||
2736 | echo | ||
2737 | for ac_var in $ac_subst_vars | ||
2738 | do | ||
2739 | eval ac_val=\$$ac_var | ||
2740 | case $ac_val in | ||
2741 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
2742 | esac | ||
2743 | $as_echo "$ac_var='\''$ac_val'\''" | ||
2744 | done | sort | ||
2745 | echo | ||
2746 | |||
2747 | if test -n "$ac_subst_files"; then | ||
2748 | $as_echo "## ------------------- ## | ||
2749 | ## File substitutions. ## | ||
2750 | ## ------------------- ##" | ||
2751 | echo | ||
2752 | for ac_var in $ac_subst_files | ||
2753 | do | ||
2754 | eval ac_val=\$$ac_var | ||
2755 | case $ac_val in | ||
2756 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
2757 | esac | ||
2758 | $as_echo "$ac_var='\''$ac_val'\''" | ||
2759 | done | sort | ||
2760 | echo | ||
2761 | fi | ||
2762 | |||
2763 | if test -s confdefs.h; then | ||
2764 | $as_echo "## ----------- ## | ||
2765 | ## confdefs.h. ## | ||
2766 | ## ----------- ##" | ||
2767 | echo | ||
2768 | cat confdefs.h | ||
2769 | echo | ||
2770 | fi | ||
2771 | test "$ac_signal" != 0 && | ||
2772 | $as_echo "$as_me: caught signal $ac_signal" | ||
2773 | $as_echo "$as_me: exit $exit_status" | ||
2774 | } >&5 | ||
2775 | rm -f core *.core core.conftest.* && | ||
2776 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
2777 | exit $exit_status | ||
2778 | ' 0 | ||
2779 | for ac_signal in 1 2 13 15; do | ||
2780 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | ||
2781 | done | ||
2782 | ac_signal=0 | ||
2783 | |||
2784 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
2785 | rm -f -r conftest* confdefs.h | ||
2786 | |||
2787 | $as_echo "/* confdefs.h */" > confdefs.h | ||
2788 | |||
2789 | # Predefined preprocessor variables. | ||
2790 | |||
2791 | cat >>confdefs.h <<_ACEOF | ||
2792 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
2793 | _ACEOF | ||
2794 | |||
2795 | cat >>confdefs.h <<_ACEOF | ||
2796 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
2797 | _ACEOF | ||
2798 | |||
2799 | cat >>confdefs.h <<_ACEOF | ||
2800 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
2801 | _ACEOF | ||
2802 | |||
2803 | cat >>confdefs.h <<_ACEOF | ||
2804 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
2805 | _ACEOF | ||
2806 | |||
2807 | cat >>confdefs.h <<_ACEOF | ||
2808 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
2809 | _ACEOF | ||
2810 | |||
2811 | cat >>confdefs.h <<_ACEOF | ||
2812 | #define PACKAGE_URL "$PACKAGE_URL" | ||
2813 | _ACEOF | ||
2814 | |||
2815 | |||
2816 | # Let the site file select an alternate cache file if it wants to. | ||
2817 | # Prefer an explicitly selected file to automatically selected ones. | ||
2818 | ac_site_file1=NONE | ||
2819 | ac_site_file2=NONE | ||
2820 | if test -n "$CONFIG_SITE"; then | ||
2821 | # We do not want a PATH search for config.site. | ||
2822 | case $CONFIG_SITE in #(( | ||
2823 | -*) ac_site_file1=./$CONFIG_SITE;; | ||
2824 | */*) ac_site_file1=$CONFIG_SITE;; | ||
2825 | *) ac_site_file1=./$CONFIG_SITE;; | ||
2826 | esac | ||
2827 | elif test "x$prefix" != xNONE; then | ||
2828 | ac_site_file1=$prefix/share/config.site | ||
2829 | ac_site_file2=$prefix/etc/config.site | ||
2830 | else | ||
2831 | ac_site_file1=$ac_default_prefix/share/config.site | ||
2832 | ac_site_file2=$ac_default_prefix/etc/config.site | ||
2833 | fi | ||
2834 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | ||
2835 | do | ||
2836 | test "x$ac_site_file" = xNONE && continue | ||
2837 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | ||
2838 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | ||
2839 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | ||
2840 | sed 's/^/| /' "$ac_site_file" >&5 | ||
2841 | . "$ac_site_file" \ | ||
2842 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2843 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2844 | as_fn_error $? "failed to load site script $ac_site_file | ||
2845 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
2846 | fi | ||
2847 | done | ||
2848 | |||
2849 | if test -r "$cache_file"; then | ||
2850 | # Some versions of bash will fail to source /dev/null (special files | ||
2851 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | ||
2852 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | ||
2853 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | ||
2854 | $as_echo "$as_me: loading cache $cache_file" >&6;} | ||
2855 | case $cache_file in | ||
2856 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
2857 | *) . "./$cache_file";; | ||
2858 | esac | ||
2859 | fi | ||
2860 | else | ||
2861 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | ||
2862 | $as_echo "$as_me: creating cache $cache_file" >&6;} | ||
2863 | >$cache_file | ||
2864 | fi | ||
2865 | |||
2866 | # Check that the precious variables saved in the cache have kept the same | ||
2867 | # value. | ||
2868 | ac_cache_corrupted=false | ||
2869 | for ac_var in $ac_precious_vars; do | ||
2870 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
2871 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
2872 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
2873 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
2874 | case $ac_old_set,$ac_new_set in | ||
2875 | set,) | ||
2876 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
2877 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
2878 | ac_cache_corrupted=: ;; | ||
2879 | ,set) | ||
2880 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | ||
2881 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
2882 | ac_cache_corrupted=: ;; | ||
2883 | ,);; | ||
2884 | *) | ||
2885 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
2886 | # differences in whitespace do not lead to failure. | ||
2887 | ac_old_val_w=`echo x $ac_old_val` | ||
2888 | ac_new_val_w=`echo x $ac_new_val` | ||
2889 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | ||
2890 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | ||
2891 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
2892 | ac_cache_corrupted=: | ||
2893 | else | ||
2894 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | ||
2895 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | ||
2896 | eval $ac_var=\$ac_old_val | ||
2897 | fi | ||
2898 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | ||
2899 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | ||
2900 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | ||
2901 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | ||
2902 | fi;; | ||
2903 | esac | ||
2904 | # Pass precious variables to config.status. | ||
2905 | if test "$ac_new_set" = set; then | ||
2906 | case $ac_new_val in | ||
2907 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
2908 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
2909 | esac | ||
2910 | case " $ac_configure_args " in | ||
2911 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
2912 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | ||
2913 | esac | ||
2914 | fi | ||
2915 | done | ||
2916 | if $ac_cache_corrupted; then | ||
2917 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2918 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2919 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | ||
2920 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
2921 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | ||
2922 | fi | ||
2923 | ## -------------------- ## | ||
2924 | ## Main body of script. ## | ||
2925 | ## -------------------- ## | ||
2926 | |||
2927 | ac_ext=c | ||
2928 | ac_cpp='$CPP $CPPFLAGS' | ||
2929 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2930 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2931 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2932 | |||
2933 | |||
2934 | |||
2935 | |||
2936 | |||
2937 | |||
2938 | ac_config_headers="$ac_config_headers config.h" | ||
2939 | |||
2940 | |||
2941 | |||
2942 | |||
2943 | am__api_version='1.11' | ||
2944 | |||
2945 | ac_aux_dir= | ||
2946 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
2947 | if test -f "$ac_dir/install-sh"; then | ||
2948 | ac_aux_dir=$ac_dir | ||
2949 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
2950 | break | ||
2951 | elif test -f "$ac_dir/install.sh"; then | ||
2952 | ac_aux_dir=$ac_dir | ||
2953 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
2954 | break | ||
2955 | elif test -f "$ac_dir/shtool"; then | ||
2956 | ac_aux_dir=$ac_dir | ||
2957 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
2958 | break | ||
2959 | fi | ||
2960 | done | ||
2961 | if test -z "$ac_aux_dir"; then | ||
2962 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | ||
2963 | fi | ||
2964 | |||
2965 | # These three variables are undocumented and unsupported, | ||
2966 | # and are intended to be withdrawn in a future Autoconf release. | ||
2967 | # They can cause serious problems if a builder's source tree is in a directory | ||
2968 | # whose full name contains unusual characters. | ||
2969 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
2970 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
2971 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
2972 | |||
2973 | |||
2974 | # Find a good install program. We prefer a C program (faster), | ||
2975 | # so one script is as good as another. But avoid the broken or | ||
2976 | # incompatible versions: | ||
2977 | # SysV /etc/install, /usr/sbin/install | ||
2978 | # SunOS /usr/etc/install | ||
2979 | # IRIX /sbin/install | ||
2980 | # AIX /bin/install | ||
2981 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
2982 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
2983 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
2984 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
2985 | # OS/2's system install, which has a completely different semantic | ||
2986 | # ./install, which can be erroneously created by make from ./install.sh. | ||
2987 | # Reject install programs that cannot install multiple files. | ||
2988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | ||
2989 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | ||
2990 | if test -z "$INSTALL"; then | ||
2991 | if test "${ac_cv_path_install+set}" = set; then : | ||
2992 | $as_echo_n "(cached) " >&6 | ||
2993 | else | ||
2994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2995 | for as_dir in $PATH | ||
2996 | do | ||
2997 | IFS=$as_save_IFS | ||
2998 | test -z "$as_dir" && as_dir=. | ||
2999 | # Account for people who put trailing slashes in PATH elements. | ||
3000 | case $as_dir/ in #(( | ||
3001 | ./ | .// | /[cC]/* | \ | ||
3002 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
3003 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | ||
3004 | /usr/ucb/* ) ;; | ||
3005 | *) | ||
3006 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
3007 | # Don't use installbsd from OSF since it installs stuff as root | ||
3008 | # by default. | ||
3009 | for ac_prog in ginstall scoinst install; do | ||
3010 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3011 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
3012 | if test $ac_prog = install && | ||
3013 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
3014 | # AIX install. It has an incompatible calling convention. | ||
3015 | : | ||
3016 | elif test $ac_prog = install && | ||
3017 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
3018 | # program-specific install script used by HP pwplus--don't use. | ||
3019 | : | ||
3020 | else | ||
3021 | rm -rf conftest.one conftest.two conftest.dir | ||
3022 | echo one > conftest.one | ||
3023 | echo two > conftest.two | ||
3024 | mkdir conftest.dir | ||
3025 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | ||
3026 | test -s conftest.one && test -s conftest.two && | ||
3027 | test -s conftest.dir/conftest.one && | ||
3028 | test -s conftest.dir/conftest.two | ||
3029 | then | ||
3030 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
3031 | break 3 | ||
3032 | fi | ||
3033 | fi | ||
3034 | fi | ||
3035 | done | ||
3036 | done | ||
3037 | ;; | ||
3038 | esac | ||
3039 | |||
3040 | done | ||
3041 | IFS=$as_save_IFS | ||
3042 | |||
3043 | rm -rf conftest.one conftest.two conftest.dir | ||
3044 | |||
3045 | fi | ||
3046 | if test "${ac_cv_path_install+set}" = set; then | ||
3047 | INSTALL=$ac_cv_path_install | ||
3048 | else | ||
3049 | # As a last resort, use the slow shell script. Don't cache a | ||
3050 | # value for INSTALL within a source directory, because that will | ||
3051 | # break other packages using the cache if that directory is | ||
3052 | # removed, or if the value is a relative name. | ||
3053 | INSTALL=$ac_install_sh | ||
3054 | fi | ||
3055 | fi | ||
3056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | ||
3057 | $as_echo "$INSTALL" >&6; } | ||
3058 | |||
3059 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
3060 | # It thinks the first close brace ends the variable substitution. | ||
3061 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
3062 | |||
3063 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
3064 | |||
3065 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
3066 | |||
3067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | ||
3068 | $as_echo_n "checking whether build environment is sane... " >&6; } | ||
3069 | # Just in case | ||
3070 | sleep 1 | ||
3071 | echo timestamp > conftest.file | ||
3072 | # Reject unsafe characters in $srcdir or the absolute working directory | ||
3073 | # name. Accept space and tab only in the latter. | ||
3074 | am_lf=' | ||
3075 | ' | ||
3076 | case `pwd` in | ||
3077 | *[\\\"\#\$\&\'\`$am_lf]*) | ||
3078 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;; | ||
3079 | esac | ||
3080 | case $srcdir in | ||
3081 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | ||
3082 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;; | ||
3083 | esac | ||
3084 | |||
3085 | # Do `set' in a subshell so we don't clobber the current shell's | ||
3086 | # arguments. Must try -L first in case configure is actually a | ||
3087 | # symlink; some systems play weird games with the mod time of symlinks | ||
3088 | # (eg FreeBSD returns the mod time of the symlink's containing | ||
3089 | # directory). | ||
3090 | if ( | ||
3091 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | ||
3092 | if test "$*" = "X"; then | ||
3093 | # -L didn't work. | ||
3094 | set X `ls -t "$srcdir/configure" conftest.file` | ||
3095 | fi | ||
3096 | rm -f conftest.file | ||
3097 | if test "$*" != "X $srcdir/configure conftest.file" \ | ||
3098 | && test "$*" != "X conftest.file $srcdir/configure"; then | ||
3099 | |||
3100 | # If neither matched, then we have a broken ls. This can happen | ||
3101 | # if, for instance, CONFIG_SHELL is bash and it inherits a | ||
3102 | # broken ls alias from the environment. This has actually | ||
3103 | # happened. Such a system could not be considered "sane". | ||
3104 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | ||
3105 | alias in your environment" "$LINENO" 5 | ||
3106 | fi | ||
3107 | |||
3108 | test "$2" = conftest.file | ||
3109 | ) | ||
3110 | then | ||
3111 | # Ok. | ||
3112 | : | ||
3113 | else | ||
3114 | as_fn_error $? "newly created file is older than distributed files! | ||
3115 | Check your system clock" "$LINENO" 5 | ||
3116 | fi | ||
3117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
3118 | $as_echo "yes" >&6; } | ||
3119 | test "$program_prefix" != NONE && | ||
3120 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | ||
3121 | # Use a double $ so make ignores it. | ||
3122 | test "$program_suffix" != NONE && | ||
3123 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | ||
3124 | # Double any \ or $. | ||
3125 | # By default was `s,x,x', remove it if useless. | ||
3126 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | ||
3127 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | ||
3128 | |||
3129 | # expand $ac_aux_dir to an absolute path | ||
3130 | am_aux_dir=`cd $ac_aux_dir && pwd` | ||
3131 | |||
3132 | if test x"${MISSING+set}" != xset; then | ||
3133 | case $am_aux_dir in | ||
3134 | *\ * | *\ *) | ||
3135 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | ||
3136 | *) | ||
3137 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | ||
3138 | esac | ||
3139 | fi | ||
3140 | # Use eval to expand $SHELL | ||
3141 | if eval "$MISSING --run true"; then | ||
3142 | am_missing_run="$MISSING --run " | ||
3143 | else | ||
3144 | am_missing_run= | ||
3145 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | ||
3146 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | ||
3147 | fi | ||
3148 | |||
3149 | if test x"${install_sh}" != xset; then | ||
3150 | case $am_aux_dir in | ||
3151 | *\ * | *\ *) | ||
3152 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | ||
3153 | *) | ||
3154 | install_sh="\${SHELL} $am_aux_dir/install-sh" | ||
3155 | esac | ||
3156 | fi | ||
3157 | |||
3158 | # Installed binaries are usually stripped using `strip' when the user | ||
3159 | # run `make install-strip'. However `strip' might not be the right | ||
3160 | # tool to use in cross-compilation environments, therefore Automake | ||
3161 | # will honor the `STRIP' environment variable to overrule this program. | ||
3162 | if test "$cross_compiling" != no; then | ||
3163 | if test -n "$ac_tool_prefix"; then | ||
3164 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
3165 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
3166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3167 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3168 | if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
3169 | $as_echo_n "(cached) " >&6 | ||
3170 | else | ||
3171 | if test -n "$STRIP"; then | ||
3172 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
3173 | else | ||
3174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3175 | for as_dir in $PATH | ||
3176 | do | ||
3177 | IFS=$as_save_IFS | ||
3178 | test -z "$as_dir" && as_dir=. | ||
3179 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3180 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3181 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
3182 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3183 | break 2 | ||
3184 | fi | ||
3185 | done | ||
3186 | done | ||
3187 | IFS=$as_save_IFS | ||
3188 | |||
3189 | fi | ||
3190 | fi | ||
3191 | STRIP=$ac_cv_prog_STRIP | ||
3192 | if test -n "$STRIP"; then | ||
3193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
3194 | $as_echo "$STRIP" >&6; } | ||
3195 | else | ||
3196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3197 | $as_echo "no" >&6; } | ||
3198 | fi | ||
3199 | |||
3200 | |||
3201 | fi | ||
3202 | if test -z "$ac_cv_prog_STRIP"; then | ||
3203 | ac_ct_STRIP=$STRIP | ||
3204 | # Extract the first word of "strip", so it can be a program name with args. | ||
3205 | set dummy strip; ac_word=$2 | ||
3206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3207 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3208 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
3209 | $as_echo_n "(cached) " >&6 | ||
3210 | else | ||
3211 | if test -n "$ac_ct_STRIP"; then | ||
3212 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
3213 | else | ||
3214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3215 | for as_dir in $PATH | ||
3216 | do | ||
3217 | IFS=$as_save_IFS | ||
3218 | test -z "$as_dir" && as_dir=. | ||
3219 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3220 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3221 | ac_cv_prog_ac_ct_STRIP="strip" | ||
3222 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3223 | break 2 | ||
3224 | fi | ||
3225 | done | ||
3226 | done | ||
3227 | IFS=$as_save_IFS | ||
3228 | |||
3229 | fi | ||
3230 | fi | ||
3231 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
3232 | if test -n "$ac_ct_STRIP"; then | ||
3233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
3234 | $as_echo "$ac_ct_STRIP" >&6; } | ||
3235 | else | ||
3236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3237 | $as_echo "no" >&6; } | ||
3238 | fi | ||
3239 | |||
3240 | if test "x$ac_ct_STRIP" = x; then | ||
3241 | STRIP=":" | ||
3242 | else | ||
3243 | case $cross_compiling:$ac_tool_warned in | ||
3244 | yes:) | ||
3245 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3246 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3247 | ac_tool_warned=yes ;; | ||
3248 | esac | ||
3249 | STRIP=$ac_ct_STRIP | ||
3250 | fi | ||
3251 | else | ||
3252 | STRIP="$ac_cv_prog_STRIP" | ||
3253 | fi | ||
3254 | |||
3255 | fi | ||
3256 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | ||
3257 | |||
3258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | ||
3259 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | ||
3260 | if test -z "$MKDIR_P"; then | ||
3261 | if test "${ac_cv_path_mkdir+set}" = set; then : | ||
3262 | $as_echo_n "(cached) " >&6 | ||
3263 | else | ||
3264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3265 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | ||
3266 | do | ||
3267 | IFS=$as_save_IFS | ||
3268 | test -z "$as_dir" && as_dir=. | ||
3269 | for ac_prog in mkdir gmkdir; do | ||
3270 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3271 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | ||
3272 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | ||
3273 | 'mkdir (GNU coreutils) '* | \ | ||
3274 | 'mkdir (coreutils) '* | \ | ||
3275 | 'mkdir (fileutils) '4.1*) | ||
3276 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | ||
3277 | break 3;; | ||
3278 | esac | ||
3279 | done | ||
3280 | done | ||
3281 | done | ||
3282 | IFS=$as_save_IFS | ||
3283 | |||
3284 | fi | ||
3285 | |||
3286 | test -d ./--version && rmdir ./--version | ||
3287 | if test "${ac_cv_path_mkdir+set}" = set; then | ||
3288 | MKDIR_P="$ac_cv_path_mkdir -p" | ||
3289 | else | ||
3290 | # As a last resort, use the slow shell script. Don't cache a | ||
3291 | # value for MKDIR_P within a source directory, because that will | ||
3292 | # break other packages using the cache if that directory is | ||
3293 | # removed, or if the value is a relative name. | ||
3294 | MKDIR_P="$ac_install_sh -d" | ||
3295 | fi | ||
3296 | fi | ||
3297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | ||
3298 | $as_echo "$MKDIR_P" >&6; } | ||
3299 | |||
3300 | mkdir_p="$MKDIR_P" | ||
3301 | case $mkdir_p in | ||
3302 | [\\/$]* | ?:[\\/]*) ;; | ||
3303 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | ||
3304 | esac | ||
3305 | |||
3306 | for ac_prog in gawk mawk nawk awk | ||
3307 | do | ||
3308 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3309 | set dummy $ac_prog; ac_word=$2 | ||
3310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3311 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3312 | if test "${ac_cv_prog_AWK+set}" = set; then : | ||
3313 | $as_echo_n "(cached) " >&6 | ||
3314 | else | ||
3315 | if test -n "$AWK"; then | ||
3316 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
3317 | else | ||
3318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3319 | for as_dir in $PATH | ||
3320 | do | ||
3321 | IFS=$as_save_IFS | ||
3322 | test -z "$as_dir" && as_dir=. | ||
3323 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3324 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3325 | ac_cv_prog_AWK="$ac_prog" | ||
3326 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3327 | break 2 | ||
3328 | fi | ||
3329 | done | ||
3330 | done | ||
3331 | IFS=$as_save_IFS | ||
3332 | |||
3333 | fi | ||
3334 | fi | ||
3335 | AWK=$ac_cv_prog_AWK | ||
3336 | if test -n "$AWK"; then | ||
3337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | ||
3338 | $as_echo "$AWK" >&6; } | ||
3339 | else | ||
3340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3341 | $as_echo "no" >&6; } | ||
3342 | fi | ||
3343 | |||
3344 | |||
3345 | test -n "$AWK" && break | ||
3346 | done | ||
3347 | |||
3348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | ||
3349 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | ||
3350 | set x ${MAKE-make} | ||
3351 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | ||
3352 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : | ||
3353 | $as_echo_n "(cached) " >&6 | ||
3354 | else | ||
3355 | cat >conftest.make <<\_ACEOF | ||
3356 | SHELL = /bin/sh | ||
3357 | all: | ||
3358 | @echo '@@@%%%=$(MAKE)=@@@%%%' | ||
3359 | _ACEOF | ||
3360 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | ||
3361 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | ||
3362 | *@@@%%%=?*=@@@%%%*) | ||
3363 | eval ac_cv_prog_make_${ac_make}_set=yes;; | ||
3364 | *) | ||
3365 | eval ac_cv_prog_make_${ac_make}_set=no;; | ||
3366 | esac | ||
3367 | rm -f conftest.make | ||
3368 | fi | ||
3369 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | ||
3370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
3371 | $as_echo "yes" >&6; } | ||
3372 | SET_MAKE= | ||
3373 | else | ||
3374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3375 | $as_echo "no" >&6; } | ||
3376 | SET_MAKE="MAKE=${MAKE-make}" | ||
3377 | fi | ||
3378 | |||
3379 | rm -rf .tst 2>/dev/null | ||
3380 | mkdir .tst 2>/dev/null | ||
3381 | if test -d .tst; then | ||
3382 | am__leading_dot=. | ||
3383 | else | ||
3384 | am__leading_dot=_ | ||
3385 | fi | ||
3386 | rmdir .tst 2>/dev/null | ||
3387 | |||
3388 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | ||
3389 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | ||
3390 | # is not polluted with repeated "-I." | ||
3391 | am__isrc=' -I$(srcdir)' | ||
3392 | # test to see if srcdir already configured | ||
3393 | if test -f $srcdir/config.status; then | ||
3394 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | ||
3395 | fi | ||
3396 | fi | ||
3397 | |||
3398 | # test whether we have cygpath | ||
3399 | if test -z "$CYGPATH_W"; then | ||
3400 | if (cygpath --version) >/dev/null 2>/dev/null; then | ||
3401 | CYGPATH_W='cygpath -w' | ||
3402 | else | ||
3403 | CYGPATH_W=echo | ||
3404 | fi | ||
3405 | fi | ||
3406 | |||
3407 | |||
3408 | # Define the identity of the package. | ||
3409 | PACKAGE='eina' | ||
3410 | VERSION='1.1.0' | ||
3411 | |||
3412 | |||
3413 | cat >>confdefs.h <<_ACEOF | ||
3414 | #define PACKAGE "$PACKAGE" | ||
3415 | _ACEOF | ||
3416 | |||
3417 | |||
3418 | cat >>confdefs.h <<_ACEOF | ||
3419 | #define VERSION "$VERSION" | ||
3420 | _ACEOF | ||
3421 | |||
3422 | # Some tools Automake needs. | ||
3423 | |||
3424 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | ||
3425 | |||
3426 | |||
3427 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | ||
3428 | |||
3429 | |||
3430 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | ||
3431 | |||
3432 | |||
3433 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | ||
3434 | |||
3435 | |||
3436 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | ||
3437 | |||
3438 | # We need awk for the "check" target. The system "awk" is bad on | ||
3439 | # some platforms. | ||
3440 | # Always define AMTAR for backward compatibility. | ||
3441 | |||
3442 | AMTAR=${AMTAR-"${am_missing_run}tar"} | ||
3443 | |||
3444 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | ||
3445 | |||
3446 | |||
3447 | |||
3448 | |||
3449 | |||
3450 | # Check whether --enable-silent-rules was given. | ||
3451 | if test "${enable_silent_rules+set}" = set; then : | ||
3452 | enableval=$enable_silent_rules; | ||
3453 | fi | ||
3454 | |||
3455 | case $enable_silent_rules in | ||
3456 | yes) AM_DEFAULT_VERBOSITY=0;; | ||
3457 | no) AM_DEFAULT_VERBOSITY=1;; | ||
3458 | *) AM_DEFAULT_VERBOSITY=0;; | ||
3459 | esac | ||
3460 | AM_BACKSLASH='\' | ||
3461 | |||
3462 | |||
3463 | DEPDIR="${am__leading_dot}deps" | ||
3464 | |||
3465 | ac_config_commands="$ac_config_commands depfiles" | ||
3466 | |||
3467 | |||
3468 | am_make=${MAKE-make} | ||
3469 | cat > confinc << 'END' | ||
3470 | am__doit: | ||
3471 | @echo this is the am__doit target | ||
3472 | .PHONY: am__doit | ||
3473 | END | ||
3474 | # If we don't find an include directive, just comment out the code. | ||
3475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | ||
3476 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | ||
3477 | am__include="#" | ||
3478 | am__quote= | ||
3479 | _am_result=none | ||
3480 | # First try GNU make style include. | ||
3481 | echo "include confinc" > confmf | ||
3482 | # Ignore all kinds of additional output from `make'. | ||
3483 | case `$am_make -s -f confmf 2> /dev/null` in #( | ||
3484 | *the\ am__doit\ target*) | ||
3485 | am__include=include | ||
3486 | am__quote= | ||
3487 | _am_result=GNU | ||
3488 | ;; | ||
3489 | esac | ||
3490 | # Now try BSD make style include. | ||
3491 | if test "$am__include" = "#"; then | ||
3492 | echo '.include "confinc"' > confmf | ||
3493 | case `$am_make -s -f confmf 2> /dev/null` in #( | ||
3494 | *the\ am__doit\ target*) | ||
3495 | am__include=.include | ||
3496 | am__quote="\"" | ||
3497 | _am_result=BSD | ||
3498 | ;; | ||
3499 | esac | ||
3500 | fi | ||
3501 | |||
3502 | |||
3503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | ||
3504 | $as_echo "$_am_result" >&6; } | ||
3505 | rm -f confinc confmf | ||
3506 | |||
3507 | # Check whether --enable-dependency-tracking was given. | ||
3508 | if test "${enable_dependency_tracking+set}" = set; then : | ||
3509 | enableval=$enable_dependency_tracking; | ||
3510 | fi | ||
3511 | |||
3512 | if test "x$enable_dependency_tracking" != xno; then | ||
3513 | am_depcomp="$ac_aux_dir/depcomp" | ||
3514 | AMDEPBACKSLASH='\' | ||
3515 | fi | ||
3516 | if test "x$enable_dependency_tracking" != xno; then | ||
3517 | AMDEP_TRUE= | ||
3518 | AMDEP_FALSE='#' | ||
3519 | else | ||
3520 | AMDEP_TRUE='#' | ||
3521 | AMDEP_FALSE= | ||
3522 | fi | ||
3523 | |||
3524 | |||
3525 | ac_ext=c | ||
3526 | ac_cpp='$CPP $CPPFLAGS' | ||
3527 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3528 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3529 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3530 | if test -n "$ac_tool_prefix"; then | ||
3531 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
3532 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
3533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3534 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3535 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
3536 | $as_echo_n "(cached) " >&6 | ||
3537 | else | ||
3538 | if test -n "$CC"; then | ||
3539 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
3540 | else | ||
3541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3542 | for as_dir in $PATH | ||
3543 | do | ||
3544 | IFS=$as_save_IFS | ||
3545 | test -z "$as_dir" && as_dir=. | ||
3546 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3547 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3548 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
3549 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3550 | break 2 | ||
3551 | fi | ||
3552 | done | ||
3553 | done | ||
3554 | IFS=$as_save_IFS | ||
3555 | |||
3556 | fi | ||
3557 | fi | ||
3558 | CC=$ac_cv_prog_CC | ||
3559 | if test -n "$CC"; then | ||
3560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
3561 | $as_echo "$CC" >&6; } | ||
3562 | else | ||
3563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3564 | $as_echo "no" >&6; } | ||
3565 | fi | ||
3566 | |||
3567 | |||
3568 | fi | ||
3569 | if test -z "$ac_cv_prog_CC"; then | ||
3570 | ac_ct_CC=$CC | ||
3571 | # Extract the first word of "gcc", so it can be a program name with args. | ||
3572 | set dummy gcc; ac_word=$2 | ||
3573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3574 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3575 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
3576 | $as_echo_n "(cached) " >&6 | ||
3577 | else | ||
3578 | if test -n "$ac_ct_CC"; then | ||
3579 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
3580 | else | ||
3581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3582 | for as_dir in $PATH | ||
3583 | do | ||
3584 | IFS=$as_save_IFS | ||
3585 | test -z "$as_dir" && as_dir=. | ||
3586 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3587 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3588 | ac_cv_prog_ac_ct_CC="gcc" | ||
3589 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3590 | break 2 | ||
3591 | fi | ||
3592 | done | ||
3593 | done | ||
3594 | IFS=$as_save_IFS | ||
3595 | |||
3596 | fi | ||
3597 | fi | ||
3598 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
3599 | if test -n "$ac_ct_CC"; then | ||
3600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
3601 | $as_echo "$ac_ct_CC" >&6; } | ||
3602 | else | ||
3603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3604 | $as_echo "no" >&6; } | ||
3605 | fi | ||
3606 | |||
3607 | if test "x$ac_ct_CC" = x; then | ||
3608 | CC="" | ||
3609 | else | ||
3610 | case $cross_compiling:$ac_tool_warned in | ||
3611 | yes:) | ||
3612 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3613 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3614 | ac_tool_warned=yes ;; | ||
3615 | esac | ||
3616 | CC=$ac_ct_CC | ||
3617 | fi | ||
3618 | else | ||
3619 | CC="$ac_cv_prog_CC" | ||
3620 | fi | ||
3621 | |||
3622 | if test -z "$CC"; then | ||
3623 | if test -n "$ac_tool_prefix"; then | ||
3624 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
3625 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
3626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3627 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3628 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
3629 | $as_echo_n "(cached) " >&6 | ||
3630 | else | ||
3631 | if test -n "$CC"; then | ||
3632 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
3633 | else | ||
3634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3635 | for as_dir in $PATH | ||
3636 | do | ||
3637 | IFS=$as_save_IFS | ||
3638 | test -z "$as_dir" && as_dir=. | ||
3639 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3640 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3641 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
3642 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3643 | break 2 | ||
3644 | fi | ||
3645 | done | ||
3646 | done | ||
3647 | IFS=$as_save_IFS | ||
3648 | |||
3649 | fi | ||
3650 | fi | ||
3651 | CC=$ac_cv_prog_CC | ||
3652 | if test -n "$CC"; then | ||
3653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
3654 | $as_echo "$CC" >&6; } | ||
3655 | else | ||
3656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3657 | $as_echo "no" >&6; } | ||
3658 | fi | ||
3659 | |||
3660 | |||
3661 | fi | ||
3662 | fi | ||
3663 | if test -z "$CC"; then | ||
3664 | # Extract the first word of "cc", so it can be a program name with args. | ||
3665 | set dummy cc; ac_word=$2 | ||
3666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3667 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3668 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
3669 | $as_echo_n "(cached) " >&6 | ||
3670 | else | ||
3671 | if test -n "$CC"; then | ||
3672 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
3673 | else | ||
3674 | ac_prog_rejected=no | ||
3675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3676 | for as_dir in $PATH | ||
3677 | do | ||
3678 | IFS=$as_save_IFS | ||
3679 | test -z "$as_dir" && as_dir=. | ||
3680 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3681 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3682 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
3683 | ac_prog_rejected=yes | ||
3684 | continue | ||
3685 | fi | ||
3686 | ac_cv_prog_CC="cc" | ||
3687 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3688 | break 2 | ||
3689 | fi | ||
3690 | done | ||
3691 | done | ||
3692 | IFS=$as_save_IFS | ||
3693 | |||
3694 | if test $ac_prog_rejected = yes; then | ||
3695 | # We found a bogon in the path, so make sure we never use it. | ||
3696 | set dummy $ac_cv_prog_CC | ||
3697 | shift | ||
3698 | if test $# != 0; then | ||
3699 | # We chose a different compiler from the bogus one. | ||
3700 | # However, it has the same basename, so the bogon will be chosen | ||
3701 | # first if we set CC to just the basename; use the full file name. | ||
3702 | shift | ||
3703 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
3704 | fi | ||
3705 | fi | ||
3706 | fi | ||
3707 | fi | ||
3708 | CC=$ac_cv_prog_CC | ||
3709 | if test -n "$CC"; then | ||
3710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
3711 | $as_echo "$CC" >&6; } | ||
3712 | else | ||
3713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3714 | $as_echo "no" >&6; } | ||
3715 | fi | ||
3716 | |||
3717 | |||
3718 | fi | ||
3719 | if test -z "$CC"; then | ||
3720 | if test -n "$ac_tool_prefix"; then | ||
3721 | for ac_prog in cl.exe | ||
3722 | do | ||
3723 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
3724 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
3725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3726 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3727 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
3728 | $as_echo_n "(cached) " >&6 | ||
3729 | else | ||
3730 | if test -n "$CC"; then | ||
3731 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
3732 | else | ||
3733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3734 | for as_dir in $PATH | ||
3735 | do | ||
3736 | IFS=$as_save_IFS | ||
3737 | test -z "$as_dir" && as_dir=. | ||
3738 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3739 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3740 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
3741 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3742 | break 2 | ||
3743 | fi | ||
3744 | done | ||
3745 | done | ||
3746 | IFS=$as_save_IFS | ||
3747 | |||
3748 | fi | ||
3749 | fi | ||
3750 | CC=$ac_cv_prog_CC | ||
3751 | if test -n "$CC"; then | ||
3752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
3753 | $as_echo "$CC" >&6; } | ||
3754 | else | ||
3755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3756 | $as_echo "no" >&6; } | ||
3757 | fi | ||
3758 | |||
3759 | |||
3760 | test -n "$CC" && break | ||
3761 | done | ||
3762 | fi | ||
3763 | if test -z "$CC"; then | ||
3764 | ac_ct_CC=$CC | ||
3765 | for ac_prog in cl.exe | ||
3766 | do | ||
3767 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3768 | set dummy $ac_prog; ac_word=$2 | ||
3769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3770 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3771 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
3772 | $as_echo_n "(cached) " >&6 | ||
3773 | else | ||
3774 | if test -n "$ac_ct_CC"; then | ||
3775 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
3776 | else | ||
3777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3778 | for as_dir in $PATH | ||
3779 | do | ||
3780 | IFS=$as_save_IFS | ||
3781 | test -z "$as_dir" && as_dir=. | ||
3782 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3783 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3784 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
3785 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3786 | break 2 | ||
3787 | fi | ||
3788 | done | ||
3789 | done | ||
3790 | IFS=$as_save_IFS | ||
3791 | |||
3792 | fi | ||
3793 | fi | ||
3794 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
3795 | if test -n "$ac_ct_CC"; then | ||
3796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
3797 | $as_echo "$ac_ct_CC" >&6; } | ||
3798 | else | ||
3799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3800 | $as_echo "no" >&6; } | ||
3801 | fi | ||
3802 | |||
3803 | |||
3804 | test -n "$ac_ct_CC" && break | ||
3805 | done | ||
3806 | |||
3807 | if test "x$ac_ct_CC" = x; then | ||
3808 | CC="" | ||
3809 | else | ||
3810 | case $cross_compiling:$ac_tool_warned in | ||
3811 | yes:) | ||
3812 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3813 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3814 | ac_tool_warned=yes ;; | ||
3815 | esac | ||
3816 | CC=$ac_ct_CC | ||
3817 | fi | ||
3818 | fi | ||
3819 | |||
3820 | fi | ||
3821 | |||
3822 | |||
3823 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3824 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3825 | as_fn_error $? "no acceptable C compiler found in \$PATH | ||
3826 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
3827 | |||
3828 | # Provide some information about the compiler. | ||
3829 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
3830 | set X $ac_compile | ||
3831 | ac_compiler=$2 | ||
3832 | for ac_option in --version -v -V -qversion; do | ||
3833 | { { ac_try="$ac_compiler $ac_option >&5" | ||
3834 | case "(($ac_try" in | ||
3835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3836 | *) ac_try_echo=$ac_try;; | ||
3837 | esac | ||
3838 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3839 | $as_echo "$ac_try_echo"; } >&5 | ||
3840 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
3841 | ac_status=$? | ||
3842 | if test -s conftest.err; then | ||
3843 | sed '10a\ | ||
3844 | ... rest of stderr output deleted ... | ||
3845 | 10q' conftest.err >conftest.er1 | ||
3846 | cat conftest.er1 >&5 | ||
3847 | fi | ||
3848 | rm -f conftest.er1 conftest.err | ||
3849 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3850 | test $ac_status = 0; } | ||
3851 | done | ||
3852 | |||
3853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3854 | /* end confdefs.h. */ | ||
3855 | |||
3856 | int | ||
3857 | main () | ||
3858 | { | ||
3859 | |||
3860 | ; | ||
3861 | return 0; | ||
3862 | } | ||
3863 | _ACEOF | ||
3864 | ac_clean_files_save=$ac_clean_files | ||
3865 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | ||
3866 | # Try to create an executable without -o first, disregard a.out. | ||
3867 | # It will help us diagnose broken compilers, and finding out an intuition | ||
3868 | # of exeext. | ||
3869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | ||
3870 | $as_echo_n "checking whether the C compiler works... " >&6; } | ||
3871 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
3872 | |||
3873 | # The possible output files: | ||
3874 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | ||
3875 | |||
3876 | ac_rmfiles= | ||
3877 | for ac_file in $ac_files | ||
3878 | do | ||
3879 | case $ac_file in | ||
3880 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
3881 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
3882 | esac | ||
3883 | done | ||
3884 | rm -f $ac_rmfiles | ||
3885 | |||
3886 | if { { ac_try="$ac_link_default" | ||
3887 | case "(($ac_try" in | ||
3888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3889 | *) ac_try_echo=$ac_try;; | ||
3890 | esac | ||
3891 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3892 | $as_echo "$ac_try_echo"; } >&5 | ||
3893 | (eval "$ac_link_default") 2>&5 | ||
3894 | ac_status=$? | ||
3895 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3896 | test $ac_status = 0; }; then : | ||
3897 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
3898 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
3899 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
3900 | # so that the user can short-circuit this test for compilers unknown to | ||
3901 | # Autoconf. | ||
3902 | for ac_file in $ac_files '' | ||
3903 | do | ||
3904 | test -f "$ac_file" || continue | ||
3905 | case $ac_file in | ||
3906 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | ||
3907 | ;; | ||
3908 | [ab].out ) | ||
3909 | # We found the default executable, but exeext='' is most | ||
3910 | # certainly right. | ||
3911 | break;; | ||
3912 | *.* ) | ||
3913 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
3914 | then :; else | ||
3915 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
3916 | fi | ||
3917 | # We set ac_cv_exeext here because the later test for it is not | ||
3918 | # safe: cross compilers may not add the suffix if given an `-o' | ||
3919 | # argument, so we may need to know it at that point already. | ||
3920 | # Even if this section looks crufty: it has the advantage of | ||
3921 | # actually working. | ||
3922 | break;; | ||
3923 | * ) | ||
3924 | break;; | ||
3925 | esac | ||
3926 | done | ||
3927 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
3928 | |||
3929 | else | ||
3930 | ac_file='' | ||
3931 | fi | ||
3932 | if test -z "$ac_file"; then : | ||
3933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3934 | $as_echo "no" >&6; } | ||
3935 | $as_echo "$as_me: failed program was:" >&5 | ||
3936 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3937 | |||
3938 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3939 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3940 | as_fn_error 77 "C compiler cannot create executables | ||
3941 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
3942 | else | ||
3943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
3944 | $as_echo "yes" >&6; } | ||
3945 | fi | ||
3946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | ||
3947 | $as_echo_n "checking for C compiler default output file name... " >&6; } | ||
3948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | ||
3949 | $as_echo "$ac_file" >&6; } | ||
3950 | ac_exeext=$ac_cv_exeext | ||
3951 | |||
3952 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | ||
3953 | ac_clean_files=$ac_clean_files_save | ||
3954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | ||
3955 | $as_echo_n "checking for suffix of executables... " >&6; } | ||
3956 | if { { ac_try="$ac_link" | ||
3957 | case "(($ac_try" in | ||
3958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3959 | *) ac_try_echo=$ac_try;; | ||
3960 | esac | ||
3961 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3962 | $as_echo "$ac_try_echo"; } >&5 | ||
3963 | (eval "$ac_link") 2>&5 | ||
3964 | ac_status=$? | ||
3965 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3966 | test $ac_status = 0; }; then : | ||
3967 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
3968 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
3969 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
3970 | # `rm'. | ||
3971 | for ac_file in conftest.exe conftest conftest.*; do | ||
3972 | test -f "$ac_file" || continue | ||
3973 | case $ac_file in | ||
3974 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
3975 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
3976 | break;; | ||
3977 | * ) break;; | ||
3978 | esac | ||
3979 | done | ||
3980 | else | ||
3981 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3982 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3983 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | ||
3984 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
3985 | fi | ||
3986 | rm -f conftest conftest$ac_cv_exeext | ||
3987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | ||
3988 | $as_echo "$ac_cv_exeext" >&6; } | ||
3989 | |||
3990 | rm -f conftest.$ac_ext | ||
3991 | EXEEXT=$ac_cv_exeext | ||
3992 | ac_exeext=$EXEEXT | ||
3993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3994 | /* end confdefs.h. */ | ||
3995 | #include <stdio.h> | ||
3996 | int | ||
3997 | main () | ||
3998 | { | ||
3999 | FILE *f = fopen ("conftest.out", "w"); | ||
4000 | return ferror (f) || fclose (f) != 0; | ||
4001 | |||
4002 | ; | ||
4003 | return 0; | ||
4004 | } | ||
4005 | _ACEOF | ||
4006 | ac_clean_files="$ac_clean_files conftest.out" | ||
4007 | # Check that the compiler produces executables we can run. If not, either | ||
4008 | # the compiler is broken, or we cross compile. | ||
4009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | ||
4010 | $as_echo_n "checking whether we are cross compiling... " >&6; } | ||
4011 | if test "$cross_compiling" != yes; then | ||
4012 | { { ac_try="$ac_link" | ||
4013 | case "(($ac_try" in | ||
4014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4015 | *) ac_try_echo=$ac_try;; | ||
4016 | esac | ||
4017 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4018 | $as_echo "$ac_try_echo"; } >&5 | ||
4019 | (eval "$ac_link") 2>&5 | ||
4020 | ac_status=$? | ||
4021 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4022 | test $ac_status = 0; } | ||
4023 | if { ac_try='./conftest$ac_cv_exeext' | ||
4024 | { { case "(($ac_try" in | ||
4025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4026 | *) ac_try_echo=$ac_try;; | ||
4027 | esac | ||
4028 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4029 | $as_echo "$ac_try_echo"; } >&5 | ||
4030 | (eval "$ac_try") 2>&5 | ||
4031 | ac_status=$? | ||
4032 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4033 | test $ac_status = 0; }; }; then | ||
4034 | cross_compiling=no | ||
4035 | else | ||
4036 | if test "$cross_compiling" = maybe; then | ||
4037 | cross_compiling=yes | ||
4038 | else | ||
4039 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4040 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4041 | as_fn_error $? "cannot run C compiled programs. | ||
4042 | If you meant to cross compile, use \`--host'. | ||
4043 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4044 | fi | ||
4045 | fi | ||
4046 | fi | ||
4047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | ||
4048 | $as_echo "$cross_compiling" >&6; } | ||
4049 | |||
4050 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | ||
4051 | ac_clean_files=$ac_clean_files_save | ||
4052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | ||
4053 | $as_echo_n "checking for suffix of object files... " >&6; } | ||
4054 | if test "${ac_cv_objext+set}" = set; then : | ||
4055 | $as_echo_n "(cached) " >&6 | ||
4056 | else | ||
4057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4058 | /* end confdefs.h. */ | ||
4059 | |||
4060 | int | ||
4061 | main () | ||
4062 | { | ||
4063 | |||
4064 | ; | ||
4065 | return 0; | ||
4066 | } | ||
4067 | _ACEOF | ||
4068 | rm -f conftest.o conftest.obj | ||
4069 | if { { ac_try="$ac_compile" | ||
4070 | case "(($ac_try" in | ||
4071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4072 | *) ac_try_echo=$ac_try;; | ||
4073 | esac | ||
4074 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4075 | $as_echo "$ac_try_echo"; } >&5 | ||
4076 | (eval "$ac_compile") 2>&5 | ||
4077 | ac_status=$? | ||
4078 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4079 | test $ac_status = 0; }; then : | ||
4080 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
4081 | test -f "$ac_file" || continue; | ||
4082 | case $ac_file in | ||
4083 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | ||
4084 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
4085 | break;; | ||
4086 | esac | ||
4087 | done | ||
4088 | else | ||
4089 | $as_echo "$as_me: failed program was:" >&5 | ||
4090 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4091 | |||
4092 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4093 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4094 | as_fn_error $? "cannot compute suffix of object files: cannot compile | ||
4095 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4096 | fi | ||
4097 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
4098 | fi | ||
4099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | ||
4100 | $as_echo "$ac_cv_objext" >&6; } | ||
4101 | OBJEXT=$ac_cv_objext | ||
4102 | ac_objext=$OBJEXT | ||
4103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | ||
4104 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
4105 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | ||
4106 | $as_echo_n "(cached) " >&6 | ||
4107 | else | ||
4108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4109 | /* end confdefs.h. */ | ||
4110 | |||
4111 | int | ||
4112 | main () | ||
4113 | { | ||
4114 | #ifndef __GNUC__ | ||
4115 | choke me | ||
4116 | #endif | ||
4117 | |||
4118 | ; | ||
4119 | return 0; | ||
4120 | } | ||
4121 | _ACEOF | ||
4122 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4123 | ac_compiler_gnu=yes | ||
4124 | else | ||
4125 | ac_compiler_gnu=no | ||
4126 | fi | ||
4127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4128 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
4129 | |||
4130 | fi | ||
4131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
4132 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
4133 | if test $ac_compiler_gnu = yes; then | ||
4134 | GCC=yes | ||
4135 | else | ||
4136 | GCC= | ||
4137 | fi | ||
4138 | ac_test_CFLAGS=${CFLAGS+set} | ||
4139 | ac_save_CFLAGS=$CFLAGS | ||
4140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
4141 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
4142 | if test "${ac_cv_prog_cc_g+set}" = set; then : | ||
4143 | $as_echo_n "(cached) " >&6 | ||
4144 | else | ||
4145 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
4146 | ac_c_werror_flag=yes | ||
4147 | ac_cv_prog_cc_g=no | ||
4148 | CFLAGS="-g" | ||
4149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4150 | /* end confdefs.h. */ | ||
4151 | |||
4152 | int | ||
4153 | main () | ||
4154 | { | ||
4155 | |||
4156 | ; | ||
4157 | return 0; | ||
4158 | } | ||
4159 | _ACEOF | ||
4160 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4161 | ac_cv_prog_cc_g=yes | ||
4162 | else | ||
4163 | CFLAGS="" | ||
4164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4165 | /* end confdefs.h. */ | ||
4166 | |||
4167 | int | ||
4168 | main () | ||
4169 | { | ||
4170 | |||
4171 | ; | ||
4172 | return 0; | ||
4173 | } | ||
4174 | _ACEOF | ||
4175 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4176 | |||
4177 | else | ||
4178 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
4179 | CFLAGS="-g" | ||
4180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4181 | /* end confdefs.h. */ | ||
4182 | |||
4183 | int | ||
4184 | main () | ||
4185 | { | ||
4186 | |||
4187 | ; | ||
4188 | return 0; | ||
4189 | } | ||
4190 | _ACEOF | ||
4191 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4192 | ac_cv_prog_cc_g=yes | ||
4193 | fi | ||
4194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4195 | fi | ||
4196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4197 | fi | ||
4198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4199 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
4200 | fi | ||
4201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
4202 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
4203 | if test "$ac_test_CFLAGS" = set; then | ||
4204 | CFLAGS=$ac_save_CFLAGS | ||
4205 | elif test $ac_cv_prog_cc_g = yes; then | ||
4206 | if test "$GCC" = yes; then | ||
4207 | CFLAGS="-g -O2" | ||
4208 | else | ||
4209 | CFLAGS="-g" | ||
4210 | fi | ||
4211 | else | ||
4212 | if test "$GCC" = yes; then | ||
4213 | CFLAGS="-O2" | ||
4214 | else | ||
4215 | CFLAGS= | ||
4216 | fi | ||
4217 | fi | ||
4218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
4219 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
4220 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
4221 | $as_echo_n "(cached) " >&6 | ||
4222 | else | ||
4223 | ac_cv_prog_cc_c89=no | ||
4224 | ac_save_CC=$CC | ||
4225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4226 | /* end confdefs.h. */ | ||
4227 | #include <stdarg.h> | ||
4228 | #include <stdio.h> | ||
4229 | #include <sys/types.h> | ||
4230 | #include <sys/stat.h> | ||
4231 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
4232 | struct buf { int x; }; | ||
4233 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
4234 | static char *e (p, i) | ||
4235 | char **p; | ||
4236 | int i; | ||
4237 | { | ||
4238 | return p[i]; | ||
4239 | } | ||
4240 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
4241 | { | ||
4242 | char *s; | ||
4243 | va_list v; | ||
4244 | va_start (v,p); | ||
4245 | s = g (p, va_arg (v,int)); | ||
4246 | va_end (v); | ||
4247 | return s; | ||
4248 | } | ||
4249 | |||
4250 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
4251 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
4252 | These don't provoke an error unfortunately, instead are silently treated | ||
4253 | as 'x'. The following induces an error, until -std is added to get | ||
4254 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
4255 | array size at least. It's necessary to write '\x00'==0 to get something | ||
4256 | that's true only with -std. */ | ||
4257 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
4258 | |||
4259 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
4260 | inside strings and character constants. */ | ||
4261 | #define FOO(x) 'x' | ||
4262 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
4263 | |||
4264 | int test (int i, double x); | ||
4265 | struct s1 {int (*f) (int a);}; | ||
4266 | struct s2 {int (*f) (double a);}; | ||
4267 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
4268 | int argc; | ||
4269 | char **argv; | ||
4270 | int | ||
4271 | main () | ||
4272 | { | ||
4273 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
4274 | ; | ||
4275 | return 0; | ||
4276 | } | ||
4277 | _ACEOF | ||
4278 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
4279 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
4280 | do | ||
4281 | CC="$ac_save_CC $ac_arg" | ||
4282 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4283 | ac_cv_prog_cc_c89=$ac_arg | ||
4284 | fi | ||
4285 | rm -f core conftest.err conftest.$ac_objext | ||
4286 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
4287 | done | ||
4288 | rm -f conftest.$ac_ext | ||
4289 | CC=$ac_save_CC | ||
4290 | |||
4291 | fi | ||
4292 | # AC_CACHE_VAL | ||
4293 | case "x$ac_cv_prog_cc_c89" in | ||
4294 | x) | ||
4295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
4296 | $as_echo "none needed" >&6; } ;; | ||
4297 | xno) | ||
4298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
4299 | $as_echo "unsupported" >&6; } ;; | ||
4300 | *) | ||
4301 | CC="$CC $ac_cv_prog_cc_c89" | ||
4302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
4303 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
4304 | esac | ||
4305 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
4306 | |||
4307 | fi | ||
4308 | |||
4309 | ac_ext=c | ||
4310 | ac_cpp='$CPP $CPPFLAGS' | ||
4311 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4312 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4313 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4314 | |||
4315 | depcc="$CC" am_compiler_list= | ||
4316 | |||
4317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
4318 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
4319 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | ||
4320 | $as_echo_n "(cached) " >&6 | ||
4321 | else | ||
4322 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
4323 | # We make a subdir and do the tests there. Otherwise we can end up | ||
4324 | # making bogus files that we don't know about and never remove. For | ||
4325 | # instance it was reported that on HP-UX the gcc test will end up | ||
4326 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
4327 | # in D'. | ||
4328 | mkdir conftest.dir | ||
4329 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
4330 | # using a relative directory. | ||
4331 | cp "$am_depcomp" conftest.dir | ||
4332 | cd conftest.dir | ||
4333 | # We will build objects and dependencies in a subdirectory because | ||
4334 | # it helps to detect inapplicable dependency modes. For instance | ||
4335 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
4336 | # side effect of compilation, but ICC will put the dependencies in | ||
4337 | # the current directory while Tru64 will put them in the object | ||
4338 | # directory. | ||
4339 | mkdir sub | ||
4340 | |||
4341 | am_cv_CC_dependencies_compiler_type=none | ||
4342 | if test "$am_compiler_list" = ""; then | ||
4343 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
4344 | fi | ||
4345 | am__universal=false | ||
4346 | case " $depcc " in #( | ||
4347 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
4348 | esac | ||
4349 | |||
4350 | for depmode in $am_compiler_list; do | ||
4351 | # Setup a source with many dependencies, because some compilers | ||
4352 | # like to wrap large dependency lists on column 80 (with \), and | ||
4353 | # we should not choose a depcomp mode which is confused by this. | ||
4354 | # | ||
4355 | # We need to recreate these files for each test, as the compiler may | ||
4356 | # overwrite some of them when testing with obscure command lines. | ||
4357 | # This happens at least with the AIX C compiler. | ||
4358 | : > sub/conftest.c | ||
4359 | for i in 1 2 3 4 5 6; do | ||
4360 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
4361 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
4362 | # Solaris 8's {/usr,}/bin/sh. | ||
4363 | touch sub/conftst$i.h | ||
4364 | done | ||
4365 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
4366 | |||
4367 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
4368 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
4369 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
4370 | # versions had trouble with output in subdirs | ||
4371 | am__obj=sub/conftest.${OBJEXT-o} | ||
4372 | am__minus_obj="-o $am__obj" | ||
4373 | case $depmode in | ||
4374 | gcc) | ||
4375 | # This depmode causes a compiler race in universal mode. | ||
4376 | test "$am__universal" = false || continue | ||
4377 | ;; | ||
4378 | nosideeffect) | ||
4379 | # after this tag, mechanisms are not by side-effect, so they'll | ||
4380 | # only be used when explicitly requested | ||
4381 | if test "x$enable_dependency_tracking" = xyes; then | ||
4382 | continue | ||
4383 | else | ||
4384 | break | ||
4385 | fi | ||
4386 | ;; | ||
4387 | msvisualcpp | msvcmsys) | ||
4388 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
4389 | # not run yet. These depmodes are late enough in the game, and | ||
4390 | # so weak that their functioning should not be impacted. | ||
4391 | am__obj=conftest.${OBJEXT-o} | ||
4392 | am__minus_obj= | ||
4393 | ;; | ||
4394 | none) break ;; | ||
4395 | esac | ||
4396 | if depmode=$depmode \ | ||
4397 | source=sub/conftest.c object=$am__obj \ | ||
4398 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
4399 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
4400 | >/dev/null 2>conftest.err && | ||
4401 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
4402 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
4403 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
4404 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
4405 | # icc doesn't choke on unknown options, it will just issue warnings | ||
4406 | # or remarks (even with -Werror). So we grep stderr for any message | ||
4407 | # that says an option was ignored or not supported. | ||
4408 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
4409 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
4410 | # The diagnosis changed in icc 8.0: | ||
4411 | # icc: Command line remark: option '-MP' not supported | ||
4412 | if (grep 'ignoring option' conftest.err || | ||
4413 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
4414 | am_cv_CC_dependencies_compiler_type=$depmode | ||
4415 | break | ||
4416 | fi | ||
4417 | fi | ||
4418 | done | ||
4419 | |||
4420 | cd .. | ||
4421 | rm -rf conftest.dir | ||
4422 | else | ||
4423 | am_cv_CC_dependencies_compiler_type=none | ||
4424 | fi | ||
4425 | |||
4426 | fi | ||
4427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | ||
4428 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | ||
4429 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
4430 | |||
4431 | if | ||
4432 | test "x$enable_dependency_tracking" != xno \ | ||
4433 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
4434 | am__fastdepCC_TRUE= | ||
4435 | am__fastdepCC_FALSE='#' | ||
4436 | else | ||
4437 | am__fastdepCC_TRUE='#' | ||
4438 | am__fastdepCC_FALSE= | ||
4439 | fi | ||
4440 | |||
4441 | |||
4442 | |||
4443 | ac_ext=c | ||
4444 | ac_cpp='$CPP $CPPFLAGS' | ||
4445 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4446 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4447 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||
4449 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||
4450 | # On Suns, sometimes $CPP names a directory. | ||
4451 | if test -n "$CPP" && test -d "$CPP"; then | ||
4452 | CPP= | ||
4453 | fi | ||
4454 | if test -z "$CPP"; then | ||
4455 | if test "${ac_cv_prog_CPP+set}" = set; then : | ||
4456 | $as_echo_n "(cached) " >&6 | ||
4457 | else | ||
4458 | # Double quotes because CPP needs to be expanded | ||
4459 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
4460 | do | ||
4461 | ac_preproc_ok=false | ||
4462 | for ac_c_preproc_warn_flag in '' yes | ||
4463 | do | ||
4464 | # Use a header file that comes with gcc, so configuring glibc | ||
4465 | # with a fresh cross-compiler works. | ||
4466 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4467 | # <limits.h> exists even on freestanding compilers. | ||
4468 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
4469 | # not just through cpp. "Syntax error" is here to catch this case. | ||
4470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4471 | /* end confdefs.h. */ | ||
4472 | #ifdef __STDC__ | ||
4473 | # include <limits.h> | ||
4474 | #else | ||
4475 | # include <assert.h> | ||
4476 | #endif | ||
4477 | Syntax error | ||
4478 | _ACEOF | ||
4479 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4480 | |||
4481 | else | ||
4482 | # Broken: fails on valid input. | ||
4483 | continue | ||
4484 | fi | ||
4485 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4486 | |||
4487 | # OK, works on sane cases. Now check whether nonexistent headers | ||
4488 | # can be detected and how. | ||
4489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4490 | /* end confdefs.h. */ | ||
4491 | #include <ac_nonexistent.h> | ||
4492 | _ACEOF | ||
4493 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4494 | # Broken: success on invalid input. | ||
4495 | continue | ||
4496 | else | ||
4497 | # Passes both tests. | ||
4498 | ac_preproc_ok=: | ||
4499 | break | ||
4500 | fi | ||
4501 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4502 | |||
4503 | done | ||
4504 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
4505 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
4506 | if $ac_preproc_ok; then : | ||
4507 | break | ||
4508 | fi | ||
4509 | |||
4510 | done | ||
4511 | ac_cv_prog_CPP=$CPP | ||
4512 | |||
4513 | fi | ||
4514 | CPP=$ac_cv_prog_CPP | ||
4515 | else | ||
4516 | ac_cv_prog_CPP=$CPP | ||
4517 | fi | ||
4518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||
4519 | $as_echo "$CPP" >&6; } | ||
4520 | ac_preproc_ok=false | ||
4521 | for ac_c_preproc_warn_flag in '' yes | ||
4522 | do | ||
4523 | # Use a header file that comes with gcc, so configuring glibc | ||
4524 | # with a fresh cross-compiler works. | ||
4525 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4526 | # <limits.h> exists even on freestanding compilers. | ||
4527 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
4528 | # not just through cpp. "Syntax error" is here to catch this case. | ||
4529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4530 | /* end confdefs.h. */ | ||
4531 | #ifdef __STDC__ | ||
4532 | # include <limits.h> | ||
4533 | #else | ||
4534 | # include <assert.h> | ||
4535 | #endif | ||
4536 | Syntax error | ||
4537 | _ACEOF | ||
4538 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4539 | |||
4540 | else | ||
4541 | # Broken: fails on valid input. | ||
4542 | continue | ||
4543 | fi | ||
4544 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4545 | |||
4546 | # OK, works on sane cases. Now check whether nonexistent headers | ||
4547 | # can be detected and how. | ||
4548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4549 | /* end confdefs.h. */ | ||
4550 | #include <ac_nonexistent.h> | ||
4551 | _ACEOF | ||
4552 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4553 | # Broken: success on invalid input. | ||
4554 | continue | ||
4555 | else | ||
4556 | # Passes both tests. | ||
4557 | ac_preproc_ok=: | ||
4558 | break | ||
4559 | fi | ||
4560 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4561 | |||
4562 | done | ||
4563 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
4564 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
4565 | if $ac_preproc_ok; then : | ||
4566 | |||
4567 | else | ||
4568 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4569 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4570 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | ||
4571 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4572 | fi | ||
4573 | |||
4574 | ac_ext=c | ||
4575 | ac_cpp='$CPP $CPPFLAGS' | ||
4576 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4577 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4578 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4579 | |||
4580 | |||
4581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | ||
4582 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | ||
4583 | if test "${ac_cv_path_GREP+set}" = set; then : | ||
4584 | $as_echo_n "(cached) " >&6 | ||
4585 | else | ||
4586 | if test -z "$GREP"; then | ||
4587 | ac_path_GREP_found=false | ||
4588 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4590 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4591 | do | ||
4592 | IFS=$as_save_IFS | ||
4593 | test -z "$as_dir" && as_dir=. | ||
4594 | for ac_prog in grep ggrep; do | ||
4595 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4596 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4597 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | ||
4598 | # Check for GNU ac_path_GREP and select it if it is found. | ||
4599 | # Check for GNU $ac_path_GREP | ||
4600 | case `"$ac_path_GREP" --version 2>&1` in | ||
4601 | *GNU*) | ||
4602 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
4603 | *) | ||
4604 | ac_count=0 | ||
4605 | $as_echo_n 0123456789 >"conftest.in" | ||
4606 | while : | ||
4607 | do | ||
4608 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4609 | mv "conftest.tmp" "conftest.in" | ||
4610 | cp "conftest.in" "conftest.nl" | ||
4611 | $as_echo 'GREP' >> "conftest.nl" | ||
4612 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4613 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4614 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
4615 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
4616 | # Best one so far, save it but keep looking for a better one | ||
4617 | ac_cv_path_GREP="$ac_path_GREP" | ||
4618 | ac_path_GREP_max=$ac_count | ||
4619 | fi | ||
4620 | # 10*(2^10) chars as input seems more than enough | ||
4621 | test $ac_count -gt 10 && break | ||
4622 | done | ||
4623 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4624 | esac | ||
4625 | |||
4626 | $ac_path_GREP_found && break 3 | ||
4627 | done | ||
4628 | done | ||
4629 | done | ||
4630 | IFS=$as_save_IFS | ||
4631 | if test -z "$ac_cv_path_GREP"; then | ||
4632 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
4633 | fi | ||
4634 | else | ||
4635 | ac_cv_path_GREP=$GREP | ||
4636 | fi | ||
4637 | |||
4638 | fi | ||
4639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | ||
4640 | $as_echo "$ac_cv_path_GREP" >&6; } | ||
4641 | GREP="$ac_cv_path_GREP" | ||
4642 | |||
4643 | |||
4644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | ||
4645 | $as_echo_n "checking for egrep... " >&6; } | ||
4646 | if test "${ac_cv_path_EGREP+set}" = set; then : | ||
4647 | $as_echo_n "(cached) " >&6 | ||
4648 | else | ||
4649 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
4650 | then ac_cv_path_EGREP="$GREP -E" | ||
4651 | else | ||
4652 | if test -z "$EGREP"; then | ||
4653 | ac_path_EGREP_found=false | ||
4654 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4656 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4657 | do | ||
4658 | IFS=$as_save_IFS | ||
4659 | test -z "$as_dir" && as_dir=. | ||
4660 | for ac_prog in egrep; do | ||
4661 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4662 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4663 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
4664 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
4665 | # Check for GNU $ac_path_EGREP | ||
4666 | case `"$ac_path_EGREP" --version 2>&1` in | ||
4667 | *GNU*) | ||
4668 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
4669 | *) | ||
4670 | ac_count=0 | ||
4671 | $as_echo_n 0123456789 >"conftest.in" | ||
4672 | while : | ||
4673 | do | ||
4674 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4675 | mv "conftest.tmp" "conftest.in" | ||
4676 | cp "conftest.in" "conftest.nl" | ||
4677 | $as_echo 'EGREP' >> "conftest.nl" | ||
4678 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4679 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4680 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
4681 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
4682 | # Best one so far, save it but keep looking for a better one | ||
4683 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
4684 | ac_path_EGREP_max=$ac_count | ||
4685 | fi | ||
4686 | # 10*(2^10) chars as input seems more than enough | ||
4687 | test $ac_count -gt 10 && break | ||
4688 | done | ||
4689 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4690 | esac | ||
4691 | |||
4692 | $ac_path_EGREP_found && break 3 | ||
4693 | done | ||
4694 | done | ||
4695 | done | ||
4696 | IFS=$as_save_IFS | ||
4697 | if test -z "$ac_cv_path_EGREP"; then | ||
4698 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
4699 | fi | ||
4700 | else | ||
4701 | ac_cv_path_EGREP=$EGREP | ||
4702 | fi | ||
4703 | |||
4704 | fi | ||
4705 | fi | ||
4706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | ||
4707 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||
4708 | EGREP="$ac_cv_path_EGREP" | ||
4709 | |||
4710 | |||
4711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | ||
4712 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||
4713 | if test "${ac_cv_header_stdc+set}" = set; then : | ||
4714 | $as_echo_n "(cached) " >&6 | ||
4715 | else | ||
4716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4717 | /* end confdefs.h. */ | ||
4718 | #include <stdlib.h> | ||
4719 | #include <stdarg.h> | ||
4720 | #include <string.h> | ||
4721 | #include <float.h> | ||
4722 | |||
4723 | int | ||
4724 | main () | ||
4725 | { | ||
4726 | |||
4727 | ; | ||
4728 | return 0; | ||
4729 | } | ||
4730 | _ACEOF | ||
4731 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4732 | ac_cv_header_stdc=yes | ||
4733 | else | ||
4734 | ac_cv_header_stdc=no | ||
4735 | fi | ||
4736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4737 | |||
4738 | if test $ac_cv_header_stdc = yes; then | ||
4739 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
4740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4741 | /* end confdefs.h. */ | ||
4742 | #include <string.h> | ||
4743 | |||
4744 | _ACEOF | ||
4745 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
4746 | $EGREP "memchr" >/dev/null 2>&1; then : | ||
4747 | |||
4748 | else | ||
4749 | ac_cv_header_stdc=no | ||
4750 | fi | ||
4751 | rm -f conftest* | ||
4752 | |||
4753 | fi | ||
4754 | |||
4755 | if test $ac_cv_header_stdc = yes; then | ||
4756 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
4757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4758 | /* end confdefs.h. */ | ||
4759 | #include <stdlib.h> | ||
4760 | |||
4761 | _ACEOF | ||
4762 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
4763 | $EGREP "free" >/dev/null 2>&1; then : | ||
4764 | |||
4765 | else | ||
4766 | ac_cv_header_stdc=no | ||
4767 | fi | ||
4768 | rm -f conftest* | ||
4769 | |||
4770 | fi | ||
4771 | |||
4772 | if test $ac_cv_header_stdc = yes; then | ||
4773 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
4774 | if test "$cross_compiling" = yes; then : | ||
4775 | : | ||
4776 | else | ||
4777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4778 | /* end confdefs.h. */ | ||
4779 | #include <ctype.h> | ||
4780 | #include <stdlib.h> | ||
4781 | #if ((' ' & 0x0FF) == 0x020) | ||
4782 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
4783 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
4784 | #else | ||
4785 | # define ISLOWER(c) \ | ||
4786 | (('a' <= (c) && (c) <= 'i') \ | ||
4787 | || ('j' <= (c) && (c) <= 'r') \ | ||
4788 | || ('s' <= (c) && (c) <= 'z')) | ||
4789 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
4790 | #endif | ||
4791 | |||
4792 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
4793 | int | ||
4794 | main () | ||
4795 | { | ||
4796 | int i; | ||
4797 | for (i = 0; i < 256; i++) | ||
4798 | if (XOR (islower (i), ISLOWER (i)) | ||
4799 | || toupper (i) != TOUPPER (i)) | ||
4800 | return 2; | ||
4801 | return 0; | ||
4802 | } | ||
4803 | _ACEOF | ||
4804 | if ac_fn_c_try_run "$LINENO"; then : | ||
4805 | |||
4806 | else | ||
4807 | ac_cv_header_stdc=no | ||
4808 | fi | ||
4809 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
4810 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
4811 | fi | ||
4812 | |||
4813 | fi | ||
4814 | fi | ||
4815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||
4816 | $as_echo "$ac_cv_header_stdc" >&6; } | ||
4817 | if test $ac_cv_header_stdc = yes; then | ||
4818 | |||
4819 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||
4820 | |||
4821 | fi | ||
4822 | |||
4823 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
4824 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
4825 | inttypes.h stdint.h unistd.h | ||
4826 | do : | ||
4827 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
4828 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | ||
4829 | " | ||
4830 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
4831 | cat >>confdefs.h <<_ACEOF | ||
4832 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
4833 | _ACEOF | ||
4834 | |||
4835 | fi | ||
4836 | |||
4837 | done | ||
4838 | |||
4839 | |||
4840 | |||
4841 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | ||
4842 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | ||
4843 | MINIX=yes | ||
4844 | else | ||
4845 | MINIX= | ||
4846 | fi | ||
4847 | |||
4848 | |||
4849 | if test "$MINIX" = yes; then | ||
4850 | |||
4851 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | ||
4852 | |||
4853 | |||
4854 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | ||
4855 | |||
4856 | |||
4857 | $as_echo "#define _MINIX 1" >>confdefs.h | ||
4858 | |||
4859 | fi | ||
4860 | |||
4861 | |||
4862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | ||
4863 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | ||
4864 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | ||
4865 | $as_echo_n "(cached) " >&6 | ||
4866 | else | ||
4867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4868 | /* end confdefs.h. */ | ||
4869 | |||
4870 | # define __EXTENSIONS__ 1 | ||
4871 | $ac_includes_default | ||
4872 | int | ||
4873 | main () | ||
4874 | { | ||
4875 | |||
4876 | ; | ||
4877 | return 0; | ||
4878 | } | ||
4879 | _ACEOF | ||
4880 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4881 | ac_cv_safe_to_define___extensions__=yes | ||
4882 | else | ||
4883 | ac_cv_safe_to_define___extensions__=no | ||
4884 | fi | ||
4885 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4886 | fi | ||
4887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | ||
4888 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | ||
4889 | test $ac_cv_safe_to_define___extensions__ = yes && | ||
4890 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | ||
4891 | |||
4892 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | ||
4893 | |||
4894 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | ||
4895 | |||
4896 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | ||
4897 | |||
4898 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | ||
4899 | |||
4900 | |||
4901 | |||
4902 | # Check whether --enable-largefile was given. | ||
4903 | if test "${enable_largefile+set}" = set; then : | ||
4904 | enableval=$enable_largefile; | ||
4905 | fi | ||
4906 | |||
4907 | if test "$enable_largefile" != no; then | ||
4908 | |||
4909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | ||
4910 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | ||
4911 | if test "${ac_cv_sys_largefile_CC+set}" = set; then : | ||
4912 | $as_echo_n "(cached) " >&6 | ||
4913 | else | ||
4914 | ac_cv_sys_largefile_CC=no | ||
4915 | if test "$GCC" != yes; then | ||
4916 | ac_save_CC=$CC | ||
4917 | while :; do | ||
4918 | # IRIX 6.2 and later do not support large files by default, | ||
4919 | # so use the C compiler's -n32 option if that helps. | ||
4920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4921 | /* end confdefs.h. */ | ||
4922 | #include <sys/types.h> | ||
4923 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
4924 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
4925 | since some C++ compilers masquerading as C compilers | ||
4926 | incorrectly reject 9223372036854775807. */ | ||
4927 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
4928 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
4929 | && LARGE_OFF_T % 2147483647 == 1) | ||
4930 | ? 1 : -1]; | ||
4931 | int | ||
4932 | main () | ||
4933 | { | ||
4934 | |||
4935 | ; | ||
4936 | return 0; | ||
4937 | } | ||
4938 | _ACEOF | ||
4939 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4940 | break | ||
4941 | fi | ||
4942 | rm -f core conftest.err conftest.$ac_objext | ||
4943 | CC="$CC -n32" | ||
4944 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4945 | ac_cv_sys_largefile_CC=' -n32'; break | ||
4946 | fi | ||
4947 | rm -f core conftest.err conftest.$ac_objext | ||
4948 | break | ||
4949 | done | ||
4950 | CC=$ac_save_CC | ||
4951 | rm -f conftest.$ac_ext | ||
4952 | fi | ||
4953 | fi | ||
4954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | ||
4955 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | ||
4956 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
4957 | CC=$CC$ac_cv_sys_largefile_CC | ||
4958 | fi | ||
4959 | |||
4960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
4961 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | ||
4962 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then : | ||
4963 | $as_echo_n "(cached) " >&6 | ||
4964 | else | ||
4965 | while :; do | ||
4966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4967 | /* end confdefs.h. */ | ||
4968 | #include <sys/types.h> | ||
4969 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
4970 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
4971 | since some C++ compilers masquerading as C compilers | ||
4972 | incorrectly reject 9223372036854775807. */ | ||
4973 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
4974 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
4975 | && LARGE_OFF_T % 2147483647 == 1) | ||
4976 | ? 1 : -1]; | ||
4977 | int | ||
4978 | main () | ||
4979 | { | ||
4980 | |||
4981 | ; | ||
4982 | return 0; | ||
4983 | } | ||
4984 | _ACEOF | ||
4985 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4986 | ac_cv_sys_file_offset_bits=no; break | ||
4987 | fi | ||
4988 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4990 | /* end confdefs.h. */ | ||
4991 | #define _FILE_OFFSET_BITS 64 | ||
4992 | #include <sys/types.h> | ||
4993 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
4994 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
4995 | since some C++ compilers masquerading as C compilers | ||
4996 | incorrectly reject 9223372036854775807. */ | ||
4997 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
4998 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
4999 | && LARGE_OFF_T % 2147483647 == 1) | ||
5000 | ? 1 : -1]; | ||
5001 | int | ||
5002 | main () | ||
5003 | { | ||
5004 | |||
5005 | ; | ||
5006 | return 0; | ||
5007 | } | ||
5008 | _ACEOF | ||
5009 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5010 | ac_cv_sys_file_offset_bits=64; break | ||
5011 | fi | ||
5012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5013 | ac_cv_sys_file_offset_bits=unknown | ||
5014 | break | ||
5015 | done | ||
5016 | fi | ||
5017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | ||
5018 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | ||
5019 | case $ac_cv_sys_file_offset_bits in #( | ||
5020 | no | unknown) ;; | ||
5021 | *) | ||
5022 | cat >>confdefs.h <<_ACEOF | ||
5023 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
5024 | _ACEOF | ||
5025 | ;; | ||
5026 | esac | ||
5027 | rm -rf conftest* | ||
5028 | if test $ac_cv_sys_file_offset_bits = unknown; then | ||
5029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | ||
5030 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | ||
5031 | if test "${ac_cv_sys_large_files+set}" = set; then : | ||
5032 | $as_echo_n "(cached) " >&6 | ||
5033 | else | ||
5034 | while :; do | ||
5035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5036 | /* end confdefs.h. */ | ||
5037 | #include <sys/types.h> | ||
5038 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5039 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5040 | since some C++ compilers masquerading as C compilers | ||
5041 | incorrectly reject 9223372036854775807. */ | ||
5042 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5043 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5044 | && LARGE_OFF_T % 2147483647 == 1) | ||
5045 | ? 1 : -1]; | ||
5046 | int | ||
5047 | main () | ||
5048 | { | ||
5049 | |||
5050 | ; | ||
5051 | return 0; | ||
5052 | } | ||
5053 | _ACEOF | ||
5054 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5055 | ac_cv_sys_large_files=no; break | ||
5056 | fi | ||
5057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5059 | /* end confdefs.h. */ | ||
5060 | #define _LARGE_FILES 1 | ||
5061 | #include <sys/types.h> | ||
5062 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5063 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5064 | since some C++ compilers masquerading as C compilers | ||
5065 | incorrectly reject 9223372036854775807. */ | ||
5066 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5067 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5068 | && LARGE_OFF_T % 2147483647 == 1) | ||
5069 | ? 1 : -1]; | ||
5070 | int | ||
5071 | main () | ||
5072 | { | ||
5073 | |||
5074 | ; | ||
5075 | return 0; | ||
5076 | } | ||
5077 | _ACEOF | ||
5078 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5079 | ac_cv_sys_large_files=1; break | ||
5080 | fi | ||
5081 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5082 | ac_cv_sys_large_files=unknown | ||
5083 | break | ||
5084 | done | ||
5085 | fi | ||
5086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | ||
5087 | $as_echo "$ac_cv_sys_large_files" >&6; } | ||
5088 | case $ac_cv_sys_large_files in #( | ||
5089 | no | unknown) ;; | ||
5090 | *) | ||
5091 | cat >>confdefs.h <<_ACEOF | ||
5092 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
5093 | _ACEOF | ||
5094 | ;; | ||
5095 | esac | ||
5096 | rm -rf conftest* | ||
5097 | fi | ||
5098 | fi | ||
5099 | |||
5100 | |||
5101 | # Make sure we can run config.sub. | ||
5102 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
5103 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | ||
5104 | |||
5105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | ||
5106 | $as_echo_n "checking build system type... " >&6; } | ||
5107 | if test "${ac_cv_build+set}" = set; then : | ||
5108 | $as_echo_n "(cached) " >&6 | ||
5109 | else | ||
5110 | ac_build_alias=$build_alias | ||
5111 | test "x$ac_build_alias" = x && | ||
5112 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
5113 | test "x$ac_build_alias" = x && | ||
5114 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | ||
5115 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
5116 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | ||
5117 | |||
5118 | fi | ||
5119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | ||
5120 | $as_echo "$ac_cv_build" >&6; } | ||
5121 | case $ac_cv_build in | ||
5122 | *-*-*) ;; | ||
5123 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; | ||
5124 | esac | ||
5125 | build=$ac_cv_build | ||
5126 | ac_save_IFS=$IFS; IFS='-' | ||
5127 | set x $ac_cv_build | ||
5128 | shift | ||
5129 | build_cpu=$1 | ||
5130 | build_vendor=$2 | ||
5131 | shift; shift | ||
5132 | # Remember, the first character of IFS is used to create $*, | ||
5133 | # except with old shells: | ||
5134 | build_os=$* | ||
5135 | IFS=$ac_save_IFS | ||
5136 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
5137 | |||
5138 | |||
5139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | ||
5140 | $as_echo_n "checking host system type... " >&6; } | ||
5141 | if test "${ac_cv_host+set}" = set; then : | ||
5142 | $as_echo_n "(cached) " >&6 | ||
5143 | else | ||
5144 | if test "x$host_alias" = x; then | ||
5145 | ac_cv_host=$ac_cv_build | ||
5146 | else | ||
5147 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
5148 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | ||
5149 | fi | ||
5150 | |||
5151 | fi | ||
5152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | ||
5153 | $as_echo "$ac_cv_host" >&6; } | ||
5154 | case $ac_cv_host in | ||
5155 | *-*-*) ;; | ||
5156 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; | ||
5157 | esac | ||
5158 | host=$ac_cv_host | ||
5159 | ac_save_IFS=$IFS; IFS='-' | ||
5160 | set x $ac_cv_host | ||
5161 | shift | ||
5162 | host_cpu=$1 | ||
5163 | host_vendor=$2 | ||
5164 | shift; shift | ||
5165 | # Remember, the first character of IFS is used to create $*, | ||
5166 | # except with old shells: | ||
5167 | host_os=$* | ||
5168 | IFS=$ac_save_IFS | ||
5169 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
5170 | |||
5171 | |||
5172 | enable_win32_dll=yes | ||
5173 | |||
5174 | case $host in | ||
5175 | *-*-cygwin* | *-*-mingw* | *-*-pw32*) | ||
5176 | if test -n "$ac_tool_prefix"; then | ||
5177 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | ||
5178 | set dummy ${ac_tool_prefix}as; ac_word=$2 | ||
5179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5180 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5181 | if test "${ac_cv_prog_AS+set}" = set; then : | ||
5182 | $as_echo_n "(cached) " >&6 | ||
5183 | else | ||
5184 | if test -n "$AS"; then | ||
5185 | ac_cv_prog_AS="$AS" # Let the user override the test. | ||
5186 | else | ||
5187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5188 | for as_dir in $PATH | ||
5189 | do | ||
5190 | IFS=$as_save_IFS | ||
5191 | test -z "$as_dir" && as_dir=. | ||
5192 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5193 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5194 | ac_cv_prog_AS="${ac_tool_prefix}as" | ||
5195 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5196 | break 2 | ||
5197 | fi | ||
5198 | done | ||
5199 | done | ||
5200 | IFS=$as_save_IFS | ||
5201 | |||
5202 | fi | ||
5203 | fi | ||
5204 | AS=$ac_cv_prog_AS | ||
5205 | if test -n "$AS"; then | ||
5206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | ||
5207 | $as_echo "$AS" >&6; } | ||
5208 | else | ||
5209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5210 | $as_echo "no" >&6; } | ||
5211 | fi | ||
5212 | |||
5213 | |||
5214 | fi | ||
5215 | if test -z "$ac_cv_prog_AS"; then | ||
5216 | ac_ct_AS=$AS | ||
5217 | # Extract the first word of "as", so it can be a program name with args. | ||
5218 | set dummy as; ac_word=$2 | ||
5219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5220 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5221 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : | ||
5222 | $as_echo_n "(cached) " >&6 | ||
5223 | else | ||
5224 | if test -n "$ac_ct_AS"; then | ||
5225 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | ||
5226 | else | ||
5227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5228 | for as_dir in $PATH | ||
5229 | do | ||
5230 | IFS=$as_save_IFS | ||
5231 | test -z "$as_dir" && as_dir=. | ||
5232 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5233 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5234 | ac_cv_prog_ac_ct_AS="as" | ||
5235 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5236 | break 2 | ||
5237 | fi | ||
5238 | done | ||
5239 | done | ||
5240 | IFS=$as_save_IFS | ||
5241 | |||
5242 | fi | ||
5243 | fi | ||
5244 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | ||
5245 | if test -n "$ac_ct_AS"; then | ||
5246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 | ||
5247 | $as_echo "$ac_ct_AS" >&6; } | ||
5248 | else | ||
5249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5250 | $as_echo "no" >&6; } | ||
5251 | fi | ||
5252 | |||
5253 | if test "x$ac_ct_AS" = x; then | ||
5254 | AS="false" | ||
5255 | else | ||
5256 | case $cross_compiling:$ac_tool_warned in | ||
5257 | yes:) | ||
5258 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5259 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5260 | ac_tool_warned=yes ;; | ||
5261 | esac | ||
5262 | AS=$ac_ct_AS | ||
5263 | fi | ||
5264 | else | ||
5265 | AS="$ac_cv_prog_AS" | ||
5266 | fi | ||
5267 | |||
5268 | if test -n "$ac_tool_prefix"; then | ||
5269 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | ||
5270 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | ||
5271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5272 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5273 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | ||
5274 | $as_echo_n "(cached) " >&6 | ||
5275 | else | ||
5276 | if test -n "$DLLTOOL"; then | ||
5277 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | ||
5278 | else | ||
5279 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5280 | for as_dir in $PATH | ||
5281 | do | ||
5282 | IFS=$as_save_IFS | ||
5283 | test -z "$as_dir" && as_dir=. | ||
5284 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5285 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5286 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | ||
5287 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5288 | break 2 | ||
5289 | fi | ||
5290 | done | ||
5291 | done | ||
5292 | IFS=$as_save_IFS | ||
5293 | |||
5294 | fi | ||
5295 | fi | ||
5296 | DLLTOOL=$ac_cv_prog_DLLTOOL | ||
5297 | if test -n "$DLLTOOL"; then | ||
5298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | ||
5299 | $as_echo "$DLLTOOL" >&6; } | ||
5300 | else | ||
5301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5302 | $as_echo "no" >&6; } | ||
5303 | fi | ||
5304 | |||
5305 | |||
5306 | fi | ||
5307 | if test -z "$ac_cv_prog_DLLTOOL"; then | ||
5308 | ac_ct_DLLTOOL=$DLLTOOL | ||
5309 | # Extract the first word of "dlltool", so it can be a program name with args. | ||
5310 | set dummy dlltool; ac_word=$2 | ||
5311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5312 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5313 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : | ||
5314 | $as_echo_n "(cached) " >&6 | ||
5315 | else | ||
5316 | if test -n "$ac_ct_DLLTOOL"; then | ||
5317 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | ||
5318 | else | ||
5319 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5320 | for as_dir in $PATH | ||
5321 | do | ||
5322 | IFS=$as_save_IFS | ||
5323 | test -z "$as_dir" && as_dir=. | ||
5324 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5325 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5326 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | ||
5327 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5328 | break 2 | ||
5329 | fi | ||
5330 | done | ||
5331 | done | ||
5332 | IFS=$as_save_IFS | ||
5333 | |||
5334 | fi | ||
5335 | fi | ||
5336 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | ||
5337 | if test -n "$ac_ct_DLLTOOL"; then | ||
5338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | ||
5339 | $as_echo "$ac_ct_DLLTOOL" >&6; } | ||
5340 | else | ||
5341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5342 | $as_echo "no" >&6; } | ||
5343 | fi | ||
5344 | |||
5345 | if test "x$ac_ct_DLLTOOL" = x; then | ||
5346 | DLLTOOL="false" | ||
5347 | else | ||
5348 | case $cross_compiling:$ac_tool_warned in | ||
5349 | yes:) | ||
5350 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5351 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5352 | ac_tool_warned=yes ;; | ||
5353 | esac | ||
5354 | DLLTOOL=$ac_ct_DLLTOOL | ||
5355 | fi | ||
5356 | else | ||
5357 | DLLTOOL="$ac_cv_prog_DLLTOOL" | ||
5358 | fi | ||
5359 | |||
5360 | if test -n "$ac_tool_prefix"; then | ||
5361 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | ||
5362 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | ||
5363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5364 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5365 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | ||
5366 | $as_echo_n "(cached) " >&6 | ||
5367 | else | ||
5368 | if test -n "$OBJDUMP"; then | ||
5369 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | ||
5370 | else | ||
5371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5372 | for as_dir in $PATH | ||
5373 | do | ||
5374 | IFS=$as_save_IFS | ||
5375 | test -z "$as_dir" && as_dir=. | ||
5376 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5377 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5378 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | ||
5379 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5380 | break 2 | ||
5381 | fi | ||
5382 | done | ||
5383 | done | ||
5384 | IFS=$as_save_IFS | ||
5385 | |||
5386 | fi | ||
5387 | fi | ||
5388 | OBJDUMP=$ac_cv_prog_OBJDUMP | ||
5389 | if test -n "$OBJDUMP"; then | ||
5390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | ||
5391 | $as_echo "$OBJDUMP" >&6; } | ||
5392 | else | ||
5393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5394 | $as_echo "no" >&6; } | ||
5395 | fi | ||
5396 | |||
5397 | |||
5398 | fi | ||
5399 | if test -z "$ac_cv_prog_OBJDUMP"; then | ||
5400 | ac_ct_OBJDUMP=$OBJDUMP | ||
5401 | # Extract the first word of "objdump", so it can be a program name with args. | ||
5402 | set dummy objdump; ac_word=$2 | ||
5403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5404 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5405 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | ||
5406 | $as_echo_n "(cached) " >&6 | ||
5407 | else | ||
5408 | if test -n "$ac_ct_OBJDUMP"; then | ||
5409 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | ||
5410 | else | ||
5411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5412 | for as_dir in $PATH | ||
5413 | do | ||
5414 | IFS=$as_save_IFS | ||
5415 | test -z "$as_dir" && as_dir=. | ||
5416 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5417 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5418 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | ||
5419 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5420 | break 2 | ||
5421 | fi | ||
5422 | done | ||
5423 | done | ||
5424 | IFS=$as_save_IFS | ||
5425 | |||
5426 | fi | ||
5427 | fi | ||
5428 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | ||
5429 | if test -n "$ac_ct_OBJDUMP"; then | ||
5430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | ||
5431 | $as_echo "$ac_ct_OBJDUMP" >&6; } | ||
5432 | else | ||
5433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5434 | $as_echo "no" >&6; } | ||
5435 | fi | ||
5436 | |||
5437 | if test "x$ac_ct_OBJDUMP" = x; then | ||
5438 | OBJDUMP="false" | ||
5439 | else | ||
5440 | case $cross_compiling:$ac_tool_warned in | ||
5441 | yes:) | ||
5442 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5443 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5444 | ac_tool_warned=yes ;; | ||
5445 | esac | ||
5446 | OBJDUMP=$ac_ct_OBJDUMP | ||
5447 | fi | ||
5448 | else | ||
5449 | OBJDUMP="$ac_cv_prog_OBJDUMP" | ||
5450 | fi | ||
5451 | |||
5452 | ;; | ||
5453 | esac | ||
5454 | |||
5455 | test -z "$AS" && AS=as | ||
5456 | |||
5457 | |||
5458 | |||
5459 | |||
5460 | |||
5461 | test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
5462 | |||
5463 | |||
5464 | |||
5465 | |||
5466 | |||
5467 | test -z "$OBJDUMP" && OBJDUMP=objdump | ||
5468 | |||
5469 | |||
5470 | |||
5471 | |||
5472 | |||
5473 | |||
5474 | |||
5475 | case `pwd` in | ||
5476 | *\ * | *\ *) | ||
5477 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | ||
5478 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | ||
5479 | esac | ||
5480 | |||
5481 | |||
5482 | |||
5483 | macro_version='2.2.6b' | ||
5484 | macro_revision='1.3017' | ||
5485 | |||
5486 | |||
5487 | |||
5488 | |||
5489 | |||
5490 | |||
5491 | |||
5492 | |||
5493 | |||
5494 | |||
5495 | |||
5496 | |||
5497 | |||
5498 | ltmain="$ac_aux_dir/ltmain.sh" | ||
5499 | |||
5500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | ||
5501 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | ||
5502 | if test "${ac_cv_path_SED+set}" = set; then : | ||
5503 | $as_echo_n "(cached) " >&6 | ||
5504 | else | ||
5505 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | ||
5506 | for ac_i in 1 2 3 4 5 6 7; do | ||
5507 | ac_script="$ac_script$as_nl$ac_script" | ||
5508 | done | ||
5509 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | ||
5510 | { ac_script=; unset ac_script;} | ||
5511 | if test -z "$SED"; then | ||
5512 | ac_path_SED_found=false | ||
5513 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
5514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5515 | for as_dir in $PATH | ||
5516 | do | ||
5517 | IFS=$as_save_IFS | ||
5518 | test -z "$as_dir" && as_dir=. | ||
5519 | for ac_prog in sed gsed; do | ||
5520 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5521 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | ||
5522 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | ||
5523 | # Check for GNU ac_path_SED and select it if it is found. | ||
5524 | # Check for GNU $ac_path_SED | ||
5525 | case `"$ac_path_SED" --version 2>&1` in | ||
5526 | *GNU*) | ||
5527 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | ||
5528 | *) | ||
5529 | ac_count=0 | ||
5530 | $as_echo_n 0123456789 >"conftest.in" | ||
5531 | while : | ||
5532 | do | ||
5533 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
5534 | mv "conftest.tmp" "conftest.in" | ||
5535 | cp "conftest.in" "conftest.nl" | ||
5536 | $as_echo '' >> "conftest.nl" | ||
5537 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
5538 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
5539 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
5540 | if test $ac_count -gt ${ac_path_SED_max-0}; then | ||
5541 | # Best one so far, save it but keep looking for a better one | ||
5542 | ac_cv_path_SED="$ac_path_SED" | ||
5543 | ac_path_SED_max=$ac_count | ||
5544 | fi | ||
5545 | # 10*(2^10) chars as input seems more than enough | ||
5546 | test $ac_count -gt 10 && break | ||
5547 | done | ||
5548 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
5549 | esac | ||
5550 | |||
5551 | $ac_path_SED_found && break 3 | ||
5552 | done | ||
5553 | done | ||
5554 | done | ||
5555 | IFS=$as_save_IFS | ||
5556 | if test -z "$ac_cv_path_SED"; then | ||
5557 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | ||
5558 | fi | ||
5559 | else | ||
5560 | ac_cv_path_SED=$SED | ||
5561 | fi | ||
5562 | |||
5563 | fi | ||
5564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | ||
5565 | $as_echo "$ac_cv_path_SED" >&6; } | ||
5566 | SED="$ac_cv_path_SED" | ||
5567 | rm -f conftest.sed | ||
5568 | |||
5569 | test -z "$SED" && SED=sed | ||
5570 | Xsed="$SED -e 1s/^X//" | ||
5571 | |||
5572 | |||
5573 | |||
5574 | |||
5575 | |||
5576 | |||
5577 | |||
5578 | |||
5579 | |||
5580 | |||
5581 | |||
5582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | ||
5583 | $as_echo_n "checking for fgrep... " >&6; } | ||
5584 | if test "${ac_cv_path_FGREP+set}" = set; then : | ||
5585 | $as_echo_n "(cached) " >&6 | ||
5586 | else | ||
5587 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | ||
5588 | then ac_cv_path_FGREP="$GREP -F" | ||
5589 | else | ||
5590 | if test -z "$FGREP"; then | ||
5591 | ac_path_FGREP_found=false | ||
5592 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
5593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5594 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
5595 | do | ||
5596 | IFS=$as_save_IFS | ||
5597 | test -z "$as_dir" && as_dir=. | ||
5598 | for ac_prog in fgrep; do | ||
5599 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5600 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
5601 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | ||
5602 | # Check for GNU ac_path_FGREP and select it if it is found. | ||
5603 | # Check for GNU $ac_path_FGREP | ||
5604 | case `"$ac_path_FGREP" --version 2>&1` in | ||
5605 | *GNU*) | ||
5606 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | ||
5607 | *) | ||
5608 | ac_count=0 | ||
5609 | $as_echo_n 0123456789 >"conftest.in" | ||
5610 | while : | ||
5611 | do | ||
5612 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
5613 | mv "conftest.tmp" "conftest.in" | ||
5614 | cp "conftest.in" "conftest.nl" | ||
5615 | $as_echo 'FGREP' >> "conftest.nl" | ||
5616 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
5617 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
5618 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
5619 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | ||
5620 | # Best one so far, save it but keep looking for a better one | ||
5621 | ac_cv_path_FGREP="$ac_path_FGREP" | ||
5622 | ac_path_FGREP_max=$ac_count | ||
5623 | fi | ||
5624 | # 10*(2^10) chars as input seems more than enough | ||
5625 | test $ac_count -gt 10 && break | ||
5626 | done | ||
5627 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
5628 | esac | ||
5629 | |||
5630 | $ac_path_FGREP_found && break 3 | ||
5631 | done | ||
5632 | done | ||
5633 | done | ||
5634 | IFS=$as_save_IFS | ||
5635 | if test -z "$ac_cv_path_FGREP"; then | ||
5636 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
5637 | fi | ||
5638 | else | ||
5639 | ac_cv_path_FGREP=$FGREP | ||
5640 | fi | ||
5641 | |||
5642 | fi | ||
5643 | fi | ||
5644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | ||
5645 | $as_echo "$ac_cv_path_FGREP" >&6; } | ||
5646 | FGREP="$ac_cv_path_FGREP" | ||
5647 | |||
5648 | |||
5649 | test -z "$GREP" && GREP=grep | ||
5650 | |||
5651 | |||
5652 | |||
5653 | |||
5654 | |||
5655 | |||
5656 | |||
5657 | |||
5658 | |||
5659 | |||
5660 | |||
5661 | |||
5662 | |||
5663 | |||
5664 | |||
5665 | |||
5666 | |||
5667 | |||
5668 | |||
5669 | # Check whether --with-gnu-ld was given. | ||
5670 | if test "${with_gnu_ld+set}" = set; then : | ||
5671 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | ||
5672 | else | ||
5673 | with_gnu_ld=no | ||
5674 | fi | ||
5675 | |||
5676 | ac_prog=ld | ||
5677 | if test "$GCC" = yes; then | ||
5678 | # Check if gcc -print-prog-name=ld gives a path. | ||
5679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | ||
5680 | $as_echo_n "checking for ld used by $CC... " >&6; } | ||
5681 | case $host in | ||
5682 | *-*-mingw*) | ||
5683 | # gcc leaves a trailing carriage return which upsets mingw | ||
5684 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
5685 | *) | ||
5686 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
5687 | esac | ||
5688 | case $ac_prog in | ||
5689 | # Accept absolute paths. | ||
5690 | [\\/]* | ?:[\\/]*) | ||
5691 | re_direlt='/[^/][^/]*/\.\./' | ||
5692 | # Canonicalize the pathname of ld | ||
5693 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | ||
5694 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | ||
5695 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | ||
5696 | done | ||
5697 | test -z "$LD" && LD="$ac_prog" | ||
5698 | ;; | ||
5699 | "") | ||
5700 | # If it fails, then pretend we aren't using GCC. | ||
5701 | ac_prog=ld | ||
5702 | ;; | ||
5703 | *) | ||
5704 | # If it is relative, then search for the first ld in PATH. | ||
5705 | with_gnu_ld=unknown | ||
5706 | ;; | ||
5707 | esac | ||
5708 | elif test "$with_gnu_ld" = yes; then | ||
5709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | ||
5710 | $as_echo_n "checking for GNU ld... " >&6; } | ||
5711 | else | ||
5712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | ||
5713 | $as_echo_n "checking for non-GNU ld... " >&6; } | ||
5714 | fi | ||
5715 | if test "${lt_cv_path_LD+set}" = set; then : | ||
5716 | $as_echo_n "(cached) " >&6 | ||
5717 | else | ||
5718 | if test -z "$LD"; then | ||
5719 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
5720 | for ac_dir in $PATH; do | ||
5721 | IFS="$lt_save_ifs" | ||
5722 | test -z "$ac_dir" && ac_dir=. | ||
5723 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
5724 | lt_cv_path_LD="$ac_dir/$ac_prog" | ||
5725 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
5726 | # but apparently some variants of GNU ld only accept -v. | ||
5727 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
5728 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
5729 | *GNU* | *'with BFD'*) | ||
5730 | test "$with_gnu_ld" != no && break | ||
5731 | ;; | ||
5732 | *) | ||
5733 | test "$with_gnu_ld" != yes && break | ||
5734 | ;; | ||
5735 | esac | ||
5736 | fi | ||
5737 | done | ||
5738 | IFS="$lt_save_ifs" | ||
5739 | else | ||
5740 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
5741 | fi | ||
5742 | fi | ||
5743 | |||
5744 | LD="$lt_cv_path_LD" | ||
5745 | if test -n "$LD"; then | ||
5746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | ||
5747 | $as_echo "$LD" >&6; } | ||
5748 | else | ||
5749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5750 | $as_echo "no" >&6; } | ||
5751 | fi | ||
5752 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | ||
5753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | ||
5754 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | ||
5755 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | ||
5756 | $as_echo_n "(cached) " >&6 | ||
5757 | else | ||
5758 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | ||
5759 | case `$LD -v 2>&1 </dev/null` in | ||
5760 | *GNU* | *'with BFD'*) | ||
5761 | lt_cv_prog_gnu_ld=yes | ||
5762 | ;; | ||
5763 | *) | ||
5764 | lt_cv_prog_gnu_ld=no | ||
5765 | ;; | ||
5766 | esac | ||
5767 | fi | ||
5768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | ||
5769 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | ||
5770 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
5771 | |||
5772 | |||
5773 | |||
5774 | |||
5775 | |||
5776 | |||
5777 | |||
5778 | |||
5779 | |||
5780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | ||
5781 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | ||
5782 | if test "${lt_cv_path_NM+set}" = set; then : | ||
5783 | $as_echo_n "(cached) " >&6 | ||
5784 | else | ||
5785 | if test -n "$NM"; then | ||
5786 | # Let the user override the test. | ||
5787 | lt_cv_path_NM="$NM" | ||
5788 | else | ||
5789 | lt_nm_to_check="${ac_tool_prefix}nm" | ||
5790 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | ||
5791 | lt_nm_to_check="$lt_nm_to_check nm" | ||
5792 | fi | ||
5793 | for lt_tmp_nm in $lt_nm_to_check; do | ||
5794 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
5795 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | ||
5796 | IFS="$lt_save_ifs" | ||
5797 | test -z "$ac_dir" && ac_dir=. | ||
5798 | tmp_nm="$ac_dir/$lt_tmp_nm" | ||
5799 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | ||
5800 | # Check to see if the nm accepts a BSD-compat flag. | ||
5801 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | ||
5802 | # nm: unknown option "B" ignored | ||
5803 | # Tru64's nm complains that /dev/null is an invalid object file | ||
5804 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | ||
5805 | */dev/null* | *'Invalid file or object type'*) | ||
5806 | lt_cv_path_NM="$tmp_nm -B" | ||
5807 | break | ||
5808 | ;; | ||
5809 | *) | ||
5810 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | ||
5811 | */dev/null*) | ||
5812 | lt_cv_path_NM="$tmp_nm -p" | ||
5813 | break | ||
5814 | ;; | ||
5815 | *) | ||
5816 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | ||
5817 | continue # so that we can try to find one that supports BSD flags | ||
5818 | ;; | ||
5819 | esac | ||
5820 | ;; | ||
5821 | esac | ||
5822 | fi | ||
5823 | done | ||
5824 | IFS="$lt_save_ifs" | ||
5825 | done | ||
5826 | : ${lt_cv_path_NM=no} | ||
5827 | fi | ||
5828 | fi | ||
5829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | ||
5830 | $as_echo "$lt_cv_path_NM" >&6; } | ||
5831 | if test "$lt_cv_path_NM" != "no"; then | ||
5832 | NM="$lt_cv_path_NM" | ||
5833 | else | ||
5834 | # Didn't find any BSD compatible name lister, look for dumpbin. | ||
5835 | if test -n "$ac_tool_prefix"; then | ||
5836 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
5837 | do | ||
5838 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
5839 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
5840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5841 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5842 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | ||
5843 | $as_echo_n "(cached) " >&6 | ||
5844 | else | ||
5845 | if test -n "$DUMPBIN"; then | ||
5846 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | ||
5847 | else | ||
5848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5849 | for as_dir in $PATH | ||
5850 | do | ||
5851 | IFS=$as_save_IFS | ||
5852 | test -z "$as_dir" && as_dir=. | ||
5853 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5854 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5855 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | ||
5856 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5857 | break 2 | ||
5858 | fi | ||
5859 | done | ||
5860 | done | ||
5861 | IFS=$as_save_IFS | ||
5862 | |||
5863 | fi | ||
5864 | fi | ||
5865 | DUMPBIN=$ac_cv_prog_DUMPBIN | ||
5866 | if test -n "$DUMPBIN"; then | ||
5867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | ||
5868 | $as_echo "$DUMPBIN" >&6; } | ||
5869 | else | ||
5870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5871 | $as_echo "no" >&6; } | ||
5872 | fi | ||
5873 | |||
5874 | |||
5875 | test -n "$DUMPBIN" && break | ||
5876 | done | ||
5877 | fi | ||
5878 | if test -z "$DUMPBIN"; then | ||
5879 | ac_ct_DUMPBIN=$DUMPBIN | ||
5880 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
5881 | do | ||
5882 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
5883 | set dummy $ac_prog; ac_word=$2 | ||
5884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5885 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5886 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | ||
5887 | $as_echo_n "(cached) " >&6 | ||
5888 | else | ||
5889 | if test -n "$ac_ct_DUMPBIN"; then | ||
5890 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | ||
5891 | else | ||
5892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5893 | for as_dir in $PATH | ||
5894 | do | ||
5895 | IFS=$as_save_IFS | ||
5896 | test -z "$as_dir" && as_dir=. | ||
5897 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5898 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5899 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | ||
5900 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5901 | break 2 | ||
5902 | fi | ||
5903 | done | ||
5904 | done | ||
5905 | IFS=$as_save_IFS | ||
5906 | |||
5907 | fi | ||
5908 | fi | ||
5909 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | ||
5910 | if test -n "$ac_ct_DUMPBIN"; then | ||
5911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | ||
5912 | $as_echo "$ac_ct_DUMPBIN" >&6; } | ||
5913 | else | ||
5914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5915 | $as_echo "no" >&6; } | ||
5916 | fi | ||
5917 | |||
5918 | |||
5919 | test -n "$ac_ct_DUMPBIN" && break | ||
5920 | done | ||
5921 | |||
5922 | if test "x$ac_ct_DUMPBIN" = x; then | ||
5923 | DUMPBIN=":" | ||
5924 | else | ||
5925 | case $cross_compiling:$ac_tool_warned in | ||
5926 | yes:) | ||
5927 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5928 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5929 | ac_tool_warned=yes ;; | ||
5930 | esac | ||
5931 | DUMPBIN=$ac_ct_DUMPBIN | ||
5932 | fi | ||
5933 | fi | ||
5934 | |||
5935 | |||
5936 | if test "$DUMPBIN" != ":"; then | ||
5937 | NM="$DUMPBIN" | ||
5938 | fi | ||
5939 | fi | ||
5940 | test -z "$NM" && NM=nm | ||
5941 | |||
5942 | |||
5943 | |||
5944 | |||
5945 | |||
5946 | |||
5947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | ||
5948 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | ||
5949 | if test "${lt_cv_nm_interface+set}" = set; then : | ||
5950 | $as_echo_n "(cached) " >&6 | ||
5951 | else | ||
5952 | lt_cv_nm_interface="BSD nm" | ||
5953 | echo "int some_variable = 0;" > conftest.$ac_ext | ||
5954 | (eval echo "\"\$as_me:5954: $ac_compile\"" >&5) | ||
5955 | (eval "$ac_compile" 2>conftest.err) | ||
5956 | cat conftest.err >&5 | ||
5957 | (eval echo "\"\$as_me:5957: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | ||
5958 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | ||
5959 | cat conftest.err >&5 | ||
5960 | (eval echo "\"\$as_me:5960: output\"" >&5) | ||
5961 | cat conftest.out >&5 | ||
5962 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | ||
5963 | lt_cv_nm_interface="MS dumpbin" | ||
5964 | fi | ||
5965 | rm -f conftest* | ||
5966 | fi | ||
5967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | ||
5968 | $as_echo "$lt_cv_nm_interface" >&6; } | ||
5969 | |||
5970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | ||
5971 | $as_echo_n "checking whether ln -s works... " >&6; } | ||
5972 | LN_S=$as_ln_s | ||
5973 | if test "$LN_S" = "ln -s"; then | ||
5974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5975 | $as_echo "yes" >&6; } | ||
5976 | else | ||
5977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | ||
5978 | $as_echo "no, using $LN_S" >&6; } | ||
5979 | fi | ||
5980 | |||
5981 | # find the maximum length of command line arguments | ||
5982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | ||
5983 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | ||
5984 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | ||
5985 | $as_echo_n "(cached) " >&6 | ||
5986 | else | ||
5987 | i=0 | ||
5988 | teststring="ABCD" | ||
5989 | |||
5990 | case $build_os in | ||
5991 | msdosdjgpp*) | ||
5992 | # On DJGPP, this test can blow up pretty badly due to problems in libc | ||
5993 | # (any single argument exceeding 2000 bytes causes a buffer overrun | ||
5994 | # during glob expansion). Even if it were fixed, the result of this | ||
5995 | # check would be larger than it should be. | ||
5996 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | ||
5997 | ;; | ||
5998 | |||
5999 | gnu*) | ||
6000 | # Under GNU Hurd, this test is not required because there is | ||
6001 | # no limit to the length of command line arguments. | ||
6002 | # Libtool will interpret -1 as no limit whatsoever | ||
6003 | lt_cv_sys_max_cmd_len=-1; | ||
6004 | ;; | ||
6005 | |||
6006 | cygwin* | mingw*) | ||
6007 | # On Win9x/ME, this test blows up -- it succeeds, but takes | ||
6008 | # about 5 minutes as the teststring grows exponentially. | ||
6009 | # Worse, since 9x/ME are not pre-emptively multitasking, | ||
6010 | # you end up with a "frozen" computer, even though with patience | ||
6011 | # the test eventually succeeds (with a max line length of 256k). | ||
6012 | # Instead, let's just punt: use the minimum linelength reported by | ||
6013 | # all of the supported platforms: 8192 (on NT/2K/XP). | ||
6014 | lt_cv_sys_max_cmd_len=8192; | ||
6015 | ;; | ||
6016 | |||
6017 | amigaos*) | ||
6018 | # On AmigaOS with pdksh, this test takes hours, literally. | ||
6019 | # So we just punt and use a minimum line length of 8192. | ||
6020 | lt_cv_sys_max_cmd_len=8192; | ||
6021 | ;; | ||
6022 | |||
6023 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | ||
6024 | # This has been around since 386BSD, at least. Likely further. | ||
6025 | if test -x /sbin/sysctl; then | ||
6026 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | ||
6027 | elif test -x /usr/sbin/sysctl; then | ||
6028 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | ||
6029 | else | ||
6030 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | ||
6031 | fi | ||
6032 | # And add a safety zone | ||
6033 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
6034 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
6035 | ;; | ||
6036 | |||
6037 | interix*) | ||
6038 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | ||
6039 | lt_cv_sys_max_cmd_len=196608 | ||
6040 | ;; | ||
6041 | |||
6042 | osf*) | ||
6043 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | ||
6044 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | ||
6045 | # nice to cause kernel panics so lets avoid the loop below. | ||
6046 | # First set a reasonable default. | ||
6047 | lt_cv_sys_max_cmd_len=16384 | ||
6048 | # | ||
6049 | if test -x /sbin/sysconfig; then | ||
6050 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | ||
6051 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | ||
6052 | esac | ||
6053 | fi | ||
6054 | ;; | ||
6055 | sco3.2v5*) | ||
6056 | lt_cv_sys_max_cmd_len=102400 | ||
6057 | ;; | ||
6058 | sysv5* | sco5v6* | sysv4.2uw2*) | ||
6059 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | ||
6060 | if test -n "$kargmax"; then | ||
6061 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | ||
6062 | else | ||
6063 | lt_cv_sys_max_cmd_len=32768 | ||
6064 | fi | ||
6065 | ;; | ||
6066 | *) | ||
6067 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | ||
6068 | if test -n "$lt_cv_sys_max_cmd_len"; then | ||
6069 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
6070 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
6071 | else | ||
6072 | # Make teststring a little bigger before we do anything with it. | ||
6073 | # a 1K string should be a reasonable start. | ||
6074 | for i in 1 2 3 4 5 6 7 8 ; do | ||
6075 | teststring=$teststring$teststring | ||
6076 | done | ||
6077 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | ||
6078 | # If test is not a shell built-in, we'll probably end up computing a | ||
6079 | # maximum length that is only half of the actual maximum length, but | ||
6080 | # we can't tell. | ||
6081 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | ||
6082 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | ||
6083 | test $i != 17 # 1/2 MB should be enough | ||
6084 | do | ||
6085 | i=`expr $i + 1` | ||
6086 | teststring=$teststring$teststring | ||
6087 | done | ||
6088 | # Only check the string length outside the loop. | ||
6089 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | ||
6090 | teststring= | ||
6091 | # Add a significant safety factor because C++ compilers can tack on | ||
6092 | # massive amounts of additional arguments before passing them to the | ||
6093 | # linker. It appears as though 1/2 is a usable value. | ||
6094 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | ||
6095 | fi | ||
6096 | ;; | ||
6097 | esac | ||
6098 | |||
6099 | fi | ||
6100 | |||
6101 | if test -n $lt_cv_sys_max_cmd_len ; then | ||
6102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | ||
6103 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | ||
6104 | else | ||
6105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | ||
6106 | $as_echo "none" >&6; } | ||
6107 | fi | ||
6108 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
6109 | |||
6110 | |||
6111 | |||
6112 | |||
6113 | |||
6114 | |||
6115 | : ${CP="cp -f"} | ||
6116 | : ${MV="mv -f"} | ||
6117 | : ${RM="rm -f"} | ||
6118 | |||
6119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | ||
6120 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | ||
6121 | # Try some XSI features | ||
6122 | xsi_shell=no | ||
6123 | ( _lt_dummy="a/b/c" | ||
6124 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | ||
6125 | = c,a/b,, \ | ||
6126 | && eval 'test $(( 1 + 1 )) -eq 2 \ | ||
6127 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | ||
6128 | && xsi_shell=yes | ||
6129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | ||
6130 | $as_echo "$xsi_shell" >&6; } | ||
6131 | |||
6132 | |||
6133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | ||
6134 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | ||
6135 | lt_shell_append=no | ||
6136 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | ||
6137 | >/dev/null 2>&1 \ | ||
6138 | && lt_shell_append=yes | ||
6139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | ||
6140 | $as_echo "$lt_shell_append" >&6; } | ||
6141 | |||
6142 | |||
6143 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
6144 | lt_unset=unset | ||
6145 | else | ||
6146 | lt_unset=false | ||
6147 | fi | ||
6148 | |||
6149 | |||
6150 | |||
6151 | |||
6152 | |||
6153 | # test EBCDIC or ASCII | ||
6154 | case `echo X|tr X '\101'` in | ||
6155 | A) # ASCII based system | ||
6156 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | ||
6157 | lt_SP2NL='tr \040 \012' | ||
6158 | lt_NL2SP='tr \015\012 \040\040' | ||
6159 | ;; | ||
6160 | *) # EBCDIC based system | ||
6161 | lt_SP2NL='tr \100 \n' | ||
6162 | lt_NL2SP='tr \r\n \100\100' | ||
6163 | ;; | ||
6164 | esac | ||
6165 | |||
6166 | |||
6167 | |||
6168 | |||
6169 | |||
6170 | |||
6171 | |||
6172 | |||
6173 | |||
6174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | ||
6175 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | ||
6176 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | ||
6177 | $as_echo_n "(cached) " >&6 | ||
6178 | else | ||
6179 | lt_cv_ld_reload_flag='-r' | ||
6180 | fi | ||
6181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | ||
6182 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | ||
6183 | reload_flag=$lt_cv_ld_reload_flag | ||
6184 | case $reload_flag in | ||
6185 | "" | " "*) ;; | ||
6186 | *) reload_flag=" $reload_flag" ;; | ||
6187 | esac | ||
6188 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
6189 | case $host_os in | ||
6190 | darwin*) | ||
6191 | if test "$GCC" = yes; then | ||
6192 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
6193 | else | ||
6194 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
6195 | fi | ||
6196 | ;; | ||
6197 | esac | ||
6198 | |||
6199 | |||
6200 | |||
6201 | |||
6202 | |||
6203 | |||
6204 | |||
6205 | |||
6206 | |||
6207 | |||
6208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | ||
6209 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | ||
6210 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | ||
6211 | $as_echo_n "(cached) " >&6 | ||
6212 | else | ||
6213 | lt_cv_file_magic_cmd='$MAGIC_CMD' | ||
6214 | lt_cv_file_magic_test_file= | ||
6215 | lt_cv_deplibs_check_method='unknown' | ||
6216 | # Need to set the preceding variable on all platforms that support | ||
6217 | # interlibrary dependencies. | ||
6218 | # 'none' -- dependencies not supported. | ||
6219 | # `unknown' -- same as none, but documents that we really don't know. | ||
6220 | # 'pass_all' -- all dependencies passed with no checks. | ||
6221 | # 'test_compile' -- check by making test program. | ||
6222 | # 'file_magic [[regex]]' -- check by looking for files in library path | ||
6223 | # which responds to the $file_magic_cmd with a given extended regex. | ||
6224 | # If you have `file' or equivalent on your system and you're not sure | ||
6225 | # whether `pass_all' will *always* work, you probably want this one. | ||
6226 | |||
6227 | case $host_os in | ||
6228 | aix[4-9]*) | ||
6229 | lt_cv_deplibs_check_method=pass_all | ||
6230 | ;; | ||
6231 | |||
6232 | beos*) | ||
6233 | lt_cv_deplibs_check_method=pass_all | ||
6234 | ;; | ||
6235 | |||
6236 | bsdi[45]*) | ||
6237 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | ||
6238 | lt_cv_file_magic_cmd='/usr/bin/file -L' | ||
6239 | lt_cv_file_magic_test_file=/shlib/libc.so | ||
6240 | ;; | ||
6241 | |||
6242 | cygwin*) | ||
6243 | # func_win32_libid is a shell function defined in ltmain.sh | ||
6244 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
6245 | lt_cv_file_magic_cmd='func_win32_libid' | ||
6246 | ;; | ||
6247 | |||
6248 | mingw* | pw32*) | ||
6249 | # Base MSYS/MinGW do not provide the 'file' command needed by | ||
6250 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | ||
6251 | # unless we find 'file', for example because we are cross-compiling. | ||
6252 | if ( file / ) >/dev/null 2>&1; then | ||
6253 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
6254 | lt_cv_file_magic_cmd='func_win32_libid' | ||
6255 | else | ||
6256 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
6257 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
6258 | fi | ||
6259 | ;; | ||
6260 | |||
6261 | darwin* | rhapsody*) | ||
6262 | lt_cv_deplibs_check_method=pass_all | ||
6263 | ;; | ||
6264 | |||
6265 | freebsd* | dragonfly*) | ||
6266 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | ||
6267 | case $host_cpu in | ||
6268 | i*86 ) | ||
6269 | # Not sure whether the presence of OpenBSD here was a mistake. | ||
6270 | # Let's accept both of them until this is cleared up. | ||
6271 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | ||
6272 | lt_cv_file_magic_cmd=/usr/bin/file | ||
6273 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | ||
6274 | ;; | ||
6275 | esac | ||
6276 | else | ||
6277 | lt_cv_deplibs_check_method=pass_all | ||
6278 | fi | ||
6279 | ;; | ||
6280 | |||
6281 | gnu*) | ||
6282 | lt_cv_deplibs_check_method=pass_all | ||
6283 | ;; | ||
6284 | |||
6285 | hpux10.20* | hpux11*) | ||
6286 | lt_cv_file_magic_cmd=/usr/bin/file | ||
6287 | case $host_cpu in | ||
6288 | ia64*) | ||
6289 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | ||
6290 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
6291 | ;; | ||
6292 | hppa*64*) | ||
6293 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' | ||
6294 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
6295 | ;; | ||
6296 | *) | ||
6297 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | ||
6298 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
6299 | ;; | ||
6300 | esac | ||
6301 | ;; | ||
6302 | |||
6303 | interix[3-9]*) | ||
6304 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | ||
6305 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | ||
6306 | ;; | ||
6307 | |||
6308 | irix5* | irix6* | nonstopux*) | ||
6309 | case $LD in | ||
6310 | *-32|*"-32 ") libmagic=32-bit;; | ||
6311 | *-n32|*"-n32 ") libmagic=N32;; | ||
6312 | *-64|*"-64 ") libmagic=64-bit;; | ||
6313 | *) libmagic=never-match;; | ||
6314 | esac | ||
6315 | lt_cv_deplibs_check_method=pass_all | ||
6316 | ;; | ||
6317 | |||
6318 | # This must be Linux ELF. | ||
6319 | linux* | k*bsd*-gnu) | ||
6320 | lt_cv_deplibs_check_method=pass_all | ||
6321 | ;; | ||
6322 | |||
6323 | netbsd* | netbsdelf*-gnu) | ||
6324 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | ||
6325 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | ||
6326 | else | ||
6327 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | ||
6328 | fi | ||
6329 | ;; | ||
6330 | |||
6331 | newos6*) | ||
6332 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | ||
6333 | lt_cv_file_magic_cmd=/usr/bin/file | ||
6334 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | ||
6335 | ;; | ||
6336 | |||
6337 | *nto* | *qnx*) | ||
6338 | lt_cv_deplibs_check_method=pass_all | ||
6339 | ;; | ||
6340 | |||
6341 | openbsd*) | ||
6342 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
6343 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | ||
6344 | else | ||
6345 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | ||
6346 | fi | ||
6347 | ;; | ||
6348 | |||
6349 | osf3* | osf4* | osf5*) | ||
6350 | lt_cv_deplibs_check_method=pass_all | ||
6351 | ;; | ||
6352 | |||
6353 | rdos*) | ||
6354 | lt_cv_deplibs_check_method=pass_all | ||
6355 | ;; | ||
6356 | |||
6357 | solaris*) | ||
6358 | lt_cv_deplibs_check_method=pass_all | ||
6359 | ;; | ||
6360 | |||
6361 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
6362 | lt_cv_deplibs_check_method=pass_all | ||
6363 | ;; | ||
6364 | |||
6365 | sysv4 | sysv4.3*) | ||
6366 | case $host_vendor in | ||
6367 | motorola) | ||
6368 | 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]' | ||
6369 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | ||
6370 | ;; | ||
6371 | ncr) | ||
6372 | lt_cv_deplibs_check_method=pass_all | ||
6373 | ;; | ||
6374 | sequent) | ||
6375 | lt_cv_file_magic_cmd='/bin/file' | ||
6376 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | ||
6377 | ;; | ||
6378 | sni) | ||
6379 | lt_cv_file_magic_cmd='/bin/file' | ||
6380 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | ||
6381 | lt_cv_file_magic_test_file=/lib/libc.so | ||
6382 | ;; | ||
6383 | siemens) | ||
6384 | lt_cv_deplibs_check_method=pass_all | ||
6385 | ;; | ||
6386 | pc) | ||
6387 | lt_cv_deplibs_check_method=pass_all | ||
6388 | ;; | ||
6389 | esac | ||
6390 | ;; | ||
6391 | |||
6392 | tpf*) | ||
6393 | lt_cv_deplibs_check_method=pass_all | ||
6394 | ;; | ||
6395 | esac | ||
6396 | |||
6397 | fi | ||
6398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | ||
6399 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | ||
6400 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
6401 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
6402 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
6403 | |||
6404 | |||
6405 | |||
6406 | |||
6407 | |||
6408 | |||
6409 | |||
6410 | |||
6411 | |||
6412 | |||
6413 | |||
6414 | |||
6415 | if test -n "$ac_tool_prefix"; then | ||
6416 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | ||
6417 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | ||
6418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6419 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6420 | if test "${ac_cv_prog_AR+set}" = set; then : | ||
6421 | $as_echo_n "(cached) " >&6 | ||
6422 | else | ||
6423 | if test -n "$AR"; then | ||
6424 | ac_cv_prog_AR="$AR" # Let the user override the test. | ||
6425 | else | ||
6426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6427 | for as_dir in $PATH | ||
6428 | do | ||
6429 | IFS=$as_save_IFS | ||
6430 | test -z "$as_dir" && as_dir=. | ||
6431 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6432 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6433 | ac_cv_prog_AR="${ac_tool_prefix}ar" | ||
6434 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6435 | break 2 | ||
6436 | fi | ||
6437 | done | ||
6438 | done | ||
6439 | IFS=$as_save_IFS | ||
6440 | |||
6441 | fi | ||
6442 | fi | ||
6443 | AR=$ac_cv_prog_AR | ||
6444 | if test -n "$AR"; then | ||
6445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | ||
6446 | $as_echo "$AR" >&6; } | ||
6447 | else | ||
6448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6449 | $as_echo "no" >&6; } | ||
6450 | fi | ||
6451 | |||
6452 | |||
6453 | fi | ||
6454 | if test -z "$ac_cv_prog_AR"; then | ||
6455 | ac_ct_AR=$AR | ||
6456 | # Extract the first word of "ar", so it can be a program name with args. | ||
6457 | set dummy ar; ac_word=$2 | ||
6458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6459 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6460 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | ||
6461 | $as_echo_n "(cached) " >&6 | ||
6462 | else | ||
6463 | if test -n "$ac_ct_AR"; then | ||
6464 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
6465 | else | ||
6466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6467 | for as_dir in $PATH | ||
6468 | do | ||
6469 | IFS=$as_save_IFS | ||
6470 | test -z "$as_dir" && as_dir=. | ||
6471 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6472 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6473 | ac_cv_prog_ac_ct_AR="ar" | ||
6474 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6475 | break 2 | ||
6476 | fi | ||
6477 | done | ||
6478 | done | ||
6479 | IFS=$as_save_IFS | ||
6480 | |||
6481 | fi | ||
6482 | fi | ||
6483 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
6484 | if test -n "$ac_ct_AR"; then | ||
6485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||
6486 | $as_echo "$ac_ct_AR" >&6; } | ||
6487 | else | ||
6488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6489 | $as_echo "no" >&6; } | ||
6490 | fi | ||
6491 | |||
6492 | if test "x$ac_ct_AR" = x; then | ||
6493 | AR="false" | ||
6494 | else | ||
6495 | case $cross_compiling:$ac_tool_warned in | ||
6496 | yes:) | ||
6497 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6498 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6499 | ac_tool_warned=yes ;; | ||
6500 | esac | ||
6501 | AR=$ac_ct_AR | ||
6502 | fi | ||
6503 | else | ||
6504 | AR="$ac_cv_prog_AR" | ||
6505 | fi | ||
6506 | |||
6507 | test -z "$AR" && AR=ar | ||
6508 | test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
6509 | |||
6510 | |||
6511 | |||
6512 | |||
6513 | |||
6514 | |||
6515 | |||
6516 | |||
6517 | |||
6518 | |||
6519 | |||
6520 | if test -n "$ac_tool_prefix"; then | ||
6521 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
6522 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
6523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6524 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6525 | if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
6526 | $as_echo_n "(cached) " >&6 | ||
6527 | else | ||
6528 | if test -n "$STRIP"; then | ||
6529 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
6530 | else | ||
6531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6532 | for as_dir in $PATH | ||
6533 | do | ||
6534 | IFS=$as_save_IFS | ||
6535 | test -z "$as_dir" && as_dir=. | ||
6536 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6537 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6538 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
6539 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6540 | break 2 | ||
6541 | fi | ||
6542 | done | ||
6543 | done | ||
6544 | IFS=$as_save_IFS | ||
6545 | |||
6546 | fi | ||
6547 | fi | ||
6548 | STRIP=$ac_cv_prog_STRIP | ||
6549 | if test -n "$STRIP"; then | ||
6550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
6551 | $as_echo "$STRIP" >&6; } | ||
6552 | else | ||
6553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6554 | $as_echo "no" >&6; } | ||
6555 | fi | ||
6556 | |||
6557 | |||
6558 | fi | ||
6559 | if test -z "$ac_cv_prog_STRIP"; then | ||
6560 | ac_ct_STRIP=$STRIP | ||
6561 | # Extract the first word of "strip", so it can be a program name with args. | ||
6562 | set dummy strip; ac_word=$2 | ||
6563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6564 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6565 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
6566 | $as_echo_n "(cached) " >&6 | ||
6567 | else | ||
6568 | if test -n "$ac_ct_STRIP"; then | ||
6569 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
6570 | else | ||
6571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6572 | for as_dir in $PATH | ||
6573 | do | ||
6574 | IFS=$as_save_IFS | ||
6575 | test -z "$as_dir" && as_dir=. | ||
6576 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6577 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6578 | ac_cv_prog_ac_ct_STRIP="strip" | ||
6579 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6580 | break 2 | ||
6581 | fi | ||
6582 | done | ||
6583 | done | ||
6584 | IFS=$as_save_IFS | ||
6585 | |||
6586 | fi | ||
6587 | fi | ||
6588 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
6589 | if test -n "$ac_ct_STRIP"; then | ||
6590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
6591 | $as_echo "$ac_ct_STRIP" >&6; } | ||
6592 | else | ||
6593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6594 | $as_echo "no" >&6; } | ||
6595 | fi | ||
6596 | |||
6597 | if test "x$ac_ct_STRIP" = x; then | ||
6598 | STRIP=":" | ||
6599 | else | ||
6600 | case $cross_compiling:$ac_tool_warned in | ||
6601 | yes:) | ||
6602 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6603 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6604 | ac_tool_warned=yes ;; | ||
6605 | esac | ||
6606 | STRIP=$ac_ct_STRIP | ||
6607 | fi | ||
6608 | else | ||
6609 | STRIP="$ac_cv_prog_STRIP" | ||
6610 | fi | ||
6611 | |||
6612 | test -z "$STRIP" && STRIP=: | ||
6613 | |||
6614 | |||
6615 | |||
6616 | |||
6617 | |||
6618 | |||
6619 | if test -n "$ac_tool_prefix"; then | ||
6620 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
6621 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
6622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6623 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6624 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | ||
6625 | $as_echo_n "(cached) " >&6 | ||
6626 | else | ||
6627 | if test -n "$RANLIB"; then | ||
6628 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
6629 | else | ||
6630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6631 | for as_dir in $PATH | ||
6632 | do | ||
6633 | IFS=$as_save_IFS | ||
6634 | test -z "$as_dir" && as_dir=. | ||
6635 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6636 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6637 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
6638 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6639 | break 2 | ||
6640 | fi | ||
6641 | done | ||
6642 | done | ||
6643 | IFS=$as_save_IFS | ||
6644 | |||
6645 | fi | ||
6646 | fi | ||
6647 | RANLIB=$ac_cv_prog_RANLIB | ||
6648 | if test -n "$RANLIB"; then | ||
6649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | ||
6650 | $as_echo "$RANLIB" >&6; } | ||
6651 | else | ||
6652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6653 | $as_echo "no" >&6; } | ||
6654 | fi | ||
6655 | |||
6656 | |||
6657 | fi | ||
6658 | if test -z "$ac_cv_prog_RANLIB"; then | ||
6659 | ac_ct_RANLIB=$RANLIB | ||
6660 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
6661 | set dummy ranlib; ac_word=$2 | ||
6662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6663 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6664 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | ||
6665 | $as_echo_n "(cached) " >&6 | ||
6666 | else | ||
6667 | if test -n "$ac_ct_RANLIB"; then | ||
6668 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
6669 | else | ||
6670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6671 | for as_dir in $PATH | ||
6672 | do | ||
6673 | IFS=$as_save_IFS | ||
6674 | test -z "$as_dir" && as_dir=. | ||
6675 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6676 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6677 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
6678 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6679 | break 2 | ||
6680 | fi | ||
6681 | done | ||
6682 | done | ||
6683 | IFS=$as_save_IFS | ||
6684 | |||
6685 | fi | ||
6686 | fi | ||
6687 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
6688 | if test -n "$ac_ct_RANLIB"; then | ||
6689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | ||
6690 | $as_echo "$ac_ct_RANLIB" >&6; } | ||
6691 | else | ||
6692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6693 | $as_echo "no" >&6; } | ||
6694 | fi | ||
6695 | |||
6696 | if test "x$ac_ct_RANLIB" = x; then | ||
6697 | RANLIB=":" | ||
6698 | else | ||
6699 | case $cross_compiling:$ac_tool_warned in | ||
6700 | yes:) | ||
6701 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6702 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6703 | ac_tool_warned=yes ;; | ||
6704 | esac | ||
6705 | RANLIB=$ac_ct_RANLIB | ||
6706 | fi | ||
6707 | else | ||
6708 | RANLIB="$ac_cv_prog_RANLIB" | ||
6709 | fi | ||
6710 | |||
6711 | test -z "$RANLIB" && RANLIB=: | ||
6712 | |||
6713 | |||
6714 | |||
6715 | |||
6716 | |||
6717 | |||
6718 | # Determine commands to create old-style static archives. | ||
6719 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | ||
6720 | old_postinstall_cmds='chmod 644 $oldlib' | ||
6721 | old_postuninstall_cmds= | ||
6722 | |||
6723 | if test -n "$RANLIB"; then | ||
6724 | case $host_os in | ||
6725 | openbsd*) | ||
6726 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | ||
6727 | ;; | ||
6728 | *) | ||
6729 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | ||
6730 | ;; | ||
6731 | esac | ||
6732 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | ||
6733 | fi | ||
6734 | |||
6735 | |||
6736 | |||
6737 | |||
6738 | |||
6739 | |||
6740 | |||
6741 | |||
6742 | |||
6743 | |||
6744 | |||
6745 | |||
6746 | |||
6747 | |||
6748 | |||
6749 | |||
6750 | |||
6751 | |||
6752 | |||
6753 | |||
6754 | |||
6755 | |||
6756 | |||
6757 | |||
6758 | |||
6759 | |||
6760 | |||
6761 | |||
6762 | |||
6763 | |||
6764 | |||
6765 | |||
6766 | |||
6767 | |||
6768 | # If no C compiler was specified, use CC. | ||
6769 | LTCC=${LTCC-"$CC"} | ||
6770 | |||
6771 | # If no C compiler flags were specified, use CFLAGS. | ||
6772 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
6773 | |||
6774 | # Allow CC to be a program name with arguments. | ||
6775 | compiler=$CC | ||
6776 | |||
6777 | |||
6778 | # Check for command to grab the raw symbol name followed by C symbol from nm. | ||
6779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | ||
6780 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | ||
6781 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | ||
6782 | $as_echo_n "(cached) " >&6 | ||
6783 | else | ||
6784 | |||
6785 | # These are sane defaults that work on at least a few old systems. | ||
6786 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | ||
6787 | |||
6788 | # Character class describing NM global symbol codes. | ||
6789 | symcode='[BCDEGRST]' | ||
6790 | |||
6791 | # Regexp to match symbols that can be accessed directly from C. | ||
6792 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | ||
6793 | |||
6794 | # Define system-specific variables. | ||
6795 | case $host_os in | ||
6796 | aix*) | ||
6797 | symcode='[BCDT]' | ||
6798 | ;; | ||
6799 | cygwin* | mingw* | pw32*) | ||
6800 | symcode='[ABCDGISTW]' | ||
6801 | ;; | ||
6802 | hpux*) | ||
6803 | if test "$host_cpu" = ia64; then | ||
6804 | symcode='[ABCDEGRST]' | ||
6805 | fi | ||
6806 | ;; | ||
6807 | irix* | nonstopux*) | ||
6808 | symcode='[BCDEGRST]' | ||
6809 | ;; | ||
6810 | osf*) | ||
6811 | symcode='[BCDEGQRST]' | ||
6812 | ;; | ||
6813 | solaris*) | ||
6814 | symcode='[BDRT]' | ||
6815 | ;; | ||
6816 | sco3.2v5*) | ||
6817 | symcode='[DT]' | ||
6818 | ;; | ||
6819 | sysv4.2uw2*) | ||
6820 | symcode='[DT]' | ||
6821 | ;; | ||
6822 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | ||
6823 | symcode='[ABDT]' | ||
6824 | ;; | ||
6825 | sysv4) | ||
6826 | symcode='[DFNSTU]' | ||
6827 | ;; | ||
6828 | esac | ||
6829 | |||
6830 | # If we're using GNU nm, then use its standard symbol codes. | ||
6831 | case `$NM -V 2>&1` in | ||
6832 | *GNU* | *'with BFD'*) | ||
6833 | symcode='[ABCDGIRSTW]' ;; | ||
6834 | esac | ||
6835 | |||
6836 | # Transform an extracted symbol line into a proper C declaration. | ||
6837 | # Some systems (esp. on ia64) link data and code symbols differently, | ||
6838 | # so use this general approach. | ||
6839 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
6840 | |||
6841 | # Transform an extracted symbol line into symbol name and symbol address | ||
6842 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
6843 | 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'" | ||
6844 | |||
6845 | # Handle CRLF in mingw tool chain | ||
6846 | opt_cr= | ||
6847 | case $build_os in | ||
6848 | mingw*) | ||
6849 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | ||
6850 | ;; | ||
6851 | esac | ||
6852 | |||
6853 | # Try without a prefix underscore, then with it. | ||
6854 | for ac_symprfx in "" "_"; do | ||
6855 | |||
6856 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | ||
6857 | symxfrm="\\1 $ac_symprfx\\2 \\2" | ||
6858 | |||
6859 | # Write the raw and C identifiers. | ||
6860 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
6861 | # Fake it for dumpbin and say T for any non-static function | ||
6862 | # and D for any global variable. | ||
6863 | # Also find C++ and __fastcall symbols from MSVC++, | ||
6864 | # which start with @ or ?. | ||
6865 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | ||
6866 | " {last_section=section; section=\$ 3};"\ | ||
6867 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | ||
6868 | " \$ 0!~/External *\|/{next};"\ | ||
6869 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | ||
6870 | " {if(hide[section]) next};"\ | ||
6871 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | ||
6872 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | ||
6873 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | ||
6874 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | ||
6875 | " ' prfx=^$ac_symprfx" | ||
6876 | else | ||
6877 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
6878 | fi | ||
6879 | |||
6880 | # Check to see that the pipe works correctly. | ||
6881 | pipe_works=no | ||
6882 | |||
6883 | rm -f conftest* | ||
6884 | cat > conftest.$ac_ext <<_LT_EOF | ||
6885 | #ifdef __cplusplus | ||
6886 | extern "C" { | ||
6887 | #endif | ||
6888 | char nm_test_var; | ||
6889 | void nm_test_func(void); | ||
6890 | void nm_test_func(void){} | ||
6891 | #ifdef __cplusplus | ||
6892 | } | ||
6893 | #endif | ||
6894 | int main(){nm_test_var='a';nm_test_func();return(0);} | ||
6895 | _LT_EOF | ||
6896 | |||
6897 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
6898 | (eval $ac_compile) 2>&5 | ||
6899 | ac_status=$? | ||
6900 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
6901 | test $ac_status = 0; }; then | ||
6902 | # Now try to grab the symbols. | ||
6903 | nlist=conftest.nm | ||
6904 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 | ||
6905 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | ||
6906 | ac_status=$? | ||
6907 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
6908 | test $ac_status = 0; } && test -s "$nlist"; then | ||
6909 | # Try sorting and uniquifying the output. | ||
6910 | if sort "$nlist" | uniq > "$nlist"T; then | ||
6911 | mv -f "$nlist"T "$nlist" | ||
6912 | else | ||
6913 | rm -f "$nlist"T | ||
6914 | fi | ||
6915 | |||
6916 | # Make sure that we snagged all the symbols we need. | ||
6917 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | ||
6918 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | ||
6919 | cat <<_LT_EOF > conftest.$ac_ext | ||
6920 | #ifdef __cplusplus | ||
6921 | extern "C" { | ||
6922 | #endif | ||
6923 | |||
6924 | _LT_EOF | ||
6925 | # Now generate the symbol file. | ||
6926 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | ||
6927 | |||
6928 | cat <<_LT_EOF >> conftest.$ac_ext | ||
6929 | |||
6930 | /* The mapping between symbol names and symbols. */ | ||
6931 | const struct { | ||
6932 | const char *name; | ||
6933 | void *address; | ||
6934 | } | ||
6935 | lt__PROGRAM__LTX_preloaded_symbols[] = | ||
6936 | { | ||
6937 | { "@PROGRAM@", (void *) 0 }, | ||
6938 | _LT_EOF | ||
6939 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | ||
6940 | cat <<\_LT_EOF >> conftest.$ac_ext | ||
6941 | {0, (void *) 0} | ||
6942 | }; | ||
6943 | |||
6944 | /* This works around a problem in FreeBSD linker */ | ||
6945 | #ifdef FREEBSD_WORKAROUND | ||
6946 | static const void *lt_preloaded_setup() { | ||
6947 | return lt__PROGRAM__LTX_preloaded_symbols; | ||
6948 | } | ||
6949 | #endif | ||
6950 | |||
6951 | #ifdef __cplusplus | ||
6952 | } | ||
6953 | #endif | ||
6954 | _LT_EOF | ||
6955 | # Now try linking the two files. | ||
6956 | mv conftest.$ac_objext conftstm.$ac_objext | ||
6957 | lt_save_LIBS="$LIBS" | ||
6958 | lt_save_CFLAGS="$CFLAGS" | ||
6959 | LIBS="conftstm.$ac_objext" | ||
6960 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | ||
6961 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
6962 | (eval $ac_link) 2>&5 | ||
6963 | ac_status=$? | ||
6964 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
6965 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | ||
6966 | pipe_works=yes | ||
6967 | fi | ||
6968 | LIBS="$lt_save_LIBS" | ||
6969 | CFLAGS="$lt_save_CFLAGS" | ||
6970 | else | ||
6971 | echo "cannot find nm_test_func in $nlist" >&5 | ||
6972 | fi | ||
6973 | else | ||
6974 | echo "cannot find nm_test_var in $nlist" >&5 | ||
6975 | fi | ||
6976 | else | ||
6977 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | ||
6978 | fi | ||
6979 | else | ||
6980 | echo "$progname: failed program was:" >&5 | ||
6981 | cat conftest.$ac_ext >&5 | ||
6982 | fi | ||
6983 | rm -rf conftest* conftst* | ||
6984 | |||
6985 | # Do not use the global_symbol_pipe unless it works. | ||
6986 | if test "$pipe_works" = yes; then | ||
6987 | break | ||
6988 | else | ||
6989 | lt_cv_sys_global_symbol_pipe= | ||
6990 | fi | ||
6991 | done | ||
6992 | |||
6993 | fi | ||
6994 | |||
6995 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | ||
6996 | lt_cv_sys_global_symbol_to_cdecl= | ||
6997 | fi | ||
6998 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | ||
6999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | ||
7000 | $as_echo "failed" >&6; } | ||
7001 | else | ||
7002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | ||
7003 | $as_echo "ok" >&6; } | ||
7004 | fi | ||
7005 | |||
7006 | |||
7007 | |||
7008 | |||
7009 | |||
7010 | |||
7011 | |||
7012 | |||
7013 | |||
7014 | |||
7015 | |||
7016 | |||
7017 | |||
7018 | |||
7019 | |||
7020 | |||
7021 | |||
7022 | |||
7023 | |||
7024 | |||
7025 | |||
7026 | |||
7027 | # Check whether --enable-libtool-lock was given. | ||
7028 | if test "${enable_libtool_lock+set}" = set; then : | ||
7029 | enableval=$enable_libtool_lock; | ||
7030 | fi | ||
7031 | |||
7032 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
7033 | |||
7034 | # Some flags need to be propagated to the compiler or linker for good | ||
7035 | # libtool support. | ||
7036 | case $host in | ||
7037 | ia64-*-hpux*) | ||
7038 | # Find out which ABI we are using. | ||
7039 | echo 'int i;' > conftest.$ac_ext | ||
7040 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
7041 | (eval $ac_compile) 2>&5 | ||
7042 | ac_status=$? | ||
7043 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7044 | test $ac_status = 0; }; then | ||
7045 | case `/usr/bin/file conftest.$ac_objext` in | ||
7046 | *ELF-32*) | ||
7047 | HPUX_IA64_MODE="32" | ||
7048 | ;; | ||
7049 | *ELF-64*) | ||
7050 | HPUX_IA64_MODE="64" | ||
7051 | ;; | ||
7052 | esac | ||
7053 | fi | ||
7054 | rm -rf conftest* | ||
7055 | ;; | ||
7056 | *-*-irix6*) | ||
7057 | # Find out which ABI we are using. | ||
7058 | echo '#line 7058 "configure"' > conftest.$ac_ext | ||
7059 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
7060 | (eval $ac_compile) 2>&5 | ||
7061 | ac_status=$? | ||
7062 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7063 | test $ac_status = 0; }; then | ||
7064 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
7065 | case `/usr/bin/file conftest.$ac_objext` in | ||
7066 | *32-bit*) | ||
7067 | LD="${LD-ld} -melf32bsmip" | ||
7068 | ;; | ||
7069 | *N32*) | ||
7070 | LD="${LD-ld} -melf32bmipn32" | ||
7071 | ;; | ||
7072 | *64-bit*) | ||
7073 | LD="${LD-ld} -melf64bmip" | ||
7074 | ;; | ||
7075 | esac | ||
7076 | else | ||
7077 | case `/usr/bin/file conftest.$ac_objext` in | ||
7078 | *32-bit*) | ||
7079 | LD="${LD-ld} -32" | ||
7080 | ;; | ||
7081 | *N32*) | ||
7082 | LD="${LD-ld} -n32" | ||
7083 | ;; | ||
7084 | *64-bit*) | ||
7085 | LD="${LD-ld} -64" | ||
7086 | ;; | ||
7087 | esac | ||
7088 | fi | ||
7089 | fi | ||
7090 | rm -rf conftest* | ||
7091 | ;; | ||
7092 | |||
7093 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | ||
7094 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | ||
7095 | # Find out which ABI we are using. | ||
7096 | echo 'int i;' > conftest.$ac_ext | ||
7097 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
7098 | (eval $ac_compile) 2>&5 | ||
7099 | ac_status=$? | ||
7100 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7101 | test $ac_status = 0; }; then | ||
7102 | case `/usr/bin/file conftest.o` in | ||
7103 | *32-bit*) | ||
7104 | case $host in | ||
7105 | x86_64-*kfreebsd*-gnu) | ||
7106 | LD="${LD-ld} -m elf_i386_fbsd" | ||
7107 | ;; | ||
7108 | x86_64-*linux*) | ||
7109 | LD="${LD-ld} -m elf_i386" | ||
7110 | ;; | ||
7111 | ppc64-*linux*|powerpc64-*linux*) | ||
7112 | LD="${LD-ld} -m elf32ppclinux" | ||
7113 | ;; | ||
7114 | s390x-*linux*) | ||
7115 | LD="${LD-ld} -m elf_s390" | ||
7116 | ;; | ||
7117 | sparc64-*linux*) | ||
7118 | LD="${LD-ld} -m elf32_sparc" | ||
7119 | ;; | ||
7120 | esac | ||
7121 | ;; | ||
7122 | *64-bit*) | ||
7123 | case $host in | ||
7124 | x86_64-*kfreebsd*-gnu) | ||
7125 | LD="${LD-ld} -m elf_x86_64_fbsd" | ||
7126 | ;; | ||
7127 | x86_64-*linux*) | ||
7128 | LD="${LD-ld} -m elf_x86_64" | ||
7129 | ;; | ||
7130 | ppc*-*linux*|powerpc*-*linux*) | ||
7131 | LD="${LD-ld} -m elf64ppc" | ||
7132 | ;; | ||
7133 | s390*-*linux*|s390*-*tpf*) | ||
7134 | LD="${LD-ld} -m elf64_s390" | ||
7135 | ;; | ||
7136 | sparc*-*linux*) | ||
7137 | LD="${LD-ld} -m elf64_sparc" | ||
7138 | ;; | ||
7139 | esac | ||
7140 | ;; | ||
7141 | esac | ||
7142 | fi | ||
7143 | rm -rf conftest* | ||
7144 | ;; | ||
7145 | |||
7146 | *-*-sco3.2v5*) | ||
7147 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | ||
7148 | SAVE_CFLAGS="$CFLAGS" | ||
7149 | CFLAGS="$CFLAGS -belf" | ||
7150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | ||
7151 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | ||
7152 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | ||
7153 | $as_echo_n "(cached) " >&6 | ||
7154 | else | ||
7155 | ac_ext=c | ||
7156 | ac_cpp='$CPP $CPPFLAGS' | ||
7157 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
7158 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
7159 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
7160 | |||
7161 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7162 | /* end confdefs.h. */ | ||
7163 | |||
7164 | int | ||
7165 | main () | ||
7166 | { | ||
7167 | |||
7168 | ; | ||
7169 | return 0; | ||
7170 | } | ||
7171 | _ACEOF | ||
7172 | if ac_fn_c_try_link "$LINENO"; then : | ||
7173 | lt_cv_cc_needs_belf=yes | ||
7174 | else | ||
7175 | lt_cv_cc_needs_belf=no | ||
7176 | fi | ||
7177 | rm -f core conftest.err conftest.$ac_objext \ | ||
7178 | conftest$ac_exeext conftest.$ac_ext | ||
7179 | ac_ext=c | ||
7180 | ac_cpp='$CPP $CPPFLAGS' | ||
7181 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
7182 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
7183 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
7184 | |||
7185 | fi | ||
7186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | ||
7187 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | ||
7188 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | ||
7189 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | ||
7190 | CFLAGS="$SAVE_CFLAGS" | ||
7191 | fi | ||
7192 | ;; | ||
7193 | sparc*-*solaris*) | ||
7194 | # Find out which ABI we are using. | ||
7195 | echo 'int i;' > conftest.$ac_ext | ||
7196 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
7197 | (eval $ac_compile) 2>&5 | ||
7198 | ac_status=$? | ||
7199 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7200 | test $ac_status = 0; }; then | ||
7201 | case `/usr/bin/file conftest.o` in | ||
7202 | *64-bit*) | ||
7203 | case $lt_cv_prog_gnu_ld in | ||
7204 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | ||
7205 | *) | ||
7206 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | ||
7207 | LD="${LD-ld} -64" | ||
7208 | fi | ||
7209 | ;; | ||
7210 | esac | ||
7211 | ;; | ||
7212 | esac | ||
7213 | fi | ||
7214 | rm -rf conftest* | ||
7215 | ;; | ||
7216 | esac | ||
7217 | |||
7218 | need_locks="$enable_libtool_lock" | ||
7219 | |||
7220 | |||
7221 | case $host_os in | ||
7222 | rhapsody* | darwin*) | ||
7223 | if test -n "$ac_tool_prefix"; then | ||
7224 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | ||
7225 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | ||
7226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7227 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7228 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | ||
7229 | $as_echo_n "(cached) " >&6 | ||
7230 | else | ||
7231 | if test -n "$DSYMUTIL"; then | ||
7232 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | ||
7233 | else | ||
7234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7235 | for as_dir in $PATH | ||
7236 | do | ||
7237 | IFS=$as_save_IFS | ||
7238 | test -z "$as_dir" && as_dir=. | ||
7239 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7240 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7241 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | ||
7242 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7243 | break 2 | ||
7244 | fi | ||
7245 | done | ||
7246 | done | ||
7247 | IFS=$as_save_IFS | ||
7248 | |||
7249 | fi | ||
7250 | fi | ||
7251 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | ||
7252 | if test -n "$DSYMUTIL"; then | ||
7253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | ||
7254 | $as_echo "$DSYMUTIL" >&6; } | ||
7255 | else | ||
7256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7257 | $as_echo "no" >&6; } | ||
7258 | fi | ||
7259 | |||
7260 | |||
7261 | fi | ||
7262 | if test -z "$ac_cv_prog_DSYMUTIL"; then | ||
7263 | ac_ct_DSYMUTIL=$DSYMUTIL | ||
7264 | # Extract the first word of "dsymutil", so it can be a program name with args. | ||
7265 | set dummy dsymutil; ac_word=$2 | ||
7266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7267 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7268 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | ||
7269 | $as_echo_n "(cached) " >&6 | ||
7270 | else | ||
7271 | if test -n "$ac_ct_DSYMUTIL"; then | ||
7272 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | ||
7273 | else | ||
7274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7275 | for as_dir in $PATH | ||
7276 | do | ||
7277 | IFS=$as_save_IFS | ||
7278 | test -z "$as_dir" && as_dir=. | ||
7279 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7280 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7281 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | ||
7282 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7283 | break 2 | ||
7284 | fi | ||
7285 | done | ||
7286 | done | ||
7287 | IFS=$as_save_IFS | ||
7288 | |||
7289 | fi | ||
7290 | fi | ||
7291 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | ||
7292 | if test -n "$ac_ct_DSYMUTIL"; then | ||
7293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | ||
7294 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | ||
7295 | else | ||
7296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7297 | $as_echo "no" >&6; } | ||
7298 | fi | ||
7299 | |||
7300 | if test "x$ac_ct_DSYMUTIL" = x; then | ||
7301 | DSYMUTIL=":" | ||
7302 | else | ||
7303 | case $cross_compiling:$ac_tool_warned in | ||
7304 | yes:) | ||
7305 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
7306 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
7307 | ac_tool_warned=yes ;; | ||
7308 | esac | ||
7309 | DSYMUTIL=$ac_ct_DSYMUTIL | ||
7310 | fi | ||
7311 | else | ||
7312 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | ||
7313 | fi | ||
7314 | |||
7315 | if test -n "$ac_tool_prefix"; then | ||
7316 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | ||
7317 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | ||
7318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7319 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7320 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | ||
7321 | $as_echo_n "(cached) " >&6 | ||
7322 | else | ||
7323 | if test -n "$NMEDIT"; then | ||
7324 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | ||
7325 | else | ||
7326 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7327 | for as_dir in $PATH | ||
7328 | do | ||
7329 | IFS=$as_save_IFS | ||
7330 | test -z "$as_dir" && as_dir=. | ||
7331 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7332 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7333 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | ||
7334 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7335 | break 2 | ||
7336 | fi | ||
7337 | done | ||
7338 | done | ||
7339 | IFS=$as_save_IFS | ||
7340 | |||
7341 | fi | ||
7342 | fi | ||
7343 | NMEDIT=$ac_cv_prog_NMEDIT | ||
7344 | if test -n "$NMEDIT"; then | ||
7345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | ||
7346 | $as_echo "$NMEDIT" >&6; } | ||
7347 | else | ||
7348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7349 | $as_echo "no" >&6; } | ||
7350 | fi | ||
7351 | |||
7352 | |||
7353 | fi | ||
7354 | if test -z "$ac_cv_prog_NMEDIT"; then | ||
7355 | ac_ct_NMEDIT=$NMEDIT | ||
7356 | # Extract the first word of "nmedit", so it can be a program name with args. | ||
7357 | set dummy nmedit; ac_word=$2 | ||
7358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7359 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7360 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | ||
7361 | $as_echo_n "(cached) " >&6 | ||
7362 | else | ||
7363 | if test -n "$ac_ct_NMEDIT"; then | ||
7364 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | ||
7365 | else | ||
7366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7367 | for as_dir in $PATH | ||
7368 | do | ||
7369 | IFS=$as_save_IFS | ||
7370 | test -z "$as_dir" && as_dir=. | ||
7371 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7372 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7373 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | ||
7374 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7375 | break 2 | ||
7376 | fi | ||
7377 | done | ||
7378 | done | ||
7379 | IFS=$as_save_IFS | ||
7380 | |||
7381 | fi | ||
7382 | fi | ||
7383 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | ||
7384 | if test -n "$ac_ct_NMEDIT"; then | ||
7385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | ||
7386 | $as_echo "$ac_ct_NMEDIT" >&6; } | ||
7387 | else | ||
7388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7389 | $as_echo "no" >&6; } | ||
7390 | fi | ||
7391 | |||
7392 | if test "x$ac_ct_NMEDIT" = x; then | ||
7393 | NMEDIT=":" | ||
7394 | else | ||
7395 | case $cross_compiling:$ac_tool_warned in | ||
7396 | yes:) | ||
7397 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
7398 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
7399 | ac_tool_warned=yes ;; | ||
7400 | esac | ||
7401 | NMEDIT=$ac_ct_NMEDIT | ||
7402 | fi | ||
7403 | else | ||
7404 | NMEDIT="$ac_cv_prog_NMEDIT" | ||
7405 | fi | ||
7406 | |||
7407 | if test -n "$ac_tool_prefix"; then | ||
7408 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | ||
7409 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | ||
7410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7411 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7412 | if test "${ac_cv_prog_LIPO+set}" = set; then : | ||
7413 | $as_echo_n "(cached) " >&6 | ||
7414 | else | ||
7415 | if test -n "$LIPO"; then | ||
7416 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | ||
7417 | else | ||
7418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7419 | for as_dir in $PATH | ||
7420 | do | ||
7421 | IFS=$as_save_IFS | ||
7422 | test -z "$as_dir" && as_dir=. | ||
7423 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7424 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7425 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | ||
7426 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7427 | break 2 | ||
7428 | fi | ||
7429 | done | ||
7430 | done | ||
7431 | IFS=$as_save_IFS | ||
7432 | |||
7433 | fi | ||
7434 | fi | ||
7435 | LIPO=$ac_cv_prog_LIPO | ||
7436 | if test -n "$LIPO"; then | ||
7437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | ||
7438 | $as_echo "$LIPO" >&6; } | ||
7439 | else | ||
7440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7441 | $as_echo "no" >&6; } | ||
7442 | fi | ||
7443 | |||
7444 | |||
7445 | fi | ||
7446 | if test -z "$ac_cv_prog_LIPO"; then | ||
7447 | ac_ct_LIPO=$LIPO | ||
7448 | # Extract the first word of "lipo", so it can be a program name with args. | ||
7449 | set dummy lipo; ac_word=$2 | ||
7450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7451 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7452 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | ||
7453 | $as_echo_n "(cached) " >&6 | ||
7454 | else | ||
7455 | if test -n "$ac_ct_LIPO"; then | ||
7456 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | ||
7457 | else | ||
7458 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7459 | for as_dir in $PATH | ||
7460 | do | ||
7461 | IFS=$as_save_IFS | ||
7462 | test -z "$as_dir" && as_dir=. | ||
7463 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7464 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7465 | ac_cv_prog_ac_ct_LIPO="lipo" | ||
7466 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7467 | break 2 | ||
7468 | fi | ||
7469 | done | ||
7470 | done | ||
7471 | IFS=$as_save_IFS | ||
7472 | |||
7473 | fi | ||
7474 | fi | ||
7475 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | ||
7476 | if test -n "$ac_ct_LIPO"; then | ||
7477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | ||
7478 | $as_echo "$ac_ct_LIPO" >&6; } | ||
7479 | else | ||
7480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7481 | $as_echo "no" >&6; } | ||
7482 | fi | ||
7483 | |||
7484 | if test "x$ac_ct_LIPO" = x; then | ||
7485 | LIPO=":" | ||
7486 | else | ||
7487 | case $cross_compiling:$ac_tool_warned in | ||
7488 | yes:) | ||
7489 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
7490 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
7491 | ac_tool_warned=yes ;; | ||
7492 | esac | ||
7493 | LIPO=$ac_ct_LIPO | ||
7494 | fi | ||
7495 | else | ||
7496 | LIPO="$ac_cv_prog_LIPO" | ||
7497 | fi | ||
7498 | |||
7499 | if test -n "$ac_tool_prefix"; then | ||
7500 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | ||
7501 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | ||
7502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7503 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7504 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | ||
7505 | $as_echo_n "(cached) " >&6 | ||
7506 | else | ||
7507 | if test -n "$OTOOL"; then | ||
7508 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | ||
7509 | else | ||
7510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7511 | for as_dir in $PATH | ||
7512 | do | ||
7513 | IFS=$as_save_IFS | ||
7514 | test -z "$as_dir" && as_dir=. | ||
7515 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7516 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7517 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | ||
7518 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7519 | break 2 | ||
7520 | fi | ||
7521 | done | ||
7522 | done | ||
7523 | IFS=$as_save_IFS | ||
7524 | |||
7525 | fi | ||
7526 | fi | ||
7527 | OTOOL=$ac_cv_prog_OTOOL | ||
7528 | if test -n "$OTOOL"; then | ||
7529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | ||
7530 | $as_echo "$OTOOL" >&6; } | ||
7531 | else | ||
7532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7533 | $as_echo "no" >&6; } | ||
7534 | fi | ||
7535 | |||
7536 | |||
7537 | fi | ||
7538 | if test -z "$ac_cv_prog_OTOOL"; then | ||
7539 | ac_ct_OTOOL=$OTOOL | ||
7540 | # Extract the first word of "otool", so it can be a program name with args. | ||
7541 | set dummy otool; ac_word=$2 | ||
7542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7543 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7544 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | ||
7545 | $as_echo_n "(cached) " >&6 | ||
7546 | else | ||
7547 | if test -n "$ac_ct_OTOOL"; then | ||
7548 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | ||
7549 | else | ||
7550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7551 | for as_dir in $PATH | ||
7552 | do | ||
7553 | IFS=$as_save_IFS | ||
7554 | test -z "$as_dir" && as_dir=. | ||
7555 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7556 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7557 | ac_cv_prog_ac_ct_OTOOL="otool" | ||
7558 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7559 | break 2 | ||
7560 | fi | ||
7561 | done | ||
7562 | done | ||
7563 | IFS=$as_save_IFS | ||
7564 | |||
7565 | fi | ||
7566 | fi | ||
7567 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | ||
7568 | if test -n "$ac_ct_OTOOL"; then | ||
7569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | ||
7570 | $as_echo "$ac_ct_OTOOL" >&6; } | ||
7571 | else | ||
7572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7573 | $as_echo "no" >&6; } | ||
7574 | fi | ||
7575 | |||
7576 | if test "x$ac_ct_OTOOL" = x; then | ||
7577 | OTOOL=":" | ||
7578 | else | ||
7579 | case $cross_compiling:$ac_tool_warned in | ||
7580 | yes:) | ||
7581 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
7582 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
7583 | ac_tool_warned=yes ;; | ||
7584 | esac | ||
7585 | OTOOL=$ac_ct_OTOOL | ||
7586 | fi | ||
7587 | else | ||
7588 | OTOOL="$ac_cv_prog_OTOOL" | ||
7589 | fi | ||
7590 | |||
7591 | if test -n "$ac_tool_prefix"; then | ||
7592 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | ||
7593 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | ||
7594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7595 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7596 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | ||
7597 | $as_echo_n "(cached) " >&6 | ||
7598 | else | ||
7599 | if test -n "$OTOOL64"; then | ||
7600 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | ||
7601 | else | ||
7602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7603 | for as_dir in $PATH | ||
7604 | do | ||
7605 | IFS=$as_save_IFS | ||
7606 | test -z "$as_dir" && as_dir=. | ||
7607 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7608 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7609 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | ||
7610 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7611 | break 2 | ||
7612 | fi | ||
7613 | done | ||
7614 | done | ||
7615 | IFS=$as_save_IFS | ||
7616 | |||
7617 | fi | ||
7618 | fi | ||
7619 | OTOOL64=$ac_cv_prog_OTOOL64 | ||
7620 | if test -n "$OTOOL64"; then | ||
7621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | ||
7622 | $as_echo "$OTOOL64" >&6; } | ||
7623 | else | ||
7624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7625 | $as_echo "no" >&6; } | ||
7626 | fi | ||
7627 | |||
7628 | |||
7629 | fi | ||
7630 | if test -z "$ac_cv_prog_OTOOL64"; then | ||
7631 | ac_ct_OTOOL64=$OTOOL64 | ||
7632 | # Extract the first word of "otool64", so it can be a program name with args. | ||
7633 | set dummy otool64; ac_word=$2 | ||
7634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7635 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7636 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | ||
7637 | $as_echo_n "(cached) " >&6 | ||
7638 | else | ||
7639 | if test -n "$ac_ct_OTOOL64"; then | ||
7640 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | ||
7641 | else | ||
7642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7643 | for as_dir in $PATH | ||
7644 | do | ||
7645 | IFS=$as_save_IFS | ||
7646 | test -z "$as_dir" && as_dir=. | ||
7647 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7648 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7649 | ac_cv_prog_ac_ct_OTOOL64="otool64" | ||
7650 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7651 | break 2 | ||
7652 | fi | ||
7653 | done | ||
7654 | done | ||
7655 | IFS=$as_save_IFS | ||
7656 | |||
7657 | fi | ||
7658 | fi | ||
7659 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | ||
7660 | if test -n "$ac_ct_OTOOL64"; then | ||
7661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | ||
7662 | $as_echo "$ac_ct_OTOOL64" >&6; } | ||
7663 | else | ||
7664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7665 | $as_echo "no" >&6; } | ||
7666 | fi | ||
7667 | |||
7668 | if test "x$ac_ct_OTOOL64" = x; then | ||
7669 | OTOOL64=":" | ||
7670 | else | ||
7671 | case $cross_compiling:$ac_tool_warned in | ||
7672 | yes:) | ||
7673 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
7674 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
7675 | ac_tool_warned=yes ;; | ||
7676 | esac | ||
7677 | OTOOL64=$ac_ct_OTOOL64 | ||
7678 | fi | ||
7679 | else | ||
7680 | OTOOL64="$ac_cv_prog_OTOOL64" | ||
7681 | fi | ||
7682 | |||
7683 | |||
7684 | |||
7685 | |||
7686 | |||
7687 | |||
7688 | |||
7689 | |||
7690 | |||
7691 | |||
7692 | |||
7693 | |||
7694 | |||
7695 | |||
7696 | |||
7697 | |||
7698 | |||
7699 | |||
7700 | |||
7701 | |||
7702 | |||
7703 | |||
7704 | |||
7705 | |||
7706 | |||
7707 | |||
7708 | |||
7709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | ||
7710 | $as_echo_n "checking for -single_module linker flag... " >&6; } | ||
7711 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | ||
7712 | $as_echo_n "(cached) " >&6 | ||
7713 | else | ||
7714 | lt_cv_apple_cc_single_mod=no | ||
7715 | if test -z "${LT_MULTI_MODULE}"; then | ||
7716 | # By default we will add the -single_module flag. You can override | ||
7717 | # by either setting the environment variable LT_MULTI_MODULE | ||
7718 | # non-empty at configure time, or by adding -multi_module to the | ||
7719 | # link flags. | ||
7720 | rm -rf libconftest.dylib* | ||
7721 | echo "int foo(void){return 1;}" > conftest.c | ||
7722 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | ||
7723 | -dynamiclib -Wl,-single_module conftest.c" >&5 | ||
7724 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | ||
7725 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | ||
7726 | _lt_result=$? | ||
7727 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | ||
7728 | lt_cv_apple_cc_single_mod=yes | ||
7729 | else | ||
7730 | cat conftest.err >&5 | ||
7731 | fi | ||
7732 | rm -rf libconftest.dylib* | ||
7733 | rm -f conftest.* | ||
7734 | fi | ||
7735 | fi | ||
7736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | ||
7737 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | ||
7738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | ||
7739 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | ||
7740 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | ||
7741 | $as_echo_n "(cached) " >&6 | ||
7742 | else | ||
7743 | lt_cv_ld_exported_symbols_list=no | ||
7744 | save_LDFLAGS=$LDFLAGS | ||
7745 | echo "_main" > conftest.sym | ||
7746 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | ||
7747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7748 | /* end confdefs.h. */ | ||
7749 | |||
7750 | int | ||
7751 | main () | ||
7752 | { | ||
7753 | |||
7754 | ; | ||
7755 | return 0; | ||
7756 | } | ||
7757 | _ACEOF | ||
7758 | if ac_fn_c_try_link "$LINENO"; then : | ||
7759 | lt_cv_ld_exported_symbols_list=yes | ||
7760 | else | ||
7761 | lt_cv_ld_exported_symbols_list=no | ||
7762 | fi | ||
7763 | rm -f core conftest.err conftest.$ac_objext \ | ||
7764 | conftest$ac_exeext conftest.$ac_ext | ||
7765 | LDFLAGS="$save_LDFLAGS" | ||
7766 | |||
7767 | fi | ||
7768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | ||
7769 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | ||
7770 | case $host_os in | ||
7771 | rhapsody* | darwin1.[012]) | ||
7772 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | ||
7773 | darwin1.*) | ||
7774 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | ||
7775 | darwin*) # darwin 5.x on | ||
7776 | # if running on 10.5 or later, the deployment target defaults | ||
7777 | # to the OS version, if on x86, and 10.4, the deployment | ||
7778 | # target defaults to 10.4. Don't you love it? | ||
7779 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | ||
7780 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | ||
7781 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | ||
7782 | 10.[012]*) | ||
7783 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | ||
7784 | 10.*) | ||
7785 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | ||
7786 | esac | ||
7787 | ;; | ||
7788 | esac | ||
7789 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | ||
7790 | _lt_dar_single_mod='$single_module' | ||
7791 | fi | ||
7792 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | ||
7793 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | ||
7794 | else | ||
7795 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
7796 | fi | ||
7797 | if test "$DSYMUTIL" != ":"; then | ||
7798 | _lt_dsymutil='~$DSYMUTIL $lib || :' | ||
7799 | else | ||
7800 | _lt_dsymutil= | ||
7801 | fi | ||
7802 | ;; | ||
7803 | esac | ||
7804 | |||
7805 | for ac_header in dlfcn.h | ||
7806 | do : | ||
7807 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | ||
7808 | " | ||
7809 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | ||
7810 | cat >>confdefs.h <<_ACEOF | ||
7811 | #define HAVE_DLFCN_H 1 | ||
7812 | _ACEOF | ||
7813 | |||
7814 | fi | ||
7815 | |||
7816 | done | ||
7817 | |||
7818 | |||
7819 | |||
7820 | # Set options | ||
7821 | |||
7822 | |||
7823 | |||
7824 | enable_dlopen=no | ||
7825 | |||
7826 | |||
7827 | |||
7828 | # Check whether --enable-shared was given. | ||
7829 | if test "${enable_shared+set}" = set; then : | ||
7830 | enableval=$enable_shared; p=${PACKAGE-default} | ||
7831 | case $enableval in | ||
7832 | yes) enable_shared=yes ;; | ||
7833 | no) enable_shared=no ;; | ||
7834 | *) | ||
7835 | enable_shared=no | ||
7836 | # Look at the argument we got. We use all the common list separators. | ||
7837 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
7838 | for pkg in $enableval; do | ||
7839 | IFS="$lt_save_ifs" | ||
7840 | if test "X$pkg" = "X$p"; then | ||
7841 | enable_shared=yes | ||
7842 | fi | ||
7843 | done | ||
7844 | IFS="$lt_save_ifs" | ||
7845 | ;; | ||
7846 | esac | ||
7847 | else | ||
7848 | enable_shared=yes | ||
7849 | fi | ||
7850 | |||
7851 | |||
7852 | |||
7853 | |||
7854 | |||
7855 | |||
7856 | |||
7857 | |||
7858 | |||
7859 | # Check whether --enable-static was given. | ||
7860 | if test "${enable_static+set}" = set; then : | ||
7861 | enableval=$enable_static; p=${PACKAGE-default} | ||
7862 | case $enableval in | ||
7863 | yes) enable_static=yes ;; | ||
7864 | no) enable_static=no ;; | ||
7865 | *) | ||
7866 | enable_static=no | ||
7867 | # Look at the argument we got. We use all the common list separators. | ||
7868 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
7869 | for pkg in $enableval; do | ||
7870 | IFS="$lt_save_ifs" | ||
7871 | if test "X$pkg" = "X$p"; then | ||
7872 | enable_static=yes | ||
7873 | fi | ||
7874 | done | ||
7875 | IFS="$lt_save_ifs" | ||
7876 | ;; | ||
7877 | esac | ||
7878 | else | ||
7879 | enable_static=yes | ||
7880 | fi | ||
7881 | |||
7882 | |||
7883 | |||
7884 | |||
7885 | |||
7886 | |||
7887 | |||
7888 | |||
7889 | |||
7890 | |||
7891 | # Check whether --with-pic was given. | ||
7892 | if test "${with_pic+set}" = set; then : | ||
7893 | withval=$with_pic; pic_mode="$withval" | ||
7894 | else | ||
7895 | pic_mode=default | ||
7896 | fi | ||
7897 | |||
7898 | |||
7899 | test -z "$pic_mode" && pic_mode=default | ||
7900 | |||
7901 | |||
7902 | |||
7903 | |||
7904 | |||
7905 | |||
7906 | |||
7907 | # Check whether --enable-fast-install was given. | ||
7908 | if test "${enable_fast_install+set}" = set; then : | ||
7909 | enableval=$enable_fast_install; p=${PACKAGE-default} | ||
7910 | case $enableval in | ||
7911 | yes) enable_fast_install=yes ;; | ||
7912 | no) enable_fast_install=no ;; | ||
7913 | *) | ||
7914 | enable_fast_install=no | ||
7915 | # Look at the argument we got. We use all the common list separators. | ||
7916 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
7917 | for pkg in $enableval; do | ||
7918 | IFS="$lt_save_ifs" | ||
7919 | if test "X$pkg" = "X$p"; then | ||
7920 | enable_fast_install=yes | ||
7921 | fi | ||
7922 | done | ||
7923 | IFS="$lt_save_ifs" | ||
7924 | ;; | ||
7925 | esac | ||
7926 | else | ||
7927 | enable_fast_install=yes | ||
7928 | fi | ||
7929 | |||
7930 | |||
7931 | |||
7932 | |||
7933 | |||
7934 | |||
7935 | |||
7936 | |||
7937 | |||
7938 | |||
7939 | |||
7940 | # This can be used to rebuild libtool when needed | ||
7941 | LIBTOOL_DEPS="$ltmain" | ||
7942 | |||
7943 | # Always use our own libtool. | ||
7944 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | ||
7945 | |||
7946 | |||
7947 | |||
7948 | |||
7949 | |||
7950 | |||
7951 | |||
7952 | |||
7953 | |||
7954 | |||
7955 | |||
7956 | |||
7957 | |||
7958 | |||
7959 | |||
7960 | |||
7961 | |||
7962 | |||
7963 | |||
7964 | |||
7965 | |||
7966 | |||
7967 | |||
7968 | |||
7969 | |||
7970 | test -z "$LN_S" && LN_S="ln -s" | ||
7971 | |||
7972 | |||
7973 | |||
7974 | |||
7975 | |||
7976 | |||
7977 | |||
7978 | |||
7979 | |||
7980 | |||
7981 | |||
7982 | |||
7983 | |||
7984 | |||
7985 | if test -n "${ZSH_VERSION+set}" ; then | ||
7986 | setopt NO_GLOB_SUBST | ||
7987 | fi | ||
7988 | |||
7989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | ||
7990 | $as_echo_n "checking for objdir... " >&6; } | ||
7991 | if test "${lt_cv_objdir+set}" = set; then : | ||
7992 | $as_echo_n "(cached) " >&6 | ||
7993 | else | ||
7994 | rm -f .libs 2>/dev/null | ||
7995 | mkdir .libs 2>/dev/null | ||
7996 | if test -d .libs; then | ||
7997 | lt_cv_objdir=.libs | ||
7998 | else | ||
7999 | # MS-DOS does not allow filenames that begin with a dot. | ||
8000 | lt_cv_objdir=_libs | ||
8001 | fi | ||
8002 | rmdir .libs 2>/dev/null | ||
8003 | fi | ||
8004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | ||
8005 | $as_echo "$lt_cv_objdir" >&6; } | ||
8006 | objdir=$lt_cv_objdir | ||
8007 | |||
8008 | |||
8009 | |||
8010 | |||
8011 | |||
8012 | cat >>confdefs.h <<_ACEOF | ||
8013 | #define LT_OBJDIR "$lt_cv_objdir/" | ||
8014 | _ACEOF | ||
8015 | |||
8016 | |||
8017 | |||
8018 | |||
8019 | |||
8020 | |||
8021 | |||
8022 | |||
8023 | |||
8024 | |||
8025 | |||
8026 | |||
8027 | |||
8028 | |||
8029 | |||
8030 | |||
8031 | |||
8032 | case $host_os in | ||
8033 | aix3*) | ||
8034 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
8035 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
8036 | # vanish in a puff of smoke. | ||
8037 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
8038 | COLLECT_NAMES= | ||
8039 | export COLLECT_NAMES | ||
8040 | fi | ||
8041 | ;; | ||
8042 | esac | ||
8043 | |||
8044 | # Sed substitution that helps us do robust quoting. It backslashifies | ||
8045 | # metacharacters that are still active within double-quoted strings. | ||
8046 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | ||
8047 | |||
8048 | # Same as above, but do not quote variable references. | ||
8049 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | ||
8050 | |||
8051 | # Sed substitution to delay expansion of an escaped shell variable in a | ||
8052 | # double_quote_subst'ed string. | ||
8053 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
8054 | |||
8055 | # Sed substitution to delay expansion of an escaped single quote. | ||
8056 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | ||
8057 | |||
8058 | # Sed substitution to avoid accidental globbing in evaled expressions | ||
8059 | no_glob_subst='s/\*/\\\*/g' | ||
8060 | |||
8061 | # Global variables: | ||
8062 | ofile=libtool | ||
8063 | can_build_shared=yes | ||
8064 | |||
8065 | # All known linkers require a `.a' archive for static linking (except MSVC, | ||
8066 | # which needs '.lib'). | ||
8067 | libext=a | ||
8068 | |||
8069 | with_gnu_ld="$lt_cv_prog_gnu_ld" | ||
8070 | |||
8071 | old_CC="$CC" | ||
8072 | old_CFLAGS="$CFLAGS" | ||
8073 | |||
8074 | # Set sane defaults for various variables | ||
8075 | test -z "$CC" && CC=cc | ||
8076 | test -z "$LTCC" && LTCC=$CC | ||
8077 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | ||
8078 | test -z "$LD" && LD=ld | ||
8079 | test -z "$ac_objext" && ac_objext=o | ||
8080 | |||
8081 | for cc_temp in $compiler""; do | ||
8082 | case $cc_temp in | ||
8083 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | ||
8084 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | ||
8085 | \-*) ;; | ||
8086 | *) break;; | ||
8087 | esac | ||
8088 | done | ||
8089 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
8090 | |||
8091 | |||
8092 | # Only perform the check for file, if the check method requires it | ||
8093 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | ||
8094 | case $deplibs_check_method in | ||
8095 | file_magic*) | ||
8096 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | ||
8097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | ||
8098 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | ||
8099 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | ||
8100 | $as_echo_n "(cached) " >&6 | ||
8101 | else | ||
8102 | case $MAGIC_CMD in | ||
8103 | [\\/*] | ?:[\\/]*) | ||
8104 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
8105 | ;; | ||
8106 | *) | ||
8107 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
8108 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
8109 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | ||
8110 | for ac_dir in $ac_dummy; do | ||
8111 | IFS="$lt_save_ifs" | ||
8112 | test -z "$ac_dir" && ac_dir=. | ||
8113 | if test -f $ac_dir/${ac_tool_prefix}file; then | ||
8114 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | ||
8115 | if test -n "$file_magic_test_file"; then | ||
8116 | case $deplibs_check_method in | ||
8117 | "file_magic "*) | ||
8118 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | ||
8119 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
8120 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
8121 | $EGREP "$file_magic_regex" > /dev/null; then | ||
8122 | : | ||
8123 | else | ||
8124 | cat <<_LT_EOF 1>&2 | ||
8125 | |||
8126 | *** Warning: the command libtool uses to detect shared libraries, | ||
8127 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
8128 | *** The result is that libtool may fail to recognize shared libraries | ||
8129 | *** as such. This will affect the creation of libtool libraries that | ||
8130 | *** depend on shared libraries, but programs linked with such libtool | ||
8131 | *** libraries will work regardless of this problem. Nevertheless, you | ||
8132 | *** may want to report the problem to your system manager and/or to | ||
8133 | *** bug-libtool@gnu.org | ||
8134 | |||
8135 | _LT_EOF | ||
8136 | fi ;; | ||
8137 | esac | ||
8138 | fi | ||
8139 | break | ||
8140 | fi | ||
8141 | done | ||
8142 | IFS="$lt_save_ifs" | ||
8143 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
8144 | ;; | ||
8145 | esac | ||
8146 | fi | ||
8147 | |||
8148 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
8149 | if test -n "$MAGIC_CMD"; then | ||
8150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | ||
8151 | $as_echo "$MAGIC_CMD" >&6; } | ||
8152 | else | ||
8153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8154 | $as_echo "no" >&6; } | ||
8155 | fi | ||
8156 | |||
8157 | |||
8158 | |||
8159 | |||
8160 | |||
8161 | if test -z "$lt_cv_path_MAGIC_CMD"; then | ||
8162 | if test -n "$ac_tool_prefix"; then | ||
8163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | ||
8164 | $as_echo_n "checking for file... " >&6; } | ||
8165 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | ||
8166 | $as_echo_n "(cached) " >&6 | ||
8167 | else | ||
8168 | case $MAGIC_CMD in | ||
8169 | [\\/*] | ?:[\\/]*) | ||
8170 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
8171 | ;; | ||
8172 | *) | ||
8173 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
8174 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
8175 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | ||
8176 | for ac_dir in $ac_dummy; do | ||
8177 | IFS="$lt_save_ifs" | ||
8178 | test -z "$ac_dir" && ac_dir=. | ||
8179 | if test -f $ac_dir/file; then | ||
8180 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | ||
8181 | if test -n "$file_magic_test_file"; then | ||
8182 | case $deplibs_check_method in | ||
8183 | "file_magic "*) | ||
8184 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | ||
8185 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
8186 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
8187 | $EGREP "$file_magic_regex" > /dev/null; then | ||
8188 | : | ||
8189 | else | ||
8190 | cat <<_LT_EOF 1>&2 | ||
8191 | |||
8192 | *** Warning: the command libtool uses to detect shared libraries, | ||
8193 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
8194 | *** The result is that libtool may fail to recognize shared libraries | ||
8195 | *** as such. This will affect the creation of libtool libraries that | ||
8196 | *** depend on shared libraries, but programs linked with such libtool | ||
8197 | *** libraries will work regardless of this problem. Nevertheless, you | ||
8198 | *** may want to report the problem to your system manager and/or to | ||
8199 | *** bug-libtool@gnu.org | ||
8200 | |||
8201 | _LT_EOF | ||
8202 | fi ;; | ||
8203 | esac | ||
8204 | fi | ||
8205 | break | ||
8206 | fi | ||
8207 | done | ||
8208 | IFS="$lt_save_ifs" | ||
8209 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
8210 | ;; | ||
8211 | esac | ||
8212 | fi | ||
8213 | |||
8214 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
8215 | if test -n "$MAGIC_CMD"; then | ||
8216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | ||
8217 | $as_echo "$MAGIC_CMD" >&6; } | ||
8218 | else | ||
8219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8220 | $as_echo "no" >&6; } | ||
8221 | fi | ||
8222 | |||
8223 | |||
8224 | else | ||
8225 | MAGIC_CMD=: | ||
8226 | fi | ||
8227 | fi | ||
8228 | |||
8229 | fi | ||
8230 | ;; | ||
8231 | esac | ||
8232 | |||
8233 | # Use C for the default configuration in the libtool script | ||
8234 | |||
8235 | lt_save_CC="$CC" | ||
8236 | ac_ext=c | ||
8237 | ac_cpp='$CPP $CPPFLAGS' | ||
8238 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
8239 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
8240 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
8241 | |||
8242 | |||
8243 | # Source file extension for C test sources. | ||
8244 | ac_ext=c | ||
8245 | |||
8246 | # Object file extension for compiled C test sources. | ||
8247 | objext=o | ||
8248 | objext=$objext | ||
8249 | |||
8250 | # Code to be used in simple compile tests | ||
8251 | lt_simple_compile_test_code="int some_variable = 0;" | ||
8252 | |||
8253 | # Code to be used in simple link tests | ||
8254 | lt_simple_link_test_code='int main(){return(0);}' | ||
8255 | |||
8256 | |||
8257 | |||
8258 | |||
8259 | |||
8260 | |||
8261 | |||
8262 | # If no C compiler was specified, use CC. | ||
8263 | LTCC=${LTCC-"$CC"} | ||
8264 | |||
8265 | # If no C compiler flags were specified, use CFLAGS. | ||
8266 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
8267 | |||
8268 | # Allow CC to be a program name with arguments. | ||
8269 | compiler=$CC | ||
8270 | |||
8271 | # Save the default compiler, since it gets overwritten when the other | ||
8272 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | ||
8273 | compiler_DEFAULT=$CC | ||
8274 | |||
8275 | # save warnings/boilerplate of simple test code | ||
8276 | ac_outfile=conftest.$ac_objext | ||
8277 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
8278 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
8279 | _lt_compiler_boilerplate=`cat conftest.err` | ||
8280 | $RM conftest* | ||
8281 | |||
8282 | ac_outfile=conftest.$ac_objext | ||
8283 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | ||
8284 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
8285 | _lt_linker_boilerplate=`cat conftest.err` | ||
8286 | $RM -r conftest* | ||
8287 | |||
8288 | |||
8289 | ## CAVEAT EMPTOR: | ||
8290 | ## There is no encapsulation within the following macros, do not change | ||
8291 | ## the running order or otherwise move them around unless you know exactly | ||
8292 | ## what you are doing... | ||
8293 | if test -n "$compiler"; then | ||
8294 | |||
8295 | lt_prog_compiler_no_builtin_flag= | ||
8296 | |||
8297 | if test "$GCC" = yes; then | ||
8298 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | ||
8299 | |||
8300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | ||
8301 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | ||
8302 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | ||
8303 | $as_echo_n "(cached) " >&6 | ||
8304 | else | ||
8305 | lt_cv_prog_compiler_rtti_exceptions=no | ||
8306 | ac_outfile=conftest.$ac_objext | ||
8307 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
8308 | lt_compiler_flag="-fno-rtti -fno-exceptions" | ||
8309 | # Insert the option either (1) after the last *FLAGS variable, or | ||
8310 | # (2) before a word containing "conftest.", or (3) at the end. | ||
8311 | # Note that $ac_compile itself does not contain backslashes and begins | ||
8312 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
8313 | # The option is referenced via a variable to avoid confusing sed. | ||
8314 | lt_compile=`echo "$ac_compile" | $SED \ | ||
8315 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
8316 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
8317 | -e 's:$: $lt_compiler_flag:'` | ||
8318 | (eval echo "\"\$as_me:8318: $lt_compile\"" >&5) | ||
8319 | (eval "$lt_compile" 2>conftest.err) | ||
8320 | ac_status=$? | ||
8321 | cat conftest.err >&5 | ||
8322 | echo "$as_me:8322: \$? = $ac_status" >&5 | ||
8323 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
8324 | # The compiler can only warn and ignore the option if not recognized | ||
8325 | # So say no if there are warnings other than the usual output. | ||
8326 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
8327 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
8328 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
8329 | lt_cv_prog_compiler_rtti_exceptions=yes | ||
8330 | fi | ||
8331 | fi | ||
8332 | $RM conftest* | ||
8333 | |||
8334 | fi | ||
8335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | ||
8336 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | ||
8337 | |||
8338 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | ||
8339 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | ||
8340 | else | ||
8341 | : | ||
8342 | fi | ||
8343 | |||
8344 | fi | ||
8345 | |||
8346 | |||
8347 | |||
8348 | |||
8349 | |||
8350 | |||
8351 | lt_prog_compiler_wl= | ||
8352 | lt_prog_compiler_pic= | ||
8353 | lt_prog_compiler_static= | ||
8354 | |||
8355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
8356 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
8357 | |||
8358 | if test "$GCC" = yes; then | ||
8359 | lt_prog_compiler_wl='-Wl,' | ||
8360 | lt_prog_compiler_static='-static' | ||
8361 | |||
8362 | case $host_os in | ||
8363 | aix*) | ||
8364 | # All AIX code is PIC. | ||
8365 | if test "$host_cpu" = ia64; then | ||
8366 | # AIX 5 now supports IA64 processor | ||
8367 | lt_prog_compiler_static='-Bstatic' | ||
8368 | fi | ||
8369 | ;; | ||
8370 | |||
8371 | amigaos*) | ||
8372 | case $host_cpu in | ||
8373 | powerpc) | ||
8374 | # see comment about AmigaOS4 .so support | ||
8375 | lt_prog_compiler_pic='-fPIC' | ||
8376 | ;; | ||
8377 | m68k) | ||
8378 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
8379 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
8380 | # like `-m68040'. | ||
8381 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | ||
8382 | ;; | ||
8383 | esac | ||
8384 | ;; | ||
8385 | |||
8386 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
8387 | # PIC is the default for these OSes. | ||
8388 | ;; | ||
8389 | |||
8390 | mingw* | cygwin* | pw32* | os2*) | ||
8391 | # This hack is so that the source file can tell whether it is being | ||
8392 | # built for inclusion in a dll (and should export symbols for example). | ||
8393 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | ||
8394 | # (--disable-auto-import) libraries | ||
8395 | lt_prog_compiler_pic='-DDLL_EXPORT' | ||
8396 | ;; | ||
8397 | |||
8398 | darwin* | rhapsody*) | ||
8399 | # PIC is the default on this platform | ||
8400 | # Common symbols not allowed in MH_DYLIB files | ||
8401 | lt_prog_compiler_pic='-fno-common' | ||
8402 | ;; | ||
8403 | |||
8404 | hpux*) | ||
8405 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
8406 | # not for PA HP-UX. | ||
8407 | case $host_cpu in | ||
8408 | hppa*64*|ia64*) | ||
8409 | # +Z the default | ||
8410 | ;; | ||
8411 | *) | ||
8412 | lt_prog_compiler_pic='-fPIC' | ||
8413 | ;; | ||
8414 | esac | ||
8415 | ;; | ||
8416 | |||
8417 | interix[3-9]*) | ||
8418 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
8419 | # Instead, we relocate shared libraries at runtime. | ||
8420 | ;; | ||
8421 | |||
8422 | msdosdjgpp*) | ||
8423 | # Just because we use GCC doesn't mean we suddenly get shared libraries | ||
8424 | # on systems that don't support them. | ||
8425 | lt_prog_compiler_can_build_shared=no | ||
8426 | enable_shared=no | ||
8427 | ;; | ||
8428 | |||
8429 | *nto* | *qnx*) | ||
8430 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
8431 | # it will coredump. | ||
8432 | lt_prog_compiler_pic='-fPIC -shared' | ||
8433 | ;; | ||
8434 | |||
8435 | sysv4*MP*) | ||
8436 | if test -d /usr/nec; then | ||
8437 | lt_prog_compiler_pic=-Kconform_pic | ||
8438 | fi | ||
8439 | ;; | ||
8440 | |||
8441 | *) | ||
8442 | lt_prog_compiler_pic='-fPIC' | ||
8443 | ;; | ||
8444 | esac | ||
8445 | else | ||
8446 | # PORTME Check for flag to pass linker flags through the system compiler. | ||
8447 | case $host_os in | ||
8448 | aix*) | ||
8449 | lt_prog_compiler_wl='-Wl,' | ||
8450 | if test "$host_cpu" = ia64; then | ||
8451 | # AIX 5 now supports IA64 processor | ||
8452 | lt_prog_compiler_static='-Bstatic' | ||
8453 | else | ||
8454 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | ||
8455 | fi | ||
8456 | ;; | ||
8457 | |||
8458 | mingw* | cygwin* | pw32* | os2*) | ||
8459 | # This hack is so that the source file can tell whether it is being | ||
8460 | # built for inclusion in a dll (and should export symbols for example). | ||
8461 | lt_prog_compiler_pic='-DDLL_EXPORT' | ||
8462 | ;; | ||
8463 | |||
8464 | hpux9* | hpux10* | hpux11*) | ||
8465 | lt_prog_compiler_wl='-Wl,' | ||
8466 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
8467 | # not for PA HP-UX. | ||
8468 | case $host_cpu in | ||
8469 | hppa*64*|ia64*) | ||
8470 | # +Z the default | ||
8471 | ;; | ||
8472 | *) | ||
8473 | lt_prog_compiler_pic='+Z' | ||
8474 | ;; | ||
8475 | esac | ||
8476 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | ||
8477 | lt_prog_compiler_static='${wl}-a ${wl}archive' | ||
8478 | ;; | ||
8479 | |||
8480 | irix5* | irix6* | nonstopux*) | ||
8481 | lt_prog_compiler_wl='-Wl,' | ||
8482 | # PIC (with -KPIC) is the default. | ||
8483 | lt_prog_compiler_static='-non_shared' | ||
8484 | ;; | ||
8485 | |||
8486 | linux* | k*bsd*-gnu) | ||
8487 | case $cc_basename in | ||
8488 | icc* | ecc* | ifort*) | ||
8489 | lt_prog_compiler_wl='-Wl,' | ||
8490 | lt_prog_compiler_pic='-KPIC' | ||
8491 | lt_prog_compiler_static='-static' | ||
8492 | ;; | ||
8493 | pgcc* | pgf77* | pgf90* | pgf95*) | ||
8494 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
8495 | # which looks to be a dead project) | ||
8496 | lt_prog_compiler_wl='-Wl,' | ||
8497 | lt_prog_compiler_pic='-fpic' | ||
8498 | lt_prog_compiler_static='-Bstatic' | ||
8499 | ;; | ||
8500 | ccc*) | ||
8501 | lt_prog_compiler_wl='-Wl,' | ||
8502 | # All Alpha code is PIC. | ||
8503 | lt_prog_compiler_static='-non_shared' | ||
8504 | ;; | ||
8505 | xl*) | ||
8506 | # IBM XL C 8.0/Fortran 10.1 on PPC | ||
8507 | lt_prog_compiler_wl='-Wl,' | ||
8508 | lt_prog_compiler_pic='-qpic' | ||
8509 | lt_prog_compiler_static='-qstaticlink' | ||
8510 | ;; | ||
8511 | *) | ||
8512 | case `$CC -V 2>&1 | sed 5q` in | ||
8513 | *Sun\ C*) | ||
8514 | # Sun C 5.9 | ||
8515 | lt_prog_compiler_pic='-KPIC' | ||
8516 | lt_prog_compiler_static='-Bstatic' | ||
8517 | lt_prog_compiler_wl='-Wl,' | ||
8518 | ;; | ||
8519 | *Sun\ F*) | ||
8520 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | ||
8521 | lt_prog_compiler_pic='-KPIC' | ||
8522 | lt_prog_compiler_static='-Bstatic' | ||
8523 | lt_prog_compiler_wl='' | ||
8524 | ;; | ||
8525 | esac | ||
8526 | ;; | ||
8527 | esac | ||
8528 | ;; | ||
8529 | |||
8530 | newsos6) | ||
8531 | lt_prog_compiler_pic='-KPIC' | ||
8532 | lt_prog_compiler_static='-Bstatic' | ||
8533 | ;; | ||
8534 | |||
8535 | *nto* | *qnx*) | ||
8536 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
8537 | # it will coredump. | ||
8538 | lt_prog_compiler_pic='-fPIC -shared' | ||
8539 | ;; | ||
8540 | |||
8541 | osf3* | osf4* | osf5*) | ||
8542 | lt_prog_compiler_wl='-Wl,' | ||
8543 | # All OSF/1 code is PIC. | ||
8544 | lt_prog_compiler_static='-non_shared' | ||
8545 | ;; | ||
8546 | |||
8547 | rdos*) | ||
8548 | lt_prog_compiler_static='-non_shared' | ||
8549 | ;; | ||
8550 | |||
8551 | solaris*) | ||
8552 | lt_prog_compiler_pic='-KPIC' | ||
8553 | lt_prog_compiler_static='-Bstatic' | ||
8554 | case $cc_basename in | ||
8555 | f77* | f90* | f95*) | ||
8556 | lt_prog_compiler_wl='-Qoption ld ';; | ||
8557 | *) | ||
8558 | lt_prog_compiler_wl='-Wl,';; | ||
8559 | esac | ||
8560 | ;; | ||
8561 | |||
8562 | sunos4*) | ||
8563 | lt_prog_compiler_wl='-Qoption ld ' | ||
8564 | lt_prog_compiler_pic='-PIC' | ||
8565 | lt_prog_compiler_static='-Bstatic' | ||
8566 | ;; | ||
8567 | |||
8568 | sysv4 | sysv4.2uw2* | sysv4.3*) | ||
8569 | lt_prog_compiler_wl='-Wl,' | ||
8570 | lt_prog_compiler_pic='-KPIC' | ||
8571 | lt_prog_compiler_static='-Bstatic' | ||
8572 | ;; | ||
8573 | |||
8574 | sysv4*MP*) | ||
8575 | if test -d /usr/nec ;then | ||
8576 | lt_prog_compiler_pic='-Kconform_pic' | ||
8577 | lt_prog_compiler_static='-Bstatic' | ||
8578 | fi | ||
8579 | ;; | ||
8580 | |||
8581 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
8582 | lt_prog_compiler_wl='-Wl,' | ||
8583 | lt_prog_compiler_pic='-KPIC' | ||
8584 | lt_prog_compiler_static='-Bstatic' | ||
8585 | ;; | ||
8586 | |||
8587 | unicos*) | ||
8588 | lt_prog_compiler_wl='-Wl,' | ||
8589 | lt_prog_compiler_can_build_shared=no | ||
8590 | ;; | ||
8591 | |||
8592 | uts4*) | ||
8593 | lt_prog_compiler_pic='-pic' | ||
8594 | lt_prog_compiler_static='-Bstatic' | ||
8595 | ;; | ||
8596 | |||
8597 | *) | ||
8598 | lt_prog_compiler_can_build_shared=no | ||
8599 | ;; | ||
8600 | esac | ||
8601 | fi | ||
8602 | |||
8603 | case $host_os in | ||
8604 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
8605 | *djgpp*) | ||
8606 | lt_prog_compiler_pic= | ||
8607 | ;; | ||
8608 | *) | ||
8609 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | ||
8610 | ;; | ||
8611 | esac | ||
8612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | ||
8613 | $as_echo "$lt_prog_compiler_pic" >&6; } | ||
8614 | |||
8615 | |||
8616 | |||
8617 | |||
8618 | |||
8619 | |||
8620 | # | ||
8621 | # Check to make sure the PIC flag actually works. | ||
8622 | # | ||
8623 | if test -n "$lt_prog_compiler_pic"; then | ||
8624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | ||
8625 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | ||
8626 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | ||
8627 | $as_echo_n "(cached) " >&6 | ||
8628 | else | ||
8629 | lt_cv_prog_compiler_pic_works=no | ||
8630 | ac_outfile=conftest.$ac_objext | ||
8631 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
8632 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | ||
8633 | # Insert the option either (1) after the last *FLAGS variable, or | ||
8634 | # (2) before a word containing "conftest.", or (3) at the end. | ||
8635 | # Note that $ac_compile itself does not contain backslashes and begins | ||
8636 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
8637 | # The option is referenced via a variable to avoid confusing sed. | ||
8638 | lt_compile=`echo "$ac_compile" | $SED \ | ||
8639 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
8640 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
8641 | -e 's:$: $lt_compiler_flag:'` | ||
8642 | (eval echo "\"\$as_me:8642: $lt_compile\"" >&5) | ||
8643 | (eval "$lt_compile" 2>conftest.err) | ||
8644 | ac_status=$? | ||
8645 | cat conftest.err >&5 | ||
8646 | echo "$as_me:8646: \$? = $ac_status" >&5 | ||
8647 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
8648 | # The compiler can only warn and ignore the option if not recognized | ||
8649 | # So say no if there are warnings other than the usual output. | ||
8650 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
8651 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
8652 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
8653 | lt_cv_prog_compiler_pic_works=yes | ||
8654 | fi | ||
8655 | fi | ||
8656 | $RM conftest* | ||
8657 | |||
8658 | fi | ||
8659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | ||
8660 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | ||
8661 | |||
8662 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | ||
8663 | case $lt_prog_compiler_pic in | ||
8664 | "" | " "*) ;; | ||
8665 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | ||
8666 | esac | ||
8667 | else | ||
8668 | lt_prog_compiler_pic= | ||
8669 | lt_prog_compiler_can_build_shared=no | ||
8670 | fi | ||
8671 | |||
8672 | fi | ||
8673 | |||
8674 | |||
8675 | |||
8676 | |||
8677 | |||
8678 | |||
8679 | # | ||
8680 | # Check to make sure the static flag actually works. | ||
8681 | # | ||
8682 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | ||
8683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | ||
8684 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | ||
8685 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | ||
8686 | $as_echo_n "(cached) " >&6 | ||
8687 | else | ||
8688 | lt_cv_prog_compiler_static_works=no | ||
8689 | save_LDFLAGS="$LDFLAGS" | ||
8690 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | ||
8691 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | ||
8692 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
8693 | # The linker can only warn and ignore the option if not recognized | ||
8694 | # So say no if there are warnings | ||
8695 | if test -s conftest.err; then | ||
8696 | # Append any errors to the config.log. | ||
8697 | cat conftest.err 1>&5 | ||
8698 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
8699 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
8700 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
8701 | lt_cv_prog_compiler_static_works=yes | ||
8702 | fi | ||
8703 | else | ||
8704 | lt_cv_prog_compiler_static_works=yes | ||
8705 | fi | ||
8706 | fi | ||
8707 | $RM -r conftest* | ||
8708 | LDFLAGS="$save_LDFLAGS" | ||
8709 | |||
8710 | fi | ||
8711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | ||
8712 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | ||
8713 | |||
8714 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | ||
8715 | : | ||
8716 | else | ||
8717 | lt_prog_compiler_static= | ||
8718 | fi | ||
8719 | |||
8720 | |||
8721 | |||
8722 | |||
8723 | |||
8724 | |||
8725 | |||
8726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
8727 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
8728 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | ||
8729 | $as_echo_n "(cached) " >&6 | ||
8730 | else | ||
8731 | lt_cv_prog_compiler_c_o=no | ||
8732 | $RM -r conftest 2>/dev/null | ||
8733 | mkdir conftest | ||
8734 | cd conftest | ||
8735 | mkdir out | ||
8736 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
8737 | |||
8738 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
8739 | # Insert the option either (1) after the last *FLAGS variable, or | ||
8740 | # (2) before a word containing "conftest.", or (3) at the end. | ||
8741 | # Note that $ac_compile itself does not contain backslashes and begins | ||
8742 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
8743 | lt_compile=`echo "$ac_compile" | $SED \ | ||
8744 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
8745 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
8746 | -e 's:$: $lt_compiler_flag:'` | ||
8747 | (eval echo "\"\$as_me:8747: $lt_compile\"" >&5) | ||
8748 | (eval "$lt_compile" 2>out/conftest.err) | ||
8749 | ac_status=$? | ||
8750 | cat out/conftest.err >&5 | ||
8751 | echo "$as_me:8751: \$? = $ac_status" >&5 | ||
8752 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
8753 | then | ||
8754 | # The compiler can only warn and ignore the option if not recognized | ||
8755 | # So say no if there are warnings | ||
8756 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
8757 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
8758 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
8759 | lt_cv_prog_compiler_c_o=yes | ||
8760 | fi | ||
8761 | fi | ||
8762 | chmod u+w . 2>&5 | ||
8763 | $RM conftest* | ||
8764 | # SGI C++ compiler will create directory out/ii_files/ for | ||
8765 | # template instantiation | ||
8766 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
8767 | $RM out/* && rmdir out | ||
8768 | cd .. | ||
8769 | $RM -r conftest | ||
8770 | $RM conftest* | ||
8771 | |||
8772 | fi | ||
8773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | ||
8774 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | ||
8775 | |||
8776 | |||
8777 | |||
8778 | |||
8779 | |||
8780 | |||
8781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
8782 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
8783 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | ||
8784 | $as_echo_n "(cached) " >&6 | ||
8785 | else | ||
8786 | lt_cv_prog_compiler_c_o=no | ||
8787 | $RM -r conftest 2>/dev/null | ||
8788 | mkdir conftest | ||
8789 | cd conftest | ||
8790 | mkdir out | ||
8791 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
8792 | |||
8793 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
8794 | # Insert the option either (1) after the last *FLAGS variable, or | ||
8795 | # (2) before a word containing "conftest.", or (3) at the end. | ||
8796 | # Note that $ac_compile itself does not contain backslashes and begins | ||
8797 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
8798 | lt_compile=`echo "$ac_compile" | $SED \ | ||
8799 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
8800 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
8801 | -e 's:$: $lt_compiler_flag:'` | ||
8802 | (eval echo "\"\$as_me:8802: $lt_compile\"" >&5) | ||
8803 | (eval "$lt_compile" 2>out/conftest.err) | ||
8804 | ac_status=$? | ||
8805 | cat out/conftest.err >&5 | ||
8806 | echo "$as_me:8806: \$? = $ac_status" >&5 | ||
8807 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
8808 | then | ||
8809 | # The compiler can only warn and ignore the option if not recognized | ||
8810 | # So say no if there are warnings | ||
8811 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
8812 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
8813 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
8814 | lt_cv_prog_compiler_c_o=yes | ||
8815 | fi | ||
8816 | fi | ||
8817 | chmod u+w . 2>&5 | ||
8818 | $RM conftest* | ||
8819 | # SGI C++ compiler will create directory out/ii_files/ for | ||
8820 | # template instantiation | ||
8821 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
8822 | $RM out/* && rmdir out | ||
8823 | cd .. | ||
8824 | $RM -r conftest | ||
8825 | $RM conftest* | ||
8826 | |||
8827 | fi | ||
8828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | ||
8829 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | ||
8830 | |||
8831 | |||
8832 | |||
8833 | |||
8834 | hard_links="nottested" | ||
8835 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | ||
8836 | # do not overwrite the value of need_locks provided by the user | ||
8837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | ||
8838 | $as_echo_n "checking if we can lock with hard links... " >&6; } | ||
8839 | hard_links=yes | ||
8840 | $RM conftest* | ||
8841 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
8842 | touch conftest.a | ||
8843 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
8844 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
8845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | ||
8846 | $as_echo "$hard_links" >&6; } | ||
8847 | if test "$hard_links" = no; then | ||
8848 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | ||
8849 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | ||
8850 | need_locks=warn | ||
8851 | fi | ||
8852 | else | ||
8853 | need_locks=no | ||
8854 | fi | ||
8855 | |||
8856 | |||
8857 | |||
8858 | |||
8859 | |||
8860 | |||
8861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
8862 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | ||
8863 | |||
8864 | runpath_var= | ||
8865 | allow_undefined_flag= | ||
8866 | always_export_symbols=no | ||
8867 | archive_cmds= | ||
8868 | archive_expsym_cmds= | ||
8869 | compiler_needs_object=no | ||
8870 | enable_shared_with_static_runtimes=no | ||
8871 | export_dynamic_flag_spec= | ||
8872 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
8873 | hardcode_automatic=no | ||
8874 | hardcode_direct=no | ||
8875 | hardcode_direct_absolute=no | ||
8876 | hardcode_libdir_flag_spec= | ||
8877 | hardcode_libdir_flag_spec_ld= | ||
8878 | hardcode_libdir_separator= | ||
8879 | hardcode_minus_L=no | ||
8880 | hardcode_shlibpath_var=unsupported | ||
8881 | inherit_rpath=no | ||
8882 | link_all_deplibs=unknown | ||
8883 | module_cmds= | ||
8884 | module_expsym_cmds= | ||
8885 | old_archive_from_new_cmds= | ||
8886 | old_archive_from_expsyms_cmds= | ||
8887 | thread_safe_flag_spec= | ||
8888 | whole_archive_flag_spec= | ||
8889 | # include_expsyms should be a list of space-separated symbols to be *always* | ||
8890 | # included in the symbol list | ||
8891 | include_expsyms= | ||
8892 | # exclude_expsyms can be an extended regexp of symbols to exclude | ||
8893 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | ||
8894 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | ||
8895 | # as well as any symbol that contains `d'. | ||
8896 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | ||
8897 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | ||
8898 | # platforms (ab)use it in PIC code, but their linkers get confused if | ||
8899 | # the symbol is explicitly referenced. Since portable code cannot | ||
8900 | # rely on this symbol name, it's probably fine to never include it in | ||
8901 | # preloaded symbol tables. | ||
8902 | # Exclude shared library initialization/finalization symbols. | ||
8903 | extract_expsyms_cmds= | ||
8904 | |||
8905 | case $host_os in | ||
8906 | cygwin* | mingw* | pw32*) | ||
8907 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | ||
8908 | # When not using gcc, we currently assume that we are using | ||
8909 | # Microsoft Visual C++. | ||
8910 | if test "$GCC" != yes; then | ||
8911 | with_gnu_ld=no | ||
8912 | fi | ||
8913 | ;; | ||
8914 | interix*) | ||
8915 | # we just hope/assume this is gcc and not c89 (= MSVC++) | ||
8916 | with_gnu_ld=yes | ||
8917 | ;; | ||
8918 | openbsd*) | ||
8919 | with_gnu_ld=no | ||
8920 | ;; | ||
8921 | esac | ||
8922 | |||
8923 | ld_shlibs=yes | ||
8924 | if test "$with_gnu_ld" = yes; then | ||
8925 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
8926 | wlarc='${wl}' | ||
8927 | |||
8928 | # Set some defaults for GNU ld with shared library support. These | ||
8929 | # are reset later if shared libraries are not supported. Putting them | ||
8930 | # here allows them to be overridden if necessary. | ||
8931 | runpath_var=LD_RUN_PATH | ||
8932 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
8933 | export_dynamic_flag_spec='${wl}--export-dynamic' | ||
8934 | # ancient GNU ld didn't support --whole-archive et. al. | ||
8935 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | ||
8936 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
8937 | else | ||
8938 | whole_archive_flag_spec= | ||
8939 | fi | ||
8940 | supports_anon_versioning=no | ||
8941 | case `$LD -v 2>&1` in | ||
8942 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
8943 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
8944 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
8945 | *\ 2.11.*) ;; # other 2.11 versions | ||
8946 | *) supports_anon_versioning=yes ;; | ||
8947 | esac | ||
8948 | |||
8949 | # See if GNU ld supports shared libraries. | ||
8950 | case $host_os in | ||
8951 | aix[3-9]*) | ||
8952 | # On AIX/PPC, the GNU linker is very broken | ||
8953 | if test "$host_cpu" != ia64; then | ||
8954 | ld_shlibs=no | ||
8955 | cat <<_LT_EOF 1>&2 | ||
8956 | |||
8957 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | ||
8958 | *** to be unable to reliably create shared libraries on AIX. | ||
8959 | *** Therefore, libtool is disabling shared libraries support. If you | ||
8960 | *** really care for shared libraries, you may want to modify your PATH | ||
8961 | *** so that a non-GNU linker is found, and then restart. | ||
8962 | |||
8963 | _LT_EOF | ||
8964 | fi | ||
8965 | ;; | ||
8966 | |||
8967 | amigaos*) | ||
8968 | case $host_cpu in | ||
8969 | powerpc) | ||
8970 | # see comment about AmigaOS4 .so support | ||
8971 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8972 | archive_expsym_cmds='' | ||
8973 | ;; | ||
8974 | m68k) | ||
8975 | 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)' | ||
8976 | hardcode_libdir_flag_spec='-L$libdir' | ||
8977 | hardcode_minus_L=yes | ||
8978 | ;; | ||
8979 | esac | ||
8980 | ;; | ||
8981 | |||
8982 | beos*) | ||
8983 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
8984 | allow_undefined_flag=unsupported | ||
8985 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
8986 | # support --undefined. This deserves some investigation. FIXME | ||
8987 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8988 | else | ||
8989 | ld_shlibs=no | ||
8990 | fi | ||
8991 | ;; | ||
8992 | |||
8993 | cygwin* | mingw* | pw32*) | ||
8994 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | ||
8995 | # as there is no search path for DLLs. | ||
8996 | hardcode_libdir_flag_spec='-L$libdir' | ||
8997 | allow_undefined_flag=unsupported | ||
8998 | always_export_symbols=no | ||
8999 | enable_shared_with_static_runtimes=yes | ||
9000 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
9001 | |||
9002 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
9003 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
9004 | # If the export-symbols file already is a .def file (1st line | ||
9005 | # is EXPORTS), use it as is; otherwise, prepend... | ||
9006 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
9007 | cp $export_symbols $output_objdir/$soname.def; | ||
9008 | else | ||
9009 | echo EXPORTS > $output_objdir/$soname.def; | ||
9010 | cat $export_symbols >> $output_objdir/$soname.def; | ||
9011 | fi~ | ||
9012 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
9013 | else | ||
9014 | ld_shlibs=no | ||
9015 | fi | ||
9016 | ;; | ||
9017 | |||
9018 | interix[3-9]*) | ||
9019 | hardcode_direct=no | ||
9020 | hardcode_shlibpath_var=no | ||
9021 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
9022 | export_dynamic_flag_spec='${wl}-E' | ||
9023 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
9024 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
9025 | # default) and relocated if they conflict, which is a slow very memory | ||
9026 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
9027 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
9028 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
9029 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
9030 | 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' | ||
9031 | ;; | ||
9032 | |||
9033 | gnu* | linux* | tpf* | k*bsd*-gnu) | ||
9034 | tmp_diet=no | ||
9035 | if test "$host_os" = linux-dietlibc; then | ||
9036 | case $cc_basename in | ||
9037 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | ||
9038 | esac | ||
9039 | fi | ||
9040 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | ||
9041 | && test "$tmp_diet" = no | ||
9042 | then | ||
9043 | tmp_addflag= | ||
9044 | tmp_sharedflag='-shared' | ||
9045 | case $cc_basename,$host_cpu in | ||
9046 | pgcc*) # Portland Group C compiler | ||
9047 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
9048 | tmp_addflag=' $pic_flag' | ||
9049 | ;; | ||
9050 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | ||
9051 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
9052 | tmp_addflag=' $pic_flag -Mnomain' ;; | ||
9053 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | ||
9054 | tmp_addflag=' -i_dynamic' ;; | ||
9055 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | ||
9056 | tmp_addflag=' -i_dynamic -nofor_main' ;; | ||
9057 | ifc* | ifort*) # Intel Fortran compiler | ||
9058 | tmp_addflag=' -nofor_main' ;; | ||
9059 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | ||
9060 | tmp_sharedflag='-qmkshrobj' | ||
9061 | tmp_addflag= ;; | ||
9062 | esac | ||
9063 | case `$CC -V 2>&1 | sed 5q` in | ||
9064 | *Sun\ C*) # Sun C 5.9 | ||
9065 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
9066 | compiler_needs_object=yes | ||
9067 | tmp_sharedflag='-G' ;; | ||
9068 | *Sun\ F*) # Sun Fortran 8.3 | ||
9069 | tmp_sharedflag='-G' ;; | ||
9070 | esac | ||
9071 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9072 | |||
9073 | if test "x$supports_anon_versioning" = xyes; then | ||
9074 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
9075 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
9076 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
9077 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
9078 | fi | ||
9079 | |||
9080 | case $cc_basename in | ||
9081 | xlf*) | ||
9082 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | ||
9083 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | ||
9084 | hardcode_libdir_flag_spec= | ||
9085 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | ||
9086 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | ||
9087 | if test "x$supports_anon_versioning" = xyes; then | ||
9088 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
9089 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
9090 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
9091 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
9092 | fi | ||
9093 | ;; | ||
9094 | esac | ||
9095 | else | ||
9096 | ld_shlibs=no | ||
9097 | fi | ||
9098 | ;; | ||
9099 | |||
9100 | netbsd* | netbsdelf*-gnu) | ||
9101 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
9102 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
9103 | wlarc= | ||
9104 | else | ||
9105 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9106 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
9107 | fi | ||
9108 | ;; | ||
9109 | |||
9110 | solaris*) | ||
9111 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | ||
9112 | ld_shlibs=no | ||
9113 | cat <<_LT_EOF 1>&2 | ||
9114 | |||
9115 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | ||
9116 | *** create shared libraries on Solaris systems. Therefore, libtool | ||
9117 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
9118 | *** binutils to release 2.9.1 or newer. Another option is to modify | ||
9119 | *** your PATH or compiler configuration so that the native linker is | ||
9120 | *** used, and then restart. | ||
9121 | |||
9122 | _LT_EOF | ||
9123 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
9124 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9125 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
9126 | else | ||
9127 | ld_shlibs=no | ||
9128 | fi | ||
9129 | ;; | ||
9130 | |||
9131 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | ||
9132 | case `$LD -v 2>&1` in | ||
9133 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | ||
9134 | ld_shlibs=no | ||
9135 | cat <<_LT_EOF 1>&2 | ||
9136 | |||
9137 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | ||
9138 | *** reliably create shared libraries on SCO systems. Therefore, libtool | ||
9139 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
9140 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | ||
9141 | *** your PATH or compiler configuration so that the native linker is | ||
9142 | *** used, and then restart. | ||
9143 | |||
9144 | _LT_EOF | ||
9145 | ;; | ||
9146 | *) | ||
9147 | # For security reasons, it is highly recommended that you always | ||
9148 | # use absolute paths for naming shared libraries, and exclude the | ||
9149 | # DT_RUNPATH tag from executables and libraries. But doing so | ||
9150 | # requires that you compile everything twice, which is a pain. | ||
9151 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
9152 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
9153 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9154 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
9155 | else | ||
9156 | ld_shlibs=no | ||
9157 | fi | ||
9158 | ;; | ||
9159 | esac | ||
9160 | ;; | ||
9161 | |||
9162 | sunos4*) | ||
9163 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
9164 | wlarc= | ||
9165 | hardcode_direct=yes | ||
9166 | hardcode_shlibpath_var=no | ||
9167 | ;; | ||
9168 | |||
9169 | *) | ||
9170 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
9171 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9172 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
9173 | else | ||
9174 | ld_shlibs=no | ||
9175 | fi | ||
9176 | ;; | ||
9177 | esac | ||
9178 | |||
9179 | if test "$ld_shlibs" = no; then | ||
9180 | runpath_var= | ||
9181 | hardcode_libdir_flag_spec= | ||
9182 | export_dynamic_flag_spec= | ||
9183 | whole_archive_flag_spec= | ||
9184 | fi | ||
9185 | else | ||
9186 | # PORTME fill in a description of your system's linker (not GNU ld) | ||
9187 | case $host_os in | ||
9188 | aix3*) | ||
9189 | allow_undefined_flag=unsupported | ||
9190 | always_export_symbols=yes | ||
9191 | 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' | ||
9192 | # Note: this linker hardcodes the directories in LIBPATH if there | ||
9193 | # are no directories specified by -L. | ||
9194 | hardcode_minus_L=yes | ||
9195 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | ||
9196 | # Neither direct hardcoding nor static linking is supported with a | ||
9197 | # broken collect2. | ||
9198 | hardcode_direct=unsupported | ||
9199 | fi | ||
9200 | ;; | ||
9201 | |||
9202 | aix[4-9]*) | ||
9203 | if test "$host_cpu" = ia64; then | ||
9204 | # On IA64, the linker does run time linking by default, so we don't | ||
9205 | # have to do anything special. | ||
9206 | aix_use_runtimelinking=no | ||
9207 | exp_sym_flag='-Bexport' | ||
9208 | no_entry_flag="" | ||
9209 | else | ||
9210 | # If we're using GNU nm, then we don't want the "-C" option. | ||
9211 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
9212 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | ||
9213 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | ||
9214 | else | ||
9215 | 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' | ||
9216 | fi | ||
9217 | aix_use_runtimelinking=no | ||
9218 | |||
9219 | # Test if we are trying to use run time linking or normal | ||
9220 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
9221 | # need to do runtime linking. | ||
9222 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | ||
9223 | for ld_flag in $LDFLAGS; do | ||
9224 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | ||
9225 | aix_use_runtimelinking=yes | ||
9226 | break | ||
9227 | fi | ||
9228 | done | ||
9229 | ;; | ||
9230 | esac | ||
9231 | |||
9232 | exp_sym_flag='-bexport' | ||
9233 | no_entry_flag='-bnoentry' | ||
9234 | fi | ||
9235 | |||
9236 | # When large executables or shared objects are built, AIX ld can | ||
9237 | # have problems creating the table of contents. If linking a library | ||
9238 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
9239 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
9240 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
9241 | |||
9242 | archive_cmds='' | ||
9243 | hardcode_direct=yes | ||
9244 | hardcode_direct_absolute=yes | ||
9245 | hardcode_libdir_separator=':' | ||
9246 | link_all_deplibs=yes | ||
9247 | file_list_spec='${wl}-f,' | ||
9248 | |||
9249 | if test "$GCC" = yes; then | ||
9250 | case $host_os in aix4.[012]|aix4.[012].*) | ||
9251 | # We only want to do this on AIX 4.2 and lower, the check | ||
9252 | # below for broken collect2 doesn't work under 4.3+ | ||
9253 | collect2name=`${CC} -print-prog-name=collect2` | ||
9254 | if test -f "$collect2name" && | ||
9255 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | ||
9256 | then | ||
9257 | # We have reworked collect2 | ||
9258 | : | ||
9259 | else | ||
9260 | # We have old collect2 | ||
9261 | hardcode_direct=unsupported | ||
9262 | # It fails to find uninstalled libraries when the uninstalled | ||
9263 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
9264 | # to unsupported forces relinking | ||
9265 | hardcode_minus_L=yes | ||
9266 | hardcode_libdir_flag_spec='-L$libdir' | ||
9267 | hardcode_libdir_separator= | ||
9268 | fi | ||
9269 | ;; | ||
9270 | esac | ||
9271 | shared_flag='-shared' | ||
9272 | if test "$aix_use_runtimelinking" = yes; then | ||
9273 | shared_flag="$shared_flag "'${wl}-G' | ||
9274 | fi | ||
9275 | link_all_deplibs=no | ||
9276 | else | ||
9277 | # not using gcc | ||
9278 | if test "$host_cpu" = ia64; then | ||
9279 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
9280 | # chokes on -Wl,-G. The following line is correct: | ||
9281 | shared_flag='-G' | ||
9282 | else | ||
9283 | if test "$aix_use_runtimelinking" = yes; then | ||
9284 | shared_flag='${wl}-G' | ||
9285 | else | ||
9286 | shared_flag='${wl}-bM:SRE' | ||
9287 | fi | ||
9288 | fi | ||
9289 | fi | ||
9290 | |||
9291 | # It seems that -bexpall does not export symbols beginning with | ||
9292 | # underscore (_), so it is better to generate a list of symbols to export. | ||
9293 | always_export_symbols=yes | ||
9294 | if test "$aix_use_runtimelinking" = yes; then | ||
9295 | # Warning - without using the other runtime loading flags (-brtl), | ||
9296 | # -berok will link without error, but may produce a broken library. | ||
9297 | allow_undefined_flag='-berok' | ||
9298 | # Determine the default libpath from the value encoded in an | ||
9299 | # empty executable. | ||
9300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9301 | /* end confdefs.h. */ | ||
9302 | |||
9303 | int | ||
9304 | main () | ||
9305 | { | ||
9306 | |||
9307 | ; | ||
9308 | return 0; | ||
9309 | } | ||
9310 | _ACEOF | ||
9311 | if ac_fn_c_try_link "$LINENO"; then : | ||
9312 | |||
9313 | lt_aix_libpath_sed=' | ||
9314 | /Import File Strings/,/^$/ { | ||
9315 | /^0/ { | ||
9316 | s/^0 *\(.*\)$/\1/ | ||
9317 | p | ||
9318 | } | ||
9319 | }' | ||
9320 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
9321 | # Check for a 64-bit object if we didn't find anything. | ||
9322 | if test -z "$aix_libpath"; then | ||
9323 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
9324 | fi | ||
9325 | fi | ||
9326 | rm -f core conftest.err conftest.$ac_objext \ | ||
9327 | conftest$ac_exeext conftest.$ac_ext | ||
9328 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
9329 | |||
9330 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
9331 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
9332 | else | ||
9333 | if test "$host_cpu" = ia64; then | ||
9334 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | ||
9335 | allow_undefined_flag="-z nodefs" | ||
9336 | 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" | ||
9337 | else | ||
9338 | # Determine the default libpath from the value encoded in an | ||
9339 | # empty executable. | ||
9340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9341 | /* end confdefs.h. */ | ||
9342 | |||
9343 | int | ||
9344 | main () | ||
9345 | { | ||
9346 | |||
9347 | ; | ||
9348 | return 0; | ||
9349 | } | ||
9350 | _ACEOF | ||
9351 | if ac_fn_c_try_link "$LINENO"; then : | ||
9352 | |||
9353 | lt_aix_libpath_sed=' | ||
9354 | /Import File Strings/,/^$/ { | ||
9355 | /^0/ { | ||
9356 | s/^0 *\(.*\)$/\1/ | ||
9357 | p | ||
9358 | } | ||
9359 | }' | ||
9360 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
9361 | # Check for a 64-bit object if we didn't find anything. | ||
9362 | if test -z "$aix_libpath"; then | ||
9363 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
9364 | fi | ||
9365 | fi | ||
9366 | rm -f core conftest.err conftest.$ac_objext \ | ||
9367 | conftest$ac_exeext conftest.$ac_ext | ||
9368 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
9369 | |||
9370 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
9371 | # Warning - without using the other run time loading flags, | ||
9372 | # -berok will link without error, but may produce a broken library. | ||
9373 | no_undefined_flag=' ${wl}-bernotok' | ||
9374 | allow_undefined_flag=' ${wl}-berok' | ||
9375 | # Exported symbols can be pulled into shared objects from archives | ||
9376 | whole_archive_flag_spec='$convenience' | ||
9377 | archive_cmds_need_lc=yes | ||
9378 | # This is similar to how AIX traditionally builds its shared libraries. | ||
9379 | 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' | ||
9380 | fi | ||
9381 | fi | ||
9382 | ;; | ||
9383 | |||
9384 | amigaos*) | ||
9385 | case $host_cpu in | ||
9386 | powerpc) | ||
9387 | # see comment about AmigaOS4 .so support | ||
9388 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9389 | archive_expsym_cmds='' | ||
9390 | ;; | ||
9391 | m68k) | ||
9392 | 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)' | ||
9393 | hardcode_libdir_flag_spec='-L$libdir' | ||
9394 | hardcode_minus_L=yes | ||
9395 | ;; | ||
9396 | esac | ||
9397 | ;; | ||
9398 | |||
9399 | bsdi[45]*) | ||
9400 | export_dynamic_flag_spec=-rdynamic | ||
9401 | ;; | ||
9402 | |||
9403 | cygwin* | mingw* | pw32*) | ||
9404 | # When not using gcc, we currently assume that we are using | ||
9405 | # Microsoft Visual C++. | ||
9406 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
9407 | # no search path for DLLs. | ||
9408 | hardcode_libdir_flag_spec=' ' | ||
9409 | allow_undefined_flag=unsupported | ||
9410 | # Tell ltmain to make .lib files, not .a files. | ||
9411 | libext=lib | ||
9412 | # Tell ltmain to make .dll files, not .so files. | ||
9413 | shrext_cmds=".dll" | ||
9414 | # FIXME: Setting linknames here is a bad hack. | ||
9415 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
9416 | # The linker will automatically build a .lib file if we build a DLL. | ||
9417 | old_archive_from_new_cmds='true' | ||
9418 | # FIXME: Should let the user specify the lib program. | ||
9419 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
9420 | fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
9421 | enable_shared_with_static_runtimes=yes | ||
9422 | ;; | ||
9423 | |||
9424 | darwin* | rhapsody*) | ||
9425 | |||
9426 | |||
9427 | archive_cmds_need_lc=no | ||
9428 | hardcode_direct=no | ||
9429 | hardcode_automatic=yes | ||
9430 | hardcode_shlibpath_var=unsupported | ||
9431 | whole_archive_flag_spec='' | ||
9432 | link_all_deplibs=yes | ||
9433 | allow_undefined_flag="$_lt_dar_allow_undefined" | ||
9434 | if test "$GCC" = "yes"; then | ||
9435 | output_verbose_link_cmd=echo | ||
9436 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | ||
9437 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | ||
9438 | 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}" | ||
9439 | 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}" | ||
9440 | |||
9441 | else | ||
9442 | ld_shlibs=no | ||
9443 | fi | ||
9444 | |||
9445 | ;; | ||
9446 | |||
9447 | dgux*) | ||
9448 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9449 | hardcode_libdir_flag_spec='-L$libdir' | ||
9450 | hardcode_shlibpath_var=no | ||
9451 | ;; | ||
9452 | |||
9453 | freebsd1*) | ||
9454 | ld_shlibs=no | ||
9455 | ;; | ||
9456 | |||
9457 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | ||
9458 | # support. Future versions do this automatically, but an explicit c++rt0.o | ||
9459 | # does not break anything, and helps significantly (at the cost of a little | ||
9460 | # extra space). | ||
9461 | freebsd2.2*) | ||
9462 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | ||
9463 | hardcode_libdir_flag_spec='-R$libdir' | ||
9464 | hardcode_direct=yes | ||
9465 | hardcode_shlibpath_var=no | ||
9466 | ;; | ||
9467 | |||
9468 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | ||
9469 | freebsd2*) | ||
9470 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
9471 | hardcode_direct=yes | ||
9472 | hardcode_minus_L=yes | ||
9473 | hardcode_shlibpath_var=no | ||
9474 | ;; | ||
9475 | |||
9476 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
9477 | freebsd* | dragonfly*) | ||
9478 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
9479 | hardcode_libdir_flag_spec='-R$libdir' | ||
9480 | hardcode_direct=yes | ||
9481 | hardcode_shlibpath_var=no | ||
9482 | ;; | ||
9483 | |||
9484 | hpux9*) | ||
9485 | if test "$GCC" = yes; then | ||
9486 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
9487 | else | ||
9488 | 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' | ||
9489 | fi | ||
9490 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
9491 | hardcode_libdir_separator=: | ||
9492 | hardcode_direct=yes | ||
9493 | |||
9494 | # hardcode_minus_L: Not really in the search PATH, | ||
9495 | # but as the default location of the library. | ||
9496 | hardcode_minus_L=yes | ||
9497 | export_dynamic_flag_spec='${wl}-E' | ||
9498 | ;; | ||
9499 | |||
9500 | hpux10*) | ||
9501 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
9502 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
9503 | else | ||
9504 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
9505 | fi | ||
9506 | if test "$with_gnu_ld" = no; then | ||
9507 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
9508 | hardcode_libdir_flag_spec_ld='+b $libdir' | ||
9509 | hardcode_libdir_separator=: | ||
9510 | hardcode_direct=yes | ||
9511 | hardcode_direct_absolute=yes | ||
9512 | export_dynamic_flag_spec='${wl}-E' | ||
9513 | # hardcode_minus_L: Not really in the search PATH, | ||
9514 | # but as the default location of the library. | ||
9515 | hardcode_minus_L=yes | ||
9516 | fi | ||
9517 | ;; | ||
9518 | |||
9519 | hpux11*) | ||
9520 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
9521 | case $host_cpu in | ||
9522 | hppa*64*) | ||
9523 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9524 | ;; | ||
9525 | ia64*) | ||
9526 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
9527 | ;; | ||
9528 | *) | ||
9529 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
9530 | ;; | ||
9531 | esac | ||
9532 | else | ||
9533 | case $host_cpu in | ||
9534 | hppa*64*) | ||
9535 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9536 | ;; | ||
9537 | ia64*) | ||
9538 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
9539 | ;; | ||
9540 | *) | ||
9541 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
9542 | ;; | ||
9543 | esac | ||
9544 | fi | ||
9545 | if test "$with_gnu_ld" = no; then | ||
9546 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
9547 | hardcode_libdir_separator=: | ||
9548 | |||
9549 | case $host_cpu in | ||
9550 | hppa*64*|ia64*) | ||
9551 | hardcode_direct=no | ||
9552 | hardcode_shlibpath_var=no | ||
9553 | ;; | ||
9554 | *) | ||
9555 | hardcode_direct=yes | ||
9556 | hardcode_direct_absolute=yes | ||
9557 | export_dynamic_flag_spec='${wl}-E' | ||
9558 | |||
9559 | # hardcode_minus_L: Not really in the search PATH, | ||
9560 | # but as the default location of the library. | ||
9561 | hardcode_minus_L=yes | ||
9562 | ;; | ||
9563 | esac | ||
9564 | fi | ||
9565 | ;; | ||
9566 | |||
9567 | irix5* | irix6* | nonstopux*) | ||
9568 | if test "$GCC" = yes; then | ||
9569 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
9570 | # Try to use the -exported_symbol ld option, if it does not | ||
9571 | # work, assume that -exports_file does not work either and | ||
9572 | # implicitly export all symbols. | ||
9573 | save_LDFLAGS="$LDFLAGS" | ||
9574 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
9575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9576 | /* end confdefs.h. */ | ||
9577 | int foo(void) {} | ||
9578 | _ACEOF | ||
9579 | if ac_fn_c_try_link "$LINENO"; then : | ||
9580 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | ||
9581 | |||
9582 | fi | ||
9583 | rm -f core conftest.err conftest.$ac_objext \ | ||
9584 | conftest$ac_exeext conftest.$ac_ext | ||
9585 | LDFLAGS="$save_LDFLAGS" | ||
9586 | else | ||
9587 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
9588 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | ||
9589 | fi | ||
9590 | archive_cmds_need_lc='no' | ||
9591 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
9592 | hardcode_libdir_separator=: | ||
9593 | inherit_rpath=yes | ||
9594 | link_all_deplibs=yes | ||
9595 | ;; | ||
9596 | |||
9597 | netbsd* | netbsdelf*-gnu) | ||
9598 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
9599 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | ||
9600 | else | ||
9601 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | ||
9602 | fi | ||
9603 | hardcode_libdir_flag_spec='-R$libdir' | ||
9604 | hardcode_direct=yes | ||
9605 | hardcode_shlibpath_var=no | ||
9606 | ;; | ||
9607 | |||
9608 | newsos6) | ||
9609 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9610 | hardcode_direct=yes | ||
9611 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
9612 | hardcode_libdir_separator=: | ||
9613 | hardcode_shlibpath_var=no | ||
9614 | ;; | ||
9615 | |||
9616 | *nto* | *qnx*) | ||
9617 | ;; | ||
9618 | |||
9619 | openbsd*) | ||
9620 | if test -f /usr/libexec/ld.so; then | ||
9621 | hardcode_direct=yes | ||
9622 | hardcode_shlibpath_var=no | ||
9623 | hardcode_direct_absolute=yes | ||
9624 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
9625 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
9626 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | ||
9627 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
9628 | export_dynamic_flag_spec='${wl}-E' | ||
9629 | else | ||
9630 | case $host_os in | ||
9631 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | ||
9632 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
9633 | hardcode_libdir_flag_spec='-R$libdir' | ||
9634 | ;; | ||
9635 | *) | ||
9636 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
9637 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
9638 | ;; | ||
9639 | esac | ||
9640 | fi | ||
9641 | else | ||
9642 | ld_shlibs=no | ||
9643 | fi | ||
9644 | ;; | ||
9645 | |||
9646 | os2*) | ||
9647 | hardcode_libdir_flag_spec='-L$libdir' | ||
9648 | hardcode_minus_L=yes | ||
9649 | allow_undefined_flag=unsupported | ||
9650 | 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' | ||
9651 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | ||
9652 | ;; | ||
9653 | |||
9654 | osf3*) | ||
9655 | if test "$GCC" = yes; then | ||
9656 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
9657 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
9658 | else | ||
9659 | allow_undefined_flag=' -expect_unresolved \*' | ||
9660 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
9661 | fi | ||
9662 | archive_cmds_need_lc='no' | ||
9663 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
9664 | hardcode_libdir_separator=: | ||
9665 | ;; | ||
9666 | |||
9667 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
9668 | if test "$GCC" = yes; then | ||
9669 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
9670 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
9671 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
9672 | else | ||
9673 | allow_undefined_flag=' -expect_unresolved \*' | ||
9674 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
9675 | 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~ | ||
9676 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | ||
9677 | |||
9678 | # Both c and cxx compiler support -rpath directly | ||
9679 | hardcode_libdir_flag_spec='-rpath $libdir' | ||
9680 | fi | ||
9681 | archive_cmds_need_lc='no' | ||
9682 | hardcode_libdir_separator=: | ||
9683 | ;; | ||
9684 | |||
9685 | solaris*) | ||
9686 | no_undefined_flag=' -z defs' | ||
9687 | if test "$GCC" = yes; then | ||
9688 | wlarc='${wl}' | ||
9689 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9690 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
9691 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
9692 | else | ||
9693 | case `$CC -V 2>&1` in | ||
9694 | *"Compilers 5.0"*) | ||
9695 | wlarc='' | ||
9696 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9697 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
9698 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | ||
9699 | ;; | ||
9700 | *) | ||
9701 | wlarc='${wl}' | ||
9702 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9703 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
9704 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
9705 | ;; | ||
9706 | esac | ||
9707 | fi | ||
9708 | hardcode_libdir_flag_spec='-R$libdir' | ||
9709 | hardcode_shlibpath_var=no | ||
9710 | case $host_os in | ||
9711 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
9712 | *) | ||
9713 | # The compiler driver will combine and reorder linker options, | ||
9714 | # but understands `-z linker_flag'. GCC discards it without `$wl', | ||
9715 | # but is careful enough not to reorder. | ||
9716 | # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
9717 | if test "$GCC" = yes; then | ||
9718 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | ||
9719 | else | ||
9720 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | ||
9721 | fi | ||
9722 | ;; | ||
9723 | esac | ||
9724 | link_all_deplibs=yes | ||
9725 | ;; | ||
9726 | |||
9727 | sunos4*) | ||
9728 | if test "x$host_vendor" = xsequent; then | ||
9729 | # Use $CC to link under sequent, because it throws in some extra .o | ||
9730 | # files that make .init and .fini sections work. | ||
9731 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9732 | else | ||
9733 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | ||
9734 | fi | ||
9735 | hardcode_libdir_flag_spec='-L$libdir' | ||
9736 | hardcode_direct=yes | ||
9737 | hardcode_minus_L=yes | ||
9738 | hardcode_shlibpath_var=no | ||
9739 | ;; | ||
9740 | |||
9741 | sysv4) | ||
9742 | case $host_vendor in | ||
9743 | sni) | ||
9744 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9745 | hardcode_direct=yes # is this really true??? | ||
9746 | ;; | ||
9747 | siemens) | ||
9748 | ## LD is ld it makes a PLAMLIB | ||
9749 | ## CC just makes a GrossModule. | ||
9750 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | ||
9751 | reload_cmds='$CC -r -o $output$reload_objs' | ||
9752 | hardcode_direct=no | ||
9753 | ;; | ||
9754 | motorola) | ||
9755 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9756 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | ||
9757 | ;; | ||
9758 | esac | ||
9759 | runpath_var='LD_RUN_PATH' | ||
9760 | hardcode_shlibpath_var=no | ||
9761 | ;; | ||
9762 | |||
9763 | sysv4.3*) | ||
9764 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9765 | hardcode_shlibpath_var=no | ||
9766 | export_dynamic_flag_spec='-Bexport' | ||
9767 | ;; | ||
9768 | |||
9769 | sysv4*MP*) | ||
9770 | if test -d /usr/nec; then | ||
9771 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9772 | hardcode_shlibpath_var=no | ||
9773 | runpath_var=LD_RUN_PATH | ||
9774 | hardcode_runpath_var=yes | ||
9775 | ld_shlibs=yes | ||
9776 | fi | ||
9777 | ;; | ||
9778 | |||
9779 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | ||
9780 | no_undefined_flag='${wl}-z,text' | ||
9781 | archive_cmds_need_lc=no | ||
9782 | hardcode_shlibpath_var=no | ||
9783 | runpath_var='LD_RUN_PATH' | ||
9784 | |||
9785 | if test "$GCC" = yes; then | ||
9786 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9787 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9788 | else | ||
9789 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9790 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9791 | fi | ||
9792 | ;; | ||
9793 | |||
9794 | sysv5* | sco3.2v5* | sco5v6*) | ||
9795 | # Note: We can NOT use -z defs as we might desire, because we do not | ||
9796 | # link with -lc, and that would cause any symbols used from libc to | ||
9797 | # always be unresolved, which means just about no library would | ||
9798 | # ever link correctly. If we're not using GNU ld we use -z text | ||
9799 | # though, which does catch some bad symbols but isn't as heavy-handed | ||
9800 | # as -z defs. | ||
9801 | no_undefined_flag='${wl}-z,text' | ||
9802 | allow_undefined_flag='${wl}-z,nodefs' | ||
9803 | archive_cmds_need_lc=no | ||
9804 | hardcode_shlibpath_var=no | ||
9805 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | ||
9806 | hardcode_libdir_separator=':' | ||
9807 | link_all_deplibs=yes | ||
9808 | export_dynamic_flag_spec='${wl}-Bexport' | ||
9809 | runpath_var='LD_RUN_PATH' | ||
9810 | |||
9811 | if test "$GCC" = yes; then | ||
9812 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9813 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9814 | else | ||
9815 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9816 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9817 | fi | ||
9818 | ;; | ||
9819 | |||
9820 | uts4*) | ||
9821 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9822 | hardcode_libdir_flag_spec='-L$libdir' | ||
9823 | hardcode_shlibpath_var=no | ||
9824 | ;; | ||
9825 | |||
9826 | *) | ||
9827 | ld_shlibs=no | ||
9828 | ;; | ||
9829 | esac | ||
9830 | |||
9831 | if test x$host_vendor = xsni; then | ||
9832 | case $host in | ||
9833 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
9834 | export_dynamic_flag_spec='${wl}-Blargedynsym' | ||
9835 | ;; | ||
9836 | esac | ||
9837 | fi | ||
9838 | fi | ||
9839 | |||
9840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | ||
9841 | $as_echo "$ld_shlibs" >&6; } | ||
9842 | test "$ld_shlibs" = no && can_build_shared=no | ||
9843 | |||
9844 | with_gnu_ld=$with_gnu_ld | ||
9845 | |||
9846 | |||
9847 | |||
9848 | |||
9849 | |||
9850 | |||
9851 | |||
9852 | |||
9853 | |||
9854 | |||
9855 | |||
9856 | |||
9857 | |||
9858 | |||
9859 | |||
9860 | # | ||
9861 | # Do we need to explicitly link libc? | ||
9862 | # | ||
9863 | case "x$archive_cmds_need_lc" in | ||
9864 | x|xyes) | ||
9865 | # Assume -lc should be added | ||
9866 | archive_cmds_need_lc=yes | ||
9867 | |||
9868 | if test "$enable_shared" = yes && test "$GCC" = yes; then | ||
9869 | case $archive_cmds in | ||
9870 | *'~'*) | ||
9871 | # FIXME: we may have to deal with multi-command sequences. | ||
9872 | ;; | ||
9873 | '$CC '*) | ||
9874 | # Test whether the compiler implicitly links with -lc since on some | ||
9875 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | ||
9876 | # to ld, don't add -lc before -lgcc. | ||
9877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | ||
9878 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | ||
9879 | $RM conftest* | ||
9880 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
9881 | |||
9882 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
9883 | (eval $ac_compile) 2>&5 | ||
9884 | ac_status=$? | ||
9885 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
9886 | test $ac_status = 0; } 2>conftest.err; then | ||
9887 | soname=conftest | ||
9888 | lib=conftest | ||
9889 | libobjs=conftest.$ac_objext | ||
9890 | deplibs= | ||
9891 | wl=$lt_prog_compiler_wl | ||
9892 | pic_flag=$lt_prog_compiler_pic | ||
9893 | compiler_flags=-v | ||
9894 | linker_flags=-v | ||
9895 | verstring= | ||
9896 | output_objdir=. | ||
9897 | libname=conftest | ||
9898 | lt_save_allow_undefined_flag=$allow_undefined_flag | ||
9899 | allow_undefined_flag= | ||
9900 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | ||
9901 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | ||
9902 | ac_status=$? | ||
9903 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
9904 | test $ac_status = 0; } | ||
9905 | then | ||
9906 | archive_cmds_need_lc=no | ||
9907 | else | ||
9908 | archive_cmds_need_lc=yes | ||
9909 | fi | ||
9910 | allow_undefined_flag=$lt_save_allow_undefined_flag | ||
9911 | else | ||
9912 | cat conftest.err 1>&5 | ||
9913 | fi | ||
9914 | $RM conftest* | ||
9915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 | ||
9916 | $as_echo "$archive_cmds_need_lc" >&6; } | ||
9917 | ;; | ||
9918 | esac | ||
9919 | fi | ||
9920 | ;; | ||
9921 | esac | ||
9922 | |||
9923 | |||
9924 | |||
9925 | |||
9926 | |||
9927 | |||
9928 | |||
9929 | |||
9930 | |||
9931 | |||
9932 | |||
9933 | |||
9934 | |||
9935 | |||
9936 | |||
9937 | |||
9938 | |||
9939 | |||
9940 | |||
9941 | |||
9942 | |||
9943 | |||
9944 | |||
9945 | |||
9946 | |||
9947 | |||
9948 | |||
9949 | |||
9950 | |||
9951 | |||
9952 | |||
9953 | |||
9954 | |||
9955 | |||
9956 | |||
9957 | |||
9958 | |||
9959 | |||
9960 | |||
9961 | |||
9962 | |||
9963 | |||
9964 | |||
9965 | |||
9966 | |||
9967 | |||
9968 | |||
9969 | |||
9970 | |||
9971 | |||
9972 | |||
9973 | |||
9974 | |||
9975 | |||
9976 | |||
9977 | |||
9978 | |||
9979 | |||
9980 | |||
9981 | |||
9982 | |||
9983 | |||
9984 | |||
9985 | |||
9986 | |||
9987 | |||
9988 | |||
9989 | |||
9990 | |||
9991 | |||
9992 | |||
9993 | |||
9994 | |||
9995 | |||
9996 | |||
9997 | |||
9998 | |||
9999 | |||
10000 | |||
10001 | |||
10002 | |||
10003 | |||
10004 | |||
10005 | |||
10006 | |||
10007 | |||
10008 | |||
10009 | |||
10010 | |||
10011 | |||
10012 | |||
10013 | |||
10014 | |||
10015 | |||
10016 | |||
10017 | |||
10018 | |||
10019 | |||
10020 | |||
10021 | |||
10022 | |||
10023 | |||
10024 | |||
10025 | |||
10026 | |||
10027 | |||
10028 | |||
10029 | |||
10030 | |||
10031 | |||
10032 | |||
10033 | |||
10034 | |||
10035 | |||
10036 | |||
10037 | |||
10038 | |||
10039 | |||
10040 | |||
10041 | |||
10042 | |||
10043 | |||
10044 | |||
10045 | |||
10046 | |||
10047 | |||
10048 | |||
10049 | |||
10050 | |||
10051 | |||
10052 | |||
10053 | |||
10054 | |||
10055 | |||
10056 | |||
10057 | |||
10058 | |||
10059 | |||
10060 | |||
10061 | |||
10062 | |||
10063 | |||
10064 | |||
10065 | |||
10066 | |||
10067 | |||
10068 | |||
10069 | |||
10070 | |||
10071 | |||
10072 | |||
10073 | |||
10074 | |||
10075 | |||
10076 | |||
10077 | |||
10078 | |||
10079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | ||
10080 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | ||
10081 | |||
10082 | if test "$GCC" = yes; then | ||
10083 | case $host_os in | ||
10084 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | ||
10085 | *) lt_awk_arg="/^libraries:/" ;; | ||
10086 | esac | ||
10087 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
10088 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | ||
10089 | # if the path contains ";" then we assume it to be the separator | ||
10090 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
10091 | # assumed that no part of a normal pathname contains ";" but that should | ||
10092 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
10093 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | ||
10094 | else | ||
10095 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
10096 | fi | ||
10097 | # Ok, now we have the path, separated by spaces, we can step through it | ||
10098 | # and add multilib dir if necessary. | ||
10099 | lt_tmp_lt_search_path_spec= | ||
10100 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | ||
10101 | for lt_sys_path in $lt_search_path_spec; do | ||
10102 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | ||
10103 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | ||
10104 | else | ||
10105 | test -d "$lt_sys_path" && \ | ||
10106 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | ||
10107 | fi | ||
10108 | done | ||
10109 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | ||
10110 | BEGIN {RS=" "; FS="/|\n";} { | ||
10111 | lt_foo=""; | ||
10112 | lt_count=0; | ||
10113 | for (lt_i = NF; lt_i > 0; lt_i--) { | ||
10114 | if ($lt_i != "" && $lt_i != ".") { | ||
10115 | if ($lt_i == "..") { | ||
10116 | lt_count++; | ||
10117 | } else { | ||
10118 | if (lt_count == 0) { | ||
10119 | lt_foo="/" $lt_i lt_foo; | ||
10120 | } else { | ||
10121 | lt_count--; | ||
10122 | } | ||
10123 | } | ||
10124 | } | ||
10125 | } | ||
10126 | if (lt_foo != "") { lt_freq[lt_foo]++; } | ||
10127 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | ||
10128 | }'` | ||
10129 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | ||
10130 | else | ||
10131 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
10132 | fi | ||
10133 | library_names_spec= | ||
10134 | libname_spec='lib$name' | ||
10135 | soname_spec= | ||
10136 | shrext_cmds=".so" | ||
10137 | postinstall_cmds= | ||
10138 | postuninstall_cmds= | ||
10139 | finish_cmds= | ||
10140 | finish_eval= | ||
10141 | shlibpath_var= | ||
10142 | shlibpath_overrides_runpath=unknown | ||
10143 | version_type=none | ||
10144 | dynamic_linker="$host_os ld.so" | ||
10145 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
10146 | need_lib_prefix=unknown | ||
10147 | hardcode_into_libs=no | ||
10148 | |||
10149 | # when you set need_version to no, make sure it does not cause -set_version | ||
10150 | # flags to be left without arguments | ||
10151 | need_version=unknown | ||
10152 | |||
10153 | case $host_os in | ||
10154 | aix3*) | ||
10155 | version_type=linux | ||
10156 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
10157 | shlibpath_var=LIBPATH | ||
10158 | |||
10159 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
10160 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10161 | ;; | ||
10162 | |||
10163 | aix[4-9]*) | ||
10164 | version_type=linux | ||
10165 | need_lib_prefix=no | ||
10166 | need_version=no | ||
10167 | hardcode_into_libs=yes | ||
10168 | if test "$host_cpu" = ia64; then | ||
10169 | # AIX 5 supports IA64 | ||
10170 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
10171 | shlibpath_var=LD_LIBRARY_PATH | ||
10172 | else | ||
10173 | # With GCC up to 2.95.x, collect2 would create an import file | ||
10174 | # for dependence libraries. The import file would start with | ||
10175 | # the line `#! .'. This would cause the generated library to | ||
10176 | # depend on `.', always an invalid library. This was fixed in | ||
10177 | # development snapshots of GCC prior to 3.0. | ||
10178 | case $host_os in | ||
10179 | aix4 | aix4.[01] | aix4.[01].*) | ||
10180 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
10181 | echo ' yes ' | ||
10182 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | ||
10183 | : | ||
10184 | else | ||
10185 | can_build_shared=no | ||
10186 | fi | ||
10187 | ;; | ||
10188 | esac | ||
10189 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
10190 | # soname into executable. Probably we can add versioning support to | ||
10191 | # collect2, so additional links can be useful in future. | ||
10192 | if test "$aix_use_runtimelinking" = yes; then | ||
10193 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
10194 | # instead of lib<name>.a to let people know that these are not | ||
10195 | # typical AIX shared libraries. | ||
10196 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10197 | else | ||
10198 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
10199 | # and later when we are not doing run time linking. | ||
10200 | library_names_spec='${libname}${release}.a $libname.a' | ||
10201 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10202 | fi | ||
10203 | shlibpath_var=LIBPATH | ||
10204 | fi | ||
10205 | ;; | ||
10206 | |||
10207 | amigaos*) | ||
10208 | case $host_cpu in | ||
10209 | powerpc) | ||
10210 | # Since July 2007 AmigaOS4 officially supports .so libraries. | ||
10211 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | ||
10212 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10213 | ;; | ||
10214 | m68k) | ||
10215 | library_names_spec='$libname.ixlibrary $libname.a' | ||
10216 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
10217 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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' | ||
10218 | ;; | ||
10219 | esac | ||
10220 | ;; | ||
10221 | |||
10222 | beos*) | ||
10223 | library_names_spec='${libname}${shared_ext}' | ||
10224 | dynamic_linker="$host_os ld.so" | ||
10225 | shlibpath_var=LIBRARY_PATH | ||
10226 | ;; | ||
10227 | |||
10228 | bsdi[45]*) | ||
10229 | version_type=linux | ||
10230 | need_version=no | ||
10231 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10232 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10233 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
10234 | shlibpath_var=LD_LIBRARY_PATH | ||
10235 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
10236 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
10237 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
10238 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
10239 | # libtool to hard-code these into programs | ||
10240 | ;; | ||
10241 | |||
10242 | cygwin* | mingw* | pw32*) | ||
10243 | version_type=windows | ||
10244 | shrext_cmds=".dll" | ||
10245 | need_version=no | ||
10246 | need_lib_prefix=no | ||
10247 | |||
10248 | case $GCC,$host_os in | ||
10249 | yes,cygwin* | yes,mingw* | yes,pw32*) | ||
10250 | library_names_spec='$libname.dll.a' | ||
10251 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
10252 | postinstall_cmds='base_file=`basename \${file}`~ | ||
10253 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
10254 | dldir=$destdir/`dirname \$dlpath`~ | ||
10255 | test -d \$dldir || mkdir -p \$dldir~ | ||
10256 | $install_prog $dir/$dlname \$dldir/$dlname~ | ||
10257 | chmod a+x \$dldir/$dlname~ | ||
10258 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | ||
10259 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | ||
10260 | fi' | ||
10261 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
10262 | dlpath=$dir/\$dldll~ | ||
10263 | $RM \$dlpath' | ||
10264 | shlibpath_overrides_runpath=yes | ||
10265 | |||
10266 | case $host_os in | ||
10267 | cygwin*) | ||
10268 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
10269 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
10270 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
10271 | ;; | ||
10272 | mingw*) | ||
10273 | # MinGW DLLs use traditional 'lib' prefix | ||
10274 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
10275 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
10276 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
10277 | # It is most probably a Windows format PATH printed by | ||
10278 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
10279 | # path with ; separators, and with drive letters. We can handle the | ||
10280 | # drive letters (cygwin fileutils understands them), so leave them, | ||
10281 | # especially as we might pass files found there to a mingw objdump, | ||
10282 | # which wouldn't understand a cygwinified path. Ahh. | ||
10283 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
10284 | else | ||
10285 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
10286 | fi | ||
10287 | ;; | ||
10288 | pw32*) | ||
10289 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
10290 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
10291 | ;; | ||
10292 | esac | ||
10293 | ;; | ||
10294 | |||
10295 | *) | ||
10296 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
10297 | ;; | ||
10298 | esac | ||
10299 | dynamic_linker='Win32 ld.exe' | ||
10300 | # FIXME: first we should search . and the directory the executable is in | ||
10301 | shlibpath_var=PATH | ||
10302 | ;; | ||
10303 | |||
10304 | darwin* | rhapsody*) | ||
10305 | dynamic_linker="$host_os dyld" | ||
10306 | version_type=darwin | ||
10307 | need_lib_prefix=no | ||
10308 | need_version=no | ||
10309 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
10310 | soname_spec='${libname}${release}${major}$shared_ext' | ||
10311 | shlibpath_overrides_runpath=yes | ||
10312 | shlibpath_var=DYLD_LIBRARY_PATH | ||
10313 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | ||
10314 | |||
10315 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | ||
10316 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
10317 | ;; | ||
10318 | |||
10319 | dgux*) | ||
10320 | version_type=linux | ||
10321 | need_lib_prefix=no | ||
10322 | need_version=no | ||
10323 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
10324 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10325 | shlibpath_var=LD_LIBRARY_PATH | ||
10326 | ;; | ||
10327 | |||
10328 | freebsd1*) | ||
10329 | dynamic_linker=no | ||
10330 | ;; | ||
10331 | |||
10332 | freebsd* | dragonfly*) | ||
10333 | # DragonFly does not have aout. When/if they implement a new | ||
10334 | # versioning mechanism, adjust this. | ||
10335 | if test -x /usr/bin/objformat; then | ||
10336 | objformat=`/usr/bin/objformat` | ||
10337 | else | ||
10338 | case $host_os in | ||
10339 | freebsd[123]*) objformat=aout ;; | ||
10340 | *) objformat=elf ;; | ||
10341 | esac | ||
10342 | fi | ||
10343 | version_type=freebsd-$objformat | ||
10344 | case $version_type in | ||
10345 | freebsd-elf*) | ||
10346 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
10347 | need_version=no | ||
10348 | need_lib_prefix=no | ||
10349 | ;; | ||
10350 | freebsd-*) | ||
10351 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
10352 | need_version=yes | ||
10353 | ;; | ||
10354 | esac | ||
10355 | shlibpath_var=LD_LIBRARY_PATH | ||
10356 | case $host_os in | ||
10357 | freebsd2*) | ||
10358 | shlibpath_overrides_runpath=yes | ||
10359 | ;; | ||
10360 | freebsd3.[01]* | freebsdelf3.[01]*) | ||
10361 | shlibpath_overrides_runpath=yes | ||
10362 | hardcode_into_libs=yes | ||
10363 | ;; | ||
10364 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | ||
10365 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | ||
10366 | shlibpath_overrides_runpath=no | ||
10367 | hardcode_into_libs=yes | ||
10368 | ;; | ||
10369 | *) # from 4.6 on, and DragonFly | ||
10370 | shlibpath_overrides_runpath=yes | ||
10371 | hardcode_into_libs=yes | ||
10372 | ;; | ||
10373 | esac | ||
10374 | ;; | ||
10375 | |||
10376 | gnu*) | ||
10377 | version_type=linux | ||
10378 | need_lib_prefix=no | ||
10379 | need_version=no | ||
10380 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
10381 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10382 | shlibpath_var=LD_LIBRARY_PATH | ||
10383 | hardcode_into_libs=yes | ||
10384 | ;; | ||
10385 | |||
10386 | hpux9* | hpux10* | hpux11*) | ||
10387 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
10388 | # link against other versions. | ||
10389 | version_type=sunos | ||
10390 | need_lib_prefix=no | ||
10391 | need_version=no | ||
10392 | case $host_cpu in | ||
10393 | ia64*) | ||
10394 | shrext_cmds='.so' | ||
10395 | hardcode_into_libs=yes | ||
10396 | dynamic_linker="$host_os dld.so" | ||
10397 | shlibpath_var=LD_LIBRARY_PATH | ||
10398 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
10399 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10400 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10401 | if test "X$HPUX_IA64_MODE" = X32; then | ||
10402 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
10403 | else | ||
10404 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
10405 | fi | ||
10406 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
10407 | ;; | ||
10408 | hppa*64*) | ||
10409 | shrext_cmds='.sl' | ||
10410 | hardcode_into_libs=yes | ||
10411 | dynamic_linker="$host_os dld.sl" | ||
10412 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
10413 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
10414 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10415 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10416 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
10417 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
10418 | ;; | ||
10419 | *) | ||
10420 | shrext_cmds='.sl' | ||
10421 | dynamic_linker="$host_os dld.sl" | ||
10422 | shlibpath_var=SHLIB_PATH | ||
10423 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
10424 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10425 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10426 | ;; | ||
10427 | esac | ||
10428 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
10429 | postinstall_cmds='chmod 555 $lib' | ||
10430 | ;; | ||
10431 | |||
10432 | interix[3-9]*) | ||
10433 | version_type=linux | ||
10434 | need_lib_prefix=no | ||
10435 | need_version=no | ||
10436 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
10437 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10438 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
10439 | shlibpath_var=LD_LIBRARY_PATH | ||
10440 | shlibpath_overrides_runpath=no | ||
10441 | hardcode_into_libs=yes | ||
10442 | ;; | ||
10443 | |||
10444 | irix5* | irix6* | nonstopux*) | ||
10445 | case $host_os in | ||
10446 | nonstopux*) version_type=nonstopux ;; | ||
10447 | *) | ||
10448 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
10449 | version_type=linux | ||
10450 | else | ||
10451 | version_type=irix | ||
10452 | fi ;; | ||
10453 | esac | ||
10454 | need_lib_prefix=no | ||
10455 | need_version=no | ||
10456 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10457 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
10458 | case $host_os in | ||
10459 | irix5* | nonstopux*) | ||
10460 | libsuff= shlibsuff= | ||
10461 | ;; | ||
10462 | *) | ||
10463 | case $LD in # libtool.m4 will add one of these switches to LD | ||
10464 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
10465 | libsuff= shlibsuff= libmagic=32-bit;; | ||
10466 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
10467 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
10468 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
10469 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
10470 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
10471 | esac | ||
10472 | ;; | ||
10473 | esac | ||
10474 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
10475 | shlibpath_overrides_runpath=no | ||
10476 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
10477 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
10478 | hardcode_into_libs=yes | ||
10479 | ;; | ||
10480 | |||
10481 | # No shared lib support for Linux oldld, aout, or coff. | ||
10482 | linux*oldld* | linux*aout* | linux*coff*) | ||
10483 | dynamic_linker=no | ||
10484 | ;; | ||
10485 | |||
10486 | # This must be Linux ELF. | ||
10487 | linux* | k*bsd*-gnu) | ||
10488 | version_type=linux | ||
10489 | need_lib_prefix=no | ||
10490 | need_version=no | ||
10491 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10492 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10493 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
10494 | shlibpath_var=LD_LIBRARY_PATH | ||
10495 | shlibpath_overrides_runpath=no | ||
10496 | # Some binutils ld are patched to set DT_RUNPATH | ||
10497 | save_LDFLAGS=$LDFLAGS | ||
10498 | save_libdir=$libdir | ||
10499 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | ||
10500 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | ||
10501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10502 | /* end confdefs.h. */ | ||
10503 | |||
10504 | int | ||
10505 | main () | ||
10506 | { | ||
10507 | |||
10508 | ; | ||
10509 | return 0; | ||
10510 | } | ||
10511 | _ACEOF | ||
10512 | if ac_fn_c_try_link "$LINENO"; then : | ||
10513 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | ||
10514 | shlibpath_overrides_runpath=yes | ||
10515 | fi | ||
10516 | fi | ||
10517 | rm -f core conftest.err conftest.$ac_objext \ | ||
10518 | conftest$ac_exeext conftest.$ac_ext | ||
10519 | LDFLAGS=$save_LDFLAGS | ||
10520 | libdir=$save_libdir | ||
10521 | |||
10522 | # This implies no fast_install, which is unacceptable. | ||
10523 | # Some rework will be needed to allow for fast_install | ||
10524 | # before this can be enabled. | ||
10525 | hardcode_into_libs=yes | ||
10526 | |||
10527 | # Append ld.so.conf contents to the search path | ||
10528 | if test -f /etc/ld.so.conf; then | ||
10529 | 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;/^$/d' | tr '\n' ' '` | ||
10530 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
10531 | fi | ||
10532 | |||
10533 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
10534 | # powerpc, because MkLinux only supported shared libraries with the | ||
10535 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
10536 | # most powerpc-linux boxes support dynamic linking these days and | ||
10537 | # people can always --disable-shared, the test was removed, and we | ||
10538 | # assume the GNU/Linux dynamic linker is in use. | ||
10539 | dynamic_linker='GNU/Linux ld.so' | ||
10540 | ;; | ||
10541 | |||
10542 | netbsdelf*-gnu) | ||
10543 | version_type=linux | ||
10544 | need_lib_prefix=no | ||
10545 | need_version=no | ||
10546 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
10547 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10548 | shlibpath_var=LD_LIBRARY_PATH | ||
10549 | shlibpath_overrides_runpath=no | ||
10550 | hardcode_into_libs=yes | ||
10551 | dynamic_linker='NetBSD ld.elf_so' | ||
10552 | ;; | ||
10553 | |||
10554 | netbsd*) | ||
10555 | version_type=sunos | ||
10556 | need_lib_prefix=no | ||
10557 | need_version=no | ||
10558 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
10559 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
10560 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
10561 | dynamic_linker='NetBSD (a.out) ld.so' | ||
10562 | else | ||
10563 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
10564 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10565 | dynamic_linker='NetBSD ld.elf_so' | ||
10566 | fi | ||
10567 | shlibpath_var=LD_LIBRARY_PATH | ||
10568 | shlibpath_overrides_runpath=yes | ||
10569 | hardcode_into_libs=yes | ||
10570 | ;; | ||
10571 | |||
10572 | newsos6) | ||
10573 | version_type=linux | ||
10574 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10575 | shlibpath_var=LD_LIBRARY_PATH | ||
10576 | shlibpath_overrides_runpath=yes | ||
10577 | ;; | ||
10578 | |||
10579 | *nto* | *qnx*) | ||
10580 | version_type=qnx | ||
10581 | need_lib_prefix=no | ||
10582 | need_version=no | ||
10583 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10584 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10585 | shlibpath_var=LD_LIBRARY_PATH | ||
10586 | shlibpath_overrides_runpath=no | ||
10587 | hardcode_into_libs=yes | ||
10588 | dynamic_linker='ldqnx.so' | ||
10589 | ;; | ||
10590 | |||
10591 | openbsd*) | ||
10592 | version_type=sunos | ||
10593 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
10594 | need_lib_prefix=no | ||
10595 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | ||
10596 | case $host_os in | ||
10597 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | ||
10598 | *) need_version=no ;; | ||
10599 | esac | ||
10600 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
10601 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
10602 | shlibpath_var=LD_LIBRARY_PATH | ||
10603 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
10604 | case $host_os in | ||
10605 | openbsd2.[89] | openbsd2.[89].*) | ||
10606 | shlibpath_overrides_runpath=no | ||
10607 | ;; | ||
10608 | *) | ||
10609 | shlibpath_overrides_runpath=yes | ||
10610 | ;; | ||
10611 | esac | ||
10612 | else | ||
10613 | shlibpath_overrides_runpath=yes | ||
10614 | fi | ||
10615 | ;; | ||
10616 | |||
10617 | os2*) | ||
10618 | libname_spec='$name' | ||
10619 | shrext_cmds=".dll" | ||
10620 | need_lib_prefix=no | ||
10621 | library_names_spec='$libname${shared_ext} $libname.a' | ||
10622 | dynamic_linker='OS/2 ld.exe' | ||
10623 | shlibpath_var=LIBPATH | ||
10624 | ;; | ||
10625 | |||
10626 | osf3* | osf4* | osf5*) | ||
10627 | version_type=osf | ||
10628 | need_lib_prefix=no | ||
10629 | need_version=no | ||
10630 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10631 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10632 | shlibpath_var=LD_LIBRARY_PATH | ||
10633 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
10634 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
10635 | ;; | ||
10636 | |||
10637 | rdos*) | ||
10638 | dynamic_linker=no | ||
10639 | ;; | ||
10640 | |||
10641 | solaris*) | ||
10642 | version_type=linux | ||
10643 | need_lib_prefix=no | ||
10644 | need_version=no | ||
10645 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10646 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10647 | shlibpath_var=LD_LIBRARY_PATH | ||
10648 | shlibpath_overrides_runpath=yes | ||
10649 | hardcode_into_libs=yes | ||
10650 | # ldd complains unless libraries are executable | ||
10651 | postinstall_cmds='chmod +x $lib' | ||
10652 | ;; | ||
10653 | |||
10654 | sunos4*) | ||
10655 | version_type=sunos | ||
10656 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
10657 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
10658 | shlibpath_var=LD_LIBRARY_PATH | ||
10659 | shlibpath_overrides_runpath=yes | ||
10660 | if test "$with_gnu_ld" = yes; then | ||
10661 | need_lib_prefix=no | ||
10662 | fi | ||
10663 | need_version=yes | ||
10664 | ;; | ||
10665 | |||
10666 | sysv4 | sysv4.3*) | ||
10667 | version_type=linux | ||
10668 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10669 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10670 | shlibpath_var=LD_LIBRARY_PATH | ||
10671 | case $host_vendor in | ||
10672 | sni) | ||
10673 | shlibpath_overrides_runpath=no | ||
10674 | need_lib_prefix=no | ||
10675 | runpath_var=LD_RUN_PATH | ||
10676 | ;; | ||
10677 | siemens) | ||
10678 | need_lib_prefix=no | ||
10679 | ;; | ||
10680 | motorola) | ||
10681 | need_lib_prefix=no | ||
10682 | need_version=no | ||
10683 | shlibpath_overrides_runpath=no | ||
10684 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
10685 | ;; | ||
10686 | esac | ||
10687 | ;; | ||
10688 | |||
10689 | sysv4*MP*) | ||
10690 | if test -d /usr/nec ;then | ||
10691 | version_type=linux | ||
10692 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
10693 | soname_spec='$libname${shared_ext}.$major' | ||
10694 | shlibpath_var=LD_LIBRARY_PATH | ||
10695 | fi | ||
10696 | ;; | ||
10697 | |||
10698 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
10699 | version_type=freebsd-elf | ||
10700 | need_lib_prefix=no | ||
10701 | need_version=no | ||
10702 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
10703 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10704 | shlibpath_var=LD_LIBRARY_PATH | ||
10705 | shlibpath_overrides_runpath=yes | ||
10706 | hardcode_into_libs=yes | ||
10707 | if test "$with_gnu_ld" = yes; then | ||
10708 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
10709 | else | ||
10710 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
10711 | case $host_os in | ||
10712 | sco3.2v5*) | ||
10713 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
10714 | ;; | ||
10715 | esac | ||
10716 | fi | ||
10717 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
10718 | ;; | ||
10719 | |||
10720 | tpf*) | ||
10721 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | ||
10722 | version_type=linux | ||
10723 | need_lib_prefix=no | ||
10724 | need_version=no | ||
10725 | library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10726 | shlibpath_var=LD_LIBRARY_PATH | ||
10727 | shlibpath_overrides_runpath=no | ||
10728 | hardcode_into_libs=yes | ||
10729 | ;; | ||
10730 | |||
10731 | uts4*) | ||
10732 | version_type=linux | ||
10733 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10734 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10735 | shlibpath_var=LD_LIBRARY_PATH | ||
10736 | ;; | ||
10737 | |||
10738 | *) | ||
10739 | dynamic_linker=no | ||
10740 | ;; | ||
10741 | esac | ||
10742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | ||
10743 | $as_echo "$dynamic_linker" >&6; } | ||
10744 | test "$dynamic_linker" = no && can_build_shared=no | ||
10745 | |||
10746 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
10747 | if test "$GCC" = yes; then | ||
10748 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
10749 | fi | ||
10750 | |||
10751 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | ||
10752 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | ||
10753 | fi | ||
10754 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | ||
10755 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | ||
10756 | fi | ||
10757 | |||
10758 | |||
10759 | |||
10760 | |||
10761 | |||
10762 | |||
10763 | |||
10764 | |||
10765 | |||
10766 | |||
10767 | |||
10768 | |||
10769 | |||
10770 | |||
10771 | |||
10772 | |||
10773 | |||
10774 | |||
10775 | |||
10776 | |||
10777 | |||
10778 | |||
10779 | |||
10780 | |||
10781 | |||
10782 | |||
10783 | |||
10784 | |||
10785 | |||
10786 | |||
10787 | |||
10788 | |||
10789 | |||
10790 | |||
10791 | |||
10792 | |||
10793 | |||
10794 | |||
10795 | |||
10796 | |||
10797 | |||
10798 | |||
10799 | |||
10800 | |||
10801 | |||
10802 | |||
10803 | |||
10804 | |||
10805 | |||
10806 | |||
10807 | |||
10808 | |||
10809 | |||
10810 | |||
10811 | |||
10812 | |||
10813 | |||
10814 | |||
10815 | |||
10816 | |||
10817 | |||
10818 | |||
10819 | |||
10820 | |||
10821 | |||
10822 | |||
10823 | |||
10824 | |||
10825 | |||
10826 | |||
10827 | |||
10828 | |||
10829 | |||
10830 | |||
10831 | |||
10832 | |||
10833 | |||
10834 | |||
10835 | |||
10836 | |||
10837 | |||
10838 | |||
10839 | |||
10840 | |||
10841 | |||
10842 | |||
10843 | |||
10844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | ||
10845 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | ||
10846 | hardcode_action= | ||
10847 | if test -n "$hardcode_libdir_flag_spec" || | ||
10848 | test -n "$runpath_var" || | ||
10849 | test "X$hardcode_automatic" = "Xyes" ; then | ||
10850 | |||
10851 | # We can hardcode non-existent directories. | ||
10852 | if test "$hardcode_direct" != no && | ||
10853 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
10854 | # have to relink, otherwise we might link with an installed library | ||
10855 | # when we should be linking with a yet-to-be-installed one | ||
10856 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | ||
10857 | test "$hardcode_minus_L" != no; then | ||
10858 | # Linking always hardcodes the temporary library directory. | ||
10859 | hardcode_action=relink | ||
10860 | else | ||
10861 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
10862 | hardcode_action=immediate | ||
10863 | fi | ||
10864 | else | ||
10865 | # We cannot hardcode anything, or else we can only hardcode existing | ||
10866 | # directories. | ||
10867 | hardcode_action=unsupported | ||
10868 | fi | ||
10869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | ||
10870 | $as_echo "$hardcode_action" >&6; } | ||
10871 | |||
10872 | if test "$hardcode_action" = relink || | ||
10873 | test "$inherit_rpath" = yes; then | ||
10874 | # Fast installation is not supported | ||
10875 | enable_fast_install=no | ||
10876 | elif test "$shlibpath_overrides_runpath" = yes || | ||
10877 | test "$enable_shared" = no; then | ||
10878 | # Fast installation is not necessary | ||
10879 | enable_fast_install=needless | ||
10880 | fi | ||
10881 | |||
10882 | |||
10883 | |||
10884 | |||
10885 | |||
10886 | |||
10887 | if test "x$enable_dlopen" != xyes; then | ||
10888 | enable_dlopen=unknown | ||
10889 | enable_dlopen_self=unknown | ||
10890 | enable_dlopen_self_static=unknown | ||
10891 | else | ||
10892 | lt_cv_dlopen=no | ||
10893 | lt_cv_dlopen_libs= | ||
10894 | |||
10895 | case $host_os in | ||
10896 | beos*) | ||
10897 | lt_cv_dlopen="load_add_on" | ||
10898 | lt_cv_dlopen_libs= | ||
10899 | lt_cv_dlopen_self=yes | ||
10900 | ;; | ||
10901 | |||
10902 | mingw* | pw32*) | ||
10903 | lt_cv_dlopen="LoadLibrary" | ||
10904 | lt_cv_dlopen_libs= | ||
10905 | ;; | ||
10906 | |||
10907 | cygwin*) | ||
10908 | lt_cv_dlopen="dlopen" | ||
10909 | lt_cv_dlopen_libs= | ||
10910 | ;; | ||
10911 | |||
10912 | darwin*) | ||
10913 | # if libdl is installed we need to link against it | ||
10914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | ||
10915 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
10916 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | ||
10917 | $as_echo_n "(cached) " >&6 | ||
10918 | else | ||
10919 | ac_check_lib_save_LIBS=$LIBS | ||
10920 | LIBS="-ldl $LIBS" | ||
10921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10922 | /* end confdefs.h. */ | ||
10923 | |||
10924 | /* Override any GCC internal prototype to avoid an error. | ||
10925 | Use char because int might match the return type of a GCC | ||
10926 | builtin and then its argument prototype would still apply. */ | ||
10927 | #ifdef __cplusplus | ||
10928 | extern "C" | ||
10929 | #endif | ||
10930 | char dlopen (); | ||
10931 | int | ||
10932 | main () | ||
10933 | { | ||
10934 | return dlopen (); | ||
10935 | ; | ||
10936 | return 0; | ||
10937 | } | ||
10938 | _ACEOF | ||
10939 | if ac_fn_c_try_link "$LINENO"; then : | ||
10940 | ac_cv_lib_dl_dlopen=yes | ||
10941 | else | ||
10942 | ac_cv_lib_dl_dlopen=no | ||
10943 | fi | ||
10944 | rm -f core conftest.err conftest.$ac_objext \ | ||
10945 | conftest$ac_exeext conftest.$ac_ext | ||
10946 | LIBS=$ac_check_lib_save_LIBS | ||
10947 | fi | ||
10948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | ||
10949 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
10950 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | ||
10951 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
10952 | else | ||
10953 | |||
10954 | lt_cv_dlopen="dyld" | ||
10955 | lt_cv_dlopen_libs= | ||
10956 | lt_cv_dlopen_self=yes | ||
10957 | |||
10958 | fi | ||
10959 | |||
10960 | ;; | ||
10961 | |||
10962 | *) | ||
10963 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | ||
10964 | if test "x$ac_cv_func_shl_load" = x""yes; then : | ||
10965 | lt_cv_dlopen="shl_load" | ||
10966 | else | ||
10967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | ||
10968 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | ||
10969 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | ||
10970 | $as_echo_n "(cached) " >&6 | ||
10971 | else | ||
10972 | ac_check_lib_save_LIBS=$LIBS | ||
10973 | LIBS="-ldld $LIBS" | ||
10974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10975 | /* end confdefs.h. */ | ||
10976 | |||
10977 | /* Override any GCC internal prototype to avoid an error. | ||
10978 | Use char because int might match the return type of a GCC | ||
10979 | builtin and then its argument prototype would still apply. */ | ||
10980 | #ifdef __cplusplus | ||
10981 | extern "C" | ||
10982 | #endif | ||
10983 | char shl_load (); | ||
10984 | int | ||
10985 | main () | ||
10986 | { | ||
10987 | return shl_load (); | ||
10988 | ; | ||
10989 | return 0; | ||
10990 | } | ||
10991 | _ACEOF | ||
10992 | if ac_fn_c_try_link "$LINENO"; then : | ||
10993 | ac_cv_lib_dld_shl_load=yes | ||
10994 | else | ||
10995 | ac_cv_lib_dld_shl_load=no | ||
10996 | fi | ||
10997 | rm -f core conftest.err conftest.$ac_objext \ | ||
10998 | conftest$ac_exeext conftest.$ac_ext | ||
10999 | LIBS=$ac_check_lib_save_LIBS | ||
11000 | fi | ||
11001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | ||
11002 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | ||
11003 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | ||
11004 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | ||
11005 | else | ||
11006 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | ||
11007 | if test "x$ac_cv_func_dlopen" = x""yes; then : | ||
11008 | lt_cv_dlopen="dlopen" | ||
11009 | else | ||
11010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | ||
11011 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
11012 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | ||
11013 | $as_echo_n "(cached) " >&6 | ||
11014 | else | ||
11015 | ac_check_lib_save_LIBS=$LIBS | ||
11016 | LIBS="-ldl $LIBS" | ||
11017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11018 | /* end confdefs.h. */ | ||
11019 | |||
11020 | /* Override any GCC internal prototype to avoid an error. | ||
11021 | Use char because int might match the return type of a GCC | ||
11022 | builtin and then its argument prototype would still apply. */ | ||
11023 | #ifdef __cplusplus | ||
11024 | extern "C" | ||
11025 | #endif | ||
11026 | char dlopen (); | ||
11027 | int | ||
11028 | main () | ||
11029 | { | ||
11030 | return dlopen (); | ||
11031 | ; | ||
11032 | return 0; | ||
11033 | } | ||
11034 | _ACEOF | ||
11035 | if ac_fn_c_try_link "$LINENO"; then : | ||
11036 | ac_cv_lib_dl_dlopen=yes | ||
11037 | else | ||
11038 | ac_cv_lib_dl_dlopen=no | ||
11039 | fi | ||
11040 | rm -f core conftest.err conftest.$ac_objext \ | ||
11041 | conftest$ac_exeext conftest.$ac_ext | ||
11042 | LIBS=$ac_check_lib_save_LIBS | ||
11043 | fi | ||
11044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | ||
11045 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
11046 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | ||
11047 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
11048 | else | ||
11049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | ||
11050 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | ||
11051 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | ||
11052 | $as_echo_n "(cached) " >&6 | ||
11053 | else | ||
11054 | ac_check_lib_save_LIBS=$LIBS | ||
11055 | LIBS="-lsvld $LIBS" | ||
11056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11057 | /* end confdefs.h. */ | ||
11058 | |||
11059 | /* Override any GCC internal prototype to avoid an error. | ||
11060 | Use char because int might match the return type of a GCC | ||
11061 | builtin and then its argument prototype would still apply. */ | ||
11062 | #ifdef __cplusplus | ||
11063 | extern "C" | ||
11064 | #endif | ||
11065 | char dlopen (); | ||
11066 | int | ||
11067 | main () | ||
11068 | { | ||
11069 | return dlopen (); | ||
11070 | ; | ||
11071 | return 0; | ||
11072 | } | ||
11073 | _ACEOF | ||
11074 | if ac_fn_c_try_link "$LINENO"; then : | ||
11075 | ac_cv_lib_svld_dlopen=yes | ||
11076 | else | ||
11077 | ac_cv_lib_svld_dlopen=no | ||
11078 | fi | ||
11079 | rm -f core conftest.err conftest.$ac_objext \ | ||
11080 | conftest$ac_exeext conftest.$ac_ext | ||
11081 | LIBS=$ac_check_lib_save_LIBS | ||
11082 | fi | ||
11083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | ||
11084 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | ||
11085 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | ||
11086 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | ||
11087 | else | ||
11088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | ||
11089 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | ||
11090 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | ||
11091 | $as_echo_n "(cached) " >&6 | ||
11092 | else | ||
11093 | ac_check_lib_save_LIBS=$LIBS | ||
11094 | LIBS="-ldld $LIBS" | ||
11095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11096 | /* end confdefs.h. */ | ||
11097 | |||
11098 | /* Override any GCC internal prototype to avoid an error. | ||
11099 | Use char because int might match the return type of a GCC | ||
11100 | builtin and then its argument prototype would still apply. */ | ||
11101 | #ifdef __cplusplus | ||
11102 | extern "C" | ||
11103 | #endif | ||
11104 | char dld_link (); | ||
11105 | int | ||
11106 | main () | ||
11107 | { | ||
11108 | return dld_link (); | ||
11109 | ; | ||
11110 | return 0; | ||
11111 | } | ||
11112 | _ACEOF | ||
11113 | if ac_fn_c_try_link "$LINENO"; then : | ||
11114 | ac_cv_lib_dld_dld_link=yes | ||
11115 | else | ||
11116 | ac_cv_lib_dld_dld_link=no | ||
11117 | fi | ||
11118 | rm -f core conftest.err conftest.$ac_objext \ | ||
11119 | conftest$ac_exeext conftest.$ac_ext | ||
11120 | LIBS=$ac_check_lib_save_LIBS | ||
11121 | fi | ||
11122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | ||
11123 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | ||
11124 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | ||
11125 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | ||
11126 | fi | ||
11127 | |||
11128 | |||
11129 | fi | ||
11130 | |||
11131 | |||
11132 | fi | ||
11133 | |||
11134 | |||
11135 | fi | ||
11136 | |||
11137 | |||
11138 | fi | ||
11139 | |||
11140 | |||
11141 | fi | ||
11142 | |||
11143 | ;; | ||
11144 | esac | ||
11145 | |||
11146 | if test "x$lt_cv_dlopen" != xno; then | ||
11147 | enable_dlopen=yes | ||
11148 | else | ||
11149 | enable_dlopen=no | ||
11150 | fi | ||
11151 | |||
11152 | case $lt_cv_dlopen in | ||
11153 | dlopen) | ||
11154 | save_CPPFLAGS="$CPPFLAGS" | ||
11155 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | ||
11156 | |||
11157 | save_LDFLAGS="$LDFLAGS" | ||
11158 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | ||
11159 | |||
11160 | save_LIBS="$LIBS" | ||
11161 | LIBS="$lt_cv_dlopen_libs $LIBS" | ||
11162 | |||
11163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | ||
11164 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | ||
11165 | if test "${lt_cv_dlopen_self+set}" = set; then : | ||
11166 | $as_echo_n "(cached) " >&6 | ||
11167 | else | ||
11168 | if test "$cross_compiling" = yes; then : | ||
11169 | lt_cv_dlopen_self=cross | ||
11170 | else | ||
11171 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
11172 | lt_status=$lt_dlunknown | ||
11173 | cat > conftest.$ac_ext <<_LT_EOF | ||
11174 | #line 11174 "configure" | ||
11175 | #include "confdefs.h" | ||
11176 | |||
11177 | #if HAVE_DLFCN_H | ||
11178 | #include <dlfcn.h> | ||
11179 | #endif | ||
11180 | |||
11181 | #include <stdio.h> | ||
11182 | |||
11183 | #ifdef RTLD_GLOBAL | ||
11184 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
11185 | #else | ||
11186 | # ifdef DL_GLOBAL | ||
11187 | # define LT_DLGLOBAL DL_GLOBAL | ||
11188 | # else | ||
11189 | # define LT_DLGLOBAL 0 | ||
11190 | # endif | ||
11191 | #endif | ||
11192 | |||
11193 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
11194 | find out it does not work in some platform. */ | ||
11195 | #ifndef LT_DLLAZY_OR_NOW | ||
11196 | # ifdef RTLD_LAZY | ||
11197 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
11198 | # else | ||
11199 | # ifdef DL_LAZY | ||
11200 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
11201 | # else | ||
11202 | # ifdef RTLD_NOW | ||
11203 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
11204 | # else | ||
11205 | # ifdef DL_NOW | ||
11206 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
11207 | # else | ||
11208 | # define LT_DLLAZY_OR_NOW 0 | ||
11209 | # endif | ||
11210 | # endif | ||
11211 | # endif | ||
11212 | # endif | ||
11213 | #endif | ||
11214 | |||
11215 | #ifdef __cplusplus | ||
11216 | extern "C" void exit (int); | ||
11217 | #endif | ||
11218 | |||
11219 | void fnord() { int i=42;} | ||
11220 | int main () | ||
11221 | { | ||
11222 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
11223 | int status = $lt_dlunknown; | ||
11224 | |||
11225 | if (self) | ||
11226 | { | ||
11227 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
11228 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
11229 | /* dlclose (self); */ | ||
11230 | } | ||
11231 | else | ||
11232 | puts (dlerror ()); | ||
11233 | |||
11234 | exit (status); | ||
11235 | } | ||
11236 | _LT_EOF | ||
11237 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
11238 | (eval $ac_link) 2>&5 | ||
11239 | ac_status=$? | ||
11240 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
11241 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
11242 | (./conftest; exit; ) >&5 2>/dev/null | ||
11243 | lt_status=$? | ||
11244 | case x$lt_status in | ||
11245 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | ||
11246 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | ||
11247 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | ||
11248 | esac | ||
11249 | else : | ||
11250 | # compilation failed | ||
11251 | lt_cv_dlopen_self=no | ||
11252 | fi | ||
11253 | fi | ||
11254 | rm -fr conftest* | ||
11255 | |||
11256 | |||
11257 | fi | ||
11258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | ||
11259 | $as_echo "$lt_cv_dlopen_self" >&6; } | ||
11260 | |||
11261 | if test "x$lt_cv_dlopen_self" = xyes; then | ||
11262 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | ||
11263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | ||
11264 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | ||
11265 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | ||
11266 | $as_echo_n "(cached) " >&6 | ||
11267 | else | ||
11268 | if test "$cross_compiling" = yes; then : | ||
11269 | lt_cv_dlopen_self_static=cross | ||
11270 | else | ||
11271 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
11272 | lt_status=$lt_dlunknown | ||
11273 | cat > conftest.$ac_ext <<_LT_EOF | ||
11274 | #line 11274 "configure" | ||
11275 | #include "confdefs.h" | ||
11276 | |||
11277 | #if HAVE_DLFCN_H | ||
11278 | #include <dlfcn.h> | ||
11279 | #endif | ||
11280 | |||
11281 | #include <stdio.h> | ||
11282 | |||
11283 | #ifdef RTLD_GLOBAL | ||
11284 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
11285 | #else | ||
11286 | # ifdef DL_GLOBAL | ||
11287 | # define LT_DLGLOBAL DL_GLOBAL | ||
11288 | # else | ||
11289 | # define LT_DLGLOBAL 0 | ||
11290 | # endif | ||
11291 | #endif | ||
11292 | |||
11293 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
11294 | find out it does not work in some platform. */ | ||
11295 | #ifndef LT_DLLAZY_OR_NOW | ||
11296 | # ifdef RTLD_LAZY | ||
11297 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
11298 | # else | ||
11299 | # ifdef DL_LAZY | ||
11300 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
11301 | # else | ||
11302 | # ifdef RTLD_NOW | ||
11303 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
11304 | # else | ||
11305 | # ifdef DL_NOW | ||
11306 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
11307 | # else | ||
11308 | # define LT_DLLAZY_OR_NOW 0 | ||
11309 | # endif | ||
11310 | # endif | ||
11311 | # endif | ||
11312 | # endif | ||
11313 | #endif | ||
11314 | |||
11315 | #ifdef __cplusplus | ||
11316 | extern "C" void exit (int); | ||
11317 | #endif | ||
11318 | |||
11319 | void fnord() { int i=42;} | ||
11320 | int main () | ||
11321 | { | ||
11322 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
11323 | int status = $lt_dlunknown; | ||
11324 | |||
11325 | if (self) | ||
11326 | { | ||
11327 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
11328 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
11329 | /* dlclose (self); */ | ||
11330 | } | ||
11331 | else | ||
11332 | puts (dlerror ()); | ||
11333 | |||
11334 | exit (status); | ||
11335 | } | ||
11336 | _LT_EOF | ||
11337 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
11338 | (eval $ac_link) 2>&5 | ||
11339 | ac_status=$? | ||
11340 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
11341 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
11342 | (./conftest; exit; ) >&5 2>/dev/null | ||
11343 | lt_status=$? | ||
11344 | case x$lt_status in | ||
11345 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | ||
11346 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | ||
11347 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | ||
11348 | esac | ||
11349 | else : | ||
11350 | # compilation failed | ||
11351 | lt_cv_dlopen_self_static=no | ||
11352 | fi | ||
11353 | fi | ||
11354 | rm -fr conftest* | ||
11355 | |||
11356 | |||
11357 | fi | ||
11358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | ||
11359 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | ||
11360 | fi | ||
11361 | |||
11362 | CPPFLAGS="$save_CPPFLAGS" | ||
11363 | LDFLAGS="$save_LDFLAGS" | ||
11364 | LIBS="$save_LIBS" | ||
11365 | ;; | ||
11366 | esac | ||
11367 | |||
11368 | case $lt_cv_dlopen_self in | ||
11369 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | ||
11370 | *) enable_dlopen_self=unknown ;; | ||
11371 | esac | ||
11372 | |||
11373 | case $lt_cv_dlopen_self_static in | ||
11374 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | ||
11375 | *) enable_dlopen_self_static=unknown ;; | ||
11376 | esac | ||
11377 | fi | ||
11378 | |||
11379 | |||
11380 | |||
11381 | |||
11382 | |||
11383 | |||
11384 | |||
11385 | |||
11386 | |||
11387 | |||
11388 | |||
11389 | |||
11390 | |||
11391 | |||
11392 | |||
11393 | |||
11394 | |||
11395 | striplib= | ||
11396 | old_striplib= | ||
11397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | ||
11398 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | ||
11399 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | ||
11400 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
11401 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
11402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11403 | $as_echo "yes" >&6; } | ||
11404 | else | ||
11405 | # FIXME - insert some real tests, host_os isn't really good enough | ||
11406 | case $host_os in | ||
11407 | darwin*) | ||
11408 | if test -n "$STRIP" ; then | ||
11409 | striplib="$STRIP -x" | ||
11410 | old_striplib="$STRIP -S" | ||
11411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11412 | $as_echo "yes" >&6; } | ||
11413 | else | ||
11414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11415 | $as_echo "no" >&6; } | ||
11416 | fi | ||
11417 | ;; | ||
11418 | *) | ||
11419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11420 | $as_echo "no" >&6; } | ||
11421 | ;; | ||
11422 | esac | ||
11423 | fi | ||
11424 | |||
11425 | |||
11426 | |||
11427 | |||
11428 | |||
11429 | |||
11430 | |||
11431 | |||
11432 | |||
11433 | |||
11434 | |||
11435 | |||
11436 | # Report which library types will actually be built | ||
11437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | ||
11438 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | ||
11439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | ||
11440 | $as_echo "$can_build_shared" >&6; } | ||
11441 | |||
11442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | ||
11443 | $as_echo_n "checking whether to build shared libraries... " >&6; } | ||
11444 | test "$can_build_shared" = "no" && enable_shared=no | ||
11445 | |||
11446 | # On AIX, shared libraries and static libraries use the same namespace, and | ||
11447 | # are all built from PIC. | ||
11448 | case $host_os in | ||
11449 | aix3*) | ||
11450 | test "$enable_shared" = yes && enable_static=no | ||
11451 | if test -n "$RANLIB"; then | ||
11452 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | ||
11453 | postinstall_cmds='$RANLIB $lib' | ||
11454 | fi | ||
11455 | ;; | ||
11456 | |||
11457 | aix[4-9]*) | ||
11458 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | ||
11459 | test "$enable_shared" = yes && enable_static=no | ||
11460 | fi | ||
11461 | ;; | ||
11462 | esac | ||
11463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | ||
11464 | $as_echo "$enable_shared" >&6; } | ||
11465 | |||
11466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | ||
11467 | $as_echo_n "checking whether to build static libraries... " >&6; } | ||
11468 | # Make sure either enable_shared or enable_static is yes. | ||
11469 | test "$enable_shared" = yes || enable_static=yes | ||
11470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | ||
11471 | $as_echo "$enable_static" >&6; } | ||
11472 | |||
11473 | |||
11474 | |||
11475 | |||
11476 | fi | ||
11477 | ac_ext=c | ||
11478 | ac_cpp='$CPP $CPPFLAGS' | ||
11479 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
11480 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
11481 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
11482 | |||
11483 | CC="$lt_save_CC" | ||
11484 | |||
11485 | |||
11486 | |||
11487 | |||
11488 | |||
11489 | |||
11490 | |||
11491 | |||
11492 | |||
11493 | |||
11494 | |||
11495 | |||
11496 | |||
11497 | ac_config_commands="$ac_config_commands libtool" | ||
11498 | |||
11499 | |||
11500 | |||
11501 | |||
11502 | # Only expand once: | ||
11503 | |||
11504 | |||
11505 | |||
11506 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
11507 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
11508 | |||
11509 | |||
11510 | |||
11511 | cat >>confdefs.h <<_ACEOF | ||
11512 | #define VMAJ 1 | ||
11513 | _ACEOF | ||
11514 | |||
11515 | |||
11516 | cat >>confdefs.h <<_ACEOF | ||
11517 | #define VMIN 1 | ||
11518 | _ACEOF | ||
11519 | |||
11520 | |||
11521 | cat >>confdefs.h <<_ACEOF | ||
11522 | #define VMIC 0 | ||
11523 | _ACEOF | ||
11524 | |||
11525 | |||
11526 | cat >>confdefs.h <<_ACEOF | ||
11527 | #define VREV 0 | ||
11528 | _ACEOF | ||
11529 | |||
11530 | version_info="2:0:1" | ||
11531 | release_info="" | ||
11532 | |||
11533 | |||
11534 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
11535 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
11536 | VMAJ=1 | ||
11537 | |||
11538 | |||
11539 | |||
11540 | ### Needed information | ||
11541 | |||
11542 | |||
11543 | |||
11544 | |||
11545 | requirement_eina="" | ||
11546 | |||
11547 | case "$host_os" in | ||
11548 | mingw32ce*) | ||
11549 | MODULE_ARCH="$host_os-$host_cpu" | ||
11550 | ;; | ||
11551 | *) | ||
11552 | MODULE_ARCH="$host_os-$host_cpu-1.1.0" | ||
11553 | ;; | ||
11554 | esac | ||
11555 | |||
11556 | |||
11557 | cat >>confdefs.h <<_ACEOF | ||
11558 | #define MODULE_ARCH "${MODULE_ARCH}" | ||
11559 | _ACEOF | ||
11560 | |||
11561 | |||
11562 | case "$host_os" in | ||
11563 | mingw*) | ||
11564 | MODULE_EXT=".dll" | ||
11565 | ;; | ||
11566 | *) | ||
11567 | MODULE_EXT=".so" | ||
11568 | ;; | ||
11569 | esac | ||
11570 | |||
11571 | |||
11572 | cat >>confdefs.h <<_ACEOF | ||
11573 | #define SHARED_LIB_SUFFIX "${MODULE_EXT}" | ||
11574 | _ACEOF | ||
11575 | |||
11576 | |||
11577 | |||
11578 | |||
11579 | # Check whether --enable-cpu-mmx was given. | ||
11580 | if test "${enable_cpu_mmx+set}" = set; then : | ||
11581 | enableval=$enable_cpu_mmx; | ||
11582 | if test "x${enableval}" = "xyes" ; then | ||
11583 | _efl_enable_cpu_mmx="yes" | ||
11584 | else | ||
11585 | _efl_enable_cpu_mmx="no" | ||
11586 | fi | ||
11587 | |||
11588 | else | ||
11589 | _efl_enable_cpu_mmx="yes" | ||
11590 | fi | ||
11591 | |||
11592 | |||
11593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build mmx code" >&5 | ||
11594 | $as_echo_n "checking whether to build mmx code... " >&6; } | ||
11595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_cpu_mmx}" >&5 | ||
11596 | $as_echo "${_efl_enable_cpu_mmx}" >&6; } | ||
11597 | |||
11598 | |||
11599 | _efl_build_cpu_mmx="no" | ||
11600 | if test "x${_efl_enable_cpu_mmx}" = "xyes" ; then | ||
11601 | case $host_cpu in | ||
11602 | i*86 | x86_64 | amd64) | ||
11603 | _efl_build_cpu_mmx="yes" | ||
11604 | ;; | ||
11605 | esac | ||
11606 | fi | ||
11607 | |||
11608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmx instructions set is available" >&5 | ||
11609 | $as_echo_n "checking whether mmx instructions set is available... " >&6; } | ||
11610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_build_cpu_mmx}" >&5 | ||
11611 | $as_echo "${_efl_build_cpu_mmx}" >&6; } | ||
11612 | |||
11613 | |||
11614 | if test "x${_efl_build_cpu_mmx}" = "xyes" ; then | ||
11615 | SAVE_CFLAGS=${CFLAGS} | ||
11616 | CFLAGS="-mmmx" | ||
11617 | ac_ext=c | ||
11618 | ac_cpp='$CPP $CPPFLAGS' | ||
11619 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
11620 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
11621 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
11622 | |||
11623 | |||
11624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11625 | /* end confdefs.h. */ | ||
11626 | |||
11627 | int | ||
11628 | main () | ||
11629 | { | ||
11630 | |||
11631 | ; | ||
11632 | return 0; | ||
11633 | } | ||
11634 | _ACEOF | ||
11635 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11636 | |||
11637 | have_linker_option="yes" | ||
11638 | EFL_SIMD_FLAGS="${EFL_SIMD_FLAGS} -mmmx" | ||
11639 | else | ||
11640 | have_linker_option="no" | ||
11641 | fi | ||
11642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11643 | |||
11644 | ac_ext=c | ||
11645 | ac_cpp='$CPP $CPPFLAGS' | ||
11646 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
11647 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
11648 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
11649 | |||
11650 | CFLAGS=${SAVE_CFLAGS} | ||
11651 | |||
11652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmx linker option is supported" >&5 | ||
11653 | $as_echo_n "checking whether mmx linker option is supported... " >&6; } | ||
11654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_linker_option}" >&5 | ||
11655 | $as_echo "${have_linker_option}" >&6; } | ||
11656 | fi | ||
11657 | |||
11658 | |||
11659 | |||
11660 | if test "x${_efl_build_cpu_mmx}" = "xyes" ; then | ||
11661 | |||
11662 | $as_echo "#define EFL_HAVE_MMX 1" >>confdefs.h | ||
11663 | |||
11664 | fi | ||
11665 | |||
11666 | if test "x$_efl_build_cpu_mmx" = "xyes"; then : | ||
11667 | have_mmx="yes" | ||
11668 | else | ||
11669 | have_mmx="no" | ||
11670 | fi | ||
11671 | |||
11672 | |||
11673 | |||
11674 | # Check whether --enable-cpu-sse was given. | ||
11675 | if test "${enable_cpu_sse+set}" = set; then : | ||
11676 | enableval=$enable_cpu_sse; | ||
11677 | if test "x${enableval}" = "xyes" ; then | ||
11678 | _efl_enable_cpu_sse="yes" | ||
11679 | else | ||
11680 | _efl_enable_cpu_sse="no" | ||
11681 | fi | ||
11682 | |||
11683 | else | ||
11684 | _efl_enable_cpu_sse="yes" | ||
11685 | fi | ||
11686 | |||
11687 | |||
11688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build sse code" >&5 | ||
11689 | $as_echo_n "checking whether to build sse code... " >&6; } | ||
11690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_cpu_sse}" >&5 | ||
11691 | $as_echo "${_efl_enable_cpu_sse}" >&6; } | ||
11692 | |||
11693 | |||
11694 | _efl_build_cpu_sse="no" | ||
11695 | if test "x${_efl_enable_cpu_sse}" = "xyes" ; then | ||
11696 | case $host_cpu in | ||
11697 | i*86 | x86_64 | amd64) | ||
11698 | _efl_build_cpu_sse="yes" | ||
11699 | ;; | ||
11700 | esac | ||
11701 | fi | ||
11702 | |||
11703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sse instructions set is available" >&5 | ||
11704 | $as_echo_n "checking whether sse instructions set is available... " >&6; } | ||
11705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_build_cpu_sse}" >&5 | ||
11706 | $as_echo "${_efl_build_cpu_sse}" >&6; } | ||
11707 | |||
11708 | |||
11709 | if test "x${_efl_build_cpu_sse}" = "xyes" ; then | ||
11710 | SAVE_CFLAGS=${CFLAGS} | ||
11711 | CFLAGS="-msse" | ||
11712 | ac_ext=c | ||
11713 | ac_cpp='$CPP $CPPFLAGS' | ||
11714 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
11715 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
11716 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
11717 | |||
11718 | |||
11719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11720 | /* end confdefs.h. */ | ||
11721 | |||
11722 | int | ||
11723 | main () | ||
11724 | { | ||
11725 | |||
11726 | ; | ||
11727 | return 0; | ||
11728 | } | ||
11729 | |||
11730 | _ACEOF | ||
11731 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11732 | |||
11733 | have_linker_option="yes" | ||
11734 | EFL_SIMD_FLAGS="${EFL_SIMD_FLAGS} -msse" | ||
11735 | |||
11736 | else | ||
11737 | have_linker_option="no" | ||
11738 | fi | ||
11739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11740 | |||
11741 | ac_ext=c | ||
11742 | ac_cpp='$CPP $CPPFLAGS' | ||
11743 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
11744 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
11745 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
11746 | |||
11747 | CFLAGS=${SAVE_CFLAGS} | ||
11748 | |||
11749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sse linker option is supported" >&5 | ||
11750 | $as_echo_n "checking whether sse linker option is supported... " >&6; } | ||
11751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_linker_option}" >&5 | ||
11752 | $as_echo "${have_linker_option}" >&6; } | ||
11753 | fi | ||
11754 | |||
11755 | |||
11756 | |||
11757 | if test "x${_efl_build_cpu_sse}" = "xyes" ; then | ||
11758 | |||
11759 | $as_echo "#define EFL_HAVE_SSE 1" >>confdefs.h | ||
11760 | |||
11761 | fi | ||
11762 | |||
11763 | if test "x$_efl_build_cpu_sse" = "xyes"; then : | ||
11764 | have_sse="yes" | ||
11765 | else | ||
11766 | have_sse="no" | ||
11767 | fi | ||
11768 | |||
11769 | |||
11770 | |||
11771 | |||
11772 | # Check whether --enable-cpu-sse2 was given. | ||
11773 | if test "${enable_cpu_sse2+set}" = set; then : | ||
11774 | enableval=$enable_cpu_sse2; | ||
11775 | if test "x${enableval}" = "xyes" ; then | ||
11776 | _efl_enable_cpu_sse2="yes" | ||
11777 | else | ||
11778 | _efl_enable_cpu_sse2="no" | ||
11779 | fi | ||
11780 | |||
11781 | else | ||
11782 | _efl_enable_cpu_sse2="yes" | ||
11783 | fi | ||
11784 | |||
11785 | |||
11786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build sse2 code" >&5 | ||
11787 | $as_echo_n "checking whether to build sse2 code... " >&6; } | ||
11788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_cpu_sse2}" >&5 | ||
11789 | $as_echo "${_efl_enable_cpu_sse2}" >&6; } | ||
11790 | |||
11791 | |||
11792 | _efl_build_cpu_sse2="no" | ||
11793 | if test "x${_efl_enable_cpu_sse2}" = "xyes" ; then | ||
11794 | case $host_cpu in | ||
11795 | i*86 | x86_64 | amd64) | ||
11796 | _efl_build_cpu_sse2="yes" | ||
11797 | ;; | ||
11798 | esac | ||
11799 | fi | ||
11800 | |||
11801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sse2 instructions set is available" >&5 | ||
11802 | $as_echo_n "checking whether sse2 instructions set is available... " >&6; } | ||
11803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_build_cpu_sse2}" >&5 | ||
11804 | $as_echo "${_efl_build_cpu_sse2}" >&6; } | ||
11805 | |||
11806 | |||
11807 | if test "x${_efl_build_cpu_sse2}" = "xyes" ; then | ||
11808 | SAVE_CFLAGS=${CFLAGS} | ||
11809 | CFLAGS="-msse2" | ||
11810 | ac_ext=c | ||
11811 | ac_cpp='$CPP $CPPFLAGS' | ||
11812 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
11813 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
11814 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
11815 | |||
11816 | |||
11817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11818 | /* end confdefs.h. */ | ||
11819 | |||
11820 | int | ||
11821 | main () | ||
11822 | { | ||
11823 | |||
11824 | ; | ||
11825 | return 0; | ||
11826 | } | ||
11827 | |||
11828 | _ACEOF | ||
11829 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11830 | |||
11831 | have_linker_option="yes" | ||
11832 | EFL_SIMD_FLAGS="${EFL_SIMD_FLAGS} -msse2" | ||
11833 | |||
11834 | else | ||
11835 | have_linker_option="no" | ||
11836 | fi | ||
11837 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11838 | |||
11839 | ac_ext=c | ||
11840 | ac_cpp='$CPP $CPPFLAGS' | ||
11841 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
11842 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
11843 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
11844 | |||
11845 | CFLAGS=${SAVE_CFLAGS} | ||
11846 | |||
11847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sse2 linker option is supported" >&5 | ||
11848 | $as_echo_n "checking whether sse2 linker option is supported... " >&6; } | ||
11849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_linker_option}" >&5 | ||
11850 | $as_echo "${have_linker_option}" >&6; } | ||
11851 | fi | ||
11852 | |||
11853 | |||
11854 | |||
11855 | if test "x${_efl_build_cpu_sse2}" = "xyes" ; then | ||
11856 | |||
11857 | $as_echo "#define EFL_HAVE_SSE2 1" >>confdefs.h | ||
11858 | |||
11859 | fi | ||
11860 | |||
11861 | if test "x$_efl_build_cpu_sse2" = "xyes"; then : | ||
11862 | have_sse2="yes" | ||
11863 | else | ||
11864 | have_sse2="no" | ||
11865 | fi | ||
11866 | |||
11867 | |||
11868 | |||
11869 | |||
11870 | # Check whether --enable-cpu-altivec was given. | ||
11871 | if test "${enable_cpu_altivec+set}" = set; then : | ||
11872 | enableval=$enable_cpu_altivec; | ||
11873 | if test "x${enableval}" = "xyes" ; then | ||
11874 | _efl_enable_cpu_altivec="yes" | ||
11875 | else | ||
11876 | _efl_enable_cpu_altivec="no" | ||
11877 | fi | ||
11878 | |||
11879 | else | ||
11880 | _efl_enable_cpu_altivec="yes" | ||
11881 | |||
11882 | fi | ||
11883 | |||
11884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build altivec code" >&5 | ||
11885 | $as_echo_n "checking whether to build altivec code... " >&6; } | ||
11886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_cpu_altivec}" >&5 | ||
11887 | $as_echo "${_efl_enable_cpu_altivec}" >&6; } | ||
11888 | |||
11889 | |||
11890 | _efl_build_cpu_altivec="no" | ||
11891 | if test "x${_efl_enable_cpu_altivec}" = "xyes" ; then | ||
11892 | case $host_cpu in | ||
11893 | *power* | *ppc*) | ||
11894 | _efl_build_cpu_altivec="yes" | ||
11895 | ;; | ||
11896 | esac | ||
11897 | fi | ||
11898 | |||
11899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether altivec instructions set is available" >&5 | ||
11900 | $as_echo_n "checking whether altivec instructions set is available... " >&6; } | ||
11901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_build_cpu_altivec}" >&5 | ||
11902 | $as_echo "${_efl_build_cpu_altivec}" >&6; } | ||
11903 | |||
11904 | |||
11905 | _efl_have_faltivec="no" | ||
11906 | if test "x${_efl_build_cpu_altivec}" = "xyes" ; then | ||
11907 | SAVE_CFLAGS=${CFLAGS} | ||
11908 | CFLAGS="-faltivec" | ||
11909 | ac_ext=c | ||
11910 | ac_cpp='$CPP $CPPFLAGS' | ||
11911 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
11912 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
11913 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
11914 | |||
11915 | |||
11916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11917 | /* end confdefs.h. */ | ||
11918 | |||
11919 | #include <altivec.h> | ||
11920 | |||
11921 | int | ||
11922 | main () | ||
11923 | { | ||
11924 | |||
11925 | ; | ||
11926 | return 0; | ||
11927 | } | ||
11928 | _ACEOF | ||
11929 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11930 | _efl_have_faltivec="yes" | ||
11931 | _efl_altivec_flag="-faltivec" | ||
11932 | else | ||
11933 | _efl_have_faltivec="no" | ||
11934 | fi | ||
11935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11936 | |||
11937 | if test "x${_efl_have_faltivec}" = "xno" ; then | ||
11938 | CFLAGS="-maltivec" | ||
11939 | |||
11940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11941 | /* end confdefs.h. */ | ||
11942 | |||
11943 | #include <altivec.h> | ||
11944 | |||
11945 | int | ||
11946 | main () | ||
11947 | { | ||
11948 | |||
11949 | ; | ||
11950 | return 0; | ||
11951 | } | ||
11952 | _ACEOF | ||
11953 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11954 | _efl_have_faltivec="yes" | ||
11955 | _efl_altivec_flag="-maltivec" | ||
11956 | else | ||
11957 | _efl_have_faltivec="no" | ||
11958 | fi | ||
11959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11960 | fi | ||
11961 | |||
11962 | ac_ext=c | ||
11963 | ac_cpp='$CPP $CPPFLAGS' | ||
11964 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
11965 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
11966 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
11967 | |||
11968 | CFLAGS=${SAVE_CFLAGS} | ||
11969 | |||
11970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether altivec linker option is supported" >&5 | ||
11971 | $as_echo_n "checking whether altivec linker option is supported... " >&6; } | ||
11972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_have_faltivec}" >&5 | ||
11973 | $as_echo "${_efl_have_faltivec}" >&6; } | ||
11974 | fi | ||
11975 | |||
11976 | EFL_SIMD_FLAGS="${EFL_SIMD_FLAGS} ${_efl_altivec_flag}" | ||
11977 | |||
11978 | |||
11979 | if test "x${_efl_have_faltivec}" = "xyes" ; then | ||
11980 | |||
11981 | $as_echo "#define EFL_HAVE_ALTIVEC 1" >>confdefs.h | ||
11982 | |||
11983 | fi | ||
11984 | |||
11985 | if test "x$_efl_have_faltivec" = "xyes"; then : | ||
11986 | have_altivec="yes" | ||
11987 | else | ||
11988 | have_altivec="no" | ||
11989 | fi | ||
11990 | |||
11991 | |||
11992 | |||
11993 | |||
11994 | |||
11995 | # Check whether --enable-posix-threads was given. | ||
11996 | if test "${enable_posix_threads+set}" = set; then : | ||
11997 | enableval=$enable_posix_threads; | ||
11998 | if test "x${enableval}" = "xyes" ; then | ||
11999 | _efl_enable_posix_threads="yes" | ||
12000 | else | ||
12001 | _efl_enable_posix_threads="no" | ||
12002 | fi | ||
12003 | |||
12004 | else | ||
12005 | _efl_enable_posix_threads="auto" | ||
12006 | fi | ||
12007 | |||
12008 | |||
12009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build POSIX threads code" >&5 | ||
12010 | $as_echo_n "checking whether to build POSIX threads code... " >&6; } | ||
12011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_posix_threads}" >&5 | ||
12012 | $as_echo "${_efl_enable_posix_threads}" >&6; } | ||
12013 | |||
12014 | # Check whether --enable-win32-threads was given. | ||
12015 | if test "${enable_win32_threads+set}" = set; then : | ||
12016 | enableval=$enable_win32_threads; | ||
12017 | if test "x${enableval}" = "xyes" ; then | ||
12018 | _efl_enable_win32_threads="yes" | ||
12019 | else | ||
12020 | _efl_enable_win32_threads="no" | ||
12021 | fi | ||
12022 | |||
12023 | else | ||
12024 | _efl_enable_win32_threads="no" | ||
12025 | fi | ||
12026 | |||
12027 | |||
12028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Windows threads code" >&5 | ||
12029 | $as_echo_n "checking whether to build Windows threads code... " >&6; } | ||
12030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_win32_threads}" >&5 | ||
12031 | $as_echo "${_efl_enable_win32_threads}" >&6; } | ||
12032 | |||
12033 | |||
12034 | if test "x${_efl_enable_posix_threads}" = "xyes" && test "x${_efl_enable_win32_threads}" = "xyes" ; then | ||
12035 | case "$host_os" in | ||
12036 | mingw*) | ||
12037 | _efl_enable_posix_threads=no | ||
12038 | ;; | ||
12039 | *) | ||
12040 | _efl_enable_win32_threads=no | ||
12041 | ;; | ||
12042 | esac | ||
12043 | fi | ||
12044 | |||
12045 | if test "x${_efl_enable_win32_threads}" = "xyes" ; then | ||
12046 | case "$host_os" in | ||
12047 | mingw*) | ||
12048 | ;; | ||
12049 | *) | ||
12050 | as_fn_error $? "Win32 threads support requested but non Windows system found." "$LINENO" 5 | ||
12051 | ;; | ||
12052 | esac | ||
12053 | fi | ||
12054 | |||
12055 | if test "x${_efl_enable_posix_threads}" = "xyes" ; then | ||
12056 | case "$host_os" in | ||
12057 | mingw*) | ||
12058 | as_fn_error $? "POSIX threads support requested but Windows system found." "$LINENO" 5 | ||
12059 | ;; | ||
12060 | *) | ||
12061 | ;; | ||
12062 | esac | ||
12063 | fi | ||
12064 | |||
12065 | |||
12066 | case "$host_os" in | ||
12067 | mingw*) | ||
12068 | ;; | ||
12069 | solaris*) | ||
12070 | _efl_threads_cflags="-mt" | ||
12071 | _efl_threads_libs="-mt" | ||
12072 | ;; | ||
12073 | *) | ||
12074 | _efl_threads_cflags="-pthread" | ||
12075 | _efl_threads_libs="-pthread" | ||
12076 | ;; | ||
12077 | esac | ||
12078 | |||
12079 | _efl_have_posix_threads="no" | ||
12080 | _efl_have_win32_threads="no" | ||
12081 | |||
12082 | if test "x${_efl_enable_posix_threads}" = "xyes" || test "x${_efl_enable_posix_threads}" = "xauto" ; then | ||
12083 | |||
12084 | SAVE_CFLAGS=${CFLAGS} | ||
12085 | CFLAGS="${CFLAGS} ${_efl_threads_cflags}" | ||
12086 | SAVE_LIBS=${LIBS} | ||
12087 | LIBS="${LIBS} ${_efl_threads_libs}" | ||
12088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12089 | /* end confdefs.h. */ | ||
12090 | |||
12091 | #include <pthread.h> | ||
12092 | |||
12093 | int | ||
12094 | main () | ||
12095 | { | ||
12096 | |||
12097 | pthread_t id; | ||
12098 | id = pthread_self(); | ||
12099 | |||
12100 | ; | ||
12101 | return 0; | ||
12102 | } | ||
12103 | _ACEOF | ||
12104 | if ac_fn_c_try_link "$LINENO"; then : | ||
12105 | _efl_have_posix_threads="yes" | ||
12106 | else | ||
12107 | _efl_have_posix_threads="no" | ||
12108 | fi | ||
12109 | rm -f core conftest.err conftest.$ac_objext \ | ||
12110 | conftest$ac_exeext conftest.$ac_ext | ||
12111 | CFLAGS=${SAVE_CFLAGS} | ||
12112 | LIBS=${SAVE_LIBS} | ||
12113 | |||
12114 | fi | ||
12115 | |||
12116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system support POSIX threads" >&5 | ||
12117 | $as_echo_n "checking whether system support POSIX threads... " >&6; } | ||
12118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_have_posix_threads}" >&5 | ||
12119 | $as_echo "${_efl_have_posix_threads}" >&6; } | ||
12120 | if test "$x{_efl_enable_posix_threads}" = "xyes" && test "x${_efl_have_posix_threads}" = "xno"; then | ||
12121 | as_fn_error $? "POSIX threads support requested but not found." "$LINENO" 5 | ||
12122 | fi | ||
12123 | |||
12124 | EFL_PTHREAD_CFLAGS="" | ||
12125 | EFL_PTHREAD_LIBS="" | ||
12126 | if test "x${_efl_have_posix_threads}" = "xyes" ; then | ||
12127 | EFL_PTHREAD_CFLAGS=${_efl_threads_cflags} | ||
12128 | EFL_PTHREAD_LIBS=${_efl_threads_libs} | ||
12129 | fi | ||
12130 | |||
12131 | |||
12132 | |||
12133 | |||
12134 | _efl_enable_on_off_threads="no" | ||
12135 | # Check whether --enable-on-off-threads was given. | ||
12136 | if test "${enable_on_off_threads+set}" = set; then : | ||
12137 | enableval=$enable_on_off_threads; _efl_enable_on_off_threads="${enableval}" | ||
12138 | fi | ||
12139 | |||
12140 | |||
12141 | have_on_off_threads="no" | ||
12142 | if test "x${_efl_enable_on_off_threads}" = "xyes"; then | ||
12143 | have_on_off_threads="yes" | ||
12144 | |||
12145 | $as_echo "#define EFL_ON_OFF_THREADS 1" >>confdefs.h | ||
12146 | |||
12147 | fi | ||
12148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to turn on/off threads lock on demand" >&5 | ||
12149 | $as_echo_n "checking whether to turn on/off threads lock on demand... " >&6; } | ||
12150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_on_off_threads}" >&5 | ||
12151 | $as_echo "${_efl_enable_on_off_threads}" >&6; } | ||
12152 | |||
12153 | _efl_enable_debug_threads="no" | ||
12154 | # Check whether --enable-debug-threads was given. | ||
12155 | if test "${enable_debug_threads+set}" = set; then : | ||
12156 | enableval=$enable_debug_threads; _efl_enable_debug_threads="${enableval}" | ||
12157 | fi | ||
12158 | |||
12159 | |||
12160 | have_debug_threads="no" | ||
12161 | if test "x${_efl_have_posix_threads}" = "xyes" -a "x${_efl_enable_debug_threads}" = "xyes"; then | ||
12162 | have_debug_threads="yes" | ||
12163 | |||
12164 | $as_echo "#define EFL_DEBUG_THREADS 1" >>confdefs.h | ||
12165 | |||
12166 | fi | ||
12167 | |||
12168 | if test "x${_efl_have_posix_threads}" = "xyes" ; then | ||
12169 | |||
12170 | $as_echo "#define EFL_HAVE_POSIX_THREADS 1" >>confdefs.h | ||
12171 | |||
12172 | fi | ||
12173 | |||
12174 | if test "x${_efl_enable_win32_threads}" = "xyes" ; then | ||
12175 | _efl_have_win32_threads="yes" | ||
12176 | |||
12177 | $as_echo "#define EFL_HAVE_WIN32_THREADS 1" >>confdefs.h | ||
12178 | |||
12179 | fi | ||
12180 | |||
12181 | if test "x${_efl_have_posix_threads}" = "xyes" || test "x${_efl_have_win32_threads}" = "xyes" ; then | ||
12182 | |||
12183 | $as_echo "#define EFL_HAVE_THREADS 1" >>confdefs.h | ||
12184 | |||
12185 | fi | ||
12186 | |||
12187 | if test "x$_efl_have_posix_threads" = "xyes" || test "x$_efl_have_win32_threads" = "xyes"; then : | ||
12188 | |||
12189 | if test "x${_efl_have_posix_threads}" = "xyes" ; then | ||
12190 | have_threads="POSIX" | ||
12191 | else | ||
12192 | if test "x${_efl_have_win32_threads}" = "xyes" ; then | ||
12193 | have_threads="Win32" | ||
12194 | else | ||
12195 | have_threads="no" | ||
12196 | fi | ||
12197 | fi | ||
12198 | |||
12199 | else | ||
12200 | have_threads="no" | ||
12201 | fi | ||
12202 | |||
12203 | |||
12204 | |||
12205 | |||
12206 | _efl_have_posix_threads_spinlock="no" | ||
12207 | |||
12208 | if test "x${_efl_have_posix_threads}" = "xyes" ; then | ||
12209 | |||
12210 | SAVE_CFLAGS=${CFLAGS} | ||
12211 | CFLAGS="${CFLAGS} ${EFL_PTHREAD_CFLAGS}" | ||
12212 | SAVE_LIBS=${LIBS} | ||
12213 | LIBS="${LIBS} ${EFL_PTHREAD_LIBS}" | ||
12214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12215 | /* end confdefs.h. */ | ||
12216 | |||
12217 | #include <pthread.h> | ||
12218 | |||
12219 | int | ||
12220 | main () | ||
12221 | { | ||
12222 | |||
12223 | pthread_spinlock_t lock; | ||
12224 | int res; | ||
12225 | res = pthread_spin_init(&lock, PTHREAD_PROCESS_PRIVATE); | ||
12226 | |||
12227 | ; | ||
12228 | return 0; | ||
12229 | } | ||
12230 | _ACEOF | ||
12231 | if ac_fn_c_try_link "$LINENO"; then : | ||
12232 | _efl_have_posix_threads_spinlock="yes" | ||
12233 | else | ||
12234 | _efl_have_posix_threads_spinlock="no" | ||
12235 | fi | ||
12236 | rm -f core conftest.err conftest.$ac_objext \ | ||
12237 | conftest$ac_exeext conftest.$ac_ext | ||
12238 | CFLAGS=${SAVE_CFLAGS} | ||
12239 | LIBS=${SAVE_LIBS} | ||
12240 | |||
12241 | fi | ||
12242 | |||
12243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build POSIX threads spinlock code" >&5 | ||
12244 | $as_echo_n "checking whether to build POSIX threads spinlock code... " >&6; } | ||
12245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_have_posix_threads_spinlock}" >&5 | ||
12246 | $as_echo "${_efl_have_posix_threads_spinlock}" >&6; } | ||
12247 | if test "x${_efl_enable_posix_threads}" = "xyes" && test "x${_efl_have_posix_threads_spinlock}" = "xno" ; then | ||
12248 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: POSIX threads support requested but spinlocks are not supported" >&5 | ||
12249 | $as_echo "$as_me: WARNING: POSIX threads support requested but spinlocks are not supported" >&2;} | ||
12250 | fi | ||
12251 | |||
12252 | if test "x${_efl_have_posix_threads_spinlock}" = "xyes" ; then | ||
12253 | |||
12254 | $as_echo "#define EFL_HAVE_POSIX_THREADS_SPINLOCK 1" >>confdefs.h | ||
12255 | |||
12256 | fi | ||
12257 | if test "x$_efl_have_posix_threads_spinlock" = "xyes"; then : | ||
12258 | have_posix_threads_spinlock="yes" | ||
12259 | else | ||
12260 | have_posix_threads_spinlock="no" | ||
12261 | fi | ||
12262 | |||
12263 | |||
12264 | if ! test "x${have_threads}" = "xno" ; then | ||
12265 | EINA_CONFIGURE_HAVE_THREADS="#define EINA_HAVE_THREADS" | ||
12266 | fi | ||
12267 | |||
12268 | if ! test "x${have_threads}" = "xno"; then | ||
12269 | EINA_HAVE_THREADS_TRUE= | ||
12270 | EINA_HAVE_THREADS_FALSE='#' | ||
12271 | else | ||
12272 | EINA_HAVE_THREADS_TRUE='#' | ||
12273 | EINA_HAVE_THREADS_FALSE= | ||
12274 | fi | ||
12275 | |||
12276 | |||
12277 | if ! test "x${have_debug_threads}" = "xno"; then | ||
12278 | EINA_CONFIGURE_HAVE_DEBUG_THREADS="#define EINA_HAVE_DEBUG_THREADS" | ||
12279 | fi | ||
12280 | |||
12281 | if ! test "x${have_debug_threads}" = "xno"; then | ||
12282 | EINA_DEBUG_THREADS_TRUE= | ||
12283 | EINA_DEBUG_THREADS_FALSE='#' | ||
12284 | else | ||
12285 | EINA_DEBUG_THREADS_TRUE='#' | ||
12286 | EINA_DEBUG_THREADS_FALSE= | ||
12287 | fi | ||
12288 | |||
12289 | |||
12290 | if ! test "x${have_on_off_threads}" = "xno"; then | ||
12291 | EINA_CONFIGURE_HAVE_ON_OFF_THREADS="#define EINA_HAVE_ON_OFF_THREADS" | ||
12292 | fi | ||
12293 | |||
12294 | if ! test "x${have_on_off_threads}" = "xno"; then | ||
12295 | EINA_ON_OFF_THREADS_TRUE= | ||
12296 | EINA_ON_OFF_THREADS_FALSE='#' | ||
12297 | else | ||
12298 | EINA_ON_OFF_THREADS_TRUE='#' | ||
12299 | EINA_ON_OFF_THREADS_FALSE= | ||
12300 | fi | ||
12301 | |||
12302 | |||
12303 | ### Additional options to configure | ||
12304 | |||
12305 | # Magic debug | ||
12306 | # Check whether --enable-magic-debug was given. | ||
12307 | if test "${enable_magic_debug+set}" = set; then : | ||
12308 | enableval=$enable_magic_debug; | ||
12309 | if test "x${enableval}" = "xyes" ; then | ||
12310 | have_magic_debug="yes" | ||
12311 | else | ||
12312 | have_magic_debug="no" | ||
12313 | fi | ||
12314 | |||
12315 | else | ||
12316 | have_magic_debug="yes" | ||
12317 | fi | ||
12318 | |||
12319 | |||
12320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether magic debug is enable" >&5 | ||
12321 | $as_echo_n "checking whether magic debug is enable... " >&6; } | ||
12322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_magic_debug}" >&5 | ||
12323 | $as_echo "${have_magic_debug}" >&6; } | ||
12324 | |||
12325 | if test "x${have_magic_debug}" = "xyes" ; then | ||
12326 | EINA_CONFIGURE_MAGIC_DEBUG="#define EINA_MAGIC_DEBUG" | ||
12327 | fi | ||
12328 | |||
12329 | |||
12330 | # Safety checks (avoid crashes on wrong api usage) | ||
12331 | # Check whether --enable-safety-checks was given. | ||
12332 | if test "${enable_safety_checks+set}" = set; then : | ||
12333 | enableval=$enable_safety_checks; | ||
12334 | if test "x${enableval}" = "xyes" ; then | ||
12335 | have_safety_checks="yes" | ||
12336 | else | ||
12337 | have_safety_checks="no" | ||
12338 | fi | ||
12339 | |||
12340 | else | ||
12341 | have_safety_checks="yes" | ||
12342 | fi | ||
12343 | |||
12344 | |||
12345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do safety checking on api parameters" >&5 | ||
12346 | $as_echo_n "checking whether to do safety checking on api parameters... " >&6; } | ||
12347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_safety_checks" >&5 | ||
12348 | $as_echo "$have_safety_checks" >&6; } | ||
12349 | |||
12350 | if test "x$have_safety_checks" = "xyes"; then | ||
12351 | SAFETY_CHECKS_TRUE= | ||
12352 | SAFETY_CHECKS_FALSE='#' | ||
12353 | else | ||
12354 | SAFETY_CHECKS_TRUE='#' | ||
12355 | SAFETY_CHECKS_FALSE= | ||
12356 | fi | ||
12357 | |||
12358 | if test "x$have_safety_checks" = "xyes"; then | ||
12359 | |||
12360 | $as_echo "#define EINA_SAFETY_CHECKS 1" >>confdefs.h | ||
12361 | |||
12362 | EINA_CONFIGURE_SAFETY_CHECKS="#define EINA_SAFETY_CHECKS" | ||
12363 | fi | ||
12364 | |||
12365 | |||
12366 | with_max_log_level="<unset>" | ||
12367 | |||
12368 | # Check whether --with-internal-maximum-log-level was given. | ||
12369 | if test "${with_internal_maximum_log_level+set}" = set; then : | ||
12370 | withval=$with_internal_maximum_log_level; | ||
12371 | if test "x${withval}" != "xno"; then | ||
12372 | if echo "${withval}" | grep -E '^[0-9]+$' >/dev/null 2>/dev/null; then | ||
12373 | { $as_echo "$as_me:${as_lineno-$LINENO}: ignoring any EINA_LOG() with level greater than ${withval}" >&5 | ||
12374 | $as_echo "$as_me: ignoring any EINA_LOG() with level greater than ${withval}" >&6;} | ||
12375 | |||
12376 | cat >>confdefs.h <<_ACEOF | ||
12377 | #define EINA_LOG_LEVEL_MAXIMUM ${withval} | ||
12378 | _ACEOF | ||
12379 | |||
12380 | with_max_log_level="${withval}" | ||
12381 | else | ||
12382 | as_fn_error $? "--with-internal-maximum-log-level takes a decimal number, got \"${withval}\" instead." "$LINENO" 5 | ||
12383 | fi | ||
12384 | fi | ||
12385 | |||
12386 | else | ||
12387 | : | ||
12388 | fi | ||
12389 | |||
12390 | |||
12391 | # Check whether --enable-amalgamation was given. | ||
12392 | if test "${enable_amalgamation+set}" = set; then : | ||
12393 | enableval=$enable_amalgamation; if test "x${enableval}" = "xyes"; then | ||
12394 | do_amalgamation="yes" | ||
12395 | else | ||
12396 | do_amalgamation="no" | ||
12397 | fi | ||
12398 | |||
12399 | else | ||
12400 | do_amalgamation="no" | ||
12401 | |||
12402 | fi | ||
12403 | |||
12404 | if test "x${do_amalgamation}" = "xyes"; then | ||
12405 | EINA_AMALGAMATION_TRUE= | ||
12406 | EINA_AMALGAMATION_FALSE='#' | ||
12407 | else | ||
12408 | EINA_AMALGAMATION_TRUE='#' | ||
12409 | EINA_AMALGAMATION_FALSE= | ||
12410 | fi | ||
12411 | |||
12412 | |||
12413 | # Choose best memory pool | ||
12414 | # Check whether --enable-default-mempool was given. | ||
12415 | if test "${enable_default_mempool+set}" = set; then : | ||
12416 | enableval=$enable_default_mempool; | ||
12417 | if test "x${enableval}" = "xyes"; then | ||
12418 | have_default_mempool="yes" | ||
12419 | else | ||
12420 | have_default_mempool="no" | ||
12421 | fi | ||
12422 | |||
12423 | else | ||
12424 | have_default_mempool="no" | ||
12425 | |||
12426 | fi | ||
12427 | |||
12428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use default mempool allocator" >&5 | ||
12429 | $as_echo_n "checking whether to use default mempool allocator... " >&6; } | ||
12430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_default_mempool}" >&5 | ||
12431 | $as_echo "${have_default_mempool}" >&6; } | ||
12432 | |||
12433 | if test "x${have_default_mempool}" = "xyes" ; then | ||
12434 | EINA_CONFIGURE_DEFAULT_MEMPOOL="#define EINA_DEFAULT_MEMPOOL" | ||
12435 | fi | ||
12436 | |||
12437 | |||
12438 | # Report stringshare usage | ||
12439 | # Check whether --enable-stringshare-usage was given. | ||
12440 | if test "${enable_stringshare_usage+set}" = set; then : | ||
12441 | enableval=$enable_stringshare_usage; | ||
12442 | if test "x${enableval}" = "xyes"; then | ||
12443 | have_stringshare_usage="yes" | ||
12444 | else | ||
12445 | have_stringshare_usage="no" | ||
12446 | fi | ||
12447 | |||
12448 | else | ||
12449 | have_stringshare_usage="no" | ||
12450 | |||
12451 | fi | ||
12452 | |||
12453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to report stringshare usage" >&5 | ||
12454 | $as_echo_n "checking whether to report stringshare usage... " >&6; } | ||
12455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_stringshare_usage}" >&5 | ||
12456 | $as_echo "${have_stringshare_usage}" >&6; } | ||
12457 | |||
12458 | if test "x${have_stringshare_usage}" = "xyes"; then | ||
12459 | |||
12460 | $as_echo "#define EINA_STRINGSHARE_USAGE 1" >>confdefs.h | ||
12461 | |||
12462 | fi | ||
12463 | |||
12464 | # Check if we want to benchmark on real data | ||
12465 | enable_benchmark_e17="no" | ||
12466 | # Check whether --enable-e17 was given. | ||
12467 | if test "${enable_e17+set}" = set; then : | ||
12468 | enableval=$enable_e17; | ||
12469 | if test "x${enableval}" = "xyes" ; then | ||
12470 | enable_benchmark_e17="yes" | ||
12471 | else | ||
12472 | enable_benchmark_e17="no" | ||
12473 | fi | ||
12474 | |||
12475 | else | ||
12476 | enable_benchmark_e17="no" | ||
12477 | fi | ||
12478 | |||
12479 | |||
12480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether e17 real data benchmark are built" >&5 | ||
12481 | $as_echo_n "checking whether e17 real data benchmark are built... " >&6; } | ||
12482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_benchmark_e17}" >&5 | ||
12483 | $as_echo "${enable_benchmark_e17}" >&6; } | ||
12484 | |||
12485 | if test "x${enable_benchmark_e17}" = "xyes"; then | ||
12486 | EINA_ENABLE_BENCHMARK_E17_TRUE= | ||
12487 | EINA_ENABLE_BENCHMARK_E17_FALSE='#' | ||
12488 | else | ||
12489 | EINA_ENABLE_BENCHMARK_E17_TRUE='#' | ||
12490 | EINA_ENABLE_BENCHMARK_E17_FALSE= | ||
12491 | fi | ||
12492 | |||
12493 | |||
12494 | |||
12495 | ### Checks for programs | ||
12496 | ac_ext=c | ||
12497 | ac_cpp='$CPP $CPPFLAGS' | ||
12498 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
12499 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
12500 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
12501 | if test -n "$ac_tool_prefix"; then | ||
12502 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
12503 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
12504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12505 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12506 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
12507 | $as_echo_n "(cached) " >&6 | ||
12508 | else | ||
12509 | if test -n "$CC"; then | ||
12510 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
12511 | else | ||
12512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12513 | for as_dir in $PATH | ||
12514 | do | ||
12515 | IFS=$as_save_IFS | ||
12516 | test -z "$as_dir" && as_dir=. | ||
12517 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12518 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12519 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
12520 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12521 | break 2 | ||
12522 | fi | ||
12523 | done | ||
12524 | done | ||
12525 | IFS=$as_save_IFS | ||
12526 | |||
12527 | fi | ||
12528 | fi | ||
12529 | CC=$ac_cv_prog_CC | ||
12530 | if test -n "$CC"; then | ||
12531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
12532 | $as_echo "$CC" >&6; } | ||
12533 | else | ||
12534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12535 | $as_echo "no" >&6; } | ||
12536 | fi | ||
12537 | |||
12538 | |||
12539 | fi | ||
12540 | if test -z "$ac_cv_prog_CC"; then | ||
12541 | ac_ct_CC=$CC | ||
12542 | # Extract the first word of "gcc", so it can be a program name with args. | ||
12543 | set dummy gcc; ac_word=$2 | ||
12544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12545 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12546 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
12547 | $as_echo_n "(cached) " >&6 | ||
12548 | else | ||
12549 | if test -n "$ac_ct_CC"; then | ||
12550 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
12551 | else | ||
12552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12553 | for as_dir in $PATH | ||
12554 | do | ||
12555 | IFS=$as_save_IFS | ||
12556 | test -z "$as_dir" && as_dir=. | ||
12557 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12558 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12559 | ac_cv_prog_ac_ct_CC="gcc" | ||
12560 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12561 | break 2 | ||
12562 | fi | ||
12563 | done | ||
12564 | done | ||
12565 | IFS=$as_save_IFS | ||
12566 | |||
12567 | fi | ||
12568 | fi | ||
12569 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
12570 | if test -n "$ac_ct_CC"; then | ||
12571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
12572 | $as_echo "$ac_ct_CC" >&6; } | ||
12573 | else | ||
12574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12575 | $as_echo "no" >&6; } | ||
12576 | fi | ||
12577 | |||
12578 | if test "x$ac_ct_CC" = x; then | ||
12579 | CC="" | ||
12580 | else | ||
12581 | case $cross_compiling:$ac_tool_warned in | ||
12582 | yes:) | ||
12583 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
12584 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
12585 | ac_tool_warned=yes ;; | ||
12586 | esac | ||
12587 | CC=$ac_ct_CC | ||
12588 | fi | ||
12589 | else | ||
12590 | CC="$ac_cv_prog_CC" | ||
12591 | fi | ||
12592 | |||
12593 | if test -z "$CC"; then | ||
12594 | if test -n "$ac_tool_prefix"; then | ||
12595 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
12596 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
12597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12598 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12599 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
12600 | $as_echo_n "(cached) " >&6 | ||
12601 | else | ||
12602 | if test -n "$CC"; then | ||
12603 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
12604 | else | ||
12605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12606 | for as_dir in $PATH | ||
12607 | do | ||
12608 | IFS=$as_save_IFS | ||
12609 | test -z "$as_dir" && as_dir=. | ||
12610 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12611 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12612 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
12613 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12614 | break 2 | ||
12615 | fi | ||
12616 | done | ||
12617 | done | ||
12618 | IFS=$as_save_IFS | ||
12619 | |||
12620 | fi | ||
12621 | fi | ||
12622 | CC=$ac_cv_prog_CC | ||
12623 | if test -n "$CC"; then | ||
12624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
12625 | $as_echo "$CC" >&6; } | ||
12626 | else | ||
12627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12628 | $as_echo "no" >&6; } | ||
12629 | fi | ||
12630 | |||
12631 | |||
12632 | fi | ||
12633 | fi | ||
12634 | if test -z "$CC"; then | ||
12635 | # Extract the first word of "cc", so it can be a program name with args. | ||
12636 | set dummy cc; ac_word=$2 | ||
12637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12638 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12639 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
12640 | $as_echo_n "(cached) " >&6 | ||
12641 | else | ||
12642 | if test -n "$CC"; then | ||
12643 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
12644 | else | ||
12645 | ac_prog_rejected=no | ||
12646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12647 | for as_dir in $PATH | ||
12648 | do | ||
12649 | IFS=$as_save_IFS | ||
12650 | test -z "$as_dir" && as_dir=. | ||
12651 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12652 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12653 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
12654 | ac_prog_rejected=yes | ||
12655 | continue | ||
12656 | fi | ||
12657 | ac_cv_prog_CC="cc" | ||
12658 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12659 | break 2 | ||
12660 | fi | ||
12661 | done | ||
12662 | done | ||
12663 | IFS=$as_save_IFS | ||
12664 | |||
12665 | if test $ac_prog_rejected = yes; then | ||
12666 | # We found a bogon in the path, so make sure we never use it. | ||
12667 | set dummy $ac_cv_prog_CC | ||
12668 | shift | ||
12669 | if test $# != 0; then | ||
12670 | # We chose a different compiler from the bogus one. | ||
12671 | # However, it has the same basename, so the bogon will be chosen | ||
12672 | # first if we set CC to just the basename; use the full file name. | ||
12673 | shift | ||
12674 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
12675 | fi | ||
12676 | fi | ||
12677 | fi | ||
12678 | fi | ||
12679 | CC=$ac_cv_prog_CC | ||
12680 | if test -n "$CC"; then | ||
12681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
12682 | $as_echo "$CC" >&6; } | ||
12683 | else | ||
12684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12685 | $as_echo "no" >&6; } | ||
12686 | fi | ||
12687 | |||
12688 | |||
12689 | fi | ||
12690 | if test -z "$CC"; then | ||
12691 | if test -n "$ac_tool_prefix"; then | ||
12692 | for ac_prog in cl.exe | ||
12693 | do | ||
12694 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
12695 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
12696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12697 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12698 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
12699 | $as_echo_n "(cached) " >&6 | ||
12700 | else | ||
12701 | if test -n "$CC"; then | ||
12702 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
12703 | else | ||
12704 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12705 | for as_dir in $PATH | ||
12706 | do | ||
12707 | IFS=$as_save_IFS | ||
12708 | test -z "$as_dir" && as_dir=. | ||
12709 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12710 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12711 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
12712 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12713 | break 2 | ||
12714 | fi | ||
12715 | done | ||
12716 | done | ||
12717 | IFS=$as_save_IFS | ||
12718 | |||
12719 | fi | ||
12720 | fi | ||
12721 | CC=$ac_cv_prog_CC | ||
12722 | if test -n "$CC"; then | ||
12723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
12724 | $as_echo "$CC" >&6; } | ||
12725 | else | ||
12726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12727 | $as_echo "no" >&6; } | ||
12728 | fi | ||
12729 | |||
12730 | |||
12731 | test -n "$CC" && break | ||
12732 | done | ||
12733 | fi | ||
12734 | if test -z "$CC"; then | ||
12735 | ac_ct_CC=$CC | ||
12736 | for ac_prog in cl.exe | ||
12737 | do | ||
12738 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
12739 | set dummy $ac_prog; ac_word=$2 | ||
12740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12741 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12742 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
12743 | $as_echo_n "(cached) " >&6 | ||
12744 | else | ||
12745 | if test -n "$ac_ct_CC"; then | ||
12746 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
12747 | else | ||
12748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12749 | for as_dir in $PATH | ||
12750 | do | ||
12751 | IFS=$as_save_IFS | ||
12752 | test -z "$as_dir" && as_dir=. | ||
12753 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12754 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12755 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
12756 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12757 | break 2 | ||
12758 | fi | ||
12759 | done | ||
12760 | done | ||
12761 | IFS=$as_save_IFS | ||
12762 | |||
12763 | fi | ||
12764 | fi | ||
12765 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
12766 | if test -n "$ac_ct_CC"; then | ||
12767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
12768 | $as_echo "$ac_ct_CC" >&6; } | ||
12769 | else | ||
12770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12771 | $as_echo "no" >&6; } | ||
12772 | fi | ||
12773 | |||
12774 | |||
12775 | test -n "$ac_ct_CC" && break | ||
12776 | done | ||
12777 | |||
12778 | if test "x$ac_ct_CC" = x; then | ||
12779 | CC="" | ||
12780 | else | ||
12781 | case $cross_compiling:$ac_tool_warned in | ||
12782 | yes:) | ||
12783 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
12784 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
12785 | ac_tool_warned=yes ;; | ||
12786 | esac | ||
12787 | CC=$ac_ct_CC | ||
12788 | fi | ||
12789 | fi | ||
12790 | |||
12791 | fi | ||
12792 | |||
12793 | |||
12794 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
12795 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
12796 | as_fn_error $? "no acceptable C compiler found in \$PATH | ||
12797 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
12798 | |||
12799 | # Provide some information about the compiler. | ||
12800 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
12801 | set X $ac_compile | ||
12802 | ac_compiler=$2 | ||
12803 | for ac_option in --version -v -V -qversion; do | ||
12804 | { { ac_try="$ac_compiler $ac_option >&5" | ||
12805 | case "(($ac_try" in | ||
12806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12807 | *) ac_try_echo=$ac_try;; | ||
12808 | esac | ||
12809 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
12810 | $as_echo "$ac_try_echo"; } >&5 | ||
12811 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
12812 | ac_status=$? | ||
12813 | if test -s conftest.err; then | ||
12814 | sed '10a\ | ||
12815 | ... rest of stderr output deleted ... | ||
12816 | 10q' conftest.err >conftest.er1 | ||
12817 | cat conftest.er1 >&5 | ||
12818 | fi | ||
12819 | rm -f conftest.er1 conftest.err | ||
12820 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12821 | test $ac_status = 0; } | ||
12822 | done | ||
12823 | |||
12824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | ||
12825 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
12826 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | ||
12827 | $as_echo_n "(cached) " >&6 | ||
12828 | else | ||
12829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12830 | /* end confdefs.h. */ | ||
12831 | |||
12832 | int | ||
12833 | main () | ||
12834 | { | ||
12835 | #ifndef __GNUC__ | ||
12836 | choke me | ||
12837 | #endif | ||
12838 | |||
12839 | ; | ||
12840 | return 0; | ||
12841 | } | ||
12842 | _ACEOF | ||
12843 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12844 | ac_compiler_gnu=yes | ||
12845 | else | ||
12846 | ac_compiler_gnu=no | ||
12847 | fi | ||
12848 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12849 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
12850 | |||
12851 | fi | ||
12852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
12853 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
12854 | if test $ac_compiler_gnu = yes; then | ||
12855 | GCC=yes | ||
12856 | else | ||
12857 | GCC= | ||
12858 | fi | ||
12859 | ac_test_CFLAGS=${CFLAGS+set} | ||
12860 | ac_save_CFLAGS=$CFLAGS | ||
12861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
12862 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
12863 | if test "${ac_cv_prog_cc_g+set}" = set; then : | ||
12864 | $as_echo_n "(cached) " >&6 | ||
12865 | else | ||
12866 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
12867 | ac_c_werror_flag=yes | ||
12868 | ac_cv_prog_cc_g=no | ||
12869 | CFLAGS="-g" | ||
12870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12871 | /* end confdefs.h. */ | ||
12872 | |||
12873 | int | ||
12874 | main () | ||
12875 | { | ||
12876 | |||
12877 | ; | ||
12878 | return 0; | ||
12879 | } | ||
12880 | _ACEOF | ||
12881 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12882 | ac_cv_prog_cc_g=yes | ||
12883 | else | ||
12884 | CFLAGS="" | ||
12885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12886 | /* end confdefs.h. */ | ||
12887 | |||
12888 | int | ||
12889 | main () | ||
12890 | { | ||
12891 | |||
12892 | ; | ||
12893 | return 0; | ||
12894 | } | ||
12895 | _ACEOF | ||
12896 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12897 | |||
12898 | else | ||
12899 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
12900 | CFLAGS="-g" | ||
12901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12902 | /* end confdefs.h. */ | ||
12903 | |||
12904 | int | ||
12905 | main () | ||
12906 | { | ||
12907 | |||
12908 | ; | ||
12909 | return 0; | ||
12910 | } | ||
12911 | _ACEOF | ||
12912 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12913 | ac_cv_prog_cc_g=yes | ||
12914 | fi | ||
12915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12916 | fi | ||
12917 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12918 | fi | ||
12919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12920 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
12921 | fi | ||
12922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
12923 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
12924 | if test "$ac_test_CFLAGS" = set; then | ||
12925 | CFLAGS=$ac_save_CFLAGS | ||
12926 | elif test $ac_cv_prog_cc_g = yes; then | ||
12927 | if test "$GCC" = yes; then | ||
12928 | CFLAGS="-g -O2" | ||
12929 | else | ||
12930 | CFLAGS="-g" | ||
12931 | fi | ||
12932 | else | ||
12933 | if test "$GCC" = yes; then | ||
12934 | CFLAGS="-O2" | ||
12935 | else | ||
12936 | CFLAGS= | ||
12937 | fi | ||
12938 | fi | ||
12939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
12940 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
12941 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
12942 | $as_echo_n "(cached) " >&6 | ||
12943 | else | ||
12944 | ac_cv_prog_cc_c89=no | ||
12945 | ac_save_CC=$CC | ||
12946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12947 | /* end confdefs.h. */ | ||
12948 | #include <stdarg.h> | ||
12949 | #include <stdio.h> | ||
12950 | #include <sys/types.h> | ||
12951 | #include <sys/stat.h> | ||
12952 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
12953 | struct buf { int x; }; | ||
12954 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
12955 | static char *e (p, i) | ||
12956 | char **p; | ||
12957 | int i; | ||
12958 | { | ||
12959 | return p[i]; | ||
12960 | } | ||
12961 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
12962 | { | ||
12963 | char *s; | ||
12964 | va_list v; | ||
12965 | va_start (v,p); | ||
12966 | s = g (p, va_arg (v,int)); | ||
12967 | va_end (v); | ||
12968 | return s; | ||
12969 | } | ||
12970 | |||
12971 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
12972 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
12973 | These don't provoke an error unfortunately, instead are silently treated | ||
12974 | as 'x'. The following induces an error, until -std is added to get | ||
12975 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
12976 | array size at least. It's necessary to write '\x00'==0 to get something | ||
12977 | that's true only with -std. */ | ||
12978 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
12979 | |||
12980 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
12981 | inside strings and character constants. */ | ||
12982 | #define FOO(x) 'x' | ||
12983 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
12984 | |||
12985 | int test (int i, double x); | ||
12986 | struct s1 {int (*f) (int a);}; | ||
12987 | struct s2 {int (*f) (double a);}; | ||
12988 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
12989 | int argc; | ||
12990 | char **argv; | ||
12991 | int | ||
12992 | main () | ||
12993 | { | ||
12994 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
12995 | ; | ||
12996 | return 0; | ||
12997 | } | ||
12998 | _ACEOF | ||
12999 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
13000 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
13001 | do | ||
13002 | CC="$ac_save_CC $ac_arg" | ||
13003 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13004 | ac_cv_prog_cc_c89=$ac_arg | ||
13005 | fi | ||
13006 | rm -f core conftest.err conftest.$ac_objext | ||
13007 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
13008 | done | ||
13009 | rm -f conftest.$ac_ext | ||
13010 | CC=$ac_save_CC | ||
13011 | |||
13012 | fi | ||
13013 | # AC_CACHE_VAL | ||
13014 | case "x$ac_cv_prog_cc_c89" in | ||
13015 | x) | ||
13016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
13017 | $as_echo "none needed" >&6; } ;; | ||
13018 | xno) | ||
13019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
13020 | $as_echo "unsupported" >&6; } ;; | ||
13021 | *) | ||
13022 | CC="$CC $ac_cv_prog_cc_c89" | ||
13023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
13024 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
13025 | esac | ||
13026 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
13027 | |||
13028 | fi | ||
13029 | |||
13030 | ac_ext=c | ||
13031 | ac_cpp='$CPP $CPPFLAGS' | ||
13032 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
13033 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13034 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
13035 | |||
13036 | depcc="$CC" am_compiler_list= | ||
13037 | |||
13038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
13039 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
13040 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | ||
13041 | $as_echo_n "(cached) " >&6 | ||
13042 | else | ||
13043 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
13044 | # We make a subdir and do the tests there. Otherwise we can end up | ||
13045 | # making bogus files that we don't know about and never remove. For | ||
13046 | # instance it was reported that on HP-UX the gcc test will end up | ||
13047 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
13048 | # in D'. | ||
13049 | mkdir conftest.dir | ||
13050 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
13051 | # using a relative directory. | ||
13052 | cp "$am_depcomp" conftest.dir | ||
13053 | cd conftest.dir | ||
13054 | # We will build objects and dependencies in a subdirectory because | ||
13055 | # it helps to detect inapplicable dependency modes. For instance | ||
13056 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
13057 | # side effect of compilation, but ICC will put the dependencies in | ||
13058 | # the current directory while Tru64 will put them in the object | ||
13059 | # directory. | ||
13060 | mkdir sub | ||
13061 | |||
13062 | am_cv_CC_dependencies_compiler_type=none | ||
13063 | if test "$am_compiler_list" = ""; then | ||
13064 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
13065 | fi | ||
13066 | am__universal=false | ||
13067 | case " $depcc " in #( | ||
13068 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
13069 | esac | ||
13070 | |||
13071 | for depmode in $am_compiler_list; do | ||
13072 | # Setup a source with many dependencies, because some compilers | ||
13073 | # like to wrap large dependency lists on column 80 (with \), and | ||
13074 | # we should not choose a depcomp mode which is confused by this. | ||
13075 | # | ||
13076 | # We need to recreate these files for each test, as the compiler may | ||
13077 | # overwrite some of them when testing with obscure command lines. | ||
13078 | # This happens at least with the AIX C compiler. | ||
13079 | : > sub/conftest.c | ||
13080 | for i in 1 2 3 4 5 6; do | ||
13081 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
13082 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
13083 | # Solaris 8's {/usr,}/bin/sh. | ||
13084 | touch sub/conftst$i.h | ||
13085 | done | ||
13086 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
13087 | |||
13088 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
13089 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
13090 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
13091 | # versions had trouble with output in subdirs | ||
13092 | am__obj=sub/conftest.${OBJEXT-o} | ||
13093 | am__minus_obj="-o $am__obj" | ||
13094 | case $depmode in | ||
13095 | gcc) | ||
13096 | # This depmode causes a compiler race in universal mode. | ||
13097 | test "$am__universal" = false || continue | ||
13098 | ;; | ||
13099 | nosideeffect) | ||
13100 | # after this tag, mechanisms are not by side-effect, so they'll | ||
13101 | # only be used when explicitly requested | ||
13102 | if test "x$enable_dependency_tracking" = xyes; then | ||
13103 | continue | ||
13104 | else | ||
13105 | break | ||
13106 | fi | ||
13107 | ;; | ||
13108 | msvisualcpp | msvcmsys) | ||
13109 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
13110 | # not run yet. These depmodes are late enough in the game, and | ||
13111 | # so weak that their functioning should not be impacted. | ||
13112 | am__obj=conftest.${OBJEXT-o} | ||
13113 | am__minus_obj= | ||
13114 | ;; | ||
13115 | none) break ;; | ||
13116 | esac | ||
13117 | if depmode=$depmode \ | ||
13118 | source=sub/conftest.c object=$am__obj \ | ||
13119 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
13120 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
13121 | >/dev/null 2>conftest.err && | ||
13122 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
13123 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
13124 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
13125 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
13126 | # icc doesn't choke on unknown options, it will just issue warnings | ||
13127 | # or remarks (even with -Werror). So we grep stderr for any message | ||
13128 | # that says an option was ignored or not supported. | ||
13129 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
13130 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
13131 | # The diagnosis changed in icc 8.0: | ||
13132 | # icc: Command line remark: option '-MP' not supported | ||
13133 | if (grep 'ignoring option' conftest.err || | ||
13134 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
13135 | am_cv_CC_dependencies_compiler_type=$depmode | ||
13136 | break | ||
13137 | fi | ||
13138 | fi | ||
13139 | done | ||
13140 | |||
13141 | cd .. | ||
13142 | rm -rf conftest.dir | ||
13143 | else | ||
13144 | am_cv_CC_dependencies_compiler_type=none | ||
13145 | fi | ||
13146 | |||
13147 | fi | ||
13148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | ||
13149 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | ||
13150 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
13151 | |||
13152 | if | ||
13153 | test "x$enable_dependency_tracking" != xno \ | ||
13154 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
13155 | am__fastdepCC_TRUE= | ||
13156 | am__fastdepCC_FALSE='#' | ||
13157 | else | ||
13158 | am__fastdepCC_TRUE='#' | ||
13159 | am__fastdepCC_FALSE= | ||
13160 | fi | ||
13161 | |||
13162 | |||
13163 | ac_ext=cpp | ||
13164 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
13165 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
13166 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13167 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
13168 | if test -z "$CXX"; then | ||
13169 | if test -n "$CCC"; then | ||
13170 | CXX=$CCC | ||
13171 | else | ||
13172 | if test -n "$ac_tool_prefix"; then | ||
13173 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | ||
13174 | do | ||
13175 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
13176 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
13177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
13178 | $as_echo_n "checking for $ac_word... " >&6; } | ||
13179 | if test "${ac_cv_prog_CXX+set}" = set; then : | ||
13180 | $as_echo_n "(cached) " >&6 | ||
13181 | else | ||
13182 | if test -n "$CXX"; then | ||
13183 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | ||
13184 | else | ||
13185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
13186 | for as_dir in $PATH | ||
13187 | do | ||
13188 | IFS=$as_save_IFS | ||
13189 | test -z "$as_dir" && as_dir=. | ||
13190 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
13191 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
13192 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | ||
13193 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
13194 | break 2 | ||
13195 | fi | ||
13196 | done | ||
13197 | done | ||
13198 | IFS=$as_save_IFS | ||
13199 | |||
13200 | fi | ||
13201 | fi | ||
13202 | CXX=$ac_cv_prog_CXX | ||
13203 | if test -n "$CXX"; then | ||
13204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | ||
13205 | $as_echo "$CXX" >&6; } | ||
13206 | else | ||
13207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13208 | $as_echo "no" >&6; } | ||
13209 | fi | ||
13210 | |||
13211 | |||
13212 | test -n "$CXX" && break | ||
13213 | done | ||
13214 | fi | ||
13215 | if test -z "$CXX"; then | ||
13216 | ac_ct_CXX=$CXX | ||
13217 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | ||
13218 | do | ||
13219 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
13220 | set dummy $ac_prog; ac_word=$2 | ||
13221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
13222 | $as_echo_n "checking for $ac_word... " >&6; } | ||
13223 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | ||
13224 | $as_echo_n "(cached) " >&6 | ||
13225 | else | ||
13226 | if test -n "$ac_ct_CXX"; then | ||
13227 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | ||
13228 | else | ||
13229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
13230 | for as_dir in $PATH | ||
13231 | do | ||
13232 | IFS=$as_save_IFS | ||
13233 | test -z "$as_dir" && as_dir=. | ||
13234 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
13235 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
13236 | ac_cv_prog_ac_ct_CXX="$ac_prog" | ||
13237 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
13238 | break 2 | ||
13239 | fi | ||
13240 | done | ||
13241 | done | ||
13242 | IFS=$as_save_IFS | ||
13243 | |||
13244 | fi | ||
13245 | fi | ||
13246 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | ||
13247 | if test -n "$ac_ct_CXX"; then | ||
13248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | ||
13249 | $as_echo "$ac_ct_CXX" >&6; } | ||
13250 | else | ||
13251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13252 | $as_echo "no" >&6; } | ||
13253 | fi | ||
13254 | |||
13255 | |||
13256 | test -n "$ac_ct_CXX" && break | ||
13257 | done | ||
13258 | |||
13259 | if test "x$ac_ct_CXX" = x; then | ||
13260 | CXX="g++" | ||
13261 | else | ||
13262 | case $cross_compiling:$ac_tool_warned in | ||
13263 | yes:) | ||
13264 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
13265 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
13266 | ac_tool_warned=yes ;; | ||
13267 | esac | ||
13268 | CXX=$ac_ct_CXX | ||
13269 | fi | ||
13270 | fi | ||
13271 | |||
13272 | fi | ||
13273 | fi | ||
13274 | # Provide some information about the compiler. | ||
13275 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | ||
13276 | set X $ac_compile | ||
13277 | ac_compiler=$2 | ||
13278 | for ac_option in --version -v -V -qversion; do | ||
13279 | { { ac_try="$ac_compiler $ac_option >&5" | ||
13280 | case "(($ac_try" in | ||
13281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13282 | *) ac_try_echo=$ac_try;; | ||
13283 | esac | ||
13284 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
13285 | $as_echo "$ac_try_echo"; } >&5 | ||
13286 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
13287 | ac_status=$? | ||
13288 | if test -s conftest.err; then | ||
13289 | sed '10a\ | ||
13290 | ... rest of stderr output deleted ... | ||
13291 | 10q' conftest.err >conftest.er1 | ||
13292 | cat conftest.er1 >&5 | ||
13293 | fi | ||
13294 | rm -f conftest.er1 conftest.err | ||
13295 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13296 | test $ac_status = 0; } | ||
13297 | done | ||
13298 | |||
13299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | ||
13300 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | ||
13301 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | ||
13302 | $as_echo_n "(cached) " >&6 | ||
13303 | else | ||
13304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13305 | /* end confdefs.h. */ | ||
13306 | |||
13307 | int | ||
13308 | main () | ||
13309 | { | ||
13310 | #ifndef __GNUC__ | ||
13311 | choke me | ||
13312 | #endif | ||
13313 | |||
13314 | ; | ||
13315 | return 0; | ||
13316 | } | ||
13317 | _ACEOF | ||
13318 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
13319 | ac_compiler_gnu=yes | ||
13320 | else | ||
13321 | ac_compiler_gnu=no | ||
13322 | fi | ||
13323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13324 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | ||
13325 | |||
13326 | fi | ||
13327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | ||
13328 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | ||
13329 | if test $ac_compiler_gnu = yes; then | ||
13330 | GXX=yes | ||
13331 | else | ||
13332 | GXX= | ||
13333 | fi | ||
13334 | ac_test_CXXFLAGS=${CXXFLAGS+set} | ||
13335 | ac_save_CXXFLAGS=$CXXFLAGS | ||
13336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | ||
13337 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | ||
13338 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | ||
13339 | $as_echo_n "(cached) " >&6 | ||
13340 | else | ||
13341 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | ||
13342 | ac_cxx_werror_flag=yes | ||
13343 | ac_cv_prog_cxx_g=no | ||
13344 | CXXFLAGS="-g" | ||
13345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13346 | /* end confdefs.h. */ | ||
13347 | |||
13348 | int | ||
13349 | main () | ||
13350 | { | ||
13351 | |||
13352 | ; | ||
13353 | return 0; | ||
13354 | } | ||
13355 | _ACEOF | ||
13356 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
13357 | ac_cv_prog_cxx_g=yes | ||
13358 | else | ||
13359 | CXXFLAGS="" | ||
13360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13361 | /* end confdefs.h. */ | ||
13362 | |||
13363 | int | ||
13364 | main () | ||
13365 | { | ||
13366 | |||
13367 | ; | ||
13368 | return 0; | ||
13369 | } | ||
13370 | _ACEOF | ||
13371 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
13372 | |||
13373 | else | ||
13374 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
13375 | CXXFLAGS="-g" | ||
13376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13377 | /* end confdefs.h. */ | ||
13378 | |||
13379 | int | ||
13380 | main () | ||
13381 | { | ||
13382 | |||
13383 | ; | ||
13384 | return 0; | ||
13385 | } | ||
13386 | _ACEOF | ||
13387 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
13388 | ac_cv_prog_cxx_g=yes | ||
13389 | fi | ||
13390 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13391 | fi | ||
13392 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13393 | fi | ||
13394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13395 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
13396 | fi | ||
13397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | ||
13398 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | ||
13399 | if test "$ac_test_CXXFLAGS" = set; then | ||
13400 | CXXFLAGS=$ac_save_CXXFLAGS | ||
13401 | elif test $ac_cv_prog_cxx_g = yes; then | ||
13402 | if test "$GXX" = yes; then | ||
13403 | CXXFLAGS="-g -O2" | ||
13404 | else | ||
13405 | CXXFLAGS="-g" | ||
13406 | fi | ||
13407 | else | ||
13408 | if test "$GXX" = yes; then | ||
13409 | CXXFLAGS="-O2" | ||
13410 | else | ||
13411 | CXXFLAGS= | ||
13412 | fi | ||
13413 | fi | ||
13414 | ac_ext=c | ||
13415 | ac_cpp='$CPP $CPPFLAGS' | ||
13416 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
13417 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13418 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
13419 | |||
13420 | depcc="$CXX" am_compiler_list= | ||
13421 | |||
13422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
13423 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
13424 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : | ||
13425 | $as_echo_n "(cached) " >&6 | ||
13426 | else | ||
13427 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
13428 | # We make a subdir and do the tests there. Otherwise we can end up | ||
13429 | # making bogus files that we don't know about and never remove. For | ||
13430 | # instance it was reported that on HP-UX the gcc test will end up | ||
13431 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
13432 | # in D'. | ||
13433 | mkdir conftest.dir | ||
13434 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
13435 | # using a relative directory. | ||
13436 | cp "$am_depcomp" conftest.dir | ||
13437 | cd conftest.dir | ||
13438 | # We will build objects and dependencies in a subdirectory because | ||
13439 | # it helps to detect inapplicable dependency modes. For instance | ||
13440 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
13441 | # side effect of compilation, but ICC will put the dependencies in | ||
13442 | # the current directory while Tru64 will put them in the object | ||
13443 | # directory. | ||
13444 | mkdir sub | ||
13445 | |||
13446 | am_cv_CXX_dependencies_compiler_type=none | ||
13447 | if test "$am_compiler_list" = ""; then | ||
13448 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
13449 | fi | ||
13450 | am__universal=false | ||
13451 | case " $depcc " in #( | ||
13452 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
13453 | esac | ||
13454 | |||
13455 | for depmode in $am_compiler_list; do | ||
13456 | # Setup a source with many dependencies, because some compilers | ||
13457 | # like to wrap large dependency lists on column 80 (with \), and | ||
13458 | # we should not choose a depcomp mode which is confused by this. | ||
13459 | # | ||
13460 | # We need to recreate these files for each test, as the compiler may | ||
13461 | # overwrite some of them when testing with obscure command lines. | ||
13462 | # This happens at least with the AIX C compiler. | ||
13463 | : > sub/conftest.c | ||
13464 | for i in 1 2 3 4 5 6; do | ||
13465 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
13466 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
13467 | # Solaris 8's {/usr,}/bin/sh. | ||
13468 | touch sub/conftst$i.h | ||
13469 | done | ||
13470 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
13471 | |||
13472 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
13473 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
13474 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
13475 | # versions had trouble with output in subdirs | ||
13476 | am__obj=sub/conftest.${OBJEXT-o} | ||
13477 | am__minus_obj="-o $am__obj" | ||
13478 | case $depmode in | ||
13479 | gcc) | ||
13480 | # This depmode causes a compiler race in universal mode. | ||
13481 | test "$am__universal" = false || continue | ||
13482 | ;; | ||
13483 | nosideeffect) | ||
13484 | # after this tag, mechanisms are not by side-effect, so they'll | ||
13485 | # only be used when explicitly requested | ||
13486 | if test "x$enable_dependency_tracking" = xyes; then | ||
13487 | continue | ||
13488 | else | ||
13489 | break | ||
13490 | fi | ||
13491 | ;; | ||
13492 | msvisualcpp | msvcmsys) | ||
13493 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
13494 | # not run yet. These depmodes are late enough in the game, and | ||
13495 | # so weak that their functioning should not be impacted. | ||
13496 | am__obj=conftest.${OBJEXT-o} | ||
13497 | am__minus_obj= | ||
13498 | ;; | ||
13499 | none) break ;; | ||
13500 | esac | ||
13501 | if depmode=$depmode \ | ||
13502 | source=sub/conftest.c object=$am__obj \ | ||
13503 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
13504 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
13505 | >/dev/null 2>conftest.err && | ||
13506 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
13507 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
13508 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
13509 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
13510 | # icc doesn't choke on unknown options, it will just issue warnings | ||
13511 | # or remarks (even with -Werror). So we grep stderr for any message | ||
13512 | # that says an option was ignored or not supported. | ||
13513 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
13514 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
13515 | # The diagnosis changed in icc 8.0: | ||
13516 | # icc: Command line remark: option '-MP' not supported | ||
13517 | if (grep 'ignoring option' conftest.err || | ||
13518 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
13519 | am_cv_CXX_dependencies_compiler_type=$depmode | ||
13520 | break | ||
13521 | fi | ||
13522 | fi | ||
13523 | done | ||
13524 | |||
13525 | cd .. | ||
13526 | rm -rf conftest.dir | ||
13527 | else | ||
13528 | am_cv_CXX_dependencies_compiler_type=none | ||
13529 | fi | ||
13530 | |||
13531 | fi | ||
13532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | ||
13533 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | ||
13534 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | ||
13535 | |||
13536 | if | ||
13537 | test "x$enable_dependency_tracking" != xno \ | ||
13538 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | ||
13539 | am__fastdepCXX_TRUE= | ||
13540 | am__fastdepCXX_FALSE='#' | ||
13541 | else | ||
13542 | am__fastdepCXX_TRUE='#' | ||
13543 | am__fastdepCXX_FALSE= | ||
13544 | fi | ||
13545 | |||
13546 | |||
13547 | |||
13548 | ac_ext=cpp | ||
13549 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
13550 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
13551 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13552 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
13553 | if test -z "$CXX"; then | ||
13554 | if test -n "$CCC"; then | ||
13555 | CXX=$CCC | ||
13556 | else | ||
13557 | if test -n "$ac_tool_prefix"; then | ||
13558 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | ||
13559 | do | ||
13560 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
13561 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
13562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
13563 | $as_echo_n "checking for $ac_word... " >&6; } | ||
13564 | if test "${ac_cv_prog_CXX+set}" = set; then : | ||
13565 | $as_echo_n "(cached) " >&6 | ||
13566 | else | ||
13567 | if test -n "$CXX"; then | ||
13568 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | ||
13569 | else | ||
13570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
13571 | for as_dir in $PATH | ||
13572 | do | ||
13573 | IFS=$as_save_IFS | ||
13574 | test -z "$as_dir" && as_dir=. | ||
13575 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
13576 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
13577 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | ||
13578 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
13579 | break 2 | ||
13580 | fi | ||
13581 | done | ||
13582 | done | ||
13583 | IFS=$as_save_IFS | ||
13584 | |||
13585 | fi | ||
13586 | fi | ||
13587 | CXX=$ac_cv_prog_CXX | ||
13588 | if test -n "$CXX"; then | ||
13589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | ||
13590 | $as_echo "$CXX" >&6; } | ||
13591 | else | ||
13592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13593 | $as_echo "no" >&6; } | ||
13594 | fi | ||
13595 | |||
13596 | |||
13597 | test -n "$CXX" && break | ||
13598 | done | ||
13599 | fi | ||
13600 | if test -z "$CXX"; then | ||
13601 | ac_ct_CXX=$CXX | ||
13602 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | ||
13603 | do | ||
13604 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
13605 | set dummy $ac_prog; ac_word=$2 | ||
13606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
13607 | $as_echo_n "checking for $ac_word... " >&6; } | ||
13608 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | ||
13609 | $as_echo_n "(cached) " >&6 | ||
13610 | else | ||
13611 | if test -n "$ac_ct_CXX"; then | ||
13612 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | ||
13613 | else | ||
13614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
13615 | for as_dir in $PATH | ||
13616 | do | ||
13617 | IFS=$as_save_IFS | ||
13618 | test -z "$as_dir" && as_dir=. | ||
13619 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
13620 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
13621 | ac_cv_prog_ac_ct_CXX="$ac_prog" | ||
13622 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
13623 | break 2 | ||
13624 | fi | ||
13625 | done | ||
13626 | done | ||
13627 | IFS=$as_save_IFS | ||
13628 | |||
13629 | fi | ||
13630 | fi | ||
13631 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | ||
13632 | if test -n "$ac_ct_CXX"; then | ||
13633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | ||
13634 | $as_echo "$ac_ct_CXX" >&6; } | ||
13635 | else | ||
13636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13637 | $as_echo "no" >&6; } | ||
13638 | fi | ||
13639 | |||
13640 | |||
13641 | test -n "$ac_ct_CXX" && break | ||
13642 | done | ||
13643 | |||
13644 | if test "x$ac_ct_CXX" = x; then | ||
13645 | CXX="g++" | ||
13646 | else | ||
13647 | case $cross_compiling:$ac_tool_warned in | ||
13648 | yes:) | ||
13649 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
13650 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
13651 | ac_tool_warned=yes ;; | ||
13652 | esac | ||
13653 | CXX=$ac_ct_CXX | ||
13654 | fi | ||
13655 | fi | ||
13656 | |||
13657 | fi | ||
13658 | fi | ||
13659 | # Provide some information about the compiler. | ||
13660 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | ||
13661 | set X $ac_compile | ||
13662 | ac_compiler=$2 | ||
13663 | for ac_option in --version -v -V -qversion; do | ||
13664 | { { ac_try="$ac_compiler $ac_option >&5" | ||
13665 | case "(($ac_try" in | ||
13666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13667 | *) ac_try_echo=$ac_try;; | ||
13668 | esac | ||
13669 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
13670 | $as_echo "$ac_try_echo"; } >&5 | ||
13671 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
13672 | ac_status=$? | ||
13673 | if test -s conftest.err; then | ||
13674 | sed '10a\ | ||
13675 | ... rest of stderr output deleted ... | ||
13676 | 10q' conftest.err >conftest.er1 | ||
13677 | cat conftest.er1 >&5 | ||
13678 | fi | ||
13679 | rm -f conftest.er1 conftest.err | ||
13680 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13681 | test $ac_status = 0; } | ||
13682 | done | ||
13683 | |||
13684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | ||
13685 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | ||
13686 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | ||
13687 | $as_echo_n "(cached) " >&6 | ||
13688 | else | ||
13689 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13690 | /* end confdefs.h. */ | ||
13691 | |||
13692 | int | ||
13693 | main () | ||
13694 | { | ||
13695 | #ifndef __GNUC__ | ||
13696 | choke me | ||
13697 | #endif | ||
13698 | |||
13699 | ; | ||
13700 | return 0; | ||
13701 | } | ||
13702 | _ACEOF | ||
13703 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
13704 | ac_compiler_gnu=yes | ||
13705 | else | ||
13706 | ac_compiler_gnu=no | ||
13707 | fi | ||
13708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13709 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | ||
13710 | |||
13711 | fi | ||
13712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | ||
13713 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | ||
13714 | if test $ac_compiler_gnu = yes; then | ||
13715 | GXX=yes | ||
13716 | else | ||
13717 | GXX= | ||
13718 | fi | ||
13719 | ac_test_CXXFLAGS=${CXXFLAGS+set} | ||
13720 | ac_save_CXXFLAGS=$CXXFLAGS | ||
13721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | ||
13722 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | ||
13723 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | ||
13724 | $as_echo_n "(cached) " >&6 | ||
13725 | else | ||
13726 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | ||
13727 | ac_cxx_werror_flag=yes | ||
13728 | ac_cv_prog_cxx_g=no | ||
13729 | CXXFLAGS="-g" | ||
13730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13731 | /* end confdefs.h. */ | ||
13732 | |||
13733 | int | ||
13734 | main () | ||
13735 | { | ||
13736 | |||
13737 | ; | ||
13738 | return 0; | ||
13739 | } | ||
13740 | _ACEOF | ||
13741 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
13742 | ac_cv_prog_cxx_g=yes | ||
13743 | else | ||
13744 | CXXFLAGS="" | ||
13745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13746 | /* end confdefs.h. */ | ||
13747 | |||
13748 | int | ||
13749 | main () | ||
13750 | { | ||
13751 | |||
13752 | ; | ||
13753 | return 0; | ||
13754 | } | ||
13755 | _ACEOF | ||
13756 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
13757 | |||
13758 | else | ||
13759 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
13760 | CXXFLAGS="-g" | ||
13761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13762 | /* end confdefs.h. */ | ||
13763 | |||
13764 | int | ||
13765 | main () | ||
13766 | { | ||
13767 | |||
13768 | ; | ||
13769 | return 0; | ||
13770 | } | ||
13771 | _ACEOF | ||
13772 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
13773 | ac_cv_prog_cxx_g=yes | ||
13774 | fi | ||
13775 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13776 | fi | ||
13777 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13778 | fi | ||
13779 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13780 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
13781 | fi | ||
13782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | ||
13783 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | ||
13784 | if test "$ac_test_CXXFLAGS" = set; then | ||
13785 | CXXFLAGS=$ac_save_CXXFLAGS | ||
13786 | elif test $ac_cv_prog_cxx_g = yes; then | ||
13787 | if test "$GXX" = yes; then | ||
13788 | CXXFLAGS="-g -O2" | ||
13789 | else | ||
13790 | CXXFLAGS="-g" | ||
13791 | fi | ||
13792 | else | ||
13793 | if test "$GXX" = yes; then | ||
13794 | CXXFLAGS="-O2" | ||
13795 | else | ||
13796 | CXXFLAGS= | ||
13797 | fi | ||
13798 | fi | ||
13799 | ac_ext=c | ||
13800 | ac_cpp='$CPP $CPPFLAGS' | ||
13801 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
13802 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13803 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
13804 | |||
13805 | depcc="$CXX" am_compiler_list= | ||
13806 | |||
13807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
13808 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
13809 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : | ||
13810 | $as_echo_n "(cached) " >&6 | ||
13811 | else | ||
13812 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
13813 | # We make a subdir and do the tests there. Otherwise we can end up | ||
13814 | # making bogus files that we don't know about and never remove. For | ||
13815 | # instance it was reported that on HP-UX the gcc test will end up | ||
13816 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
13817 | # in D'. | ||
13818 | mkdir conftest.dir | ||
13819 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
13820 | # using a relative directory. | ||
13821 | cp "$am_depcomp" conftest.dir | ||
13822 | cd conftest.dir | ||
13823 | # We will build objects and dependencies in a subdirectory because | ||
13824 | # it helps to detect inapplicable dependency modes. For instance | ||
13825 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
13826 | # side effect of compilation, but ICC will put the dependencies in | ||
13827 | # the current directory while Tru64 will put them in the object | ||
13828 | # directory. | ||
13829 | mkdir sub | ||
13830 | |||
13831 | am_cv_CXX_dependencies_compiler_type=none | ||
13832 | if test "$am_compiler_list" = ""; then | ||
13833 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
13834 | fi | ||
13835 | am__universal=false | ||
13836 | case " $depcc " in #( | ||
13837 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
13838 | esac | ||
13839 | |||
13840 | for depmode in $am_compiler_list; do | ||
13841 | # Setup a source with many dependencies, because some compilers | ||
13842 | # like to wrap large dependency lists on column 80 (with \), and | ||
13843 | # we should not choose a depcomp mode which is confused by this. | ||
13844 | # | ||
13845 | # We need to recreate these files for each test, as the compiler may | ||
13846 | # overwrite some of them when testing with obscure command lines. | ||
13847 | # This happens at least with the AIX C compiler. | ||
13848 | : > sub/conftest.c | ||
13849 | for i in 1 2 3 4 5 6; do | ||
13850 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
13851 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
13852 | # Solaris 8's {/usr,}/bin/sh. | ||
13853 | touch sub/conftst$i.h | ||
13854 | done | ||
13855 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
13856 | |||
13857 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
13858 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
13859 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
13860 | # versions had trouble with output in subdirs | ||
13861 | am__obj=sub/conftest.${OBJEXT-o} | ||
13862 | am__minus_obj="-o $am__obj" | ||
13863 | case $depmode in | ||
13864 | gcc) | ||
13865 | # This depmode causes a compiler race in universal mode. | ||
13866 | test "$am__universal" = false || continue | ||
13867 | ;; | ||
13868 | nosideeffect) | ||
13869 | # after this tag, mechanisms are not by side-effect, so they'll | ||
13870 | # only be used when explicitly requested | ||
13871 | if test "x$enable_dependency_tracking" = xyes; then | ||
13872 | continue | ||
13873 | else | ||
13874 | break | ||
13875 | fi | ||
13876 | ;; | ||
13877 | msvisualcpp | msvcmsys) | ||
13878 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
13879 | # not run yet. These depmodes are late enough in the game, and | ||
13880 | # so weak that their functioning should not be impacted. | ||
13881 | am__obj=conftest.${OBJEXT-o} | ||
13882 | am__minus_obj= | ||
13883 | ;; | ||
13884 | none) break ;; | ||
13885 | esac | ||
13886 | if depmode=$depmode \ | ||
13887 | source=sub/conftest.c object=$am__obj \ | ||
13888 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
13889 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
13890 | >/dev/null 2>conftest.err && | ||
13891 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
13892 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
13893 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
13894 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
13895 | # icc doesn't choke on unknown options, it will just issue warnings | ||
13896 | # or remarks (even with -Werror). So we grep stderr for any message | ||
13897 | # that says an option was ignored or not supported. | ||
13898 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
13899 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
13900 | # The diagnosis changed in icc 8.0: | ||
13901 | # icc: Command line remark: option '-MP' not supported | ||
13902 | if (grep 'ignoring option' conftest.err || | ||
13903 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
13904 | am_cv_CXX_dependencies_compiler_type=$depmode | ||
13905 | break | ||
13906 | fi | ||
13907 | fi | ||
13908 | done | ||
13909 | |||
13910 | cd .. | ||
13911 | rm -rf conftest.dir | ||
13912 | else | ||
13913 | am_cv_CXX_dependencies_compiler_type=none | ||
13914 | fi | ||
13915 | |||
13916 | fi | ||
13917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | ||
13918 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | ||
13919 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | ||
13920 | |||
13921 | if | ||
13922 | test "x$enable_dependency_tracking" != xno \ | ||
13923 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | ||
13924 | am__fastdepCXX_TRUE= | ||
13925 | am__fastdepCXX_FALSE='#' | ||
13926 | else | ||
13927 | am__fastdepCXX_TRUE='#' | ||
13928 | am__fastdepCXX_FALSE= | ||
13929 | fi | ||
13930 | |||
13931 | |||
13932 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | ||
13933 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | ||
13934 | (test "X$CXX" != "Xg++"))) ; then | ||
13935 | ac_ext=cpp | ||
13936 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
13937 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
13938 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13939 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
13940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | ||
13941 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | ||
13942 | if test -z "$CXXCPP"; then | ||
13943 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | ||
13944 | $as_echo_n "(cached) " >&6 | ||
13945 | else | ||
13946 | # Double quotes because CXXCPP needs to be expanded | ||
13947 | for CXXCPP in "$CXX -E" "/lib/cpp" | ||
13948 | do | ||
13949 | ac_preproc_ok=false | ||
13950 | for ac_cxx_preproc_warn_flag in '' yes | ||
13951 | do | ||
13952 | # Use a header file that comes with gcc, so configuring glibc | ||
13953 | # with a fresh cross-compiler works. | ||
13954 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13955 | # <limits.h> exists even on freestanding compilers. | ||
13956 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
13957 | # not just through cpp. "Syntax error" is here to catch this case. | ||
13958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13959 | /* end confdefs.h. */ | ||
13960 | #ifdef __STDC__ | ||
13961 | # include <limits.h> | ||
13962 | #else | ||
13963 | # include <assert.h> | ||
13964 | #endif | ||
13965 | Syntax error | ||
13966 | _ACEOF | ||
13967 | if ac_fn_cxx_try_cpp "$LINENO"; then : | ||
13968 | |||
13969 | else | ||
13970 | # Broken: fails on valid input. | ||
13971 | continue | ||
13972 | fi | ||
13973 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
13974 | |||
13975 | # OK, works on sane cases. Now check whether nonexistent headers | ||
13976 | # can be detected and how. | ||
13977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13978 | /* end confdefs.h. */ | ||
13979 | #include <ac_nonexistent.h> | ||
13980 | _ACEOF | ||
13981 | if ac_fn_cxx_try_cpp "$LINENO"; then : | ||
13982 | # Broken: success on invalid input. | ||
13983 | continue | ||
13984 | else | ||
13985 | # Passes both tests. | ||
13986 | ac_preproc_ok=: | ||
13987 | break | ||
13988 | fi | ||
13989 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
13990 | |||
13991 | done | ||
13992 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
13993 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
13994 | if $ac_preproc_ok; then : | ||
13995 | break | ||
13996 | fi | ||
13997 | |||
13998 | done | ||
13999 | ac_cv_prog_CXXCPP=$CXXCPP | ||
14000 | |||
14001 | fi | ||
14002 | CXXCPP=$ac_cv_prog_CXXCPP | ||
14003 | else | ||
14004 | ac_cv_prog_CXXCPP=$CXXCPP | ||
14005 | fi | ||
14006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | ||
14007 | $as_echo "$CXXCPP" >&6; } | ||
14008 | ac_preproc_ok=false | ||
14009 | for ac_cxx_preproc_warn_flag in '' yes | ||
14010 | do | ||
14011 | # Use a header file that comes with gcc, so configuring glibc | ||
14012 | # with a fresh cross-compiler works. | ||
14013 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14014 | # <limits.h> exists even on freestanding compilers. | ||
14015 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
14016 | # not just through cpp. "Syntax error" is here to catch this case. | ||
14017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14018 | /* end confdefs.h. */ | ||
14019 | #ifdef __STDC__ | ||
14020 | # include <limits.h> | ||
14021 | #else | ||
14022 | # include <assert.h> | ||
14023 | #endif | ||
14024 | Syntax error | ||
14025 | _ACEOF | ||
14026 | if ac_fn_cxx_try_cpp "$LINENO"; then : | ||
14027 | |||
14028 | else | ||
14029 | # Broken: fails on valid input. | ||
14030 | continue | ||
14031 | fi | ||
14032 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
14033 | |||
14034 | # OK, works on sane cases. Now check whether nonexistent headers | ||
14035 | # can be detected and how. | ||
14036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14037 | /* end confdefs.h. */ | ||
14038 | #include <ac_nonexistent.h> | ||
14039 | _ACEOF | ||
14040 | if ac_fn_cxx_try_cpp "$LINENO"; then : | ||
14041 | # Broken: success on invalid input. | ||
14042 | continue | ||
14043 | else | ||
14044 | # Passes both tests. | ||
14045 | ac_preproc_ok=: | ||
14046 | break | ||
14047 | fi | ||
14048 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
14049 | |||
14050 | done | ||
14051 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
14052 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
14053 | if $ac_preproc_ok; then : | ||
14054 | |||
14055 | else | ||
14056 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
14057 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
14058 | _lt_caught_CXX_error=yes; } | ||
14059 | fi | ||
14060 | |||
14061 | ac_ext=c | ||
14062 | ac_cpp='$CPP $CPPFLAGS' | ||
14063 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
14064 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
14065 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
14066 | |||
14067 | else | ||
14068 | _lt_caught_CXX_error=yes | ||
14069 | fi | ||
14070 | |||
14071 | |||
14072 | |||
14073 | |||
14074 | ac_ext=cpp | ||
14075 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
14076 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
14077 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
14078 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
14079 | |||
14080 | archive_cmds_need_lc_CXX=no | ||
14081 | allow_undefined_flag_CXX= | ||
14082 | always_export_symbols_CXX=no | ||
14083 | archive_expsym_cmds_CXX= | ||
14084 | compiler_needs_object_CXX=no | ||
14085 | export_dynamic_flag_spec_CXX= | ||
14086 | hardcode_direct_CXX=no | ||
14087 | hardcode_direct_absolute_CXX=no | ||
14088 | hardcode_libdir_flag_spec_CXX= | ||
14089 | hardcode_libdir_flag_spec_ld_CXX= | ||
14090 | hardcode_libdir_separator_CXX= | ||
14091 | hardcode_minus_L_CXX=no | ||
14092 | hardcode_shlibpath_var_CXX=unsupported | ||
14093 | hardcode_automatic_CXX=no | ||
14094 | inherit_rpath_CXX=no | ||
14095 | module_cmds_CXX= | ||
14096 | module_expsym_cmds_CXX= | ||
14097 | link_all_deplibs_CXX=unknown | ||
14098 | old_archive_cmds_CXX=$old_archive_cmds | ||
14099 | no_undefined_flag_CXX= | ||
14100 | whole_archive_flag_spec_CXX= | ||
14101 | enable_shared_with_static_runtimes_CXX=no | ||
14102 | |||
14103 | # Source file extension for C++ test sources. | ||
14104 | ac_ext=cpp | ||
14105 | |||
14106 | # Object file extension for compiled C++ test sources. | ||
14107 | objext=o | ||
14108 | objext_CXX=$objext | ||
14109 | |||
14110 | # No sense in running all these tests if we already determined that | ||
14111 | # the CXX compiler isn't working. Some variables (like enable_shared) | ||
14112 | # are currently assumed to apply to all compilers on this platform, | ||
14113 | # and will be corrupted by setting them based on a non-working compiler. | ||
14114 | if test "$_lt_caught_CXX_error" != yes; then | ||
14115 | # Code to be used in simple compile tests | ||
14116 | lt_simple_compile_test_code="int some_variable = 0;" | ||
14117 | |||
14118 | # Code to be used in simple link tests | ||
14119 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | ||
14120 | |||
14121 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
14122 | |||
14123 | |||
14124 | |||
14125 | |||
14126 | |||
14127 | |||
14128 | # If no C compiler was specified, use CC. | ||
14129 | LTCC=${LTCC-"$CC"} | ||
14130 | |||
14131 | # If no C compiler flags were specified, use CFLAGS. | ||
14132 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
14133 | |||
14134 | # Allow CC to be a program name with arguments. | ||
14135 | compiler=$CC | ||
14136 | |||
14137 | |||
14138 | # save warnings/boilerplate of simple test code | ||
14139 | ac_outfile=conftest.$ac_objext | ||
14140 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
14141 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
14142 | _lt_compiler_boilerplate=`cat conftest.err` | ||
14143 | $RM conftest* | ||
14144 | |||
14145 | ac_outfile=conftest.$ac_objext | ||
14146 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | ||
14147 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
14148 | _lt_linker_boilerplate=`cat conftest.err` | ||
14149 | $RM -r conftest* | ||
14150 | |||
14151 | |||
14152 | # Allow CC to be a program name with arguments. | ||
14153 | lt_save_CC=$CC | ||
14154 | lt_save_LD=$LD | ||
14155 | lt_save_GCC=$GCC | ||
14156 | GCC=$GXX | ||
14157 | lt_save_with_gnu_ld=$with_gnu_ld | ||
14158 | lt_save_path_LD=$lt_cv_path_LD | ||
14159 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | ||
14160 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | ||
14161 | else | ||
14162 | $as_unset lt_cv_prog_gnu_ld | ||
14163 | fi | ||
14164 | if test -n "${lt_cv_path_LDCXX+set}"; then | ||
14165 | lt_cv_path_LD=$lt_cv_path_LDCXX | ||
14166 | else | ||
14167 | $as_unset lt_cv_path_LD | ||
14168 | fi | ||
14169 | test -z "${LDCXX+set}" || LD=$LDCXX | ||
14170 | CC=${CXX-"c++"} | ||
14171 | compiler=$CC | ||
14172 | compiler_CXX=$CC | ||
14173 | for cc_temp in $compiler""; do | ||
14174 | case $cc_temp in | ||
14175 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | ||
14176 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | ||
14177 | \-*) ;; | ||
14178 | *) break;; | ||
14179 | esac | ||
14180 | done | ||
14181 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
14182 | |||
14183 | |||
14184 | if test -n "$compiler"; then | ||
14185 | # We don't want -fno-exception when compiling C++ code, so set the | ||
14186 | # no_builtin_flag separately | ||
14187 | if test "$GXX" = yes; then | ||
14188 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | ||
14189 | else | ||
14190 | lt_prog_compiler_no_builtin_flag_CXX= | ||
14191 | fi | ||
14192 | |||
14193 | if test "$GXX" = yes; then | ||
14194 | # Set up default GNU C++ configuration | ||
14195 | |||
14196 | |||
14197 | |||
14198 | # Check whether --with-gnu-ld was given. | ||
14199 | if test "${with_gnu_ld+set}" = set; then : | ||
14200 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | ||
14201 | else | ||
14202 | with_gnu_ld=no | ||
14203 | fi | ||
14204 | |||
14205 | ac_prog=ld | ||
14206 | if test "$GCC" = yes; then | ||
14207 | # Check if gcc -print-prog-name=ld gives a path. | ||
14208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | ||
14209 | $as_echo_n "checking for ld used by $CC... " >&6; } | ||
14210 | case $host in | ||
14211 | *-*-mingw*) | ||
14212 | # gcc leaves a trailing carriage return which upsets mingw | ||
14213 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
14214 | *) | ||
14215 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
14216 | esac | ||
14217 | case $ac_prog in | ||
14218 | # Accept absolute paths. | ||
14219 | [\\/]* | ?:[\\/]*) | ||
14220 | re_direlt='/[^/][^/]*/\.\./' | ||
14221 | # Canonicalize the pathname of ld | ||
14222 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | ||
14223 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | ||
14224 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | ||
14225 | done | ||
14226 | test -z "$LD" && LD="$ac_prog" | ||
14227 | ;; | ||
14228 | "") | ||
14229 | # If it fails, then pretend we aren't using GCC. | ||
14230 | ac_prog=ld | ||
14231 | ;; | ||
14232 | *) | ||
14233 | # If it is relative, then search for the first ld in PATH. | ||
14234 | with_gnu_ld=unknown | ||
14235 | ;; | ||
14236 | esac | ||
14237 | elif test "$with_gnu_ld" = yes; then | ||
14238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | ||
14239 | $as_echo_n "checking for GNU ld... " >&6; } | ||
14240 | else | ||
14241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | ||
14242 | $as_echo_n "checking for non-GNU ld... " >&6; } | ||
14243 | fi | ||
14244 | if test "${lt_cv_path_LD+set}" = set; then : | ||
14245 | $as_echo_n "(cached) " >&6 | ||
14246 | else | ||
14247 | if test -z "$LD"; then | ||
14248 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
14249 | for ac_dir in $PATH; do | ||
14250 | IFS="$lt_save_ifs" | ||
14251 | test -z "$ac_dir" && ac_dir=. | ||
14252 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
14253 | lt_cv_path_LD="$ac_dir/$ac_prog" | ||
14254 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
14255 | # but apparently some variants of GNU ld only accept -v. | ||
14256 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
14257 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
14258 | *GNU* | *'with BFD'*) | ||
14259 | test "$with_gnu_ld" != no && break | ||
14260 | ;; | ||
14261 | *) | ||
14262 | test "$with_gnu_ld" != yes && break | ||
14263 | ;; | ||
14264 | esac | ||
14265 | fi | ||
14266 | done | ||
14267 | IFS="$lt_save_ifs" | ||
14268 | else | ||
14269 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
14270 | fi | ||
14271 | fi | ||
14272 | |||
14273 | LD="$lt_cv_path_LD" | ||
14274 | if test -n "$LD"; then | ||
14275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | ||
14276 | $as_echo "$LD" >&6; } | ||
14277 | else | ||
14278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14279 | $as_echo "no" >&6; } | ||
14280 | fi | ||
14281 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | ||
14282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | ||
14283 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | ||
14284 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | ||
14285 | $as_echo_n "(cached) " >&6 | ||
14286 | else | ||
14287 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | ||
14288 | case `$LD -v 2>&1 </dev/null` in | ||
14289 | *GNU* | *'with BFD'*) | ||
14290 | lt_cv_prog_gnu_ld=yes | ||
14291 | ;; | ||
14292 | *) | ||
14293 | lt_cv_prog_gnu_ld=no | ||
14294 | ;; | ||
14295 | esac | ||
14296 | fi | ||
14297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | ||
14298 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | ||
14299 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
14300 | |||
14301 | |||
14302 | |||
14303 | |||
14304 | |||
14305 | |||
14306 | |||
14307 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | ||
14308 | # archiving commands below assume that GNU ld is being used. | ||
14309 | if test "$with_gnu_ld" = yes; then | ||
14310 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
14311 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
14312 | |||
14313 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
14314 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
14315 | |||
14316 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
14317 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | ||
14318 | # investigate it a little bit more. (MM) | ||
14319 | wlarc='${wl}' | ||
14320 | |||
14321 | # ancient GNU ld didn't support --whole-archive et. al. | ||
14322 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | ||
14323 | $GREP 'no-whole-archive' > /dev/null; then | ||
14324 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
14325 | else | ||
14326 | whole_archive_flag_spec_CXX= | ||
14327 | fi | ||
14328 | else | ||
14329 | with_gnu_ld=no | ||
14330 | wlarc= | ||
14331 | |||
14332 | # A generic and very simple default shared library creation | ||
14333 | # command for GNU C++ for the case where it uses the native | ||
14334 | # linker, instead of GNU ld. If possible, this setting should | ||
14335 | # overridden to take advantage of the native linker features on | ||
14336 | # the platform it is being used on. | ||
14337 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | ||
14338 | fi | ||
14339 | |||
14340 | # Commands to make compiler produce verbose output that lists | ||
14341 | # what "hidden" libraries, object files and flags are used when | ||
14342 | # linking a shared library. | ||
14343 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | ||
14344 | |||
14345 | else | ||
14346 | GXX=no | ||
14347 | with_gnu_ld=no | ||
14348 | wlarc= | ||
14349 | fi | ||
14350 | |||
14351 | # PORTME: fill in a description of your system's C++ link characteristics | ||
14352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
14353 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | ||
14354 | ld_shlibs_CXX=yes | ||
14355 | case $host_os in | ||
14356 | aix3*) | ||
14357 | # FIXME: insert proper C++ library support | ||
14358 | ld_shlibs_CXX=no | ||
14359 | ;; | ||
14360 | aix[4-9]*) | ||
14361 | if test "$host_cpu" = ia64; then | ||
14362 | # On IA64, the linker does run time linking by default, so we don't | ||
14363 | # have to do anything special. | ||
14364 | aix_use_runtimelinking=no | ||
14365 | exp_sym_flag='-Bexport' | ||
14366 | no_entry_flag="" | ||
14367 | else | ||
14368 | aix_use_runtimelinking=no | ||
14369 | |||
14370 | # Test if we are trying to use run time linking or normal | ||
14371 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
14372 | # need to do runtime linking. | ||
14373 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | ||
14374 | for ld_flag in $LDFLAGS; do | ||
14375 | case $ld_flag in | ||
14376 | *-brtl*) | ||
14377 | aix_use_runtimelinking=yes | ||
14378 | break | ||
14379 | ;; | ||
14380 | esac | ||
14381 | done | ||
14382 | ;; | ||
14383 | esac | ||
14384 | |||
14385 | exp_sym_flag='-bexport' | ||
14386 | no_entry_flag='-bnoentry' | ||
14387 | fi | ||
14388 | |||
14389 | # When large executables or shared objects are built, AIX ld can | ||
14390 | # have problems creating the table of contents. If linking a library | ||
14391 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
14392 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
14393 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
14394 | |||
14395 | archive_cmds_CXX='' | ||
14396 | hardcode_direct_CXX=yes | ||
14397 | hardcode_direct_absolute_CXX=yes | ||
14398 | hardcode_libdir_separator_CXX=':' | ||
14399 | link_all_deplibs_CXX=yes | ||
14400 | file_list_spec_CXX='${wl}-f,' | ||
14401 | |||
14402 | if test "$GXX" = yes; then | ||
14403 | case $host_os in aix4.[012]|aix4.[012].*) | ||
14404 | # We only want to do this on AIX 4.2 and lower, the check | ||
14405 | # below for broken collect2 doesn't work under 4.3+ | ||
14406 | collect2name=`${CC} -print-prog-name=collect2` | ||
14407 | if test -f "$collect2name" && | ||
14408 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | ||
14409 | then | ||
14410 | # We have reworked collect2 | ||
14411 | : | ||
14412 | else | ||
14413 | # We have old collect2 | ||
14414 | hardcode_direct_CXX=unsupported | ||
14415 | # It fails to find uninstalled libraries when the uninstalled | ||
14416 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
14417 | # to unsupported forces relinking | ||
14418 | hardcode_minus_L_CXX=yes | ||
14419 | hardcode_libdir_flag_spec_CXX='-L$libdir' | ||
14420 | hardcode_libdir_separator_CXX= | ||
14421 | fi | ||
14422 | esac | ||
14423 | shared_flag='-shared' | ||
14424 | if test "$aix_use_runtimelinking" = yes; then | ||
14425 | shared_flag="$shared_flag "'${wl}-G' | ||
14426 | fi | ||
14427 | else | ||
14428 | # not using gcc | ||
14429 | if test "$host_cpu" = ia64; then | ||
14430 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
14431 | # chokes on -Wl,-G. The following line is correct: | ||
14432 | shared_flag='-G' | ||
14433 | else | ||
14434 | if test "$aix_use_runtimelinking" = yes; then | ||
14435 | shared_flag='${wl}-G' | ||
14436 | else | ||
14437 | shared_flag='${wl}-bM:SRE' | ||
14438 | fi | ||
14439 | fi | ||
14440 | fi | ||
14441 | |||
14442 | # It seems that -bexpall does not export symbols beginning with | ||
14443 | # underscore (_), so it is better to generate a list of symbols to | ||
14444 | # export. | ||
14445 | always_export_symbols_CXX=yes | ||
14446 | if test "$aix_use_runtimelinking" = yes; then | ||
14447 | # Warning - without using the other runtime loading flags (-brtl), | ||
14448 | # -berok will link without error, but may produce a broken library. | ||
14449 | allow_undefined_flag_CXX='-berok' | ||
14450 | # Determine the default libpath from the value encoded in an empty | ||
14451 | # executable. | ||
14452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14453 | /* end confdefs.h. */ | ||
14454 | |||
14455 | int | ||
14456 | main () | ||
14457 | { | ||
14458 | |||
14459 | ; | ||
14460 | return 0; | ||
14461 | } | ||
14462 | _ACEOF | ||
14463 | if ac_fn_cxx_try_link "$LINENO"; then : | ||
14464 | |||
14465 | lt_aix_libpath_sed=' | ||
14466 | /Import File Strings/,/^$/ { | ||
14467 | /^0/ { | ||
14468 | s/^0 *\(.*\)$/\1/ | ||
14469 | p | ||
14470 | } | ||
14471 | }' | ||
14472 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
14473 | # Check for a 64-bit object if we didn't find anything. | ||
14474 | if test -z "$aix_libpath"; then | ||
14475 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
14476 | fi | ||
14477 | fi | ||
14478 | rm -f core conftest.err conftest.$ac_objext \ | ||
14479 | conftest$ac_exeext conftest.$ac_ext | ||
14480 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
14481 | |||
14482 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
14483 | |||
14484 | 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
14485 | else | ||
14486 | if test "$host_cpu" = ia64; then | ||
14487 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | ||
14488 | allow_undefined_flag_CXX="-z nodefs" | ||
14489 | 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" | ||
14490 | else | ||
14491 | # Determine the default libpath from the value encoded in an | ||
14492 | # empty executable. | ||
14493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14494 | /* end confdefs.h. */ | ||
14495 | |||
14496 | int | ||
14497 | main () | ||
14498 | { | ||
14499 | |||
14500 | ; | ||
14501 | return 0; | ||
14502 | } | ||
14503 | _ACEOF | ||
14504 | if ac_fn_cxx_try_link "$LINENO"; then : | ||
14505 | |||
14506 | lt_aix_libpath_sed=' | ||
14507 | /Import File Strings/,/^$/ { | ||
14508 | /^0/ { | ||
14509 | s/^0 *\(.*\)$/\1/ | ||
14510 | p | ||
14511 | } | ||
14512 | }' | ||
14513 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
14514 | # Check for a 64-bit object if we didn't find anything. | ||
14515 | if test -z "$aix_libpath"; then | ||
14516 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
14517 | fi | ||
14518 | fi | ||
14519 | rm -f core conftest.err conftest.$ac_objext \ | ||
14520 | conftest$ac_exeext conftest.$ac_ext | ||
14521 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
14522 | |||
14523 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
14524 | # Warning - without using the other run time loading flags, | ||
14525 | # -berok will link without error, but may produce a broken library. | ||
14526 | no_undefined_flag_CXX=' ${wl}-bernotok' | ||
14527 | allow_undefined_flag_CXX=' ${wl}-berok' | ||
14528 | # Exported symbols can be pulled into shared objects from archives | ||
14529 | whole_archive_flag_spec_CXX='$convenience' | ||
14530 | archive_cmds_need_lc_CXX=yes | ||
14531 | # This is similar to how AIX traditionally builds its shared | ||
14532 | # libraries. | ||
14533 | 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' | ||
14534 | fi | ||
14535 | fi | ||
14536 | ;; | ||
14537 | |||
14538 | beos*) | ||
14539 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
14540 | allow_undefined_flag_CXX=unsupported | ||
14541 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
14542 | # support --undefined. This deserves some investigation. FIXME | ||
14543 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
14544 | else | ||
14545 | ld_shlibs_CXX=no | ||
14546 | fi | ||
14547 | ;; | ||
14548 | |||
14549 | chorus*) | ||
14550 | case $cc_basename in | ||
14551 | *) | ||
14552 | # FIXME: insert proper C++ library support | ||
14553 | ld_shlibs_CXX=no | ||
14554 | ;; | ||
14555 | esac | ||
14556 | ;; | ||
14557 | |||
14558 | cygwin* | mingw* | pw32*) | ||
14559 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | ||
14560 | # as there is no search path for DLLs. | ||
14561 | hardcode_libdir_flag_spec_CXX='-L$libdir' | ||
14562 | allow_undefined_flag_CXX=unsupported | ||
14563 | always_export_symbols_CXX=no | ||
14564 | enable_shared_with_static_runtimes_CXX=yes | ||
14565 | |||
14566 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
14567 | 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' | ||
14568 | # If the export-symbols file already is a .def file (1st line | ||
14569 | # is EXPORTS), use it as is; otherwise, prepend... | ||
14570 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
14571 | cp $export_symbols $output_objdir/$soname.def; | ||
14572 | else | ||
14573 | echo EXPORTS > $output_objdir/$soname.def; | ||
14574 | cat $export_symbols >> $output_objdir/$soname.def; | ||
14575 | fi~ | ||
14576 | $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' | ||
14577 | else | ||
14578 | ld_shlibs_CXX=no | ||
14579 | fi | ||
14580 | ;; | ||
14581 | darwin* | rhapsody*) | ||
14582 | |||
14583 | |||
14584 | archive_cmds_need_lc_CXX=no | ||
14585 | hardcode_direct_CXX=no | ||
14586 | hardcode_automatic_CXX=yes | ||
14587 | hardcode_shlibpath_var_CXX=unsupported | ||
14588 | whole_archive_flag_spec_CXX='' | ||
14589 | link_all_deplibs_CXX=yes | ||
14590 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | ||
14591 | if test "$GCC" = "yes"; then | ||
14592 | output_verbose_link_cmd=echo | ||
14593 | 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}" | ||
14594 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | ||
14595 | 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}" | ||
14596 | 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}" | ||
14597 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | ||
14598 | 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}" | ||
14599 | 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}" | ||
14600 | fi | ||
14601 | |||
14602 | else | ||
14603 | ld_shlibs_CXX=no | ||
14604 | fi | ||
14605 | |||
14606 | ;; | ||
14607 | |||
14608 | dgux*) | ||
14609 | case $cc_basename in | ||
14610 | ec++*) | ||
14611 | # FIXME: insert proper C++ library support | ||
14612 | ld_shlibs_CXX=no | ||
14613 | ;; | ||
14614 | ghcx*) | ||
14615 | # Green Hills C++ Compiler | ||
14616 | # FIXME: insert proper C++ library support | ||
14617 | ld_shlibs_CXX=no | ||
14618 | ;; | ||
14619 | *) | ||
14620 | # FIXME: insert proper C++ library support | ||
14621 | ld_shlibs_CXX=no | ||
14622 | ;; | ||
14623 | esac | ||
14624 | ;; | ||
14625 | |||
14626 | freebsd[12]*) | ||
14627 | # C++ shared libraries reported to be fairly broken before | ||
14628 | # switch to ELF | ||
14629 | ld_shlibs_CXX=no | ||
14630 | ;; | ||
14631 | |||
14632 | freebsd-elf*) | ||
14633 | archive_cmds_need_lc_CXX=no | ||
14634 | ;; | ||
14635 | |||
14636 | freebsd* | dragonfly*) | ||
14637 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | ||
14638 | # conventions | ||
14639 | ld_shlibs_CXX=yes | ||
14640 | ;; | ||
14641 | |||
14642 | gnu*) | ||
14643 | ;; | ||
14644 | |||
14645 | hpux9*) | ||
14646 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | ||
14647 | hardcode_libdir_separator_CXX=: | ||
14648 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
14649 | hardcode_direct_CXX=yes | ||
14650 | hardcode_minus_L_CXX=yes # Not in the search PATH, | ||
14651 | # but as the default | ||
14652 | # location of the library. | ||
14653 | |||
14654 | case $cc_basename in | ||
14655 | CC*) | ||
14656 | # FIXME: insert proper C++ library support | ||
14657 | ld_shlibs_CXX=no | ||
14658 | ;; | ||
14659 | aCC*) | ||
14660 | 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' | ||
14661 | # Commands to make compiler produce verbose output that lists | ||
14662 | # what "hidden" libraries, object files and flags are used when | ||
14663 | # linking a shared library. | ||
14664 | # | ||
14665 | # There doesn't appear to be a way to prevent this compiler from | ||
14666 | # explicitly linking system object files so we need to strip them | ||
14667 | # from the output so that they don't get included in the library | ||
14668 | # dependencies. | ||
14669 | 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; $ECHO "X$list" | $Xsed' | ||
14670 | ;; | ||
14671 | *) | ||
14672 | if test "$GXX" = yes; then | ||
14673 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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' | ||
14674 | else | ||
14675 | # FIXME: insert proper C++ library support | ||
14676 | ld_shlibs_CXX=no | ||
14677 | fi | ||
14678 | ;; | ||
14679 | esac | ||
14680 | ;; | ||
14681 | |||
14682 | hpux10*|hpux11*) | ||
14683 | if test $with_gnu_ld = no; then | ||
14684 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | ||
14685 | hardcode_libdir_separator_CXX=: | ||
14686 | |||
14687 | case $host_cpu in | ||
14688 | hppa*64*|ia64*) | ||
14689 | ;; | ||
14690 | *) | ||
14691 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
14692 | ;; | ||
14693 | esac | ||
14694 | fi | ||
14695 | case $host_cpu in | ||
14696 | hppa*64*|ia64*) | ||
14697 | hardcode_direct_CXX=no | ||
14698 | hardcode_shlibpath_var_CXX=no | ||
14699 | ;; | ||
14700 | *) | ||
14701 | hardcode_direct_CXX=yes | ||
14702 | hardcode_direct_absolute_CXX=yes | ||
14703 | hardcode_minus_L_CXX=yes # Not in the search PATH, | ||
14704 | # but as the default | ||
14705 | # location of the library. | ||
14706 | ;; | ||
14707 | esac | ||
14708 | |||
14709 | case $cc_basename in | ||
14710 | CC*) | ||
14711 | # FIXME: insert proper C++ library support | ||
14712 | ld_shlibs_CXX=no | ||
14713 | ;; | ||
14714 | aCC*) | ||
14715 | case $host_cpu in | ||
14716 | hppa*64*) | ||
14717 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
14718 | ;; | ||
14719 | ia64*) | ||
14720 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
14721 | ;; | ||
14722 | *) | ||
14723 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
14724 | ;; | ||
14725 | esac | ||
14726 | # Commands to make compiler produce verbose output that lists | ||
14727 | # what "hidden" libraries, object files and flags are used when | ||
14728 | # linking a shared library. | ||
14729 | # | ||
14730 | # There doesn't appear to be a way to prevent this compiler from | ||
14731 | # explicitly linking system object files so we need to strip them | ||
14732 | # from the output so that they don't get included in the library | ||
14733 | # dependencies. | ||
14734 | 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; $ECHO "X$list" | $Xsed' | ||
14735 | ;; | ||
14736 | *) | ||
14737 | if test "$GXX" = yes; then | ||
14738 | if test $with_gnu_ld = no; then | ||
14739 | case $host_cpu in | ||
14740 | hppa*64*) | ||
14741 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
14742 | ;; | ||
14743 | ia64*) | ||
14744 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
14745 | ;; | ||
14746 | *) | ||
14747 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
14748 | ;; | ||
14749 | esac | ||
14750 | fi | ||
14751 | else | ||
14752 | # FIXME: insert proper C++ library support | ||
14753 | ld_shlibs_CXX=no | ||
14754 | fi | ||
14755 | ;; | ||
14756 | esac | ||
14757 | ;; | ||
14758 | |||
14759 | interix[3-9]*) | ||
14760 | hardcode_direct_CXX=no | ||
14761 | hardcode_shlibpath_var_CXX=no | ||
14762 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
14763 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
14764 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
14765 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
14766 | # default) and relocated if they conflict, which is a slow very memory | ||
14767 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
14768 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
14769 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
14770 | 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' | ||
14771 | 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' | ||
14772 | ;; | ||
14773 | irix5* | irix6*) | ||
14774 | case $cc_basename in | ||
14775 | CC*) | ||
14776 | # SGI C++ | ||
14777 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
14778 | |||
14779 | # Archives containing C++ object files must be created using | ||
14780 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | ||
14781 | # necessary to make sure instantiated templates are included | ||
14782 | # in the archive. | ||
14783 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | ||
14784 | ;; | ||
14785 | *) | ||
14786 | if test "$GXX" = yes; then | ||
14787 | if test "$with_gnu_ld" = no; then | ||
14788 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
14789 | else | ||
14790 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' | ||
14791 | fi | ||
14792 | fi | ||
14793 | link_all_deplibs_CXX=yes | ||
14794 | ;; | ||
14795 | esac | ||
14796 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
14797 | hardcode_libdir_separator_CXX=: | ||
14798 | inherit_rpath_CXX=yes | ||
14799 | ;; | ||
14800 | |||
14801 | linux* | k*bsd*-gnu) | ||
14802 | case $cc_basename in | ||
14803 | KCC*) | ||
14804 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
14805 | |||
14806 | # KCC will only create a shared library if the output file | ||
14807 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
14808 | # to its proper name (with version) after linking. | ||
14809 | 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' | ||
14810 | 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' | ||
14811 | # Commands to make compiler produce verbose output that lists | ||
14812 | # what "hidden" libraries, object files and flags are used when | ||
14813 | # linking a shared library. | ||
14814 | # | ||
14815 | # There doesn't appear to be a way to prevent this compiler from | ||
14816 | # explicitly linking system object files so we need to strip them | ||
14817 | # from the output so that they don't get included in the library | ||
14818 | # dependencies. | ||
14819 | 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; $ECHO "X$list" | $Xsed' | ||
14820 | |||
14821 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
14822 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
14823 | |||
14824 | # Archives containing C++ object files must be created using | ||
14825 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | ||
14826 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | ||
14827 | ;; | ||
14828 | icpc* | ecpc* ) | ||
14829 | # Intel C++ | ||
14830 | with_gnu_ld=yes | ||
14831 | # version 8.0 and above of icpc choke on multiply defined symbols | ||
14832 | # if we add $predep_objects and $postdep_objects, however 7.1 and | ||
14833 | # earlier do not add the objects themselves. | ||
14834 | case `$CC -V 2>&1` in | ||
14835 | *"Version 7."*) | ||
14836 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
14837 | 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' | ||
14838 | ;; | ||
14839 | *) # Version 8.0 or newer | ||
14840 | tmp_idyn= | ||
14841 | case $host_cpu in | ||
14842 | ia64*) tmp_idyn=' -i_dynamic';; | ||
14843 | esac | ||
14844 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
14845 | 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' | ||
14846 | ;; | ||
14847 | esac | ||
14848 | archive_cmds_need_lc_CXX=no | ||
14849 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
14850 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
14851 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | ||
14852 | ;; | ||
14853 | pgCC* | pgcpp*) | ||
14854 | # Portland Group C++ compiler | ||
14855 | case `$CC -V` in | ||
14856 | *pgCC\ [1-5]* | *pgcpp\ [1-5]*) | ||
14857 | prelink_cmds_CXX='tpldir=Template.dir~ | ||
14858 | rm -rf $tpldir~ | ||
14859 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | ||
14860 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | ||
14861 | old_archive_cmds_CXX='tpldir=Template.dir~ | ||
14862 | rm -rf $tpldir~ | ||
14863 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | ||
14864 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | ||
14865 | $RANLIB $oldlib' | ||
14866 | archive_cmds_CXX='tpldir=Template.dir~ | ||
14867 | rm -rf $tpldir~ | ||
14868 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | ||
14869 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | ||
14870 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | ||
14871 | rm -rf $tpldir~ | ||
14872 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | ||
14873 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | ||
14874 | ;; | ||
14875 | *) # Version 6 will use weak symbols | ||
14876 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | ||
14877 | 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' | ||
14878 | ;; | ||
14879 | esac | ||
14880 | |||
14881 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | ||
14882 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
14883 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
14884 | ;; | ||
14885 | cxx*) | ||
14886 | # Compaq C++ | ||
14887 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
14888 | 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' | ||
14889 | |||
14890 | runpath_var=LD_RUN_PATH | ||
14891 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | ||
14892 | hardcode_libdir_separator_CXX=: | ||
14893 | |||
14894 | # Commands to make compiler produce verbose output that lists | ||
14895 | # what "hidden" libraries, object files and flags are used when | ||
14896 | # linking a shared library. | ||
14897 | # | ||
14898 | # There doesn't appear to be a way to prevent this compiler from | ||
14899 | # explicitly linking system object files so we need to strip them | ||
14900 | # from the output so that they don't get included in the library | ||
14901 | # dependencies. | ||
14902 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | ||
14903 | ;; | ||
14904 | xl*) | ||
14905 | # IBM XL 8.0 on PPC, with GNU ld | ||
14906 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
14907 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
14908 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
14909 | if test "x$supports_anon_versioning" = xyes; then | ||
14910 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | ||
14911 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
14912 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
14913 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
14914 | fi | ||
14915 | ;; | ||
14916 | *) | ||
14917 | case `$CC -V 2>&1 | sed 5q` in | ||
14918 | *Sun\ C*) | ||
14919 | # Sun C++ 5.9 | ||
14920 | no_undefined_flag_CXX=' -zdefs' | ||
14921 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
14922 | 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' | ||
14923 | hardcode_libdir_flag_spec_CXX='-R$libdir' | ||
14924 | whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | ||
14925 | compiler_needs_object_CXX=yes | ||
14926 | |||
14927 | # Not sure whether something based on | ||
14928 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | ||
14929 | # would be better. | ||
14930 | output_verbose_link_cmd='echo' | ||
14931 | |||
14932 | # Archives containing C++ object files must be created using | ||
14933 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | ||
14934 | # necessary to make sure instantiated templates are included | ||
14935 | # in the archive. | ||
14936 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | ||
14937 | ;; | ||
14938 | esac | ||
14939 | ;; | ||
14940 | esac | ||
14941 | ;; | ||
14942 | |||
14943 | lynxos*) | ||
14944 | # FIXME: insert proper C++ library support | ||
14945 | ld_shlibs_CXX=no | ||
14946 | ;; | ||
14947 | |||
14948 | m88k*) | ||
14949 | # FIXME: insert proper C++ library support | ||
14950 | ld_shlibs_CXX=no | ||
14951 | ;; | ||
14952 | |||
14953 | mvs*) | ||
14954 | case $cc_basename in | ||
14955 | cxx*) | ||
14956 | # FIXME: insert proper C++ library support | ||
14957 | ld_shlibs_CXX=no | ||
14958 | ;; | ||
14959 | *) | ||
14960 | # FIXME: insert proper C++ library support | ||
14961 | ld_shlibs_CXX=no | ||
14962 | ;; | ||
14963 | esac | ||
14964 | ;; | ||
14965 | |||
14966 | netbsd*) | ||
14967 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
14968 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | ||
14969 | wlarc= | ||
14970 | hardcode_libdir_flag_spec_CXX='-R$libdir' | ||
14971 | hardcode_direct_CXX=yes | ||
14972 | hardcode_shlibpath_var_CXX=no | ||
14973 | fi | ||
14974 | # Workaround some broken pre-1.5 toolchains | ||
14975 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | ||
14976 | ;; | ||
14977 | |||
14978 | *nto* | *qnx*) | ||
14979 | ld_shlibs_CXX=yes | ||
14980 | ;; | ||
14981 | |||
14982 | openbsd2*) | ||
14983 | # C++ shared libraries are fairly broken | ||
14984 | ld_shlibs_CXX=no | ||
14985 | ;; | ||
14986 | |||
14987 | openbsd*) | ||
14988 | if test -f /usr/libexec/ld.so; then | ||
14989 | hardcode_direct_CXX=yes | ||
14990 | hardcode_shlibpath_var_CXX=no | ||
14991 | hardcode_direct_absolute_CXX=yes | ||
14992 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | ||
14993 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
14994 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
14995 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | ||
14996 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
14997 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
14998 | fi | ||
14999 | output_verbose_link_cmd=echo | ||
15000 | else | ||
15001 | ld_shlibs_CXX=no | ||
15002 | fi | ||
15003 | ;; | ||
15004 | |||
15005 | osf3* | osf4* | osf5*) | ||
15006 | case $cc_basename in | ||
15007 | KCC*) | ||
15008 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
15009 | |||
15010 | # KCC will only create a shared library if the output file | ||
15011 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
15012 | # to its proper name (with version) after linking. | ||
15013 | 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' | ||
15014 | |||
15015 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
15016 | hardcode_libdir_separator_CXX=: | ||
15017 | |||
15018 | # Archives containing C++ object files must be created using | ||
15019 | # the KAI C++ compiler. | ||
15020 | case $host in | ||
15021 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | ||
15022 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | ||
15023 | esac | ||
15024 | ;; | ||
15025 | RCC*) | ||
15026 | # Rational C++ 2.4.1 | ||
15027 | # FIXME: insert proper C++ library support | ||
15028 | ld_shlibs_CXX=no | ||
15029 | ;; | ||
15030 | cxx*) | ||
15031 | case $host in | ||
15032 | osf3*) | ||
15033 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | ||
15034 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
15035 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
15036 | ;; | ||
15037 | *) | ||
15038 | allow_undefined_flag_CXX=' -expect_unresolved \*' | ||
15039 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | ||
15040 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | ||
15041 | echo "-hidden">> $lib.exp~ | ||
15042 | $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ | ||
15043 | $RM $lib.exp' | ||
15044 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | ||
15045 | ;; | ||
15046 | esac | ||
15047 | |||
15048 | hardcode_libdir_separator_CXX=: | ||
15049 | |||
15050 | # Commands to make compiler produce verbose output that lists | ||
15051 | # what "hidden" libraries, object files and flags are used when | ||
15052 | # linking a shared library. | ||
15053 | # | ||
15054 | # There doesn't appear to be a way to prevent this compiler from | ||
15055 | # explicitly linking system object files so we need to strip them | ||
15056 | # from the output so that they don't get included in the library | ||
15057 | # dependencies. | ||
15058 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | ||
15059 | ;; | ||
15060 | *) | ||
15061 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
15062 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | ||
15063 | case $host in | ||
15064 | osf3*) | ||
15065 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
15066 | ;; | ||
15067 | *) | ||
15068 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
15069 | ;; | ||
15070 | esac | ||
15071 | |||
15072 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
15073 | hardcode_libdir_separator_CXX=: | ||
15074 | |||
15075 | # Commands to make compiler produce verbose output that lists | ||
15076 | # what "hidden" libraries, object files and flags are used when | ||
15077 | # linking a shared library. | ||
15078 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | ||
15079 | |||
15080 | else | ||
15081 | # FIXME: insert proper C++ library support | ||
15082 | ld_shlibs_CXX=no | ||
15083 | fi | ||
15084 | ;; | ||
15085 | esac | ||
15086 | ;; | ||
15087 | |||
15088 | psos*) | ||
15089 | # FIXME: insert proper C++ library support | ||
15090 | ld_shlibs_CXX=no | ||
15091 | ;; | ||
15092 | |||
15093 | sunos4*) | ||
15094 | case $cc_basename in | ||
15095 | CC*) | ||
15096 | # Sun C++ 4.x | ||
15097 | # FIXME: insert proper C++ library support | ||
15098 | ld_shlibs_CXX=no | ||
15099 | ;; | ||
15100 | lcc*) | ||
15101 | # Lucid | ||
15102 | # FIXME: insert proper C++ library support | ||
15103 | ld_shlibs_CXX=no | ||
15104 | ;; | ||
15105 | *) | ||
15106 | # FIXME: insert proper C++ library support | ||
15107 | ld_shlibs_CXX=no | ||
15108 | ;; | ||
15109 | esac | ||
15110 | ;; | ||
15111 | |||
15112 | solaris*) | ||
15113 | case $cc_basename in | ||
15114 | CC*) | ||
15115 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
15116 | archive_cmds_need_lc_CXX=yes | ||
15117 | no_undefined_flag_CXX=' -zdefs' | ||
15118 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
15119 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
15120 | $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' | ||
15121 | |||
15122 | hardcode_libdir_flag_spec_CXX='-R$libdir' | ||
15123 | hardcode_shlibpath_var_CXX=no | ||
15124 | case $host_os in | ||
15125 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
15126 | *) | ||
15127 | # The compiler driver will combine and reorder linker options, | ||
15128 | # but understands `-z linker_flag'. | ||
15129 | # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
15130 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | ||
15131 | ;; | ||
15132 | esac | ||
15133 | link_all_deplibs_CXX=yes | ||
15134 | |||
15135 | output_verbose_link_cmd='echo' | ||
15136 | |||
15137 | # Archives containing C++ object files must be created using | ||
15138 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | ||
15139 | # necessary to make sure instantiated templates are included | ||
15140 | # in the archive. | ||
15141 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | ||
15142 | ;; | ||
15143 | gcx*) | ||
15144 | # Green Hills C++ Compiler | ||
15145 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
15146 | |||
15147 | # The C++ compiler must be used to create the archive. | ||
15148 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | ||
15149 | ;; | ||
15150 | *) | ||
15151 | # GNU C++ compiler with Solaris linker | ||
15152 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
15153 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | ||
15154 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | ||
15155 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
15156 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
15157 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | ||
15158 | |||
15159 | # Commands to make compiler produce verbose output that lists | ||
15160 | # what "hidden" libraries, object files and flags are used when | ||
15161 | # linking a shared library. | ||
15162 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | ||
15163 | else | ||
15164 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | ||
15165 | # platform. | ||
15166 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
15167 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
15168 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | ||
15169 | |||
15170 | # Commands to make compiler produce verbose output that lists | ||
15171 | # what "hidden" libraries, object files and flags are used when | ||
15172 | # linking a shared library. | ||
15173 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | ||
15174 | fi | ||
15175 | |||
15176 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | ||
15177 | case $host_os in | ||
15178 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
15179 | *) | ||
15180 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | ||
15181 | ;; | ||
15182 | esac | ||
15183 | fi | ||
15184 | ;; | ||
15185 | esac | ||
15186 | ;; | ||
15187 | |||
15188 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | ||
15189 | no_undefined_flag_CXX='${wl}-z,text' | ||
15190 | archive_cmds_need_lc_CXX=no | ||
15191 | hardcode_shlibpath_var_CXX=no | ||
15192 | runpath_var='LD_RUN_PATH' | ||
15193 | |||
15194 | case $cc_basename in | ||
15195 | CC*) | ||
15196 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15197 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15198 | ;; | ||
15199 | *) | ||
15200 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15201 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15202 | ;; | ||
15203 | esac | ||
15204 | ;; | ||
15205 | |||
15206 | sysv5* | sco3.2v5* | sco5v6*) | ||
15207 | # Note: We can NOT use -z defs as we might desire, because we do not | ||
15208 | # link with -lc, and that would cause any symbols used from libc to | ||
15209 | # always be unresolved, which means just about no library would | ||
15210 | # ever link correctly. If we're not using GNU ld we use -z text | ||
15211 | # though, which does catch some bad symbols but isn't as heavy-handed | ||
15212 | # as -z defs. | ||
15213 | no_undefined_flag_CXX='${wl}-z,text' | ||
15214 | allow_undefined_flag_CXX='${wl}-z,nodefs' | ||
15215 | archive_cmds_need_lc_CXX=no | ||
15216 | hardcode_shlibpath_var_CXX=no | ||
15217 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | ||
15218 | hardcode_libdir_separator_CXX=':' | ||
15219 | link_all_deplibs_CXX=yes | ||
15220 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | ||
15221 | runpath_var='LD_RUN_PATH' | ||
15222 | |||
15223 | case $cc_basename in | ||
15224 | CC*) | ||
15225 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15226 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15227 | ;; | ||
15228 | *) | ||
15229 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15230 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15231 | ;; | ||
15232 | esac | ||
15233 | ;; | ||
15234 | |||
15235 | tandem*) | ||
15236 | case $cc_basename in | ||
15237 | NCC*) | ||
15238 | # NonStop-UX NCC 3.20 | ||
15239 | # FIXME: insert proper C++ library support | ||
15240 | ld_shlibs_CXX=no | ||
15241 | ;; | ||
15242 | *) | ||
15243 | # FIXME: insert proper C++ library support | ||
15244 | ld_shlibs_CXX=no | ||
15245 | ;; | ||
15246 | esac | ||
15247 | ;; | ||
15248 | |||
15249 | vxworks*) | ||
15250 | # FIXME: insert proper C++ library support | ||
15251 | ld_shlibs_CXX=no | ||
15252 | ;; | ||
15253 | |||
15254 | *) | ||
15255 | # FIXME: insert proper C++ library support | ||
15256 | ld_shlibs_CXX=no | ||
15257 | ;; | ||
15258 | esac | ||
15259 | |||
15260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | ||
15261 | $as_echo "$ld_shlibs_CXX" >&6; } | ||
15262 | test "$ld_shlibs_CXX" = no && can_build_shared=no | ||
15263 | |||
15264 | GCC_CXX="$GXX" | ||
15265 | LD_CXX="$LD" | ||
15266 | |||
15267 | ## CAVEAT EMPTOR: | ||
15268 | ## There is no encapsulation within the following macros, do not change | ||
15269 | ## the running order or otherwise move them around unless you know exactly | ||
15270 | ## what you are doing... | ||
15271 | # Dependencies to place before and after the object being linked: | ||
15272 | predep_objects_CXX= | ||
15273 | postdep_objects_CXX= | ||
15274 | predeps_CXX= | ||
15275 | postdeps_CXX= | ||
15276 | compiler_lib_search_path_CXX= | ||
15277 | |||
15278 | cat > conftest.$ac_ext <<_LT_EOF | ||
15279 | class Foo | ||
15280 | { | ||
15281 | public: | ||
15282 | Foo (void) { a = 0; } | ||
15283 | private: | ||
15284 | int a; | ||
15285 | }; | ||
15286 | _LT_EOF | ||
15287 | |||
15288 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
15289 | (eval $ac_compile) 2>&5 | ||
15290 | ac_status=$? | ||
15291 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
15292 | test $ac_status = 0; }; then | ||
15293 | # Parse the compiler output and extract the necessary | ||
15294 | # objects, libraries and library flags. | ||
15295 | |||
15296 | # Sentinel used to keep track of whether or not we are before | ||
15297 | # the conftest object file. | ||
15298 | pre_test_object_deps_done=no | ||
15299 | |||
15300 | for p in `eval "$output_verbose_link_cmd"`; do | ||
15301 | case $p in | ||
15302 | |||
15303 | -L* | -R* | -l*) | ||
15304 | # Some compilers place space between "-{L,R}" and the path. | ||
15305 | # Remove the space. | ||
15306 | if test $p = "-L" || | ||
15307 | test $p = "-R"; then | ||
15308 | prev=$p | ||
15309 | continue | ||
15310 | else | ||
15311 | prev= | ||
15312 | fi | ||
15313 | |||
15314 | if test "$pre_test_object_deps_done" = no; then | ||
15315 | case $p in | ||
15316 | -L* | -R*) | ||
15317 | # Internal compiler library paths should come after those | ||
15318 | # provided the user. The postdeps already come after the | ||
15319 | # user supplied libs so there is no need to process them. | ||
15320 | if test -z "$compiler_lib_search_path_CXX"; then | ||
15321 | compiler_lib_search_path_CXX="${prev}${p}" | ||
15322 | else | ||
15323 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | ||
15324 | fi | ||
15325 | ;; | ||
15326 | # The "-l" case would never come before the object being | ||
15327 | # linked, so don't bother handling this case. | ||
15328 | esac | ||
15329 | else | ||
15330 | if test -z "$postdeps_CXX"; then | ||
15331 | postdeps_CXX="${prev}${p}" | ||
15332 | else | ||
15333 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | ||
15334 | fi | ||
15335 | fi | ||
15336 | ;; | ||
15337 | |||
15338 | *.$objext) | ||
15339 | # This assumes that the test object file only shows up | ||
15340 | # once in the compiler output. | ||
15341 | if test "$p" = "conftest.$objext"; then | ||
15342 | pre_test_object_deps_done=yes | ||
15343 | continue | ||
15344 | fi | ||
15345 | |||
15346 | if test "$pre_test_object_deps_done" = no; then | ||
15347 | if test -z "$predep_objects_CXX"; then | ||
15348 | predep_objects_CXX="$p" | ||
15349 | else | ||
15350 | predep_objects_CXX="$predep_objects_CXX $p" | ||
15351 | fi | ||
15352 | else | ||
15353 | if test -z "$postdep_objects_CXX"; then | ||
15354 | postdep_objects_CXX="$p" | ||
15355 | else | ||
15356 | postdep_objects_CXX="$postdep_objects_CXX $p" | ||
15357 | fi | ||
15358 | fi | ||
15359 | ;; | ||
15360 | |||
15361 | *) ;; # Ignore the rest. | ||
15362 | |||
15363 | esac | ||
15364 | done | ||
15365 | |||
15366 | # Clean up. | ||
15367 | rm -f a.out a.exe | ||
15368 | else | ||
15369 | echo "libtool.m4: error: problem compiling CXX test program" | ||
15370 | fi | ||
15371 | |||
15372 | $RM -f confest.$objext | ||
15373 | |||
15374 | # PORTME: override above test on systems where it is broken | ||
15375 | case $host_os in | ||
15376 | interix[3-9]*) | ||
15377 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | ||
15378 | # hack all around it, let's just trust "g++" to DTRT. | ||
15379 | predep_objects_CXX= | ||
15380 | postdep_objects_CXX= | ||
15381 | postdeps_CXX= | ||
15382 | ;; | ||
15383 | |||
15384 | linux*) | ||
15385 | case `$CC -V 2>&1 | sed 5q` in | ||
15386 | *Sun\ C*) | ||
15387 | # Sun C++ 5.9 | ||
15388 | |||
15389 | # The more standards-conforming stlport4 library is | ||
15390 | # incompatible with the Cstd library. Avoid specifying | ||
15391 | # it if it's in CXXFLAGS. Ignore libCrun as | ||
15392 | # -library=stlport4 depends on it. | ||
15393 | case " $CXX $CXXFLAGS " in | ||
15394 | *" -library=stlport4 "*) | ||
15395 | solaris_use_stlport4=yes | ||
15396 | ;; | ||
15397 | esac | ||
15398 | |||
15399 | if test "$solaris_use_stlport4" != yes; then | ||
15400 | postdeps_CXX='-library=Cstd -library=Crun' | ||
15401 | fi | ||
15402 | ;; | ||
15403 | esac | ||
15404 | ;; | ||
15405 | |||
15406 | solaris*) | ||
15407 | case $cc_basename in | ||
15408 | CC*) | ||
15409 | # The more standards-conforming stlport4 library is | ||
15410 | # incompatible with the Cstd library. Avoid specifying | ||
15411 | # it if it's in CXXFLAGS. Ignore libCrun as | ||
15412 | # -library=stlport4 depends on it. | ||
15413 | case " $CXX $CXXFLAGS " in | ||
15414 | *" -library=stlport4 "*) | ||
15415 | solaris_use_stlport4=yes | ||
15416 | ;; | ||
15417 | esac | ||
15418 | |||
15419 | # Adding this requires a known-good setup of shared libraries for | ||
15420 | # Sun compiler versions before 5.6, else PIC objects from an old | ||
15421 | # archive will be linked into the output, leading to subtle bugs. | ||
15422 | if test "$solaris_use_stlport4" != yes; then | ||
15423 | postdeps_CXX='-library=Cstd -library=Crun' | ||
15424 | fi | ||
15425 | ;; | ||
15426 | esac | ||
15427 | ;; | ||
15428 | esac | ||
15429 | |||
15430 | |||
15431 | case " $postdeps_CXX " in | ||
15432 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | ||
15433 | esac | ||
15434 | compiler_lib_search_dirs_CXX= | ||
15435 | if test -n "${compiler_lib_search_path_CXX}"; then | ||
15436 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | ||
15437 | fi | ||
15438 | |||
15439 | |||
15440 | |||
15441 | |||
15442 | |||
15443 | |||
15444 | |||
15445 | |||
15446 | |||
15447 | |||
15448 | |||
15449 | |||
15450 | |||
15451 | |||
15452 | |||
15453 | |||
15454 | |||
15455 | |||
15456 | |||
15457 | |||
15458 | |||
15459 | |||
15460 | |||
15461 | |||
15462 | |||
15463 | |||
15464 | |||
15465 | |||
15466 | |||
15467 | |||
15468 | |||
15469 | lt_prog_compiler_wl_CXX= | ||
15470 | lt_prog_compiler_pic_CXX= | ||
15471 | lt_prog_compiler_static_CXX= | ||
15472 | |||
15473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
15474 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
15475 | |||
15476 | # C++ specific cases for pic, static, wl, etc. | ||
15477 | if test "$GXX" = yes; then | ||
15478 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15479 | lt_prog_compiler_static_CXX='-static' | ||
15480 | |||
15481 | case $host_os in | ||
15482 | aix*) | ||
15483 | # All AIX code is PIC. | ||
15484 | if test "$host_cpu" = ia64; then | ||
15485 | # AIX 5 now supports IA64 processor | ||
15486 | lt_prog_compiler_static_CXX='-Bstatic' | ||
15487 | fi | ||
15488 | ;; | ||
15489 | |||
15490 | amigaos*) | ||
15491 | case $host_cpu in | ||
15492 | powerpc) | ||
15493 | # see comment about AmigaOS4 .so support | ||
15494 | lt_prog_compiler_pic_CXX='-fPIC' | ||
15495 | ;; | ||
15496 | m68k) | ||
15497 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
15498 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
15499 | # like `-m68040'. | ||
15500 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | ||
15501 | ;; | ||
15502 | esac | ||
15503 | ;; | ||
15504 | |||
15505 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
15506 | # PIC is the default for these OSes. | ||
15507 | ;; | ||
15508 | mingw* | cygwin* | os2* | pw32*) | ||
15509 | # This hack is so that the source file can tell whether it is being | ||
15510 | # built for inclusion in a dll (and should export symbols for example). | ||
15511 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | ||
15512 | # (--disable-auto-import) libraries | ||
15513 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | ||
15514 | ;; | ||
15515 | darwin* | rhapsody*) | ||
15516 | # PIC is the default on this platform | ||
15517 | # Common symbols not allowed in MH_DYLIB files | ||
15518 | lt_prog_compiler_pic_CXX='-fno-common' | ||
15519 | ;; | ||
15520 | *djgpp*) | ||
15521 | # DJGPP does not support shared libraries at all | ||
15522 | lt_prog_compiler_pic_CXX= | ||
15523 | ;; | ||
15524 | interix[3-9]*) | ||
15525 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
15526 | # Instead, we relocate shared libraries at runtime. | ||
15527 | ;; | ||
15528 | sysv4*MP*) | ||
15529 | if test -d /usr/nec; then | ||
15530 | lt_prog_compiler_pic_CXX=-Kconform_pic | ||
15531 | fi | ||
15532 | ;; | ||
15533 | hpux*) | ||
15534 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
15535 | # not for PA HP-UX. | ||
15536 | case $host_cpu in | ||
15537 | hppa*64*|ia64*) | ||
15538 | ;; | ||
15539 | *) | ||
15540 | lt_prog_compiler_pic_CXX='-fPIC' | ||
15541 | ;; | ||
15542 | esac | ||
15543 | ;; | ||
15544 | *qnx* | *nto*) | ||
15545 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
15546 | # it will coredump. | ||
15547 | lt_prog_compiler_pic_CXX='-fPIC -shared' | ||
15548 | ;; | ||
15549 | *) | ||
15550 | lt_prog_compiler_pic_CXX='-fPIC' | ||
15551 | ;; | ||
15552 | esac | ||
15553 | else | ||
15554 | case $host_os in | ||
15555 | aix[4-9]*) | ||
15556 | # All AIX code is PIC. | ||
15557 | if test "$host_cpu" = ia64; then | ||
15558 | # AIX 5 now supports IA64 processor | ||
15559 | lt_prog_compiler_static_CXX='-Bstatic' | ||
15560 | else | ||
15561 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | ||
15562 | fi | ||
15563 | ;; | ||
15564 | chorus*) | ||
15565 | case $cc_basename in | ||
15566 | cxch68*) | ||
15567 | # Green Hills C++ Compiler | ||
15568 | # _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" | ||
15569 | ;; | ||
15570 | esac | ||
15571 | ;; | ||
15572 | dgux*) | ||
15573 | case $cc_basename in | ||
15574 | ec++*) | ||
15575 | lt_prog_compiler_pic_CXX='-KPIC' | ||
15576 | ;; | ||
15577 | ghcx*) | ||
15578 | # Green Hills C++ Compiler | ||
15579 | lt_prog_compiler_pic_CXX='-pic' | ||
15580 | ;; | ||
15581 | *) | ||
15582 | ;; | ||
15583 | esac | ||
15584 | ;; | ||
15585 | freebsd* | dragonfly*) | ||
15586 | # FreeBSD uses GNU C++ | ||
15587 | ;; | ||
15588 | hpux9* | hpux10* | hpux11*) | ||
15589 | case $cc_basename in | ||
15590 | CC*) | ||
15591 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15592 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | ||
15593 | if test "$host_cpu" != ia64; then | ||
15594 | lt_prog_compiler_pic_CXX='+Z' | ||
15595 | fi | ||
15596 | ;; | ||
15597 | aCC*) | ||
15598 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15599 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | ||
15600 | case $host_cpu in | ||
15601 | hppa*64*|ia64*) | ||
15602 | # +Z the default | ||
15603 | ;; | ||
15604 | *) | ||
15605 | lt_prog_compiler_pic_CXX='+Z' | ||
15606 | ;; | ||
15607 | esac | ||
15608 | ;; | ||
15609 | *) | ||
15610 | ;; | ||
15611 | esac | ||
15612 | ;; | ||
15613 | interix*) | ||
15614 | # This is c89, which is MS Visual C++ (no shared libs) | ||
15615 | # Anyone wants to do a port? | ||
15616 | ;; | ||
15617 | irix5* | irix6* | nonstopux*) | ||
15618 | case $cc_basename in | ||
15619 | CC*) | ||
15620 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15621 | lt_prog_compiler_static_CXX='-non_shared' | ||
15622 | # CC pic flag -KPIC is the default. | ||
15623 | ;; | ||
15624 | *) | ||
15625 | ;; | ||
15626 | esac | ||
15627 | ;; | ||
15628 | linux* | k*bsd*-gnu) | ||
15629 | case $cc_basename in | ||
15630 | KCC*) | ||
15631 | # KAI C++ Compiler | ||
15632 | lt_prog_compiler_wl_CXX='--backend -Wl,' | ||
15633 | lt_prog_compiler_pic_CXX='-fPIC' | ||
15634 | ;; | ||
15635 | icpc* | ecpc* ) | ||
15636 | # Intel C++ | ||
15637 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15638 | lt_prog_compiler_pic_CXX='-KPIC' | ||
15639 | lt_prog_compiler_static_CXX='-static' | ||
15640 | ;; | ||
15641 | pgCC* | pgcpp*) | ||
15642 | # Portland Group C++ compiler | ||
15643 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15644 | lt_prog_compiler_pic_CXX='-fpic' | ||
15645 | lt_prog_compiler_static_CXX='-Bstatic' | ||
15646 | ;; | ||
15647 | cxx*) | ||
15648 | # Compaq C++ | ||
15649 | # Make sure the PIC flag is empty. It appears that all Alpha | ||
15650 | # Linux and Compaq Tru64 Unix objects are PIC. | ||
15651 | lt_prog_compiler_pic_CXX= | ||
15652 | lt_prog_compiler_static_CXX='-non_shared' | ||
15653 | ;; | ||
15654 | xlc* | xlC*) | ||
15655 | # IBM XL 8.0 on PPC | ||
15656 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15657 | lt_prog_compiler_pic_CXX='-qpic' | ||
15658 | lt_prog_compiler_static_CXX='-qstaticlink' | ||
15659 | ;; | ||
15660 | *) | ||
15661 | case `$CC -V 2>&1 | sed 5q` in | ||
15662 | *Sun\ C*) | ||
15663 | # Sun C++ 5.9 | ||
15664 | lt_prog_compiler_pic_CXX='-KPIC' | ||
15665 | lt_prog_compiler_static_CXX='-Bstatic' | ||
15666 | lt_prog_compiler_wl_CXX='-Qoption ld ' | ||
15667 | ;; | ||
15668 | esac | ||
15669 | ;; | ||
15670 | esac | ||
15671 | ;; | ||
15672 | lynxos*) | ||
15673 | ;; | ||
15674 | m88k*) | ||
15675 | ;; | ||
15676 | mvs*) | ||
15677 | case $cc_basename in | ||
15678 | cxx*) | ||
15679 | lt_prog_compiler_pic_CXX='-W c,exportall' | ||
15680 | ;; | ||
15681 | *) | ||
15682 | ;; | ||
15683 | esac | ||
15684 | ;; | ||
15685 | netbsd* | netbsdelf*-gnu) | ||
15686 | ;; | ||
15687 | *qnx* | *nto*) | ||
15688 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
15689 | # it will coredump. | ||
15690 | lt_prog_compiler_pic_CXX='-fPIC -shared' | ||
15691 | ;; | ||
15692 | osf3* | osf4* | osf5*) | ||
15693 | case $cc_basename in | ||
15694 | KCC*) | ||
15695 | lt_prog_compiler_wl_CXX='--backend -Wl,' | ||
15696 | ;; | ||
15697 | RCC*) | ||
15698 | # Rational C++ 2.4.1 | ||
15699 | lt_prog_compiler_pic_CXX='-pic' | ||
15700 | ;; | ||
15701 | cxx*) | ||
15702 | # Digital/Compaq C++ | ||
15703 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15704 | # Make sure the PIC flag is empty. It appears that all Alpha | ||
15705 | # Linux and Compaq Tru64 Unix objects are PIC. | ||
15706 | lt_prog_compiler_pic_CXX= | ||
15707 | lt_prog_compiler_static_CXX='-non_shared' | ||
15708 | ;; | ||
15709 | *) | ||
15710 | ;; | ||
15711 | esac | ||
15712 | ;; | ||
15713 | psos*) | ||
15714 | ;; | ||
15715 | solaris*) | ||
15716 | case $cc_basename in | ||
15717 | CC*) | ||
15718 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
15719 | lt_prog_compiler_pic_CXX='-KPIC' | ||
15720 | lt_prog_compiler_static_CXX='-Bstatic' | ||
15721 | lt_prog_compiler_wl_CXX='-Qoption ld ' | ||
15722 | ;; | ||
15723 | gcx*) | ||
15724 | # Green Hills C++ Compiler | ||
15725 | lt_prog_compiler_pic_CXX='-PIC' | ||
15726 | ;; | ||
15727 | *) | ||
15728 | ;; | ||
15729 | esac | ||
15730 | ;; | ||
15731 | sunos4*) | ||
15732 | case $cc_basename in | ||
15733 | CC*) | ||
15734 | # Sun C++ 4.x | ||
15735 | lt_prog_compiler_pic_CXX='-pic' | ||
15736 | lt_prog_compiler_static_CXX='-Bstatic' | ||
15737 | ;; | ||
15738 | lcc*) | ||
15739 | # Lucid | ||
15740 | lt_prog_compiler_pic_CXX='-pic' | ||
15741 | ;; | ||
15742 | *) | ||
15743 | ;; | ||
15744 | esac | ||
15745 | ;; | ||
15746 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
15747 | case $cc_basename in | ||
15748 | CC*) | ||
15749 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15750 | lt_prog_compiler_pic_CXX='-KPIC' | ||
15751 | lt_prog_compiler_static_CXX='-Bstatic' | ||
15752 | ;; | ||
15753 | esac | ||
15754 | ;; | ||
15755 | tandem*) | ||
15756 | case $cc_basename in | ||
15757 | NCC*) | ||
15758 | # NonStop-UX NCC 3.20 | ||
15759 | lt_prog_compiler_pic_CXX='-KPIC' | ||
15760 | ;; | ||
15761 | *) | ||
15762 | ;; | ||
15763 | esac | ||
15764 | ;; | ||
15765 | vxworks*) | ||
15766 | ;; | ||
15767 | *) | ||
15768 | lt_prog_compiler_can_build_shared_CXX=no | ||
15769 | ;; | ||
15770 | esac | ||
15771 | fi | ||
15772 | |||
15773 | case $host_os in | ||
15774 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
15775 | *djgpp*) | ||
15776 | lt_prog_compiler_pic_CXX= | ||
15777 | ;; | ||
15778 | *) | ||
15779 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | ||
15780 | ;; | ||
15781 | esac | ||
15782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 | ||
15783 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } | ||
15784 | |||
15785 | |||
15786 | |||
15787 | # | ||
15788 | # Check to make sure the PIC flag actually works. | ||
15789 | # | ||
15790 | if test -n "$lt_prog_compiler_pic_CXX"; then | ||
15791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | ||
15792 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | ||
15793 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : | ||
15794 | $as_echo_n "(cached) " >&6 | ||
15795 | else | ||
15796 | lt_cv_prog_compiler_pic_works_CXX=no | ||
15797 | ac_outfile=conftest.$ac_objext | ||
15798 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
15799 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | ||
15800 | # Insert the option either (1) after the last *FLAGS variable, or | ||
15801 | # (2) before a word containing "conftest.", or (3) at the end. | ||
15802 | # Note that $ac_compile itself does not contain backslashes and begins | ||
15803 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
15804 | # The option is referenced via a variable to avoid confusing sed. | ||
15805 | lt_compile=`echo "$ac_compile" | $SED \ | ||
15806 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
15807 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
15808 | -e 's:$: $lt_compiler_flag:'` | ||
15809 | (eval echo "\"\$as_me:15809: $lt_compile\"" >&5) | ||
15810 | (eval "$lt_compile" 2>conftest.err) | ||
15811 | ac_status=$? | ||
15812 | cat conftest.err >&5 | ||
15813 | echo "$as_me:15813: \$? = $ac_status" >&5 | ||
15814 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
15815 | # The compiler can only warn and ignore the option if not recognized | ||
15816 | # So say no if there are warnings other than the usual output. | ||
15817 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
15818 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
15819 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
15820 | lt_cv_prog_compiler_pic_works_CXX=yes | ||
15821 | fi | ||
15822 | fi | ||
15823 | $RM conftest* | ||
15824 | |||
15825 | fi | ||
15826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | ||
15827 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | ||
15828 | |||
15829 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | ||
15830 | case $lt_prog_compiler_pic_CXX in | ||
15831 | "" | " "*) ;; | ||
15832 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | ||
15833 | esac | ||
15834 | else | ||
15835 | lt_prog_compiler_pic_CXX= | ||
15836 | lt_prog_compiler_can_build_shared_CXX=no | ||
15837 | fi | ||
15838 | |||
15839 | fi | ||
15840 | |||
15841 | |||
15842 | |||
15843 | # | ||
15844 | # Check to make sure the static flag actually works. | ||
15845 | # | ||
15846 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | ||
15847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | ||
15848 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | ||
15849 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : | ||
15850 | $as_echo_n "(cached) " >&6 | ||
15851 | else | ||
15852 | lt_cv_prog_compiler_static_works_CXX=no | ||
15853 | save_LDFLAGS="$LDFLAGS" | ||
15854 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | ||
15855 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | ||
15856 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
15857 | # The linker can only warn and ignore the option if not recognized | ||
15858 | # So say no if there are warnings | ||
15859 | if test -s conftest.err; then | ||
15860 | # Append any errors to the config.log. | ||
15861 | cat conftest.err 1>&5 | ||
15862 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
15863 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
15864 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
15865 | lt_cv_prog_compiler_static_works_CXX=yes | ||
15866 | fi | ||
15867 | else | ||
15868 | lt_cv_prog_compiler_static_works_CXX=yes | ||
15869 | fi | ||
15870 | fi | ||
15871 | $RM -r conftest* | ||
15872 | LDFLAGS="$save_LDFLAGS" | ||
15873 | |||
15874 | fi | ||
15875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | ||
15876 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | ||
15877 | |||
15878 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | ||
15879 | : | ||
15880 | else | ||
15881 | lt_prog_compiler_static_CXX= | ||
15882 | fi | ||
15883 | |||
15884 | |||
15885 | |||
15886 | |||
15887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
15888 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
15889 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | ||
15890 | $as_echo_n "(cached) " >&6 | ||
15891 | else | ||
15892 | lt_cv_prog_compiler_c_o_CXX=no | ||
15893 | $RM -r conftest 2>/dev/null | ||
15894 | mkdir conftest | ||
15895 | cd conftest | ||
15896 | mkdir out | ||
15897 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
15898 | |||
15899 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
15900 | # Insert the option either (1) after the last *FLAGS variable, or | ||
15901 | # (2) before a word containing "conftest.", or (3) at the end. | ||
15902 | # Note that $ac_compile itself does not contain backslashes and begins | ||
15903 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
15904 | lt_compile=`echo "$ac_compile" | $SED \ | ||
15905 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
15906 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
15907 | -e 's:$: $lt_compiler_flag:'` | ||
15908 | (eval echo "\"\$as_me:15908: $lt_compile\"" >&5) | ||
15909 | (eval "$lt_compile" 2>out/conftest.err) | ||
15910 | ac_status=$? | ||
15911 | cat out/conftest.err >&5 | ||
15912 | echo "$as_me:15912: \$? = $ac_status" >&5 | ||
15913 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
15914 | then | ||
15915 | # The compiler can only warn and ignore the option if not recognized | ||
15916 | # So say no if there are warnings | ||
15917 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
15918 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
15919 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
15920 | lt_cv_prog_compiler_c_o_CXX=yes | ||
15921 | fi | ||
15922 | fi | ||
15923 | chmod u+w . 2>&5 | ||
15924 | $RM conftest* | ||
15925 | # SGI C++ compiler will create directory out/ii_files/ for | ||
15926 | # template instantiation | ||
15927 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
15928 | $RM out/* && rmdir out | ||
15929 | cd .. | ||
15930 | $RM -r conftest | ||
15931 | $RM conftest* | ||
15932 | |||
15933 | fi | ||
15934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | ||
15935 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | ||
15936 | |||
15937 | |||
15938 | |||
15939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
15940 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
15941 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | ||
15942 | $as_echo_n "(cached) " >&6 | ||
15943 | else | ||
15944 | lt_cv_prog_compiler_c_o_CXX=no | ||
15945 | $RM -r conftest 2>/dev/null | ||
15946 | mkdir conftest | ||
15947 | cd conftest | ||
15948 | mkdir out | ||
15949 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
15950 | |||
15951 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
15952 | # Insert the option either (1) after the last *FLAGS variable, or | ||
15953 | # (2) before a word containing "conftest.", or (3) at the end. | ||
15954 | # Note that $ac_compile itself does not contain backslashes and begins | ||
15955 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
15956 | lt_compile=`echo "$ac_compile" | $SED \ | ||
15957 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
15958 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
15959 | -e 's:$: $lt_compiler_flag:'` | ||
15960 | (eval echo "\"\$as_me:15960: $lt_compile\"" >&5) | ||
15961 | (eval "$lt_compile" 2>out/conftest.err) | ||
15962 | ac_status=$? | ||
15963 | cat out/conftest.err >&5 | ||
15964 | echo "$as_me:15964: \$? = $ac_status" >&5 | ||
15965 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
15966 | then | ||
15967 | # The compiler can only warn and ignore the option if not recognized | ||
15968 | # So say no if there are warnings | ||
15969 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
15970 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
15971 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
15972 | lt_cv_prog_compiler_c_o_CXX=yes | ||
15973 | fi | ||
15974 | fi | ||
15975 | chmod u+w . 2>&5 | ||
15976 | $RM conftest* | ||
15977 | # SGI C++ compiler will create directory out/ii_files/ for | ||
15978 | # template instantiation | ||
15979 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
15980 | $RM out/* && rmdir out | ||
15981 | cd .. | ||
15982 | $RM -r conftest | ||
15983 | $RM conftest* | ||
15984 | |||
15985 | fi | ||
15986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | ||
15987 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | ||
15988 | |||
15989 | |||
15990 | |||
15991 | |||
15992 | hard_links="nottested" | ||
15993 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | ||
15994 | # do not overwrite the value of need_locks provided by the user | ||
15995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | ||
15996 | $as_echo_n "checking if we can lock with hard links... " >&6; } | ||
15997 | hard_links=yes | ||
15998 | $RM conftest* | ||
15999 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
16000 | touch conftest.a | ||
16001 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
16002 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
16003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | ||
16004 | $as_echo "$hard_links" >&6; } | ||
16005 | if test "$hard_links" = no; then | ||
16006 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | ||
16007 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | ||
16008 | need_locks=warn | ||
16009 | fi | ||
16010 | else | ||
16011 | need_locks=no | ||
16012 | fi | ||
16013 | |||
16014 | |||
16015 | |||
16016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
16017 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | ||
16018 | |||
16019 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
16020 | case $host_os in | ||
16021 | aix[4-9]*) | ||
16022 | # If we're using GNU nm, then we don't want the "-C" option. | ||
16023 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
16024 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | ||
16025 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | ||
16026 | else | ||
16027 | 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' | ||
16028 | fi | ||
16029 | ;; | ||
16030 | pw32*) | ||
16031 | export_symbols_cmds_CXX="$ltdll_cmds" | ||
16032 | ;; | ||
16033 | cygwin* | mingw*) | ||
16034 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | ||
16035 | ;; | ||
16036 | linux* | k*bsd*-gnu) | ||
16037 | link_all_deplibs_CXX=no | ||
16038 | ;; | ||
16039 | *) | ||
16040 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
16041 | ;; | ||
16042 | esac | ||
16043 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | ||
16044 | |||
16045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | ||
16046 | $as_echo "$ld_shlibs_CXX" >&6; } | ||
16047 | test "$ld_shlibs_CXX" = no && can_build_shared=no | ||
16048 | |||
16049 | with_gnu_ld_CXX=$with_gnu_ld | ||
16050 | |||
16051 | |||
16052 | |||
16053 | |||
16054 | |||
16055 | |||
16056 | # | ||
16057 | # Do we need to explicitly link libc? | ||
16058 | # | ||
16059 | case "x$archive_cmds_need_lc_CXX" in | ||
16060 | x|xyes) | ||
16061 | # Assume -lc should be added | ||
16062 | archive_cmds_need_lc_CXX=yes | ||
16063 | |||
16064 | if test "$enable_shared" = yes && test "$GCC" = yes; then | ||
16065 | case $archive_cmds_CXX in | ||
16066 | *'~'*) | ||
16067 | # FIXME: we may have to deal with multi-command sequences. | ||
16068 | ;; | ||
16069 | '$CC '*) | ||
16070 | # Test whether the compiler implicitly links with -lc since on some | ||
16071 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | ||
16072 | # to ld, don't add -lc before -lgcc. | ||
16073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | ||
16074 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | ||
16075 | $RM conftest* | ||
16076 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
16077 | |||
16078 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
16079 | (eval $ac_compile) 2>&5 | ||
16080 | ac_status=$? | ||
16081 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
16082 | test $ac_status = 0; } 2>conftest.err; then | ||
16083 | soname=conftest | ||
16084 | lib=conftest | ||
16085 | libobjs=conftest.$ac_objext | ||
16086 | deplibs= | ||
16087 | wl=$lt_prog_compiler_wl_CXX | ||
16088 | pic_flag=$lt_prog_compiler_pic_CXX | ||
16089 | compiler_flags=-v | ||
16090 | linker_flags=-v | ||
16091 | verstring= | ||
16092 | output_objdir=. | ||
16093 | libname=conftest | ||
16094 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | ||
16095 | allow_undefined_flag_CXX= | ||
16096 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | ||
16097 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | ||
16098 | ac_status=$? | ||
16099 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
16100 | test $ac_status = 0; } | ||
16101 | then | ||
16102 | archive_cmds_need_lc_CXX=no | ||
16103 | else | ||
16104 | archive_cmds_need_lc_CXX=yes | ||
16105 | fi | ||
16106 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | ||
16107 | else | ||
16108 | cat conftest.err 1>&5 | ||
16109 | fi | ||
16110 | $RM conftest* | ||
16111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 | ||
16112 | $as_echo "$archive_cmds_need_lc_CXX" >&6; } | ||
16113 | ;; | ||
16114 | esac | ||
16115 | fi | ||
16116 | ;; | ||
16117 | esac | ||
16118 | |||
16119 | |||
16120 | |||
16121 | |||
16122 | |||
16123 | |||
16124 | |||
16125 | |||
16126 | |||
16127 | |||
16128 | |||
16129 | |||
16130 | |||
16131 | |||
16132 | |||
16133 | |||
16134 | |||
16135 | |||
16136 | |||
16137 | |||
16138 | |||
16139 | |||
16140 | |||
16141 | |||
16142 | |||
16143 | |||
16144 | |||
16145 | |||
16146 | |||
16147 | |||
16148 | |||
16149 | |||
16150 | |||
16151 | |||
16152 | |||
16153 | |||
16154 | |||
16155 | |||
16156 | |||
16157 | |||
16158 | |||
16159 | |||
16160 | |||
16161 | |||
16162 | |||
16163 | |||
16164 | |||
16165 | |||
16166 | |||
16167 | |||
16168 | |||
16169 | |||
16170 | |||
16171 | |||
16172 | |||
16173 | |||
16174 | |||
16175 | |||
16176 | |||
16177 | |||
16178 | |||
16179 | |||
16180 | |||
16181 | |||
16182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | ||
16183 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | ||
16184 | |||
16185 | library_names_spec= | ||
16186 | libname_spec='lib$name' | ||
16187 | soname_spec= | ||
16188 | shrext_cmds=".so" | ||
16189 | postinstall_cmds= | ||
16190 | postuninstall_cmds= | ||
16191 | finish_cmds= | ||
16192 | finish_eval= | ||
16193 | shlibpath_var= | ||
16194 | shlibpath_overrides_runpath=unknown | ||
16195 | version_type=none | ||
16196 | dynamic_linker="$host_os ld.so" | ||
16197 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
16198 | need_lib_prefix=unknown | ||
16199 | hardcode_into_libs=no | ||
16200 | |||
16201 | # when you set need_version to no, make sure it does not cause -set_version | ||
16202 | # flags to be left without arguments | ||
16203 | need_version=unknown | ||
16204 | |||
16205 | case $host_os in | ||
16206 | aix3*) | ||
16207 | version_type=linux | ||
16208 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
16209 | shlibpath_var=LIBPATH | ||
16210 | |||
16211 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
16212 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16213 | ;; | ||
16214 | |||
16215 | aix[4-9]*) | ||
16216 | version_type=linux | ||
16217 | need_lib_prefix=no | ||
16218 | need_version=no | ||
16219 | hardcode_into_libs=yes | ||
16220 | if test "$host_cpu" = ia64; then | ||
16221 | # AIX 5 supports IA64 | ||
16222 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
16223 | shlibpath_var=LD_LIBRARY_PATH | ||
16224 | else | ||
16225 | # With GCC up to 2.95.x, collect2 would create an import file | ||
16226 | # for dependence libraries. The import file would start with | ||
16227 | # the line `#! .'. This would cause the generated library to | ||
16228 | # depend on `.', always an invalid library. This was fixed in | ||
16229 | # development snapshots of GCC prior to 3.0. | ||
16230 | case $host_os in | ||
16231 | aix4 | aix4.[01] | aix4.[01].*) | ||
16232 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
16233 | echo ' yes ' | ||
16234 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | ||
16235 | : | ||
16236 | else | ||
16237 | can_build_shared=no | ||
16238 | fi | ||
16239 | ;; | ||
16240 | esac | ||
16241 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
16242 | # soname into executable. Probably we can add versioning support to | ||
16243 | # collect2, so additional links can be useful in future. | ||
16244 | if test "$aix_use_runtimelinking" = yes; then | ||
16245 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
16246 | # instead of lib<name>.a to let people know that these are not | ||
16247 | # typical AIX shared libraries. | ||
16248 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16249 | else | ||
16250 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
16251 | # and later when we are not doing run time linking. | ||
16252 | library_names_spec='${libname}${release}.a $libname.a' | ||
16253 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16254 | fi | ||
16255 | shlibpath_var=LIBPATH | ||
16256 | fi | ||
16257 | ;; | ||
16258 | |||
16259 | amigaos*) | ||
16260 | case $host_cpu in | ||
16261 | powerpc) | ||
16262 | # Since July 2007 AmigaOS4 officially supports .so libraries. | ||
16263 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | ||
16264 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16265 | ;; | ||
16266 | m68k) | ||
16267 | library_names_spec='$libname.ixlibrary $libname.a' | ||
16268 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
16269 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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' | ||
16270 | ;; | ||
16271 | esac | ||
16272 | ;; | ||
16273 | |||
16274 | beos*) | ||
16275 | library_names_spec='${libname}${shared_ext}' | ||
16276 | dynamic_linker="$host_os ld.so" | ||
16277 | shlibpath_var=LIBRARY_PATH | ||
16278 | ;; | ||
16279 | |||
16280 | bsdi[45]*) | ||
16281 | version_type=linux | ||
16282 | need_version=no | ||
16283 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16284 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16285 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
16286 | shlibpath_var=LD_LIBRARY_PATH | ||
16287 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
16288 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
16289 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
16290 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
16291 | # libtool to hard-code these into programs | ||
16292 | ;; | ||
16293 | |||
16294 | cygwin* | mingw* | pw32*) | ||
16295 | version_type=windows | ||
16296 | shrext_cmds=".dll" | ||
16297 | need_version=no | ||
16298 | need_lib_prefix=no | ||
16299 | |||
16300 | case $GCC,$host_os in | ||
16301 | yes,cygwin* | yes,mingw* | yes,pw32*) | ||
16302 | library_names_spec='$libname.dll.a' | ||
16303 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
16304 | postinstall_cmds='base_file=`basename \${file}`~ | ||
16305 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
16306 | dldir=$destdir/`dirname \$dlpath`~ | ||
16307 | test -d \$dldir || mkdir -p \$dldir~ | ||
16308 | $install_prog $dir/$dlname \$dldir/$dlname~ | ||
16309 | chmod a+x \$dldir/$dlname~ | ||
16310 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | ||
16311 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | ||
16312 | fi' | ||
16313 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
16314 | dlpath=$dir/\$dldll~ | ||
16315 | $RM \$dlpath' | ||
16316 | shlibpath_overrides_runpath=yes | ||
16317 | |||
16318 | case $host_os in | ||
16319 | cygwin*) | ||
16320 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
16321 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
16322 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
16323 | ;; | ||
16324 | mingw*) | ||
16325 | # MinGW DLLs use traditional 'lib' prefix | ||
16326 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
16327 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
16328 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
16329 | # It is most probably a Windows format PATH printed by | ||
16330 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
16331 | # path with ; separators, and with drive letters. We can handle the | ||
16332 | # drive letters (cygwin fileutils understands them), so leave them, | ||
16333 | # especially as we might pass files found there to a mingw objdump, | ||
16334 | # which wouldn't understand a cygwinified path. Ahh. | ||
16335 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
16336 | else | ||
16337 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
16338 | fi | ||
16339 | ;; | ||
16340 | pw32*) | ||
16341 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
16342 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
16343 | ;; | ||
16344 | esac | ||
16345 | ;; | ||
16346 | |||
16347 | *) | ||
16348 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
16349 | ;; | ||
16350 | esac | ||
16351 | dynamic_linker='Win32 ld.exe' | ||
16352 | # FIXME: first we should search . and the directory the executable is in | ||
16353 | shlibpath_var=PATH | ||
16354 | ;; | ||
16355 | |||
16356 | darwin* | rhapsody*) | ||
16357 | dynamic_linker="$host_os dyld" | ||
16358 | version_type=darwin | ||
16359 | need_lib_prefix=no | ||
16360 | need_version=no | ||
16361 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
16362 | soname_spec='${libname}${release}${major}$shared_ext' | ||
16363 | shlibpath_overrides_runpath=yes | ||
16364 | shlibpath_var=DYLD_LIBRARY_PATH | ||
16365 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | ||
16366 | |||
16367 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
16368 | ;; | ||
16369 | |||
16370 | dgux*) | ||
16371 | version_type=linux | ||
16372 | need_lib_prefix=no | ||
16373 | need_version=no | ||
16374 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
16375 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16376 | shlibpath_var=LD_LIBRARY_PATH | ||
16377 | ;; | ||
16378 | |||
16379 | freebsd1*) | ||
16380 | dynamic_linker=no | ||
16381 | ;; | ||
16382 | |||
16383 | freebsd* | dragonfly*) | ||
16384 | # DragonFly does not have aout. When/if they implement a new | ||
16385 | # versioning mechanism, adjust this. | ||
16386 | if test -x /usr/bin/objformat; then | ||
16387 | objformat=`/usr/bin/objformat` | ||
16388 | else | ||
16389 | case $host_os in | ||
16390 | freebsd[123]*) objformat=aout ;; | ||
16391 | *) objformat=elf ;; | ||
16392 | esac | ||
16393 | fi | ||
16394 | version_type=freebsd-$objformat | ||
16395 | case $version_type in | ||
16396 | freebsd-elf*) | ||
16397 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
16398 | need_version=no | ||
16399 | need_lib_prefix=no | ||
16400 | ;; | ||
16401 | freebsd-*) | ||
16402 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
16403 | need_version=yes | ||
16404 | ;; | ||
16405 | esac | ||
16406 | shlibpath_var=LD_LIBRARY_PATH | ||
16407 | case $host_os in | ||
16408 | freebsd2*) | ||
16409 | shlibpath_overrides_runpath=yes | ||
16410 | ;; | ||
16411 | freebsd3.[01]* | freebsdelf3.[01]*) | ||
16412 | shlibpath_overrides_runpath=yes | ||
16413 | hardcode_into_libs=yes | ||
16414 | ;; | ||
16415 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | ||
16416 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | ||
16417 | shlibpath_overrides_runpath=no | ||
16418 | hardcode_into_libs=yes | ||
16419 | ;; | ||
16420 | *) # from 4.6 on, and DragonFly | ||
16421 | shlibpath_overrides_runpath=yes | ||
16422 | hardcode_into_libs=yes | ||
16423 | ;; | ||
16424 | esac | ||
16425 | ;; | ||
16426 | |||
16427 | gnu*) | ||
16428 | version_type=linux | ||
16429 | need_lib_prefix=no | ||
16430 | need_version=no | ||
16431 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
16432 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16433 | shlibpath_var=LD_LIBRARY_PATH | ||
16434 | hardcode_into_libs=yes | ||
16435 | ;; | ||
16436 | |||
16437 | hpux9* | hpux10* | hpux11*) | ||
16438 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
16439 | # link against other versions. | ||
16440 | version_type=sunos | ||
16441 | need_lib_prefix=no | ||
16442 | need_version=no | ||
16443 | case $host_cpu in | ||
16444 | ia64*) | ||
16445 | shrext_cmds='.so' | ||
16446 | hardcode_into_libs=yes | ||
16447 | dynamic_linker="$host_os dld.so" | ||
16448 | shlibpath_var=LD_LIBRARY_PATH | ||
16449 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
16450 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16451 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16452 | if test "X$HPUX_IA64_MODE" = X32; then | ||
16453 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
16454 | else | ||
16455 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
16456 | fi | ||
16457 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
16458 | ;; | ||
16459 | hppa*64*) | ||
16460 | shrext_cmds='.sl' | ||
16461 | hardcode_into_libs=yes | ||
16462 | dynamic_linker="$host_os dld.sl" | ||
16463 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
16464 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
16465 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16466 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16467 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
16468 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
16469 | ;; | ||
16470 | *) | ||
16471 | shrext_cmds='.sl' | ||
16472 | dynamic_linker="$host_os dld.sl" | ||
16473 | shlibpath_var=SHLIB_PATH | ||
16474 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
16475 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16476 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16477 | ;; | ||
16478 | esac | ||
16479 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
16480 | postinstall_cmds='chmod 555 $lib' | ||
16481 | ;; | ||
16482 | |||
16483 | interix[3-9]*) | ||
16484 | version_type=linux | ||
16485 | need_lib_prefix=no | ||
16486 | need_version=no | ||
16487 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
16488 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16489 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
16490 | shlibpath_var=LD_LIBRARY_PATH | ||
16491 | shlibpath_overrides_runpath=no | ||
16492 | hardcode_into_libs=yes | ||
16493 | ;; | ||
16494 | |||
16495 | irix5* | irix6* | nonstopux*) | ||
16496 | case $host_os in | ||
16497 | nonstopux*) version_type=nonstopux ;; | ||
16498 | *) | ||
16499 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
16500 | version_type=linux | ||
16501 | else | ||
16502 | version_type=irix | ||
16503 | fi ;; | ||
16504 | esac | ||
16505 | need_lib_prefix=no | ||
16506 | need_version=no | ||
16507 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16508 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
16509 | case $host_os in | ||
16510 | irix5* | nonstopux*) | ||
16511 | libsuff= shlibsuff= | ||
16512 | ;; | ||
16513 | *) | ||
16514 | case $LD in # libtool.m4 will add one of these switches to LD | ||
16515 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
16516 | libsuff= shlibsuff= libmagic=32-bit;; | ||
16517 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
16518 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
16519 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
16520 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
16521 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
16522 | esac | ||
16523 | ;; | ||
16524 | esac | ||
16525 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
16526 | shlibpath_overrides_runpath=no | ||
16527 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
16528 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
16529 | hardcode_into_libs=yes | ||
16530 | ;; | ||
16531 | |||
16532 | # No shared lib support for Linux oldld, aout, or coff. | ||
16533 | linux*oldld* | linux*aout* | linux*coff*) | ||
16534 | dynamic_linker=no | ||
16535 | ;; | ||
16536 | |||
16537 | # This must be Linux ELF. | ||
16538 | linux* | k*bsd*-gnu) | ||
16539 | version_type=linux | ||
16540 | need_lib_prefix=no | ||
16541 | need_version=no | ||
16542 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16543 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16544 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
16545 | shlibpath_var=LD_LIBRARY_PATH | ||
16546 | shlibpath_overrides_runpath=no | ||
16547 | # Some binutils ld are patched to set DT_RUNPATH | ||
16548 | save_LDFLAGS=$LDFLAGS | ||
16549 | save_libdir=$libdir | ||
16550 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | ||
16551 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | ||
16552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16553 | /* end confdefs.h. */ | ||
16554 | |||
16555 | int | ||
16556 | main () | ||
16557 | { | ||
16558 | |||
16559 | ; | ||
16560 | return 0; | ||
16561 | } | ||
16562 | _ACEOF | ||
16563 | if ac_fn_cxx_try_link "$LINENO"; then : | ||
16564 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | ||
16565 | shlibpath_overrides_runpath=yes | ||
16566 | fi | ||
16567 | fi | ||
16568 | rm -f core conftest.err conftest.$ac_objext \ | ||
16569 | conftest$ac_exeext conftest.$ac_ext | ||
16570 | LDFLAGS=$save_LDFLAGS | ||
16571 | libdir=$save_libdir | ||
16572 | |||
16573 | # This implies no fast_install, which is unacceptable. | ||
16574 | # Some rework will be needed to allow for fast_install | ||
16575 | # before this can be enabled. | ||
16576 | hardcode_into_libs=yes | ||
16577 | |||
16578 | # Append ld.so.conf contents to the search path | ||
16579 | if test -f /etc/ld.so.conf; then | ||
16580 | 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;/^$/d' | tr '\n' ' '` | ||
16581 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
16582 | fi | ||
16583 | |||
16584 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
16585 | # powerpc, because MkLinux only supported shared libraries with the | ||
16586 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
16587 | # most powerpc-linux boxes support dynamic linking these days and | ||
16588 | # people can always --disable-shared, the test was removed, and we | ||
16589 | # assume the GNU/Linux dynamic linker is in use. | ||
16590 | dynamic_linker='GNU/Linux ld.so' | ||
16591 | ;; | ||
16592 | |||
16593 | netbsdelf*-gnu) | ||
16594 | version_type=linux | ||
16595 | need_lib_prefix=no | ||
16596 | need_version=no | ||
16597 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
16598 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16599 | shlibpath_var=LD_LIBRARY_PATH | ||
16600 | shlibpath_overrides_runpath=no | ||
16601 | hardcode_into_libs=yes | ||
16602 | dynamic_linker='NetBSD ld.elf_so' | ||
16603 | ;; | ||
16604 | |||
16605 | netbsd*) | ||
16606 | version_type=sunos | ||
16607 | need_lib_prefix=no | ||
16608 | need_version=no | ||
16609 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
16610 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
16611 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
16612 | dynamic_linker='NetBSD (a.out) ld.so' | ||
16613 | else | ||
16614 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
16615 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16616 | dynamic_linker='NetBSD ld.elf_so' | ||
16617 | fi | ||
16618 | shlibpath_var=LD_LIBRARY_PATH | ||
16619 | shlibpath_overrides_runpath=yes | ||
16620 | hardcode_into_libs=yes | ||
16621 | ;; | ||
16622 | |||
16623 | newsos6) | ||
16624 | version_type=linux | ||
16625 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16626 | shlibpath_var=LD_LIBRARY_PATH | ||
16627 | shlibpath_overrides_runpath=yes | ||
16628 | ;; | ||
16629 | |||
16630 | *nto* | *qnx*) | ||
16631 | version_type=qnx | ||
16632 | need_lib_prefix=no | ||
16633 | need_version=no | ||
16634 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16635 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16636 | shlibpath_var=LD_LIBRARY_PATH | ||
16637 | shlibpath_overrides_runpath=no | ||
16638 | hardcode_into_libs=yes | ||
16639 | dynamic_linker='ldqnx.so' | ||
16640 | ;; | ||
16641 | |||
16642 | openbsd*) | ||
16643 | version_type=sunos | ||
16644 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
16645 | need_lib_prefix=no | ||
16646 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | ||
16647 | case $host_os in | ||
16648 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | ||
16649 | *) need_version=no ;; | ||
16650 | esac | ||
16651 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
16652 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
16653 | shlibpath_var=LD_LIBRARY_PATH | ||
16654 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
16655 | case $host_os in | ||
16656 | openbsd2.[89] | openbsd2.[89].*) | ||
16657 | shlibpath_overrides_runpath=no | ||
16658 | ;; | ||
16659 | *) | ||
16660 | shlibpath_overrides_runpath=yes | ||
16661 | ;; | ||
16662 | esac | ||
16663 | else | ||
16664 | shlibpath_overrides_runpath=yes | ||
16665 | fi | ||
16666 | ;; | ||
16667 | |||
16668 | os2*) | ||
16669 | libname_spec='$name' | ||
16670 | shrext_cmds=".dll" | ||
16671 | need_lib_prefix=no | ||
16672 | library_names_spec='$libname${shared_ext} $libname.a' | ||
16673 | dynamic_linker='OS/2 ld.exe' | ||
16674 | shlibpath_var=LIBPATH | ||
16675 | ;; | ||
16676 | |||
16677 | osf3* | osf4* | osf5*) | ||
16678 | version_type=osf | ||
16679 | need_lib_prefix=no | ||
16680 | need_version=no | ||
16681 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16682 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16683 | shlibpath_var=LD_LIBRARY_PATH | ||
16684 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
16685 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
16686 | ;; | ||
16687 | |||
16688 | rdos*) | ||
16689 | dynamic_linker=no | ||
16690 | ;; | ||
16691 | |||
16692 | solaris*) | ||
16693 | version_type=linux | ||
16694 | need_lib_prefix=no | ||
16695 | need_version=no | ||
16696 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16697 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16698 | shlibpath_var=LD_LIBRARY_PATH | ||
16699 | shlibpath_overrides_runpath=yes | ||
16700 | hardcode_into_libs=yes | ||
16701 | # ldd complains unless libraries are executable | ||
16702 | postinstall_cmds='chmod +x $lib' | ||
16703 | ;; | ||
16704 | |||
16705 | sunos4*) | ||
16706 | version_type=sunos | ||
16707 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
16708 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
16709 | shlibpath_var=LD_LIBRARY_PATH | ||
16710 | shlibpath_overrides_runpath=yes | ||
16711 | if test "$with_gnu_ld" = yes; then | ||
16712 | need_lib_prefix=no | ||
16713 | fi | ||
16714 | need_version=yes | ||
16715 | ;; | ||
16716 | |||
16717 | sysv4 | sysv4.3*) | ||
16718 | version_type=linux | ||
16719 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16720 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16721 | shlibpath_var=LD_LIBRARY_PATH | ||
16722 | case $host_vendor in | ||
16723 | sni) | ||
16724 | shlibpath_overrides_runpath=no | ||
16725 | need_lib_prefix=no | ||
16726 | runpath_var=LD_RUN_PATH | ||
16727 | ;; | ||
16728 | siemens) | ||
16729 | need_lib_prefix=no | ||
16730 | ;; | ||
16731 | motorola) | ||
16732 | need_lib_prefix=no | ||
16733 | need_version=no | ||
16734 | shlibpath_overrides_runpath=no | ||
16735 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
16736 | ;; | ||
16737 | esac | ||
16738 | ;; | ||
16739 | |||
16740 | sysv4*MP*) | ||
16741 | if test -d /usr/nec ;then | ||
16742 | version_type=linux | ||
16743 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
16744 | soname_spec='$libname${shared_ext}.$major' | ||
16745 | shlibpath_var=LD_LIBRARY_PATH | ||
16746 | fi | ||
16747 | ;; | ||
16748 | |||
16749 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
16750 | version_type=freebsd-elf | ||
16751 | need_lib_prefix=no | ||
16752 | need_version=no | ||
16753 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
16754 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16755 | shlibpath_var=LD_LIBRARY_PATH | ||
16756 | shlibpath_overrides_runpath=yes | ||
16757 | hardcode_into_libs=yes | ||
16758 | if test "$with_gnu_ld" = yes; then | ||
16759 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
16760 | else | ||
16761 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
16762 | case $host_os in | ||
16763 | sco3.2v5*) | ||
16764 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
16765 | ;; | ||
16766 | esac | ||
16767 | fi | ||
16768 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
16769 | ;; | ||
16770 | |||
16771 | tpf*) | ||
16772 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | ||
16773 | version_type=linux | ||
16774 | need_lib_prefix=no | ||
16775 | need_version=no | ||
16776 | library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16777 | shlibpath_var=LD_LIBRARY_PATH | ||
16778 | shlibpath_overrides_runpath=no | ||
16779 | hardcode_into_libs=yes | ||
16780 | ;; | ||
16781 | |||
16782 | uts4*) | ||
16783 | version_type=linux | ||
16784 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16785 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16786 | shlibpath_var=LD_LIBRARY_PATH | ||
16787 | ;; | ||
16788 | |||
16789 | *) | ||
16790 | dynamic_linker=no | ||
16791 | ;; | ||
16792 | esac | ||
16793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | ||
16794 | $as_echo "$dynamic_linker" >&6; } | ||
16795 | test "$dynamic_linker" = no && can_build_shared=no | ||
16796 | |||
16797 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
16798 | if test "$GCC" = yes; then | ||
16799 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
16800 | fi | ||
16801 | |||
16802 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | ||
16803 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | ||
16804 | fi | ||
16805 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | ||
16806 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | ||
16807 | fi | ||
16808 | |||
16809 | |||
16810 | |||
16811 | |||
16812 | |||
16813 | |||
16814 | |||
16815 | |||
16816 | |||
16817 | |||
16818 | |||
16819 | |||
16820 | |||
16821 | |||
16822 | |||
16823 | |||
16824 | |||
16825 | |||
16826 | |||
16827 | |||
16828 | |||
16829 | |||
16830 | |||
16831 | |||
16832 | |||
16833 | |||
16834 | |||
16835 | |||
16836 | |||
16837 | |||
16838 | |||
16839 | |||
16840 | |||
16841 | |||
16842 | |||
16843 | |||
16844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | ||
16845 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | ||
16846 | hardcode_action_CXX= | ||
16847 | if test -n "$hardcode_libdir_flag_spec_CXX" || | ||
16848 | test -n "$runpath_var_CXX" || | ||
16849 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | ||
16850 | |||
16851 | # We can hardcode non-existent directories. | ||
16852 | if test "$hardcode_direct_CXX" != no && | ||
16853 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
16854 | # have to relink, otherwise we might link with an installed library | ||
16855 | # when we should be linking with a yet-to-be-installed one | ||
16856 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | ||
16857 | test "$hardcode_minus_L_CXX" != no; then | ||
16858 | # Linking always hardcodes the temporary library directory. | ||
16859 | hardcode_action_CXX=relink | ||
16860 | else | ||
16861 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
16862 | hardcode_action_CXX=immediate | ||
16863 | fi | ||
16864 | else | ||
16865 | # We cannot hardcode anything, or else we can only hardcode existing | ||
16866 | # directories. | ||
16867 | hardcode_action_CXX=unsupported | ||
16868 | fi | ||
16869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | ||
16870 | $as_echo "$hardcode_action_CXX" >&6; } | ||
16871 | |||
16872 | if test "$hardcode_action_CXX" = relink || | ||
16873 | test "$inherit_rpath_CXX" = yes; then | ||
16874 | # Fast installation is not supported | ||
16875 | enable_fast_install=no | ||
16876 | elif test "$shlibpath_overrides_runpath" = yes || | ||
16877 | test "$enable_shared" = no; then | ||
16878 | # Fast installation is not necessary | ||
16879 | enable_fast_install=needless | ||
16880 | fi | ||
16881 | |||
16882 | |||
16883 | |||
16884 | |||
16885 | |||
16886 | |||
16887 | |||
16888 | fi # test -n "$compiler" | ||
16889 | |||
16890 | CC=$lt_save_CC | ||
16891 | LDCXX=$LD | ||
16892 | LD=$lt_save_LD | ||
16893 | GCC=$lt_save_GCC | ||
16894 | with_gnu_ld=$lt_save_with_gnu_ld | ||
16895 | lt_cv_path_LDCXX=$lt_cv_path_LD | ||
16896 | lt_cv_path_LD=$lt_save_path_LD | ||
16897 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | ||
16898 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | ||
16899 | fi # test "$_lt_caught_CXX_error" != yes | ||
16900 | |||
16901 | ac_ext=c | ||
16902 | ac_cpp='$CPP $CPPFLAGS' | ||
16903 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
16904 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
16905 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
16906 | |||
16907 | |||
16908 | |||
16909 | # pkg-config | ||
16910 | |||
16911 | |||
16912 | |||
16913 | |||
16914 | |||
16915 | |||
16916 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | ||
16917 | if test -n "$ac_tool_prefix"; then | ||
16918 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||
16919 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||
16920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
16921 | $as_echo_n "checking for $ac_word... " >&6; } | ||
16922 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | ||
16923 | $as_echo_n "(cached) " >&6 | ||
16924 | else | ||
16925 | case $PKG_CONFIG in | ||
16926 | [\\/]* | ?:[\\/]*) | ||
16927 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
16928 | ;; | ||
16929 | *) | ||
16930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16931 | for as_dir in $PATH | ||
16932 | do | ||
16933 | IFS=$as_save_IFS | ||
16934 | test -z "$as_dir" && as_dir=. | ||
16935 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16936 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
16937 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
16938 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16939 | break 2 | ||
16940 | fi | ||
16941 | done | ||
16942 | done | ||
16943 | IFS=$as_save_IFS | ||
16944 | |||
16945 | ;; | ||
16946 | esac | ||
16947 | fi | ||
16948 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
16949 | if test -n "$PKG_CONFIG"; then | ||
16950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||
16951 | $as_echo "$PKG_CONFIG" >&6; } | ||
16952 | else | ||
16953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16954 | $as_echo "no" >&6; } | ||
16955 | fi | ||
16956 | |||
16957 | |||
16958 | fi | ||
16959 | if test -z "$ac_cv_path_PKG_CONFIG"; then | ||
16960 | ac_pt_PKG_CONFIG=$PKG_CONFIG | ||
16961 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
16962 | set dummy pkg-config; ac_word=$2 | ||
16963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
16964 | $as_echo_n "checking for $ac_word... " >&6; } | ||
16965 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : | ||
16966 | $as_echo_n "(cached) " >&6 | ||
16967 | else | ||
16968 | case $ac_pt_PKG_CONFIG in | ||
16969 | [\\/]* | ?:[\\/]*) | ||
16970 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | ||
16971 | ;; | ||
16972 | *) | ||
16973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16974 | for as_dir in $PATH | ||
16975 | do | ||
16976 | IFS=$as_save_IFS | ||
16977 | test -z "$as_dir" && as_dir=. | ||
16978 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16979 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
16980 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
16981 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16982 | break 2 | ||
16983 | fi | ||
16984 | done | ||
16985 | done | ||
16986 | IFS=$as_save_IFS | ||
16987 | |||
16988 | ;; | ||
16989 | esac | ||
16990 | fi | ||
16991 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | ||
16992 | if test -n "$ac_pt_PKG_CONFIG"; then | ||
16993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | ||
16994 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | ||
16995 | else | ||
16996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16997 | $as_echo "no" >&6; } | ||
16998 | fi | ||
16999 | |||
17000 | if test "x$ac_pt_PKG_CONFIG" = x; then | ||
17001 | PKG_CONFIG="" | ||
17002 | else | ||
17003 | case $cross_compiling:$ac_tool_warned in | ||
17004 | yes:) | ||
17005 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
17006 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
17007 | ac_tool_warned=yes ;; | ||
17008 | esac | ||
17009 | PKG_CONFIG=$ac_pt_PKG_CONFIG | ||
17010 | fi | ||
17011 | else | ||
17012 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | ||
17013 | fi | ||
17014 | |||
17015 | fi | ||
17016 | if test -n "$PKG_CONFIG"; then | ||
17017 | _pkg_min_version=0.9.0 | ||
17018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | ||
17019 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | ||
17020 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | ||
17021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17022 | $as_echo "yes" >&6; } | ||
17023 | else | ||
17024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17025 | $as_echo "no" >&6; } | ||
17026 | PKG_CONFIG="" | ||
17027 | fi | ||
17028 | fi | ||
17029 | |||
17030 | # Check whether pkg-config supports Requires.private | ||
17031 | if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then | ||
17032 | pkgconfig_requires_private="Requires.private" | ||
17033 | else | ||
17034 | pkgconfig_requires_private="Requires" | ||
17035 | fi | ||
17036 | |||
17037 | |||
17038 | # doxygen program for documentation building | ||
17039 | |||
17040 | |||
17041 | |||
17042 | # Check whether --enable-doc was given. | ||
17043 | if test "${enable_doc+set}" = set; then : | ||
17044 | enableval=$enable_doc; | ||
17045 | if test "x${enableval}" = "xyes" ; then | ||
17046 | efl_enable_doc="yes" | ||
17047 | else | ||
17048 | efl_enable_doc="no" | ||
17049 | fi | ||
17050 | |||
17051 | else | ||
17052 | efl_enable_doc="yes" | ||
17053 | fi | ||
17054 | |||
17055 | |||
17056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 | ||
17057 | $as_echo_n "checking whether to build documentation... " >&6; } | ||
17058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${efl_enable_doc}" >&5 | ||
17059 | $as_echo "${efl_enable_doc}" >&6; } | ||
17060 | |||
17061 | if test "x${efl_enable_doc}" = "xyes" ; then | ||
17062 | |||
17063 | |||
17064 | efl_doxygen="doxygen" | ||
17065 | |||
17066 | |||
17067 | # Check whether --with-doxygen was given. | ||
17068 | if test "${with_doxygen+set}" = set; then : | ||
17069 | withval=$with_doxygen; | ||
17070 | efl_doxygen=${withval} | ||
17071 | # Extract the first word of "${efl_doxygen}", so it can be a program name with args. | ||
17072 | set dummy ${efl_doxygen}; ac_word=$2 | ||
17073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
17074 | $as_echo_n "checking for $ac_word... " >&6; } | ||
17075 | if test "${ac_cv_prog_efl_have_doxygen+set}" = set; then : | ||
17076 | $as_echo_n "(cached) " >&6 | ||
17077 | else | ||
17078 | if test -n "$efl_have_doxygen"; then | ||
17079 | ac_cv_prog_efl_have_doxygen="$efl_have_doxygen" # Let the user override the test. | ||
17080 | else | ||
17081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17082 | for as_dir in $PATH | ||
17083 | do | ||
17084 | IFS=$as_save_IFS | ||
17085 | test -z "$as_dir" && as_dir=. | ||
17086 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17087 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17088 | ac_cv_prog_efl_have_doxygen="yes" | ||
17089 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17090 | break 2 | ||
17091 | fi | ||
17092 | done | ||
17093 | done | ||
17094 | IFS=$as_save_IFS | ||
17095 | |||
17096 | test -z "$ac_cv_prog_efl_have_doxygen" && ac_cv_prog_efl_have_doxygen="no" | ||
17097 | fi | ||
17098 | fi | ||
17099 | efl_have_doxygen=$ac_cv_prog_efl_have_doxygen | ||
17100 | if test -n "$efl_have_doxygen"; then | ||
17101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $efl_have_doxygen" >&5 | ||
17102 | $as_echo "$efl_have_doxygen" >&6; } | ||
17103 | else | ||
17104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17105 | $as_echo "no" >&6; } | ||
17106 | fi | ||
17107 | |||
17108 | |||
17109 | if test "x${efl_have_doxygen}" = "xno" ; then | ||
17110 | echo "WARNING:" | ||
17111 | echo "The doxygen program you specified:" | ||
17112 | echo "${efl_doxygen}" | ||
17113 | echo "was not found. Please check the path and make sure " | ||
17114 | echo "the program exists and is executable." | ||
17115 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no doxygen detected. Documentation will not be built" >&5 | ||
17116 | $as_echo "$as_me: WARNING: no doxygen detected. Documentation will not be built" >&2;} | ||
17117 | fi | ||
17118 | |||
17119 | else | ||
17120 | # Extract the first word of "${efl_doxygen}", so it can be a program name with args. | ||
17121 | set dummy ${efl_doxygen}; ac_word=$2 | ||
17122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
17123 | $as_echo_n "checking for $ac_word... " >&6; } | ||
17124 | if test "${ac_cv_prog_efl_have_doxygen+set}" = set; then : | ||
17125 | $as_echo_n "(cached) " >&6 | ||
17126 | else | ||
17127 | if test -n "$efl_have_doxygen"; then | ||
17128 | ac_cv_prog_efl_have_doxygen="$efl_have_doxygen" # Let the user override the test. | ||
17129 | else | ||
17130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17131 | for as_dir in $PATH | ||
17132 | do | ||
17133 | IFS=$as_save_IFS | ||
17134 | test -z "$as_dir" && as_dir=. | ||
17135 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17136 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17137 | ac_cv_prog_efl_have_doxygen="yes" | ||
17138 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17139 | break 2 | ||
17140 | fi | ||
17141 | done | ||
17142 | done | ||
17143 | IFS=$as_save_IFS | ||
17144 | |||
17145 | test -z "$ac_cv_prog_efl_have_doxygen" && ac_cv_prog_efl_have_doxygen="no" | ||
17146 | fi | ||
17147 | fi | ||
17148 | efl_have_doxygen=$ac_cv_prog_efl_have_doxygen | ||
17149 | if test -n "$efl_have_doxygen"; then | ||
17150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $efl_have_doxygen" >&5 | ||
17151 | $as_echo "$efl_have_doxygen" >&6; } | ||
17152 | else | ||
17153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17154 | $as_echo "no" >&6; } | ||
17155 | fi | ||
17156 | |||
17157 | |||
17158 | if test "x${efl_have_doxygen}" = "xno" ; then | ||
17159 | echo "WARNING:" | ||
17160 | echo "The doxygen program was not found in your execute path." | ||
17161 | echo "You may have doxygen installed somewhere not covered by your path." | ||
17162 | echo "" | ||
17163 | echo "If this is the case make sure you have the packages installed, AND" | ||
17164 | echo "that the doxygen program is in your execute path (see your" | ||
17165 | echo "shell manual page on setting the \$PATH environment variable), OR" | ||
17166 | echo "alternatively, specify the program to use with --with-doxygen." | ||
17167 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no doxygen detected. Documentation will not be built" >&5 | ||
17168 | $as_echo "$as_me: WARNING: no doxygen detected. Documentation will not be built" >&2;} | ||
17169 | fi | ||
17170 | |||
17171 | fi | ||
17172 | |||
17173 | else | ||
17174 | efl_have_doxygen="no" | ||
17175 | fi | ||
17176 | |||
17177 | |||
17178 | |||
17179 | if ! test "x${efl_have_doxygen}" = "xyes" ; then | ||
17180 | efl_enable_doc="no" | ||
17181 | fi | ||
17182 | |||
17183 | if test "x${efl_have_doxygen}" = "xyes"; then | ||
17184 | EFL_BUILD_DOC_TRUE= | ||
17185 | EFL_BUILD_DOC_FALSE='#' | ||
17186 | else | ||
17187 | EFL_BUILD_DOC_TRUE='#' | ||
17188 | EFL_BUILD_DOC_FALSE= | ||
17189 | fi | ||
17190 | |||
17191 | |||
17192 | if test "x$efl_have_doxygen" = "xyes"; then : | ||
17193 | build_doc="yes" | ||
17194 | else | ||
17195 | build_doc="no" | ||
17196 | fi | ||
17197 | |||
17198 | |||
17199 | |||
17200 | ### Checks for libraries | ||
17201 | |||
17202 | # Valgrind | ||
17203 | want_valgrind="auto" | ||
17204 | have_valgrind="no" | ||
17205 | |||
17206 | # Check whether --enable-valgrind was given. | ||
17207 | if test "${enable_valgrind+set}" = set; then : | ||
17208 | enableval=$enable_valgrind; want_valgrind=$enableval | ||
17209 | fi | ||
17210 | |||
17211 | |||
17212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable build with valgrind" >&5 | ||
17213 | $as_echo_n "checking whether to enable build with valgrind... " >&6; } | ||
17214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_valgrind}" >&5 | ||
17215 | $as_echo "${want_valgrind}" >&6; } | ||
17216 | |||
17217 | if test "x${want_valgrind}" = "xyes" || test "x${want_valgrind}" = "xauto"; then | ||
17218 | |||
17219 | pkg_failed=no | ||
17220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5 | ||
17221 | $as_echo_n "checking for VALGRIND... " >&6; } | ||
17222 | |||
17223 | if test -n "$VALGRIND_CFLAGS"; then | ||
17224 | pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS" | ||
17225 | elif test -n "$PKG_CONFIG"; then | ||
17226 | if test -n "$PKG_CONFIG" && \ | ||
17227 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind >= 2.4.0\""; } >&5 | ||
17228 | ($PKG_CONFIG --exists --print-errors "valgrind >= 2.4.0") 2>&5 | ||
17229 | ac_status=$? | ||
17230 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17231 | test $ac_status = 0; }; then | ||
17232 | pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind >= 2.4.0" 2>/dev/null` | ||
17233 | else | ||
17234 | pkg_failed=yes | ||
17235 | fi | ||
17236 | else | ||
17237 | pkg_failed=untried | ||
17238 | fi | ||
17239 | if test -n "$VALGRIND_LIBS"; then | ||
17240 | pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS" | ||
17241 | elif test -n "$PKG_CONFIG"; then | ||
17242 | if test -n "$PKG_CONFIG" && \ | ||
17243 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind >= 2.4.0\""; } >&5 | ||
17244 | ($PKG_CONFIG --exists --print-errors "valgrind >= 2.4.0") 2>&5 | ||
17245 | ac_status=$? | ||
17246 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17247 | test $ac_status = 0; }; then | ||
17248 | pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind >= 2.4.0" 2>/dev/null` | ||
17249 | else | ||
17250 | pkg_failed=yes | ||
17251 | fi | ||
17252 | else | ||
17253 | pkg_failed=untried | ||
17254 | fi | ||
17255 | |||
17256 | |||
17257 | |||
17258 | if test $pkg_failed = yes; then | ||
17259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17260 | $as_echo "no" >&6; } | ||
17261 | |||
17262 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
17263 | _pkg_short_errors_supported=yes | ||
17264 | else | ||
17265 | _pkg_short_errors_supported=no | ||
17266 | fi | ||
17267 | if test $_pkg_short_errors_supported = yes; then | ||
17268 | VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "valgrind >= 2.4.0" 2>&1` | ||
17269 | else | ||
17270 | VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors "valgrind >= 2.4.0" 2>&1` | ||
17271 | fi | ||
17272 | # Put the nasty error message in config.log where it belongs | ||
17273 | echo "$VALGRIND_PKG_ERRORS" >&5 | ||
17274 | |||
17275 | |||
17276 | |||
17277 | $as_echo "#define NVALGRIND 1" >>confdefs.h | ||
17278 | |||
17279 | if test "x${want_valgrind}" = "xyes"; then | ||
17280 | as_fn_error $? "Valgrind >= 2.4.0 is required" "$LINENO" 5 | ||
17281 | fi | ||
17282 | |||
17283 | elif test $pkg_failed = untried; then | ||
17284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17285 | $as_echo "no" >&6; } | ||
17286 | |||
17287 | |||
17288 | $as_echo "#define NVALGRIND 1" >>confdefs.h | ||
17289 | |||
17290 | if test "x${want_valgrind}" = "xyes"; then | ||
17291 | as_fn_error $? "Valgrind >= 2.4.0 is required" "$LINENO" 5 | ||
17292 | fi | ||
17293 | |||
17294 | else | ||
17295 | VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS | ||
17296 | VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS | ||
17297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17298 | $as_echo "yes" >&6; } | ||
17299 | |||
17300 | requirement_eina="valgrind ${requirement_eina}" | ||
17301 | have_valgrind="yes" | ||
17302 | |||
17303 | fi | ||
17304 | else | ||
17305 | |||
17306 | $as_echo "#define NVALGRIND 1" >>confdefs.h | ||
17307 | |||
17308 | fi | ||
17309 | |||
17310 | |||
17311 | # Evil library for compilation on Windows CE | ||
17312 | |||
17313 | EFL_EINA_BUILD="" | ||
17314 | case "$host_os" in | ||
17315 | mingw*) | ||
17316 | |||
17317 | pkg_failed=no | ||
17318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVIL" >&5 | ||
17319 | $as_echo_n "checking for EVIL... " >&6; } | ||
17320 | |||
17321 | if test -n "$EVIL_CFLAGS"; then | ||
17322 | pkg_cv_EVIL_CFLAGS="$EVIL_CFLAGS" | ||
17323 | elif test -n "$PKG_CONFIG"; then | ||
17324 | if test -n "$PKG_CONFIG" && \ | ||
17325 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evil >= 1.0.0\""; } >&5 | ||
17326 | ($PKG_CONFIG --exists --print-errors "evil >= 1.0.0") 2>&5 | ||
17327 | ac_status=$? | ||
17328 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17329 | test $ac_status = 0; }; then | ||
17330 | pkg_cv_EVIL_CFLAGS=`$PKG_CONFIG --cflags "evil >= 1.0.0" 2>/dev/null` | ||
17331 | else | ||
17332 | pkg_failed=yes | ||
17333 | fi | ||
17334 | else | ||
17335 | pkg_failed=untried | ||
17336 | fi | ||
17337 | if test -n "$EVIL_LIBS"; then | ||
17338 | pkg_cv_EVIL_LIBS="$EVIL_LIBS" | ||
17339 | elif test -n "$PKG_CONFIG"; then | ||
17340 | if test -n "$PKG_CONFIG" && \ | ||
17341 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evil >= 1.0.0\""; } >&5 | ||
17342 | ($PKG_CONFIG --exists --print-errors "evil >= 1.0.0") 2>&5 | ||
17343 | ac_status=$? | ||
17344 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17345 | test $ac_status = 0; }; then | ||
17346 | pkg_cv_EVIL_LIBS=`$PKG_CONFIG --libs "evil >= 1.0.0" 2>/dev/null` | ||
17347 | else | ||
17348 | pkg_failed=yes | ||
17349 | fi | ||
17350 | else | ||
17351 | pkg_failed=untried | ||
17352 | fi | ||
17353 | |||
17354 | |||
17355 | |||
17356 | if test $pkg_failed = yes; then | ||
17357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17358 | $as_echo "no" >&6; } | ||
17359 | |||
17360 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
17361 | _pkg_short_errors_supported=yes | ||
17362 | else | ||
17363 | _pkg_short_errors_supported=no | ||
17364 | fi | ||
17365 | if test $_pkg_short_errors_supported = yes; then | ||
17366 | EVIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "evil >= 1.0.0" 2>&1` | ||
17367 | else | ||
17368 | EVIL_PKG_ERRORS=`$PKG_CONFIG --print-errors "evil >= 1.0.0" 2>&1` | ||
17369 | fi | ||
17370 | # Put the nasty error message in config.log where it belongs | ||
17371 | echo "$EVIL_PKG_ERRORS" >&5 | ||
17372 | |||
17373 | as_fn_error $? "Package requirements (evil >= 1.0.0) were not met: | ||
17374 | |||
17375 | $EVIL_PKG_ERRORS | ||
17376 | |||
17377 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
17378 | installed software in a non-standard prefix. | ||
17379 | |||
17380 | Alternatively, you may set the environment variables EVIL_CFLAGS | ||
17381 | and EVIL_LIBS to avoid the need to call pkg-config. | ||
17382 | See the pkg-config man page for more details." "$LINENO" 5 | ||
17383 | elif test $pkg_failed = untried; then | ||
17384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17385 | $as_echo "no" >&6; } | ||
17386 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
17387 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
17388 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
17389 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
17390 | path to pkg-config. | ||
17391 | |||
17392 | Alternatively, you may set the environment variables EVIL_CFLAGS | ||
17393 | and EVIL_LIBS to avoid the need to call pkg-config. | ||
17394 | See the pkg-config man page for more details. | ||
17395 | |||
17396 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
17397 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
17398 | else | ||
17399 | EVIL_CFLAGS=$pkg_cv_EVIL_CFLAGS | ||
17400 | EVIL_LIBS=$pkg_cv_EVIL_LIBS | ||
17401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17402 | $as_echo "yes" >&6; } | ||
17403 | |||
17404 | fi | ||
17405 | |||
17406 | $as_echo "#define HAVE_EVIL 1" >>confdefs.h | ||
17407 | |||
17408 | requirement_eina="evil" | ||
17409 | EFL_EINA_BUILD="-DEFL_EINA_BUILD" | ||
17410 | ;; | ||
17411 | esac | ||
17412 | |||
17413 | |||
17414 | # Check ememoa memory pool library | ||
17415 | |||
17416 | # Check whether --enable-ememoa was given. | ||
17417 | if test "${enable_ememoa+set}" = set; then : | ||
17418 | enableval=$enable_ememoa; | ||
17419 | if test "x${enableval}" = "xyes" ; then | ||
17420 | enable_ememoa="yes" | ||
17421 | else | ||
17422 | enable_ememoa="no" | ||
17423 | fi | ||
17424 | |||
17425 | else | ||
17426 | enable_ememoa="yes" | ||
17427 | fi | ||
17428 | |||
17429 | |||
17430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ememoa for memory pool" >&5 | ||
17431 | $as_echo_n "checking whether to use ememoa for memory pool... " >&6; } | ||
17432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ememoa" >&5 | ||
17433 | $as_echo "$enable_ememoa" >&6; } | ||
17434 | |||
17435 | if test "x${enable_ememoa}" = "xyes" ; then | ||
17436 | |||
17437 | pkg_failed=no | ||
17438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMEMOA" >&5 | ||
17439 | $as_echo_n "checking for EMEMOA... " >&6; } | ||
17440 | |||
17441 | if test -n "$EMEMOA_CFLAGS"; then | ||
17442 | pkg_cv_EMEMOA_CFLAGS="$EMEMOA_CFLAGS" | ||
17443 | elif test -n "$PKG_CONFIG"; then | ||
17444 | if test -n "$PKG_CONFIG" && \ | ||
17445 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ememoa >= 0.0.26 \""; } >&5 | ||
17446 | ($PKG_CONFIG --exists --print-errors "ememoa >= 0.0.26 ") 2>&5 | ||
17447 | ac_status=$? | ||
17448 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17449 | test $ac_status = 0; }; then | ||
17450 | pkg_cv_EMEMOA_CFLAGS=`$PKG_CONFIG --cflags "ememoa >= 0.0.26 " 2>/dev/null` | ||
17451 | else | ||
17452 | pkg_failed=yes | ||
17453 | fi | ||
17454 | else | ||
17455 | pkg_failed=untried | ||
17456 | fi | ||
17457 | if test -n "$EMEMOA_LIBS"; then | ||
17458 | pkg_cv_EMEMOA_LIBS="$EMEMOA_LIBS" | ||
17459 | elif test -n "$PKG_CONFIG"; then | ||
17460 | if test -n "$PKG_CONFIG" && \ | ||
17461 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ememoa >= 0.0.26 \""; } >&5 | ||
17462 | ($PKG_CONFIG --exists --print-errors "ememoa >= 0.0.26 ") 2>&5 | ||
17463 | ac_status=$? | ||
17464 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17465 | test $ac_status = 0; }; then | ||
17466 | pkg_cv_EMEMOA_LIBS=`$PKG_CONFIG --libs "ememoa >= 0.0.26 " 2>/dev/null` | ||
17467 | else | ||
17468 | pkg_failed=yes | ||
17469 | fi | ||
17470 | else | ||
17471 | pkg_failed=untried | ||
17472 | fi | ||
17473 | |||
17474 | |||
17475 | |||
17476 | if test $pkg_failed = yes; then | ||
17477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17478 | $as_echo "no" >&6; } | ||
17479 | |||
17480 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
17481 | _pkg_short_errors_supported=yes | ||
17482 | else | ||
17483 | _pkg_short_errors_supported=no | ||
17484 | fi | ||
17485 | if test $_pkg_short_errors_supported = yes; then | ||
17486 | EMEMOA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ememoa >= 0.0.26 " 2>&1` | ||
17487 | else | ||
17488 | EMEMOA_PKG_ERRORS=`$PKG_CONFIG --print-errors "ememoa >= 0.0.26 " 2>&1` | ||
17489 | fi | ||
17490 | # Put the nasty error message in config.log where it belongs | ||
17491 | echo "$EMEMOA_PKG_ERRORS" >&5 | ||
17492 | |||
17493 | enable_ememoa="no" | ||
17494 | elif test $pkg_failed = untried; then | ||
17495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17496 | $as_echo "no" >&6; } | ||
17497 | enable_ememoa="no" | ||
17498 | else | ||
17499 | EMEMOA_CFLAGS=$pkg_cv_EMEMOA_CFLAGS | ||
17500 | EMEMOA_LIBS=$pkg_cv_EMEMOA_LIBS | ||
17501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17502 | $as_echo "yes" >&6; } | ||
17503 | enable_ememoa="yes" | ||
17504 | fi | ||
17505 | fi | ||
17506 | |||
17507 | |||
17508 | pkg_failed=no | ||
17509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECORE_EVAS" >&5 | ||
17510 | $as_echo_n "checking for ECORE_EVAS... " >&6; } | ||
17511 | |||
17512 | if test -n "$ECORE_EVAS_CFLAGS"; then | ||
17513 | pkg_cv_ECORE_EVAS_CFLAGS="$ECORE_EVAS_CFLAGS" | ||
17514 | elif test -n "$PKG_CONFIG"; then | ||
17515 | if test -n "$PKG_CONFIG" && \ | ||
17516 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-evas ecore evas\""; } >&5 | ||
17517 | ($PKG_CONFIG --exists --print-errors "ecore-evas ecore evas") 2>&5 | ||
17518 | ac_status=$? | ||
17519 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17520 | test $ac_status = 0; }; then | ||
17521 | pkg_cv_ECORE_EVAS_CFLAGS=`$PKG_CONFIG --cflags "ecore-evas ecore evas" 2>/dev/null` | ||
17522 | else | ||
17523 | pkg_failed=yes | ||
17524 | fi | ||
17525 | else | ||
17526 | pkg_failed=untried | ||
17527 | fi | ||
17528 | if test -n "$ECORE_EVAS_LIBS"; then | ||
17529 | pkg_cv_ECORE_EVAS_LIBS="$ECORE_EVAS_LIBS" | ||
17530 | elif test -n "$PKG_CONFIG"; then | ||
17531 | if test -n "$PKG_CONFIG" && \ | ||
17532 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-evas ecore evas\""; } >&5 | ||
17533 | ($PKG_CONFIG --exists --print-errors "ecore-evas ecore evas") 2>&5 | ||
17534 | ac_status=$? | ||
17535 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17536 | test $ac_status = 0; }; then | ||
17537 | pkg_cv_ECORE_EVAS_LIBS=`$PKG_CONFIG --libs "ecore-evas ecore evas" 2>/dev/null` | ||
17538 | else | ||
17539 | pkg_failed=yes | ||
17540 | fi | ||
17541 | else | ||
17542 | pkg_failed=untried | ||
17543 | fi | ||
17544 | |||
17545 | |||
17546 | |||
17547 | if test $pkg_failed = yes; then | ||
17548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17549 | $as_echo "no" >&6; } | ||
17550 | |||
17551 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
17552 | _pkg_short_errors_supported=yes | ||
17553 | else | ||
17554 | _pkg_short_errors_supported=no | ||
17555 | fi | ||
17556 | if test $_pkg_short_errors_supported = yes; then | ||
17557 | ECORE_EVAS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ecore-evas ecore evas" 2>&1` | ||
17558 | else | ||
17559 | ECORE_EVAS_PKG_ERRORS=`$PKG_CONFIG --print-errors "ecore-evas ecore evas" 2>&1` | ||
17560 | fi | ||
17561 | # Put the nasty error message in config.log where it belongs | ||
17562 | echo "$ECORE_EVAS_PKG_ERRORS" >&5 | ||
17563 | |||
17564 | build_tiler_example="no" | ||
17565 | elif test $pkg_failed = untried; then | ||
17566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17567 | $as_echo "no" >&6; } | ||
17568 | build_tiler_example="no" | ||
17569 | else | ||
17570 | ECORE_EVAS_CFLAGS=$pkg_cv_ECORE_EVAS_CFLAGS | ||
17571 | ECORE_EVAS_LIBS=$pkg_cv_ECORE_EVAS_LIBS | ||
17572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17573 | $as_echo "yes" >&6; } | ||
17574 | build_tiler_example="yes" | ||
17575 | fi | ||
17576 | |||
17577 | if test "x${build_tiler_example}" = "xyes"; then | ||
17578 | BUILD_TILER_EXAMPLE_TRUE= | ||
17579 | BUILD_TILER_EXAMPLE_FALSE='#' | ||
17580 | else | ||
17581 | BUILD_TILER_EXAMPLE_TRUE='#' | ||
17582 | BUILD_TILER_EXAMPLE_FALSE= | ||
17583 | fi | ||
17584 | |||
17585 | |||
17586 | |||
17587 | ### Checks for header files | ||
17588 | |||
17589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5 | ||
17590 | $as_echo_n "checking whether to enable assertions... " >&6; } | ||
17591 | # Check whether --enable-assert was given. | ||
17592 | if test "${enable_assert+set}" = set; then : | ||
17593 | enableval=$enable_assert; ac_enable_assert=$enableval | ||
17594 | if test "x$enableval" = xno; then : | ||
17595 | |||
17596 | $as_echo "#define NDEBUG 1" >>confdefs.h | ||
17597 | |||
17598 | elif test "x$enableval" != xyes; then : | ||
17599 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5 | ||
17600 | $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;} | ||
17601 | ac_enable_assert=yes | ||
17602 | fi | ||
17603 | else | ||
17604 | ac_enable_assert=yes | ||
17605 | fi | ||
17606 | |||
17607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5 | ||
17608 | $as_echo "$ac_enable_assert" >&6; } | ||
17609 | |||
17610 | ac_header_dirent=no | ||
17611 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | ||
17612 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | ||
17613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | ||
17614 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | ||
17615 | if eval "test \"\${$as_ac_Header+set}\"" = set; then : | ||
17616 | $as_echo_n "(cached) " >&6 | ||
17617 | else | ||
17618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17619 | /* end confdefs.h. */ | ||
17620 | #include <sys/types.h> | ||
17621 | #include <$ac_hdr> | ||
17622 | |||
17623 | int | ||
17624 | main () | ||
17625 | { | ||
17626 | if ((DIR *) 0) | ||
17627 | return 0; | ||
17628 | ; | ||
17629 | return 0; | ||
17630 | } | ||
17631 | _ACEOF | ||
17632 | if ac_fn_c_try_compile "$LINENO"; then : | ||
17633 | eval "$as_ac_Header=yes" | ||
17634 | else | ||
17635 | eval "$as_ac_Header=no" | ||
17636 | fi | ||
17637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17638 | fi | ||
17639 | eval ac_res=\$$as_ac_Header | ||
17640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
17641 | $as_echo "$ac_res" >&6; } | ||
17642 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
17643 | cat >>confdefs.h <<_ACEOF | ||
17644 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | ||
17645 | _ACEOF | ||
17646 | |||
17647 | ac_header_dirent=$ac_hdr; break | ||
17648 | fi | ||
17649 | |||
17650 | done | ||
17651 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | ||
17652 | if test $ac_header_dirent = dirent.h; then | ||
17653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | ||
17654 | $as_echo_n "checking for library containing opendir... " >&6; } | ||
17655 | if test "${ac_cv_search_opendir+set}" = set; then : | ||
17656 | $as_echo_n "(cached) " >&6 | ||
17657 | else | ||
17658 | ac_func_search_save_LIBS=$LIBS | ||
17659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17660 | /* end confdefs.h. */ | ||
17661 | |||
17662 | /* Override any GCC internal prototype to avoid an error. | ||
17663 | Use char because int might match the return type of a GCC | ||
17664 | builtin and then its argument prototype would still apply. */ | ||
17665 | #ifdef __cplusplus | ||
17666 | extern "C" | ||
17667 | #endif | ||
17668 | char opendir (); | ||
17669 | int | ||
17670 | main () | ||
17671 | { | ||
17672 | return opendir (); | ||
17673 | ; | ||
17674 | return 0; | ||
17675 | } | ||
17676 | _ACEOF | ||
17677 | for ac_lib in '' dir; do | ||
17678 | if test -z "$ac_lib"; then | ||
17679 | ac_res="none required" | ||
17680 | else | ||
17681 | ac_res=-l$ac_lib | ||
17682 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
17683 | fi | ||
17684 | if ac_fn_c_try_link "$LINENO"; then : | ||
17685 | ac_cv_search_opendir=$ac_res | ||
17686 | fi | ||
17687 | rm -f core conftest.err conftest.$ac_objext \ | ||
17688 | conftest$ac_exeext | ||
17689 | if test "${ac_cv_search_opendir+set}" = set; then : | ||
17690 | break | ||
17691 | fi | ||
17692 | done | ||
17693 | if test "${ac_cv_search_opendir+set}" = set; then : | ||
17694 | |||
17695 | else | ||
17696 | ac_cv_search_opendir=no | ||
17697 | fi | ||
17698 | rm conftest.$ac_ext | ||
17699 | LIBS=$ac_func_search_save_LIBS | ||
17700 | fi | ||
17701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | ||
17702 | $as_echo "$ac_cv_search_opendir" >&6; } | ||
17703 | ac_res=$ac_cv_search_opendir | ||
17704 | if test "$ac_res" != no; then : | ||
17705 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
17706 | |||
17707 | fi | ||
17708 | |||
17709 | else | ||
17710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | ||
17711 | $as_echo_n "checking for library containing opendir... " >&6; } | ||
17712 | if test "${ac_cv_search_opendir+set}" = set; then : | ||
17713 | $as_echo_n "(cached) " >&6 | ||
17714 | else | ||
17715 | ac_func_search_save_LIBS=$LIBS | ||
17716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17717 | /* end confdefs.h. */ | ||
17718 | |||
17719 | /* Override any GCC internal prototype to avoid an error. | ||
17720 | Use char because int might match the return type of a GCC | ||
17721 | builtin and then its argument prototype would still apply. */ | ||
17722 | #ifdef __cplusplus | ||
17723 | extern "C" | ||
17724 | #endif | ||
17725 | char opendir (); | ||
17726 | int | ||
17727 | main () | ||
17728 | { | ||
17729 | return opendir (); | ||
17730 | ; | ||
17731 | return 0; | ||
17732 | } | ||
17733 | _ACEOF | ||
17734 | for ac_lib in '' x; do | ||
17735 | if test -z "$ac_lib"; then | ||
17736 | ac_res="none required" | ||
17737 | else | ||
17738 | ac_res=-l$ac_lib | ||
17739 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
17740 | fi | ||
17741 | if ac_fn_c_try_link "$LINENO"; then : | ||
17742 | ac_cv_search_opendir=$ac_res | ||
17743 | fi | ||
17744 | rm -f core conftest.err conftest.$ac_objext \ | ||
17745 | conftest$ac_exeext | ||
17746 | if test "${ac_cv_search_opendir+set}" = set; then : | ||
17747 | break | ||
17748 | fi | ||
17749 | done | ||
17750 | if test "${ac_cv_search_opendir+set}" = set; then : | ||
17751 | |||
17752 | else | ||
17753 | ac_cv_search_opendir=no | ||
17754 | fi | ||
17755 | rm conftest.$ac_ext | ||
17756 | LIBS=$ac_func_search_save_LIBS | ||
17757 | fi | ||
17758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | ||
17759 | $as_echo "$ac_cv_search_opendir" >&6; } | ||
17760 | ac_res=$ac_cv_search_opendir | ||
17761 | if test "$ac_res" != no; then : | ||
17762 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
17763 | |||
17764 | fi | ||
17765 | |||
17766 | fi | ||
17767 | |||
17768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | ||
17769 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | ||
17770 | if test "${ac_cv_header_time+set}" = set; then : | ||
17771 | $as_echo_n "(cached) " >&6 | ||
17772 | else | ||
17773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17774 | /* end confdefs.h. */ | ||
17775 | #include <sys/types.h> | ||
17776 | #include <sys/time.h> | ||
17777 | #include <time.h> | ||
17778 | |||
17779 | int | ||
17780 | main () | ||
17781 | { | ||
17782 | if ((struct tm *) 0) | ||
17783 | return 0; | ||
17784 | ; | ||
17785 | return 0; | ||
17786 | } | ||
17787 | _ACEOF | ||
17788 | if ac_fn_c_try_compile "$LINENO"; then : | ||
17789 | ac_cv_header_time=yes | ||
17790 | else | ||
17791 | ac_cv_header_time=no | ||
17792 | fi | ||
17793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17794 | fi | ||
17795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | ||
17796 | $as_echo "$ac_cv_header_time" >&6; } | ||
17797 | if test $ac_cv_header_time = yes; then | ||
17798 | |||
17799 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | ||
17800 | |||
17801 | fi | ||
17802 | |||
17803 | |||
17804 | |||
17805 | default_max="4096" | ||
17806 | ac_ext=c | ||
17807 | ac_cpp='$CPP $CPPFLAGS' | ||
17808 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
17809 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
17810 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
17811 | |||
17812 | |||
17813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATH_MAX in limits.h" >&5 | ||
17814 | $as_echo_n "checking for PATH_MAX in limits.h... " >&6; } | ||
17815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17816 | /* end confdefs.h. */ | ||
17817 | |||
17818 | #include <limits.h> | ||
17819 | |||
17820 | int | ||
17821 | main () | ||
17822 | { | ||
17823 | |||
17824 | int i = PATH_MAX; | ||
17825 | |||
17826 | ; | ||
17827 | return 0; | ||
17828 | } | ||
17829 | _ACEOF | ||
17830 | if ac_fn_c_try_compile "$LINENO"; then : | ||
17831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17832 | $as_echo "yes" >&6; } | ||
17833 | else | ||
17834 | |||
17835 | |||
17836 | cat >>confdefs.h <<_ACEOF | ||
17837 | #define PATH_MAX ${default_max} | ||
17838 | _ACEOF | ||
17839 | |||
17840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: using ${default_max}" >&5 | ||
17841 | $as_echo "no: using ${default_max}" >&6; } | ||
17842 | |||
17843 | fi | ||
17844 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17845 | |||
17846 | ac_ext=c | ||
17847 | ac_cpp='$CPP $CPPFLAGS' | ||
17848 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
17849 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
17850 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
17851 | |||
17852 | |||
17853 | |||
17854 | for ac_header in unistd.h libgen.h inttypes.h stdint.h sys/types.h siginfo.h | ||
17855 | do : | ||
17856 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
17857 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
17858 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
17859 | cat >>confdefs.h <<_ACEOF | ||
17860 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
17861 | _ACEOF | ||
17862 | |||
17863 | fi | ||
17864 | |||
17865 | done | ||
17866 | |||
17867 | |||
17868 | if test "x${ac_cv_header_inttypes_h}" = "xyes" ; then | ||
17869 | EINA_CONFIGURE_HAVE_INTTYPES_H="#define EINA_HAVE_INTTYPES_H" | ||
17870 | |||
17871 | $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h | ||
17872 | |||
17873 | fi | ||
17874 | |||
17875 | |||
17876 | if test "x${ac_cv_header_inttypes_h}" = "xyes" ; then | ||
17877 | EINA_CONFIGURE_HAVE_STDINT_H="#define EINA_HAVE_STDINT_H" | ||
17878 | |||
17879 | $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h | ||
17880 | |||
17881 | fi | ||
17882 | |||
17883 | |||
17884 | ### Checks for types | ||
17885 | |||
17886 | # The cast to long int works around a bug in the HP C Compiler | ||
17887 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
17888 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
17889 | # This bug is HP SR number 8606223364. | ||
17890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 | ||
17891 | $as_echo_n "checking size of wchar_t... " >&6; } | ||
17892 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then : | ||
17893 | $as_echo_n "(cached) " >&6 | ||
17894 | else | ||
17895 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"; then : | ||
17896 | |||
17897 | else | ||
17898 | if test "$ac_cv_type_wchar_t" = yes; then | ||
17899 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
17900 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
17901 | as_fn_error 77 "cannot compute sizeof (wchar_t) | ||
17902 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
17903 | else | ||
17904 | ac_cv_sizeof_wchar_t=0 | ||
17905 | fi | ||
17906 | fi | ||
17907 | |||
17908 | fi | ||
17909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 | ||
17910 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } | ||
17911 | |||
17912 | |||
17913 | |||
17914 | cat >>confdefs.h <<_ACEOF | ||
17915 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | ||
17916 | _ACEOF | ||
17917 | |||
17918 | |||
17919 | EINA_SIZEOF_WCHAR_T=$ac_cv_sizeof_wchar_t | ||
17920 | |||
17921 | ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "#include <signal.h> | ||
17922 | #if HAVE_SIGINFO_H | ||
17923 | # include <siginfo.h> | ||
17924 | #endif | ||
17925 | |||
17926 | " | ||
17927 | if test "x$ac_cv_type_siginfo_t" = x""yes; then : | ||
17928 | |||
17929 | cat >>confdefs.h <<_ACEOF | ||
17930 | #define HAVE_SIGINFO_T 1 | ||
17931 | _ACEOF | ||
17932 | |||
17933 | |||
17934 | fi | ||
17935 | |||
17936 | |||
17937 | ### Checks for structures | ||
17938 | |||
17939 | |||
17940 | ### Checks for compiler characteristics | ||
17941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | ||
17942 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | ||
17943 | if test "${ac_cv_c_const+set}" = set; then : | ||
17944 | $as_echo_n "(cached) " >&6 | ||
17945 | else | ||
17946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17947 | /* end confdefs.h. */ | ||
17948 | |||
17949 | int | ||
17950 | main () | ||
17951 | { | ||
17952 | /* FIXME: Include the comments suggested by Paul. */ | ||
17953 | #ifndef __cplusplus | ||
17954 | /* Ultrix mips cc rejects this. */ | ||
17955 | typedef int charset[2]; | ||
17956 | const charset cs; | ||
17957 | /* SunOS 4.1.1 cc rejects this. */ | ||
17958 | char const *const *pcpcc; | ||
17959 | char **ppc; | ||
17960 | /* NEC SVR4.0.2 mips cc rejects this. */ | ||
17961 | struct point {int x, y;}; | ||
17962 | static struct point const zero = {0,0}; | ||
17963 | /* AIX XL C 1.02.0.0 rejects this. | ||
17964 | It does not let you subtract one const X* pointer from another in | ||
17965 | an arm of an if-expression whose if-part is not a constant | ||
17966 | expression */ | ||
17967 | const char *g = "string"; | ||
17968 | pcpcc = &g + (g ? g-g : 0); | ||
17969 | /* HPUX 7.0 cc rejects these. */ | ||
17970 | ++pcpcc; | ||
17971 | ppc = (char**) pcpcc; | ||
17972 | pcpcc = (char const *const *) ppc; | ||
17973 | { /* SCO 3.2v4 cc rejects this. */ | ||
17974 | char *t; | ||
17975 | char const *s = 0 ? (char *) 0 : (char const *) 0; | ||
17976 | |||
17977 | *t++ = 0; | ||
17978 | if (s) return 0; | ||
17979 | } | ||
17980 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | ||
17981 | int x[] = {25, 17}; | ||
17982 | const int *foo = &x[0]; | ||
17983 | ++foo; | ||
17984 | } | ||
17985 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | ||
17986 | typedef const int *iptr; | ||
17987 | iptr p = 0; | ||
17988 | ++p; | ||
17989 | } | ||
17990 | { /* AIX XL C 1.02.0.0 rejects this saying | ||
17991 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | ||
17992 | struct s { int j; const int *ap[3]; }; | ||
17993 | struct s *b; b->j = 5; | ||
17994 | } | ||
17995 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | ||
17996 | const int foo = 10; | ||
17997 | if (!foo) return 0; | ||
17998 | } | ||
17999 | return !cs[0] && !zero.x; | ||
18000 | #endif | ||
18001 | |||
18002 | ; | ||
18003 | return 0; | ||
18004 | } | ||
18005 | _ACEOF | ||
18006 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18007 | ac_cv_c_const=yes | ||
18008 | else | ||
18009 | ac_cv_c_const=no | ||
18010 | fi | ||
18011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18012 | fi | ||
18013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | ||
18014 | $as_echo "$ac_cv_c_const" >&6; } | ||
18015 | if test $ac_cv_c_const = no; then | ||
18016 | |||
18017 | $as_echo "#define const /**/" >>confdefs.h | ||
18018 | |||
18019 | fi | ||
18020 | |||
18021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | ||
18022 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | ||
18023 | if test "${ac_cv_c_bigendian+set}" = set; then : | ||
18024 | $as_echo_n "(cached) " >&6 | ||
18025 | else | ||
18026 | ac_cv_c_bigendian=unknown | ||
18027 | # See if we're dealing with a universal compiler. | ||
18028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18029 | /* end confdefs.h. */ | ||
18030 | #ifndef __APPLE_CC__ | ||
18031 | not a universal capable compiler | ||
18032 | #endif | ||
18033 | typedef int dummy; | ||
18034 | |||
18035 | _ACEOF | ||
18036 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18037 | |||
18038 | # Check for potential -arch flags. It is not universal unless | ||
18039 | # there are at least two -arch flags with different values. | ||
18040 | ac_arch= | ||
18041 | ac_prev= | ||
18042 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | ||
18043 | if test -n "$ac_prev"; then | ||
18044 | case $ac_word in | ||
18045 | i?86 | x86_64 | ppc | ppc64) | ||
18046 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | ||
18047 | ac_arch=$ac_word | ||
18048 | else | ||
18049 | ac_cv_c_bigendian=universal | ||
18050 | break | ||
18051 | fi | ||
18052 | ;; | ||
18053 | esac | ||
18054 | ac_prev= | ||
18055 | elif test "x$ac_word" = "x-arch"; then | ||
18056 | ac_prev=arch | ||
18057 | fi | ||
18058 | done | ||
18059 | fi | ||
18060 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18061 | if test $ac_cv_c_bigendian = unknown; then | ||
18062 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
18063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18064 | /* end confdefs.h. */ | ||
18065 | #include <sys/types.h> | ||
18066 | #include <sys/param.h> | ||
18067 | |||
18068 | int | ||
18069 | main () | ||
18070 | { | ||
18071 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | ||
18072 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | ||
18073 | && LITTLE_ENDIAN) | ||
18074 | bogus endian macros | ||
18075 | #endif | ||
18076 | |||
18077 | ; | ||
18078 | return 0; | ||
18079 | } | ||
18080 | _ACEOF | ||
18081 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18082 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
18083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18084 | /* end confdefs.h. */ | ||
18085 | #include <sys/types.h> | ||
18086 | #include <sys/param.h> | ||
18087 | |||
18088 | int | ||
18089 | main () | ||
18090 | { | ||
18091 | #if BYTE_ORDER != BIG_ENDIAN | ||
18092 | not big endian | ||
18093 | #endif | ||
18094 | |||
18095 | ; | ||
18096 | return 0; | ||
18097 | } | ||
18098 | _ACEOF | ||
18099 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18100 | ac_cv_c_bigendian=yes | ||
18101 | else | ||
18102 | ac_cv_c_bigendian=no | ||
18103 | fi | ||
18104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18105 | fi | ||
18106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18107 | fi | ||
18108 | if test $ac_cv_c_bigendian = unknown; then | ||
18109 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | ||
18110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18111 | /* end confdefs.h. */ | ||
18112 | #include <limits.h> | ||
18113 | |||
18114 | int | ||
18115 | main () | ||
18116 | { | ||
18117 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | ||
18118 | bogus endian macros | ||
18119 | #endif | ||
18120 | |||
18121 | ; | ||
18122 | return 0; | ||
18123 | } | ||
18124 | _ACEOF | ||
18125 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18126 | # It does; now see whether it defined to _BIG_ENDIAN or not. | ||
18127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18128 | /* end confdefs.h. */ | ||
18129 | #include <limits.h> | ||
18130 | |||
18131 | int | ||
18132 | main () | ||
18133 | { | ||
18134 | #ifndef _BIG_ENDIAN | ||
18135 | not big endian | ||
18136 | #endif | ||
18137 | |||
18138 | ; | ||
18139 | return 0; | ||
18140 | } | ||
18141 | _ACEOF | ||
18142 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18143 | ac_cv_c_bigendian=yes | ||
18144 | else | ||
18145 | ac_cv_c_bigendian=no | ||
18146 | fi | ||
18147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18148 | fi | ||
18149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18150 | fi | ||
18151 | if test $ac_cv_c_bigendian = unknown; then | ||
18152 | # Compile a test program. | ||
18153 | if test "$cross_compiling" = yes; then : | ||
18154 | # Try to guess by grepping values from an object file. | ||
18155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18156 | /* end confdefs.h. */ | ||
18157 | short int ascii_mm[] = | ||
18158 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
18159 | short int ascii_ii[] = | ||
18160 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
18161 | int use_ascii (int i) { | ||
18162 | return ascii_mm[i] + ascii_ii[i]; | ||
18163 | } | ||
18164 | short int ebcdic_ii[] = | ||
18165 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
18166 | short int ebcdic_mm[] = | ||
18167 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
18168 | int use_ebcdic (int i) { | ||
18169 | return ebcdic_mm[i] + ebcdic_ii[i]; | ||
18170 | } | ||
18171 | extern int foo; | ||
18172 | |||
18173 | int | ||
18174 | main () | ||
18175 | { | ||
18176 | return use_ascii (foo) == use_ebcdic (foo); | ||
18177 | ; | ||
18178 | return 0; | ||
18179 | } | ||
18180 | _ACEOF | ||
18181 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18182 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | ||
18183 | ac_cv_c_bigendian=yes | ||
18184 | fi | ||
18185 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
18186 | if test "$ac_cv_c_bigendian" = unknown; then | ||
18187 | ac_cv_c_bigendian=no | ||
18188 | else | ||
18189 | # finding both strings is unlikely to happen, but who knows? | ||
18190 | ac_cv_c_bigendian=unknown | ||
18191 | fi | ||
18192 | fi | ||
18193 | fi | ||
18194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18195 | else | ||
18196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18197 | /* end confdefs.h. */ | ||
18198 | $ac_includes_default | ||
18199 | int | ||
18200 | main () | ||
18201 | { | ||
18202 | |||
18203 | /* Are we little or big endian? From Harbison&Steele. */ | ||
18204 | union | ||
18205 | { | ||
18206 | long int l; | ||
18207 | char c[sizeof (long int)]; | ||
18208 | } u; | ||
18209 | u.l = 1; | ||
18210 | return u.c[sizeof (long int) - 1] == 1; | ||
18211 | |||
18212 | ; | ||
18213 | return 0; | ||
18214 | } | ||
18215 | _ACEOF | ||
18216 | if ac_fn_c_try_run "$LINENO"; then : | ||
18217 | ac_cv_c_bigendian=no | ||
18218 | else | ||
18219 | ac_cv_c_bigendian=yes | ||
18220 | fi | ||
18221 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
18222 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
18223 | fi | ||
18224 | |||
18225 | fi | ||
18226 | fi | ||
18227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | ||
18228 | $as_echo "$ac_cv_c_bigendian" >&6; } | ||
18229 | case $ac_cv_c_bigendian in #( | ||
18230 | yes) | ||
18231 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | ||
18232 | ;; #( | ||
18233 | no) | ||
18234 | ;; #( | ||
18235 | universal) | ||
18236 | |||
18237 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | ||
18238 | |||
18239 | ;; #( | ||
18240 | *) | ||
18241 | as_fn_error $? "unknown endianness | ||
18242 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | ||
18243 | esac | ||
18244 | |||
18245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | ||
18246 | $as_echo_n "checking for inline... " >&6; } | ||
18247 | if test "${ac_cv_c_inline+set}" = set; then : | ||
18248 | $as_echo_n "(cached) " >&6 | ||
18249 | else | ||
18250 | ac_cv_c_inline=no | ||
18251 | for ac_kw in inline __inline__ __inline; do | ||
18252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18253 | /* end confdefs.h. */ | ||
18254 | #ifndef __cplusplus | ||
18255 | typedef int foo_t; | ||
18256 | static $ac_kw foo_t static_foo () {return 0; } | ||
18257 | $ac_kw foo_t foo () {return 0; } | ||
18258 | #endif | ||
18259 | |||
18260 | _ACEOF | ||
18261 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18262 | ac_cv_c_inline=$ac_kw | ||
18263 | fi | ||
18264 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18265 | test "$ac_cv_c_inline" != no && break | ||
18266 | done | ||
18267 | |||
18268 | fi | ||
18269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | ||
18270 | $as_echo "$ac_cv_c_inline" >&6; } | ||
18271 | |||
18272 | case $ac_cv_c_inline in | ||
18273 | inline | yes) ;; | ||
18274 | *) | ||
18275 | case $ac_cv_c_inline in | ||
18276 | no) ac_val=;; | ||
18277 | *) ac_val=$ac_cv_c_inline;; | ||
18278 | esac | ||
18279 | cat >>confdefs.h <<_ACEOF | ||
18280 | #ifndef __cplusplus | ||
18281 | #define inline $ac_val | ||
18282 | #endif | ||
18283 | _ACEOF | ||
18284 | ;; | ||
18285 | esac | ||
18286 | |||
18287 | case $ac_cv_prog_cc_stdc in #( | ||
18288 | no) : | ||
18289 | ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( | ||
18290 | *) : | ||
18291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 | ||
18292 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | ||
18293 | if test "${ac_cv_prog_cc_c99+set}" = set; then : | ||
18294 | $as_echo_n "(cached) " >&6 | ||
18295 | else | ||
18296 | ac_cv_prog_cc_c99=no | ||
18297 | ac_save_CC=$CC | ||
18298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18299 | /* end confdefs.h. */ | ||
18300 | #include <stdarg.h> | ||
18301 | #include <stdbool.h> | ||
18302 | #include <stdlib.h> | ||
18303 | #include <wchar.h> | ||
18304 | #include <stdio.h> | ||
18305 | |||
18306 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | ||
18307 | #define debug(...) fprintf (stderr, __VA_ARGS__) | ||
18308 | #define showlist(...) puts (#__VA_ARGS__) | ||
18309 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | ||
18310 | static void | ||
18311 | test_varargs_macros (void) | ||
18312 | { | ||
18313 | int x = 1234; | ||
18314 | int y = 5678; | ||
18315 | debug ("Flag"); | ||
18316 | debug ("X = %d\n", x); | ||
18317 | showlist (The first, second, and third items.); | ||
18318 | report (x>y, "x is %d but y is %d", x, y); | ||
18319 | } | ||
18320 | |||
18321 | // Check long long types. | ||
18322 | #define BIG64 18446744073709551615ull | ||
18323 | #define BIG32 4294967295ul | ||
18324 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | ||
18325 | #if !BIG_OK | ||
18326 | your preprocessor is broken; | ||
18327 | #endif | ||
18328 | #if BIG_OK | ||
18329 | #else | ||
18330 | your preprocessor is broken; | ||
18331 | #endif | ||
18332 | static long long int bignum = -9223372036854775807LL; | ||
18333 | static unsigned long long int ubignum = BIG64; | ||
18334 | |||
18335 | struct incomplete_array | ||
18336 | { | ||
18337 | int datasize; | ||
18338 | double data[]; | ||
18339 | }; | ||
18340 | |||
18341 | struct named_init { | ||
18342 | int number; | ||
18343 | const wchar_t *name; | ||
18344 | double average; | ||
18345 | }; | ||
18346 | |||
18347 | typedef const char *ccp; | ||
18348 | |||
18349 | static inline int | ||
18350 | test_restrict (ccp restrict text) | ||
18351 | { | ||
18352 | // See if C++-style comments work. | ||
18353 | // Iterate through items via the restricted pointer. | ||
18354 | // Also check for declarations in for loops. | ||
18355 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | ||
18356 | continue; | ||
18357 | return 0; | ||
18358 | } | ||
18359 | |||
18360 | // Check varargs and va_copy. | ||
18361 | static void | ||
18362 | test_varargs (const char *format, ...) | ||
18363 | { | ||
18364 | va_list args; | ||
18365 | va_start (args, format); | ||
18366 | va_list args_copy; | ||
18367 | va_copy (args_copy, args); | ||
18368 | |||
18369 | const char *str; | ||
18370 | int number; | ||
18371 | float fnumber; | ||
18372 | |||
18373 | while (*format) | ||
18374 | { | ||
18375 | switch (*format++) | ||
18376 | { | ||
18377 | case 's': // string | ||
18378 | str = va_arg (args_copy, const char *); | ||
18379 | break; | ||
18380 | case 'd': // int | ||
18381 | number = va_arg (args_copy, int); | ||
18382 | break; | ||
18383 | case 'f': // float | ||
18384 | fnumber = va_arg (args_copy, double); | ||
18385 | break; | ||
18386 | default: | ||
18387 | break; | ||
18388 | } | ||
18389 | } | ||
18390 | va_end (args_copy); | ||
18391 | va_end (args); | ||
18392 | } | ||
18393 | |||
18394 | int | ||
18395 | main () | ||
18396 | { | ||
18397 | |||
18398 | // Check bool. | ||
18399 | _Bool success = false; | ||
18400 | |||
18401 | // Check restrict. | ||
18402 | if (test_restrict ("String literal") == 0) | ||
18403 | success = true; | ||
18404 | char *restrict newvar = "Another string"; | ||
18405 | |||
18406 | // Check varargs. | ||
18407 | test_varargs ("s, d' f .", "string", 65, 34.234); | ||
18408 | test_varargs_macros (); | ||
18409 | |||
18410 | // Check flexible array members. | ||
18411 | struct incomplete_array *ia = | ||
18412 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | ||
18413 | ia->datasize = 10; | ||
18414 | for (int i = 0; i < ia->datasize; ++i) | ||
18415 | ia->data[i] = i * 1.234; | ||
18416 | |||
18417 | // Check named initializers. | ||
18418 | struct named_init ni = { | ||
18419 | .number = 34, | ||
18420 | .name = L"Test wide string", | ||
18421 | .average = 543.34343, | ||
18422 | }; | ||
18423 | |||
18424 | ni.number = 58; | ||
18425 | |||
18426 | int dynamic_array[ni.number]; | ||
18427 | dynamic_array[ni.number - 1] = 543; | ||
18428 | |||
18429 | // work around unused variable warnings | ||
18430 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | ||
18431 | || dynamic_array[ni.number - 1] != 543); | ||
18432 | |||
18433 | ; | ||
18434 | return 0; | ||
18435 | } | ||
18436 | _ACEOF | ||
18437 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 | ||
18438 | do | ||
18439 | CC="$ac_save_CC $ac_arg" | ||
18440 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18441 | ac_cv_prog_cc_c99=$ac_arg | ||
18442 | fi | ||
18443 | rm -f core conftest.err conftest.$ac_objext | ||
18444 | test "x$ac_cv_prog_cc_c99" != "xno" && break | ||
18445 | done | ||
18446 | rm -f conftest.$ac_ext | ||
18447 | CC=$ac_save_CC | ||
18448 | |||
18449 | fi | ||
18450 | # AC_CACHE_VAL | ||
18451 | case "x$ac_cv_prog_cc_c99" in | ||
18452 | x) | ||
18453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
18454 | $as_echo "none needed" >&6; } ;; | ||
18455 | xno) | ||
18456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
18457 | $as_echo "unsupported" >&6; } ;; | ||
18458 | *) | ||
18459 | CC="$CC $ac_cv_prog_cc_c99" | ||
18460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | ||
18461 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | ||
18462 | esac | ||
18463 | if test "x$ac_cv_prog_cc_c99" != xno; then : | ||
18464 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | ||
18465 | else | ||
18466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
18467 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
18468 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
18469 | $as_echo_n "(cached) " >&6 | ||
18470 | else | ||
18471 | ac_cv_prog_cc_c89=no | ||
18472 | ac_save_CC=$CC | ||
18473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18474 | /* end confdefs.h. */ | ||
18475 | #include <stdarg.h> | ||
18476 | #include <stdio.h> | ||
18477 | #include <sys/types.h> | ||
18478 | #include <sys/stat.h> | ||
18479 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
18480 | struct buf { int x; }; | ||
18481 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
18482 | static char *e (p, i) | ||
18483 | char **p; | ||
18484 | int i; | ||
18485 | { | ||
18486 | return p[i]; | ||
18487 | } | ||
18488 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
18489 | { | ||
18490 | char *s; | ||
18491 | va_list v; | ||
18492 | va_start (v,p); | ||
18493 | s = g (p, va_arg (v,int)); | ||
18494 | va_end (v); | ||
18495 | return s; | ||
18496 | } | ||
18497 | |||
18498 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
18499 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
18500 | These don't provoke an error unfortunately, instead are silently treated | ||
18501 | as 'x'. The following induces an error, until -std is added to get | ||
18502 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
18503 | array size at least. It's necessary to write '\x00'==0 to get something | ||
18504 | that's true only with -std. */ | ||
18505 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
18506 | |||
18507 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
18508 | inside strings and character constants. */ | ||
18509 | #define FOO(x) 'x' | ||
18510 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
18511 | |||
18512 | int test (int i, double x); | ||
18513 | struct s1 {int (*f) (int a);}; | ||
18514 | struct s2 {int (*f) (double a);}; | ||
18515 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
18516 | int argc; | ||
18517 | char **argv; | ||
18518 | int | ||
18519 | main () | ||
18520 | { | ||
18521 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
18522 | ; | ||
18523 | return 0; | ||
18524 | } | ||
18525 | _ACEOF | ||
18526 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
18527 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
18528 | do | ||
18529 | CC="$ac_save_CC $ac_arg" | ||
18530 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18531 | ac_cv_prog_cc_c89=$ac_arg | ||
18532 | fi | ||
18533 | rm -f core conftest.err conftest.$ac_objext | ||
18534 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
18535 | done | ||
18536 | rm -f conftest.$ac_ext | ||
18537 | CC=$ac_save_CC | ||
18538 | |||
18539 | fi | ||
18540 | # AC_CACHE_VAL | ||
18541 | case "x$ac_cv_prog_cc_c89" in | ||
18542 | x) | ||
18543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
18544 | $as_echo "none needed" >&6; } ;; | ||
18545 | xno) | ||
18546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
18547 | $as_echo "unsupported" >&6; } ;; | ||
18548 | *) | ||
18549 | CC="$CC $ac_cv_prog_cc_c89" | ||
18550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
18551 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
18552 | esac | ||
18553 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
18554 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | ||
18555 | else | ||
18556 | ac_cv_prog_cc_stdc=no | ||
18557 | fi | ||
18558 | |||
18559 | fi | ||
18560 | ;; | ||
18561 | esac | ||
18562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 | ||
18563 | $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } | ||
18564 | if test "${ac_cv_prog_cc_stdc+set}" = set; then : | ||
18565 | $as_echo_n "(cached) " >&6 | ||
18566 | fi | ||
18567 | |||
18568 | case $ac_cv_prog_cc_stdc in #( | ||
18569 | no) : | ||
18570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
18571 | $as_echo "unsupported" >&6; } ;; #( | ||
18572 | '') : | ||
18573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
18574 | $as_echo "none needed" >&6; } ;; #( | ||
18575 | *) : | ||
18576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 | ||
18577 | $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; | ||
18578 | esac | ||
18579 | |||
18580 | |||
18581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((unused))" >&5 | ||
18582 | $as_echo_n "checking for __attribute__ ((unused))... " >&6; } | ||
18583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18584 | /* end confdefs.h. */ | ||
18585 | |||
18586 | void foo(int x __attribute__ ((unused))) {} | ||
18587 | |||
18588 | int | ||
18589 | main () | ||
18590 | { | ||
18591 | |||
18592 | |||
18593 | ; | ||
18594 | return 0; | ||
18595 | } | ||
18596 | _ACEOF | ||
18597 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18598 | have_attribute_unused="yes" | ||
18599 | else | ||
18600 | have_attribute_unused="no" | ||
18601 | fi | ||
18602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_attribute_unused}" >&5 | ||
18604 | $as_echo "${have_attribute_unused}" >&6; } | ||
18605 | |||
18606 | if test "x${have_attribute_unused}" = "xyes" ; then | ||
18607 | |||
18608 | $as_echo "#define __UNUSED__ __attribute__ ((unused))" >>confdefs.h | ||
18609 | |||
18610 | else | ||
18611 | |||
18612 | $as_echo "#define __UNUSED__ /**/" >>confdefs.h | ||
18613 | |||
18614 | fi | ||
18615 | |||
18616 | |||
18617 | have_wince="no" | ||
18618 | have_win32="no" | ||
18619 | EINA_CPPFLAGS="" | ||
18620 | EINA_CFLAGS="" | ||
18621 | case "$host_os" in | ||
18622 | mingw32ce*) | ||
18623 | EINA_CPPFLAGS="-D_WIN32_WCE=0x0420" | ||
18624 | EINA_CFLAGS="${EVIL_CFLAGS}" | ||
18625 | have_win32="yes" | ||
18626 | have_wince="yes" | ||
18627 | ;; | ||
18628 | mingw*) | ||
18629 | EINA_CPPFLAGS="-D_WIN32_WINNT=0x0501" | ||
18630 | EINA_CFLAGS="${EVIL_CFLAGS}" | ||
18631 | have_win32="yes" | ||
18632 | ;; | ||
18633 | esac | ||
18634 | if test "x$have_wince" = "xyes"; then | ||
18635 | EINA_HAVE_WINCE_TRUE= | ||
18636 | EINA_HAVE_WINCE_FALSE='#' | ||
18637 | else | ||
18638 | EINA_HAVE_WINCE_TRUE='#' | ||
18639 | EINA_HAVE_WINCE_FALSE= | ||
18640 | fi | ||
18641 | |||
18642 | if test "x$have_win32" = "xyes"; then | ||
18643 | EINA_HAVE_WIN32_TRUE= | ||
18644 | EINA_HAVE_WIN32_FALSE='#' | ||
18645 | else | ||
18646 | EINA_HAVE_WIN32_TRUE='#' | ||
18647 | EINA_HAVE_WIN32_FALSE= | ||
18648 | fi | ||
18649 | |||
18650 | |||
18651 | |||
18652 | |||
18653 | |||
18654 | CFLAGS_save="${CFLAGS}" | ||
18655 | CFLAGS="${CFLAGS} -Wall" | ||
18656 | |||
18657 | ac_ext=c | ||
18658 | ac_cpp='$CPP $CPPFLAGS' | ||
18659 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
18660 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
18661 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
18662 | |||
18663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wall" >&5 | ||
18664 | $as_echo_n "checking whether the compiler supports -Wall... " >&6; } | ||
18665 | |||
18666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18667 | /* end confdefs.h. */ | ||
18668 | |||
18669 | int | ||
18670 | main () | ||
18671 | { | ||
18672 | |||
18673 | ; | ||
18674 | return 0; | ||
18675 | } | ||
18676 | _ACEOF | ||
18677 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18678 | have_flag="yes" | ||
18679 | else | ||
18680 | have_flag="no" | ||
18681 | fi | ||
18682 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_flag}" >&5 | ||
18684 | $as_echo "${have_flag}" >&6; } | ||
18685 | |||
18686 | if test "x${have_flag}" = "xno" ; then | ||
18687 | CFLAGS="${CFLAGS_save}" | ||
18688 | fi | ||
18689 | ac_ext=c | ||
18690 | ac_cpp='$CPP $CPPFLAGS' | ||
18691 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
18692 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
18693 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
18694 | |||
18695 | |||
18696 | |||
18697 | |||
18698 | |||
18699 | CFLAGS_save="${CFLAGS}" | ||
18700 | CFLAGS="${CFLAGS} -W" | ||
18701 | |||
18702 | ac_ext=c | ||
18703 | ac_cpp='$CPP $CPPFLAGS' | ||
18704 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
18705 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
18706 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
18707 | |||
18708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -W" >&5 | ||
18709 | $as_echo_n "checking whether the compiler supports -W... " >&6; } | ||
18710 | |||
18711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18712 | /* end confdefs.h. */ | ||
18713 | |||
18714 | int | ||
18715 | main () | ||
18716 | { | ||
18717 | |||
18718 | ; | ||
18719 | return 0; | ||
18720 | } | ||
18721 | _ACEOF | ||
18722 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18723 | have_flag="yes" | ||
18724 | else | ||
18725 | have_flag="no" | ||
18726 | fi | ||
18727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_flag}" >&5 | ||
18729 | $as_echo "${have_flag}" >&6; } | ||
18730 | |||
18731 | if test "x${have_flag}" = "xno" ; then | ||
18732 | CFLAGS="${CFLAGS_save}" | ||
18733 | fi | ||
18734 | ac_ext=c | ||
18735 | ac_cpp='$CPP $CPPFLAGS' | ||
18736 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
18737 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
18738 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
18739 | |||
18740 | |||
18741 | |||
18742 | |||
18743 | |||
18744 | |||
18745 | |||
18746 | CFLAGS_save="${CFLAGS}" | ||
18747 | CFLAGS="${CFLAGS} -Wshadow" | ||
18748 | |||
18749 | ac_ext=c | ||
18750 | ac_cpp='$CPP $CPPFLAGS' | ||
18751 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
18752 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
18753 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
18754 | |||
18755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wshadow" >&5 | ||
18756 | $as_echo_n "checking whether the compiler supports -Wshadow... " >&6; } | ||
18757 | |||
18758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18759 | /* end confdefs.h. */ | ||
18760 | |||
18761 | int | ||
18762 | main () | ||
18763 | { | ||
18764 | |||
18765 | ; | ||
18766 | return 0; | ||
18767 | } | ||
18768 | _ACEOF | ||
18769 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18770 | have_flag="yes" | ||
18771 | else | ||
18772 | have_flag="no" | ||
18773 | fi | ||
18774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_flag}" >&5 | ||
18776 | $as_echo "${have_flag}" >&6; } | ||
18777 | |||
18778 | if test "x${have_flag}" = "xno" ; then | ||
18779 | CFLAGS="${CFLAGS_save}" | ||
18780 | fi | ||
18781 | ac_ext=c | ||
18782 | ac_cpp='$CPP $CPPFLAGS' | ||
18783 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
18784 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
18785 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
18786 | |||
18787 | |||
18788 | |||
18789 | |||
18790 | |||
18791 | |||
18792 | |||
18793 | |||
18794 | ### Checks for linker characteristics | ||
18795 | EINA_LIBS= | ||
18796 | lt_enable_auto_import="" | ||
18797 | case "${host_os}" in | ||
18798 | mingw*) | ||
18799 | EINA_LIBS="-ldl ${EVIL_LIBS} -lm" | ||
18800 | lt_enable_auto_import="-Wl,--enable-auto-import" | ||
18801 | ;; | ||
18802 | dragonfly*|openbsd*) | ||
18803 | EINA_LIBS="-lm" | ||
18804 | ;; | ||
18805 | freebsd*|netbsd*) | ||
18806 | EINA_LIBS="-lrt -lm" | ||
18807 | ;; | ||
18808 | darwin*) | ||
18809 | EINA_LIBS="-lm" | ||
18810 | ;; | ||
18811 | cygwin*) | ||
18812 | EINA_LIBS="-ldl -lm" | ||
18813 | ;; | ||
18814 | *) | ||
18815 | EINA_LIBS="-ldl -lrt -lm" | ||
18816 | ;; | ||
18817 | esac | ||
18818 | |||
18819 | |||
18820 | |||
18821 | case "$host_vendor" in | ||
18822 | ps3*) | ||
18823 | |||
18824 | pkg_failed=no | ||
18825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESCAPE" >&5 | ||
18826 | $as_echo_n "checking for ESCAPE... " >&6; } | ||
18827 | |||
18828 | if test -n "$ESCAPE_CFLAGS"; then | ||
18829 | pkg_cv_ESCAPE_CFLAGS="$ESCAPE_CFLAGS" | ||
18830 | elif test -n "$PKG_CONFIG"; then | ||
18831 | if test -n "$PKG_CONFIG" && \ | ||
18832 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"escape\""; } >&5 | ||
18833 | ($PKG_CONFIG --exists --print-errors "escape") 2>&5 | ||
18834 | ac_status=$? | ||
18835 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
18836 | test $ac_status = 0; }; then | ||
18837 | pkg_cv_ESCAPE_CFLAGS=`$PKG_CONFIG --cflags "escape" 2>/dev/null` | ||
18838 | else | ||
18839 | pkg_failed=yes | ||
18840 | fi | ||
18841 | else | ||
18842 | pkg_failed=untried | ||
18843 | fi | ||
18844 | if test -n "$ESCAPE_LIBS"; then | ||
18845 | pkg_cv_ESCAPE_LIBS="$ESCAPE_LIBS" | ||
18846 | elif test -n "$PKG_CONFIG"; then | ||
18847 | if test -n "$PKG_CONFIG" && \ | ||
18848 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"escape\""; } >&5 | ||
18849 | ($PKG_CONFIG --exists --print-errors "escape") 2>&5 | ||
18850 | ac_status=$? | ||
18851 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
18852 | test $ac_status = 0; }; then | ||
18853 | pkg_cv_ESCAPE_LIBS=`$PKG_CONFIG --libs "escape" 2>/dev/null` | ||
18854 | else | ||
18855 | pkg_failed=yes | ||
18856 | fi | ||
18857 | else | ||
18858 | pkg_failed=untried | ||
18859 | fi | ||
18860 | |||
18861 | |||
18862 | |||
18863 | if test $pkg_failed = yes; then | ||
18864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18865 | $as_echo "no" >&6; } | ||
18866 | |||
18867 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
18868 | _pkg_short_errors_supported=yes | ||
18869 | else | ||
18870 | _pkg_short_errors_supported=no | ||
18871 | fi | ||
18872 | if test $_pkg_short_errors_supported = yes; then | ||
18873 | ESCAPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "escape" 2>&1` | ||
18874 | else | ||
18875 | ESCAPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "escape" 2>&1` | ||
18876 | fi | ||
18877 | # Put the nasty error message in config.log where it belongs | ||
18878 | echo "$ESCAPE_PKG_ERRORS" >&5 | ||
18879 | |||
18880 | as_fn_error $? "Package requirements (escape) were not met: | ||
18881 | |||
18882 | $ESCAPE_PKG_ERRORS | ||
18883 | |||
18884 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
18885 | installed software in a non-standard prefix. | ||
18886 | |||
18887 | Alternatively, you may set the environment variables ESCAPE_CFLAGS | ||
18888 | and ESCAPE_LIBS to avoid the need to call pkg-config. | ||
18889 | See the pkg-config man page for more details." "$LINENO" 5 | ||
18890 | elif test $pkg_failed = untried; then | ||
18891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18892 | $as_echo "no" >&6; } | ||
18893 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
18894 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
18895 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
18896 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
18897 | path to pkg-config. | ||
18898 | |||
18899 | Alternatively, you may set the environment variables ESCAPE_CFLAGS | ||
18900 | and ESCAPE_LIBS to avoid the need to call pkg-config. | ||
18901 | See the pkg-config man page for more details. | ||
18902 | |||
18903 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
18904 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
18905 | else | ||
18906 | ESCAPE_CFLAGS=$pkg_cv_ESCAPE_CFLAGS | ||
18907 | ESCAPE_LIBS=$pkg_cv_ESCAPE_LIBS | ||
18908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18909 | $as_echo "yes" >&6; } | ||
18910 | |||
18911 | fi | ||
18912 | |||
18913 | $as_echo "#define HAVE_ESCAPE 1" >>confdefs.h | ||
18914 | |||
18915 | requirement_eina="escape" | ||
18916 | EINA_LIBS="${ESCAPE_LIBS}" | ||
18917 | EINA_CFLAGS="${ESCAPE_CFLAGS} ${EINA_CFLAGS}" | ||
18918 | ;; | ||
18919 | esac | ||
18920 | |||
18921 | |||
18922 | |||
18923 | LDFLAGS_save="${LDFLAGS}" | ||
18924 | LDFLAGS="${LDFLAGS} -fno-strict-aliasing" | ||
18925 | |||
18926 | ac_ext=c | ||
18927 | ac_cpp='$CPP $CPPFLAGS' | ||
18928 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
18929 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
18930 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
18931 | |||
18932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5 | ||
18933 | $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; } | ||
18934 | |||
18935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18936 | /* end confdefs.h. */ | ||
18937 | |||
18938 | int | ||
18939 | main () | ||
18940 | { | ||
18941 | |||
18942 | ; | ||
18943 | return 0; | ||
18944 | } | ||
18945 | _ACEOF | ||
18946 | if ac_fn_c_try_link "$LINENO"; then : | ||
18947 | have_flag="yes" | ||
18948 | else | ||
18949 | have_flag="no" | ||
18950 | fi | ||
18951 | rm -f core conftest.err conftest.$ac_objext \ | ||
18952 | conftest$ac_exeext conftest.$ac_ext | ||
18953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_flag}" >&5 | ||
18954 | $as_echo "${have_flag}" >&6; } | ||
18955 | |||
18956 | if test "x${have_flag}" = "xno" ; then | ||
18957 | LDFLAGS="${LDFLAGS_save}" | ||
18958 | fi | ||
18959 | ac_ext=c | ||
18960 | ac_cpp='$CPP $CPPFLAGS' | ||
18961 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
18962 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
18963 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
18964 | |||
18965 | |||
18966 | |||
18967 | |||
18968 | |||
18969 | ### Checks for library functions | ||
18970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 | ||
18971 | $as_echo_n "checking for library containing strerror... " >&6; } | ||
18972 | if test "${ac_cv_search_strerror+set}" = set; then : | ||
18973 | $as_echo_n "(cached) " >&6 | ||
18974 | else | ||
18975 | ac_func_search_save_LIBS=$LIBS | ||
18976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18977 | /* end confdefs.h. */ | ||
18978 | |||
18979 | /* Override any GCC internal prototype to avoid an error. | ||
18980 | Use char because int might match the return type of a GCC | ||
18981 | builtin and then its argument prototype would still apply. */ | ||
18982 | #ifdef __cplusplus | ||
18983 | extern "C" | ||
18984 | #endif | ||
18985 | char strerror (); | ||
18986 | int | ||
18987 | main () | ||
18988 | { | ||
18989 | return strerror (); | ||
18990 | ; | ||
18991 | return 0; | ||
18992 | } | ||
18993 | _ACEOF | ||
18994 | for ac_lib in '' cposix; do | ||
18995 | if test -z "$ac_lib"; then | ||
18996 | ac_res="none required" | ||
18997 | else | ||
18998 | ac_res=-l$ac_lib | ||
18999 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
19000 | fi | ||
19001 | if ac_fn_c_try_link "$LINENO"; then : | ||
19002 | ac_cv_search_strerror=$ac_res | ||
19003 | fi | ||
19004 | rm -f core conftest.err conftest.$ac_objext \ | ||
19005 | conftest$ac_exeext | ||
19006 | if test "${ac_cv_search_strerror+set}" = set; then : | ||
19007 | break | ||
19008 | fi | ||
19009 | done | ||
19010 | if test "${ac_cv_search_strerror+set}" = set; then : | ||
19011 | |||
19012 | else | ||
19013 | ac_cv_search_strerror=no | ||
19014 | fi | ||
19015 | rm conftest.$ac_ext | ||
19016 | LIBS=$ac_func_search_save_LIBS | ||
19017 | fi | ||
19018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 | ||
19019 | $as_echo "$ac_cv_search_strerror" >&6; } | ||
19020 | ac_res=$ac_cv_search_strerror | ||
19021 | if test "$ac_res" != no; then : | ||
19022 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
19023 | |||
19024 | fi | ||
19025 | |||
19026 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | ||
19027 | # for constant arguments. Useless! | ||
19028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | ||
19029 | $as_echo_n "checking for working alloca.h... " >&6; } | ||
19030 | if test "${ac_cv_working_alloca_h+set}" = set; then : | ||
19031 | $as_echo_n "(cached) " >&6 | ||
19032 | else | ||
19033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19034 | /* end confdefs.h. */ | ||
19035 | #include <alloca.h> | ||
19036 | int | ||
19037 | main () | ||
19038 | { | ||
19039 | char *p = (char *) alloca (2 * sizeof (int)); | ||
19040 | if (p) return 0; | ||
19041 | ; | ||
19042 | return 0; | ||
19043 | } | ||
19044 | _ACEOF | ||
19045 | if ac_fn_c_try_link "$LINENO"; then : | ||
19046 | ac_cv_working_alloca_h=yes | ||
19047 | else | ||
19048 | ac_cv_working_alloca_h=no | ||
19049 | fi | ||
19050 | rm -f core conftest.err conftest.$ac_objext \ | ||
19051 | conftest$ac_exeext conftest.$ac_ext | ||
19052 | fi | ||
19053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 | ||
19054 | $as_echo "$ac_cv_working_alloca_h" >&6; } | ||
19055 | if test $ac_cv_working_alloca_h = yes; then | ||
19056 | |||
19057 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h | ||
19058 | |||
19059 | fi | ||
19060 | |||
19061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 | ||
19062 | $as_echo_n "checking for alloca... " >&6; } | ||
19063 | if test "${ac_cv_func_alloca_works+set}" = set; then : | ||
19064 | $as_echo_n "(cached) " >&6 | ||
19065 | else | ||
19066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19067 | /* end confdefs.h. */ | ||
19068 | #ifdef __GNUC__ | ||
19069 | # define alloca __builtin_alloca | ||
19070 | #else | ||
19071 | # ifdef _MSC_VER | ||
19072 | # include <malloc.h> | ||
19073 | # define alloca _alloca | ||
19074 | # else | ||
19075 | # ifdef HAVE_ALLOCA_H | ||
19076 | # include <alloca.h> | ||
19077 | # else | ||
19078 | # ifdef _AIX | ||
19079 | #pragma alloca | ||
19080 | # else | ||
19081 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | ||
19082 | char *alloca (); | ||
19083 | # endif | ||
19084 | # endif | ||
19085 | # endif | ||
19086 | # endif | ||
19087 | #endif | ||
19088 | |||
19089 | int | ||
19090 | main () | ||
19091 | { | ||
19092 | char *p = (char *) alloca (1); | ||
19093 | if (p) return 0; | ||
19094 | ; | ||
19095 | return 0; | ||
19096 | } | ||
19097 | _ACEOF | ||
19098 | if ac_fn_c_try_link "$LINENO"; then : | ||
19099 | ac_cv_func_alloca_works=yes | ||
19100 | else | ||
19101 | ac_cv_func_alloca_works=no | ||
19102 | fi | ||
19103 | rm -f core conftest.err conftest.$ac_objext \ | ||
19104 | conftest$ac_exeext conftest.$ac_ext | ||
19105 | fi | ||
19106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | ||
19107 | $as_echo "$ac_cv_func_alloca_works" >&6; } | ||
19108 | |||
19109 | if test $ac_cv_func_alloca_works = yes; then | ||
19110 | |||
19111 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h | ||
19112 | |||
19113 | else | ||
19114 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | ||
19115 | # that cause trouble. Some versions do not even contain alloca or | ||
19116 | # contain a buggy version. If you still want to use their alloca, | ||
19117 | # use ar to extract alloca.o from them instead of compiling alloca.c. | ||
19118 | |||
19119 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | ||
19120 | |||
19121 | $as_echo "#define C_ALLOCA 1" >>confdefs.h | ||
19122 | |||
19123 | |||
19124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 | ||
19125 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | ||
19126 | if test "${ac_cv_os_cray+set}" = set; then : | ||
19127 | $as_echo_n "(cached) " >&6 | ||
19128 | else | ||
19129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19130 | /* end confdefs.h. */ | ||
19131 | #if defined CRAY && ! defined CRAY2 | ||
19132 | webecray | ||
19133 | #else | ||
19134 | wenotbecray | ||
19135 | #endif | ||
19136 | |||
19137 | _ACEOF | ||
19138 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19139 | $EGREP "webecray" >/dev/null 2>&1; then : | ||
19140 | ac_cv_os_cray=yes | ||
19141 | else | ||
19142 | ac_cv_os_cray=no | ||
19143 | fi | ||
19144 | rm -f conftest* | ||
19145 | |||
19146 | fi | ||
19147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | ||
19148 | $as_echo "$ac_cv_os_cray" >&6; } | ||
19149 | if test $ac_cv_os_cray = yes; then | ||
19150 | for ac_func in _getb67 GETB67 getb67; do | ||
19151 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
19152 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
19153 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
19154 | |||
19155 | cat >>confdefs.h <<_ACEOF | ||
19156 | #define CRAY_STACKSEG_END $ac_func | ||
19157 | _ACEOF | ||
19158 | |||
19159 | break | ||
19160 | fi | ||
19161 | |||
19162 | done | ||
19163 | fi | ||
19164 | |||
19165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 | ||
19166 | $as_echo_n "checking stack direction for C alloca... " >&6; } | ||
19167 | if test "${ac_cv_c_stack_direction+set}" = set; then : | ||
19168 | $as_echo_n "(cached) " >&6 | ||
19169 | else | ||
19170 | if test "$cross_compiling" = yes; then : | ||
19171 | ac_cv_c_stack_direction=0 | ||
19172 | else | ||
19173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19174 | /* end confdefs.h. */ | ||
19175 | $ac_includes_default | ||
19176 | int | ||
19177 | find_stack_direction () | ||
19178 | { | ||
19179 | static char *addr = 0; | ||
19180 | auto char dummy; | ||
19181 | if (addr == 0) | ||
19182 | { | ||
19183 | addr = &dummy; | ||
19184 | return find_stack_direction (); | ||
19185 | } | ||
19186 | else | ||
19187 | return (&dummy > addr) ? 1 : -1; | ||
19188 | } | ||
19189 | |||
19190 | int | ||
19191 | main () | ||
19192 | { | ||
19193 | return find_stack_direction () < 0; | ||
19194 | } | ||
19195 | _ACEOF | ||
19196 | if ac_fn_c_try_run "$LINENO"; then : | ||
19197 | ac_cv_c_stack_direction=1 | ||
19198 | else | ||
19199 | ac_cv_c_stack_direction=-1 | ||
19200 | fi | ||
19201 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
19202 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
19203 | fi | ||
19204 | |||
19205 | fi | ||
19206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | ||
19207 | $as_echo "$ac_cv_c_stack_direction" >&6; } | ||
19208 | cat >>confdefs.h <<_ACEOF | ||
19209 | #define STACK_DIRECTION $ac_cv_c_stack_direction | ||
19210 | _ACEOF | ||
19211 | |||
19212 | |||
19213 | fi | ||
19214 | |||
19215 | for ac_func in strlcpy dirfd openat fstatat fpathconf execvp | ||
19216 | do : | ||
19217 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
19218 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
19219 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
19220 | cat >>confdefs.h <<_ACEOF | ||
19221 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
19222 | _ACEOF | ||
19223 | |||
19224 | fi | ||
19225 | done | ||
19226 | |||
19227 | |||
19228 | # dlopen and dladdr | ||
19229 | dlopen_libs="" | ||
19230 | case "$host_os" in | ||
19231 | mingw*) | ||
19232 | # managed by evil | ||
19233 | $as_echo "#define HAVE_DLADDR 1" >>confdefs.h | ||
19234 | |||
19235 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h | ||
19236 | |||
19237 | ;; | ||
19238 | *) | ||
19239 | for ac_func in dlopen | ||
19240 | do : | ||
19241 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | ||
19242 | if test "x$ac_cv_func_dlopen" = x""yes; then : | ||
19243 | cat >>confdefs.h <<_ACEOF | ||
19244 | #define HAVE_DLOPEN 1 | ||
19245 | _ACEOF | ||
19246 | res="yes" | ||
19247 | else | ||
19248 | res="no" | ||
19249 | fi | ||
19250 | done | ||
19251 | |||
19252 | if test "x${res}" = "xyes" ; then | ||
19253 | for ac_func in dladdr | ||
19254 | do : | ||
19255 | ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr" | ||
19256 | if test "x$ac_cv_func_dladdr" = x""yes; then : | ||
19257 | cat >>confdefs.h <<_ACEOF | ||
19258 | #define HAVE_DLADDR 1 | ||
19259 | _ACEOF | ||
19260 | $as_echo "#define HAVE_DLADDR 1" >>confdefs.h | ||
19261 | |||
19262 | fi | ||
19263 | done | ||
19264 | |||
19265 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h | ||
19266 | |||
19267 | else | ||
19268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | ||
19269 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
19270 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | ||
19271 | $as_echo_n "(cached) " >&6 | ||
19272 | else | ||
19273 | ac_check_lib_save_LIBS=$LIBS | ||
19274 | LIBS="-ldl $LIBS" | ||
19275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19276 | /* end confdefs.h. */ | ||
19277 | |||
19278 | /* Override any GCC internal prototype to avoid an error. | ||
19279 | Use char because int might match the return type of a GCC | ||
19280 | builtin and then its argument prototype would still apply. */ | ||
19281 | #ifdef __cplusplus | ||
19282 | extern "C" | ||
19283 | #endif | ||
19284 | char dlopen (); | ||
19285 | int | ||
19286 | main () | ||
19287 | { | ||
19288 | return dlopen (); | ||
19289 | ; | ||
19290 | return 0; | ||
19291 | } | ||
19292 | _ACEOF | ||
19293 | if ac_fn_c_try_link "$LINENO"; then : | ||
19294 | ac_cv_lib_dl_dlopen=yes | ||
19295 | else | ||
19296 | ac_cv_lib_dl_dlopen=no | ||
19297 | fi | ||
19298 | rm -f core conftest.err conftest.$ac_objext \ | ||
19299 | conftest$ac_exeext conftest.$ac_ext | ||
19300 | LIBS=$ac_check_lib_save_LIBS | ||
19301 | fi | ||
19302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | ||
19303 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
19304 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | ||
19305 | res="yes" | ||
19306 | else | ||
19307 | res="no" | ||
19308 | fi | ||
19309 | |||
19310 | if test "x${res}" = "xyes" ; then | ||
19311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5 | ||
19312 | $as_echo_n "checking for dladdr in -ldl... " >&6; } | ||
19313 | if test "${ac_cv_lib_dl_dladdr+set}" = set; then : | ||
19314 | $as_echo_n "(cached) " >&6 | ||
19315 | else | ||
19316 | ac_check_lib_save_LIBS=$LIBS | ||
19317 | LIBS="-ldl $LIBS" | ||
19318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19319 | /* end confdefs.h. */ | ||
19320 | |||
19321 | /* Override any GCC internal prototype to avoid an error. | ||
19322 | Use char because int might match the return type of a GCC | ||
19323 | builtin and then its argument prototype would still apply. */ | ||
19324 | #ifdef __cplusplus | ||
19325 | extern "C" | ||
19326 | #endif | ||
19327 | char dladdr (); | ||
19328 | int | ||
19329 | main () | ||
19330 | { | ||
19331 | return dladdr (); | ||
19332 | ; | ||
19333 | return 0; | ||
19334 | } | ||
19335 | _ACEOF | ||
19336 | if ac_fn_c_try_link "$LINENO"; then : | ||
19337 | ac_cv_lib_dl_dladdr=yes | ||
19338 | else | ||
19339 | ac_cv_lib_dl_dladdr=no | ||
19340 | fi | ||
19341 | rm -f core conftest.err conftest.$ac_objext \ | ||
19342 | conftest$ac_exeext conftest.$ac_ext | ||
19343 | LIBS=$ac_check_lib_save_LIBS | ||
19344 | fi | ||
19345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5 | ||
19346 | $as_echo "$ac_cv_lib_dl_dladdr" >&6; } | ||
19347 | if test "x$ac_cv_lib_dl_dladdr" = x""yes; then : | ||
19348 | $as_echo "#define HAVE_DLADDR 1" >>confdefs.h | ||
19349 | |||
19350 | fi | ||
19351 | |||
19352 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h | ||
19353 | |||
19354 | dlopen_libs="-ldl" | ||
19355 | fi | ||
19356 | fi | ||
19357 | ;; | ||
19358 | esac | ||
19359 | |||
19360 | |||
19361 | |||
19362 | |||
19363 | ac_fn_c_check_header_mongrel "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default" | ||
19364 | if test "x$ac_cv_header_fnmatch_h" = x""yes; then : | ||
19365 | _efl_have_fnmatch="yes" | ||
19366 | else | ||
19367 | _efl_have_fnmatch="no" | ||
19368 | fi | ||
19369 | |||
19370 | |||
19371 | |||
19372 | if test "x${_efl_have_fnmatch}" = "xyes" ; then | ||
19373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fnmatch" >&5 | ||
19374 | $as_echo_n "checking for library containing fnmatch... " >&6; } | ||
19375 | if test "${ac_cv_search_fnmatch+set}" = set; then : | ||
19376 | $as_echo_n "(cached) " >&6 | ||
19377 | else | ||
19378 | ac_func_search_save_LIBS=$LIBS | ||
19379 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19380 | /* end confdefs.h. */ | ||
19381 | |||
19382 | /* Override any GCC internal prototype to avoid an error. | ||
19383 | Use char because int might match the return type of a GCC | ||
19384 | builtin and then its argument prototype would still apply. */ | ||
19385 | #ifdef __cplusplus | ||
19386 | extern "C" | ||
19387 | #endif | ||
19388 | char fnmatch (); | ||
19389 | int | ||
19390 | main () | ||
19391 | { | ||
19392 | return fnmatch (); | ||
19393 | ; | ||
19394 | return 0; | ||
19395 | } | ||
19396 | _ACEOF | ||
19397 | for ac_lib in '' fnmatch evil iberty; do | ||
19398 | if test -z "$ac_lib"; then | ||
19399 | ac_res="none required" | ||
19400 | else | ||
19401 | ac_res=-l$ac_lib | ||
19402 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
19403 | fi | ||
19404 | if ac_fn_c_try_link "$LINENO"; then : | ||
19405 | ac_cv_search_fnmatch=$ac_res | ||
19406 | fi | ||
19407 | rm -f core conftest.err conftest.$ac_objext \ | ||
19408 | conftest$ac_exeext | ||
19409 | if test "${ac_cv_search_fnmatch+set}" = set; then : | ||
19410 | break | ||
19411 | fi | ||
19412 | done | ||
19413 | if test "${ac_cv_search_fnmatch+set}" = set; then : | ||
19414 | |||
19415 | else | ||
19416 | ac_cv_search_fnmatch=no | ||
19417 | fi | ||
19418 | rm conftest.$ac_ext | ||
19419 | LIBS=$ac_func_search_save_LIBS | ||
19420 | fi | ||
19421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fnmatch" >&5 | ||
19422 | $as_echo "$ac_cv_search_fnmatch" >&6; } | ||
19423 | ac_res=$ac_cv_search_fnmatch | ||
19424 | if test "$ac_res" != no; then : | ||
19425 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
19426 | _efl_have_fnmatch="yes" | ||
19427 | else | ||
19428 | _efl_have_fnmatch="no" | ||
19429 | fi | ||
19430 | |||
19431 | fi | ||
19432 | |||
19433 | EFL_FNMATCH_LIBS="" | ||
19434 | |||
19435 | if (! test "x${ac_cv_search_fnmatch}" = "xnone required") && (! test "x${ac_cv_search_fnmatch}" = "xno") && (! test "x${ac_cv_search_fnmatch}" = "x-levil") ; then | ||
19436 | EFL_FNMATCH_LIBS=${ac_cv_search_fnmatch} | ||
19437 | fi | ||
19438 | |||
19439 | |||
19440 | |||
19441 | if test "x$_efl_have_fnmatch" = "xyes"; then : | ||
19442 | |||
19443 | else | ||
19444 | as_fn_error $? "Cannot find fnmatch()" "$LINENO" 5 | ||
19445 | fi | ||
19446 | |||
19447 | |||
19448 | |||
19449 | for ac_header in mcheck.h | ||
19450 | do : | ||
19451 | ac_fn_c_check_header_mongrel "$LINENO" "mcheck.h" "ac_cv_header_mcheck_h" "$ac_includes_default" | ||
19452 | if test "x$ac_cv_header_mcheck_h" = x""yes; then : | ||
19453 | cat >>confdefs.h <<_ACEOF | ||
19454 | #define HAVE_MCHECK_H 1 | ||
19455 | _ACEOF | ||
19456 | |||
19457 | $as_echo "#define HAVE_MCHECK 1" >>confdefs.h | ||
19458 | |||
19459 | fi | ||
19460 | |||
19461 | done | ||
19462 | |||
19463 | for ac_func in mtrace | ||
19464 | do : | ||
19465 | ac_fn_c_check_func "$LINENO" "mtrace" "ac_cv_func_mtrace" | ||
19466 | if test "x$ac_cv_func_mtrace" = x""yes; then : | ||
19467 | cat >>confdefs.h <<_ACEOF | ||
19468 | #define HAVE_MTRACE 1 | ||
19469 | _ACEOF | ||
19470 | |||
19471 | $as_echo "#define HAVE_MTRACE 1" >>confdefs.h | ||
19472 | |||
19473 | fi | ||
19474 | done | ||
19475 | |||
19476 | |||
19477 | # iconv library | ||
19478 | have_iconv="no" | ||
19479 | |||
19480 | # Check whether --with-iconv-link was given. | ||
19481 | if test "${with_iconv_link+set}" = set; then : | ||
19482 | withval=$with_iconv_link; | ||
19483 | LIBS="$withval $LIBS" | ||
19484 | have_iconv="yes" | ||
19485 | iconv_libs=$withval | ||
19486 | |||
19487 | fi | ||
19488 | |||
19489 | |||
19490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for explicit iconv link options" >&5 | ||
19491 | $as_echo_n "checking for explicit iconv link options... " >&6; } | ||
19492 | if test "x${iconv_libs}" = "x" ; then | ||
19493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no explicit iconv link option" >&5 | ||
19494 | $as_echo "no explicit iconv link option" >&6; } | ||
19495 | else | ||
19496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iconv_libs" >&5 | ||
19497 | $as_echo "$iconv_libs" >&6; } | ||
19498 | fi | ||
19499 | |||
19500 | if test "x${have_iconv}" = "xno" ; then | ||
19501 | for ac_header in iconv.h | ||
19502 | do : | ||
19503 | ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default" | ||
19504 | if test "x$ac_cv_header_iconv_h" = x""yes; then : | ||
19505 | cat >>confdefs.h <<_ACEOF | ||
19506 | #define HAVE_ICONV_H 1 | ||
19507 | _ACEOF | ||
19508 | have_iconv="yes" | ||
19509 | fi | ||
19510 | |||
19511 | done | ||
19512 | |||
19513 | |||
19514 | if test "x${have_iconv}" = "xyes" ; then | ||
19515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv() is in libc" >&5 | ||
19516 | $as_echo_n "checking whether iconv() is in libc... " >&6; } | ||
19517 | |||
19518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19519 | /* end confdefs.h. */ | ||
19520 | |||
19521 | #include <stdlib.h> | ||
19522 | #include <iconv.h> | ||
19523 | |||
19524 | int | ||
19525 | main () | ||
19526 | { | ||
19527 | |||
19528 | iconv_t ic; | ||
19529 | size_t count = iconv(ic, NULL, NULL, NULL, NULL); | ||
19530 | |||
19531 | ; | ||
19532 | return 0; | ||
19533 | } | ||
19534 | _ACEOF | ||
19535 | if ac_fn_c_try_link "$LINENO"; then : | ||
19536 | have_iconv="yes" | ||
19537 | else | ||
19538 | have_iconv="no" | ||
19539 | fi | ||
19540 | rm -f core conftest.err conftest.$ac_objext \ | ||
19541 | conftest$ac_exeext conftest.$ac_ext | ||
19542 | |||
19543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_iconv}" >&5 | ||
19544 | $as_echo "${have_iconv}" >&6; } | ||
19545 | fi | ||
19546 | |||
19547 | if test "x${have_iconv}" = "xno" ; then | ||
19548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv() is in libiconv.a" >&5 | ||
19549 | $as_echo_n "checking whether iconv() is in libiconv.a... " >&6; } | ||
19550 | |||
19551 | LIBS_save="${LIBS}" | ||
19552 | LIBS="-liconv $LIBS" | ||
19553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19554 | /* end confdefs.h. */ | ||
19555 | |||
19556 | #include <stdlib.h> | ||
19557 | #include <iconv.h> | ||
19558 | |||
19559 | int | ||
19560 | main () | ||
19561 | { | ||
19562 | |||
19563 | iconv_t ic; | ||
19564 | size_t count; | ||
19565 | count = iconv(ic, NULL, NULL, NULL, NULL); | ||
19566 | |||
19567 | ; | ||
19568 | return 0; | ||
19569 | } | ||
19570 | _ACEOF | ||
19571 | if ac_fn_c_try_link "$LINENO"; then : | ||
19572 | |||
19573 | have_iconv="yes" | ||
19574 | iconv_libs="-liconv" | ||
19575 | |||
19576 | else | ||
19577 | |||
19578 | have_iconv="no" | ||
19579 | LIBS=${LIBS_save} | ||
19580 | |||
19581 | fi | ||
19582 | rm -f core conftest.err conftest.$ac_objext \ | ||
19583 | conftest$ac_exeext conftest.$ac_ext | ||
19584 | |||
19585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_iconv}" >&5 | ||
19586 | $as_echo "${have_iconv}" >&6; } | ||
19587 | fi | ||
19588 | |||
19589 | if test "x${have_iconv}" = "xno" ; then | ||
19590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv() is in libiconv_plug.a" >&5 | ||
19591 | $as_echo_n "checking whether iconv() is in libiconv_plug.a... " >&6; } | ||
19592 | |||
19593 | LIBS_save="${LIBS}" | ||
19594 | LIBS="-liconv_plug $LIBS" | ||
19595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19596 | /* end confdefs.h. */ | ||
19597 | |||
19598 | #include <stdlib.h> | ||
19599 | #include <iconv.h> | ||
19600 | |||
19601 | int | ||
19602 | main () | ||
19603 | { | ||
19604 | |||
19605 | iconv_t ic; | ||
19606 | size_t count = iconv(ic, NULL, NULL, NULL, NULL); | ||
19607 | |||
19608 | ; | ||
19609 | return 0; | ||
19610 | } | ||
19611 | _ACEOF | ||
19612 | if ac_fn_c_try_link "$LINENO"; then : | ||
19613 | |||
19614 | have_iconv="yes" | ||
19615 | iconv_libs="-liconv_plug" | ||
19616 | |||
19617 | else | ||
19618 | |||
19619 | have_iconv="no" | ||
19620 | LIBS=${LIBS_save} | ||
19621 | |||
19622 | fi | ||
19623 | rm -f core conftest.err conftest.$ac_objext \ | ||
19624 | conftest$ac_exeext conftest.$ac_ext | ||
19625 | |||
19626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_iconv}" >&5 | ||
19627 | $as_echo "${have_iconv}" >&6; } | ||
19628 | fi | ||
19629 | fi | ||
19630 | |||
19631 | |||
19632 | |||
19633 | if test "x${have_iconv}" = "xyes" ; then | ||
19634 | |||
19635 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h | ||
19636 | |||
19637 | fi | ||
19638 | |||
19639 | # shmopen | ||
19640 | have_shmopen=no | ||
19641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open availability" >&5 | ||
19642 | $as_echo_n "checking for shm_open availability... " >&6; } | ||
19643 | |||
19644 | LIBS_save="${LIBS}" | ||
19645 | LIBS="${LIBS} -lrt" | ||
19646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19647 | /* end confdefs.h. */ | ||
19648 | |||
19649 | #include <sys/mman.h> | ||
19650 | #include <sys/stat.h> /* For mode constants */ | ||
19651 | #include <fcntl.h> /* For O_* constants */ | ||
19652 | |||
19653 | int | ||
19654 | main () | ||
19655 | { | ||
19656 | |||
19657 | int fd; | ||
19658 | |||
19659 | fd = shm_open("/dev/null", O_RDONLY, S_IRWXU | S_IRWXG | S_IRWXO); | ||
19660 | |||
19661 | ; | ||
19662 | return 0; | ||
19663 | } | ||
19664 | _ACEOF | ||
19665 | if ac_fn_c_try_link "$LINENO"; then : | ||
19666 | have_shmopen="yes" | ||
19667 | else | ||
19668 | have_shmopen="no" | ||
19669 | fi | ||
19670 | rm -f core conftest.err conftest.$ac_objext \ | ||
19671 | conftest$ac_exeext conftest.$ac_ext | ||
19672 | |||
19673 | LIBS="${LIBS_save}" | ||
19674 | |||
19675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_shmopen}" >&5 | ||
19676 | $as_echo "${have_shmopen}" >&6; } | ||
19677 | |||
19678 | if test "x${have_shmopen}" = "xyes"; then | ||
19679 | |||
19680 | $as_echo "#define HAVE_SHMOPEN 1" >>confdefs.h | ||
19681 | |||
19682 | rt_libs="-lrt" | ||
19683 | fi | ||
19684 | |||
19685 | |||
19686 | |||
19687 | # extended attribute | ||
19688 | |||
19689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended attributes" >&5 | ||
19690 | $as_echo_n "checking for extended attributes... " >&6; } | ||
19691 | |||
19692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19693 | /* end confdefs.h. */ | ||
19694 | |||
19695 | #include <stdlib.h> | ||
19696 | #include <sys/types.h> | ||
19697 | #include <sys/xattr.h> | ||
19698 | |||
19699 | int | ||
19700 | main () | ||
19701 | { | ||
19702 | |||
19703 | size_t tmp = listxattr("/", NULL, 0); | ||
19704 | tmp = getxattr("/", "user.ethumb.md5", NULL, 0); | ||
19705 | setxattr("/", "user.ethumb.md5", NULL, 0, 0); | ||
19706 | |||
19707 | ; | ||
19708 | return 0; | ||
19709 | } | ||
19710 | _ACEOF | ||
19711 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19712 | |||
19713 | |||
19714 | $as_echo "#define HAVE_XATTR 1" >>confdefs.h | ||
19715 | |||
19716 | have_xattr="yes" | ||
19717 | |||
19718 | else | ||
19719 | have_xattr="no" | ||
19720 | fi | ||
19721 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19722 | |||
19723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_xattr}" >&5 | ||
19724 | $as_echo "${have_xattr}" >&6; } | ||
19725 | |||
19726 | ### Modules | ||
19727 | |||
19728 | if test "x${have_default_mempool}" = "xyes" ; then | ||
19729 | enable_chained_pool="no" | ||
19730 | enable_pass_through="static" | ||
19731 | else | ||
19732 | enable_chained_pool="static" | ||
19733 | enable_pass_through="no" | ||
19734 | fi | ||
19735 | |||
19736 | enable_one_big="static" | ||
19737 | |||
19738 | |||
19739 | |||
19740 | # Check whether --enable-mempool-chained-pool was given. | ||
19741 | if test "${enable_mempool_chained_pool+set}" = set; then : | ||
19742 | enableval=$enable_mempool_chained_pool; | ||
19743 | if test "x${enableval}" = "xyes" ; then | ||
19744 | enable_module="yes" | ||
19745 | else | ||
19746 | if test "x${enableval}" = "xstatic" ; then | ||
19747 | enable_module="static" | ||
19748 | else | ||
19749 | enable_module="no" | ||
19750 | fi | ||
19751 | fi | ||
19752 | |||
19753 | else | ||
19754 | enable_module=${enable_chained_pool} | ||
19755 | fi | ||
19756 | |||
19757 | |||
19758 | have_module="no" | ||
19759 | if test "x${enable_module}" = "xyes" || test "x${enable_module}" = "xstatic" ; then | ||
19760 | have_module="yes" | ||
19761 | fi | ||
19762 | |||
19763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable chained pool built" >&5 | ||
19764 | $as_echo_n "checking whether to enable chained pool built... " >&6; } | ||
19765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_module}" >&5 | ||
19766 | $as_echo "${have_module}" >&6; } | ||
19767 | |||
19768 | static_module="no" | ||
19769 | if test "x${enable_module}" = "xstatic" ; then | ||
19770 | static_module="yes" | ||
19771 | have_static_module="yes" | ||
19772 | |||
19773 | $as_echo "#define EINA_STATIC_BUILD_CHAINED_POOL 1" >>confdefs.h | ||
19774 | |||
19775 | fi | ||
19776 | |||
19777 | if ! test "x${enable_module}" = "xno" ; then | ||
19778 | |||
19779 | $as_echo "#define EINA_BUILD_CHAINED_POOL 1" >>confdefs.h | ||
19780 | |||
19781 | fi | ||
19782 | |||
19783 | if test "x${have_module}" = "xyes"; then | ||
19784 | EINA_BUILD_CHAINED_POOL_TRUE= | ||
19785 | EINA_BUILD_CHAINED_POOL_FALSE='#' | ||
19786 | else | ||
19787 | EINA_BUILD_CHAINED_POOL_TRUE='#' | ||
19788 | EINA_BUILD_CHAINED_POOL_FALSE= | ||
19789 | fi | ||
19790 | |||
19791 | if test "x${static_module}" = "xyes"; then | ||
19792 | EINA_STATIC_BUILD_CHAINED_POOL_TRUE= | ||
19793 | EINA_STATIC_BUILD_CHAINED_POOL_FALSE='#' | ||
19794 | else | ||
19795 | EINA_STATIC_BUILD_CHAINED_POOL_TRUE='#' | ||
19796 | EINA_STATIC_BUILD_CHAINED_POOL_FALSE= | ||
19797 | fi | ||
19798 | |||
19799 | |||
19800 | enable_chained_pool=${enable_module} | ||
19801 | |||
19802 | |||
19803 | |||
19804 | |||
19805 | |||
19806 | |||
19807 | # Check whether --enable-mempool-ememoa-fixed was given. | ||
19808 | if test "${enable_mempool_ememoa_fixed+set}" = set; then : | ||
19809 | enableval=$enable_mempool_ememoa_fixed; | ||
19810 | if test "x${enableval}" = "xyes" ; then | ||
19811 | enable_module="yes" | ||
19812 | else | ||
19813 | if test "x${enableval}" = "xstatic" ; then | ||
19814 | enable_module="static" | ||
19815 | else | ||
19816 | enable_module="no" | ||
19817 | fi | ||
19818 | fi | ||
19819 | |||
19820 | else | ||
19821 | enable_module=${enable_ememoa} | ||
19822 | fi | ||
19823 | |||
19824 | |||
19825 | have_module="no" | ||
19826 | if test "x${enable_module}" = "xyes" || test "x${enable_module}" = "xstatic" ; then | ||
19827 | have_module="yes" | ||
19828 | fi | ||
19829 | |||
19830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ememoa fixed built" >&5 | ||
19831 | $as_echo_n "checking whether to enable ememoa fixed built... " >&6; } | ||
19832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_module}" >&5 | ||
19833 | $as_echo "${have_module}" >&6; } | ||
19834 | |||
19835 | static_module="no" | ||
19836 | if test "x${enable_module}" = "xstatic" ; then | ||
19837 | static_module="yes" | ||
19838 | have_static_module="yes" | ||
19839 | |||
19840 | $as_echo "#define EINA_STATIC_BUILD_EMEMOA_FIXED 1" >>confdefs.h | ||
19841 | |||
19842 | fi | ||
19843 | |||
19844 | if ! test "x${enable_module}" = "xno" ; then | ||
19845 | |||
19846 | $as_echo "#define EINA_BUILD_EMEMOA_FIXED 1" >>confdefs.h | ||
19847 | |||
19848 | fi | ||
19849 | |||
19850 | if test "x${have_module}" = "xyes"; then | ||
19851 | EINA_BUILD_EMEMOA_FIXED_TRUE= | ||
19852 | EINA_BUILD_EMEMOA_FIXED_FALSE='#' | ||
19853 | else | ||
19854 | EINA_BUILD_EMEMOA_FIXED_TRUE='#' | ||
19855 | EINA_BUILD_EMEMOA_FIXED_FALSE= | ||
19856 | fi | ||
19857 | |||
19858 | if test "x${static_module}" = "xyes"; then | ||
19859 | EINA_STATIC_BUILD_EMEMOA_FIXED_TRUE= | ||
19860 | EINA_STATIC_BUILD_EMEMOA_FIXED_FALSE='#' | ||
19861 | else | ||
19862 | EINA_STATIC_BUILD_EMEMOA_FIXED_TRUE='#' | ||
19863 | EINA_STATIC_BUILD_EMEMOA_FIXED_FALSE= | ||
19864 | fi | ||
19865 | |||
19866 | |||
19867 | enable_ememoa_fixed=${enable_module} | ||
19868 | |||
19869 | |||
19870 | |||
19871 | |||
19872 | |||
19873 | |||
19874 | # Check whether --enable-mempool-ememoa-unknown was given. | ||
19875 | if test "${enable_mempool_ememoa_unknown+set}" = set; then : | ||
19876 | enableval=$enable_mempool_ememoa_unknown; | ||
19877 | if test "x${enableval}" = "xyes" ; then | ||
19878 | enable_module="yes" | ||
19879 | else | ||
19880 | if test "x${enableval}" = "xstatic" ; then | ||
19881 | enable_module="static" | ||
19882 | else | ||
19883 | enable_module="no" | ||
19884 | fi | ||
19885 | fi | ||
19886 | |||
19887 | else | ||
19888 | enable_module=${enable_ememoa} | ||
19889 | fi | ||
19890 | |||
19891 | |||
19892 | have_module="no" | ||
19893 | if test "x${enable_module}" = "xyes" || test "x${enable_module}" = "xstatic" ; then | ||
19894 | have_module="yes" | ||
19895 | fi | ||
19896 | |||
19897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ememoa unknown built" >&5 | ||
19898 | $as_echo_n "checking whether to enable ememoa unknown built... " >&6; } | ||
19899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_module}" >&5 | ||
19900 | $as_echo "${have_module}" >&6; } | ||
19901 | |||
19902 | static_module="no" | ||
19903 | if test "x${enable_module}" = "xstatic" ; then | ||
19904 | static_module="yes" | ||
19905 | have_static_module="yes" | ||
19906 | |||
19907 | $as_echo "#define EINA_STATIC_BUILD_EMEMOA_UNKNOWN 1" >>confdefs.h | ||
19908 | |||
19909 | fi | ||
19910 | |||
19911 | if ! test "x${enable_module}" = "xno" ; then | ||
19912 | |||
19913 | $as_echo "#define EINA_BUILD_EMEMOA_UNKNOWN 1" >>confdefs.h | ||
19914 | |||
19915 | fi | ||
19916 | |||
19917 | if test "x${have_module}" = "xyes"; then | ||
19918 | EINA_BUILD_EMEMOA_UNKNOWN_TRUE= | ||
19919 | EINA_BUILD_EMEMOA_UNKNOWN_FALSE='#' | ||
19920 | else | ||
19921 | EINA_BUILD_EMEMOA_UNKNOWN_TRUE='#' | ||
19922 | EINA_BUILD_EMEMOA_UNKNOWN_FALSE= | ||
19923 | fi | ||
19924 | |||
19925 | if test "x${static_module}" = "xyes"; then | ||
19926 | EINA_STATIC_BUILD_EMEMOA_UNKNOWN_TRUE= | ||
19927 | EINA_STATIC_BUILD_EMEMOA_UNKNOWN_FALSE='#' | ||
19928 | else | ||
19929 | EINA_STATIC_BUILD_EMEMOA_UNKNOWN_TRUE='#' | ||
19930 | EINA_STATIC_BUILD_EMEMOA_UNKNOWN_FALSE= | ||
19931 | fi | ||
19932 | |||
19933 | |||
19934 | enable_ememoa_unknown=${enable_module} | ||
19935 | |||
19936 | |||
19937 | |||
19938 | |||
19939 | |||
19940 | |||
19941 | # Check whether --enable-mempool-fixed-bitmap was given. | ||
19942 | if test "${enable_mempool_fixed_bitmap+set}" = set; then : | ||
19943 | enableval=$enable_mempool_fixed_bitmap; | ||
19944 | if test "x${enableval}" = "xyes" ; then | ||
19945 | enable_module="yes" | ||
19946 | else | ||
19947 | if test "x${enableval}" = "xstatic" ; then | ||
19948 | enable_module="static" | ||
19949 | else | ||
19950 | enable_module="no" | ||
19951 | fi | ||
19952 | fi | ||
19953 | |||
19954 | else | ||
19955 | enable_module=no | ||
19956 | fi | ||
19957 | |||
19958 | |||
19959 | have_module="no" | ||
19960 | if test "x${enable_module}" = "xyes" || test "x${enable_module}" = "xstatic" ; then | ||
19961 | have_module="yes" | ||
19962 | fi | ||
19963 | |||
19964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable fixed bitmap built" >&5 | ||
19965 | $as_echo_n "checking whether to enable fixed bitmap built... " >&6; } | ||
19966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_module}" >&5 | ||
19967 | $as_echo "${have_module}" >&6; } | ||
19968 | |||
19969 | static_module="no" | ||
19970 | if test "x${enable_module}" = "xstatic" ; then | ||
19971 | static_module="yes" | ||
19972 | have_static_module="yes" | ||
19973 | |||
19974 | $as_echo "#define EINA_STATIC_BUILD_FIXED_BITMAP 1" >>confdefs.h | ||
19975 | |||
19976 | fi | ||
19977 | |||
19978 | if ! test "x${enable_module}" = "xno" ; then | ||
19979 | |||
19980 | $as_echo "#define EINA_BUILD_FIXED_BITMAP 1" >>confdefs.h | ||
19981 | |||
19982 | fi | ||
19983 | |||
19984 | if test "x${have_module}" = "xyes"; then | ||
19985 | EINA_BUILD_FIXED_BITMAP_TRUE= | ||
19986 | EINA_BUILD_FIXED_BITMAP_FALSE='#' | ||
19987 | else | ||
19988 | EINA_BUILD_FIXED_BITMAP_TRUE='#' | ||
19989 | EINA_BUILD_FIXED_BITMAP_FALSE= | ||
19990 | fi | ||
19991 | |||
19992 | if test "x${static_module}" = "xyes"; then | ||
19993 | EINA_STATIC_BUILD_FIXED_BITMAP_TRUE= | ||
19994 | EINA_STATIC_BUILD_FIXED_BITMAP_FALSE='#' | ||
19995 | else | ||
19996 | EINA_STATIC_BUILD_FIXED_BITMAP_TRUE='#' | ||
19997 | EINA_STATIC_BUILD_FIXED_BITMAP_FALSE= | ||
19998 | fi | ||
19999 | |||
20000 | |||
20001 | enable_fixed_bitmap=${enable_module} | ||
20002 | |||
20003 | |||
20004 | |||
20005 | |||
20006 | |||
20007 | |||
20008 | # Check whether --enable-mempool-pass-through was given. | ||
20009 | if test "${enable_mempool_pass_through+set}" = set; then : | ||
20010 | enableval=$enable_mempool_pass_through; | ||
20011 | if test "x${enableval}" = "xyes" ; then | ||
20012 | enable_module="yes" | ||
20013 | else | ||
20014 | if test "x${enableval}" = "xstatic" ; then | ||
20015 | enable_module="static" | ||
20016 | else | ||
20017 | enable_module="no" | ||
20018 | fi | ||
20019 | fi | ||
20020 | |||
20021 | else | ||
20022 | enable_module=${enable_pass_through} | ||
20023 | fi | ||
20024 | |||
20025 | |||
20026 | have_module="no" | ||
20027 | if test "x${enable_module}" = "xyes" || test "x${enable_module}" = "xstatic" ; then | ||
20028 | have_module="yes" | ||
20029 | fi | ||
20030 | |||
20031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable pass through built" >&5 | ||
20032 | $as_echo_n "checking whether to enable pass through built... " >&6; } | ||
20033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_module}" >&5 | ||
20034 | $as_echo "${have_module}" >&6; } | ||
20035 | |||
20036 | static_module="no" | ||
20037 | if test "x${enable_module}" = "xstatic" ; then | ||
20038 | static_module="yes" | ||
20039 | have_static_module="yes" | ||
20040 | |||
20041 | $as_echo "#define EINA_STATIC_BUILD_PASS_THROUGH 1" >>confdefs.h | ||
20042 | |||
20043 | fi | ||
20044 | |||
20045 | if ! test "x${enable_module}" = "xno" ; then | ||
20046 | |||
20047 | $as_echo "#define EINA_BUILD_PASS_THROUGH 1" >>confdefs.h | ||
20048 | |||
20049 | fi | ||
20050 | |||
20051 | if test "x${have_module}" = "xyes"; then | ||
20052 | EINA_BUILD_PASS_THROUGH_TRUE= | ||
20053 | EINA_BUILD_PASS_THROUGH_FALSE='#' | ||
20054 | else | ||
20055 | EINA_BUILD_PASS_THROUGH_TRUE='#' | ||
20056 | EINA_BUILD_PASS_THROUGH_FALSE= | ||
20057 | fi | ||
20058 | |||
20059 | if test "x${static_module}" = "xyes"; then | ||
20060 | EINA_STATIC_BUILD_PASS_THROUGH_TRUE= | ||
20061 | EINA_STATIC_BUILD_PASS_THROUGH_FALSE='#' | ||
20062 | else | ||
20063 | EINA_STATIC_BUILD_PASS_THROUGH_TRUE='#' | ||
20064 | EINA_STATIC_BUILD_PASS_THROUGH_FALSE= | ||
20065 | fi | ||
20066 | |||
20067 | |||
20068 | enable_pass_through=${enable_module} | ||
20069 | |||
20070 | |||
20071 | |||
20072 | |||
20073 | |||
20074 | |||
20075 | # Check whether --enable-mempool-buddy was given. | ||
20076 | if test "${enable_mempool_buddy+set}" = set; then : | ||
20077 | enableval=$enable_mempool_buddy; | ||
20078 | if test "x${enableval}" = "xyes" ; then | ||
20079 | enable_module="yes" | ||
20080 | else | ||
20081 | if test "x${enableval}" = "xstatic" ; then | ||
20082 | enable_module="static" | ||
20083 | else | ||
20084 | enable_module="no" | ||
20085 | fi | ||
20086 | fi | ||
20087 | |||
20088 | else | ||
20089 | enable_module=no | ||
20090 | fi | ||
20091 | |||
20092 | |||
20093 | have_module="no" | ||
20094 | if test "x${enable_module}" = "xyes" || test "x${enable_module}" = "xstatic" ; then | ||
20095 | have_module="yes" | ||
20096 | fi | ||
20097 | |||
20098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable buddy built" >&5 | ||
20099 | $as_echo_n "checking whether to enable buddy built... " >&6; } | ||
20100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_module}" >&5 | ||
20101 | $as_echo "${have_module}" >&6; } | ||
20102 | |||
20103 | static_module="no" | ||
20104 | if test "x${enable_module}" = "xstatic" ; then | ||
20105 | static_module="yes" | ||
20106 | have_static_module="yes" | ||
20107 | |||
20108 | $as_echo "#define EINA_STATIC_BUILD_BUDDY 1" >>confdefs.h | ||
20109 | |||
20110 | fi | ||
20111 | |||
20112 | if ! test "x${enable_module}" = "xno" ; then | ||
20113 | |||
20114 | $as_echo "#define EINA_BUILD_BUDDY 1" >>confdefs.h | ||
20115 | |||
20116 | fi | ||
20117 | |||
20118 | if test "x${have_module}" = "xyes"; then | ||
20119 | EINA_BUILD_BUDDY_TRUE= | ||
20120 | EINA_BUILD_BUDDY_FALSE='#' | ||
20121 | else | ||
20122 | EINA_BUILD_BUDDY_TRUE='#' | ||
20123 | EINA_BUILD_BUDDY_FALSE= | ||
20124 | fi | ||
20125 | |||
20126 | if test "x${static_module}" = "xyes"; then | ||
20127 | EINA_STATIC_BUILD_BUDDY_TRUE= | ||
20128 | EINA_STATIC_BUILD_BUDDY_FALSE='#' | ||
20129 | else | ||
20130 | EINA_STATIC_BUILD_BUDDY_TRUE='#' | ||
20131 | EINA_STATIC_BUILD_BUDDY_FALSE= | ||
20132 | fi | ||
20133 | |||
20134 | |||
20135 | enable_buddy=${enable_module} | ||
20136 | |||
20137 | |||
20138 | |||
20139 | |||
20140 | |||
20141 | |||
20142 | # Check whether --enable-mempool-one-big was given. | ||
20143 | if test "${enable_mempool_one_big+set}" = set; then : | ||
20144 | enableval=$enable_mempool_one_big; | ||
20145 | if test "x${enableval}" = "xyes" ; then | ||
20146 | enable_module="yes" | ||
20147 | else | ||
20148 | if test "x${enableval}" = "xstatic" ; then | ||
20149 | enable_module="static" | ||
20150 | else | ||
20151 | enable_module="no" | ||
20152 | fi | ||
20153 | fi | ||
20154 | |||
20155 | else | ||
20156 | enable_module=${enable_one_big} | ||
20157 | fi | ||
20158 | |||
20159 | |||
20160 | have_module="no" | ||
20161 | if test "x${enable_module}" = "xyes" || test "x${enable_module}" = "xstatic" ; then | ||
20162 | have_module="yes" | ||
20163 | fi | ||
20164 | |||
20165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable one big built" >&5 | ||
20166 | $as_echo_n "checking whether to enable one big built... " >&6; } | ||
20167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_module}" >&5 | ||
20168 | $as_echo "${have_module}" >&6; } | ||
20169 | |||
20170 | static_module="no" | ||
20171 | if test "x${enable_module}" = "xstatic" ; then | ||
20172 | static_module="yes" | ||
20173 | have_static_module="yes" | ||
20174 | |||
20175 | $as_echo "#define EINA_STATIC_BUILD_ONE_BIG 1" >>confdefs.h | ||
20176 | |||
20177 | fi | ||
20178 | |||
20179 | if ! test "x${enable_module}" = "xno" ; then | ||
20180 | |||
20181 | $as_echo "#define EINA_BUILD_ONE_BIG 1" >>confdefs.h | ||
20182 | |||
20183 | fi | ||
20184 | |||
20185 | if test "x${have_module}" = "xyes"; then | ||
20186 | EINA_BUILD_ONE_BIG_TRUE= | ||
20187 | EINA_BUILD_ONE_BIG_FALSE='#' | ||
20188 | else | ||
20189 | EINA_BUILD_ONE_BIG_TRUE='#' | ||
20190 | EINA_BUILD_ONE_BIG_FALSE= | ||
20191 | fi | ||
20192 | |||
20193 | if test "x${static_module}" = "xyes"; then | ||
20194 | EINA_STATIC_BUILD_ONE_BIG_TRUE= | ||
20195 | EINA_STATIC_BUILD_ONE_BIG_FALSE='#' | ||
20196 | else | ||
20197 | EINA_STATIC_BUILD_ONE_BIG_TRUE='#' | ||
20198 | EINA_STATIC_BUILD_ONE_BIG_FALSE= | ||
20199 | fi | ||
20200 | |||
20201 | |||
20202 | enable_one_big=${enable_module} | ||
20203 | |||
20204 | |||
20205 | |||
20206 | |||
20207 | |||
20208 | ### Make the debug preprocessor configurable | ||
20209 | |||
20210 | ### Unit tests, coverage and benchmarking | ||
20211 | |||
20212 | |||
20213 | |||
20214 | |||
20215 | # Check whether --enable-tests was given. | ||
20216 | if test "${enable_tests+set}" = set; then : | ||
20217 | enableval=$enable_tests; | ||
20218 | if test "x${enableval}" = "xyes" ; then | ||
20219 | _efl_enable_tests="yes" | ||
20220 | else | ||
20221 | _efl_enable_tests="no" | ||
20222 | fi | ||
20223 | |||
20224 | else | ||
20225 | _efl_enable_tests="no" | ||
20226 | fi | ||
20227 | |||
20228 | |||
20229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests are built" >&5 | ||
20230 | $as_echo_n "checking whether tests are built... " >&6; } | ||
20231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_tests}" >&5 | ||
20232 | $as_echo "${_efl_enable_tests}" >&6; } | ||
20233 | |||
20234 | |||
20235 | |||
20236 | if test "x${_efl_enable_tests}" = "xyes" ; then | ||
20237 | |||
20238 | pkg_failed=no | ||
20239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5 | ||
20240 | $as_echo_n "checking for CHECK... " >&6; } | ||
20241 | |||
20242 | if test -n "$CHECK_CFLAGS"; then | ||
20243 | pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS" | ||
20244 | elif test -n "$PKG_CONFIG"; then | ||
20245 | if test -n "$PKG_CONFIG" && \ | ||
20246 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.5\""; } >&5 | ||
20247 | ($PKG_CONFIG --exists --print-errors "check >= 0.9.5") 2>&5 | ||
20248 | ac_status=$? | ||
20249 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20250 | test $ac_status = 0; }; then | ||
20251 | pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.5" 2>/dev/null` | ||
20252 | else | ||
20253 | pkg_failed=yes | ||
20254 | fi | ||
20255 | else | ||
20256 | pkg_failed=untried | ||
20257 | fi | ||
20258 | if test -n "$CHECK_LIBS"; then | ||
20259 | pkg_cv_CHECK_LIBS="$CHECK_LIBS" | ||
20260 | elif test -n "$PKG_CONFIG"; then | ||
20261 | if test -n "$PKG_CONFIG" && \ | ||
20262 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.5\""; } >&5 | ||
20263 | ($PKG_CONFIG --exists --print-errors "check >= 0.9.5") 2>&5 | ||
20264 | ac_status=$? | ||
20265 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20266 | test $ac_status = 0; }; then | ||
20267 | pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.5" 2>/dev/null` | ||
20268 | else | ||
20269 | pkg_failed=yes | ||
20270 | fi | ||
20271 | else | ||
20272 | pkg_failed=untried | ||
20273 | fi | ||
20274 | |||
20275 | |||
20276 | |||
20277 | if test $pkg_failed = yes; then | ||
20278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20279 | $as_echo "no" >&6; } | ||
20280 | |||
20281 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
20282 | _pkg_short_errors_supported=yes | ||
20283 | else | ||
20284 | _pkg_short_errors_supported=no | ||
20285 | fi | ||
20286 | if test $_pkg_short_errors_supported = yes; then | ||
20287 | CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "check >= 0.9.5" 2>&1` | ||
20288 | else | ||
20289 | CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors "check >= 0.9.5" 2>&1` | ||
20290 | fi | ||
20291 | # Put the nasty error message in config.log where it belongs | ||
20292 | echo "$CHECK_PKG_ERRORS" >&5 | ||
20293 | |||
20294 | _efl_enable_tests="no" | ||
20295 | elif test $pkg_failed = untried; then | ||
20296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20297 | $as_echo "no" >&6; } | ||
20298 | _efl_enable_tests="no" | ||
20299 | else | ||
20300 | CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS | ||
20301 | CHECK_LIBS=$pkg_cv_CHECK_LIBS | ||
20302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
20303 | $as_echo "yes" >&6; } | ||
20304 | dummy="yes" | ||
20305 | fi | ||
20306 | fi | ||
20307 | |||
20308 | if test "x${_efl_enable_tests}" = "xyes"; then | ||
20309 | EFL_ENABLE_TESTS_TRUE= | ||
20310 | EFL_ENABLE_TESTS_FALSE='#' | ||
20311 | else | ||
20312 | EFL_ENABLE_TESTS_TRUE='#' | ||
20313 | EFL_ENABLE_TESTS_FALSE= | ||
20314 | fi | ||
20315 | |||
20316 | |||
20317 | if test "x$_efl_enable_tests" = "xyes"; then : | ||
20318 | enable_tests="yes" | ||
20319 | else | ||
20320 | enable_tests="no" | ||
20321 | fi | ||
20322 | |||
20323 | |||
20324 | |||
20325 | |||
20326 | |||
20327 | # Check whether --enable-coverage was given. | ||
20328 | if test "${enable_coverage+set}" = set; then : | ||
20329 | enableval=$enable_coverage; | ||
20330 | if test "x${enableval}" = "xyes" ; then | ||
20331 | _efl_enable_coverage="yes" | ||
20332 | else | ||
20333 | _efl_enable_coverage="no" | ||
20334 | fi | ||
20335 | |||
20336 | else | ||
20337 | _efl_enable_coverage="no" | ||
20338 | fi | ||
20339 | |||
20340 | |||
20341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use profiling instrumentation" >&5 | ||
20342 | $as_echo_n "checking whether to use profiling instrumentation... " >&6; } | ||
20343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_efl_enable_coverage" >&5 | ||
20344 | $as_echo "$_efl_enable_coverage" >&6; } | ||
20345 | |||
20346 | |||
20347 | if test "x$_efl_enable_coverage" = "xyes" && test ! "x${enable_tests}" = "xyes" ; then | ||
20348 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Coverage report requested but tests not being built, disable profiling instrumentation." >&5 | ||
20349 | $as_echo "$as_me: WARNING: Coverage report requested but tests not being built, disable profiling instrumentation." >&2;} | ||
20350 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Run configure with --enable-tests" >&5 | ||
20351 | $as_echo "$as_me: WARNING: Run configure with --enable-tests" >&2;} | ||
20352 | _efl_enable_coverage="no" | ||
20353 | fi | ||
20354 | |||
20355 | if test "x$_efl_enable_coverage" = "xyes" ; then | ||
20356 | # Extract the first word of "lcov", so it can be a program name with args. | ||
20357 | set dummy lcov; ac_word=$2 | ||
20358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
20359 | $as_echo_n "checking for $ac_word... " >&6; } | ||
20360 | if test "${ac_cv_prog_have_lcov+set}" = set; then : | ||
20361 | $as_echo_n "(cached) " >&6 | ||
20362 | else | ||
20363 | if test -n "$have_lcov"; then | ||
20364 | ac_cv_prog_have_lcov="$have_lcov" # Let the user override the test. | ||
20365 | else | ||
20366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
20367 | for as_dir in $PATH | ||
20368 | do | ||
20369 | IFS=$as_save_IFS | ||
20370 | test -z "$as_dir" && as_dir=. | ||
20371 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
20372 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
20373 | ac_cv_prog_have_lcov="yes" | ||
20374 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
20375 | break 2 | ||
20376 | fi | ||
20377 | done | ||
20378 | done | ||
20379 | IFS=$as_save_IFS | ||
20380 | |||
20381 | test -z "$ac_cv_prog_have_lcov" && ac_cv_prog_have_lcov="no" | ||
20382 | fi | ||
20383 | fi | ||
20384 | have_lcov=$ac_cv_prog_have_lcov | ||
20385 | if test -n "$have_lcov"; then | ||
20386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_lcov" >&5 | ||
20387 | $as_echo "$have_lcov" >&6; } | ||
20388 | else | ||
20389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20390 | $as_echo "no" >&6; } | ||
20391 | fi | ||
20392 | |||
20393 | |||
20394 | if test "x$have_lcov" = "xyes" ; then | ||
20395 | EFL_COVERAGE_CFLAGS="-fprofile-arcs -ftest-coverage" | ||
20396 | EFL_COVERAGE_LIBS="-lgcov" | ||
20397 | # remove any optimisation flag and force debug symbols | ||
20398 | EFL_DEBUG_CFLAGS="-g -O0 -DDEBUG" | ||
20399 | else | ||
20400 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: lcov is not found, disable profiling instrumentation" >&5 | ||
20401 | $as_echo "$as_me: WARNING: lcov is not found, disable profiling instrumentation" >&2;} | ||
20402 | _efl_enable_coverage="no" | ||
20403 | fi | ||
20404 | fi | ||
20405 | |||
20406 | |||
20407 | |||
20408 | |||
20409 | if test "x${_efl_enable_coverage}" = "xyes"; then | ||
20410 | EFL_ENABLE_COVERAGE_TRUE= | ||
20411 | EFL_ENABLE_COVERAGE_FALSE='#' | ||
20412 | else | ||
20413 | EFL_ENABLE_COVERAGE_TRUE='#' | ||
20414 | EFL_ENABLE_COVERAGE_FALSE= | ||
20415 | fi | ||
20416 | |||
20417 | |||
20418 | if test "x$_efl_enable_coverage" = "xyes"; then : | ||
20419 | enable_coverage="yes" | ||
20420 | else | ||
20421 | enable_coverage="no" | ||
20422 | fi | ||
20423 | |||
20424 | EINA_CFLAGS="${EINA_CFLAGS} ${EFL_COVERAGE_CFLAGS}" | ||
20425 | EINA_LIBS="${EINA_LIBS} ${EFL_COVERAGE_LIBS}" | ||
20426 | if test "x$enable_coverage" = "xyes" ; then | ||
20427 | EINA_CFLAGS="${EINA_CFLAGS} ${EFL_DEBUG_CFLAGS}" | ||
20428 | fi | ||
20429 | |||
20430 | |||
20431 | |||
20432 | |||
20433 | # Check whether --enable-benchmark was given. | ||
20434 | if test "${enable_benchmark+set}" = set; then : | ||
20435 | enableval=$enable_benchmark; | ||
20436 | if test "x${enableval}" = "xyes" ; then | ||
20437 | _efl_enable_benchmark="yes" | ||
20438 | else | ||
20439 | _efl_enable_benchmark="no" | ||
20440 | fi | ||
20441 | |||
20442 | else | ||
20443 | _efl_enable_benchmark="no" | ||
20444 | fi | ||
20445 | |||
20446 | |||
20447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether benchmark are built" >&5 | ||
20448 | $as_echo_n "checking whether benchmark are built... " >&6; } | ||
20449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_benchmark}" >&5 | ||
20450 | $as_echo "${_efl_enable_benchmark}" >&6; } | ||
20451 | |||
20452 | if test "x${_efl_enable_benchmark}" = "xyes"; then | ||
20453 | EFL_ENABLE_BENCHMARK_TRUE= | ||
20454 | EFL_ENABLE_BENCHMARK_FALSE='#' | ||
20455 | else | ||
20456 | EFL_ENABLE_BENCHMARK_TRUE='#' | ||
20457 | EFL_ENABLE_BENCHMARK_FALSE= | ||
20458 | fi | ||
20459 | |||
20460 | |||
20461 | if test "x$_efl_enable_benchmark" = "xyes"; then : | ||
20462 | enable_benchmark="yes" | ||
20463 | else | ||
20464 | enable_benchmark="no" | ||
20465 | fi | ||
20466 | |||
20467 | |||
20468 | |||
20469 | want_module="${enable_benchmark}" | ||
20470 | have_module="no" | ||
20471 | |||
20472 | # Check whether --enable-glib was given. | ||
20473 | if test "${enable_glib+set}" = set; then : | ||
20474 | enableval=$enable_glib; | ||
20475 | if test "x${enableval}" = "xyes" ; then | ||
20476 | enable_module="yes" | ||
20477 | else | ||
20478 | enable_module="no" | ||
20479 | fi | ||
20480 | |||
20481 | else | ||
20482 | enable_module="yes" | ||
20483 | fi | ||
20484 | |||
20485 | |||
20486 | if test "x${enable_module}" = "xyes" && test "x${want_module}" = "xyes"; then | ||
20487 | |||
20488 | pkg_failed=no | ||
20489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5 | ||
20490 | $as_echo_n "checking for GLIB... " >&6; } | ||
20491 | |||
20492 | if test -n "$GLIB_CFLAGS"; then | ||
20493 | pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" | ||
20494 | elif test -n "$PKG_CONFIG"; then | ||
20495 | if test -n "$PKG_CONFIG" && \ | ||
20496 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5 | ||
20497 | ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5 | ||
20498 | ac_status=$? | ||
20499 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20500 | test $ac_status = 0; }; then | ||
20501 | pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null` | ||
20502 | else | ||
20503 | pkg_failed=yes | ||
20504 | fi | ||
20505 | else | ||
20506 | pkg_failed=untried | ||
20507 | fi | ||
20508 | if test -n "$GLIB_LIBS"; then | ||
20509 | pkg_cv_GLIB_LIBS="$GLIB_LIBS" | ||
20510 | elif test -n "$PKG_CONFIG"; then | ||
20511 | if test -n "$PKG_CONFIG" && \ | ||
20512 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5 | ||
20513 | ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5 | ||
20514 | ac_status=$? | ||
20515 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20516 | test $ac_status = 0; }; then | ||
20517 | pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null` | ||
20518 | else | ||
20519 | pkg_failed=yes | ||
20520 | fi | ||
20521 | else | ||
20522 | pkg_failed=untried | ||
20523 | fi | ||
20524 | |||
20525 | |||
20526 | |||
20527 | if test $pkg_failed = yes; then | ||
20528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20529 | $as_echo "no" >&6; } | ||
20530 | |||
20531 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
20532 | _pkg_short_errors_supported=yes | ||
20533 | else | ||
20534 | _pkg_short_errors_supported=no | ||
20535 | fi | ||
20536 | if test $_pkg_short_errors_supported = yes; then | ||
20537 | GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1` | ||
20538 | else | ||
20539 | GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1` | ||
20540 | fi | ||
20541 | # Put the nasty error message in config.log where it belongs | ||
20542 | echo "$GLIB_PKG_ERRORS" >&5 | ||
20543 | |||
20544 | have_module="no" | ||
20545 | elif test $pkg_failed = untried; then | ||
20546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20547 | $as_echo "no" >&6; } | ||
20548 | have_module="no" | ||
20549 | else | ||
20550 | GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS | ||
20551 | GLIB_LIBS=$pkg_cv_GLIB_LIBS | ||
20552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
20553 | $as_echo "yes" >&6; } | ||
20554 | have_module="yes" | ||
20555 | fi | ||
20556 | fi | ||
20557 | |||
20558 | if test "x${have_module}" = "xyes"; then | ||
20559 | EINA_HAVE_GLIB_TRUE= | ||
20560 | EINA_HAVE_GLIB_FALSE='#' | ||
20561 | else | ||
20562 | EINA_HAVE_GLIB_TRUE='#' | ||
20563 | EINA_HAVE_GLIB_FALSE= | ||
20564 | fi | ||
20565 | |||
20566 | |||
20567 | if test "x$have_module" = "xyes"; then : | ||
20568 | enable_benchmark_glib="yes" | ||
20569 | else | ||
20570 | enable_benchmark_glib="no" | ||
20571 | fi | ||
20572 | |||
20573 | |||
20574 | |||
20575 | |||
20576 | if test -n "$CXX" && test "x$enable_benchmark" = "xyes" ; then | ||
20577 | |||
20578 | cat >>confdefs.h <<_ACEOF | ||
20579 | #define CITYHASH_BENCH 1 | ||
20580 | _ACEOF | ||
20581 | |||
20582 | fi | ||
20583 | if test -n "$CXX" && test "x$enable_benchmark" = "xyes"; then | ||
20584 | CITYHASH_BENCH_TRUE= | ||
20585 | CITYHASH_BENCH_FALSE='#' | ||
20586 | else | ||
20587 | CITYHASH_BENCH_TRUE='#' | ||
20588 | CITYHASH_BENCH_FALSE= | ||
20589 | fi | ||
20590 | |||
20591 | |||
20592 | |||
20593 | |||
20594 | ### Build and install examples | ||
20595 | |||
20596 | |||
20597 | |||
20598 | # Check whether --enable-build-examples was given. | ||
20599 | if test "${enable_build_examples+set}" = set; then : | ||
20600 | enableval=$enable_build_examples; | ||
20601 | if test "x${enableval}" = "xyes" ; then | ||
20602 | _efl_enable_build_examples="yes" | ||
20603 | else | ||
20604 | _efl_enable_build_examples="no" | ||
20605 | fi | ||
20606 | |||
20607 | else | ||
20608 | _efl_enable_build_examples="no" | ||
20609 | fi | ||
20610 | |||
20611 | |||
20612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether examples are built" >&5 | ||
20613 | $as_echo_n "checking whether examples are built... " >&6; } | ||
20614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_build_examples}" >&5 | ||
20615 | $as_echo "${_efl_enable_build_examples}" >&6; } | ||
20616 | |||
20617 | if test "x${_efl_enable_build_examples}" = "xyes"; then | ||
20618 | EFL_BUILD_EXAMPLES_TRUE= | ||
20619 | EFL_BUILD_EXAMPLES_FALSE='#' | ||
20620 | else | ||
20621 | EFL_BUILD_EXAMPLES_TRUE='#' | ||
20622 | EFL_BUILD_EXAMPLES_FALSE= | ||
20623 | fi | ||
20624 | |||
20625 | |||
20626 | if test "x$_efl_enable_build_examples" = "xyes"; then : | ||
20627 | enable_build_examples="yes" | ||
20628 | else | ||
20629 | enable_build_examples="no" | ||
20630 | fi | ||
20631 | |||
20632 | |||
20633 | |||
20634 | |||
20635 | # Check whether --enable-install-examples was given. | ||
20636 | if test "${enable_install_examples+set}" = set; then : | ||
20637 | enableval=$enable_install_examples; | ||
20638 | if test "x${enableval}" = "xyes" ; then | ||
20639 | _efl_enable_install_examples="yes" | ||
20640 | else | ||
20641 | _efl_enable_install_examples="no" | ||
20642 | fi | ||
20643 | |||
20644 | else | ||
20645 | _efl_enable_install_examples="no" | ||
20646 | fi | ||
20647 | |||
20648 | |||
20649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether examples are installed" >&5 | ||
20650 | $as_echo_n "checking whether examples are installed... " >&6; } | ||
20651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_install_examples}" >&5 | ||
20652 | $as_echo "${_efl_enable_install_examples}" >&6; } | ||
20653 | |||
20654 | if test "x${_efl_enable_install_examples}" = "xyes"; then | ||
20655 | EFL_INSTALL_EXAMPLES_TRUE= | ||
20656 | EFL_INSTALL_EXAMPLES_FALSE='#' | ||
20657 | else | ||
20658 | EFL_INSTALL_EXAMPLES_TRUE='#' | ||
20659 | EFL_INSTALL_EXAMPLES_FALSE= | ||
20660 | fi | ||
20661 | |||
20662 | |||
20663 | if test "x$_efl_enable_install_examples" = "xyes"; then : | ||
20664 | enable_install_examples="yes" | ||
20665 | else | ||
20666 | enable_install_examples="no" | ||
20667 | fi | ||
20668 | |||
20669 | |||
20670 | ac_config_files="$ac_config_files Makefile eina.pc eina.spec doc/Makefile doc/Doxyfile src/Makefile src/include/Makefile src/include/eina_config.h src/lib/Makefile src/modules/Makefile src/modules/mp/Makefile src/modules/mp/chained_pool/Makefile src/modules/mp/ememoa_fixed/Makefile src/modules/mp/ememoa_unknown/Makefile src/modules/mp/pass_through/Makefile src/modules/mp/fixed_bitmap/Makefile src/modules/mp/buddy/Makefile src/modules/mp/one_big/Makefile src/tests/Makefile src/examples/Makefile" | ||
20671 | |||
20672 | |||
20673 | cat >confcache <<\_ACEOF | ||
20674 | # This file is a shell script that caches the results of configure | ||
20675 | # tests run on this system so they can be shared between configure | ||
20676 | # scripts and configure runs, see configure's option --config-cache. | ||
20677 | # It is not useful on other systems. If it contains results you don't | ||
20678 | # want to keep, you may remove or edit it. | ||
20679 | # | ||
20680 | # config.status only pays attention to the cache file if you give it | ||
20681 | # the --recheck option to rerun configure. | ||
20682 | # | ||
20683 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
20684 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
20685 | # following values. | ||
20686 | |||
20687 | _ACEOF | ||
20688 | |||
20689 | # The following way of writing the cache mishandles newlines in values, | ||
20690 | # but we know of no workaround that is simple, portable, and efficient. | ||
20691 | # So, we kill variables containing newlines. | ||
20692 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
20693 | # and sets the high bit in the cache file unless we assign to the vars. | ||
20694 | ( | ||
20695 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
20696 | eval ac_val=\$$ac_var | ||
20697 | case $ac_val in #( | ||
20698 | *${as_nl}*) | ||
20699 | case $ac_var in #( | ||
20700 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
20701 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
20702 | esac | ||
20703 | case $ac_var in #( | ||
20704 | _ | IFS | as_nl) ;; #( | ||
20705 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
20706 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
20707 | esac ;; | ||
20708 | esac | ||
20709 | done | ||
20710 | |||
20711 | (set) 2>&1 | | ||
20712 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
20713 | *${as_nl}ac_space=\ *) | ||
20714 | # `set' does not quote correctly, so add quotes: double-quote | ||
20715 | # substitution turns \\\\ into \\, and sed turns \\ into \. | ||
20716 | sed -n \ | ||
20717 | "s/'/'\\\\''/g; | ||
20718 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
20719 | ;; #( | ||
20720 | *) | ||
20721 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
20722 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
20723 | ;; | ||
20724 | esac | | ||
20725 | sort | ||
20726 | ) | | ||
20727 | sed ' | ||
20728 | /^ac_cv_env_/b end | ||
20729 | t clear | ||
20730 | :clear | ||
20731 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
20732 | t end | ||
20733 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
20734 | :end' >>confcache | ||
20735 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
20736 | if test -w "$cache_file"; then | ||
20737 | test "x$cache_file" != "x/dev/null" && | ||
20738 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | ||
20739 | $as_echo "$as_me: updating cache $cache_file" >&6;} | ||
20740 | cat confcache >$cache_file | ||
20741 | else | ||
20742 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | ||
20743 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
20744 | fi | ||
20745 | fi | ||
20746 | rm -f confcache | ||
20747 | |||
20748 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
20749 | # Let make expand exec_prefix. | ||
20750 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
20751 | |||
20752 | DEFS=-DHAVE_CONFIG_H | ||
20753 | |||
20754 | ac_libobjs= | ||
20755 | ac_ltlibobjs= | ||
20756 | U= | ||
20757 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
20758 | # 1. Remove the extension, and $U if already installed. | ||
20759 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
20760 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | ||
20761 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
20762 | # will be set to the directory where LIBOBJS objects are built. | ||
20763 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
20764 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | ||
20765 | done | ||
20766 | LIBOBJS=$ac_libobjs | ||
20767 | |||
20768 | LTLIBOBJS=$ac_ltlibobjs | ||
20769 | |||
20770 | |||
20771 | if test -n "$EXEEXT"; then | ||
20772 | am__EXEEXT_TRUE= | ||
20773 | am__EXEEXT_FALSE='#' | ||
20774 | else | ||
20775 | am__EXEEXT_TRUE='#' | ||
20776 | am__EXEEXT_FALSE= | ||
20777 | fi | ||
20778 | |||
20779 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | ||
20780 | as_fn_error $? "conditional \"AMDEP\" was never defined. | ||
20781 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20782 | fi | ||
20783 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | ||
20784 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | ||
20785 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20786 | fi | ||
20787 | if test -z "${EINA_HAVE_THREADS_TRUE}" && test -z "${EINA_HAVE_THREADS_FALSE}"; then | ||
20788 | as_fn_error $? "conditional \"EINA_HAVE_THREADS\" was never defined. | ||
20789 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20790 | fi | ||
20791 | if test -z "${EINA_DEBUG_THREADS_TRUE}" && test -z "${EINA_DEBUG_THREADS_FALSE}"; then | ||
20792 | as_fn_error $? "conditional \"EINA_DEBUG_THREADS\" was never defined. | ||
20793 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20794 | fi | ||
20795 | if test -z "${EINA_ON_OFF_THREADS_TRUE}" && test -z "${EINA_ON_OFF_THREADS_FALSE}"; then | ||
20796 | as_fn_error $? "conditional \"EINA_ON_OFF_THREADS\" was never defined. | ||
20797 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20798 | fi | ||
20799 | if test -z "${SAFETY_CHECKS_TRUE}" && test -z "${SAFETY_CHECKS_FALSE}"; then | ||
20800 | as_fn_error $? "conditional \"SAFETY_CHECKS\" was never defined. | ||
20801 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20802 | fi | ||
20803 | if test -z "${EINA_AMALGAMATION_TRUE}" && test -z "${EINA_AMALGAMATION_FALSE}"; then | ||
20804 | as_fn_error $? "conditional \"EINA_AMALGAMATION\" was never defined. | ||
20805 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20806 | fi | ||
20807 | if test -z "${EINA_ENABLE_BENCHMARK_E17_TRUE}" && test -z "${EINA_ENABLE_BENCHMARK_E17_FALSE}"; then | ||
20808 | as_fn_error $? "conditional \"EINA_ENABLE_BENCHMARK_E17\" was never defined. | ||
20809 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20810 | fi | ||
20811 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | ||
20812 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | ||
20813 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20814 | fi | ||
20815 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | ||
20816 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | ||
20817 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20818 | fi | ||
20819 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | ||
20820 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | ||
20821 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20822 | fi | ||
20823 | if test -z "${EFL_BUILD_DOC_TRUE}" && test -z "${EFL_BUILD_DOC_FALSE}"; then | ||
20824 | as_fn_error $? "conditional \"EFL_BUILD_DOC\" was never defined. | ||
20825 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20826 | fi | ||
20827 | if test -z "${BUILD_TILER_EXAMPLE_TRUE}" && test -z "${BUILD_TILER_EXAMPLE_FALSE}"; then | ||
20828 | as_fn_error $? "conditional \"BUILD_TILER_EXAMPLE\" was never defined. | ||
20829 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20830 | fi | ||
20831 | |||
20832 | if test -z "${EINA_HAVE_WINCE_TRUE}" && test -z "${EINA_HAVE_WINCE_FALSE}"; then | ||
20833 | as_fn_error $? "conditional \"EINA_HAVE_WINCE\" was never defined. | ||
20834 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20835 | fi | ||
20836 | if test -z "${EINA_HAVE_WIN32_TRUE}" && test -z "${EINA_HAVE_WIN32_FALSE}"; then | ||
20837 | as_fn_error $? "conditional \"EINA_HAVE_WIN32\" was never defined. | ||
20838 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20839 | fi | ||
20840 | if test -z "${EINA_BUILD_CHAINED_POOL_TRUE}" && test -z "${EINA_BUILD_CHAINED_POOL_FALSE}"; then | ||
20841 | as_fn_error $? "conditional \"EINA_BUILD_CHAINED_POOL\" was never defined. | ||
20842 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20843 | fi | ||
20844 | if test -z "${EINA_STATIC_BUILD_CHAINED_POOL_TRUE}" && test -z "${EINA_STATIC_BUILD_CHAINED_POOL_FALSE}"; then | ||
20845 | as_fn_error $? "conditional \"EINA_STATIC_BUILD_CHAINED_POOL\" was never defined. | ||
20846 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20847 | fi | ||
20848 | if test -z "${EINA_BUILD_EMEMOA_FIXED_TRUE}" && test -z "${EINA_BUILD_EMEMOA_FIXED_FALSE}"; then | ||
20849 | as_fn_error $? "conditional \"EINA_BUILD_EMEMOA_FIXED\" was never defined. | ||
20850 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20851 | fi | ||
20852 | if test -z "${EINA_STATIC_BUILD_EMEMOA_FIXED_TRUE}" && test -z "${EINA_STATIC_BUILD_EMEMOA_FIXED_FALSE}"; then | ||
20853 | as_fn_error $? "conditional \"EINA_STATIC_BUILD_EMEMOA_FIXED\" was never defined. | ||
20854 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20855 | fi | ||
20856 | if test -z "${EINA_BUILD_EMEMOA_UNKNOWN_TRUE}" && test -z "${EINA_BUILD_EMEMOA_UNKNOWN_FALSE}"; then | ||
20857 | as_fn_error $? "conditional \"EINA_BUILD_EMEMOA_UNKNOWN\" was never defined. | ||
20858 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20859 | fi | ||
20860 | if test -z "${EINA_STATIC_BUILD_EMEMOA_UNKNOWN_TRUE}" && test -z "${EINA_STATIC_BUILD_EMEMOA_UNKNOWN_FALSE}"; then | ||
20861 | as_fn_error $? "conditional \"EINA_STATIC_BUILD_EMEMOA_UNKNOWN\" was never defined. | ||
20862 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20863 | fi | ||
20864 | if test -z "${EINA_BUILD_FIXED_BITMAP_TRUE}" && test -z "${EINA_BUILD_FIXED_BITMAP_FALSE}"; then | ||
20865 | as_fn_error $? "conditional \"EINA_BUILD_FIXED_BITMAP\" was never defined. | ||
20866 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20867 | fi | ||
20868 | if test -z "${EINA_STATIC_BUILD_FIXED_BITMAP_TRUE}" && test -z "${EINA_STATIC_BUILD_FIXED_BITMAP_FALSE}"; then | ||
20869 | as_fn_error $? "conditional \"EINA_STATIC_BUILD_FIXED_BITMAP\" was never defined. | ||
20870 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20871 | fi | ||
20872 | if test -z "${EINA_BUILD_PASS_THROUGH_TRUE}" && test -z "${EINA_BUILD_PASS_THROUGH_FALSE}"; then | ||
20873 | as_fn_error $? "conditional \"EINA_BUILD_PASS_THROUGH\" was never defined. | ||
20874 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20875 | fi | ||
20876 | if test -z "${EINA_STATIC_BUILD_PASS_THROUGH_TRUE}" && test -z "${EINA_STATIC_BUILD_PASS_THROUGH_FALSE}"; then | ||
20877 | as_fn_error $? "conditional \"EINA_STATIC_BUILD_PASS_THROUGH\" was never defined. | ||
20878 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20879 | fi | ||
20880 | if test -z "${EINA_BUILD_BUDDY_TRUE}" && test -z "${EINA_BUILD_BUDDY_FALSE}"; then | ||
20881 | as_fn_error $? "conditional \"EINA_BUILD_BUDDY\" was never defined. | ||
20882 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20883 | fi | ||
20884 | if test -z "${EINA_STATIC_BUILD_BUDDY_TRUE}" && test -z "${EINA_STATIC_BUILD_BUDDY_FALSE}"; then | ||
20885 | as_fn_error $? "conditional \"EINA_STATIC_BUILD_BUDDY\" was never defined. | ||
20886 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20887 | fi | ||
20888 | if test -z "${EINA_BUILD_ONE_BIG_TRUE}" && test -z "${EINA_BUILD_ONE_BIG_FALSE}"; then | ||
20889 | as_fn_error $? "conditional \"EINA_BUILD_ONE_BIG\" was never defined. | ||
20890 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20891 | fi | ||
20892 | if test -z "${EINA_STATIC_BUILD_ONE_BIG_TRUE}" && test -z "${EINA_STATIC_BUILD_ONE_BIG_FALSE}"; then | ||
20893 | as_fn_error $? "conditional \"EINA_STATIC_BUILD_ONE_BIG\" was never defined. | ||
20894 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20895 | fi | ||
20896 | if test -z "${EFL_ENABLE_TESTS_TRUE}" && test -z "${EFL_ENABLE_TESTS_FALSE}"; then | ||
20897 | as_fn_error $? "conditional \"EFL_ENABLE_TESTS\" was never defined. | ||
20898 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20899 | fi | ||
20900 | if test -z "${EFL_ENABLE_COVERAGE_TRUE}" && test -z "${EFL_ENABLE_COVERAGE_FALSE}"; then | ||
20901 | as_fn_error $? "conditional \"EFL_ENABLE_COVERAGE\" was never defined. | ||
20902 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20903 | fi | ||
20904 | if test -z "${EFL_ENABLE_BENCHMARK_TRUE}" && test -z "${EFL_ENABLE_BENCHMARK_FALSE}"; then | ||
20905 | as_fn_error $? "conditional \"EFL_ENABLE_BENCHMARK\" was never defined. | ||
20906 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20907 | fi | ||
20908 | if test -z "${EINA_HAVE_GLIB_TRUE}" && test -z "${EINA_HAVE_GLIB_FALSE}"; then | ||
20909 | as_fn_error $? "conditional \"EINA_HAVE_GLIB\" was never defined. | ||
20910 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20911 | fi | ||
20912 | if test -z "${CITYHASH_BENCH_TRUE}" && test -z "${CITYHASH_BENCH_FALSE}"; then | ||
20913 | as_fn_error $? "conditional \"CITYHASH_BENCH\" was never defined. | ||
20914 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20915 | fi | ||
20916 | if test -z "${EFL_BUILD_EXAMPLES_TRUE}" && test -z "${EFL_BUILD_EXAMPLES_FALSE}"; then | ||
20917 | as_fn_error $? "conditional \"EFL_BUILD_EXAMPLES\" was never defined. | ||
20918 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20919 | fi | ||
20920 | if test -z "${EFL_INSTALL_EXAMPLES_TRUE}" && test -z "${EFL_INSTALL_EXAMPLES_FALSE}"; then | ||
20921 | as_fn_error $? "conditional \"EFL_INSTALL_EXAMPLES\" was never defined. | ||
20922 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
20923 | fi | ||
20924 | |||
20925 | : ${CONFIG_STATUS=./config.status} | ||
20926 | ac_write_fail=0 | ||
20927 | ac_clean_files_save=$ac_clean_files | ||
20928 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
20929 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | ||
20930 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
20931 | as_write_fail=0 | ||
20932 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | ||
20933 | #! $SHELL | ||
20934 | # Generated by $as_me. | ||
20935 | # Run this file to recreate the current configuration. | ||
20936 | # Compiler output produced by configure, useful for debugging | ||
20937 | # configure, is in config.log if it exists. | ||
20938 | |||
20939 | debug=false | ||
20940 | ac_cs_recheck=false | ||
20941 | ac_cs_silent=false | ||
20942 | |||
20943 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
20944 | export SHELL | ||
20945 | _ASEOF | ||
20946 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | ||
20947 | ## -------------------- ## | ||
20948 | ## M4sh Initialization. ## | ||
20949 | ## -------------------- ## | ||
20950 | |||
20951 | # Be more Bourne compatible | ||
20952 | DUALCASE=1; export DUALCASE # for MKS sh | ||
20953 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
20954 | emulate sh | ||
20955 | NULLCMD=: | ||
20956 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
20957 | # is contrary to our usage. Disable this feature. | ||
20958 | alias -g '${1+"$@"}'='"$@"' | ||
20959 | setopt NO_GLOB_SUBST | ||
20960 | else | ||
20961 | case `(set -o) 2>/dev/null` in #( | ||
20962 | *posix*) : | ||
20963 | set -o posix ;; #( | ||
20964 | *) : | ||
20965 | ;; | ||
20966 | esac | ||
20967 | fi | ||
20968 | |||
20969 | |||
20970 | as_nl=' | ||
20971 | ' | ||
20972 | export as_nl | ||
20973 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
20974 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
20975 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
20976 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
20977 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
20978 | # but without wasting forks for bash or zsh. | ||
20979 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
20980 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
20981 | as_echo='print -r --' | ||
20982 | as_echo_n='print -rn --' | ||
20983 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
20984 | as_echo='printf %s\n' | ||
20985 | as_echo_n='printf %s' | ||
20986 | else | ||
20987 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
20988 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
20989 | as_echo_n='/usr/ucb/echo -n' | ||
20990 | else | ||
20991 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
20992 | as_echo_n_body='eval | ||
20993 | arg=$1; | ||
20994 | case $arg in #( | ||
20995 | *"$as_nl"*) | ||
20996 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
20997 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
20998 | esac; | ||
20999 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
21000 | ' | ||
21001 | export as_echo_n_body | ||
21002 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
21003 | fi | ||
21004 | export as_echo_body | ||
21005 | as_echo='sh -c $as_echo_body as_echo' | ||
21006 | fi | ||
21007 | |||
21008 | # The user is always right. | ||
21009 | if test "${PATH_SEPARATOR+set}" != set; then | ||
21010 | PATH_SEPARATOR=: | ||
21011 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
21012 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
21013 | PATH_SEPARATOR=';' | ||
21014 | } | ||
21015 | fi | ||
21016 | |||
21017 | |||
21018 | # IFS | ||
21019 | # We need space, tab and new line, in precisely that order. Quoting is | ||
21020 | # there to prevent editors from complaining about space-tab. | ||
21021 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
21022 | # splitting by setting IFS to empty value.) | ||
21023 | IFS=" "" $as_nl" | ||
21024 | |||
21025 | # Find who we are. Look in the path if we contain no directory separator. | ||
21026 | case $0 in #(( | ||
21027 | *[\\/]* ) as_myself=$0 ;; | ||
21028 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
21029 | for as_dir in $PATH | ||
21030 | do | ||
21031 | IFS=$as_save_IFS | ||
21032 | test -z "$as_dir" && as_dir=. | ||
21033 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
21034 | done | ||
21035 | IFS=$as_save_IFS | ||
21036 | |||
21037 | ;; | ||
21038 | esac | ||
21039 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
21040 | # in which case we are not to be found in the path. | ||
21041 | if test "x$as_myself" = x; then | ||
21042 | as_myself=$0 | ||
21043 | fi | ||
21044 | if test ! -f "$as_myself"; then | ||
21045 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
21046 | exit 1 | ||
21047 | fi | ||
21048 | |||
21049 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
21050 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
21051 | # suppresses any "Segmentation fault" message there. '((' could | ||
21052 | # trigger a bug in pdksh 5.2.14. | ||
21053 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
21054 | do eval test x\${$as_var+set} = xset \ | ||
21055 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
21056 | done | ||
21057 | PS1='$ ' | ||
21058 | PS2='> ' | ||
21059 | PS4='+ ' | ||
21060 | |||
21061 | # NLS nuisances. | ||
21062 | LC_ALL=C | ||
21063 | export LC_ALL | ||
21064 | LANGUAGE=C | ||
21065 | export LANGUAGE | ||
21066 | |||
21067 | # CDPATH. | ||
21068 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
21069 | |||
21070 | |||
21071 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
21072 | # ---------------------------------------- | ||
21073 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
21074 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
21075 | # script with STATUS, using 1 if that was 0. | ||
21076 | as_fn_error () | ||
21077 | { | ||
21078 | as_status=$1; test $as_status -eq 0 && as_status=1 | ||
21079 | if test "$4"; then | ||
21080 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
21081 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
21082 | fi | ||
21083 | $as_echo "$as_me: error: $2" >&2 | ||
21084 | as_fn_exit $as_status | ||
21085 | } # as_fn_error | ||
21086 | |||
21087 | |||
21088 | # as_fn_set_status STATUS | ||
21089 | # ----------------------- | ||
21090 | # Set $? to STATUS, without forking. | ||
21091 | as_fn_set_status () | ||
21092 | { | ||
21093 | return $1 | ||
21094 | } # as_fn_set_status | ||
21095 | |||
21096 | # as_fn_exit STATUS | ||
21097 | # ----------------- | ||
21098 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
21099 | as_fn_exit () | ||
21100 | { | ||
21101 | set +e | ||
21102 | as_fn_set_status $1 | ||
21103 | exit $1 | ||
21104 | } # as_fn_exit | ||
21105 | |||
21106 | # as_fn_unset VAR | ||
21107 | # --------------- | ||
21108 | # Portably unset VAR. | ||
21109 | as_fn_unset () | ||
21110 | { | ||
21111 | { eval $1=; unset $1;} | ||
21112 | } | ||
21113 | as_unset=as_fn_unset | ||
21114 | # as_fn_append VAR VALUE | ||
21115 | # ---------------------- | ||
21116 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
21117 | # advantage of any shell optimizations that allow amortized linear growth over | ||
21118 | # repeated appends, instead of the typical quadratic growth present in naive | ||
21119 | # implementations. | ||
21120 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
21121 | eval 'as_fn_append () | ||
21122 | { | ||
21123 | eval $1+=\$2 | ||
21124 | }' | ||
21125 | else | ||
21126 | as_fn_append () | ||
21127 | { | ||
21128 | eval $1=\$$1\$2 | ||
21129 | } | ||
21130 | fi # as_fn_append | ||
21131 | |||
21132 | # as_fn_arith ARG... | ||
21133 | # ------------------ | ||
21134 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
21135 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
21136 | # must be portable across $(()) and expr. | ||
21137 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
21138 | eval 'as_fn_arith () | ||
21139 | { | ||
21140 | as_val=$(( $* )) | ||
21141 | }' | ||
21142 | else | ||
21143 | as_fn_arith () | ||
21144 | { | ||
21145 | as_val=`expr "$@" || test $? -eq 1` | ||
21146 | } | ||
21147 | fi # as_fn_arith | ||
21148 | |||
21149 | |||
21150 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
21151 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
21152 | as_expr=expr | ||
21153 | else | ||
21154 | as_expr=false | ||
21155 | fi | ||
21156 | |||
21157 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
21158 | as_basename=basename | ||
21159 | else | ||
21160 | as_basename=false | ||
21161 | fi | ||
21162 | |||
21163 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
21164 | as_dirname=dirname | ||
21165 | else | ||
21166 | as_dirname=false | ||
21167 | fi | ||
21168 | |||
21169 | as_me=`$as_basename -- "$0" || | ||
21170 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
21171 | X"$0" : 'X\(//\)$' \| \ | ||
21172 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
21173 | $as_echo X/"$0" | | ||
21174 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
21175 | s//\1/ | ||
21176 | q | ||
21177 | } | ||
21178 | /^X\/\(\/\/\)$/{ | ||
21179 | s//\1/ | ||
21180 | q | ||
21181 | } | ||
21182 | /^X\/\(\/\).*/{ | ||
21183 | s//\1/ | ||
21184 | q | ||
21185 | } | ||
21186 | s/.*/./; q'` | ||
21187 | |||
21188 | # Avoid depending upon Character Ranges. | ||
21189 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
21190 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
21191 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
21192 | as_cr_digits='0123456789' | ||
21193 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
21194 | |||
21195 | ECHO_C= ECHO_N= ECHO_T= | ||
21196 | case `echo -n x` in #((((( | ||
21197 | -n*) | ||
21198 | case `echo 'xy\c'` in | ||
21199 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
21200 | xy) ECHO_C='\c';; | ||
21201 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
21202 | ECHO_T=' ';; | ||
21203 | esac;; | ||
21204 | *) | ||
21205 | ECHO_N='-n';; | ||
21206 | esac | ||
21207 | |||
21208 | rm -f conf$$ conf$$.exe conf$$.file | ||
21209 | if test -d conf$$.dir; then | ||
21210 | rm -f conf$$.dir/conf$$.file | ||
21211 | else | ||
21212 | rm -f conf$$.dir | ||
21213 | mkdir conf$$.dir 2>/dev/null | ||
21214 | fi | ||
21215 | if (echo >conf$$.file) 2>/dev/null; then | ||
21216 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
21217 | as_ln_s='ln -s' | ||
21218 | # ... but there are two gotchas: | ||
21219 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
21220 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
21221 | # In both cases, we have to default to `cp -p'. | ||
21222 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
21223 | as_ln_s='cp -p' | ||
21224 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
21225 | as_ln_s=ln | ||
21226 | else | ||
21227 | as_ln_s='cp -p' | ||
21228 | fi | ||
21229 | else | ||
21230 | as_ln_s='cp -p' | ||
21231 | fi | ||
21232 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
21233 | rmdir conf$$.dir 2>/dev/null | ||
21234 | |||
21235 | |||
21236 | # as_fn_mkdir_p | ||
21237 | # ------------- | ||
21238 | # Create "$as_dir" as a directory, including parents if necessary. | ||
21239 | as_fn_mkdir_p () | ||
21240 | { | ||
21241 | |||
21242 | case $as_dir in #( | ||
21243 | -*) as_dir=./$as_dir;; | ||
21244 | esac | ||
21245 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
21246 | as_dirs= | ||
21247 | while :; do | ||
21248 | case $as_dir in #( | ||
21249 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
21250 | *) as_qdir=$as_dir;; | ||
21251 | esac | ||
21252 | as_dirs="'$as_qdir' $as_dirs" | ||
21253 | as_dir=`$as_dirname -- "$as_dir" || | ||
21254 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
21255 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
21256 | X"$as_dir" : 'X\(//\)$' \| \ | ||
21257 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
21258 | $as_echo X"$as_dir" | | ||
21259 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
21260 | s//\1/ | ||
21261 | q | ||
21262 | } | ||
21263 | /^X\(\/\/\)[^/].*/{ | ||
21264 | s//\1/ | ||
21265 | q | ||
21266 | } | ||
21267 | /^X\(\/\/\)$/{ | ||
21268 | s//\1/ | ||
21269 | q | ||
21270 | } | ||
21271 | /^X\(\/\).*/{ | ||
21272 | s//\1/ | ||
21273 | q | ||
21274 | } | ||
21275 | s/.*/./; q'` | ||
21276 | test -d "$as_dir" && break | ||
21277 | done | ||
21278 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
21279 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | ||
21280 | |||
21281 | |||
21282 | } # as_fn_mkdir_p | ||
21283 | if mkdir -p . 2>/dev/null; then | ||
21284 | as_mkdir_p='mkdir -p "$as_dir"' | ||
21285 | else | ||
21286 | test -d ./-p && rmdir ./-p | ||
21287 | as_mkdir_p=false | ||
21288 | fi | ||
21289 | |||
21290 | if test -x / >/dev/null 2>&1; then | ||
21291 | as_test_x='test -x' | ||
21292 | else | ||
21293 | if ls -dL / >/dev/null 2>&1; then | ||
21294 | as_ls_L_option=L | ||
21295 | else | ||
21296 | as_ls_L_option= | ||
21297 | fi | ||
21298 | as_test_x=' | ||
21299 | eval sh -c '\'' | ||
21300 | if test -d "$1"; then | ||
21301 | test -d "$1/."; | ||
21302 | else | ||
21303 | case $1 in #( | ||
21304 | -*)set "./$1";; | ||
21305 | esac; | ||
21306 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | ||
21307 | ???[sx]*):;;*)false;;esac;fi | ||
21308 | '\'' sh | ||
21309 | ' | ||
21310 | fi | ||
21311 | as_executable_p=$as_test_x | ||
21312 | |||
21313 | # Sed expression to map a string onto a valid CPP name. | ||
21314 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
21315 | |||
21316 | # Sed expression to map a string onto a valid variable name. | ||
21317 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
21318 | |||
21319 | |||
21320 | exec 6>&1 | ||
21321 | ## ----------------------------------- ## | ||
21322 | ## Main body of $CONFIG_STATUS script. ## | ||
21323 | ## ----------------------------------- ## | ||
21324 | _ASEOF | ||
21325 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | ||
21326 | |||
21327 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
21328 | # Save the log message, to keep $0 and so on meaningful, and to | ||
21329 | # report actual input values of CONFIG_FILES etc. instead of their | ||
21330 | # values after options handling. | ||
21331 | ac_log=" | ||
21332 | This file was extended by eina $as_me 1.1.0, which was | ||
21333 | generated by GNU Autoconf 2.67. Invocation command line was | ||
21334 | |||
21335 | CONFIG_FILES = $CONFIG_FILES | ||
21336 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
21337 | CONFIG_LINKS = $CONFIG_LINKS | ||
21338 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
21339 | $ $0 $@ | ||
21340 | |||
21341 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
21342 | " | ||
21343 | |||
21344 | _ACEOF | ||
21345 | |||
21346 | case $ac_config_files in *" | ||
21347 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | ||
21348 | esac | ||
21349 | |||
21350 | case $ac_config_headers in *" | ||
21351 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | ||
21352 | esac | ||
21353 | |||
21354 | |||
21355 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
21356 | # Files that config.status was made for. | ||
21357 | config_files="$ac_config_files" | ||
21358 | config_headers="$ac_config_headers" | ||
21359 | config_commands="$ac_config_commands" | ||
21360 | |||
21361 | _ACEOF | ||
21362 | |||
21363 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
21364 | ac_cs_usage="\ | ||
21365 | \`$as_me' instantiates files and other configuration actions | ||
21366 | from templates according to the current configuration. Unless the files | ||
21367 | and actions are specified as TAGs, all are instantiated by default. | ||
21368 | |||
21369 | Usage: $0 [OPTION]... [TAG]... | ||
21370 | |||
21371 | -h, --help print this help, then exit | ||
21372 | -V, --version print version number and configuration settings, then exit | ||
21373 | --config print configuration, then exit | ||
21374 | -q, --quiet, --silent | ||
21375 | do not print progress messages | ||
21376 | -d, --debug don't remove temporary files | ||
21377 | --recheck update $as_me by reconfiguring in the same conditions | ||
21378 | --file=FILE[:TEMPLATE] | ||
21379 | instantiate the configuration file FILE | ||
21380 | --header=FILE[:TEMPLATE] | ||
21381 | instantiate the configuration header FILE | ||
21382 | |||
21383 | Configuration files: | ||
21384 | $config_files | ||
21385 | |||
21386 | Configuration headers: | ||
21387 | $config_headers | ||
21388 | |||
21389 | Configuration commands: | ||
21390 | $config_commands | ||
21391 | |||
21392 | Report bugs to <enlightenment-devel@lists.sourceforge.net>." | ||
21393 | |||
21394 | _ACEOF | ||
21395 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
21396 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | ||
21397 | ac_cs_version="\\ | ||
21398 | eina config.status 1.1.0 | ||
21399 | configured by $0, generated by GNU Autoconf 2.67, | ||
21400 | with options \\"\$ac_cs_config\\" | ||
21401 | |||
21402 | Copyright (C) 2010 Free Software Foundation, Inc. | ||
21403 | This config.status script is free software; the Free Software Foundation | ||
21404 | gives unlimited permission to copy, distribute and modify it." | ||
21405 | |||
21406 | ac_pwd='$ac_pwd' | ||
21407 | srcdir='$srcdir' | ||
21408 | INSTALL='$INSTALL' | ||
21409 | MKDIR_P='$MKDIR_P' | ||
21410 | AWK='$AWK' | ||
21411 | test -n "\$AWK" || AWK=awk | ||
21412 | _ACEOF | ||
21413 | |||
21414 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
21415 | # The default lists apply if the user does not specify any file. | ||
21416 | ac_need_defaults=: | ||
21417 | while test $# != 0 | ||
21418 | do | ||
21419 | case $1 in | ||
21420 | --*=?*) | ||
21421 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
21422 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
21423 | ac_shift=: | ||
21424 | ;; | ||
21425 | --*=) | ||
21426 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
21427 | ac_optarg= | ||
21428 | ac_shift=: | ||
21429 | ;; | ||
21430 | *) | ||
21431 | ac_option=$1 | ||
21432 | ac_optarg=$2 | ||
21433 | ac_shift=shift | ||
21434 | ;; | ||
21435 | esac | ||
21436 | |||
21437 | case $ac_option in | ||
21438 | # Handling of the options. | ||
21439 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
21440 | ac_cs_recheck=: ;; | ||
21441 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
21442 | $as_echo "$ac_cs_version"; exit ;; | ||
21443 | --config | --confi | --conf | --con | --co | --c ) | ||
21444 | $as_echo "$ac_cs_config"; exit ;; | ||
21445 | --debug | --debu | --deb | --de | --d | -d ) | ||
21446 | debug=: ;; | ||
21447 | --file | --fil | --fi | --f ) | ||
21448 | $ac_shift | ||
21449 | case $ac_optarg in | ||
21450 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
21451 | '') as_fn_error $? "missing file argument" ;; | ||
21452 | esac | ||
21453 | as_fn_append CONFIG_FILES " '$ac_optarg'" | ||
21454 | ac_need_defaults=false;; | ||
21455 | --header | --heade | --head | --hea ) | ||
21456 | $ac_shift | ||
21457 | case $ac_optarg in | ||
21458 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
21459 | esac | ||
21460 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | ||
21461 | ac_need_defaults=false;; | ||
21462 | --he | --h) | ||
21463 | # Conflict between --help and --header | ||
21464 | as_fn_error $? "ambiguous option: \`$1' | ||
21465 | Try \`$0 --help' for more information.";; | ||
21466 | --help | --hel | -h ) | ||
21467 | $as_echo "$ac_cs_usage"; exit ;; | ||
21468 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
21469 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
21470 | ac_cs_silent=: ;; | ||
21471 | |||
21472 | # This is an error. | ||
21473 | -*) as_fn_error $? "unrecognized option: \`$1' | ||
21474 | Try \`$0 --help' for more information." ;; | ||
21475 | |||
21476 | *) as_fn_append ac_config_targets " $1" | ||
21477 | ac_need_defaults=false ;; | ||
21478 | |||
21479 | esac | ||
21480 | shift | ||
21481 | done | ||
21482 | |||
21483 | ac_configure_extra_args= | ||
21484 | |||
21485 | if $ac_cs_silent; then | ||
21486 | exec 6>/dev/null | ||
21487 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
21488 | fi | ||
21489 | |||
21490 | _ACEOF | ||
21491 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
21492 | if \$ac_cs_recheck; then | ||
21493 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
21494 | shift | ||
21495 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | ||
21496 | CONFIG_SHELL='$SHELL' | ||
21497 | export CONFIG_SHELL | ||
21498 | exec "\$@" | ||
21499 | fi | ||
21500 | |||
21501 | _ACEOF | ||
21502 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
21503 | exec 5>>config.log | ||
21504 | { | ||
21505 | echo | ||
21506 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
21507 | ## Running $as_me. ## | ||
21508 | _ASBOX | ||
21509 | $as_echo "$ac_log" | ||
21510 | } >&5 | ||
21511 | |||
21512 | _ACEOF | ||
21513 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
21514 | # | ||
21515 | # INIT-COMMANDS | ||
21516 | # | ||
21517 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | ||
21518 | |||
21519 | |||
21520 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
21521 | # if CDPATH is set. | ||
21522 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
21523 | |||
21524 | sed_quote_subst='$sed_quote_subst' | ||
21525 | double_quote_subst='$double_quote_subst' | ||
21526 | delay_variable_subst='$delay_variable_subst' | ||
21527 | AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' | ||
21528 | DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' | ||
21529 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | ||
21530 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
21531 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | ||
21532 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | ||
21533 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
21534 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | ||
21535 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | ||
21536 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
21537 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | ||
21538 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
21539 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
21540 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | ||
21541 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
21542 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | ||
21543 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | ||
21544 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
21545 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
21546 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
21547 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | ||
21548 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | ||
21549 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | ||
21550 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | ||
21551 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | ||
21552 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | ||
21553 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | ||
21554 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | ||
21555 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | ||
21556 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
21557 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21558 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | ||
21559 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | ||
21560 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | ||
21561 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
21562 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | ||
21563 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | ||
21564 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21565 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21566 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21567 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | ||
21568 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
21569 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | ||
21570 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | ||
21571 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | ||
21572 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | ||
21573 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' | ||
21574 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | ||
21575 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | ||
21576 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | ||
21577 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | ||
21578 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | ||
21579 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
21580 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | ||
21581 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | ||
21582 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
21583 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | ||
21584 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | ||
21585 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | ||
21586 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | ||
21587 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | ||
21588 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | ||
21589 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | ||
21590 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | ||
21591 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21592 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21593 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | ||
21594 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | ||
21595 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
21596 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
21597 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | ||
21598 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21599 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21600 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21601 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21602 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21603 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21604 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
21605 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
21606 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
21607 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
21608 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
21609 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | ||
21610 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | ||
21611 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | ||
21612 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | ||
21613 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
21614 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | ||
21615 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
21616 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | ||
21617 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | ||
21618 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | ||
21619 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21620 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
21621 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
21622 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21623 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
21624 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | ||
21625 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | ||
21626 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
21627 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | ||
21628 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
21629 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
21630 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
21631 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
21632 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
21633 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
21634 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21635 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21636 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21637 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | ||
21638 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | ||
21639 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
21640 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
21641 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | ||
21642 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | ||
21643 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | ||
21644 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
21645 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
21646 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
21647 | compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' | ||
21648 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' | ||
21649 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' | ||
21650 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' | ||
21651 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' | ||
21652 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' | ||
21653 | LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21654 | old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21655 | compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21656 | GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21657 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21658 | lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21659 | lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21660 | lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21661 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21662 | archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21663 | enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21664 | export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21665 | whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21666 | compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21667 | old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21668 | old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21669 | archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21670 | archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21671 | module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21672 | module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21673 | with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21674 | allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21675 | no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21676 | hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21677 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21678 | hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21679 | hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21680 | hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21681 | hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21682 | hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21683 | hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21684 | inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21685 | link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21686 | fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21687 | always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21688 | export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21689 | exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21690 | include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21691 | prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21692 | file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21693 | hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21694 | compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21695 | predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21696 | postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21697 | predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21698 | postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21699 | compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21700 | |||
21701 | LTCC='$LTCC' | ||
21702 | LTCFLAGS='$LTCFLAGS' | ||
21703 | compiler='$compiler_DEFAULT' | ||
21704 | |||
21705 | # Quote evaled strings. | ||
21706 | for var in SED \ | ||
21707 | GREP \ | ||
21708 | EGREP \ | ||
21709 | FGREP \ | ||
21710 | LD \ | ||
21711 | NM \ | ||
21712 | LN_S \ | ||
21713 | lt_SP2NL \ | ||
21714 | lt_NL2SP \ | ||
21715 | reload_flag \ | ||
21716 | deplibs_check_method \ | ||
21717 | file_magic_cmd \ | ||
21718 | AR \ | ||
21719 | AR_FLAGS \ | ||
21720 | STRIP \ | ||
21721 | RANLIB \ | ||
21722 | CC \ | ||
21723 | CFLAGS \ | ||
21724 | compiler \ | ||
21725 | lt_cv_sys_global_symbol_pipe \ | ||
21726 | lt_cv_sys_global_symbol_to_cdecl \ | ||
21727 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
21728 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | ||
21729 | SHELL \ | ||
21730 | ECHO \ | ||
21731 | lt_prog_compiler_no_builtin_flag \ | ||
21732 | lt_prog_compiler_wl \ | ||
21733 | lt_prog_compiler_pic \ | ||
21734 | lt_prog_compiler_static \ | ||
21735 | lt_cv_prog_compiler_c_o \ | ||
21736 | need_locks \ | ||
21737 | DSYMUTIL \ | ||
21738 | NMEDIT \ | ||
21739 | LIPO \ | ||
21740 | OTOOL \ | ||
21741 | OTOOL64 \ | ||
21742 | shrext_cmds \ | ||
21743 | export_dynamic_flag_spec \ | ||
21744 | whole_archive_flag_spec \ | ||
21745 | compiler_needs_object \ | ||
21746 | with_gnu_ld \ | ||
21747 | allow_undefined_flag \ | ||
21748 | no_undefined_flag \ | ||
21749 | hardcode_libdir_flag_spec \ | ||
21750 | hardcode_libdir_flag_spec_ld \ | ||
21751 | hardcode_libdir_separator \ | ||
21752 | fix_srcfile_path \ | ||
21753 | exclude_expsyms \ | ||
21754 | include_expsyms \ | ||
21755 | file_list_spec \ | ||
21756 | variables_saved_for_relink \ | ||
21757 | libname_spec \ | ||
21758 | library_names_spec \ | ||
21759 | soname_spec \ | ||
21760 | finish_eval \ | ||
21761 | old_striplib \ | ||
21762 | striplib \ | ||
21763 | compiler_lib_search_dirs \ | ||
21764 | predep_objects \ | ||
21765 | postdep_objects \ | ||
21766 | predeps \ | ||
21767 | postdeps \ | ||
21768 | compiler_lib_search_path \ | ||
21769 | LD_CXX \ | ||
21770 | compiler_CXX \ | ||
21771 | lt_prog_compiler_no_builtin_flag_CXX \ | ||
21772 | lt_prog_compiler_wl_CXX \ | ||
21773 | lt_prog_compiler_pic_CXX \ | ||
21774 | lt_prog_compiler_static_CXX \ | ||
21775 | lt_cv_prog_compiler_c_o_CXX \ | ||
21776 | export_dynamic_flag_spec_CXX \ | ||
21777 | whole_archive_flag_spec_CXX \ | ||
21778 | compiler_needs_object_CXX \ | ||
21779 | with_gnu_ld_CXX \ | ||
21780 | allow_undefined_flag_CXX \ | ||
21781 | no_undefined_flag_CXX \ | ||
21782 | hardcode_libdir_flag_spec_CXX \ | ||
21783 | hardcode_libdir_flag_spec_ld_CXX \ | ||
21784 | hardcode_libdir_separator_CXX \ | ||
21785 | fix_srcfile_path_CXX \ | ||
21786 | exclude_expsyms_CXX \ | ||
21787 | include_expsyms_CXX \ | ||
21788 | file_list_spec_CXX \ | ||
21789 | compiler_lib_search_dirs_CXX \ | ||
21790 | predep_objects_CXX \ | ||
21791 | postdep_objects_CXX \ | ||
21792 | predeps_CXX \ | ||
21793 | postdeps_CXX \ | ||
21794 | compiler_lib_search_path_CXX; do | ||
21795 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
21796 | *[\\\\\\\`\\"\\\$]*) | ||
21797 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | ||
21798 | ;; | ||
21799 | *) | ||
21800 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
21801 | ;; | ||
21802 | esac | ||
21803 | done | ||
21804 | |||
21805 | # Double-quote double-evaled strings. | ||
21806 | for var in reload_cmds \ | ||
21807 | old_postinstall_cmds \ | ||
21808 | old_postuninstall_cmds \ | ||
21809 | old_archive_cmds \ | ||
21810 | extract_expsyms_cmds \ | ||
21811 | old_archive_from_new_cmds \ | ||
21812 | old_archive_from_expsyms_cmds \ | ||
21813 | archive_cmds \ | ||
21814 | archive_expsym_cmds \ | ||
21815 | module_cmds \ | ||
21816 | module_expsym_cmds \ | ||
21817 | export_symbols_cmds \ | ||
21818 | prelink_cmds \ | ||
21819 | postinstall_cmds \ | ||
21820 | postuninstall_cmds \ | ||
21821 | finish_cmds \ | ||
21822 | sys_lib_search_path_spec \ | ||
21823 | sys_lib_dlsearch_path_spec \ | ||
21824 | old_archive_cmds_CXX \ | ||
21825 | old_archive_from_new_cmds_CXX \ | ||
21826 | old_archive_from_expsyms_cmds_CXX \ | ||
21827 | archive_cmds_CXX \ | ||
21828 | archive_expsym_cmds_CXX \ | ||
21829 | module_cmds_CXX \ | ||
21830 | module_expsym_cmds_CXX \ | ||
21831 | export_symbols_cmds_CXX \ | ||
21832 | prelink_cmds_CXX; do | ||
21833 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
21834 | *[\\\\\\\`\\"\\\$]*) | ||
21835 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | ||
21836 | ;; | ||
21837 | *) | ||
21838 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
21839 | ;; | ||
21840 | esac | ||
21841 | done | ||
21842 | |||
21843 | # Fix-up fallback echo if it was mangled by the above quoting rules. | ||
21844 | case \$lt_ECHO in | ||
21845 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | ||
21846 | ;; | ||
21847 | esac | ||
21848 | |||
21849 | ac_aux_dir='$ac_aux_dir' | ||
21850 | xsi_shell='$xsi_shell' | ||
21851 | lt_shell_append='$lt_shell_append' | ||
21852 | |||
21853 | # See if we are running on zsh, and set the options which allow our | ||
21854 | # commands through without removal of \ escapes INIT. | ||
21855 | if test -n "\${ZSH_VERSION+set}" ; then | ||
21856 | setopt NO_GLOB_SUBST | ||
21857 | fi | ||
21858 | |||
21859 | |||
21860 | PACKAGE='$PACKAGE' | ||
21861 | VERSION='$VERSION' | ||
21862 | TIMESTAMP='$TIMESTAMP' | ||
21863 | RM='$RM' | ||
21864 | ofile='$ofile' | ||
21865 | |||
21866 | |||
21867 | |||
21868 | |||
21869 | |||
21870 | |||
21871 | _ACEOF | ||
21872 | |||
21873 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
21874 | |||
21875 | # Handling of arguments. | ||
21876 | for ac_config_target in $ac_config_targets | ||
21877 | do | ||
21878 | case $ac_config_target in | ||
21879 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
21880 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | ||
21881 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | ||
21882 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
21883 | "eina.pc") CONFIG_FILES="$CONFIG_FILES eina.pc" ;; | ||
21884 | "eina.spec") CONFIG_FILES="$CONFIG_FILES eina.spec" ;; | ||
21885 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | ||
21886 | "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;; | ||
21887 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | ||
21888 | "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;; | ||
21889 | "src/include/eina_config.h") CONFIG_FILES="$CONFIG_FILES src/include/eina_config.h" ;; | ||
21890 | "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; | ||
21891 | "src/modules/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;; | ||
21892 | "src/modules/mp/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/mp/Makefile" ;; | ||
21893 | "src/modules/mp/chained_pool/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/mp/chained_pool/Makefile" ;; | ||
21894 | "src/modules/mp/ememoa_fixed/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/mp/ememoa_fixed/Makefile" ;; | ||
21895 | "src/modules/mp/ememoa_unknown/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/mp/ememoa_unknown/Makefile" ;; | ||
21896 | "src/modules/mp/pass_through/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/mp/pass_through/Makefile" ;; | ||
21897 | "src/modules/mp/fixed_bitmap/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/mp/fixed_bitmap/Makefile" ;; | ||
21898 | "src/modules/mp/buddy/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/mp/buddy/Makefile" ;; | ||
21899 | "src/modules/mp/one_big/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/mp/one_big/Makefile" ;; | ||
21900 | "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;; | ||
21901 | "src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;; | ||
21902 | |||
21903 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; | ||
21904 | esac | ||
21905 | done | ||
21906 | |||
21907 | |||
21908 | # If the user did not use the arguments to specify the items to instantiate, | ||
21909 | # then the envvar interface is used. Set only those that are not. | ||
21910 | # We use the long form for the default assignment because of an extremely | ||
21911 | # bizarre bug on SunOS 4.1.3. | ||
21912 | if $ac_need_defaults; then | ||
21913 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
21914 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
21915 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | ||
21916 | fi | ||
21917 | |||
21918 | # Have a temporary directory for convenience. Make it in the build tree | ||
21919 | # simply because there is no reason against having it here, and in addition, | ||
21920 | # creating and moving files from /tmp can sometimes cause problems. | ||
21921 | # Hook for its removal unless debugging. | ||
21922 | # Note that there is a small window in which the directory will not be cleaned: | ||
21923 | # after its creation but before its name has been assigned to `$tmp'. | ||
21924 | $debug || | ||
21925 | { | ||
21926 | tmp= | ||
21927 | trap 'exit_status=$? | ||
21928 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | ||
21929 | ' 0 | ||
21930 | trap 'as_fn_exit 1' 1 2 13 15 | ||
21931 | } | ||
21932 | # Create a (secure) tmp directory for tmp files. | ||
21933 | |||
21934 | { | ||
21935 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
21936 | test -n "$tmp" && test -d "$tmp" | ||
21937 | } || | ||
21938 | { | ||
21939 | tmp=./conf$$-$RANDOM | ||
21940 | (umask 077 && mkdir "$tmp") | ||
21941 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | ||
21942 | |||
21943 | # Set up the scripts for CONFIG_FILES section. | ||
21944 | # No need to generate them if there are no CONFIG_FILES. | ||
21945 | # This happens for instance with `./config.status config.h'. | ||
21946 | if test -n "$CONFIG_FILES"; then | ||
21947 | |||
21948 | |||
21949 | ac_cr=`echo X | tr X '\015'` | ||
21950 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | ||
21951 | # But we know of no other shell where ac_cr would be empty at this | ||
21952 | # point, so we can use a bashism as a fallback. | ||
21953 | if test "x$ac_cr" = x; then | ||
21954 | eval ac_cr=\$\'\\r\' | ||
21955 | fi | ||
21956 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | ||
21957 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | ||
21958 | ac_cs_awk_cr='\\r' | ||
21959 | else | ||
21960 | ac_cs_awk_cr=$ac_cr | ||
21961 | fi | ||
21962 | |||
21963 | echo 'BEGIN {' >"$tmp/subs1.awk" && | ||
21964 | _ACEOF | ||
21965 | |||
21966 | |||
21967 | { | ||
21968 | echo "cat >conf$$subs.awk <<_ACEOF" && | ||
21969 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | ||
21970 | echo "_ACEOF" | ||
21971 | } >conf$$subs.sh || | ||
21972 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
21973 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | ||
21974 | ac_delim='%!_!# ' | ||
21975 | for ac_last_try in false false false false false :; do | ||
21976 | . ./conf$$subs.sh || | ||
21977 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
21978 | |||
21979 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | ||
21980 | if test $ac_delim_n = $ac_delim_num; then | ||
21981 | break | ||
21982 | elif $ac_last_try; then | ||
21983 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
21984 | else | ||
21985 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
21986 | fi | ||
21987 | done | ||
21988 | rm -f conf$$subs.sh | ||
21989 | |||
21990 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
21991 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | ||
21992 | _ACEOF | ||
21993 | sed -n ' | ||
21994 | h | ||
21995 | s/^/S["/; s/!.*/"]=/ | ||
21996 | p | ||
21997 | g | ||
21998 | s/^[^!]*!// | ||
21999 | :repl | ||
22000 | t repl | ||
22001 | s/'"$ac_delim"'$// | ||
22002 | t delim | ||
22003 | :nl | ||
22004 | h | ||
22005 | s/\(.\{148\}\)..*/\1/ | ||
22006 | t more1 | ||
22007 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | ||
22008 | p | ||
22009 | n | ||
22010 | b repl | ||
22011 | :more1 | ||
22012 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
22013 | p | ||
22014 | g | ||
22015 | s/.\{148\}// | ||
22016 | t nl | ||
22017 | :delim | ||
22018 | h | ||
22019 | s/\(.\{148\}\)..*/\1/ | ||
22020 | t more2 | ||
22021 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | ||
22022 | p | ||
22023 | b | ||
22024 | :more2 | ||
22025 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
22026 | p | ||
22027 | g | ||
22028 | s/.\{148\}// | ||
22029 | t delim | ||
22030 | ' <conf$$subs.awk | sed ' | ||
22031 | /^[^""]/{ | ||
22032 | N | ||
22033 | s/\n// | ||
22034 | } | ||
22035 | ' >>$CONFIG_STATUS || ac_write_fail=1 | ||
22036 | rm -f conf$$subs.awk | ||
22037 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
22038 | _ACAWK | ||
22039 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | ||
22040 | for (key in S) S_is_set[key] = 1 | ||
22041 | FS = "" | ||
22042 | |||
22043 | } | ||
22044 | { | ||
22045 | line = $ 0 | ||
22046 | nfields = split(line, field, "@") | ||
22047 | substed = 0 | ||
22048 | len = length(field[1]) | ||
22049 | for (i = 2; i < nfields; i++) { | ||
22050 | key = field[i] | ||
22051 | keylen = length(key) | ||
22052 | if (S_is_set[key]) { | ||
22053 | value = S[key] | ||
22054 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | ||
22055 | len += length(value) + length(field[++i]) | ||
22056 | substed = 1 | ||
22057 | } else | ||
22058 | len += 1 + keylen | ||
22059 | } | ||
22060 | |||
22061 | print line | ||
22062 | } | ||
22063 | |||
22064 | _ACAWK | ||
22065 | _ACEOF | ||
22066 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
22067 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | ||
22068 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | ||
22069 | else | ||
22070 | cat | ||
22071 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | ||
22072 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | ||
22073 | _ACEOF | ||
22074 | |||
22075 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | ||
22076 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | ||
22077 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
22078 | # (actually we leave an empty line to preserve line numbers). | ||
22079 | if test "x$srcdir" = x.; then | ||
22080 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | ||
22081 | h | ||
22082 | s/// | ||
22083 | s/^/:/ | ||
22084 | s/[ ]*$/:/ | ||
22085 | s/:\$(srcdir):/:/g | ||
22086 | s/:\${srcdir}:/:/g | ||
22087 | s/:@srcdir@:/:/g | ||
22088 | s/^:*// | ||
22089 | s/:*$// | ||
22090 | x | ||
22091 | s/\(=[ ]*\).*/\1/ | ||
22092 | G | ||
22093 | s/\n// | ||
22094 | s/^[^=]*=[ ]*$// | ||
22095 | }' | ||
22096 | fi | ||
22097 | |||
22098 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
22099 | fi # test -n "$CONFIG_FILES" | ||
22100 | |||
22101 | # Set up the scripts for CONFIG_HEADERS section. | ||
22102 | # No need to generate them if there are no CONFIG_HEADERS. | ||
22103 | # This happens for instance with `./config.status Makefile'. | ||
22104 | if test -n "$CONFIG_HEADERS"; then | ||
22105 | cat >"$tmp/defines.awk" <<\_ACAWK || | ||
22106 | BEGIN { | ||
22107 | _ACEOF | ||
22108 | |||
22109 | # Transform confdefs.h into an awk script `defines.awk', embedded as | ||
22110 | # here-document in config.status, that substitutes the proper values into | ||
22111 | # config.h.in to produce config.h. | ||
22112 | |||
22113 | # Create a delimiter string that does not exist in confdefs.h, to ease | ||
22114 | # handling of long lines. | ||
22115 | ac_delim='%!_!# ' | ||
22116 | for ac_last_try in false false :; do | ||
22117 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | ||
22118 | if test -z "$ac_t"; then | ||
22119 | break | ||
22120 | elif $ac_last_try; then | ||
22121 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | ||
22122 | else | ||
22123 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
22124 | fi | ||
22125 | done | ||
22126 | |||
22127 | # For the awk script, D is an array of macro values keyed by name, | ||
22128 | # likewise P contains macro parameters if any. Preserve backslash | ||
22129 | # newline sequences. | ||
22130 | |||
22131 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
22132 | sed -n ' | ||
22133 | s/.\{148\}/&'"$ac_delim"'/g | ||
22134 | t rset | ||
22135 | :rset | ||
22136 | s/^[ ]*#[ ]*define[ ][ ]*/ / | ||
22137 | t def | ||
22138 | d | ||
22139 | :def | ||
22140 | s/\\$// | ||
22141 | t bsnl | ||
22142 | s/["\\]/\\&/g | ||
22143 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
22144 | D["\1"]=" \3"/p | ||
22145 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | ||
22146 | d | ||
22147 | :bsnl | ||
22148 | s/["\\]/\\&/g | ||
22149 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
22150 | D["\1"]=" \3\\\\\\n"\\/p | ||
22151 | t cont | ||
22152 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | ||
22153 | t cont | ||
22154 | d | ||
22155 | :cont | ||
22156 | n | ||
22157 | s/.\{148\}/&'"$ac_delim"'/g | ||
22158 | t clear | ||
22159 | :clear | ||
22160 | s/\\$// | ||
22161 | t bsnlc | ||
22162 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | ||
22163 | d | ||
22164 | :bsnlc | ||
22165 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | ||
22166 | b cont | ||
22167 | ' <confdefs.h | sed ' | ||
22168 | s/'"$ac_delim"'/"\\\ | ||
22169 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | ||
22170 | |||
22171 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
22172 | for (key in D) D_is_set[key] = 1 | ||
22173 | FS = "" | ||
22174 | } | ||
22175 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | ||
22176 | line = \$ 0 | ||
22177 | split(line, arg, " ") | ||
22178 | if (arg[1] == "#") { | ||
22179 | defundef = arg[2] | ||
22180 | mac1 = arg[3] | ||
22181 | } else { | ||
22182 | defundef = substr(arg[1], 2) | ||
22183 | mac1 = arg[2] | ||
22184 | } | ||
22185 | split(mac1, mac2, "(") #) | ||
22186 | macro = mac2[1] | ||
22187 | prefix = substr(line, 1, index(line, defundef) - 1) | ||
22188 | if (D_is_set[macro]) { | ||
22189 | # Preserve the white space surrounding the "#". | ||
22190 | print prefix "define", macro P[macro] D[macro] | ||
22191 | next | ||
22192 | } else { | ||
22193 | # Replace #undef with comments. This is necessary, for example, | ||
22194 | # in the case of _POSIX_SOURCE, which is predefined and required | ||
22195 | # on some systems where configure will not decide to define it. | ||
22196 | if (defundef == "undef") { | ||
22197 | print "/*", prefix defundef, macro, "*/" | ||
22198 | next | ||
22199 | } | ||
22200 | } | ||
22201 | } | ||
22202 | { print } | ||
22203 | _ACAWK | ||
22204 | _ACEOF | ||
22205 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
22206 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | ||
22207 | fi # test -n "$CONFIG_HEADERS" | ||
22208 | |||
22209 | |||
22210 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | ||
22211 | shift | ||
22212 | for ac_tag | ||
22213 | do | ||
22214 | case $ac_tag in | ||
22215 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
22216 | esac | ||
22217 | case $ac_mode$ac_tag in | ||
22218 | :[FHL]*:*);; | ||
22219 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; | ||
22220 | :[FH]-) ac_tag=-:-;; | ||
22221 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
22222 | esac | ||
22223 | ac_save_IFS=$IFS | ||
22224 | IFS=: | ||
22225 | set x $ac_tag | ||
22226 | IFS=$ac_save_IFS | ||
22227 | shift | ||
22228 | ac_file=$1 | ||
22229 | shift | ||
22230 | |||
22231 | case $ac_mode in | ||
22232 | :L) ac_source=$1;; | ||
22233 | :[FH]) | ||
22234 | ac_file_inputs= | ||
22235 | for ac_f | ||
22236 | do | ||
22237 | case $ac_f in | ||
22238 | -) ac_f="$tmp/stdin";; | ||
22239 | *) # Look for the file first in the build tree, then in the source tree | ||
22240 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
22241 | # because $ac_f cannot contain `:'. | ||
22242 | test -f "$ac_f" || | ||
22243 | case $ac_f in | ||
22244 | [\\/$]*) false;; | ||
22245 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
22246 | esac || | ||
22247 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; | ||
22248 | esac | ||
22249 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | ||
22250 | as_fn_append ac_file_inputs " '$ac_f'" | ||
22251 | done | ||
22252 | |||
22253 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
22254 | # use $as_me), people would be surprised to read: | ||
22255 | # /* config.h. Generated by config.status. */ | ||
22256 | configure_input='Generated from '` | ||
22257 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | ||
22258 | `' by configure.' | ||
22259 | if test x"$ac_file" != x-; then | ||
22260 | configure_input="$ac_file. $configure_input" | ||
22261 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | ||
22262 | $as_echo "$as_me: creating $ac_file" >&6;} | ||
22263 | fi | ||
22264 | # Neutralize special characters interpreted by sed in replacement strings. | ||
22265 | case $configure_input in #( | ||
22266 | *\&* | *\|* | *\\* ) | ||
22267 | ac_sed_conf_input=`$as_echo "$configure_input" | | ||
22268 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | ||
22269 | *) ac_sed_conf_input=$configure_input;; | ||
22270 | esac | ||
22271 | |||
22272 | case $ac_tag in | ||
22273 | *:-:* | *:-) cat >"$tmp/stdin" \ | ||
22274 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | ||
22275 | esac | ||
22276 | ;; | ||
22277 | esac | ||
22278 | |||
22279 | ac_dir=`$as_dirname -- "$ac_file" || | ||
22280 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
22281 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
22282 | X"$ac_file" : 'X\(//\)$' \| \ | ||
22283 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
22284 | $as_echo X"$ac_file" | | ||
22285 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
22286 | s//\1/ | ||
22287 | q | ||
22288 | } | ||
22289 | /^X\(\/\/\)[^/].*/{ | ||
22290 | s//\1/ | ||
22291 | q | ||
22292 | } | ||
22293 | /^X\(\/\/\)$/{ | ||
22294 | s//\1/ | ||
22295 | q | ||
22296 | } | ||
22297 | /^X\(\/\).*/{ | ||
22298 | s//\1/ | ||
22299 | q | ||
22300 | } | ||
22301 | s/.*/./; q'` | ||
22302 | as_dir="$ac_dir"; as_fn_mkdir_p | ||
22303 | ac_builddir=. | ||
22304 | |||
22305 | case "$ac_dir" in | ||
22306 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
22307 | *) | ||
22308 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
22309 | # A ".." for each directory in $ac_dir_suffix. | ||
22310 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
22311 | case $ac_top_builddir_sub in | ||
22312 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
22313 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
22314 | esac ;; | ||
22315 | esac | ||
22316 | ac_abs_top_builddir=$ac_pwd | ||
22317 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
22318 | # for backward compatibility: | ||
22319 | ac_top_builddir=$ac_top_build_prefix | ||
22320 | |||
22321 | case $srcdir in | ||
22322 | .) # We are building in place. | ||
22323 | ac_srcdir=. | ||
22324 | ac_top_srcdir=$ac_top_builddir_sub | ||
22325 | ac_abs_top_srcdir=$ac_pwd ;; | ||
22326 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
22327 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
22328 | ac_top_srcdir=$srcdir | ||
22329 | ac_abs_top_srcdir=$srcdir ;; | ||
22330 | *) # Relative name. | ||
22331 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
22332 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
22333 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
22334 | esac | ||
22335 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
22336 | |||
22337 | |||
22338 | case $ac_mode in | ||
22339 | :F) | ||
22340 | # | ||
22341 | # CONFIG_FILE | ||
22342 | # | ||
22343 | |||
22344 | case $INSTALL in | ||
22345 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
22346 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
22347 | esac | ||
22348 | ac_MKDIR_P=$MKDIR_P | ||
22349 | case $MKDIR_P in | ||
22350 | [\\/$]* | ?:[\\/]* ) ;; | ||
22351 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | ||
22352 | esac | ||
22353 | _ACEOF | ||
22354 | |||
22355 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
22356 | # If the template does not know about datarootdir, expand it. | ||
22357 | # FIXME: This hack should be removed a few years after 2.60. | ||
22358 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
22359 | ac_sed_dataroot=' | ||
22360 | /datarootdir/ { | ||
22361 | p | ||
22362 | q | ||
22363 | } | ||
22364 | /@datadir@/p | ||
22365 | /@docdir@/p | ||
22366 | /@infodir@/p | ||
22367 | /@localedir@/p | ||
22368 | /@mandir@/p' | ||
22369 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | ||
22370 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
22371 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
22372 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
22373 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
22374 | _ACEOF | ||
22375 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
22376 | ac_datarootdir_hack=' | ||
22377 | s&@datadir@&$datadir&g | ||
22378 | s&@docdir@&$docdir&g | ||
22379 | s&@infodir@&$infodir&g | ||
22380 | s&@localedir@&$localedir&g | ||
22381 | s&@mandir@&$mandir&g | ||
22382 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
22383 | esac | ||
22384 | _ACEOF | ||
22385 | |||
22386 | # Neutralize VPATH when `$srcdir' = `.'. | ||
22387 | # Shell code in configure.ac might set extrasub. | ||
22388 | # FIXME: do we really want to maintain this feature? | ||
22389 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
22390 | ac_sed_extra="$ac_vpsub | ||
22391 | $extrasub | ||
22392 | _ACEOF | ||
22393 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
22394 | :t | ||
22395 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
22396 | s|@configure_input@|$ac_sed_conf_input|;t t | ||
22397 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
22398 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | ||
22399 | s&@srcdir@&$ac_srcdir&;t t | ||
22400 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
22401 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
22402 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
22403 | s&@builddir@&$ac_builddir&;t t | ||
22404 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
22405 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
22406 | s&@INSTALL@&$ac_INSTALL&;t t | ||
22407 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | ||
22408 | $ac_datarootdir_hack | ||
22409 | " | ||
22410 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | ||
22411 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
22412 | |||
22413 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
22414 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | ||
22415 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | ||
22416 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
22417 | which seems to be undefined. Please make sure it is defined" >&5 | ||
22418 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
22419 | which seems to be undefined. Please make sure it is defined" >&2;} | ||
22420 | |||
22421 | rm -f "$tmp/stdin" | ||
22422 | case $ac_file in | ||
22423 | -) cat "$tmp/out" && rm -f "$tmp/out";; | ||
22424 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | ||
22425 | esac \ | ||
22426 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
22427 | ;; | ||
22428 | :H) | ||
22429 | # | ||
22430 | # CONFIG_HEADER | ||
22431 | # | ||
22432 | if test x"$ac_file" != x-; then | ||
22433 | { | ||
22434 | $as_echo "/* $configure_input */" \ | ||
22435 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | ||
22436 | } >"$tmp/config.h" \ | ||
22437 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
22438 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | ||
22439 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | ||
22440 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | ||
22441 | else | ||
22442 | rm -f "$ac_file" | ||
22443 | mv "$tmp/config.h" "$ac_file" \ | ||
22444 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
22445 | fi | ||
22446 | else | ||
22447 | $as_echo "/* $configure_input */" \ | ||
22448 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | ||
22449 | || as_fn_error $? "could not create -" "$LINENO" 5 | ||
22450 | fi | ||
22451 | # Compute "$ac_file"'s index in $config_headers. | ||
22452 | _am_arg="$ac_file" | ||
22453 | _am_stamp_count=1 | ||
22454 | for _am_header in $config_headers :; do | ||
22455 | case $_am_header in | ||
22456 | $_am_arg | $_am_arg:* ) | ||
22457 | break ;; | ||
22458 | * ) | ||
22459 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | ||
22460 | esac | ||
22461 | done | ||
22462 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | ||
22463 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
22464 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | ||
22465 | X"$_am_arg" : 'X\(//\)$' \| \ | ||
22466 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | ||
22467 | $as_echo X"$_am_arg" | | ||
22468 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
22469 | s//\1/ | ||
22470 | q | ||
22471 | } | ||
22472 | /^X\(\/\/\)[^/].*/{ | ||
22473 | s//\1/ | ||
22474 | q | ||
22475 | } | ||
22476 | /^X\(\/\/\)$/{ | ||
22477 | s//\1/ | ||
22478 | q | ||
22479 | } | ||
22480 | /^X\(\/\).*/{ | ||
22481 | s//\1/ | ||
22482 | q | ||
22483 | } | ||
22484 | s/.*/./; q'`/stamp-h$_am_stamp_count | ||
22485 | ;; | ||
22486 | |||
22487 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | ||
22488 | $as_echo "$as_me: executing $ac_file commands" >&6;} | ||
22489 | ;; | ||
22490 | esac | ||
22491 | |||
22492 | |||
22493 | case $ac_file$ac_mode in | ||
22494 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | ||
22495 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | ||
22496 | # are listed without --file. Let's play safe and only enable the eval | ||
22497 | # if we detect the quoting. | ||
22498 | case $CONFIG_FILES in | ||
22499 | *\'*) eval set x "$CONFIG_FILES" ;; | ||
22500 | *) set x $CONFIG_FILES ;; | ||
22501 | esac | ||
22502 | shift | ||
22503 | for mf | ||
22504 | do | ||
22505 | # Strip MF so we end up with the name of the file. | ||
22506 | mf=`echo "$mf" | sed -e 's/:.*$//'` | ||
22507 | # Check whether this is an Automake generated Makefile or not. | ||
22508 | # We used to match only the files named `Makefile.in', but | ||
22509 | # some people rename them; so instead we look at the file content. | ||
22510 | # Grep'ing the first line is not enough: some people post-process | ||
22511 | # each Makefile.in and add a new line on top of each file to say so. | ||
22512 | # Grep'ing the whole file is not good either: AIX grep has a line | ||
22513 | # limit of 2048, but all sed's we know have understand at least 4000. | ||
22514 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | ||
22515 | dirpart=`$as_dirname -- "$mf" || | ||
22516 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
22517 | X"$mf" : 'X\(//\)[^/]' \| \ | ||
22518 | X"$mf" : 'X\(//\)$' \| \ | ||
22519 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | ||
22520 | $as_echo X"$mf" | | ||
22521 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
22522 | s//\1/ | ||
22523 | q | ||
22524 | } | ||
22525 | /^X\(\/\/\)[^/].*/{ | ||
22526 | s//\1/ | ||
22527 | q | ||
22528 | } | ||
22529 | /^X\(\/\/\)$/{ | ||
22530 | s//\1/ | ||
22531 | q | ||
22532 | } | ||
22533 | /^X\(\/\).*/{ | ||
22534 | s//\1/ | ||
22535 | q | ||
22536 | } | ||
22537 | s/.*/./; q'` | ||
22538 | else | ||
22539 | continue | ||
22540 | fi | ||
22541 | # Extract the definition of DEPDIR, am__include, and am__quote | ||
22542 | # from the Makefile without running `make'. | ||
22543 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | ||
22544 | test -z "$DEPDIR" && continue | ||
22545 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | ||
22546 | test -z "am__include" && continue | ||
22547 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | ||
22548 | # When using ansi2knr, U may be empty or an underscore; expand it | ||
22549 | U=`sed -n 's/^U = //p' < "$mf"` | ||
22550 | # Find all dependency output files, they are included files with | ||
22551 | # $(DEPDIR) in their names. We invoke sed twice because it is the | ||
22552 | # simplest approach to changing $(DEPDIR) to its actual value in the | ||
22553 | # expansion. | ||
22554 | for file in `sed -n " | ||
22555 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | ||
22556 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | ||
22557 | # Make sure the directory exists. | ||
22558 | test -f "$dirpart/$file" && continue | ||
22559 | fdir=`$as_dirname -- "$file" || | ||
22560 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
22561 | X"$file" : 'X\(//\)[^/]' \| \ | ||
22562 | X"$file" : 'X\(//\)$' \| \ | ||
22563 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | ||
22564 | $as_echo X"$file" | | ||
22565 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
22566 | s//\1/ | ||
22567 | q | ||
22568 | } | ||
22569 | /^X\(\/\/\)[^/].*/{ | ||
22570 | s//\1/ | ||
22571 | q | ||
22572 | } | ||
22573 | /^X\(\/\/\)$/{ | ||
22574 | s//\1/ | ||
22575 | q | ||
22576 | } | ||
22577 | /^X\(\/\).*/{ | ||
22578 | s//\1/ | ||
22579 | q | ||
22580 | } | ||
22581 | s/.*/./; q'` | ||
22582 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | ||
22583 | # echo "creating $dirpart/$file" | ||
22584 | echo '# dummy' > "$dirpart/$file" | ||
22585 | done | ||
22586 | done | ||
22587 | } | ||
22588 | ;; | ||
22589 | "libtool":C) | ||
22590 | |||
22591 | # See if we are running on zsh, and set the options which allow our | ||
22592 | # commands through without removal of \ escapes. | ||
22593 | if test -n "${ZSH_VERSION+set}" ; then | ||
22594 | setopt NO_GLOB_SUBST | ||
22595 | fi | ||
22596 | |||
22597 | cfgfile="${ofile}T" | ||
22598 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | ||
22599 | $RM "$cfgfile" | ||
22600 | |||
22601 | cat <<_LT_EOF >> "$cfgfile" | ||
22602 | #! $SHELL | ||
22603 | |||
22604 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | ||
22605 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | ||
22606 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
22607 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
22608 | # | ||
22609 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
22610 | # 2006, 2007, 2008 Free Software Foundation, Inc. | ||
22611 | # Written by Gordon Matzigkeit, 1996 | ||
22612 | # | ||
22613 | # This file is part of GNU Libtool. | ||
22614 | # | ||
22615 | # GNU Libtool is free software; you can redistribute it and/or | ||
22616 | # modify it under the terms of the GNU General Public License as | ||
22617 | # published by the Free Software Foundation; either version 2 of | ||
22618 | # the License, or (at your option) any later version. | ||
22619 | # | ||
22620 | # As a special exception to the GNU General Public License, | ||
22621 | # if you distribute this file as part of a program or library that | ||
22622 | # is built using GNU Libtool, you may include this file under the | ||
22623 | # same distribution terms that you use for the rest of that program. | ||
22624 | # | ||
22625 | # GNU Libtool is distributed in the hope that it will be useful, | ||
22626 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
22627 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
22628 | # GNU General Public License for more details. | ||
22629 | # | ||
22630 | # You should have received a copy of the GNU General Public License | ||
22631 | # along with GNU Libtool; see the file COPYING. If not, a copy | ||
22632 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | ||
22633 | # obtained by writing to the Free Software Foundation, Inc., | ||
22634 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
22635 | |||
22636 | |||
22637 | # The names of the tagged configurations supported by this script. | ||
22638 | available_tags="CXX " | ||
22639 | |||
22640 | # ### BEGIN LIBTOOL CONFIG | ||
22641 | |||
22642 | # Assembler program. | ||
22643 | AS=$AS | ||
22644 | |||
22645 | # DLL creation program. | ||
22646 | DLLTOOL=$DLLTOOL | ||
22647 | |||
22648 | # Object dumper program. | ||
22649 | OBJDUMP=$OBJDUMP | ||
22650 | |||
22651 | # Which release of libtool.m4 was used? | ||
22652 | macro_version=$macro_version | ||
22653 | macro_revision=$macro_revision | ||
22654 | |||
22655 | # Whether or not to build shared libraries. | ||
22656 | build_libtool_libs=$enable_shared | ||
22657 | |||
22658 | # Whether or not to build static libraries. | ||
22659 | build_old_libs=$enable_static | ||
22660 | |||
22661 | # What type of objects to build. | ||
22662 | pic_mode=$pic_mode | ||
22663 | |||
22664 | # Whether or not to optimize for fast installation. | ||
22665 | fast_install=$enable_fast_install | ||
22666 | |||
22667 | # The host system. | ||
22668 | host_alias=$host_alias | ||
22669 | host=$host | ||
22670 | host_os=$host_os | ||
22671 | |||
22672 | # The build system. | ||
22673 | build_alias=$build_alias | ||
22674 | build=$build | ||
22675 | build_os=$build_os | ||
22676 | |||
22677 | # A sed program that does not truncate output. | ||
22678 | SED=$lt_SED | ||
22679 | |||
22680 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | ||
22681 | Xsed="\$SED -e 1s/^X//" | ||
22682 | |||
22683 | # A grep program that handles long lines. | ||
22684 | GREP=$lt_GREP | ||
22685 | |||
22686 | # An ERE matcher. | ||
22687 | EGREP=$lt_EGREP | ||
22688 | |||
22689 | # A literal string matcher. | ||
22690 | FGREP=$lt_FGREP | ||
22691 | |||
22692 | # A BSD- or MS-compatible name lister. | ||
22693 | NM=$lt_NM | ||
22694 | |||
22695 | # Whether we need soft or hard links. | ||
22696 | LN_S=$lt_LN_S | ||
22697 | |||
22698 | # What is the maximum length of a command? | ||
22699 | max_cmd_len=$max_cmd_len | ||
22700 | |||
22701 | # Object file suffix (normally "o"). | ||
22702 | objext=$ac_objext | ||
22703 | |||
22704 | # Executable file suffix (normally ""). | ||
22705 | exeext=$exeext | ||
22706 | |||
22707 | # whether the shell understands "unset". | ||
22708 | lt_unset=$lt_unset | ||
22709 | |||
22710 | # turn spaces into newlines. | ||
22711 | SP2NL=$lt_lt_SP2NL | ||
22712 | |||
22713 | # turn newlines into spaces. | ||
22714 | NL2SP=$lt_lt_NL2SP | ||
22715 | |||
22716 | # How to create reloadable object files. | ||
22717 | reload_flag=$lt_reload_flag | ||
22718 | reload_cmds=$lt_reload_cmds | ||
22719 | |||
22720 | # Method to check whether dependent libraries are shared objects. | ||
22721 | deplibs_check_method=$lt_deplibs_check_method | ||
22722 | |||
22723 | # Command to use when deplibs_check_method == "file_magic". | ||
22724 | file_magic_cmd=$lt_file_magic_cmd | ||
22725 | |||
22726 | # The archiver. | ||
22727 | AR=$lt_AR | ||
22728 | AR_FLAGS=$lt_AR_FLAGS | ||
22729 | |||
22730 | # A symbol stripping program. | ||
22731 | STRIP=$lt_STRIP | ||
22732 | |||
22733 | # Commands used to install an old-style archive. | ||
22734 | RANLIB=$lt_RANLIB | ||
22735 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
22736 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
22737 | |||
22738 | # A C compiler. | ||
22739 | LTCC=$lt_CC | ||
22740 | |||
22741 | # LTCC compiler flags. | ||
22742 | LTCFLAGS=$lt_CFLAGS | ||
22743 | |||
22744 | # Take the output of nm and produce a listing of raw symbols and C names. | ||
22745 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | ||
22746 | |||
22747 | # Transform the output of nm in a proper C declaration. | ||
22748 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | ||
22749 | |||
22750 | # Transform the output of nm in a C name address pair. | ||
22751 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
22752 | |||
22753 | # Transform the output of nm in a C name address pair when lib prefix is needed. | ||
22754 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | ||
22755 | |||
22756 | # The name of the directory that contains temporary libtool files. | ||
22757 | objdir=$objdir | ||
22758 | |||
22759 | # Shell to use when invoking shell scripts. | ||
22760 | SHELL=$lt_SHELL | ||
22761 | |||
22762 | # An echo program that does not interpret backslashes. | ||
22763 | ECHO=$lt_ECHO | ||
22764 | |||
22765 | # Used to examine libraries when file_magic_cmd begins with "file". | ||
22766 | MAGIC_CMD=$MAGIC_CMD | ||
22767 | |||
22768 | # Must we lock files when doing compilation? | ||
22769 | need_locks=$lt_need_locks | ||
22770 | |||
22771 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | ||
22772 | DSYMUTIL=$lt_DSYMUTIL | ||
22773 | |||
22774 | # Tool to change global to local symbols on Mac OS X. | ||
22775 | NMEDIT=$lt_NMEDIT | ||
22776 | |||
22777 | # Tool to manipulate fat objects and archives on Mac OS X. | ||
22778 | LIPO=$lt_LIPO | ||
22779 | |||
22780 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | ||
22781 | OTOOL=$lt_OTOOL | ||
22782 | |||
22783 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | ||
22784 | OTOOL64=$lt_OTOOL64 | ||
22785 | |||
22786 | # Old archive suffix (normally "a"). | ||
22787 | libext=$libext | ||
22788 | |||
22789 | # Shared library suffix (normally ".so"). | ||
22790 | shrext_cmds=$lt_shrext_cmds | ||
22791 | |||
22792 | # The commands to extract the exported symbol list from a shared archive. | ||
22793 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | ||
22794 | |||
22795 | # Variables whose values should be saved in libtool wrapper scripts and | ||
22796 | # restored at link time. | ||
22797 | variables_saved_for_relink=$lt_variables_saved_for_relink | ||
22798 | |||
22799 | # Do we need the "lib" prefix for modules? | ||
22800 | need_lib_prefix=$need_lib_prefix | ||
22801 | |||
22802 | # Do we need a version for libraries? | ||
22803 | need_version=$need_version | ||
22804 | |||
22805 | # Library versioning type. | ||
22806 | version_type=$version_type | ||
22807 | |||
22808 | # Shared library runtime path variable. | ||
22809 | runpath_var=$runpath_var | ||
22810 | |||
22811 | # Shared library path variable. | ||
22812 | shlibpath_var=$shlibpath_var | ||
22813 | |||
22814 | # Is shlibpath searched before the hard-coded library search path? | ||
22815 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | ||
22816 | |||
22817 | # Format of library name prefix. | ||
22818 | libname_spec=$lt_libname_spec | ||
22819 | |||
22820 | # List of archive names. First name is the real one, the rest are links. | ||
22821 | # The last name is the one that the linker finds with -lNAME | ||
22822 | library_names_spec=$lt_library_names_spec | ||
22823 | |||
22824 | # The coded name of the library, if different from the real name. | ||
22825 | soname_spec=$lt_soname_spec | ||
22826 | |||
22827 | # Command to use after installation of a shared archive. | ||
22828 | postinstall_cmds=$lt_postinstall_cmds | ||
22829 | |||
22830 | # Command to use after uninstallation of a shared archive. | ||
22831 | postuninstall_cmds=$lt_postuninstall_cmds | ||
22832 | |||
22833 | # Commands used to finish a libtool library installation in a directory. | ||
22834 | finish_cmds=$lt_finish_cmds | ||
22835 | |||
22836 | # As "finish_cmds", except a single script fragment to be evaled but | ||
22837 | # not shown. | ||
22838 | finish_eval=$lt_finish_eval | ||
22839 | |||
22840 | # Whether we should hardcode library paths into libraries. | ||
22841 | hardcode_into_libs=$hardcode_into_libs | ||
22842 | |||
22843 | # Compile-time system search path for libraries. | ||
22844 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | ||
22845 | |||
22846 | # Run-time system search path for libraries. | ||
22847 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | ||
22848 | |||
22849 | # Whether dlopen is supported. | ||
22850 | dlopen_support=$enable_dlopen | ||
22851 | |||
22852 | # Whether dlopen of programs is supported. | ||
22853 | dlopen_self=$enable_dlopen_self | ||
22854 | |||
22855 | # Whether dlopen of statically linked programs is supported. | ||
22856 | dlopen_self_static=$enable_dlopen_self_static | ||
22857 | |||
22858 | # Commands to strip libraries. | ||
22859 | old_striplib=$lt_old_striplib | ||
22860 | striplib=$lt_striplib | ||
22861 | |||
22862 | |||
22863 | # The linker used to build libraries. | ||
22864 | LD=$lt_LD | ||
22865 | |||
22866 | # Commands used to build an old-style archive. | ||
22867 | old_archive_cmds=$lt_old_archive_cmds | ||
22868 | |||
22869 | # A language specific compiler. | ||
22870 | CC=$lt_compiler | ||
22871 | |||
22872 | # Is the compiler the GNU compiler? | ||
22873 | with_gcc=$GCC | ||
22874 | |||
22875 | # Compiler flag to turn off builtin functions. | ||
22876 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | ||
22877 | |||
22878 | # How to pass a linker flag through the compiler. | ||
22879 | wl=$lt_lt_prog_compiler_wl | ||
22880 | |||
22881 | # Additional compiler flags for building library objects. | ||
22882 | pic_flag=$lt_lt_prog_compiler_pic | ||
22883 | |||
22884 | # Compiler flag to prevent dynamic linking. | ||
22885 | link_static_flag=$lt_lt_prog_compiler_static | ||
22886 | |||
22887 | # Does compiler simultaneously support -c and -o options? | ||
22888 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | ||
22889 | |||
22890 | # Whether or not to add -lc for building shared libraries. | ||
22891 | build_libtool_need_lc=$archive_cmds_need_lc | ||
22892 | |||
22893 | # Whether or not to disallow shared libs when runtime libs are static. | ||
22894 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | ||
22895 | |||
22896 | # Compiler flag to allow reflexive dlopens. | ||
22897 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | ||
22898 | |||
22899 | # Compiler flag to generate shared objects directly from archives. | ||
22900 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | ||
22901 | |||
22902 | # Whether the compiler copes with passing no objects directly. | ||
22903 | compiler_needs_object=$lt_compiler_needs_object | ||
22904 | |||
22905 | # Create an old-style archive from a shared archive. | ||
22906 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | ||
22907 | |||
22908 | # Create a temporary old-style archive to link instead of a shared archive. | ||
22909 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | ||
22910 | |||
22911 | # Commands used to build a shared archive. | ||
22912 | archive_cmds=$lt_archive_cmds | ||
22913 | archive_expsym_cmds=$lt_archive_expsym_cmds | ||
22914 | |||
22915 | # Commands used to build a loadable module if different from building | ||
22916 | # a shared archive. | ||
22917 | module_cmds=$lt_module_cmds | ||
22918 | module_expsym_cmds=$lt_module_expsym_cmds | ||
22919 | |||
22920 | # Whether we are building with GNU ld or not. | ||
22921 | with_gnu_ld=$lt_with_gnu_ld | ||
22922 | |||
22923 | # Flag that allows shared libraries with undefined symbols to be built. | ||
22924 | allow_undefined_flag=$lt_allow_undefined_flag | ||
22925 | |||
22926 | # Flag that enforces no undefined symbols. | ||
22927 | no_undefined_flag=$lt_no_undefined_flag | ||
22928 | |||
22929 | # Flag to hardcode \$libdir into a binary during linking. | ||
22930 | # This must work even if \$libdir does not exist | ||
22931 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | ||
22932 | |||
22933 | # If ld is used when linking, flag to hardcode \$libdir into a binary | ||
22934 | # during linking. This must work even if \$libdir does not exist. | ||
22935 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | ||
22936 | |||
22937 | # Whether we need a single "-rpath" flag with a separated argument. | ||
22938 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | ||
22939 | |||
22940 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
22941 | # DIR into the resulting binary. | ||
22942 | hardcode_direct=$hardcode_direct | ||
22943 | |||
22944 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
22945 | # DIR into the resulting binary and the resulting library dependency is | ||
22946 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | ||
22947 | # library is relocated. | ||
22948 | hardcode_direct_absolute=$hardcode_direct_absolute | ||
22949 | |||
22950 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | ||
22951 | # into the resulting binary. | ||
22952 | hardcode_minus_L=$hardcode_minus_L | ||
22953 | |||
22954 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | ||
22955 | # into the resulting binary. | ||
22956 | hardcode_shlibpath_var=$hardcode_shlibpath_var | ||
22957 | |||
22958 | # Set to "yes" if building a shared library automatically hardcodes DIR | ||
22959 | # into the library and all subsequent libraries and executables linked | ||
22960 | # against it. | ||
22961 | hardcode_automatic=$hardcode_automatic | ||
22962 | |||
22963 | # Set to yes if linker adds runtime paths of dependent libraries | ||
22964 | # to runtime path list. | ||
22965 | inherit_rpath=$inherit_rpath | ||
22966 | |||
22967 | # Whether libtool must link a program against all its dependency libraries. | ||
22968 | link_all_deplibs=$link_all_deplibs | ||
22969 | |||
22970 | # Fix the shell variable \$srcfile for the compiler. | ||
22971 | fix_srcfile_path=$lt_fix_srcfile_path | ||
22972 | |||
22973 | # Set to "yes" if exported symbols are required. | ||
22974 | always_export_symbols=$always_export_symbols | ||
22975 | |||
22976 | # The commands to list exported symbols. | ||
22977 | export_symbols_cmds=$lt_export_symbols_cmds | ||
22978 | |||
22979 | # Symbols that should not be listed in the preloaded symbols. | ||
22980 | exclude_expsyms=$lt_exclude_expsyms | ||
22981 | |||
22982 | # Symbols that must always be exported. | ||
22983 | include_expsyms=$lt_include_expsyms | ||
22984 | |||
22985 | # Commands necessary for linking programs (against libraries) with templates. | ||
22986 | prelink_cmds=$lt_prelink_cmds | ||
22987 | |||
22988 | # Specify filename containing input files. | ||
22989 | file_list_spec=$lt_file_list_spec | ||
22990 | |||
22991 | # How to hardcode a shared library path into an executable. | ||
22992 | hardcode_action=$hardcode_action | ||
22993 | |||
22994 | # The directories searched by this compiler when creating a shared library. | ||
22995 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | ||
22996 | |||
22997 | # Dependencies to place before and after the objects being linked to | ||
22998 | # create a shared library. | ||
22999 | predep_objects=$lt_predep_objects | ||
23000 | postdep_objects=$lt_postdep_objects | ||
23001 | predeps=$lt_predeps | ||
23002 | postdeps=$lt_postdeps | ||
23003 | |||
23004 | # The library search path used internally by the compiler when linking | ||
23005 | # a shared library. | ||
23006 | compiler_lib_search_path=$lt_compiler_lib_search_path | ||
23007 | |||
23008 | # ### END LIBTOOL CONFIG | ||
23009 | |||
23010 | _LT_EOF | ||
23011 | |||
23012 | case $host_os in | ||
23013 | aix3*) | ||
23014 | cat <<\_LT_EOF >> "$cfgfile" | ||
23015 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
23016 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
23017 | # vanish in a puff of smoke. | ||
23018 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
23019 | COLLECT_NAMES= | ||
23020 | export COLLECT_NAMES | ||
23021 | fi | ||
23022 | _LT_EOF | ||
23023 | ;; | ||
23024 | esac | ||
23025 | |||
23026 | |||
23027 | ltmain="$ac_aux_dir/ltmain.sh" | ||
23028 | |||
23029 | |||
23030 | # We use sed instead of cat because bash on DJGPP gets confused if | ||
23031 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
23032 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
23033 | # is reportedly fixed, but why not run on old versions too? | ||
23034 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | ||
23035 | || (rm -f "$cfgfile"; exit 1) | ||
23036 | |||
23037 | case $xsi_shell in | ||
23038 | yes) | ||
23039 | cat << \_LT_EOF >> "$cfgfile" | ||
23040 | |||
23041 | # func_dirname file append nondir_replacement | ||
23042 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
23043 | # otherwise set result to NONDIR_REPLACEMENT. | ||
23044 | func_dirname () | ||
23045 | { | ||
23046 | case ${1} in | ||
23047 | */*) func_dirname_result="${1%/*}${2}" ;; | ||
23048 | * ) func_dirname_result="${3}" ;; | ||
23049 | esac | ||
23050 | } | ||
23051 | |||
23052 | # func_basename file | ||
23053 | func_basename () | ||
23054 | { | ||
23055 | func_basename_result="${1##*/}" | ||
23056 | } | ||
23057 | |||
23058 | # func_dirname_and_basename file append nondir_replacement | ||
23059 | # perform func_basename and func_dirname in a single function | ||
23060 | # call: | ||
23061 | # dirname: Compute the dirname of FILE. If nonempty, | ||
23062 | # add APPEND to the result, otherwise set result | ||
23063 | # to NONDIR_REPLACEMENT. | ||
23064 | # value returned in "$func_dirname_result" | ||
23065 | # basename: Compute filename of FILE. | ||
23066 | # value retuned in "$func_basename_result" | ||
23067 | # Implementation must be kept synchronized with func_dirname | ||
23068 | # and func_basename. For efficiency, we do not delegate to | ||
23069 | # those functions but instead duplicate the functionality here. | ||
23070 | func_dirname_and_basename () | ||
23071 | { | ||
23072 | case ${1} in | ||
23073 | */*) func_dirname_result="${1%/*}${2}" ;; | ||
23074 | * ) func_dirname_result="${3}" ;; | ||
23075 | esac | ||
23076 | func_basename_result="${1##*/}" | ||
23077 | } | ||
23078 | |||
23079 | # func_stripname prefix suffix name | ||
23080 | # strip PREFIX and SUFFIX off of NAME. | ||
23081 | # PREFIX and SUFFIX must not contain globbing or regex special | ||
23082 | # characters, hashes, percent signs, but SUFFIX may contain a leading | ||
23083 | # dot (in which case that matches only a dot). | ||
23084 | func_stripname () | ||
23085 | { | ||
23086 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | ||
23087 | # positional parameters, so assign one to ordinary parameter first. | ||
23088 | func_stripname_result=${3} | ||
23089 | func_stripname_result=${func_stripname_result#"${1}"} | ||
23090 | func_stripname_result=${func_stripname_result%"${2}"} | ||
23091 | } | ||
23092 | |||
23093 | # func_opt_split | ||
23094 | func_opt_split () | ||
23095 | { | ||
23096 | func_opt_split_opt=${1%%=*} | ||
23097 | func_opt_split_arg=${1#*=} | ||
23098 | } | ||
23099 | |||
23100 | # func_lo2o object | ||
23101 | func_lo2o () | ||
23102 | { | ||
23103 | case ${1} in | ||
23104 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | ||
23105 | *) func_lo2o_result=${1} ;; | ||
23106 | esac | ||
23107 | } | ||
23108 | |||
23109 | # func_xform libobj-or-source | ||
23110 | func_xform () | ||
23111 | { | ||
23112 | func_xform_result=${1%.*}.lo | ||
23113 | } | ||
23114 | |||
23115 | # func_arith arithmetic-term... | ||
23116 | func_arith () | ||
23117 | { | ||
23118 | func_arith_result=$(( $* )) | ||
23119 | } | ||
23120 | |||
23121 | # func_len string | ||
23122 | # STRING may not start with a hyphen. | ||
23123 | func_len () | ||
23124 | { | ||
23125 | func_len_result=${#1} | ||
23126 | } | ||
23127 | |||
23128 | _LT_EOF | ||
23129 | ;; | ||
23130 | *) # Bourne compatible functions. | ||
23131 | cat << \_LT_EOF >> "$cfgfile" | ||
23132 | |||
23133 | # func_dirname file append nondir_replacement | ||
23134 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
23135 | # otherwise set result to NONDIR_REPLACEMENT. | ||
23136 | func_dirname () | ||
23137 | { | ||
23138 | # Extract subdirectory from the argument. | ||
23139 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | ||
23140 | if test "X$func_dirname_result" = "X${1}"; then | ||
23141 | func_dirname_result="${3}" | ||
23142 | else | ||
23143 | func_dirname_result="$func_dirname_result${2}" | ||
23144 | fi | ||
23145 | } | ||
23146 | |||
23147 | # func_basename file | ||
23148 | func_basename () | ||
23149 | { | ||
23150 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | ||
23151 | } | ||
23152 | |||
23153 | |||
23154 | # func_stripname prefix suffix name | ||
23155 | # strip PREFIX and SUFFIX off of NAME. | ||
23156 | # PREFIX and SUFFIX must not contain globbing or regex special | ||
23157 | # characters, hashes, percent signs, but SUFFIX may contain a leading | ||
23158 | # dot (in which case that matches only a dot). | ||
23159 | # func_strip_suffix prefix name | ||
23160 | func_stripname () | ||
23161 | { | ||
23162 | case ${2} in | ||
23163 | .*) func_stripname_result=`$ECHO "X${3}" \ | ||
23164 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | ||
23165 | *) func_stripname_result=`$ECHO "X${3}" \ | ||
23166 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | ||
23167 | esac | ||
23168 | } | ||
23169 | |||
23170 | # sed scripts: | ||
23171 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | ||
23172 | my_sed_long_arg='1s/^-[^=]*=//' | ||
23173 | |||
23174 | # func_opt_split | ||
23175 | func_opt_split () | ||
23176 | { | ||
23177 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | ||
23178 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | ||
23179 | } | ||
23180 | |||
23181 | # func_lo2o object | ||
23182 | func_lo2o () | ||
23183 | { | ||
23184 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | ||
23185 | } | ||
23186 | |||
23187 | # func_xform libobj-or-source | ||
23188 | func_xform () | ||
23189 | { | ||
23190 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | ||
23191 | } | ||
23192 | |||
23193 | # func_arith arithmetic-term... | ||
23194 | func_arith () | ||
23195 | { | ||
23196 | func_arith_result=`expr "$@"` | ||
23197 | } | ||
23198 | |||
23199 | # func_len string | ||
23200 | # STRING may not start with a hyphen. | ||
23201 | func_len () | ||
23202 | { | ||
23203 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | ||
23204 | } | ||
23205 | |||
23206 | _LT_EOF | ||
23207 | esac | ||
23208 | |||
23209 | case $lt_shell_append in | ||
23210 | yes) | ||
23211 | cat << \_LT_EOF >> "$cfgfile" | ||
23212 | |||
23213 | # func_append var value | ||
23214 | # Append VALUE to the end of shell variable VAR. | ||
23215 | func_append () | ||
23216 | { | ||
23217 | eval "$1+=\$2" | ||
23218 | } | ||
23219 | _LT_EOF | ||
23220 | ;; | ||
23221 | *) | ||
23222 | cat << \_LT_EOF >> "$cfgfile" | ||
23223 | |||
23224 | # func_append var value | ||
23225 | # Append VALUE to the end of shell variable VAR. | ||
23226 | func_append () | ||
23227 | { | ||
23228 | eval "$1=\$$1\$2" | ||
23229 | } | ||
23230 | |||
23231 | _LT_EOF | ||
23232 | ;; | ||
23233 | esac | ||
23234 | |||
23235 | |||
23236 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | ||
23237 | || (rm -f "$cfgfile"; exit 1) | ||
23238 | |||
23239 | mv -f "$cfgfile" "$ofile" || | ||
23240 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
23241 | chmod +x "$ofile" | ||
23242 | |||
23243 | |||
23244 | cat <<_LT_EOF >> "$ofile" | ||
23245 | |||
23246 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | ||
23247 | |||
23248 | # The linker used to build libraries. | ||
23249 | LD=$lt_LD_CXX | ||
23250 | |||
23251 | # Commands used to build an old-style archive. | ||
23252 | old_archive_cmds=$lt_old_archive_cmds_CXX | ||
23253 | |||
23254 | # A language specific compiler. | ||
23255 | CC=$lt_compiler_CXX | ||
23256 | |||
23257 | # Is the compiler the GNU compiler? | ||
23258 | with_gcc=$GCC_CXX | ||
23259 | |||
23260 | # Compiler flag to turn off builtin functions. | ||
23261 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | ||
23262 | |||
23263 | # How to pass a linker flag through the compiler. | ||
23264 | wl=$lt_lt_prog_compiler_wl_CXX | ||
23265 | |||
23266 | # Additional compiler flags for building library objects. | ||
23267 | pic_flag=$lt_lt_prog_compiler_pic_CXX | ||
23268 | |||
23269 | # Compiler flag to prevent dynamic linking. | ||
23270 | link_static_flag=$lt_lt_prog_compiler_static_CXX | ||
23271 | |||
23272 | # Does compiler simultaneously support -c and -o options? | ||
23273 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | ||
23274 | |||
23275 | # Whether or not to add -lc for building shared libraries. | ||
23276 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | ||
23277 | |||
23278 | # Whether or not to disallow shared libs when runtime libs are static. | ||
23279 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | ||
23280 | |||
23281 | # Compiler flag to allow reflexive dlopens. | ||
23282 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | ||
23283 | |||
23284 | # Compiler flag to generate shared objects directly from archives. | ||
23285 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | ||
23286 | |||
23287 | # Whether the compiler copes with passing no objects directly. | ||
23288 | compiler_needs_object=$lt_compiler_needs_object_CXX | ||
23289 | |||
23290 | # Create an old-style archive from a shared archive. | ||
23291 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | ||
23292 | |||
23293 | # Create a temporary old-style archive to link instead of a shared archive. | ||
23294 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | ||
23295 | |||
23296 | # Commands used to build a shared archive. | ||
23297 | archive_cmds=$lt_archive_cmds_CXX | ||
23298 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | ||
23299 | |||
23300 | # Commands used to build a loadable module if different from building | ||
23301 | # a shared archive. | ||
23302 | module_cmds=$lt_module_cmds_CXX | ||
23303 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | ||
23304 | |||
23305 | # Whether we are building with GNU ld or not. | ||
23306 | with_gnu_ld=$lt_with_gnu_ld_CXX | ||
23307 | |||
23308 | # Flag that allows shared libraries with undefined symbols to be built. | ||
23309 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | ||
23310 | |||
23311 | # Flag that enforces no undefined symbols. | ||
23312 | no_undefined_flag=$lt_no_undefined_flag_CXX | ||
23313 | |||
23314 | # Flag to hardcode \$libdir into a binary during linking. | ||
23315 | # This must work even if \$libdir does not exist | ||
23316 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | ||
23317 | |||
23318 | # If ld is used when linking, flag to hardcode \$libdir into a binary | ||
23319 | # during linking. This must work even if \$libdir does not exist. | ||
23320 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | ||
23321 | |||
23322 | # Whether we need a single "-rpath" flag with a separated argument. | ||
23323 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | ||
23324 | |||
23325 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
23326 | # DIR into the resulting binary. | ||
23327 | hardcode_direct=$hardcode_direct_CXX | ||
23328 | |||
23329 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
23330 | # DIR into the resulting binary and the resulting library dependency is | ||
23331 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | ||
23332 | # library is relocated. | ||
23333 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | ||
23334 | |||
23335 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | ||
23336 | # into the resulting binary. | ||
23337 | hardcode_minus_L=$hardcode_minus_L_CXX | ||
23338 | |||
23339 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | ||
23340 | # into the resulting binary. | ||
23341 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | ||
23342 | |||
23343 | # Set to "yes" if building a shared library automatically hardcodes DIR | ||
23344 | # into the library and all subsequent libraries and executables linked | ||
23345 | # against it. | ||
23346 | hardcode_automatic=$hardcode_automatic_CXX | ||
23347 | |||
23348 | # Set to yes if linker adds runtime paths of dependent libraries | ||
23349 | # to runtime path list. | ||
23350 | inherit_rpath=$inherit_rpath_CXX | ||
23351 | |||
23352 | # Whether libtool must link a program against all its dependency libraries. | ||
23353 | link_all_deplibs=$link_all_deplibs_CXX | ||
23354 | |||
23355 | # Fix the shell variable \$srcfile for the compiler. | ||
23356 | fix_srcfile_path=$lt_fix_srcfile_path_CXX | ||
23357 | |||
23358 | # Set to "yes" if exported symbols are required. | ||
23359 | always_export_symbols=$always_export_symbols_CXX | ||
23360 | |||
23361 | # The commands to list exported symbols. | ||
23362 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | ||
23363 | |||
23364 | # Symbols that should not be listed in the preloaded symbols. | ||
23365 | exclude_expsyms=$lt_exclude_expsyms_CXX | ||
23366 | |||
23367 | # Symbols that must always be exported. | ||
23368 | include_expsyms=$lt_include_expsyms_CXX | ||
23369 | |||
23370 | # Commands necessary for linking programs (against libraries) with templates. | ||
23371 | prelink_cmds=$lt_prelink_cmds_CXX | ||
23372 | |||
23373 | # Specify filename containing input files. | ||
23374 | file_list_spec=$lt_file_list_spec_CXX | ||
23375 | |||
23376 | # How to hardcode a shared library path into an executable. | ||
23377 | hardcode_action=$hardcode_action_CXX | ||
23378 | |||
23379 | # The directories searched by this compiler when creating a shared library. | ||
23380 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | ||
23381 | |||
23382 | # Dependencies to place before and after the objects being linked to | ||
23383 | # create a shared library. | ||
23384 | predep_objects=$lt_predep_objects_CXX | ||
23385 | postdep_objects=$lt_postdep_objects_CXX | ||
23386 | predeps=$lt_predeps_CXX | ||
23387 | postdeps=$lt_postdeps_CXX | ||
23388 | |||
23389 | # The library search path used internally by the compiler when linking | ||
23390 | # a shared library. | ||
23391 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | ||
23392 | |||
23393 | # ### END LIBTOOL TAG CONFIG: CXX | ||
23394 | _LT_EOF | ||
23395 | |||
23396 | ;; | ||
23397 | |||
23398 | esac | ||
23399 | done # for ac_tag | ||
23400 | |||
23401 | |||
23402 | as_fn_exit 0 | ||
23403 | _ACEOF | ||
23404 | ac_clean_files=$ac_clean_files_save | ||
23405 | |||
23406 | test $ac_write_fail = 0 || | ||
23407 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | ||
23408 | |||
23409 | |||
23410 | # configure is writing to config.log, and then calls config.status. | ||
23411 | # config.status does its own redirection, appending to config.log. | ||
23412 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
23413 | # by configure, so config.status won't be able to write to it; its | ||
23414 | # output is simply discarded. So we exec the FD to /dev/null, | ||
23415 | # effectively closing config.log, so it can be properly (re)opened and | ||
23416 | # appended to by config.status. When coming back to configure, we | ||
23417 | # need to make the FD available again. | ||
23418 | if test "$no_create" != yes; then | ||
23419 | ac_cs_success=: | ||
23420 | ac_config_status_args= | ||
23421 | test "$silent" = yes && | ||
23422 | ac_config_status_args="$ac_config_status_args --quiet" | ||
23423 | exec 5>/dev/null | ||
23424 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
23425 | exec 5>>config.log | ||
23426 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
23427 | # would make configure fail if this is the last instruction. | ||
23428 | $ac_cs_success || as_fn_exit 1 | ||
23429 | fi | ||
23430 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | ||
23431 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | ||
23432 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | ||
23433 | fi | ||
23434 | |||
23435 | |||
23436 | ##################################################################### | ||
23437 | ## Info | ||
23438 | |||
23439 | echo | ||
23440 | echo | ||
23441 | echo | ||
23442 | echo "------------------------------------------------------------------------" | ||
23443 | echo "$PACKAGE $VERSION" | ||
23444 | echo "------------------------------------------------------------------------" | ||
23445 | echo | ||
23446 | echo | ||
23447 | echo "Configuration Options Summary:" | ||
23448 | echo | ||
23449 | echo " Magic debug..........: ${have_magic_debug}" | ||
23450 | echo " Safety checks........: ${have_safety_checks}" | ||
23451 | echo " Maximum log level....: ${with_max_log_level}" | ||
23452 | echo " Report string usage..: ${have_stringshare_usage}" | ||
23453 | echo " Valgrind support.....: ${have_valgrind}" | ||
23454 | echo " Default mempool......: ${have_default_mempool}" | ||
23455 | echo " Thread Support.......: ${have_threads}" | ||
23456 | if test "${have_threads}" = "POSIX" ; then | ||
23457 | echo " spinlock...........: ${have_posix_threads_spinlock}" | ||
23458 | echo " debug usage........: ${have_debug_threads}" | ||
23459 | echo " on/off support.....: ${have_on_off_threads}" | ||
23460 | fi | ||
23461 | echo " Amalgamation.........: ${do_amalgamation}" | ||
23462 | echo " Iconv support........: ${have_iconv}" | ||
23463 | echo " File dirfd...........: ${ac_cv_func_dirfd}" | ||
23464 | echo " File xattr...........: ${have_xattr}" | ||
23465 | echo | ||
23466 | echo " Documentation........: ${build_doc}" | ||
23467 | echo " Tests................: ${enable_tests}" | ||
23468 | echo " Coverage.............: ${enable_coverage}" | ||
23469 | echo " Examples.............: ${enable_build_examples}" | ||
23470 | echo " Tiler Example........: ${build_tiler_example}" | ||
23471 | echo " Examples installed...: ${enable_install_examples}" | ||
23472 | echo " Benchmark............: ${enable_benchmark}" | ||
23473 | if test "x${enable_benchmark}" = "xyes" ; then | ||
23474 | echo " Glib...............: ${enable_benchmark_glib}" | ||
23475 | echo " E17 real data......: ${enable_benchmark_e17}" | ||
23476 | fi | ||
23477 | echo | ||
23478 | echo " CPU Specific Extensions:" | ||
23479 | echo " MMX................: ${have_mmx}" | ||
23480 | echo " SSE................: ${have_sse}" | ||
23481 | echo " SSE2...............: ${have_sse2}" | ||
23482 | echo " ALTIVEC............: ${have_altivec}" | ||
23483 | echo | ||
23484 | echo " Memory pools:" | ||
23485 | echo " Buddy..............: ${enable_buddy}" | ||
23486 | echo " Chained pool.......: ${enable_chained_pool}" | ||
23487 | echo " Ememoa fixed.......: ${enable_ememoa_fixed}" | ||
23488 | echo " Ememoa unknown.....: ${enable_ememoa_unknown}" | ||
23489 | echo " Fixed bitmap.......: ${enable_fixed_bitmap}" | ||
23490 | echo " One big............: ${enable_one_big}" | ||
23491 | echo " Pass through.......: ${enable_pass_through}" | ||
23492 | echo | ||
23493 | echo "Compilation............: make (or gmake)" | ||
23494 | echo " CPPFLAGS.............: $CPPFLAGS" | ||
23495 | echo " CFLAGS...............: $CFLAGS" | ||
23496 | echo " LDFLAGS..............: $LDFLAGS" | ||
23497 | echo | ||
23498 | echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')" | ||
23499 | echo " prefix...............: $prefix" | ||
23500 | echo | ||
23501 | |||
23502 | # Check whether --enable-voltron was given. | ||
23503 | if test "${enable_voltron+set}" = set; then : | ||
23504 | enableval=$enable_voltron; | ||
23505 | if test "x${enableval}" = "xyes" ; then | ||
23506 | have_voltron="yes" | ||
23507 | else | ||
23508 | have_voltron="no" | ||
23509 | fi | ||
23510 | |||
23511 | else | ||
23512 | have_voltron="no" | ||
23513 | |||
23514 | fi | ||
23515 | |||
23516 | |||
23517 | if test "x$have_voltron" = "xyes" -a "x$do_amalgamation" = "xyes" -o "x${have_on_off_threads}" = "xyes"; then | ||
23518 | echo "//////////////////////////////////////////////////////////////////////////////////////////////////////////////////" | ||
23519 | echo "/////////////////////////////////////////////////////////////////////////////////////{#///////////////////////////" | ||
23520 | echo "/////////////////////////////////////////////////////////////////////////////////// EN3 xx&HWx////////////////////" | ||
23521 | echo "////////////////////////////////////////////////#{//xd3:& \/{:x////////////////////#WJNd_ HHNp#///////////////////" | ||
23522 | echo "///////////////////////////////////////////////\x WDMMM EDDzEQp&^x ^^_x #///////////&37z^xHHH7_///////////////////" | ||
23523 | echo "////////////////////////////////////////////////xPMMMMM LMMMLQQzzQDzH\{xx\{////////{x&H9@^&d^ {//////////////////" | ||
23524 | echo "///////////////////////////////////////////^JLE:PMMMQ9N^EDMMMMMMMLzJJ^ @&dx////////#dHdN^x{/{x {//////////////////" | ||
23525 | echo "//////////////////////////////////////////#LMMM EEE7p@H@NE777QMMMMMMM3H3_x/////////^HH3W^pH@x x///////////////////" | ||
23526 | echo "//////////////////////////////////////////#MMLN_^: {/:L&\{:@7EWWWzMMM3H3_x////{:x ^3dd3 HHNENd^{//////////////////" | ||
23527 | echo "//////////////////////////////////////////#WW7N^//////7Q:////{xHE93H3^^_ #////{H3H3JDdxx&H3Wz3:///////////////////" | ||
23528 | echo "//////////////////////////////////////////_E93 ///////{^#/#{{{{{{#x37dx77x////{Hp3pd _ xx_7H////////////////////" | ||
23529 | echo "#/////////////////////////////////////////#&MHd{////////#x^ ^&__ xxzMJH9P ////{xx\#\:x\:d@_://///////////////////" | ||
23530 | echo "3H #///////////////////////////////////////{pp^Jpx{///{ &&__^:{{:xxxx7MQNWpx///@x//{# xxx#///////////////////////#" | ||
23531 | echo "3HN7Hx{//////////////////////////////////////\xd NQd#x \# &x{/x3pHHH&#&PP&@zNxx##:{////////////////////////////{ ^" | ||
23532 | echo "HH{@37N_x{////////////////////////////////////x_//#zDxx x //# ^x#//#E9_P&p://////////////////////////////{\&:\\" | ||
23533 | echo "H@/JMJ799H_:{/////////////////////////////////{\/// L7_xx^#/\LMMMMM3MLN@Mp7 dW{\////////////////////////////{ #^H" | ||
23534 | echo "H^/PMMMD9773d^\{////////////////////////////////////dzWLp/{x7MMMMMEJMM7DMHD#^z&#//////////////////////////{x&\ dHH" | ||
23535 | echo "H^{MMMMMMLEN33Hd_://////////////////////////////////#WNMLzzPPLMMMLHMML^NNNQW93JdE_ //////////////////////#_ :@H3HH" | ||
23536 | echo "HdxWMMMMMMMMzWdHHpNH {/////////////////////////////{z99QEJDQJ7@EM3LMM37M9LHLMNL:^\{////////////////////{x_\_HHH&&x" | ||
23537 | echo "HH_^zMMMMMMMML7dHH39zN_\//////////////////////////{WQLHEENpDPDLHQMMPHMDEzNMLWJ///////////////////////#_x d3Hd^dHx" | ||
23538 | echo "/\@HH HLMMMMMMMM9 3HHHp9DJ&#////////////////////////xN_\LzPMMMLpPMMPdLMWLdMMNQ3/////////////////////{ ^x&dddd HHH " | ||
23539 | echo "//{ HH@ 9MMMMMMLxdHHHHH3HpEQN /////////////////////:PL\/QMMMLE3LMMp#JMJJ9JMM&M //////////////////{#\ _ ^^&:x##HHHx" | ||
23540 | echo "////:d3H_&PMMMMN&3HHHHHHHHHHWEJH\/////////////////{zMd//^EE {/xHEH&HMLHLHMMJpL#////////{#x _^^&WpHHHHH3HHNxHHxHHHx" | ||
23541 | echo "/////#_HHH^WMMP3L9HHHHHHHHHHHHHWE7_{//////////////7Mz{///:7EWNEzPL3LMWQWDMM_zN/{\x ^& zLMDpHp973HHHHHH3HH7x3H dHHx" | ||
23542 | echo "///////xHHH@_E&3D9N3H3HHHHHHHHHH3HW7dx///////////dMM ////#QJEEJJ9:Hp9dz^WdH_&d3p3HHHHdLQE3pNNHHHHHHHHH3HH9xHH &HHx" | ||
23543 | echo "////////#@3H3^ HHN3WpHHHHHHHHHHHHHHH33d #/////// MM7//{x@pppH__ME_MME@xH3Hzz3H33HHHH@7pHH33HHHHHHHHHHH3HH9xHH__HHx" | ||
23544 | echo "/////////{ HHHHHHHH333HHHHHHHHHHHHHHHHH33&x{///:Pz9HpWp@ :::{/pM^EMMML H3HELQ3H3HHHH_pHHHHHHHHHHHHHHHHHHp9\@d& HHx" | ||
23545 | echo "///////////:dHHHHHHHH33HHHHHHHHHHHHHHHHHHHHd^\\H33d_x::##{/{x_PDxMMMME&HHHHH99H3HHHd&HHHHHHHHHHHHHHHHHH9Wx&^ x HHx" | ||
23546 | echo "////////////{^HHHHHHHHHHHHHHHHHHHHHHHHHHH@&HN33@H77ppppppWW3&JMdHMMMMHHHHHHHHWHHHHH&3pWHHHHHHHHHH3HHHpz_ HHH3&xHHx" | ||
23547 | echo "//////////////xHHHHHHHHHHHHHHHHHHHH3H3@d3p3@x:\{/# HN73& xx DL\DMMML_HHHHHHHHpHHHpH7JHHHHHHH3p33d&_@d\ 3HHH3&:3Hx" | ||
23548 | echo "///////////////#&HHHHHHHHHHHHHHHHHHHH_H7^x\//#^ddH3^Nz@_&&&&_MN MMMMJ@H3HHHHH3p3H3pQQ3Hd@_^ xx ^@dH&\{x@HH3_\HHx" | ||
23549 | echo "////////////////{ HHHHHHHHHHHHHHH@ x{{z\/#^33d {Nz3:LPx&&&&^WMxNMMMM3HHH3N3Hp79zWH _ xx _@dHHHHHHHHHHH^#{xd_{#@Hx" | ||
23550 | echo "//////////////////\@HH3HHHHHH@^x#{: &&7_@ddH:7d@__&@Mp^&&&&xPz#LMMML&3HJMMzNH@^ ^&:@HHHHHHHHHHHHHHHHHHd&^{/////:Hx" | ||
23551 | echo "/////////////{{{/{/{^dHHHd^x#{\ &HHH W ^@&Q9 _^ _d3QL ^ xWMW#dJMMz@HJMEx\x^HHHHHdx&HHHHHHHd&^ xx\#{//////////#Hx" | ||
23552 | echo "/////////{x ^&:xEDW^ x#:## d^dH3HHHHxd_HHdMzHx# NMMM7x&dH_JLp7 {x\&@HHD@\:{#x ^HHHd&#x x\#{////////////////////{Hx" | ||
23553 | echo "//////{#x^^&&\ _D9^x\{{:^NQP3HHHHHH pxHHd9MMdxx EMMM _^@@PD3PMMLEQH@3W& &^ x##\##{/////////////////////////////{@x" | ||
23554 | echo "/////#:x^ @d:^^7N#{\ &HHWHH99HHHHHH:7 d&^LMM3^_dNpH_#^_3LEWMMMMMPddHpd:HHHH@ ^ x{#:////////////////////{x&////{x:" | ||
23555 | echo "////:x ^x W:^^HWx3dHHHH333H39HHHH3@&&xxx@J7@#:_@&&d : ELp9MMMMMz&H333#dHHH3H\///{:3x##{/{##{/{#\\\##### W_{////^x/" | ||
23556 | echo "//{ :x^ #E:^^&N\ELWHHH3dHHH3333HHH E\:xx__^_ d^EPML^dDPHDMMMMM7&H33N#&HHHHH /////{3//////////////////\3@{//////{//" | ||
23557 | echo "/{ xx{x{7_ ^^N^xJNzN3Hp@HHHH39HH3H J: ^ NEQ__^zMMM9dLJ3LMMMML3@HHH9\ H3HHH&{/////^ ////////////////\3d{///////////" | ||
23558 | echo "/x x///:9:^^p&x@3W3p3HHHpddd@H9HHH_Lx^ EMM7x&^MMMEEMWNMMMMMD@d3HH9 \HHHHHH //////7{//////////////#3H#/////////////" | ||
23559 | echo "\_:#///@ ^d3^xHH33N3@x ^&dH&@HHH M_^^MML&x_3QJWQLdzMMMMMJ_HH3HNd#@HHHHHHx/////:W/////////////{x #///////////////" | ||
23560 | echo "^&:///{p\^_W^x&HWH^x &_HHHHHHd HHH PNx9LQ7W_3N779d\WMMMMMW&HHH3WN{_HHHHHH3://///p ////////////////////////////////" | ||
23561 | echo "@dx////Ep3Np^\@_:^dHHHd^Hd_ :\xHH3&EP^3d@d3Hp7zLMQ_{ JMLd@HHHHpE:&HHHHHHHH\/////@{////////////////////////////////" | ||
23562 | echo "H@ :#//DLMM9_: :HHHHH@^x#/////#HHHd_NNNJPMMMMMMMMMMQ&{d_HHHHH3zx@HHHHHHHHH#&@@@@7@@dpdx{//////////////////////////" | ||
23563 | echo "dJx #//_E_d&&^::_d_x#//\///////&HHH_HPMMMMMMMMMMLJ7Wp@_HHHHHHz_ HHHHHHHHHHx7QzJE97^x{/////////////////////////////" | ||
23564 | echo "^z_ {/\{_9 ^{\#//////:///////xHHH3H&7MMMPJN3d__@HHHHHHH3HH73:HHHHHHHHHH ^ x#{@{///////////////////////////////" | ||
23565 | echo "^dD \{ x#^7^x\/////////x///////#HH33HHHd3d37pHH3HHHHHHHHHHHp7#dHHHHHHHH&_EMMMMMMMPz7d #///////////////////////////" | ||
23566 | echo "^^_73x ^ :xd^{/////////x////////_HHHHHH33NNWpp3HHHHHHHHHHHHE:^HHHHHH3H WMMMMMMMMDH7:\ JQ7d {//////////////////////" | ||
23567 | echo "^^@JzE^\x^ :\x{////////_///\_WJHxHHHHHHHHHHH3HHHHHHHHHHHHH9&xHHHHHHd 9MMMMMMMMLJ J//xQ\7LMMQpx///////////////////" | ||
23568 | echo " _3zLLLpx x{///////{_ zH9PP9H {{dHHHHHHHHHHHHHHHHHHHHHHHp9#dHHH3H@x^zMMMMMMMMMPJ d//93DMMMMMMMQH\////////////////" | ||
23569 | echo " x^NE9dxx x://///////#dNP_\/{^H79@pHHHHHHHHHHHHHHHHHHH3H3zx_HHHHHH_&DMMMMMMMMMMDE :/ 7QMMMMMMMMMMMJ&#/////////////" | ||
23570 | echo " @3pQMp^7N^x//////////// __7LMMMM JHHHHHHHHHHHHH3HHHHH3H9@ HHHHHHH&LMMMMMMMMMMMP7^#{EWMMMMMMMMMMMMMML7 {//////////" | ||
23571 | echo "^^^&HLWd7d {///////////#3LMMMMMMMHpJpHHHHHHHHHHH3JQJ7NDWE\HHHH3H@ QMMMMMMMMMMMMLp&##LMMMMMMMMMMMMMMMMMMPd{////////" | ||
23572 | echo "3WNNN7pH99Wd #/////////pHMMMMMMMMD N993HH3HHHHHHHH9LMMMLx@3HHHH_ JMMMMMMMMMMMMMMd@##MMMMMMMMMMMMMMMMMMMMMQ{///////" | ||
23573 | echo "MMMMM3ELMMMMLE@&@_x////EWMMMMMMMMM3JJpEN3HHHHHHHH7DDMMMH HHHHd ^NMMMMMMMMMMMMMMM_d{#MMMMMMMMMMMMMMMMMMMMM@////////" | ||
23574 | echo "MMMM7{DMMMMD3JMMMMDJ /#DzMMMMMMMMML^Qz7W9p3pWN7799zJE7d\x_HH@:_HMMMMMMMMMMMMMMMWx3{\MMMMMMMMMMMMMMMMMMMMD{////////" | ||
23575 | echo "MMML:HMMMM9@MMMLdHJEH{ PLMMMMMMMMMME&pNp^^_^ x ^^__ \#x{&&LMMMMMMMMMMMMMMMJ:p{\MMMMMMMMMMMMMMMMMMMM_/////////" | ||
23576 | echo "MMMW/7MMMM&LM3LdQz@JM33MMMMMMMMMMMMM&x _@dHHHHHHH@&_^ ^_ ^x:^LMMMMMMPQJ7Np333pW 3 xEDMMMMMMMMMMMMMMMMMJ//////////" | ||
23577 | echo "MML\/EMMMP3_xNpJMM3^&WzMPMMMMMMMMMMML3x^^^^_&dH3W7EzPPpx\x\\xd333H&_&@pEQPLMMQPM7E9LHd@@3ELMMMMMMMMMMMM //////////" | ||
23578 | echo "MM3//zMMMNW//QdMMM3 \#LQWMMMMMMMMDp@__&dd@@&__&&@dHpHd33 &x@33Hd@_^^^xMMMMMMM3pMx{HM x9/{\:@pNQMMMMMMMQ///////////" | ||
23579 | echo "MMH::PMMMW7{/P_MMM7^{xM7^MMMMMMD@@W&&dH3Hx_x:7DzJ97Np &H^&x_dHd@&&@d3WMMMMMMME&M WMMN/7{/WHzMLEWWNELMMW///////////" | ||
23580 | echo "_H_^^dNJzWH@/7HPMM@_/dD&@MMMLzp W@^7zE7pxHHN99EzQQ7_p9^H^_:&d&^ ^_&&MMMMMMMD M xMML#^x/{JMMMMMMMDW3Wx///////////" | ||
23581 | echo "Hz^x::xx{/{x^p3dMQx /7N H3@^_@#dW#:_d@@HHHHHH3NPN&NLMQ H & NN799997WWzMMMMMMMLxM^&LMM^{&/#LMMMMMMMMMMLN^#/////////" | ||
23582 | echo " x WpH@x\//////{@ { _^_@d^ ^__\dH MEH_d3HHHHHHN&3MMMMD H & H&&______ HMMMMMMMM P_3MMMN/&/#LMMMMMMMMMMMMML@////////" | ||
23583 | echo "\{xH7x::\////////\7MM9@_^_@HHd d_ MMM9@7HHd@NWHp^WMMMDx3 & 3dHW7EzDLMLLDQzJE9NxHxxp33_/x{/NMMMMMMMMMMMMMMP#///////" | ||
23584 | echo "# ^_ ^ ^x///////{9&MMJ^^^ ^_3xH_ MMM^73@_WQz93&@&@LLN_H __9WH&^ x:\#{\^&& {///{p//////////{x&WzLMMMMMMMMMH///////" | ||
23585 | echo "^^ 3^^^#///////H_LMME&@dHH@ _x3@xPMz&&_7MMMMLDJHx\ 3pd #{/////////{x@HH&\//////7{////{#////////{x&WzMMMMML#//////" | ||
23586 | echo ": :d^^^x/////// &PMMM&_dd@&^^ {^W7^p xxH@@&__37NNW7NH^:xxxx ^_&&@dHH&:////////p ////{^/////////////\&ELMM3//////" | ||
23587 | echo "{\:xxxx#//////{Hp77p@ x#////////#&& xx::\\:xxxx ^_&&&&&@@@&&&&_____x//////////##/////&////////////////{^NQ#/////" | ||
23588 | fi | ||
23589 | |||
diff --git a/libraries/eina/configure.ac b/libraries/eina/configure.ac new file mode 100644 index 0000000..5e2fab2 --- /dev/null +++ b/libraries/eina/configure.ac | |||
@@ -0,0 +1,797 @@ | |||
1 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
2 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
3 | m4_define([v_maj], [1]) | ||
4 | m4_define([v_min], [1]) | ||
5 | m4_define([v_mic], [0]) | ||
6 | m4_define([v_rev], m4_esyscmd([(svnversion "${SVN_REPO_PATH:-.}" | grep -v export || echo 0) | awk -F : '{printf("%s\n", $1);}' | tr -d ' :MSP\n'])) | ||
7 | m4_if(v_rev, [0], [m4_define([v_rev], m4_esyscmd([git log 2> /dev/null | (grep -m1 git-svn-id || echo 0) | sed -e 's/.*@\([0-9]*\).*/\1/' | tr -d '\n']))]) | ||
8 | ##-- When released, remove the dnl on the below line | ||
9 | m4_undefine([v_rev]) | ||
10 | ##-- When doing snapshots - change soname. remove dnl on below line | ||
11 | dnl m4_define([relname], [ver-pre-svn-07]) | ||
12 | dnl m4_define([v_rel], [-release relname]) | ||
13 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
14 | m4_ifdef([v_rev], [m4_define([v_ver], [v_maj.v_min.v_mic.v_rev])], [m4_define([v_ver], [v_maj.v_min.v_mic])]) | ||
15 | m4_define([lt_cur], m4_eval(v_maj + v_min)) | ||
16 | m4_define([lt_rev], v_mic) | ||
17 | m4_define([lt_age], v_min) | ||
18 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
19 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
20 | |||
21 | AC_INIT([eina], [v_ver], [enlightenment-devel@lists.sourceforge.net]) | ||
22 | AC_PREREQ([2.59]) | ||
23 | AC_CONFIG_SRCDIR([configure.ac]) | ||
24 | AC_CONFIG_MACRO_DIR([m4]) | ||
25 | |||
26 | AC_CONFIG_HEADERS([config.h]) | ||
27 | AH_TOP([ | ||
28 | #ifndef EFL_CONFIG_H__ | ||
29 | #define EFL_CONFIG_H__ | ||
30 | ]) | ||
31 | AH_BOTTOM([ | ||
32 | #endif /* EFL_CONFIG_H__ */ | ||
33 | ]) | ||
34 | |||
35 | AM_INIT_AUTOMAKE([1.6 dist-bzip2]) | ||
36 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) | ||
37 | |||
38 | AC_GNU_SOURCE | ||
39 | AC_SYS_LARGEFILE | ||
40 | |||
41 | AC_LIBTOOL_WIN32_DLL | ||
42 | define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl | ||
43 | define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl | ||
44 | AC_PROG_LIBTOOL | ||
45 | |||
46 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
47 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
48 | m4_ifdef([v_rev], , [m4_define([v_rev], [0])]) | ||
49 | m4_ifdef([v_rel], , [m4_define([v_rel], [])]) | ||
50 | AC_DEFINE_UNQUOTED(VMAJ, [v_maj], [Major version]) | ||
51 | AC_DEFINE_UNQUOTED(VMIN, [v_min], [Minor version]) | ||
52 | AC_DEFINE_UNQUOTED(VMIC, [v_mic], [Micro version]) | ||
53 | AC_DEFINE_UNQUOTED(VREV, [v_rev], [Revison]) | ||
54 | version_info="lt_cur:lt_rev:lt_age" | ||
55 | release_info="v_rel" | ||
56 | AC_SUBST(version_info) | ||
57 | AC_SUBST(release_info) | ||
58 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
59 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
60 | VMAJ=v_maj | ||
61 | AC_SUBST(VMAJ) | ||
62 | |||
63 | |||
64 | ### Needed information | ||
65 | |||
66 | AC_CANONICAL_BUILD | ||
67 | AC_CANONICAL_HOST | ||
68 | |||
69 | requirement_eina="" | ||
70 | |||
71 | case "$host_os" in | ||
72 | mingw32ce*) | ||
73 | MODULE_ARCH="$host_os-$host_cpu" | ||
74 | ;; | ||
75 | *) | ||
76 | MODULE_ARCH="$host_os-$host_cpu-v_maj.v_min.v_mic" | ||
77 | ;; | ||
78 | esac | ||
79 | AC_SUBST(MODULE_ARCH) | ||
80 | AC_DEFINE_UNQUOTED(MODULE_ARCH, "${MODULE_ARCH}", "Module architecture") | ||
81 | |||
82 | case "$host_os" in | ||
83 | mingw*) | ||
84 | MODULE_EXT=".dll" | ||
85 | ;; | ||
86 | *) | ||
87 | MODULE_EXT=".so" | ||
88 | ;; | ||
89 | esac | ||
90 | |||
91 | AC_DEFINE_UNQUOTED(SHARED_LIB_SUFFIX, "${MODULE_EXT}", [Suffix for shared objects]) | ||
92 | |||
93 | EFL_CHECK_CPU_MMX([have_mmx="yes"], [have_mmx="no"]) | ||
94 | EFL_CHECK_CPU_SSE([have_sse="yes"], [have_sse="no"]) | ||
95 | EFL_CHECK_CPU_SSE2([have_sse2="yes"], [have_sse2="no"]) | ||
96 | EFL_CHECK_CPU_ALTIVEC([have_altivec="yes"], [have_altivec="no"]) | ||
97 | |||
98 | EFL_CHECK_THREADS( | ||
99 | [ | ||
100 | if test "x${_efl_have_posix_threads}" = "xyes" ; then | ||
101 | have_threads="POSIX" | ||
102 | else | ||
103 | if test "x${_efl_have_win32_threads}" = "xyes" ; then | ||
104 | have_threads="Win32" | ||
105 | else | ||
106 | have_threads="no" | ||
107 | fi | ||
108 | fi | ||
109 | ], | ||
110 | [have_threads="no"]) | ||
111 | EFL_CHECK_SPINLOCK([have_posix_threads_spinlock="yes"], [have_posix_threads_spinlock="no"]) | ||
112 | |||
113 | if ! test "x${have_threads}" = "xno" ; then | ||
114 | EINA_CONFIGURE_HAVE_THREADS="#define EINA_HAVE_THREADS" | ||
115 | fi | ||
116 | AC_SUBST(EINA_CONFIGURE_HAVE_THREADS) | ||
117 | AM_CONDITIONAL([EINA_HAVE_THREADS], [! test "x${have_threads}" = "xno"]) | ||
118 | |||
119 | if ! test "x${have_debug_threads}" = "xno"; then | ||
120 | EINA_CONFIGURE_HAVE_DEBUG_THREADS="#define EINA_HAVE_DEBUG_THREADS" | ||
121 | fi | ||
122 | AC_SUBST(EINA_CONFIGURE_HAVE_DEBUG_THREADS) | ||
123 | AM_CONDITIONAL([EINA_DEBUG_THREADS], [! test "x${have_debug_threads}" = "xno"]) | ||
124 | |||
125 | if ! test "x${have_on_off_threads}" = "xno"; then | ||
126 | EINA_CONFIGURE_HAVE_ON_OFF_THREADS="#define EINA_HAVE_ON_OFF_THREADS" | ||
127 | fi | ||
128 | AC_SUBST(EINA_CONFIGURE_HAVE_ON_OFF_THREADS) | ||
129 | AM_CONDITIONAL([EINA_ON_OFF_THREADS], [! test "x${have_on_off_threads}" = "xno"]) | ||
130 | |||
131 | ### Additional options to configure | ||
132 | |||
133 | # Magic debug | ||
134 | AC_ARG_ENABLE([magic-debug], | ||
135 | [AC_HELP_STRING([--disable-magic-debug], [disable magic debug of eina structure @<:@default=enabled@:>@])], | ||
136 | [ | ||
137 | if test "x${enableval}" = "xyes" ; then | ||
138 | have_magic_debug="yes" | ||
139 | else | ||
140 | have_magic_debug="no" | ||
141 | fi | ||
142 | ], | ||
143 | [have_magic_debug="yes"]) | ||
144 | |||
145 | AC_MSG_CHECKING([whether magic debug is enable]) | ||
146 | AC_MSG_RESULT([${have_magic_debug}]) | ||
147 | |||
148 | if test "x${have_magic_debug}" = "xyes" ; then | ||
149 | EINA_CONFIGURE_MAGIC_DEBUG="#define EINA_MAGIC_DEBUG" | ||
150 | fi | ||
151 | AC_SUBST(EINA_CONFIGURE_MAGIC_DEBUG) | ||
152 | |||
153 | # Safety checks (avoid crashes on wrong api usage) | ||
154 | AC_ARG_ENABLE(safety-checks, | ||
155 | [AC_HELP_STRING([--disable-safety-checks], [disable safety checks for NULL pointers and like. @<:@default=enabled@:>@])], | ||
156 | [ | ||
157 | if test "x${enableval}" = "xyes" ; then | ||
158 | have_safety_checks="yes" | ||
159 | else | ||
160 | have_safety_checks="no" | ||
161 | fi | ||
162 | ], | ||
163 | [have_safety_checks="yes"]) | ||
164 | |||
165 | AC_MSG_CHECKING(whether to do safety checking on api parameters) | ||
166 | AC_MSG_RESULT($have_safety_checks) | ||
167 | |||
168 | AM_CONDITIONAL(SAFETY_CHECKS, test "x$have_safety_checks" = "xyes") | ||
169 | if test "x$have_safety_checks" = "xyes"; then | ||
170 | AC_DEFINE(EINA_SAFETY_CHECKS, 1, [disable safety checks for NULL pointers and like.]) | ||
171 | EINA_CONFIGURE_SAFETY_CHECKS="#define EINA_SAFETY_CHECKS" | ||
172 | fi | ||
173 | AC_SUBST(EINA_CONFIGURE_SAFETY_CHECKS) | ||
174 | |||
175 | with_max_log_level="<unset>" | ||
176 | AC_ARG_WITH(internal-maximum-log-level, | ||
177 | [AC_HELP_STRING([--with-internal-maximum-log-level=NUMBER], | ||
178 | [limit eina internal log level to the given number, any call to EINA_LOG() with values greater than this will be compiled out, ignoring runtime settings, but saving function calls.])], | ||
179 | [ | ||
180 | if test "x${withval}" != "xno"; then | ||
181 | if echo "${withval}" | grep -E '^[[0-9]]+$' >/dev/null 2>/dev/null; then | ||
182 | AC_MSG_NOTICE([ignoring any EINA_LOG() with level greater than ${withval}]) | ||
183 | AC_DEFINE_UNQUOTED(EINA_LOG_LEVEL_MAXIMUM, ${withval}, [if set, logging is limited to this amount.]) | ||
184 | with_max_log_level="${withval}" | ||
185 | else | ||
186 | AC_MSG_ERROR([--with-internal-maximum-log-level takes a decimal number, got "${withval}" instead.]) | ||
187 | fi | ||
188 | fi | ||
189 | ], [:]) | ||
190 | |||
191 | AC_ARG_ENABLE([amalgamation], | ||
192 | [AC_HELP_STRING([--enable-amalgamation], [enable generation of one single file with all source code in it, helps compiler optimizations.])], | ||
193 | [if test "x${enableval}" = "xyes"; then | ||
194 | do_amalgamation="yes" | ||
195 | else | ||
196 | do_amalgamation="no" | ||
197 | fi | ||
198 | ], | ||
199 | [do_amalgamation="no"] | ||
200 | ) | ||
201 | AM_CONDITIONAL(EINA_AMALGAMATION, test "x${do_amalgamation}" = "xyes") | ||
202 | |||
203 | # Choose best memory pool | ||
204 | AC_ARG_ENABLE([default-mempool], | ||
205 | [AC_HELP_STRING([--enable-default-mempool], [Default memory allocator could be faster for some computer. @<:@default=disabled@:>@])], | ||
206 | [ | ||
207 | if test "x${enableval}" = "xyes"; then | ||
208 | have_default_mempool="yes" | ||
209 | else | ||
210 | have_default_mempool="no" | ||
211 | fi | ||
212 | ], | ||
213 | [have_default_mempool="no"] | ||
214 | ) | ||
215 | AC_MSG_CHECKING([whether to use default mempool allocator]) | ||
216 | AC_MSG_RESULT([${have_default_mempool}]) | ||
217 | |||
218 | if test "x${have_default_mempool}" = "xyes" ; then | ||
219 | EINA_CONFIGURE_DEFAULT_MEMPOOL="#define EINA_DEFAULT_MEMPOOL" | ||
220 | fi | ||
221 | AC_SUBST(EINA_CONFIGURE_DEFAULT_MEMPOOL) | ||
222 | |||
223 | # Report stringshare usage | ||
224 | AC_ARG_ENABLE([stringshare-usage], | ||
225 | [AC_HELP_STRING([--enable-stringshare-usage], [Report stringshare usage on stringshare shutdown. @<:@default=disabled@:>@])], | ||
226 | [ | ||
227 | if test "x${enableval}" = "xyes"; then | ||
228 | have_stringshare_usage="yes" | ||
229 | else | ||
230 | have_stringshare_usage="no" | ||
231 | fi | ||
232 | ], | ||
233 | [have_stringshare_usage="no"] | ||
234 | ) | ||
235 | AC_MSG_CHECKING([whether to report stringshare usage]) | ||
236 | AC_MSG_RESULT([${have_stringshare_usage}]) | ||
237 | |||
238 | if test "x${have_stringshare_usage}" = "xyes"; then | ||
239 | AC_DEFINE(EINA_STRINGSHARE_USAGE, 1, [Report Eina stringshare usage pattern]) | ||
240 | fi | ||
241 | |||
242 | # Check if we want to benchmark on real data | ||
243 | enable_benchmark_e17="no" | ||
244 | AC_ARG_ENABLE([e17], | ||
245 | [AC_HELP_STRING([--enable-e17], [enable heavy benchmark @<:@default=no@:>@])], | ||
246 | [ | ||
247 | if test "x${enableval}" = "xyes" ; then | ||
248 | enable_benchmark_e17="yes" | ||
249 | else | ||
250 | enable_benchmark_e17="no" | ||
251 | fi | ||
252 | ], | ||
253 | [enable_benchmark_e17="no"]) | ||
254 | |||
255 | AC_MSG_CHECKING([whether e17 real data benchmark are built]) | ||
256 | AC_MSG_RESULT([${enable_benchmark_e17}]) | ||
257 | |||
258 | AM_CONDITIONAL(EINA_ENABLE_BENCHMARK_E17, test "x${enable_benchmark_e17}" = "xyes") | ||
259 | |||
260 | |||
261 | ### Checks for programs | ||
262 | AC_PROG_CC | ||
263 | AC_PROG_CXX | ||
264 | |||
265 | # pkg-config | ||
266 | PKG_PROG_PKG_CONFIG | ||
267 | |||
268 | # Check whether pkg-config supports Requires.private | ||
269 | if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then | ||
270 | pkgconfig_requires_private="Requires.private" | ||
271 | else | ||
272 | pkgconfig_requires_private="Requires" | ||
273 | fi | ||
274 | AC_SUBST(pkgconfig_requires_private) | ||
275 | |||
276 | # doxygen program for documentation building | ||
277 | |||
278 | EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"]) | ||
279 | |||
280 | |||
281 | ### Checks for libraries | ||
282 | |||
283 | # Valgrind | ||
284 | want_valgrind="auto" | ||
285 | have_valgrind="no" | ||
286 | |||
287 | AC_ARG_ENABLE([valgrind], | ||
288 | [AC_HELP_STRING([--enable-valgrind], [improve valgrind support by hinting it of our memory usages, having it to report proper mempool leaks.])], | ||
289 | [want_valgrind=$enableval]) | ||
290 | |||
291 | AC_MSG_CHECKING([whether to enable build with valgrind]) | ||
292 | AC_MSG_RESULT([${want_valgrind}]) | ||
293 | |||
294 | if test "x${want_valgrind}" = "xyes" || test "x${want_valgrind}" = "xauto"; then | ||
295 | PKG_CHECK_MODULES([VALGRIND], | ||
296 | [valgrind >= 2.4.0], | ||
297 | [ | ||
298 | requirement_eina="valgrind ${requirement_eina}" | ||
299 | have_valgrind="yes" | ||
300 | ], | ||
301 | [ | ||
302 | AC_DEFINE([NVALGRIND], [1], [Valgrind support disabled]) | ||
303 | if test "x${want_valgrind}" = "xyes"; then | ||
304 | AC_MSG_ERROR([Valgrind >= 2.4.0 is required]) | ||
305 | fi | ||
306 | ]) | ||
307 | else | ||
308 | AC_DEFINE([NVALGRIND], [1], [Valgrind support disabled]) | ||
309 | fi | ||
310 | |||
311 | |||
312 | # Evil library for compilation on Windows CE | ||
313 | |||
314 | EFL_EINA_BUILD="" | ||
315 | case "$host_os" in | ||
316 | mingw*) | ||
317 | PKG_CHECK_MODULES([EVIL], [evil >= 1.0.0]) | ||
318 | AC_DEFINE([HAVE_EVIL], [1], [Set to 1 if evil package is installed]) | ||
319 | requirement_eina="evil" | ||
320 | EFL_EINA_BUILD="-DEFL_EINA_BUILD" | ||
321 | ;; | ||
322 | esac | ||
323 | AC_SUBST([EFL_EINA_BUILD]) | ||
324 | |||
325 | # Check ememoa memory pool library | ||
326 | |||
327 | AC_ARG_ENABLE([ememoa], | ||
328 | [AC_HELP_STRING([--enable-ememoa], [build ememoa memory pool module @<:@default=yes@:>@])], | ||
329 | [ | ||
330 | if test "x${enableval}" = "xyes" ; then | ||
331 | enable_ememoa="yes" | ||
332 | else | ||
333 | enable_ememoa="no" | ||
334 | fi | ||
335 | ], | ||
336 | [enable_ememoa="yes"]) | ||
337 | |||
338 | AC_MSG_CHECKING([whether to use ememoa for memory pool]) | ||
339 | AC_MSG_RESULT([$enable_ememoa]) | ||
340 | |||
341 | if test "x${enable_ememoa}" = "xyes" ; then | ||
342 | PKG_CHECK_MODULES([EMEMOA], | ||
343 | [ememoa >= 0.0.26 ], | ||
344 | [enable_ememoa="yes"], | ||
345 | [enable_ememoa="no"]) | ||
346 | fi | ||
347 | |||
348 | PKG_CHECK_MODULES([ECORE_EVAS], | ||
349 | [ecore-evas ecore evas], | ||
350 | [build_tiler_example="yes"], | ||
351 | [build_tiler_example="no"]) | ||
352 | |||
353 | AM_CONDITIONAL([BUILD_TILER_EXAMPLE], [test "x${build_tiler_example}" = "xyes"]) | ||
354 | |||
355 | |||
356 | ### Checks for header files | ||
357 | AC_HEADER_ASSERT | ||
358 | AC_HEADER_DIRENT | ||
359 | AC_HEADER_TIME | ||
360 | EFL_CHECK_PATH_MAX | ||
361 | AC_CHECK_HEADERS([unistd.h libgen.h inttypes.h stdint.h sys/types.h siginfo.h]) | ||
362 | |||
363 | if test "x${ac_cv_header_inttypes_h}" = "xyes" ; then | ||
364 | EINA_CONFIGURE_HAVE_INTTYPES_H="#define EINA_HAVE_INTTYPES_H" | ||
365 | AC_DEFINE([HAVE_INTTYPES_H], [1], [Define to 1 if you have the <inttypes.h> header file.]) | ||
366 | fi | ||
367 | AC_SUBST([EINA_CONFIGURE_HAVE_INTTYPES_H]) | ||
368 | |||
369 | if test "x${ac_cv_header_inttypes_h}" = "xyes" ; then | ||
370 | EINA_CONFIGURE_HAVE_STDINT_H="#define EINA_HAVE_STDINT_H" | ||
371 | AC_DEFINE([HAVE_STDINT_H], [1], [Define to 1 if you have the <stdint.h> header file.]) | ||
372 | fi | ||
373 | AC_SUBST([EINA_CONFIGURE_HAVE_STDINT_H]) | ||
374 | |||
375 | ### Checks for types | ||
376 | |||
377 | AC_CHECK_SIZEOF([wchar_t]) | ||
378 | EINA_SIZEOF_WCHAR_T=$ac_cv_sizeof_wchar_t | ||
379 | AC_SUBST([EINA_SIZEOF_WCHAR_T]) | ||
380 | AC_CHECK_TYPES([siginfo_t], [], [], | ||
381 | [[#include <signal.h> | ||
382 | #if HAVE_SIGINFO_H | ||
383 | # include <siginfo.h> | ||
384 | #endif | ||
385 | ]]) | ||
386 | |||
387 | ### Checks for structures | ||
388 | |||
389 | |||
390 | ### Checks for compiler characteristics | ||
391 | AC_C_CONST | ||
392 | AC_C_BIGENDIAN | ||
393 | AC_C_INLINE | ||
394 | AC_PROG_CC_STDC | ||
395 | EFL_ATTRIBUTE_UNUSED | ||
396 | |||
397 | have_wince="no" | ||
398 | have_win32="no" | ||
399 | EINA_CPPFLAGS="" | ||
400 | EINA_CFLAGS="" | ||
401 | case "$host_os" in | ||
402 | mingw32ce*) | ||
403 | EINA_CPPFLAGS="-D_WIN32_WCE=0x0420" | ||
404 | EINA_CFLAGS="${EVIL_CFLAGS}" | ||
405 | have_win32="yes" | ||
406 | have_wince="yes" | ||
407 | ;; | ||
408 | mingw*) | ||
409 | EINA_CPPFLAGS="-D_WIN32_WINNT=0x0501" | ||
410 | EINA_CFLAGS="${EVIL_CFLAGS}" | ||
411 | have_win32="yes" | ||
412 | ;; | ||
413 | esac | ||
414 | AM_CONDITIONAL([EINA_HAVE_WINCE], [test "x$have_wince" = "xyes"]) | ||
415 | AM_CONDITIONAL([EINA_HAVE_WIN32], [test "x$have_win32" = "xyes"]) | ||
416 | |||
417 | m4_ifdef([v_mic], | ||
418 | [ | ||
419 | EFL_COMPILER_FLAG([-Wall]) | ||
420 | EFL_COMPILER_FLAG([-W]) | ||
421 | ]) | ||
422 | |||
423 | EFL_COMPILER_FLAG([-Wshadow]) | ||
424 | |||
425 | AC_SUBST([EINA_CPPFLAGS]) | ||
426 | AC_SUBST([EINA_CFLAGS]) | ||
427 | |||
428 | |||
429 | ### Checks for linker characteristics | ||
430 | EINA_LIBS= | ||
431 | lt_enable_auto_import="" | ||
432 | case "${host_os}" in | ||
433 | mingw*) | ||
434 | EINA_LIBS="-ldl ${EVIL_LIBS} -lm" | ||
435 | lt_enable_auto_import="-Wl,--enable-auto-import" | ||
436 | ;; | ||
437 | dragonfly*|openbsd*) | ||
438 | EINA_LIBS="-lm" | ||
439 | ;; | ||
440 | freebsd*|netbsd*) | ||
441 | EINA_LIBS="-lrt -lm" | ||
442 | ;; | ||
443 | darwin*) | ||
444 | EINA_LIBS="-lm" | ||
445 | ;; | ||
446 | cygwin*) | ||
447 | EINA_LIBS="-ldl -lm" | ||
448 | ;; | ||
449 | *) | ||
450 | EINA_LIBS="-ldl -lrt -lm" | ||
451 | ;; | ||
452 | esac | ||
453 | AC_SUBST([EINA_LIBS]) | ||
454 | AC_SUBST([lt_enable_auto_import]) | ||
455 | |||
456 | case "$host_vendor" in | ||
457 | ps3*) | ||
458 | PKG_CHECK_MODULES([ESCAPE], [escape]) | ||
459 | AC_DEFINE(HAVE_ESCAPE, 1, [Set to 1 if evil package is installed]) | ||
460 | requirement_eina="escape" | ||
461 | EINA_LIBS="${ESCAPE_LIBS}" | ||
462 | EINA_CFLAGS="${ESCAPE_CFLAGS} ${EINA_CFLAGS}" | ||
463 | ;; | ||
464 | esac | ||
465 | |||
466 | EFL_LINKER_FLAG([-fno-strict-aliasing]) | ||
467 | |||
468 | |||
469 | ### Checks for library functions | ||
470 | AC_ISC_POSIX | ||
471 | AC_FUNC_ALLOCA | ||
472 | AC_CHECK_FUNCS([strlcpy dirfd openat fstatat fpathconf execvp]) | ||
473 | |||
474 | # dlopen and dladdr | ||
475 | dlopen_libs="" | ||
476 | case "$host_os" in | ||
477 | mingw*) | ||
478 | # managed by evil | ||
479 | AC_DEFINE([HAVE_DLADDR]) | ||
480 | AC_DEFINE([HAVE_DLOPEN]) | ||
481 | ;; | ||
482 | *) | ||
483 | AC_CHECK_FUNCS([dlopen], [res="yes"], [res="no"]) | ||
484 | if test "x${res}" = "xyes" ; then | ||
485 | AC_CHECK_FUNCS([dladdr], [AC_DEFINE([HAVE_DLADDR])]) | ||
486 | AC_DEFINE([HAVE_DLOPEN]) | ||
487 | else | ||
488 | AC_CHECK_LIB([dl], [dlopen], [res="yes"], [res="no"]) | ||
489 | if test "x${res}" = "xyes" ; then | ||
490 | AC_CHECK_LIB([dl], [dladdr], [AC_DEFINE([HAVE_DLADDR])]) | ||
491 | AC_DEFINE(HAVE_DLOPEN) | ||
492 | dlopen_libs="-ldl" | ||
493 | fi | ||
494 | fi | ||
495 | ;; | ||
496 | esac | ||
497 | AC_SUBST([dlopen_libs]) | ||
498 | |||
499 | EFL_CHECK_FNMATCH([], [AC_MSG_ERROR([Cannot find fnmatch()])]) | ||
500 | |||
501 | AC_CHECK_HEADERS([mcheck.h], [AC_DEFINE([HAVE_MCHECK], [1], [Have mcheck.h])]) | ||
502 | AC_CHECK_FUNCS([mtrace], [AC_DEFINE([HAVE_MTRACE], [1], [Have mtrace])]) | ||
503 | |||
504 | # iconv library | ||
505 | have_iconv="no" | ||
506 | AC_ARG_WITH([iconv-link], | ||
507 | AC_HELP_STRING([--with-iconv-link=ICONV_LINK], [explicitly specify an iconv link option]), | ||
508 | [ | ||
509 | LIBS="$withval $LIBS" | ||
510 | have_iconv="yes" | ||
511 | iconv_libs=$withval | ||
512 | ]) | ||
513 | |||
514 | AC_MSG_CHECKING(for explicit iconv link options) | ||
515 | if test "x${iconv_libs}" = "x" ; then | ||
516 | AC_MSG_RESULT([no explicit iconv link option]) | ||
517 | else | ||
518 | AC_MSG_RESULT([$iconv_libs]) | ||
519 | fi | ||
520 | |||
521 | if test "x${have_iconv}" = "xno" ; then | ||
522 | AC_CHECK_HEADERS([iconv.h], [have_iconv="yes"]) | ||
523 | |||
524 | if test "x${have_iconv}" = "xyes" ; then | ||
525 | AC_MSG_CHECKING([whether iconv() is in libc]) | ||
526 | |||
527 | AC_LINK_IFELSE( | ||
528 | [AC_LANG_PROGRAM( | ||
529 | [[ | ||
530 | #include <stdlib.h> | ||
531 | #include <iconv.h> | ||
532 | ]], | ||
533 | [[ | ||
534 | iconv_t ic; | ||
535 | size_t count = iconv(ic, NULL, NULL, NULL, NULL); | ||
536 | ]])], | ||
537 | [have_iconv="yes"], | ||
538 | [have_iconv="no"]) | ||
539 | |||
540 | AC_MSG_RESULT([${have_iconv}]) | ||
541 | fi | ||
542 | |||
543 | if test "x${have_iconv}" = "xno" ; then | ||
544 | AC_MSG_CHECKING([whether iconv() is in libiconv.a]) | ||
545 | |||
546 | LIBS_save="${LIBS}" | ||
547 | LIBS="-liconv $LIBS" | ||
548 | AC_LINK_IFELSE( | ||
549 | [AC_LANG_PROGRAM( | ||
550 | [[ | ||
551 | #include <stdlib.h> | ||
552 | #include <iconv.h> | ||
553 | ]], | ||
554 | [[ | ||
555 | iconv_t ic; | ||
556 | size_t count; | ||
557 | count = iconv(ic, NULL, NULL, NULL, NULL); | ||
558 | ]])], | ||
559 | [ | ||
560 | have_iconv="yes" | ||
561 | iconv_libs="-liconv" | ||
562 | ], | ||
563 | [ | ||
564 | have_iconv="no" | ||
565 | LIBS=${LIBS_save} | ||
566 | ]) | ||
567 | |||
568 | AC_MSG_RESULT([${have_iconv}]) | ||
569 | fi | ||
570 | |||
571 | if test "x${have_iconv}" = "xno" ; then | ||
572 | AC_MSG_CHECKING([whether iconv() is in libiconv_plug.a]) | ||
573 | |||
574 | LIBS_save="${LIBS}" | ||
575 | LIBS="-liconv_plug $LIBS" | ||
576 | AC_LINK_IFELSE( | ||
577 | [AC_LANG_PROGRAM( | ||
578 | [[ | ||
579 | #include <stdlib.h> | ||
580 | #include <iconv.h> | ||
581 | ]], | ||
582 | [[ | ||
583 | iconv_t ic; | ||
584 | size_t count = iconv(ic, NULL, NULL, NULL, NULL); | ||
585 | ]])], | ||
586 | [ | ||
587 | have_iconv="yes" | ||
588 | iconv_libs="-liconv_plug" | ||
589 | ], | ||
590 | [ | ||
591 | have_iconv="no" | ||
592 | LIBS=${LIBS_save} | ||
593 | ]) | ||
594 | |||
595 | AC_MSG_RESULT([${have_iconv}]) | ||
596 | fi | ||
597 | fi | ||
598 | |||
599 | AC_SUBST([iconv_libs]) | ||
600 | |||
601 | if test "x${have_iconv}" = "xyes" ; then | ||
602 | AC_DEFINE([HAVE_ICONV], [1], [Set to 1 if iconv library is installed]) | ||
603 | fi | ||
604 | |||
605 | # shmopen | ||
606 | have_shmopen=no | ||
607 | AC_MSG_CHECKING([for shm_open availability]) | ||
608 | |||
609 | LIBS_save="${LIBS}" | ||
610 | LIBS="${LIBS} -lrt" | ||
611 | AC_LINK_IFELSE( | ||
612 | [AC_LANG_PROGRAM( | ||
613 | [[ | ||
614 | #include <sys/mman.h> | ||
615 | #include <sys/stat.h> /* For mode constants */ | ||
616 | #include <fcntl.h> /* For O_* constants */ | ||
617 | ]], | ||
618 | [[ | ||
619 | int fd; | ||
620 | |||
621 | fd = shm_open("/dev/null", O_RDONLY, S_IRWXU | S_IRWXG | S_IRWXO); | ||
622 | ]])], | ||
623 | [have_shmopen="yes"], | ||
624 | [have_shmopen="no"]) | ||
625 | |||
626 | LIBS="${LIBS_save}" | ||
627 | |||
628 | AC_MSG_RESULT([${have_shmopen}]) | ||
629 | |||
630 | if test "x${have_shmopen}" = "xyes"; then | ||
631 | AC_DEFINE([HAVE_SHMOPEN], [1], [Define to 1 if you have the `shm_open' function.]) | ||
632 | rt_libs="-lrt" | ||
633 | fi | ||
634 | |||
635 | AC_SUBST([rt_libs]) | ||
636 | |||
637 | # extended attribute | ||
638 | |||
639 | AC_MSG_CHECKING([for extended attributes]) | ||
640 | |||
641 | AC_COMPILE_IFELSE( | ||
642 | [AC_LANG_PROGRAM( | ||
643 | [[ | ||
644 | #include <stdlib.h> | ||
645 | #include <sys/types.h> | ||
646 | #include <sys/xattr.h> | ||
647 | ]], | ||
648 | [[ | ||
649 | size_t tmp = listxattr("/", NULL, 0); | ||
650 | tmp = getxattr("/", "user.ethumb.md5", NULL, 0); | ||
651 | setxattr("/", "user.ethumb.md5", NULL, 0, 0); | ||
652 | ]])], | ||
653 | [ | ||
654 | AC_DEFINE([HAVE_XATTR], [1], [Define to 1 if you have the `listxattr', `setxattr' and `getxattr' functions.]) | ||
655 | have_xattr="yes" | ||
656 | ], | ||
657 | [have_xattr="no"]) | ||
658 | |||
659 | AC_MSG_RESULT([${have_xattr}]) | ||
660 | |||
661 | ### Modules | ||
662 | |||
663 | if test "x${have_default_mempool}" = "xyes" ; then | ||
664 | enable_chained_pool="no" | ||
665 | enable_pass_through="static" | ||
666 | else | ||
667 | enable_chained_pool="static" | ||
668 | enable_pass_through="no" | ||
669 | fi | ||
670 | |||
671 | enable_one_big="static" | ||
672 | |||
673 | EINA_CHECK_MODULE([chained-pool], [${enable_chained_pool}], [chained pool]) | ||
674 | EINA_CHECK_MODULE([ememoa-fixed], [${enable_ememoa}], [ememoa fixed]) | ||
675 | EINA_CHECK_MODULE([ememoa-unknown], [${enable_ememoa}], [ememoa unknown]) | ||
676 | EINA_CHECK_MODULE([fixed-bitmap], [no], [fixed bitmap]) | ||
677 | EINA_CHECK_MODULE([pass-through], [${enable_pass_through}], [pass through]) | ||
678 | EINA_CHECK_MODULE([buddy], [no], [buddy]) | ||
679 | EINA_CHECK_MODULE([one-big], [${enable_one_big}], [one big]) | ||
680 | |||
681 | ### Make the debug preprocessor configurable | ||
682 | |||
683 | ### Unit tests, coverage and benchmarking | ||
684 | |||
685 | EFL_CHECK_TESTS([enable_tests="yes"], [enable_tests="no"]) | ||
686 | |||
687 | EFL_CHECK_COVERAGE([${enable_tests}], [enable_coverage="yes"], [enable_coverage="no"]) | ||
688 | EINA_CFLAGS="${EINA_CFLAGS} ${EFL_COVERAGE_CFLAGS}" | ||
689 | EINA_LIBS="${EINA_LIBS} ${EFL_COVERAGE_LIBS}" | ||
690 | if test "x$enable_coverage" = "xyes" ; then | ||
691 | EINA_CFLAGS="${EINA_CFLAGS} ${EFL_DEBUG_CFLAGS}" | ||
692 | fi | ||
693 | |||
694 | EFL_CHECK_BENCHMARK([enable_benchmark="yes"], [enable_benchmark="no"]) | ||
695 | EINA_BENCH_MODULE([glib], [${enable_benchmark}], [glib-2.0], [enable_benchmark_glib="yes"], [enable_benchmark_glib="no"]) | ||
696 | if test -n "$CXX" && test "x$enable_benchmark" = "xyes" ; then | ||
697 | AC_DEFINE_UNQUOTED([CITYHASH_BENCH], [1], [enable bench tests for google hash method]) | ||
698 | fi | ||
699 | AM_CONDITIONAL([CITYHASH_BENCH], [test -n "$CXX" && test "x$enable_benchmark" = "xyes"]) | ||
700 | |||
701 | AC_SUBST(requirement_eina) | ||
702 | |||
703 | ### Build and install examples | ||
704 | EFL_CHECK_BUILD_EXAMPLES([enable_build_examples="yes"], [enable_build_examples="no"]) | ||
705 | EFL_CHECK_INSTALL_EXAMPLES([enable_install_examples="yes"], [enable_install_examples="no"]) | ||
706 | |||
707 | AC_CONFIG_FILES([ | ||
708 | Makefile | ||
709 | eina.pc | ||
710 | eina.spec | ||
711 | doc/Makefile | ||
712 | doc/Doxyfile | ||
713 | src/Makefile | ||
714 | src/include/Makefile | ||
715 | src/include/eina_config.h | ||
716 | src/lib/Makefile | ||
717 | src/modules/Makefile | ||
718 | src/modules/mp/Makefile | ||
719 | src/modules/mp/chained_pool/Makefile | ||
720 | src/modules/mp/ememoa_fixed/Makefile | ||
721 | src/modules/mp/ememoa_unknown/Makefile | ||
722 | src/modules/mp/pass_through/Makefile | ||
723 | src/modules/mp/fixed_bitmap/Makefile | ||
724 | src/modules/mp/buddy/Makefile | ||
725 | src/modules/mp/one_big/Makefile | ||
726 | src/tests/Makefile | ||
727 | src/examples/Makefile | ||
728 | ]) | ||
729 | |||
730 | AC_OUTPUT | ||
731 | |||
732 | ##################################################################### | ||
733 | ## Info | ||
734 | |||
735 | echo | ||
736 | echo | ||
737 | echo | ||
738 | echo "------------------------------------------------------------------------" | ||
739 | echo "$PACKAGE $VERSION" | ||
740 | echo "------------------------------------------------------------------------" | ||
741 | echo | ||
742 | echo | ||
743 | echo "Configuration Options Summary:" | ||
744 | echo | ||
745 | echo " Magic debug..........: ${have_magic_debug}" | ||
746 | echo " Safety checks........: ${have_safety_checks}" | ||
747 | echo " Maximum log level....: ${with_max_log_level}" | ||
748 | echo " Report string usage..: ${have_stringshare_usage}" | ||
749 | echo " Valgrind support.....: ${have_valgrind}" | ||
750 | echo " Default mempool......: ${have_default_mempool}" | ||
751 | echo " Thread Support.......: ${have_threads}" | ||
752 | if test "${have_threads}" = "POSIX" ; then | ||
753 | echo " spinlock...........: ${have_posix_threads_spinlock}" | ||
754 | echo " debug usage........: ${have_debug_threads}" | ||
755 | echo " on/off support.....: ${have_on_off_threads}" | ||
756 | fi | ||
757 | echo " Amalgamation.........: ${do_amalgamation}" | ||
758 | echo " Iconv support........: ${have_iconv}" | ||
759 | echo " File dirfd...........: ${ac_cv_func_dirfd}" | ||
760 | echo " File xattr...........: ${have_xattr}" | ||
761 | echo | ||
762 | echo " Documentation........: ${build_doc}" | ||
763 | echo " Tests................: ${enable_tests}" | ||
764 | echo " Coverage.............: ${enable_coverage}" | ||
765 | echo " Examples.............: ${enable_build_examples}" | ||
766 | echo " Tiler Example........: ${build_tiler_example}" | ||
767 | echo " Examples installed...: ${enable_install_examples}" | ||
768 | echo " Benchmark............: ${enable_benchmark}" | ||
769 | if test "x${enable_benchmark}" = "xyes" ; then | ||
770 | echo " Glib...............: ${enable_benchmark_glib}" | ||
771 | echo " E17 real data......: ${enable_benchmark_e17}" | ||
772 | fi | ||
773 | echo | ||
774 | echo " CPU Specific Extensions:" | ||
775 | echo " MMX................: ${have_mmx}" | ||
776 | echo " SSE................: ${have_sse}" | ||
777 | echo " SSE2...............: ${have_sse2}" | ||
778 | echo " ALTIVEC............: ${have_altivec}" | ||
779 | echo | ||
780 | echo " Memory pools:" | ||
781 | echo " Buddy..............: ${enable_buddy}" | ||
782 | echo " Chained pool.......: ${enable_chained_pool}" | ||
783 | echo " Ememoa fixed.......: ${enable_ememoa_fixed}" | ||
784 | echo " Ememoa unknown.....: ${enable_ememoa_unknown}" | ||
785 | echo " Fixed bitmap.......: ${enable_fixed_bitmap}" | ||
786 | echo " One big............: ${enable_one_big}" | ||
787 | echo " Pass through.......: ${enable_pass_through}" | ||
788 | echo | ||
789 | echo "Compilation............: make (or gmake)" | ||
790 | echo " CPPFLAGS.............: $CPPFLAGS" | ||
791 | echo " CFLAGS...............: $CFLAGS" | ||
792 | echo " LDFLAGS..............: $LDFLAGS" | ||
793 | echo | ||
794 | echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')" | ||
795 | echo " prefix...............: $prefix" | ||
796 | echo | ||
797 | EFL_FORM_VOLTRON | ||