diff options
Diffstat (limited to '')
-rwxr-xr-x | libraries/eina/configure | 23820 | ||||
-rw-r--r-- | libraries/eina/configure.ac | 898 |
2 files changed, 0 insertions, 24718 deletions
diff --git a/libraries/eina/configure b/libraries/eina/configure deleted file mode 100755 index ef62c1d..0000000 --- a/libraries/eina/configure +++ /dev/null | |||
@@ -1,23820 +0,0 @@ | |||
1 | #! /bin/sh | ||
2 | # Guess values for system-dependent variables and create Makefiles. | ||
3 | # Generated by GNU Autoconf 2.67 for eina 1.2.0-alpha. | ||
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.2.0-alpha' | ||
705 | PACKAGE_STRING='eina 1.2.0-alpha' | ||
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 | EINA_CONFIGURE_ENABLE_LOG | ||
803 | EFL_FNMATCH_LIBS | ||
804 | dlopen_libs | ||
805 | ALLOCA | ||
806 | EINA_CONFIGURE_HAVE_DIRENT_H | ||
807 | EINA_SIZEOF_WCHAR_T | ||
808 | EINA_CONFIGURE_HAVE_STDINT_H | ||
809 | EINA_CONFIGURE_HAVE_INTTYPES_H | ||
810 | lt_enable_auto_import | ||
811 | EINA_LIBS | ||
812 | EINA_CFLAGS | ||
813 | ESCAPE_LIBS | ||
814 | ESCAPE_CFLAGS | ||
815 | EINA_CONFIGURE_HAVE_EXOTIC | ||
816 | EINA_HAVE_EXOTIC_FALSE | ||
817 | EINA_HAVE_EXOTIC_TRUE | ||
818 | EXOTIC_LIBS | ||
819 | EXOTIC_CFLAGS | ||
820 | EINA_HAVE_WIN32_FALSE | ||
821 | EINA_HAVE_WIN32_TRUE | ||
822 | EINA_HAVE_WINCE_FALSE | ||
823 | EINA_HAVE_WINCE_TRUE | ||
824 | BUILD_TILER_EXAMPLE_FALSE | ||
825 | BUILD_TILER_EXAMPLE_TRUE | ||
826 | ECORE_EVAS_LIBS | ||
827 | ECORE_EVAS_CFLAGS | ||
828 | EMEMOA_LIBS | ||
829 | EMEMOA_CFLAGS | ||
830 | EFL_EINA_BUILD | ||
831 | EVIL_LIBS | ||
832 | EVIL_CFLAGS | ||
833 | VALGRIND_LIBS | ||
834 | VALGRIND_CFLAGS | ||
835 | EFL_BUILD_DOC_FALSE | ||
836 | EFL_BUILD_DOC_TRUE | ||
837 | efl_doxygen | ||
838 | efl_have_doxygen | ||
839 | pkgconfig_requires_private | ||
840 | PKG_CONFIG_LIBDIR | ||
841 | PKG_CONFIG_PATH | ||
842 | PKG_CONFIG | ||
843 | CXXCPP | ||
844 | am__fastdepCXX_FALSE | ||
845 | am__fastdepCXX_TRUE | ||
846 | CXXDEPMODE | ||
847 | ac_ct_CXX | ||
848 | CXXFLAGS | ||
849 | CXX | ||
850 | EINA_ENABLE_BENCHMARK_E17_FALSE | ||
851 | EINA_ENABLE_BENCHMARK_E17_TRUE | ||
852 | EINA_CONFIGURE_DEFAULT_MEMPOOL | ||
853 | EINA_AMALGAMATION_FALSE | ||
854 | EINA_AMALGAMATION_TRUE | ||
855 | EINA_CONFIGURE_SAFETY_CHECKS | ||
856 | SAFETY_CHECKS_FALSE | ||
857 | SAFETY_CHECKS_TRUE | ||
858 | EINA_CONFIGURE_MAGIC_DEBUG | ||
859 | EINA_ON_OFF_THREADS_FALSE | ||
860 | EINA_ON_OFF_THREADS_TRUE | ||
861 | EINA_CONFIGURE_HAVE_ON_OFF_THREADS | ||
862 | EINA_DEBUG_THREADS_FALSE | ||
863 | EINA_DEBUG_THREADS_TRUE | ||
864 | EINA_CONFIGURE_HAVE_DEBUG_THREADS | ||
865 | EINA_HAVE_THREADS_FALSE | ||
866 | EINA_HAVE_THREADS_TRUE | ||
867 | EINA_CONFIGURE_HAVE_THREADS | ||
868 | EFL_PTHREAD_LIBS | ||
869 | EFL_PTHREAD_CFLAGS | ||
870 | EFL_SIMD_FLAGS | ||
871 | MODULE_ARCH | ||
872 | VMAJ | ||
873 | release_info | ||
874 | version_info | ||
875 | OTOOL64 | ||
876 | OTOOL | ||
877 | LIPO | ||
878 | NMEDIT | ||
879 | DSYMUTIL | ||
880 | lt_ECHO | ||
881 | RANLIB | ||
882 | AR | ||
883 | LN_S | ||
884 | NM | ||
885 | ac_ct_DUMPBIN | ||
886 | DUMPBIN | ||
887 | LD | ||
888 | FGREP | ||
889 | SED | ||
890 | LIBTOOL | ||
891 | OBJDUMP | ||
892 | DLLTOOL | ||
893 | AS | ||
894 | host_os | ||
895 | host_vendor | ||
896 | host_cpu | ||
897 | host | ||
898 | build_os | ||
899 | build_vendor | ||
900 | build_cpu | ||
901 | build | ||
902 | EGREP | ||
903 | GREP | ||
904 | CPP | ||
905 | am__fastdepCC_FALSE | ||
906 | am__fastdepCC_TRUE | ||
907 | CCDEPMODE | ||
908 | AMDEPBACKSLASH | ||
909 | AMDEP_FALSE | ||
910 | AMDEP_TRUE | ||
911 | am__quote | ||
912 | am__include | ||
913 | DEPDIR | ||
914 | OBJEXT | ||
915 | EXEEXT | ||
916 | ac_ct_CC | ||
917 | CPPFLAGS | ||
918 | LDFLAGS | ||
919 | CFLAGS | ||
920 | CC | ||
921 | AM_BACKSLASH | ||
922 | AM_DEFAULT_VERBOSITY | ||
923 | am__untar | ||
924 | am__tar | ||
925 | AMTAR | ||
926 | am__leading_dot | ||
927 | SET_MAKE | ||
928 | AWK | ||
929 | mkdir_p | ||
930 | MKDIR_P | ||
931 | INSTALL_STRIP_PROGRAM | ||
932 | STRIP | ||
933 | install_sh | ||
934 | MAKEINFO | ||
935 | AUTOHEADER | ||
936 | AUTOMAKE | ||
937 | AUTOCONF | ||
938 | ACLOCAL | ||
939 | VERSION | ||
940 | PACKAGE | ||
941 | CYGPATH_W | ||
942 | am__isrc | ||
943 | INSTALL_DATA | ||
944 | INSTALL_SCRIPT | ||
945 | INSTALL_PROGRAM | ||
946 | target_alias | ||
947 | host_alias | ||
948 | build_alias | ||
949 | LIBS | ||
950 | ECHO_T | ||
951 | ECHO_N | ||
952 | ECHO_C | ||
953 | DEFS | ||
954 | mandir | ||
955 | localedir | ||
956 | libdir | ||
957 | psdir | ||
958 | pdfdir | ||
959 | dvidir | ||
960 | htmldir | ||
961 | infodir | ||
962 | docdir | ||
963 | oldincludedir | ||
964 | includedir | ||
965 | localstatedir | ||
966 | sharedstatedir | ||
967 | sysconfdir | ||
968 | datadir | ||
969 | datarootdir | ||
970 | libexecdir | ||
971 | sbindir | ||
972 | bindir | ||
973 | program_transform_name | ||
974 | prefix | ||
975 | exec_prefix | ||
976 | PACKAGE_URL | ||
977 | PACKAGE_BUGREPORT | ||
978 | PACKAGE_STRING | ||
979 | PACKAGE_VERSION | ||
980 | PACKAGE_TARNAME | ||
981 | PACKAGE_NAME | ||
982 | PATH_SEPARATOR | ||
983 | SHELL' | ||
984 | ac_subst_files='' | ||
985 | ac_user_opts=' | ||
986 | enable_option_checking | ||
987 | enable_silent_rules | ||
988 | enable_dependency_tracking | ||
989 | enable_largefile | ||
990 | enable_shared | ||
991 | enable_static | ||
992 | with_pic | ||
993 | enable_fast_install | ||
994 | with_gnu_ld | ||
995 | enable_libtool_lock | ||
996 | enable_cpu_mmx | ||
997 | enable_cpu_sse | ||
998 | enable_cpu_sse2 | ||
999 | enable_cpu_altivec | ||
1000 | enable_posix_threads | ||
1001 | enable_win32_threads | ||
1002 | enable_on_off_threads | ||
1003 | enable_debug_threads | ||
1004 | enable_magic_debug | ||
1005 | enable_safety_checks | ||
1006 | with_internal_maximum_log_level | ||
1007 | enable_amalgamation | ||
1008 | enable_default_mempool | ||
1009 | enable_stringshare_usage | ||
1010 | enable_e17 | ||
1011 | enable_doc | ||
1012 | with_doxygen | ||
1013 | enable_valgrind | ||
1014 | enable_ememoa | ||
1015 | enable_assert | ||
1016 | enable_debug_malloc | ||
1017 | enable_log | ||
1018 | with_iconv_link | ||
1019 | enable_mempool_chained_pool | ||
1020 | enable_mempool_ememoa_fixed | ||
1021 | enable_mempool_ememoa_unknown | ||
1022 | enable_mempool_fixed_bitmap | ||
1023 | enable_mempool_pass_through | ||
1024 | enable_mempool_buddy | ||
1025 | enable_mempool_one_big | ||
1026 | enable_tests | ||
1027 | enable_coverage | ||
1028 | enable_benchmark | ||
1029 | enable_glib | ||
1030 | enable_build_examples | ||
1031 | enable_install_examples | ||
1032 | enable_voltron | ||
1033 | ' | ||
1034 | ac_precious_vars='build_alias | ||
1035 | host_alias | ||
1036 | target_alias | ||
1037 | CC | ||
1038 | CFLAGS | ||
1039 | LDFLAGS | ||
1040 | LIBS | ||
1041 | CPPFLAGS | ||
1042 | CPP | ||
1043 | CXX | ||
1044 | CXXFLAGS | ||
1045 | CCC | ||
1046 | CXXCPP | ||
1047 | PKG_CONFIG | ||
1048 | PKG_CONFIG_PATH | ||
1049 | PKG_CONFIG_LIBDIR | ||
1050 | VALGRIND_CFLAGS | ||
1051 | VALGRIND_LIBS | ||
1052 | EVIL_CFLAGS | ||
1053 | EVIL_LIBS | ||
1054 | EMEMOA_CFLAGS | ||
1055 | EMEMOA_LIBS | ||
1056 | ECORE_EVAS_CFLAGS | ||
1057 | ECORE_EVAS_LIBS | ||
1058 | EXOTIC_CFLAGS | ||
1059 | EXOTIC_LIBS | ||
1060 | ESCAPE_CFLAGS | ||
1061 | ESCAPE_LIBS | ||
1062 | CHECK_CFLAGS | ||
1063 | CHECK_LIBS | ||
1064 | GLIB_CFLAGS | ||
1065 | GLIB_LIBS' | ||
1066 | |||
1067 | |||
1068 | # Initialize some variables set by options. | ||
1069 | ac_init_help= | ||
1070 | ac_init_version=false | ||
1071 | ac_unrecognized_opts= | ||
1072 | ac_unrecognized_sep= | ||
1073 | # The variables have the same names as the options, with | ||
1074 | # dashes changed to underlines. | ||
1075 | cache_file=/dev/null | ||
1076 | exec_prefix=NONE | ||
1077 | no_create= | ||
1078 | no_recursion= | ||
1079 | prefix=NONE | ||
1080 | program_prefix=NONE | ||
1081 | program_suffix=NONE | ||
1082 | program_transform_name=s,x,x, | ||
1083 | silent= | ||
1084 | site= | ||
1085 | srcdir= | ||
1086 | verbose= | ||
1087 | x_includes=NONE | ||
1088 | x_libraries=NONE | ||
1089 | |||
1090 | # Installation directory options. | ||
1091 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
1092 | # and all the variables that are supposed to be based on exec_prefix | ||
1093 | # by default will actually change. | ||
1094 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
1095 | # (The list follows the same order as the GNU Coding Standards.) | ||
1096 | bindir='${exec_prefix}/bin' | ||
1097 | sbindir='${exec_prefix}/sbin' | ||
1098 | libexecdir='${exec_prefix}/libexec' | ||
1099 | datarootdir='${prefix}/share' | ||
1100 | datadir='${datarootdir}' | ||
1101 | sysconfdir='${prefix}/etc' | ||
1102 | sharedstatedir='${prefix}/com' | ||
1103 | localstatedir='${prefix}/var' | ||
1104 | includedir='${prefix}/include' | ||
1105 | oldincludedir='/usr/include' | ||
1106 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
1107 | infodir='${datarootdir}/info' | ||
1108 | htmldir='${docdir}' | ||
1109 | dvidir='${docdir}' | ||
1110 | pdfdir='${docdir}' | ||
1111 | psdir='${docdir}' | ||
1112 | libdir='${exec_prefix}/lib' | ||
1113 | localedir='${datarootdir}/locale' | ||
1114 | mandir='${datarootdir}/man' | ||
1115 | |||
1116 | ac_prev= | ||
1117 | ac_dashdash= | ||
1118 | for ac_option | ||
1119 | do | ||
1120 | # If the previous option needs an argument, assign it. | ||
1121 | if test -n "$ac_prev"; then | ||
1122 | eval $ac_prev=\$ac_option | ||
1123 | ac_prev= | ||
1124 | continue | ||
1125 | fi | ||
1126 | |||
1127 | case $ac_option in | ||
1128 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
1129 | *=) ac_optarg= ;; | ||
1130 | *) ac_optarg=yes ;; | ||
1131 | esac | ||
1132 | |||
1133 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
1134 | |||
1135 | case $ac_dashdash$ac_option in | ||
1136 | --) | ||
1137 | ac_dashdash=yes ;; | ||
1138 | |||
1139 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
1140 | ac_prev=bindir ;; | ||
1141 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
1142 | bindir=$ac_optarg ;; | ||
1143 | |||
1144 | -build | --build | --buil | --bui | --bu) | ||
1145 | ac_prev=build_alias ;; | ||
1146 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
1147 | build_alias=$ac_optarg ;; | ||
1148 | |||
1149 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
1150 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
1151 | ac_prev=cache_file ;; | ||
1152 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
1153 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
1154 | cache_file=$ac_optarg ;; | ||
1155 | |||
1156 | --config-cache | -C) | ||
1157 | cache_file=config.cache ;; | ||
1158 | |||
1159 | -datadir | --datadir | --datadi | --datad) | ||
1160 | ac_prev=datadir ;; | ||
1161 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
1162 | datadir=$ac_optarg ;; | ||
1163 | |||
1164 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
1165 | | --dataroo | --dataro | --datar) | ||
1166 | ac_prev=datarootdir ;; | ||
1167 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
1168 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
1169 | datarootdir=$ac_optarg ;; | ||
1170 | |||
1171 | -disable-* | --disable-*) | ||
1172 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
1173 | # Reject names that are not valid shell variable names. | ||
1174 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1175 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
1176 | ac_useropt_orig=$ac_useropt | ||
1177 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1178 | case $ac_user_opts in | ||
1179 | *" | ||
1180 | "enable_$ac_useropt" | ||
1181 | "*) ;; | ||
1182 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | ||
1183 | ac_unrecognized_sep=', ';; | ||
1184 | esac | ||
1185 | eval enable_$ac_useropt=no ;; | ||
1186 | |||
1187 | -docdir | --docdir | --docdi | --doc | --do) | ||
1188 | ac_prev=docdir ;; | ||
1189 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
1190 | docdir=$ac_optarg ;; | ||
1191 | |||
1192 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
1193 | ac_prev=dvidir ;; | ||
1194 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
1195 | dvidir=$ac_optarg ;; | ||
1196 | |||
1197 | -enable-* | --enable-*) | ||
1198 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
1199 | # Reject names that are not valid shell variable names. | ||
1200 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1201 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
1202 | ac_useropt_orig=$ac_useropt | ||
1203 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1204 | case $ac_user_opts in | ||
1205 | *" | ||
1206 | "enable_$ac_useropt" | ||
1207 | "*) ;; | ||
1208 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | ||
1209 | ac_unrecognized_sep=', ';; | ||
1210 | esac | ||
1211 | eval enable_$ac_useropt=\$ac_optarg ;; | ||
1212 | |||
1213 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
1214 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
1215 | | --exec | --exe | --ex) | ||
1216 | ac_prev=exec_prefix ;; | ||
1217 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
1218 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
1219 | | --exec=* | --exe=* | --ex=*) | ||
1220 | exec_prefix=$ac_optarg ;; | ||
1221 | |||
1222 | -gas | --gas | --ga | --g) | ||
1223 | # Obsolete; use --with-gas. | ||
1224 | with_gas=yes ;; | ||
1225 | |||
1226 | -help | --help | --hel | --he | -h) | ||
1227 | ac_init_help=long ;; | ||
1228 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
1229 | ac_init_help=recursive ;; | ||
1230 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
1231 | ac_init_help=short ;; | ||
1232 | |||
1233 | -host | --host | --hos | --ho) | ||
1234 | ac_prev=host_alias ;; | ||
1235 | -host=* | --host=* | --hos=* | --ho=*) | ||
1236 | host_alias=$ac_optarg ;; | ||
1237 | |||
1238 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
1239 | ac_prev=htmldir ;; | ||
1240 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
1241 | | --ht=*) | ||
1242 | htmldir=$ac_optarg ;; | ||
1243 | |||
1244 | -includedir | --includedir | --includedi | --included | --include \ | ||
1245 | | --includ | --inclu | --incl | --inc) | ||
1246 | ac_prev=includedir ;; | ||
1247 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
1248 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
1249 | includedir=$ac_optarg ;; | ||
1250 | |||
1251 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
1252 | ac_prev=infodir ;; | ||
1253 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
1254 | infodir=$ac_optarg ;; | ||
1255 | |||
1256 | -libdir | --libdir | --libdi | --libd) | ||
1257 | ac_prev=libdir ;; | ||
1258 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
1259 | libdir=$ac_optarg ;; | ||
1260 | |||
1261 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
1262 | | --libexe | --libex | --libe) | ||
1263 | ac_prev=libexecdir ;; | ||
1264 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
1265 | | --libexe=* | --libex=* | --libe=*) | ||
1266 | libexecdir=$ac_optarg ;; | ||
1267 | |||
1268 | -localedir | --localedir | --localedi | --localed | --locale) | ||
1269 | ac_prev=localedir ;; | ||
1270 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
1271 | localedir=$ac_optarg ;; | ||
1272 | |||
1273 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
1274 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
1275 | ac_prev=localstatedir ;; | ||
1276 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
1277 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
1278 | localstatedir=$ac_optarg ;; | ||
1279 | |||
1280 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
1281 | ac_prev=mandir ;; | ||
1282 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
1283 | mandir=$ac_optarg ;; | ||
1284 | |||
1285 | -nfp | --nfp | --nf) | ||
1286 | # Obsolete; use --without-fp. | ||
1287 | with_fp=no ;; | ||
1288 | |||
1289 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
1290 | | --no-cr | --no-c | -n) | ||
1291 | no_create=yes ;; | ||
1292 | |||
1293 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
1294 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
1295 | no_recursion=yes ;; | ||
1296 | |||
1297 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
1298 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
1299 | | --oldin | --oldi | --old | --ol | --o) | ||
1300 | ac_prev=oldincludedir ;; | ||
1301 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
1302 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
1303 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
1304 | oldincludedir=$ac_optarg ;; | ||
1305 | |||
1306 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
1307 | ac_prev=prefix ;; | ||
1308 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
1309 | prefix=$ac_optarg ;; | ||
1310 | |||
1311 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
1312 | | --program-pre | --program-pr | --program-p) | ||
1313 | ac_prev=program_prefix ;; | ||
1314 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
1315 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
1316 | program_prefix=$ac_optarg ;; | ||
1317 | |||
1318 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
1319 | | --program-suf | --program-su | --program-s) | ||
1320 | ac_prev=program_suffix ;; | ||
1321 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
1322 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
1323 | program_suffix=$ac_optarg ;; | ||
1324 | |||
1325 | -program-transform-name | --program-transform-name \ | ||
1326 | | --program-transform-nam | --program-transform-na \ | ||
1327 | | --program-transform-n | --program-transform- \ | ||
1328 | | --program-transform | --program-transfor \ | ||
1329 | | --program-transfo | --program-transf \ | ||
1330 | | --program-trans | --program-tran \ | ||
1331 | | --progr-tra | --program-tr | --program-t) | ||
1332 | ac_prev=program_transform_name ;; | ||
1333 | -program-transform-name=* | --program-transform-name=* \ | ||
1334 | | --program-transform-nam=* | --program-transform-na=* \ | ||
1335 | | --program-transform-n=* | --program-transform-=* \ | ||
1336 | | --program-transform=* | --program-transfor=* \ | ||
1337 | | --program-transfo=* | --program-transf=* \ | ||
1338 | | --program-trans=* | --program-tran=* \ | ||
1339 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
1340 | program_transform_name=$ac_optarg ;; | ||
1341 | |||
1342 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
1343 | ac_prev=pdfdir ;; | ||
1344 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
1345 | pdfdir=$ac_optarg ;; | ||
1346 | |||
1347 | -psdir | --psdir | --psdi | --psd | --ps) | ||
1348 | ac_prev=psdir ;; | ||
1349 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
1350 | psdir=$ac_optarg ;; | ||
1351 | |||
1352 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1353 | | -silent | --silent | --silen | --sile | --sil) | ||
1354 | silent=yes ;; | ||
1355 | |||
1356 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1357 | ac_prev=sbindir ;; | ||
1358 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1359 | | --sbi=* | --sb=*) | ||
1360 | sbindir=$ac_optarg ;; | ||
1361 | |||
1362 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1363 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1364 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1365 | | --sha | --sh) | ||
1366 | ac_prev=sharedstatedir ;; | ||
1367 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1368 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1369 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1370 | | --sha=* | --sh=*) | ||
1371 | sharedstatedir=$ac_optarg ;; | ||
1372 | |||
1373 | -site | --site | --sit) | ||
1374 | ac_prev=site ;; | ||
1375 | -site=* | --site=* | --sit=*) | ||
1376 | site=$ac_optarg ;; | ||
1377 | |||
1378 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1379 | ac_prev=srcdir ;; | ||
1380 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1381 | srcdir=$ac_optarg ;; | ||
1382 | |||
1383 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1384 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1385 | ac_prev=sysconfdir ;; | ||
1386 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1387 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1388 | sysconfdir=$ac_optarg ;; | ||
1389 | |||
1390 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1391 | ac_prev=target_alias ;; | ||
1392 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1393 | target_alias=$ac_optarg ;; | ||
1394 | |||
1395 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1396 | verbose=yes ;; | ||
1397 | |||
1398 | -version | --version | --versio | --versi | --vers | -V) | ||
1399 | ac_init_version=: ;; | ||
1400 | |||
1401 | -with-* | --with-*) | ||
1402 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1403 | # Reject names that are not valid shell variable names. | ||
1404 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1405 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1406 | ac_useropt_orig=$ac_useropt | ||
1407 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1408 | case $ac_user_opts in | ||
1409 | *" | ||
1410 | "with_$ac_useropt" | ||
1411 | "*) ;; | ||
1412 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | ||
1413 | ac_unrecognized_sep=', ';; | ||
1414 | esac | ||
1415 | eval with_$ac_useropt=\$ac_optarg ;; | ||
1416 | |||
1417 | -without-* | --without-*) | ||
1418 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1419 | # Reject names that are not valid shell variable names. | ||
1420 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1421 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1422 | ac_useropt_orig=$ac_useropt | ||
1423 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1424 | case $ac_user_opts in | ||
1425 | *" | ||
1426 | "with_$ac_useropt" | ||
1427 | "*) ;; | ||
1428 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | ||
1429 | ac_unrecognized_sep=', ';; | ||
1430 | esac | ||
1431 | eval with_$ac_useropt=no ;; | ||
1432 | |||
1433 | --x) | ||
1434 | # Obsolete; use --with-x. | ||
1435 | with_x=yes ;; | ||
1436 | |||
1437 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1438 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1439 | ac_prev=x_includes ;; | ||
1440 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1441 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1442 | x_includes=$ac_optarg ;; | ||
1443 | |||
1444 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1445 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1446 | ac_prev=x_libraries ;; | ||
1447 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1448 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1449 | x_libraries=$ac_optarg ;; | ||
1450 | |||
1451 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | ||
1452 | Try \`$0 --help' for more information" | ||
1453 | ;; | ||
1454 | |||
1455 | *=*) | ||
1456 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1457 | # Reject names that are not valid shell variable names. | ||
1458 | case $ac_envvar in #( | ||
1459 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | ||
1460 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | ||
1461 | esac | ||
1462 | eval $ac_envvar=\$ac_optarg | ||
1463 | export $ac_envvar ;; | ||
1464 | |||
1465 | *) | ||
1466 | # FIXME: should be removed in autoconf 3.0. | ||
1467 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1468 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1469 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1470 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
1471 | ;; | ||
1472 | |||
1473 | esac | ||
1474 | done | ||
1475 | |||
1476 | if test -n "$ac_prev"; then | ||
1477 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1478 | as_fn_error $? "missing argument to $ac_option" | ||
1479 | fi | ||
1480 | |||
1481 | if test -n "$ac_unrecognized_opts"; then | ||
1482 | case $enable_option_checking in | ||
1483 | no) ;; | ||
1484 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | ||
1485 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | ||
1486 | esac | ||
1487 | fi | ||
1488 | |||
1489 | # Check all directory arguments for consistency. | ||
1490 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1491 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1492 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1493 | libdir localedir mandir | ||
1494 | do | ||
1495 | eval ac_val=\$$ac_var | ||
1496 | # Remove trailing slashes. | ||
1497 | case $ac_val in | ||
1498 | */ ) | ||
1499 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | ||
1500 | eval $ac_var=\$ac_val;; | ||
1501 | esac | ||
1502 | # Be sure to have absolute directory names. | ||
1503 | case $ac_val in | ||
1504 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1505 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1506 | esac | ||
1507 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | ||
1508 | done | ||
1509 | |||
1510 | # There might be people who depend on the old broken behavior: `$host' | ||
1511 | # used to hold the argument of --host etc. | ||
1512 | # FIXME: To remove some day. | ||
1513 | build=$build_alias | ||
1514 | host=$host_alias | ||
1515 | target=$target_alias | ||
1516 | |||
1517 | # FIXME: To remove some day. | ||
1518 | if test "x$host_alias" != x; then | ||
1519 | if test "x$build_alias" = x; then | ||
1520 | cross_compiling=maybe | ||
1521 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | ||
1522 | If a cross compiler is detected then cross compile mode will be used" >&2 | ||
1523 | elif test "x$build_alias" != "x$host_alias"; then | ||
1524 | cross_compiling=yes | ||
1525 | fi | ||
1526 | fi | ||
1527 | |||
1528 | ac_tool_prefix= | ||
1529 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1530 | |||
1531 | test "$silent" = yes && exec 6>/dev/null | ||
1532 | |||
1533 | |||
1534 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1535 | ac_ls_di=`ls -di .` && | ||
1536 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1537 | as_fn_error $? "working directory cannot be determined" | ||
1538 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1539 | as_fn_error $? "pwd does not report name of working directory" | ||
1540 | |||
1541 | |||
1542 | # Find the source files, if location was not specified. | ||
1543 | if test -z "$srcdir"; then | ||
1544 | ac_srcdir_defaulted=yes | ||
1545 | # Try the directory containing this script, then the parent directory. | ||
1546 | ac_confdir=`$as_dirname -- "$as_myself" || | ||
1547 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1548 | X"$as_myself" : 'X\(//\)[^/]' \| \ | ||
1549 | X"$as_myself" : 'X\(//\)$' \| \ | ||
1550 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | ||
1551 | $as_echo X"$as_myself" | | ||
1552 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1553 | s//\1/ | ||
1554 | q | ||
1555 | } | ||
1556 | /^X\(\/\/\)[^/].*/{ | ||
1557 | s//\1/ | ||
1558 | q | ||
1559 | } | ||
1560 | /^X\(\/\/\)$/{ | ||
1561 | s//\1/ | ||
1562 | q | ||
1563 | } | ||
1564 | /^X\(\/\).*/{ | ||
1565 | s//\1/ | ||
1566 | q | ||
1567 | } | ||
1568 | s/.*/./; q'` | ||
1569 | srcdir=$ac_confdir | ||
1570 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1571 | srcdir=.. | ||
1572 | fi | ||
1573 | else | ||
1574 | ac_srcdir_defaulted=no | ||
1575 | fi | ||
1576 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1577 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1578 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | ||
1579 | fi | ||
1580 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1581 | ac_abs_confdir=`( | ||
1582 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | ||
1583 | pwd)` | ||
1584 | # When building in place, set srcdir=. | ||
1585 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1586 | srcdir=. | ||
1587 | fi | ||
1588 | # Remove unnecessary trailing slashes from srcdir. | ||
1589 | # Double slashes in file names in object file debugging info | ||
1590 | # mess up M-x gdb in Emacs. | ||
1591 | case $srcdir in | ||
1592 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1593 | esac | ||
1594 | for ac_var in $ac_precious_vars; do | ||
1595 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1596 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1597 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1598 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1599 | done | ||
1600 | |||
1601 | # | ||
1602 | # Report the --help message. | ||
1603 | # | ||
1604 | if test "$ac_init_help" = "long"; then | ||
1605 | # Omit some internal or obsolete options to make the list less imposing. | ||
1606 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1607 | cat <<_ACEOF | ||
1608 | \`configure' configures eina 1.2.0-alpha to adapt to many kinds of systems. | ||
1609 | |||
1610 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1611 | |||
1612 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1613 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1614 | |||
1615 | Defaults for the options are specified in brackets. | ||
1616 | |||
1617 | Configuration: | ||
1618 | -h, --help display this help and exit | ||
1619 | --help=short display options specific to this package | ||
1620 | --help=recursive display the short help of all the included packages | ||
1621 | -V, --version display version information and exit | ||
1622 | -q, --quiet, --silent do not print \`checking ...' messages | ||
1623 | --cache-file=FILE cache test results in FILE [disabled] | ||
1624 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1625 | -n, --no-create do not create output files | ||
1626 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1627 | |||
1628 | Installation directories: | ||
1629 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1630 | [$ac_default_prefix] | ||
1631 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1632 | [PREFIX] | ||
1633 | |||
1634 | By default, \`make install' will install all the files in | ||
1635 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1636 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1637 | for instance \`--prefix=\$HOME'. | ||
1638 | |||
1639 | For better control, use the options below. | ||
1640 | |||
1641 | Fine tuning of the installation directories: | ||
1642 | --bindir=DIR user executables [EPREFIX/bin] | ||
1643 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1644 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1645 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1646 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1647 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1648 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1649 | --includedir=DIR C header files [PREFIX/include] | ||
1650 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1651 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1652 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1653 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1654 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1655 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1656 | --docdir=DIR documentation root [DATAROOTDIR/doc/eina] | ||
1657 | --htmldir=DIR html documentation [DOCDIR] | ||
1658 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1659 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1660 | --psdir=DIR ps documentation [DOCDIR] | ||
1661 | _ACEOF | ||
1662 | |||
1663 | cat <<\_ACEOF | ||
1664 | |||
1665 | Program names: | ||
1666 | --program-prefix=PREFIX prepend PREFIX to installed program names | ||
1667 | --program-suffix=SUFFIX append SUFFIX to installed program names | ||
1668 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | ||
1669 | |||
1670 | System types: | ||
1671 | --build=BUILD configure for building on BUILD [guessed] | ||
1672 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1673 | _ACEOF | ||
1674 | fi | ||
1675 | |||
1676 | if test -n "$ac_init_help"; then | ||
1677 | case $ac_init_help in | ||
1678 | short | recursive ) echo "Configuration of eina 1.2.0-alpha:";; | ||
1679 | esac | ||
1680 | cat <<\_ACEOF | ||
1681 | |||
1682 | Optional Features: | ||
1683 | --disable-option-checking ignore unrecognized --enable/--with options | ||
1684 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1685 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1686 | --enable-silent-rules less verbose build output (undo: `make V=1') | ||
1687 | --disable-silent-rules verbose build output (undo: `make V=0') | ||
1688 | --disable-dependency-tracking speeds up one-time build | ||
1689 | --enable-dependency-tracking do not reject slow dependency extractors | ||
1690 | --disable-largefile omit support for large files | ||
1691 | --enable-shared[=PKGS] build shared libraries [default=yes] | ||
1692 | --enable-static[=PKGS] build static libraries [default=yes] | ||
1693 | --enable-fast-install[=PKGS] | ||
1694 | optimize for fast installation [default=yes] | ||
1695 | --disable-libtool-lock avoid locking (might break parallel builds) | ||
1696 | --disable-cpu-mmx disable mmx code [default=enabled] | ||
1697 | --disable-cpu-sse disable sse code [default=enabled] | ||
1698 | --disable-cpu-sse2 disable sse2 code [default=enabled] | ||
1699 | --disable-cpu-altivec disable altivec code [default=enabled] | ||
1700 | --disable-posix-threads enable POSIX threads code [default=auto] | ||
1701 | --disable-win32-threads enable Win32 threads code [default=no] | ||
1702 | --enable-on-off-threads only turn this on if you know what you are doing, | ||
1703 | and don't complain if the world freeze | ||
1704 | --enable-debug-threads disable assert when you forgot to call | ||
1705 | eina_threads_init | ||
1706 | --disable-magic-debug disable magic debug of eina structure | ||
1707 | [default=enabled] | ||
1708 | --disable-safety-checks disable safety checks for NULL pointers and like. | ||
1709 | [default=enabled] | ||
1710 | --enable-amalgamation enable generation of one single file with all source | ||
1711 | code in it, helps compiler optimizations. | ||
1712 | --enable-default-mempool | ||
1713 | Default memory allocator could be faster for some | ||
1714 | computer. [default=disabled] | ||
1715 | --enable-stringshare-usage | ||
1716 | Report stringshare usage on stringshare shutdown. | ||
1717 | [default=disabled] | ||
1718 | --enable-e17 enable heavy benchmark [default=no] | ||
1719 | --disable-doc Disable documentation build [default=enabled] | ||
1720 | --enable-valgrind improve valgrind support by hinting it of our memory | ||
1721 | usages, having it to report proper mempool leaks. | ||
1722 | --enable-ememoa build ememoa memory pool module [default=yes] | ||
1723 | --disable-assert turn off assertions | ||
1724 | --enable-debug-malloc enable debugging of malloc usage overhead in our | ||
1725 | allocator [default=enabled] | ||
1726 | --disable-log disable Eina_Log infrastructure completly | ||
1727 | [default=enabled] | ||
1728 | --enable-mempool-chained-pool | ||
1729 | enable build of chained pool | ||
1730 | [default=${enable_chained_pool}] | ||
1731 | --enable-mempool-ememoa-fixed | ||
1732 | enable build of ememoa fixed | ||
1733 | [default=${enable_ememoa}] | ||
1734 | --enable-mempool-ememoa-unknown | ||
1735 | enable build of ememoa unknown | ||
1736 | [default=${enable_ememoa}] | ||
1737 | --enable-mempool-fixed-bitmap | ||
1738 | enable build of fixed bitmap [default=no] | ||
1739 | --enable-mempool-pass-through | ||
1740 | enable build of pass through | ||
1741 | [default=${enable_pass_through}] | ||
1742 | --enable-mempool-buddy enable build of buddy [default=no] | ||
1743 | --enable-mempool-one-big | ||
1744 | enable build of one big [default=${enable_one_big}] | ||
1745 | --enable-tests enable tests [default=disabled] | ||
1746 | --enable-coverage enable coverage profiling instrumentation | ||
1747 | [default=disabled] | ||
1748 | --enable-benchmark enable benchmarking [default=disabled] | ||
1749 | --disable-benchmark-glib | ||
1750 | disable benchmarking against glib [default=yes] | ||
1751 | --enable-build-examples enable building examples [default=disabled] | ||
1752 | --enable-install-examples | ||
1753 | enable installing example source files | ||
1754 | [default=disabled] | ||
1755 | --enable-voltron enable forming of voltron when all files combine | ||
1756 | [default=no] | ||
1757 | |||
1758 | Optional Packages: | ||
1759 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1760 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1761 | --with-pic try to use only PIC/non-PIC objects [default=use | ||
1762 | both] | ||
1763 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | ||
1764 | --with-internal-maximum-log-level=NUMBER | ||
1765 | limit eina internal log level to the given number, | ||
1766 | any call to EINA_LOG() with values greater than this | ||
1767 | will be compiled out, ignoring runtime settings, but | ||
1768 | saving function calls. | ||
1769 | --with-doxygen=FILE doxygen program to use [default=doxygen] | ||
1770 | --with-iconv-link=ICONV_LINK | ||
1771 | explicitly specify an iconv link option | ||
1772 | |||
1773 | Some influential environment variables: | ||
1774 | CC C compiler command | ||
1775 | CFLAGS C compiler flags | ||
1776 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1777 | nonstandard directory <lib dir> | ||
1778 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
1779 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | ||
1780 | you have headers in a nonstandard directory <include dir> | ||
1781 | CPP C preprocessor | ||
1782 | CXX C++ compiler command | ||
1783 | CXXFLAGS C++ compiler flags | ||
1784 | CXXCPP C++ preprocessor | ||
1785 | PKG_CONFIG path to pkg-config utility | ||
1786 | PKG_CONFIG_PATH | ||
1787 | directories to add to pkg-config's search path | ||
1788 | PKG_CONFIG_LIBDIR | ||
1789 | path overriding pkg-config's built-in search path | ||
1790 | VALGRIND_CFLAGS | ||
1791 | C compiler flags for VALGRIND, overriding pkg-config | ||
1792 | VALGRIND_LIBS | ||
1793 | linker flags for VALGRIND, overriding pkg-config | ||
1794 | EVIL_CFLAGS C compiler flags for EVIL, overriding pkg-config | ||
1795 | EVIL_LIBS linker flags for EVIL, overriding pkg-config | ||
1796 | EMEMOA_CFLAGS | ||
1797 | C compiler flags for EMEMOA, overriding pkg-config | ||
1798 | EMEMOA_LIBS linker flags for EMEMOA, overriding pkg-config | ||
1799 | ECORE_EVAS_CFLAGS | ||
1800 | C compiler flags for ECORE_EVAS, overriding pkg-config | ||
1801 | ECORE_EVAS_LIBS | ||
1802 | linker flags for ECORE_EVAS, overriding pkg-config | ||
1803 | EXOTIC_CFLAGS | ||
1804 | C compiler flags for EXOTIC, overriding pkg-config | ||
1805 | EXOTIC_LIBS linker flags for EXOTIC, overriding pkg-config | ||
1806 | ESCAPE_CFLAGS | ||
1807 | C compiler flags for ESCAPE, overriding pkg-config | ||
1808 | ESCAPE_LIBS linker flags for ESCAPE, overriding pkg-config | ||
1809 | CHECK_CFLAGS | ||
1810 | C compiler flags for CHECK, overriding pkg-config | ||
1811 | CHECK_LIBS linker flags for CHECK, overriding pkg-config | ||
1812 | GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config | ||
1813 | GLIB_LIBS linker flags for GLIB, overriding pkg-config | ||
1814 | |||
1815 | Use these variables to override the choices made by `configure' or to help | ||
1816 | it to find libraries and programs with nonstandard names/locations. | ||
1817 | |||
1818 | Report bugs to <enlightenment-devel@lists.sourceforge.net>. | ||
1819 | _ACEOF | ||
1820 | ac_status=$? | ||
1821 | fi | ||
1822 | |||
1823 | if test "$ac_init_help" = "recursive"; then | ||
1824 | # If there are subdirs, report their specific --help. | ||
1825 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1826 | test -d "$ac_dir" || | ||
1827 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | ||
1828 | continue | ||
1829 | ac_builddir=. | ||
1830 | |||
1831 | case "$ac_dir" in | ||
1832 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1833 | *) | ||
1834 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
1835 | # A ".." for each directory in $ac_dir_suffix. | ||
1836 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
1837 | case $ac_top_builddir_sub in | ||
1838 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1839 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
1840 | esac ;; | ||
1841 | esac | ||
1842 | ac_abs_top_builddir=$ac_pwd | ||
1843 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1844 | # for backward compatibility: | ||
1845 | ac_top_builddir=$ac_top_build_prefix | ||
1846 | |||
1847 | case $srcdir in | ||
1848 | .) # We are building in place. | ||
1849 | ac_srcdir=. | ||
1850 | ac_top_srcdir=$ac_top_builddir_sub | ||
1851 | ac_abs_top_srcdir=$ac_pwd ;; | ||
1852 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
1853 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1854 | ac_top_srcdir=$srcdir | ||
1855 | ac_abs_top_srcdir=$srcdir ;; | ||
1856 | *) # Relative name. | ||
1857 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
1858 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
1859 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
1860 | esac | ||
1861 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
1862 | |||
1863 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
1864 | # Check for guested configure. | ||
1865 | if test -f "$ac_srcdir/configure.gnu"; then | ||
1866 | echo && | ||
1867 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
1868 | elif test -f "$ac_srcdir/configure"; then | ||
1869 | echo && | ||
1870 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
1871 | else | ||
1872 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1873 | fi || ac_status=$? | ||
1874 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
1875 | done | ||
1876 | fi | ||
1877 | |||
1878 | test -n "$ac_init_help" && exit $ac_status | ||
1879 | if $ac_init_version; then | ||
1880 | cat <<\_ACEOF | ||
1881 | eina configure 1.2.0-alpha | ||
1882 | generated by GNU Autoconf 2.67 | ||
1883 | |||
1884 | Copyright (C) 2010 Free Software Foundation, Inc. | ||
1885 | This configure script is free software; the Free Software Foundation | ||
1886 | gives unlimited permission to copy, distribute and modify it. | ||
1887 | _ACEOF | ||
1888 | exit | ||
1889 | fi | ||
1890 | |||
1891 | ## ------------------------ ## | ||
1892 | ## Autoconf initialization. ## | ||
1893 | ## ------------------------ ## | ||
1894 | |||
1895 | # ac_fn_c_try_compile LINENO | ||
1896 | # -------------------------- | ||
1897 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
1898 | ac_fn_c_try_compile () | ||
1899 | { | ||
1900 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1901 | rm -f conftest.$ac_objext | ||
1902 | if { { ac_try="$ac_compile" | ||
1903 | case "(($ac_try" in | ||
1904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1905 | *) ac_try_echo=$ac_try;; | ||
1906 | esac | ||
1907 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1908 | $as_echo "$ac_try_echo"; } >&5 | ||
1909 | (eval "$ac_compile") 2>conftest.err | ||
1910 | ac_status=$? | ||
1911 | if test -s conftest.err; then | ||
1912 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1913 | cat conftest.er1 >&5 | ||
1914 | mv -f conftest.er1 conftest.err | ||
1915 | fi | ||
1916 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1917 | test $ac_status = 0; } && { | ||
1918 | test -z "$ac_c_werror_flag" || | ||
1919 | test ! -s conftest.err | ||
1920 | } && test -s conftest.$ac_objext; then : | ||
1921 | ac_retval=0 | ||
1922 | else | ||
1923 | $as_echo "$as_me: failed program was:" >&5 | ||
1924 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1925 | |||
1926 | ac_retval=1 | ||
1927 | fi | ||
1928 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1929 | as_fn_set_status $ac_retval | ||
1930 | |||
1931 | } # ac_fn_c_try_compile | ||
1932 | |||
1933 | # ac_fn_c_try_cpp LINENO | ||
1934 | # ---------------------- | ||
1935 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||
1936 | ac_fn_c_try_cpp () | ||
1937 | { | ||
1938 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1939 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||
1940 | case "(($ac_try" in | ||
1941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1942 | *) ac_try_echo=$ac_try;; | ||
1943 | esac | ||
1944 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1945 | $as_echo "$ac_try_echo"; } >&5 | ||
1946 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||
1947 | ac_status=$? | ||
1948 | if test -s conftest.err; then | ||
1949 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1950 | cat conftest.er1 >&5 | ||
1951 | mv -f conftest.er1 conftest.err | ||
1952 | fi | ||
1953 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1954 | test $ac_status = 0; } > conftest.i && { | ||
1955 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
1956 | test ! -s conftest.err | ||
1957 | }; then : | ||
1958 | ac_retval=0 | ||
1959 | else | ||
1960 | $as_echo "$as_me: failed program was:" >&5 | ||
1961 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1962 | |||
1963 | ac_retval=1 | ||
1964 | fi | ||
1965 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1966 | as_fn_set_status $ac_retval | ||
1967 | |||
1968 | } # ac_fn_c_try_cpp | ||
1969 | |||
1970 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | ||
1971 | # ------------------------------------------------------- | ||
1972 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | ||
1973 | # the include files in INCLUDES and setting the cache variable VAR | ||
1974 | # accordingly. | ||
1975 | ac_fn_c_check_header_mongrel () | ||
1976 | { | ||
1977 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1978 | if eval "test \"\${$3+set}\"" = set; then : | ||
1979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1980 | $as_echo_n "checking for $2... " >&6; } | ||
1981 | if eval "test \"\${$3+set}\"" = set; then : | ||
1982 | $as_echo_n "(cached) " >&6 | ||
1983 | fi | ||
1984 | eval ac_res=\$$3 | ||
1985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1986 | $as_echo "$ac_res" >&6; } | ||
1987 | else | ||
1988 | # Is the header compilable? | ||
1989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | ||
1990 | $as_echo_n "checking $2 usability... " >&6; } | ||
1991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1992 | /* end confdefs.h. */ | ||
1993 | $4 | ||
1994 | #include <$2> | ||
1995 | _ACEOF | ||
1996 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1997 | ac_header_compiler=yes | ||
1998 | else | ||
1999 | ac_header_compiler=no | ||
2000 | fi | ||
2001 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | ||
2003 | $as_echo "$ac_header_compiler" >&6; } | ||
2004 | |||
2005 | # Is the header present? | ||
2006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | ||
2007 | $as_echo_n "checking $2 presence... " >&6; } | ||
2008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2009 | /* end confdefs.h. */ | ||
2010 | #include <$2> | ||
2011 | _ACEOF | ||
2012 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
2013 | ac_header_preproc=yes | ||
2014 | else | ||
2015 | ac_header_preproc=no | ||
2016 | fi | ||
2017 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
2018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | ||
2019 | $as_echo "$ac_header_preproc" >&6; } | ||
2020 | |||
2021 | # So? What about this header? | ||
2022 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | ||
2023 | yes:no: ) | ||
2024 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
2025 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
2026 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
2027 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
2028 | ;; | ||
2029 | no:yes:* ) | ||
2030 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | ||
2031 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | ||
2032 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | ||
2033 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | ||
2034 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | ||
2035 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | ||
2036 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | ||
2037 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | ||
2038 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
2039 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
2040 | ( $as_echo "## -------------------------------------------------------- ## | ||
2041 | ## Report this to enlightenment-devel@lists.sourceforge.net ## | ||
2042 | ## -------------------------------------------------------- ##" | ||
2043 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
2044 | ;; | ||
2045 | esac | ||
2046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2047 | $as_echo_n "checking for $2... " >&6; } | ||
2048 | if eval "test \"\${$3+set}\"" = set; then : | ||
2049 | $as_echo_n "(cached) " >&6 | ||
2050 | else | ||
2051 | eval "$3=\$ac_header_compiler" | ||
2052 | fi | ||
2053 | eval ac_res=\$$3 | ||
2054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2055 | $as_echo "$ac_res" >&6; } | ||
2056 | fi | ||
2057 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2058 | |||
2059 | } # ac_fn_c_check_header_mongrel | ||
2060 | |||
2061 | # ac_fn_c_try_run LINENO | ||
2062 | # ---------------------- | ||
2063 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | ||
2064 | # that executables *can* be run. | ||
2065 | ac_fn_c_try_run () | ||
2066 | { | ||
2067 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2068 | if { { ac_try="$ac_link" | ||
2069 | case "(($ac_try" in | ||
2070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2071 | *) ac_try_echo=$ac_try;; | ||
2072 | esac | ||
2073 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2074 | $as_echo "$ac_try_echo"; } >&5 | ||
2075 | (eval "$ac_link") 2>&5 | ||
2076 | ac_status=$? | ||
2077 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2078 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | ||
2079 | { { case "(($ac_try" in | ||
2080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2081 | *) ac_try_echo=$ac_try;; | ||
2082 | esac | ||
2083 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2084 | $as_echo "$ac_try_echo"; } >&5 | ||
2085 | (eval "$ac_try") 2>&5 | ||
2086 | ac_status=$? | ||
2087 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2088 | test $ac_status = 0; }; }; then : | ||
2089 | ac_retval=0 | ||
2090 | else | ||
2091 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
2092 | $as_echo "$as_me: failed program was:" >&5 | ||
2093 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2094 | |||
2095 | ac_retval=$ac_status | ||
2096 | fi | ||
2097 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
2098 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2099 | as_fn_set_status $ac_retval | ||
2100 | |||
2101 | } # ac_fn_c_try_run | ||
2102 | |||
2103 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | ||
2104 | # ------------------------------------------------------- | ||
2105 | # Tests whether HEADER exists and can be compiled using the include files in | ||
2106 | # INCLUDES, setting the cache variable VAR accordingly. | ||
2107 | ac_fn_c_check_header_compile () | ||
2108 | { | ||
2109 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2111 | $as_echo_n "checking for $2... " >&6; } | ||
2112 | if eval "test \"\${$3+set}\"" = set; then : | ||
2113 | $as_echo_n "(cached) " >&6 | ||
2114 | else | ||
2115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2116 | /* end confdefs.h. */ | ||
2117 | $4 | ||
2118 | #include <$2> | ||
2119 | _ACEOF | ||
2120 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2121 | eval "$3=yes" | ||
2122 | else | ||
2123 | eval "$3=no" | ||
2124 | fi | ||
2125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2126 | fi | ||
2127 | eval ac_res=\$$3 | ||
2128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2129 | $as_echo "$ac_res" >&6; } | ||
2130 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2131 | |||
2132 | } # ac_fn_c_check_header_compile | ||
2133 | |||
2134 | # ac_fn_c_try_link LINENO | ||
2135 | # ----------------------- | ||
2136 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
2137 | ac_fn_c_try_link () | ||
2138 | { | ||
2139 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2140 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
2141 | if { { ac_try="$ac_link" | ||
2142 | case "(($ac_try" in | ||
2143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2144 | *) ac_try_echo=$ac_try;; | ||
2145 | esac | ||
2146 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2147 | $as_echo "$ac_try_echo"; } >&5 | ||
2148 | (eval "$ac_link") 2>conftest.err | ||
2149 | ac_status=$? | ||
2150 | if test -s conftest.err; then | ||
2151 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2152 | cat conftest.er1 >&5 | ||
2153 | mv -f conftest.er1 conftest.err | ||
2154 | fi | ||
2155 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2156 | test $ac_status = 0; } && { | ||
2157 | test -z "$ac_c_werror_flag" || | ||
2158 | test ! -s conftest.err | ||
2159 | } && test -s conftest$ac_exeext && { | ||
2160 | test "$cross_compiling" = yes || | ||
2161 | $as_test_x conftest$ac_exeext | ||
2162 | }; then : | ||
2163 | ac_retval=0 | ||
2164 | else | ||
2165 | $as_echo "$as_me: failed program was:" >&5 | ||
2166 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2167 | |||
2168 | ac_retval=1 | ||
2169 | fi | ||
2170 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
2171 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
2172 | # interfere with the next link command; also delete a directory that is | ||
2173 | # left behind by Apple's compiler. We do this before executing the actions. | ||
2174 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
2175 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2176 | as_fn_set_status $ac_retval | ||
2177 | |||
2178 | } # ac_fn_c_try_link | ||
2179 | |||
2180 | # ac_fn_c_check_func LINENO FUNC VAR | ||
2181 | # ---------------------------------- | ||
2182 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | ||
2183 | ac_fn_c_check_func () | ||
2184 | { | ||
2185 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2187 | $as_echo_n "checking for $2... " >&6; } | ||
2188 | if eval "test \"\${$3+set}\"" = set; then : | ||
2189 | $as_echo_n "(cached) " >&6 | ||
2190 | else | ||
2191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2192 | /* end confdefs.h. */ | ||
2193 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | ||
2194 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
2195 | #define $2 innocuous_$2 | ||
2196 | |||
2197 | /* System header to define __stub macros and hopefully few prototypes, | ||
2198 | which can conflict with char $2 (); below. | ||
2199 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2200 | <limits.h> exists even on freestanding compilers. */ | ||
2201 | |||
2202 | #ifdef __STDC__ | ||
2203 | # include <limits.h> | ||
2204 | #else | ||
2205 | # include <assert.h> | ||
2206 | #endif | ||
2207 | |||
2208 | #undef $2 | ||
2209 | |||
2210 | /* Override any GCC internal prototype to avoid an error. | ||
2211 | Use char because int might match the return type of a GCC | ||
2212 | builtin and then its argument prototype would still apply. */ | ||
2213 | #ifdef __cplusplus | ||
2214 | extern "C" | ||
2215 | #endif | ||
2216 | char $2 (); | ||
2217 | /* The GNU C library defines this for functions which it implements | ||
2218 | to always fail with ENOSYS. Some functions are actually named | ||
2219 | something starting with __ and the normal name is an alias. */ | ||
2220 | #if defined __stub_$2 || defined __stub___$2 | ||
2221 | choke me | ||
2222 | #endif | ||
2223 | |||
2224 | int | ||
2225 | main () | ||
2226 | { | ||
2227 | return $2 (); | ||
2228 | ; | ||
2229 | return 0; | ||
2230 | } | ||
2231 | _ACEOF | ||
2232 | if ac_fn_c_try_link "$LINENO"; then : | ||
2233 | eval "$3=yes" | ||
2234 | else | ||
2235 | eval "$3=no" | ||
2236 | fi | ||
2237 | rm -f core conftest.err conftest.$ac_objext \ | ||
2238 | conftest$ac_exeext conftest.$ac_ext | ||
2239 | fi | ||
2240 | eval ac_res=\$$3 | ||
2241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2242 | $as_echo "$ac_res" >&6; } | ||
2243 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2244 | |||
2245 | } # ac_fn_c_check_func | ||
2246 | |||
2247 | # ac_fn_cxx_try_compile LINENO | ||
2248 | # ---------------------------- | ||
2249 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
2250 | ac_fn_cxx_try_compile () | ||
2251 | { | ||
2252 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2253 | rm -f conftest.$ac_objext | ||
2254 | if { { ac_try="$ac_compile" | ||
2255 | case "(($ac_try" in | ||
2256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2257 | *) ac_try_echo=$ac_try;; | ||
2258 | esac | ||
2259 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2260 | $as_echo "$ac_try_echo"; } >&5 | ||
2261 | (eval "$ac_compile") 2>conftest.err | ||
2262 | ac_status=$? | ||
2263 | if test -s conftest.err; then | ||
2264 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2265 | cat conftest.er1 >&5 | ||
2266 | mv -f conftest.er1 conftest.err | ||
2267 | fi | ||
2268 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2269 | test $ac_status = 0; } && { | ||
2270 | test -z "$ac_cxx_werror_flag" || | ||
2271 | test ! -s conftest.err | ||
2272 | } && test -s conftest.$ac_objext; then : | ||
2273 | ac_retval=0 | ||
2274 | else | ||
2275 | $as_echo "$as_me: failed program was:" >&5 | ||
2276 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2277 | |||
2278 | ac_retval=1 | ||
2279 | fi | ||
2280 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2281 | as_fn_set_status $ac_retval | ||
2282 | |||
2283 | } # ac_fn_cxx_try_compile | ||
2284 | |||
2285 | # ac_fn_cxx_try_cpp LINENO | ||
2286 | # ------------------------ | ||
2287 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||
2288 | ac_fn_cxx_try_cpp () | ||
2289 | { | ||
2290 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2291 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||
2292 | case "(($ac_try" in | ||
2293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2294 | *) ac_try_echo=$ac_try;; | ||
2295 | esac | ||
2296 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2297 | $as_echo "$ac_try_echo"; } >&5 | ||
2298 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||
2299 | ac_status=$? | ||
2300 | if test -s conftest.err; then | ||
2301 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2302 | cat conftest.er1 >&5 | ||
2303 | mv -f conftest.er1 conftest.err | ||
2304 | fi | ||
2305 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2306 | test $ac_status = 0; } > conftest.i && { | ||
2307 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | ||
2308 | test ! -s conftest.err | ||
2309 | }; then : | ||
2310 | ac_retval=0 | ||
2311 | else | ||
2312 | $as_echo "$as_me: failed program was:" >&5 | ||
2313 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2314 | |||
2315 | ac_retval=1 | ||
2316 | fi | ||
2317 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2318 | as_fn_set_status $ac_retval | ||
2319 | |||
2320 | } # ac_fn_cxx_try_cpp | ||
2321 | |||
2322 | # ac_fn_cxx_try_link LINENO | ||
2323 | # ------------------------- | ||
2324 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
2325 | ac_fn_cxx_try_link () | ||
2326 | { | ||
2327 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2328 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
2329 | if { { ac_try="$ac_link" | ||
2330 | case "(($ac_try" in | ||
2331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2332 | *) ac_try_echo=$ac_try;; | ||
2333 | esac | ||
2334 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2335 | $as_echo "$ac_try_echo"; } >&5 | ||
2336 | (eval "$ac_link") 2>conftest.err | ||
2337 | ac_status=$? | ||
2338 | if test -s conftest.err; then | ||
2339 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2340 | cat conftest.er1 >&5 | ||
2341 | mv -f conftest.er1 conftest.err | ||
2342 | fi | ||
2343 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2344 | test $ac_status = 0; } && { | ||
2345 | test -z "$ac_cxx_werror_flag" || | ||
2346 | test ! -s conftest.err | ||
2347 | } && test -s conftest$ac_exeext && { | ||
2348 | test "$cross_compiling" = yes || | ||
2349 | $as_test_x conftest$ac_exeext | ||
2350 | }; then : | ||
2351 | ac_retval=0 | ||
2352 | else | ||
2353 | $as_echo "$as_me: failed program was:" >&5 | ||
2354 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2355 | |||
2356 | ac_retval=1 | ||
2357 | fi | ||
2358 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
2359 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
2360 | # interfere with the next link command; also delete a directory that is | ||
2361 | # left behind by Apple's compiler. We do this before executing the actions. | ||
2362 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
2363 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2364 | as_fn_set_status $ac_retval | ||
2365 | |||
2366 | } # ac_fn_cxx_try_link | ||
2367 | |||
2368 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | ||
2369 | # -------------------------------------------- | ||
2370 | # Tries to find the compile-time value of EXPR in a program that includes | ||
2371 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | ||
2372 | # computed | ||
2373 | ac_fn_c_compute_int () | ||
2374 | { | ||
2375 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2376 | if test "$cross_compiling" = yes; then | ||
2377 | # Depending upon the size, compute the lo and hi bounds. | ||
2378 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2379 | /* end confdefs.h. */ | ||
2380 | $4 | ||
2381 | int | ||
2382 | main () | ||
2383 | { | ||
2384 | static int test_array [1 - 2 * !(($2) >= 0)]; | ||
2385 | test_array [0] = 0 | ||
2386 | |||
2387 | ; | ||
2388 | return 0; | ||
2389 | } | ||
2390 | _ACEOF | ||
2391 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2392 | ac_lo=0 ac_mid=0 | ||
2393 | while :; do | ||
2394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2395 | /* end confdefs.h. */ | ||
2396 | $4 | ||
2397 | int | ||
2398 | main () | ||
2399 | { | ||
2400 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||
2401 | test_array [0] = 0 | ||
2402 | |||
2403 | ; | ||
2404 | return 0; | ||
2405 | } | ||
2406 | _ACEOF | ||
2407 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2408 | ac_hi=$ac_mid; break | ||
2409 | else | ||
2410 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | ||
2411 | if test $ac_lo -le $ac_mid; then | ||
2412 | ac_lo= ac_hi= | ||
2413 | break | ||
2414 | fi | ||
2415 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | ||
2416 | fi | ||
2417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2418 | done | ||
2419 | else | ||
2420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2421 | /* end confdefs.h. */ | ||
2422 | $4 | ||
2423 | int | ||
2424 | main () | ||
2425 | { | ||
2426 | static int test_array [1 - 2 * !(($2) < 0)]; | ||
2427 | test_array [0] = 0 | ||
2428 | |||
2429 | ; | ||
2430 | return 0; | ||
2431 | } | ||
2432 | _ACEOF | ||
2433 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2434 | ac_hi=-1 ac_mid=-1 | ||
2435 | while :; do | ||
2436 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2437 | /* end confdefs.h. */ | ||
2438 | $4 | ||
2439 | int | ||
2440 | main () | ||
2441 | { | ||
2442 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | ||
2443 | test_array [0] = 0 | ||
2444 | |||
2445 | ; | ||
2446 | return 0; | ||
2447 | } | ||
2448 | _ACEOF | ||
2449 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2450 | ac_lo=$ac_mid; break | ||
2451 | else | ||
2452 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | ||
2453 | if test $ac_mid -le $ac_hi; then | ||
2454 | ac_lo= ac_hi= | ||
2455 | break | ||
2456 | fi | ||
2457 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | ||
2458 | fi | ||
2459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2460 | done | ||
2461 | else | ||
2462 | ac_lo= ac_hi= | ||
2463 | fi | ||
2464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2465 | fi | ||
2466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2467 | # Binary search between lo and hi bounds. | ||
2468 | while test "x$ac_lo" != "x$ac_hi"; do | ||
2469 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | ||
2470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2471 | /* end confdefs.h. */ | ||
2472 | $4 | ||
2473 | int | ||
2474 | main () | ||
2475 | { | ||
2476 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||
2477 | test_array [0] = 0 | ||
2478 | |||
2479 | ; | ||
2480 | return 0; | ||
2481 | } | ||
2482 | _ACEOF | ||
2483 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2484 | ac_hi=$ac_mid | ||
2485 | else | ||
2486 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | ||
2487 | fi | ||
2488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2489 | done | ||
2490 | case $ac_lo in #(( | ||
2491 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | ||
2492 | '') ac_retval=1 ;; | ||
2493 | esac | ||
2494 | else | ||
2495 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2496 | /* end confdefs.h. */ | ||
2497 | $4 | ||
2498 | static long int longval () { return $2; } | ||
2499 | static unsigned long int ulongval () { return $2; } | ||
2500 | #include <stdio.h> | ||
2501 | #include <stdlib.h> | ||
2502 | int | ||
2503 | main () | ||
2504 | { | ||
2505 | |||
2506 | FILE *f = fopen ("conftest.val", "w"); | ||
2507 | if (! f) | ||
2508 | return 1; | ||
2509 | if (($2) < 0) | ||
2510 | { | ||
2511 | long int i = longval (); | ||
2512 | if (i != ($2)) | ||
2513 | return 1; | ||
2514 | fprintf (f, "%ld", i); | ||
2515 | } | ||
2516 | else | ||
2517 | { | ||
2518 | unsigned long int i = ulongval (); | ||
2519 | if (i != ($2)) | ||
2520 | return 1; | ||
2521 | fprintf (f, "%lu", i); | ||
2522 | } | ||
2523 | /* Do not output a trailing newline, as this causes \r\n confusion | ||
2524 | on some platforms. */ | ||
2525 | return ferror (f) || fclose (f) != 0; | ||
2526 | |||
2527 | ; | ||
2528 | return 0; | ||
2529 | } | ||
2530 | _ACEOF | ||
2531 | if ac_fn_c_try_run "$LINENO"; then : | ||
2532 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | ||
2533 | else | ||
2534 | ac_retval=1 | ||
2535 | fi | ||
2536 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
2537 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
2538 | rm -f conftest.val | ||
2539 | |||
2540 | fi | ||
2541 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2542 | as_fn_set_status $ac_retval | ||
2543 | |||
2544 | } # ac_fn_c_compute_int | ||
2545 | |||
2546 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | ||
2547 | # ------------------------------------------- | ||
2548 | # Tests whether TYPE exists after having included INCLUDES, setting cache | ||
2549 | # variable VAR accordingly. | ||
2550 | ac_fn_c_check_type () | ||
2551 | { | ||
2552 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2554 | $as_echo_n "checking for $2... " >&6; } | ||
2555 | if eval "test \"\${$3+set}\"" = set; then : | ||
2556 | $as_echo_n "(cached) " >&6 | ||
2557 | else | ||
2558 | eval "$3=no" | ||
2559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2560 | /* end confdefs.h. */ | ||
2561 | $4 | ||
2562 | int | ||
2563 | main () | ||
2564 | { | ||
2565 | if (sizeof ($2)) | ||
2566 | return 0; | ||
2567 | ; | ||
2568 | return 0; | ||
2569 | } | ||
2570 | _ACEOF | ||
2571 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2573 | /* end confdefs.h. */ | ||
2574 | $4 | ||
2575 | int | ||
2576 | main () | ||
2577 | { | ||
2578 | if (sizeof (($2))) | ||
2579 | return 0; | ||
2580 | ; | ||
2581 | return 0; | ||
2582 | } | ||
2583 | _ACEOF | ||
2584 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2585 | |||
2586 | else | ||
2587 | eval "$3=yes" | ||
2588 | fi | ||
2589 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2590 | fi | ||
2591 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2592 | fi | ||
2593 | eval ac_res=\$$3 | ||
2594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2595 | $as_echo "$ac_res" >&6; } | ||
2596 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2597 | |||
2598 | } # ac_fn_c_check_type | ||
2599 | cat >config.log <<_ACEOF | ||
2600 | This file contains any messages produced by compilers while | ||
2601 | running configure, to aid debugging if configure makes a mistake. | ||
2602 | |||
2603 | It was created by eina $as_me 1.2.0-alpha, which was | ||
2604 | generated by GNU Autoconf 2.67. Invocation command line was | ||
2605 | |||
2606 | $ $0 $@ | ||
2607 | |||
2608 | _ACEOF | ||
2609 | exec 5>>config.log | ||
2610 | { | ||
2611 | cat <<_ASUNAME | ||
2612 | ## --------- ## | ||
2613 | ## Platform. ## | ||
2614 | ## --------- ## | ||
2615 | |||
2616 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
2617 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
2618 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
2619 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
2620 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
2621 | |||
2622 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
2623 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
2624 | |||
2625 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
2626 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
2627 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
2628 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
2629 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
2630 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
2631 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
2632 | |||
2633 | _ASUNAME | ||
2634 | |||
2635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2636 | for as_dir in $PATH | ||
2637 | do | ||
2638 | IFS=$as_save_IFS | ||
2639 | test -z "$as_dir" && as_dir=. | ||
2640 | $as_echo "PATH: $as_dir" | ||
2641 | done | ||
2642 | IFS=$as_save_IFS | ||
2643 | |||
2644 | } >&5 | ||
2645 | |||
2646 | cat >&5 <<_ACEOF | ||
2647 | |||
2648 | |||
2649 | ## ----------- ## | ||
2650 | ## Core tests. ## | ||
2651 | ## ----------- ## | ||
2652 | |||
2653 | _ACEOF | ||
2654 | |||
2655 | |||
2656 | # Keep a trace of the command line. | ||
2657 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
2658 | # Strip out --silent because we don't want to record it for future runs. | ||
2659 | # Also quote any args containing shell meta-characters. | ||
2660 | # Make two passes to allow for proper duplicate-argument suppression. | ||
2661 | ac_configure_args= | ||
2662 | ac_configure_args0= | ||
2663 | ac_configure_args1= | ||
2664 | ac_must_keep_next=false | ||
2665 | for ac_pass in 1 2 | ||
2666 | do | ||
2667 | for ac_arg | ||
2668 | do | ||
2669 | case $ac_arg in | ||
2670 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
2671 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
2672 | | -silent | --silent | --silen | --sile | --sil) | ||
2673 | continue ;; | ||
2674 | *\'*) | ||
2675 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
2676 | esac | ||
2677 | case $ac_pass in | ||
2678 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | ||
2679 | 2) | ||
2680 | as_fn_append ac_configure_args1 " '$ac_arg'" | ||
2681 | if test $ac_must_keep_next = true; then | ||
2682 | ac_must_keep_next=false # Got value, back to normal. | ||
2683 | else | ||
2684 | case $ac_arg in | ||
2685 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
2686 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
2687 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
2688 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
2689 | case "$ac_configure_args0 " in | ||
2690 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
2691 | esac | ||
2692 | ;; | ||
2693 | -* ) ac_must_keep_next=true ;; | ||
2694 | esac | ||
2695 | fi | ||
2696 | as_fn_append ac_configure_args " '$ac_arg'" | ||
2697 | ;; | ||
2698 | esac | ||
2699 | done | ||
2700 | done | ||
2701 | { ac_configure_args0=; unset ac_configure_args0;} | ||
2702 | { ac_configure_args1=; unset ac_configure_args1;} | ||
2703 | |||
2704 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
2705 | # config.log. We remove comments because anyway the quotes in there | ||
2706 | # would cause problems or look ugly. | ||
2707 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
2708 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
2709 | trap 'exit_status=$? | ||
2710 | # Save into config.log some information that might help in debugging. | ||
2711 | { | ||
2712 | echo | ||
2713 | |||
2714 | $as_echo "## ---------------- ## | ||
2715 | ## Cache variables. ## | ||
2716 | ## ---------------- ##" | ||
2717 | echo | ||
2718 | # The following way of writing the cache mishandles newlines in values, | ||
2719 | ( | ||
2720 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
2721 | eval ac_val=\$$ac_var | ||
2722 | case $ac_val in #( | ||
2723 | *${as_nl}*) | ||
2724 | case $ac_var in #( | ||
2725 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
2726 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
2727 | esac | ||
2728 | case $ac_var in #( | ||
2729 | _ | IFS | as_nl) ;; #( | ||
2730 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
2731 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
2732 | esac ;; | ||
2733 | esac | ||
2734 | done | ||
2735 | (set) 2>&1 | | ||
2736 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
2737 | *${as_nl}ac_space=\ *) | ||
2738 | sed -n \ | ||
2739 | "s/'\''/'\''\\\\'\'''\''/g; | ||
2740 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
2741 | ;; #( | ||
2742 | *) | ||
2743 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
2744 | ;; | ||
2745 | esac | | ||
2746 | sort | ||
2747 | ) | ||
2748 | echo | ||
2749 | |||
2750 | $as_echo "## ----------------- ## | ||
2751 | ## Output variables. ## | ||
2752 | ## ----------------- ##" | ||
2753 | echo | ||
2754 | for ac_var in $ac_subst_vars | ||
2755 | do | ||
2756 | eval ac_val=\$$ac_var | ||
2757 | case $ac_val in | ||
2758 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
2759 | esac | ||
2760 | $as_echo "$ac_var='\''$ac_val'\''" | ||
2761 | done | sort | ||
2762 | echo | ||
2763 | |||
2764 | if test -n "$ac_subst_files"; then | ||
2765 | $as_echo "## ------------------- ## | ||
2766 | ## File substitutions. ## | ||
2767 | ## ------------------- ##" | ||
2768 | echo | ||
2769 | for ac_var in $ac_subst_files | ||
2770 | do | ||
2771 | eval ac_val=\$$ac_var | ||
2772 | case $ac_val in | ||
2773 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
2774 | esac | ||
2775 | $as_echo "$ac_var='\''$ac_val'\''" | ||
2776 | done | sort | ||
2777 | echo | ||
2778 | fi | ||
2779 | |||
2780 | if test -s confdefs.h; then | ||
2781 | $as_echo "## ----------- ## | ||
2782 | ## confdefs.h. ## | ||
2783 | ## ----------- ##" | ||
2784 | echo | ||
2785 | cat confdefs.h | ||
2786 | echo | ||
2787 | fi | ||
2788 | test "$ac_signal" != 0 && | ||
2789 | $as_echo "$as_me: caught signal $ac_signal" | ||
2790 | $as_echo "$as_me: exit $exit_status" | ||
2791 | } >&5 | ||
2792 | rm -f core *.core core.conftest.* && | ||
2793 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
2794 | exit $exit_status | ||
2795 | ' 0 | ||
2796 | for ac_signal in 1 2 13 15; do | ||
2797 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | ||
2798 | done | ||
2799 | ac_signal=0 | ||
2800 | |||
2801 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
2802 | rm -f -r conftest* confdefs.h | ||
2803 | |||
2804 | $as_echo "/* confdefs.h */" > confdefs.h | ||
2805 | |||
2806 | # Predefined preprocessor variables. | ||
2807 | |||
2808 | cat >>confdefs.h <<_ACEOF | ||
2809 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
2810 | _ACEOF | ||
2811 | |||
2812 | cat >>confdefs.h <<_ACEOF | ||
2813 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
2814 | _ACEOF | ||
2815 | |||
2816 | cat >>confdefs.h <<_ACEOF | ||
2817 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
2818 | _ACEOF | ||
2819 | |||
2820 | cat >>confdefs.h <<_ACEOF | ||
2821 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
2822 | _ACEOF | ||
2823 | |||
2824 | cat >>confdefs.h <<_ACEOF | ||
2825 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
2826 | _ACEOF | ||
2827 | |||
2828 | cat >>confdefs.h <<_ACEOF | ||
2829 | #define PACKAGE_URL "$PACKAGE_URL" | ||
2830 | _ACEOF | ||
2831 | |||
2832 | |||
2833 | # Let the site file select an alternate cache file if it wants to. | ||
2834 | # Prefer an explicitly selected file to automatically selected ones. | ||
2835 | ac_site_file1=NONE | ||
2836 | ac_site_file2=NONE | ||
2837 | if test -n "$CONFIG_SITE"; then | ||
2838 | # We do not want a PATH search for config.site. | ||
2839 | case $CONFIG_SITE in #(( | ||
2840 | -*) ac_site_file1=./$CONFIG_SITE;; | ||
2841 | */*) ac_site_file1=$CONFIG_SITE;; | ||
2842 | *) ac_site_file1=./$CONFIG_SITE;; | ||
2843 | esac | ||
2844 | elif test "x$prefix" != xNONE; then | ||
2845 | ac_site_file1=$prefix/share/config.site | ||
2846 | ac_site_file2=$prefix/etc/config.site | ||
2847 | else | ||
2848 | ac_site_file1=$ac_default_prefix/share/config.site | ||
2849 | ac_site_file2=$ac_default_prefix/etc/config.site | ||
2850 | fi | ||
2851 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | ||
2852 | do | ||
2853 | test "x$ac_site_file" = xNONE && continue | ||
2854 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | ||
2855 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | ||
2856 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | ||
2857 | sed 's/^/| /' "$ac_site_file" >&5 | ||
2858 | . "$ac_site_file" \ | ||
2859 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2860 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2861 | as_fn_error $? "failed to load site script $ac_site_file | ||
2862 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
2863 | fi | ||
2864 | done | ||
2865 | |||
2866 | if test -r "$cache_file"; then | ||
2867 | # Some versions of bash will fail to source /dev/null (special files | ||
2868 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | ||
2869 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | ||
2870 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | ||
2871 | $as_echo "$as_me: loading cache $cache_file" >&6;} | ||
2872 | case $cache_file in | ||
2873 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
2874 | *) . "./$cache_file";; | ||
2875 | esac | ||
2876 | fi | ||
2877 | else | ||
2878 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | ||
2879 | $as_echo "$as_me: creating cache $cache_file" >&6;} | ||
2880 | >$cache_file | ||
2881 | fi | ||
2882 | |||
2883 | # Check that the precious variables saved in the cache have kept the same | ||
2884 | # value. | ||
2885 | ac_cache_corrupted=false | ||
2886 | for ac_var in $ac_precious_vars; do | ||
2887 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
2888 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
2889 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
2890 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
2891 | case $ac_old_set,$ac_new_set in | ||
2892 | set,) | ||
2893 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
2894 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
2895 | ac_cache_corrupted=: ;; | ||
2896 | ,set) | ||
2897 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | ||
2898 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
2899 | ac_cache_corrupted=: ;; | ||
2900 | ,);; | ||
2901 | *) | ||
2902 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
2903 | # differences in whitespace do not lead to failure. | ||
2904 | ac_old_val_w=`echo x $ac_old_val` | ||
2905 | ac_new_val_w=`echo x $ac_new_val` | ||
2906 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | ||
2907 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | ||
2908 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
2909 | ac_cache_corrupted=: | ||
2910 | else | ||
2911 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | ||
2912 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | ||
2913 | eval $ac_var=\$ac_old_val | ||
2914 | fi | ||
2915 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | ||
2916 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | ||
2917 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | ||
2918 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | ||
2919 | fi;; | ||
2920 | esac | ||
2921 | # Pass precious variables to config.status. | ||
2922 | if test "$ac_new_set" = set; then | ||
2923 | case $ac_new_val in | ||
2924 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
2925 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
2926 | esac | ||
2927 | case " $ac_configure_args " in | ||
2928 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
2929 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | ||
2930 | esac | ||
2931 | fi | ||
2932 | done | ||
2933 | if $ac_cache_corrupted; then | ||
2934 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2935 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2936 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | ||
2937 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
2938 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | ||
2939 | fi | ||
2940 | ## -------------------- ## | ||
2941 | ## Main body of script. ## | ||
2942 | ## -------------------- ## | ||
2943 | |||
2944 | ac_ext=c | ||
2945 | ac_cpp='$CPP $CPPFLAGS' | ||
2946 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2947 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2948 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2949 | |||
2950 | |||
2951 | |||
2952 | |||
2953 | |||
2954 | |||
2955 | ac_config_headers="$ac_config_headers config.h" | ||
2956 | |||
2957 | |||
2958 | |||
2959 | |||
2960 | am__api_version='1.11' | ||
2961 | |||
2962 | ac_aux_dir= | ||
2963 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
2964 | if test -f "$ac_dir/install-sh"; then | ||
2965 | ac_aux_dir=$ac_dir | ||
2966 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
2967 | break | ||
2968 | elif test -f "$ac_dir/install.sh"; then | ||
2969 | ac_aux_dir=$ac_dir | ||
2970 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
2971 | break | ||
2972 | elif test -f "$ac_dir/shtool"; then | ||
2973 | ac_aux_dir=$ac_dir | ||
2974 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
2975 | break | ||
2976 | fi | ||
2977 | done | ||
2978 | if test -z "$ac_aux_dir"; then | ||
2979 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | ||
2980 | fi | ||
2981 | |||
2982 | # These three variables are undocumented and unsupported, | ||
2983 | # and are intended to be withdrawn in a future Autoconf release. | ||
2984 | # They can cause serious problems if a builder's source tree is in a directory | ||
2985 | # whose full name contains unusual characters. | ||
2986 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
2987 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
2988 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
2989 | |||
2990 | |||
2991 | # Find a good install program. We prefer a C program (faster), | ||
2992 | # so one script is as good as another. But avoid the broken or | ||
2993 | # incompatible versions: | ||
2994 | # SysV /etc/install, /usr/sbin/install | ||
2995 | # SunOS /usr/etc/install | ||
2996 | # IRIX /sbin/install | ||
2997 | # AIX /bin/install | ||
2998 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
2999 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
3000 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
3001 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
3002 | # OS/2's system install, which has a completely different semantic | ||
3003 | # ./install, which can be erroneously created by make from ./install.sh. | ||
3004 | # Reject install programs that cannot install multiple files. | ||
3005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | ||
3006 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | ||
3007 | if test -z "$INSTALL"; then | ||
3008 | if test "${ac_cv_path_install+set}" = set; then : | ||
3009 | $as_echo_n "(cached) " >&6 | ||
3010 | else | ||
3011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3012 | for as_dir in $PATH | ||
3013 | do | ||
3014 | IFS=$as_save_IFS | ||
3015 | test -z "$as_dir" && as_dir=. | ||
3016 | # Account for people who put trailing slashes in PATH elements. | ||
3017 | case $as_dir/ in #(( | ||
3018 | ./ | .// | /[cC]/* | \ | ||
3019 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
3020 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | ||
3021 | /usr/ucb/* ) ;; | ||
3022 | *) | ||
3023 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
3024 | # Don't use installbsd from OSF since it installs stuff as root | ||
3025 | # by default. | ||
3026 | for ac_prog in ginstall scoinst install; do | ||
3027 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3028 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
3029 | if test $ac_prog = install && | ||
3030 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
3031 | # AIX install. It has an incompatible calling convention. | ||
3032 | : | ||
3033 | elif test $ac_prog = install && | ||
3034 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
3035 | # program-specific install script used by HP pwplus--don't use. | ||
3036 | : | ||
3037 | else | ||
3038 | rm -rf conftest.one conftest.two conftest.dir | ||
3039 | echo one > conftest.one | ||
3040 | echo two > conftest.two | ||
3041 | mkdir conftest.dir | ||
3042 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | ||
3043 | test -s conftest.one && test -s conftest.two && | ||
3044 | test -s conftest.dir/conftest.one && | ||
3045 | test -s conftest.dir/conftest.two | ||
3046 | then | ||
3047 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
3048 | break 3 | ||
3049 | fi | ||
3050 | fi | ||
3051 | fi | ||
3052 | done | ||
3053 | done | ||
3054 | ;; | ||
3055 | esac | ||
3056 | |||
3057 | done | ||
3058 | IFS=$as_save_IFS | ||
3059 | |||
3060 | rm -rf conftest.one conftest.two conftest.dir | ||
3061 | |||
3062 | fi | ||
3063 | if test "${ac_cv_path_install+set}" = set; then | ||
3064 | INSTALL=$ac_cv_path_install | ||
3065 | else | ||
3066 | # As a last resort, use the slow shell script. Don't cache a | ||
3067 | # value for INSTALL within a source directory, because that will | ||
3068 | # break other packages using the cache if that directory is | ||
3069 | # removed, or if the value is a relative name. | ||
3070 | INSTALL=$ac_install_sh | ||
3071 | fi | ||
3072 | fi | ||
3073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | ||
3074 | $as_echo "$INSTALL" >&6; } | ||
3075 | |||
3076 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
3077 | # It thinks the first close brace ends the variable substitution. | ||
3078 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
3079 | |||
3080 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
3081 | |||
3082 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
3083 | |||
3084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | ||
3085 | $as_echo_n "checking whether build environment is sane... " >&6; } | ||
3086 | # Just in case | ||
3087 | sleep 1 | ||
3088 | echo timestamp > conftest.file | ||
3089 | # Reject unsafe characters in $srcdir or the absolute working directory | ||
3090 | # name. Accept space and tab only in the latter. | ||
3091 | am_lf=' | ||
3092 | ' | ||
3093 | case `pwd` in | ||
3094 | *[\\\"\#\$\&\'\`$am_lf]*) | ||
3095 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;; | ||
3096 | esac | ||
3097 | case $srcdir in | ||
3098 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | ||
3099 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;; | ||
3100 | esac | ||
3101 | |||
3102 | # Do `set' in a subshell so we don't clobber the current shell's | ||
3103 | # arguments. Must try -L first in case configure is actually a | ||
3104 | # symlink; some systems play weird games with the mod time of symlinks | ||
3105 | # (eg FreeBSD returns the mod time of the symlink's containing | ||
3106 | # directory). | ||
3107 | if ( | ||
3108 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | ||
3109 | if test "$*" = "X"; then | ||
3110 | # -L didn't work. | ||
3111 | set X `ls -t "$srcdir/configure" conftest.file` | ||
3112 | fi | ||
3113 | rm -f conftest.file | ||
3114 | if test "$*" != "X $srcdir/configure conftest.file" \ | ||
3115 | && test "$*" != "X conftest.file $srcdir/configure"; then | ||
3116 | |||
3117 | # If neither matched, then we have a broken ls. This can happen | ||
3118 | # if, for instance, CONFIG_SHELL is bash and it inherits a | ||
3119 | # broken ls alias from the environment. This has actually | ||
3120 | # happened. Such a system could not be considered "sane". | ||
3121 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | ||
3122 | alias in your environment" "$LINENO" 5 | ||
3123 | fi | ||
3124 | |||
3125 | test "$2" = conftest.file | ||
3126 | ) | ||
3127 | then | ||
3128 | # Ok. | ||
3129 | : | ||
3130 | else | ||
3131 | as_fn_error $? "newly created file is older than distributed files! | ||
3132 | Check your system clock" "$LINENO" 5 | ||
3133 | fi | ||
3134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
3135 | $as_echo "yes" >&6; } | ||
3136 | test "$program_prefix" != NONE && | ||
3137 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | ||
3138 | # Use a double $ so make ignores it. | ||
3139 | test "$program_suffix" != NONE && | ||
3140 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | ||
3141 | # Double any \ or $. | ||
3142 | # By default was `s,x,x', remove it if useless. | ||
3143 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | ||
3144 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | ||
3145 | |||
3146 | # expand $ac_aux_dir to an absolute path | ||
3147 | am_aux_dir=`cd $ac_aux_dir && pwd` | ||
3148 | |||
3149 | if test x"${MISSING+set}" != xset; then | ||
3150 | case $am_aux_dir in | ||
3151 | *\ * | *\ *) | ||
3152 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | ||
3153 | *) | ||
3154 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | ||
3155 | esac | ||
3156 | fi | ||
3157 | # Use eval to expand $SHELL | ||
3158 | if eval "$MISSING --run true"; then | ||
3159 | am_missing_run="$MISSING --run " | ||
3160 | else | ||
3161 | am_missing_run= | ||
3162 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | ||
3163 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | ||
3164 | fi | ||
3165 | |||
3166 | if test x"${install_sh}" != xset; then | ||
3167 | case $am_aux_dir in | ||
3168 | *\ * | *\ *) | ||
3169 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | ||
3170 | *) | ||
3171 | install_sh="\${SHELL} $am_aux_dir/install-sh" | ||
3172 | esac | ||
3173 | fi | ||
3174 | |||
3175 | # Installed binaries are usually stripped using `strip' when the user | ||
3176 | # run `make install-strip'. However `strip' might not be the right | ||
3177 | # tool to use in cross-compilation environments, therefore Automake | ||
3178 | # will honor the `STRIP' environment variable to overrule this program. | ||
3179 | if test "$cross_compiling" != no; then | ||
3180 | if test -n "$ac_tool_prefix"; then | ||
3181 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
3182 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
3183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3184 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3185 | if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
3186 | $as_echo_n "(cached) " >&6 | ||
3187 | else | ||
3188 | if test -n "$STRIP"; then | ||
3189 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
3190 | else | ||
3191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3192 | for as_dir in $PATH | ||
3193 | do | ||
3194 | IFS=$as_save_IFS | ||
3195 | test -z "$as_dir" && as_dir=. | ||
3196 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3197 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3198 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
3199 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3200 | break 2 | ||
3201 | fi | ||
3202 | done | ||
3203 | done | ||
3204 | IFS=$as_save_IFS | ||
3205 | |||
3206 | fi | ||
3207 | fi | ||
3208 | STRIP=$ac_cv_prog_STRIP | ||
3209 | if test -n "$STRIP"; then | ||
3210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
3211 | $as_echo "$STRIP" >&6; } | ||
3212 | else | ||
3213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3214 | $as_echo "no" >&6; } | ||
3215 | fi | ||
3216 | |||
3217 | |||
3218 | fi | ||
3219 | if test -z "$ac_cv_prog_STRIP"; then | ||
3220 | ac_ct_STRIP=$STRIP | ||
3221 | # Extract the first word of "strip", so it can be a program name with args. | ||
3222 | set dummy strip; ac_word=$2 | ||
3223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3224 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3225 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
3226 | $as_echo_n "(cached) " >&6 | ||
3227 | else | ||
3228 | if test -n "$ac_ct_STRIP"; then | ||
3229 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
3230 | else | ||
3231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3232 | for as_dir in $PATH | ||
3233 | do | ||
3234 | IFS=$as_save_IFS | ||
3235 | test -z "$as_dir" && as_dir=. | ||
3236 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3237 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3238 | ac_cv_prog_ac_ct_STRIP="strip" | ||
3239 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3240 | break 2 | ||
3241 | fi | ||
3242 | done | ||
3243 | done | ||
3244 | IFS=$as_save_IFS | ||
3245 | |||
3246 | fi | ||
3247 | fi | ||
3248 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
3249 | if test -n "$ac_ct_STRIP"; then | ||
3250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
3251 | $as_echo "$ac_ct_STRIP" >&6; } | ||
3252 | else | ||
3253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3254 | $as_echo "no" >&6; } | ||
3255 | fi | ||
3256 | |||
3257 | if test "x$ac_ct_STRIP" = x; then | ||
3258 | STRIP=":" | ||
3259 | else | ||
3260 | case $cross_compiling:$ac_tool_warned in | ||
3261 | yes:) | ||
3262 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3263 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3264 | ac_tool_warned=yes ;; | ||
3265 | esac | ||
3266 | STRIP=$ac_ct_STRIP | ||
3267 | fi | ||
3268 | else | ||
3269 | STRIP="$ac_cv_prog_STRIP" | ||
3270 | fi | ||
3271 | |||
3272 | fi | ||
3273 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | ||
3274 | |||
3275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | ||
3276 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | ||
3277 | if test -z "$MKDIR_P"; then | ||
3278 | if test "${ac_cv_path_mkdir+set}" = set; then : | ||
3279 | $as_echo_n "(cached) " >&6 | ||
3280 | else | ||
3281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3282 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | ||
3283 | do | ||
3284 | IFS=$as_save_IFS | ||
3285 | test -z "$as_dir" && as_dir=. | ||
3286 | for ac_prog in mkdir gmkdir; do | ||
3287 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3288 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | ||
3289 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | ||
3290 | 'mkdir (GNU coreutils) '* | \ | ||
3291 | 'mkdir (coreutils) '* | \ | ||
3292 | 'mkdir (fileutils) '4.1*) | ||
3293 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | ||
3294 | break 3;; | ||
3295 | esac | ||
3296 | done | ||
3297 | done | ||
3298 | done | ||
3299 | IFS=$as_save_IFS | ||
3300 | |||
3301 | fi | ||
3302 | |||
3303 | test -d ./--version && rmdir ./--version | ||
3304 | if test "${ac_cv_path_mkdir+set}" = set; then | ||
3305 | MKDIR_P="$ac_cv_path_mkdir -p" | ||
3306 | else | ||
3307 | # As a last resort, use the slow shell script. Don't cache a | ||
3308 | # value for MKDIR_P within a source directory, because that will | ||
3309 | # break other packages using the cache if that directory is | ||
3310 | # removed, or if the value is a relative name. | ||
3311 | MKDIR_P="$ac_install_sh -d" | ||
3312 | fi | ||
3313 | fi | ||
3314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | ||
3315 | $as_echo "$MKDIR_P" >&6; } | ||
3316 | |||
3317 | mkdir_p="$MKDIR_P" | ||
3318 | case $mkdir_p in | ||
3319 | [\\/$]* | ?:[\\/]*) ;; | ||
3320 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | ||
3321 | esac | ||
3322 | |||
3323 | for ac_prog in gawk mawk nawk awk | ||
3324 | do | ||
3325 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3326 | set dummy $ac_prog; ac_word=$2 | ||
3327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3328 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3329 | if test "${ac_cv_prog_AWK+set}" = set; then : | ||
3330 | $as_echo_n "(cached) " >&6 | ||
3331 | else | ||
3332 | if test -n "$AWK"; then | ||
3333 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
3334 | else | ||
3335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3336 | for as_dir in $PATH | ||
3337 | do | ||
3338 | IFS=$as_save_IFS | ||
3339 | test -z "$as_dir" && as_dir=. | ||
3340 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3341 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3342 | ac_cv_prog_AWK="$ac_prog" | ||
3343 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3344 | break 2 | ||
3345 | fi | ||
3346 | done | ||
3347 | done | ||
3348 | IFS=$as_save_IFS | ||
3349 | |||
3350 | fi | ||
3351 | fi | ||
3352 | AWK=$ac_cv_prog_AWK | ||
3353 | if test -n "$AWK"; then | ||
3354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | ||
3355 | $as_echo "$AWK" >&6; } | ||
3356 | else | ||
3357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3358 | $as_echo "no" >&6; } | ||
3359 | fi | ||
3360 | |||
3361 | |||
3362 | test -n "$AWK" && break | ||
3363 | done | ||
3364 | |||
3365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | ||
3366 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | ||
3367 | set x ${MAKE-make} | ||
3368 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | ||
3369 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : | ||
3370 | $as_echo_n "(cached) " >&6 | ||
3371 | else | ||
3372 | cat >conftest.make <<\_ACEOF | ||
3373 | SHELL = /bin/sh | ||
3374 | all: | ||
3375 | @echo '@@@%%%=$(MAKE)=@@@%%%' | ||
3376 | _ACEOF | ||
3377 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | ||
3378 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | ||
3379 | *@@@%%%=?*=@@@%%%*) | ||
3380 | eval ac_cv_prog_make_${ac_make}_set=yes;; | ||
3381 | *) | ||
3382 | eval ac_cv_prog_make_${ac_make}_set=no;; | ||
3383 | esac | ||
3384 | rm -f conftest.make | ||
3385 | fi | ||
3386 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | ||
3387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
3388 | $as_echo "yes" >&6; } | ||
3389 | SET_MAKE= | ||
3390 | else | ||
3391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3392 | $as_echo "no" >&6; } | ||
3393 | SET_MAKE="MAKE=${MAKE-make}" | ||
3394 | fi | ||
3395 | |||
3396 | rm -rf .tst 2>/dev/null | ||
3397 | mkdir .tst 2>/dev/null | ||
3398 | if test -d .tst; then | ||
3399 | am__leading_dot=. | ||
3400 | else | ||
3401 | am__leading_dot=_ | ||
3402 | fi | ||
3403 | rmdir .tst 2>/dev/null | ||
3404 | |||
3405 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | ||
3406 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | ||
3407 | # is not polluted with repeated "-I." | ||
3408 | am__isrc=' -I$(srcdir)' | ||
3409 | # test to see if srcdir already configured | ||
3410 | if test -f $srcdir/config.status; then | ||
3411 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | ||
3412 | fi | ||
3413 | fi | ||
3414 | |||
3415 | # test whether we have cygpath | ||
3416 | if test -z "$CYGPATH_W"; then | ||
3417 | if (cygpath --version) >/dev/null 2>/dev/null; then | ||
3418 | CYGPATH_W='cygpath -w' | ||
3419 | else | ||
3420 | CYGPATH_W=echo | ||
3421 | fi | ||
3422 | fi | ||
3423 | |||
3424 | |||
3425 | # Define the identity of the package. | ||
3426 | PACKAGE='eina' | ||
3427 | VERSION='1.2.0-alpha' | ||
3428 | |||
3429 | |||
3430 | cat >>confdefs.h <<_ACEOF | ||
3431 | #define PACKAGE "$PACKAGE" | ||
3432 | _ACEOF | ||
3433 | |||
3434 | |||
3435 | cat >>confdefs.h <<_ACEOF | ||
3436 | #define VERSION "$VERSION" | ||
3437 | _ACEOF | ||
3438 | |||
3439 | # Some tools Automake needs. | ||
3440 | |||
3441 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | ||
3442 | |||
3443 | |||
3444 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | ||
3445 | |||
3446 | |||
3447 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | ||
3448 | |||
3449 | |||
3450 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | ||
3451 | |||
3452 | |||
3453 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | ||
3454 | |||
3455 | # We need awk for the "check" target. The system "awk" is bad on | ||
3456 | # some platforms. | ||
3457 | # Always define AMTAR for backward compatibility. | ||
3458 | |||
3459 | AMTAR=${AMTAR-"${am_missing_run}tar"} | ||
3460 | |||
3461 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | ||
3462 | |||
3463 | |||
3464 | |||
3465 | |||
3466 | |||
3467 | # Check whether --enable-silent-rules was given. | ||
3468 | if test "${enable_silent_rules+set}" = set; then : | ||
3469 | enableval=$enable_silent_rules; | ||
3470 | fi | ||
3471 | |||
3472 | case $enable_silent_rules in | ||
3473 | yes) AM_DEFAULT_VERBOSITY=0;; | ||
3474 | no) AM_DEFAULT_VERBOSITY=1;; | ||
3475 | *) AM_DEFAULT_VERBOSITY=0;; | ||
3476 | esac | ||
3477 | AM_BACKSLASH='\' | ||
3478 | |||
3479 | |||
3480 | DEPDIR="${am__leading_dot}deps" | ||
3481 | |||
3482 | ac_config_commands="$ac_config_commands depfiles" | ||
3483 | |||
3484 | |||
3485 | am_make=${MAKE-make} | ||
3486 | cat > confinc << 'END' | ||
3487 | am__doit: | ||
3488 | @echo this is the am__doit target | ||
3489 | .PHONY: am__doit | ||
3490 | END | ||
3491 | # If we don't find an include directive, just comment out the code. | ||
3492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | ||
3493 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | ||
3494 | am__include="#" | ||
3495 | am__quote= | ||
3496 | _am_result=none | ||
3497 | # First try GNU make style include. | ||
3498 | echo "include confinc" > confmf | ||
3499 | # Ignore all kinds of additional output from `make'. | ||
3500 | case `$am_make -s -f confmf 2> /dev/null` in #( | ||
3501 | *the\ am__doit\ target*) | ||
3502 | am__include=include | ||
3503 | am__quote= | ||
3504 | _am_result=GNU | ||
3505 | ;; | ||
3506 | esac | ||
3507 | # Now try BSD make style include. | ||
3508 | if test "$am__include" = "#"; then | ||
3509 | echo '.include "confinc"' > confmf | ||
3510 | case `$am_make -s -f confmf 2> /dev/null` in #( | ||
3511 | *the\ am__doit\ target*) | ||
3512 | am__include=.include | ||
3513 | am__quote="\"" | ||
3514 | _am_result=BSD | ||
3515 | ;; | ||
3516 | esac | ||
3517 | fi | ||
3518 | |||
3519 | |||
3520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | ||
3521 | $as_echo "$_am_result" >&6; } | ||
3522 | rm -f confinc confmf | ||
3523 | |||
3524 | # Check whether --enable-dependency-tracking was given. | ||
3525 | if test "${enable_dependency_tracking+set}" = set; then : | ||
3526 | enableval=$enable_dependency_tracking; | ||
3527 | fi | ||
3528 | |||
3529 | if test "x$enable_dependency_tracking" != xno; then | ||
3530 | am_depcomp="$ac_aux_dir/depcomp" | ||
3531 | AMDEPBACKSLASH='\' | ||
3532 | fi | ||
3533 | if test "x$enable_dependency_tracking" != xno; then | ||
3534 | AMDEP_TRUE= | ||
3535 | AMDEP_FALSE='#' | ||
3536 | else | ||
3537 | AMDEP_TRUE='#' | ||
3538 | AMDEP_FALSE= | ||
3539 | fi | ||
3540 | |||
3541 | |||
3542 | ac_ext=c | ||
3543 | ac_cpp='$CPP $CPPFLAGS' | ||
3544 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3545 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3546 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3547 | if test -n "$ac_tool_prefix"; then | ||
3548 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
3549 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
3550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3551 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3552 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
3553 | $as_echo_n "(cached) " >&6 | ||
3554 | else | ||
3555 | if test -n "$CC"; then | ||
3556 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
3557 | else | ||
3558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3559 | for as_dir in $PATH | ||
3560 | do | ||
3561 | IFS=$as_save_IFS | ||
3562 | test -z "$as_dir" && as_dir=. | ||
3563 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3564 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3565 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
3566 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3567 | break 2 | ||
3568 | fi | ||
3569 | done | ||
3570 | done | ||
3571 | IFS=$as_save_IFS | ||
3572 | |||
3573 | fi | ||
3574 | fi | ||
3575 | CC=$ac_cv_prog_CC | ||
3576 | if test -n "$CC"; then | ||
3577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
3578 | $as_echo "$CC" >&6; } | ||
3579 | else | ||
3580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3581 | $as_echo "no" >&6; } | ||
3582 | fi | ||
3583 | |||
3584 | |||
3585 | fi | ||
3586 | if test -z "$ac_cv_prog_CC"; then | ||
3587 | ac_ct_CC=$CC | ||
3588 | # Extract the first word of "gcc", so it can be a program name with args. | ||
3589 | set dummy gcc; ac_word=$2 | ||
3590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3591 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3592 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
3593 | $as_echo_n "(cached) " >&6 | ||
3594 | else | ||
3595 | if test -n "$ac_ct_CC"; then | ||
3596 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
3597 | else | ||
3598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3599 | for as_dir in $PATH | ||
3600 | do | ||
3601 | IFS=$as_save_IFS | ||
3602 | test -z "$as_dir" && as_dir=. | ||
3603 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3604 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3605 | ac_cv_prog_ac_ct_CC="gcc" | ||
3606 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3607 | break 2 | ||
3608 | fi | ||
3609 | done | ||
3610 | done | ||
3611 | IFS=$as_save_IFS | ||
3612 | |||
3613 | fi | ||
3614 | fi | ||
3615 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
3616 | if test -n "$ac_ct_CC"; then | ||
3617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
3618 | $as_echo "$ac_ct_CC" >&6; } | ||
3619 | else | ||
3620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3621 | $as_echo "no" >&6; } | ||
3622 | fi | ||
3623 | |||
3624 | if test "x$ac_ct_CC" = x; then | ||
3625 | CC="" | ||
3626 | else | ||
3627 | case $cross_compiling:$ac_tool_warned in | ||
3628 | yes:) | ||
3629 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3630 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3631 | ac_tool_warned=yes ;; | ||
3632 | esac | ||
3633 | CC=$ac_ct_CC | ||
3634 | fi | ||
3635 | else | ||
3636 | CC="$ac_cv_prog_CC" | ||
3637 | fi | ||
3638 | |||
3639 | if test -z "$CC"; then | ||
3640 | if test -n "$ac_tool_prefix"; then | ||
3641 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
3642 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
3643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3644 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3645 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
3646 | $as_echo_n "(cached) " >&6 | ||
3647 | else | ||
3648 | if test -n "$CC"; then | ||
3649 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
3650 | else | ||
3651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3652 | for as_dir in $PATH | ||
3653 | do | ||
3654 | IFS=$as_save_IFS | ||
3655 | test -z "$as_dir" && as_dir=. | ||
3656 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3657 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3658 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
3659 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3660 | break 2 | ||
3661 | fi | ||
3662 | done | ||
3663 | done | ||
3664 | IFS=$as_save_IFS | ||
3665 | |||
3666 | fi | ||
3667 | fi | ||
3668 | CC=$ac_cv_prog_CC | ||
3669 | if test -n "$CC"; then | ||
3670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
3671 | $as_echo "$CC" >&6; } | ||
3672 | else | ||
3673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3674 | $as_echo "no" >&6; } | ||
3675 | fi | ||
3676 | |||
3677 | |||
3678 | fi | ||
3679 | fi | ||
3680 | if test -z "$CC"; then | ||
3681 | # Extract the first word of "cc", so it can be a program name with args. | ||
3682 | set dummy cc; ac_word=$2 | ||
3683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3684 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3685 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
3686 | $as_echo_n "(cached) " >&6 | ||
3687 | else | ||
3688 | if test -n "$CC"; then | ||
3689 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
3690 | else | ||
3691 | ac_prog_rejected=no | ||
3692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3693 | for as_dir in $PATH | ||
3694 | do | ||
3695 | IFS=$as_save_IFS | ||
3696 | test -z "$as_dir" && as_dir=. | ||
3697 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3698 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3699 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
3700 | ac_prog_rejected=yes | ||
3701 | continue | ||
3702 | fi | ||
3703 | ac_cv_prog_CC="cc" | ||
3704 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3705 | break 2 | ||
3706 | fi | ||
3707 | done | ||
3708 | done | ||
3709 | IFS=$as_save_IFS | ||
3710 | |||
3711 | if test $ac_prog_rejected = yes; then | ||
3712 | # We found a bogon in the path, so make sure we never use it. | ||
3713 | set dummy $ac_cv_prog_CC | ||
3714 | shift | ||
3715 | if test $# != 0; then | ||
3716 | # We chose a different compiler from the bogus one. | ||
3717 | # However, it has the same basename, so the bogon will be chosen | ||
3718 | # first if we set CC to just the basename; use the full file name. | ||
3719 | shift | ||
3720 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
3721 | fi | ||
3722 | fi | ||
3723 | fi | ||
3724 | fi | ||
3725 | CC=$ac_cv_prog_CC | ||
3726 | if test -n "$CC"; then | ||
3727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
3728 | $as_echo "$CC" >&6; } | ||
3729 | else | ||
3730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3731 | $as_echo "no" >&6; } | ||
3732 | fi | ||
3733 | |||
3734 | |||
3735 | fi | ||
3736 | if test -z "$CC"; then | ||
3737 | if test -n "$ac_tool_prefix"; then | ||
3738 | for ac_prog in cl.exe | ||
3739 | do | ||
3740 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
3741 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
3742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3743 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3744 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
3745 | $as_echo_n "(cached) " >&6 | ||
3746 | else | ||
3747 | if test -n "$CC"; then | ||
3748 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
3749 | else | ||
3750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3751 | for as_dir in $PATH | ||
3752 | do | ||
3753 | IFS=$as_save_IFS | ||
3754 | test -z "$as_dir" && as_dir=. | ||
3755 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3756 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3757 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
3758 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3759 | break 2 | ||
3760 | fi | ||
3761 | done | ||
3762 | done | ||
3763 | IFS=$as_save_IFS | ||
3764 | |||
3765 | fi | ||
3766 | fi | ||
3767 | CC=$ac_cv_prog_CC | ||
3768 | if test -n "$CC"; then | ||
3769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
3770 | $as_echo "$CC" >&6; } | ||
3771 | else | ||
3772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3773 | $as_echo "no" >&6; } | ||
3774 | fi | ||
3775 | |||
3776 | |||
3777 | test -n "$CC" && break | ||
3778 | done | ||
3779 | fi | ||
3780 | if test -z "$CC"; then | ||
3781 | ac_ct_CC=$CC | ||
3782 | for ac_prog in cl.exe | ||
3783 | do | ||
3784 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3785 | set dummy $ac_prog; ac_word=$2 | ||
3786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3787 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3788 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
3789 | $as_echo_n "(cached) " >&6 | ||
3790 | else | ||
3791 | if test -n "$ac_ct_CC"; then | ||
3792 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
3793 | else | ||
3794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3795 | for as_dir in $PATH | ||
3796 | do | ||
3797 | IFS=$as_save_IFS | ||
3798 | test -z "$as_dir" && as_dir=. | ||
3799 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3800 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3801 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
3802 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3803 | break 2 | ||
3804 | fi | ||
3805 | done | ||
3806 | done | ||
3807 | IFS=$as_save_IFS | ||
3808 | |||
3809 | fi | ||
3810 | fi | ||
3811 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
3812 | if test -n "$ac_ct_CC"; then | ||
3813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
3814 | $as_echo "$ac_ct_CC" >&6; } | ||
3815 | else | ||
3816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3817 | $as_echo "no" >&6; } | ||
3818 | fi | ||
3819 | |||
3820 | |||
3821 | test -n "$ac_ct_CC" && break | ||
3822 | done | ||
3823 | |||
3824 | if test "x$ac_ct_CC" = x; then | ||
3825 | CC="" | ||
3826 | else | ||
3827 | case $cross_compiling:$ac_tool_warned in | ||
3828 | yes:) | ||
3829 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3830 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3831 | ac_tool_warned=yes ;; | ||
3832 | esac | ||
3833 | CC=$ac_ct_CC | ||
3834 | fi | ||
3835 | fi | ||
3836 | |||
3837 | fi | ||
3838 | |||
3839 | |||
3840 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3841 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3842 | as_fn_error $? "no acceptable C compiler found in \$PATH | ||
3843 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
3844 | |||
3845 | # Provide some information about the compiler. | ||
3846 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
3847 | set X $ac_compile | ||
3848 | ac_compiler=$2 | ||
3849 | for ac_option in --version -v -V -qversion; do | ||
3850 | { { ac_try="$ac_compiler $ac_option >&5" | ||
3851 | case "(($ac_try" in | ||
3852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3853 | *) ac_try_echo=$ac_try;; | ||
3854 | esac | ||
3855 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3856 | $as_echo "$ac_try_echo"; } >&5 | ||
3857 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
3858 | ac_status=$? | ||
3859 | if test -s conftest.err; then | ||
3860 | sed '10a\ | ||
3861 | ... rest of stderr output deleted ... | ||
3862 | 10q' conftest.err >conftest.er1 | ||
3863 | cat conftest.er1 >&5 | ||
3864 | fi | ||
3865 | rm -f conftest.er1 conftest.err | ||
3866 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3867 | test $ac_status = 0; } | ||
3868 | done | ||
3869 | |||
3870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3871 | /* end confdefs.h. */ | ||
3872 | |||
3873 | int | ||
3874 | main () | ||
3875 | { | ||
3876 | |||
3877 | ; | ||
3878 | return 0; | ||
3879 | } | ||
3880 | _ACEOF | ||
3881 | ac_clean_files_save=$ac_clean_files | ||
3882 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | ||
3883 | # Try to create an executable without -o first, disregard a.out. | ||
3884 | # It will help us diagnose broken compilers, and finding out an intuition | ||
3885 | # of exeext. | ||
3886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | ||
3887 | $as_echo_n "checking whether the C compiler works... " >&6; } | ||
3888 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
3889 | |||
3890 | # The possible output files: | ||
3891 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | ||
3892 | |||
3893 | ac_rmfiles= | ||
3894 | for ac_file in $ac_files | ||
3895 | do | ||
3896 | case $ac_file in | ||
3897 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
3898 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
3899 | esac | ||
3900 | done | ||
3901 | rm -f $ac_rmfiles | ||
3902 | |||
3903 | if { { ac_try="$ac_link_default" | ||
3904 | case "(($ac_try" in | ||
3905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3906 | *) ac_try_echo=$ac_try;; | ||
3907 | esac | ||
3908 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3909 | $as_echo "$ac_try_echo"; } >&5 | ||
3910 | (eval "$ac_link_default") 2>&5 | ||
3911 | ac_status=$? | ||
3912 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3913 | test $ac_status = 0; }; then : | ||
3914 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
3915 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
3916 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
3917 | # so that the user can short-circuit this test for compilers unknown to | ||
3918 | # Autoconf. | ||
3919 | for ac_file in $ac_files '' | ||
3920 | do | ||
3921 | test -f "$ac_file" || continue | ||
3922 | case $ac_file in | ||
3923 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | ||
3924 | ;; | ||
3925 | [ab].out ) | ||
3926 | # We found the default executable, but exeext='' is most | ||
3927 | # certainly right. | ||
3928 | break;; | ||
3929 | *.* ) | ||
3930 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
3931 | then :; else | ||
3932 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
3933 | fi | ||
3934 | # We set ac_cv_exeext here because the later test for it is not | ||
3935 | # safe: cross compilers may not add the suffix if given an `-o' | ||
3936 | # argument, so we may need to know it at that point already. | ||
3937 | # Even if this section looks crufty: it has the advantage of | ||
3938 | # actually working. | ||
3939 | break;; | ||
3940 | * ) | ||
3941 | break;; | ||
3942 | esac | ||
3943 | done | ||
3944 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
3945 | |||
3946 | else | ||
3947 | ac_file='' | ||
3948 | fi | ||
3949 | if test -z "$ac_file"; then : | ||
3950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3951 | $as_echo "no" >&6; } | ||
3952 | $as_echo "$as_me: failed program was:" >&5 | ||
3953 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3954 | |||
3955 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3956 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3957 | as_fn_error 77 "C compiler cannot create executables | ||
3958 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
3959 | else | ||
3960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
3961 | $as_echo "yes" >&6; } | ||
3962 | fi | ||
3963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | ||
3964 | $as_echo_n "checking for C compiler default output file name... " >&6; } | ||
3965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | ||
3966 | $as_echo "$ac_file" >&6; } | ||
3967 | ac_exeext=$ac_cv_exeext | ||
3968 | |||
3969 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | ||
3970 | ac_clean_files=$ac_clean_files_save | ||
3971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | ||
3972 | $as_echo_n "checking for suffix of executables... " >&6; } | ||
3973 | if { { ac_try="$ac_link" | ||
3974 | case "(($ac_try" in | ||
3975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3976 | *) ac_try_echo=$ac_try;; | ||
3977 | esac | ||
3978 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3979 | $as_echo "$ac_try_echo"; } >&5 | ||
3980 | (eval "$ac_link") 2>&5 | ||
3981 | ac_status=$? | ||
3982 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3983 | test $ac_status = 0; }; then : | ||
3984 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
3985 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
3986 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
3987 | # `rm'. | ||
3988 | for ac_file in conftest.exe conftest conftest.*; do | ||
3989 | test -f "$ac_file" || continue | ||
3990 | case $ac_file in | ||
3991 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
3992 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
3993 | break;; | ||
3994 | * ) break;; | ||
3995 | esac | ||
3996 | done | ||
3997 | else | ||
3998 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3999 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4000 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | ||
4001 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4002 | fi | ||
4003 | rm -f conftest conftest$ac_cv_exeext | ||
4004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | ||
4005 | $as_echo "$ac_cv_exeext" >&6; } | ||
4006 | |||
4007 | rm -f conftest.$ac_ext | ||
4008 | EXEEXT=$ac_cv_exeext | ||
4009 | ac_exeext=$EXEEXT | ||
4010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4011 | /* end confdefs.h. */ | ||
4012 | #include <stdio.h> | ||
4013 | int | ||
4014 | main () | ||
4015 | { | ||
4016 | FILE *f = fopen ("conftest.out", "w"); | ||
4017 | return ferror (f) || fclose (f) != 0; | ||
4018 | |||
4019 | ; | ||
4020 | return 0; | ||
4021 | } | ||
4022 | _ACEOF | ||
4023 | ac_clean_files="$ac_clean_files conftest.out" | ||
4024 | # Check that the compiler produces executables we can run. If not, either | ||
4025 | # the compiler is broken, or we cross compile. | ||
4026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | ||
4027 | $as_echo_n "checking whether we are cross compiling... " >&6; } | ||
4028 | if test "$cross_compiling" != yes; then | ||
4029 | { { ac_try="$ac_link" | ||
4030 | case "(($ac_try" in | ||
4031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4032 | *) ac_try_echo=$ac_try;; | ||
4033 | esac | ||
4034 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4035 | $as_echo "$ac_try_echo"; } >&5 | ||
4036 | (eval "$ac_link") 2>&5 | ||
4037 | ac_status=$? | ||
4038 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4039 | test $ac_status = 0; } | ||
4040 | if { ac_try='./conftest$ac_cv_exeext' | ||
4041 | { { case "(($ac_try" in | ||
4042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4043 | *) ac_try_echo=$ac_try;; | ||
4044 | esac | ||
4045 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4046 | $as_echo "$ac_try_echo"; } >&5 | ||
4047 | (eval "$ac_try") 2>&5 | ||
4048 | ac_status=$? | ||
4049 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4050 | test $ac_status = 0; }; }; then | ||
4051 | cross_compiling=no | ||
4052 | else | ||
4053 | if test "$cross_compiling" = maybe; then | ||
4054 | cross_compiling=yes | ||
4055 | else | ||
4056 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4057 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4058 | as_fn_error $? "cannot run C compiled programs. | ||
4059 | If you meant to cross compile, use \`--host'. | ||
4060 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4061 | fi | ||
4062 | fi | ||
4063 | fi | ||
4064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | ||
4065 | $as_echo "$cross_compiling" >&6; } | ||
4066 | |||
4067 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | ||
4068 | ac_clean_files=$ac_clean_files_save | ||
4069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | ||
4070 | $as_echo_n "checking for suffix of object files... " >&6; } | ||
4071 | if test "${ac_cv_objext+set}" = set; then : | ||
4072 | $as_echo_n "(cached) " >&6 | ||
4073 | else | ||
4074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4075 | /* end confdefs.h. */ | ||
4076 | |||
4077 | int | ||
4078 | main () | ||
4079 | { | ||
4080 | |||
4081 | ; | ||
4082 | return 0; | ||
4083 | } | ||
4084 | _ACEOF | ||
4085 | rm -f conftest.o conftest.obj | ||
4086 | if { { ac_try="$ac_compile" | ||
4087 | case "(($ac_try" in | ||
4088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4089 | *) ac_try_echo=$ac_try;; | ||
4090 | esac | ||
4091 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4092 | $as_echo "$ac_try_echo"; } >&5 | ||
4093 | (eval "$ac_compile") 2>&5 | ||
4094 | ac_status=$? | ||
4095 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4096 | test $ac_status = 0; }; then : | ||
4097 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
4098 | test -f "$ac_file" || continue; | ||
4099 | case $ac_file in | ||
4100 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | ||
4101 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
4102 | break;; | ||
4103 | esac | ||
4104 | done | ||
4105 | else | ||
4106 | $as_echo "$as_me: failed program was:" >&5 | ||
4107 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4108 | |||
4109 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4110 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4111 | as_fn_error $? "cannot compute suffix of object files: cannot compile | ||
4112 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4113 | fi | ||
4114 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
4115 | fi | ||
4116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | ||
4117 | $as_echo "$ac_cv_objext" >&6; } | ||
4118 | OBJEXT=$ac_cv_objext | ||
4119 | ac_objext=$OBJEXT | ||
4120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | ||
4121 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
4122 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | ||
4123 | $as_echo_n "(cached) " >&6 | ||
4124 | else | ||
4125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4126 | /* end confdefs.h. */ | ||
4127 | |||
4128 | int | ||
4129 | main () | ||
4130 | { | ||
4131 | #ifndef __GNUC__ | ||
4132 | choke me | ||
4133 | #endif | ||
4134 | |||
4135 | ; | ||
4136 | return 0; | ||
4137 | } | ||
4138 | _ACEOF | ||
4139 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4140 | ac_compiler_gnu=yes | ||
4141 | else | ||
4142 | ac_compiler_gnu=no | ||
4143 | fi | ||
4144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4145 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
4146 | |||
4147 | fi | ||
4148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
4149 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
4150 | if test $ac_compiler_gnu = yes; then | ||
4151 | GCC=yes | ||
4152 | else | ||
4153 | GCC= | ||
4154 | fi | ||
4155 | ac_test_CFLAGS=${CFLAGS+set} | ||
4156 | ac_save_CFLAGS=$CFLAGS | ||
4157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
4158 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
4159 | if test "${ac_cv_prog_cc_g+set}" = set; then : | ||
4160 | $as_echo_n "(cached) " >&6 | ||
4161 | else | ||
4162 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
4163 | ac_c_werror_flag=yes | ||
4164 | ac_cv_prog_cc_g=no | ||
4165 | CFLAGS="-g" | ||
4166 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4167 | /* end confdefs.h. */ | ||
4168 | |||
4169 | int | ||
4170 | main () | ||
4171 | { | ||
4172 | |||
4173 | ; | ||
4174 | return 0; | ||
4175 | } | ||
4176 | _ACEOF | ||
4177 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4178 | ac_cv_prog_cc_g=yes | ||
4179 | else | ||
4180 | CFLAGS="" | ||
4181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4182 | /* end confdefs.h. */ | ||
4183 | |||
4184 | int | ||
4185 | main () | ||
4186 | { | ||
4187 | |||
4188 | ; | ||
4189 | return 0; | ||
4190 | } | ||
4191 | _ACEOF | ||
4192 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4193 | |||
4194 | else | ||
4195 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
4196 | CFLAGS="-g" | ||
4197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4198 | /* end confdefs.h. */ | ||
4199 | |||
4200 | int | ||
4201 | main () | ||
4202 | { | ||
4203 | |||
4204 | ; | ||
4205 | return 0; | ||
4206 | } | ||
4207 | _ACEOF | ||
4208 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4209 | ac_cv_prog_cc_g=yes | ||
4210 | fi | ||
4211 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4212 | fi | ||
4213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4214 | fi | ||
4215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4216 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
4217 | fi | ||
4218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
4219 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
4220 | if test "$ac_test_CFLAGS" = set; then | ||
4221 | CFLAGS=$ac_save_CFLAGS | ||
4222 | elif test $ac_cv_prog_cc_g = yes; then | ||
4223 | if test "$GCC" = yes; then | ||
4224 | CFLAGS="-g -O2" | ||
4225 | else | ||
4226 | CFLAGS="-g" | ||
4227 | fi | ||
4228 | else | ||
4229 | if test "$GCC" = yes; then | ||
4230 | CFLAGS="-O2" | ||
4231 | else | ||
4232 | CFLAGS= | ||
4233 | fi | ||
4234 | fi | ||
4235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
4236 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
4237 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
4238 | $as_echo_n "(cached) " >&6 | ||
4239 | else | ||
4240 | ac_cv_prog_cc_c89=no | ||
4241 | ac_save_CC=$CC | ||
4242 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4243 | /* end confdefs.h. */ | ||
4244 | #include <stdarg.h> | ||
4245 | #include <stdio.h> | ||
4246 | #include <sys/types.h> | ||
4247 | #include <sys/stat.h> | ||
4248 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
4249 | struct buf { int x; }; | ||
4250 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
4251 | static char *e (p, i) | ||
4252 | char **p; | ||
4253 | int i; | ||
4254 | { | ||
4255 | return p[i]; | ||
4256 | } | ||
4257 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
4258 | { | ||
4259 | char *s; | ||
4260 | va_list v; | ||
4261 | va_start (v,p); | ||
4262 | s = g (p, va_arg (v,int)); | ||
4263 | va_end (v); | ||
4264 | return s; | ||
4265 | } | ||
4266 | |||
4267 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
4268 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
4269 | These don't provoke an error unfortunately, instead are silently treated | ||
4270 | as 'x'. The following induces an error, until -std is added to get | ||
4271 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
4272 | array size at least. It's necessary to write '\x00'==0 to get something | ||
4273 | that's true only with -std. */ | ||
4274 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
4275 | |||
4276 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
4277 | inside strings and character constants. */ | ||
4278 | #define FOO(x) 'x' | ||
4279 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
4280 | |||
4281 | int test (int i, double x); | ||
4282 | struct s1 {int (*f) (int a);}; | ||
4283 | struct s2 {int (*f) (double a);}; | ||
4284 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
4285 | int argc; | ||
4286 | char **argv; | ||
4287 | int | ||
4288 | main () | ||
4289 | { | ||
4290 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
4291 | ; | ||
4292 | return 0; | ||
4293 | } | ||
4294 | _ACEOF | ||
4295 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
4296 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
4297 | do | ||
4298 | CC="$ac_save_CC $ac_arg" | ||
4299 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4300 | ac_cv_prog_cc_c89=$ac_arg | ||
4301 | fi | ||
4302 | rm -f core conftest.err conftest.$ac_objext | ||
4303 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
4304 | done | ||
4305 | rm -f conftest.$ac_ext | ||
4306 | CC=$ac_save_CC | ||
4307 | |||
4308 | fi | ||
4309 | # AC_CACHE_VAL | ||
4310 | case "x$ac_cv_prog_cc_c89" in | ||
4311 | x) | ||
4312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
4313 | $as_echo "none needed" >&6; } ;; | ||
4314 | xno) | ||
4315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
4316 | $as_echo "unsupported" >&6; } ;; | ||
4317 | *) | ||
4318 | CC="$CC $ac_cv_prog_cc_c89" | ||
4319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
4320 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
4321 | esac | ||
4322 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
4323 | |||
4324 | fi | ||
4325 | |||
4326 | ac_ext=c | ||
4327 | ac_cpp='$CPP $CPPFLAGS' | ||
4328 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4329 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4330 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4331 | |||
4332 | depcc="$CC" am_compiler_list= | ||
4333 | |||
4334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
4335 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
4336 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | ||
4337 | $as_echo_n "(cached) " >&6 | ||
4338 | else | ||
4339 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
4340 | # We make a subdir and do the tests there. Otherwise we can end up | ||
4341 | # making bogus files that we don't know about and never remove. For | ||
4342 | # instance it was reported that on HP-UX the gcc test will end up | ||
4343 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
4344 | # in D'. | ||
4345 | mkdir conftest.dir | ||
4346 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
4347 | # using a relative directory. | ||
4348 | cp "$am_depcomp" conftest.dir | ||
4349 | cd conftest.dir | ||
4350 | # We will build objects and dependencies in a subdirectory because | ||
4351 | # it helps to detect inapplicable dependency modes. For instance | ||
4352 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
4353 | # side effect of compilation, but ICC will put the dependencies in | ||
4354 | # the current directory while Tru64 will put them in the object | ||
4355 | # directory. | ||
4356 | mkdir sub | ||
4357 | |||
4358 | am_cv_CC_dependencies_compiler_type=none | ||
4359 | if test "$am_compiler_list" = ""; then | ||
4360 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
4361 | fi | ||
4362 | am__universal=false | ||
4363 | case " $depcc " in #( | ||
4364 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
4365 | esac | ||
4366 | |||
4367 | for depmode in $am_compiler_list; do | ||
4368 | # Setup a source with many dependencies, because some compilers | ||
4369 | # like to wrap large dependency lists on column 80 (with \), and | ||
4370 | # we should not choose a depcomp mode which is confused by this. | ||
4371 | # | ||
4372 | # We need to recreate these files for each test, as the compiler may | ||
4373 | # overwrite some of them when testing with obscure command lines. | ||
4374 | # This happens at least with the AIX C compiler. | ||
4375 | : > sub/conftest.c | ||
4376 | for i in 1 2 3 4 5 6; do | ||
4377 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
4378 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
4379 | # Solaris 8's {/usr,}/bin/sh. | ||
4380 | touch sub/conftst$i.h | ||
4381 | done | ||
4382 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
4383 | |||
4384 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
4385 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
4386 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
4387 | # versions had trouble with output in subdirs | ||
4388 | am__obj=sub/conftest.${OBJEXT-o} | ||
4389 | am__minus_obj="-o $am__obj" | ||
4390 | case $depmode in | ||
4391 | gcc) | ||
4392 | # This depmode causes a compiler race in universal mode. | ||
4393 | test "$am__universal" = false || continue | ||
4394 | ;; | ||
4395 | nosideeffect) | ||
4396 | # after this tag, mechanisms are not by side-effect, so they'll | ||
4397 | # only be used when explicitly requested | ||
4398 | if test "x$enable_dependency_tracking" = xyes; then | ||
4399 | continue | ||
4400 | else | ||
4401 | break | ||
4402 | fi | ||
4403 | ;; | ||
4404 | msvisualcpp | msvcmsys) | ||
4405 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
4406 | # not run yet. These depmodes are late enough in the game, and | ||
4407 | # so weak that their functioning should not be impacted. | ||
4408 | am__obj=conftest.${OBJEXT-o} | ||
4409 | am__minus_obj= | ||
4410 | ;; | ||
4411 | none) break ;; | ||
4412 | esac | ||
4413 | if depmode=$depmode \ | ||
4414 | source=sub/conftest.c object=$am__obj \ | ||
4415 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
4416 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
4417 | >/dev/null 2>conftest.err && | ||
4418 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
4419 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
4420 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
4421 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
4422 | # icc doesn't choke on unknown options, it will just issue warnings | ||
4423 | # or remarks (even with -Werror). So we grep stderr for any message | ||
4424 | # that says an option was ignored or not supported. | ||
4425 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
4426 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
4427 | # The diagnosis changed in icc 8.0: | ||
4428 | # icc: Command line remark: option '-MP' not supported | ||
4429 | if (grep 'ignoring option' conftest.err || | ||
4430 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
4431 | am_cv_CC_dependencies_compiler_type=$depmode | ||
4432 | break | ||
4433 | fi | ||
4434 | fi | ||
4435 | done | ||
4436 | |||
4437 | cd .. | ||
4438 | rm -rf conftest.dir | ||
4439 | else | ||
4440 | am_cv_CC_dependencies_compiler_type=none | ||
4441 | fi | ||
4442 | |||
4443 | fi | ||
4444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | ||
4445 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | ||
4446 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
4447 | |||
4448 | if | ||
4449 | test "x$enable_dependency_tracking" != xno \ | ||
4450 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
4451 | am__fastdepCC_TRUE= | ||
4452 | am__fastdepCC_FALSE='#' | ||
4453 | else | ||
4454 | am__fastdepCC_TRUE='#' | ||
4455 | am__fastdepCC_FALSE= | ||
4456 | fi | ||
4457 | |||
4458 | |||
4459 | |||
4460 | ac_ext=c | ||
4461 | ac_cpp='$CPP $CPPFLAGS' | ||
4462 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4463 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4464 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||
4466 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||
4467 | # On Suns, sometimes $CPP names a directory. | ||
4468 | if test -n "$CPP" && test -d "$CPP"; then | ||
4469 | CPP= | ||
4470 | fi | ||
4471 | if test -z "$CPP"; then | ||
4472 | if test "${ac_cv_prog_CPP+set}" = set; then : | ||
4473 | $as_echo_n "(cached) " >&6 | ||
4474 | else | ||
4475 | # Double quotes because CPP needs to be expanded | ||
4476 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
4477 | do | ||
4478 | ac_preproc_ok=false | ||
4479 | for ac_c_preproc_warn_flag in '' yes | ||
4480 | do | ||
4481 | # Use a header file that comes with gcc, so configuring glibc | ||
4482 | # with a fresh cross-compiler works. | ||
4483 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4484 | # <limits.h> exists even on freestanding compilers. | ||
4485 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
4486 | # not just through cpp. "Syntax error" is here to catch this case. | ||
4487 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4488 | /* end confdefs.h. */ | ||
4489 | #ifdef __STDC__ | ||
4490 | # include <limits.h> | ||
4491 | #else | ||
4492 | # include <assert.h> | ||
4493 | #endif | ||
4494 | Syntax error | ||
4495 | _ACEOF | ||
4496 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4497 | |||
4498 | else | ||
4499 | # Broken: fails on valid input. | ||
4500 | continue | ||
4501 | fi | ||
4502 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4503 | |||
4504 | # OK, works on sane cases. Now check whether nonexistent headers | ||
4505 | # can be detected and how. | ||
4506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4507 | /* end confdefs.h. */ | ||
4508 | #include <ac_nonexistent.h> | ||
4509 | _ACEOF | ||
4510 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4511 | # Broken: success on invalid input. | ||
4512 | continue | ||
4513 | else | ||
4514 | # Passes both tests. | ||
4515 | ac_preproc_ok=: | ||
4516 | break | ||
4517 | fi | ||
4518 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4519 | |||
4520 | done | ||
4521 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
4522 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
4523 | if $ac_preproc_ok; then : | ||
4524 | break | ||
4525 | fi | ||
4526 | |||
4527 | done | ||
4528 | ac_cv_prog_CPP=$CPP | ||
4529 | |||
4530 | fi | ||
4531 | CPP=$ac_cv_prog_CPP | ||
4532 | else | ||
4533 | ac_cv_prog_CPP=$CPP | ||
4534 | fi | ||
4535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||
4536 | $as_echo "$CPP" >&6; } | ||
4537 | ac_preproc_ok=false | ||
4538 | for ac_c_preproc_warn_flag in '' yes | ||
4539 | do | ||
4540 | # Use a header file that comes with gcc, so configuring glibc | ||
4541 | # with a fresh cross-compiler works. | ||
4542 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4543 | # <limits.h> exists even on freestanding compilers. | ||
4544 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
4545 | # not just through cpp. "Syntax error" is here to catch this case. | ||
4546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4547 | /* end confdefs.h. */ | ||
4548 | #ifdef __STDC__ | ||
4549 | # include <limits.h> | ||
4550 | #else | ||
4551 | # include <assert.h> | ||
4552 | #endif | ||
4553 | Syntax error | ||
4554 | _ACEOF | ||
4555 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4556 | |||
4557 | else | ||
4558 | # Broken: fails on valid input. | ||
4559 | continue | ||
4560 | fi | ||
4561 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4562 | |||
4563 | # OK, works on sane cases. Now check whether nonexistent headers | ||
4564 | # can be detected and how. | ||
4565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4566 | /* end confdefs.h. */ | ||
4567 | #include <ac_nonexistent.h> | ||
4568 | _ACEOF | ||
4569 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4570 | # Broken: success on invalid input. | ||
4571 | continue | ||
4572 | else | ||
4573 | # Passes both tests. | ||
4574 | ac_preproc_ok=: | ||
4575 | break | ||
4576 | fi | ||
4577 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4578 | |||
4579 | done | ||
4580 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
4581 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
4582 | if $ac_preproc_ok; then : | ||
4583 | |||
4584 | else | ||
4585 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4586 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4587 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | ||
4588 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4589 | fi | ||
4590 | |||
4591 | ac_ext=c | ||
4592 | ac_cpp='$CPP $CPPFLAGS' | ||
4593 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4594 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4595 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4596 | |||
4597 | |||
4598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | ||
4599 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | ||
4600 | if test "${ac_cv_path_GREP+set}" = set; then : | ||
4601 | $as_echo_n "(cached) " >&6 | ||
4602 | else | ||
4603 | if test -z "$GREP"; then | ||
4604 | ac_path_GREP_found=false | ||
4605 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4607 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4608 | do | ||
4609 | IFS=$as_save_IFS | ||
4610 | test -z "$as_dir" && as_dir=. | ||
4611 | for ac_prog in grep ggrep; do | ||
4612 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4613 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4614 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | ||
4615 | # Check for GNU ac_path_GREP and select it if it is found. | ||
4616 | # Check for GNU $ac_path_GREP | ||
4617 | case `"$ac_path_GREP" --version 2>&1` in | ||
4618 | *GNU*) | ||
4619 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
4620 | *) | ||
4621 | ac_count=0 | ||
4622 | $as_echo_n 0123456789 >"conftest.in" | ||
4623 | while : | ||
4624 | do | ||
4625 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4626 | mv "conftest.tmp" "conftest.in" | ||
4627 | cp "conftest.in" "conftest.nl" | ||
4628 | $as_echo 'GREP' >> "conftest.nl" | ||
4629 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4630 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4631 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
4632 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
4633 | # Best one so far, save it but keep looking for a better one | ||
4634 | ac_cv_path_GREP="$ac_path_GREP" | ||
4635 | ac_path_GREP_max=$ac_count | ||
4636 | fi | ||
4637 | # 10*(2^10) chars as input seems more than enough | ||
4638 | test $ac_count -gt 10 && break | ||
4639 | done | ||
4640 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4641 | esac | ||
4642 | |||
4643 | $ac_path_GREP_found && break 3 | ||
4644 | done | ||
4645 | done | ||
4646 | done | ||
4647 | IFS=$as_save_IFS | ||
4648 | if test -z "$ac_cv_path_GREP"; then | ||
4649 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
4650 | fi | ||
4651 | else | ||
4652 | ac_cv_path_GREP=$GREP | ||
4653 | fi | ||
4654 | |||
4655 | fi | ||
4656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | ||
4657 | $as_echo "$ac_cv_path_GREP" >&6; } | ||
4658 | GREP="$ac_cv_path_GREP" | ||
4659 | |||
4660 | |||
4661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | ||
4662 | $as_echo_n "checking for egrep... " >&6; } | ||
4663 | if test "${ac_cv_path_EGREP+set}" = set; then : | ||
4664 | $as_echo_n "(cached) " >&6 | ||
4665 | else | ||
4666 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
4667 | then ac_cv_path_EGREP="$GREP -E" | ||
4668 | else | ||
4669 | if test -z "$EGREP"; then | ||
4670 | ac_path_EGREP_found=false | ||
4671 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4673 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4674 | do | ||
4675 | IFS=$as_save_IFS | ||
4676 | test -z "$as_dir" && as_dir=. | ||
4677 | for ac_prog in egrep; do | ||
4678 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4679 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4680 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
4681 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
4682 | # Check for GNU $ac_path_EGREP | ||
4683 | case `"$ac_path_EGREP" --version 2>&1` in | ||
4684 | *GNU*) | ||
4685 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
4686 | *) | ||
4687 | ac_count=0 | ||
4688 | $as_echo_n 0123456789 >"conftest.in" | ||
4689 | while : | ||
4690 | do | ||
4691 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4692 | mv "conftest.tmp" "conftest.in" | ||
4693 | cp "conftest.in" "conftest.nl" | ||
4694 | $as_echo 'EGREP' >> "conftest.nl" | ||
4695 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4696 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4697 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
4698 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
4699 | # Best one so far, save it but keep looking for a better one | ||
4700 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
4701 | ac_path_EGREP_max=$ac_count | ||
4702 | fi | ||
4703 | # 10*(2^10) chars as input seems more than enough | ||
4704 | test $ac_count -gt 10 && break | ||
4705 | done | ||
4706 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4707 | esac | ||
4708 | |||
4709 | $ac_path_EGREP_found && break 3 | ||
4710 | done | ||
4711 | done | ||
4712 | done | ||
4713 | IFS=$as_save_IFS | ||
4714 | if test -z "$ac_cv_path_EGREP"; then | ||
4715 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
4716 | fi | ||
4717 | else | ||
4718 | ac_cv_path_EGREP=$EGREP | ||
4719 | fi | ||
4720 | |||
4721 | fi | ||
4722 | fi | ||
4723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | ||
4724 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||
4725 | EGREP="$ac_cv_path_EGREP" | ||
4726 | |||
4727 | |||
4728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | ||
4729 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||
4730 | if test "${ac_cv_header_stdc+set}" = set; then : | ||
4731 | $as_echo_n "(cached) " >&6 | ||
4732 | else | ||
4733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4734 | /* end confdefs.h. */ | ||
4735 | #include <stdlib.h> | ||
4736 | #include <stdarg.h> | ||
4737 | #include <string.h> | ||
4738 | #include <float.h> | ||
4739 | |||
4740 | int | ||
4741 | main () | ||
4742 | { | ||
4743 | |||
4744 | ; | ||
4745 | return 0; | ||
4746 | } | ||
4747 | _ACEOF | ||
4748 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4749 | ac_cv_header_stdc=yes | ||
4750 | else | ||
4751 | ac_cv_header_stdc=no | ||
4752 | fi | ||
4753 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4754 | |||
4755 | if test $ac_cv_header_stdc = yes; then | ||
4756 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
4757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4758 | /* end confdefs.h. */ | ||
4759 | #include <string.h> | ||
4760 | |||
4761 | _ACEOF | ||
4762 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
4763 | $EGREP "memchr" >/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 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
4774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4775 | /* end confdefs.h. */ | ||
4776 | #include <stdlib.h> | ||
4777 | |||
4778 | _ACEOF | ||
4779 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
4780 | $EGREP "free" >/dev/null 2>&1; then : | ||
4781 | |||
4782 | else | ||
4783 | ac_cv_header_stdc=no | ||
4784 | fi | ||
4785 | rm -f conftest* | ||
4786 | |||
4787 | fi | ||
4788 | |||
4789 | if test $ac_cv_header_stdc = yes; then | ||
4790 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
4791 | if test "$cross_compiling" = yes; then : | ||
4792 | : | ||
4793 | else | ||
4794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4795 | /* end confdefs.h. */ | ||
4796 | #include <ctype.h> | ||
4797 | #include <stdlib.h> | ||
4798 | #if ((' ' & 0x0FF) == 0x020) | ||
4799 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
4800 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
4801 | #else | ||
4802 | # define ISLOWER(c) \ | ||
4803 | (('a' <= (c) && (c) <= 'i') \ | ||
4804 | || ('j' <= (c) && (c) <= 'r') \ | ||
4805 | || ('s' <= (c) && (c) <= 'z')) | ||
4806 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
4807 | #endif | ||
4808 | |||
4809 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
4810 | int | ||
4811 | main () | ||
4812 | { | ||
4813 | int i; | ||
4814 | for (i = 0; i < 256; i++) | ||
4815 | if (XOR (islower (i), ISLOWER (i)) | ||
4816 | || toupper (i) != TOUPPER (i)) | ||
4817 | return 2; | ||
4818 | return 0; | ||
4819 | } | ||
4820 | _ACEOF | ||
4821 | if ac_fn_c_try_run "$LINENO"; then : | ||
4822 | |||
4823 | else | ||
4824 | ac_cv_header_stdc=no | ||
4825 | fi | ||
4826 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
4827 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
4828 | fi | ||
4829 | |||
4830 | fi | ||
4831 | fi | ||
4832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||
4833 | $as_echo "$ac_cv_header_stdc" >&6; } | ||
4834 | if test $ac_cv_header_stdc = yes; then | ||
4835 | |||
4836 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||
4837 | |||
4838 | fi | ||
4839 | |||
4840 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
4841 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
4842 | inttypes.h stdint.h unistd.h | ||
4843 | do : | ||
4844 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
4845 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | ||
4846 | " | ||
4847 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
4848 | cat >>confdefs.h <<_ACEOF | ||
4849 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
4850 | _ACEOF | ||
4851 | |||
4852 | fi | ||
4853 | |||
4854 | done | ||
4855 | |||
4856 | |||
4857 | |||
4858 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | ||
4859 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | ||
4860 | MINIX=yes | ||
4861 | else | ||
4862 | MINIX= | ||
4863 | fi | ||
4864 | |||
4865 | |||
4866 | if test "$MINIX" = yes; then | ||
4867 | |||
4868 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | ||
4869 | |||
4870 | |||
4871 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | ||
4872 | |||
4873 | |||
4874 | $as_echo "#define _MINIX 1" >>confdefs.h | ||
4875 | |||
4876 | fi | ||
4877 | |||
4878 | |||
4879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | ||
4880 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | ||
4881 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | ||
4882 | $as_echo_n "(cached) " >&6 | ||
4883 | else | ||
4884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4885 | /* end confdefs.h. */ | ||
4886 | |||
4887 | # define __EXTENSIONS__ 1 | ||
4888 | $ac_includes_default | ||
4889 | int | ||
4890 | main () | ||
4891 | { | ||
4892 | |||
4893 | ; | ||
4894 | return 0; | ||
4895 | } | ||
4896 | _ACEOF | ||
4897 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4898 | ac_cv_safe_to_define___extensions__=yes | ||
4899 | else | ||
4900 | ac_cv_safe_to_define___extensions__=no | ||
4901 | fi | ||
4902 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4903 | fi | ||
4904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | ||
4905 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | ||
4906 | test $ac_cv_safe_to_define___extensions__ = yes && | ||
4907 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | ||
4908 | |||
4909 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | ||
4910 | |||
4911 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | ||
4912 | |||
4913 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | ||
4914 | |||
4915 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | ||
4916 | |||
4917 | |||
4918 | |||
4919 | # Check whether --enable-largefile was given. | ||
4920 | if test "${enable_largefile+set}" = set; then : | ||
4921 | enableval=$enable_largefile; | ||
4922 | fi | ||
4923 | |||
4924 | if test "$enable_largefile" != no; then | ||
4925 | |||
4926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | ||
4927 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | ||
4928 | if test "${ac_cv_sys_largefile_CC+set}" = set; then : | ||
4929 | $as_echo_n "(cached) " >&6 | ||
4930 | else | ||
4931 | ac_cv_sys_largefile_CC=no | ||
4932 | if test "$GCC" != yes; then | ||
4933 | ac_save_CC=$CC | ||
4934 | while :; do | ||
4935 | # IRIX 6.2 and later do not support large files by default, | ||
4936 | # so use the C compiler's -n32 option if that helps. | ||
4937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4938 | /* end confdefs.h. */ | ||
4939 | #include <sys/types.h> | ||
4940 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
4941 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
4942 | since some C++ compilers masquerading as C compilers | ||
4943 | incorrectly reject 9223372036854775807. */ | ||
4944 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
4945 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
4946 | && LARGE_OFF_T % 2147483647 == 1) | ||
4947 | ? 1 : -1]; | ||
4948 | int | ||
4949 | main () | ||
4950 | { | ||
4951 | |||
4952 | ; | ||
4953 | return 0; | ||
4954 | } | ||
4955 | _ACEOF | ||
4956 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4957 | break | ||
4958 | fi | ||
4959 | rm -f core conftest.err conftest.$ac_objext | ||
4960 | CC="$CC -n32" | ||
4961 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4962 | ac_cv_sys_largefile_CC=' -n32'; break | ||
4963 | fi | ||
4964 | rm -f core conftest.err conftest.$ac_objext | ||
4965 | break | ||
4966 | done | ||
4967 | CC=$ac_save_CC | ||
4968 | rm -f conftest.$ac_ext | ||
4969 | fi | ||
4970 | fi | ||
4971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | ||
4972 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | ||
4973 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
4974 | CC=$CC$ac_cv_sys_largefile_CC | ||
4975 | fi | ||
4976 | |||
4977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
4978 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | ||
4979 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then : | ||
4980 | $as_echo_n "(cached) " >&6 | ||
4981 | else | ||
4982 | while :; do | ||
4983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4984 | /* end confdefs.h. */ | ||
4985 | #include <sys/types.h> | ||
4986 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
4987 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
4988 | since some C++ compilers masquerading as C compilers | ||
4989 | incorrectly reject 9223372036854775807. */ | ||
4990 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
4991 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
4992 | && LARGE_OFF_T % 2147483647 == 1) | ||
4993 | ? 1 : -1]; | ||
4994 | int | ||
4995 | main () | ||
4996 | { | ||
4997 | |||
4998 | ; | ||
4999 | return 0; | ||
5000 | } | ||
5001 | _ACEOF | ||
5002 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5003 | ac_cv_sys_file_offset_bits=no; break | ||
5004 | fi | ||
5005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5007 | /* end confdefs.h. */ | ||
5008 | #define _FILE_OFFSET_BITS 64 | ||
5009 | #include <sys/types.h> | ||
5010 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5011 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5012 | since some C++ compilers masquerading as C compilers | ||
5013 | incorrectly reject 9223372036854775807. */ | ||
5014 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5015 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5016 | && LARGE_OFF_T % 2147483647 == 1) | ||
5017 | ? 1 : -1]; | ||
5018 | int | ||
5019 | main () | ||
5020 | { | ||
5021 | |||
5022 | ; | ||
5023 | return 0; | ||
5024 | } | ||
5025 | _ACEOF | ||
5026 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5027 | ac_cv_sys_file_offset_bits=64; break | ||
5028 | fi | ||
5029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5030 | ac_cv_sys_file_offset_bits=unknown | ||
5031 | break | ||
5032 | done | ||
5033 | fi | ||
5034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | ||
5035 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | ||
5036 | case $ac_cv_sys_file_offset_bits in #( | ||
5037 | no | unknown) ;; | ||
5038 | *) | ||
5039 | cat >>confdefs.h <<_ACEOF | ||
5040 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
5041 | _ACEOF | ||
5042 | ;; | ||
5043 | esac | ||
5044 | rm -rf conftest* | ||
5045 | if test $ac_cv_sys_file_offset_bits = unknown; then | ||
5046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | ||
5047 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | ||
5048 | if test "${ac_cv_sys_large_files+set}" = set; then : | ||
5049 | $as_echo_n "(cached) " >&6 | ||
5050 | else | ||
5051 | while :; do | ||
5052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5053 | /* end confdefs.h. */ | ||
5054 | #include <sys/types.h> | ||
5055 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5056 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5057 | since some C++ compilers masquerading as C compilers | ||
5058 | incorrectly reject 9223372036854775807. */ | ||
5059 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5060 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5061 | && LARGE_OFF_T % 2147483647 == 1) | ||
5062 | ? 1 : -1]; | ||
5063 | int | ||
5064 | main () | ||
5065 | { | ||
5066 | |||
5067 | ; | ||
5068 | return 0; | ||
5069 | } | ||
5070 | _ACEOF | ||
5071 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5072 | ac_cv_sys_large_files=no; break | ||
5073 | fi | ||
5074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5076 | /* end confdefs.h. */ | ||
5077 | #define _LARGE_FILES 1 | ||
5078 | #include <sys/types.h> | ||
5079 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5080 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5081 | since some C++ compilers masquerading as C compilers | ||
5082 | incorrectly reject 9223372036854775807. */ | ||
5083 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5084 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5085 | && LARGE_OFF_T % 2147483647 == 1) | ||
5086 | ? 1 : -1]; | ||
5087 | int | ||
5088 | main () | ||
5089 | { | ||
5090 | |||
5091 | ; | ||
5092 | return 0; | ||
5093 | } | ||
5094 | _ACEOF | ||
5095 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5096 | ac_cv_sys_large_files=1; break | ||
5097 | fi | ||
5098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5099 | ac_cv_sys_large_files=unknown | ||
5100 | break | ||
5101 | done | ||
5102 | fi | ||
5103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | ||
5104 | $as_echo "$ac_cv_sys_large_files" >&6; } | ||
5105 | case $ac_cv_sys_large_files in #( | ||
5106 | no | unknown) ;; | ||
5107 | *) | ||
5108 | cat >>confdefs.h <<_ACEOF | ||
5109 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
5110 | _ACEOF | ||
5111 | ;; | ||
5112 | esac | ||
5113 | rm -rf conftest* | ||
5114 | fi | ||
5115 | fi | ||
5116 | |||
5117 | |||
5118 | # Make sure we can run config.sub. | ||
5119 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
5120 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | ||
5121 | |||
5122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | ||
5123 | $as_echo_n "checking build system type... " >&6; } | ||
5124 | if test "${ac_cv_build+set}" = set; then : | ||
5125 | $as_echo_n "(cached) " >&6 | ||
5126 | else | ||
5127 | ac_build_alias=$build_alias | ||
5128 | test "x$ac_build_alias" = x && | ||
5129 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
5130 | test "x$ac_build_alias" = x && | ||
5131 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | ||
5132 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
5133 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | ||
5134 | |||
5135 | fi | ||
5136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | ||
5137 | $as_echo "$ac_cv_build" >&6; } | ||
5138 | case $ac_cv_build in | ||
5139 | *-*-*) ;; | ||
5140 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; | ||
5141 | esac | ||
5142 | build=$ac_cv_build | ||
5143 | ac_save_IFS=$IFS; IFS='-' | ||
5144 | set x $ac_cv_build | ||
5145 | shift | ||
5146 | build_cpu=$1 | ||
5147 | build_vendor=$2 | ||
5148 | shift; shift | ||
5149 | # Remember, the first character of IFS is used to create $*, | ||
5150 | # except with old shells: | ||
5151 | build_os=$* | ||
5152 | IFS=$ac_save_IFS | ||
5153 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
5154 | |||
5155 | |||
5156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | ||
5157 | $as_echo_n "checking host system type... " >&6; } | ||
5158 | if test "${ac_cv_host+set}" = set; then : | ||
5159 | $as_echo_n "(cached) " >&6 | ||
5160 | else | ||
5161 | if test "x$host_alias" = x; then | ||
5162 | ac_cv_host=$ac_cv_build | ||
5163 | else | ||
5164 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
5165 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | ||
5166 | fi | ||
5167 | |||
5168 | fi | ||
5169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | ||
5170 | $as_echo "$ac_cv_host" >&6; } | ||
5171 | case $ac_cv_host in | ||
5172 | *-*-*) ;; | ||
5173 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; | ||
5174 | esac | ||
5175 | host=$ac_cv_host | ||
5176 | ac_save_IFS=$IFS; IFS='-' | ||
5177 | set x $ac_cv_host | ||
5178 | shift | ||
5179 | host_cpu=$1 | ||
5180 | host_vendor=$2 | ||
5181 | shift; shift | ||
5182 | # Remember, the first character of IFS is used to create $*, | ||
5183 | # except with old shells: | ||
5184 | host_os=$* | ||
5185 | IFS=$ac_save_IFS | ||
5186 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
5187 | |||
5188 | |||
5189 | enable_win32_dll=yes | ||
5190 | |||
5191 | case $host in | ||
5192 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) | ||
5193 | if test -n "$ac_tool_prefix"; then | ||
5194 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | ||
5195 | set dummy ${ac_tool_prefix}as; ac_word=$2 | ||
5196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5197 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5198 | if test "${ac_cv_prog_AS+set}" = set; then : | ||
5199 | $as_echo_n "(cached) " >&6 | ||
5200 | else | ||
5201 | if test -n "$AS"; then | ||
5202 | ac_cv_prog_AS="$AS" # Let the user override the test. | ||
5203 | else | ||
5204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5205 | for as_dir in $PATH | ||
5206 | do | ||
5207 | IFS=$as_save_IFS | ||
5208 | test -z "$as_dir" && as_dir=. | ||
5209 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5210 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5211 | ac_cv_prog_AS="${ac_tool_prefix}as" | ||
5212 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5213 | break 2 | ||
5214 | fi | ||
5215 | done | ||
5216 | done | ||
5217 | IFS=$as_save_IFS | ||
5218 | |||
5219 | fi | ||
5220 | fi | ||
5221 | AS=$ac_cv_prog_AS | ||
5222 | if test -n "$AS"; then | ||
5223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | ||
5224 | $as_echo "$AS" >&6; } | ||
5225 | else | ||
5226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5227 | $as_echo "no" >&6; } | ||
5228 | fi | ||
5229 | |||
5230 | |||
5231 | fi | ||
5232 | if test -z "$ac_cv_prog_AS"; then | ||
5233 | ac_ct_AS=$AS | ||
5234 | # Extract the first word of "as", so it can be a program name with args. | ||
5235 | set dummy as; ac_word=$2 | ||
5236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5237 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5238 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : | ||
5239 | $as_echo_n "(cached) " >&6 | ||
5240 | else | ||
5241 | if test -n "$ac_ct_AS"; then | ||
5242 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | ||
5243 | else | ||
5244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5245 | for as_dir in $PATH | ||
5246 | do | ||
5247 | IFS=$as_save_IFS | ||
5248 | test -z "$as_dir" && as_dir=. | ||
5249 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5250 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5251 | ac_cv_prog_ac_ct_AS="as" | ||
5252 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5253 | break 2 | ||
5254 | fi | ||
5255 | done | ||
5256 | done | ||
5257 | IFS=$as_save_IFS | ||
5258 | |||
5259 | fi | ||
5260 | fi | ||
5261 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | ||
5262 | if test -n "$ac_ct_AS"; then | ||
5263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 | ||
5264 | $as_echo "$ac_ct_AS" >&6; } | ||
5265 | else | ||
5266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5267 | $as_echo "no" >&6; } | ||
5268 | fi | ||
5269 | |||
5270 | if test "x$ac_ct_AS" = x; then | ||
5271 | AS="false" | ||
5272 | else | ||
5273 | case $cross_compiling:$ac_tool_warned in | ||
5274 | yes:) | ||
5275 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5276 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5277 | ac_tool_warned=yes ;; | ||
5278 | esac | ||
5279 | AS=$ac_ct_AS | ||
5280 | fi | ||
5281 | else | ||
5282 | AS="$ac_cv_prog_AS" | ||
5283 | fi | ||
5284 | |||
5285 | if test -n "$ac_tool_prefix"; then | ||
5286 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | ||
5287 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | ||
5288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5289 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5290 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | ||
5291 | $as_echo_n "(cached) " >&6 | ||
5292 | else | ||
5293 | if test -n "$DLLTOOL"; then | ||
5294 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | ||
5295 | else | ||
5296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5297 | for as_dir in $PATH | ||
5298 | do | ||
5299 | IFS=$as_save_IFS | ||
5300 | test -z "$as_dir" && as_dir=. | ||
5301 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5302 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5303 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | ||
5304 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5305 | break 2 | ||
5306 | fi | ||
5307 | done | ||
5308 | done | ||
5309 | IFS=$as_save_IFS | ||
5310 | |||
5311 | fi | ||
5312 | fi | ||
5313 | DLLTOOL=$ac_cv_prog_DLLTOOL | ||
5314 | if test -n "$DLLTOOL"; then | ||
5315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | ||
5316 | $as_echo "$DLLTOOL" >&6; } | ||
5317 | else | ||
5318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5319 | $as_echo "no" >&6; } | ||
5320 | fi | ||
5321 | |||
5322 | |||
5323 | fi | ||
5324 | if test -z "$ac_cv_prog_DLLTOOL"; then | ||
5325 | ac_ct_DLLTOOL=$DLLTOOL | ||
5326 | # Extract the first word of "dlltool", so it can be a program name with args. | ||
5327 | set dummy dlltool; ac_word=$2 | ||
5328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5329 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5330 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : | ||
5331 | $as_echo_n "(cached) " >&6 | ||
5332 | else | ||
5333 | if test -n "$ac_ct_DLLTOOL"; then | ||
5334 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | ||
5335 | else | ||
5336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5337 | for as_dir in $PATH | ||
5338 | do | ||
5339 | IFS=$as_save_IFS | ||
5340 | test -z "$as_dir" && as_dir=. | ||
5341 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5342 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5343 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | ||
5344 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5345 | break 2 | ||
5346 | fi | ||
5347 | done | ||
5348 | done | ||
5349 | IFS=$as_save_IFS | ||
5350 | |||
5351 | fi | ||
5352 | fi | ||
5353 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | ||
5354 | if test -n "$ac_ct_DLLTOOL"; then | ||
5355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | ||
5356 | $as_echo "$ac_ct_DLLTOOL" >&6; } | ||
5357 | else | ||
5358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5359 | $as_echo "no" >&6; } | ||
5360 | fi | ||
5361 | |||
5362 | if test "x$ac_ct_DLLTOOL" = x; then | ||
5363 | DLLTOOL="false" | ||
5364 | else | ||
5365 | case $cross_compiling:$ac_tool_warned in | ||
5366 | yes:) | ||
5367 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5368 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5369 | ac_tool_warned=yes ;; | ||
5370 | esac | ||
5371 | DLLTOOL=$ac_ct_DLLTOOL | ||
5372 | fi | ||
5373 | else | ||
5374 | DLLTOOL="$ac_cv_prog_DLLTOOL" | ||
5375 | fi | ||
5376 | |||
5377 | if test -n "$ac_tool_prefix"; then | ||
5378 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | ||
5379 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | ||
5380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5381 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5382 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | ||
5383 | $as_echo_n "(cached) " >&6 | ||
5384 | else | ||
5385 | if test -n "$OBJDUMP"; then | ||
5386 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | ||
5387 | else | ||
5388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5389 | for as_dir in $PATH | ||
5390 | do | ||
5391 | IFS=$as_save_IFS | ||
5392 | test -z "$as_dir" && as_dir=. | ||
5393 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5394 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5395 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | ||
5396 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5397 | break 2 | ||
5398 | fi | ||
5399 | done | ||
5400 | done | ||
5401 | IFS=$as_save_IFS | ||
5402 | |||
5403 | fi | ||
5404 | fi | ||
5405 | OBJDUMP=$ac_cv_prog_OBJDUMP | ||
5406 | if test -n "$OBJDUMP"; then | ||
5407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | ||
5408 | $as_echo "$OBJDUMP" >&6; } | ||
5409 | else | ||
5410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5411 | $as_echo "no" >&6; } | ||
5412 | fi | ||
5413 | |||
5414 | |||
5415 | fi | ||
5416 | if test -z "$ac_cv_prog_OBJDUMP"; then | ||
5417 | ac_ct_OBJDUMP=$OBJDUMP | ||
5418 | # Extract the first word of "objdump", so it can be a program name with args. | ||
5419 | set dummy objdump; ac_word=$2 | ||
5420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5421 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5422 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | ||
5423 | $as_echo_n "(cached) " >&6 | ||
5424 | else | ||
5425 | if test -n "$ac_ct_OBJDUMP"; then | ||
5426 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | ||
5427 | else | ||
5428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5429 | for as_dir in $PATH | ||
5430 | do | ||
5431 | IFS=$as_save_IFS | ||
5432 | test -z "$as_dir" && as_dir=. | ||
5433 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5434 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5435 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | ||
5436 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5437 | break 2 | ||
5438 | fi | ||
5439 | done | ||
5440 | done | ||
5441 | IFS=$as_save_IFS | ||
5442 | |||
5443 | fi | ||
5444 | fi | ||
5445 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | ||
5446 | if test -n "$ac_ct_OBJDUMP"; then | ||
5447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | ||
5448 | $as_echo "$ac_ct_OBJDUMP" >&6; } | ||
5449 | else | ||
5450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5451 | $as_echo "no" >&6; } | ||
5452 | fi | ||
5453 | |||
5454 | if test "x$ac_ct_OBJDUMP" = x; then | ||
5455 | OBJDUMP="false" | ||
5456 | else | ||
5457 | case $cross_compiling:$ac_tool_warned in | ||
5458 | yes:) | ||
5459 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5460 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5461 | ac_tool_warned=yes ;; | ||
5462 | esac | ||
5463 | OBJDUMP=$ac_ct_OBJDUMP | ||
5464 | fi | ||
5465 | else | ||
5466 | OBJDUMP="$ac_cv_prog_OBJDUMP" | ||
5467 | fi | ||
5468 | |||
5469 | ;; | ||
5470 | esac | ||
5471 | |||
5472 | test -z "$AS" && AS=as | ||
5473 | |||
5474 | |||
5475 | |||
5476 | |||
5477 | |||
5478 | test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
5479 | |||
5480 | |||
5481 | |||
5482 | |||
5483 | |||
5484 | test -z "$OBJDUMP" && OBJDUMP=objdump | ||
5485 | |||
5486 | |||
5487 | |||
5488 | |||
5489 | |||
5490 | |||
5491 | |||
5492 | case `pwd` in | ||
5493 | *\ * | *\ *) | ||
5494 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | ||
5495 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | ||
5496 | esac | ||
5497 | |||
5498 | |||
5499 | |||
5500 | macro_version='2.2.6b' | ||
5501 | macro_revision='1.3017' | ||
5502 | |||
5503 | |||
5504 | |||
5505 | |||
5506 | |||
5507 | |||
5508 | |||
5509 | |||
5510 | |||
5511 | |||
5512 | |||
5513 | |||
5514 | |||
5515 | ltmain="$ac_aux_dir/ltmain.sh" | ||
5516 | |||
5517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | ||
5518 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | ||
5519 | if test "${ac_cv_path_SED+set}" = set; then : | ||
5520 | $as_echo_n "(cached) " >&6 | ||
5521 | else | ||
5522 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | ||
5523 | for ac_i in 1 2 3 4 5 6 7; do | ||
5524 | ac_script="$ac_script$as_nl$ac_script" | ||
5525 | done | ||
5526 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | ||
5527 | { ac_script=; unset ac_script;} | ||
5528 | if test -z "$SED"; then | ||
5529 | ac_path_SED_found=false | ||
5530 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
5531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5532 | for as_dir in $PATH | ||
5533 | do | ||
5534 | IFS=$as_save_IFS | ||
5535 | test -z "$as_dir" && as_dir=. | ||
5536 | for ac_prog in sed gsed; do | ||
5537 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5538 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | ||
5539 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | ||
5540 | # Check for GNU ac_path_SED and select it if it is found. | ||
5541 | # Check for GNU $ac_path_SED | ||
5542 | case `"$ac_path_SED" --version 2>&1` in | ||
5543 | *GNU*) | ||
5544 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | ||
5545 | *) | ||
5546 | ac_count=0 | ||
5547 | $as_echo_n 0123456789 >"conftest.in" | ||
5548 | while : | ||
5549 | do | ||
5550 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
5551 | mv "conftest.tmp" "conftest.in" | ||
5552 | cp "conftest.in" "conftest.nl" | ||
5553 | $as_echo '' >> "conftest.nl" | ||
5554 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
5555 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
5556 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
5557 | if test $ac_count -gt ${ac_path_SED_max-0}; then | ||
5558 | # Best one so far, save it but keep looking for a better one | ||
5559 | ac_cv_path_SED="$ac_path_SED" | ||
5560 | ac_path_SED_max=$ac_count | ||
5561 | fi | ||
5562 | # 10*(2^10) chars as input seems more than enough | ||
5563 | test $ac_count -gt 10 && break | ||
5564 | done | ||
5565 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
5566 | esac | ||
5567 | |||
5568 | $ac_path_SED_found && break 3 | ||
5569 | done | ||
5570 | done | ||
5571 | done | ||
5572 | IFS=$as_save_IFS | ||
5573 | if test -z "$ac_cv_path_SED"; then | ||
5574 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | ||
5575 | fi | ||
5576 | else | ||
5577 | ac_cv_path_SED=$SED | ||
5578 | fi | ||
5579 | |||
5580 | fi | ||
5581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | ||
5582 | $as_echo "$ac_cv_path_SED" >&6; } | ||
5583 | SED="$ac_cv_path_SED" | ||
5584 | rm -f conftest.sed | ||
5585 | |||
5586 | test -z "$SED" && SED=sed | ||
5587 | Xsed="$SED -e 1s/^X//" | ||
5588 | |||
5589 | |||
5590 | |||
5591 | |||
5592 | |||
5593 | |||
5594 | |||
5595 | |||
5596 | |||
5597 | |||
5598 | |||
5599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | ||
5600 | $as_echo_n "checking for fgrep... " >&6; } | ||
5601 | if test "${ac_cv_path_FGREP+set}" = set; then : | ||
5602 | $as_echo_n "(cached) " >&6 | ||
5603 | else | ||
5604 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | ||
5605 | then ac_cv_path_FGREP="$GREP -F" | ||
5606 | else | ||
5607 | if test -z "$FGREP"; then | ||
5608 | ac_path_FGREP_found=false | ||
5609 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
5610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5611 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
5612 | do | ||
5613 | IFS=$as_save_IFS | ||
5614 | test -z "$as_dir" && as_dir=. | ||
5615 | for ac_prog in fgrep; do | ||
5616 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5617 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
5618 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | ||
5619 | # Check for GNU ac_path_FGREP and select it if it is found. | ||
5620 | # Check for GNU $ac_path_FGREP | ||
5621 | case `"$ac_path_FGREP" --version 2>&1` in | ||
5622 | *GNU*) | ||
5623 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | ||
5624 | *) | ||
5625 | ac_count=0 | ||
5626 | $as_echo_n 0123456789 >"conftest.in" | ||
5627 | while : | ||
5628 | do | ||
5629 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
5630 | mv "conftest.tmp" "conftest.in" | ||
5631 | cp "conftest.in" "conftest.nl" | ||
5632 | $as_echo 'FGREP' >> "conftest.nl" | ||
5633 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
5634 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
5635 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
5636 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | ||
5637 | # Best one so far, save it but keep looking for a better one | ||
5638 | ac_cv_path_FGREP="$ac_path_FGREP" | ||
5639 | ac_path_FGREP_max=$ac_count | ||
5640 | fi | ||
5641 | # 10*(2^10) chars as input seems more than enough | ||
5642 | test $ac_count -gt 10 && break | ||
5643 | done | ||
5644 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
5645 | esac | ||
5646 | |||
5647 | $ac_path_FGREP_found && break 3 | ||
5648 | done | ||
5649 | done | ||
5650 | done | ||
5651 | IFS=$as_save_IFS | ||
5652 | if test -z "$ac_cv_path_FGREP"; then | ||
5653 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
5654 | fi | ||
5655 | else | ||
5656 | ac_cv_path_FGREP=$FGREP | ||
5657 | fi | ||
5658 | |||
5659 | fi | ||
5660 | fi | ||
5661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | ||
5662 | $as_echo "$ac_cv_path_FGREP" >&6; } | ||
5663 | FGREP="$ac_cv_path_FGREP" | ||
5664 | |||
5665 | |||
5666 | test -z "$GREP" && GREP=grep | ||
5667 | |||
5668 | |||
5669 | |||
5670 | |||
5671 | |||
5672 | |||
5673 | |||
5674 | |||
5675 | |||
5676 | |||
5677 | |||
5678 | |||
5679 | |||
5680 | |||
5681 | |||
5682 | |||
5683 | |||
5684 | |||
5685 | |||
5686 | # Check whether --with-gnu-ld was given. | ||
5687 | if test "${with_gnu_ld+set}" = set; then : | ||
5688 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | ||
5689 | else | ||
5690 | with_gnu_ld=no | ||
5691 | fi | ||
5692 | |||
5693 | ac_prog=ld | ||
5694 | if test "$GCC" = yes; then | ||
5695 | # Check if gcc -print-prog-name=ld gives a path. | ||
5696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | ||
5697 | $as_echo_n "checking for ld used by $CC... " >&6; } | ||
5698 | case $host in | ||
5699 | *-*-mingw*) | ||
5700 | # gcc leaves a trailing carriage return which upsets mingw | ||
5701 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
5702 | *) | ||
5703 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
5704 | esac | ||
5705 | case $ac_prog in | ||
5706 | # Accept absolute paths. | ||
5707 | [\\/]* | ?:[\\/]*) | ||
5708 | re_direlt='/[^/][^/]*/\.\./' | ||
5709 | # Canonicalize the pathname of ld | ||
5710 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | ||
5711 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | ||
5712 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | ||
5713 | done | ||
5714 | test -z "$LD" && LD="$ac_prog" | ||
5715 | ;; | ||
5716 | "") | ||
5717 | # If it fails, then pretend we aren't using GCC. | ||
5718 | ac_prog=ld | ||
5719 | ;; | ||
5720 | *) | ||
5721 | # If it is relative, then search for the first ld in PATH. | ||
5722 | with_gnu_ld=unknown | ||
5723 | ;; | ||
5724 | esac | ||
5725 | elif test "$with_gnu_ld" = yes; then | ||
5726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | ||
5727 | $as_echo_n "checking for GNU ld... " >&6; } | ||
5728 | else | ||
5729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | ||
5730 | $as_echo_n "checking for non-GNU ld... " >&6; } | ||
5731 | fi | ||
5732 | if test "${lt_cv_path_LD+set}" = set; then : | ||
5733 | $as_echo_n "(cached) " >&6 | ||
5734 | else | ||
5735 | if test -z "$LD"; then | ||
5736 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
5737 | for ac_dir in $PATH; do | ||
5738 | IFS="$lt_save_ifs" | ||
5739 | test -z "$ac_dir" && ac_dir=. | ||
5740 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
5741 | lt_cv_path_LD="$ac_dir/$ac_prog" | ||
5742 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
5743 | # but apparently some variants of GNU ld only accept -v. | ||
5744 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
5745 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
5746 | *GNU* | *'with BFD'*) | ||
5747 | test "$with_gnu_ld" != no && break | ||
5748 | ;; | ||
5749 | *) | ||
5750 | test "$with_gnu_ld" != yes && break | ||
5751 | ;; | ||
5752 | esac | ||
5753 | fi | ||
5754 | done | ||
5755 | IFS="$lt_save_ifs" | ||
5756 | else | ||
5757 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
5758 | fi | ||
5759 | fi | ||
5760 | |||
5761 | LD="$lt_cv_path_LD" | ||
5762 | if test -n "$LD"; then | ||
5763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | ||
5764 | $as_echo "$LD" >&6; } | ||
5765 | else | ||
5766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5767 | $as_echo "no" >&6; } | ||
5768 | fi | ||
5769 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | ||
5770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | ||
5771 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | ||
5772 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | ||
5773 | $as_echo_n "(cached) " >&6 | ||
5774 | else | ||
5775 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | ||
5776 | case `$LD -v 2>&1 </dev/null` in | ||
5777 | *GNU* | *'with BFD'*) | ||
5778 | lt_cv_prog_gnu_ld=yes | ||
5779 | ;; | ||
5780 | *) | ||
5781 | lt_cv_prog_gnu_ld=no | ||
5782 | ;; | ||
5783 | esac | ||
5784 | fi | ||
5785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | ||
5786 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | ||
5787 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
5788 | |||
5789 | |||
5790 | |||
5791 | |||
5792 | |||
5793 | |||
5794 | |||
5795 | |||
5796 | |||
5797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | ||
5798 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | ||
5799 | if test "${lt_cv_path_NM+set}" = set; then : | ||
5800 | $as_echo_n "(cached) " >&6 | ||
5801 | else | ||
5802 | if test -n "$NM"; then | ||
5803 | # Let the user override the test. | ||
5804 | lt_cv_path_NM="$NM" | ||
5805 | else | ||
5806 | lt_nm_to_check="${ac_tool_prefix}nm" | ||
5807 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | ||
5808 | lt_nm_to_check="$lt_nm_to_check nm" | ||
5809 | fi | ||
5810 | for lt_tmp_nm in $lt_nm_to_check; do | ||
5811 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
5812 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | ||
5813 | IFS="$lt_save_ifs" | ||
5814 | test -z "$ac_dir" && ac_dir=. | ||
5815 | tmp_nm="$ac_dir/$lt_tmp_nm" | ||
5816 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | ||
5817 | # Check to see if the nm accepts a BSD-compat flag. | ||
5818 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | ||
5819 | # nm: unknown option "B" ignored | ||
5820 | # Tru64's nm complains that /dev/null is an invalid object file | ||
5821 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | ||
5822 | */dev/null* | *'Invalid file or object type'*) | ||
5823 | lt_cv_path_NM="$tmp_nm -B" | ||
5824 | break | ||
5825 | ;; | ||
5826 | *) | ||
5827 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | ||
5828 | */dev/null*) | ||
5829 | lt_cv_path_NM="$tmp_nm -p" | ||
5830 | break | ||
5831 | ;; | ||
5832 | *) | ||
5833 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | ||
5834 | continue # so that we can try to find one that supports BSD flags | ||
5835 | ;; | ||
5836 | esac | ||
5837 | ;; | ||
5838 | esac | ||
5839 | fi | ||
5840 | done | ||
5841 | IFS="$lt_save_ifs" | ||
5842 | done | ||
5843 | : ${lt_cv_path_NM=no} | ||
5844 | fi | ||
5845 | fi | ||
5846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | ||
5847 | $as_echo "$lt_cv_path_NM" >&6; } | ||
5848 | if test "$lt_cv_path_NM" != "no"; then | ||
5849 | NM="$lt_cv_path_NM" | ||
5850 | else | ||
5851 | # Didn't find any BSD compatible name lister, look for dumpbin. | ||
5852 | if test -n "$ac_tool_prefix"; then | ||
5853 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
5854 | do | ||
5855 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
5856 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
5857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5858 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5859 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | ||
5860 | $as_echo_n "(cached) " >&6 | ||
5861 | else | ||
5862 | if test -n "$DUMPBIN"; then | ||
5863 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | ||
5864 | else | ||
5865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5866 | for as_dir in $PATH | ||
5867 | do | ||
5868 | IFS=$as_save_IFS | ||
5869 | test -z "$as_dir" && as_dir=. | ||
5870 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5871 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5872 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | ||
5873 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5874 | break 2 | ||
5875 | fi | ||
5876 | done | ||
5877 | done | ||
5878 | IFS=$as_save_IFS | ||
5879 | |||
5880 | fi | ||
5881 | fi | ||
5882 | DUMPBIN=$ac_cv_prog_DUMPBIN | ||
5883 | if test -n "$DUMPBIN"; then | ||
5884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | ||
5885 | $as_echo "$DUMPBIN" >&6; } | ||
5886 | else | ||
5887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5888 | $as_echo "no" >&6; } | ||
5889 | fi | ||
5890 | |||
5891 | |||
5892 | test -n "$DUMPBIN" && break | ||
5893 | done | ||
5894 | fi | ||
5895 | if test -z "$DUMPBIN"; then | ||
5896 | ac_ct_DUMPBIN=$DUMPBIN | ||
5897 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
5898 | do | ||
5899 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
5900 | set dummy $ac_prog; ac_word=$2 | ||
5901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5902 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5903 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | ||
5904 | $as_echo_n "(cached) " >&6 | ||
5905 | else | ||
5906 | if test -n "$ac_ct_DUMPBIN"; then | ||
5907 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | ||
5908 | else | ||
5909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5910 | for as_dir in $PATH | ||
5911 | do | ||
5912 | IFS=$as_save_IFS | ||
5913 | test -z "$as_dir" && as_dir=. | ||
5914 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5915 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5916 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | ||
5917 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5918 | break 2 | ||
5919 | fi | ||
5920 | done | ||
5921 | done | ||
5922 | IFS=$as_save_IFS | ||
5923 | |||
5924 | fi | ||
5925 | fi | ||
5926 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | ||
5927 | if test -n "$ac_ct_DUMPBIN"; then | ||
5928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | ||
5929 | $as_echo "$ac_ct_DUMPBIN" >&6; } | ||
5930 | else | ||
5931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5932 | $as_echo "no" >&6; } | ||
5933 | fi | ||
5934 | |||
5935 | |||
5936 | test -n "$ac_ct_DUMPBIN" && break | ||
5937 | done | ||
5938 | |||
5939 | if test "x$ac_ct_DUMPBIN" = x; then | ||
5940 | DUMPBIN=":" | ||
5941 | else | ||
5942 | case $cross_compiling:$ac_tool_warned in | ||
5943 | yes:) | ||
5944 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5945 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5946 | ac_tool_warned=yes ;; | ||
5947 | esac | ||
5948 | DUMPBIN=$ac_ct_DUMPBIN | ||
5949 | fi | ||
5950 | fi | ||
5951 | |||
5952 | |||
5953 | if test "$DUMPBIN" != ":"; then | ||
5954 | NM="$DUMPBIN" | ||
5955 | fi | ||
5956 | fi | ||
5957 | test -z "$NM" && NM=nm | ||
5958 | |||
5959 | |||
5960 | |||
5961 | |||
5962 | |||
5963 | |||
5964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | ||
5965 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | ||
5966 | if test "${lt_cv_nm_interface+set}" = set; then : | ||
5967 | $as_echo_n "(cached) " >&6 | ||
5968 | else | ||
5969 | lt_cv_nm_interface="BSD nm" | ||
5970 | echo "int some_variable = 0;" > conftest.$ac_ext | ||
5971 | (eval echo "\"\$as_me:5971: $ac_compile\"" >&5) | ||
5972 | (eval "$ac_compile" 2>conftest.err) | ||
5973 | cat conftest.err >&5 | ||
5974 | (eval echo "\"\$as_me:5974: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | ||
5975 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | ||
5976 | cat conftest.err >&5 | ||
5977 | (eval echo "\"\$as_me:5977: output\"" >&5) | ||
5978 | cat conftest.out >&5 | ||
5979 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | ||
5980 | lt_cv_nm_interface="MS dumpbin" | ||
5981 | fi | ||
5982 | rm -f conftest* | ||
5983 | fi | ||
5984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | ||
5985 | $as_echo "$lt_cv_nm_interface" >&6; } | ||
5986 | |||
5987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | ||
5988 | $as_echo_n "checking whether ln -s works... " >&6; } | ||
5989 | LN_S=$as_ln_s | ||
5990 | if test "$LN_S" = "ln -s"; then | ||
5991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5992 | $as_echo "yes" >&6; } | ||
5993 | else | ||
5994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | ||
5995 | $as_echo "no, using $LN_S" >&6; } | ||
5996 | fi | ||
5997 | |||
5998 | # find the maximum length of command line arguments | ||
5999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | ||
6000 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | ||
6001 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | ||
6002 | $as_echo_n "(cached) " >&6 | ||
6003 | else | ||
6004 | i=0 | ||
6005 | teststring="ABCD" | ||
6006 | |||
6007 | case $build_os in | ||
6008 | msdosdjgpp*) | ||
6009 | # On DJGPP, this test can blow up pretty badly due to problems in libc | ||
6010 | # (any single argument exceeding 2000 bytes causes a buffer overrun | ||
6011 | # during glob expansion). Even if it were fixed, the result of this | ||
6012 | # check would be larger than it should be. | ||
6013 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | ||
6014 | ;; | ||
6015 | |||
6016 | gnu*) | ||
6017 | # Under GNU Hurd, this test is not required because there is | ||
6018 | # no limit to the length of command line arguments. | ||
6019 | # Libtool will interpret -1 as no limit whatsoever | ||
6020 | lt_cv_sys_max_cmd_len=-1; | ||
6021 | ;; | ||
6022 | |||
6023 | cygwin* | mingw* | cegcc*) | ||
6024 | # On Win9x/ME, this test blows up -- it succeeds, but takes | ||
6025 | # about 5 minutes as the teststring grows exponentially. | ||
6026 | # Worse, since 9x/ME are not pre-emptively multitasking, | ||
6027 | # you end up with a "frozen" computer, even though with patience | ||
6028 | # the test eventually succeeds (with a max line length of 256k). | ||
6029 | # Instead, let's just punt: use the minimum linelength reported by | ||
6030 | # all of the supported platforms: 8192 (on NT/2K/XP). | ||
6031 | lt_cv_sys_max_cmd_len=8192; | ||
6032 | ;; | ||
6033 | |||
6034 | amigaos*) | ||
6035 | # On AmigaOS with pdksh, this test takes hours, literally. | ||
6036 | # So we just punt and use a minimum line length of 8192. | ||
6037 | lt_cv_sys_max_cmd_len=8192; | ||
6038 | ;; | ||
6039 | |||
6040 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | ||
6041 | # This has been around since 386BSD, at least. Likely further. | ||
6042 | if test -x /sbin/sysctl; then | ||
6043 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | ||
6044 | elif test -x /usr/sbin/sysctl; then | ||
6045 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | ||
6046 | else | ||
6047 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | ||
6048 | fi | ||
6049 | # And add a safety zone | ||
6050 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
6051 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
6052 | ;; | ||
6053 | |||
6054 | interix*) | ||
6055 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | ||
6056 | lt_cv_sys_max_cmd_len=196608 | ||
6057 | ;; | ||
6058 | |||
6059 | osf*) | ||
6060 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | ||
6061 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | ||
6062 | # nice to cause kernel panics so lets avoid the loop below. | ||
6063 | # First set a reasonable default. | ||
6064 | lt_cv_sys_max_cmd_len=16384 | ||
6065 | # | ||
6066 | if test -x /sbin/sysconfig; then | ||
6067 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | ||
6068 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | ||
6069 | esac | ||
6070 | fi | ||
6071 | ;; | ||
6072 | sco3.2v5*) | ||
6073 | lt_cv_sys_max_cmd_len=102400 | ||
6074 | ;; | ||
6075 | sysv5* | sco5v6* | sysv4.2uw2*) | ||
6076 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | ||
6077 | if test -n "$kargmax"; then | ||
6078 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | ||
6079 | else | ||
6080 | lt_cv_sys_max_cmd_len=32768 | ||
6081 | fi | ||
6082 | ;; | ||
6083 | *) | ||
6084 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | ||
6085 | if test -n "$lt_cv_sys_max_cmd_len"; then | ||
6086 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
6087 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
6088 | else | ||
6089 | # Make teststring a little bigger before we do anything with it. | ||
6090 | # a 1K string should be a reasonable start. | ||
6091 | for i in 1 2 3 4 5 6 7 8 ; do | ||
6092 | teststring=$teststring$teststring | ||
6093 | done | ||
6094 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | ||
6095 | # If test is not a shell built-in, we'll probably end up computing a | ||
6096 | # maximum length that is only half of the actual maximum length, but | ||
6097 | # we can't tell. | ||
6098 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | ||
6099 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | ||
6100 | test $i != 17 # 1/2 MB should be enough | ||
6101 | do | ||
6102 | i=`expr $i + 1` | ||
6103 | teststring=$teststring$teststring | ||
6104 | done | ||
6105 | # Only check the string length outside the loop. | ||
6106 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | ||
6107 | teststring= | ||
6108 | # Add a significant safety factor because C++ compilers can tack on | ||
6109 | # massive amounts of additional arguments before passing them to the | ||
6110 | # linker. It appears as though 1/2 is a usable value. | ||
6111 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | ||
6112 | fi | ||
6113 | ;; | ||
6114 | esac | ||
6115 | |||
6116 | fi | ||
6117 | |||
6118 | if test -n $lt_cv_sys_max_cmd_len ; then | ||
6119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | ||
6120 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | ||
6121 | else | ||
6122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | ||
6123 | $as_echo "none" >&6; } | ||
6124 | fi | ||
6125 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
6126 | |||
6127 | |||
6128 | |||
6129 | |||
6130 | |||
6131 | |||
6132 | : ${CP="cp -f"} | ||
6133 | : ${MV="mv -f"} | ||
6134 | : ${RM="rm -f"} | ||
6135 | |||
6136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | ||
6137 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | ||
6138 | # Try some XSI features | ||
6139 | xsi_shell=no | ||
6140 | ( _lt_dummy="a/b/c" | ||
6141 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | ||
6142 | = c,a/b,, \ | ||
6143 | && eval 'test $(( 1 + 1 )) -eq 2 \ | ||
6144 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | ||
6145 | && xsi_shell=yes | ||
6146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | ||
6147 | $as_echo "$xsi_shell" >&6; } | ||
6148 | |||
6149 | |||
6150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | ||
6151 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | ||
6152 | lt_shell_append=no | ||
6153 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | ||
6154 | >/dev/null 2>&1 \ | ||
6155 | && lt_shell_append=yes | ||
6156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | ||
6157 | $as_echo "$lt_shell_append" >&6; } | ||
6158 | |||
6159 | |||
6160 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
6161 | lt_unset=unset | ||
6162 | else | ||
6163 | lt_unset=false | ||
6164 | fi | ||
6165 | |||
6166 | |||
6167 | |||
6168 | |||
6169 | |||
6170 | # test EBCDIC or ASCII | ||
6171 | case `echo X|tr X '\101'` in | ||
6172 | A) # ASCII based system | ||
6173 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | ||
6174 | lt_SP2NL='tr \040 \012' | ||
6175 | lt_NL2SP='tr \015\012 \040\040' | ||
6176 | ;; | ||
6177 | *) # EBCDIC based system | ||
6178 | lt_SP2NL='tr \100 \n' | ||
6179 | lt_NL2SP='tr \r\n \100\100' | ||
6180 | ;; | ||
6181 | esac | ||
6182 | |||
6183 | |||
6184 | |||
6185 | |||
6186 | |||
6187 | |||
6188 | |||
6189 | |||
6190 | |||
6191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | ||
6192 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | ||
6193 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | ||
6194 | $as_echo_n "(cached) " >&6 | ||
6195 | else | ||
6196 | lt_cv_ld_reload_flag='-r' | ||
6197 | fi | ||
6198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | ||
6199 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | ||
6200 | reload_flag=$lt_cv_ld_reload_flag | ||
6201 | case $reload_flag in | ||
6202 | "" | " "*) ;; | ||
6203 | *) reload_flag=" $reload_flag" ;; | ||
6204 | esac | ||
6205 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
6206 | case $host_os in | ||
6207 | darwin*) | ||
6208 | if test "$GCC" = yes; then | ||
6209 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
6210 | else | ||
6211 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
6212 | fi | ||
6213 | ;; | ||
6214 | esac | ||
6215 | |||
6216 | |||
6217 | |||
6218 | |||
6219 | |||
6220 | |||
6221 | |||
6222 | |||
6223 | |||
6224 | if test -n "$ac_tool_prefix"; then | ||
6225 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | ||
6226 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | ||
6227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6228 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6229 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | ||
6230 | $as_echo_n "(cached) " >&6 | ||
6231 | else | ||
6232 | if test -n "$OBJDUMP"; then | ||
6233 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | ||
6234 | else | ||
6235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6236 | for as_dir in $PATH | ||
6237 | do | ||
6238 | IFS=$as_save_IFS | ||
6239 | test -z "$as_dir" && as_dir=. | ||
6240 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6241 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6242 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | ||
6243 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6244 | break 2 | ||
6245 | fi | ||
6246 | done | ||
6247 | done | ||
6248 | IFS=$as_save_IFS | ||
6249 | |||
6250 | fi | ||
6251 | fi | ||
6252 | OBJDUMP=$ac_cv_prog_OBJDUMP | ||
6253 | if test -n "$OBJDUMP"; then | ||
6254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | ||
6255 | $as_echo "$OBJDUMP" >&6; } | ||
6256 | else | ||
6257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6258 | $as_echo "no" >&6; } | ||
6259 | fi | ||
6260 | |||
6261 | |||
6262 | fi | ||
6263 | if test -z "$ac_cv_prog_OBJDUMP"; then | ||
6264 | ac_ct_OBJDUMP=$OBJDUMP | ||
6265 | # Extract the first word of "objdump", so it can be a program name with args. | ||
6266 | set dummy objdump; ac_word=$2 | ||
6267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6268 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6269 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | ||
6270 | $as_echo_n "(cached) " >&6 | ||
6271 | else | ||
6272 | if test -n "$ac_ct_OBJDUMP"; then | ||
6273 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | ||
6274 | else | ||
6275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6276 | for as_dir in $PATH | ||
6277 | do | ||
6278 | IFS=$as_save_IFS | ||
6279 | test -z "$as_dir" && as_dir=. | ||
6280 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6281 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6282 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | ||
6283 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6284 | break 2 | ||
6285 | fi | ||
6286 | done | ||
6287 | done | ||
6288 | IFS=$as_save_IFS | ||
6289 | |||
6290 | fi | ||
6291 | fi | ||
6292 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | ||
6293 | if test -n "$ac_ct_OBJDUMP"; then | ||
6294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | ||
6295 | $as_echo "$ac_ct_OBJDUMP" >&6; } | ||
6296 | else | ||
6297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6298 | $as_echo "no" >&6; } | ||
6299 | fi | ||
6300 | |||
6301 | if test "x$ac_ct_OBJDUMP" = x; then | ||
6302 | OBJDUMP="false" | ||
6303 | else | ||
6304 | case $cross_compiling:$ac_tool_warned in | ||
6305 | yes:) | ||
6306 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6307 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6308 | ac_tool_warned=yes ;; | ||
6309 | esac | ||
6310 | OBJDUMP=$ac_ct_OBJDUMP | ||
6311 | fi | ||
6312 | else | ||
6313 | OBJDUMP="$ac_cv_prog_OBJDUMP" | ||
6314 | fi | ||
6315 | |||
6316 | test -z "$OBJDUMP" && OBJDUMP=objdump | ||
6317 | |||
6318 | |||
6319 | |||
6320 | |||
6321 | |||
6322 | |||
6323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | ||
6324 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | ||
6325 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | ||
6326 | $as_echo_n "(cached) " >&6 | ||
6327 | else | ||
6328 | lt_cv_file_magic_cmd='$MAGIC_CMD' | ||
6329 | lt_cv_file_magic_test_file= | ||
6330 | lt_cv_deplibs_check_method='unknown' | ||
6331 | # Need to set the preceding variable on all platforms that support | ||
6332 | # interlibrary dependencies. | ||
6333 | # 'none' -- dependencies not supported. | ||
6334 | # `unknown' -- same as none, but documents that we really don't know. | ||
6335 | # 'pass_all' -- all dependencies passed with no checks. | ||
6336 | # 'test_compile' -- check by making test program. | ||
6337 | # 'file_magic [[regex]]' -- check by looking for files in library path | ||
6338 | # which responds to the $file_magic_cmd with a given extended regex. | ||
6339 | # If you have `file' or equivalent on your system and you're not sure | ||
6340 | # whether `pass_all' will *always* work, you probably want this one. | ||
6341 | |||
6342 | case $host_os in | ||
6343 | aix[4-9]*) | ||
6344 | lt_cv_deplibs_check_method=pass_all | ||
6345 | ;; | ||
6346 | |||
6347 | beos*) | ||
6348 | lt_cv_deplibs_check_method=pass_all | ||
6349 | ;; | ||
6350 | |||
6351 | bsdi[45]*) | ||
6352 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | ||
6353 | lt_cv_file_magic_cmd='/usr/bin/file -L' | ||
6354 | lt_cv_file_magic_test_file=/shlib/libc.so | ||
6355 | ;; | ||
6356 | |||
6357 | cygwin*) | ||
6358 | # func_win32_libid is a shell function defined in ltmain.sh | ||
6359 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
6360 | lt_cv_file_magic_cmd='func_win32_libid' | ||
6361 | ;; | ||
6362 | |||
6363 | mingw* | pw32*) | ||
6364 | # Base MSYS/MinGW do not provide the 'file' command needed by | ||
6365 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | ||
6366 | # unless we find 'file', for example because we are cross-compiling. | ||
6367 | if ( file / ) >/dev/null 2>&1; then | ||
6368 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
6369 | lt_cv_file_magic_cmd='func_win32_libid' | ||
6370 | else | ||
6371 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
6372 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
6373 | fi | ||
6374 | ;; | ||
6375 | |||
6376 | cegcc) | ||
6377 | # use the weaker test based on 'objdump'. See mingw*. | ||
6378 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | ||
6379 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
6380 | ;; | ||
6381 | |||
6382 | darwin* | rhapsody*) | ||
6383 | lt_cv_deplibs_check_method=pass_all | ||
6384 | ;; | ||
6385 | |||
6386 | freebsd* | dragonfly*) | ||
6387 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | ||
6388 | case $host_cpu in | ||
6389 | i*86 ) | ||
6390 | # Not sure whether the presence of OpenBSD here was a mistake. | ||
6391 | # Let's accept both of them until this is cleared up. | ||
6392 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | ||
6393 | lt_cv_file_magic_cmd=/usr/bin/file | ||
6394 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | ||
6395 | ;; | ||
6396 | esac | ||
6397 | else | ||
6398 | lt_cv_deplibs_check_method=pass_all | ||
6399 | fi | ||
6400 | ;; | ||
6401 | |||
6402 | gnu*) | ||
6403 | lt_cv_deplibs_check_method=pass_all | ||
6404 | ;; | ||
6405 | |||
6406 | hpux10.20* | hpux11*) | ||
6407 | lt_cv_file_magic_cmd=/usr/bin/file | ||
6408 | case $host_cpu in | ||
6409 | ia64*) | ||
6410 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | ||
6411 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
6412 | ;; | ||
6413 | hppa*64*) | ||
6414 | 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]' | ||
6415 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
6416 | ;; | ||
6417 | *) | ||
6418 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | ||
6419 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
6420 | ;; | ||
6421 | esac | ||
6422 | ;; | ||
6423 | |||
6424 | interix[3-9]*) | ||
6425 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | ||
6426 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | ||
6427 | ;; | ||
6428 | |||
6429 | irix5* | irix6* | nonstopux*) | ||
6430 | case $LD in | ||
6431 | *-32|*"-32 ") libmagic=32-bit;; | ||
6432 | *-n32|*"-n32 ") libmagic=N32;; | ||
6433 | *-64|*"-64 ") libmagic=64-bit;; | ||
6434 | *) libmagic=never-match;; | ||
6435 | esac | ||
6436 | lt_cv_deplibs_check_method=pass_all | ||
6437 | ;; | ||
6438 | |||
6439 | # This must be Linux ELF. | ||
6440 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
6441 | lt_cv_deplibs_check_method=pass_all | ||
6442 | ;; | ||
6443 | |||
6444 | netbsd* | netbsdelf*-gnu) | ||
6445 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | ||
6446 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | ||
6447 | else | ||
6448 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | ||
6449 | fi | ||
6450 | ;; | ||
6451 | |||
6452 | newos6*) | ||
6453 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | ||
6454 | lt_cv_file_magic_cmd=/usr/bin/file | ||
6455 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | ||
6456 | ;; | ||
6457 | |||
6458 | *nto* | *qnx*) | ||
6459 | lt_cv_deplibs_check_method=pass_all | ||
6460 | ;; | ||
6461 | |||
6462 | openbsd*) | ||
6463 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
6464 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | ||
6465 | else | ||
6466 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | ||
6467 | fi | ||
6468 | ;; | ||
6469 | |||
6470 | osf3* | osf4* | osf5*) | ||
6471 | lt_cv_deplibs_check_method=pass_all | ||
6472 | ;; | ||
6473 | |||
6474 | rdos*) | ||
6475 | lt_cv_deplibs_check_method=pass_all | ||
6476 | ;; | ||
6477 | |||
6478 | solaris*) | ||
6479 | lt_cv_deplibs_check_method=pass_all | ||
6480 | ;; | ||
6481 | |||
6482 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
6483 | lt_cv_deplibs_check_method=pass_all | ||
6484 | ;; | ||
6485 | |||
6486 | sysv4 | sysv4.3*) | ||
6487 | case $host_vendor in | ||
6488 | motorola) | ||
6489 | 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]' | ||
6490 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | ||
6491 | ;; | ||
6492 | ncr) | ||
6493 | lt_cv_deplibs_check_method=pass_all | ||
6494 | ;; | ||
6495 | sequent) | ||
6496 | lt_cv_file_magic_cmd='/bin/file' | ||
6497 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | ||
6498 | ;; | ||
6499 | sni) | ||
6500 | lt_cv_file_magic_cmd='/bin/file' | ||
6501 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | ||
6502 | lt_cv_file_magic_test_file=/lib/libc.so | ||
6503 | ;; | ||
6504 | siemens) | ||
6505 | lt_cv_deplibs_check_method=pass_all | ||
6506 | ;; | ||
6507 | pc) | ||
6508 | lt_cv_deplibs_check_method=pass_all | ||
6509 | ;; | ||
6510 | esac | ||
6511 | ;; | ||
6512 | |||
6513 | tpf*) | ||
6514 | lt_cv_deplibs_check_method=pass_all | ||
6515 | ;; | ||
6516 | esac | ||
6517 | |||
6518 | fi | ||
6519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | ||
6520 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | ||
6521 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
6522 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
6523 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
6524 | |||
6525 | |||
6526 | |||
6527 | |||
6528 | |||
6529 | |||
6530 | |||
6531 | |||
6532 | |||
6533 | |||
6534 | |||
6535 | |||
6536 | if test -n "$ac_tool_prefix"; then | ||
6537 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | ||
6538 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | ||
6539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6540 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6541 | if test "${ac_cv_prog_AR+set}" = set; then : | ||
6542 | $as_echo_n "(cached) " >&6 | ||
6543 | else | ||
6544 | if test -n "$AR"; then | ||
6545 | ac_cv_prog_AR="$AR" # Let the user override the test. | ||
6546 | else | ||
6547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6548 | for as_dir in $PATH | ||
6549 | do | ||
6550 | IFS=$as_save_IFS | ||
6551 | test -z "$as_dir" && as_dir=. | ||
6552 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6553 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6554 | ac_cv_prog_AR="${ac_tool_prefix}ar" | ||
6555 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6556 | break 2 | ||
6557 | fi | ||
6558 | done | ||
6559 | done | ||
6560 | IFS=$as_save_IFS | ||
6561 | |||
6562 | fi | ||
6563 | fi | ||
6564 | AR=$ac_cv_prog_AR | ||
6565 | if test -n "$AR"; then | ||
6566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | ||
6567 | $as_echo "$AR" >&6; } | ||
6568 | else | ||
6569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6570 | $as_echo "no" >&6; } | ||
6571 | fi | ||
6572 | |||
6573 | |||
6574 | fi | ||
6575 | if test -z "$ac_cv_prog_AR"; then | ||
6576 | ac_ct_AR=$AR | ||
6577 | # Extract the first word of "ar", so it can be a program name with args. | ||
6578 | set dummy ar; ac_word=$2 | ||
6579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6580 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6581 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | ||
6582 | $as_echo_n "(cached) " >&6 | ||
6583 | else | ||
6584 | if test -n "$ac_ct_AR"; then | ||
6585 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
6586 | else | ||
6587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6588 | for as_dir in $PATH | ||
6589 | do | ||
6590 | IFS=$as_save_IFS | ||
6591 | test -z "$as_dir" && as_dir=. | ||
6592 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6593 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6594 | ac_cv_prog_ac_ct_AR="ar" | ||
6595 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6596 | break 2 | ||
6597 | fi | ||
6598 | done | ||
6599 | done | ||
6600 | IFS=$as_save_IFS | ||
6601 | |||
6602 | fi | ||
6603 | fi | ||
6604 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
6605 | if test -n "$ac_ct_AR"; then | ||
6606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||
6607 | $as_echo "$ac_ct_AR" >&6; } | ||
6608 | else | ||
6609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6610 | $as_echo "no" >&6; } | ||
6611 | fi | ||
6612 | |||
6613 | if test "x$ac_ct_AR" = x; then | ||
6614 | AR="false" | ||
6615 | else | ||
6616 | case $cross_compiling:$ac_tool_warned in | ||
6617 | yes:) | ||
6618 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6619 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6620 | ac_tool_warned=yes ;; | ||
6621 | esac | ||
6622 | AR=$ac_ct_AR | ||
6623 | fi | ||
6624 | else | ||
6625 | AR="$ac_cv_prog_AR" | ||
6626 | fi | ||
6627 | |||
6628 | test -z "$AR" && AR=ar | ||
6629 | test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
6630 | |||
6631 | |||
6632 | |||
6633 | |||
6634 | |||
6635 | |||
6636 | |||
6637 | |||
6638 | |||
6639 | |||
6640 | |||
6641 | if test -n "$ac_tool_prefix"; then | ||
6642 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
6643 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
6644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6645 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6646 | if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
6647 | $as_echo_n "(cached) " >&6 | ||
6648 | else | ||
6649 | if test -n "$STRIP"; then | ||
6650 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
6651 | else | ||
6652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6653 | for as_dir in $PATH | ||
6654 | do | ||
6655 | IFS=$as_save_IFS | ||
6656 | test -z "$as_dir" && as_dir=. | ||
6657 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6658 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6659 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
6660 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6661 | break 2 | ||
6662 | fi | ||
6663 | done | ||
6664 | done | ||
6665 | IFS=$as_save_IFS | ||
6666 | |||
6667 | fi | ||
6668 | fi | ||
6669 | STRIP=$ac_cv_prog_STRIP | ||
6670 | if test -n "$STRIP"; then | ||
6671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
6672 | $as_echo "$STRIP" >&6; } | ||
6673 | else | ||
6674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6675 | $as_echo "no" >&6; } | ||
6676 | fi | ||
6677 | |||
6678 | |||
6679 | fi | ||
6680 | if test -z "$ac_cv_prog_STRIP"; then | ||
6681 | ac_ct_STRIP=$STRIP | ||
6682 | # Extract the first word of "strip", so it can be a program name with args. | ||
6683 | set dummy strip; ac_word=$2 | ||
6684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6685 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6686 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
6687 | $as_echo_n "(cached) " >&6 | ||
6688 | else | ||
6689 | if test -n "$ac_ct_STRIP"; then | ||
6690 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
6691 | else | ||
6692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6693 | for as_dir in $PATH | ||
6694 | do | ||
6695 | IFS=$as_save_IFS | ||
6696 | test -z "$as_dir" && as_dir=. | ||
6697 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6698 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6699 | ac_cv_prog_ac_ct_STRIP="strip" | ||
6700 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6701 | break 2 | ||
6702 | fi | ||
6703 | done | ||
6704 | done | ||
6705 | IFS=$as_save_IFS | ||
6706 | |||
6707 | fi | ||
6708 | fi | ||
6709 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
6710 | if test -n "$ac_ct_STRIP"; then | ||
6711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
6712 | $as_echo "$ac_ct_STRIP" >&6; } | ||
6713 | else | ||
6714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6715 | $as_echo "no" >&6; } | ||
6716 | fi | ||
6717 | |||
6718 | if test "x$ac_ct_STRIP" = x; then | ||
6719 | STRIP=":" | ||
6720 | else | ||
6721 | case $cross_compiling:$ac_tool_warned in | ||
6722 | yes:) | ||
6723 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6724 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6725 | ac_tool_warned=yes ;; | ||
6726 | esac | ||
6727 | STRIP=$ac_ct_STRIP | ||
6728 | fi | ||
6729 | else | ||
6730 | STRIP="$ac_cv_prog_STRIP" | ||
6731 | fi | ||
6732 | |||
6733 | test -z "$STRIP" && STRIP=: | ||
6734 | |||
6735 | |||
6736 | |||
6737 | |||
6738 | |||
6739 | |||
6740 | if test -n "$ac_tool_prefix"; then | ||
6741 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
6742 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
6743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6744 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6745 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | ||
6746 | $as_echo_n "(cached) " >&6 | ||
6747 | else | ||
6748 | if test -n "$RANLIB"; then | ||
6749 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
6750 | else | ||
6751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6752 | for as_dir in $PATH | ||
6753 | do | ||
6754 | IFS=$as_save_IFS | ||
6755 | test -z "$as_dir" && as_dir=. | ||
6756 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6757 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6758 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
6759 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6760 | break 2 | ||
6761 | fi | ||
6762 | done | ||
6763 | done | ||
6764 | IFS=$as_save_IFS | ||
6765 | |||
6766 | fi | ||
6767 | fi | ||
6768 | RANLIB=$ac_cv_prog_RANLIB | ||
6769 | if test -n "$RANLIB"; then | ||
6770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | ||
6771 | $as_echo "$RANLIB" >&6; } | ||
6772 | else | ||
6773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6774 | $as_echo "no" >&6; } | ||
6775 | fi | ||
6776 | |||
6777 | |||
6778 | fi | ||
6779 | if test -z "$ac_cv_prog_RANLIB"; then | ||
6780 | ac_ct_RANLIB=$RANLIB | ||
6781 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
6782 | set dummy ranlib; ac_word=$2 | ||
6783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6784 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6785 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | ||
6786 | $as_echo_n "(cached) " >&6 | ||
6787 | else | ||
6788 | if test -n "$ac_ct_RANLIB"; then | ||
6789 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
6790 | else | ||
6791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6792 | for as_dir in $PATH | ||
6793 | do | ||
6794 | IFS=$as_save_IFS | ||
6795 | test -z "$as_dir" && as_dir=. | ||
6796 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6797 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6798 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
6799 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6800 | break 2 | ||
6801 | fi | ||
6802 | done | ||
6803 | done | ||
6804 | IFS=$as_save_IFS | ||
6805 | |||
6806 | fi | ||
6807 | fi | ||
6808 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
6809 | if test -n "$ac_ct_RANLIB"; then | ||
6810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | ||
6811 | $as_echo "$ac_ct_RANLIB" >&6; } | ||
6812 | else | ||
6813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6814 | $as_echo "no" >&6; } | ||
6815 | fi | ||
6816 | |||
6817 | if test "x$ac_ct_RANLIB" = x; then | ||
6818 | RANLIB=":" | ||
6819 | else | ||
6820 | case $cross_compiling:$ac_tool_warned in | ||
6821 | yes:) | ||
6822 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6823 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6824 | ac_tool_warned=yes ;; | ||
6825 | esac | ||
6826 | RANLIB=$ac_ct_RANLIB | ||
6827 | fi | ||
6828 | else | ||
6829 | RANLIB="$ac_cv_prog_RANLIB" | ||
6830 | fi | ||
6831 | |||
6832 | test -z "$RANLIB" && RANLIB=: | ||
6833 | |||
6834 | |||
6835 | |||
6836 | |||
6837 | |||
6838 | |||
6839 | # Determine commands to create old-style static archives. | ||
6840 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | ||
6841 | old_postinstall_cmds='chmod 644 $oldlib' | ||
6842 | old_postuninstall_cmds= | ||
6843 | |||
6844 | if test -n "$RANLIB"; then | ||
6845 | case $host_os in | ||
6846 | openbsd*) | ||
6847 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | ||
6848 | ;; | ||
6849 | *) | ||
6850 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | ||
6851 | ;; | ||
6852 | esac | ||
6853 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | ||
6854 | fi | ||
6855 | |||
6856 | |||
6857 | |||
6858 | |||
6859 | |||
6860 | |||
6861 | |||
6862 | |||
6863 | |||
6864 | |||
6865 | |||
6866 | |||
6867 | |||
6868 | |||
6869 | |||
6870 | |||
6871 | |||
6872 | |||
6873 | |||
6874 | |||
6875 | |||
6876 | |||
6877 | |||
6878 | |||
6879 | |||
6880 | |||
6881 | |||
6882 | |||
6883 | |||
6884 | |||
6885 | |||
6886 | |||
6887 | |||
6888 | |||
6889 | # If no C compiler was specified, use CC. | ||
6890 | LTCC=${LTCC-"$CC"} | ||
6891 | |||
6892 | # If no C compiler flags were specified, use CFLAGS. | ||
6893 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
6894 | |||
6895 | # Allow CC to be a program name with arguments. | ||
6896 | compiler=$CC | ||
6897 | |||
6898 | |||
6899 | # Check for command to grab the raw symbol name followed by C symbol from nm. | ||
6900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | ||
6901 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | ||
6902 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | ||
6903 | $as_echo_n "(cached) " >&6 | ||
6904 | else | ||
6905 | |||
6906 | # These are sane defaults that work on at least a few old systems. | ||
6907 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | ||
6908 | |||
6909 | # Character class describing NM global symbol codes. | ||
6910 | symcode='[BCDEGRST]' | ||
6911 | |||
6912 | # Regexp to match symbols that can be accessed directly from C. | ||
6913 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | ||
6914 | |||
6915 | # Define system-specific variables. | ||
6916 | case $host_os in | ||
6917 | aix*) | ||
6918 | symcode='[BCDT]' | ||
6919 | ;; | ||
6920 | cygwin* | mingw* | pw32* | cegcc*) | ||
6921 | symcode='[ABCDGISTW]' | ||
6922 | ;; | ||
6923 | hpux*) | ||
6924 | if test "$host_cpu" = ia64; then | ||
6925 | symcode='[ABCDEGRST]' | ||
6926 | fi | ||
6927 | ;; | ||
6928 | irix* | nonstopux*) | ||
6929 | symcode='[BCDEGRST]' | ||
6930 | ;; | ||
6931 | osf*) | ||
6932 | symcode='[BCDEGQRST]' | ||
6933 | ;; | ||
6934 | solaris*) | ||
6935 | symcode='[BDRT]' | ||
6936 | ;; | ||
6937 | sco3.2v5*) | ||
6938 | symcode='[DT]' | ||
6939 | ;; | ||
6940 | sysv4.2uw2*) | ||
6941 | symcode='[DT]' | ||
6942 | ;; | ||
6943 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | ||
6944 | symcode='[ABDT]' | ||
6945 | ;; | ||
6946 | sysv4) | ||
6947 | symcode='[DFNSTU]' | ||
6948 | ;; | ||
6949 | esac | ||
6950 | |||
6951 | # If we're using GNU nm, then use its standard symbol codes. | ||
6952 | case `$NM -V 2>&1` in | ||
6953 | *GNU* | *'with BFD'*) | ||
6954 | symcode='[ABCDGIRSTW]' ;; | ||
6955 | esac | ||
6956 | |||
6957 | # Transform an extracted symbol line into a proper C declaration. | ||
6958 | # Some systems (esp. on ia64) link data and code symbols differently, | ||
6959 | # so use this general approach. | ||
6960 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
6961 | |||
6962 | # Transform an extracted symbol line into symbol name and symbol address | ||
6963 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
6964 | 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'" | ||
6965 | |||
6966 | # Handle CRLF in mingw tool chain | ||
6967 | opt_cr= | ||
6968 | case $build_os in | ||
6969 | mingw*) | ||
6970 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | ||
6971 | ;; | ||
6972 | esac | ||
6973 | |||
6974 | # Try without a prefix underscore, then with it. | ||
6975 | for ac_symprfx in "" "_"; do | ||
6976 | |||
6977 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | ||
6978 | symxfrm="\\1 $ac_symprfx\\2 \\2" | ||
6979 | |||
6980 | # Write the raw and C identifiers. | ||
6981 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
6982 | # Fake it for dumpbin and say T for any non-static function | ||
6983 | # and D for any global variable. | ||
6984 | # Also find C++ and __fastcall symbols from MSVC++, | ||
6985 | # which start with @ or ?. | ||
6986 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | ||
6987 | " {last_section=section; section=\$ 3};"\ | ||
6988 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | ||
6989 | " \$ 0!~/External *\|/{next};"\ | ||
6990 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | ||
6991 | " {if(hide[section]) next};"\ | ||
6992 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | ||
6993 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | ||
6994 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | ||
6995 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | ||
6996 | " ' prfx=^$ac_symprfx" | ||
6997 | else | ||
6998 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
6999 | fi | ||
7000 | |||
7001 | # Check to see that the pipe works correctly. | ||
7002 | pipe_works=no | ||
7003 | |||
7004 | rm -f conftest* | ||
7005 | cat > conftest.$ac_ext <<_LT_EOF | ||
7006 | #ifdef __cplusplus | ||
7007 | extern "C" { | ||
7008 | #endif | ||
7009 | char nm_test_var; | ||
7010 | void nm_test_func(void); | ||
7011 | void nm_test_func(void){} | ||
7012 | #ifdef __cplusplus | ||
7013 | } | ||
7014 | #endif | ||
7015 | int main(){nm_test_var='a';nm_test_func();return(0);} | ||
7016 | _LT_EOF | ||
7017 | |||
7018 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
7019 | (eval $ac_compile) 2>&5 | ||
7020 | ac_status=$? | ||
7021 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7022 | test $ac_status = 0; }; then | ||
7023 | # Now try to grab the symbols. | ||
7024 | nlist=conftest.nm | ||
7025 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 | ||
7026 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | ||
7027 | ac_status=$? | ||
7028 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7029 | test $ac_status = 0; } && test -s "$nlist"; then | ||
7030 | # Try sorting and uniquifying the output. | ||
7031 | if sort "$nlist" | uniq > "$nlist"T; then | ||
7032 | mv -f "$nlist"T "$nlist" | ||
7033 | else | ||
7034 | rm -f "$nlist"T | ||
7035 | fi | ||
7036 | |||
7037 | # Make sure that we snagged all the symbols we need. | ||
7038 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | ||
7039 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | ||
7040 | cat <<_LT_EOF > conftest.$ac_ext | ||
7041 | #ifdef __cplusplus | ||
7042 | extern "C" { | ||
7043 | #endif | ||
7044 | |||
7045 | _LT_EOF | ||
7046 | # Now generate the symbol file. | ||
7047 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | ||
7048 | |||
7049 | cat <<_LT_EOF >> conftest.$ac_ext | ||
7050 | |||
7051 | /* The mapping between symbol names and symbols. */ | ||
7052 | const struct { | ||
7053 | const char *name; | ||
7054 | void *address; | ||
7055 | } | ||
7056 | lt__PROGRAM__LTX_preloaded_symbols[] = | ||
7057 | { | ||
7058 | { "@PROGRAM@", (void *) 0 }, | ||
7059 | _LT_EOF | ||
7060 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | ||
7061 | cat <<\_LT_EOF >> conftest.$ac_ext | ||
7062 | {0, (void *) 0} | ||
7063 | }; | ||
7064 | |||
7065 | /* This works around a problem in FreeBSD linker */ | ||
7066 | #ifdef FREEBSD_WORKAROUND | ||
7067 | static const void *lt_preloaded_setup() { | ||
7068 | return lt__PROGRAM__LTX_preloaded_symbols; | ||
7069 | } | ||
7070 | #endif | ||
7071 | |||
7072 | #ifdef __cplusplus | ||
7073 | } | ||
7074 | #endif | ||
7075 | _LT_EOF | ||
7076 | # Now try linking the two files. | ||
7077 | mv conftest.$ac_objext conftstm.$ac_objext | ||
7078 | lt_save_LIBS="$LIBS" | ||
7079 | lt_save_CFLAGS="$CFLAGS" | ||
7080 | LIBS="conftstm.$ac_objext" | ||
7081 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | ||
7082 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
7083 | (eval $ac_link) 2>&5 | ||
7084 | ac_status=$? | ||
7085 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7086 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | ||
7087 | pipe_works=yes | ||
7088 | fi | ||
7089 | LIBS="$lt_save_LIBS" | ||
7090 | CFLAGS="$lt_save_CFLAGS" | ||
7091 | else | ||
7092 | echo "cannot find nm_test_func in $nlist" >&5 | ||
7093 | fi | ||
7094 | else | ||
7095 | echo "cannot find nm_test_var in $nlist" >&5 | ||
7096 | fi | ||
7097 | else | ||
7098 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | ||
7099 | fi | ||
7100 | else | ||
7101 | echo "$progname: failed program was:" >&5 | ||
7102 | cat conftest.$ac_ext >&5 | ||
7103 | fi | ||
7104 | rm -rf conftest* conftst* | ||
7105 | |||
7106 | # Do not use the global_symbol_pipe unless it works. | ||
7107 | if test "$pipe_works" = yes; then | ||
7108 | break | ||
7109 | else | ||
7110 | lt_cv_sys_global_symbol_pipe= | ||
7111 | fi | ||
7112 | done | ||
7113 | |||
7114 | fi | ||
7115 | |||
7116 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | ||
7117 | lt_cv_sys_global_symbol_to_cdecl= | ||
7118 | fi | ||
7119 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | ||
7120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | ||
7121 | $as_echo "failed" >&6; } | ||
7122 | else | ||
7123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | ||
7124 | $as_echo "ok" >&6; } | ||
7125 | fi | ||
7126 | |||
7127 | |||
7128 | |||
7129 | |||
7130 | |||
7131 | |||
7132 | |||
7133 | |||
7134 | |||
7135 | |||
7136 | |||
7137 | |||
7138 | |||
7139 | |||
7140 | |||
7141 | |||
7142 | |||
7143 | |||
7144 | |||
7145 | |||
7146 | |||
7147 | |||
7148 | # Check whether --enable-libtool-lock was given. | ||
7149 | if test "${enable_libtool_lock+set}" = set; then : | ||
7150 | enableval=$enable_libtool_lock; | ||
7151 | fi | ||
7152 | |||
7153 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
7154 | |||
7155 | # Some flags need to be propagated to the compiler or linker for good | ||
7156 | # libtool support. | ||
7157 | case $host in | ||
7158 | ia64-*-hpux*) | ||
7159 | # Find out which ABI we are using. | ||
7160 | echo 'int i;' > conftest.$ac_ext | ||
7161 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
7162 | (eval $ac_compile) 2>&5 | ||
7163 | ac_status=$? | ||
7164 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7165 | test $ac_status = 0; }; then | ||
7166 | case `/usr/bin/file conftest.$ac_objext` in | ||
7167 | *ELF-32*) | ||
7168 | HPUX_IA64_MODE="32" | ||
7169 | ;; | ||
7170 | *ELF-64*) | ||
7171 | HPUX_IA64_MODE="64" | ||
7172 | ;; | ||
7173 | esac | ||
7174 | fi | ||
7175 | rm -rf conftest* | ||
7176 | ;; | ||
7177 | *-*-irix6*) | ||
7178 | # Find out which ABI we are using. | ||
7179 | echo '#line 7179 "configure"' > conftest.$ac_ext | ||
7180 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
7181 | (eval $ac_compile) 2>&5 | ||
7182 | ac_status=$? | ||
7183 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7184 | test $ac_status = 0; }; then | ||
7185 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
7186 | case `/usr/bin/file conftest.$ac_objext` in | ||
7187 | *32-bit*) | ||
7188 | LD="${LD-ld} -melf32bsmip" | ||
7189 | ;; | ||
7190 | *N32*) | ||
7191 | LD="${LD-ld} -melf32bmipn32" | ||
7192 | ;; | ||
7193 | *64-bit*) | ||
7194 | LD="${LD-ld} -melf64bmip" | ||
7195 | ;; | ||
7196 | esac | ||
7197 | else | ||
7198 | case `/usr/bin/file conftest.$ac_objext` in | ||
7199 | *32-bit*) | ||
7200 | LD="${LD-ld} -32" | ||
7201 | ;; | ||
7202 | *N32*) | ||
7203 | LD="${LD-ld} -n32" | ||
7204 | ;; | ||
7205 | *64-bit*) | ||
7206 | LD="${LD-ld} -64" | ||
7207 | ;; | ||
7208 | esac | ||
7209 | fi | ||
7210 | fi | ||
7211 | rm -rf conftest* | ||
7212 | ;; | ||
7213 | |||
7214 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | ||
7215 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | ||
7216 | # Find out which ABI we are using. | ||
7217 | echo 'int i;' > conftest.$ac_ext | ||
7218 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
7219 | (eval $ac_compile) 2>&5 | ||
7220 | ac_status=$? | ||
7221 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7222 | test $ac_status = 0; }; then | ||
7223 | case `/usr/bin/file conftest.o` in | ||
7224 | *32-bit*) | ||
7225 | case $host in | ||
7226 | x86_64-*kfreebsd*-gnu) | ||
7227 | LD="${LD-ld} -m elf_i386_fbsd" | ||
7228 | ;; | ||
7229 | x86_64-*linux*) | ||
7230 | LD="${LD-ld} -m elf_i386" | ||
7231 | ;; | ||
7232 | ppc64-*linux*|powerpc64-*linux*) | ||
7233 | LD="${LD-ld} -m elf32ppclinux" | ||
7234 | ;; | ||
7235 | s390x-*linux*) | ||
7236 | LD="${LD-ld} -m elf_s390" | ||
7237 | ;; | ||
7238 | sparc64-*linux*) | ||
7239 | LD="${LD-ld} -m elf32_sparc" | ||
7240 | ;; | ||
7241 | esac | ||
7242 | ;; | ||
7243 | *64-bit*) | ||
7244 | case $host in | ||
7245 | x86_64-*kfreebsd*-gnu) | ||
7246 | LD="${LD-ld} -m elf_x86_64_fbsd" | ||
7247 | ;; | ||
7248 | x86_64-*linux*) | ||
7249 | LD="${LD-ld} -m elf_x86_64" | ||
7250 | ;; | ||
7251 | ppc*-*linux*|powerpc*-*linux*) | ||
7252 | LD="${LD-ld} -m elf64ppc" | ||
7253 | ;; | ||
7254 | s390*-*linux*|s390*-*tpf*) | ||
7255 | LD="${LD-ld} -m elf64_s390" | ||
7256 | ;; | ||
7257 | sparc*-*linux*) | ||
7258 | LD="${LD-ld} -m elf64_sparc" | ||
7259 | ;; | ||
7260 | esac | ||
7261 | ;; | ||
7262 | esac | ||
7263 | fi | ||
7264 | rm -rf conftest* | ||
7265 | ;; | ||
7266 | |||
7267 | *-*-sco3.2v5*) | ||
7268 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | ||
7269 | SAVE_CFLAGS="$CFLAGS" | ||
7270 | CFLAGS="$CFLAGS -belf" | ||
7271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | ||
7272 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | ||
7273 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | ||
7274 | $as_echo_n "(cached) " >&6 | ||
7275 | else | ||
7276 | ac_ext=c | ||
7277 | ac_cpp='$CPP $CPPFLAGS' | ||
7278 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
7279 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
7280 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
7281 | |||
7282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7283 | /* end confdefs.h. */ | ||
7284 | |||
7285 | int | ||
7286 | main () | ||
7287 | { | ||
7288 | |||
7289 | ; | ||
7290 | return 0; | ||
7291 | } | ||
7292 | _ACEOF | ||
7293 | if ac_fn_c_try_link "$LINENO"; then : | ||
7294 | lt_cv_cc_needs_belf=yes | ||
7295 | else | ||
7296 | lt_cv_cc_needs_belf=no | ||
7297 | fi | ||
7298 | rm -f core conftest.err conftest.$ac_objext \ | ||
7299 | conftest$ac_exeext conftest.$ac_ext | ||
7300 | ac_ext=c | ||
7301 | ac_cpp='$CPP $CPPFLAGS' | ||
7302 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
7303 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
7304 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
7305 | |||
7306 | fi | ||
7307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | ||
7308 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | ||
7309 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | ||
7310 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | ||
7311 | CFLAGS="$SAVE_CFLAGS" | ||
7312 | fi | ||
7313 | ;; | ||
7314 | sparc*-*solaris*) | ||
7315 | # Find out which ABI we are using. | ||
7316 | echo 'int i;' > conftest.$ac_ext | ||
7317 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
7318 | (eval $ac_compile) 2>&5 | ||
7319 | ac_status=$? | ||
7320 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7321 | test $ac_status = 0; }; then | ||
7322 | case `/usr/bin/file conftest.o` in | ||
7323 | *64-bit*) | ||
7324 | case $lt_cv_prog_gnu_ld in | ||
7325 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | ||
7326 | *) | ||
7327 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | ||
7328 | LD="${LD-ld} -64" | ||
7329 | fi | ||
7330 | ;; | ||
7331 | esac | ||
7332 | ;; | ||
7333 | esac | ||
7334 | fi | ||
7335 | rm -rf conftest* | ||
7336 | ;; | ||
7337 | esac | ||
7338 | |||
7339 | need_locks="$enable_libtool_lock" | ||
7340 | |||
7341 | |||
7342 | case $host_os in | ||
7343 | rhapsody* | darwin*) | ||
7344 | if test -n "$ac_tool_prefix"; then | ||
7345 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | ||
7346 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | ||
7347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7348 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7349 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | ||
7350 | $as_echo_n "(cached) " >&6 | ||
7351 | else | ||
7352 | if test -n "$DSYMUTIL"; then | ||
7353 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | ||
7354 | else | ||
7355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7356 | for as_dir in $PATH | ||
7357 | do | ||
7358 | IFS=$as_save_IFS | ||
7359 | test -z "$as_dir" && as_dir=. | ||
7360 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7361 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7362 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | ||
7363 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7364 | break 2 | ||
7365 | fi | ||
7366 | done | ||
7367 | done | ||
7368 | IFS=$as_save_IFS | ||
7369 | |||
7370 | fi | ||
7371 | fi | ||
7372 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | ||
7373 | if test -n "$DSYMUTIL"; then | ||
7374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | ||
7375 | $as_echo "$DSYMUTIL" >&6; } | ||
7376 | else | ||
7377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7378 | $as_echo "no" >&6; } | ||
7379 | fi | ||
7380 | |||
7381 | |||
7382 | fi | ||
7383 | if test -z "$ac_cv_prog_DSYMUTIL"; then | ||
7384 | ac_ct_DSYMUTIL=$DSYMUTIL | ||
7385 | # Extract the first word of "dsymutil", so it can be a program name with args. | ||
7386 | set dummy dsymutil; ac_word=$2 | ||
7387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7388 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7389 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | ||
7390 | $as_echo_n "(cached) " >&6 | ||
7391 | else | ||
7392 | if test -n "$ac_ct_DSYMUTIL"; then | ||
7393 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | ||
7394 | else | ||
7395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7396 | for as_dir in $PATH | ||
7397 | do | ||
7398 | IFS=$as_save_IFS | ||
7399 | test -z "$as_dir" && as_dir=. | ||
7400 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7401 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7402 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | ||
7403 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7404 | break 2 | ||
7405 | fi | ||
7406 | done | ||
7407 | done | ||
7408 | IFS=$as_save_IFS | ||
7409 | |||
7410 | fi | ||
7411 | fi | ||
7412 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | ||
7413 | if test -n "$ac_ct_DSYMUTIL"; then | ||
7414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | ||
7415 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | ||
7416 | else | ||
7417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7418 | $as_echo "no" >&6; } | ||
7419 | fi | ||
7420 | |||
7421 | if test "x$ac_ct_DSYMUTIL" = x; then | ||
7422 | DSYMUTIL=":" | ||
7423 | else | ||
7424 | case $cross_compiling:$ac_tool_warned in | ||
7425 | yes:) | ||
7426 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
7427 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
7428 | ac_tool_warned=yes ;; | ||
7429 | esac | ||
7430 | DSYMUTIL=$ac_ct_DSYMUTIL | ||
7431 | fi | ||
7432 | else | ||
7433 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | ||
7434 | fi | ||
7435 | |||
7436 | if test -n "$ac_tool_prefix"; then | ||
7437 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | ||
7438 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | ||
7439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7440 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7441 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | ||
7442 | $as_echo_n "(cached) " >&6 | ||
7443 | else | ||
7444 | if test -n "$NMEDIT"; then | ||
7445 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | ||
7446 | else | ||
7447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7448 | for as_dir in $PATH | ||
7449 | do | ||
7450 | IFS=$as_save_IFS | ||
7451 | test -z "$as_dir" && as_dir=. | ||
7452 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7453 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7454 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | ||
7455 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7456 | break 2 | ||
7457 | fi | ||
7458 | done | ||
7459 | done | ||
7460 | IFS=$as_save_IFS | ||
7461 | |||
7462 | fi | ||
7463 | fi | ||
7464 | NMEDIT=$ac_cv_prog_NMEDIT | ||
7465 | if test -n "$NMEDIT"; then | ||
7466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | ||
7467 | $as_echo "$NMEDIT" >&6; } | ||
7468 | else | ||
7469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7470 | $as_echo "no" >&6; } | ||
7471 | fi | ||
7472 | |||
7473 | |||
7474 | fi | ||
7475 | if test -z "$ac_cv_prog_NMEDIT"; then | ||
7476 | ac_ct_NMEDIT=$NMEDIT | ||
7477 | # Extract the first word of "nmedit", so it can be a program name with args. | ||
7478 | set dummy nmedit; ac_word=$2 | ||
7479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7480 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7481 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | ||
7482 | $as_echo_n "(cached) " >&6 | ||
7483 | else | ||
7484 | if test -n "$ac_ct_NMEDIT"; then | ||
7485 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | ||
7486 | else | ||
7487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7488 | for as_dir in $PATH | ||
7489 | do | ||
7490 | IFS=$as_save_IFS | ||
7491 | test -z "$as_dir" && as_dir=. | ||
7492 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7493 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7494 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | ||
7495 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7496 | break 2 | ||
7497 | fi | ||
7498 | done | ||
7499 | done | ||
7500 | IFS=$as_save_IFS | ||
7501 | |||
7502 | fi | ||
7503 | fi | ||
7504 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | ||
7505 | if test -n "$ac_ct_NMEDIT"; then | ||
7506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | ||
7507 | $as_echo "$ac_ct_NMEDIT" >&6; } | ||
7508 | else | ||
7509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7510 | $as_echo "no" >&6; } | ||
7511 | fi | ||
7512 | |||
7513 | if test "x$ac_ct_NMEDIT" = x; then | ||
7514 | NMEDIT=":" | ||
7515 | else | ||
7516 | case $cross_compiling:$ac_tool_warned in | ||
7517 | yes:) | ||
7518 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
7519 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
7520 | ac_tool_warned=yes ;; | ||
7521 | esac | ||
7522 | NMEDIT=$ac_ct_NMEDIT | ||
7523 | fi | ||
7524 | else | ||
7525 | NMEDIT="$ac_cv_prog_NMEDIT" | ||
7526 | fi | ||
7527 | |||
7528 | if test -n "$ac_tool_prefix"; then | ||
7529 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | ||
7530 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | ||
7531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7532 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7533 | if test "${ac_cv_prog_LIPO+set}" = set; then : | ||
7534 | $as_echo_n "(cached) " >&6 | ||
7535 | else | ||
7536 | if test -n "$LIPO"; then | ||
7537 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | ||
7538 | else | ||
7539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7540 | for as_dir in $PATH | ||
7541 | do | ||
7542 | IFS=$as_save_IFS | ||
7543 | test -z "$as_dir" && as_dir=. | ||
7544 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7545 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7546 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | ||
7547 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7548 | break 2 | ||
7549 | fi | ||
7550 | done | ||
7551 | done | ||
7552 | IFS=$as_save_IFS | ||
7553 | |||
7554 | fi | ||
7555 | fi | ||
7556 | LIPO=$ac_cv_prog_LIPO | ||
7557 | if test -n "$LIPO"; then | ||
7558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | ||
7559 | $as_echo "$LIPO" >&6; } | ||
7560 | else | ||
7561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7562 | $as_echo "no" >&6; } | ||
7563 | fi | ||
7564 | |||
7565 | |||
7566 | fi | ||
7567 | if test -z "$ac_cv_prog_LIPO"; then | ||
7568 | ac_ct_LIPO=$LIPO | ||
7569 | # Extract the first word of "lipo", so it can be a program name with args. | ||
7570 | set dummy lipo; ac_word=$2 | ||
7571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7572 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7573 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | ||
7574 | $as_echo_n "(cached) " >&6 | ||
7575 | else | ||
7576 | if test -n "$ac_ct_LIPO"; then | ||
7577 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | ||
7578 | else | ||
7579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7580 | for as_dir in $PATH | ||
7581 | do | ||
7582 | IFS=$as_save_IFS | ||
7583 | test -z "$as_dir" && as_dir=. | ||
7584 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7585 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7586 | ac_cv_prog_ac_ct_LIPO="lipo" | ||
7587 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7588 | break 2 | ||
7589 | fi | ||
7590 | done | ||
7591 | done | ||
7592 | IFS=$as_save_IFS | ||
7593 | |||
7594 | fi | ||
7595 | fi | ||
7596 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | ||
7597 | if test -n "$ac_ct_LIPO"; then | ||
7598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | ||
7599 | $as_echo "$ac_ct_LIPO" >&6; } | ||
7600 | else | ||
7601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7602 | $as_echo "no" >&6; } | ||
7603 | fi | ||
7604 | |||
7605 | if test "x$ac_ct_LIPO" = x; then | ||
7606 | LIPO=":" | ||
7607 | else | ||
7608 | case $cross_compiling:$ac_tool_warned in | ||
7609 | yes:) | ||
7610 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
7611 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
7612 | ac_tool_warned=yes ;; | ||
7613 | esac | ||
7614 | LIPO=$ac_ct_LIPO | ||
7615 | fi | ||
7616 | else | ||
7617 | LIPO="$ac_cv_prog_LIPO" | ||
7618 | fi | ||
7619 | |||
7620 | if test -n "$ac_tool_prefix"; then | ||
7621 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | ||
7622 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | ||
7623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7624 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7625 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | ||
7626 | $as_echo_n "(cached) " >&6 | ||
7627 | else | ||
7628 | if test -n "$OTOOL"; then | ||
7629 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | ||
7630 | else | ||
7631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7632 | for as_dir in $PATH | ||
7633 | do | ||
7634 | IFS=$as_save_IFS | ||
7635 | test -z "$as_dir" && as_dir=. | ||
7636 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7637 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7638 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | ||
7639 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7640 | break 2 | ||
7641 | fi | ||
7642 | done | ||
7643 | done | ||
7644 | IFS=$as_save_IFS | ||
7645 | |||
7646 | fi | ||
7647 | fi | ||
7648 | OTOOL=$ac_cv_prog_OTOOL | ||
7649 | if test -n "$OTOOL"; then | ||
7650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | ||
7651 | $as_echo "$OTOOL" >&6; } | ||
7652 | else | ||
7653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7654 | $as_echo "no" >&6; } | ||
7655 | fi | ||
7656 | |||
7657 | |||
7658 | fi | ||
7659 | if test -z "$ac_cv_prog_OTOOL"; then | ||
7660 | ac_ct_OTOOL=$OTOOL | ||
7661 | # Extract the first word of "otool", so it can be a program name with args. | ||
7662 | set dummy otool; ac_word=$2 | ||
7663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7664 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7665 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | ||
7666 | $as_echo_n "(cached) " >&6 | ||
7667 | else | ||
7668 | if test -n "$ac_ct_OTOOL"; then | ||
7669 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | ||
7670 | else | ||
7671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7672 | for as_dir in $PATH | ||
7673 | do | ||
7674 | IFS=$as_save_IFS | ||
7675 | test -z "$as_dir" && as_dir=. | ||
7676 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7677 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7678 | ac_cv_prog_ac_ct_OTOOL="otool" | ||
7679 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7680 | break 2 | ||
7681 | fi | ||
7682 | done | ||
7683 | done | ||
7684 | IFS=$as_save_IFS | ||
7685 | |||
7686 | fi | ||
7687 | fi | ||
7688 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | ||
7689 | if test -n "$ac_ct_OTOOL"; then | ||
7690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | ||
7691 | $as_echo "$ac_ct_OTOOL" >&6; } | ||
7692 | else | ||
7693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7694 | $as_echo "no" >&6; } | ||
7695 | fi | ||
7696 | |||
7697 | if test "x$ac_ct_OTOOL" = x; then | ||
7698 | OTOOL=":" | ||
7699 | else | ||
7700 | case $cross_compiling:$ac_tool_warned in | ||
7701 | yes:) | ||
7702 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
7703 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
7704 | ac_tool_warned=yes ;; | ||
7705 | esac | ||
7706 | OTOOL=$ac_ct_OTOOL | ||
7707 | fi | ||
7708 | else | ||
7709 | OTOOL="$ac_cv_prog_OTOOL" | ||
7710 | fi | ||
7711 | |||
7712 | if test -n "$ac_tool_prefix"; then | ||
7713 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | ||
7714 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | ||
7715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7716 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7717 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | ||
7718 | $as_echo_n "(cached) " >&6 | ||
7719 | else | ||
7720 | if test -n "$OTOOL64"; then | ||
7721 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | ||
7722 | else | ||
7723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7724 | for as_dir in $PATH | ||
7725 | do | ||
7726 | IFS=$as_save_IFS | ||
7727 | test -z "$as_dir" && as_dir=. | ||
7728 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7729 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7730 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | ||
7731 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7732 | break 2 | ||
7733 | fi | ||
7734 | done | ||
7735 | done | ||
7736 | IFS=$as_save_IFS | ||
7737 | |||
7738 | fi | ||
7739 | fi | ||
7740 | OTOOL64=$ac_cv_prog_OTOOL64 | ||
7741 | if test -n "$OTOOL64"; then | ||
7742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | ||
7743 | $as_echo "$OTOOL64" >&6; } | ||
7744 | else | ||
7745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7746 | $as_echo "no" >&6; } | ||
7747 | fi | ||
7748 | |||
7749 | |||
7750 | fi | ||
7751 | if test -z "$ac_cv_prog_OTOOL64"; then | ||
7752 | ac_ct_OTOOL64=$OTOOL64 | ||
7753 | # Extract the first word of "otool64", so it can be a program name with args. | ||
7754 | set dummy otool64; ac_word=$2 | ||
7755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7756 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7757 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | ||
7758 | $as_echo_n "(cached) " >&6 | ||
7759 | else | ||
7760 | if test -n "$ac_ct_OTOOL64"; then | ||
7761 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | ||
7762 | else | ||
7763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7764 | for as_dir in $PATH | ||
7765 | do | ||
7766 | IFS=$as_save_IFS | ||
7767 | test -z "$as_dir" && as_dir=. | ||
7768 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7769 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7770 | ac_cv_prog_ac_ct_OTOOL64="otool64" | ||
7771 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7772 | break 2 | ||
7773 | fi | ||
7774 | done | ||
7775 | done | ||
7776 | IFS=$as_save_IFS | ||
7777 | |||
7778 | fi | ||
7779 | fi | ||
7780 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | ||
7781 | if test -n "$ac_ct_OTOOL64"; then | ||
7782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | ||
7783 | $as_echo "$ac_ct_OTOOL64" >&6; } | ||
7784 | else | ||
7785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7786 | $as_echo "no" >&6; } | ||
7787 | fi | ||
7788 | |||
7789 | if test "x$ac_ct_OTOOL64" = x; then | ||
7790 | OTOOL64=":" | ||
7791 | else | ||
7792 | case $cross_compiling:$ac_tool_warned in | ||
7793 | yes:) | ||
7794 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
7795 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
7796 | ac_tool_warned=yes ;; | ||
7797 | esac | ||
7798 | OTOOL64=$ac_ct_OTOOL64 | ||
7799 | fi | ||
7800 | else | ||
7801 | OTOOL64="$ac_cv_prog_OTOOL64" | ||
7802 | fi | ||
7803 | |||
7804 | |||
7805 | |||
7806 | |||
7807 | |||
7808 | |||
7809 | |||
7810 | |||
7811 | |||
7812 | |||
7813 | |||
7814 | |||
7815 | |||
7816 | |||
7817 | |||
7818 | |||
7819 | |||
7820 | |||
7821 | |||
7822 | |||
7823 | |||
7824 | |||
7825 | |||
7826 | |||
7827 | |||
7828 | |||
7829 | |||
7830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | ||
7831 | $as_echo_n "checking for -single_module linker flag... " >&6; } | ||
7832 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | ||
7833 | $as_echo_n "(cached) " >&6 | ||
7834 | else | ||
7835 | lt_cv_apple_cc_single_mod=no | ||
7836 | if test -z "${LT_MULTI_MODULE}"; then | ||
7837 | # By default we will add the -single_module flag. You can override | ||
7838 | # by either setting the environment variable LT_MULTI_MODULE | ||
7839 | # non-empty at configure time, or by adding -multi_module to the | ||
7840 | # link flags. | ||
7841 | rm -rf libconftest.dylib* | ||
7842 | echo "int foo(void){return 1;}" > conftest.c | ||
7843 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | ||
7844 | -dynamiclib -Wl,-single_module conftest.c" >&5 | ||
7845 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | ||
7846 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | ||
7847 | _lt_result=$? | ||
7848 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | ||
7849 | lt_cv_apple_cc_single_mod=yes | ||
7850 | else | ||
7851 | cat conftest.err >&5 | ||
7852 | fi | ||
7853 | rm -rf libconftest.dylib* | ||
7854 | rm -f conftest.* | ||
7855 | fi | ||
7856 | fi | ||
7857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | ||
7858 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | ||
7859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | ||
7860 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | ||
7861 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | ||
7862 | $as_echo_n "(cached) " >&6 | ||
7863 | else | ||
7864 | lt_cv_ld_exported_symbols_list=no | ||
7865 | save_LDFLAGS=$LDFLAGS | ||
7866 | echo "_main" > conftest.sym | ||
7867 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | ||
7868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7869 | /* end confdefs.h. */ | ||
7870 | |||
7871 | int | ||
7872 | main () | ||
7873 | { | ||
7874 | |||
7875 | ; | ||
7876 | return 0; | ||
7877 | } | ||
7878 | _ACEOF | ||
7879 | if ac_fn_c_try_link "$LINENO"; then : | ||
7880 | lt_cv_ld_exported_symbols_list=yes | ||
7881 | else | ||
7882 | lt_cv_ld_exported_symbols_list=no | ||
7883 | fi | ||
7884 | rm -f core conftest.err conftest.$ac_objext \ | ||
7885 | conftest$ac_exeext conftest.$ac_ext | ||
7886 | LDFLAGS="$save_LDFLAGS" | ||
7887 | |||
7888 | fi | ||
7889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | ||
7890 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | ||
7891 | case $host_os in | ||
7892 | rhapsody* | darwin1.[012]) | ||
7893 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | ||
7894 | darwin1.*) | ||
7895 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | ||
7896 | darwin*) # darwin 5.x on | ||
7897 | # if running on 10.5 or later, the deployment target defaults | ||
7898 | # to the OS version, if on x86, and 10.4, the deployment | ||
7899 | # target defaults to 10.4. Don't you love it? | ||
7900 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | ||
7901 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | ||
7902 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | ||
7903 | 10.[012]*) | ||
7904 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | ||
7905 | 10.*) | ||
7906 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | ||
7907 | esac | ||
7908 | ;; | ||
7909 | esac | ||
7910 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | ||
7911 | _lt_dar_single_mod='$single_module' | ||
7912 | fi | ||
7913 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | ||
7914 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | ||
7915 | else | ||
7916 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
7917 | fi | ||
7918 | if test "$DSYMUTIL" != ":"; then | ||
7919 | _lt_dsymutil='~$DSYMUTIL $lib || :' | ||
7920 | else | ||
7921 | _lt_dsymutil= | ||
7922 | fi | ||
7923 | ;; | ||
7924 | esac | ||
7925 | |||
7926 | for ac_header in dlfcn.h | ||
7927 | do : | ||
7928 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | ||
7929 | " | ||
7930 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | ||
7931 | cat >>confdefs.h <<_ACEOF | ||
7932 | #define HAVE_DLFCN_H 1 | ||
7933 | _ACEOF | ||
7934 | |||
7935 | fi | ||
7936 | |||
7937 | done | ||
7938 | |||
7939 | |||
7940 | |||
7941 | # Set options | ||
7942 | |||
7943 | |||
7944 | |||
7945 | enable_dlopen=no | ||
7946 | |||
7947 | |||
7948 | |||
7949 | # Check whether --enable-shared was given. | ||
7950 | if test "${enable_shared+set}" = set; then : | ||
7951 | enableval=$enable_shared; p=${PACKAGE-default} | ||
7952 | case $enableval in | ||
7953 | yes) enable_shared=yes ;; | ||
7954 | no) enable_shared=no ;; | ||
7955 | *) | ||
7956 | enable_shared=no | ||
7957 | # Look at the argument we got. We use all the common list separators. | ||
7958 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
7959 | for pkg in $enableval; do | ||
7960 | IFS="$lt_save_ifs" | ||
7961 | if test "X$pkg" = "X$p"; then | ||
7962 | enable_shared=yes | ||
7963 | fi | ||
7964 | done | ||
7965 | IFS="$lt_save_ifs" | ||
7966 | ;; | ||
7967 | esac | ||
7968 | else | ||
7969 | enable_shared=yes | ||
7970 | fi | ||
7971 | |||
7972 | |||
7973 | |||
7974 | |||
7975 | |||
7976 | |||
7977 | |||
7978 | |||
7979 | |||
7980 | # Check whether --enable-static was given. | ||
7981 | if test "${enable_static+set}" = set; then : | ||
7982 | enableval=$enable_static; p=${PACKAGE-default} | ||
7983 | case $enableval in | ||
7984 | yes) enable_static=yes ;; | ||
7985 | no) enable_static=no ;; | ||
7986 | *) | ||
7987 | enable_static=no | ||
7988 | # Look at the argument we got. We use all the common list separators. | ||
7989 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
7990 | for pkg in $enableval; do | ||
7991 | IFS="$lt_save_ifs" | ||
7992 | if test "X$pkg" = "X$p"; then | ||
7993 | enable_static=yes | ||
7994 | fi | ||
7995 | done | ||
7996 | IFS="$lt_save_ifs" | ||
7997 | ;; | ||
7998 | esac | ||
7999 | else | ||
8000 | enable_static=yes | ||
8001 | fi | ||
8002 | |||
8003 | |||
8004 | |||
8005 | |||
8006 | |||
8007 | |||
8008 | |||
8009 | |||
8010 | |||
8011 | |||
8012 | # Check whether --with-pic was given. | ||
8013 | if test "${with_pic+set}" = set; then : | ||
8014 | withval=$with_pic; pic_mode="$withval" | ||
8015 | else | ||
8016 | pic_mode=default | ||
8017 | fi | ||
8018 | |||
8019 | |||
8020 | test -z "$pic_mode" && pic_mode=default | ||
8021 | |||
8022 | |||
8023 | |||
8024 | |||
8025 | |||
8026 | |||
8027 | |||
8028 | # Check whether --enable-fast-install was given. | ||
8029 | if test "${enable_fast_install+set}" = set; then : | ||
8030 | enableval=$enable_fast_install; p=${PACKAGE-default} | ||
8031 | case $enableval in | ||
8032 | yes) enable_fast_install=yes ;; | ||
8033 | no) enable_fast_install=no ;; | ||
8034 | *) | ||
8035 | enable_fast_install=no | ||
8036 | # Look at the argument we got. We use all the common list separators. | ||
8037 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
8038 | for pkg in $enableval; do | ||
8039 | IFS="$lt_save_ifs" | ||
8040 | if test "X$pkg" = "X$p"; then | ||
8041 | enable_fast_install=yes | ||
8042 | fi | ||
8043 | done | ||
8044 | IFS="$lt_save_ifs" | ||
8045 | ;; | ||
8046 | esac | ||
8047 | else | ||
8048 | enable_fast_install=yes | ||
8049 | fi | ||
8050 | |||
8051 | |||
8052 | |||
8053 | |||
8054 | |||
8055 | |||
8056 | |||
8057 | |||
8058 | |||
8059 | |||
8060 | |||
8061 | # This can be used to rebuild libtool when needed | ||
8062 | LIBTOOL_DEPS="$ltmain" | ||
8063 | |||
8064 | # Always use our own libtool. | ||
8065 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | ||
8066 | |||
8067 | |||
8068 | |||
8069 | |||
8070 | |||
8071 | |||
8072 | |||
8073 | |||
8074 | |||
8075 | |||
8076 | |||
8077 | |||
8078 | |||
8079 | |||
8080 | |||
8081 | |||
8082 | |||
8083 | |||
8084 | |||
8085 | |||
8086 | |||
8087 | |||
8088 | |||
8089 | |||
8090 | |||
8091 | test -z "$LN_S" && LN_S="ln -s" | ||
8092 | |||
8093 | |||
8094 | |||
8095 | |||
8096 | |||
8097 | |||
8098 | |||
8099 | |||
8100 | |||
8101 | |||
8102 | |||
8103 | |||
8104 | |||
8105 | |||
8106 | if test -n "${ZSH_VERSION+set}" ; then | ||
8107 | setopt NO_GLOB_SUBST | ||
8108 | fi | ||
8109 | |||
8110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | ||
8111 | $as_echo_n "checking for objdir... " >&6; } | ||
8112 | if test "${lt_cv_objdir+set}" = set; then : | ||
8113 | $as_echo_n "(cached) " >&6 | ||
8114 | else | ||
8115 | rm -f .libs 2>/dev/null | ||
8116 | mkdir .libs 2>/dev/null | ||
8117 | if test -d .libs; then | ||
8118 | lt_cv_objdir=.libs | ||
8119 | else | ||
8120 | # MS-DOS does not allow filenames that begin with a dot. | ||
8121 | lt_cv_objdir=_libs | ||
8122 | fi | ||
8123 | rmdir .libs 2>/dev/null | ||
8124 | fi | ||
8125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | ||
8126 | $as_echo "$lt_cv_objdir" >&6; } | ||
8127 | objdir=$lt_cv_objdir | ||
8128 | |||
8129 | |||
8130 | |||
8131 | |||
8132 | |||
8133 | cat >>confdefs.h <<_ACEOF | ||
8134 | #define LT_OBJDIR "$lt_cv_objdir/" | ||
8135 | _ACEOF | ||
8136 | |||
8137 | |||
8138 | |||
8139 | |||
8140 | |||
8141 | |||
8142 | |||
8143 | |||
8144 | |||
8145 | |||
8146 | |||
8147 | |||
8148 | |||
8149 | |||
8150 | |||
8151 | |||
8152 | |||
8153 | case $host_os in | ||
8154 | aix3*) | ||
8155 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
8156 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
8157 | # vanish in a puff of smoke. | ||
8158 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
8159 | COLLECT_NAMES= | ||
8160 | export COLLECT_NAMES | ||
8161 | fi | ||
8162 | ;; | ||
8163 | esac | ||
8164 | |||
8165 | # Sed substitution that helps us do robust quoting. It backslashifies | ||
8166 | # metacharacters that are still active within double-quoted strings. | ||
8167 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | ||
8168 | |||
8169 | # Same as above, but do not quote variable references. | ||
8170 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | ||
8171 | |||
8172 | # Sed substitution to delay expansion of an escaped shell variable in a | ||
8173 | # double_quote_subst'ed string. | ||
8174 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
8175 | |||
8176 | # Sed substitution to delay expansion of an escaped single quote. | ||
8177 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | ||
8178 | |||
8179 | # Sed substitution to avoid accidental globbing in evaled expressions | ||
8180 | no_glob_subst='s/\*/\\\*/g' | ||
8181 | |||
8182 | # Global variables: | ||
8183 | ofile=libtool | ||
8184 | can_build_shared=yes | ||
8185 | |||
8186 | # All known linkers require a `.a' archive for static linking (except MSVC, | ||
8187 | # which needs '.lib'). | ||
8188 | libext=a | ||
8189 | |||
8190 | with_gnu_ld="$lt_cv_prog_gnu_ld" | ||
8191 | |||
8192 | old_CC="$CC" | ||
8193 | old_CFLAGS="$CFLAGS" | ||
8194 | |||
8195 | # Set sane defaults for various variables | ||
8196 | test -z "$CC" && CC=cc | ||
8197 | test -z "$LTCC" && LTCC=$CC | ||
8198 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | ||
8199 | test -z "$LD" && LD=ld | ||
8200 | test -z "$ac_objext" && ac_objext=o | ||
8201 | |||
8202 | for cc_temp in $compiler""; do | ||
8203 | case $cc_temp in | ||
8204 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | ||
8205 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | ||
8206 | \-*) ;; | ||
8207 | *) break;; | ||
8208 | esac | ||
8209 | done | ||
8210 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
8211 | |||
8212 | |||
8213 | # Only perform the check for file, if the check method requires it | ||
8214 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | ||
8215 | case $deplibs_check_method in | ||
8216 | file_magic*) | ||
8217 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | ||
8218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | ||
8219 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | ||
8220 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | ||
8221 | $as_echo_n "(cached) " >&6 | ||
8222 | else | ||
8223 | case $MAGIC_CMD in | ||
8224 | [\\/*] | ?:[\\/]*) | ||
8225 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
8226 | ;; | ||
8227 | *) | ||
8228 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
8229 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
8230 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | ||
8231 | for ac_dir in $ac_dummy; do | ||
8232 | IFS="$lt_save_ifs" | ||
8233 | test -z "$ac_dir" && ac_dir=. | ||
8234 | if test -f $ac_dir/${ac_tool_prefix}file; then | ||
8235 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | ||
8236 | if test -n "$file_magic_test_file"; then | ||
8237 | case $deplibs_check_method in | ||
8238 | "file_magic "*) | ||
8239 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | ||
8240 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
8241 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
8242 | $EGREP "$file_magic_regex" > /dev/null; then | ||
8243 | : | ||
8244 | else | ||
8245 | cat <<_LT_EOF 1>&2 | ||
8246 | |||
8247 | *** Warning: the command libtool uses to detect shared libraries, | ||
8248 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
8249 | *** The result is that libtool may fail to recognize shared libraries | ||
8250 | *** as such. This will affect the creation of libtool libraries that | ||
8251 | *** depend on shared libraries, but programs linked with such libtool | ||
8252 | *** libraries will work regardless of this problem. Nevertheless, you | ||
8253 | *** may want to report the problem to your system manager and/or to | ||
8254 | *** bug-libtool@gnu.org | ||
8255 | |||
8256 | _LT_EOF | ||
8257 | fi ;; | ||
8258 | esac | ||
8259 | fi | ||
8260 | break | ||
8261 | fi | ||
8262 | done | ||
8263 | IFS="$lt_save_ifs" | ||
8264 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
8265 | ;; | ||
8266 | esac | ||
8267 | fi | ||
8268 | |||
8269 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
8270 | if test -n "$MAGIC_CMD"; then | ||
8271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | ||
8272 | $as_echo "$MAGIC_CMD" >&6; } | ||
8273 | else | ||
8274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8275 | $as_echo "no" >&6; } | ||
8276 | fi | ||
8277 | |||
8278 | |||
8279 | |||
8280 | |||
8281 | |||
8282 | if test -z "$lt_cv_path_MAGIC_CMD"; then | ||
8283 | if test -n "$ac_tool_prefix"; then | ||
8284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | ||
8285 | $as_echo_n "checking for file... " >&6; } | ||
8286 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | ||
8287 | $as_echo_n "(cached) " >&6 | ||
8288 | else | ||
8289 | case $MAGIC_CMD in | ||
8290 | [\\/*] | ?:[\\/]*) | ||
8291 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
8292 | ;; | ||
8293 | *) | ||
8294 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
8295 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
8296 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | ||
8297 | for ac_dir in $ac_dummy; do | ||
8298 | IFS="$lt_save_ifs" | ||
8299 | test -z "$ac_dir" && ac_dir=. | ||
8300 | if test -f $ac_dir/file; then | ||
8301 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | ||
8302 | if test -n "$file_magic_test_file"; then | ||
8303 | case $deplibs_check_method in | ||
8304 | "file_magic "*) | ||
8305 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | ||
8306 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
8307 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
8308 | $EGREP "$file_magic_regex" > /dev/null; then | ||
8309 | : | ||
8310 | else | ||
8311 | cat <<_LT_EOF 1>&2 | ||
8312 | |||
8313 | *** Warning: the command libtool uses to detect shared libraries, | ||
8314 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
8315 | *** The result is that libtool may fail to recognize shared libraries | ||
8316 | *** as such. This will affect the creation of libtool libraries that | ||
8317 | *** depend on shared libraries, but programs linked with such libtool | ||
8318 | *** libraries will work regardless of this problem. Nevertheless, you | ||
8319 | *** may want to report the problem to your system manager and/or to | ||
8320 | *** bug-libtool@gnu.org | ||
8321 | |||
8322 | _LT_EOF | ||
8323 | fi ;; | ||
8324 | esac | ||
8325 | fi | ||
8326 | break | ||
8327 | fi | ||
8328 | done | ||
8329 | IFS="$lt_save_ifs" | ||
8330 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
8331 | ;; | ||
8332 | esac | ||
8333 | fi | ||
8334 | |||
8335 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
8336 | if test -n "$MAGIC_CMD"; then | ||
8337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | ||
8338 | $as_echo "$MAGIC_CMD" >&6; } | ||
8339 | else | ||
8340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8341 | $as_echo "no" >&6; } | ||
8342 | fi | ||
8343 | |||
8344 | |||
8345 | else | ||
8346 | MAGIC_CMD=: | ||
8347 | fi | ||
8348 | fi | ||
8349 | |||
8350 | fi | ||
8351 | ;; | ||
8352 | esac | ||
8353 | |||
8354 | # Use C for the default configuration in the libtool script | ||
8355 | |||
8356 | lt_save_CC="$CC" | ||
8357 | ac_ext=c | ||
8358 | ac_cpp='$CPP $CPPFLAGS' | ||
8359 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
8360 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
8361 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
8362 | |||
8363 | |||
8364 | # Source file extension for C test sources. | ||
8365 | ac_ext=c | ||
8366 | |||
8367 | # Object file extension for compiled C test sources. | ||
8368 | objext=o | ||
8369 | objext=$objext | ||
8370 | |||
8371 | # Code to be used in simple compile tests | ||
8372 | lt_simple_compile_test_code="int some_variable = 0;" | ||
8373 | |||
8374 | # Code to be used in simple link tests | ||
8375 | lt_simple_link_test_code='int main(){return(0);}' | ||
8376 | |||
8377 | |||
8378 | |||
8379 | |||
8380 | |||
8381 | |||
8382 | |||
8383 | # If no C compiler was specified, use CC. | ||
8384 | LTCC=${LTCC-"$CC"} | ||
8385 | |||
8386 | # If no C compiler flags were specified, use CFLAGS. | ||
8387 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
8388 | |||
8389 | # Allow CC to be a program name with arguments. | ||
8390 | compiler=$CC | ||
8391 | |||
8392 | # Save the default compiler, since it gets overwritten when the other | ||
8393 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | ||
8394 | compiler_DEFAULT=$CC | ||
8395 | |||
8396 | # save warnings/boilerplate of simple test code | ||
8397 | ac_outfile=conftest.$ac_objext | ||
8398 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
8399 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
8400 | _lt_compiler_boilerplate=`cat conftest.err` | ||
8401 | $RM conftest* | ||
8402 | |||
8403 | ac_outfile=conftest.$ac_objext | ||
8404 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | ||
8405 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
8406 | _lt_linker_boilerplate=`cat conftest.err` | ||
8407 | $RM -r conftest* | ||
8408 | |||
8409 | |||
8410 | ## CAVEAT EMPTOR: | ||
8411 | ## There is no encapsulation within the following macros, do not change | ||
8412 | ## the running order or otherwise move them around unless you know exactly | ||
8413 | ## what you are doing... | ||
8414 | if test -n "$compiler"; then | ||
8415 | |||
8416 | lt_prog_compiler_no_builtin_flag= | ||
8417 | |||
8418 | if test "$GCC" = yes; then | ||
8419 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | ||
8420 | |||
8421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | ||
8422 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | ||
8423 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | ||
8424 | $as_echo_n "(cached) " >&6 | ||
8425 | else | ||
8426 | lt_cv_prog_compiler_rtti_exceptions=no | ||
8427 | ac_outfile=conftest.$ac_objext | ||
8428 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
8429 | lt_compiler_flag="-fno-rtti -fno-exceptions" | ||
8430 | # Insert the option either (1) after the last *FLAGS variable, or | ||
8431 | # (2) before a word containing "conftest.", or (3) at the end. | ||
8432 | # Note that $ac_compile itself does not contain backslashes and begins | ||
8433 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
8434 | # The option is referenced via a variable to avoid confusing sed. | ||
8435 | lt_compile=`echo "$ac_compile" | $SED \ | ||
8436 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
8437 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
8438 | -e 's:$: $lt_compiler_flag:'` | ||
8439 | (eval echo "\"\$as_me:8439: $lt_compile\"" >&5) | ||
8440 | (eval "$lt_compile" 2>conftest.err) | ||
8441 | ac_status=$? | ||
8442 | cat conftest.err >&5 | ||
8443 | echo "$as_me:8443: \$? = $ac_status" >&5 | ||
8444 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
8445 | # The compiler can only warn and ignore the option if not recognized | ||
8446 | # So say no if there are warnings other than the usual output. | ||
8447 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
8448 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
8449 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
8450 | lt_cv_prog_compiler_rtti_exceptions=yes | ||
8451 | fi | ||
8452 | fi | ||
8453 | $RM conftest* | ||
8454 | |||
8455 | fi | ||
8456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | ||
8457 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | ||
8458 | |||
8459 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | ||
8460 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | ||
8461 | else | ||
8462 | : | ||
8463 | fi | ||
8464 | |||
8465 | fi | ||
8466 | |||
8467 | |||
8468 | |||
8469 | |||
8470 | |||
8471 | |||
8472 | lt_prog_compiler_wl= | ||
8473 | lt_prog_compiler_pic= | ||
8474 | lt_prog_compiler_static= | ||
8475 | |||
8476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
8477 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
8478 | |||
8479 | if test "$GCC" = yes; then | ||
8480 | lt_prog_compiler_wl='-Wl,' | ||
8481 | lt_prog_compiler_static='-static' | ||
8482 | |||
8483 | case $host_os in | ||
8484 | aix*) | ||
8485 | # All AIX code is PIC. | ||
8486 | if test "$host_cpu" = ia64; then | ||
8487 | # AIX 5 now supports IA64 processor | ||
8488 | lt_prog_compiler_static='-Bstatic' | ||
8489 | fi | ||
8490 | ;; | ||
8491 | |||
8492 | amigaos*) | ||
8493 | case $host_cpu in | ||
8494 | powerpc) | ||
8495 | # see comment about AmigaOS4 .so support | ||
8496 | lt_prog_compiler_pic='-fPIC' | ||
8497 | ;; | ||
8498 | m68k) | ||
8499 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
8500 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
8501 | # like `-m68040'. | ||
8502 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | ||
8503 | ;; | ||
8504 | esac | ||
8505 | ;; | ||
8506 | |||
8507 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
8508 | # PIC is the default for these OSes. | ||
8509 | ;; | ||
8510 | |||
8511 | mingw* | cygwin* | pw32* | os2* | cegcc*) | ||
8512 | # This hack is so that the source file can tell whether it is being | ||
8513 | # built for inclusion in a dll (and should export symbols for example). | ||
8514 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | ||
8515 | # (--disable-auto-import) libraries | ||
8516 | lt_prog_compiler_pic='-DDLL_EXPORT' | ||
8517 | ;; | ||
8518 | |||
8519 | darwin* | rhapsody*) | ||
8520 | # PIC is the default on this platform | ||
8521 | # Common symbols not allowed in MH_DYLIB files | ||
8522 | lt_prog_compiler_pic='-fno-common' | ||
8523 | ;; | ||
8524 | |||
8525 | hpux*) | ||
8526 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | ||
8527 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | ||
8528 | # sets the default TLS model and affects inlining. | ||
8529 | case $host_cpu in | ||
8530 | hppa*64*) | ||
8531 | # +Z the default | ||
8532 | ;; | ||
8533 | *) | ||
8534 | lt_prog_compiler_pic='-fPIC' | ||
8535 | ;; | ||
8536 | esac | ||
8537 | ;; | ||
8538 | |||
8539 | interix[3-9]*) | ||
8540 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
8541 | # Instead, we relocate shared libraries at runtime. | ||
8542 | ;; | ||
8543 | |||
8544 | msdosdjgpp*) | ||
8545 | # Just because we use GCC doesn't mean we suddenly get shared libraries | ||
8546 | # on systems that don't support them. | ||
8547 | lt_prog_compiler_can_build_shared=no | ||
8548 | enable_shared=no | ||
8549 | ;; | ||
8550 | |||
8551 | *nto* | *qnx*) | ||
8552 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
8553 | # it will coredump. | ||
8554 | lt_prog_compiler_pic='-fPIC -shared' | ||
8555 | ;; | ||
8556 | |||
8557 | sysv4*MP*) | ||
8558 | if test -d /usr/nec; then | ||
8559 | lt_prog_compiler_pic=-Kconform_pic | ||
8560 | fi | ||
8561 | ;; | ||
8562 | |||
8563 | *) | ||
8564 | lt_prog_compiler_pic='-fPIC' | ||
8565 | ;; | ||
8566 | esac | ||
8567 | else | ||
8568 | # PORTME Check for flag to pass linker flags through the system compiler. | ||
8569 | case $host_os in | ||
8570 | aix*) | ||
8571 | lt_prog_compiler_wl='-Wl,' | ||
8572 | if test "$host_cpu" = ia64; then | ||
8573 | # AIX 5 now supports IA64 processor | ||
8574 | lt_prog_compiler_static='-Bstatic' | ||
8575 | else | ||
8576 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | ||
8577 | fi | ||
8578 | ;; | ||
8579 | |||
8580 | mingw* | cygwin* | pw32* | os2* | cegcc*) | ||
8581 | # This hack is so that the source file can tell whether it is being | ||
8582 | # built for inclusion in a dll (and should export symbols for example). | ||
8583 | lt_prog_compiler_pic='-DDLL_EXPORT' | ||
8584 | ;; | ||
8585 | |||
8586 | hpux9* | hpux10* | hpux11*) | ||
8587 | lt_prog_compiler_wl='-Wl,' | ||
8588 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
8589 | # not for PA HP-UX. | ||
8590 | case $host_cpu in | ||
8591 | hppa*64*|ia64*) | ||
8592 | # +Z the default | ||
8593 | ;; | ||
8594 | *) | ||
8595 | lt_prog_compiler_pic='+Z' | ||
8596 | ;; | ||
8597 | esac | ||
8598 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | ||
8599 | lt_prog_compiler_static='${wl}-a ${wl}archive' | ||
8600 | ;; | ||
8601 | |||
8602 | irix5* | irix6* | nonstopux*) | ||
8603 | lt_prog_compiler_wl='-Wl,' | ||
8604 | # PIC (with -KPIC) is the default. | ||
8605 | lt_prog_compiler_static='-non_shared' | ||
8606 | ;; | ||
8607 | |||
8608 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
8609 | case $cc_basename in | ||
8610 | # old Intel for x86_64 which still supported -KPIC. | ||
8611 | ecc*) | ||
8612 | lt_prog_compiler_wl='-Wl,' | ||
8613 | lt_prog_compiler_pic='-KPIC' | ||
8614 | lt_prog_compiler_static='-static' | ||
8615 | ;; | ||
8616 | # icc used to be incompatible with GCC. | ||
8617 | # ICC 10 doesn't accept -KPIC any more. | ||
8618 | icc* | ifort*) | ||
8619 | lt_prog_compiler_wl='-Wl,' | ||
8620 | lt_prog_compiler_pic='-fPIC' | ||
8621 | lt_prog_compiler_static='-static' | ||
8622 | ;; | ||
8623 | # Lahey Fortran 8.1. | ||
8624 | lf95*) | ||
8625 | lt_prog_compiler_wl='-Wl,' | ||
8626 | lt_prog_compiler_pic='--shared' | ||
8627 | lt_prog_compiler_static='--static' | ||
8628 | ;; | ||
8629 | pgcc* | pgf77* | pgf90* | pgf95*) | ||
8630 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
8631 | # which looks to be a dead project) | ||
8632 | lt_prog_compiler_wl='-Wl,' | ||
8633 | lt_prog_compiler_pic='-fpic' | ||
8634 | lt_prog_compiler_static='-Bstatic' | ||
8635 | ;; | ||
8636 | ccc*) | ||
8637 | lt_prog_compiler_wl='-Wl,' | ||
8638 | # All Alpha code is PIC. | ||
8639 | lt_prog_compiler_static='-non_shared' | ||
8640 | ;; | ||
8641 | xl*) | ||
8642 | # IBM XL C 8.0/Fortran 10.1 on PPC | ||
8643 | lt_prog_compiler_wl='-Wl,' | ||
8644 | lt_prog_compiler_pic='-qpic' | ||
8645 | lt_prog_compiler_static='-qstaticlink' | ||
8646 | ;; | ||
8647 | *) | ||
8648 | case `$CC -V 2>&1 | sed 5q` in | ||
8649 | *Sun\ C*) | ||
8650 | # Sun C 5.9 | ||
8651 | lt_prog_compiler_pic='-KPIC' | ||
8652 | lt_prog_compiler_static='-Bstatic' | ||
8653 | lt_prog_compiler_wl='-Wl,' | ||
8654 | ;; | ||
8655 | *Sun\ F*) | ||
8656 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | ||
8657 | lt_prog_compiler_pic='-KPIC' | ||
8658 | lt_prog_compiler_static='-Bstatic' | ||
8659 | lt_prog_compiler_wl='' | ||
8660 | ;; | ||
8661 | esac | ||
8662 | ;; | ||
8663 | esac | ||
8664 | ;; | ||
8665 | |||
8666 | newsos6) | ||
8667 | lt_prog_compiler_pic='-KPIC' | ||
8668 | lt_prog_compiler_static='-Bstatic' | ||
8669 | ;; | ||
8670 | |||
8671 | *nto* | *qnx*) | ||
8672 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
8673 | # it will coredump. | ||
8674 | lt_prog_compiler_pic='-fPIC -shared' | ||
8675 | ;; | ||
8676 | |||
8677 | osf3* | osf4* | osf5*) | ||
8678 | lt_prog_compiler_wl='-Wl,' | ||
8679 | # All OSF/1 code is PIC. | ||
8680 | lt_prog_compiler_static='-non_shared' | ||
8681 | ;; | ||
8682 | |||
8683 | rdos*) | ||
8684 | lt_prog_compiler_static='-non_shared' | ||
8685 | ;; | ||
8686 | |||
8687 | solaris*) | ||
8688 | lt_prog_compiler_pic='-KPIC' | ||
8689 | lt_prog_compiler_static='-Bstatic' | ||
8690 | case $cc_basename in | ||
8691 | f77* | f90* | f95*) | ||
8692 | lt_prog_compiler_wl='-Qoption ld ';; | ||
8693 | *) | ||
8694 | lt_prog_compiler_wl='-Wl,';; | ||
8695 | esac | ||
8696 | ;; | ||
8697 | |||
8698 | sunos4*) | ||
8699 | lt_prog_compiler_wl='-Qoption ld ' | ||
8700 | lt_prog_compiler_pic='-PIC' | ||
8701 | lt_prog_compiler_static='-Bstatic' | ||
8702 | ;; | ||
8703 | |||
8704 | sysv4 | sysv4.2uw2* | sysv4.3*) | ||
8705 | lt_prog_compiler_wl='-Wl,' | ||
8706 | lt_prog_compiler_pic='-KPIC' | ||
8707 | lt_prog_compiler_static='-Bstatic' | ||
8708 | ;; | ||
8709 | |||
8710 | sysv4*MP*) | ||
8711 | if test -d /usr/nec ;then | ||
8712 | lt_prog_compiler_pic='-Kconform_pic' | ||
8713 | lt_prog_compiler_static='-Bstatic' | ||
8714 | fi | ||
8715 | ;; | ||
8716 | |||
8717 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
8718 | lt_prog_compiler_wl='-Wl,' | ||
8719 | lt_prog_compiler_pic='-KPIC' | ||
8720 | lt_prog_compiler_static='-Bstatic' | ||
8721 | ;; | ||
8722 | |||
8723 | unicos*) | ||
8724 | lt_prog_compiler_wl='-Wl,' | ||
8725 | lt_prog_compiler_can_build_shared=no | ||
8726 | ;; | ||
8727 | |||
8728 | uts4*) | ||
8729 | lt_prog_compiler_pic='-pic' | ||
8730 | lt_prog_compiler_static='-Bstatic' | ||
8731 | ;; | ||
8732 | |||
8733 | *) | ||
8734 | lt_prog_compiler_can_build_shared=no | ||
8735 | ;; | ||
8736 | esac | ||
8737 | fi | ||
8738 | |||
8739 | case $host_os in | ||
8740 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
8741 | *djgpp*) | ||
8742 | lt_prog_compiler_pic= | ||
8743 | ;; | ||
8744 | *) | ||
8745 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | ||
8746 | ;; | ||
8747 | esac | ||
8748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | ||
8749 | $as_echo "$lt_prog_compiler_pic" >&6; } | ||
8750 | |||
8751 | |||
8752 | |||
8753 | |||
8754 | |||
8755 | |||
8756 | # | ||
8757 | # Check to make sure the PIC flag actually works. | ||
8758 | # | ||
8759 | if test -n "$lt_prog_compiler_pic"; then | ||
8760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | ||
8761 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | ||
8762 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | ||
8763 | $as_echo_n "(cached) " >&6 | ||
8764 | else | ||
8765 | lt_cv_prog_compiler_pic_works=no | ||
8766 | ac_outfile=conftest.$ac_objext | ||
8767 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
8768 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | ||
8769 | # Insert the option either (1) after the last *FLAGS variable, or | ||
8770 | # (2) before a word containing "conftest.", or (3) at the end. | ||
8771 | # Note that $ac_compile itself does not contain backslashes and begins | ||
8772 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
8773 | # The option is referenced via a variable to avoid confusing sed. | ||
8774 | lt_compile=`echo "$ac_compile" | $SED \ | ||
8775 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
8776 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
8777 | -e 's:$: $lt_compiler_flag:'` | ||
8778 | (eval echo "\"\$as_me:8778: $lt_compile\"" >&5) | ||
8779 | (eval "$lt_compile" 2>conftest.err) | ||
8780 | ac_status=$? | ||
8781 | cat conftest.err >&5 | ||
8782 | echo "$as_me:8782: \$? = $ac_status" >&5 | ||
8783 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
8784 | # The compiler can only warn and ignore the option if not recognized | ||
8785 | # So say no if there are warnings other than the usual output. | ||
8786 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
8787 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
8788 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
8789 | lt_cv_prog_compiler_pic_works=yes | ||
8790 | fi | ||
8791 | fi | ||
8792 | $RM conftest* | ||
8793 | |||
8794 | fi | ||
8795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | ||
8796 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | ||
8797 | |||
8798 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | ||
8799 | case $lt_prog_compiler_pic in | ||
8800 | "" | " "*) ;; | ||
8801 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | ||
8802 | esac | ||
8803 | else | ||
8804 | lt_prog_compiler_pic= | ||
8805 | lt_prog_compiler_can_build_shared=no | ||
8806 | fi | ||
8807 | |||
8808 | fi | ||
8809 | |||
8810 | |||
8811 | |||
8812 | |||
8813 | |||
8814 | |||
8815 | # | ||
8816 | # Check to make sure the static flag actually works. | ||
8817 | # | ||
8818 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | ||
8819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | ||
8820 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | ||
8821 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | ||
8822 | $as_echo_n "(cached) " >&6 | ||
8823 | else | ||
8824 | lt_cv_prog_compiler_static_works=no | ||
8825 | save_LDFLAGS="$LDFLAGS" | ||
8826 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | ||
8827 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | ||
8828 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
8829 | # The linker can only warn and ignore the option if not recognized | ||
8830 | # So say no if there are warnings | ||
8831 | if test -s conftest.err; then | ||
8832 | # Append any errors to the config.log. | ||
8833 | cat conftest.err 1>&5 | ||
8834 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
8835 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
8836 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
8837 | lt_cv_prog_compiler_static_works=yes | ||
8838 | fi | ||
8839 | else | ||
8840 | lt_cv_prog_compiler_static_works=yes | ||
8841 | fi | ||
8842 | fi | ||
8843 | $RM -r conftest* | ||
8844 | LDFLAGS="$save_LDFLAGS" | ||
8845 | |||
8846 | fi | ||
8847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | ||
8848 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | ||
8849 | |||
8850 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | ||
8851 | : | ||
8852 | else | ||
8853 | lt_prog_compiler_static= | ||
8854 | fi | ||
8855 | |||
8856 | |||
8857 | |||
8858 | |||
8859 | |||
8860 | |||
8861 | |||
8862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
8863 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
8864 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | ||
8865 | $as_echo_n "(cached) " >&6 | ||
8866 | else | ||
8867 | lt_cv_prog_compiler_c_o=no | ||
8868 | $RM -r conftest 2>/dev/null | ||
8869 | mkdir conftest | ||
8870 | cd conftest | ||
8871 | mkdir out | ||
8872 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
8873 | |||
8874 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
8875 | # Insert the option either (1) after the last *FLAGS variable, or | ||
8876 | # (2) before a word containing "conftest.", or (3) at the end. | ||
8877 | # Note that $ac_compile itself does not contain backslashes and begins | ||
8878 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
8879 | lt_compile=`echo "$ac_compile" | $SED \ | ||
8880 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
8881 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
8882 | -e 's:$: $lt_compiler_flag:'` | ||
8883 | (eval echo "\"\$as_me:8883: $lt_compile\"" >&5) | ||
8884 | (eval "$lt_compile" 2>out/conftest.err) | ||
8885 | ac_status=$? | ||
8886 | cat out/conftest.err >&5 | ||
8887 | echo "$as_me:8887: \$? = $ac_status" >&5 | ||
8888 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
8889 | then | ||
8890 | # The compiler can only warn and ignore the option if not recognized | ||
8891 | # So say no if there are warnings | ||
8892 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
8893 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
8894 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
8895 | lt_cv_prog_compiler_c_o=yes | ||
8896 | fi | ||
8897 | fi | ||
8898 | chmod u+w . 2>&5 | ||
8899 | $RM conftest* | ||
8900 | # SGI C++ compiler will create directory out/ii_files/ for | ||
8901 | # template instantiation | ||
8902 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
8903 | $RM out/* && rmdir out | ||
8904 | cd .. | ||
8905 | $RM -r conftest | ||
8906 | $RM conftest* | ||
8907 | |||
8908 | fi | ||
8909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | ||
8910 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | ||
8911 | |||
8912 | |||
8913 | |||
8914 | |||
8915 | |||
8916 | |||
8917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
8918 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
8919 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | ||
8920 | $as_echo_n "(cached) " >&6 | ||
8921 | else | ||
8922 | lt_cv_prog_compiler_c_o=no | ||
8923 | $RM -r conftest 2>/dev/null | ||
8924 | mkdir conftest | ||
8925 | cd conftest | ||
8926 | mkdir out | ||
8927 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
8928 | |||
8929 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
8930 | # Insert the option either (1) after the last *FLAGS variable, or | ||
8931 | # (2) before a word containing "conftest.", or (3) at the end. | ||
8932 | # Note that $ac_compile itself does not contain backslashes and begins | ||
8933 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
8934 | lt_compile=`echo "$ac_compile" | $SED \ | ||
8935 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
8936 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
8937 | -e 's:$: $lt_compiler_flag:'` | ||
8938 | (eval echo "\"\$as_me:8938: $lt_compile\"" >&5) | ||
8939 | (eval "$lt_compile" 2>out/conftest.err) | ||
8940 | ac_status=$? | ||
8941 | cat out/conftest.err >&5 | ||
8942 | echo "$as_me:8942: \$? = $ac_status" >&5 | ||
8943 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
8944 | then | ||
8945 | # The compiler can only warn and ignore the option if not recognized | ||
8946 | # So say no if there are warnings | ||
8947 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
8948 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
8949 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
8950 | lt_cv_prog_compiler_c_o=yes | ||
8951 | fi | ||
8952 | fi | ||
8953 | chmod u+w . 2>&5 | ||
8954 | $RM conftest* | ||
8955 | # SGI C++ compiler will create directory out/ii_files/ for | ||
8956 | # template instantiation | ||
8957 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
8958 | $RM out/* && rmdir out | ||
8959 | cd .. | ||
8960 | $RM -r conftest | ||
8961 | $RM conftest* | ||
8962 | |||
8963 | fi | ||
8964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | ||
8965 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | ||
8966 | |||
8967 | |||
8968 | |||
8969 | |||
8970 | hard_links="nottested" | ||
8971 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | ||
8972 | # do not overwrite the value of need_locks provided by the user | ||
8973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | ||
8974 | $as_echo_n "checking if we can lock with hard links... " >&6; } | ||
8975 | hard_links=yes | ||
8976 | $RM conftest* | ||
8977 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
8978 | touch conftest.a | ||
8979 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
8980 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
8981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | ||
8982 | $as_echo "$hard_links" >&6; } | ||
8983 | if test "$hard_links" = no; then | ||
8984 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | ||
8985 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | ||
8986 | need_locks=warn | ||
8987 | fi | ||
8988 | else | ||
8989 | need_locks=no | ||
8990 | fi | ||
8991 | |||
8992 | |||
8993 | |||
8994 | |||
8995 | |||
8996 | |||
8997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
8998 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | ||
8999 | |||
9000 | runpath_var= | ||
9001 | allow_undefined_flag= | ||
9002 | always_export_symbols=no | ||
9003 | archive_cmds= | ||
9004 | archive_expsym_cmds= | ||
9005 | compiler_needs_object=no | ||
9006 | enable_shared_with_static_runtimes=no | ||
9007 | export_dynamic_flag_spec= | ||
9008 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
9009 | hardcode_automatic=no | ||
9010 | hardcode_direct=no | ||
9011 | hardcode_direct_absolute=no | ||
9012 | hardcode_libdir_flag_spec= | ||
9013 | hardcode_libdir_flag_spec_ld= | ||
9014 | hardcode_libdir_separator= | ||
9015 | hardcode_minus_L=no | ||
9016 | hardcode_shlibpath_var=unsupported | ||
9017 | inherit_rpath=no | ||
9018 | link_all_deplibs=unknown | ||
9019 | module_cmds= | ||
9020 | module_expsym_cmds= | ||
9021 | old_archive_from_new_cmds= | ||
9022 | old_archive_from_expsyms_cmds= | ||
9023 | thread_safe_flag_spec= | ||
9024 | whole_archive_flag_spec= | ||
9025 | # include_expsyms should be a list of space-separated symbols to be *always* | ||
9026 | # included in the symbol list | ||
9027 | include_expsyms= | ||
9028 | # exclude_expsyms can be an extended regexp of symbols to exclude | ||
9029 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | ||
9030 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | ||
9031 | # as well as any symbol that contains `d'. | ||
9032 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | ||
9033 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | ||
9034 | # platforms (ab)use it in PIC code, but their linkers get confused if | ||
9035 | # the symbol is explicitly referenced. Since portable code cannot | ||
9036 | # rely on this symbol name, it's probably fine to never include it in | ||
9037 | # preloaded symbol tables. | ||
9038 | # Exclude shared library initialization/finalization symbols. | ||
9039 | extract_expsyms_cmds= | ||
9040 | |||
9041 | case $host_os in | ||
9042 | cygwin* | mingw* | pw32* | cegcc*) | ||
9043 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | ||
9044 | # When not using gcc, we currently assume that we are using | ||
9045 | # Microsoft Visual C++. | ||
9046 | if test "$GCC" != yes; then | ||
9047 | with_gnu_ld=no | ||
9048 | fi | ||
9049 | ;; | ||
9050 | interix*) | ||
9051 | # we just hope/assume this is gcc and not c89 (= MSVC++) | ||
9052 | with_gnu_ld=yes | ||
9053 | ;; | ||
9054 | openbsd*) | ||
9055 | with_gnu_ld=no | ||
9056 | ;; | ||
9057 | linux* | k*bsd*-gnu) | ||
9058 | link_all_deplibs=no | ||
9059 | ;; | ||
9060 | esac | ||
9061 | |||
9062 | ld_shlibs=yes | ||
9063 | if test "$with_gnu_ld" = yes; then | ||
9064 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
9065 | wlarc='${wl}' | ||
9066 | |||
9067 | # Set some defaults for GNU ld with shared library support. These | ||
9068 | # are reset later if shared libraries are not supported. Putting them | ||
9069 | # here allows them to be overridden if necessary. | ||
9070 | runpath_var=LD_RUN_PATH | ||
9071 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
9072 | export_dynamic_flag_spec='${wl}--export-dynamic' | ||
9073 | # ancient GNU ld didn't support --whole-archive et. al. | ||
9074 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | ||
9075 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
9076 | else | ||
9077 | whole_archive_flag_spec= | ||
9078 | fi | ||
9079 | supports_anon_versioning=no | ||
9080 | case `$LD -v 2>&1` in | ||
9081 | *GNU\ gold*) supports_anon_versioning=yes ;; | ||
9082 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
9083 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
9084 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
9085 | *\ 2.11.*) ;; # other 2.11 versions | ||
9086 | *) supports_anon_versioning=yes ;; | ||
9087 | esac | ||
9088 | |||
9089 | # See if GNU ld supports shared libraries. | ||
9090 | case $host_os in | ||
9091 | aix[3-9]*) | ||
9092 | # On AIX/PPC, the GNU linker is very broken | ||
9093 | if test "$host_cpu" != ia64; then | ||
9094 | ld_shlibs=no | ||
9095 | cat <<_LT_EOF 1>&2 | ||
9096 | |||
9097 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | ||
9098 | *** to be unable to reliably create shared libraries on AIX. | ||
9099 | *** Therefore, libtool is disabling shared libraries support. If you | ||
9100 | *** really care for shared libraries, you may want to modify your PATH | ||
9101 | *** so that a non-GNU linker is found, and then restart. | ||
9102 | |||
9103 | _LT_EOF | ||
9104 | fi | ||
9105 | ;; | ||
9106 | |||
9107 | amigaos*) | ||
9108 | case $host_cpu in | ||
9109 | powerpc) | ||
9110 | # see comment about AmigaOS4 .so support | ||
9111 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9112 | archive_expsym_cmds='' | ||
9113 | ;; | ||
9114 | m68k) | ||
9115 | 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)' | ||
9116 | hardcode_libdir_flag_spec='-L$libdir' | ||
9117 | hardcode_minus_L=yes | ||
9118 | ;; | ||
9119 | esac | ||
9120 | ;; | ||
9121 | |||
9122 | beos*) | ||
9123 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
9124 | allow_undefined_flag=unsupported | ||
9125 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
9126 | # support --undefined. This deserves some investigation. FIXME | ||
9127 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9128 | else | ||
9129 | ld_shlibs=no | ||
9130 | fi | ||
9131 | ;; | ||
9132 | |||
9133 | cygwin* | mingw* | pw32* | cegcc*) | ||
9134 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | ||
9135 | # as there is no search path for DLLs. | ||
9136 | hardcode_libdir_flag_spec='-L$libdir' | ||
9137 | allow_undefined_flag=unsupported | ||
9138 | always_export_symbols=no | ||
9139 | enable_shared_with_static_runtimes=yes | ||
9140 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
9141 | |||
9142 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
9143 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
9144 | # If the export-symbols file already is a .def file (1st line | ||
9145 | # is EXPORTS), use it as is; otherwise, prepend... | ||
9146 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
9147 | cp $export_symbols $output_objdir/$soname.def; | ||
9148 | else | ||
9149 | echo EXPORTS > $output_objdir/$soname.def; | ||
9150 | cat $export_symbols >> $output_objdir/$soname.def; | ||
9151 | fi~ | ||
9152 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
9153 | else | ||
9154 | ld_shlibs=no | ||
9155 | fi | ||
9156 | ;; | ||
9157 | |||
9158 | interix[3-9]*) | ||
9159 | hardcode_direct=no | ||
9160 | hardcode_shlibpath_var=no | ||
9161 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
9162 | export_dynamic_flag_spec='${wl}-E' | ||
9163 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
9164 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
9165 | # default) and relocated if they conflict, which is a slow very memory | ||
9166 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
9167 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
9168 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
9169 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
9170 | 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' | ||
9171 | ;; | ||
9172 | |||
9173 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | ||
9174 | tmp_diet=no | ||
9175 | if test "$host_os" = linux-dietlibc; then | ||
9176 | case $cc_basename in | ||
9177 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | ||
9178 | esac | ||
9179 | fi | ||
9180 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | ||
9181 | && test "$tmp_diet" = no | ||
9182 | then | ||
9183 | tmp_addflag= | ||
9184 | tmp_sharedflag='-shared' | ||
9185 | case $cc_basename,$host_cpu in | ||
9186 | pgcc*) # Portland Group C compiler | ||
9187 | 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' | ||
9188 | tmp_addflag=' $pic_flag' | ||
9189 | ;; | ||
9190 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | ||
9191 | 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' | ||
9192 | tmp_addflag=' $pic_flag -Mnomain' ;; | ||
9193 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | ||
9194 | tmp_addflag=' -i_dynamic' ;; | ||
9195 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | ||
9196 | tmp_addflag=' -i_dynamic -nofor_main' ;; | ||
9197 | ifc* | ifort*) # Intel Fortran compiler | ||
9198 | tmp_addflag=' -nofor_main' ;; | ||
9199 | lf95*) # Lahey Fortran 8.1 | ||
9200 | whole_archive_flag_spec= | ||
9201 | tmp_sharedflag='--shared' ;; | ||
9202 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | ||
9203 | tmp_sharedflag='-qmkshrobj' | ||
9204 | tmp_addflag= ;; | ||
9205 | esac | ||
9206 | case `$CC -V 2>&1 | sed 5q` in | ||
9207 | *Sun\ C*) # Sun C 5.9 | ||
9208 | 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' | ||
9209 | compiler_needs_object=yes | ||
9210 | tmp_sharedflag='-G' ;; | ||
9211 | *Sun\ F*) # Sun Fortran 8.3 | ||
9212 | tmp_sharedflag='-G' ;; | ||
9213 | esac | ||
9214 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9215 | |||
9216 | if test "x$supports_anon_versioning" = xyes; then | ||
9217 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
9218 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
9219 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
9220 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
9221 | fi | ||
9222 | |||
9223 | case $cc_basename in | ||
9224 | xlf*) | ||
9225 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | ||
9226 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | ||
9227 | hardcode_libdir_flag_spec= | ||
9228 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | ||
9229 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | ||
9230 | if test "x$supports_anon_versioning" = xyes; then | ||
9231 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
9232 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
9233 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
9234 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
9235 | fi | ||
9236 | ;; | ||
9237 | esac | ||
9238 | else | ||
9239 | ld_shlibs=no | ||
9240 | fi | ||
9241 | ;; | ||
9242 | |||
9243 | netbsd* | netbsdelf*-gnu) | ||
9244 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
9245 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
9246 | wlarc= | ||
9247 | else | ||
9248 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9249 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
9250 | fi | ||
9251 | ;; | ||
9252 | |||
9253 | solaris*) | ||
9254 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | ||
9255 | ld_shlibs=no | ||
9256 | cat <<_LT_EOF 1>&2 | ||
9257 | |||
9258 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | ||
9259 | *** create shared libraries on Solaris systems. Therefore, libtool | ||
9260 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
9261 | *** binutils to release 2.9.1 or newer. Another option is to modify | ||
9262 | *** your PATH or compiler configuration so that the native linker is | ||
9263 | *** used, and then restart. | ||
9264 | |||
9265 | _LT_EOF | ||
9266 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
9267 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9268 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
9269 | else | ||
9270 | ld_shlibs=no | ||
9271 | fi | ||
9272 | ;; | ||
9273 | |||
9274 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | ||
9275 | case `$LD -v 2>&1` in | ||
9276 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | ||
9277 | ld_shlibs=no | ||
9278 | cat <<_LT_EOF 1>&2 | ||
9279 | |||
9280 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | ||
9281 | *** reliably create shared libraries on SCO systems. Therefore, libtool | ||
9282 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
9283 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | ||
9284 | *** your PATH or compiler configuration so that the native linker is | ||
9285 | *** used, and then restart. | ||
9286 | |||
9287 | _LT_EOF | ||
9288 | ;; | ||
9289 | *) | ||
9290 | # For security reasons, it is highly recommended that you always | ||
9291 | # use absolute paths for naming shared libraries, and exclude the | ||
9292 | # DT_RUNPATH tag from executables and libraries. But doing so | ||
9293 | # requires that you compile everything twice, which is a pain. | ||
9294 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
9295 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
9296 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9297 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
9298 | else | ||
9299 | ld_shlibs=no | ||
9300 | fi | ||
9301 | ;; | ||
9302 | esac | ||
9303 | ;; | ||
9304 | |||
9305 | sunos4*) | ||
9306 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
9307 | wlarc= | ||
9308 | hardcode_direct=yes | ||
9309 | hardcode_shlibpath_var=no | ||
9310 | ;; | ||
9311 | |||
9312 | *) | ||
9313 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
9314 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9315 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
9316 | else | ||
9317 | ld_shlibs=no | ||
9318 | fi | ||
9319 | ;; | ||
9320 | esac | ||
9321 | |||
9322 | if test "$ld_shlibs" = no; then | ||
9323 | runpath_var= | ||
9324 | hardcode_libdir_flag_spec= | ||
9325 | export_dynamic_flag_spec= | ||
9326 | whole_archive_flag_spec= | ||
9327 | fi | ||
9328 | else | ||
9329 | # PORTME fill in a description of your system's linker (not GNU ld) | ||
9330 | case $host_os in | ||
9331 | aix3*) | ||
9332 | allow_undefined_flag=unsupported | ||
9333 | always_export_symbols=yes | ||
9334 | 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' | ||
9335 | # Note: this linker hardcodes the directories in LIBPATH if there | ||
9336 | # are no directories specified by -L. | ||
9337 | hardcode_minus_L=yes | ||
9338 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | ||
9339 | # Neither direct hardcoding nor static linking is supported with a | ||
9340 | # broken collect2. | ||
9341 | hardcode_direct=unsupported | ||
9342 | fi | ||
9343 | ;; | ||
9344 | |||
9345 | aix[4-9]*) | ||
9346 | if test "$host_cpu" = ia64; then | ||
9347 | # On IA64, the linker does run time linking by default, so we don't | ||
9348 | # have to do anything special. | ||
9349 | aix_use_runtimelinking=no | ||
9350 | exp_sym_flag='-Bexport' | ||
9351 | no_entry_flag="" | ||
9352 | else | ||
9353 | # If we're using GNU nm, then we don't want the "-C" option. | ||
9354 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
9355 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | ||
9356 | 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' | ||
9357 | else | ||
9358 | 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' | ||
9359 | fi | ||
9360 | aix_use_runtimelinking=no | ||
9361 | |||
9362 | # Test if we are trying to use run time linking or normal | ||
9363 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
9364 | # need to do runtime linking. | ||
9365 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | ||
9366 | for ld_flag in $LDFLAGS; do | ||
9367 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | ||
9368 | aix_use_runtimelinking=yes | ||
9369 | break | ||
9370 | fi | ||
9371 | done | ||
9372 | ;; | ||
9373 | esac | ||
9374 | |||
9375 | exp_sym_flag='-bexport' | ||
9376 | no_entry_flag='-bnoentry' | ||
9377 | fi | ||
9378 | |||
9379 | # When large executables or shared objects are built, AIX ld can | ||
9380 | # have problems creating the table of contents. If linking a library | ||
9381 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
9382 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
9383 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
9384 | |||
9385 | archive_cmds='' | ||
9386 | hardcode_direct=yes | ||
9387 | hardcode_direct_absolute=yes | ||
9388 | hardcode_libdir_separator=':' | ||
9389 | link_all_deplibs=yes | ||
9390 | file_list_spec='${wl}-f,' | ||
9391 | |||
9392 | if test "$GCC" = yes; then | ||
9393 | case $host_os in aix4.[012]|aix4.[012].*) | ||
9394 | # We only want to do this on AIX 4.2 and lower, the check | ||
9395 | # below for broken collect2 doesn't work under 4.3+ | ||
9396 | collect2name=`${CC} -print-prog-name=collect2` | ||
9397 | if test -f "$collect2name" && | ||
9398 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | ||
9399 | then | ||
9400 | # We have reworked collect2 | ||
9401 | : | ||
9402 | else | ||
9403 | # We have old collect2 | ||
9404 | hardcode_direct=unsupported | ||
9405 | # It fails to find uninstalled libraries when the uninstalled | ||
9406 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
9407 | # to unsupported forces relinking | ||
9408 | hardcode_minus_L=yes | ||
9409 | hardcode_libdir_flag_spec='-L$libdir' | ||
9410 | hardcode_libdir_separator= | ||
9411 | fi | ||
9412 | ;; | ||
9413 | esac | ||
9414 | shared_flag='-shared' | ||
9415 | if test "$aix_use_runtimelinking" = yes; then | ||
9416 | shared_flag="$shared_flag "'${wl}-G' | ||
9417 | fi | ||
9418 | link_all_deplibs=no | ||
9419 | else | ||
9420 | # not using gcc | ||
9421 | if test "$host_cpu" = ia64; then | ||
9422 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
9423 | # chokes on -Wl,-G. The following line is correct: | ||
9424 | shared_flag='-G' | ||
9425 | else | ||
9426 | if test "$aix_use_runtimelinking" = yes; then | ||
9427 | shared_flag='${wl}-G' | ||
9428 | else | ||
9429 | shared_flag='${wl}-bM:SRE' | ||
9430 | fi | ||
9431 | fi | ||
9432 | fi | ||
9433 | |||
9434 | export_dynamic_flag_spec='${wl}-bexpall' | ||
9435 | # It seems that -bexpall does not export symbols beginning with | ||
9436 | # underscore (_), so it is better to generate a list of symbols to export. | ||
9437 | always_export_symbols=yes | ||
9438 | if test "$aix_use_runtimelinking" = yes; then | ||
9439 | # Warning - without using the other runtime loading flags (-brtl), | ||
9440 | # -berok will link without error, but may produce a broken library. | ||
9441 | allow_undefined_flag='-berok' | ||
9442 | # Determine the default libpath from the value encoded in an | ||
9443 | # empty executable. | ||
9444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9445 | /* end confdefs.h. */ | ||
9446 | |||
9447 | int | ||
9448 | main () | ||
9449 | { | ||
9450 | |||
9451 | ; | ||
9452 | return 0; | ||
9453 | } | ||
9454 | _ACEOF | ||
9455 | if ac_fn_c_try_link "$LINENO"; then : | ||
9456 | |||
9457 | lt_aix_libpath_sed=' | ||
9458 | /Import File Strings/,/^$/ { | ||
9459 | /^0/ { | ||
9460 | s/^0 *\(.*\)$/\1/ | ||
9461 | p | ||
9462 | } | ||
9463 | }' | ||
9464 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
9465 | # Check for a 64-bit object if we didn't find anything. | ||
9466 | if test -z "$aix_libpath"; then | ||
9467 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
9468 | fi | ||
9469 | fi | ||
9470 | rm -f core conftest.err conftest.$ac_objext \ | ||
9471 | conftest$ac_exeext conftest.$ac_ext | ||
9472 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
9473 | |||
9474 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
9475 | 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" | ||
9476 | else | ||
9477 | if test "$host_cpu" = ia64; then | ||
9478 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | ||
9479 | allow_undefined_flag="-z nodefs" | ||
9480 | 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" | ||
9481 | else | ||
9482 | # Determine the default libpath from the value encoded in an | ||
9483 | # empty executable. | ||
9484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9485 | /* end confdefs.h. */ | ||
9486 | |||
9487 | int | ||
9488 | main () | ||
9489 | { | ||
9490 | |||
9491 | ; | ||
9492 | return 0; | ||
9493 | } | ||
9494 | _ACEOF | ||
9495 | if ac_fn_c_try_link "$LINENO"; then : | ||
9496 | |||
9497 | lt_aix_libpath_sed=' | ||
9498 | /Import File Strings/,/^$/ { | ||
9499 | /^0/ { | ||
9500 | s/^0 *\(.*\)$/\1/ | ||
9501 | p | ||
9502 | } | ||
9503 | }' | ||
9504 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
9505 | # Check for a 64-bit object if we didn't find anything. | ||
9506 | if test -z "$aix_libpath"; then | ||
9507 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
9508 | fi | ||
9509 | fi | ||
9510 | rm -f core conftest.err conftest.$ac_objext \ | ||
9511 | conftest$ac_exeext conftest.$ac_ext | ||
9512 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
9513 | |||
9514 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
9515 | # Warning - without using the other run time loading flags, | ||
9516 | # -berok will link without error, but may produce a broken library. | ||
9517 | no_undefined_flag=' ${wl}-bernotok' | ||
9518 | allow_undefined_flag=' ${wl}-berok' | ||
9519 | # Exported symbols can be pulled into shared objects from archives | ||
9520 | whole_archive_flag_spec='$convenience' | ||
9521 | archive_cmds_need_lc=yes | ||
9522 | # This is similar to how AIX traditionally builds its shared libraries. | ||
9523 | 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' | ||
9524 | fi | ||
9525 | fi | ||
9526 | ;; | ||
9527 | |||
9528 | amigaos*) | ||
9529 | case $host_cpu in | ||
9530 | powerpc) | ||
9531 | # see comment about AmigaOS4 .so support | ||
9532 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9533 | archive_expsym_cmds='' | ||
9534 | ;; | ||
9535 | m68k) | ||
9536 | 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)' | ||
9537 | hardcode_libdir_flag_spec='-L$libdir' | ||
9538 | hardcode_minus_L=yes | ||
9539 | ;; | ||
9540 | esac | ||
9541 | ;; | ||
9542 | |||
9543 | bsdi[45]*) | ||
9544 | export_dynamic_flag_spec=-rdynamic | ||
9545 | ;; | ||
9546 | |||
9547 | cygwin* | mingw* | pw32* | cegcc*) | ||
9548 | # When not using gcc, we currently assume that we are using | ||
9549 | # Microsoft Visual C++. | ||
9550 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
9551 | # no search path for DLLs. | ||
9552 | hardcode_libdir_flag_spec=' ' | ||
9553 | allow_undefined_flag=unsupported | ||
9554 | # Tell ltmain to make .lib files, not .a files. | ||
9555 | libext=lib | ||
9556 | # Tell ltmain to make .dll files, not .so files. | ||
9557 | shrext_cmds=".dll" | ||
9558 | # FIXME: Setting linknames here is a bad hack. | ||
9559 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
9560 | # The linker will automatically build a .lib file if we build a DLL. | ||
9561 | old_archive_from_new_cmds='true' | ||
9562 | # FIXME: Should let the user specify the lib program. | ||
9563 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
9564 | fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
9565 | enable_shared_with_static_runtimes=yes | ||
9566 | ;; | ||
9567 | |||
9568 | darwin* | rhapsody*) | ||
9569 | |||
9570 | |||
9571 | archive_cmds_need_lc=no | ||
9572 | hardcode_direct=no | ||
9573 | hardcode_automatic=yes | ||
9574 | hardcode_shlibpath_var=unsupported | ||
9575 | whole_archive_flag_spec='' | ||
9576 | link_all_deplibs=yes | ||
9577 | allow_undefined_flag="$_lt_dar_allow_undefined" | ||
9578 | case $cc_basename in | ||
9579 | ifort*) _lt_dar_can_shared=yes ;; | ||
9580 | *) _lt_dar_can_shared=$GCC ;; | ||
9581 | esac | ||
9582 | if test "$_lt_dar_can_shared" = "yes"; then | ||
9583 | output_verbose_link_cmd=echo | ||
9584 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | ||
9585 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | ||
9586 | 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}" | ||
9587 | 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}" | ||
9588 | |||
9589 | else | ||
9590 | ld_shlibs=no | ||
9591 | fi | ||
9592 | |||
9593 | ;; | ||
9594 | |||
9595 | dgux*) | ||
9596 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9597 | hardcode_libdir_flag_spec='-L$libdir' | ||
9598 | hardcode_shlibpath_var=no | ||
9599 | ;; | ||
9600 | |||
9601 | freebsd1*) | ||
9602 | ld_shlibs=no | ||
9603 | ;; | ||
9604 | |||
9605 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | ||
9606 | # support. Future versions do this automatically, but an explicit c++rt0.o | ||
9607 | # does not break anything, and helps significantly (at the cost of a little | ||
9608 | # extra space). | ||
9609 | freebsd2.2*) | ||
9610 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | ||
9611 | hardcode_libdir_flag_spec='-R$libdir' | ||
9612 | hardcode_direct=yes | ||
9613 | hardcode_shlibpath_var=no | ||
9614 | ;; | ||
9615 | |||
9616 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | ||
9617 | freebsd2*) | ||
9618 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
9619 | hardcode_direct=yes | ||
9620 | hardcode_minus_L=yes | ||
9621 | hardcode_shlibpath_var=no | ||
9622 | ;; | ||
9623 | |||
9624 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
9625 | freebsd* | dragonfly*) | ||
9626 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
9627 | hardcode_libdir_flag_spec='-R$libdir' | ||
9628 | hardcode_direct=yes | ||
9629 | hardcode_shlibpath_var=no | ||
9630 | ;; | ||
9631 | |||
9632 | hpux9*) | ||
9633 | if test "$GCC" = yes; then | ||
9634 | 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' | ||
9635 | else | ||
9636 | 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' | ||
9637 | fi | ||
9638 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
9639 | hardcode_libdir_separator=: | ||
9640 | hardcode_direct=yes | ||
9641 | |||
9642 | # hardcode_minus_L: Not really in the search PATH, | ||
9643 | # but as the default location of the library. | ||
9644 | hardcode_minus_L=yes | ||
9645 | export_dynamic_flag_spec='${wl}-E' | ||
9646 | ;; | ||
9647 | |||
9648 | hpux10*) | ||
9649 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
9650 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
9651 | else | ||
9652 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
9653 | fi | ||
9654 | if test "$with_gnu_ld" = no; then | ||
9655 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
9656 | hardcode_libdir_flag_spec_ld='+b $libdir' | ||
9657 | hardcode_libdir_separator=: | ||
9658 | hardcode_direct=yes | ||
9659 | hardcode_direct_absolute=yes | ||
9660 | export_dynamic_flag_spec='${wl}-E' | ||
9661 | # hardcode_minus_L: Not really in the search PATH, | ||
9662 | # but as the default location of the library. | ||
9663 | hardcode_minus_L=yes | ||
9664 | fi | ||
9665 | ;; | ||
9666 | |||
9667 | hpux11*) | ||
9668 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
9669 | case $host_cpu in | ||
9670 | hppa*64*) | ||
9671 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9672 | ;; | ||
9673 | ia64*) | ||
9674 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
9675 | ;; | ||
9676 | *) | ||
9677 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
9678 | ;; | ||
9679 | esac | ||
9680 | else | ||
9681 | case $host_cpu in | ||
9682 | hppa*64*) | ||
9683 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9684 | ;; | ||
9685 | ia64*) | ||
9686 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
9687 | ;; | ||
9688 | *) | ||
9689 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
9690 | ;; | ||
9691 | esac | ||
9692 | fi | ||
9693 | if test "$with_gnu_ld" = no; then | ||
9694 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
9695 | hardcode_libdir_separator=: | ||
9696 | |||
9697 | case $host_cpu in | ||
9698 | hppa*64*|ia64*) | ||
9699 | hardcode_direct=no | ||
9700 | hardcode_shlibpath_var=no | ||
9701 | ;; | ||
9702 | *) | ||
9703 | hardcode_direct=yes | ||
9704 | hardcode_direct_absolute=yes | ||
9705 | export_dynamic_flag_spec='${wl}-E' | ||
9706 | |||
9707 | # hardcode_minus_L: Not really in the search PATH, | ||
9708 | # but as the default location of the library. | ||
9709 | hardcode_minus_L=yes | ||
9710 | ;; | ||
9711 | esac | ||
9712 | fi | ||
9713 | ;; | ||
9714 | |||
9715 | irix5* | irix6* | nonstopux*) | ||
9716 | if test "$GCC" = yes; then | ||
9717 | 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' | ||
9718 | # Try to use the -exported_symbol ld option, if it does not | ||
9719 | # work, assume that -exports_file does not work either and | ||
9720 | # implicitly export all symbols. | ||
9721 | save_LDFLAGS="$LDFLAGS" | ||
9722 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
9723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9724 | /* end confdefs.h. */ | ||
9725 | int foo(void) {} | ||
9726 | _ACEOF | ||
9727 | if ac_fn_c_try_link "$LINENO"; then : | ||
9728 | 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' | ||
9729 | |||
9730 | fi | ||
9731 | rm -f core conftest.err conftest.$ac_objext \ | ||
9732 | conftest$ac_exeext conftest.$ac_ext | ||
9733 | LDFLAGS="$save_LDFLAGS" | ||
9734 | else | ||
9735 | 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' | ||
9736 | 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' | ||
9737 | fi | ||
9738 | archive_cmds_need_lc='no' | ||
9739 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
9740 | hardcode_libdir_separator=: | ||
9741 | inherit_rpath=yes | ||
9742 | link_all_deplibs=yes | ||
9743 | ;; | ||
9744 | |||
9745 | netbsd* | netbsdelf*-gnu) | ||
9746 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
9747 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | ||
9748 | else | ||
9749 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | ||
9750 | fi | ||
9751 | hardcode_libdir_flag_spec='-R$libdir' | ||
9752 | hardcode_direct=yes | ||
9753 | hardcode_shlibpath_var=no | ||
9754 | ;; | ||
9755 | |||
9756 | newsos6) | ||
9757 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9758 | hardcode_direct=yes | ||
9759 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
9760 | hardcode_libdir_separator=: | ||
9761 | hardcode_shlibpath_var=no | ||
9762 | ;; | ||
9763 | |||
9764 | *nto* | *qnx*) | ||
9765 | ;; | ||
9766 | |||
9767 | openbsd*) | ||
9768 | if test -f /usr/libexec/ld.so; then | ||
9769 | hardcode_direct=yes | ||
9770 | hardcode_shlibpath_var=no | ||
9771 | hardcode_direct_absolute=yes | ||
9772 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
9773 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
9774 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | ||
9775 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
9776 | export_dynamic_flag_spec='${wl}-E' | ||
9777 | else | ||
9778 | case $host_os in | ||
9779 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | ||
9780 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
9781 | hardcode_libdir_flag_spec='-R$libdir' | ||
9782 | ;; | ||
9783 | *) | ||
9784 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
9785 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
9786 | ;; | ||
9787 | esac | ||
9788 | fi | ||
9789 | else | ||
9790 | ld_shlibs=no | ||
9791 | fi | ||
9792 | ;; | ||
9793 | |||
9794 | os2*) | ||
9795 | hardcode_libdir_flag_spec='-L$libdir' | ||
9796 | hardcode_minus_L=yes | ||
9797 | allow_undefined_flag=unsupported | ||
9798 | 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' | ||
9799 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | ||
9800 | ;; | ||
9801 | |||
9802 | osf3*) | ||
9803 | if test "$GCC" = yes; then | ||
9804 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
9805 | 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' | ||
9806 | else | ||
9807 | allow_undefined_flag=' -expect_unresolved \*' | ||
9808 | 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' | ||
9809 | fi | ||
9810 | archive_cmds_need_lc='no' | ||
9811 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
9812 | hardcode_libdir_separator=: | ||
9813 | ;; | ||
9814 | |||
9815 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
9816 | if test "$GCC" = yes; then | ||
9817 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
9818 | 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' | ||
9819 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
9820 | else | ||
9821 | allow_undefined_flag=' -expect_unresolved \*' | ||
9822 | 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' | ||
9823 | 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~ | ||
9824 | $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' | ||
9825 | |||
9826 | # Both c and cxx compiler support -rpath directly | ||
9827 | hardcode_libdir_flag_spec='-rpath $libdir' | ||
9828 | fi | ||
9829 | archive_cmds_need_lc='no' | ||
9830 | hardcode_libdir_separator=: | ||
9831 | ;; | ||
9832 | |||
9833 | solaris*) | ||
9834 | no_undefined_flag=' -z defs' | ||
9835 | if test "$GCC" = yes; then | ||
9836 | wlarc='${wl}' | ||
9837 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9838 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
9839 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
9840 | else | ||
9841 | case `$CC -V 2>&1` in | ||
9842 | *"Compilers 5.0"*) | ||
9843 | wlarc='' | ||
9844 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9845 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
9846 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | ||
9847 | ;; | ||
9848 | *) | ||
9849 | wlarc='${wl}' | ||
9850 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9851 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
9852 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
9853 | ;; | ||
9854 | esac | ||
9855 | fi | ||
9856 | hardcode_libdir_flag_spec='-R$libdir' | ||
9857 | hardcode_shlibpath_var=no | ||
9858 | case $host_os in | ||
9859 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
9860 | *) | ||
9861 | # The compiler driver will combine and reorder linker options, | ||
9862 | # but understands `-z linker_flag'. GCC discards it without `$wl', | ||
9863 | # but is careful enough not to reorder. | ||
9864 | # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
9865 | if test "$GCC" = yes; then | ||
9866 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | ||
9867 | else | ||
9868 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | ||
9869 | fi | ||
9870 | ;; | ||
9871 | esac | ||
9872 | link_all_deplibs=yes | ||
9873 | ;; | ||
9874 | |||
9875 | sunos4*) | ||
9876 | if test "x$host_vendor" = xsequent; then | ||
9877 | # Use $CC to link under sequent, because it throws in some extra .o | ||
9878 | # files that make .init and .fini sections work. | ||
9879 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9880 | else | ||
9881 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | ||
9882 | fi | ||
9883 | hardcode_libdir_flag_spec='-L$libdir' | ||
9884 | hardcode_direct=yes | ||
9885 | hardcode_minus_L=yes | ||
9886 | hardcode_shlibpath_var=no | ||
9887 | ;; | ||
9888 | |||
9889 | sysv4) | ||
9890 | case $host_vendor in | ||
9891 | sni) | ||
9892 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9893 | hardcode_direct=yes # is this really true??? | ||
9894 | ;; | ||
9895 | siemens) | ||
9896 | ## LD is ld it makes a PLAMLIB | ||
9897 | ## CC just makes a GrossModule. | ||
9898 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | ||
9899 | reload_cmds='$CC -r -o $output$reload_objs' | ||
9900 | hardcode_direct=no | ||
9901 | ;; | ||
9902 | motorola) | ||
9903 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9904 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | ||
9905 | ;; | ||
9906 | esac | ||
9907 | runpath_var='LD_RUN_PATH' | ||
9908 | hardcode_shlibpath_var=no | ||
9909 | ;; | ||
9910 | |||
9911 | sysv4.3*) | ||
9912 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9913 | hardcode_shlibpath_var=no | ||
9914 | export_dynamic_flag_spec='-Bexport' | ||
9915 | ;; | ||
9916 | |||
9917 | sysv4*MP*) | ||
9918 | if test -d /usr/nec; then | ||
9919 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9920 | hardcode_shlibpath_var=no | ||
9921 | runpath_var=LD_RUN_PATH | ||
9922 | hardcode_runpath_var=yes | ||
9923 | ld_shlibs=yes | ||
9924 | fi | ||
9925 | ;; | ||
9926 | |||
9927 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | ||
9928 | no_undefined_flag='${wl}-z,text' | ||
9929 | archive_cmds_need_lc=no | ||
9930 | hardcode_shlibpath_var=no | ||
9931 | runpath_var='LD_RUN_PATH' | ||
9932 | |||
9933 | if test "$GCC" = yes; then | ||
9934 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9935 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9936 | else | ||
9937 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9938 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9939 | fi | ||
9940 | ;; | ||
9941 | |||
9942 | sysv5* | sco3.2v5* | sco5v6*) | ||
9943 | # Note: We can NOT use -z defs as we might desire, because we do not | ||
9944 | # link with -lc, and that would cause any symbols used from libc to | ||
9945 | # always be unresolved, which means just about no library would | ||
9946 | # ever link correctly. If we're not using GNU ld we use -z text | ||
9947 | # though, which does catch some bad symbols but isn't as heavy-handed | ||
9948 | # as -z defs. | ||
9949 | no_undefined_flag='${wl}-z,text' | ||
9950 | allow_undefined_flag='${wl}-z,nodefs' | ||
9951 | archive_cmds_need_lc=no | ||
9952 | hardcode_shlibpath_var=no | ||
9953 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | ||
9954 | hardcode_libdir_separator=':' | ||
9955 | link_all_deplibs=yes | ||
9956 | export_dynamic_flag_spec='${wl}-Bexport' | ||
9957 | runpath_var='LD_RUN_PATH' | ||
9958 | |||
9959 | if test "$GCC" = yes; then | ||
9960 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9961 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9962 | else | ||
9963 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9964 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
9965 | fi | ||
9966 | ;; | ||
9967 | |||
9968 | uts4*) | ||
9969 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
9970 | hardcode_libdir_flag_spec='-L$libdir' | ||
9971 | hardcode_shlibpath_var=no | ||
9972 | ;; | ||
9973 | |||
9974 | *) | ||
9975 | ld_shlibs=no | ||
9976 | ;; | ||
9977 | esac | ||
9978 | |||
9979 | if test x$host_vendor = xsni; then | ||
9980 | case $host in | ||
9981 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
9982 | export_dynamic_flag_spec='${wl}-Blargedynsym' | ||
9983 | ;; | ||
9984 | esac | ||
9985 | fi | ||
9986 | fi | ||
9987 | |||
9988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | ||
9989 | $as_echo "$ld_shlibs" >&6; } | ||
9990 | test "$ld_shlibs" = no && can_build_shared=no | ||
9991 | |||
9992 | with_gnu_ld=$with_gnu_ld | ||
9993 | |||
9994 | |||
9995 | |||
9996 | |||
9997 | |||
9998 | |||
9999 | |||
10000 | |||
10001 | |||
10002 | |||
10003 | |||
10004 | |||
10005 | |||
10006 | |||
10007 | |||
10008 | # | ||
10009 | # Do we need to explicitly link libc? | ||
10010 | # | ||
10011 | case "x$archive_cmds_need_lc" in | ||
10012 | x|xyes) | ||
10013 | # Assume -lc should be added | ||
10014 | archive_cmds_need_lc=yes | ||
10015 | |||
10016 | if test "$enable_shared" = yes && test "$GCC" = yes; then | ||
10017 | case $archive_cmds in | ||
10018 | *'~'*) | ||
10019 | # FIXME: we may have to deal with multi-command sequences. | ||
10020 | ;; | ||
10021 | '$CC '*) | ||
10022 | # Test whether the compiler implicitly links with -lc since on some | ||
10023 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | ||
10024 | # to ld, don't add -lc before -lgcc. | ||
10025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | ||
10026 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | ||
10027 | $RM conftest* | ||
10028 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
10029 | |||
10030 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
10031 | (eval $ac_compile) 2>&5 | ||
10032 | ac_status=$? | ||
10033 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
10034 | test $ac_status = 0; } 2>conftest.err; then | ||
10035 | soname=conftest | ||
10036 | lib=conftest | ||
10037 | libobjs=conftest.$ac_objext | ||
10038 | deplibs= | ||
10039 | wl=$lt_prog_compiler_wl | ||
10040 | pic_flag=$lt_prog_compiler_pic | ||
10041 | compiler_flags=-v | ||
10042 | linker_flags=-v | ||
10043 | verstring= | ||
10044 | output_objdir=. | ||
10045 | libname=conftest | ||
10046 | lt_save_allow_undefined_flag=$allow_undefined_flag | ||
10047 | allow_undefined_flag= | ||
10048 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | ||
10049 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | ||
10050 | ac_status=$? | ||
10051 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
10052 | test $ac_status = 0; } | ||
10053 | then | ||
10054 | archive_cmds_need_lc=no | ||
10055 | else | ||
10056 | archive_cmds_need_lc=yes | ||
10057 | fi | ||
10058 | allow_undefined_flag=$lt_save_allow_undefined_flag | ||
10059 | else | ||
10060 | cat conftest.err 1>&5 | ||
10061 | fi | ||
10062 | $RM conftest* | ||
10063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 | ||
10064 | $as_echo "$archive_cmds_need_lc" >&6; } | ||
10065 | ;; | ||
10066 | esac | ||
10067 | fi | ||
10068 | ;; | ||
10069 | esac | ||
10070 | |||
10071 | |||
10072 | |||
10073 | |||
10074 | |||
10075 | |||
10076 | |||
10077 | |||
10078 | |||
10079 | |||
10080 | |||
10081 | |||
10082 | |||
10083 | |||
10084 | |||
10085 | |||
10086 | |||
10087 | |||
10088 | |||
10089 | |||
10090 | |||
10091 | |||
10092 | |||
10093 | |||
10094 | |||
10095 | |||
10096 | |||
10097 | |||
10098 | |||
10099 | |||
10100 | |||
10101 | |||
10102 | |||
10103 | |||
10104 | |||
10105 | |||
10106 | |||
10107 | |||
10108 | |||
10109 | |||
10110 | |||
10111 | |||
10112 | |||
10113 | |||
10114 | |||
10115 | |||
10116 | |||
10117 | |||
10118 | |||
10119 | |||
10120 | |||
10121 | |||
10122 | |||
10123 | |||
10124 | |||
10125 | |||
10126 | |||
10127 | |||
10128 | |||
10129 | |||
10130 | |||
10131 | |||
10132 | |||
10133 | |||
10134 | |||
10135 | |||
10136 | |||
10137 | |||
10138 | |||
10139 | |||
10140 | |||
10141 | |||
10142 | |||
10143 | |||
10144 | |||
10145 | |||
10146 | |||
10147 | |||
10148 | |||
10149 | |||
10150 | |||
10151 | |||
10152 | |||
10153 | |||
10154 | |||
10155 | |||
10156 | |||
10157 | |||
10158 | |||
10159 | |||
10160 | |||
10161 | |||
10162 | |||
10163 | |||
10164 | |||
10165 | |||
10166 | |||
10167 | |||
10168 | |||
10169 | |||
10170 | |||
10171 | |||
10172 | |||
10173 | |||
10174 | |||
10175 | |||
10176 | |||
10177 | |||
10178 | |||
10179 | |||
10180 | |||
10181 | |||
10182 | |||
10183 | |||
10184 | |||
10185 | |||
10186 | |||
10187 | |||
10188 | |||
10189 | |||
10190 | |||
10191 | |||
10192 | |||
10193 | |||
10194 | |||
10195 | |||
10196 | |||
10197 | |||
10198 | |||
10199 | |||
10200 | |||
10201 | |||
10202 | |||
10203 | |||
10204 | |||
10205 | |||
10206 | |||
10207 | |||
10208 | |||
10209 | |||
10210 | |||
10211 | |||
10212 | |||
10213 | |||
10214 | |||
10215 | |||
10216 | |||
10217 | |||
10218 | |||
10219 | |||
10220 | |||
10221 | |||
10222 | |||
10223 | |||
10224 | |||
10225 | |||
10226 | |||
10227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | ||
10228 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | ||
10229 | |||
10230 | if test "$GCC" = yes; then | ||
10231 | case $host_os in | ||
10232 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | ||
10233 | *) lt_awk_arg="/^libraries:/" ;; | ||
10234 | esac | ||
10235 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
10236 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | ||
10237 | # if the path contains ";" then we assume it to be the separator | ||
10238 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
10239 | # assumed that no part of a normal pathname contains ";" but that should | ||
10240 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
10241 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | ||
10242 | else | ||
10243 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
10244 | fi | ||
10245 | # Ok, now we have the path, separated by spaces, we can step through it | ||
10246 | # and add multilib dir if necessary. | ||
10247 | lt_tmp_lt_search_path_spec= | ||
10248 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | ||
10249 | for lt_sys_path in $lt_search_path_spec; do | ||
10250 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | ||
10251 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | ||
10252 | else | ||
10253 | test -d "$lt_sys_path" && \ | ||
10254 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | ||
10255 | fi | ||
10256 | done | ||
10257 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | ||
10258 | BEGIN {RS=" "; FS="/|\n";} { | ||
10259 | lt_foo=""; | ||
10260 | lt_count=0; | ||
10261 | for (lt_i = NF; lt_i > 0; lt_i--) { | ||
10262 | if ($lt_i != "" && $lt_i != ".") { | ||
10263 | if ($lt_i == "..") { | ||
10264 | lt_count++; | ||
10265 | } else { | ||
10266 | if (lt_count == 0) { | ||
10267 | lt_foo="/" $lt_i lt_foo; | ||
10268 | } else { | ||
10269 | lt_count--; | ||
10270 | } | ||
10271 | } | ||
10272 | } | ||
10273 | } | ||
10274 | if (lt_foo != "") { lt_freq[lt_foo]++; } | ||
10275 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | ||
10276 | }'` | ||
10277 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | ||
10278 | else | ||
10279 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
10280 | fi | ||
10281 | library_names_spec= | ||
10282 | libname_spec='lib$name' | ||
10283 | soname_spec= | ||
10284 | shrext_cmds=".so" | ||
10285 | postinstall_cmds= | ||
10286 | postuninstall_cmds= | ||
10287 | finish_cmds= | ||
10288 | finish_eval= | ||
10289 | shlibpath_var= | ||
10290 | shlibpath_overrides_runpath=unknown | ||
10291 | version_type=none | ||
10292 | dynamic_linker="$host_os ld.so" | ||
10293 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
10294 | need_lib_prefix=unknown | ||
10295 | hardcode_into_libs=no | ||
10296 | |||
10297 | # when you set need_version to no, make sure it does not cause -set_version | ||
10298 | # flags to be left without arguments | ||
10299 | need_version=unknown | ||
10300 | |||
10301 | case $host_os in | ||
10302 | aix3*) | ||
10303 | version_type=linux | ||
10304 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
10305 | shlibpath_var=LIBPATH | ||
10306 | |||
10307 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
10308 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10309 | ;; | ||
10310 | |||
10311 | aix[4-9]*) | ||
10312 | version_type=linux | ||
10313 | need_lib_prefix=no | ||
10314 | need_version=no | ||
10315 | hardcode_into_libs=yes | ||
10316 | if test "$host_cpu" = ia64; then | ||
10317 | # AIX 5 supports IA64 | ||
10318 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
10319 | shlibpath_var=LD_LIBRARY_PATH | ||
10320 | else | ||
10321 | # With GCC up to 2.95.x, collect2 would create an import file | ||
10322 | # for dependence libraries. The import file would start with | ||
10323 | # the line `#! .'. This would cause the generated library to | ||
10324 | # depend on `.', always an invalid library. This was fixed in | ||
10325 | # development snapshots of GCC prior to 3.0. | ||
10326 | case $host_os in | ||
10327 | aix4 | aix4.[01] | aix4.[01].*) | ||
10328 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
10329 | echo ' yes ' | ||
10330 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | ||
10331 | : | ||
10332 | else | ||
10333 | can_build_shared=no | ||
10334 | fi | ||
10335 | ;; | ||
10336 | esac | ||
10337 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
10338 | # soname into executable. Probably we can add versioning support to | ||
10339 | # collect2, so additional links can be useful in future. | ||
10340 | if test "$aix_use_runtimelinking" = yes; then | ||
10341 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
10342 | # instead of lib<name>.a to let people know that these are not | ||
10343 | # typical AIX shared libraries. | ||
10344 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10345 | else | ||
10346 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
10347 | # and later when we are not doing run time linking. | ||
10348 | library_names_spec='${libname}${release}.a $libname.a' | ||
10349 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10350 | fi | ||
10351 | shlibpath_var=LIBPATH | ||
10352 | fi | ||
10353 | ;; | ||
10354 | |||
10355 | amigaos*) | ||
10356 | case $host_cpu in | ||
10357 | powerpc) | ||
10358 | # Since July 2007 AmigaOS4 officially supports .so libraries. | ||
10359 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | ||
10360 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10361 | ;; | ||
10362 | m68k) | ||
10363 | library_names_spec='$libname.ixlibrary $libname.a' | ||
10364 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
10365 | 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' | ||
10366 | ;; | ||
10367 | esac | ||
10368 | ;; | ||
10369 | |||
10370 | beos*) | ||
10371 | library_names_spec='${libname}${shared_ext}' | ||
10372 | dynamic_linker="$host_os ld.so" | ||
10373 | shlibpath_var=LIBRARY_PATH | ||
10374 | ;; | ||
10375 | |||
10376 | bsdi[45]*) | ||
10377 | version_type=linux | ||
10378 | need_version=no | ||
10379 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10380 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10381 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
10382 | shlibpath_var=LD_LIBRARY_PATH | ||
10383 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
10384 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
10385 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
10386 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
10387 | # libtool to hard-code these into programs | ||
10388 | ;; | ||
10389 | |||
10390 | cygwin* | mingw* | pw32* | cegcc*) | ||
10391 | version_type=windows | ||
10392 | shrext_cmds=".dll" | ||
10393 | need_version=no | ||
10394 | need_lib_prefix=no | ||
10395 | |||
10396 | case $GCC,$host_os in | ||
10397 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | ||
10398 | library_names_spec='$libname.dll.a' | ||
10399 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
10400 | postinstall_cmds='base_file=`basename \${file}`~ | ||
10401 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
10402 | dldir=$destdir/`dirname \$dlpath`~ | ||
10403 | test -d \$dldir || mkdir -p \$dldir~ | ||
10404 | $install_prog $dir/$dlname \$dldir/$dlname~ | ||
10405 | chmod a+x \$dldir/$dlname~ | ||
10406 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | ||
10407 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | ||
10408 | fi' | ||
10409 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
10410 | dlpath=$dir/\$dldll~ | ||
10411 | $RM \$dlpath' | ||
10412 | shlibpath_overrides_runpath=yes | ||
10413 | |||
10414 | case $host_os in | ||
10415 | cygwin*) | ||
10416 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
10417 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
10418 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
10419 | ;; | ||
10420 | mingw* | cegcc*) | ||
10421 | # MinGW DLLs use traditional 'lib' prefix | ||
10422 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
10423 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
10424 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
10425 | # It is most probably a Windows format PATH printed by | ||
10426 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
10427 | # path with ; separators, and with drive letters. We can handle the | ||
10428 | # drive letters (cygwin fileutils understands them), so leave them, | ||
10429 | # especially as we might pass files found there to a mingw objdump, | ||
10430 | # which wouldn't understand a cygwinified path. Ahh. | ||
10431 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
10432 | else | ||
10433 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
10434 | fi | ||
10435 | ;; | ||
10436 | pw32*) | ||
10437 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
10438 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
10439 | ;; | ||
10440 | esac | ||
10441 | ;; | ||
10442 | |||
10443 | *) | ||
10444 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
10445 | ;; | ||
10446 | esac | ||
10447 | dynamic_linker='Win32 ld.exe' | ||
10448 | # FIXME: first we should search . and the directory the executable is in | ||
10449 | shlibpath_var=PATH | ||
10450 | ;; | ||
10451 | |||
10452 | darwin* | rhapsody*) | ||
10453 | dynamic_linker="$host_os dyld" | ||
10454 | version_type=darwin | ||
10455 | need_lib_prefix=no | ||
10456 | need_version=no | ||
10457 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
10458 | soname_spec='${libname}${release}${major}$shared_ext' | ||
10459 | shlibpath_overrides_runpath=yes | ||
10460 | shlibpath_var=DYLD_LIBRARY_PATH | ||
10461 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | ||
10462 | |||
10463 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | ||
10464 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
10465 | ;; | ||
10466 | |||
10467 | dgux*) | ||
10468 | version_type=linux | ||
10469 | need_lib_prefix=no | ||
10470 | need_version=no | ||
10471 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
10472 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10473 | shlibpath_var=LD_LIBRARY_PATH | ||
10474 | ;; | ||
10475 | |||
10476 | freebsd1*) | ||
10477 | dynamic_linker=no | ||
10478 | ;; | ||
10479 | |||
10480 | freebsd* | dragonfly*) | ||
10481 | # DragonFly does not have aout. When/if they implement a new | ||
10482 | # versioning mechanism, adjust this. | ||
10483 | if test -x /usr/bin/objformat; then | ||
10484 | objformat=`/usr/bin/objformat` | ||
10485 | else | ||
10486 | case $host_os in | ||
10487 | freebsd[123]*) objformat=aout ;; | ||
10488 | *) objformat=elf ;; | ||
10489 | esac | ||
10490 | fi | ||
10491 | version_type=freebsd-$objformat | ||
10492 | case $version_type in | ||
10493 | freebsd-elf*) | ||
10494 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
10495 | need_version=no | ||
10496 | need_lib_prefix=no | ||
10497 | ;; | ||
10498 | freebsd-*) | ||
10499 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
10500 | need_version=yes | ||
10501 | ;; | ||
10502 | esac | ||
10503 | shlibpath_var=LD_LIBRARY_PATH | ||
10504 | case $host_os in | ||
10505 | freebsd2*) | ||
10506 | shlibpath_overrides_runpath=yes | ||
10507 | ;; | ||
10508 | freebsd3.[01]* | freebsdelf3.[01]*) | ||
10509 | shlibpath_overrides_runpath=yes | ||
10510 | hardcode_into_libs=yes | ||
10511 | ;; | ||
10512 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | ||
10513 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | ||
10514 | shlibpath_overrides_runpath=no | ||
10515 | hardcode_into_libs=yes | ||
10516 | ;; | ||
10517 | *) # from 4.6 on, and DragonFly | ||
10518 | shlibpath_overrides_runpath=yes | ||
10519 | hardcode_into_libs=yes | ||
10520 | ;; | ||
10521 | esac | ||
10522 | ;; | ||
10523 | |||
10524 | gnu*) | ||
10525 | version_type=linux | ||
10526 | need_lib_prefix=no | ||
10527 | need_version=no | ||
10528 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
10529 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10530 | shlibpath_var=LD_LIBRARY_PATH | ||
10531 | hardcode_into_libs=yes | ||
10532 | ;; | ||
10533 | |||
10534 | hpux9* | hpux10* | hpux11*) | ||
10535 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
10536 | # link against other versions. | ||
10537 | version_type=sunos | ||
10538 | need_lib_prefix=no | ||
10539 | need_version=no | ||
10540 | case $host_cpu in | ||
10541 | ia64*) | ||
10542 | shrext_cmds='.so' | ||
10543 | hardcode_into_libs=yes | ||
10544 | dynamic_linker="$host_os dld.so" | ||
10545 | shlibpath_var=LD_LIBRARY_PATH | ||
10546 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
10547 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10548 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10549 | if test "X$HPUX_IA64_MODE" = X32; then | ||
10550 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
10551 | else | ||
10552 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
10553 | fi | ||
10554 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
10555 | ;; | ||
10556 | hppa*64*) | ||
10557 | shrext_cmds='.sl' | ||
10558 | hardcode_into_libs=yes | ||
10559 | dynamic_linker="$host_os dld.sl" | ||
10560 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
10561 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
10562 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10563 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10564 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
10565 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
10566 | ;; | ||
10567 | *) | ||
10568 | shrext_cmds='.sl' | ||
10569 | dynamic_linker="$host_os dld.sl" | ||
10570 | shlibpath_var=SHLIB_PATH | ||
10571 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
10572 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10573 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10574 | ;; | ||
10575 | esac | ||
10576 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
10577 | postinstall_cmds='chmod 555 $lib' | ||
10578 | ;; | ||
10579 | |||
10580 | interix[3-9]*) | ||
10581 | version_type=linux | ||
10582 | need_lib_prefix=no | ||
10583 | need_version=no | ||
10584 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
10585 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10586 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
10587 | shlibpath_var=LD_LIBRARY_PATH | ||
10588 | shlibpath_overrides_runpath=no | ||
10589 | hardcode_into_libs=yes | ||
10590 | ;; | ||
10591 | |||
10592 | irix5* | irix6* | nonstopux*) | ||
10593 | case $host_os in | ||
10594 | nonstopux*) version_type=nonstopux ;; | ||
10595 | *) | ||
10596 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
10597 | version_type=linux | ||
10598 | else | ||
10599 | version_type=irix | ||
10600 | fi ;; | ||
10601 | esac | ||
10602 | need_lib_prefix=no | ||
10603 | need_version=no | ||
10604 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10605 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
10606 | case $host_os in | ||
10607 | irix5* | nonstopux*) | ||
10608 | libsuff= shlibsuff= | ||
10609 | ;; | ||
10610 | *) | ||
10611 | case $LD in # libtool.m4 will add one of these switches to LD | ||
10612 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
10613 | libsuff= shlibsuff= libmagic=32-bit;; | ||
10614 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
10615 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
10616 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
10617 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
10618 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
10619 | esac | ||
10620 | ;; | ||
10621 | esac | ||
10622 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
10623 | shlibpath_overrides_runpath=no | ||
10624 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
10625 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
10626 | hardcode_into_libs=yes | ||
10627 | ;; | ||
10628 | |||
10629 | # No shared lib support for Linux oldld, aout, or coff. | ||
10630 | linux*oldld* | linux*aout* | linux*coff*) | ||
10631 | dynamic_linker=no | ||
10632 | ;; | ||
10633 | |||
10634 | # This must be Linux ELF. | ||
10635 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
10636 | version_type=linux | ||
10637 | need_lib_prefix=no | ||
10638 | need_version=no | ||
10639 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10640 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10641 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
10642 | shlibpath_var=LD_LIBRARY_PATH | ||
10643 | shlibpath_overrides_runpath=no | ||
10644 | # Some binutils ld are patched to set DT_RUNPATH | ||
10645 | save_LDFLAGS=$LDFLAGS | ||
10646 | save_libdir=$libdir | ||
10647 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | ||
10648 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | ||
10649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10650 | /* end confdefs.h. */ | ||
10651 | |||
10652 | int | ||
10653 | main () | ||
10654 | { | ||
10655 | |||
10656 | ; | ||
10657 | return 0; | ||
10658 | } | ||
10659 | _ACEOF | ||
10660 | if ac_fn_c_try_link "$LINENO"; then : | ||
10661 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | ||
10662 | shlibpath_overrides_runpath=yes | ||
10663 | fi | ||
10664 | fi | ||
10665 | rm -f core conftest.err conftest.$ac_objext \ | ||
10666 | conftest$ac_exeext conftest.$ac_ext | ||
10667 | LDFLAGS=$save_LDFLAGS | ||
10668 | libdir=$save_libdir | ||
10669 | |||
10670 | # This implies no fast_install, which is unacceptable. | ||
10671 | # Some rework will be needed to allow for fast_install | ||
10672 | # before this can be enabled. | ||
10673 | hardcode_into_libs=yes | ||
10674 | |||
10675 | # Append ld.so.conf contents to the search path | ||
10676 | if test -f /etc/ld.so.conf; then | ||
10677 | 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' ' '` | ||
10678 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
10679 | fi | ||
10680 | |||
10681 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
10682 | # powerpc, because MkLinux only supported shared libraries with the | ||
10683 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
10684 | # most powerpc-linux boxes support dynamic linking these days and | ||
10685 | # people can always --disable-shared, the test was removed, and we | ||
10686 | # assume the GNU/Linux dynamic linker is in use. | ||
10687 | dynamic_linker='GNU/Linux ld.so' | ||
10688 | ;; | ||
10689 | |||
10690 | netbsdelf*-gnu) | ||
10691 | version_type=linux | ||
10692 | need_lib_prefix=no | ||
10693 | need_version=no | ||
10694 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
10695 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10696 | shlibpath_var=LD_LIBRARY_PATH | ||
10697 | shlibpath_overrides_runpath=no | ||
10698 | hardcode_into_libs=yes | ||
10699 | dynamic_linker='NetBSD ld.elf_so' | ||
10700 | ;; | ||
10701 | |||
10702 | netbsd*) | ||
10703 | version_type=sunos | ||
10704 | need_lib_prefix=no | ||
10705 | need_version=no | ||
10706 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
10707 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
10708 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
10709 | dynamic_linker='NetBSD (a.out) ld.so' | ||
10710 | else | ||
10711 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
10712 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10713 | dynamic_linker='NetBSD ld.elf_so' | ||
10714 | fi | ||
10715 | shlibpath_var=LD_LIBRARY_PATH | ||
10716 | shlibpath_overrides_runpath=yes | ||
10717 | hardcode_into_libs=yes | ||
10718 | ;; | ||
10719 | |||
10720 | newsos6) | ||
10721 | version_type=linux | ||
10722 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10723 | shlibpath_var=LD_LIBRARY_PATH | ||
10724 | shlibpath_overrides_runpath=yes | ||
10725 | ;; | ||
10726 | |||
10727 | *nto* | *qnx*) | ||
10728 | version_type=qnx | ||
10729 | need_lib_prefix=no | ||
10730 | need_version=no | ||
10731 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10732 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10733 | shlibpath_var=LD_LIBRARY_PATH | ||
10734 | shlibpath_overrides_runpath=no | ||
10735 | hardcode_into_libs=yes | ||
10736 | dynamic_linker='ldqnx.so' | ||
10737 | ;; | ||
10738 | |||
10739 | openbsd*) | ||
10740 | version_type=sunos | ||
10741 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
10742 | need_lib_prefix=no | ||
10743 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | ||
10744 | case $host_os in | ||
10745 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | ||
10746 | *) need_version=no ;; | ||
10747 | esac | ||
10748 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
10749 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
10750 | shlibpath_var=LD_LIBRARY_PATH | ||
10751 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
10752 | case $host_os in | ||
10753 | openbsd2.[89] | openbsd2.[89].*) | ||
10754 | shlibpath_overrides_runpath=no | ||
10755 | ;; | ||
10756 | *) | ||
10757 | shlibpath_overrides_runpath=yes | ||
10758 | ;; | ||
10759 | esac | ||
10760 | else | ||
10761 | shlibpath_overrides_runpath=yes | ||
10762 | fi | ||
10763 | ;; | ||
10764 | |||
10765 | os2*) | ||
10766 | libname_spec='$name' | ||
10767 | shrext_cmds=".dll" | ||
10768 | need_lib_prefix=no | ||
10769 | library_names_spec='$libname${shared_ext} $libname.a' | ||
10770 | dynamic_linker='OS/2 ld.exe' | ||
10771 | shlibpath_var=LIBPATH | ||
10772 | ;; | ||
10773 | |||
10774 | osf3* | osf4* | osf5*) | ||
10775 | version_type=osf | ||
10776 | need_lib_prefix=no | ||
10777 | need_version=no | ||
10778 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10779 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10780 | shlibpath_var=LD_LIBRARY_PATH | ||
10781 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
10782 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
10783 | ;; | ||
10784 | |||
10785 | rdos*) | ||
10786 | dynamic_linker=no | ||
10787 | ;; | ||
10788 | |||
10789 | solaris*) | ||
10790 | version_type=linux | ||
10791 | need_lib_prefix=no | ||
10792 | need_version=no | ||
10793 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10794 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10795 | shlibpath_var=LD_LIBRARY_PATH | ||
10796 | shlibpath_overrides_runpath=yes | ||
10797 | hardcode_into_libs=yes | ||
10798 | # ldd complains unless libraries are executable | ||
10799 | postinstall_cmds='chmod +x $lib' | ||
10800 | ;; | ||
10801 | |||
10802 | sunos4*) | ||
10803 | version_type=sunos | ||
10804 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
10805 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
10806 | shlibpath_var=LD_LIBRARY_PATH | ||
10807 | shlibpath_overrides_runpath=yes | ||
10808 | if test "$with_gnu_ld" = yes; then | ||
10809 | need_lib_prefix=no | ||
10810 | fi | ||
10811 | need_version=yes | ||
10812 | ;; | ||
10813 | |||
10814 | sysv4 | sysv4.3*) | ||
10815 | version_type=linux | ||
10816 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10817 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10818 | shlibpath_var=LD_LIBRARY_PATH | ||
10819 | case $host_vendor in | ||
10820 | sni) | ||
10821 | shlibpath_overrides_runpath=no | ||
10822 | need_lib_prefix=no | ||
10823 | runpath_var=LD_RUN_PATH | ||
10824 | ;; | ||
10825 | siemens) | ||
10826 | need_lib_prefix=no | ||
10827 | ;; | ||
10828 | motorola) | ||
10829 | need_lib_prefix=no | ||
10830 | need_version=no | ||
10831 | shlibpath_overrides_runpath=no | ||
10832 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
10833 | ;; | ||
10834 | esac | ||
10835 | ;; | ||
10836 | |||
10837 | sysv4*MP*) | ||
10838 | if test -d /usr/nec ;then | ||
10839 | version_type=linux | ||
10840 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
10841 | soname_spec='$libname${shared_ext}.$major' | ||
10842 | shlibpath_var=LD_LIBRARY_PATH | ||
10843 | fi | ||
10844 | ;; | ||
10845 | |||
10846 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
10847 | version_type=freebsd-elf | ||
10848 | need_lib_prefix=no | ||
10849 | need_version=no | ||
10850 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
10851 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10852 | shlibpath_var=LD_LIBRARY_PATH | ||
10853 | shlibpath_overrides_runpath=yes | ||
10854 | hardcode_into_libs=yes | ||
10855 | if test "$with_gnu_ld" = yes; then | ||
10856 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
10857 | else | ||
10858 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
10859 | case $host_os in | ||
10860 | sco3.2v5*) | ||
10861 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
10862 | ;; | ||
10863 | esac | ||
10864 | fi | ||
10865 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
10866 | ;; | ||
10867 | |||
10868 | tpf*) | ||
10869 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | ||
10870 | version_type=linux | ||
10871 | need_lib_prefix=no | ||
10872 | need_version=no | ||
10873 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10874 | shlibpath_var=LD_LIBRARY_PATH | ||
10875 | shlibpath_overrides_runpath=no | ||
10876 | hardcode_into_libs=yes | ||
10877 | ;; | ||
10878 | |||
10879 | uts4*) | ||
10880 | version_type=linux | ||
10881 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10882 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10883 | shlibpath_var=LD_LIBRARY_PATH | ||
10884 | ;; | ||
10885 | |||
10886 | *) | ||
10887 | dynamic_linker=no | ||
10888 | ;; | ||
10889 | esac | ||
10890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | ||
10891 | $as_echo "$dynamic_linker" >&6; } | ||
10892 | test "$dynamic_linker" = no && can_build_shared=no | ||
10893 | |||
10894 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
10895 | if test "$GCC" = yes; then | ||
10896 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
10897 | fi | ||
10898 | |||
10899 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | ||
10900 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | ||
10901 | fi | ||
10902 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | ||
10903 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | ||
10904 | fi | ||
10905 | |||
10906 | |||
10907 | |||
10908 | |||
10909 | |||
10910 | |||
10911 | |||
10912 | |||
10913 | |||
10914 | |||
10915 | |||
10916 | |||
10917 | |||
10918 | |||
10919 | |||
10920 | |||
10921 | |||
10922 | |||
10923 | |||
10924 | |||
10925 | |||
10926 | |||
10927 | |||
10928 | |||
10929 | |||
10930 | |||
10931 | |||
10932 | |||
10933 | |||
10934 | |||
10935 | |||
10936 | |||
10937 | |||
10938 | |||
10939 | |||
10940 | |||
10941 | |||
10942 | |||
10943 | |||
10944 | |||
10945 | |||
10946 | |||
10947 | |||
10948 | |||
10949 | |||
10950 | |||
10951 | |||
10952 | |||
10953 | |||
10954 | |||
10955 | |||
10956 | |||
10957 | |||
10958 | |||
10959 | |||
10960 | |||
10961 | |||
10962 | |||
10963 | |||
10964 | |||
10965 | |||
10966 | |||
10967 | |||
10968 | |||
10969 | |||
10970 | |||
10971 | |||
10972 | |||
10973 | |||
10974 | |||
10975 | |||
10976 | |||
10977 | |||
10978 | |||
10979 | |||
10980 | |||
10981 | |||
10982 | |||
10983 | |||
10984 | |||
10985 | |||
10986 | |||
10987 | |||
10988 | |||
10989 | |||
10990 | |||
10991 | |||
10992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | ||
10993 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | ||
10994 | hardcode_action= | ||
10995 | if test -n "$hardcode_libdir_flag_spec" || | ||
10996 | test -n "$runpath_var" || | ||
10997 | test "X$hardcode_automatic" = "Xyes" ; then | ||
10998 | |||
10999 | # We can hardcode non-existent directories. | ||
11000 | if test "$hardcode_direct" != no && | ||
11001 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
11002 | # have to relink, otherwise we might link with an installed library | ||
11003 | # when we should be linking with a yet-to-be-installed one | ||
11004 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | ||
11005 | test "$hardcode_minus_L" != no; then | ||
11006 | # Linking always hardcodes the temporary library directory. | ||
11007 | hardcode_action=relink | ||
11008 | else | ||
11009 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
11010 | hardcode_action=immediate | ||
11011 | fi | ||
11012 | else | ||
11013 | # We cannot hardcode anything, or else we can only hardcode existing | ||
11014 | # directories. | ||
11015 | hardcode_action=unsupported | ||
11016 | fi | ||
11017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | ||
11018 | $as_echo "$hardcode_action" >&6; } | ||
11019 | |||
11020 | if test "$hardcode_action" = relink || | ||
11021 | test "$inherit_rpath" = yes; then | ||
11022 | # Fast installation is not supported | ||
11023 | enable_fast_install=no | ||
11024 | elif test "$shlibpath_overrides_runpath" = yes || | ||
11025 | test "$enable_shared" = no; then | ||
11026 | # Fast installation is not necessary | ||
11027 | enable_fast_install=needless | ||
11028 | fi | ||
11029 | |||
11030 | |||
11031 | |||
11032 | |||
11033 | |||
11034 | |||
11035 | if test "x$enable_dlopen" != xyes; then | ||
11036 | enable_dlopen=unknown | ||
11037 | enable_dlopen_self=unknown | ||
11038 | enable_dlopen_self_static=unknown | ||
11039 | else | ||
11040 | lt_cv_dlopen=no | ||
11041 | lt_cv_dlopen_libs= | ||
11042 | |||
11043 | case $host_os in | ||
11044 | beos*) | ||
11045 | lt_cv_dlopen="load_add_on" | ||
11046 | lt_cv_dlopen_libs= | ||
11047 | lt_cv_dlopen_self=yes | ||
11048 | ;; | ||
11049 | |||
11050 | mingw* | pw32* | cegcc*) | ||
11051 | lt_cv_dlopen="LoadLibrary" | ||
11052 | lt_cv_dlopen_libs= | ||
11053 | ;; | ||
11054 | |||
11055 | cygwin*) | ||
11056 | lt_cv_dlopen="dlopen" | ||
11057 | lt_cv_dlopen_libs= | ||
11058 | ;; | ||
11059 | |||
11060 | darwin*) | ||
11061 | # if libdl is installed we need to link against it | ||
11062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | ||
11063 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
11064 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | ||
11065 | $as_echo_n "(cached) " >&6 | ||
11066 | else | ||
11067 | ac_check_lib_save_LIBS=$LIBS | ||
11068 | LIBS="-ldl $LIBS" | ||
11069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11070 | /* end confdefs.h. */ | ||
11071 | |||
11072 | /* Override any GCC internal prototype to avoid an error. | ||
11073 | Use char because int might match the return type of a GCC | ||
11074 | builtin and then its argument prototype would still apply. */ | ||
11075 | #ifdef __cplusplus | ||
11076 | extern "C" | ||
11077 | #endif | ||
11078 | char dlopen (); | ||
11079 | int | ||
11080 | main () | ||
11081 | { | ||
11082 | return dlopen (); | ||
11083 | ; | ||
11084 | return 0; | ||
11085 | } | ||
11086 | _ACEOF | ||
11087 | if ac_fn_c_try_link "$LINENO"; then : | ||
11088 | ac_cv_lib_dl_dlopen=yes | ||
11089 | else | ||
11090 | ac_cv_lib_dl_dlopen=no | ||
11091 | fi | ||
11092 | rm -f core conftest.err conftest.$ac_objext \ | ||
11093 | conftest$ac_exeext conftest.$ac_ext | ||
11094 | LIBS=$ac_check_lib_save_LIBS | ||
11095 | fi | ||
11096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | ||
11097 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
11098 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | ||
11099 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
11100 | else | ||
11101 | |||
11102 | lt_cv_dlopen="dyld" | ||
11103 | lt_cv_dlopen_libs= | ||
11104 | lt_cv_dlopen_self=yes | ||
11105 | |||
11106 | fi | ||
11107 | |||
11108 | ;; | ||
11109 | |||
11110 | *) | ||
11111 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | ||
11112 | if test "x$ac_cv_func_shl_load" = x""yes; then : | ||
11113 | lt_cv_dlopen="shl_load" | ||
11114 | else | ||
11115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | ||
11116 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | ||
11117 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | ||
11118 | $as_echo_n "(cached) " >&6 | ||
11119 | else | ||
11120 | ac_check_lib_save_LIBS=$LIBS | ||
11121 | LIBS="-ldld $LIBS" | ||
11122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11123 | /* end confdefs.h. */ | ||
11124 | |||
11125 | /* Override any GCC internal prototype to avoid an error. | ||
11126 | Use char because int might match the return type of a GCC | ||
11127 | builtin and then its argument prototype would still apply. */ | ||
11128 | #ifdef __cplusplus | ||
11129 | extern "C" | ||
11130 | #endif | ||
11131 | char shl_load (); | ||
11132 | int | ||
11133 | main () | ||
11134 | { | ||
11135 | return shl_load (); | ||
11136 | ; | ||
11137 | return 0; | ||
11138 | } | ||
11139 | _ACEOF | ||
11140 | if ac_fn_c_try_link "$LINENO"; then : | ||
11141 | ac_cv_lib_dld_shl_load=yes | ||
11142 | else | ||
11143 | ac_cv_lib_dld_shl_load=no | ||
11144 | fi | ||
11145 | rm -f core conftest.err conftest.$ac_objext \ | ||
11146 | conftest$ac_exeext conftest.$ac_ext | ||
11147 | LIBS=$ac_check_lib_save_LIBS | ||
11148 | fi | ||
11149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | ||
11150 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | ||
11151 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | ||
11152 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | ||
11153 | else | ||
11154 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | ||
11155 | if test "x$ac_cv_func_dlopen" = x""yes; then : | ||
11156 | lt_cv_dlopen="dlopen" | ||
11157 | else | ||
11158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | ||
11159 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
11160 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | ||
11161 | $as_echo_n "(cached) " >&6 | ||
11162 | else | ||
11163 | ac_check_lib_save_LIBS=$LIBS | ||
11164 | LIBS="-ldl $LIBS" | ||
11165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11166 | /* end confdefs.h. */ | ||
11167 | |||
11168 | /* Override any GCC internal prototype to avoid an error. | ||
11169 | Use char because int might match the return type of a GCC | ||
11170 | builtin and then its argument prototype would still apply. */ | ||
11171 | #ifdef __cplusplus | ||
11172 | extern "C" | ||
11173 | #endif | ||
11174 | char dlopen (); | ||
11175 | int | ||
11176 | main () | ||
11177 | { | ||
11178 | return dlopen (); | ||
11179 | ; | ||
11180 | return 0; | ||
11181 | } | ||
11182 | _ACEOF | ||
11183 | if ac_fn_c_try_link "$LINENO"; then : | ||
11184 | ac_cv_lib_dl_dlopen=yes | ||
11185 | else | ||
11186 | ac_cv_lib_dl_dlopen=no | ||
11187 | fi | ||
11188 | rm -f core conftest.err conftest.$ac_objext \ | ||
11189 | conftest$ac_exeext conftest.$ac_ext | ||
11190 | LIBS=$ac_check_lib_save_LIBS | ||
11191 | fi | ||
11192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | ||
11193 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
11194 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | ||
11195 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
11196 | else | ||
11197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | ||
11198 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | ||
11199 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | ||
11200 | $as_echo_n "(cached) " >&6 | ||
11201 | else | ||
11202 | ac_check_lib_save_LIBS=$LIBS | ||
11203 | LIBS="-lsvld $LIBS" | ||
11204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11205 | /* end confdefs.h. */ | ||
11206 | |||
11207 | /* Override any GCC internal prototype to avoid an error. | ||
11208 | Use char because int might match the return type of a GCC | ||
11209 | builtin and then its argument prototype would still apply. */ | ||
11210 | #ifdef __cplusplus | ||
11211 | extern "C" | ||
11212 | #endif | ||
11213 | char dlopen (); | ||
11214 | int | ||
11215 | main () | ||
11216 | { | ||
11217 | return dlopen (); | ||
11218 | ; | ||
11219 | return 0; | ||
11220 | } | ||
11221 | _ACEOF | ||
11222 | if ac_fn_c_try_link "$LINENO"; then : | ||
11223 | ac_cv_lib_svld_dlopen=yes | ||
11224 | else | ||
11225 | ac_cv_lib_svld_dlopen=no | ||
11226 | fi | ||
11227 | rm -f core conftest.err conftest.$ac_objext \ | ||
11228 | conftest$ac_exeext conftest.$ac_ext | ||
11229 | LIBS=$ac_check_lib_save_LIBS | ||
11230 | fi | ||
11231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | ||
11232 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | ||
11233 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | ||
11234 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | ||
11235 | else | ||
11236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | ||
11237 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | ||
11238 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | ||
11239 | $as_echo_n "(cached) " >&6 | ||
11240 | else | ||
11241 | ac_check_lib_save_LIBS=$LIBS | ||
11242 | LIBS="-ldld $LIBS" | ||
11243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11244 | /* end confdefs.h. */ | ||
11245 | |||
11246 | /* Override any GCC internal prototype to avoid an error. | ||
11247 | Use char because int might match the return type of a GCC | ||
11248 | builtin and then its argument prototype would still apply. */ | ||
11249 | #ifdef __cplusplus | ||
11250 | extern "C" | ||
11251 | #endif | ||
11252 | char dld_link (); | ||
11253 | int | ||
11254 | main () | ||
11255 | { | ||
11256 | return dld_link (); | ||
11257 | ; | ||
11258 | return 0; | ||
11259 | } | ||
11260 | _ACEOF | ||
11261 | if ac_fn_c_try_link "$LINENO"; then : | ||
11262 | ac_cv_lib_dld_dld_link=yes | ||
11263 | else | ||
11264 | ac_cv_lib_dld_dld_link=no | ||
11265 | fi | ||
11266 | rm -f core conftest.err conftest.$ac_objext \ | ||
11267 | conftest$ac_exeext conftest.$ac_ext | ||
11268 | LIBS=$ac_check_lib_save_LIBS | ||
11269 | fi | ||
11270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | ||
11271 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | ||
11272 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | ||
11273 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | ||
11274 | fi | ||
11275 | |||
11276 | |||
11277 | fi | ||
11278 | |||
11279 | |||
11280 | fi | ||
11281 | |||
11282 | |||
11283 | fi | ||
11284 | |||
11285 | |||
11286 | fi | ||
11287 | |||
11288 | |||
11289 | fi | ||
11290 | |||
11291 | ;; | ||
11292 | esac | ||
11293 | |||
11294 | if test "x$lt_cv_dlopen" != xno; then | ||
11295 | enable_dlopen=yes | ||
11296 | else | ||
11297 | enable_dlopen=no | ||
11298 | fi | ||
11299 | |||
11300 | case $lt_cv_dlopen in | ||
11301 | dlopen) | ||
11302 | save_CPPFLAGS="$CPPFLAGS" | ||
11303 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | ||
11304 | |||
11305 | save_LDFLAGS="$LDFLAGS" | ||
11306 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | ||
11307 | |||
11308 | save_LIBS="$LIBS" | ||
11309 | LIBS="$lt_cv_dlopen_libs $LIBS" | ||
11310 | |||
11311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | ||
11312 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | ||
11313 | if test "${lt_cv_dlopen_self+set}" = set; then : | ||
11314 | $as_echo_n "(cached) " >&6 | ||
11315 | else | ||
11316 | if test "$cross_compiling" = yes; then : | ||
11317 | lt_cv_dlopen_self=cross | ||
11318 | else | ||
11319 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
11320 | lt_status=$lt_dlunknown | ||
11321 | cat > conftest.$ac_ext <<_LT_EOF | ||
11322 | #line 11322 "configure" | ||
11323 | #include "confdefs.h" | ||
11324 | |||
11325 | #if HAVE_DLFCN_H | ||
11326 | #include <dlfcn.h> | ||
11327 | #endif | ||
11328 | |||
11329 | #include <stdio.h> | ||
11330 | |||
11331 | #ifdef RTLD_GLOBAL | ||
11332 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
11333 | #else | ||
11334 | # ifdef DL_GLOBAL | ||
11335 | # define LT_DLGLOBAL DL_GLOBAL | ||
11336 | # else | ||
11337 | # define LT_DLGLOBAL 0 | ||
11338 | # endif | ||
11339 | #endif | ||
11340 | |||
11341 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
11342 | find out it does not work in some platform. */ | ||
11343 | #ifndef LT_DLLAZY_OR_NOW | ||
11344 | # ifdef RTLD_LAZY | ||
11345 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
11346 | # else | ||
11347 | # ifdef DL_LAZY | ||
11348 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
11349 | # else | ||
11350 | # ifdef RTLD_NOW | ||
11351 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
11352 | # else | ||
11353 | # ifdef DL_NOW | ||
11354 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
11355 | # else | ||
11356 | # define LT_DLLAZY_OR_NOW 0 | ||
11357 | # endif | ||
11358 | # endif | ||
11359 | # endif | ||
11360 | # endif | ||
11361 | #endif | ||
11362 | |||
11363 | void fnord() { int i=42;} | ||
11364 | int main () | ||
11365 | { | ||
11366 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
11367 | int status = $lt_dlunknown; | ||
11368 | |||
11369 | if (self) | ||
11370 | { | ||
11371 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
11372 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
11373 | /* dlclose (self); */ | ||
11374 | } | ||
11375 | else | ||
11376 | puts (dlerror ()); | ||
11377 | |||
11378 | return status; | ||
11379 | } | ||
11380 | _LT_EOF | ||
11381 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
11382 | (eval $ac_link) 2>&5 | ||
11383 | ac_status=$? | ||
11384 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
11385 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
11386 | (./conftest; exit; ) >&5 2>/dev/null | ||
11387 | lt_status=$? | ||
11388 | case x$lt_status in | ||
11389 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | ||
11390 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | ||
11391 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | ||
11392 | esac | ||
11393 | else : | ||
11394 | # compilation failed | ||
11395 | lt_cv_dlopen_self=no | ||
11396 | fi | ||
11397 | fi | ||
11398 | rm -fr conftest* | ||
11399 | |||
11400 | |||
11401 | fi | ||
11402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | ||
11403 | $as_echo "$lt_cv_dlopen_self" >&6; } | ||
11404 | |||
11405 | if test "x$lt_cv_dlopen_self" = xyes; then | ||
11406 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | ||
11407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | ||
11408 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | ||
11409 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | ||
11410 | $as_echo_n "(cached) " >&6 | ||
11411 | else | ||
11412 | if test "$cross_compiling" = yes; then : | ||
11413 | lt_cv_dlopen_self_static=cross | ||
11414 | else | ||
11415 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
11416 | lt_status=$lt_dlunknown | ||
11417 | cat > conftest.$ac_ext <<_LT_EOF | ||
11418 | #line 11418 "configure" | ||
11419 | #include "confdefs.h" | ||
11420 | |||
11421 | #if HAVE_DLFCN_H | ||
11422 | #include <dlfcn.h> | ||
11423 | #endif | ||
11424 | |||
11425 | #include <stdio.h> | ||
11426 | |||
11427 | #ifdef RTLD_GLOBAL | ||
11428 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
11429 | #else | ||
11430 | # ifdef DL_GLOBAL | ||
11431 | # define LT_DLGLOBAL DL_GLOBAL | ||
11432 | # else | ||
11433 | # define LT_DLGLOBAL 0 | ||
11434 | # endif | ||
11435 | #endif | ||
11436 | |||
11437 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
11438 | find out it does not work in some platform. */ | ||
11439 | #ifndef LT_DLLAZY_OR_NOW | ||
11440 | # ifdef RTLD_LAZY | ||
11441 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
11442 | # else | ||
11443 | # ifdef DL_LAZY | ||
11444 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
11445 | # else | ||
11446 | # ifdef RTLD_NOW | ||
11447 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
11448 | # else | ||
11449 | # ifdef DL_NOW | ||
11450 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
11451 | # else | ||
11452 | # define LT_DLLAZY_OR_NOW 0 | ||
11453 | # endif | ||
11454 | # endif | ||
11455 | # endif | ||
11456 | # endif | ||
11457 | #endif | ||
11458 | |||
11459 | void fnord() { int i=42;} | ||
11460 | int main () | ||
11461 | { | ||
11462 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
11463 | int status = $lt_dlunknown; | ||
11464 | |||
11465 | if (self) | ||
11466 | { | ||
11467 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
11468 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
11469 | /* dlclose (self); */ | ||
11470 | } | ||
11471 | else | ||
11472 | puts (dlerror ()); | ||
11473 | |||
11474 | return status; | ||
11475 | } | ||
11476 | _LT_EOF | ||
11477 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
11478 | (eval $ac_link) 2>&5 | ||
11479 | ac_status=$? | ||
11480 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
11481 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
11482 | (./conftest; exit; ) >&5 2>/dev/null | ||
11483 | lt_status=$? | ||
11484 | case x$lt_status in | ||
11485 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | ||
11486 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | ||
11487 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | ||
11488 | esac | ||
11489 | else : | ||
11490 | # compilation failed | ||
11491 | lt_cv_dlopen_self_static=no | ||
11492 | fi | ||
11493 | fi | ||
11494 | rm -fr conftest* | ||
11495 | |||
11496 | |||
11497 | fi | ||
11498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | ||
11499 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | ||
11500 | fi | ||
11501 | |||
11502 | CPPFLAGS="$save_CPPFLAGS" | ||
11503 | LDFLAGS="$save_LDFLAGS" | ||
11504 | LIBS="$save_LIBS" | ||
11505 | ;; | ||
11506 | esac | ||
11507 | |||
11508 | case $lt_cv_dlopen_self in | ||
11509 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | ||
11510 | *) enable_dlopen_self=unknown ;; | ||
11511 | esac | ||
11512 | |||
11513 | case $lt_cv_dlopen_self_static in | ||
11514 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | ||
11515 | *) enable_dlopen_self_static=unknown ;; | ||
11516 | esac | ||
11517 | fi | ||
11518 | |||
11519 | |||
11520 | |||
11521 | |||
11522 | |||
11523 | |||
11524 | |||
11525 | |||
11526 | |||
11527 | |||
11528 | |||
11529 | |||
11530 | |||
11531 | |||
11532 | |||
11533 | |||
11534 | |||
11535 | striplib= | ||
11536 | old_striplib= | ||
11537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | ||
11538 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | ||
11539 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | ||
11540 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
11541 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
11542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11543 | $as_echo "yes" >&6; } | ||
11544 | else | ||
11545 | # FIXME - insert some real tests, host_os isn't really good enough | ||
11546 | case $host_os in | ||
11547 | darwin*) | ||
11548 | if test -n "$STRIP" ; then | ||
11549 | striplib="$STRIP -x" | ||
11550 | old_striplib="$STRIP -S" | ||
11551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11552 | $as_echo "yes" >&6; } | ||
11553 | else | ||
11554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11555 | $as_echo "no" >&6; } | ||
11556 | fi | ||
11557 | ;; | ||
11558 | *) | ||
11559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11560 | $as_echo "no" >&6; } | ||
11561 | ;; | ||
11562 | esac | ||
11563 | fi | ||
11564 | |||
11565 | |||
11566 | |||
11567 | |||
11568 | |||
11569 | |||
11570 | |||
11571 | |||
11572 | |||
11573 | |||
11574 | |||
11575 | |||
11576 | # Report which library types will actually be built | ||
11577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | ||
11578 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | ||
11579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | ||
11580 | $as_echo "$can_build_shared" >&6; } | ||
11581 | |||
11582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | ||
11583 | $as_echo_n "checking whether to build shared libraries... " >&6; } | ||
11584 | test "$can_build_shared" = "no" && enable_shared=no | ||
11585 | |||
11586 | # On AIX, shared libraries and static libraries use the same namespace, and | ||
11587 | # are all built from PIC. | ||
11588 | case $host_os in | ||
11589 | aix3*) | ||
11590 | test "$enable_shared" = yes && enable_static=no | ||
11591 | if test -n "$RANLIB"; then | ||
11592 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | ||
11593 | postinstall_cmds='$RANLIB $lib' | ||
11594 | fi | ||
11595 | ;; | ||
11596 | |||
11597 | aix[4-9]*) | ||
11598 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | ||
11599 | test "$enable_shared" = yes && enable_static=no | ||
11600 | fi | ||
11601 | ;; | ||
11602 | esac | ||
11603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | ||
11604 | $as_echo "$enable_shared" >&6; } | ||
11605 | |||
11606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | ||
11607 | $as_echo_n "checking whether to build static libraries... " >&6; } | ||
11608 | # Make sure either enable_shared or enable_static is yes. | ||
11609 | test "$enable_shared" = yes || enable_static=yes | ||
11610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | ||
11611 | $as_echo "$enable_static" >&6; } | ||
11612 | |||
11613 | |||
11614 | |||
11615 | |||
11616 | fi | ||
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 | CC="$lt_save_CC" | ||
11624 | |||
11625 | |||
11626 | |||
11627 | |||
11628 | |||
11629 | |||
11630 | |||
11631 | |||
11632 | |||
11633 | |||
11634 | |||
11635 | |||
11636 | |||
11637 | ac_config_commands="$ac_config_commands libtool" | ||
11638 | |||
11639 | |||
11640 | |||
11641 | |||
11642 | # Only expand once: | ||
11643 | |||
11644 | |||
11645 | |||
11646 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
11647 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
11648 | |||
11649 | |||
11650 | |||
11651 | cat >>confdefs.h <<_ACEOF | ||
11652 | #define VMAJ 1 | ||
11653 | _ACEOF | ||
11654 | |||
11655 | |||
11656 | cat >>confdefs.h <<_ACEOF | ||
11657 | #define VMIN 2 | ||
11658 | _ACEOF | ||
11659 | |||
11660 | |||
11661 | cat >>confdefs.h <<_ACEOF | ||
11662 | #define VMIC 0 | ||
11663 | _ACEOF | ||
11664 | |||
11665 | |||
11666 | cat >>confdefs.h <<_ACEOF | ||
11667 | #define VREV 0 | ||
11668 | _ACEOF | ||
11669 | |||
11670 | version_info="3:0:2" | ||
11671 | release_info="" | ||
11672 | |||
11673 | |||
11674 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
11675 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
11676 | VMAJ=1 | ||
11677 | |||
11678 | |||
11679 | |||
11680 | ### Needed information | ||
11681 | |||
11682 | |||
11683 | |||
11684 | |||
11685 | requirement_eina="" | ||
11686 | |||
11687 | case "$host_os" in | ||
11688 | mingw32ce*) | ||
11689 | MODULE_ARCH="$host_os-$host_cpu" | ||
11690 | ;; | ||
11691 | *) | ||
11692 | MODULE_ARCH="$host_os-$host_cpu-1.2.0" | ||
11693 | ;; | ||
11694 | esac | ||
11695 | |||
11696 | |||
11697 | cat >>confdefs.h <<_ACEOF | ||
11698 | #define MODULE_ARCH "${MODULE_ARCH}" | ||
11699 | _ACEOF | ||
11700 | |||
11701 | |||
11702 | case "$host_os" in | ||
11703 | mingw*) | ||
11704 | MODULE_EXT=".dll" | ||
11705 | ;; | ||
11706 | *) | ||
11707 | MODULE_EXT=".so" | ||
11708 | ;; | ||
11709 | esac | ||
11710 | |||
11711 | |||
11712 | cat >>confdefs.h <<_ACEOF | ||
11713 | #define SHARED_LIB_SUFFIX "${MODULE_EXT}" | ||
11714 | _ACEOF | ||
11715 | |||
11716 | |||
11717 | |||
11718 | |||
11719 | # Check whether --enable-cpu-mmx was given. | ||
11720 | if test "${enable_cpu_mmx+set}" = set; then : | ||
11721 | enableval=$enable_cpu_mmx; | ||
11722 | if test "x${enableval}" = "xyes" ; then | ||
11723 | _efl_enable_cpu_mmx="yes" | ||
11724 | else | ||
11725 | _efl_enable_cpu_mmx="no" | ||
11726 | fi | ||
11727 | |||
11728 | else | ||
11729 | _efl_enable_cpu_mmx="yes" | ||
11730 | fi | ||
11731 | |||
11732 | |||
11733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build mmx code" >&5 | ||
11734 | $as_echo_n "checking whether to build mmx code... " >&6; } | ||
11735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_cpu_mmx}" >&5 | ||
11736 | $as_echo "${_efl_enable_cpu_mmx}" >&6; } | ||
11737 | |||
11738 | |||
11739 | _efl_build_cpu_mmx="no" | ||
11740 | if test "x${_efl_enable_cpu_mmx}" = "xyes" ; then | ||
11741 | case $host_cpu in | ||
11742 | i*86 | x86_64 | amd64) | ||
11743 | _efl_build_cpu_mmx="yes" | ||
11744 | ;; | ||
11745 | esac | ||
11746 | fi | ||
11747 | |||
11748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmx instructions set is available" >&5 | ||
11749 | $as_echo_n "checking whether mmx instructions set is available... " >&6; } | ||
11750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_build_cpu_mmx}" >&5 | ||
11751 | $as_echo "${_efl_build_cpu_mmx}" >&6; } | ||
11752 | |||
11753 | |||
11754 | if test "x${_efl_build_cpu_mmx}" = "xyes" ; then | ||
11755 | SAVE_CFLAGS=${CFLAGS} | ||
11756 | CFLAGS="-mmmx" | ||
11757 | ac_ext=c | ||
11758 | ac_cpp='$CPP $CPPFLAGS' | ||
11759 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
11760 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
11761 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
11762 | |||
11763 | |||
11764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11765 | /* end confdefs.h. */ | ||
11766 | |||
11767 | int | ||
11768 | main () | ||
11769 | { | ||
11770 | |||
11771 | ; | ||
11772 | return 0; | ||
11773 | } | ||
11774 | _ACEOF | ||
11775 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11776 | |||
11777 | have_linker_option="yes" | ||
11778 | EFL_SIMD_FLAGS="${EFL_SIMD_FLAGS} -mmmx" | ||
11779 | else | ||
11780 | have_linker_option="no" | ||
11781 | fi | ||
11782 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11783 | |||
11784 | ac_ext=c | ||
11785 | ac_cpp='$CPP $CPPFLAGS' | ||
11786 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
11787 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
11788 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
11789 | |||
11790 | CFLAGS=${SAVE_CFLAGS} | ||
11791 | |||
11792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmx linker option is supported" >&5 | ||
11793 | $as_echo_n "checking whether mmx linker option is supported... " >&6; } | ||
11794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_linker_option}" >&5 | ||
11795 | $as_echo "${have_linker_option}" >&6; } | ||
11796 | fi | ||
11797 | |||
11798 | |||
11799 | |||
11800 | if test "x${_efl_build_cpu_mmx}" = "xyes" ; then | ||
11801 | |||
11802 | $as_echo "#define EFL_HAVE_MMX 1" >>confdefs.h | ||
11803 | |||
11804 | fi | ||
11805 | |||
11806 | if test "x$_efl_build_cpu_mmx" = "xyes"; then : | ||
11807 | have_mmx="yes" | ||
11808 | else | ||
11809 | have_mmx="no" | ||
11810 | fi | ||
11811 | |||
11812 | |||
11813 | |||
11814 | # Check whether --enable-cpu-sse was given. | ||
11815 | if test "${enable_cpu_sse+set}" = set; then : | ||
11816 | enableval=$enable_cpu_sse; | ||
11817 | if test "x${enableval}" = "xyes" ; then | ||
11818 | _efl_enable_cpu_sse="yes" | ||
11819 | else | ||
11820 | _efl_enable_cpu_sse="no" | ||
11821 | fi | ||
11822 | |||
11823 | else | ||
11824 | _efl_enable_cpu_sse="yes" | ||
11825 | fi | ||
11826 | |||
11827 | |||
11828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build sse code" >&5 | ||
11829 | $as_echo_n "checking whether to build sse code... " >&6; } | ||
11830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_cpu_sse}" >&5 | ||
11831 | $as_echo "${_efl_enable_cpu_sse}" >&6; } | ||
11832 | |||
11833 | |||
11834 | _efl_build_cpu_sse="no" | ||
11835 | if test "x${_efl_enable_cpu_sse}" = "xyes" ; then | ||
11836 | case $host_cpu in | ||
11837 | i*86 | x86_64 | amd64) | ||
11838 | _efl_build_cpu_sse="yes" | ||
11839 | ;; | ||
11840 | esac | ||
11841 | fi | ||
11842 | |||
11843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sse instructions set is available" >&5 | ||
11844 | $as_echo_n "checking whether sse instructions set is available... " >&6; } | ||
11845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_build_cpu_sse}" >&5 | ||
11846 | $as_echo "${_efl_build_cpu_sse}" >&6; } | ||
11847 | |||
11848 | |||
11849 | if test "x${_efl_build_cpu_sse}" = "xyes" ; then | ||
11850 | SAVE_CFLAGS=${CFLAGS} | ||
11851 | CFLAGS="-msse" | ||
11852 | ac_ext=c | ||
11853 | ac_cpp='$CPP $CPPFLAGS' | ||
11854 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
11855 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
11856 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
11857 | |||
11858 | |||
11859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11860 | /* end confdefs.h. */ | ||
11861 | |||
11862 | int | ||
11863 | main () | ||
11864 | { | ||
11865 | |||
11866 | ; | ||
11867 | return 0; | ||
11868 | } | ||
11869 | |||
11870 | _ACEOF | ||
11871 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11872 | |||
11873 | have_linker_option="yes" | ||
11874 | EFL_SIMD_FLAGS="${EFL_SIMD_FLAGS} -msse" | ||
11875 | |||
11876 | else | ||
11877 | have_linker_option="no" | ||
11878 | fi | ||
11879 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11880 | |||
11881 | ac_ext=c | ||
11882 | ac_cpp='$CPP $CPPFLAGS' | ||
11883 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
11884 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
11885 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
11886 | |||
11887 | CFLAGS=${SAVE_CFLAGS} | ||
11888 | |||
11889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sse linker option is supported" >&5 | ||
11890 | $as_echo_n "checking whether sse linker option is supported... " >&6; } | ||
11891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_linker_option}" >&5 | ||
11892 | $as_echo "${have_linker_option}" >&6; } | ||
11893 | fi | ||
11894 | |||
11895 | |||
11896 | |||
11897 | if test "x${_efl_build_cpu_sse}" = "xyes" ; then | ||
11898 | |||
11899 | $as_echo "#define EFL_HAVE_SSE 1" >>confdefs.h | ||
11900 | |||
11901 | fi | ||
11902 | |||
11903 | if test "x$_efl_build_cpu_sse" = "xyes"; then : | ||
11904 | have_sse="yes" | ||
11905 | else | ||
11906 | have_sse="no" | ||
11907 | fi | ||
11908 | |||
11909 | |||
11910 | |||
11911 | |||
11912 | # Check whether --enable-cpu-sse2 was given. | ||
11913 | if test "${enable_cpu_sse2+set}" = set; then : | ||
11914 | enableval=$enable_cpu_sse2; | ||
11915 | if test "x${enableval}" = "xyes" ; then | ||
11916 | _efl_enable_cpu_sse2="yes" | ||
11917 | else | ||
11918 | _efl_enable_cpu_sse2="no" | ||
11919 | fi | ||
11920 | |||
11921 | else | ||
11922 | _efl_enable_cpu_sse2="yes" | ||
11923 | fi | ||
11924 | |||
11925 | |||
11926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build sse2 code" >&5 | ||
11927 | $as_echo_n "checking whether to build sse2 code... " >&6; } | ||
11928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_cpu_sse2}" >&5 | ||
11929 | $as_echo "${_efl_enable_cpu_sse2}" >&6; } | ||
11930 | |||
11931 | |||
11932 | _efl_build_cpu_sse2="no" | ||
11933 | if test "x${_efl_enable_cpu_sse2}" = "xyes" ; then | ||
11934 | case $host_cpu in | ||
11935 | i*86 | x86_64 | amd64) | ||
11936 | _efl_build_cpu_sse2="yes" | ||
11937 | ;; | ||
11938 | esac | ||
11939 | fi | ||
11940 | |||
11941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sse2 instructions set is available" >&5 | ||
11942 | $as_echo_n "checking whether sse2 instructions set is available... " >&6; } | ||
11943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_build_cpu_sse2}" >&5 | ||
11944 | $as_echo "${_efl_build_cpu_sse2}" >&6; } | ||
11945 | |||
11946 | |||
11947 | if test "x${_efl_build_cpu_sse2}" = "xyes" ; then | ||
11948 | SAVE_CFLAGS=${CFLAGS} | ||
11949 | CFLAGS="-msse2" | ||
11950 | ac_ext=c | ||
11951 | ac_cpp='$CPP $CPPFLAGS' | ||
11952 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
11953 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
11954 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
11955 | |||
11956 | |||
11957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11958 | /* end confdefs.h. */ | ||
11959 | |||
11960 | int | ||
11961 | main () | ||
11962 | { | ||
11963 | |||
11964 | ; | ||
11965 | return 0; | ||
11966 | } | ||
11967 | |||
11968 | _ACEOF | ||
11969 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11970 | |||
11971 | have_linker_option="yes" | ||
11972 | EFL_SIMD_FLAGS="${EFL_SIMD_FLAGS} -msse2" | ||
11973 | |||
11974 | else | ||
11975 | have_linker_option="no" | ||
11976 | fi | ||
11977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11978 | |||
11979 | ac_ext=c | ||
11980 | ac_cpp='$CPP $CPPFLAGS' | ||
11981 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
11982 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
11983 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
11984 | |||
11985 | CFLAGS=${SAVE_CFLAGS} | ||
11986 | |||
11987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sse2 linker option is supported" >&5 | ||
11988 | $as_echo_n "checking whether sse2 linker option is supported... " >&6; } | ||
11989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_linker_option}" >&5 | ||
11990 | $as_echo "${have_linker_option}" >&6; } | ||
11991 | fi | ||
11992 | |||
11993 | |||
11994 | |||
11995 | if test "x${_efl_build_cpu_sse2}" = "xyes" ; then | ||
11996 | |||
11997 | $as_echo "#define EFL_HAVE_SSE2 1" >>confdefs.h | ||
11998 | |||
11999 | fi | ||
12000 | |||
12001 | if test "x$_efl_build_cpu_sse2" = "xyes"; then : | ||
12002 | have_sse2="yes" | ||
12003 | else | ||
12004 | have_sse2="no" | ||
12005 | fi | ||
12006 | |||
12007 | |||
12008 | |||
12009 | |||
12010 | # Check whether --enable-cpu-altivec was given. | ||
12011 | if test "${enable_cpu_altivec+set}" = set; then : | ||
12012 | enableval=$enable_cpu_altivec; | ||
12013 | if test "x${enableval}" = "xyes" ; then | ||
12014 | _efl_enable_cpu_altivec="yes" | ||
12015 | else | ||
12016 | _efl_enable_cpu_altivec="no" | ||
12017 | fi | ||
12018 | |||
12019 | else | ||
12020 | _efl_enable_cpu_altivec="yes" | ||
12021 | |||
12022 | fi | ||
12023 | |||
12024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build altivec code" >&5 | ||
12025 | $as_echo_n "checking whether to build altivec code... " >&6; } | ||
12026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_cpu_altivec}" >&5 | ||
12027 | $as_echo "${_efl_enable_cpu_altivec}" >&6; } | ||
12028 | |||
12029 | |||
12030 | _efl_build_cpu_altivec="no" | ||
12031 | if test "x${_efl_enable_cpu_altivec}" = "xyes" ; then | ||
12032 | case $host_cpu in | ||
12033 | *power* | *ppc*) | ||
12034 | _efl_build_cpu_altivec="yes" | ||
12035 | ;; | ||
12036 | esac | ||
12037 | fi | ||
12038 | |||
12039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether altivec instructions set is available" >&5 | ||
12040 | $as_echo_n "checking whether altivec instructions set is available... " >&6; } | ||
12041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_build_cpu_altivec}" >&5 | ||
12042 | $as_echo "${_efl_build_cpu_altivec}" >&6; } | ||
12043 | |||
12044 | |||
12045 | _efl_have_faltivec="no" | ||
12046 | if test "x${_efl_build_cpu_altivec}" = "xyes" ; then | ||
12047 | SAVE_CFLAGS=${CFLAGS} | ||
12048 | CFLAGS="-faltivec" | ||
12049 | ac_ext=c | ||
12050 | ac_cpp='$CPP $CPPFLAGS' | ||
12051 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
12052 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
12053 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
12054 | |||
12055 | |||
12056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12057 | /* end confdefs.h. */ | ||
12058 | |||
12059 | #include <altivec.h> | ||
12060 | |||
12061 | int | ||
12062 | main () | ||
12063 | { | ||
12064 | |||
12065 | ; | ||
12066 | return 0; | ||
12067 | } | ||
12068 | _ACEOF | ||
12069 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12070 | _efl_have_faltivec="yes" | ||
12071 | _efl_altivec_flag="-faltivec" | ||
12072 | else | ||
12073 | _efl_have_faltivec="no" | ||
12074 | fi | ||
12075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12076 | |||
12077 | if test "x${_efl_have_faltivec}" = "xno" ; then | ||
12078 | CFLAGS="-maltivec" | ||
12079 | |||
12080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12081 | /* end confdefs.h. */ | ||
12082 | |||
12083 | #include <altivec.h> | ||
12084 | |||
12085 | int | ||
12086 | main () | ||
12087 | { | ||
12088 | |||
12089 | ; | ||
12090 | return 0; | ||
12091 | } | ||
12092 | _ACEOF | ||
12093 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12094 | _efl_have_faltivec="yes" | ||
12095 | _efl_altivec_flag="-maltivec" | ||
12096 | else | ||
12097 | _efl_have_faltivec="no" | ||
12098 | fi | ||
12099 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12100 | fi | ||
12101 | |||
12102 | ac_ext=c | ||
12103 | ac_cpp='$CPP $CPPFLAGS' | ||
12104 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
12105 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
12106 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
12107 | |||
12108 | CFLAGS=${SAVE_CFLAGS} | ||
12109 | |||
12110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether altivec linker option is supported" >&5 | ||
12111 | $as_echo_n "checking whether altivec linker option is supported... " >&6; } | ||
12112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_have_faltivec}" >&5 | ||
12113 | $as_echo "${_efl_have_faltivec}" >&6; } | ||
12114 | fi | ||
12115 | |||
12116 | EFL_SIMD_FLAGS="${EFL_SIMD_FLAGS} ${_efl_altivec_flag}" | ||
12117 | |||
12118 | |||
12119 | if test "x${_efl_have_faltivec}" = "xyes" ; then | ||
12120 | |||
12121 | $as_echo "#define EFL_HAVE_ALTIVEC 1" >>confdefs.h | ||
12122 | |||
12123 | fi | ||
12124 | |||
12125 | if test "x$_efl_have_faltivec" = "xyes"; then : | ||
12126 | have_altivec="yes" | ||
12127 | else | ||
12128 | have_altivec="no" | ||
12129 | fi | ||
12130 | |||
12131 | |||
12132 | |||
12133 | |||
12134 | |||
12135 | # Check whether --enable-posix-threads was given. | ||
12136 | if test "${enable_posix_threads+set}" = set; then : | ||
12137 | enableval=$enable_posix_threads; | ||
12138 | if test "x${enableval}" = "xyes" ; then | ||
12139 | _efl_enable_posix_threads="yes" | ||
12140 | else | ||
12141 | _efl_enable_posix_threads="no" | ||
12142 | fi | ||
12143 | |||
12144 | else | ||
12145 | _efl_enable_posix_threads="auto" | ||
12146 | fi | ||
12147 | |||
12148 | |||
12149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build POSIX threads code" >&5 | ||
12150 | $as_echo_n "checking whether to build POSIX threads code... " >&6; } | ||
12151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_posix_threads}" >&5 | ||
12152 | $as_echo "${_efl_enable_posix_threads}" >&6; } | ||
12153 | |||
12154 | # Check whether --enable-win32-threads was given. | ||
12155 | if test "${enable_win32_threads+set}" = set; then : | ||
12156 | enableval=$enable_win32_threads; | ||
12157 | if test "x${enableval}" = "xyes" ; then | ||
12158 | _efl_enable_win32_threads="yes" | ||
12159 | else | ||
12160 | _efl_enable_win32_threads="no" | ||
12161 | fi | ||
12162 | |||
12163 | else | ||
12164 | _efl_enable_win32_threads="no" | ||
12165 | fi | ||
12166 | |||
12167 | |||
12168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Windows threads code" >&5 | ||
12169 | $as_echo_n "checking whether to build Windows threads code... " >&6; } | ||
12170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_win32_threads}" >&5 | ||
12171 | $as_echo "${_efl_enable_win32_threads}" >&6; } | ||
12172 | |||
12173 | |||
12174 | if test "x${_efl_enable_posix_threads}" = "xyes" && test "x${_efl_enable_win32_threads}" = "xyes" ; then | ||
12175 | case "$host_os" in | ||
12176 | mingw*) | ||
12177 | _efl_enable_posix_threads=no | ||
12178 | ;; | ||
12179 | *) | ||
12180 | _efl_enable_win32_threads=no | ||
12181 | ;; | ||
12182 | esac | ||
12183 | fi | ||
12184 | |||
12185 | if test "x${_efl_enable_win32_threads}" = "xyes" ; then | ||
12186 | case "$host_os" in | ||
12187 | mingw*) | ||
12188 | ;; | ||
12189 | *) | ||
12190 | as_fn_error $? "Win32 threads support requested but non Windows system found." "$LINENO" 5 | ||
12191 | ;; | ||
12192 | esac | ||
12193 | fi | ||
12194 | |||
12195 | if test "x${_efl_enable_posix_threads}" = "xyes" ; then | ||
12196 | case "$host_os" in | ||
12197 | mingw*) | ||
12198 | as_fn_error $? "POSIX threads support requested but Windows system found." "$LINENO" 5 | ||
12199 | ;; | ||
12200 | *) | ||
12201 | ;; | ||
12202 | esac | ||
12203 | fi | ||
12204 | |||
12205 | |||
12206 | case "$host_os" in | ||
12207 | mingw*) | ||
12208 | ;; | ||
12209 | solaris*) | ||
12210 | _efl_threads_cflags="-mt" | ||
12211 | _efl_threads_libs="-mt" | ||
12212 | ;; | ||
12213 | *) | ||
12214 | _efl_threads_cflags="-pthread" | ||
12215 | _efl_threads_libs="-pthread" | ||
12216 | ;; | ||
12217 | esac | ||
12218 | |||
12219 | _efl_have_posix_threads="no" | ||
12220 | _efl_have_win32_threads="no" | ||
12221 | |||
12222 | if test "x${_efl_enable_posix_threads}" = "xyes" || test "x${_efl_enable_posix_threads}" = "xauto" ; then | ||
12223 | |||
12224 | SAVE_CFLAGS=${CFLAGS} | ||
12225 | CFLAGS="${CFLAGS} ${_efl_threads_cflags}" | ||
12226 | SAVE_LIBS=${LIBS} | ||
12227 | LIBS="${LIBS} ${_efl_threads_libs}" | ||
12228 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12229 | /* end confdefs.h. */ | ||
12230 | |||
12231 | #include <pthread.h> | ||
12232 | |||
12233 | int | ||
12234 | main () | ||
12235 | { | ||
12236 | |||
12237 | pthread_t id; | ||
12238 | id = pthread_self(); | ||
12239 | |||
12240 | ; | ||
12241 | return 0; | ||
12242 | } | ||
12243 | _ACEOF | ||
12244 | if ac_fn_c_try_link "$LINENO"; then : | ||
12245 | _efl_have_posix_threads="yes" | ||
12246 | else | ||
12247 | _efl_have_posix_threads="no" | ||
12248 | fi | ||
12249 | rm -f core conftest.err conftest.$ac_objext \ | ||
12250 | conftest$ac_exeext conftest.$ac_ext | ||
12251 | CFLAGS=${SAVE_CFLAGS} | ||
12252 | LIBS=${SAVE_LIBS} | ||
12253 | |||
12254 | fi | ||
12255 | |||
12256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system support POSIX threads" >&5 | ||
12257 | $as_echo_n "checking whether system support POSIX threads... " >&6; } | ||
12258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_have_posix_threads}" >&5 | ||
12259 | $as_echo "${_efl_have_posix_threads}" >&6; } | ||
12260 | if test "$x{_efl_enable_posix_threads}" = "xyes" && test "x${_efl_have_posix_threads}" = "xno"; then | ||
12261 | as_fn_error $? "POSIX threads support requested but not found." "$LINENO" 5 | ||
12262 | fi | ||
12263 | |||
12264 | EFL_PTHREAD_CFLAGS="" | ||
12265 | EFL_PTHREAD_LIBS="" | ||
12266 | if test "x${_efl_have_posix_threads}" = "xyes" ; then | ||
12267 | EFL_PTHREAD_CFLAGS=${_efl_threads_cflags} | ||
12268 | EFL_PTHREAD_LIBS=${_efl_threads_libs} | ||
12269 | fi | ||
12270 | |||
12271 | |||
12272 | |||
12273 | |||
12274 | _efl_enable_on_off_threads="no" | ||
12275 | # Check whether --enable-on-off-threads was given. | ||
12276 | if test "${enable_on_off_threads+set}" = set; then : | ||
12277 | enableval=$enable_on_off_threads; _efl_enable_on_off_threads="${enableval}" | ||
12278 | fi | ||
12279 | |||
12280 | |||
12281 | have_on_off_threads="no" | ||
12282 | if test "x${_efl_enable_on_off_threads}" = "xyes"; then | ||
12283 | have_on_off_threads="yes" | ||
12284 | |||
12285 | $as_echo "#define EFL_ON_OFF_THREADS 1" >>confdefs.h | ||
12286 | |||
12287 | fi | ||
12288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to turn on/off threads lock on demand" >&5 | ||
12289 | $as_echo_n "checking whether to turn on/off threads lock on demand... " >&6; } | ||
12290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_on_off_threads}" >&5 | ||
12291 | $as_echo "${_efl_enable_on_off_threads}" >&6; } | ||
12292 | |||
12293 | _efl_enable_debug_threads="no" | ||
12294 | # Check whether --enable-debug-threads was given. | ||
12295 | if test "${enable_debug_threads+set}" = set; then : | ||
12296 | enableval=$enable_debug_threads; _efl_enable_debug_threads="${enableval}" | ||
12297 | fi | ||
12298 | |||
12299 | |||
12300 | have_debug_threads="no" | ||
12301 | if test "x${_efl_have_posix_threads}" = "xyes" -a "x${_efl_enable_debug_threads}" = "xyes"; then | ||
12302 | have_debug_threads="yes" | ||
12303 | |||
12304 | $as_echo "#define EFL_DEBUG_THREADS 1" >>confdefs.h | ||
12305 | |||
12306 | fi | ||
12307 | |||
12308 | if test "x${_efl_have_posix_threads}" = "xyes" ; then | ||
12309 | |||
12310 | $as_echo "#define EFL_HAVE_POSIX_THREADS 1" >>confdefs.h | ||
12311 | |||
12312 | fi | ||
12313 | |||
12314 | if test "x${_efl_enable_win32_threads}" = "xyes" ; then | ||
12315 | _efl_have_win32_threads="yes" | ||
12316 | |||
12317 | $as_echo "#define EFL_HAVE_WIN32_THREADS 1" >>confdefs.h | ||
12318 | |||
12319 | fi | ||
12320 | |||
12321 | if test "x${_efl_have_posix_threads}" = "xyes" || test "x${_efl_have_win32_threads}" = "xyes" ; then | ||
12322 | |||
12323 | $as_echo "#define EFL_HAVE_THREADS 1" >>confdefs.h | ||
12324 | |||
12325 | fi | ||
12326 | |||
12327 | if test "x$_efl_have_posix_threads" = "xyes" || test "x$_efl_have_win32_threads" = "xyes"; then : | ||
12328 | |||
12329 | if test "x${_efl_have_posix_threads}" = "xyes" ; then | ||
12330 | have_threads="POSIX" | ||
12331 | else | ||
12332 | if test "x${_efl_have_win32_threads}" = "xyes" ; then | ||
12333 | have_threads="Win32" | ||
12334 | else | ||
12335 | have_threads="no" | ||
12336 | fi | ||
12337 | fi | ||
12338 | |||
12339 | else | ||
12340 | have_threads="no" | ||
12341 | fi | ||
12342 | |||
12343 | |||
12344 | |||
12345 | |||
12346 | _efl_have_posix_threads_spinlock="no" | ||
12347 | |||
12348 | if test "x${_efl_have_posix_threads}" = "xyes" ; then | ||
12349 | |||
12350 | SAVE_CFLAGS=${CFLAGS} | ||
12351 | CFLAGS="${CFLAGS} ${EFL_PTHREAD_CFLAGS}" | ||
12352 | SAVE_LIBS=${LIBS} | ||
12353 | LIBS="${LIBS} ${EFL_PTHREAD_LIBS}" | ||
12354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12355 | /* end confdefs.h. */ | ||
12356 | |||
12357 | #include <pthread.h> | ||
12358 | |||
12359 | int | ||
12360 | main () | ||
12361 | { | ||
12362 | |||
12363 | pthread_spinlock_t lock; | ||
12364 | int res; | ||
12365 | res = pthread_spin_init(&lock, PTHREAD_PROCESS_PRIVATE); | ||
12366 | |||
12367 | ; | ||
12368 | return 0; | ||
12369 | } | ||
12370 | _ACEOF | ||
12371 | if ac_fn_c_try_link "$LINENO"; then : | ||
12372 | _efl_have_posix_threads_spinlock="yes" | ||
12373 | else | ||
12374 | _efl_have_posix_threads_spinlock="no" | ||
12375 | fi | ||
12376 | rm -f core conftest.err conftest.$ac_objext \ | ||
12377 | conftest$ac_exeext conftest.$ac_ext | ||
12378 | CFLAGS=${SAVE_CFLAGS} | ||
12379 | LIBS=${SAVE_LIBS} | ||
12380 | |||
12381 | fi | ||
12382 | |||
12383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build POSIX threads spinlock code" >&5 | ||
12384 | $as_echo_n "checking whether to build POSIX threads spinlock code... " >&6; } | ||
12385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_have_posix_threads_spinlock}" >&5 | ||
12386 | $as_echo "${_efl_have_posix_threads_spinlock}" >&6; } | ||
12387 | if test "x${_efl_enable_posix_threads}" = "xyes" && test "x${_efl_have_posix_threads_spinlock}" = "xno" ; then | ||
12388 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: POSIX threads support requested but spinlocks are not supported" >&5 | ||
12389 | $as_echo "$as_me: WARNING: POSIX threads support requested but spinlocks are not supported" >&2;} | ||
12390 | fi | ||
12391 | |||
12392 | if test "x${_efl_have_posix_threads_spinlock}" = "xyes" ; then | ||
12393 | |||
12394 | $as_echo "#define EFL_HAVE_POSIX_THREADS_SPINLOCK 1" >>confdefs.h | ||
12395 | |||
12396 | fi | ||
12397 | if test "x$_efl_have_posix_threads_spinlock" = "xyes"; then : | ||
12398 | have_posix_threads_spinlock="yes" | ||
12399 | else | ||
12400 | have_posix_threads_spinlock="no" | ||
12401 | fi | ||
12402 | |||
12403 | |||
12404 | if ! test "x${have_threads}" = "xno" ; then | ||
12405 | EINA_CONFIGURE_HAVE_THREADS="#define EINA_HAVE_THREADS" | ||
12406 | fi | ||
12407 | |||
12408 | if ! test "x${have_threads}" = "xno"; then | ||
12409 | EINA_HAVE_THREADS_TRUE= | ||
12410 | EINA_HAVE_THREADS_FALSE='#' | ||
12411 | else | ||
12412 | EINA_HAVE_THREADS_TRUE='#' | ||
12413 | EINA_HAVE_THREADS_FALSE= | ||
12414 | fi | ||
12415 | |||
12416 | |||
12417 | if ! test "x${have_debug_threads}" = "xno"; then | ||
12418 | EINA_CONFIGURE_HAVE_DEBUG_THREADS="#define EINA_HAVE_DEBUG_THREADS" | ||
12419 | fi | ||
12420 | |||
12421 | if ! test "x${have_debug_threads}" = "xno"; then | ||
12422 | EINA_DEBUG_THREADS_TRUE= | ||
12423 | EINA_DEBUG_THREADS_FALSE='#' | ||
12424 | else | ||
12425 | EINA_DEBUG_THREADS_TRUE='#' | ||
12426 | EINA_DEBUG_THREADS_FALSE= | ||
12427 | fi | ||
12428 | |||
12429 | |||
12430 | if ! test "x${have_on_off_threads}" = "xno"; then | ||
12431 | EINA_CONFIGURE_HAVE_ON_OFF_THREADS="#define EINA_HAVE_ON_OFF_THREADS" | ||
12432 | fi | ||
12433 | |||
12434 | if ! test "x${have_on_off_threads}" = "xno"; then | ||
12435 | EINA_ON_OFF_THREADS_TRUE= | ||
12436 | EINA_ON_OFF_THREADS_FALSE='#' | ||
12437 | else | ||
12438 | EINA_ON_OFF_THREADS_TRUE='#' | ||
12439 | EINA_ON_OFF_THREADS_FALSE= | ||
12440 | fi | ||
12441 | |||
12442 | |||
12443 | ### Additional options to configure | ||
12444 | |||
12445 | # Magic debug | ||
12446 | # Check whether --enable-magic-debug was given. | ||
12447 | if test "${enable_magic_debug+set}" = set; then : | ||
12448 | enableval=$enable_magic_debug; | ||
12449 | if test "x${enableval}" = "xyes" ; then | ||
12450 | have_magic_debug="yes" | ||
12451 | else | ||
12452 | have_magic_debug="no" | ||
12453 | fi | ||
12454 | |||
12455 | else | ||
12456 | have_magic_debug="yes" | ||
12457 | fi | ||
12458 | |||
12459 | |||
12460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether magic debug is enable" >&5 | ||
12461 | $as_echo_n "checking whether magic debug is enable... " >&6; } | ||
12462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_magic_debug}" >&5 | ||
12463 | $as_echo "${have_magic_debug}" >&6; } | ||
12464 | |||
12465 | if test "x${have_magic_debug}" = "xyes" ; then | ||
12466 | EINA_CONFIGURE_MAGIC_DEBUG="#define EINA_MAGIC_DEBUG" | ||
12467 | fi | ||
12468 | |||
12469 | |||
12470 | # Safety checks (avoid crashes on wrong api usage) | ||
12471 | # Check whether --enable-safety-checks was given. | ||
12472 | if test "${enable_safety_checks+set}" = set; then : | ||
12473 | enableval=$enable_safety_checks; | ||
12474 | if test "x${enableval}" = "xyes" ; then | ||
12475 | have_safety_checks="yes" | ||
12476 | else | ||
12477 | have_safety_checks="no" | ||
12478 | fi | ||
12479 | |||
12480 | else | ||
12481 | have_safety_checks="yes" | ||
12482 | fi | ||
12483 | |||
12484 | |||
12485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do safety checking on api parameters" >&5 | ||
12486 | $as_echo_n "checking whether to do safety checking on api parameters... " >&6; } | ||
12487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_safety_checks" >&5 | ||
12488 | $as_echo "$have_safety_checks" >&6; } | ||
12489 | |||
12490 | if test "x$have_safety_checks" = "xyes"; then | ||
12491 | SAFETY_CHECKS_TRUE= | ||
12492 | SAFETY_CHECKS_FALSE='#' | ||
12493 | else | ||
12494 | SAFETY_CHECKS_TRUE='#' | ||
12495 | SAFETY_CHECKS_FALSE= | ||
12496 | fi | ||
12497 | |||
12498 | if test "x$have_safety_checks" = "xyes"; then | ||
12499 | |||
12500 | $as_echo "#define EINA_SAFETY_CHECKS 1" >>confdefs.h | ||
12501 | |||
12502 | EINA_CONFIGURE_SAFETY_CHECKS="#define EINA_SAFETY_CHECKS" | ||
12503 | fi | ||
12504 | |||
12505 | |||
12506 | with_max_log_level="<unset>" | ||
12507 | |||
12508 | # Check whether --with-internal-maximum-log-level was given. | ||
12509 | if test "${with_internal_maximum_log_level+set}" = set; then : | ||
12510 | withval=$with_internal_maximum_log_level; | ||
12511 | if test "x${withval}" != "xno"; then | ||
12512 | if echo "${withval}" | grep -E '^[0-9]+$' >/dev/null 2>/dev/null; then | ||
12513 | { $as_echo "$as_me:${as_lineno-$LINENO}: ignoring any EINA_LOG() with level greater than ${withval}" >&5 | ||
12514 | $as_echo "$as_me: ignoring any EINA_LOG() with level greater than ${withval}" >&6;} | ||
12515 | |||
12516 | cat >>confdefs.h <<_ACEOF | ||
12517 | #define EINA_LOG_LEVEL_MAXIMUM ${withval} | ||
12518 | _ACEOF | ||
12519 | |||
12520 | with_max_log_level="${withval}" | ||
12521 | else | ||
12522 | as_fn_error $? "--with-internal-maximum-log-level takes a decimal number, got \"${withval}\" instead." "$LINENO" 5 | ||
12523 | fi | ||
12524 | fi | ||
12525 | |||
12526 | else | ||
12527 | : | ||
12528 | fi | ||
12529 | |||
12530 | |||
12531 | # Check whether --enable-amalgamation was given. | ||
12532 | if test "${enable_amalgamation+set}" = set; then : | ||
12533 | enableval=$enable_amalgamation; if test "x${enableval}" = "xyes"; then | ||
12534 | do_amalgamation="yes" | ||
12535 | else | ||
12536 | do_amalgamation="no" | ||
12537 | fi | ||
12538 | |||
12539 | else | ||
12540 | do_amalgamation="no" | ||
12541 | |||
12542 | fi | ||
12543 | |||
12544 | if test "x${do_amalgamation}" = "xyes"; then | ||
12545 | EINA_AMALGAMATION_TRUE= | ||
12546 | EINA_AMALGAMATION_FALSE='#' | ||
12547 | else | ||
12548 | EINA_AMALGAMATION_TRUE='#' | ||
12549 | EINA_AMALGAMATION_FALSE= | ||
12550 | fi | ||
12551 | |||
12552 | |||
12553 | # Choose best memory pool | ||
12554 | # Check whether --enable-default-mempool was given. | ||
12555 | if test "${enable_default_mempool+set}" = set; then : | ||
12556 | enableval=$enable_default_mempool; | ||
12557 | if test "x${enableval}" = "xyes"; then | ||
12558 | have_default_mempool="yes" | ||
12559 | else | ||
12560 | have_default_mempool="no" | ||
12561 | fi | ||
12562 | |||
12563 | else | ||
12564 | have_default_mempool="no" | ||
12565 | |||
12566 | fi | ||
12567 | |||
12568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use default mempool allocator" >&5 | ||
12569 | $as_echo_n "checking whether to use default mempool allocator... " >&6; } | ||
12570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_default_mempool}" >&5 | ||
12571 | $as_echo "${have_default_mempool}" >&6; } | ||
12572 | |||
12573 | if test "x${have_default_mempool}" = "xyes" ; then | ||
12574 | EINA_CONFIGURE_DEFAULT_MEMPOOL="#define EINA_DEFAULT_MEMPOOL" | ||
12575 | fi | ||
12576 | |||
12577 | |||
12578 | # Report stringshare usage | ||
12579 | # Check whether --enable-stringshare-usage was given. | ||
12580 | if test "${enable_stringshare_usage+set}" = set; then : | ||
12581 | enableval=$enable_stringshare_usage; | ||
12582 | if test "x${enableval}" = "xyes"; then | ||
12583 | have_stringshare_usage="yes" | ||
12584 | else | ||
12585 | have_stringshare_usage="no" | ||
12586 | fi | ||
12587 | |||
12588 | else | ||
12589 | have_stringshare_usage="no" | ||
12590 | |||
12591 | fi | ||
12592 | |||
12593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to report stringshare usage" >&5 | ||
12594 | $as_echo_n "checking whether to report stringshare usage... " >&6; } | ||
12595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_stringshare_usage}" >&5 | ||
12596 | $as_echo "${have_stringshare_usage}" >&6; } | ||
12597 | |||
12598 | if test "x${have_stringshare_usage}" = "xyes"; then | ||
12599 | |||
12600 | $as_echo "#define EINA_STRINGSHARE_USAGE 1" >>confdefs.h | ||
12601 | |||
12602 | fi | ||
12603 | |||
12604 | # Check if we want to benchmark on real data | ||
12605 | enable_benchmark_e17="no" | ||
12606 | # Check whether --enable-e17 was given. | ||
12607 | if test "${enable_e17+set}" = set; then : | ||
12608 | enableval=$enable_e17; | ||
12609 | if test "x${enableval}" = "xyes" ; then | ||
12610 | enable_benchmark_e17="yes" | ||
12611 | else | ||
12612 | enable_benchmark_e17="no" | ||
12613 | fi | ||
12614 | |||
12615 | else | ||
12616 | enable_benchmark_e17="no" | ||
12617 | fi | ||
12618 | |||
12619 | |||
12620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether e17 real data benchmark are built" >&5 | ||
12621 | $as_echo_n "checking whether e17 real data benchmark are built... " >&6; } | ||
12622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_benchmark_e17}" >&5 | ||
12623 | $as_echo "${enable_benchmark_e17}" >&6; } | ||
12624 | |||
12625 | if test "x${enable_benchmark_e17}" = "xyes"; then | ||
12626 | EINA_ENABLE_BENCHMARK_E17_TRUE= | ||
12627 | EINA_ENABLE_BENCHMARK_E17_FALSE='#' | ||
12628 | else | ||
12629 | EINA_ENABLE_BENCHMARK_E17_TRUE='#' | ||
12630 | EINA_ENABLE_BENCHMARK_E17_FALSE= | ||
12631 | fi | ||
12632 | |||
12633 | |||
12634 | |||
12635 | ### Checks for programs | ||
12636 | ac_ext=c | ||
12637 | ac_cpp='$CPP $CPPFLAGS' | ||
12638 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
12639 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
12640 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
12641 | if test -n "$ac_tool_prefix"; then | ||
12642 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
12643 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
12644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12645 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12646 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
12647 | $as_echo_n "(cached) " >&6 | ||
12648 | else | ||
12649 | if test -n "$CC"; then | ||
12650 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
12651 | else | ||
12652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12653 | for as_dir in $PATH | ||
12654 | do | ||
12655 | IFS=$as_save_IFS | ||
12656 | test -z "$as_dir" && as_dir=. | ||
12657 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12658 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12659 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
12660 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12661 | break 2 | ||
12662 | fi | ||
12663 | done | ||
12664 | done | ||
12665 | IFS=$as_save_IFS | ||
12666 | |||
12667 | fi | ||
12668 | fi | ||
12669 | CC=$ac_cv_prog_CC | ||
12670 | if test -n "$CC"; then | ||
12671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
12672 | $as_echo "$CC" >&6; } | ||
12673 | else | ||
12674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12675 | $as_echo "no" >&6; } | ||
12676 | fi | ||
12677 | |||
12678 | |||
12679 | fi | ||
12680 | if test -z "$ac_cv_prog_CC"; then | ||
12681 | ac_ct_CC=$CC | ||
12682 | # Extract the first word of "gcc", so it can be a program name with args. | ||
12683 | set dummy gcc; ac_word=$2 | ||
12684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12685 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12686 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
12687 | $as_echo_n "(cached) " >&6 | ||
12688 | else | ||
12689 | if test -n "$ac_ct_CC"; then | ||
12690 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
12691 | else | ||
12692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12693 | for as_dir in $PATH | ||
12694 | do | ||
12695 | IFS=$as_save_IFS | ||
12696 | test -z "$as_dir" && as_dir=. | ||
12697 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12698 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12699 | ac_cv_prog_ac_ct_CC="gcc" | ||
12700 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12701 | break 2 | ||
12702 | fi | ||
12703 | done | ||
12704 | done | ||
12705 | IFS=$as_save_IFS | ||
12706 | |||
12707 | fi | ||
12708 | fi | ||
12709 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
12710 | if test -n "$ac_ct_CC"; then | ||
12711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
12712 | $as_echo "$ac_ct_CC" >&6; } | ||
12713 | else | ||
12714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12715 | $as_echo "no" >&6; } | ||
12716 | fi | ||
12717 | |||
12718 | if test "x$ac_ct_CC" = x; then | ||
12719 | CC="" | ||
12720 | else | ||
12721 | case $cross_compiling:$ac_tool_warned in | ||
12722 | yes:) | ||
12723 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
12724 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
12725 | ac_tool_warned=yes ;; | ||
12726 | esac | ||
12727 | CC=$ac_ct_CC | ||
12728 | fi | ||
12729 | else | ||
12730 | CC="$ac_cv_prog_CC" | ||
12731 | fi | ||
12732 | |||
12733 | if test -z "$CC"; then | ||
12734 | if test -n "$ac_tool_prefix"; then | ||
12735 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
12736 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
12737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12738 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12739 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
12740 | $as_echo_n "(cached) " >&6 | ||
12741 | else | ||
12742 | if test -n "$CC"; then | ||
12743 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
12744 | else | ||
12745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12746 | for as_dir in $PATH | ||
12747 | do | ||
12748 | IFS=$as_save_IFS | ||
12749 | test -z "$as_dir" && as_dir=. | ||
12750 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12751 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12752 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
12753 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12754 | break 2 | ||
12755 | fi | ||
12756 | done | ||
12757 | done | ||
12758 | IFS=$as_save_IFS | ||
12759 | |||
12760 | fi | ||
12761 | fi | ||
12762 | CC=$ac_cv_prog_CC | ||
12763 | if test -n "$CC"; then | ||
12764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
12765 | $as_echo "$CC" >&6; } | ||
12766 | else | ||
12767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12768 | $as_echo "no" >&6; } | ||
12769 | fi | ||
12770 | |||
12771 | |||
12772 | fi | ||
12773 | fi | ||
12774 | if test -z "$CC"; then | ||
12775 | # Extract the first word of "cc", so it can be a program name with args. | ||
12776 | set dummy cc; ac_word=$2 | ||
12777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12778 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12779 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
12780 | $as_echo_n "(cached) " >&6 | ||
12781 | else | ||
12782 | if test -n "$CC"; then | ||
12783 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
12784 | else | ||
12785 | ac_prog_rejected=no | ||
12786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12787 | for as_dir in $PATH | ||
12788 | do | ||
12789 | IFS=$as_save_IFS | ||
12790 | test -z "$as_dir" && as_dir=. | ||
12791 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12792 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12793 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
12794 | ac_prog_rejected=yes | ||
12795 | continue | ||
12796 | fi | ||
12797 | ac_cv_prog_CC="cc" | ||
12798 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12799 | break 2 | ||
12800 | fi | ||
12801 | done | ||
12802 | done | ||
12803 | IFS=$as_save_IFS | ||
12804 | |||
12805 | if test $ac_prog_rejected = yes; then | ||
12806 | # We found a bogon in the path, so make sure we never use it. | ||
12807 | set dummy $ac_cv_prog_CC | ||
12808 | shift | ||
12809 | if test $# != 0; then | ||
12810 | # We chose a different compiler from the bogus one. | ||
12811 | # However, it has the same basename, so the bogon will be chosen | ||
12812 | # first if we set CC to just the basename; use the full file name. | ||
12813 | shift | ||
12814 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
12815 | fi | ||
12816 | fi | ||
12817 | fi | ||
12818 | fi | ||
12819 | CC=$ac_cv_prog_CC | ||
12820 | if test -n "$CC"; then | ||
12821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
12822 | $as_echo "$CC" >&6; } | ||
12823 | else | ||
12824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12825 | $as_echo "no" >&6; } | ||
12826 | fi | ||
12827 | |||
12828 | |||
12829 | fi | ||
12830 | if test -z "$CC"; then | ||
12831 | if test -n "$ac_tool_prefix"; then | ||
12832 | for ac_prog in cl.exe | ||
12833 | do | ||
12834 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
12835 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
12836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12837 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12838 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
12839 | $as_echo_n "(cached) " >&6 | ||
12840 | else | ||
12841 | if test -n "$CC"; then | ||
12842 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
12843 | else | ||
12844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12845 | for as_dir in $PATH | ||
12846 | do | ||
12847 | IFS=$as_save_IFS | ||
12848 | test -z "$as_dir" && as_dir=. | ||
12849 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12850 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12851 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
12852 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12853 | break 2 | ||
12854 | fi | ||
12855 | done | ||
12856 | done | ||
12857 | IFS=$as_save_IFS | ||
12858 | |||
12859 | fi | ||
12860 | fi | ||
12861 | CC=$ac_cv_prog_CC | ||
12862 | if test -n "$CC"; then | ||
12863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
12864 | $as_echo "$CC" >&6; } | ||
12865 | else | ||
12866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12867 | $as_echo "no" >&6; } | ||
12868 | fi | ||
12869 | |||
12870 | |||
12871 | test -n "$CC" && break | ||
12872 | done | ||
12873 | fi | ||
12874 | if test -z "$CC"; then | ||
12875 | ac_ct_CC=$CC | ||
12876 | for ac_prog in cl.exe | ||
12877 | do | ||
12878 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
12879 | set dummy $ac_prog; ac_word=$2 | ||
12880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12881 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12882 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
12883 | $as_echo_n "(cached) " >&6 | ||
12884 | else | ||
12885 | if test -n "$ac_ct_CC"; then | ||
12886 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
12887 | else | ||
12888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12889 | for as_dir in $PATH | ||
12890 | do | ||
12891 | IFS=$as_save_IFS | ||
12892 | test -z "$as_dir" && as_dir=. | ||
12893 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12894 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12895 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
12896 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12897 | break 2 | ||
12898 | fi | ||
12899 | done | ||
12900 | done | ||
12901 | IFS=$as_save_IFS | ||
12902 | |||
12903 | fi | ||
12904 | fi | ||
12905 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
12906 | if test -n "$ac_ct_CC"; then | ||
12907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
12908 | $as_echo "$ac_ct_CC" >&6; } | ||
12909 | else | ||
12910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12911 | $as_echo "no" >&6; } | ||
12912 | fi | ||
12913 | |||
12914 | |||
12915 | test -n "$ac_ct_CC" && break | ||
12916 | done | ||
12917 | |||
12918 | if test "x$ac_ct_CC" = x; then | ||
12919 | CC="" | ||
12920 | else | ||
12921 | case $cross_compiling:$ac_tool_warned in | ||
12922 | yes:) | ||
12923 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
12924 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
12925 | ac_tool_warned=yes ;; | ||
12926 | esac | ||
12927 | CC=$ac_ct_CC | ||
12928 | fi | ||
12929 | fi | ||
12930 | |||
12931 | fi | ||
12932 | |||
12933 | |||
12934 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
12935 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
12936 | as_fn_error $? "no acceptable C compiler found in \$PATH | ||
12937 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
12938 | |||
12939 | # Provide some information about the compiler. | ||
12940 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
12941 | set X $ac_compile | ||
12942 | ac_compiler=$2 | ||
12943 | for ac_option in --version -v -V -qversion; do | ||
12944 | { { ac_try="$ac_compiler $ac_option >&5" | ||
12945 | case "(($ac_try" in | ||
12946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12947 | *) ac_try_echo=$ac_try;; | ||
12948 | esac | ||
12949 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
12950 | $as_echo "$ac_try_echo"; } >&5 | ||
12951 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
12952 | ac_status=$? | ||
12953 | if test -s conftest.err; then | ||
12954 | sed '10a\ | ||
12955 | ... rest of stderr output deleted ... | ||
12956 | 10q' conftest.err >conftest.er1 | ||
12957 | cat conftest.er1 >&5 | ||
12958 | fi | ||
12959 | rm -f conftest.er1 conftest.err | ||
12960 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12961 | test $ac_status = 0; } | ||
12962 | done | ||
12963 | |||
12964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | ||
12965 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
12966 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | ||
12967 | $as_echo_n "(cached) " >&6 | ||
12968 | else | ||
12969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12970 | /* end confdefs.h. */ | ||
12971 | |||
12972 | int | ||
12973 | main () | ||
12974 | { | ||
12975 | #ifndef __GNUC__ | ||
12976 | choke me | ||
12977 | #endif | ||
12978 | |||
12979 | ; | ||
12980 | return 0; | ||
12981 | } | ||
12982 | _ACEOF | ||
12983 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12984 | ac_compiler_gnu=yes | ||
12985 | else | ||
12986 | ac_compiler_gnu=no | ||
12987 | fi | ||
12988 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12989 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
12990 | |||
12991 | fi | ||
12992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
12993 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
12994 | if test $ac_compiler_gnu = yes; then | ||
12995 | GCC=yes | ||
12996 | else | ||
12997 | GCC= | ||
12998 | fi | ||
12999 | ac_test_CFLAGS=${CFLAGS+set} | ||
13000 | ac_save_CFLAGS=$CFLAGS | ||
13001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
13002 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
13003 | if test "${ac_cv_prog_cc_g+set}" = set; then : | ||
13004 | $as_echo_n "(cached) " >&6 | ||
13005 | else | ||
13006 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
13007 | ac_c_werror_flag=yes | ||
13008 | ac_cv_prog_cc_g=no | ||
13009 | CFLAGS="-g" | ||
13010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13011 | /* end confdefs.h. */ | ||
13012 | |||
13013 | int | ||
13014 | main () | ||
13015 | { | ||
13016 | |||
13017 | ; | ||
13018 | return 0; | ||
13019 | } | ||
13020 | _ACEOF | ||
13021 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13022 | ac_cv_prog_cc_g=yes | ||
13023 | else | ||
13024 | CFLAGS="" | ||
13025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13026 | /* end confdefs.h. */ | ||
13027 | |||
13028 | int | ||
13029 | main () | ||
13030 | { | ||
13031 | |||
13032 | ; | ||
13033 | return 0; | ||
13034 | } | ||
13035 | _ACEOF | ||
13036 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13037 | |||
13038 | else | ||
13039 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
13040 | CFLAGS="-g" | ||
13041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13042 | /* end confdefs.h. */ | ||
13043 | |||
13044 | int | ||
13045 | main () | ||
13046 | { | ||
13047 | |||
13048 | ; | ||
13049 | return 0; | ||
13050 | } | ||
13051 | _ACEOF | ||
13052 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13053 | ac_cv_prog_cc_g=yes | ||
13054 | fi | ||
13055 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13056 | fi | ||
13057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13058 | fi | ||
13059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13060 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
13061 | fi | ||
13062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
13063 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
13064 | if test "$ac_test_CFLAGS" = set; then | ||
13065 | CFLAGS=$ac_save_CFLAGS | ||
13066 | elif test $ac_cv_prog_cc_g = yes; then | ||
13067 | if test "$GCC" = yes; then | ||
13068 | CFLAGS="-g -O2" | ||
13069 | else | ||
13070 | CFLAGS="-g" | ||
13071 | fi | ||
13072 | else | ||
13073 | if test "$GCC" = yes; then | ||
13074 | CFLAGS="-O2" | ||
13075 | else | ||
13076 | CFLAGS= | ||
13077 | fi | ||
13078 | fi | ||
13079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
13080 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
13081 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
13082 | $as_echo_n "(cached) " >&6 | ||
13083 | else | ||
13084 | ac_cv_prog_cc_c89=no | ||
13085 | ac_save_CC=$CC | ||
13086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13087 | /* end confdefs.h. */ | ||
13088 | #include <stdarg.h> | ||
13089 | #include <stdio.h> | ||
13090 | #include <sys/types.h> | ||
13091 | #include <sys/stat.h> | ||
13092 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
13093 | struct buf { int x; }; | ||
13094 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
13095 | static char *e (p, i) | ||
13096 | char **p; | ||
13097 | int i; | ||
13098 | { | ||
13099 | return p[i]; | ||
13100 | } | ||
13101 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
13102 | { | ||
13103 | char *s; | ||
13104 | va_list v; | ||
13105 | va_start (v,p); | ||
13106 | s = g (p, va_arg (v,int)); | ||
13107 | va_end (v); | ||
13108 | return s; | ||
13109 | } | ||
13110 | |||
13111 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
13112 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
13113 | These don't provoke an error unfortunately, instead are silently treated | ||
13114 | as 'x'. The following induces an error, until -std is added to get | ||
13115 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
13116 | array size at least. It's necessary to write '\x00'==0 to get something | ||
13117 | that's true only with -std. */ | ||
13118 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
13119 | |||
13120 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
13121 | inside strings and character constants. */ | ||
13122 | #define FOO(x) 'x' | ||
13123 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
13124 | |||
13125 | int test (int i, double x); | ||
13126 | struct s1 {int (*f) (int a);}; | ||
13127 | struct s2 {int (*f) (double a);}; | ||
13128 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
13129 | int argc; | ||
13130 | char **argv; | ||
13131 | int | ||
13132 | main () | ||
13133 | { | ||
13134 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
13135 | ; | ||
13136 | return 0; | ||
13137 | } | ||
13138 | _ACEOF | ||
13139 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
13140 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
13141 | do | ||
13142 | CC="$ac_save_CC $ac_arg" | ||
13143 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13144 | ac_cv_prog_cc_c89=$ac_arg | ||
13145 | fi | ||
13146 | rm -f core conftest.err conftest.$ac_objext | ||
13147 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
13148 | done | ||
13149 | rm -f conftest.$ac_ext | ||
13150 | CC=$ac_save_CC | ||
13151 | |||
13152 | fi | ||
13153 | # AC_CACHE_VAL | ||
13154 | case "x$ac_cv_prog_cc_c89" in | ||
13155 | x) | ||
13156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
13157 | $as_echo "none needed" >&6; } ;; | ||
13158 | xno) | ||
13159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
13160 | $as_echo "unsupported" >&6; } ;; | ||
13161 | *) | ||
13162 | CC="$CC $ac_cv_prog_cc_c89" | ||
13163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
13164 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
13165 | esac | ||
13166 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
13167 | |||
13168 | fi | ||
13169 | |||
13170 | ac_ext=c | ||
13171 | ac_cpp='$CPP $CPPFLAGS' | ||
13172 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
13173 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13174 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
13175 | |||
13176 | depcc="$CC" am_compiler_list= | ||
13177 | |||
13178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
13179 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
13180 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | ||
13181 | $as_echo_n "(cached) " >&6 | ||
13182 | else | ||
13183 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
13184 | # We make a subdir and do the tests there. Otherwise we can end up | ||
13185 | # making bogus files that we don't know about and never remove. For | ||
13186 | # instance it was reported that on HP-UX the gcc test will end up | ||
13187 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
13188 | # in D'. | ||
13189 | mkdir conftest.dir | ||
13190 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
13191 | # using a relative directory. | ||
13192 | cp "$am_depcomp" conftest.dir | ||
13193 | cd conftest.dir | ||
13194 | # We will build objects and dependencies in a subdirectory because | ||
13195 | # it helps to detect inapplicable dependency modes. For instance | ||
13196 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
13197 | # side effect of compilation, but ICC will put the dependencies in | ||
13198 | # the current directory while Tru64 will put them in the object | ||
13199 | # directory. | ||
13200 | mkdir sub | ||
13201 | |||
13202 | am_cv_CC_dependencies_compiler_type=none | ||
13203 | if test "$am_compiler_list" = ""; then | ||
13204 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
13205 | fi | ||
13206 | am__universal=false | ||
13207 | case " $depcc " in #( | ||
13208 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
13209 | esac | ||
13210 | |||
13211 | for depmode in $am_compiler_list; do | ||
13212 | # Setup a source with many dependencies, because some compilers | ||
13213 | # like to wrap large dependency lists on column 80 (with \), and | ||
13214 | # we should not choose a depcomp mode which is confused by this. | ||
13215 | # | ||
13216 | # We need to recreate these files for each test, as the compiler may | ||
13217 | # overwrite some of them when testing with obscure command lines. | ||
13218 | # This happens at least with the AIX C compiler. | ||
13219 | : > sub/conftest.c | ||
13220 | for i in 1 2 3 4 5 6; do | ||
13221 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
13222 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
13223 | # Solaris 8's {/usr,}/bin/sh. | ||
13224 | touch sub/conftst$i.h | ||
13225 | done | ||
13226 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
13227 | |||
13228 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
13229 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
13230 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
13231 | # versions had trouble with output in subdirs | ||
13232 | am__obj=sub/conftest.${OBJEXT-o} | ||
13233 | am__minus_obj="-o $am__obj" | ||
13234 | case $depmode in | ||
13235 | gcc) | ||
13236 | # This depmode causes a compiler race in universal mode. | ||
13237 | test "$am__universal" = false || continue | ||
13238 | ;; | ||
13239 | nosideeffect) | ||
13240 | # after this tag, mechanisms are not by side-effect, so they'll | ||
13241 | # only be used when explicitly requested | ||
13242 | if test "x$enable_dependency_tracking" = xyes; then | ||
13243 | continue | ||
13244 | else | ||
13245 | break | ||
13246 | fi | ||
13247 | ;; | ||
13248 | msvisualcpp | msvcmsys) | ||
13249 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
13250 | # not run yet. These depmodes are late enough in the game, and | ||
13251 | # so weak that their functioning should not be impacted. | ||
13252 | am__obj=conftest.${OBJEXT-o} | ||
13253 | am__minus_obj= | ||
13254 | ;; | ||
13255 | none) break ;; | ||
13256 | esac | ||
13257 | if depmode=$depmode \ | ||
13258 | source=sub/conftest.c object=$am__obj \ | ||
13259 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
13260 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
13261 | >/dev/null 2>conftest.err && | ||
13262 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
13263 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
13264 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
13265 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
13266 | # icc doesn't choke on unknown options, it will just issue warnings | ||
13267 | # or remarks (even with -Werror). So we grep stderr for any message | ||
13268 | # that says an option was ignored or not supported. | ||
13269 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
13270 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
13271 | # The diagnosis changed in icc 8.0: | ||
13272 | # icc: Command line remark: option '-MP' not supported | ||
13273 | if (grep 'ignoring option' conftest.err || | ||
13274 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
13275 | am_cv_CC_dependencies_compiler_type=$depmode | ||
13276 | break | ||
13277 | fi | ||
13278 | fi | ||
13279 | done | ||
13280 | |||
13281 | cd .. | ||
13282 | rm -rf conftest.dir | ||
13283 | else | ||
13284 | am_cv_CC_dependencies_compiler_type=none | ||
13285 | fi | ||
13286 | |||
13287 | fi | ||
13288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | ||
13289 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | ||
13290 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
13291 | |||
13292 | if | ||
13293 | test "x$enable_dependency_tracking" != xno \ | ||
13294 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
13295 | am__fastdepCC_TRUE= | ||
13296 | am__fastdepCC_FALSE='#' | ||
13297 | else | ||
13298 | am__fastdepCC_TRUE='#' | ||
13299 | am__fastdepCC_FALSE= | ||
13300 | fi | ||
13301 | |||
13302 | |||
13303 | ac_ext=cpp | ||
13304 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
13305 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
13306 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13307 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
13308 | if test -z "$CXX"; then | ||
13309 | if test -n "$CCC"; then | ||
13310 | CXX=$CCC | ||
13311 | else | ||
13312 | if test -n "$ac_tool_prefix"; then | ||
13313 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | ||
13314 | do | ||
13315 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
13316 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
13317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
13318 | $as_echo_n "checking for $ac_word... " >&6; } | ||
13319 | if test "${ac_cv_prog_CXX+set}" = set; then : | ||
13320 | $as_echo_n "(cached) " >&6 | ||
13321 | else | ||
13322 | if test -n "$CXX"; then | ||
13323 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | ||
13324 | else | ||
13325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
13326 | for as_dir in $PATH | ||
13327 | do | ||
13328 | IFS=$as_save_IFS | ||
13329 | test -z "$as_dir" && as_dir=. | ||
13330 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
13331 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
13332 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | ||
13333 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
13334 | break 2 | ||
13335 | fi | ||
13336 | done | ||
13337 | done | ||
13338 | IFS=$as_save_IFS | ||
13339 | |||
13340 | fi | ||
13341 | fi | ||
13342 | CXX=$ac_cv_prog_CXX | ||
13343 | if test -n "$CXX"; then | ||
13344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | ||
13345 | $as_echo "$CXX" >&6; } | ||
13346 | else | ||
13347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13348 | $as_echo "no" >&6; } | ||
13349 | fi | ||
13350 | |||
13351 | |||
13352 | test -n "$CXX" && break | ||
13353 | done | ||
13354 | fi | ||
13355 | if test -z "$CXX"; then | ||
13356 | ac_ct_CXX=$CXX | ||
13357 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | ||
13358 | do | ||
13359 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
13360 | set dummy $ac_prog; ac_word=$2 | ||
13361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
13362 | $as_echo_n "checking for $ac_word... " >&6; } | ||
13363 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | ||
13364 | $as_echo_n "(cached) " >&6 | ||
13365 | else | ||
13366 | if test -n "$ac_ct_CXX"; then | ||
13367 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | ||
13368 | else | ||
13369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
13370 | for as_dir in $PATH | ||
13371 | do | ||
13372 | IFS=$as_save_IFS | ||
13373 | test -z "$as_dir" && as_dir=. | ||
13374 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
13375 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
13376 | ac_cv_prog_ac_ct_CXX="$ac_prog" | ||
13377 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
13378 | break 2 | ||
13379 | fi | ||
13380 | done | ||
13381 | done | ||
13382 | IFS=$as_save_IFS | ||
13383 | |||
13384 | fi | ||
13385 | fi | ||
13386 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | ||
13387 | if test -n "$ac_ct_CXX"; then | ||
13388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | ||
13389 | $as_echo "$ac_ct_CXX" >&6; } | ||
13390 | else | ||
13391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13392 | $as_echo "no" >&6; } | ||
13393 | fi | ||
13394 | |||
13395 | |||
13396 | test -n "$ac_ct_CXX" && break | ||
13397 | done | ||
13398 | |||
13399 | if test "x$ac_ct_CXX" = x; then | ||
13400 | CXX="g++" | ||
13401 | else | ||
13402 | case $cross_compiling:$ac_tool_warned in | ||
13403 | yes:) | ||
13404 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
13405 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
13406 | ac_tool_warned=yes ;; | ||
13407 | esac | ||
13408 | CXX=$ac_ct_CXX | ||
13409 | fi | ||
13410 | fi | ||
13411 | |||
13412 | fi | ||
13413 | fi | ||
13414 | # Provide some information about the compiler. | ||
13415 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | ||
13416 | set X $ac_compile | ||
13417 | ac_compiler=$2 | ||
13418 | for ac_option in --version -v -V -qversion; do | ||
13419 | { { ac_try="$ac_compiler $ac_option >&5" | ||
13420 | case "(($ac_try" in | ||
13421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13422 | *) ac_try_echo=$ac_try;; | ||
13423 | esac | ||
13424 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
13425 | $as_echo "$ac_try_echo"; } >&5 | ||
13426 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
13427 | ac_status=$? | ||
13428 | if test -s conftest.err; then | ||
13429 | sed '10a\ | ||
13430 | ... rest of stderr output deleted ... | ||
13431 | 10q' conftest.err >conftest.er1 | ||
13432 | cat conftest.er1 >&5 | ||
13433 | fi | ||
13434 | rm -f conftest.er1 conftest.err | ||
13435 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13436 | test $ac_status = 0; } | ||
13437 | done | ||
13438 | |||
13439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | ||
13440 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | ||
13441 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | ||
13442 | $as_echo_n "(cached) " >&6 | ||
13443 | else | ||
13444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13445 | /* end confdefs.h. */ | ||
13446 | |||
13447 | int | ||
13448 | main () | ||
13449 | { | ||
13450 | #ifndef __GNUC__ | ||
13451 | choke me | ||
13452 | #endif | ||
13453 | |||
13454 | ; | ||
13455 | return 0; | ||
13456 | } | ||
13457 | _ACEOF | ||
13458 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
13459 | ac_compiler_gnu=yes | ||
13460 | else | ||
13461 | ac_compiler_gnu=no | ||
13462 | fi | ||
13463 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13464 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | ||
13465 | |||
13466 | fi | ||
13467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | ||
13468 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | ||
13469 | if test $ac_compiler_gnu = yes; then | ||
13470 | GXX=yes | ||
13471 | else | ||
13472 | GXX= | ||
13473 | fi | ||
13474 | ac_test_CXXFLAGS=${CXXFLAGS+set} | ||
13475 | ac_save_CXXFLAGS=$CXXFLAGS | ||
13476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | ||
13477 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | ||
13478 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | ||
13479 | $as_echo_n "(cached) " >&6 | ||
13480 | else | ||
13481 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | ||
13482 | ac_cxx_werror_flag=yes | ||
13483 | ac_cv_prog_cxx_g=no | ||
13484 | CXXFLAGS="-g" | ||
13485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13486 | /* end confdefs.h. */ | ||
13487 | |||
13488 | int | ||
13489 | main () | ||
13490 | { | ||
13491 | |||
13492 | ; | ||
13493 | return 0; | ||
13494 | } | ||
13495 | _ACEOF | ||
13496 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
13497 | ac_cv_prog_cxx_g=yes | ||
13498 | else | ||
13499 | CXXFLAGS="" | ||
13500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13501 | /* end confdefs.h. */ | ||
13502 | |||
13503 | int | ||
13504 | main () | ||
13505 | { | ||
13506 | |||
13507 | ; | ||
13508 | return 0; | ||
13509 | } | ||
13510 | _ACEOF | ||
13511 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
13512 | |||
13513 | else | ||
13514 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
13515 | CXXFLAGS="-g" | ||
13516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13517 | /* end confdefs.h. */ | ||
13518 | |||
13519 | int | ||
13520 | main () | ||
13521 | { | ||
13522 | |||
13523 | ; | ||
13524 | return 0; | ||
13525 | } | ||
13526 | _ACEOF | ||
13527 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
13528 | ac_cv_prog_cxx_g=yes | ||
13529 | fi | ||
13530 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13531 | fi | ||
13532 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13533 | fi | ||
13534 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13535 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
13536 | fi | ||
13537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | ||
13538 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | ||
13539 | if test "$ac_test_CXXFLAGS" = set; then | ||
13540 | CXXFLAGS=$ac_save_CXXFLAGS | ||
13541 | elif test $ac_cv_prog_cxx_g = yes; then | ||
13542 | if test "$GXX" = yes; then | ||
13543 | CXXFLAGS="-g -O2" | ||
13544 | else | ||
13545 | CXXFLAGS="-g" | ||
13546 | fi | ||
13547 | else | ||
13548 | if test "$GXX" = yes; then | ||
13549 | CXXFLAGS="-O2" | ||
13550 | else | ||
13551 | CXXFLAGS= | ||
13552 | fi | ||
13553 | fi | ||
13554 | ac_ext=c | ||
13555 | ac_cpp='$CPP $CPPFLAGS' | ||
13556 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
13557 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13558 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
13559 | |||
13560 | depcc="$CXX" am_compiler_list= | ||
13561 | |||
13562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
13563 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
13564 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : | ||
13565 | $as_echo_n "(cached) " >&6 | ||
13566 | else | ||
13567 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
13568 | # We make a subdir and do the tests there. Otherwise we can end up | ||
13569 | # making bogus files that we don't know about and never remove. For | ||
13570 | # instance it was reported that on HP-UX the gcc test will end up | ||
13571 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
13572 | # in D'. | ||
13573 | mkdir conftest.dir | ||
13574 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
13575 | # using a relative directory. | ||
13576 | cp "$am_depcomp" conftest.dir | ||
13577 | cd conftest.dir | ||
13578 | # We will build objects and dependencies in a subdirectory because | ||
13579 | # it helps to detect inapplicable dependency modes. For instance | ||
13580 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
13581 | # side effect of compilation, but ICC will put the dependencies in | ||
13582 | # the current directory while Tru64 will put them in the object | ||
13583 | # directory. | ||
13584 | mkdir sub | ||
13585 | |||
13586 | am_cv_CXX_dependencies_compiler_type=none | ||
13587 | if test "$am_compiler_list" = ""; then | ||
13588 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
13589 | fi | ||
13590 | am__universal=false | ||
13591 | case " $depcc " in #( | ||
13592 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
13593 | esac | ||
13594 | |||
13595 | for depmode in $am_compiler_list; do | ||
13596 | # Setup a source with many dependencies, because some compilers | ||
13597 | # like to wrap large dependency lists on column 80 (with \), and | ||
13598 | # we should not choose a depcomp mode which is confused by this. | ||
13599 | # | ||
13600 | # We need to recreate these files for each test, as the compiler may | ||
13601 | # overwrite some of them when testing with obscure command lines. | ||
13602 | # This happens at least with the AIX C compiler. | ||
13603 | : > sub/conftest.c | ||
13604 | for i in 1 2 3 4 5 6; do | ||
13605 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
13606 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
13607 | # Solaris 8's {/usr,}/bin/sh. | ||
13608 | touch sub/conftst$i.h | ||
13609 | done | ||
13610 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
13611 | |||
13612 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
13613 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
13614 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
13615 | # versions had trouble with output in subdirs | ||
13616 | am__obj=sub/conftest.${OBJEXT-o} | ||
13617 | am__minus_obj="-o $am__obj" | ||
13618 | case $depmode in | ||
13619 | gcc) | ||
13620 | # This depmode causes a compiler race in universal mode. | ||
13621 | test "$am__universal" = false || continue | ||
13622 | ;; | ||
13623 | nosideeffect) | ||
13624 | # after this tag, mechanisms are not by side-effect, so they'll | ||
13625 | # only be used when explicitly requested | ||
13626 | if test "x$enable_dependency_tracking" = xyes; then | ||
13627 | continue | ||
13628 | else | ||
13629 | break | ||
13630 | fi | ||
13631 | ;; | ||
13632 | msvisualcpp | msvcmsys) | ||
13633 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
13634 | # not run yet. These depmodes are late enough in the game, and | ||
13635 | # so weak that their functioning should not be impacted. | ||
13636 | am__obj=conftest.${OBJEXT-o} | ||
13637 | am__minus_obj= | ||
13638 | ;; | ||
13639 | none) break ;; | ||
13640 | esac | ||
13641 | if depmode=$depmode \ | ||
13642 | source=sub/conftest.c object=$am__obj \ | ||
13643 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
13644 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
13645 | >/dev/null 2>conftest.err && | ||
13646 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
13647 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
13648 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
13649 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
13650 | # icc doesn't choke on unknown options, it will just issue warnings | ||
13651 | # or remarks (even with -Werror). So we grep stderr for any message | ||
13652 | # that says an option was ignored or not supported. | ||
13653 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
13654 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
13655 | # The diagnosis changed in icc 8.0: | ||
13656 | # icc: Command line remark: option '-MP' not supported | ||
13657 | if (grep 'ignoring option' conftest.err || | ||
13658 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
13659 | am_cv_CXX_dependencies_compiler_type=$depmode | ||
13660 | break | ||
13661 | fi | ||
13662 | fi | ||
13663 | done | ||
13664 | |||
13665 | cd .. | ||
13666 | rm -rf conftest.dir | ||
13667 | else | ||
13668 | am_cv_CXX_dependencies_compiler_type=none | ||
13669 | fi | ||
13670 | |||
13671 | fi | ||
13672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | ||
13673 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | ||
13674 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | ||
13675 | |||
13676 | if | ||
13677 | test "x$enable_dependency_tracking" != xno \ | ||
13678 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | ||
13679 | am__fastdepCXX_TRUE= | ||
13680 | am__fastdepCXX_FALSE='#' | ||
13681 | else | ||
13682 | am__fastdepCXX_TRUE='#' | ||
13683 | am__fastdepCXX_FALSE= | ||
13684 | fi | ||
13685 | |||
13686 | |||
13687 | |||
13688 | ac_ext=cpp | ||
13689 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
13690 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
13691 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13692 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
13693 | if test -z "$CXX"; then | ||
13694 | if test -n "$CCC"; then | ||
13695 | CXX=$CCC | ||
13696 | else | ||
13697 | if test -n "$ac_tool_prefix"; then | ||
13698 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | ||
13699 | do | ||
13700 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
13701 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
13702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
13703 | $as_echo_n "checking for $ac_word... " >&6; } | ||
13704 | if test "${ac_cv_prog_CXX+set}" = set; then : | ||
13705 | $as_echo_n "(cached) " >&6 | ||
13706 | else | ||
13707 | if test -n "$CXX"; then | ||
13708 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | ||
13709 | else | ||
13710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
13711 | for as_dir in $PATH | ||
13712 | do | ||
13713 | IFS=$as_save_IFS | ||
13714 | test -z "$as_dir" && as_dir=. | ||
13715 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
13716 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
13717 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | ||
13718 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
13719 | break 2 | ||
13720 | fi | ||
13721 | done | ||
13722 | done | ||
13723 | IFS=$as_save_IFS | ||
13724 | |||
13725 | fi | ||
13726 | fi | ||
13727 | CXX=$ac_cv_prog_CXX | ||
13728 | if test -n "$CXX"; then | ||
13729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | ||
13730 | $as_echo "$CXX" >&6; } | ||
13731 | else | ||
13732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13733 | $as_echo "no" >&6; } | ||
13734 | fi | ||
13735 | |||
13736 | |||
13737 | test -n "$CXX" && break | ||
13738 | done | ||
13739 | fi | ||
13740 | if test -z "$CXX"; then | ||
13741 | ac_ct_CXX=$CXX | ||
13742 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | ||
13743 | do | ||
13744 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
13745 | set dummy $ac_prog; ac_word=$2 | ||
13746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
13747 | $as_echo_n "checking for $ac_word... " >&6; } | ||
13748 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | ||
13749 | $as_echo_n "(cached) " >&6 | ||
13750 | else | ||
13751 | if test -n "$ac_ct_CXX"; then | ||
13752 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | ||
13753 | else | ||
13754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
13755 | for as_dir in $PATH | ||
13756 | do | ||
13757 | IFS=$as_save_IFS | ||
13758 | test -z "$as_dir" && as_dir=. | ||
13759 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
13760 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
13761 | ac_cv_prog_ac_ct_CXX="$ac_prog" | ||
13762 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
13763 | break 2 | ||
13764 | fi | ||
13765 | done | ||
13766 | done | ||
13767 | IFS=$as_save_IFS | ||
13768 | |||
13769 | fi | ||
13770 | fi | ||
13771 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | ||
13772 | if test -n "$ac_ct_CXX"; then | ||
13773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | ||
13774 | $as_echo "$ac_ct_CXX" >&6; } | ||
13775 | else | ||
13776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13777 | $as_echo "no" >&6; } | ||
13778 | fi | ||
13779 | |||
13780 | |||
13781 | test -n "$ac_ct_CXX" && break | ||
13782 | done | ||
13783 | |||
13784 | if test "x$ac_ct_CXX" = x; then | ||
13785 | CXX="g++" | ||
13786 | else | ||
13787 | case $cross_compiling:$ac_tool_warned in | ||
13788 | yes:) | ||
13789 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
13790 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
13791 | ac_tool_warned=yes ;; | ||
13792 | esac | ||
13793 | CXX=$ac_ct_CXX | ||
13794 | fi | ||
13795 | fi | ||
13796 | |||
13797 | fi | ||
13798 | fi | ||
13799 | # Provide some information about the compiler. | ||
13800 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | ||
13801 | set X $ac_compile | ||
13802 | ac_compiler=$2 | ||
13803 | for ac_option in --version -v -V -qversion; do | ||
13804 | { { ac_try="$ac_compiler $ac_option >&5" | ||
13805 | case "(($ac_try" in | ||
13806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13807 | *) ac_try_echo=$ac_try;; | ||
13808 | esac | ||
13809 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
13810 | $as_echo "$ac_try_echo"; } >&5 | ||
13811 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
13812 | ac_status=$? | ||
13813 | if test -s conftest.err; then | ||
13814 | sed '10a\ | ||
13815 | ... rest of stderr output deleted ... | ||
13816 | 10q' conftest.err >conftest.er1 | ||
13817 | cat conftest.er1 >&5 | ||
13818 | fi | ||
13819 | rm -f conftest.er1 conftest.err | ||
13820 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13821 | test $ac_status = 0; } | ||
13822 | done | ||
13823 | |||
13824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | ||
13825 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | ||
13826 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | ||
13827 | $as_echo_n "(cached) " >&6 | ||
13828 | else | ||
13829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13830 | /* end confdefs.h. */ | ||
13831 | |||
13832 | int | ||
13833 | main () | ||
13834 | { | ||
13835 | #ifndef __GNUC__ | ||
13836 | choke me | ||
13837 | #endif | ||
13838 | |||
13839 | ; | ||
13840 | return 0; | ||
13841 | } | ||
13842 | _ACEOF | ||
13843 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
13844 | ac_compiler_gnu=yes | ||
13845 | else | ||
13846 | ac_compiler_gnu=no | ||
13847 | fi | ||
13848 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13849 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | ||
13850 | |||
13851 | fi | ||
13852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | ||
13853 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | ||
13854 | if test $ac_compiler_gnu = yes; then | ||
13855 | GXX=yes | ||
13856 | else | ||
13857 | GXX= | ||
13858 | fi | ||
13859 | ac_test_CXXFLAGS=${CXXFLAGS+set} | ||
13860 | ac_save_CXXFLAGS=$CXXFLAGS | ||
13861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | ||
13862 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | ||
13863 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | ||
13864 | $as_echo_n "(cached) " >&6 | ||
13865 | else | ||
13866 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | ||
13867 | ac_cxx_werror_flag=yes | ||
13868 | ac_cv_prog_cxx_g=no | ||
13869 | CXXFLAGS="-g" | ||
13870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13871 | /* end confdefs.h. */ | ||
13872 | |||
13873 | int | ||
13874 | main () | ||
13875 | { | ||
13876 | |||
13877 | ; | ||
13878 | return 0; | ||
13879 | } | ||
13880 | _ACEOF | ||
13881 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
13882 | ac_cv_prog_cxx_g=yes | ||
13883 | else | ||
13884 | CXXFLAGS="" | ||
13885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13886 | /* end confdefs.h. */ | ||
13887 | |||
13888 | int | ||
13889 | main () | ||
13890 | { | ||
13891 | |||
13892 | ; | ||
13893 | return 0; | ||
13894 | } | ||
13895 | _ACEOF | ||
13896 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
13897 | |||
13898 | else | ||
13899 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
13900 | CXXFLAGS="-g" | ||
13901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13902 | /* end confdefs.h. */ | ||
13903 | |||
13904 | int | ||
13905 | main () | ||
13906 | { | ||
13907 | |||
13908 | ; | ||
13909 | return 0; | ||
13910 | } | ||
13911 | _ACEOF | ||
13912 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
13913 | ac_cv_prog_cxx_g=yes | ||
13914 | fi | ||
13915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13916 | fi | ||
13917 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13918 | fi | ||
13919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13920 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
13921 | fi | ||
13922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | ||
13923 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | ||
13924 | if test "$ac_test_CXXFLAGS" = set; then | ||
13925 | CXXFLAGS=$ac_save_CXXFLAGS | ||
13926 | elif test $ac_cv_prog_cxx_g = yes; then | ||
13927 | if test "$GXX" = yes; then | ||
13928 | CXXFLAGS="-g -O2" | ||
13929 | else | ||
13930 | CXXFLAGS="-g" | ||
13931 | fi | ||
13932 | else | ||
13933 | if test "$GXX" = yes; then | ||
13934 | CXXFLAGS="-O2" | ||
13935 | else | ||
13936 | CXXFLAGS= | ||
13937 | fi | ||
13938 | fi | ||
13939 | ac_ext=c | ||
13940 | ac_cpp='$CPP $CPPFLAGS' | ||
13941 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
13942 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13943 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
13944 | |||
13945 | depcc="$CXX" am_compiler_list= | ||
13946 | |||
13947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
13948 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
13949 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : | ||
13950 | $as_echo_n "(cached) " >&6 | ||
13951 | else | ||
13952 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
13953 | # We make a subdir and do the tests there. Otherwise we can end up | ||
13954 | # making bogus files that we don't know about and never remove. For | ||
13955 | # instance it was reported that on HP-UX the gcc test will end up | ||
13956 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
13957 | # in D'. | ||
13958 | mkdir conftest.dir | ||
13959 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
13960 | # using a relative directory. | ||
13961 | cp "$am_depcomp" conftest.dir | ||
13962 | cd conftest.dir | ||
13963 | # We will build objects and dependencies in a subdirectory because | ||
13964 | # it helps to detect inapplicable dependency modes. For instance | ||
13965 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
13966 | # side effect of compilation, but ICC will put the dependencies in | ||
13967 | # the current directory while Tru64 will put them in the object | ||
13968 | # directory. | ||
13969 | mkdir sub | ||
13970 | |||
13971 | am_cv_CXX_dependencies_compiler_type=none | ||
13972 | if test "$am_compiler_list" = ""; then | ||
13973 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
13974 | fi | ||
13975 | am__universal=false | ||
13976 | case " $depcc " in #( | ||
13977 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
13978 | esac | ||
13979 | |||
13980 | for depmode in $am_compiler_list; do | ||
13981 | # Setup a source with many dependencies, because some compilers | ||
13982 | # like to wrap large dependency lists on column 80 (with \), and | ||
13983 | # we should not choose a depcomp mode which is confused by this. | ||
13984 | # | ||
13985 | # We need to recreate these files for each test, as the compiler may | ||
13986 | # overwrite some of them when testing with obscure command lines. | ||
13987 | # This happens at least with the AIX C compiler. | ||
13988 | : > sub/conftest.c | ||
13989 | for i in 1 2 3 4 5 6; do | ||
13990 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
13991 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
13992 | # Solaris 8's {/usr,}/bin/sh. | ||
13993 | touch sub/conftst$i.h | ||
13994 | done | ||
13995 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
13996 | |||
13997 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
13998 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
13999 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
14000 | # versions had trouble with output in subdirs | ||
14001 | am__obj=sub/conftest.${OBJEXT-o} | ||
14002 | am__minus_obj="-o $am__obj" | ||
14003 | case $depmode in | ||
14004 | gcc) | ||
14005 | # This depmode causes a compiler race in universal mode. | ||
14006 | test "$am__universal" = false || continue | ||
14007 | ;; | ||
14008 | nosideeffect) | ||
14009 | # after this tag, mechanisms are not by side-effect, so they'll | ||
14010 | # only be used when explicitly requested | ||
14011 | if test "x$enable_dependency_tracking" = xyes; then | ||
14012 | continue | ||
14013 | else | ||
14014 | break | ||
14015 | fi | ||
14016 | ;; | ||
14017 | msvisualcpp | msvcmsys) | ||
14018 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
14019 | # not run yet. These depmodes are late enough in the game, and | ||
14020 | # so weak that their functioning should not be impacted. | ||
14021 | am__obj=conftest.${OBJEXT-o} | ||
14022 | am__minus_obj= | ||
14023 | ;; | ||
14024 | none) break ;; | ||
14025 | esac | ||
14026 | if depmode=$depmode \ | ||
14027 | source=sub/conftest.c object=$am__obj \ | ||
14028 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
14029 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
14030 | >/dev/null 2>conftest.err && | ||
14031 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
14032 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
14033 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
14034 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
14035 | # icc doesn't choke on unknown options, it will just issue warnings | ||
14036 | # or remarks (even with -Werror). So we grep stderr for any message | ||
14037 | # that says an option was ignored or not supported. | ||
14038 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
14039 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
14040 | # The diagnosis changed in icc 8.0: | ||
14041 | # icc: Command line remark: option '-MP' not supported | ||
14042 | if (grep 'ignoring option' conftest.err || | ||
14043 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
14044 | am_cv_CXX_dependencies_compiler_type=$depmode | ||
14045 | break | ||
14046 | fi | ||
14047 | fi | ||
14048 | done | ||
14049 | |||
14050 | cd .. | ||
14051 | rm -rf conftest.dir | ||
14052 | else | ||
14053 | am_cv_CXX_dependencies_compiler_type=none | ||
14054 | fi | ||
14055 | |||
14056 | fi | ||
14057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | ||
14058 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | ||
14059 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | ||
14060 | |||
14061 | if | ||
14062 | test "x$enable_dependency_tracking" != xno \ | ||
14063 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | ||
14064 | am__fastdepCXX_TRUE= | ||
14065 | am__fastdepCXX_FALSE='#' | ||
14066 | else | ||
14067 | am__fastdepCXX_TRUE='#' | ||
14068 | am__fastdepCXX_FALSE= | ||
14069 | fi | ||
14070 | |||
14071 | |||
14072 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | ||
14073 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | ||
14074 | (test "X$CXX" != "Xg++"))) ; then | ||
14075 | ac_ext=cpp | ||
14076 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
14077 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
14078 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
14079 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
14080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | ||
14081 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | ||
14082 | if test -z "$CXXCPP"; then | ||
14083 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | ||
14084 | $as_echo_n "(cached) " >&6 | ||
14085 | else | ||
14086 | # Double quotes because CXXCPP needs to be expanded | ||
14087 | for CXXCPP in "$CXX -E" "/lib/cpp" | ||
14088 | do | ||
14089 | ac_preproc_ok=false | ||
14090 | for ac_cxx_preproc_warn_flag in '' yes | ||
14091 | do | ||
14092 | # Use a header file that comes with gcc, so configuring glibc | ||
14093 | # with a fresh cross-compiler works. | ||
14094 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14095 | # <limits.h> exists even on freestanding compilers. | ||
14096 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
14097 | # not just through cpp. "Syntax error" is here to catch this case. | ||
14098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14099 | /* end confdefs.h. */ | ||
14100 | #ifdef __STDC__ | ||
14101 | # include <limits.h> | ||
14102 | #else | ||
14103 | # include <assert.h> | ||
14104 | #endif | ||
14105 | Syntax error | ||
14106 | _ACEOF | ||
14107 | if ac_fn_cxx_try_cpp "$LINENO"; then : | ||
14108 | |||
14109 | else | ||
14110 | # Broken: fails on valid input. | ||
14111 | continue | ||
14112 | fi | ||
14113 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
14114 | |||
14115 | # OK, works on sane cases. Now check whether nonexistent headers | ||
14116 | # can be detected and how. | ||
14117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14118 | /* end confdefs.h. */ | ||
14119 | #include <ac_nonexistent.h> | ||
14120 | _ACEOF | ||
14121 | if ac_fn_cxx_try_cpp "$LINENO"; then : | ||
14122 | # Broken: success on invalid input. | ||
14123 | continue | ||
14124 | else | ||
14125 | # Passes both tests. | ||
14126 | ac_preproc_ok=: | ||
14127 | break | ||
14128 | fi | ||
14129 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
14130 | |||
14131 | done | ||
14132 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
14133 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
14134 | if $ac_preproc_ok; then : | ||
14135 | break | ||
14136 | fi | ||
14137 | |||
14138 | done | ||
14139 | ac_cv_prog_CXXCPP=$CXXCPP | ||
14140 | |||
14141 | fi | ||
14142 | CXXCPP=$ac_cv_prog_CXXCPP | ||
14143 | else | ||
14144 | ac_cv_prog_CXXCPP=$CXXCPP | ||
14145 | fi | ||
14146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | ||
14147 | $as_echo "$CXXCPP" >&6; } | ||
14148 | ac_preproc_ok=false | ||
14149 | for ac_cxx_preproc_warn_flag in '' yes | ||
14150 | do | ||
14151 | # Use a header file that comes with gcc, so configuring glibc | ||
14152 | # with a fresh cross-compiler works. | ||
14153 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14154 | # <limits.h> exists even on freestanding compilers. | ||
14155 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
14156 | # not just through cpp. "Syntax error" is here to catch this case. | ||
14157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14158 | /* end confdefs.h. */ | ||
14159 | #ifdef __STDC__ | ||
14160 | # include <limits.h> | ||
14161 | #else | ||
14162 | # include <assert.h> | ||
14163 | #endif | ||
14164 | Syntax error | ||
14165 | _ACEOF | ||
14166 | if ac_fn_cxx_try_cpp "$LINENO"; then : | ||
14167 | |||
14168 | else | ||
14169 | # Broken: fails on valid input. | ||
14170 | continue | ||
14171 | fi | ||
14172 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
14173 | |||
14174 | # OK, works on sane cases. Now check whether nonexistent headers | ||
14175 | # can be detected and how. | ||
14176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14177 | /* end confdefs.h. */ | ||
14178 | #include <ac_nonexistent.h> | ||
14179 | _ACEOF | ||
14180 | if ac_fn_cxx_try_cpp "$LINENO"; then : | ||
14181 | # Broken: success on invalid input. | ||
14182 | continue | ||
14183 | else | ||
14184 | # Passes both tests. | ||
14185 | ac_preproc_ok=: | ||
14186 | break | ||
14187 | fi | ||
14188 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
14189 | |||
14190 | done | ||
14191 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
14192 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
14193 | if $ac_preproc_ok; then : | ||
14194 | |||
14195 | else | ||
14196 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
14197 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
14198 | _lt_caught_CXX_error=yes; } | ||
14199 | fi | ||
14200 | |||
14201 | ac_ext=c | ||
14202 | ac_cpp='$CPP $CPPFLAGS' | ||
14203 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
14204 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
14205 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
14206 | |||
14207 | else | ||
14208 | _lt_caught_CXX_error=yes | ||
14209 | fi | ||
14210 | |||
14211 | |||
14212 | |||
14213 | |||
14214 | ac_ext=cpp | ||
14215 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
14216 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
14217 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
14218 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
14219 | |||
14220 | archive_cmds_need_lc_CXX=no | ||
14221 | allow_undefined_flag_CXX= | ||
14222 | always_export_symbols_CXX=no | ||
14223 | archive_expsym_cmds_CXX= | ||
14224 | compiler_needs_object_CXX=no | ||
14225 | export_dynamic_flag_spec_CXX= | ||
14226 | hardcode_direct_CXX=no | ||
14227 | hardcode_direct_absolute_CXX=no | ||
14228 | hardcode_libdir_flag_spec_CXX= | ||
14229 | hardcode_libdir_flag_spec_ld_CXX= | ||
14230 | hardcode_libdir_separator_CXX= | ||
14231 | hardcode_minus_L_CXX=no | ||
14232 | hardcode_shlibpath_var_CXX=unsupported | ||
14233 | hardcode_automatic_CXX=no | ||
14234 | inherit_rpath_CXX=no | ||
14235 | module_cmds_CXX= | ||
14236 | module_expsym_cmds_CXX= | ||
14237 | link_all_deplibs_CXX=unknown | ||
14238 | old_archive_cmds_CXX=$old_archive_cmds | ||
14239 | no_undefined_flag_CXX= | ||
14240 | whole_archive_flag_spec_CXX= | ||
14241 | enable_shared_with_static_runtimes_CXX=no | ||
14242 | |||
14243 | # Source file extension for C++ test sources. | ||
14244 | ac_ext=cpp | ||
14245 | |||
14246 | # Object file extension for compiled C++ test sources. | ||
14247 | objext=o | ||
14248 | objext_CXX=$objext | ||
14249 | |||
14250 | # No sense in running all these tests if we already determined that | ||
14251 | # the CXX compiler isn't working. Some variables (like enable_shared) | ||
14252 | # are currently assumed to apply to all compilers on this platform, | ||
14253 | # and will be corrupted by setting them based on a non-working compiler. | ||
14254 | if test "$_lt_caught_CXX_error" != yes; then | ||
14255 | # Code to be used in simple compile tests | ||
14256 | lt_simple_compile_test_code="int some_variable = 0;" | ||
14257 | |||
14258 | # Code to be used in simple link tests | ||
14259 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | ||
14260 | |||
14261 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
14262 | |||
14263 | |||
14264 | |||
14265 | |||
14266 | |||
14267 | |||
14268 | # If no C compiler was specified, use CC. | ||
14269 | LTCC=${LTCC-"$CC"} | ||
14270 | |||
14271 | # If no C compiler flags were specified, use CFLAGS. | ||
14272 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
14273 | |||
14274 | # Allow CC to be a program name with arguments. | ||
14275 | compiler=$CC | ||
14276 | |||
14277 | |||
14278 | # save warnings/boilerplate of simple test code | ||
14279 | ac_outfile=conftest.$ac_objext | ||
14280 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
14281 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
14282 | _lt_compiler_boilerplate=`cat conftest.err` | ||
14283 | $RM conftest* | ||
14284 | |||
14285 | ac_outfile=conftest.$ac_objext | ||
14286 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | ||
14287 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
14288 | _lt_linker_boilerplate=`cat conftest.err` | ||
14289 | $RM -r conftest* | ||
14290 | |||
14291 | |||
14292 | # Allow CC to be a program name with arguments. | ||
14293 | lt_save_CC=$CC | ||
14294 | lt_save_LD=$LD | ||
14295 | lt_save_GCC=$GCC | ||
14296 | GCC=$GXX | ||
14297 | lt_save_with_gnu_ld=$with_gnu_ld | ||
14298 | lt_save_path_LD=$lt_cv_path_LD | ||
14299 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | ||
14300 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | ||
14301 | else | ||
14302 | $as_unset lt_cv_prog_gnu_ld | ||
14303 | fi | ||
14304 | if test -n "${lt_cv_path_LDCXX+set}"; then | ||
14305 | lt_cv_path_LD=$lt_cv_path_LDCXX | ||
14306 | else | ||
14307 | $as_unset lt_cv_path_LD | ||
14308 | fi | ||
14309 | test -z "${LDCXX+set}" || LD=$LDCXX | ||
14310 | CC=${CXX-"c++"} | ||
14311 | compiler=$CC | ||
14312 | compiler_CXX=$CC | ||
14313 | for cc_temp in $compiler""; do | ||
14314 | case $cc_temp in | ||
14315 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | ||
14316 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | ||
14317 | \-*) ;; | ||
14318 | *) break;; | ||
14319 | esac | ||
14320 | done | ||
14321 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
14322 | |||
14323 | |||
14324 | if test -n "$compiler"; then | ||
14325 | # We don't want -fno-exception when compiling C++ code, so set the | ||
14326 | # no_builtin_flag separately | ||
14327 | if test "$GXX" = yes; then | ||
14328 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | ||
14329 | else | ||
14330 | lt_prog_compiler_no_builtin_flag_CXX= | ||
14331 | fi | ||
14332 | |||
14333 | if test "$GXX" = yes; then | ||
14334 | # Set up default GNU C++ configuration | ||
14335 | |||
14336 | |||
14337 | |||
14338 | # Check whether --with-gnu-ld was given. | ||
14339 | if test "${with_gnu_ld+set}" = set; then : | ||
14340 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | ||
14341 | else | ||
14342 | with_gnu_ld=no | ||
14343 | fi | ||
14344 | |||
14345 | ac_prog=ld | ||
14346 | if test "$GCC" = yes; then | ||
14347 | # Check if gcc -print-prog-name=ld gives a path. | ||
14348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | ||
14349 | $as_echo_n "checking for ld used by $CC... " >&6; } | ||
14350 | case $host in | ||
14351 | *-*-mingw*) | ||
14352 | # gcc leaves a trailing carriage return which upsets mingw | ||
14353 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
14354 | *) | ||
14355 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
14356 | esac | ||
14357 | case $ac_prog in | ||
14358 | # Accept absolute paths. | ||
14359 | [\\/]* | ?:[\\/]*) | ||
14360 | re_direlt='/[^/][^/]*/\.\./' | ||
14361 | # Canonicalize the pathname of ld | ||
14362 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | ||
14363 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | ||
14364 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | ||
14365 | done | ||
14366 | test -z "$LD" && LD="$ac_prog" | ||
14367 | ;; | ||
14368 | "") | ||
14369 | # If it fails, then pretend we aren't using GCC. | ||
14370 | ac_prog=ld | ||
14371 | ;; | ||
14372 | *) | ||
14373 | # If it is relative, then search for the first ld in PATH. | ||
14374 | with_gnu_ld=unknown | ||
14375 | ;; | ||
14376 | esac | ||
14377 | elif test "$with_gnu_ld" = yes; then | ||
14378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | ||
14379 | $as_echo_n "checking for GNU ld... " >&6; } | ||
14380 | else | ||
14381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | ||
14382 | $as_echo_n "checking for non-GNU ld... " >&6; } | ||
14383 | fi | ||
14384 | if test "${lt_cv_path_LD+set}" = set; then : | ||
14385 | $as_echo_n "(cached) " >&6 | ||
14386 | else | ||
14387 | if test -z "$LD"; then | ||
14388 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
14389 | for ac_dir in $PATH; do | ||
14390 | IFS="$lt_save_ifs" | ||
14391 | test -z "$ac_dir" && ac_dir=. | ||
14392 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
14393 | lt_cv_path_LD="$ac_dir/$ac_prog" | ||
14394 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
14395 | # but apparently some variants of GNU ld only accept -v. | ||
14396 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
14397 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
14398 | *GNU* | *'with BFD'*) | ||
14399 | test "$with_gnu_ld" != no && break | ||
14400 | ;; | ||
14401 | *) | ||
14402 | test "$with_gnu_ld" != yes && break | ||
14403 | ;; | ||
14404 | esac | ||
14405 | fi | ||
14406 | done | ||
14407 | IFS="$lt_save_ifs" | ||
14408 | else | ||
14409 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
14410 | fi | ||
14411 | fi | ||
14412 | |||
14413 | LD="$lt_cv_path_LD" | ||
14414 | if test -n "$LD"; then | ||
14415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | ||
14416 | $as_echo "$LD" >&6; } | ||
14417 | else | ||
14418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14419 | $as_echo "no" >&6; } | ||
14420 | fi | ||
14421 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | ||
14422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | ||
14423 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | ||
14424 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | ||
14425 | $as_echo_n "(cached) " >&6 | ||
14426 | else | ||
14427 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | ||
14428 | case `$LD -v 2>&1 </dev/null` in | ||
14429 | *GNU* | *'with BFD'*) | ||
14430 | lt_cv_prog_gnu_ld=yes | ||
14431 | ;; | ||
14432 | *) | ||
14433 | lt_cv_prog_gnu_ld=no | ||
14434 | ;; | ||
14435 | esac | ||
14436 | fi | ||
14437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | ||
14438 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | ||
14439 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
14440 | |||
14441 | |||
14442 | |||
14443 | |||
14444 | |||
14445 | |||
14446 | |||
14447 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | ||
14448 | # archiving commands below assume that GNU ld is being used. | ||
14449 | if test "$with_gnu_ld" = yes; then | ||
14450 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
14451 | 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' | ||
14452 | |||
14453 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
14454 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
14455 | |||
14456 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
14457 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | ||
14458 | # investigate it a little bit more. (MM) | ||
14459 | wlarc='${wl}' | ||
14460 | |||
14461 | # ancient GNU ld didn't support --whole-archive et. al. | ||
14462 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | ||
14463 | $GREP 'no-whole-archive' > /dev/null; then | ||
14464 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
14465 | else | ||
14466 | whole_archive_flag_spec_CXX= | ||
14467 | fi | ||
14468 | else | ||
14469 | with_gnu_ld=no | ||
14470 | wlarc= | ||
14471 | |||
14472 | # A generic and very simple default shared library creation | ||
14473 | # command for GNU C++ for the case where it uses the native | ||
14474 | # linker, instead of GNU ld. If possible, this setting should | ||
14475 | # overridden to take advantage of the native linker features on | ||
14476 | # the platform it is being used on. | ||
14477 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | ||
14478 | fi | ||
14479 | |||
14480 | # Commands to make compiler produce verbose output that lists | ||
14481 | # what "hidden" libraries, object files and flags are used when | ||
14482 | # linking a shared library. | ||
14483 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | ||
14484 | |||
14485 | else | ||
14486 | GXX=no | ||
14487 | with_gnu_ld=no | ||
14488 | wlarc= | ||
14489 | fi | ||
14490 | |||
14491 | # PORTME: fill in a description of your system's C++ link characteristics | ||
14492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
14493 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | ||
14494 | ld_shlibs_CXX=yes | ||
14495 | case $host_os in | ||
14496 | aix3*) | ||
14497 | # FIXME: insert proper C++ library support | ||
14498 | ld_shlibs_CXX=no | ||
14499 | ;; | ||
14500 | aix[4-9]*) | ||
14501 | if test "$host_cpu" = ia64; then | ||
14502 | # On IA64, the linker does run time linking by default, so we don't | ||
14503 | # have to do anything special. | ||
14504 | aix_use_runtimelinking=no | ||
14505 | exp_sym_flag='-Bexport' | ||
14506 | no_entry_flag="" | ||
14507 | else | ||
14508 | aix_use_runtimelinking=no | ||
14509 | |||
14510 | # Test if we are trying to use run time linking or normal | ||
14511 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
14512 | # need to do runtime linking. | ||
14513 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | ||
14514 | for ld_flag in $LDFLAGS; do | ||
14515 | case $ld_flag in | ||
14516 | *-brtl*) | ||
14517 | aix_use_runtimelinking=yes | ||
14518 | break | ||
14519 | ;; | ||
14520 | esac | ||
14521 | done | ||
14522 | ;; | ||
14523 | esac | ||
14524 | |||
14525 | exp_sym_flag='-bexport' | ||
14526 | no_entry_flag='-bnoentry' | ||
14527 | fi | ||
14528 | |||
14529 | # When large executables or shared objects are built, AIX ld can | ||
14530 | # have problems creating the table of contents. If linking a library | ||
14531 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
14532 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
14533 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
14534 | |||
14535 | archive_cmds_CXX='' | ||
14536 | hardcode_direct_CXX=yes | ||
14537 | hardcode_direct_absolute_CXX=yes | ||
14538 | hardcode_libdir_separator_CXX=':' | ||
14539 | link_all_deplibs_CXX=yes | ||
14540 | file_list_spec_CXX='${wl}-f,' | ||
14541 | |||
14542 | if test "$GXX" = yes; then | ||
14543 | case $host_os in aix4.[012]|aix4.[012].*) | ||
14544 | # We only want to do this on AIX 4.2 and lower, the check | ||
14545 | # below for broken collect2 doesn't work under 4.3+ | ||
14546 | collect2name=`${CC} -print-prog-name=collect2` | ||
14547 | if test -f "$collect2name" && | ||
14548 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | ||
14549 | then | ||
14550 | # We have reworked collect2 | ||
14551 | : | ||
14552 | else | ||
14553 | # We have old collect2 | ||
14554 | hardcode_direct_CXX=unsupported | ||
14555 | # It fails to find uninstalled libraries when the uninstalled | ||
14556 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
14557 | # to unsupported forces relinking | ||
14558 | hardcode_minus_L_CXX=yes | ||
14559 | hardcode_libdir_flag_spec_CXX='-L$libdir' | ||
14560 | hardcode_libdir_separator_CXX= | ||
14561 | fi | ||
14562 | esac | ||
14563 | shared_flag='-shared' | ||
14564 | if test "$aix_use_runtimelinking" = yes; then | ||
14565 | shared_flag="$shared_flag "'${wl}-G' | ||
14566 | fi | ||
14567 | else | ||
14568 | # not using gcc | ||
14569 | if test "$host_cpu" = ia64; then | ||
14570 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
14571 | # chokes on -Wl,-G. The following line is correct: | ||
14572 | shared_flag='-G' | ||
14573 | else | ||
14574 | if test "$aix_use_runtimelinking" = yes; then | ||
14575 | shared_flag='${wl}-G' | ||
14576 | else | ||
14577 | shared_flag='${wl}-bM:SRE' | ||
14578 | fi | ||
14579 | fi | ||
14580 | fi | ||
14581 | |||
14582 | export_dynamic_flag_spec_CXX='${wl}-bexpall' | ||
14583 | # It seems that -bexpall does not export symbols beginning with | ||
14584 | # underscore (_), so it is better to generate a list of symbols to | ||
14585 | # export. | ||
14586 | always_export_symbols_CXX=yes | ||
14587 | if test "$aix_use_runtimelinking" = yes; then | ||
14588 | # Warning - without using the other runtime loading flags (-brtl), | ||
14589 | # -berok will link without error, but may produce a broken library. | ||
14590 | allow_undefined_flag_CXX='-berok' | ||
14591 | # Determine the default libpath from the value encoded in an empty | ||
14592 | # executable. | ||
14593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14594 | /* end confdefs.h. */ | ||
14595 | |||
14596 | int | ||
14597 | main () | ||
14598 | { | ||
14599 | |||
14600 | ; | ||
14601 | return 0; | ||
14602 | } | ||
14603 | _ACEOF | ||
14604 | if ac_fn_cxx_try_link "$LINENO"; then : | ||
14605 | |||
14606 | lt_aix_libpath_sed=' | ||
14607 | /Import File Strings/,/^$/ { | ||
14608 | /^0/ { | ||
14609 | s/^0 *\(.*\)$/\1/ | ||
14610 | p | ||
14611 | } | ||
14612 | }' | ||
14613 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
14614 | # Check for a 64-bit object if we didn't find anything. | ||
14615 | if test -z "$aix_libpath"; then | ||
14616 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
14617 | fi | ||
14618 | fi | ||
14619 | rm -f core conftest.err conftest.$ac_objext \ | ||
14620 | conftest$ac_exeext conftest.$ac_ext | ||
14621 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
14622 | |||
14623 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
14624 | |||
14625 | 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" | ||
14626 | else | ||
14627 | if test "$host_cpu" = ia64; then | ||
14628 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | ||
14629 | allow_undefined_flag_CXX="-z nodefs" | ||
14630 | 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" | ||
14631 | else | ||
14632 | # Determine the default libpath from the value encoded in an | ||
14633 | # empty executable. | ||
14634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14635 | /* end confdefs.h. */ | ||
14636 | |||
14637 | int | ||
14638 | main () | ||
14639 | { | ||
14640 | |||
14641 | ; | ||
14642 | return 0; | ||
14643 | } | ||
14644 | _ACEOF | ||
14645 | if ac_fn_cxx_try_link "$LINENO"; then : | ||
14646 | |||
14647 | lt_aix_libpath_sed=' | ||
14648 | /Import File Strings/,/^$/ { | ||
14649 | /^0/ { | ||
14650 | s/^0 *\(.*\)$/\1/ | ||
14651 | p | ||
14652 | } | ||
14653 | }' | ||
14654 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
14655 | # Check for a 64-bit object if we didn't find anything. | ||
14656 | if test -z "$aix_libpath"; then | ||
14657 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
14658 | fi | ||
14659 | fi | ||
14660 | rm -f core conftest.err conftest.$ac_objext \ | ||
14661 | conftest$ac_exeext conftest.$ac_ext | ||
14662 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
14663 | |||
14664 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
14665 | # Warning - without using the other run time loading flags, | ||
14666 | # -berok will link without error, but may produce a broken library. | ||
14667 | no_undefined_flag_CXX=' ${wl}-bernotok' | ||
14668 | allow_undefined_flag_CXX=' ${wl}-berok' | ||
14669 | # Exported symbols can be pulled into shared objects from archives | ||
14670 | whole_archive_flag_spec_CXX='$convenience' | ||
14671 | archive_cmds_need_lc_CXX=yes | ||
14672 | # This is similar to how AIX traditionally builds its shared | ||
14673 | # libraries. | ||
14674 | 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' | ||
14675 | fi | ||
14676 | fi | ||
14677 | ;; | ||
14678 | |||
14679 | beos*) | ||
14680 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
14681 | allow_undefined_flag_CXX=unsupported | ||
14682 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
14683 | # support --undefined. This deserves some investigation. FIXME | ||
14684 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
14685 | else | ||
14686 | ld_shlibs_CXX=no | ||
14687 | fi | ||
14688 | ;; | ||
14689 | |||
14690 | chorus*) | ||
14691 | case $cc_basename in | ||
14692 | *) | ||
14693 | # FIXME: insert proper C++ library support | ||
14694 | ld_shlibs_CXX=no | ||
14695 | ;; | ||
14696 | esac | ||
14697 | ;; | ||
14698 | |||
14699 | cygwin* | mingw* | pw32* | cegcc*) | ||
14700 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | ||
14701 | # as there is no search path for DLLs. | ||
14702 | hardcode_libdir_flag_spec_CXX='-L$libdir' | ||
14703 | allow_undefined_flag_CXX=unsupported | ||
14704 | always_export_symbols_CXX=no | ||
14705 | enable_shared_with_static_runtimes_CXX=yes | ||
14706 | |||
14707 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
14708 | 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' | ||
14709 | # If the export-symbols file already is a .def file (1st line | ||
14710 | # is EXPORTS), use it as is; otherwise, prepend... | ||
14711 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
14712 | cp $export_symbols $output_objdir/$soname.def; | ||
14713 | else | ||
14714 | echo EXPORTS > $output_objdir/$soname.def; | ||
14715 | cat $export_symbols >> $output_objdir/$soname.def; | ||
14716 | fi~ | ||
14717 | $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' | ||
14718 | else | ||
14719 | ld_shlibs_CXX=no | ||
14720 | fi | ||
14721 | ;; | ||
14722 | darwin* | rhapsody*) | ||
14723 | |||
14724 | |||
14725 | archive_cmds_need_lc_CXX=no | ||
14726 | hardcode_direct_CXX=no | ||
14727 | hardcode_automatic_CXX=yes | ||
14728 | hardcode_shlibpath_var_CXX=unsupported | ||
14729 | whole_archive_flag_spec_CXX='' | ||
14730 | link_all_deplibs_CXX=yes | ||
14731 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | ||
14732 | case $cc_basename in | ||
14733 | ifort*) _lt_dar_can_shared=yes ;; | ||
14734 | *) _lt_dar_can_shared=$GCC ;; | ||
14735 | esac | ||
14736 | if test "$_lt_dar_can_shared" = "yes"; then | ||
14737 | output_verbose_link_cmd=echo | ||
14738 | 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}" | ||
14739 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | ||
14740 | 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}" | ||
14741 | 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}" | ||
14742 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | ||
14743 | 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}" | ||
14744 | 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}" | ||
14745 | fi | ||
14746 | |||
14747 | else | ||
14748 | ld_shlibs_CXX=no | ||
14749 | fi | ||
14750 | |||
14751 | ;; | ||
14752 | |||
14753 | dgux*) | ||
14754 | case $cc_basename in | ||
14755 | ec++*) | ||
14756 | # FIXME: insert proper C++ library support | ||
14757 | ld_shlibs_CXX=no | ||
14758 | ;; | ||
14759 | ghcx*) | ||
14760 | # Green Hills C++ Compiler | ||
14761 | # FIXME: insert proper C++ library support | ||
14762 | ld_shlibs_CXX=no | ||
14763 | ;; | ||
14764 | *) | ||
14765 | # FIXME: insert proper C++ library support | ||
14766 | ld_shlibs_CXX=no | ||
14767 | ;; | ||
14768 | esac | ||
14769 | ;; | ||
14770 | |||
14771 | freebsd[12]*) | ||
14772 | # C++ shared libraries reported to be fairly broken before | ||
14773 | # switch to ELF | ||
14774 | ld_shlibs_CXX=no | ||
14775 | ;; | ||
14776 | |||
14777 | freebsd-elf*) | ||
14778 | archive_cmds_need_lc_CXX=no | ||
14779 | ;; | ||
14780 | |||
14781 | freebsd* | dragonfly*) | ||
14782 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | ||
14783 | # conventions | ||
14784 | ld_shlibs_CXX=yes | ||
14785 | ;; | ||
14786 | |||
14787 | gnu*) | ||
14788 | ;; | ||
14789 | |||
14790 | hpux9*) | ||
14791 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | ||
14792 | hardcode_libdir_separator_CXX=: | ||
14793 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
14794 | hardcode_direct_CXX=yes | ||
14795 | hardcode_minus_L_CXX=yes # Not in the search PATH, | ||
14796 | # but as the default | ||
14797 | # location of the library. | ||
14798 | |||
14799 | case $cc_basename in | ||
14800 | CC*) | ||
14801 | # FIXME: insert proper C++ library support | ||
14802 | ld_shlibs_CXX=no | ||
14803 | ;; | ||
14804 | aCC*) | ||
14805 | 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' | ||
14806 | # Commands to make compiler produce verbose output that lists | ||
14807 | # what "hidden" libraries, object files and flags are used when | ||
14808 | # linking a shared library. | ||
14809 | # | ||
14810 | # There doesn't appear to be a way to prevent this compiler from | ||
14811 | # explicitly linking system object files so we need to strip them | ||
14812 | # from the output so that they don't get included in the library | ||
14813 | # dependencies. | ||
14814 | 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' | ||
14815 | ;; | ||
14816 | *) | ||
14817 | if test "$GXX" = yes; then | ||
14818 | 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' | ||
14819 | else | ||
14820 | # FIXME: insert proper C++ library support | ||
14821 | ld_shlibs_CXX=no | ||
14822 | fi | ||
14823 | ;; | ||
14824 | esac | ||
14825 | ;; | ||
14826 | |||
14827 | hpux10*|hpux11*) | ||
14828 | if test $with_gnu_ld = no; then | ||
14829 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | ||
14830 | hardcode_libdir_separator_CXX=: | ||
14831 | |||
14832 | case $host_cpu in | ||
14833 | hppa*64*|ia64*) | ||
14834 | ;; | ||
14835 | *) | ||
14836 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
14837 | ;; | ||
14838 | esac | ||
14839 | fi | ||
14840 | case $host_cpu in | ||
14841 | hppa*64*|ia64*) | ||
14842 | hardcode_direct_CXX=no | ||
14843 | hardcode_shlibpath_var_CXX=no | ||
14844 | ;; | ||
14845 | *) | ||
14846 | hardcode_direct_CXX=yes | ||
14847 | hardcode_direct_absolute_CXX=yes | ||
14848 | hardcode_minus_L_CXX=yes # Not in the search PATH, | ||
14849 | # but as the default | ||
14850 | # location of the library. | ||
14851 | ;; | ||
14852 | esac | ||
14853 | |||
14854 | case $cc_basename in | ||
14855 | CC*) | ||
14856 | # FIXME: insert proper C++ library support | ||
14857 | ld_shlibs_CXX=no | ||
14858 | ;; | ||
14859 | aCC*) | ||
14860 | case $host_cpu in | ||
14861 | hppa*64*) | ||
14862 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
14863 | ;; | ||
14864 | ia64*) | ||
14865 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
14866 | ;; | ||
14867 | *) | ||
14868 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
14869 | ;; | ||
14870 | esac | ||
14871 | # Commands to make compiler produce verbose output that lists | ||
14872 | # what "hidden" libraries, object files and flags are used when | ||
14873 | # linking a shared library. | ||
14874 | # | ||
14875 | # There doesn't appear to be a way to prevent this compiler from | ||
14876 | # explicitly linking system object files so we need to strip them | ||
14877 | # from the output so that they don't get included in the library | ||
14878 | # dependencies. | ||
14879 | 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' | ||
14880 | ;; | ||
14881 | *) | ||
14882 | if test "$GXX" = yes; then | ||
14883 | if test $with_gnu_ld = no; then | ||
14884 | case $host_cpu in | ||
14885 | hppa*64*) | ||
14886 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
14887 | ;; | ||
14888 | ia64*) | ||
14889 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
14890 | ;; | ||
14891 | *) | ||
14892 | 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' | ||
14893 | ;; | ||
14894 | esac | ||
14895 | fi | ||
14896 | else | ||
14897 | # FIXME: insert proper C++ library support | ||
14898 | ld_shlibs_CXX=no | ||
14899 | fi | ||
14900 | ;; | ||
14901 | esac | ||
14902 | ;; | ||
14903 | |||
14904 | interix[3-9]*) | ||
14905 | hardcode_direct_CXX=no | ||
14906 | hardcode_shlibpath_var_CXX=no | ||
14907 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
14908 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
14909 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
14910 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
14911 | # default) and relocated if they conflict, which is a slow very memory | ||
14912 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
14913 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
14914 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
14915 | 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' | ||
14916 | 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' | ||
14917 | ;; | ||
14918 | irix5* | irix6*) | ||
14919 | case $cc_basename in | ||
14920 | CC*) | ||
14921 | # SGI C++ | ||
14922 | 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' | ||
14923 | |||
14924 | # Archives containing C++ object files must be created using | ||
14925 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | ||
14926 | # necessary to make sure instantiated templates are included | ||
14927 | # in the archive. | ||
14928 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | ||
14929 | ;; | ||
14930 | *) | ||
14931 | if test "$GXX" = yes; then | ||
14932 | if test "$with_gnu_ld" = no; then | ||
14933 | 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' | ||
14934 | else | ||
14935 | 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' | ||
14936 | fi | ||
14937 | fi | ||
14938 | link_all_deplibs_CXX=yes | ||
14939 | ;; | ||
14940 | esac | ||
14941 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
14942 | hardcode_libdir_separator_CXX=: | ||
14943 | inherit_rpath_CXX=yes | ||
14944 | ;; | ||
14945 | |||
14946 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
14947 | case $cc_basename in | ||
14948 | KCC*) | ||
14949 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
14950 | |||
14951 | # KCC will only create a shared library if the output file | ||
14952 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
14953 | # to its proper name (with version) after linking. | ||
14954 | 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' | ||
14955 | 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' | ||
14956 | # Commands to make compiler produce verbose output that lists | ||
14957 | # what "hidden" libraries, object files and flags are used when | ||
14958 | # linking a shared library. | ||
14959 | # | ||
14960 | # There doesn't appear to be a way to prevent this compiler from | ||
14961 | # explicitly linking system object files so we need to strip them | ||
14962 | # from the output so that they don't get included in the library | ||
14963 | # dependencies. | ||
14964 | 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' | ||
14965 | |||
14966 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
14967 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
14968 | |||
14969 | # Archives containing C++ object files must be created using | ||
14970 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | ||
14971 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | ||
14972 | ;; | ||
14973 | icpc* | ecpc* ) | ||
14974 | # Intel C++ | ||
14975 | with_gnu_ld=yes | ||
14976 | # version 8.0 and above of icpc choke on multiply defined symbols | ||
14977 | # if we add $predep_objects and $postdep_objects, however 7.1 and | ||
14978 | # earlier do not add the objects themselves. | ||
14979 | case `$CC -V 2>&1` in | ||
14980 | *"Version 7."*) | ||
14981 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
14982 | 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' | ||
14983 | ;; | ||
14984 | *) # Version 8.0 or newer | ||
14985 | tmp_idyn= | ||
14986 | case $host_cpu in | ||
14987 | ia64*) tmp_idyn=' -i_dynamic';; | ||
14988 | esac | ||
14989 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
14990 | 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' | ||
14991 | ;; | ||
14992 | esac | ||
14993 | archive_cmds_need_lc_CXX=no | ||
14994 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
14995 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
14996 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | ||
14997 | ;; | ||
14998 | pgCC* | pgcpp*) | ||
14999 | # Portland Group C++ compiler | ||
15000 | case `$CC -V` in | ||
15001 | *pgCC\ [1-5]* | *pgcpp\ [1-5]*) | ||
15002 | prelink_cmds_CXX='tpldir=Template.dir~ | ||
15003 | rm -rf $tpldir~ | ||
15004 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | ||
15005 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | ||
15006 | old_archive_cmds_CXX='tpldir=Template.dir~ | ||
15007 | rm -rf $tpldir~ | ||
15008 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | ||
15009 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | ||
15010 | $RANLIB $oldlib' | ||
15011 | archive_cmds_CXX='tpldir=Template.dir~ | ||
15012 | rm -rf $tpldir~ | ||
15013 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | ||
15014 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | ||
15015 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | ||
15016 | rm -rf $tpldir~ | ||
15017 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | ||
15018 | $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' | ||
15019 | ;; | ||
15020 | *) # Version 6 will use weak symbols | ||
15021 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | ||
15022 | 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' | ||
15023 | ;; | ||
15024 | esac | ||
15025 | |||
15026 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | ||
15027 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
15028 | 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' | ||
15029 | ;; | ||
15030 | cxx*) | ||
15031 | # Compaq C++ | ||
15032 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
15033 | 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' | ||
15034 | |||
15035 | runpath_var=LD_RUN_PATH | ||
15036 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | ||
15037 | hardcode_libdir_separator_CXX=: | ||
15038 | |||
15039 | # Commands to make compiler produce verbose output that lists | ||
15040 | # what "hidden" libraries, object files and flags are used when | ||
15041 | # linking a shared library. | ||
15042 | # | ||
15043 | # There doesn't appear to be a way to prevent this compiler from | ||
15044 | # explicitly linking system object files so we need to strip them | ||
15045 | # from the output so that they don't get included in the library | ||
15046 | # dependencies. | ||
15047 | 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' | ||
15048 | ;; | ||
15049 | xl*) | ||
15050 | # IBM XL 8.0 on PPC, with GNU ld | ||
15051 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
15052 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
15053 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
15054 | if test "x$supports_anon_versioning" = xyes; then | ||
15055 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | ||
15056 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
15057 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
15058 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
15059 | fi | ||
15060 | ;; | ||
15061 | *) | ||
15062 | case `$CC -V 2>&1 | sed 5q` in | ||
15063 | *Sun\ C*) | ||
15064 | # Sun C++ 5.9 | ||
15065 | no_undefined_flag_CXX=' -zdefs' | ||
15066 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
15067 | 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' | ||
15068 | hardcode_libdir_flag_spec_CXX='-R$libdir' | ||
15069 | 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' | ||
15070 | compiler_needs_object_CXX=yes | ||
15071 | |||
15072 | # Not sure whether something based on | ||
15073 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | ||
15074 | # would be better. | ||
15075 | output_verbose_link_cmd='echo' | ||
15076 | |||
15077 | # Archives containing C++ object files must be created using | ||
15078 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | ||
15079 | # necessary to make sure instantiated templates are included | ||
15080 | # in the archive. | ||
15081 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | ||
15082 | ;; | ||
15083 | esac | ||
15084 | ;; | ||
15085 | esac | ||
15086 | ;; | ||
15087 | |||
15088 | lynxos*) | ||
15089 | # FIXME: insert proper C++ library support | ||
15090 | ld_shlibs_CXX=no | ||
15091 | ;; | ||
15092 | |||
15093 | m88k*) | ||
15094 | # FIXME: insert proper C++ library support | ||
15095 | ld_shlibs_CXX=no | ||
15096 | ;; | ||
15097 | |||
15098 | mvs*) | ||
15099 | case $cc_basename in | ||
15100 | cxx*) | ||
15101 | # FIXME: insert proper C++ library support | ||
15102 | ld_shlibs_CXX=no | ||
15103 | ;; | ||
15104 | *) | ||
15105 | # FIXME: insert proper C++ library support | ||
15106 | ld_shlibs_CXX=no | ||
15107 | ;; | ||
15108 | esac | ||
15109 | ;; | ||
15110 | |||
15111 | netbsd*) | ||
15112 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
15113 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | ||
15114 | wlarc= | ||
15115 | hardcode_libdir_flag_spec_CXX='-R$libdir' | ||
15116 | hardcode_direct_CXX=yes | ||
15117 | hardcode_shlibpath_var_CXX=no | ||
15118 | fi | ||
15119 | # Workaround some broken pre-1.5 toolchains | ||
15120 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | ||
15121 | ;; | ||
15122 | |||
15123 | *nto* | *qnx*) | ||
15124 | ld_shlibs_CXX=yes | ||
15125 | ;; | ||
15126 | |||
15127 | openbsd2*) | ||
15128 | # C++ shared libraries are fairly broken | ||
15129 | ld_shlibs_CXX=no | ||
15130 | ;; | ||
15131 | |||
15132 | openbsd*) | ||
15133 | if test -f /usr/libexec/ld.so; then | ||
15134 | hardcode_direct_CXX=yes | ||
15135 | hardcode_shlibpath_var_CXX=no | ||
15136 | hardcode_direct_absolute_CXX=yes | ||
15137 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | ||
15138 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
15139 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
15140 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | ||
15141 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
15142 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
15143 | fi | ||
15144 | output_verbose_link_cmd=echo | ||
15145 | else | ||
15146 | ld_shlibs_CXX=no | ||
15147 | fi | ||
15148 | ;; | ||
15149 | |||
15150 | osf3* | osf4* | osf5*) | ||
15151 | case $cc_basename in | ||
15152 | KCC*) | ||
15153 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
15154 | |||
15155 | # KCC will only create a shared library if the output file | ||
15156 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
15157 | # to its proper name (with version) after linking. | ||
15158 | 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' | ||
15159 | |||
15160 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
15161 | hardcode_libdir_separator_CXX=: | ||
15162 | |||
15163 | # Archives containing C++ object files must be created using | ||
15164 | # the KAI C++ compiler. | ||
15165 | case $host in | ||
15166 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | ||
15167 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | ||
15168 | esac | ||
15169 | ;; | ||
15170 | RCC*) | ||
15171 | # Rational C++ 2.4.1 | ||
15172 | # FIXME: insert proper C++ library support | ||
15173 | ld_shlibs_CXX=no | ||
15174 | ;; | ||
15175 | cxx*) | ||
15176 | case $host in | ||
15177 | osf3*) | ||
15178 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | ||
15179 | 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' | ||
15180 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
15181 | ;; | ||
15182 | *) | ||
15183 | allow_undefined_flag_CXX=' -expect_unresolved \*' | ||
15184 | 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' | ||
15185 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | ||
15186 | echo "-hidden">> $lib.exp~ | ||
15187 | $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~ | ||
15188 | $RM $lib.exp' | ||
15189 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | ||
15190 | ;; | ||
15191 | esac | ||
15192 | |||
15193 | hardcode_libdir_separator_CXX=: | ||
15194 | |||
15195 | # Commands to make compiler produce verbose output that lists | ||
15196 | # what "hidden" libraries, object files and flags are used when | ||
15197 | # linking a shared library. | ||
15198 | # | ||
15199 | # There doesn't appear to be a way to prevent this compiler from | ||
15200 | # explicitly linking system object files so we need to strip them | ||
15201 | # from the output so that they don't get included in the library | ||
15202 | # dependencies. | ||
15203 | 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' | ||
15204 | ;; | ||
15205 | *) | ||
15206 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
15207 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | ||
15208 | case $host in | ||
15209 | osf3*) | ||
15210 | 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' | ||
15211 | ;; | ||
15212 | *) | ||
15213 | 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' | ||
15214 | ;; | ||
15215 | esac | ||
15216 | |||
15217 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
15218 | hardcode_libdir_separator_CXX=: | ||
15219 | |||
15220 | # Commands to make compiler produce verbose output that lists | ||
15221 | # what "hidden" libraries, object files and flags are used when | ||
15222 | # linking a shared library. | ||
15223 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | ||
15224 | |||
15225 | else | ||
15226 | # FIXME: insert proper C++ library support | ||
15227 | ld_shlibs_CXX=no | ||
15228 | fi | ||
15229 | ;; | ||
15230 | esac | ||
15231 | ;; | ||
15232 | |||
15233 | psos*) | ||
15234 | # FIXME: insert proper C++ library support | ||
15235 | ld_shlibs_CXX=no | ||
15236 | ;; | ||
15237 | |||
15238 | sunos4*) | ||
15239 | case $cc_basename in | ||
15240 | CC*) | ||
15241 | # Sun C++ 4.x | ||
15242 | # FIXME: insert proper C++ library support | ||
15243 | ld_shlibs_CXX=no | ||
15244 | ;; | ||
15245 | lcc*) | ||
15246 | # Lucid | ||
15247 | # FIXME: insert proper C++ library support | ||
15248 | ld_shlibs_CXX=no | ||
15249 | ;; | ||
15250 | *) | ||
15251 | # FIXME: insert proper C++ library support | ||
15252 | ld_shlibs_CXX=no | ||
15253 | ;; | ||
15254 | esac | ||
15255 | ;; | ||
15256 | |||
15257 | solaris*) | ||
15258 | case $cc_basename in | ||
15259 | CC*) | ||
15260 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
15261 | archive_cmds_need_lc_CXX=yes | ||
15262 | no_undefined_flag_CXX=' -zdefs' | ||
15263 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
15264 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
15265 | $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' | ||
15266 | |||
15267 | hardcode_libdir_flag_spec_CXX='-R$libdir' | ||
15268 | hardcode_shlibpath_var_CXX=no | ||
15269 | case $host_os in | ||
15270 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
15271 | *) | ||
15272 | # The compiler driver will combine and reorder linker options, | ||
15273 | # but understands `-z linker_flag'. | ||
15274 | # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
15275 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | ||
15276 | ;; | ||
15277 | esac | ||
15278 | link_all_deplibs_CXX=yes | ||
15279 | |||
15280 | output_verbose_link_cmd='echo' | ||
15281 | |||
15282 | # Archives containing C++ object files must be created using | ||
15283 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | ||
15284 | # necessary to make sure instantiated templates are included | ||
15285 | # in the archive. | ||
15286 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | ||
15287 | ;; | ||
15288 | gcx*) | ||
15289 | # Green Hills C++ Compiler | ||
15290 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
15291 | |||
15292 | # The C++ compiler must be used to create the archive. | ||
15293 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | ||
15294 | ;; | ||
15295 | *) | ||
15296 | # GNU C++ compiler with Solaris linker | ||
15297 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
15298 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | ||
15299 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | ||
15300 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
15301 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
15302 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | ||
15303 | |||
15304 | # Commands to make compiler produce verbose output that lists | ||
15305 | # what "hidden" libraries, object files and flags are used when | ||
15306 | # linking a shared library. | ||
15307 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | ||
15308 | else | ||
15309 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | ||
15310 | # platform. | ||
15311 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
15312 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
15313 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | ||
15314 | |||
15315 | # Commands to make compiler produce verbose output that lists | ||
15316 | # what "hidden" libraries, object files and flags are used when | ||
15317 | # linking a shared library. | ||
15318 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | ||
15319 | fi | ||
15320 | |||
15321 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | ||
15322 | case $host_os in | ||
15323 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
15324 | *) | ||
15325 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | ||
15326 | ;; | ||
15327 | esac | ||
15328 | fi | ||
15329 | ;; | ||
15330 | esac | ||
15331 | ;; | ||
15332 | |||
15333 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | ||
15334 | no_undefined_flag_CXX='${wl}-z,text' | ||
15335 | archive_cmds_need_lc_CXX=no | ||
15336 | hardcode_shlibpath_var_CXX=no | ||
15337 | runpath_var='LD_RUN_PATH' | ||
15338 | |||
15339 | case $cc_basename in | ||
15340 | CC*) | ||
15341 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15342 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15343 | ;; | ||
15344 | *) | ||
15345 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15346 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15347 | ;; | ||
15348 | esac | ||
15349 | ;; | ||
15350 | |||
15351 | sysv5* | sco3.2v5* | sco5v6*) | ||
15352 | # Note: We can NOT use -z defs as we might desire, because we do not | ||
15353 | # link with -lc, and that would cause any symbols used from libc to | ||
15354 | # always be unresolved, which means just about no library would | ||
15355 | # ever link correctly. If we're not using GNU ld we use -z text | ||
15356 | # though, which does catch some bad symbols but isn't as heavy-handed | ||
15357 | # as -z defs. | ||
15358 | no_undefined_flag_CXX='${wl}-z,text' | ||
15359 | allow_undefined_flag_CXX='${wl}-z,nodefs' | ||
15360 | archive_cmds_need_lc_CXX=no | ||
15361 | hardcode_shlibpath_var_CXX=no | ||
15362 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | ||
15363 | hardcode_libdir_separator_CXX=':' | ||
15364 | link_all_deplibs_CXX=yes | ||
15365 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | ||
15366 | runpath_var='LD_RUN_PATH' | ||
15367 | |||
15368 | case $cc_basename in | ||
15369 | CC*) | ||
15370 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15371 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15372 | ;; | ||
15373 | *) | ||
15374 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15375 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15376 | ;; | ||
15377 | esac | ||
15378 | ;; | ||
15379 | |||
15380 | tandem*) | ||
15381 | case $cc_basename in | ||
15382 | NCC*) | ||
15383 | # NonStop-UX NCC 3.20 | ||
15384 | # FIXME: insert proper C++ library support | ||
15385 | ld_shlibs_CXX=no | ||
15386 | ;; | ||
15387 | *) | ||
15388 | # FIXME: insert proper C++ library support | ||
15389 | ld_shlibs_CXX=no | ||
15390 | ;; | ||
15391 | esac | ||
15392 | ;; | ||
15393 | |||
15394 | vxworks*) | ||
15395 | # FIXME: insert proper C++ library support | ||
15396 | ld_shlibs_CXX=no | ||
15397 | ;; | ||
15398 | |||
15399 | *) | ||
15400 | # FIXME: insert proper C++ library support | ||
15401 | ld_shlibs_CXX=no | ||
15402 | ;; | ||
15403 | esac | ||
15404 | |||
15405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | ||
15406 | $as_echo "$ld_shlibs_CXX" >&6; } | ||
15407 | test "$ld_shlibs_CXX" = no && can_build_shared=no | ||
15408 | |||
15409 | GCC_CXX="$GXX" | ||
15410 | LD_CXX="$LD" | ||
15411 | |||
15412 | ## CAVEAT EMPTOR: | ||
15413 | ## There is no encapsulation within the following macros, do not change | ||
15414 | ## the running order or otherwise move them around unless you know exactly | ||
15415 | ## what you are doing... | ||
15416 | # Dependencies to place before and after the object being linked: | ||
15417 | predep_objects_CXX= | ||
15418 | postdep_objects_CXX= | ||
15419 | predeps_CXX= | ||
15420 | postdeps_CXX= | ||
15421 | compiler_lib_search_path_CXX= | ||
15422 | |||
15423 | cat > conftest.$ac_ext <<_LT_EOF | ||
15424 | class Foo | ||
15425 | { | ||
15426 | public: | ||
15427 | Foo (void) { a = 0; } | ||
15428 | private: | ||
15429 | int a; | ||
15430 | }; | ||
15431 | _LT_EOF | ||
15432 | |||
15433 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
15434 | (eval $ac_compile) 2>&5 | ||
15435 | ac_status=$? | ||
15436 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
15437 | test $ac_status = 0; }; then | ||
15438 | # Parse the compiler output and extract the necessary | ||
15439 | # objects, libraries and library flags. | ||
15440 | |||
15441 | # Sentinel used to keep track of whether or not we are before | ||
15442 | # the conftest object file. | ||
15443 | pre_test_object_deps_done=no | ||
15444 | |||
15445 | for p in `eval "$output_verbose_link_cmd"`; do | ||
15446 | case $p in | ||
15447 | |||
15448 | -L* | -R* | -l*) | ||
15449 | # Some compilers place space between "-{L,R}" and the path. | ||
15450 | # Remove the space. | ||
15451 | if test $p = "-L" || | ||
15452 | test $p = "-R"; then | ||
15453 | prev=$p | ||
15454 | continue | ||
15455 | else | ||
15456 | prev= | ||
15457 | fi | ||
15458 | |||
15459 | if test "$pre_test_object_deps_done" = no; then | ||
15460 | case $p in | ||
15461 | -L* | -R*) | ||
15462 | # Internal compiler library paths should come after those | ||
15463 | # provided the user. The postdeps already come after the | ||
15464 | # user supplied libs so there is no need to process them. | ||
15465 | if test -z "$compiler_lib_search_path_CXX"; then | ||
15466 | compiler_lib_search_path_CXX="${prev}${p}" | ||
15467 | else | ||
15468 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | ||
15469 | fi | ||
15470 | ;; | ||
15471 | # The "-l" case would never come before the object being | ||
15472 | # linked, so don't bother handling this case. | ||
15473 | esac | ||
15474 | else | ||
15475 | if test -z "$postdeps_CXX"; then | ||
15476 | postdeps_CXX="${prev}${p}" | ||
15477 | else | ||
15478 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | ||
15479 | fi | ||
15480 | fi | ||
15481 | ;; | ||
15482 | |||
15483 | *.$objext) | ||
15484 | # This assumes that the test object file only shows up | ||
15485 | # once in the compiler output. | ||
15486 | if test "$p" = "conftest.$objext"; then | ||
15487 | pre_test_object_deps_done=yes | ||
15488 | continue | ||
15489 | fi | ||
15490 | |||
15491 | if test "$pre_test_object_deps_done" = no; then | ||
15492 | if test -z "$predep_objects_CXX"; then | ||
15493 | predep_objects_CXX="$p" | ||
15494 | else | ||
15495 | predep_objects_CXX="$predep_objects_CXX $p" | ||
15496 | fi | ||
15497 | else | ||
15498 | if test -z "$postdep_objects_CXX"; then | ||
15499 | postdep_objects_CXX="$p" | ||
15500 | else | ||
15501 | postdep_objects_CXX="$postdep_objects_CXX $p" | ||
15502 | fi | ||
15503 | fi | ||
15504 | ;; | ||
15505 | |||
15506 | *) ;; # Ignore the rest. | ||
15507 | |||
15508 | esac | ||
15509 | done | ||
15510 | |||
15511 | # Clean up. | ||
15512 | rm -f a.out a.exe | ||
15513 | else | ||
15514 | echo "libtool.m4: error: problem compiling CXX test program" | ||
15515 | fi | ||
15516 | |||
15517 | $RM -f confest.$objext | ||
15518 | |||
15519 | # PORTME: override above test on systems where it is broken | ||
15520 | case $host_os in | ||
15521 | interix[3-9]*) | ||
15522 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | ||
15523 | # hack all around it, let's just trust "g++" to DTRT. | ||
15524 | predep_objects_CXX= | ||
15525 | postdep_objects_CXX= | ||
15526 | postdeps_CXX= | ||
15527 | ;; | ||
15528 | |||
15529 | linux*) | ||
15530 | case `$CC -V 2>&1 | sed 5q` in | ||
15531 | *Sun\ C*) | ||
15532 | # Sun C++ 5.9 | ||
15533 | |||
15534 | # The more standards-conforming stlport4 library is | ||
15535 | # incompatible with the Cstd library. Avoid specifying | ||
15536 | # it if it's in CXXFLAGS. Ignore libCrun as | ||
15537 | # -library=stlport4 depends on it. | ||
15538 | case " $CXX $CXXFLAGS " in | ||
15539 | *" -library=stlport4 "*) | ||
15540 | solaris_use_stlport4=yes | ||
15541 | ;; | ||
15542 | esac | ||
15543 | |||
15544 | if test "$solaris_use_stlport4" != yes; then | ||
15545 | postdeps_CXX='-library=Cstd -library=Crun' | ||
15546 | fi | ||
15547 | ;; | ||
15548 | esac | ||
15549 | ;; | ||
15550 | |||
15551 | solaris*) | ||
15552 | case $cc_basename in | ||
15553 | CC*) | ||
15554 | # The more standards-conforming stlport4 library is | ||
15555 | # incompatible with the Cstd library. Avoid specifying | ||
15556 | # it if it's in CXXFLAGS. Ignore libCrun as | ||
15557 | # -library=stlport4 depends on it. | ||
15558 | case " $CXX $CXXFLAGS " in | ||
15559 | *" -library=stlport4 "*) | ||
15560 | solaris_use_stlport4=yes | ||
15561 | ;; | ||
15562 | esac | ||
15563 | |||
15564 | # Adding this requires a known-good setup of shared libraries for | ||
15565 | # Sun compiler versions before 5.6, else PIC objects from an old | ||
15566 | # archive will be linked into the output, leading to subtle bugs. | ||
15567 | if test "$solaris_use_stlport4" != yes; then | ||
15568 | postdeps_CXX='-library=Cstd -library=Crun' | ||
15569 | fi | ||
15570 | ;; | ||
15571 | esac | ||
15572 | ;; | ||
15573 | esac | ||
15574 | |||
15575 | |||
15576 | case " $postdeps_CXX " in | ||
15577 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | ||
15578 | esac | ||
15579 | compiler_lib_search_dirs_CXX= | ||
15580 | if test -n "${compiler_lib_search_path_CXX}"; then | ||
15581 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | ||
15582 | fi | ||
15583 | |||
15584 | |||
15585 | |||
15586 | |||
15587 | |||
15588 | |||
15589 | |||
15590 | |||
15591 | |||
15592 | |||
15593 | |||
15594 | |||
15595 | |||
15596 | |||
15597 | |||
15598 | |||
15599 | |||
15600 | |||
15601 | |||
15602 | |||
15603 | |||
15604 | |||
15605 | |||
15606 | |||
15607 | |||
15608 | |||
15609 | |||
15610 | |||
15611 | |||
15612 | |||
15613 | |||
15614 | lt_prog_compiler_wl_CXX= | ||
15615 | lt_prog_compiler_pic_CXX= | ||
15616 | lt_prog_compiler_static_CXX= | ||
15617 | |||
15618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
15619 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
15620 | |||
15621 | # C++ specific cases for pic, static, wl, etc. | ||
15622 | if test "$GXX" = yes; then | ||
15623 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15624 | lt_prog_compiler_static_CXX='-static' | ||
15625 | |||
15626 | case $host_os in | ||
15627 | aix*) | ||
15628 | # All AIX code is PIC. | ||
15629 | if test "$host_cpu" = ia64; then | ||
15630 | # AIX 5 now supports IA64 processor | ||
15631 | lt_prog_compiler_static_CXX='-Bstatic' | ||
15632 | fi | ||
15633 | ;; | ||
15634 | |||
15635 | amigaos*) | ||
15636 | case $host_cpu in | ||
15637 | powerpc) | ||
15638 | # see comment about AmigaOS4 .so support | ||
15639 | lt_prog_compiler_pic_CXX='-fPIC' | ||
15640 | ;; | ||
15641 | m68k) | ||
15642 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
15643 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
15644 | # like `-m68040'. | ||
15645 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | ||
15646 | ;; | ||
15647 | esac | ||
15648 | ;; | ||
15649 | |||
15650 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
15651 | # PIC is the default for these OSes. | ||
15652 | ;; | ||
15653 | mingw* | cygwin* | os2* | pw32* | cegcc*) | ||
15654 | # This hack is so that the source file can tell whether it is being | ||
15655 | # built for inclusion in a dll (and should export symbols for example). | ||
15656 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | ||
15657 | # (--disable-auto-import) libraries | ||
15658 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | ||
15659 | ;; | ||
15660 | darwin* | rhapsody*) | ||
15661 | # PIC is the default on this platform | ||
15662 | # Common symbols not allowed in MH_DYLIB files | ||
15663 | lt_prog_compiler_pic_CXX='-fno-common' | ||
15664 | ;; | ||
15665 | *djgpp*) | ||
15666 | # DJGPP does not support shared libraries at all | ||
15667 | lt_prog_compiler_pic_CXX= | ||
15668 | ;; | ||
15669 | interix[3-9]*) | ||
15670 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
15671 | # Instead, we relocate shared libraries at runtime. | ||
15672 | ;; | ||
15673 | sysv4*MP*) | ||
15674 | if test -d /usr/nec; then | ||
15675 | lt_prog_compiler_pic_CXX=-Kconform_pic | ||
15676 | fi | ||
15677 | ;; | ||
15678 | hpux*) | ||
15679 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | ||
15680 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | ||
15681 | # sets the default TLS model and affects inlining. | ||
15682 | case $host_cpu in | ||
15683 | hppa*64*) | ||
15684 | ;; | ||
15685 | *) | ||
15686 | lt_prog_compiler_pic_CXX='-fPIC' | ||
15687 | ;; | ||
15688 | esac | ||
15689 | ;; | ||
15690 | *qnx* | *nto*) | ||
15691 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
15692 | # it will coredump. | ||
15693 | lt_prog_compiler_pic_CXX='-fPIC -shared' | ||
15694 | ;; | ||
15695 | *) | ||
15696 | lt_prog_compiler_pic_CXX='-fPIC' | ||
15697 | ;; | ||
15698 | esac | ||
15699 | else | ||
15700 | case $host_os in | ||
15701 | aix[4-9]*) | ||
15702 | # All AIX code is PIC. | ||
15703 | if test "$host_cpu" = ia64; then | ||
15704 | # AIX 5 now supports IA64 processor | ||
15705 | lt_prog_compiler_static_CXX='-Bstatic' | ||
15706 | else | ||
15707 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | ||
15708 | fi | ||
15709 | ;; | ||
15710 | chorus*) | ||
15711 | case $cc_basename in | ||
15712 | cxch68*) | ||
15713 | # Green Hills C++ Compiler | ||
15714 | # _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" | ||
15715 | ;; | ||
15716 | esac | ||
15717 | ;; | ||
15718 | dgux*) | ||
15719 | case $cc_basename in | ||
15720 | ec++*) | ||
15721 | lt_prog_compiler_pic_CXX='-KPIC' | ||
15722 | ;; | ||
15723 | ghcx*) | ||
15724 | # Green Hills C++ Compiler | ||
15725 | lt_prog_compiler_pic_CXX='-pic' | ||
15726 | ;; | ||
15727 | *) | ||
15728 | ;; | ||
15729 | esac | ||
15730 | ;; | ||
15731 | freebsd* | dragonfly*) | ||
15732 | # FreeBSD uses GNU C++ | ||
15733 | ;; | ||
15734 | hpux9* | hpux10* | hpux11*) | ||
15735 | case $cc_basename in | ||
15736 | CC*) | ||
15737 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15738 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | ||
15739 | if test "$host_cpu" != ia64; then | ||
15740 | lt_prog_compiler_pic_CXX='+Z' | ||
15741 | fi | ||
15742 | ;; | ||
15743 | aCC*) | ||
15744 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15745 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | ||
15746 | case $host_cpu in | ||
15747 | hppa*64*|ia64*) | ||
15748 | # +Z the default | ||
15749 | ;; | ||
15750 | *) | ||
15751 | lt_prog_compiler_pic_CXX='+Z' | ||
15752 | ;; | ||
15753 | esac | ||
15754 | ;; | ||
15755 | *) | ||
15756 | ;; | ||
15757 | esac | ||
15758 | ;; | ||
15759 | interix*) | ||
15760 | # This is c89, which is MS Visual C++ (no shared libs) | ||
15761 | # Anyone wants to do a port? | ||
15762 | ;; | ||
15763 | irix5* | irix6* | nonstopux*) | ||
15764 | case $cc_basename in | ||
15765 | CC*) | ||
15766 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15767 | lt_prog_compiler_static_CXX='-non_shared' | ||
15768 | # CC pic flag -KPIC is the default. | ||
15769 | ;; | ||
15770 | *) | ||
15771 | ;; | ||
15772 | esac | ||
15773 | ;; | ||
15774 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
15775 | case $cc_basename in | ||
15776 | KCC*) | ||
15777 | # KAI C++ Compiler | ||
15778 | lt_prog_compiler_wl_CXX='--backend -Wl,' | ||
15779 | lt_prog_compiler_pic_CXX='-fPIC' | ||
15780 | ;; | ||
15781 | ecpc* ) | ||
15782 | # old Intel C++ for x86_64 which still supported -KPIC. | ||
15783 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15784 | lt_prog_compiler_pic_CXX='-KPIC' | ||
15785 | lt_prog_compiler_static_CXX='-static' | ||
15786 | ;; | ||
15787 | icpc* ) | ||
15788 | # Intel C++, used to be incompatible with GCC. | ||
15789 | # ICC 10 doesn't accept -KPIC any more. | ||
15790 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15791 | lt_prog_compiler_pic_CXX='-fPIC' | ||
15792 | lt_prog_compiler_static_CXX='-static' | ||
15793 | ;; | ||
15794 | pgCC* | pgcpp*) | ||
15795 | # Portland Group C++ compiler | ||
15796 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15797 | lt_prog_compiler_pic_CXX='-fpic' | ||
15798 | lt_prog_compiler_static_CXX='-Bstatic' | ||
15799 | ;; | ||
15800 | cxx*) | ||
15801 | # Compaq C++ | ||
15802 | # Make sure the PIC flag is empty. It appears that all Alpha | ||
15803 | # Linux and Compaq Tru64 Unix objects are PIC. | ||
15804 | lt_prog_compiler_pic_CXX= | ||
15805 | lt_prog_compiler_static_CXX='-non_shared' | ||
15806 | ;; | ||
15807 | xlc* | xlC*) | ||
15808 | # IBM XL 8.0 on PPC | ||
15809 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15810 | lt_prog_compiler_pic_CXX='-qpic' | ||
15811 | lt_prog_compiler_static_CXX='-qstaticlink' | ||
15812 | ;; | ||
15813 | *) | ||
15814 | case `$CC -V 2>&1 | sed 5q` in | ||
15815 | *Sun\ C*) | ||
15816 | # Sun C++ 5.9 | ||
15817 | lt_prog_compiler_pic_CXX='-KPIC' | ||
15818 | lt_prog_compiler_static_CXX='-Bstatic' | ||
15819 | lt_prog_compiler_wl_CXX='-Qoption ld ' | ||
15820 | ;; | ||
15821 | esac | ||
15822 | ;; | ||
15823 | esac | ||
15824 | ;; | ||
15825 | lynxos*) | ||
15826 | ;; | ||
15827 | m88k*) | ||
15828 | ;; | ||
15829 | mvs*) | ||
15830 | case $cc_basename in | ||
15831 | cxx*) | ||
15832 | lt_prog_compiler_pic_CXX='-W c,exportall' | ||
15833 | ;; | ||
15834 | *) | ||
15835 | ;; | ||
15836 | esac | ||
15837 | ;; | ||
15838 | netbsd* | netbsdelf*-gnu) | ||
15839 | ;; | ||
15840 | *qnx* | *nto*) | ||
15841 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
15842 | # it will coredump. | ||
15843 | lt_prog_compiler_pic_CXX='-fPIC -shared' | ||
15844 | ;; | ||
15845 | osf3* | osf4* | osf5*) | ||
15846 | case $cc_basename in | ||
15847 | KCC*) | ||
15848 | lt_prog_compiler_wl_CXX='--backend -Wl,' | ||
15849 | ;; | ||
15850 | RCC*) | ||
15851 | # Rational C++ 2.4.1 | ||
15852 | lt_prog_compiler_pic_CXX='-pic' | ||
15853 | ;; | ||
15854 | cxx*) | ||
15855 | # Digital/Compaq C++ | ||
15856 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15857 | # Make sure the PIC flag is empty. It appears that all Alpha | ||
15858 | # Linux and Compaq Tru64 Unix objects are PIC. | ||
15859 | lt_prog_compiler_pic_CXX= | ||
15860 | lt_prog_compiler_static_CXX='-non_shared' | ||
15861 | ;; | ||
15862 | *) | ||
15863 | ;; | ||
15864 | esac | ||
15865 | ;; | ||
15866 | psos*) | ||
15867 | ;; | ||
15868 | solaris*) | ||
15869 | case $cc_basename in | ||
15870 | CC*) | ||
15871 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
15872 | lt_prog_compiler_pic_CXX='-KPIC' | ||
15873 | lt_prog_compiler_static_CXX='-Bstatic' | ||
15874 | lt_prog_compiler_wl_CXX='-Qoption ld ' | ||
15875 | ;; | ||
15876 | gcx*) | ||
15877 | # Green Hills C++ Compiler | ||
15878 | lt_prog_compiler_pic_CXX='-PIC' | ||
15879 | ;; | ||
15880 | *) | ||
15881 | ;; | ||
15882 | esac | ||
15883 | ;; | ||
15884 | sunos4*) | ||
15885 | case $cc_basename in | ||
15886 | CC*) | ||
15887 | # Sun C++ 4.x | ||
15888 | lt_prog_compiler_pic_CXX='-pic' | ||
15889 | lt_prog_compiler_static_CXX='-Bstatic' | ||
15890 | ;; | ||
15891 | lcc*) | ||
15892 | # Lucid | ||
15893 | lt_prog_compiler_pic_CXX='-pic' | ||
15894 | ;; | ||
15895 | *) | ||
15896 | ;; | ||
15897 | esac | ||
15898 | ;; | ||
15899 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
15900 | case $cc_basename in | ||
15901 | CC*) | ||
15902 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15903 | lt_prog_compiler_pic_CXX='-KPIC' | ||
15904 | lt_prog_compiler_static_CXX='-Bstatic' | ||
15905 | ;; | ||
15906 | esac | ||
15907 | ;; | ||
15908 | tandem*) | ||
15909 | case $cc_basename in | ||
15910 | NCC*) | ||
15911 | # NonStop-UX NCC 3.20 | ||
15912 | lt_prog_compiler_pic_CXX='-KPIC' | ||
15913 | ;; | ||
15914 | *) | ||
15915 | ;; | ||
15916 | esac | ||
15917 | ;; | ||
15918 | vxworks*) | ||
15919 | ;; | ||
15920 | *) | ||
15921 | lt_prog_compiler_can_build_shared_CXX=no | ||
15922 | ;; | ||
15923 | esac | ||
15924 | fi | ||
15925 | |||
15926 | case $host_os in | ||
15927 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
15928 | *djgpp*) | ||
15929 | lt_prog_compiler_pic_CXX= | ||
15930 | ;; | ||
15931 | *) | ||
15932 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | ||
15933 | ;; | ||
15934 | esac | ||
15935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 | ||
15936 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } | ||
15937 | |||
15938 | |||
15939 | |||
15940 | # | ||
15941 | # Check to make sure the PIC flag actually works. | ||
15942 | # | ||
15943 | if test -n "$lt_prog_compiler_pic_CXX"; then | ||
15944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | ||
15945 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | ||
15946 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : | ||
15947 | $as_echo_n "(cached) " >&6 | ||
15948 | else | ||
15949 | lt_cv_prog_compiler_pic_works_CXX=no | ||
15950 | ac_outfile=conftest.$ac_objext | ||
15951 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
15952 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | ||
15953 | # Insert the option either (1) after the last *FLAGS variable, or | ||
15954 | # (2) before a word containing "conftest.", or (3) at the end. | ||
15955 | # Note that $ac_compile itself does not contain backslashes and begins | ||
15956 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
15957 | # The option is referenced via a variable to avoid confusing sed. | ||
15958 | lt_compile=`echo "$ac_compile" | $SED \ | ||
15959 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
15960 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
15961 | -e 's:$: $lt_compiler_flag:'` | ||
15962 | (eval echo "\"\$as_me:15962: $lt_compile\"" >&5) | ||
15963 | (eval "$lt_compile" 2>conftest.err) | ||
15964 | ac_status=$? | ||
15965 | cat conftest.err >&5 | ||
15966 | echo "$as_me:15966: \$? = $ac_status" >&5 | ||
15967 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
15968 | # The compiler can only warn and ignore the option if not recognized | ||
15969 | # So say no if there are warnings other than the usual output. | ||
15970 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
15971 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
15972 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
15973 | lt_cv_prog_compiler_pic_works_CXX=yes | ||
15974 | fi | ||
15975 | fi | ||
15976 | $RM conftest* | ||
15977 | |||
15978 | fi | ||
15979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | ||
15980 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | ||
15981 | |||
15982 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | ||
15983 | case $lt_prog_compiler_pic_CXX in | ||
15984 | "" | " "*) ;; | ||
15985 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | ||
15986 | esac | ||
15987 | else | ||
15988 | lt_prog_compiler_pic_CXX= | ||
15989 | lt_prog_compiler_can_build_shared_CXX=no | ||
15990 | fi | ||
15991 | |||
15992 | fi | ||
15993 | |||
15994 | |||
15995 | |||
15996 | # | ||
15997 | # Check to make sure the static flag actually works. | ||
15998 | # | ||
15999 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | ||
16000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | ||
16001 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | ||
16002 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : | ||
16003 | $as_echo_n "(cached) " >&6 | ||
16004 | else | ||
16005 | lt_cv_prog_compiler_static_works_CXX=no | ||
16006 | save_LDFLAGS="$LDFLAGS" | ||
16007 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | ||
16008 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | ||
16009 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
16010 | # The linker can only warn and ignore the option if not recognized | ||
16011 | # So say no if there are warnings | ||
16012 | if test -s conftest.err; then | ||
16013 | # Append any errors to the config.log. | ||
16014 | cat conftest.err 1>&5 | ||
16015 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
16016 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
16017 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
16018 | lt_cv_prog_compiler_static_works_CXX=yes | ||
16019 | fi | ||
16020 | else | ||
16021 | lt_cv_prog_compiler_static_works_CXX=yes | ||
16022 | fi | ||
16023 | fi | ||
16024 | $RM -r conftest* | ||
16025 | LDFLAGS="$save_LDFLAGS" | ||
16026 | |||
16027 | fi | ||
16028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | ||
16029 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | ||
16030 | |||
16031 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | ||
16032 | : | ||
16033 | else | ||
16034 | lt_prog_compiler_static_CXX= | ||
16035 | fi | ||
16036 | |||
16037 | |||
16038 | |||
16039 | |||
16040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
16041 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
16042 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | ||
16043 | $as_echo_n "(cached) " >&6 | ||
16044 | else | ||
16045 | lt_cv_prog_compiler_c_o_CXX=no | ||
16046 | $RM -r conftest 2>/dev/null | ||
16047 | mkdir conftest | ||
16048 | cd conftest | ||
16049 | mkdir out | ||
16050 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
16051 | |||
16052 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
16053 | # Insert the option either (1) after the last *FLAGS variable, or | ||
16054 | # (2) before a word containing "conftest.", or (3) at the end. | ||
16055 | # Note that $ac_compile itself does not contain backslashes and begins | ||
16056 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
16057 | lt_compile=`echo "$ac_compile" | $SED \ | ||
16058 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
16059 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
16060 | -e 's:$: $lt_compiler_flag:'` | ||
16061 | (eval echo "\"\$as_me:16061: $lt_compile\"" >&5) | ||
16062 | (eval "$lt_compile" 2>out/conftest.err) | ||
16063 | ac_status=$? | ||
16064 | cat out/conftest.err >&5 | ||
16065 | echo "$as_me:16065: \$? = $ac_status" >&5 | ||
16066 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
16067 | then | ||
16068 | # The compiler can only warn and ignore the option if not recognized | ||
16069 | # So say no if there are warnings | ||
16070 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
16071 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
16072 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
16073 | lt_cv_prog_compiler_c_o_CXX=yes | ||
16074 | fi | ||
16075 | fi | ||
16076 | chmod u+w . 2>&5 | ||
16077 | $RM conftest* | ||
16078 | # SGI C++ compiler will create directory out/ii_files/ for | ||
16079 | # template instantiation | ||
16080 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
16081 | $RM out/* && rmdir out | ||
16082 | cd .. | ||
16083 | $RM -r conftest | ||
16084 | $RM conftest* | ||
16085 | |||
16086 | fi | ||
16087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | ||
16088 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | ||
16089 | |||
16090 | |||
16091 | |||
16092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
16093 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
16094 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | ||
16095 | $as_echo_n "(cached) " >&6 | ||
16096 | else | ||
16097 | lt_cv_prog_compiler_c_o_CXX=no | ||
16098 | $RM -r conftest 2>/dev/null | ||
16099 | mkdir conftest | ||
16100 | cd conftest | ||
16101 | mkdir out | ||
16102 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
16103 | |||
16104 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
16105 | # Insert the option either (1) after the last *FLAGS variable, or | ||
16106 | # (2) before a word containing "conftest.", or (3) at the end. | ||
16107 | # Note that $ac_compile itself does not contain backslashes and begins | ||
16108 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
16109 | lt_compile=`echo "$ac_compile" | $SED \ | ||
16110 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
16111 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
16112 | -e 's:$: $lt_compiler_flag:'` | ||
16113 | (eval echo "\"\$as_me:16113: $lt_compile\"" >&5) | ||
16114 | (eval "$lt_compile" 2>out/conftest.err) | ||
16115 | ac_status=$? | ||
16116 | cat out/conftest.err >&5 | ||
16117 | echo "$as_me:16117: \$? = $ac_status" >&5 | ||
16118 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
16119 | then | ||
16120 | # The compiler can only warn and ignore the option if not recognized | ||
16121 | # So say no if there are warnings | ||
16122 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
16123 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
16124 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
16125 | lt_cv_prog_compiler_c_o_CXX=yes | ||
16126 | fi | ||
16127 | fi | ||
16128 | chmod u+w . 2>&5 | ||
16129 | $RM conftest* | ||
16130 | # SGI C++ compiler will create directory out/ii_files/ for | ||
16131 | # template instantiation | ||
16132 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
16133 | $RM out/* && rmdir out | ||
16134 | cd .. | ||
16135 | $RM -r conftest | ||
16136 | $RM conftest* | ||
16137 | |||
16138 | fi | ||
16139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | ||
16140 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | ||
16141 | |||
16142 | |||
16143 | |||
16144 | |||
16145 | hard_links="nottested" | ||
16146 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | ||
16147 | # do not overwrite the value of need_locks provided by the user | ||
16148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | ||
16149 | $as_echo_n "checking if we can lock with hard links... " >&6; } | ||
16150 | hard_links=yes | ||
16151 | $RM conftest* | ||
16152 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
16153 | touch conftest.a | ||
16154 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
16155 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
16156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | ||
16157 | $as_echo "$hard_links" >&6; } | ||
16158 | if test "$hard_links" = no; then | ||
16159 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | ||
16160 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | ||
16161 | need_locks=warn | ||
16162 | fi | ||
16163 | else | ||
16164 | need_locks=no | ||
16165 | fi | ||
16166 | |||
16167 | |||
16168 | |||
16169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
16170 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | ||
16171 | |||
16172 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
16173 | case $host_os in | ||
16174 | aix[4-9]*) | ||
16175 | # If we're using GNU nm, then we don't want the "-C" option. | ||
16176 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
16177 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | ||
16178 | 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' | ||
16179 | else | ||
16180 | 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' | ||
16181 | fi | ||
16182 | ;; | ||
16183 | pw32*) | ||
16184 | export_symbols_cmds_CXX="$ltdll_cmds" | ||
16185 | ;; | ||
16186 | cygwin* | mingw* | cegcc*) | ||
16187 | 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' | ||
16188 | ;; | ||
16189 | linux* | k*bsd*-gnu) | ||
16190 | link_all_deplibs_CXX=no | ||
16191 | ;; | ||
16192 | *) | ||
16193 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
16194 | ;; | ||
16195 | esac | ||
16196 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | ||
16197 | |||
16198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | ||
16199 | $as_echo "$ld_shlibs_CXX" >&6; } | ||
16200 | test "$ld_shlibs_CXX" = no && can_build_shared=no | ||
16201 | |||
16202 | with_gnu_ld_CXX=$with_gnu_ld | ||
16203 | |||
16204 | |||
16205 | |||
16206 | |||
16207 | |||
16208 | |||
16209 | # | ||
16210 | # Do we need to explicitly link libc? | ||
16211 | # | ||
16212 | case "x$archive_cmds_need_lc_CXX" in | ||
16213 | x|xyes) | ||
16214 | # Assume -lc should be added | ||
16215 | archive_cmds_need_lc_CXX=yes | ||
16216 | |||
16217 | if test "$enable_shared" = yes && test "$GCC" = yes; then | ||
16218 | case $archive_cmds_CXX in | ||
16219 | *'~'*) | ||
16220 | # FIXME: we may have to deal with multi-command sequences. | ||
16221 | ;; | ||
16222 | '$CC '*) | ||
16223 | # Test whether the compiler implicitly links with -lc since on some | ||
16224 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | ||
16225 | # to ld, don't add -lc before -lgcc. | ||
16226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | ||
16227 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | ||
16228 | $RM conftest* | ||
16229 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
16230 | |||
16231 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
16232 | (eval $ac_compile) 2>&5 | ||
16233 | ac_status=$? | ||
16234 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
16235 | test $ac_status = 0; } 2>conftest.err; then | ||
16236 | soname=conftest | ||
16237 | lib=conftest | ||
16238 | libobjs=conftest.$ac_objext | ||
16239 | deplibs= | ||
16240 | wl=$lt_prog_compiler_wl_CXX | ||
16241 | pic_flag=$lt_prog_compiler_pic_CXX | ||
16242 | compiler_flags=-v | ||
16243 | linker_flags=-v | ||
16244 | verstring= | ||
16245 | output_objdir=. | ||
16246 | libname=conftest | ||
16247 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | ||
16248 | allow_undefined_flag_CXX= | ||
16249 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | ||
16250 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | ||
16251 | ac_status=$? | ||
16252 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
16253 | test $ac_status = 0; } | ||
16254 | then | ||
16255 | archive_cmds_need_lc_CXX=no | ||
16256 | else | ||
16257 | archive_cmds_need_lc_CXX=yes | ||
16258 | fi | ||
16259 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | ||
16260 | else | ||
16261 | cat conftest.err 1>&5 | ||
16262 | fi | ||
16263 | $RM conftest* | ||
16264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 | ||
16265 | $as_echo "$archive_cmds_need_lc_CXX" >&6; } | ||
16266 | ;; | ||
16267 | esac | ||
16268 | fi | ||
16269 | ;; | ||
16270 | esac | ||
16271 | |||
16272 | |||
16273 | |||
16274 | |||
16275 | |||
16276 | |||
16277 | |||
16278 | |||
16279 | |||
16280 | |||
16281 | |||
16282 | |||
16283 | |||
16284 | |||
16285 | |||
16286 | |||
16287 | |||
16288 | |||
16289 | |||
16290 | |||
16291 | |||
16292 | |||
16293 | |||
16294 | |||
16295 | |||
16296 | |||
16297 | |||
16298 | |||
16299 | |||
16300 | |||
16301 | |||
16302 | |||
16303 | |||
16304 | |||
16305 | |||
16306 | |||
16307 | |||
16308 | |||
16309 | |||
16310 | |||
16311 | |||
16312 | |||
16313 | |||
16314 | |||
16315 | |||
16316 | |||
16317 | |||
16318 | |||
16319 | |||
16320 | |||
16321 | |||
16322 | |||
16323 | |||
16324 | |||
16325 | |||
16326 | |||
16327 | |||
16328 | |||
16329 | |||
16330 | |||
16331 | |||
16332 | |||
16333 | |||
16334 | |||
16335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | ||
16336 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | ||
16337 | |||
16338 | library_names_spec= | ||
16339 | libname_spec='lib$name' | ||
16340 | soname_spec= | ||
16341 | shrext_cmds=".so" | ||
16342 | postinstall_cmds= | ||
16343 | postuninstall_cmds= | ||
16344 | finish_cmds= | ||
16345 | finish_eval= | ||
16346 | shlibpath_var= | ||
16347 | shlibpath_overrides_runpath=unknown | ||
16348 | version_type=none | ||
16349 | dynamic_linker="$host_os ld.so" | ||
16350 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
16351 | need_lib_prefix=unknown | ||
16352 | hardcode_into_libs=no | ||
16353 | |||
16354 | # when you set need_version to no, make sure it does not cause -set_version | ||
16355 | # flags to be left without arguments | ||
16356 | need_version=unknown | ||
16357 | |||
16358 | case $host_os in | ||
16359 | aix3*) | ||
16360 | version_type=linux | ||
16361 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
16362 | shlibpath_var=LIBPATH | ||
16363 | |||
16364 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
16365 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16366 | ;; | ||
16367 | |||
16368 | aix[4-9]*) | ||
16369 | version_type=linux | ||
16370 | need_lib_prefix=no | ||
16371 | need_version=no | ||
16372 | hardcode_into_libs=yes | ||
16373 | if test "$host_cpu" = ia64; then | ||
16374 | # AIX 5 supports IA64 | ||
16375 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
16376 | shlibpath_var=LD_LIBRARY_PATH | ||
16377 | else | ||
16378 | # With GCC up to 2.95.x, collect2 would create an import file | ||
16379 | # for dependence libraries. The import file would start with | ||
16380 | # the line `#! .'. This would cause the generated library to | ||
16381 | # depend on `.', always an invalid library. This was fixed in | ||
16382 | # development snapshots of GCC prior to 3.0. | ||
16383 | case $host_os in | ||
16384 | aix4 | aix4.[01] | aix4.[01].*) | ||
16385 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
16386 | echo ' yes ' | ||
16387 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | ||
16388 | : | ||
16389 | else | ||
16390 | can_build_shared=no | ||
16391 | fi | ||
16392 | ;; | ||
16393 | esac | ||
16394 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
16395 | # soname into executable. Probably we can add versioning support to | ||
16396 | # collect2, so additional links can be useful in future. | ||
16397 | if test "$aix_use_runtimelinking" = yes; then | ||
16398 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
16399 | # instead of lib<name>.a to let people know that these are not | ||
16400 | # typical AIX shared libraries. | ||
16401 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16402 | else | ||
16403 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
16404 | # and later when we are not doing run time linking. | ||
16405 | library_names_spec='${libname}${release}.a $libname.a' | ||
16406 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16407 | fi | ||
16408 | shlibpath_var=LIBPATH | ||
16409 | fi | ||
16410 | ;; | ||
16411 | |||
16412 | amigaos*) | ||
16413 | case $host_cpu in | ||
16414 | powerpc) | ||
16415 | # Since July 2007 AmigaOS4 officially supports .so libraries. | ||
16416 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | ||
16417 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16418 | ;; | ||
16419 | m68k) | ||
16420 | library_names_spec='$libname.ixlibrary $libname.a' | ||
16421 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
16422 | 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' | ||
16423 | ;; | ||
16424 | esac | ||
16425 | ;; | ||
16426 | |||
16427 | beos*) | ||
16428 | library_names_spec='${libname}${shared_ext}' | ||
16429 | dynamic_linker="$host_os ld.so" | ||
16430 | shlibpath_var=LIBRARY_PATH | ||
16431 | ;; | ||
16432 | |||
16433 | bsdi[45]*) | ||
16434 | version_type=linux | ||
16435 | need_version=no | ||
16436 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16437 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16438 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
16439 | shlibpath_var=LD_LIBRARY_PATH | ||
16440 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
16441 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
16442 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
16443 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
16444 | # libtool to hard-code these into programs | ||
16445 | ;; | ||
16446 | |||
16447 | cygwin* | mingw* | pw32* | cegcc*) | ||
16448 | version_type=windows | ||
16449 | shrext_cmds=".dll" | ||
16450 | need_version=no | ||
16451 | need_lib_prefix=no | ||
16452 | |||
16453 | case $GCC,$host_os in | ||
16454 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | ||
16455 | library_names_spec='$libname.dll.a' | ||
16456 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
16457 | postinstall_cmds='base_file=`basename \${file}`~ | ||
16458 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
16459 | dldir=$destdir/`dirname \$dlpath`~ | ||
16460 | test -d \$dldir || mkdir -p \$dldir~ | ||
16461 | $install_prog $dir/$dlname \$dldir/$dlname~ | ||
16462 | chmod a+x \$dldir/$dlname~ | ||
16463 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | ||
16464 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | ||
16465 | fi' | ||
16466 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
16467 | dlpath=$dir/\$dldll~ | ||
16468 | $RM \$dlpath' | ||
16469 | shlibpath_overrides_runpath=yes | ||
16470 | |||
16471 | case $host_os in | ||
16472 | cygwin*) | ||
16473 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
16474 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
16475 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
16476 | ;; | ||
16477 | mingw* | cegcc*) | ||
16478 | # MinGW DLLs use traditional 'lib' prefix | ||
16479 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
16480 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
16481 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
16482 | # It is most probably a Windows format PATH printed by | ||
16483 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
16484 | # path with ; separators, and with drive letters. We can handle the | ||
16485 | # drive letters (cygwin fileutils understands them), so leave them, | ||
16486 | # especially as we might pass files found there to a mingw objdump, | ||
16487 | # which wouldn't understand a cygwinified path. Ahh. | ||
16488 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
16489 | else | ||
16490 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
16491 | fi | ||
16492 | ;; | ||
16493 | pw32*) | ||
16494 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
16495 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
16496 | ;; | ||
16497 | esac | ||
16498 | ;; | ||
16499 | |||
16500 | *) | ||
16501 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
16502 | ;; | ||
16503 | esac | ||
16504 | dynamic_linker='Win32 ld.exe' | ||
16505 | # FIXME: first we should search . and the directory the executable is in | ||
16506 | shlibpath_var=PATH | ||
16507 | ;; | ||
16508 | |||
16509 | darwin* | rhapsody*) | ||
16510 | dynamic_linker="$host_os dyld" | ||
16511 | version_type=darwin | ||
16512 | need_lib_prefix=no | ||
16513 | need_version=no | ||
16514 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
16515 | soname_spec='${libname}${release}${major}$shared_ext' | ||
16516 | shlibpath_overrides_runpath=yes | ||
16517 | shlibpath_var=DYLD_LIBRARY_PATH | ||
16518 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | ||
16519 | |||
16520 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
16521 | ;; | ||
16522 | |||
16523 | dgux*) | ||
16524 | version_type=linux | ||
16525 | need_lib_prefix=no | ||
16526 | need_version=no | ||
16527 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
16528 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16529 | shlibpath_var=LD_LIBRARY_PATH | ||
16530 | ;; | ||
16531 | |||
16532 | freebsd1*) | ||
16533 | dynamic_linker=no | ||
16534 | ;; | ||
16535 | |||
16536 | freebsd* | dragonfly*) | ||
16537 | # DragonFly does not have aout. When/if they implement a new | ||
16538 | # versioning mechanism, adjust this. | ||
16539 | if test -x /usr/bin/objformat; then | ||
16540 | objformat=`/usr/bin/objformat` | ||
16541 | else | ||
16542 | case $host_os in | ||
16543 | freebsd[123]*) objformat=aout ;; | ||
16544 | *) objformat=elf ;; | ||
16545 | esac | ||
16546 | fi | ||
16547 | version_type=freebsd-$objformat | ||
16548 | case $version_type in | ||
16549 | freebsd-elf*) | ||
16550 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
16551 | need_version=no | ||
16552 | need_lib_prefix=no | ||
16553 | ;; | ||
16554 | freebsd-*) | ||
16555 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
16556 | need_version=yes | ||
16557 | ;; | ||
16558 | esac | ||
16559 | shlibpath_var=LD_LIBRARY_PATH | ||
16560 | case $host_os in | ||
16561 | freebsd2*) | ||
16562 | shlibpath_overrides_runpath=yes | ||
16563 | ;; | ||
16564 | freebsd3.[01]* | freebsdelf3.[01]*) | ||
16565 | shlibpath_overrides_runpath=yes | ||
16566 | hardcode_into_libs=yes | ||
16567 | ;; | ||
16568 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | ||
16569 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | ||
16570 | shlibpath_overrides_runpath=no | ||
16571 | hardcode_into_libs=yes | ||
16572 | ;; | ||
16573 | *) # from 4.6 on, and DragonFly | ||
16574 | shlibpath_overrides_runpath=yes | ||
16575 | hardcode_into_libs=yes | ||
16576 | ;; | ||
16577 | esac | ||
16578 | ;; | ||
16579 | |||
16580 | gnu*) | ||
16581 | version_type=linux | ||
16582 | need_lib_prefix=no | ||
16583 | need_version=no | ||
16584 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
16585 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16586 | shlibpath_var=LD_LIBRARY_PATH | ||
16587 | hardcode_into_libs=yes | ||
16588 | ;; | ||
16589 | |||
16590 | hpux9* | hpux10* | hpux11*) | ||
16591 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
16592 | # link against other versions. | ||
16593 | version_type=sunos | ||
16594 | need_lib_prefix=no | ||
16595 | need_version=no | ||
16596 | case $host_cpu in | ||
16597 | ia64*) | ||
16598 | shrext_cmds='.so' | ||
16599 | hardcode_into_libs=yes | ||
16600 | dynamic_linker="$host_os dld.so" | ||
16601 | shlibpath_var=LD_LIBRARY_PATH | ||
16602 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
16603 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16604 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16605 | if test "X$HPUX_IA64_MODE" = X32; then | ||
16606 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
16607 | else | ||
16608 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
16609 | fi | ||
16610 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
16611 | ;; | ||
16612 | hppa*64*) | ||
16613 | shrext_cmds='.sl' | ||
16614 | hardcode_into_libs=yes | ||
16615 | dynamic_linker="$host_os dld.sl" | ||
16616 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
16617 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
16618 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16619 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16620 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
16621 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
16622 | ;; | ||
16623 | *) | ||
16624 | shrext_cmds='.sl' | ||
16625 | dynamic_linker="$host_os dld.sl" | ||
16626 | shlibpath_var=SHLIB_PATH | ||
16627 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
16628 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16629 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16630 | ;; | ||
16631 | esac | ||
16632 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
16633 | postinstall_cmds='chmod 555 $lib' | ||
16634 | ;; | ||
16635 | |||
16636 | interix[3-9]*) | ||
16637 | version_type=linux | ||
16638 | need_lib_prefix=no | ||
16639 | need_version=no | ||
16640 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
16641 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16642 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
16643 | shlibpath_var=LD_LIBRARY_PATH | ||
16644 | shlibpath_overrides_runpath=no | ||
16645 | hardcode_into_libs=yes | ||
16646 | ;; | ||
16647 | |||
16648 | irix5* | irix6* | nonstopux*) | ||
16649 | case $host_os in | ||
16650 | nonstopux*) version_type=nonstopux ;; | ||
16651 | *) | ||
16652 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
16653 | version_type=linux | ||
16654 | else | ||
16655 | version_type=irix | ||
16656 | fi ;; | ||
16657 | esac | ||
16658 | need_lib_prefix=no | ||
16659 | need_version=no | ||
16660 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16661 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
16662 | case $host_os in | ||
16663 | irix5* | nonstopux*) | ||
16664 | libsuff= shlibsuff= | ||
16665 | ;; | ||
16666 | *) | ||
16667 | case $LD in # libtool.m4 will add one of these switches to LD | ||
16668 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
16669 | libsuff= shlibsuff= libmagic=32-bit;; | ||
16670 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
16671 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
16672 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
16673 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
16674 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
16675 | esac | ||
16676 | ;; | ||
16677 | esac | ||
16678 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
16679 | shlibpath_overrides_runpath=no | ||
16680 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
16681 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
16682 | hardcode_into_libs=yes | ||
16683 | ;; | ||
16684 | |||
16685 | # No shared lib support for Linux oldld, aout, or coff. | ||
16686 | linux*oldld* | linux*aout* | linux*coff*) | ||
16687 | dynamic_linker=no | ||
16688 | ;; | ||
16689 | |||
16690 | # This must be Linux ELF. | ||
16691 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
16692 | version_type=linux | ||
16693 | need_lib_prefix=no | ||
16694 | need_version=no | ||
16695 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16696 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16697 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
16698 | shlibpath_var=LD_LIBRARY_PATH | ||
16699 | shlibpath_overrides_runpath=no | ||
16700 | # Some binutils ld are patched to set DT_RUNPATH | ||
16701 | save_LDFLAGS=$LDFLAGS | ||
16702 | save_libdir=$libdir | ||
16703 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | ||
16704 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | ||
16705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16706 | /* end confdefs.h. */ | ||
16707 | |||
16708 | int | ||
16709 | main () | ||
16710 | { | ||
16711 | |||
16712 | ; | ||
16713 | return 0; | ||
16714 | } | ||
16715 | _ACEOF | ||
16716 | if ac_fn_cxx_try_link "$LINENO"; then : | ||
16717 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | ||
16718 | shlibpath_overrides_runpath=yes | ||
16719 | fi | ||
16720 | fi | ||
16721 | rm -f core conftest.err conftest.$ac_objext \ | ||
16722 | conftest$ac_exeext conftest.$ac_ext | ||
16723 | LDFLAGS=$save_LDFLAGS | ||
16724 | libdir=$save_libdir | ||
16725 | |||
16726 | # This implies no fast_install, which is unacceptable. | ||
16727 | # Some rework will be needed to allow for fast_install | ||
16728 | # before this can be enabled. | ||
16729 | hardcode_into_libs=yes | ||
16730 | |||
16731 | # Append ld.so.conf contents to the search path | ||
16732 | if test -f /etc/ld.so.conf; then | ||
16733 | 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' ' '` | ||
16734 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
16735 | fi | ||
16736 | |||
16737 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
16738 | # powerpc, because MkLinux only supported shared libraries with the | ||
16739 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
16740 | # most powerpc-linux boxes support dynamic linking these days and | ||
16741 | # people can always --disable-shared, the test was removed, and we | ||
16742 | # assume the GNU/Linux dynamic linker is in use. | ||
16743 | dynamic_linker='GNU/Linux ld.so' | ||
16744 | ;; | ||
16745 | |||
16746 | netbsdelf*-gnu) | ||
16747 | version_type=linux | ||
16748 | need_lib_prefix=no | ||
16749 | need_version=no | ||
16750 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
16751 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16752 | shlibpath_var=LD_LIBRARY_PATH | ||
16753 | shlibpath_overrides_runpath=no | ||
16754 | hardcode_into_libs=yes | ||
16755 | dynamic_linker='NetBSD ld.elf_so' | ||
16756 | ;; | ||
16757 | |||
16758 | netbsd*) | ||
16759 | version_type=sunos | ||
16760 | need_lib_prefix=no | ||
16761 | need_version=no | ||
16762 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
16763 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
16764 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
16765 | dynamic_linker='NetBSD (a.out) ld.so' | ||
16766 | else | ||
16767 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
16768 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16769 | dynamic_linker='NetBSD ld.elf_so' | ||
16770 | fi | ||
16771 | shlibpath_var=LD_LIBRARY_PATH | ||
16772 | shlibpath_overrides_runpath=yes | ||
16773 | hardcode_into_libs=yes | ||
16774 | ;; | ||
16775 | |||
16776 | newsos6) | ||
16777 | version_type=linux | ||
16778 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16779 | shlibpath_var=LD_LIBRARY_PATH | ||
16780 | shlibpath_overrides_runpath=yes | ||
16781 | ;; | ||
16782 | |||
16783 | *nto* | *qnx*) | ||
16784 | version_type=qnx | ||
16785 | need_lib_prefix=no | ||
16786 | need_version=no | ||
16787 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16788 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16789 | shlibpath_var=LD_LIBRARY_PATH | ||
16790 | shlibpath_overrides_runpath=no | ||
16791 | hardcode_into_libs=yes | ||
16792 | dynamic_linker='ldqnx.so' | ||
16793 | ;; | ||
16794 | |||
16795 | openbsd*) | ||
16796 | version_type=sunos | ||
16797 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
16798 | need_lib_prefix=no | ||
16799 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | ||
16800 | case $host_os in | ||
16801 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | ||
16802 | *) need_version=no ;; | ||
16803 | esac | ||
16804 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
16805 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
16806 | shlibpath_var=LD_LIBRARY_PATH | ||
16807 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
16808 | case $host_os in | ||
16809 | openbsd2.[89] | openbsd2.[89].*) | ||
16810 | shlibpath_overrides_runpath=no | ||
16811 | ;; | ||
16812 | *) | ||
16813 | shlibpath_overrides_runpath=yes | ||
16814 | ;; | ||
16815 | esac | ||
16816 | else | ||
16817 | shlibpath_overrides_runpath=yes | ||
16818 | fi | ||
16819 | ;; | ||
16820 | |||
16821 | os2*) | ||
16822 | libname_spec='$name' | ||
16823 | shrext_cmds=".dll" | ||
16824 | need_lib_prefix=no | ||
16825 | library_names_spec='$libname${shared_ext} $libname.a' | ||
16826 | dynamic_linker='OS/2 ld.exe' | ||
16827 | shlibpath_var=LIBPATH | ||
16828 | ;; | ||
16829 | |||
16830 | osf3* | osf4* | osf5*) | ||
16831 | version_type=osf | ||
16832 | need_lib_prefix=no | ||
16833 | need_version=no | ||
16834 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16835 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16836 | shlibpath_var=LD_LIBRARY_PATH | ||
16837 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
16838 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
16839 | ;; | ||
16840 | |||
16841 | rdos*) | ||
16842 | dynamic_linker=no | ||
16843 | ;; | ||
16844 | |||
16845 | solaris*) | ||
16846 | version_type=linux | ||
16847 | need_lib_prefix=no | ||
16848 | need_version=no | ||
16849 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16850 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16851 | shlibpath_var=LD_LIBRARY_PATH | ||
16852 | shlibpath_overrides_runpath=yes | ||
16853 | hardcode_into_libs=yes | ||
16854 | # ldd complains unless libraries are executable | ||
16855 | postinstall_cmds='chmod +x $lib' | ||
16856 | ;; | ||
16857 | |||
16858 | sunos4*) | ||
16859 | version_type=sunos | ||
16860 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
16861 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
16862 | shlibpath_var=LD_LIBRARY_PATH | ||
16863 | shlibpath_overrides_runpath=yes | ||
16864 | if test "$with_gnu_ld" = yes; then | ||
16865 | need_lib_prefix=no | ||
16866 | fi | ||
16867 | need_version=yes | ||
16868 | ;; | ||
16869 | |||
16870 | sysv4 | sysv4.3*) | ||
16871 | version_type=linux | ||
16872 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16873 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16874 | shlibpath_var=LD_LIBRARY_PATH | ||
16875 | case $host_vendor in | ||
16876 | sni) | ||
16877 | shlibpath_overrides_runpath=no | ||
16878 | need_lib_prefix=no | ||
16879 | runpath_var=LD_RUN_PATH | ||
16880 | ;; | ||
16881 | siemens) | ||
16882 | need_lib_prefix=no | ||
16883 | ;; | ||
16884 | motorola) | ||
16885 | need_lib_prefix=no | ||
16886 | need_version=no | ||
16887 | shlibpath_overrides_runpath=no | ||
16888 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
16889 | ;; | ||
16890 | esac | ||
16891 | ;; | ||
16892 | |||
16893 | sysv4*MP*) | ||
16894 | if test -d /usr/nec ;then | ||
16895 | version_type=linux | ||
16896 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
16897 | soname_spec='$libname${shared_ext}.$major' | ||
16898 | shlibpath_var=LD_LIBRARY_PATH | ||
16899 | fi | ||
16900 | ;; | ||
16901 | |||
16902 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
16903 | version_type=freebsd-elf | ||
16904 | need_lib_prefix=no | ||
16905 | need_version=no | ||
16906 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
16907 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16908 | shlibpath_var=LD_LIBRARY_PATH | ||
16909 | shlibpath_overrides_runpath=yes | ||
16910 | hardcode_into_libs=yes | ||
16911 | if test "$with_gnu_ld" = yes; then | ||
16912 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
16913 | else | ||
16914 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
16915 | case $host_os in | ||
16916 | sco3.2v5*) | ||
16917 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
16918 | ;; | ||
16919 | esac | ||
16920 | fi | ||
16921 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
16922 | ;; | ||
16923 | |||
16924 | tpf*) | ||
16925 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | ||
16926 | version_type=linux | ||
16927 | need_lib_prefix=no | ||
16928 | need_version=no | ||
16929 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16930 | shlibpath_var=LD_LIBRARY_PATH | ||
16931 | shlibpath_overrides_runpath=no | ||
16932 | hardcode_into_libs=yes | ||
16933 | ;; | ||
16934 | |||
16935 | uts4*) | ||
16936 | version_type=linux | ||
16937 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16938 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16939 | shlibpath_var=LD_LIBRARY_PATH | ||
16940 | ;; | ||
16941 | |||
16942 | *) | ||
16943 | dynamic_linker=no | ||
16944 | ;; | ||
16945 | esac | ||
16946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | ||
16947 | $as_echo "$dynamic_linker" >&6; } | ||
16948 | test "$dynamic_linker" = no && can_build_shared=no | ||
16949 | |||
16950 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
16951 | if test "$GCC" = yes; then | ||
16952 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
16953 | fi | ||
16954 | |||
16955 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | ||
16956 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | ||
16957 | fi | ||
16958 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | ||
16959 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | ||
16960 | fi | ||
16961 | |||
16962 | |||
16963 | |||
16964 | |||
16965 | |||
16966 | |||
16967 | |||
16968 | |||
16969 | |||
16970 | |||
16971 | |||
16972 | |||
16973 | |||
16974 | |||
16975 | |||
16976 | |||
16977 | |||
16978 | |||
16979 | |||
16980 | |||
16981 | |||
16982 | |||
16983 | |||
16984 | |||
16985 | |||
16986 | |||
16987 | |||
16988 | |||
16989 | |||
16990 | |||
16991 | |||
16992 | |||
16993 | |||
16994 | |||
16995 | |||
16996 | |||
16997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | ||
16998 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | ||
16999 | hardcode_action_CXX= | ||
17000 | if test -n "$hardcode_libdir_flag_spec_CXX" || | ||
17001 | test -n "$runpath_var_CXX" || | ||
17002 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | ||
17003 | |||
17004 | # We can hardcode non-existent directories. | ||
17005 | if test "$hardcode_direct_CXX" != no && | ||
17006 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
17007 | # have to relink, otherwise we might link with an installed library | ||
17008 | # when we should be linking with a yet-to-be-installed one | ||
17009 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | ||
17010 | test "$hardcode_minus_L_CXX" != no; then | ||
17011 | # Linking always hardcodes the temporary library directory. | ||
17012 | hardcode_action_CXX=relink | ||
17013 | else | ||
17014 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
17015 | hardcode_action_CXX=immediate | ||
17016 | fi | ||
17017 | else | ||
17018 | # We cannot hardcode anything, or else we can only hardcode existing | ||
17019 | # directories. | ||
17020 | hardcode_action_CXX=unsupported | ||
17021 | fi | ||
17022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | ||
17023 | $as_echo "$hardcode_action_CXX" >&6; } | ||
17024 | |||
17025 | if test "$hardcode_action_CXX" = relink || | ||
17026 | test "$inherit_rpath_CXX" = yes; then | ||
17027 | # Fast installation is not supported | ||
17028 | enable_fast_install=no | ||
17029 | elif test "$shlibpath_overrides_runpath" = yes || | ||
17030 | test "$enable_shared" = no; then | ||
17031 | # Fast installation is not necessary | ||
17032 | enable_fast_install=needless | ||
17033 | fi | ||
17034 | |||
17035 | |||
17036 | |||
17037 | |||
17038 | |||
17039 | |||
17040 | |||
17041 | fi # test -n "$compiler" | ||
17042 | |||
17043 | CC=$lt_save_CC | ||
17044 | LDCXX=$LD | ||
17045 | LD=$lt_save_LD | ||
17046 | GCC=$lt_save_GCC | ||
17047 | with_gnu_ld=$lt_save_with_gnu_ld | ||
17048 | lt_cv_path_LDCXX=$lt_cv_path_LD | ||
17049 | lt_cv_path_LD=$lt_save_path_LD | ||
17050 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | ||
17051 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | ||
17052 | fi # test "$_lt_caught_CXX_error" != yes | ||
17053 | |||
17054 | ac_ext=c | ||
17055 | ac_cpp='$CPP $CPPFLAGS' | ||
17056 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
17057 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
17058 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
17059 | |||
17060 | |||
17061 | |||
17062 | # pkg-config | ||
17063 | |||
17064 | |||
17065 | |||
17066 | |||
17067 | |||
17068 | |||
17069 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | ||
17070 | if test -n "$ac_tool_prefix"; then | ||
17071 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||
17072 | set dummy ${ac_tool_prefix}pkg-config; 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_path_PKG_CONFIG+set}" = set; then : | ||
17076 | $as_echo_n "(cached) " >&6 | ||
17077 | else | ||
17078 | case $PKG_CONFIG in | ||
17079 | [\\/]* | ?:[\\/]*) | ||
17080 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
17081 | ;; | ||
17082 | *) | ||
17083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17084 | for as_dir in $PATH | ||
17085 | do | ||
17086 | IFS=$as_save_IFS | ||
17087 | test -z "$as_dir" && as_dir=. | ||
17088 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17089 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17090 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
17091 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17092 | break 2 | ||
17093 | fi | ||
17094 | done | ||
17095 | done | ||
17096 | IFS=$as_save_IFS | ||
17097 | |||
17098 | ;; | ||
17099 | esac | ||
17100 | fi | ||
17101 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
17102 | if test -n "$PKG_CONFIG"; then | ||
17103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||
17104 | $as_echo "$PKG_CONFIG" >&6; } | ||
17105 | else | ||
17106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17107 | $as_echo "no" >&6; } | ||
17108 | fi | ||
17109 | |||
17110 | |||
17111 | fi | ||
17112 | if test -z "$ac_cv_path_PKG_CONFIG"; then | ||
17113 | ac_pt_PKG_CONFIG=$PKG_CONFIG | ||
17114 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
17115 | set dummy pkg-config; ac_word=$2 | ||
17116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
17117 | $as_echo_n "checking for $ac_word... " >&6; } | ||
17118 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : | ||
17119 | $as_echo_n "(cached) " >&6 | ||
17120 | else | ||
17121 | case $ac_pt_PKG_CONFIG in | ||
17122 | [\\/]* | ?:[\\/]*) | ||
17123 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | ||
17124 | ;; | ||
17125 | *) | ||
17126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17127 | for as_dir in $PATH | ||
17128 | do | ||
17129 | IFS=$as_save_IFS | ||
17130 | test -z "$as_dir" && as_dir=. | ||
17131 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17132 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17133 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
17134 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17135 | break 2 | ||
17136 | fi | ||
17137 | done | ||
17138 | done | ||
17139 | IFS=$as_save_IFS | ||
17140 | |||
17141 | ;; | ||
17142 | esac | ||
17143 | fi | ||
17144 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | ||
17145 | if test -n "$ac_pt_PKG_CONFIG"; then | ||
17146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | ||
17147 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | ||
17148 | else | ||
17149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17150 | $as_echo "no" >&6; } | ||
17151 | fi | ||
17152 | |||
17153 | if test "x$ac_pt_PKG_CONFIG" = x; then | ||
17154 | PKG_CONFIG="" | ||
17155 | else | ||
17156 | case $cross_compiling:$ac_tool_warned in | ||
17157 | yes:) | ||
17158 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
17159 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
17160 | ac_tool_warned=yes ;; | ||
17161 | esac | ||
17162 | PKG_CONFIG=$ac_pt_PKG_CONFIG | ||
17163 | fi | ||
17164 | else | ||
17165 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | ||
17166 | fi | ||
17167 | |||
17168 | fi | ||
17169 | if test -n "$PKG_CONFIG"; then | ||
17170 | _pkg_min_version=0.9.0 | ||
17171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | ||
17172 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | ||
17173 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | ||
17174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17175 | $as_echo "yes" >&6; } | ||
17176 | else | ||
17177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17178 | $as_echo "no" >&6; } | ||
17179 | PKG_CONFIG="" | ||
17180 | fi | ||
17181 | fi | ||
17182 | |||
17183 | # Check whether pkg-config supports Requires.private | ||
17184 | if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then | ||
17185 | pkgconfig_requires_private="Requires.private" | ||
17186 | else | ||
17187 | pkgconfig_requires_private="Requires" | ||
17188 | fi | ||
17189 | |||
17190 | |||
17191 | # doxygen program for documentation building | ||
17192 | |||
17193 | |||
17194 | |||
17195 | # Check whether --enable-doc was given. | ||
17196 | if test "${enable_doc+set}" = set; then : | ||
17197 | enableval=$enable_doc; | ||
17198 | if test "x${enableval}" = "xyes" ; then | ||
17199 | efl_enable_doc="yes" | ||
17200 | else | ||
17201 | efl_enable_doc="no" | ||
17202 | fi | ||
17203 | |||
17204 | else | ||
17205 | efl_enable_doc="yes" | ||
17206 | fi | ||
17207 | |||
17208 | |||
17209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 | ||
17210 | $as_echo_n "checking whether to build documentation... " >&6; } | ||
17211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${efl_enable_doc}" >&5 | ||
17212 | $as_echo "${efl_enable_doc}" >&6; } | ||
17213 | |||
17214 | if test "x${efl_enable_doc}" = "xyes" ; then | ||
17215 | |||
17216 | |||
17217 | efl_doxygen="doxygen" | ||
17218 | |||
17219 | |||
17220 | # Check whether --with-doxygen was given. | ||
17221 | if test "${with_doxygen+set}" = set; then : | ||
17222 | withval=$with_doxygen; | ||
17223 | efl_doxygen=${withval} | ||
17224 | # Extract the first word of "${efl_doxygen}", so it can be a program name with args. | ||
17225 | set dummy ${efl_doxygen}; ac_word=$2 | ||
17226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
17227 | $as_echo_n "checking for $ac_word... " >&6; } | ||
17228 | if test "${ac_cv_prog_efl_have_doxygen+set}" = set; then : | ||
17229 | $as_echo_n "(cached) " >&6 | ||
17230 | else | ||
17231 | if test -n "$efl_have_doxygen"; then | ||
17232 | ac_cv_prog_efl_have_doxygen="$efl_have_doxygen" # Let the user override the test. | ||
17233 | else | ||
17234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17235 | for as_dir in $PATH | ||
17236 | do | ||
17237 | IFS=$as_save_IFS | ||
17238 | test -z "$as_dir" && as_dir=. | ||
17239 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17240 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17241 | ac_cv_prog_efl_have_doxygen="yes" | ||
17242 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17243 | break 2 | ||
17244 | fi | ||
17245 | done | ||
17246 | done | ||
17247 | IFS=$as_save_IFS | ||
17248 | |||
17249 | test -z "$ac_cv_prog_efl_have_doxygen" && ac_cv_prog_efl_have_doxygen="no" | ||
17250 | fi | ||
17251 | fi | ||
17252 | efl_have_doxygen=$ac_cv_prog_efl_have_doxygen | ||
17253 | if test -n "$efl_have_doxygen"; then | ||
17254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $efl_have_doxygen" >&5 | ||
17255 | $as_echo "$efl_have_doxygen" >&6; } | ||
17256 | else | ||
17257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17258 | $as_echo "no" >&6; } | ||
17259 | fi | ||
17260 | |||
17261 | |||
17262 | if test "x${efl_have_doxygen}" = "xno" ; then | ||
17263 | echo "WARNING:" | ||
17264 | echo "The doxygen program you specified:" | ||
17265 | echo "${efl_doxygen}" | ||
17266 | echo "was not found. Please check the path and make sure " | ||
17267 | echo "the program exists and is executable." | ||
17268 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no doxygen detected. Documentation will not be built" >&5 | ||
17269 | $as_echo "$as_me: WARNING: no doxygen detected. Documentation will not be built" >&2;} | ||
17270 | fi | ||
17271 | |||
17272 | else | ||
17273 | # Extract the first word of "${efl_doxygen}", so it can be a program name with args. | ||
17274 | set dummy ${efl_doxygen}; ac_word=$2 | ||
17275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
17276 | $as_echo_n "checking for $ac_word... " >&6; } | ||
17277 | if test "${ac_cv_prog_efl_have_doxygen+set}" = set; then : | ||
17278 | $as_echo_n "(cached) " >&6 | ||
17279 | else | ||
17280 | if test -n "$efl_have_doxygen"; then | ||
17281 | ac_cv_prog_efl_have_doxygen="$efl_have_doxygen" # Let the user override the test. | ||
17282 | else | ||
17283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17284 | for as_dir in $PATH | ||
17285 | do | ||
17286 | IFS=$as_save_IFS | ||
17287 | test -z "$as_dir" && as_dir=. | ||
17288 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17289 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17290 | ac_cv_prog_efl_have_doxygen="yes" | ||
17291 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17292 | break 2 | ||
17293 | fi | ||
17294 | done | ||
17295 | done | ||
17296 | IFS=$as_save_IFS | ||
17297 | |||
17298 | test -z "$ac_cv_prog_efl_have_doxygen" && ac_cv_prog_efl_have_doxygen="no" | ||
17299 | fi | ||
17300 | fi | ||
17301 | efl_have_doxygen=$ac_cv_prog_efl_have_doxygen | ||
17302 | if test -n "$efl_have_doxygen"; then | ||
17303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $efl_have_doxygen" >&5 | ||
17304 | $as_echo "$efl_have_doxygen" >&6; } | ||
17305 | else | ||
17306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17307 | $as_echo "no" >&6; } | ||
17308 | fi | ||
17309 | |||
17310 | |||
17311 | if test "x${efl_have_doxygen}" = "xno" ; then | ||
17312 | echo "WARNING:" | ||
17313 | echo "The doxygen program was not found in your execute path." | ||
17314 | echo "You may have doxygen installed somewhere not covered by your path." | ||
17315 | echo "" | ||
17316 | echo "If this is the case make sure you have the packages installed, AND" | ||
17317 | echo "that the doxygen program is in your execute path (see your" | ||
17318 | echo "shell manual page on setting the \$PATH environment variable), OR" | ||
17319 | echo "alternatively, specify the program to use with --with-doxygen." | ||
17320 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no doxygen detected. Documentation will not be built" >&5 | ||
17321 | $as_echo "$as_me: WARNING: no doxygen detected. Documentation will not be built" >&2;} | ||
17322 | fi | ||
17323 | |||
17324 | fi | ||
17325 | |||
17326 | else | ||
17327 | efl_have_doxygen="no" | ||
17328 | fi | ||
17329 | |||
17330 | |||
17331 | |||
17332 | if ! test "x${efl_have_doxygen}" = "xyes" ; then | ||
17333 | efl_enable_doc="no" | ||
17334 | fi | ||
17335 | |||
17336 | if test "x${efl_have_doxygen}" = "xyes"; then | ||
17337 | EFL_BUILD_DOC_TRUE= | ||
17338 | EFL_BUILD_DOC_FALSE='#' | ||
17339 | else | ||
17340 | EFL_BUILD_DOC_TRUE='#' | ||
17341 | EFL_BUILD_DOC_FALSE= | ||
17342 | fi | ||
17343 | |||
17344 | |||
17345 | if test "x$efl_have_doxygen" = "xyes"; then : | ||
17346 | build_doc="yes" | ||
17347 | else | ||
17348 | build_doc="no" | ||
17349 | fi | ||
17350 | |||
17351 | |||
17352 | |||
17353 | ### Checks for libraries | ||
17354 | |||
17355 | # Valgrind | ||
17356 | want_valgrind="auto" | ||
17357 | have_valgrind="no" | ||
17358 | |||
17359 | # Check whether --enable-valgrind was given. | ||
17360 | if test "${enable_valgrind+set}" = set; then : | ||
17361 | enableval=$enable_valgrind; want_valgrind=$enableval | ||
17362 | fi | ||
17363 | |||
17364 | |||
17365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable build with valgrind" >&5 | ||
17366 | $as_echo_n "checking whether to enable build with valgrind... " >&6; } | ||
17367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_valgrind}" >&5 | ||
17368 | $as_echo "${want_valgrind}" >&6; } | ||
17369 | |||
17370 | if test "x${want_valgrind}" = "xyes" || test "x${want_valgrind}" = "xauto"; then | ||
17371 | |||
17372 | pkg_failed=no | ||
17373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5 | ||
17374 | $as_echo_n "checking for VALGRIND... " >&6; } | ||
17375 | |||
17376 | if test -n "$VALGRIND_CFLAGS"; then | ||
17377 | pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS" | ||
17378 | elif test -n "$PKG_CONFIG"; then | ||
17379 | if test -n "$PKG_CONFIG" && \ | ||
17380 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind >= 2.4.0\""; } >&5 | ||
17381 | ($PKG_CONFIG --exists --print-errors "valgrind >= 2.4.0") 2>&5 | ||
17382 | ac_status=$? | ||
17383 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17384 | test $ac_status = 0; }; then | ||
17385 | pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind >= 2.4.0" 2>/dev/null` | ||
17386 | else | ||
17387 | pkg_failed=yes | ||
17388 | fi | ||
17389 | else | ||
17390 | pkg_failed=untried | ||
17391 | fi | ||
17392 | if test -n "$VALGRIND_LIBS"; then | ||
17393 | pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS" | ||
17394 | elif test -n "$PKG_CONFIG"; then | ||
17395 | if test -n "$PKG_CONFIG" && \ | ||
17396 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind >= 2.4.0\""; } >&5 | ||
17397 | ($PKG_CONFIG --exists --print-errors "valgrind >= 2.4.0") 2>&5 | ||
17398 | ac_status=$? | ||
17399 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17400 | test $ac_status = 0; }; then | ||
17401 | pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind >= 2.4.0" 2>/dev/null` | ||
17402 | else | ||
17403 | pkg_failed=yes | ||
17404 | fi | ||
17405 | else | ||
17406 | pkg_failed=untried | ||
17407 | fi | ||
17408 | |||
17409 | |||
17410 | |||
17411 | if test $pkg_failed = yes; then | ||
17412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17413 | $as_echo "no" >&6; } | ||
17414 | |||
17415 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
17416 | _pkg_short_errors_supported=yes | ||
17417 | else | ||
17418 | _pkg_short_errors_supported=no | ||
17419 | fi | ||
17420 | if test $_pkg_short_errors_supported = yes; then | ||
17421 | VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "valgrind >= 2.4.0" 2>&1` | ||
17422 | else | ||
17423 | VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors "valgrind >= 2.4.0" 2>&1` | ||
17424 | fi | ||
17425 | # Put the nasty error message in config.log where it belongs | ||
17426 | echo "$VALGRIND_PKG_ERRORS" >&5 | ||
17427 | |||
17428 | |||
17429 | |||
17430 | $as_echo "#define NVALGRIND 1" >>confdefs.h | ||
17431 | |||
17432 | if test "x${want_valgrind}" = "xyes"; then | ||
17433 | as_fn_error $? "Valgrind >= 2.4.0 is required" "$LINENO" 5 | ||
17434 | fi | ||
17435 | |||
17436 | elif test $pkg_failed = untried; then | ||
17437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17438 | $as_echo "no" >&6; } | ||
17439 | |||
17440 | |||
17441 | $as_echo "#define NVALGRIND 1" >>confdefs.h | ||
17442 | |||
17443 | if test "x${want_valgrind}" = "xyes"; then | ||
17444 | as_fn_error $? "Valgrind >= 2.4.0 is required" "$LINENO" 5 | ||
17445 | fi | ||
17446 | |||
17447 | else | ||
17448 | VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS | ||
17449 | VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS | ||
17450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17451 | $as_echo "yes" >&6; } | ||
17452 | |||
17453 | requirement_eina="valgrind ${requirement_eina}" | ||
17454 | have_valgrind="yes" | ||
17455 | |||
17456 | fi | ||
17457 | else | ||
17458 | |||
17459 | $as_echo "#define NVALGRIND 1" >>confdefs.h | ||
17460 | |||
17461 | fi | ||
17462 | |||
17463 | |||
17464 | # Evil library for compilation on Windows CE | ||
17465 | |||
17466 | EFL_EINA_BUILD="" | ||
17467 | case "$host_os" in | ||
17468 | mingw*) | ||
17469 | |||
17470 | pkg_failed=no | ||
17471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVIL" >&5 | ||
17472 | $as_echo_n "checking for EVIL... " >&6; } | ||
17473 | |||
17474 | if test -n "$EVIL_CFLAGS"; then | ||
17475 | pkg_cv_EVIL_CFLAGS="$EVIL_CFLAGS" | ||
17476 | elif test -n "$PKG_CONFIG"; then | ||
17477 | if test -n "$PKG_CONFIG" && \ | ||
17478 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evil >= 1.0.0\""; } >&5 | ||
17479 | ($PKG_CONFIG --exists --print-errors "evil >= 1.0.0") 2>&5 | ||
17480 | ac_status=$? | ||
17481 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17482 | test $ac_status = 0; }; then | ||
17483 | pkg_cv_EVIL_CFLAGS=`$PKG_CONFIG --cflags "evil >= 1.0.0" 2>/dev/null` | ||
17484 | else | ||
17485 | pkg_failed=yes | ||
17486 | fi | ||
17487 | else | ||
17488 | pkg_failed=untried | ||
17489 | fi | ||
17490 | if test -n "$EVIL_LIBS"; then | ||
17491 | pkg_cv_EVIL_LIBS="$EVIL_LIBS" | ||
17492 | elif test -n "$PKG_CONFIG"; then | ||
17493 | if test -n "$PKG_CONFIG" && \ | ||
17494 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evil >= 1.0.0\""; } >&5 | ||
17495 | ($PKG_CONFIG --exists --print-errors "evil >= 1.0.0") 2>&5 | ||
17496 | ac_status=$? | ||
17497 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17498 | test $ac_status = 0; }; then | ||
17499 | pkg_cv_EVIL_LIBS=`$PKG_CONFIG --libs "evil >= 1.0.0" 2>/dev/null` | ||
17500 | else | ||
17501 | pkg_failed=yes | ||
17502 | fi | ||
17503 | else | ||
17504 | pkg_failed=untried | ||
17505 | fi | ||
17506 | |||
17507 | |||
17508 | |||
17509 | if test $pkg_failed = yes; then | ||
17510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17511 | $as_echo "no" >&6; } | ||
17512 | |||
17513 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
17514 | _pkg_short_errors_supported=yes | ||
17515 | else | ||
17516 | _pkg_short_errors_supported=no | ||
17517 | fi | ||
17518 | if test $_pkg_short_errors_supported = yes; then | ||
17519 | EVIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "evil >= 1.0.0" 2>&1` | ||
17520 | else | ||
17521 | EVIL_PKG_ERRORS=`$PKG_CONFIG --print-errors "evil >= 1.0.0" 2>&1` | ||
17522 | fi | ||
17523 | # Put the nasty error message in config.log where it belongs | ||
17524 | echo "$EVIL_PKG_ERRORS" >&5 | ||
17525 | |||
17526 | as_fn_error $? "Package requirements (evil >= 1.0.0) were not met: | ||
17527 | |||
17528 | $EVIL_PKG_ERRORS | ||
17529 | |||
17530 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
17531 | installed software in a non-standard prefix. | ||
17532 | |||
17533 | Alternatively, you may set the environment variables EVIL_CFLAGS | ||
17534 | and EVIL_LIBS to avoid the need to call pkg-config. | ||
17535 | See the pkg-config man page for more details." "$LINENO" 5 | ||
17536 | elif test $pkg_failed = untried; then | ||
17537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17538 | $as_echo "no" >&6; } | ||
17539 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
17540 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
17541 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
17542 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
17543 | path to pkg-config. | ||
17544 | |||
17545 | Alternatively, you may set the environment variables EVIL_CFLAGS | ||
17546 | and EVIL_LIBS to avoid the need to call pkg-config. | ||
17547 | See the pkg-config man page for more details. | ||
17548 | |||
17549 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
17550 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
17551 | else | ||
17552 | EVIL_CFLAGS=$pkg_cv_EVIL_CFLAGS | ||
17553 | EVIL_LIBS=$pkg_cv_EVIL_LIBS | ||
17554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17555 | $as_echo "yes" >&6; } | ||
17556 | |||
17557 | fi | ||
17558 | |||
17559 | $as_echo "#define HAVE_EVIL 1" >>confdefs.h | ||
17560 | |||
17561 | requirement_eina="${requirement_eina} evil" | ||
17562 | EFL_EINA_BUILD="-DEFL_EINA_BUILD" | ||
17563 | ;; | ||
17564 | esac | ||
17565 | |||
17566 | |||
17567 | # Check ememoa memory pool library | ||
17568 | |||
17569 | # Check whether --enable-ememoa was given. | ||
17570 | if test "${enable_ememoa+set}" = set; then : | ||
17571 | enableval=$enable_ememoa; | ||
17572 | if test "x${enableval}" = "xyes" ; then | ||
17573 | enable_ememoa="yes" | ||
17574 | else | ||
17575 | enable_ememoa="no" | ||
17576 | fi | ||
17577 | |||
17578 | else | ||
17579 | enable_ememoa="yes" | ||
17580 | fi | ||
17581 | |||
17582 | |||
17583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ememoa for memory pool" >&5 | ||
17584 | $as_echo_n "checking whether to use ememoa for memory pool... " >&6; } | ||
17585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ememoa" >&5 | ||
17586 | $as_echo "$enable_ememoa" >&6; } | ||
17587 | |||
17588 | if test "x${enable_ememoa}" = "xyes" ; then | ||
17589 | |||
17590 | pkg_failed=no | ||
17591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMEMOA" >&5 | ||
17592 | $as_echo_n "checking for EMEMOA... " >&6; } | ||
17593 | |||
17594 | if test -n "$EMEMOA_CFLAGS"; then | ||
17595 | pkg_cv_EMEMOA_CFLAGS="$EMEMOA_CFLAGS" | ||
17596 | elif test -n "$PKG_CONFIG"; then | ||
17597 | if test -n "$PKG_CONFIG" && \ | ||
17598 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ememoa >= 0.0.26 \""; } >&5 | ||
17599 | ($PKG_CONFIG --exists --print-errors "ememoa >= 0.0.26 ") 2>&5 | ||
17600 | ac_status=$? | ||
17601 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17602 | test $ac_status = 0; }; then | ||
17603 | pkg_cv_EMEMOA_CFLAGS=`$PKG_CONFIG --cflags "ememoa >= 0.0.26 " 2>/dev/null` | ||
17604 | else | ||
17605 | pkg_failed=yes | ||
17606 | fi | ||
17607 | else | ||
17608 | pkg_failed=untried | ||
17609 | fi | ||
17610 | if test -n "$EMEMOA_LIBS"; then | ||
17611 | pkg_cv_EMEMOA_LIBS="$EMEMOA_LIBS" | ||
17612 | elif test -n "$PKG_CONFIG"; then | ||
17613 | if test -n "$PKG_CONFIG" && \ | ||
17614 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ememoa >= 0.0.26 \""; } >&5 | ||
17615 | ($PKG_CONFIG --exists --print-errors "ememoa >= 0.0.26 ") 2>&5 | ||
17616 | ac_status=$? | ||
17617 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17618 | test $ac_status = 0; }; then | ||
17619 | pkg_cv_EMEMOA_LIBS=`$PKG_CONFIG --libs "ememoa >= 0.0.26 " 2>/dev/null` | ||
17620 | else | ||
17621 | pkg_failed=yes | ||
17622 | fi | ||
17623 | else | ||
17624 | pkg_failed=untried | ||
17625 | fi | ||
17626 | |||
17627 | |||
17628 | |||
17629 | if test $pkg_failed = yes; then | ||
17630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17631 | $as_echo "no" >&6; } | ||
17632 | |||
17633 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
17634 | _pkg_short_errors_supported=yes | ||
17635 | else | ||
17636 | _pkg_short_errors_supported=no | ||
17637 | fi | ||
17638 | if test $_pkg_short_errors_supported = yes; then | ||
17639 | EMEMOA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ememoa >= 0.0.26 " 2>&1` | ||
17640 | else | ||
17641 | EMEMOA_PKG_ERRORS=`$PKG_CONFIG --print-errors "ememoa >= 0.0.26 " 2>&1` | ||
17642 | fi | ||
17643 | # Put the nasty error message in config.log where it belongs | ||
17644 | echo "$EMEMOA_PKG_ERRORS" >&5 | ||
17645 | |||
17646 | enable_ememoa="no" | ||
17647 | elif test $pkg_failed = untried; then | ||
17648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17649 | $as_echo "no" >&6; } | ||
17650 | enable_ememoa="no" | ||
17651 | else | ||
17652 | EMEMOA_CFLAGS=$pkg_cv_EMEMOA_CFLAGS | ||
17653 | EMEMOA_LIBS=$pkg_cv_EMEMOA_LIBS | ||
17654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17655 | $as_echo "yes" >&6; } | ||
17656 | enable_ememoa="yes" | ||
17657 | fi | ||
17658 | fi | ||
17659 | |||
17660 | |||
17661 | pkg_failed=no | ||
17662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECORE_EVAS" >&5 | ||
17663 | $as_echo_n "checking for ECORE_EVAS... " >&6; } | ||
17664 | |||
17665 | if test -n "$ECORE_EVAS_CFLAGS"; then | ||
17666 | pkg_cv_ECORE_EVAS_CFLAGS="$ECORE_EVAS_CFLAGS" | ||
17667 | elif test -n "$PKG_CONFIG"; then | ||
17668 | if test -n "$PKG_CONFIG" && \ | ||
17669 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-evas ecore evas\""; } >&5 | ||
17670 | ($PKG_CONFIG --exists --print-errors "ecore-evas ecore evas") 2>&5 | ||
17671 | ac_status=$? | ||
17672 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17673 | test $ac_status = 0; }; then | ||
17674 | pkg_cv_ECORE_EVAS_CFLAGS=`$PKG_CONFIG --cflags "ecore-evas ecore evas" 2>/dev/null` | ||
17675 | else | ||
17676 | pkg_failed=yes | ||
17677 | fi | ||
17678 | else | ||
17679 | pkg_failed=untried | ||
17680 | fi | ||
17681 | if test -n "$ECORE_EVAS_LIBS"; then | ||
17682 | pkg_cv_ECORE_EVAS_LIBS="$ECORE_EVAS_LIBS" | ||
17683 | elif test -n "$PKG_CONFIG"; then | ||
17684 | if test -n "$PKG_CONFIG" && \ | ||
17685 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-evas ecore evas\""; } >&5 | ||
17686 | ($PKG_CONFIG --exists --print-errors "ecore-evas ecore evas") 2>&5 | ||
17687 | ac_status=$? | ||
17688 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17689 | test $ac_status = 0; }; then | ||
17690 | pkg_cv_ECORE_EVAS_LIBS=`$PKG_CONFIG --libs "ecore-evas ecore evas" 2>/dev/null` | ||
17691 | else | ||
17692 | pkg_failed=yes | ||
17693 | fi | ||
17694 | else | ||
17695 | pkg_failed=untried | ||
17696 | fi | ||
17697 | |||
17698 | |||
17699 | |||
17700 | if test $pkg_failed = yes; then | ||
17701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17702 | $as_echo "no" >&6; } | ||
17703 | |||
17704 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
17705 | _pkg_short_errors_supported=yes | ||
17706 | else | ||
17707 | _pkg_short_errors_supported=no | ||
17708 | fi | ||
17709 | if test $_pkg_short_errors_supported = yes; then | ||
17710 | ECORE_EVAS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ecore-evas ecore evas" 2>&1` | ||
17711 | else | ||
17712 | ECORE_EVAS_PKG_ERRORS=`$PKG_CONFIG --print-errors "ecore-evas ecore evas" 2>&1` | ||
17713 | fi | ||
17714 | # Put the nasty error message in config.log where it belongs | ||
17715 | echo "$ECORE_EVAS_PKG_ERRORS" >&5 | ||
17716 | |||
17717 | build_tiler_example="no" | ||
17718 | elif test $pkg_failed = untried; then | ||
17719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17720 | $as_echo "no" >&6; } | ||
17721 | build_tiler_example="no" | ||
17722 | else | ||
17723 | ECORE_EVAS_CFLAGS=$pkg_cv_ECORE_EVAS_CFLAGS | ||
17724 | ECORE_EVAS_LIBS=$pkg_cv_ECORE_EVAS_LIBS | ||
17725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17726 | $as_echo "yes" >&6; } | ||
17727 | build_tiler_example="yes" | ||
17728 | fi | ||
17729 | |||
17730 | if test "x${build_tiler_example}" = "xyes"; then | ||
17731 | BUILD_TILER_EXAMPLE_TRUE= | ||
17732 | BUILD_TILER_EXAMPLE_FALSE='#' | ||
17733 | else | ||
17734 | BUILD_TILER_EXAMPLE_TRUE='#' | ||
17735 | BUILD_TILER_EXAMPLE_FALSE= | ||
17736 | fi | ||
17737 | |||
17738 | |||
17739 | ### Checks for compiler characteristics | ||
17740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | ||
17741 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | ||
17742 | if test "${ac_cv_c_const+set}" = set; then : | ||
17743 | $as_echo_n "(cached) " >&6 | ||
17744 | else | ||
17745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17746 | /* end confdefs.h. */ | ||
17747 | |||
17748 | int | ||
17749 | main () | ||
17750 | { | ||
17751 | /* FIXME: Include the comments suggested by Paul. */ | ||
17752 | #ifndef __cplusplus | ||
17753 | /* Ultrix mips cc rejects this. */ | ||
17754 | typedef int charset[2]; | ||
17755 | const charset cs; | ||
17756 | /* SunOS 4.1.1 cc rejects this. */ | ||
17757 | char const *const *pcpcc; | ||
17758 | char **ppc; | ||
17759 | /* NEC SVR4.0.2 mips cc rejects this. */ | ||
17760 | struct point {int x, y;}; | ||
17761 | static struct point const zero = {0,0}; | ||
17762 | /* AIX XL C 1.02.0.0 rejects this. | ||
17763 | It does not let you subtract one const X* pointer from another in | ||
17764 | an arm of an if-expression whose if-part is not a constant | ||
17765 | expression */ | ||
17766 | const char *g = "string"; | ||
17767 | pcpcc = &g + (g ? g-g : 0); | ||
17768 | /* HPUX 7.0 cc rejects these. */ | ||
17769 | ++pcpcc; | ||
17770 | ppc = (char**) pcpcc; | ||
17771 | pcpcc = (char const *const *) ppc; | ||
17772 | { /* SCO 3.2v4 cc rejects this. */ | ||
17773 | char *t; | ||
17774 | char const *s = 0 ? (char *) 0 : (char const *) 0; | ||
17775 | |||
17776 | *t++ = 0; | ||
17777 | if (s) return 0; | ||
17778 | } | ||
17779 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | ||
17780 | int x[] = {25, 17}; | ||
17781 | const int *foo = &x[0]; | ||
17782 | ++foo; | ||
17783 | } | ||
17784 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | ||
17785 | typedef const int *iptr; | ||
17786 | iptr p = 0; | ||
17787 | ++p; | ||
17788 | } | ||
17789 | { /* AIX XL C 1.02.0.0 rejects this saying | ||
17790 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | ||
17791 | struct s { int j; const int *ap[3]; }; | ||
17792 | struct s *b; b->j = 5; | ||
17793 | } | ||
17794 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | ||
17795 | const int foo = 10; | ||
17796 | if (!foo) return 0; | ||
17797 | } | ||
17798 | return !cs[0] && !zero.x; | ||
17799 | #endif | ||
17800 | |||
17801 | ; | ||
17802 | return 0; | ||
17803 | } | ||
17804 | _ACEOF | ||
17805 | if ac_fn_c_try_compile "$LINENO"; then : | ||
17806 | ac_cv_c_const=yes | ||
17807 | else | ||
17808 | ac_cv_c_const=no | ||
17809 | fi | ||
17810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17811 | fi | ||
17812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | ||
17813 | $as_echo "$ac_cv_c_const" >&6; } | ||
17814 | if test $ac_cv_c_const = no; then | ||
17815 | |||
17816 | $as_echo "#define const /**/" >>confdefs.h | ||
17817 | |||
17818 | fi | ||
17819 | |||
17820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | ||
17821 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | ||
17822 | if test "${ac_cv_c_bigendian+set}" = set; then : | ||
17823 | $as_echo_n "(cached) " >&6 | ||
17824 | else | ||
17825 | ac_cv_c_bigendian=unknown | ||
17826 | # See if we're dealing with a universal compiler. | ||
17827 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17828 | /* end confdefs.h. */ | ||
17829 | #ifndef __APPLE_CC__ | ||
17830 | not a universal capable compiler | ||
17831 | #endif | ||
17832 | typedef int dummy; | ||
17833 | |||
17834 | _ACEOF | ||
17835 | if ac_fn_c_try_compile "$LINENO"; then : | ||
17836 | |||
17837 | # Check for potential -arch flags. It is not universal unless | ||
17838 | # there are at least two -arch flags with different values. | ||
17839 | ac_arch= | ||
17840 | ac_prev= | ||
17841 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | ||
17842 | if test -n "$ac_prev"; then | ||
17843 | case $ac_word in | ||
17844 | i?86 | x86_64 | ppc | ppc64) | ||
17845 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | ||
17846 | ac_arch=$ac_word | ||
17847 | else | ||
17848 | ac_cv_c_bigendian=universal | ||
17849 | break | ||
17850 | fi | ||
17851 | ;; | ||
17852 | esac | ||
17853 | ac_prev= | ||
17854 | elif test "x$ac_word" = "x-arch"; then | ||
17855 | ac_prev=arch | ||
17856 | fi | ||
17857 | done | ||
17858 | fi | ||
17859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17860 | if test $ac_cv_c_bigendian = unknown; then | ||
17861 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
17862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17863 | /* end confdefs.h. */ | ||
17864 | #include <sys/types.h> | ||
17865 | #include <sys/param.h> | ||
17866 | |||
17867 | int | ||
17868 | main () | ||
17869 | { | ||
17870 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | ||
17871 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | ||
17872 | && LITTLE_ENDIAN) | ||
17873 | bogus endian macros | ||
17874 | #endif | ||
17875 | |||
17876 | ; | ||
17877 | return 0; | ||
17878 | } | ||
17879 | _ACEOF | ||
17880 | if ac_fn_c_try_compile "$LINENO"; then : | ||
17881 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
17882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17883 | /* end confdefs.h. */ | ||
17884 | #include <sys/types.h> | ||
17885 | #include <sys/param.h> | ||
17886 | |||
17887 | int | ||
17888 | main () | ||
17889 | { | ||
17890 | #if BYTE_ORDER != BIG_ENDIAN | ||
17891 | not big endian | ||
17892 | #endif | ||
17893 | |||
17894 | ; | ||
17895 | return 0; | ||
17896 | } | ||
17897 | _ACEOF | ||
17898 | if ac_fn_c_try_compile "$LINENO"; then : | ||
17899 | ac_cv_c_bigendian=yes | ||
17900 | else | ||
17901 | ac_cv_c_bigendian=no | ||
17902 | fi | ||
17903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17904 | fi | ||
17905 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17906 | fi | ||
17907 | if test $ac_cv_c_bigendian = unknown; then | ||
17908 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | ||
17909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17910 | /* end confdefs.h. */ | ||
17911 | #include <limits.h> | ||
17912 | |||
17913 | int | ||
17914 | main () | ||
17915 | { | ||
17916 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | ||
17917 | bogus endian macros | ||
17918 | #endif | ||
17919 | |||
17920 | ; | ||
17921 | return 0; | ||
17922 | } | ||
17923 | _ACEOF | ||
17924 | if ac_fn_c_try_compile "$LINENO"; then : | ||
17925 | # It does; now see whether it defined to _BIG_ENDIAN or not. | ||
17926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17927 | /* end confdefs.h. */ | ||
17928 | #include <limits.h> | ||
17929 | |||
17930 | int | ||
17931 | main () | ||
17932 | { | ||
17933 | #ifndef _BIG_ENDIAN | ||
17934 | not big endian | ||
17935 | #endif | ||
17936 | |||
17937 | ; | ||
17938 | return 0; | ||
17939 | } | ||
17940 | _ACEOF | ||
17941 | if ac_fn_c_try_compile "$LINENO"; then : | ||
17942 | ac_cv_c_bigendian=yes | ||
17943 | else | ||
17944 | ac_cv_c_bigendian=no | ||
17945 | fi | ||
17946 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17947 | fi | ||
17948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17949 | fi | ||
17950 | if test $ac_cv_c_bigendian = unknown; then | ||
17951 | # Compile a test program. | ||
17952 | if test "$cross_compiling" = yes; then : | ||
17953 | # Try to guess by grepping values from an object file. | ||
17954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17955 | /* end confdefs.h. */ | ||
17956 | short int ascii_mm[] = | ||
17957 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
17958 | short int ascii_ii[] = | ||
17959 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
17960 | int use_ascii (int i) { | ||
17961 | return ascii_mm[i] + ascii_ii[i]; | ||
17962 | } | ||
17963 | short int ebcdic_ii[] = | ||
17964 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
17965 | short int ebcdic_mm[] = | ||
17966 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
17967 | int use_ebcdic (int i) { | ||
17968 | return ebcdic_mm[i] + ebcdic_ii[i]; | ||
17969 | } | ||
17970 | extern int foo; | ||
17971 | |||
17972 | int | ||
17973 | main () | ||
17974 | { | ||
17975 | return use_ascii (foo) == use_ebcdic (foo); | ||
17976 | ; | ||
17977 | return 0; | ||
17978 | } | ||
17979 | _ACEOF | ||
17980 | if ac_fn_c_try_compile "$LINENO"; then : | ||
17981 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | ||
17982 | ac_cv_c_bigendian=yes | ||
17983 | fi | ||
17984 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
17985 | if test "$ac_cv_c_bigendian" = unknown; then | ||
17986 | ac_cv_c_bigendian=no | ||
17987 | else | ||
17988 | # finding both strings is unlikely to happen, but who knows? | ||
17989 | ac_cv_c_bigendian=unknown | ||
17990 | fi | ||
17991 | fi | ||
17992 | fi | ||
17993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17994 | else | ||
17995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17996 | /* end confdefs.h. */ | ||
17997 | $ac_includes_default | ||
17998 | int | ||
17999 | main () | ||
18000 | { | ||
18001 | |||
18002 | /* Are we little or big endian? From Harbison&Steele. */ | ||
18003 | union | ||
18004 | { | ||
18005 | long int l; | ||
18006 | char c[sizeof (long int)]; | ||
18007 | } u; | ||
18008 | u.l = 1; | ||
18009 | return u.c[sizeof (long int) - 1] == 1; | ||
18010 | |||
18011 | ; | ||
18012 | return 0; | ||
18013 | } | ||
18014 | _ACEOF | ||
18015 | if ac_fn_c_try_run "$LINENO"; then : | ||
18016 | ac_cv_c_bigendian=no | ||
18017 | else | ||
18018 | ac_cv_c_bigendian=yes | ||
18019 | fi | ||
18020 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
18021 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
18022 | fi | ||
18023 | |||
18024 | fi | ||
18025 | fi | ||
18026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | ||
18027 | $as_echo "$ac_cv_c_bigendian" >&6; } | ||
18028 | case $ac_cv_c_bigendian in #( | ||
18029 | yes) | ||
18030 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | ||
18031 | ;; #( | ||
18032 | no) | ||
18033 | ;; #( | ||
18034 | universal) | ||
18035 | |||
18036 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | ||
18037 | |||
18038 | ;; #( | ||
18039 | *) | ||
18040 | as_fn_error $? "unknown endianness | ||
18041 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | ||
18042 | esac | ||
18043 | |||
18044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | ||
18045 | $as_echo_n "checking for inline... " >&6; } | ||
18046 | if test "${ac_cv_c_inline+set}" = set; then : | ||
18047 | $as_echo_n "(cached) " >&6 | ||
18048 | else | ||
18049 | ac_cv_c_inline=no | ||
18050 | for ac_kw in inline __inline__ __inline; do | ||
18051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18052 | /* end confdefs.h. */ | ||
18053 | #ifndef __cplusplus | ||
18054 | typedef int foo_t; | ||
18055 | static $ac_kw foo_t static_foo () {return 0; } | ||
18056 | $ac_kw foo_t foo () {return 0; } | ||
18057 | #endif | ||
18058 | |||
18059 | _ACEOF | ||
18060 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18061 | ac_cv_c_inline=$ac_kw | ||
18062 | fi | ||
18063 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18064 | test "$ac_cv_c_inline" != no && break | ||
18065 | done | ||
18066 | |||
18067 | fi | ||
18068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | ||
18069 | $as_echo "$ac_cv_c_inline" >&6; } | ||
18070 | |||
18071 | case $ac_cv_c_inline in | ||
18072 | inline | yes) ;; | ||
18073 | *) | ||
18074 | case $ac_cv_c_inline in | ||
18075 | no) ac_val=;; | ||
18076 | *) ac_val=$ac_cv_c_inline;; | ||
18077 | esac | ||
18078 | cat >>confdefs.h <<_ACEOF | ||
18079 | #ifndef __cplusplus | ||
18080 | #define inline $ac_val | ||
18081 | #endif | ||
18082 | _ACEOF | ||
18083 | ;; | ||
18084 | esac | ||
18085 | |||
18086 | case $ac_cv_prog_cc_stdc in #( | ||
18087 | no) : | ||
18088 | ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( | ||
18089 | *) : | ||
18090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 | ||
18091 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | ||
18092 | if test "${ac_cv_prog_cc_c99+set}" = set; then : | ||
18093 | $as_echo_n "(cached) " >&6 | ||
18094 | else | ||
18095 | ac_cv_prog_cc_c99=no | ||
18096 | ac_save_CC=$CC | ||
18097 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18098 | /* end confdefs.h. */ | ||
18099 | #include <stdarg.h> | ||
18100 | #include <stdbool.h> | ||
18101 | #include <stdlib.h> | ||
18102 | #include <wchar.h> | ||
18103 | #include <stdio.h> | ||
18104 | |||
18105 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | ||
18106 | #define debug(...) fprintf (stderr, __VA_ARGS__) | ||
18107 | #define showlist(...) puts (#__VA_ARGS__) | ||
18108 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | ||
18109 | static void | ||
18110 | test_varargs_macros (void) | ||
18111 | { | ||
18112 | int x = 1234; | ||
18113 | int y = 5678; | ||
18114 | debug ("Flag"); | ||
18115 | debug ("X = %d\n", x); | ||
18116 | showlist (The first, second, and third items.); | ||
18117 | report (x>y, "x is %d but y is %d", x, y); | ||
18118 | } | ||
18119 | |||
18120 | // Check long long types. | ||
18121 | #define BIG64 18446744073709551615ull | ||
18122 | #define BIG32 4294967295ul | ||
18123 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | ||
18124 | #if !BIG_OK | ||
18125 | your preprocessor is broken; | ||
18126 | #endif | ||
18127 | #if BIG_OK | ||
18128 | #else | ||
18129 | your preprocessor is broken; | ||
18130 | #endif | ||
18131 | static long long int bignum = -9223372036854775807LL; | ||
18132 | static unsigned long long int ubignum = BIG64; | ||
18133 | |||
18134 | struct incomplete_array | ||
18135 | { | ||
18136 | int datasize; | ||
18137 | double data[]; | ||
18138 | }; | ||
18139 | |||
18140 | struct named_init { | ||
18141 | int number; | ||
18142 | const wchar_t *name; | ||
18143 | double average; | ||
18144 | }; | ||
18145 | |||
18146 | typedef const char *ccp; | ||
18147 | |||
18148 | static inline int | ||
18149 | test_restrict (ccp restrict text) | ||
18150 | { | ||
18151 | // See if C++-style comments work. | ||
18152 | // Iterate through items via the restricted pointer. | ||
18153 | // Also check for declarations in for loops. | ||
18154 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | ||
18155 | continue; | ||
18156 | return 0; | ||
18157 | } | ||
18158 | |||
18159 | // Check varargs and va_copy. | ||
18160 | static void | ||
18161 | test_varargs (const char *format, ...) | ||
18162 | { | ||
18163 | va_list args; | ||
18164 | va_start (args, format); | ||
18165 | va_list args_copy; | ||
18166 | va_copy (args_copy, args); | ||
18167 | |||
18168 | const char *str; | ||
18169 | int number; | ||
18170 | float fnumber; | ||
18171 | |||
18172 | while (*format) | ||
18173 | { | ||
18174 | switch (*format++) | ||
18175 | { | ||
18176 | case 's': // string | ||
18177 | str = va_arg (args_copy, const char *); | ||
18178 | break; | ||
18179 | case 'd': // int | ||
18180 | number = va_arg (args_copy, int); | ||
18181 | break; | ||
18182 | case 'f': // float | ||
18183 | fnumber = va_arg (args_copy, double); | ||
18184 | break; | ||
18185 | default: | ||
18186 | break; | ||
18187 | } | ||
18188 | } | ||
18189 | va_end (args_copy); | ||
18190 | va_end (args); | ||
18191 | } | ||
18192 | |||
18193 | int | ||
18194 | main () | ||
18195 | { | ||
18196 | |||
18197 | // Check bool. | ||
18198 | _Bool success = false; | ||
18199 | |||
18200 | // Check restrict. | ||
18201 | if (test_restrict ("String literal") == 0) | ||
18202 | success = true; | ||
18203 | char *restrict newvar = "Another string"; | ||
18204 | |||
18205 | // Check varargs. | ||
18206 | test_varargs ("s, d' f .", "string", 65, 34.234); | ||
18207 | test_varargs_macros (); | ||
18208 | |||
18209 | // Check flexible array members. | ||
18210 | struct incomplete_array *ia = | ||
18211 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | ||
18212 | ia->datasize = 10; | ||
18213 | for (int i = 0; i < ia->datasize; ++i) | ||
18214 | ia->data[i] = i * 1.234; | ||
18215 | |||
18216 | // Check named initializers. | ||
18217 | struct named_init ni = { | ||
18218 | .number = 34, | ||
18219 | .name = L"Test wide string", | ||
18220 | .average = 543.34343, | ||
18221 | }; | ||
18222 | |||
18223 | ni.number = 58; | ||
18224 | |||
18225 | int dynamic_array[ni.number]; | ||
18226 | dynamic_array[ni.number - 1] = 543; | ||
18227 | |||
18228 | // work around unused variable warnings | ||
18229 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | ||
18230 | || dynamic_array[ni.number - 1] != 543); | ||
18231 | |||
18232 | ; | ||
18233 | return 0; | ||
18234 | } | ||
18235 | _ACEOF | ||
18236 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 | ||
18237 | do | ||
18238 | CC="$ac_save_CC $ac_arg" | ||
18239 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18240 | ac_cv_prog_cc_c99=$ac_arg | ||
18241 | fi | ||
18242 | rm -f core conftest.err conftest.$ac_objext | ||
18243 | test "x$ac_cv_prog_cc_c99" != "xno" && break | ||
18244 | done | ||
18245 | rm -f conftest.$ac_ext | ||
18246 | CC=$ac_save_CC | ||
18247 | |||
18248 | fi | ||
18249 | # AC_CACHE_VAL | ||
18250 | case "x$ac_cv_prog_cc_c99" in | ||
18251 | x) | ||
18252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
18253 | $as_echo "none needed" >&6; } ;; | ||
18254 | xno) | ||
18255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
18256 | $as_echo "unsupported" >&6; } ;; | ||
18257 | *) | ||
18258 | CC="$CC $ac_cv_prog_cc_c99" | ||
18259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | ||
18260 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | ||
18261 | esac | ||
18262 | if test "x$ac_cv_prog_cc_c99" != xno; then : | ||
18263 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | ||
18264 | else | ||
18265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
18266 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
18267 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
18268 | $as_echo_n "(cached) " >&6 | ||
18269 | else | ||
18270 | ac_cv_prog_cc_c89=no | ||
18271 | ac_save_CC=$CC | ||
18272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18273 | /* end confdefs.h. */ | ||
18274 | #include <stdarg.h> | ||
18275 | #include <stdio.h> | ||
18276 | #include <sys/types.h> | ||
18277 | #include <sys/stat.h> | ||
18278 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
18279 | struct buf { int x; }; | ||
18280 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
18281 | static char *e (p, i) | ||
18282 | char **p; | ||
18283 | int i; | ||
18284 | { | ||
18285 | return p[i]; | ||
18286 | } | ||
18287 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
18288 | { | ||
18289 | char *s; | ||
18290 | va_list v; | ||
18291 | va_start (v,p); | ||
18292 | s = g (p, va_arg (v,int)); | ||
18293 | va_end (v); | ||
18294 | return s; | ||
18295 | } | ||
18296 | |||
18297 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
18298 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
18299 | These don't provoke an error unfortunately, instead are silently treated | ||
18300 | as 'x'. The following induces an error, until -std is added to get | ||
18301 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
18302 | array size at least. It's necessary to write '\x00'==0 to get something | ||
18303 | that's true only with -std. */ | ||
18304 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
18305 | |||
18306 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
18307 | inside strings and character constants. */ | ||
18308 | #define FOO(x) 'x' | ||
18309 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
18310 | |||
18311 | int test (int i, double x); | ||
18312 | struct s1 {int (*f) (int a);}; | ||
18313 | struct s2 {int (*f) (double a);}; | ||
18314 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
18315 | int argc; | ||
18316 | char **argv; | ||
18317 | int | ||
18318 | main () | ||
18319 | { | ||
18320 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
18321 | ; | ||
18322 | return 0; | ||
18323 | } | ||
18324 | _ACEOF | ||
18325 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
18326 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
18327 | do | ||
18328 | CC="$ac_save_CC $ac_arg" | ||
18329 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18330 | ac_cv_prog_cc_c89=$ac_arg | ||
18331 | fi | ||
18332 | rm -f core conftest.err conftest.$ac_objext | ||
18333 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
18334 | done | ||
18335 | rm -f conftest.$ac_ext | ||
18336 | CC=$ac_save_CC | ||
18337 | |||
18338 | fi | ||
18339 | # AC_CACHE_VAL | ||
18340 | case "x$ac_cv_prog_cc_c89" in | ||
18341 | x) | ||
18342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
18343 | $as_echo "none needed" >&6; } ;; | ||
18344 | xno) | ||
18345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
18346 | $as_echo "unsupported" >&6; } ;; | ||
18347 | *) | ||
18348 | CC="$CC $ac_cv_prog_cc_c89" | ||
18349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
18350 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
18351 | esac | ||
18352 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
18353 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | ||
18354 | else | ||
18355 | ac_cv_prog_cc_stdc=no | ||
18356 | fi | ||
18357 | |||
18358 | fi | ||
18359 | ;; | ||
18360 | esac | ||
18361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 | ||
18362 | $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } | ||
18363 | if test "${ac_cv_prog_cc_stdc+set}" = set; then : | ||
18364 | $as_echo_n "(cached) " >&6 | ||
18365 | fi | ||
18366 | |||
18367 | case $ac_cv_prog_cc_stdc in #( | ||
18368 | no) : | ||
18369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
18370 | $as_echo "unsupported" >&6; } ;; #( | ||
18371 | '') : | ||
18372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
18373 | $as_echo "none needed" >&6; } ;; #( | ||
18374 | *) : | ||
18375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 | ||
18376 | $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; | ||
18377 | esac | ||
18378 | |||
18379 | |||
18380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((unused))" >&5 | ||
18381 | $as_echo_n "checking for __attribute__ ((unused))... " >&6; } | ||
18382 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18383 | /* end confdefs.h. */ | ||
18384 | |||
18385 | void foo(int x __attribute__ ((unused))) {} | ||
18386 | |||
18387 | int | ||
18388 | main () | ||
18389 | { | ||
18390 | |||
18391 | |||
18392 | ; | ||
18393 | return 0; | ||
18394 | } | ||
18395 | _ACEOF | ||
18396 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18397 | have_attribute_unused="yes" | ||
18398 | else | ||
18399 | have_attribute_unused="no" | ||
18400 | fi | ||
18401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_attribute_unused}" >&5 | ||
18403 | $as_echo "${have_attribute_unused}" >&6; } | ||
18404 | |||
18405 | if test "x${have_attribute_unused}" = "xyes" ; then | ||
18406 | |||
18407 | $as_echo "#define __UNUSED__ __attribute__ ((unused))" >>confdefs.h | ||
18408 | |||
18409 | else | ||
18410 | |||
18411 | $as_echo "#define __UNUSED__ /**/" >>confdefs.h | ||
18412 | |||
18413 | fi | ||
18414 | |||
18415 | |||
18416 | have_wince="no" | ||
18417 | have_win32="no" | ||
18418 | EINA_CFLAGS="" | ||
18419 | case "$host_os" in | ||
18420 | mingw32ce*) | ||
18421 | EINA_CFLAGS="${EVIL_CFLAGS}" | ||
18422 | have_win32="yes" | ||
18423 | have_wince="yes" | ||
18424 | ;; | ||
18425 | mingw*) | ||
18426 | EINA_CFLAGS="${EVIL_CFLAGS}" | ||
18427 | have_win32="yes" | ||
18428 | ;; | ||
18429 | esac | ||
18430 | if test "x$have_wince" = "xyes"; then | ||
18431 | EINA_HAVE_WINCE_TRUE= | ||
18432 | EINA_HAVE_WINCE_FALSE='#' | ||
18433 | else | ||
18434 | EINA_HAVE_WINCE_TRUE='#' | ||
18435 | EINA_HAVE_WINCE_FALSE= | ||
18436 | fi | ||
18437 | |||
18438 | if test "x$have_win32" = "xyes"; then | ||
18439 | EINA_HAVE_WIN32_TRUE= | ||
18440 | EINA_HAVE_WIN32_FALSE='#' | ||
18441 | else | ||
18442 | EINA_HAVE_WIN32_TRUE='#' | ||
18443 | EINA_HAVE_WIN32_FALSE= | ||
18444 | fi | ||
18445 | |||
18446 | |||
18447 | |||
18448 | |||
18449 | |||
18450 | CFLAGS_save="${CFLAGS}" | ||
18451 | CFLAGS="${CFLAGS} -Wall" | ||
18452 | |||
18453 | ac_ext=c | ||
18454 | ac_cpp='$CPP $CPPFLAGS' | ||
18455 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
18456 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
18457 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
18458 | |||
18459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wall" >&5 | ||
18460 | $as_echo_n "checking whether the compiler supports -Wall... " >&6; } | ||
18461 | |||
18462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18463 | /* end confdefs.h. */ | ||
18464 | |||
18465 | int | ||
18466 | main () | ||
18467 | { | ||
18468 | |||
18469 | ; | ||
18470 | return 0; | ||
18471 | } | ||
18472 | _ACEOF | ||
18473 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18474 | have_flag="yes" | ||
18475 | else | ||
18476 | have_flag="no" | ||
18477 | fi | ||
18478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_flag}" >&5 | ||
18480 | $as_echo "${have_flag}" >&6; } | ||
18481 | |||
18482 | if test "x${have_flag}" = "xno" ; then | ||
18483 | CFLAGS="${CFLAGS_save}" | ||
18484 | fi | ||
18485 | ac_ext=c | ||
18486 | ac_cpp='$CPP $CPPFLAGS' | ||
18487 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
18488 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
18489 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
18490 | |||
18491 | |||
18492 | |||
18493 | |||
18494 | |||
18495 | CFLAGS_save="${CFLAGS}" | ||
18496 | CFLAGS="${CFLAGS} -W" | ||
18497 | |||
18498 | ac_ext=c | ||
18499 | ac_cpp='$CPP $CPPFLAGS' | ||
18500 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
18501 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
18502 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
18503 | |||
18504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -W" >&5 | ||
18505 | $as_echo_n "checking whether the compiler supports -W... " >&6; } | ||
18506 | |||
18507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18508 | /* end confdefs.h. */ | ||
18509 | |||
18510 | int | ||
18511 | main () | ||
18512 | { | ||
18513 | |||
18514 | ; | ||
18515 | return 0; | ||
18516 | } | ||
18517 | _ACEOF | ||
18518 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18519 | have_flag="yes" | ||
18520 | else | ||
18521 | have_flag="no" | ||
18522 | fi | ||
18523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_flag}" >&5 | ||
18525 | $as_echo "${have_flag}" >&6; } | ||
18526 | |||
18527 | if test "x${have_flag}" = "xno" ; then | ||
18528 | CFLAGS="${CFLAGS_save}" | ||
18529 | fi | ||
18530 | ac_ext=c | ||
18531 | ac_cpp='$CPP $CPPFLAGS' | ||
18532 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
18533 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
18534 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
18535 | |||
18536 | |||
18537 | |||
18538 | |||
18539 | |||
18540 | |||
18541 | |||
18542 | CFLAGS_save="${CFLAGS}" | ||
18543 | CFLAGS="${CFLAGS} -Wshadow" | ||
18544 | |||
18545 | ac_ext=c | ||
18546 | ac_cpp='$CPP $CPPFLAGS' | ||
18547 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
18548 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
18549 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
18550 | |||
18551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wshadow" >&5 | ||
18552 | $as_echo_n "checking whether the compiler supports -Wshadow... " >&6; } | ||
18553 | |||
18554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18555 | /* end confdefs.h. */ | ||
18556 | |||
18557 | int | ||
18558 | main () | ||
18559 | { | ||
18560 | |||
18561 | ; | ||
18562 | return 0; | ||
18563 | } | ||
18564 | _ACEOF | ||
18565 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18566 | have_flag="yes" | ||
18567 | else | ||
18568 | have_flag="no" | ||
18569 | fi | ||
18570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_flag}" >&5 | ||
18572 | $as_echo "${have_flag}" >&6; } | ||
18573 | |||
18574 | if test "x${have_flag}" = "xno" ; then | ||
18575 | CFLAGS="${CFLAGS_save}" | ||
18576 | fi | ||
18577 | ac_ext=c | ||
18578 | ac_cpp='$CPP $CPPFLAGS' | ||
18579 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
18580 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
18581 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
18582 | |||
18583 | |||
18584 | |||
18585 | |||
18586 | ### Checks for portability layer | ||
18587 | |||
18588 | |||
18589 | pkg_failed=no | ||
18590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXOTIC" >&5 | ||
18591 | $as_echo_n "checking for EXOTIC... " >&6; } | ||
18592 | |||
18593 | if test -n "$EXOTIC_CFLAGS"; then | ||
18594 | pkg_cv_EXOTIC_CFLAGS="$EXOTIC_CFLAGS" | ||
18595 | elif test -n "$PKG_CONFIG"; then | ||
18596 | if test -n "$PKG_CONFIG" && \ | ||
18597 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"exotic\""; } >&5 | ||
18598 | ($PKG_CONFIG --exists --print-errors "exotic") 2>&5 | ||
18599 | ac_status=$? | ||
18600 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
18601 | test $ac_status = 0; }; then | ||
18602 | pkg_cv_EXOTIC_CFLAGS=`$PKG_CONFIG --cflags "exotic" 2>/dev/null` | ||
18603 | else | ||
18604 | pkg_failed=yes | ||
18605 | fi | ||
18606 | else | ||
18607 | pkg_failed=untried | ||
18608 | fi | ||
18609 | if test -n "$EXOTIC_LIBS"; then | ||
18610 | pkg_cv_EXOTIC_LIBS="$EXOTIC_LIBS" | ||
18611 | elif test -n "$PKG_CONFIG"; then | ||
18612 | if test -n "$PKG_CONFIG" && \ | ||
18613 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"exotic\""; } >&5 | ||
18614 | ($PKG_CONFIG --exists --print-errors "exotic") 2>&5 | ||
18615 | ac_status=$? | ||
18616 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
18617 | test $ac_status = 0; }; then | ||
18618 | pkg_cv_EXOTIC_LIBS=`$PKG_CONFIG --libs "exotic" 2>/dev/null` | ||
18619 | else | ||
18620 | pkg_failed=yes | ||
18621 | fi | ||
18622 | else | ||
18623 | pkg_failed=untried | ||
18624 | fi | ||
18625 | |||
18626 | |||
18627 | |||
18628 | if test $pkg_failed = yes; then | ||
18629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18630 | $as_echo "no" >&6; } | ||
18631 | |||
18632 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
18633 | _pkg_short_errors_supported=yes | ||
18634 | else | ||
18635 | _pkg_short_errors_supported=no | ||
18636 | fi | ||
18637 | if test $_pkg_short_errors_supported = yes; then | ||
18638 | EXOTIC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "exotic" 2>&1` | ||
18639 | else | ||
18640 | EXOTIC_PKG_ERRORS=`$PKG_CONFIG --print-errors "exotic" 2>&1` | ||
18641 | fi | ||
18642 | # Put the nasty error message in config.log where it belongs | ||
18643 | echo "$EXOTIC_PKG_ERRORS" >&5 | ||
18644 | |||
18645 | enable_exotic="no" | ||
18646 | elif test $pkg_failed = untried; then | ||
18647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18648 | $as_echo "no" >&6; } | ||
18649 | enable_exotic="no" | ||
18650 | else | ||
18651 | EXOTIC_CFLAGS=$pkg_cv_EXOTIC_CFLAGS | ||
18652 | EXOTIC_LIBS=$pkg_cv_EXOTIC_LIBS | ||
18653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18654 | $as_echo "yes" >&6; } | ||
18655 | enable_exotic="yes" | ||
18656 | fi | ||
18657 | |||
18658 | if test "x${enable_exotic}" = "xyes"; then | ||
18659 | requirement_eina="exotic ${requirement_eina}" | ||
18660 | EINA_CFLAGS="${EINA_CFLAGS} ${EXOTIC_CFLAGS}" | ||
18661 | EINA_LIBS="${EXOTIC_LIBS}" | ||
18662 | |||
18663 | EINA_CONFIGURE_HAVE_EXOTIC="#define EINA_HAVE_EXOTIC" | ||
18664 | |||
18665 | $as_echo "#define HAVE_EXOTIC_H 1" >>confdefs.h | ||
18666 | |||
18667 | fi | ||
18668 | if test "x${enable_exotic}" = "xyes"; then | ||
18669 | EINA_HAVE_EXOTIC_TRUE= | ||
18670 | EINA_HAVE_EXOTIC_FALSE='#' | ||
18671 | else | ||
18672 | EINA_HAVE_EXOTIC_TRUE='#' | ||
18673 | EINA_HAVE_EXOTIC_FALSE= | ||
18674 | fi | ||
18675 | |||
18676 | |||
18677 | |||
18678 | case "$host_vendor" in | ||
18679 | ps3*) | ||
18680 | |||
18681 | pkg_failed=no | ||
18682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESCAPE" >&5 | ||
18683 | $as_echo_n "checking for ESCAPE... " >&6; } | ||
18684 | |||
18685 | if test -n "$ESCAPE_CFLAGS"; then | ||
18686 | pkg_cv_ESCAPE_CFLAGS="$ESCAPE_CFLAGS" | ||
18687 | elif test -n "$PKG_CONFIG"; then | ||
18688 | if test -n "$PKG_CONFIG" && \ | ||
18689 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"escape\""; } >&5 | ||
18690 | ($PKG_CONFIG --exists --print-errors "escape") 2>&5 | ||
18691 | ac_status=$? | ||
18692 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
18693 | test $ac_status = 0; }; then | ||
18694 | pkg_cv_ESCAPE_CFLAGS=`$PKG_CONFIG --cflags "escape" 2>/dev/null` | ||
18695 | else | ||
18696 | pkg_failed=yes | ||
18697 | fi | ||
18698 | else | ||
18699 | pkg_failed=untried | ||
18700 | fi | ||
18701 | if test -n "$ESCAPE_LIBS"; then | ||
18702 | pkg_cv_ESCAPE_LIBS="$ESCAPE_LIBS" | ||
18703 | elif test -n "$PKG_CONFIG"; then | ||
18704 | if test -n "$PKG_CONFIG" && \ | ||
18705 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"escape\""; } >&5 | ||
18706 | ($PKG_CONFIG --exists --print-errors "escape") 2>&5 | ||
18707 | ac_status=$? | ||
18708 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
18709 | test $ac_status = 0; }; then | ||
18710 | pkg_cv_ESCAPE_LIBS=`$PKG_CONFIG --libs "escape" 2>/dev/null` | ||
18711 | else | ||
18712 | pkg_failed=yes | ||
18713 | fi | ||
18714 | else | ||
18715 | pkg_failed=untried | ||
18716 | fi | ||
18717 | |||
18718 | |||
18719 | |||
18720 | if test $pkg_failed = yes; then | ||
18721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18722 | $as_echo "no" >&6; } | ||
18723 | |||
18724 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
18725 | _pkg_short_errors_supported=yes | ||
18726 | else | ||
18727 | _pkg_short_errors_supported=no | ||
18728 | fi | ||
18729 | if test $_pkg_short_errors_supported = yes; then | ||
18730 | ESCAPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "escape" 2>&1` | ||
18731 | else | ||
18732 | ESCAPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "escape" 2>&1` | ||
18733 | fi | ||
18734 | # Put the nasty error message in config.log where it belongs | ||
18735 | echo "$ESCAPE_PKG_ERRORS" >&5 | ||
18736 | |||
18737 | as_fn_error $? "Package requirements (escape) were not met: | ||
18738 | |||
18739 | $ESCAPE_PKG_ERRORS | ||
18740 | |||
18741 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
18742 | installed software in a non-standard prefix. | ||
18743 | |||
18744 | Alternatively, you may set the environment variables ESCAPE_CFLAGS | ||
18745 | and ESCAPE_LIBS to avoid the need to call pkg-config. | ||
18746 | See the pkg-config man page for more details." "$LINENO" 5 | ||
18747 | elif test $pkg_failed = untried; then | ||
18748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18749 | $as_echo "no" >&6; } | ||
18750 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
18751 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
18752 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
18753 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
18754 | path to pkg-config. | ||
18755 | |||
18756 | Alternatively, you may set the environment variables ESCAPE_CFLAGS | ||
18757 | and ESCAPE_LIBS to avoid the need to call pkg-config. | ||
18758 | See the pkg-config man page for more details. | ||
18759 | |||
18760 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
18761 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
18762 | else | ||
18763 | ESCAPE_CFLAGS=$pkg_cv_ESCAPE_CFLAGS | ||
18764 | ESCAPE_LIBS=$pkg_cv_ESCAPE_LIBS | ||
18765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18766 | $as_echo "yes" >&6; } | ||
18767 | |||
18768 | fi | ||
18769 | |||
18770 | $as_echo "#define HAVE_ESCAPE 1" >>confdefs.h | ||
18771 | |||
18772 | requirement_eina="${requirement_eina} escape" | ||
18773 | EINA_CFLAGS="${ESCAPE_CFLAGS} ${EINA_CFLAGS}" | ||
18774 | ;; | ||
18775 | esac | ||
18776 | |||
18777 | |||
18778 | |||
18779 | ### Checks for linker characteristics | ||
18780 | EINA_LIBS= | ||
18781 | lt_enable_auto_import="" | ||
18782 | case "${host_os}" in | ||
18783 | mingw*) | ||
18784 | EINA_LIBS="${EINA_LIBS} -ldl ${EVIL_LIBS} -lm" | ||
18785 | lt_enable_auto_import="-Wl,--enable-auto-import" | ||
18786 | ;; | ||
18787 | dragonfly*|openbsd*) | ||
18788 | EINA_LIBS="${EINA_LIBS} -lm" | ||
18789 | ;; | ||
18790 | freebsd*|netbsd*) | ||
18791 | EINA_LIBS="${EINA_LIBS} -lrt -lm" | ||
18792 | ;; | ||
18793 | darwin*) | ||
18794 | EINA_LIBS="${EINA_LIBS} -lm" | ||
18795 | ;; | ||
18796 | cygwin*) | ||
18797 | EINA_LIBS="${EINA_LIBS} -ldl -lm" | ||
18798 | ;; | ||
18799 | *) | ||
18800 | EINA_LIBS="${EINA_LIBS} -lrt -ldl -lm" | ||
18801 | ;; | ||
18802 | esac | ||
18803 | case "$host_vendor" in | ||
18804 | ps3*) | ||
18805 | # Escape had already been checked to exist | ||
18806 | EINA_LIBS="${ESCAPE_LIBS}" | ||
18807 | ;; | ||
18808 | esac | ||
18809 | |||
18810 | |||
18811 | |||
18812 | |||
18813 | |||
18814 | LDFLAGS_save="${LDFLAGS}" | ||
18815 | LDFLAGS="${LDFLAGS} -fno-strict-aliasing" | ||
18816 | |||
18817 | ac_ext=c | ||
18818 | ac_cpp='$CPP $CPPFLAGS' | ||
18819 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
18820 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
18821 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
18822 | |||
18823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5 | ||
18824 | $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; } | ||
18825 | |||
18826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18827 | /* end confdefs.h. */ | ||
18828 | |||
18829 | int | ||
18830 | main () | ||
18831 | { | ||
18832 | |||
18833 | ; | ||
18834 | return 0; | ||
18835 | } | ||
18836 | _ACEOF | ||
18837 | if ac_fn_c_try_link "$LINENO"; then : | ||
18838 | have_flag="yes" | ||
18839 | else | ||
18840 | have_flag="no" | ||
18841 | fi | ||
18842 | rm -f core conftest.err conftest.$ac_objext \ | ||
18843 | conftest$ac_exeext conftest.$ac_ext | ||
18844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_flag}" >&5 | ||
18845 | $as_echo "${have_flag}" >&6; } | ||
18846 | |||
18847 | if test "x${have_flag}" = "xno" ; then | ||
18848 | LDFLAGS="${LDFLAGS_save}" | ||
18849 | fi | ||
18850 | ac_ext=c | ||
18851 | ac_cpp='$CPP $CPPFLAGS' | ||
18852 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
18853 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
18854 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
18855 | |||
18856 | |||
18857 | |||
18858 | |||
18859 | CFLAGS="${CFLAGS} ${EINA_CFLAGS}" | ||
18860 | LDFLAGS="${LDFLAGS} ${EINA_LDFLAGS}" | ||
18861 | LIBS="${LIBS} ${EINA_LIBS}" | ||
18862 | |||
18863 | ### Checks for header files | ||
18864 | |||
18865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5 | ||
18866 | $as_echo_n "checking whether to enable assertions... " >&6; } | ||
18867 | # Check whether --enable-assert was given. | ||
18868 | if test "${enable_assert+set}" = set; then : | ||
18869 | enableval=$enable_assert; ac_enable_assert=$enableval | ||
18870 | if test "x$enableval" = xno; then : | ||
18871 | |||
18872 | $as_echo "#define NDEBUG 1" >>confdefs.h | ||
18873 | |||
18874 | elif test "x$enableval" != xyes; then : | ||
18875 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5 | ||
18876 | $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;} | ||
18877 | ac_enable_assert=yes | ||
18878 | fi | ||
18879 | else | ||
18880 | ac_enable_assert=yes | ||
18881 | fi | ||
18882 | |||
18883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5 | ||
18884 | $as_echo "$ac_enable_assert" >&6; } | ||
18885 | |||
18886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | ||
18887 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | ||
18888 | if test "${ac_cv_header_time+set}" = set; then : | ||
18889 | $as_echo_n "(cached) " >&6 | ||
18890 | else | ||
18891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18892 | /* end confdefs.h. */ | ||
18893 | #include <sys/types.h> | ||
18894 | #include <sys/time.h> | ||
18895 | #include <time.h> | ||
18896 | |||
18897 | int | ||
18898 | main () | ||
18899 | { | ||
18900 | if ((struct tm *) 0) | ||
18901 | return 0; | ||
18902 | ; | ||
18903 | return 0; | ||
18904 | } | ||
18905 | _ACEOF | ||
18906 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18907 | ac_cv_header_time=yes | ||
18908 | else | ||
18909 | ac_cv_header_time=no | ||
18910 | fi | ||
18911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18912 | fi | ||
18913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | ||
18914 | $as_echo "$ac_cv_header_time" >&6; } | ||
18915 | if test $ac_cv_header_time = yes; then | ||
18916 | |||
18917 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | ||
18918 | |||
18919 | fi | ||
18920 | |||
18921 | |||
18922 | |||
18923 | default_max="4096" | ||
18924 | ac_ext=c | ||
18925 | ac_cpp='$CPP $CPPFLAGS' | ||
18926 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
18927 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
18928 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
18929 | |||
18930 | |||
18931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATH_MAX in limits.h" >&5 | ||
18932 | $as_echo_n "checking for PATH_MAX in limits.h... " >&6; } | ||
18933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18934 | /* end confdefs.h. */ | ||
18935 | |||
18936 | #include <limits.h> | ||
18937 | |||
18938 | int | ||
18939 | main () | ||
18940 | { | ||
18941 | |||
18942 | int i = PATH_MAX; | ||
18943 | |||
18944 | ; | ||
18945 | return 0; | ||
18946 | } | ||
18947 | _ACEOF | ||
18948 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18950 | $as_echo "yes" >&6; } | ||
18951 | else | ||
18952 | |||
18953 | |||
18954 | cat >>confdefs.h <<_ACEOF | ||
18955 | #define PATH_MAX ${default_max} | ||
18956 | _ACEOF | ||
18957 | |||
18958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: using ${default_max}" >&5 | ||
18959 | $as_echo "no: using ${default_max}" >&6; } | ||
18960 | |||
18961 | fi | ||
18962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18963 | |||
18964 | ac_ext=c | ||
18965 | ac_cpp='$CPP $CPPFLAGS' | ||
18966 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
18967 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
18968 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
18969 | |||
18970 | |||
18971 | |||
18972 | for ac_header in unistd.h libgen.h inttypes.h stdint.h sys/types.h siginfo.h strings.h sys/mman.h execinfo.h | ||
18973 | do : | ||
18974 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
18975 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
18976 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
18977 | cat >>confdefs.h <<_ACEOF | ||
18978 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
18979 | _ACEOF | ||
18980 | |||
18981 | fi | ||
18982 | |||
18983 | done | ||
18984 | |||
18985 | |||
18986 | if test "x${ac_cv_header_inttypes_h}" = "xyes" ; then | ||
18987 | EINA_CONFIGURE_HAVE_INTTYPES_H="#define EINA_HAVE_INTTYPES_H" | ||
18988 | |||
18989 | $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h | ||
18990 | |||
18991 | fi | ||
18992 | |||
18993 | |||
18994 | if test "x${ac_cv_header_inttypes_h}" = "xyes" ; then | ||
18995 | EINA_CONFIGURE_HAVE_STDINT_H="#define EINA_HAVE_STDINT_H" | ||
18996 | |||
18997 | $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h | ||
18998 | |||
18999 | fi | ||
19000 | |||
19001 | |||
19002 | ### Checks for types | ||
19003 | |||
19004 | # The cast to long int works around a bug in the HP C Compiler | ||
19005 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
19006 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
19007 | # This bug is HP SR number 8606223364. | ||
19008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 | ||
19009 | $as_echo_n "checking size of wchar_t... " >&6; } | ||
19010 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then : | ||
19011 | $as_echo_n "(cached) " >&6 | ||
19012 | else | ||
19013 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"; then : | ||
19014 | |||
19015 | else | ||
19016 | if test "$ac_cv_type_wchar_t" = yes; then | ||
19017 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
19018 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
19019 | as_fn_error 77 "cannot compute sizeof (wchar_t) | ||
19020 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
19021 | else | ||
19022 | ac_cv_sizeof_wchar_t=0 | ||
19023 | fi | ||
19024 | fi | ||
19025 | |||
19026 | fi | ||
19027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 | ||
19028 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } | ||
19029 | |||
19030 | |||
19031 | |||
19032 | cat >>confdefs.h <<_ACEOF | ||
19033 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | ||
19034 | _ACEOF | ||
19035 | |||
19036 | |||
19037 | EINA_SIZEOF_WCHAR_T=$ac_cv_sizeof_wchar_t | ||
19038 | |||
19039 | ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "#include <signal.h> | ||
19040 | #if HAVE_SIGINFO_H | ||
19041 | # include <siginfo.h> | ||
19042 | #endif | ||
19043 | |||
19044 | " | ||
19045 | if test "x$ac_cv_type_siginfo_t" = x""yes; then : | ||
19046 | |||
19047 | cat >>confdefs.h <<_ACEOF | ||
19048 | #define HAVE_SIGINFO_T 1 | ||
19049 | _ACEOF | ||
19050 | |||
19051 | |||
19052 | fi | ||
19053 | |||
19054 | |||
19055 | ### Check if dirent.h is usable | ||
19056 | |||
19057 | ac_fn_c_check_type "$LINENO" "struct dirent" "ac_cv_type_struct_dirent" "#include <dirent.h> | ||
19058 | |||
19059 | " | ||
19060 | if test "x$ac_cv_type_struct_dirent" = x""yes; then : | ||
19061 | |||
19062 | cat >>confdefs.h <<_ACEOF | ||
19063 | #define HAVE_STRUCT_DIRENT 1 | ||
19064 | _ACEOF | ||
19065 | |||
19066 | have_dirent="yes" | ||
19067 | else | ||
19068 | have_dirent="no" | ||
19069 | fi | ||
19070 | |||
19071 | |||
19072 | if test "x${have_dirent}" = "xyes" ; then | ||
19073 | EINA_CONFIGURE_HAVE_DIRENT_H="#define EINA_HAVE_DIRENT_H" | ||
19074 | |||
19075 | $as_echo "#define HAVE_DIRENT_H 1" >>confdefs.h | ||
19076 | |||
19077 | fi | ||
19078 | |||
19079 | |||
19080 | ### Checks for library functions | ||
19081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 | ||
19082 | $as_echo_n "checking for library containing strerror... " >&6; } | ||
19083 | if test "${ac_cv_search_strerror+set}" = set; then : | ||
19084 | $as_echo_n "(cached) " >&6 | ||
19085 | else | ||
19086 | ac_func_search_save_LIBS=$LIBS | ||
19087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19088 | /* end confdefs.h. */ | ||
19089 | |||
19090 | /* Override any GCC internal prototype to avoid an error. | ||
19091 | Use char because int might match the return type of a GCC | ||
19092 | builtin and then its argument prototype would still apply. */ | ||
19093 | #ifdef __cplusplus | ||
19094 | extern "C" | ||
19095 | #endif | ||
19096 | char strerror (); | ||
19097 | int | ||
19098 | main () | ||
19099 | { | ||
19100 | return strerror (); | ||
19101 | ; | ||
19102 | return 0; | ||
19103 | } | ||
19104 | _ACEOF | ||
19105 | for ac_lib in '' cposix; do | ||
19106 | if test -z "$ac_lib"; then | ||
19107 | ac_res="none required" | ||
19108 | else | ||
19109 | ac_res=-l$ac_lib | ||
19110 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
19111 | fi | ||
19112 | if ac_fn_c_try_link "$LINENO"; then : | ||
19113 | ac_cv_search_strerror=$ac_res | ||
19114 | fi | ||
19115 | rm -f core conftest.err conftest.$ac_objext \ | ||
19116 | conftest$ac_exeext | ||
19117 | if test "${ac_cv_search_strerror+set}" = set; then : | ||
19118 | break | ||
19119 | fi | ||
19120 | done | ||
19121 | if test "${ac_cv_search_strerror+set}" = set; then : | ||
19122 | |||
19123 | else | ||
19124 | ac_cv_search_strerror=no | ||
19125 | fi | ||
19126 | rm conftest.$ac_ext | ||
19127 | LIBS=$ac_func_search_save_LIBS | ||
19128 | fi | ||
19129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 | ||
19130 | $as_echo "$ac_cv_search_strerror" >&6; } | ||
19131 | ac_res=$ac_cv_search_strerror | ||
19132 | if test "$ac_res" != no; then : | ||
19133 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
19134 | |||
19135 | fi | ||
19136 | |||
19137 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | ||
19138 | # for constant arguments. Useless! | ||
19139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | ||
19140 | $as_echo_n "checking for working alloca.h... " >&6; } | ||
19141 | if test "${ac_cv_working_alloca_h+set}" = set; then : | ||
19142 | $as_echo_n "(cached) " >&6 | ||
19143 | else | ||
19144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19145 | /* end confdefs.h. */ | ||
19146 | #include <alloca.h> | ||
19147 | int | ||
19148 | main () | ||
19149 | { | ||
19150 | char *p = (char *) alloca (2 * sizeof (int)); | ||
19151 | if (p) return 0; | ||
19152 | ; | ||
19153 | return 0; | ||
19154 | } | ||
19155 | _ACEOF | ||
19156 | if ac_fn_c_try_link "$LINENO"; then : | ||
19157 | ac_cv_working_alloca_h=yes | ||
19158 | else | ||
19159 | ac_cv_working_alloca_h=no | ||
19160 | fi | ||
19161 | rm -f core conftest.err conftest.$ac_objext \ | ||
19162 | conftest$ac_exeext conftest.$ac_ext | ||
19163 | fi | ||
19164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 | ||
19165 | $as_echo "$ac_cv_working_alloca_h" >&6; } | ||
19166 | if test $ac_cv_working_alloca_h = yes; then | ||
19167 | |||
19168 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h | ||
19169 | |||
19170 | fi | ||
19171 | |||
19172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 | ||
19173 | $as_echo_n "checking for alloca... " >&6; } | ||
19174 | if test "${ac_cv_func_alloca_works+set}" = set; then : | ||
19175 | $as_echo_n "(cached) " >&6 | ||
19176 | else | ||
19177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19178 | /* end confdefs.h. */ | ||
19179 | #ifdef __GNUC__ | ||
19180 | # define alloca __builtin_alloca | ||
19181 | #else | ||
19182 | # ifdef _MSC_VER | ||
19183 | # include <malloc.h> | ||
19184 | # define alloca _alloca | ||
19185 | # else | ||
19186 | # ifdef HAVE_ALLOCA_H | ||
19187 | # include <alloca.h> | ||
19188 | # else | ||
19189 | # ifdef _AIX | ||
19190 | #pragma alloca | ||
19191 | # else | ||
19192 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | ||
19193 | char *alloca (); | ||
19194 | # endif | ||
19195 | # endif | ||
19196 | # endif | ||
19197 | # endif | ||
19198 | #endif | ||
19199 | |||
19200 | int | ||
19201 | main () | ||
19202 | { | ||
19203 | char *p = (char *) alloca (1); | ||
19204 | if (p) return 0; | ||
19205 | ; | ||
19206 | return 0; | ||
19207 | } | ||
19208 | _ACEOF | ||
19209 | if ac_fn_c_try_link "$LINENO"; then : | ||
19210 | ac_cv_func_alloca_works=yes | ||
19211 | else | ||
19212 | ac_cv_func_alloca_works=no | ||
19213 | fi | ||
19214 | rm -f core conftest.err conftest.$ac_objext \ | ||
19215 | conftest$ac_exeext conftest.$ac_ext | ||
19216 | fi | ||
19217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | ||
19218 | $as_echo "$ac_cv_func_alloca_works" >&6; } | ||
19219 | |||
19220 | if test $ac_cv_func_alloca_works = yes; then | ||
19221 | |||
19222 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h | ||
19223 | |||
19224 | else | ||
19225 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | ||
19226 | # that cause trouble. Some versions do not even contain alloca or | ||
19227 | # contain a buggy version. If you still want to use their alloca, | ||
19228 | # use ar to extract alloca.o from them instead of compiling alloca.c. | ||
19229 | |||
19230 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | ||
19231 | |||
19232 | $as_echo "#define C_ALLOCA 1" >>confdefs.h | ||
19233 | |||
19234 | |||
19235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 | ||
19236 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | ||
19237 | if test "${ac_cv_os_cray+set}" = set; then : | ||
19238 | $as_echo_n "(cached) " >&6 | ||
19239 | else | ||
19240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19241 | /* end confdefs.h. */ | ||
19242 | #if defined CRAY && ! defined CRAY2 | ||
19243 | webecray | ||
19244 | #else | ||
19245 | wenotbecray | ||
19246 | #endif | ||
19247 | |||
19248 | _ACEOF | ||
19249 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19250 | $EGREP "webecray" >/dev/null 2>&1; then : | ||
19251 | ac_cv_os_cray=yes | ||
19252 | else | ||
19253 | ac_cv_os_cray=no | ||
19254 | fi | ||
19255 | rm -f conftest* | ||
19256 | |||
19257 | fi | ||
19258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | ||
19259 | $as_echo "$ac_cv_os_cray" >&6; } | ||
19260 | if test $ac_cv_os_cray = yes; then | ||
19261 | for ac_func in _getb67 GETB67 getb67; do | ||
19262 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
19263 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
19264 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
19265 | |||
19266 | cat >>confdefs.h <<_ACEOF | ||
19267 | #define CRAY_STACKSEG_END $ac_func | ||
19268 | _ACEOF | ||
19269 | |||
19270 | break | ||
19271 | fi | ||
19272 | |||
19273 | done | ||
19274 | fi | ||
19275 | |||
19276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 | ||
19277 | $as_echo_n "checking stack direction for C alloca... " >&6; } | ||
19278 | if test "${ac_cv_c_stack_direction+set}" = set; then : | ||
19279 | $as_echo_n "(cached) " >&6 | ||
19280 | else | ||
19281 | if test "$cross_compiling" = yes; then : | ||
19282 | ac_cv_c_stack_direction=0 | ||
19283 | else | ||
19284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19285 | /* end confdefs.h. */ | ||
19286 | $ac_includes_default | ||
19287 | int | ||
19288 | find_stack_direction () | ||
19289 | { | ||
19290 | static char *addr = 0; | ||
19291 | auto char dummy; | ||
19292 | if (addr == 0) | ||
19293 | { | ||
19294 | addr = &dummy; | ||
19295 | return find_stack_direction (); | ||
19296 | } | ||
19297 | else | ||
19298 | return (&dummy > addr) ? 1 : -1; | ||
19299 | } | ||
19300 | |||
19301 | int | ||
19302 | main () | ||
19303 | { | ||
19304 | return find_stack_direction () < 0; | ||
19305 | } | ||
19306 | _ACEOF | ||
19307 | if ac_fn_c_try_run "$LINENO"; then : | ||
19308 | ac_cv_c_stack_direction=1 | ||
19309 | else | ||
19310 | ac_cv_c_stack_direction=-1 | ||
19311 | fi | ||
19312 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
19313 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
19314 | fi | ||
19315 | |||
19316 | fi | ||
19317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | ||
19318 | $as_echo "$ac_cv_c_stack_direction" >&6; } | ||
19319 | cat >>confdefs.h <<_ACEOF | ||
19320 | #define STACK_DIRECTION $ac_cv_c_stack_direction | ||
19321 | _ACEOF | ||
19322 | |||
19323 | |||
19324 | fi | ||
19325 | |||
19326 | for ac_func in strlcpy openat fstatat fpathconf execvp backtrace backtrace_symbols | ||
19327 | do : | ||
19328 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
19329 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
19330 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
19331 | cat >>confdefs.h <<_ACEOF | ||
19332 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
19333 | _ACEOF | ||
19334 | |||
19335 | fi | ||
19336 | done | ||
19337 | |||
19338 | |||
19339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirfd" >&5 | ||
19340 | $as_echo_n "checking for dirfd... " >&6; } | ||
19341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19342 | /* end confdefs.h. */ | ||
19343 | |||
19344 | |||
19345 | #include <dirent.h> | ||
19346 | |||
19347 | int | ||
19348 | main () | ||
19349 | { | ||
19350 | |||
19351 | int main(void) | ||
19352 | { | ||
19353 | DIR *dirp; | ||
19354 | return dirfd(dirp); | ||
19355 | } | ||
19356 | |||
19357 | ; | ||
19358 | return 0; | ||
19359 | } | ||
19360 | |||
19361 | _ACEOF | ||
19362 | if ac_fn_c_try_link "$LINENO"; then : | ||
19363 | have_dirfd="yes" | ||
19364 | else | ||
19365 | have_dirfd="no" | ||
19366 | fi | ||
19367 | rm -f core conftest.err conftest.$ac_objext \ | ||
19368 | conftest$ac_exeext conftest.$ac_ext | ||
19369 | |||
19370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_dirfd}" >&5 | ||
19371 | $as_echo "${have_dirfd}" >&6; } | ||
19372 | |||
19373 | if test "x${have_dirfd}" = "xyes" ; then | ||
19374 | |||
19375 | $as_echo "#define HAVE_DIRFD 1" >>confdefs.h | ||
19376 | |||
19377 | fi | ||
19378 | |||
19379 | # check debug information for malloc | ||
19380 | for ac_func in malloc_usable_size | ||
19381 | do : | ||
19382 | ac_fn_c_check_func "$LINENO" "malloc_usable_size" "ac_cv_func_malloc_usable_size" | ||
19383 | if test "x$ac_cv_func_malloc_usable_size" = x""yes; then : | ||
19384 | cat >>confdefs.h <<_ACEOF | ||
19385 | #define HAVE_MALLOC_USABLE_SIZE 1 | ||
19386 | _ACEOF | ||
19387 | malloc_true_size="yes" | ||
19388 | else | ||
19389 | malloc_true_size="no" | ||
19390 | fi | ||
19391 | done | ||
19392 | |||
19393 | if test "x${malloc_true_size}" = "xyes" ; then | ||
19394 | |||
19395 | $as_echo "#define HAVE_MALLOC_USABLE_SIZE 1" >>confdefs.h | ||
19396 | |||
19397 | fi | ||
19398 | |||
19399 | want_debug_malloc="no" | ||
19400 | # Check whether --enable-debug-malloc was given. | ||
19401 | if test "${enable_debug_malloc+set}" = set; then : | ||
19402 | enableval=$enable_debug_malloc; | ||
19403 | if test "x${enableval}" = "xyes" ; then | ||
19404 | want_debug_malloc="yes" | ||
19405 | else | ||
19406 | want_debug_malloc="no" | ||
19407 | fi | ||
19408 | |||
19409 | else | ||
19410 | want_debug_malloc="no" | ||
19411 | fi | ||
19412 | |||
19413 | |||
19414 | if test "x${malloc_true_size}" = "xyes" -a "x${want_debug_malloc}" = "xyes"; then | ||
19415 | |||
19416 | $as_echo "#define EINA_DEBUG_MALLOC 1" >>confdefs.h | ||
19417 | |||
19418 | fi | ||
19419 | |||
19420 | # dlopen and dladdr | ||
19421 | dlopen_libs="" | ||
19422 | case "$host_os" in | ||
19423 | mingw*) | ||
19424 | # managed by evil | ||
19425 | $as_echo "#define HAVE_DLADDR 1" >>confdefs.h | ||
19426 | |||
19427 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h | ||
19428 | |||
19429 | ;; | ||
19430 | *) | ||
19431 | for ac_func in dlopen | ||
19432 | do : | ||
19433 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | ||
19434 | if test "x$ac_cv_func_dlopen" = x""yes; then : | ||
19435 | cat >>confdefs.h <<_ACEOF | ||
19436 | #define HAVE_DLOPEN 1 | ||
19437 | _ACEOF | ||
19438 | res="yes" | ||
19439 | else | ||
19440 | res="no" | ||
19441 | fi | ||
19442 | done | ||
19443 | |||
19444 | if test "x${res}" = "xyes" ; then | ||
19445 | for ac_func in dladdr | ||
19446 | do : | ||
19447 | ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr" | ||
19448 | if test "x$ac_cv_func_dladdr" = x""yes; then : | ||
19449 | cat >>confdefs.h <<_ACEOF | ||
19450 | #define HAVE_DLADDR 1 | ||
19451 | _ACEOF | ||
19452 | $as_echo "#define HAVE_DLADDR 1" >>confdefs.h | ||
19453 | |||
19454 | fi | ||
19455 | done | ||
19456 | |||
19457 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h | ||
19458 | |||
19459 | else | ||
19460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | ||
19461 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
19462 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | ||
19463 | $as_echo_n "(cached) " >&6 | ||
19464 | else | ||
19465 | ac_check_lib_save_LIBS=$LIBS | ||
19466 | LIBS="-ldl $LIBS" | ||
19467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19468 | /* end confdefs.h. */ | ||
19469 | |||
19470 | /* Override any GCC internal prototype to avoid an error. | ||
19471 | Use char because int might match the return type of a GCC | ||
19472 | builtin and then its argument prototype would still apply. */ | ||
19473 | #ifdef __cplusplus | ||
19474 | extern "C" | ||
19475 | #endif | ||
19476 | char dlopen (); | ||
19477 | int | ||
19478 | main () | ||
19479 | { | ||
19480 | return dlopen (); | ||
19481 | ; | ||
19482 | return 0; | ||
19483 | } | ||
19484 | _ACEOF | ||
19485 | if ac_fn_c_try_link "$LINENO"; then : | ||
19486 | ac_cv_lib_dl_dlopen=yes | ||
19487 | else | ||
19488 | ac_cv_lib_dl_dlopen=no | ||
19489 | fi | ||
19490 | rm -f core conftest.err conftest.$ac_objext \ | ||
19491 | conftest$ac_exeext conftest.$ac_ext | ||
19492 | LIBS=$ac_check_lib_save_LIBS | ||
19493 | fi | ||
19494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | ||
19495 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
19496 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | ||
19497 | res="yes" | ||
19498 | else | ||
19499 | res="no" | ||
19500 | fi | ||
19501 | |||
19502 | if test "x${res}" = "xyes" ; then | ||
19503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5 | ||
19504 | $as_echo_n "checking for dladdr in -ldl... " >&6; } | ||
19505 | if test "${ac_cv_lib_dl_dladdr+set}" = set; then : | ||
19506 | $as_echo_n "(cached) " >&6 | ||
19507 | else | ||
19508 | ac_check_lib_save_LIBS=$LIBS | ||
19509 | LIBS="-ldl $LIBS" | ||
19510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19511 | /* end confdefs.h. */ | ||
19512 | |||
19513 | /* Override any GCC internal prototype to avoid an error. | ||
19514 | Use char because int might match the return type of a GCC | ||
19515 | builtin and then its argument prototype would still apply. */ | ||
19516 | #ifdef __cplusplus | ||
19517 | extern "C" | ||
19518 | #endif | ||
19519 | char dladdr (); | ||
19520 | int | ||
19521 | main () | ||
19522 | { | ||
19523 | return dladdr (); | ||
19524 | ; | ||
19525 | return 0; | ||
19526 | } | ||
19527 | _ACEOF | ||
19528 | if ac_fn_c_try_link "$LINENO"; then : | ||
19529 | ac_cv_lib_dl_dladdr=yes | ||
19530 | else | ||
19531 | ac_cv_lib_dl_dladdr=no | ||
19532 | fi | ||
19533 | rm -f core conftest.err conftest.$ac_objext \ | ||
19534 | conftest$ac_exeext conftest.$ac_ext | ||
19535 | LIBS=$ac_check_lib_save_LIBS | ||
19536 | fi | ||
19537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5 | ||
19538 | $as_echo "$ac_cv_lib_dl_dladdr" >&6; } | ||
19539 | if test "x$ac_cv_lib_dl_dladdr" = x""yes; then : | ||
19540 | $as_echo "#define HAVE_DLADDR 1" >>confdefs.h | ||
19541 | |||
19542 | fi | ||
19543 | |||
19544 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h | ||
19545 | |||
19546 | dlopen_libs="-ldl" | ||
19547 | fi | ||
19548 | fi | ||
19549 | ;; | ||
19550 | esac | ||
19551 | |||
19552 | |||
19553 | have_log="yes" | ||
19554 | |||
19555 | |||
19556 | ac_fn_c_check_header_mongrel "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default" | ||
19557 | if test "x$ac_cv_header_fnmatch_h" = x""yes; then : | ||
19558 | _efl_have_fnmatch="yes" | ||
19559 | else | ||
19560 | _efl_have_fnmatch="no" | ||
19561 | fi | ||
19562 | |||
19563 | |||
19564 | |||
19565 | if test "x${_efl_have_fnmatch}" = "xyes" ; then | ||
19566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fnmatch" >&5 | ||
19567 | $as_echo_n "checking for library containing fnmatch... " >&6; } | ||
19568 | if test "${ac_cv_search_fnmatch+set}" = set; then : | ||
19569 | $as_echo_n "(cached) " >&6 | ||
19570 | else | ||
19571 | ac_func_search_save_LIBS=$LIBS | ||
19572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19573 | /* end confdefs.h. */ | ||
19574 | |||
19575 | /* Override any GCC internal prototype to avoid an error. | ||
19576 | Use char because int might match the return type of a GCC | ||
19577 | builtin and then its argument prototype would still apply. */ | ||
19578 | #ifdef __cplusplus | ||
19579 | extern "C" | ||
19580 | #endif | ||
19581 | char fnmatch (); | ||
19582 | int | ||
19583 | main () | ||
19584 | { | ||
19585 | return fnmatch (); | ||
19586 | ; | ||
19587 | return 0; | ||
19588 | } | ||
19589 | _ACEOF | ||
19590 | for ac_lib in '' fnmatch evil iberty; do | ||
19591 | if test -z "$ac_lib"; then | ||
19592 | ac_res="none required" | ||
19593 | else | ||
19594 | ac_res=-l$ac_lib | ||
19595 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
19596 | fi | ||
19597 | if ac_fn_c_try_link "$LINENO"; then : | ||
19598 | ac_cv_search_fnmatch=$ac_res | ||
19599 | fi | ||
19600 | rm -f core conftest.err conftest.$ac_objext \ | ||
19601 | conftest$ac_exeext | ||
19602 | if test "${ac_cv_search_fnmatch+set}" = set; then : | ||
19603 | break | ||
19604 | fi | ||
19605 | done | ||
19606 | if test "${ac_cv_search_fnmatch+set}" = set; then : | ||
19607 | |||
19608 | else | ||
19609 | ac_cv_search_fnmatch=no | ||
19610 | fi | ||
19611 | rm conftest.$ac_ext | ||
19612 | LIBS=$ac_func_search_save_LIBS | ||
19613 | fi | ||
19614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fnmatch" >&5 | ||
19615 | $as_echo "$ac_cv_search_fnmatch" >&6; } | ||
19616 | ac_res=$ac_cv_search_fnmatch | ||
19617 | if test "$ac_res" != no; then : | ||
19618 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
19619 | _efl_have_fnmatch="yes" | ||
19620 | else | ||
19621 | _efl_have_fnmatch="no" | ||
19622 | fi | ||
19623 | |||
19624 | fi | ||
19625 | |||
19626 | EFL_FNMATCH_LIBS="" | ||
19627 | |||
19628 | 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 | ||
19629 | EFL_FNMATCH_LIBS=${ac_cv_search_fnmatch} | ||
19630 | fi | ||
19631 | |||
19632 | |||
19633 | |||
19634 | if test "x$_efl_have_fnmatch" = "xyes"; then : | ||
19635 | have_log="yes" | ||
19636 | else | ||
19637 | have_log="no" | ||
19638 | fi | ||
19639 | |||
19640 | |||
19641 | |||
19642 | want_log="yes" | ||
19643 | # Check whether --enable-log was given. | ||
19644 | if test "${enable_log+set}" = set; then : | ||
19645 | enableval=$enable_log; | ||
19646 | if test "x${enableval}" = "xyes" ; then | ||
19647 | want_log="yes" | ||
19648 | else | ||
19649 | want_log="no" | ||
19650 | fi | ||
19651 | |||
19652 | else | ||
19653 | want_log="yes" | ||
19654 | fi | ||
19655 | |||
19656 | |||
19657 | enable_log="no" | ||
19658 | if test "x${have_log}" = xyes -a "x${want_log}" = xyes; then | ||
19659 | enable_log="yes" | ||
19660 | fi | ||
19661 | |||
19662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking wether to build Eina_Log infrastructure" >&5 | ||
19663 | $as_echo_n "checking wether to build Eina_Log infrastructure... " >&6; } | ||
19664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_log}" >&5 | ||
19665 | $as_echo "${enable_log}" >&6; } | ||
19666 | |||
19667 | if test "x${enable_log}" = "xyes"; then | ||
19668 | EINA_CONFIGURE_ENABLE_LOG="#define EINA_ENABLE_LOG" | ||
19669 | |||
19670 | $as_echo "#define HAVE_LOG 1" >>confdefs.h | ||
19671 | |||
19672 | fi | ||
19673 | |||
19674 | |||
19675 | for ac_header in mcheck.h | ||
19676 | do : | ||
19677 | ac_fn_c_check_header_mongrel "$LINENO" "mcheck.h" "ac_cv_header_mcheck_h" "$ac_includes_default" | ||
19678 | if test "x$ac_cv_header_mcheck_h" = x""yes; then : | ||
19679 | cat >>confdefs.h <<_ACEOF | ||
19680 | #define HAVE_MCHECK_H 1 | ||
19681 | _ACEOF | ||
19682 | |||
19683 | $as_echo "#define HAVE_MCHECK 1" >>confdefs.h | ||
19684 | |||
19685 | fi | ||
19686 | |||
19687 | done | ||
19688 | |||
19689 | for ac_func in mtrace | ||
19690 | do : | ||
19691 | ac_fn_c_check_func "$LINENO" "mtrace" "ac_cv_func_mtrace" | ||
19692 | if test "x$ac_cv_func_mtrace" = x""yes; then : | ||
19693 | cat >>confdefs.h <<_ACEOF | ||
19694 | #define HAVE_MTRACE 1 | ||
19695 | _ACEOF | ||
19696 | |||
19697 | $as_echo "#define HAVE_MTRACE 1" >>confdefs.h | ||
19698 | |||
19699 | fi | ||
19700 | done | ||
19701 | |||
19702 | |||
19703 | # iconv library | ||
19704 | have_iconv="no" | ||
19705 | |||
19706 | # Check whether --with-iconv-link was given. | ||
19707 | if test "${with_iconv_link+set}" = set; then : | ||
19708 | withval=$with_iconv_link; | ||
19709 | LIBS="$withval $LIBS" | ||
19710 | have_iconv="yes" | ||
19711 | iconv_libs=$withval | ||
19712 | |||
19713 | fi | ||
19714 | |||
19715 | |||
19716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for explicit iconv link options" >&5 | ||
19717 | $as_echo_n "checking for explicit iconv link options... " >&6; } | ||
19718 | if test "x${iconv_libs}" = "x" ; then | ||
19719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no explicit iconv link option" >&5 | ||
19720 | $as_echo "no explicit iconv link option" >&6; } | ||
19721 | else | ||
19722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iconv_libs" >&5 | ||
19723 | $as_echo "$iconv_libs" >&6; } | ||
19724 | fi | ||
19725 | |||
19726 | if test "x${have_iconv}" = "xno" ; then | ||
19727 | for ac_header in iconv.h | ||
19728 | do : | ||
19729 | ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default" | ||
19730 | if test "x$ac_cv_header_iconv_h" = x""yes; then : | ||
19731 | cat >>confdefs.h <<_ACEOF | ||
19732 | #define HAVE_ICONV_H 1 | ||
19733 | _ACEOF | ||
19734 | have_iconv="yes" | ||
19735 | fi | ||
19736 | |||
19737 | done | ||
19738 | |||
19739 | |||
19740 | if test "x${have_iconv}" = "xyes" ; then | ||
19741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv() is in libc" >&5 | ||
19742 | $as_echo_n "checking whether iconv() is in libc... " >&6; } | ||
19743 | |||
19744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19745 | /* end confdefs.h. */ | ||
19746 | |||
19747 | #include <stdlib.h> | ||
19748 | #include <iconv.h> | ||
19749 | |||
19750 | int | ||
19751 | main () | ||
19752 | { | ||
19753 | |||
19754 | iconv_t ic; | ||
19755 | size_t count = iconv(ic, NULL, NULL, NULL, NULL); | ||
19756 | |||
19757 | ; | ||
19758 | return 0; | ||
19759 | } | ||
19760 | _ACEOF | ||
19761 | if ac_fn_c_try_link "$LINENO"; then : | ||
19762 | have_iconv="yes" | ||
19763 | else | ||
19764 | have_iconv="no" | ||
19765 | fi | ||
19766 | rm -f core conftest.err conftest.$ac_objext \ | ||
19767 | conftest$ac_exeext conftest.$ac_ext | ||
19768 | |||
19769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_iconv}" >&5 | ||
19770 | $as_echo "${have_iconv}" >&6; } | ||
19771 | fi | ||
19772 | |||
19773 | if test "x${have_iconv}" = "xno" ; then | ||
19774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv() is in libiconv.a" >&5 | ||
19775 | $as_echo_n "checking whether iconv() is in libiconv.a... " >&6; } | ||
19776 | |||
19777 | LIBS_save="${LIBS}" | ||
19778 | LIBS="-liconv $LIBS" | ||
19779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19780 | /* end confdefs.h. */ | ||
19781 | |||
19782 | #include <stdlib.h> | ||
19783 | #include <iconv.h> | ||
19784 | |||
19785 | int | ||
19786 | main () | ||
19787 | { | ||
19788 | |||
19789 | iconv_t ic; | ||
19790 | size_t count; | ||
19791 | count = iconv(ic, NULL, NULL, NULL, NULL); | ||
19792 | |||
19793 | ; | ||
19794 | return 0; | ||
19795 | } | ||
19796 | _ACEOF | ||
19797 | if ac_fn_c_try_link "$LINENO"; then : | ||
19798 | |||
19799 | have_iconv="yes" | ||
19800 | iconv_libs="-liconv" | ||
19801 | |||
19802 | else | ||
19803 | |||
19804 | have_iconv="no" | ||
19805 | LIBS=${LIBS_save} | ||
19806 | |||
19807 | fi | ||
19808 | rm -f core conftest.err conftest.$ac_objext \ | ||
19809 | conftest$ac_exeext conftest.$ac_ext | ||
19810 | |||
19811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_iconv}" >&5 | ||
19812 | $as_echo "${have_iconv}" >&6; } | ||
19813 | fi | ||
19814 | |||
19815 | if test "x${have_iconv}" = "xno" ; then | ||
19816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv() is in libiconv_plug.a" >&5 | ||
19817 | $as_echo_n "checking whether iconv() is in libiconv_plug.a... " >&6; } | ||
19818 | |||
19819 | LIBS_save="${LIBS}" | ||
19820 | LIBS="-liconv_plug $LIBS" | ||
19821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19822 | /* end confdefs.h. */ | ||
19823 | |||
19824 | #include <stdlib.h> | ||
19825 | #include <iconv.h> | ||
19826 | |||
19827 | int | ||
19828 | main () | ||
19829 | { | ||
19830 | |||
19831 | iconv_t ic; | ||
19832 | size_t count = iconv(ic, NULL, NULL, NULL, NULL); | ||
19833 | |||
19834 | ; | ||
19835 | return 0; | ||
19836 | } | ||
19837 | _ACEOF | ||
19838 | if ac_fn_c_try_link "$LINENO"; then : | ||
19839 | |||
19840 | have_iconv="yes" | ||
19841 | iconv_libs="-liconv_plug" | ||
19842 | |||
19843 | else | ||
19844 | |||
19845 | have_iconv="no" | ||
19846 | LIBS=${LIBS_save} | ||
19847 | |||
19848 | fi | ||
19849 | rm -f core conftest.err conftest.$ac_objext \ | ||
19850 | conftest$ac_exeext conftest.$ac_ext | ||
19851 | |||
19852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_iconv}" >&5 | ||
19853 | $as_echo "${have_iconv}" >&6; } | ||
19854 | fi | ||
19855 | fi | ||
19856 | |||
19857 | |||
19858 | |||
19859 | if test "x${have_iconv}" = "xyes" ; then | ||
19860 | |||
19861 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h | ||
19862 | |||
19863 | fi | ||
19864 | |||
19865 | # shmopen | ||
19866 | have_shmopen=no | ||
19867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open availability" >&5 | ||
19868 | $as_echo_n "checking for shm_open availability... " >&6; } | ||
19869 | |||
19870 | LIBS_save="${LIBS}" | ||
19871 | LIBS="${LIBS} -lrt" | ||
19872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19873 | /* end confdefs.h. */ | ||
19874 | |||
19875 | #include <sys/mman.h> | ||
19876 | #include <sys/stat.h> /* For mode constants */ | ||
19877 | #include <fcntl.h> /* For O_* constants */ | ||
19878 | |||
19879 | int | ||
19880 | main () | ||
19881 | { | ||
19882 | |||
19883 | int fd; | ||
19884 | |||
19885 | fd = shm_open("/dev/null", O_RDONLY, S_IRWXU | S_IRWXG | S_IRWXO); | ||
19886 | |||
19887 | ; | ||
19888 | return 0; | ||
19889 | } | ||
19890 | _ACEOF | ||
19891 | if ac_fn_c_try_link "$LINENO"; then : | ||
19892 | have_shmopen="yes" | ||
19893 | else | ||
19894 | have_shmopen="no" | ||
19895 | fi | ||
19896 | rm -f core conftest.err conftest.$ac_objext \ | ||
19897 | conftest$ac_exeext conftest.$ac_ext | ||
19898 | |||
19899 | LIBS="${LIBS_save}" | ||
19900 | |||
19901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_shmopen}" >&5 | ||
19902 | $as_echo "${have_shmopen}" >&6; } | ||
19903 | |||
19904 | if test "x${have_shmopen}" = "xyes"; then | ||
19905 | |||
19906 | $as_echo "#define HAVE_SHMOPEN 1" >>confdefs.h | ||
19907 | |||
19908 | rt_libs="-lrt" | ||
19909 | fi | ||
19910 | |||
19911 | |||
19912 | |||
19913 | # extended attribute | ||
19914 | |||
19915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended attributes" >&5 | ||
19916 | $as_echo_n "checking for extended attributes... " >&6; } | ||
19917 | |||
19918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19919 | /* end confdefs.h. */ | ||
19920 | |||
19921 | #include <stdlib.h> | ||
19922 | #include <sys/types.h> | ||
19923 | #include <sys/xattr.h> | ||
19924 | |||
19925 | int | ||
19926 | main () | ||
19927 | { | ||
19928 | |||
19929 | size_t tmp = listxattr("/", NULL, 0); | ||
19930 | tmp = getxattr("/", "user.ethumb.md5", NULL, 0); | ||
19931 | setxattr("/", "user.ethumb.md5", NULL, 0, 0); | ||
19932 | |||
19933 | ; | ||
19934 | return 0; | ||
19935 | } | ||
19936 | _ACEOF | ||
19937 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19938 | |||
19939 | |||
19940 | $as_echo "#define HAVE_XATTR 1" >>confdefs.h | ||
19941 | |||
19942 | have_xattr="yes" | ||
19943 | |||
19944 | else | ||
19945 | have_xattr="no" | ||
19946 | fi | ||
19947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19948 | |||
19949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_xattr}" >&5 | ||
19950 | $as_echo "${have_xattr}" >&6; } | ||
19951 | |||
19952 | ### Modules | ||
19953 | |||
19954 | if test "x${have_default_mempool}" = "xyes" ; then | ||
19955 | enable_chained_pool="no" | ||
19956 | enable_pass_through="static" | ||
19957 | else | ||
19958 | enable_chained_pool="static" | ||
19959 | enable_pass_through="no" | ||
19960 | fi | ||
19961 | |||
19962 | enable_one_big="static" | ||
19963 | |||
19964 | |||
19965 | |||
19966 | # Check whether --enable-mempool-chained-pool was given. | ||
19967 | if test "${enable_mempool_chained_pool+set}" = set; then : | ||
19968 | enableval=$enable_mempool_chained_pool; | ||
19969 | if test "x${enableval}" = "xyes" ; then | ||
19970 | enable_module="yes" | ||
19971 | else | ||
19972 | if test "x${enableval}" = "xstatic" ; then | ||
19973 | enable_module="static" | ||
19974 | else | ||
19975 | enable_module="no" | ||
19976 | fi | ||
19977 | fi | ||
19978 | |||
19979 | else | ||
19980 | enable_module=${enable_chained_pool} | ||
19981 | fi | ||
19982 | |||
19983 | |||
19984 | have_module="no" | ||
19985 | if test "x${enable_module}" = "xyes" || test "x${enable_module}" = "xstatic" ; then | ||
19986 | have_module="yes" | ||
19987 | fi | ||
19988 | |||
19989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable chained pool built" >&5 | ||
19990 | $as_echo_n "checking whether to enable chained pool built... " >&6; } | ||
19991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_module}" >&5 | ||
19992 | $as_echo "${have_module}" >&6; } | ||
19993 | |||
19994 | static_module="no" | ||
19995 | if test "x${enable_module}" = "xstatic" ; then | ||
19996 | static_module="yes" | ||
19997 | have_static_module="yes" | ||
19998 | |||
19999 | $as_echo "#define EINA_STATIC_BUILD_CHAINED_POOL 1" >>confdefs.h | ||
20000 | |||
20001 | fi | ||
20002 | |||
20003 | if ! test "x${enable_module}" = "xno" ; then | ||
20004 | |||
20005 | $as_echo "#define EINA_BUILD_CHAINED_POOL 1" >>confdefs.h | ||
20006 | |||
20007 | fi | ||
20008 | |||
20009 | if test "x${have_module}" = "xyes"; then | ||
20010 | EINA_BUILD_CHAINED_POOL_TRUE= | ||
20011 | EINA_BUILD_CHAINED_POOL_FALSE='#' | ||
20012 | else | ||
20013 | EINA_BUILD_CHAINED_POOL_TRUE='#' | ||
20014 | EINA_BUILD_CHAINED_POOL_FALSE= | ||
20015 | fi | ||
20016 | |||
20017 | if test "x${static_module}" = "xyes"; then | ||
20018 | EINA_STATIC_BUILD_CHAINED_POOL_TRUE= | ||
20019 | EINA_STATIC_BUILD_CHAINED_POOL_FALSE='#' | ||
20020 | else | ||
20021 | EINA_STATIC_BUILD_CHAINED_POOL_TRUE='#' | ||
20022 | EINA_STATIC_BUILD_CHAINED_POOL_FALSE= | ||
20023 | fi | ||
20024 | |||
20025 | |||
20026 | enable_chained_pool=${enable_module} | ||
20027 | |||
20028 | |||
20029 | |||
20030 | |||
20031 | |||
20032 | |||
20033 | # Check whether --enable-mempool-ememoa-fixed was given. | ||
20034 | if test "${enable_mempool_ememoa_fixed+set}" = set; then : | ||
20035 | enableval=$enable_mempool_ememoa_fixed; | ||
20036 | if test "x${enableval}" = "xyes" ; then | ||
20037 | enable_module="yes" | ||
20038 | else | ||
20039 | if test "x${enableval}" = "xstatic" ; then | ||
20040 | enable_module="static" | ||
20041 | else | ||
20042 | enable_module="no" | ||
20043 | fi | ||
20044 | fi | ||
20045 | |||
20046 | else | ||
20047 | enable_module=${enable_ememoa} | ||
20048 | fi | ||
20049 | |||
20050 | |||
20051 | have_module="no" | ||
20052 | if test "x${enable_module}" = "xyes" || test "x${enable_module}" = "xstatic" ; then | ||
20053 | have_module="yes" | ||
20054 | fi | ||
20055 | |||
20056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ememoa fixed built" >&5 | ||
20057 | $as_echo_n "checking whether to enable ememoa fixed built... " >&6; } | ||
20058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_module}" >&5 | ||
20059 | $as_echo "${have_module}" >&6; } | ||
20060 | |||
20061 | static_module="no" | ||
20062 | if test "x${enable_module}" = "xstatic" ; then | ||
20063 | static_module="yes" | ||
20064 | have_static_module="yes" | ||
20065 | |||
20066 | $as_echo "#define EINA_STATIC_BUILD_EMEMOA_FIXED 1" >>confdefs.h | ||
20067 | |||
20068 | fi | ||
20069 | |||
20070 | if ! test "x${enable_module}" = "xno" ; then | ||
20071 | |||
20072 | $as_echo "#define EINA_BUILD_EMEMOA_FIXED 1" >>confdefs.h | ||
20073 | |||
20074 | fi | ||
20075 | |||
20076 | if test "x${have_module}" = "xyes"; then | ||
20077 | EINA_BUILD_EMEMOA_FIXED_TRUE= | ||
20078 | EINA_BUILD_EMEMOA_FIXED_FALSE='#' | ||
20079 | else | ||
20080 | EINA_BUILD_EMEMOA_FIXED_TRUE='#' | ||
20081 | EINA_BUILD_EMEMOA_FIXED_FALSE= | ||
20082 | fi | ||
20083 | |||
20084 | if test "x${static_module}" = "xyes"; then | ||
20085 | EINA_STATIC_BUILD_EMEMOA_FIXED_TRUE= | ||
20086 | EINA_STATIC_BUILD_EMEMOA_FIXED_FALSE='#' | ||
20087 | else | ||
20088 | EINA_STATIC_BUILD_EMEMOA_FIXED_TRUE='#' | ||
20089 | EINA_STATIC_BUILD_EMEMOA_FIXED_FALSE= | ||
20090 | fi | ||
20091 | |||
20092 | |||
20093 | enable_ememoa_fixed=${enable_module} | ||
20094 | |||
20095 | |||
20096 | |||
20097 | |||
20098 | |||
20099 | |||
20100 | # Check whether --enable-mempool-ememoa-unknown was given. | ||
20101 | if test "${enable_mempool_ememoa_unknown+set}" = set; then : | ||
20102 | enableval=$enable_mempool_ememoa_unknown; | ||
20103 | if test "x${enableval}" = "xyes" ; then | ||
20104 | enable_module="yes" | ||
20105 | else | ||
20106 | if test "x${enableval}" = "xstatic" ; then | ||
20107 | enable_module="static" | ||
20108 | else | ||
20109 | enable_module="no" | ||
20110 | fi | ||
20111 | fi | ||
20112 | |||
20113 | else | ||
20114 | enable_module=${enable_ememoa} | ||
20115 | fi | ||
20116 | |||
20117 | |||
20118 | have_module="no" | ||
20119 | if test "x${enable_module}" = "xyes" || test "x${enable_module}" = "xstatic" ; then | ||
20120 | have_module="yes" | ||
20121 | fi | ||
20122 | |||
20123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ememoa unknown built" >&5 | ||
20124 | $as_echo_n "checking whether to enable ememoa unknown built... " >&6; } | ||
20125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_module}" >&5 | ||
20126 | $as_echo "${have_module}" >&6; } | ||
20127 | |||
20128 | static_module="no" | ||
20129 | if test "x${enable_module}" = "xstatic" ; then | ||
20130 | static_module="yes" | ||
20131 | have_static_module="yes" | ||
20132 | |||
20133 | $as_echo "#define EINA_STATIC_BUILD_EMEMOA_UNKNOWN 1" >>confdefs.h | ||
20134 | |||
20135 | fi | ||
20136 | |||
20137 | if ! test "x${enable_module}" = "xno" ; then | ||
20138 | |||
20139 | $as_echo "#define EINA_BUILD_EMEMOA_UNKNOWN 1" >>confdefs.h | ||
20140 | |||
20141 | fi | ||
20142 | |||
20143 | if test "x${have_module}" = "xyes"; then | ||
20144 | EINA_BUILD_EMEMOA_UNKNOWN_TRUE= | ||
20145 | EINA_BUILD_EMEMOA_UNKNOWN_FALSE='#' | ||
20146 | else | ||
20147 | EINA_BUILD_EMEMOA_UNKNOWN_TRUE='#' | ||
20148 | EINA_BUILD_EMEMOA_UNKNOWN_FALSE= | ||
20149 | fi | ||
20150 | |||
20151 | if test "x${static_module}" = "xyes"; then | ||
20152 | EINA_STATIC_BUILD_EMEMOA_UNKNOWN_TRUE= | ||
20153 | EINA_STATIC_BUILD_EMEMOA_UNKNOWN_FALSE='#' | ||
20154 | else | ||
20155 | EINA_STATIC_BUILD_EMEMOA_UNKNOWN_TRUE='#' | ||
20156 | EINA_STATIC_BUILD_EMEMOA_UNKNOWN_FALSE= | ||
20157 | fi | ||
20158 | |||
20159 | |||
20160 | enable_ememoa_unknown=${enable_module} | ||
20161 | |||
20162 | |||
20163 | |||
20164 | |||
20165 | |||
20166 | |||
20167 | # Check whether --enable-mempool-fixed-bitmap was given. | ||
20168 | if test "${enable_mempool_fixed_bitmap+set}" = set; then : | ||
20169 | enableval=$enable_mempool_fixed_bitmap; | ||
20170 | if test "x${enableval}" = "xyes" ; then | ||
20171 | enable_module="yes" | ||
20172 | else | ||
20173 | if test "x${enableval}" = "xstatic" ; then | ||
20174 | enable_module="static" | ||
20175 | else | ||
20176 | enable_module="no" | ||
20177 | fi | ||
20178 | fi | ||
20179 | |||
20180 | else | ||
20181 | enable_module=no | ||
20182 | fi | ||
20183 | |||
20184 | |||
20185 | have_module="no" | ||
20186 | if test "x${enable_module}" = "xyes" || test "x${enable_module}" = "xstatic" ; then | ||
20187 | have_module="yes" | ||
20188 | fi | ||
20189 | |||
20190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable fixed bitmap built" >&5 | ||
20191 | $as_echo_n "checking whether to enable fixed bitmap built... " >&6; } | ||
20192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_module}" >&5 | ||
20193 | $as_echo "${have_module}" >&6; } | ||
20194 | |||
20195 | static_module="no" | ||
20196 | if test "x${enable_module}" = "xstatic" ; then | ||
20197 | static_module="yes" | ||
20198 | have_static_module="yes" | ||
20199 | |||
20200 | $as_echo "#define EINA_STATIC_BUILD_FIXED_BITMAP 1" >>confdefs.h | ||
20201 | |||
20202 | fi | ||
20203 | |||
20204 | if ! test "x${enable_module}" = "xno" ; then | ||
20205 | |||
20206 | $as_echo "#define EINA_BUILD_FIXED_BITMAP 1" >>confdefs.h | ||
20207 | |||
20208 | fi | ||
20209 | |||
20210 | if test "x${have_module}" = "xyes"; then | ||
20211 | EINA_BUILD_FIXED_BITMAP_TRUE= | ||
20212 | EINA_BUILD_FIXED_BITMAP_FALSE='#' | ||
20213 | else | ||
20214 | EINA_BUILD_FIXED_BITMAP_TRUE='#' | ||
20215 | EINA_BUILD_FIXED_BITMAP_FALSE= | ||
20216 | fi | ||
20217 | |||
20218 | if test "x${static_module}" = "xyes"; then | ||
20219 | EINA_STATIC_BUILD_FIXED_BITMAP_TRUE= | ||
20220 | EINA_STATIC_BUILD_FIXED_BITMAP_FALSE='#' | ||
20221 | else | ||
20222 | EINA_STATIC_BUILD_FIXED_BITMAP_TRUE='#' | ||
20223 | EINA_STATIC_BUILD_FIXED_BITMAP_FALSE= | ||
20224 | fi | ||
20225 | |||
20226 | |||
20227 | enable_fixed_bitmap=${enable_module} | ||
20228 | |||
20229 | |||
20230 | |||
20231 | |||
20232 | |||
20233 | |||
20234 | # Check whether --enable-mempool-pass-through was given. | ||
20235 | if test "${enable_mempool_pass_through+set}" = set; then : | ||
20236 | enableval=$enable_mempool_pass_through; | ||
20237 | if test "x${enableval}" = "xyes" ; then | ||
20238 | enable_module="yes" | ||
20239 | else | ||
20240 | if test "x${enableval}" = "xstatic" ; then | ||
20241 | enable_module="static" | ||
20242 | else | ||
20243 | enable_module="no" | ||
20244 | fi | ||
20245 | fi | ||
20246 | |||
20247 | else | ||
20248 | enable_module=${enable_pass_through} | ||
20249 | fi | ||
20250 | |||
20251 | |||
20252 | have_module="no" | ||
20253 | if test "x${enable_module}" = "xyes" || test "x${enable_module}" = "xstatic" ; then | ||
20254 | have_module="yes" | ||
20255 | fi | ||
20256 | |||
20257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable pass through built" >&5 | ||
20258 | $as_echo_n "checking whether to enable pass through built... " >&6; } | ||
20259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_module}" >&5 | ||
20260 | $as_echo "${have_module}" >&6; } | ||
20261 | |||
20262 | static_module="no" | ||
20263 | if test "x${enable_module}" = "xstatic" ; then | ||
20264 | static_module="yes" | ||
20265 | have_static_module="yes" | ||
20266 | |||
20267 | $as_echo "#define EINA_STATIC_BUILD_PASS_THROUGH 1" >>confdefs.h | ||
20268 | |||
20269 | fi | ||
20270 | |||
20271 | if ! test "x${enable_module}" = "xno" ; then | ||
20272 | |||
20273 | $as_echo "#define EINA_BUILD_PASS_THROUGH 1" >>confdefs.h | ||
20274 | |||
20275 | fi | ||
20276 | |||
20277 | if test "x${have_module}" = "xyes"; then | ||
20278 | EINA_BUILD_PASS_THROUGH_TRUE= | ||
20279 | EINA_BUILD_PASS_THROUGH_FALSE='#' | ||
20280 | else | ||
20281 | EINA_BUILD_PASS_THROUGH_TRUE='#' | ||
20282 | EINA_BUILD_PASS_THROUGH_FALSE= | ||
20283 | fi | ||
20284 | |||
20285 | if test "x${static_module}" = "xyes"; then | ||
20286 | EINA_STATIC_BUILD_PASS_THROUGH_TRUE= | ||
20287 | EINA_STATIC_BUILD_PASS_THROUGH_FALSE='#' | ||
20288 | else | ||
20289 | EINA_STATIC_BUILD_PASS_THROUGH_TRUE='#' | ||
20290 | EINA_STATIC_BUILD_PASS_THROUGH_FALSE= | ||
20291 | fi | ||
20292 | |||
20293 | |||
20294 | enable_pass_through=${enable_module} | ||
20295 | |||
20296 | |||
20297 | |||
20298 | |||
20299 | |||
20300 | |||
20301 | # Check whether --enable-mempool-buddy was given. | ||
20302 | if test "${enable_mempool_buddy+set}" = set; then : | ||
20303 | enableval=$enable_mempool_buddy; | ||
20304 | if test "x${enableval}" = "xyes" ; then | ||
20305 | enable_module="yes" | ||
20306 | else | ||
20307 | if test "x${enableval}" = "xstatic" ; then | ||
20308 | enable_module="static" | ||
20309 | else | ||
20310 | enable_module="no" | ||
20311 | fi | ||
20312 | fi | ||
20313 | |||
20314 | else | ||
20315 | enable_module=no | ||
20316 | fi | ||
20317 | |||
20318 | |||
20319 | have_module="no" | ||
20320 | if test "x${enable_module}" = "xyes" || test "x${enable_module}" = "xstatic" ; then | ||
20321 | have_module="yes" | ||
20322 | fi | ||
20323 | |||
20324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable buddy built" >&5 | ||
20325 | $as_echo_n "checking whether to enable buddy built... " >&6; } | ||
20326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_module}" >&5 | ||
20327 | $as_echo "${have_module}" >&6; } | ||
20328 | |||
20329 | static_module="no" | ||
20330 | if test "x${enable_module}" = "xstatic" ; then | ||
20331 | static_module="yes" | ||
20332 | have_static_module="yes" | ||
20333 | |||
20334 | $as_echo "#define EINA_STATIC_BUILD_BUDDY 1" >>confdefs.h | ||
20335 | |||
20336 | fi | ||
20337 | |||
20338 | if ! test "x${enable_module}" = "xno" ; then | ||
20339 | |||
20340 | $as_echo "#define EINA_BUILD_BUDDY 1" >>confdefs.h | ||
20341 | |||
20342 | fi | ||
20343 | |||
20344 | if test "x${have_module}" = "xyes"; then | ||
20345 | EINA_BUILD_BUDDY_TRUE= | ||
20346 | EINA_BUILD_BUDDY_FALSE='#' | ||
20347 | else | ||
20348 | EINA_BUILD_BUDDY_TRUE='#' | ||
20349 | EINA_BUILD_BUDDY_FALSE= | ||
20350 | fi | ||
20351 | |||
20352 | if test "x${static_module}" = "xyes"; then | ||
20353 | EINA_STATIC_BUILD_BUDDY_TRUE= | ||
20354 | EINA_STATIC_BUILD_BUDDY_FALSE='#' | ||
20355 | else | ||
20356 | EINA_STATIC_BUILD_BUDDY_TRUE='#' | ||
20357 | EINA_STATIC_BUILD_BUDDY_FALSE= | ||
20358 | fi | ||
20359 | |||
20360 | |||
20361 | enable_buddy=${enable_module} | ||
20362 | |||
20363 | |||
20364 | |||
20365 | |||
20366 | |||
20367 | |||
20368 | # Check whether --enable-mempool-one-big was given. | ||
20369 | if test "${enable_mempool_one_big+set}" = set; then : | ||
20370 | enableval=$enable_mempool_one_big; | ||
20371 | if test "x${enableval}" = "xyes" ; then | ||
20372 | enable_module="yes" | ||
20373 | else | ||
20374 | if test "x${enableval}" = "xstatic" ; then | ||
20375 | enable_module="static" | ||
20376 | else | ||
20377 | enable_module="no" | ||
20378 | fi | ||
20379 | fi | ||
20380 | |||
20381 | else | ||
20382 | enable_module=${enable_one_big} | ||
20383 | fi | ||
20384 | |||
20385 | |||
20386 | have_module="no" | ||
20387 | if test "x${enable_module}" = "xyes" || test "x${enable_module}" = "xstatic" ; then | ||
20388 | have_module="yes" | ||
20389 | fi | ||
20390 | |||
20391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable one big built" >&5 | ||
20392 | $as_echo_n "checking whether to enable one big built... " >&6; } | ||
20393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_module}" >&5 | ||
20394 | $as_echo "${have_module}" >&6; } | ||
20395 | |||
20396 | static_module="no" | ||
20397 | if test "x${enable_module}" = "xstatic" ; then | ||
20398 | static_module="yes" | ||
20399 | have_static_module="yes" | ||
20400 | |||
20401 | $as_echo "#define EINA_STATIC_BUILD_ONE_BIG 1" >>confdefs.h | ||
20402 | |||
20403 | fi | ||
20404 | |||
20405 | if ! test "x${enable_module}" = "xno" ; then | ||
20406 | |||
20407 | $as_echo "#define EINA_BUILD_ONE_BIG 1" >>confdefs.h | ||
20408 | |||
20409 | fi | ||
20410 | |||
20411 | if test "x${have_module}" = "xyes"; then | ||
20412 | EINA_BUILD_ONE_BIG_TRUE= | ||
20413 | EINA_BUILD_ONE_BIG_FALSE='#' | ||
20414 | else | ||
20415 | EINA_BUILD_ONE_BIG_TRUE='#' | ||
20416 | EINA_BUILD_ONE_BIG_FALSE= | ||
20417 | fi | ||
20418 | |||
20419 | if test "x${static_module}" = "xyes"; then | ||
20420 | EINA_STATIC_BUILD_ONE_BIG_TRUE= | ||
20421 | EINA_STATIC_BUILD_ONE_BIG_FALSE='#' | ||
20422 | else | ||
20423 | EINA_STATIC_BUILD_ONE_BIG_TRUE='#' | ||
20424 | EINA_STATIC_BUILD_ONE_BIG_FALSE= | ||
20425 | fi | ||
20426 | |||
20427 | |||
20428 | enable_one_big=${enable_module} | ||
20429 | |||
20430 | |||
20431 | |||
20432 | |||
20433 | |||
20434 | ### Make the debug preprocessor configurable | ||
20435 | |||
20436 | ### Unit tests, coverage and benchmarking | ||
20437 | |||
20438 | |||
20439 | |||
20440 | |||
20441 | # Check whether --enable-tests was given. | ||
20442 | if test "${enable_tests+set}" = set; then : | ||
20443 | enableval=$enable_tests; | ||
20444 | if test "x${enableval}" = "xyes" ; then | ||
20445 | _efl_enable_tests="yes" | ||
20446 | else | ||
20447 | _efl_enable_tests="no" | ||
20448 | fi | ||
20449 | |||
20450 | else | ||
20451 | _efl_enable_tests="no" | ||
20452 | fi | ||
20453 | |||
20454 | |||
20455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests are built" >&5 | ||
20456 | $as_echo_n "checking whether tests are built... " >&6; } | ||
20457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_tests}" >&5 | ||
20458 | $as_echo "${_efl_enable_tests}" >&6; } | ||
20459 | |||
20460 | |||
20461 | |||
20462 | if test "x${_efl_enable_tests}" = "xyes" ; then | ||
20463 | |||
20464 | pkg_failed=no | ||
20465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5 | ||
20466 | $as_echo_n "checking for CHECK... " >&6; } | ||
20467 | |||
20468 | if test -n "$CHECK_CFLAGS"; then | ||
20469 | pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS" | ||
20470 | elif test -n "$PKG_CONFIG"; then | ||
20471 | if test -n "$PKG_CONFIG" && \ | ||
20472 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.5\""; } >&5 | ||
20473 | ($PKG_CONFIG --exists --print-errors "check >= 0.9.5") 2>&5 | ||
20474 | ac_status=$? | ||
20475 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20476 | test $ac_status = 0; }; then | ||
20477 | pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.5" 2>/dev/null` | ||
20478 | else | ||
20479 | pkg_failed=yes | ||
20480 | fi | ||
20481 | else | ||
20482 | pkg_failed=untried | ||
20483 | fi | ||
20484 | if test -n "$CHECK_LIBS"; then | ||
20485 | pkg_cv_CHECK_LIBS="$CHECK_LIBS" | ||
20486 | elif test -n "$PKG_CONFIG"; then | ||
20487 | if test -n "$PKG_CONFIG" && \ | ||
20488 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.5\""; } >&5 | ||
20489 | ($PKG_CONFIG --exists --print-errors "check >= 0.9.5") 2>&5 | ||
20490 | ac_status=$? | ||
20491 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20492 | test $ac_status = 0; }; then | ||
20493 | pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.5" 2>/dev/null` | ||
20494 | else | ||
20495 | pkg_failed=yes | ||
20496 | fi | ||
20497 | else | ||
20498 | pkg_failed=untried | ||
20499 | fi | ||
20500 | |||
20501 | |||
20502 | |||
20503 | if test $pkg_failed = yes; then | ||
20504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20505 | $as_echo "no" >&6; } | ||
20506 | |||
20507 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
20508 | _pkg_short_errors_supported=yes | ||
20509 | else | ||
20510 | _pkg_short_errors_supported=no | ||
20511 | fi | ||
20512 | if test $_pkg_short_errors_supported = yes; then | ||
20513 | CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "check >= 0.9.5" 2>&1` | ||
20514 | else | ||
20515 | CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors "check >= 0.9.5" 2>&1` | ||
20516 | fi | ||
20517 | # Put the nasty error message in config.log where it belongs | ||
20518 | echo "$CHECK_PKG_ERRORS" >&5 | ||
20519 | |||
20520 | _efl_enable_tests="no" | ||
20521 | elif test $pkg_failed = untried; then | ||
20522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20523 | $as_echo "no" >&6; } | ||
20524 | _efl_enable_tests="no" | ||
20525 | else | ||
20526 | CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS | ||
20527 | CHECK_LIBS=$pkg_cv_CHECK_LIBS | ||
20528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
20529 | $as_echo "yes" >&6; } | ||
20530 | dummy="yes" | ||
20531 | fi | ||
20532 | fi | ||
20533 | |||
20534 | if test "x${_efl_enable_tests}" = "xyes"; then | ||
20535 | EFL_ENABLE_TESTS_TRUE= | ||
20536 | EFL_ENABLE_TESTS_FALSE='#' | ||
20537 | else | ||
20538 | EFL_ENABLE_TESTS_TRUE='#' | ||
20539 | EFL_ENABLE_TESTS_FALSE= | ||
20540 | fi | ||
20541 | |||
20542 | |||
20543 | if test "x$_efl_enable_tests" = "xyes"; then : | ||
20544 | enable_tests="yes" | ||
20545 | else | ||
20546 | enable_tests="no" | ||
20547 | fi | ||
20548 | |||
20549 | |||
20550 | |||
20551 | |||
20552 | |||
20553 | # Check whether --enable-coverage was given. | ||
20554 | if test "${enable_coverage+set}" = set; then : | ||
20555 | enableval=$enable_coverage; | ||
20556 | if test "x${enableval}" = "xyes" ; then | ||
20557 | _efl_enable_coverage="yes" | ||
20558 | else | ||
20559 | _efl_enable_coverage="no" | ||
20560 | fi | ||
20561 | |||
20562 | else | ||
20563 | _efl_enable_coverage="no" | ||
20564 | fi | ||
20565 | |||
20566 | |||
20567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use profiling instrumentation" >&5 | ||
20568 | $as_echo_n "checking whether to use profiling instrumentation... " >&6; } | ||
20569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_efl_enable_coverage" >&5 | ||
20570 | $as_echo "$_efl_enable_coverage" >&6; } | ||
20571 | |||
20572 | |||
20573 | if test "x$_efl_enable_coverage" = "xyes" && test ! "x${enable_tests}" = "xyes" ; then | ||
20574 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Coverage report requested but tests not being built, disable profiling instrumentation." >&5 | ||
20575 | $as_echo "$as_me: WARNING: Coverage report requested but tests not being built, disable profiling instrumentation." >&2;} | ||
20576 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Run configure with --enable-tests" >&5 | ||
20577 | $as_echo "$as_me: WARNING: Run configure with --enable-tests" >&2;} | ||
20578 | _efl_enable_coverage="no" | ||
20579 | fi | ||
20580 | |||
20581 | if test "x$_efl_enable_coverage" = "xyes" ; then | ||
20582 | # Extract the first word of "lcov", so it can be a program name with args. | ||
20583 | set dummy lcov; ac_word=$2 | ||
20584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
20585 | $as_echo_n "checking for $ac_word... " >&6; } | ||
20586 | if test "${ac_cv_prog_have_lcov+set}" = set; then : | ||
20587 | $as_echo_n "(cached) " >&6 | ||
20588 | else | ||
20589 | if test -n "$have_lcov"; then | ||
20590 | ac_cv_prog_have_lcov="$have_lcov" # Let the user override the test. | ||
20591 | else | ||
20592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
20593 | for as_dir in $PATH | ||
20594 | do | ||
20595 | IFS=$as_save_IFS | ||
20596 | test -z "$as_dir" && as_dir=. | ||
20597 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
20598 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
20599 | ac_cv_prog_have_lcov="yes" | ||
20600 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
20601 | break 2 | ||
20602 | fi | ||
20603 | done | ||
20604 | done | ||
20605 | IFS=$as_save_IFS | ||
20606 | |||
20607 | test -z "$ac_cv_prog_have_lcov" && ac_cv_prog_have_lcov="no" | ||
20608 | fi | ||
20609 | fi | ||
20610 | have_lcov=$ac_cv_prog_have_lcov | ||
20611 | if test -n "$have_lcov"; then | ||
20612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_lcov" >&5 | ||
20613 | $as_echo "$have_lcov" >&6; } | ||
20614 | else | ||
20615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20616 | $as_echo "no" >&6; } | ||
20617 | fi | ||
20618 | |||
20619 | |||
20620 | if test "x$have_lcov" = "xyes" ; then | ||
20621 | EFL_COVERAGE_CFLAGS="-fprofile-arcs -ftest-coverage" | ||
20622 | EFL_COVERAGE_LIBS="-lgcov" | ||
20623 | # remove any optimisation flag and force debug symbols | ||
20624 | EFL_DEBUG_CFLAGS="-g -O0 -DDEBUG" | ||
20625 | else | ||
20626 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: lcov is not found, disable profiling instrumentation" >&5 | ||
20627 | $as_echo "$as_me: WARNING: lcov is not found, disable profiling instrumentation" >&2;} | ||
20628 | _efl_enable_coverage="no" | ||
20629 | fi | ||
20630 | fi | ||
20631 | |||
20632 | |||
20633 | |||
20634 | |||
20635 | if test "x${_efl_enable_coverage}" = "xyes"; then | ||
20636 | EFL_ENABLE_COVERAGE_TRUE= | ||
20637 | EFL_ENABLE_COVERAGE_FALSE='#' | ||
20638 | else | ||
20639 | EFL_ENABLE_COVERAGE_TRUE='#' | ||
20640 | EFL_ENABLE_COVERAGE_FALSE= | ||
20641 | fi | ||
20642 | |||
20643 | |||
20644 | if test "x$_efl_enable_coverage" = "xyes"; then : | ||
20645 | enable_coverage="yes" | ||
20646 | else | ||
20647 | enable_coverage="no" | ||
20648 | fi | ||
20649 | |||
20650 | EINA_CFLAGS="${EINA_CFLAGS} ${EFL_COVERAGE_CFLAGS}" | ||
20651 | EINA_LIBS="${EINA_LIBS} ${EFL_COVERAGE_LIBS}" | ||
20652 | if test "x$enable_coverage" = "xyes" ; then | ||
20653 | EINA_CFLAGS="${EINA_CFLAGS} ${EFL_DEBUG_CFLAGS}" | ||
20654 | fi | ||
20655 | |||
20656 | |||
20657 | |||
20658 | |||
20659 | # Check whether --enable-benchmark was given. | ||
20660 | if test "${enable_benchmark+set}" = set; then : | ||
20661 | enableval=$enable_benchmark; | ||
20662 | if test "x${enableval}" = "xyes" ; then | ||
20663 | _efl_enable_benchmark="yes" | ||
20664 | else | ||
20665 | _efl_enable_benchmark="no" | ||
20666 | fi | ||
20667 | |||
20668 | else | ||
20669 | _efl_enable_benchmark="no" | ||
20670 | fi | ||
20671 | |||
20672 | |||
20673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether benchmark are built" >&5 | ||
20674 | $as_echo_n "checking whether benchmark are built... " >&6; } | ||
20675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_benchmark}" >&5 | ||
20676 | $as_echo "${_efl_enable_benchmark}" >&6; } | ||
20677 | |||
20678 | if test "x${_efl_enable_benchmark}" = "xyes"; then | ||
20679 | EFL_ENABLE_BENCHMARK_TRUE= | ||
20680 | EFL_ENABLE_BENCHMARK_FALSE='#' | ||
20681 | else | ||
20682 | EFL_ENABLE_BENCHMARK_TRUE='#' | ||
20683 | EFL_ENABLE_BENCHMARK_FALSE= | ||
20684 | fi | ||
20685 | |||
20686 | |||
20687 | if test "x$_efl_enable_benchmark" = "xyes"; then : | ||
20688 | enable_benchmark="yes" | ||
20689 | else | ||
20690 | enable_benchmark="no" | ||
20691 | fi | ||
20692 | |||
20693 | |||
20694 | |||
20695 | want_module="${enable_benchmark}" | ||
20696 | have_module="no" | ||
20697 | |||
20698 | # Check whether --enable-glib was given. | ||
20699 | if test "${enable_glib+set}" = set; then : | ||
20700 | enableval=$enable_glib; | ||
20701 | if test "x${enableval}" = "xyes" ; then | ||
20702 | enable_module="yes" | ||
20703 | else | ||
20704 | enable_module="no" | ||
20705 | fi | ||
20706 | |||
20707 | else | ||
20708 | enable_module="yes" | ||
20709 | fi | ||
20710 | |||
20711 | |||
20712 | if test "x${enable_module}" = "xyes" && test "x${want_module}" = "xyes"; then | ||
20713 | |||
20714 | pkg_failed=no | ||
20715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5 | ||
20716 | $as_echo_n "checking for GLIB... " >&6; } | ||
20717 | |||
20718 | if test -n "$GLIB_CFLAGS"; then | ||
20719 | pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" | ||
20720 | elif test -n "$PKG_CONFIG"; then | ||
20721 | if test -n "$PKG_CONFIG" && \ | ||
20722 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5 | ||
20723 | ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5 | ||
20724 | ac_status=$? | ||
20725 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20726 | test $ac_status = 0; }; then | ||
20727 | pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null` | ||
20728 | else | ||
20729 | pkg_failed=yes | ||
20730 | fi | ||
20731 | else | ||
20732 | pkg_failed=untried | ||
20733 | fi | ||
20734 | if test -n "$GLIB_LIBS"; then | ||
20735 | pkg_cv_GLIB_LIBS="$GLIB_LIBS" | ||
20736 | elif test -n "$PKG_CONFIG"; then | ||
20737 | if test -n "$PKG_CONFIG" && \ | ||
20738 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5 | ||
20739 | ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5 | ||
20740 | ac_status=$? | ||
20741 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20742 | test $ac_status = 0; }; then | ||
20743 | pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null` | ||
20744 | else | ||
20745 | pkg_failed=yes | ||
20746 | fi | ||
20747 | else | ||
20748 | pkg_failed=untried | ||
20749 | fi | ||
20750 | |||
20751 | |||
20752 | |||
20753 | if test $pkg_failed = yes; then | ||
20754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20755 | $as_echo "no" >&6; } | ||
20756 | |||
20757 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
20758 | _pkg_short_errors_supported=yes | ||
20759 | else | ||
20760 | _pkg_short_errors_supported=no | ||
20761 | fi | ||
20762 | if test $_pkg_short_errors_supported = yes; then | ||
20763 | GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1` | ||
20764 | else | ||
20765 | GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1` | ||
20766 | fi | ||
20767 | # Put the nasty error message in config.log where it belongs | ||
20768 | echo "$GLIB_PKG_ERRORS" >&5 | ||
20769 | |||
20770 | have_module="no" | ||
20771 | elif test $pkg_failed = untried; then | ||
20772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20773 | $as_echo "no" >&6; } | ||
20774 | have_module="no" | ||
20775 | else | ||
20776 | GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS | ||
20777 | GLIB_LIBS=$pkg_cv_GLIB_LIBS | ||
20778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
20779 | $as_echo "yes" >&6; } | ||
20780 | have_module="yes" | ||
20781 | fi | ||
20782 | fi | ||
20783 | |||
20784 | if test "x${have_module}" = "xyes"; then | ||
20785 | EINA_HAVE_GLIB_TRUE= | ||
20786 | EINA_HAVE_GLIB_FALSE='#' | ||
20787 | else | ||
20788 | EINA_HAVE_GLIB_TRUE='#' | ||
20789 | EINA_HAVE_GLIB_FALSE= | ||
20790 | fi | ||
20791 | |||
20792 | |||
20793 | if test "x$have_module" = "xyes"; then : | ||
20794 | enable_benchmark_glib="yes" | ||
20795 | else | ||
20796 | enable_benchmark_glib="no" | ||
20797 | fi | ||
20798 | |||
20799 | |||
20800 | |||
20801 | |||
20802 | if test -n "$CXX" && test "x$enable_benchmark" = "xyes" ; then | ||
20803 | |||
20804 | cat >>confdefs.h <<_ACEOF | ||
20805 | #define CITYHASH_BENCH 1 | ||
20806 | _ACEOF | ||
20807 | |||
20808 | fi | ||
20809 | if test -n "$CXX" && test "x$enable_benchmark" = "xyes"; then | ||
20810 | CITYHASH_BENCH_TRUE= | ||
20811 | CITYHASH_BENCH_FALSE='#' | ||
20812 | else | ||
20813 | CITYHASH_BENCH_TRUE='#' | ||
20814 | CITYHASH_BENCH_FALSE= | ||
20815 | fi | ||
20816 | |||
20817 | |||
20818 | |||
20819 | |||
20820 | ### Build and install examples | ||
20821 | |||
20822 | |||
20823 | |||
20824 | # Check whether --enable-build-examples was given. | ||
20825 | if test "${enable_build_examples+set}" = set; then : | ||
20826 | enableval=$enable_build_examples; | ||
20827 | if test "x${enableval}" = "xyes" ; then | ||
20828 | _efl_enable_build_examples="yes" | ||
20829 | else | ||
20830 | _efl_enable_build_examples="no" | ||
20831 | fi | ||
20832 | |||
20833 | else | ||
20834 | _efl_enable_build_examples="no" | ||
20835 | fi | ||
20836 | |||
20837 | |||
20838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether examples are built" >&5 | ||
20839 | $as_echo_n "checking whether examples are built... " >&6; } | ||
20840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_build_examples}" >&5 | ||
20841 | $as_echo "${_efl_enable_build_examples}" >&6; } | ||
20842 | |||
20843 | if test "x${_efl_enable_build_examples}" = "xyes"; then | ||
20844 | EFL_BUILD_EXAMPLES_TRUE= | ||
20845 | EFL_BUILD_EXAMPLES_FALSE='#' | ||
20846 | else | ||
20847 | EFL_BUILD_EXAMPLES_TRUE='#' | ||
20848 | EFL_BUILD_EXAMPLES_FALSE= | ||
20849 | fi | ||
20850 | |||
20851 | |||
20852 | if test "x$_efl_enable_build_examples" = "xyes"; then : | ||
20853 | enable_build_examples="yes" | ||
20854 | else | ||
20855 | enable_build_examples="no" | ||
20856 | fi | ||
20857 | |||
20858 | |||
20859 | |||
20860 | |||
20861 | # Check whether --enable-install-examples was given. | ||
20862 | if test "${enable_install_examples+set}" = set; then : | ||
20863 | enableval=$enable_install_examples; | ||
20864 | if test "x${enableval}" = "xyes" ; then | ||
20865 | _efl_enable_install_examples="yes" | ||
20866 | else | ||
20867 | _efl_enable_install_examples="no" | ||
20868 | fi | ||
20869 | |||
20870 | else | ||
20871 | _efl_enable_install_examples="no" | ||
20872 | fi | ||
20873 | |||
20874 | |||
20875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether examples are installed" >&5 | ||
20876 | $as_echo_n "checking whether examples are installed... " >&6; } | ||
20877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_install_examples}" >&5 | ||
20878 | $as_echo "${_efl_enable_install_examples}" >&6; } | ||
20879 | |||
20880 | if test "x${_efl_enable_install_examples}" = "xyes"; then | ||
20881 | EFL_INSTALL_EXAMPLES_TRUE= | ||
20882 | EFL_INSTALL_EXAMPLES_FALSE='#' | ||
20883 | else | ||
20884 | EFL_INSTALL_EXAMPLES_TRUE='#' | ||
20885 | EFL_INSTALL_EXAMPLES_FALSE= | ||
20886 | fi | ||
20887 | |||
20888 | |||
20889 | if test "x$_efl_enable_install_examples" = "xyes"; then : | ||
20890 | enable_install_examples="yes" | ||
20891 | else | ||
20892 | enable_install_examples="no" | ||
20893 | fi | ||
20894 | |||
20895 | |||
20896 | 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" | ||
20897 | |||
20898 | |||
20899 | cat >confcache <<\_ACEOF | ||
20900 | # This file is a shell script that caches the results of configure | ||
20901 | # tests run on this system so they can be shared between configure | ||
20902 | # scripts and configure runs, see configure's option --config-cache. | ||
20903 | # It is not useful on other systems. If it contains results you don't | ||
20904 | # want to keep, you may remove or edit it. | ||
20905 | # | ||
20906 | # config.status only pays attention to the cache file if you give it | ||
20907 | # the --recheck option to rerun configure. | ||
20908 | # | ||
20909 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
20910 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
20911 | # following values. | ||
20912 | |||
20913 | _ACEOF | ||
20914 | |||
20915 | # The following way of writing the cache mishandles newlines in values, | ||
20916 | # but we know of no workaround that is simple, portable, and efficient. | ||
20917 | # So, we kill variables containing newlines. | ||
20918 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
20919 | # and sets the high bit in the cache file unless we assign to the vars. | ||
20920 | ( | ||
20921 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
20922 | eval ac_val=\$$ac_var | ||
20923 | case $ac_val in #( | ||
20924 | *${as_nl}*) | ||
20925 | case $ac_var in #( | ||
20926 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
20927 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
20928 | esac | ||
20929 | case $ac_var in #( | ||
20930 | _ | IFS | as_nl) ;; #( | ||
20931 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
20932 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
20933 | esac ;; | ||
20934 | esac | ||
20935 | done | ||
20936 | |||
20937 | (set) 2>&1 | | ||
20938 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
20939 | *${as_nl}ac_space=\ *) | ||
20940 | # `set' does not quote correctly, so add quotes: double-quote | ||
20941 | # substitution turns \\\\ into \\, and sed turns \\ into \. | ||
20942 | sed -n \ | ||
20943 | "s/'/'\\\\''/g; | ||
20944 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
20945 | ;; #( | ||
20946 | *) | ||
20947 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
20948 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
20949 | ;; | ||
20950 | esac | | ||
20951 | sort | ||
20952 | ) | | ||
20953 | sed ' | ||
20954 | /^ac_cv_env_/b end | ||
20955 | t clear | ||
20956 | :clear | ||
20957 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
20958 | t end | ||
20959 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
20960 | :end' >>confcache | ||
20961 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
20962 | if test -w "$cache_file"; then | ||
20963 | test "x$cache_file" != "x/dev/null" && | ||
20964 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | ||
20965 | $as_echo "$as_me: updating cache $cache_file" >&6;} | ||
20966 | cat confcache >$cache_file | ||
20967 | else | ||
20968 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | ||
20969 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
20970 | fi | ||
20971 | fi | ||
20972 | rm -f confcache | ||
20973 | |||
20974 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
20975 | # Let make expand exec_prefix. | ||
20976 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
20977 | |||
20978 | DEFS=-DHAVE_CONFIG_H | ||
20979 | |||
20980 | ac_libobjs= | ||
20981 | ac_ltlibobjs= | ||
20982 | U= | ||
20983 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
20984 | # 1. Remove the extension, and $U if already installed. | ||
20985 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
20986 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | ||
20987 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
20988 | # will be set to the directory where LIBOBJS objects are built. | ||
20989 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
20990 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | ||
20991 | done | ||
20992 | LIBOBJS=$ac_libobjs | ||
20993 | |||
20994 | LTLIBOBJS=$ac_ltlibobjs | ||
20995 | |||
20996 | |||
20997 | if test -n "$EXEEXT"; then | ||
20998 | am__EXEEXT_TRUE= | ||
20999 | am__EXEEXT_FALSE='#' | ||
21000 | else | ||
21001 | am__EXEEXT_TRUE='#' | ||
21002 | am__EXEEXT_FALSE= | ||
21003 | fi | ||
21004 | |||
21005 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | ||
21006 | as_fn_error $? "conditional \"AMDEP\" was never defined. | ||
21007 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21008 | fi | ||
21009 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | ||
21010 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | ||
21011 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21012 | fi | ||
21013 | if test -z "${EINA_HAVE_THREADS_TRUE}" && test -z "${EINA_HAVE_THREADS_FALSE}"; then | ||
21014 | as_fn_error $? "conditional \"EINA_HAVE_THREADS\" was never defined. | ||
21015 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21016 | fi | ||
21017 | if test -z "${EINA_DEBUG_THREADS_TRUE}" && test -z "${EINA_DEBUG_THREADS_FALSE}"; then | ||
21018 | as_fn_error $? "conditional \"EINA_DEBUG_THREADS\" was never defined. | ||
21019 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21020 | fi | ||
21021 | if test -z "${EINA_ON_OFF_THREADS_TRUE}" && test -z "${EINA_ON_OFF_THREADS_FALSE}"; then | ||
21022 | as_fn_error $? "conditional \"EINA_ON_OFF_THREADS\" was never defined. | ||
21023 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21024 | fi | ||
21025 | if test -z "${SAFETY_CHECKS_TRUE}" && test -z "${SAFETY_CHECKS_FALSE}"; then | ||
21026 | as_fn_error $? "conditional \"SAFETY_CHECKS\" was never defined. | ||
21027 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21028 | fi | ||
21029 | if test -z "${EINA_AMALGAMATION_TRUE}" && test -z "${EINA_AMALGAMATION_FALSE}"; then | ||
21030 | as_fn_error $? "conditional \"EINA_AMALGAMATION\" was never defined. | ||
21031 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21032 | fi | ||
21033 | if test -z "${EINA_ENABLE_BENCHMARK_E17_TRUE}" && test -z "${EINA_ENABLE_BENCHMARK_E17_FALSE}"; then | ||
21034 | as_fn_error $? "conditional \"EINA_ENABLE_BENCHMARK_E17\" was never defined. | ||
21035 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21036 | fi | ||
21037 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | ||
21038 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | ||
21039 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21040 | fi | ||
21041 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | ||
21042 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | ||
21043 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21044 | fi | ||
21045 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | ||
21046 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | ||
21047 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21048 | fi | ||
21049 | if test -z "${EFL_BUILD_DOC_TRUE}" && test -z "${EFL_BUILD_DOC_FALSE}"; then | ||
21050 | as_fn_error $? "conditional \"EFL_BUILD_DOC\" was never defined. | ||
21051 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21052 | fi | ||
21053 | if test -z "${BUILD_TILER_EXAMPLE_TRUE}" && test -z "${BUILD_TILER_EXAMPLE_FALSE}"; then | ||
21054 | as_fn_error $? "conditional \"BUILD_TILER_EXAMPLE\" was never defined. | ||
21055 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21056 | fi | ||
21057 | |||
21058 | if test -z "${EINA_HAVE_WINCE_TRUE}" && test -z "${EINA_HAVE_WINCE_FALSE}"; then | ||
21059 | as_fn_error $? "conditional \"EINA_HAVE_WINCE\" was never defined. | ||
21060 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21061 | fi | ||
21062 | if test -z "${EINA_HAVE_WIN32_TRUE}" && test -z "${EINA_HAVE_WIN32_FALSE}"; then | ||
21063 | as_fn_error $? "conditional \"EINA_HAVE_WIN32\" was never defined. | ||
21064 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21065 | fi | ||
21066 | if test -z "${EINA_HAVE_EXOTIC_TRUE}" && test -z "${EINA_HAVE_EXOTIC_FALSE}"; then | ||
21067 | as_fn_error $? "conditional \"EINA_HAVE_EXOTIC\" was never defined. | ||
21068 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21069 | fi | ||
21070 | if test -z "${EINA_BUILD_CHAINED_POOL_TRUE}" && test -z "${EINA_BUILD_CHAINED_POOL_FALSE}"; then | ||
21071 | as_fn_error $? "conditional \"EINA_BUILD_CHAINED_POOL\" was never defined. | ||
21072 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21073 | fi | ||
21074 | if test -z "${EINA_STATIC_BUILD_CHAINED_POOL_TRUE}" && test -z "${EINA_STATIC_BUILD_CHAINED_POOL_FALSE}"; then | ||
21075 | as_fn_error $? "conditional \"EINA_STATIC_BUILD_CHAINED_POOL\" was never defined. | ||
21076 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21077 | fi | ||
21078 | if test -z "${EINA_BUILD_EMEMOA_FIXED_TRUE}" && test -z "${EINA_BUILD_EMEMOA_FIXED_FALSE}"; then | ||
21079 | as_fn_error $? "conditional \"EINA_BUILD_EMEMOA_FIXED\" was never defined. | ||
21080 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21081 | fi | ||
21082 | if test -z "${EINA_STATIC_BUILD_EMEMOA_FIXED_TRUE}" && test -z "${EINA_STATIC_BUILD_EMEMOA_FIXED_FALSE}"; then | ||
21083 | as_fn_error $? "conditional \"EINA_STATIC_BUILD_EMEMOA_FIXED\" was never defined. | ||
21084 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21085 | fi | ||
21086 | if test -z "${EINA_BUILD_EMEMOA_UNKNOWN_TRUE}" && test -z "${EINA_BUILD_EMEMOA_UNKNOWN_FALSE}"; then | ||
21087 | as_fn_error $? "conditional \"EINA_BUILD_EMEMOA_UNKNOWN\" was never defined. | ||
21088 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21089 | fi | ||
21090 | if test -z "${EINA_STATIC_BUILD_EMEMOA_UNKNOWN_TRUE}" && test -z "${EINA_STATIC_BUILD_EMEMOA_UNKNOWN_FALSE}"; then | ||
21091 | as_fn_error $? "conditional \"EINA_STATIC_BUILD_EMEMOA_UNKNOWN\" was never defined. | ||
21092 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21093 | fi | ||
21094 | if test -z "${EINA_BUILD_FIXED_BITMAP_TRUE}" && test -z "${EINA_BUILD_FIXED_BITMAP_FALSE}"; then | ||
21095 | as_fn_error $? "conditional \"EINA_BUILD_FIXED_BITMAP\" was never defined. | ||
21096 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21097 | fi | ||
21098 | if test -z "${EINA_STATIC_BUILD_FIXED_BITMAP_TRUE}" && test -z "${EINA_STATIC_BUILD_FIXED_BITMAP_FALSE}"; then | ||
21099 | as_fn_error $? "conditional \"EINA_STATIC_BUILD_FIXED_BITMAP\" was never defined. | ||
21100 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21101 | fi | ||
21102 | if test -z "${EINA_BUILD_PASS_THROUGH_TRUE}" && test -z "${EINA_BUILD_PASS_THROUGH_FALSE}"; then | ||
21103 | as_fn_error $? "conditional \"EINA_BUILD_PASS_THROUGH\" was never defined. | ||
21104 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21105 | fi | ||
21106 | if test -z "${EINA_STATIC_BUILD_PASS_THROUGH_TRUE}" && test -z "${EINA_STATIC_BUILD_PASS_THROUGH_FALSE}"; then | ||
21107 | as_fn_error $? "conditional \"EINA_STATIC_BUILD_PASS_THROUGH\" was never defined. | ||
21108 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21109 | fi | ||
21110 | if test -z "${EINA_BUILD_BUDDY_TRUE}" && test -z "${EINA_BUILD_BUDDY_FALSE}"; then | ||
21111 | as_fn_error $? "conditional \"EINA_BUILD_BUDDY\" was never defined. | ||
21112 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21113 | fi | ||
21114 | if test -z "${EINA_STATIC_BUILD_BUDDY_TRUE}" && test -z "${EINA_STATIC_BUILD_BUDDY_FALSE}"; then | ||
21115 | as_fn_error $? "conditional \"EINA_STATIC_BUILD_BUDDY\" was never defined. | ||
21116 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21117 | fi | ||
21118 | if test -z "${EINA_BUILD_ONE_BIG_TRUE}" && test -z "${EINA_BUILD_ONE_BIG_FALSE}"; then | ||
21119 | as_fn_error $? "conditional \"EINA_BUILD_ONE_BIG\" was never defined. | ||
21120 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21121 | fi | ||
21122 | if test -z "${EINA_STATIC_BUILD_ONE_BIG_TRUE}" && test -z "${EINA_STATIC_BUILD_ONE_BIG_FALSE}"; then | ||
21123 | as_fn_error $? "conditional \"EINA_STATIC_BUILD_ONE_BIG\" was never defined. | ||
21124 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21125 | fi | ||
21126 | if test -z "${EFL_ENABLE_TESTS_TRUE}" && test -z "${EFL_ENABLE_TESTS_FALSE}"; then | ||
21127 | as_fn_error $? "conditional \"EFL_ENABLE_TESTS\" was never defined. | ||
21128 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21129 | fi | ||
21130 | if test -z "${EFL_ENABLE_COVERAGE_TRUE}" && test -z "${EFL_ENABLE_COVERAGE_FALSE}"; then | ||
21131 | as_fn_error $? "conditional \"EFL_ENABLE_COVERAGE\" was never defined. | ||
21132 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21133 | fi | ||
21134 | if test -z "${EFL_ENABLE_BENCHMARK_TRUE}" && test -z "${EFL_ENABLE_BENCHMARK_FALSE}"; then | ||
21135 | as_fn_error $? "conditional \"EFL_ENABLE_BENCHMARK\" was never defined. | ||
21136 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21137 | fi | ||
21138 | if test -z "${EINA_HAVE_GLIB_TRUE}" && test -z "${EINA_HAVE_GLIB_FALSE}"; then | ||
21139 | as_fn_error $? "conditional \"EINA_HAVE_GLIB\" was never defined. | ||
21140 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21141 | fi | ||
21142 | if test -z "${CITYHASH_BENCH_TRUE}" && test -z "${CITYHASH_BENCH_FALSE}"; then | ||
21143 | as_fn_error $? "conditional \"CITYHASH_BENCH\" was never defined. | ||
21144 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21145 | fi | ||
21146 | if test -z "${EFL_BUILD_EXAMPLES_TRUE}" && test -z "${EFL_BUILD_EXAMPLES_FALSE}"; then | ||
21147 | as_fn_error $? "conditional \"EFL_BUILD_EXAMPLES\" was never defined. | ||
21148 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21149 | fi | ||
21150 | if test -z "${EFL_INSTALL_EXAMPLES_TRUE}" && test -z "${EFL_INSTALL_EXAMPLES_FALSE}"; then | ||
21151 | as_fn_error $? "conditional \"EFL_INSTALL_EXAMPLES\" was never defined. | ||
21152 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
21153 | fi | ||
21154 | |||
21155 | : ${CONFIG_STATUS=./config.status} | ||
21156 | ac_write_fail=0 | ||
21157 | ac_clean_files_save=$ac_clean_files | ||
21158 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
21159 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | ||
21160 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
21161 | as_write_fail=0 | ||
21162 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | ||
21163 | #! $SHELL | ||
21164 | # Generated by $as_me. | ||
21165 | # Run this file to recreate the current configuration. | ||
21166 | # Compiler output produced by configure, useful for debugging | ||
21167 | # configure, is in config.log if it exists. | ||
21168 | |||
21169 | debug=false | ||
21170 | ac_cs_recheck=false | ||
21171 | ac_cs_silent=false | ||
21172 | |||
21173 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
21174 | export SHELL | ||
21175 | _ASEOF | ||
21176 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | ||
21177 | ## -------------------- ## | ||
21178 | ## M4sh Initialization. ## | ||
21179 | ## -------------------- ## | ||
21180 | |||
21181 | # Be more Bourne compatible | ||
21182 | DUALCASE=1; export DUALCASE # for MKS sh | ||
21183 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
21184 | emulate sh | ||
21185 | NULLCMD=: | ||
21186 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
21187 | # is contrary to our usage. Disable this feature. | ||
21188 | alias -g '${1+"$@"}'='"$@"' | ||
21189 | setopt NO_GLOB_SUBST | ||
21190 | else | ||
21191 | case `(set -o) 2>/dev/null` in #( | ||
21192 | *posix*) : | ||
21193 | set -o posix ;; #( | ||
21194 | *) : | ||
21195 | ;; | ||
21196 | esac | ||
21197 | fi | ||
21198 | |||
21199 | |||
21200 | as_nl=' | ||
21201 | ' | ||
21202 | export as_nl | ||
21203 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
21204 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
21205 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
21206 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
21207 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
21208 | # but without wasting forks for bash or zsh. | ||
21209 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
21210 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
21211 | as_echo='print -r --' | ||
21212 | as_echo_n='print -rn --' | ||
21213 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
21214 | as_echo='printf %s\n' | ||
21215 | as_echo_n='printf %s' | ||
21216 | else | ||
21217 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
21218 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
21219 | as_echo_n='/usr/ucb/echo -n' | ||
21220 | else | ||
21221 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
21222 | as_echo_n_body='eval | ||
21223 | arg=$1; | ||
21224 | case $arg in #( | ||
21225 | *"$as_nl"*) | ||
21226 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
21227 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
21228 | esac; | ||
21229 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
21230 | ' | ||
21231 | export as_echo_n_body | ||
21232 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
21233 | fi | ||
21234 | export as_echo_body | ||
21235 | as_echo='sh -c $as_echo_body as_echo' | ||
21236 | fi | ||
21237 | |||
21238 | # The user is always right. | ||
21239 | if test "${PATH_SEPARATOR+set}" != set; then | ||
21240 | PATH_SEPARATOR=: | ||
21241 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
21242 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
21243 | PATH_SEPARATOR=';' | ||
21244 | } | ||
21245 | fi | ||
21246 | |||
21247 | |||
21248 | # IFS | ||
21249 | # We need space, tab and new line, in precisely that order. Quoting is | ||
21250 | # there to prevent editors from complaining about space-tab. | ||
21251 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
21252 | # splitting by setting IFS to empty value.) | ||
21253 | IFS=" "" $as_nl" | ||
21254 | |||
21255 | # Find who we are. Look in the path if we contain no directory separator. | ||
21256 | case $0 in #(( | ||
21257 | *[\\/]* ) as_myself=$0 ;; | ||
21258 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
21259 | for as_dir in $PATH | ||
21260 | do | ||
21261 | IFS=$as_save_IFS | ||
21262 | test -z "$as_dir" && as_dir=. | ||
21263 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
21264 | done | ||
21265 | IFS=$as_save_IFS | ||
21266 | |||
21267 | ;; | ||
21268 | esac | ||
21269 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
21270 | # in which case we are not to be found in the path. | ||
21271 | if test "x$as_myself" = x; then | ||
21272 | as_myself=$0 | ||
21273 | fi | ||
21274 | if test ! -f "$as_myself"; then | ||
21275 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
21276 | exit 1 | ||
21277 | fi | ||
21278 | |||
21279 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
21280 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
21281 | # suppresses any "Segmentation fault" message there. '((' could | ||
21282 | # trigger a bug in pdksh 5.2.14. | ||
21283 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
21284 | do eval test x\${$as_var+set} = xset \ | ||
21285 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
21286 | done | ||
21287 | PS1='$ ' | ||
21288 | PS2='> ' | ||
21289 | PS4='+ ' | ||
21290 | |||
21291 | # NLS nuisances. | ||
21292 | LC_ALL=C | ||
21293 | export LC_ALL | ||
21294 | LANGUAGE=C | ||
21295 | export LANGUAGE | ||
21296 | |||
21297 | # CDPATH. | ||
21298 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
21299 | |||
21300 | |||
21301 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
21302 | # ---------------------------------------- | ||
21303 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
21304 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
21305 | # script with STATUS, using 1 if that was 0. | ||
21306 | as_fn_error () | ||
21307 | { | ||
21308 | as_status=$1; test $as_status -eq 0 && as_status=1 | ||
21309 | if test "$4"; then | ||
21310 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
21311 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
21312 | fi | ||
21313 | $as_echo "$as_me: error: $2" >&2 | ||
21314 | as_fn_exit $as_status | ||
21315 | } # as_fn_error | ||
21316 | |||
21317 | |||
21318 | # as_fn_set_status STATUS | ||
21319 | # ----------------------- | ||
21320 | # Set $? to STATUS, without forking. | ||
21321 | as_fn_set_status () | ||
21322 | { | ||
21323 | return $1 | ||
21324 | } # as_fn_set_status | ||
21325 | |||
21326 | # as_fn_exit STATUS | ||
21327 | # ----------------- | ||
21328 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
21329 | as_fn_exit () | ||
21330 | { | ||
21331 | set +e | ||
21332 | as_fn_set_status $1 | ||
21333 | exit $1 | ||
21334 | } # as_fn_exit | ||
21335 | |||
21336 | # as_fn_unset VAR | ||
21337 | # --------------- | ||
21338 | # Portably unset VAR. | ||
21339 | as_fn_unset () | ||
21340 | { | ||
21341 | { eval $1=; unset $1;} | ||
21342 | } | ||
21343 | as_unset=as_fn_unset | ||
21344 | # as_fn_append VAR VALUE | ||
21345 | # ---------------------- | ||
21346 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
21347 | # advantage of any shell optimizations that allow amortized linear growth over | ||
21348 | # repeated appends, instead of the typical quadratic growth present in naive | ||
21349 | # implementations. | ||
21350 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
21351 | eval 'as_fn_append () | ||
21352 | { | ||
21353 | eval $1+=\$2 | ||
21354 | }' | ||
21355 | else | ||
21356 | as_fn_append () | ||
21357 | { | ||
21358 | eval $1=\$$1\$2 | ||
21359 | } | ||
21360 | fi # as_fn_append | ||
21361 | |||
21362 | # as_fn_arith ARG... | ||
21363 | # ------------------ | ||
21364 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
21365 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
21366 | # must be portable across $(()) and expr. | ||
21367 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
21368 | eval 'as_fn_arith () | ||
21369 | { | ||
21370 | as_val=$(( $* )) | ||
21371 | }' | ||
21372 | else | ||
21373 | as_fn_arith () | ||
21374 | { | ||
21375 | as_val=`expr "$@" || test $? -eq 1` | ||
21376 | } | ||
21377 | fi # as_fn_arith | ||
21378 | |||
21379 | |||
21380 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
21381 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
21382 | as_expr=expr | ||
21383 | else | ||
21384 | as_expr=false | ||
21385 | fi | ||
21386 | |||
21387 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
21388 | as_basename=basename | ||
21389 | else | ||
21390 | as_basename=false | ||
21391 | fi | ||
21392 | |||
21393 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
21394 | as_dirname=dirname | ||
21395 | else | ||
21396 | as_dirname=false | ||
21397 | fi | ||
21398 | |||
21399 | as_me=`$as_basename -- "$0" || | ||
21400 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
21401 | X"$0" : 'X\(//\)$' \| \ | ||
21402 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
21403 | $as_echo X/"$0" | | ||
21404 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
21405 | s//\1/ | ||
21406 | q | ||
21407 | } | ||
21408 | /^X\/\(\/\/\)$/{ | ||
21409 | s//\1/ | ||
21410 | q | ||
21411 | } | ||
21412 | /^X\/\(\/\).*/{ | ||
21413 | s//\1/ | ||
21414 | q | ||
21415 | } | ||
21416 | s/.*/./; q'` | ||
21417 | |||
21418 | # Avoid depending upon Character Ranges. | ||
21419 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
21420 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
21421 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
21422 | as_cr_digits='0123456789' | ||
21423 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
21424 | |||
21425 | ECHO_C= ECHO_N= ECHO_T= | ||
21426 | case `echo -n x` in #((((( | ||
21427 | -n*) | ||
21428 | case `echo 'xy\c'` in | ||
21429 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
21430 | xy) ECHO_C='\c';; | ||
21431 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
21432 | ECHO_T=' ';; | ||
21433 | esac;; | ||
21434 | *) | ||
21435 | ECHO_N='-n';; | ||
21436 | esac | ||
21437 | |||
21438 | rm -f conf$$ conf$$.exe conf$$.file | ||
21439 | if test -d conf$$.dir; then | ||
21440 | rm -f conf$$.dir/conf$$.file | ||
21441 | else | ||
21442 | rm -f conf$$.dir | ||
21443 | mkdir conf$$.dir 2>/dev/null | ||
21444 | fi | ||
21445 | if (echo >conf$$.file) 2>/dev/null; then | ||
21446 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
21447 | as_ln_s='ln -s' | ||
21448 | # ... but there are two gotchas: | ||
21449 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
21450 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
21451 | # In both cases, we have to default to `cp -p'. | ||
21452 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
21453 | as_ln_s='cp -p' | ||
21454 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
21455 | as_ln_s=ln | ||
21456 | else | ||
21457 | as_ln_s='cp -p' | ||
21458 | fi | ||
21459 | else | ||
21460 | as_ln_s='cp -p' | ||
21461 | fi | ||
21462 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
21463 | rmdir conf$$.dir 2>/dev/null | ||
21464 | |||
21465 | |||
21466 | # as_fn_mkdir_p | ||
21467 | # ------------- | ||
21468 | # Create "$as_dir" as a directory, including parents if necessary. | ||
21469 | as_fn_mkdir_p () | ||
21470 | { | ||
21471 | |||
21472 | case $as_dir in #( | ||
21473 | -*) as_dir=./$as_dir;; | ||
21474 | esac | ||
21475 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
21476 | as_dirs= | ||
21477 | while :; do | ||
21478 | case $as_dir in #( | ||
21479 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
21480 | *) as_qdir=$as_dir;; | ||
21481 | esac | ||
21482 | as_dirs="'$as_qdir' $as_dirs" | ||
21483 | as_dir=`$as_dirname -- "$as_dir" || | ||
21484 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
21485 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
21486 | X"$as_dir" : 'X\(//\)$' \| \ | ||
21487 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
21488 | $as_echo X"$as_dir" | | ||
21489 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
21490 | s//\1/ | ||
21491 | q | ||
21492 | } | ||
21493 | /^X\(\/\/\)[^/].*/{ | ||
21494 | s//\1/ | ||
21495 | q | ||
21496 | } | ||
21497 | /^X\(\/\/\)$/{ | ||
21498 | s//\1/ | ||
21499 | q | ||
21500 | } | ||
21501 | /^X\(\/\).*/{ | ||
21502 | s//\1/ | ||
21503 | q | ||
21504 | } | ||
21505 | s/.*/./; q'` | ||
21506 | test -d "$as_dir" && break | ||
21507 | done | ||
21508 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
21509 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | ||
21510 | |||
21511 | |||
21512 | } # as_fn_mkdir_p | ||
21513 | if mkdir -p . 2>/dev/null; then | ||
21514 | as_mkdir_p='mkdir -p "$as_dir"' | ||
21515 | else | ||
21516 | test -d ./-p && rmdir ./-p | ||
21517 | as_mkdir_p=false | ||
21518 | fi | ||
21519 | |||
21520 | if test -x / >/dev/null 2>&1; then | ||
21521 | as_test_x='test -x' | ||
21522 | else | ||
21523 | if ls -dL / >/dev/null 2>&1; then | ||
21524 | as_ls_L_option=L | ||
21525 | else | ||
21526 | as_ls_L_option= | ||
21527 | fi | ||
21528 | as_test_x=' | ||
21529 | eval sh -c '\'' | ||
21530 | if test -d "$1"; then | ||
21531 | test -d "$1/."; | ||
21532 | else | ||
21533 | case $1 in #( | ||
21534 | -*)set "./$1";; | ||
21535 | esac; | ||
21536 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | ||
21537 | ???[sx]*):;;*)false;;esac;fi | ||
21538 | '\'' sh | ||
21539 | ' | ||
21540 | fi | ||
21541 | as_executable_p=$as_test_x | ||
21542 | |||
21543 | # Sed expression to map a string onto a valid CPP name. | ||
21544 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
21545 | |||
21546 | # Sed expression to map a string onto a valid variable name. | ||
21547 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
21548 | |||
21549 | |||
21550 | exec 6>&1 | ||
21551 | ## ----------------------------------- ## | ||
21552 | ## Main body of $CONFIG_STATUS script. ## | ||
21553 | ## ----------------------------------- ## | ||
21554 | _ASEOF | ||
21555 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | ||
21556 | |||
21557 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
21558 | # Save the log message, to keep $0 and so on meaningful, and to | ||
21559 | # report actual input values of CONFIG_FILES etc. instead of their | ||
21560 | # values after options handling. | ||
21561 | ac_log=" | ||
21562 | This file was extended by eina $as_me 1.2.0-alpha, which was | ||
21563 | generated by GNU Autoconf 2.67. Invocation command line was | ||
21564 | |||
21565 | CONFIG_FILES = $CONFIG_FILES | ||
21566 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
21567 | CONFIG_LINKS = $CONFIG_LINKS | ||
21568 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
21569 | $ $0 $@ | ||
21570 | |||
21571 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
21572 | " | ||
21573 | |||
21574 | _ACEOF | ||
21575 | |||
21576 | case $ac_config_files in *" | ||
21577 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | ||
21578 | esac | ||
21579 | |||
21580 | case $ac_config_headers in *" | ||
21581 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | ||
21582 | esac | ||
21583 | |||
21584 | |||
21585 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
21586 | # Files that config.status was made for. | ||
21587 | config_files="$ac_config_files" | ||
21588 | config_headers="$ac_config_headers" | ||
21589 | config_commands="$ac_config_commands" | ||
21590 | |||
21591 | _ACEOF | ||
21592 | |||
21593 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
21594 | ac_cs_usage="\ | ||
21595 | \`$as_me' instantiates files and other configuration actions | ||
21596 | from templates according to the current configuration. Unless the files | ||
21597 | and actions are specified as TAGs, all are instantiated by default. | ||
21598 | |||
21599 | Usage: $0 [OPTION]... [TAG]... | ||
21600 | |||
21601 | -h, --help print this help, then exit | ||
21602 | -V, --version print version number and configuration settings, then exit | ||
21603 | --config print configuration, then exit | ||
21604 | -q, --quiet, --silent | ||
21605 | do not print progress messages | ||
21606 | -d, --debug don't remove temporary files | ||
21607 | --recheck update $as_me by reconfiguring in the same conditions | ||
21608 | --file=FILE[:TEMPLATE] | ||
21609 | instantiate the configuration file FILE | ||
21610 | --header=FILE[:TEMPLATE] | ||
21611 | instantiate the configuration header FILE | ||
21612 | |||
21613 | Configuration files: | ||
21614 | $config_files | ||
21615 | |||
21616 | Configuration headers: | ||
21617 | $config_headers | ||
21618 | |||
21619 | Configuration commands: | ||
21620 | $config_commands | ||
21621 | |||
21622 | Report bugs to <enlightenment-devel@lists.sourceforge.net>." | ||
21623 | |||
21624 | _ACEOF | ||
21625 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
21626 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | ||
21627 | ac_cs_version="\\ | ||
21628 | eina config.status 1.2.0-alpha | ||
21629 | configured by $0, generated by GNU Autoconf 2.67, | ||
21630 | with options \\"\$ac_cs_config\\" | ||
21631 | |||
21632 | Copyright (C) 2010 Free Software Foundation, Inc. | ||
21633 | This config.status script is free software; the Free Software Foundation | ||
21634 | gives unlimited permission to copy, distribute and modify it." | ||
21635 | |||
21636 | ac_pwd='$ac_pwd' | ||
21637 | srcdir='$srcdir' | ||
21638 | INSTALL='$INSTALL' | ||
21639 | MKDIR_P='$MKDIR_P' | ||
21640 | AWK='$AWK' | ||
21641 | test -n "\$AWK" || AWK=awk | ||
21642 | _ACEOF | ||
21643 | |||
21644 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
21645 | # The default lists apply if the user does not specify any file. | ||
21646 | ac_need_defaults=: | ||
21647 | while test $# != 0 | ||
21648 | do | ||
21649 | case $1 in | ||
21650 | --*=?*) | ||
21651 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
21652 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
21653 | ac_shift=: | ||
21654 | ;; | ||
21655 | --*=) | ||
21656 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
21657 | ac_optarg= | ||
21658 | ac_shift=: | ||
21659 | ;; | ||
21660 | *) | ||
21661 | ac_option=$1 | ||
21662 | ac_optarg=$2 | ||
21663 | ac_shift=shift | ||
21664 | ;; | ||
21665 | esac | ||
21666 | |||
21667 | case $ac_option in | ||
21668 | # Handling of the options. | ||
21669 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
21670 | ac_cs_recheck=: ;; | ||
21671 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
21672 | $as_echo "$ac_cs_version"; exit ;; | ||
21673 | --config | --confi | --conf | --con | --co | --c ) | ||
21674 | $as_echo "$ac_cs_config"; exit ;; | ||
21675 | --debug | --debu | --deb | --de | --d | -d ) | ||
21676 | debug=: ;; | ||
21677 | --file | --fil | --fi | --f ) | ||
21678 | $ac_shift | ||
21679 | case $ac_optarg in | ||
21680 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
21681 | '') as_fn_error $? "missing file argument" ;; | ||
21682 | esac | ||
21683 | as_fn_append CONFIG_FILES " '$ac_optarg'" | ||
21684 | ac_need_defaults=false;; | ||
21685 | --header | --heade | --head | --hea ) | ||
21686 | $ac_shift | ||
21687 | case $ac_optarg in | ||
21688 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
21689 | esac | ||
21690 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | ||
21691 | ac_need_defaults=false;; | ||
21692 | --he | --h) | ||
21693 | # Conflict between --help and --header | ||
21694 | as_fn_error $? "ambiguous option: \`$1' | ||
21695 | Try \`$0 --help' for more information.";; | ||
21696 | --help | --hel | -h ) | ||
21697 | $as_echo "$ac_cs_usage"; exit ;; | ||
21698 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
21699 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
21700 | ac_cs_silent=: ;; | ||
21701 | |||
21702 | # This is an error. | ||
21703 | -*) as_fn_error $? "unrecognized option: \`$1' | ||
21704 | Try \`$0 --help' for more information." ;; | ||
21705 | |||
21706 | *) as_fn_append ac_config_targets " $1" | ||
21707 | ac_need_defaults=false ;; | ||
21708 | |||
21709 | esac | ||
21710 | shift | ||
21711 | done | ||
21712 | |||
21713 | ac_configure_extra_args= | ||
21714 | |||
21715 | if $ac_cs_silent; then | ||
21716 | exec 6>/dev/null | ||
21717 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
21718 | fi | ||
21719 | |||
21720 | _ACEOF | ||
21721 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
21722 | if \$ac_cs_recheck; then | ||
21723 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
21724 | shift | ||
21725 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | ||
21726 | CONFIG_SHELL='$SHELL' | ||
21727 | export CONFIG_SHELL | ||
21728 | exec "\$@" | ||
21729 | fi | ||
21730 | |||
21731 | _ACEOF | ||
21732 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
21733 | exec 5>>config.log | ||
21734 | { | ||
21735 | echo | ||
21736 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
21737 | ## Running $as_me. ## | ||
21738 | _ASBOX | ||
21739 | $as_echo "$ac_log" | ||
21740 | } >&5 | ||
21741 | |||
21742 | _ACEOF | ||
21743 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
21744 | # | ||
21745 | # INIT-COMMANDS | ||
21746 | # | ||
21747 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | ||
21748 | |||
21749 | |||
21750 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
21751 | # if CDPATH is set. | ||
21752 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
21753 | |||
21754 | sed_quote_subst='$sed_quote_subst' | ||
21755 | double_quote_subst='$double_quote_subst' | ||
21756 | delay_variable_subst='$delay_variable_subst' | ||
21757 | AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' | ||
21758 | DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' | ||
21759 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | ||
21760 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
21761 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | ||
21762 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | ||
21763 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
21764 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | ||
21765 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | ||
21766 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
21767 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | ||
21768 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
21769 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
21770 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | ||
21771 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
21772 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | ||
21773 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | ||
21774 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
21775 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
21776 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
21777 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | ||
21778 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | ||
21779 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | ||
21780 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | ||
21781 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | ||
21782 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | ||
21783 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | ||
21784 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | ||
21785 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | ||
21786 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
21787 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21788 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | ||
21789 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | ||
21790 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | ||
21791 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
21792 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | ||
21793 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | ||
21794 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21795 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21796 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21797 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | ||
21798 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
21799 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | ||
21800 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | ||
21801 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | ||
21802 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | ||
21803 | 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"`' | ||
21804 | 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"`' | ||
21805 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | ||
21806 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | ||
21807 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | ||
21808 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | ||
21809 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
21810 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | ||
21811 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | ||
21812 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
21813 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | ||
21814 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | ||
21815 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | ||
21816 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | ||
21817 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | ||
21818 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | ||
21819 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | ||
21820 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | ||
21821 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21822 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21823 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | ||
21824 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | ||
21825 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
21826 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
21827 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | ||
21828 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21829 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21830 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21831 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21832 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21833 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21834 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
21835 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
21836 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
21837 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
21838 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
21839 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | ||
21840 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | ||
21841 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | ||
21842 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | ||
21843 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
21844 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | ||
21845 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
21846 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | ||
21847 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | ||
21848 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | ||
21849 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21850 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
21851 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
21852 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21853 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
21854 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | ||
21855 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | ||
21856 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
21857 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | ||
21858 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
21859 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
21860 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
21861 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
21862 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
21863 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
21864 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21865 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21866 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
21867 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | ||
21868 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | ||
21869 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
21870 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
21871 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | ||
21872 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | ||
21873 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | ||
21874 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
21875 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
21876 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
21877 | compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' | ||
21878 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' | ||
21879 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' | ||
21880 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' | ||
21881 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' | ||
21882 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' | ||
21883 | LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21884 | old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21885 | compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21886 | GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21887 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21888 | lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21889 | lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21890 | lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21891 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21892 | archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21893 | enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21894 | export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21895 | whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21896 | compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21897 | old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21898 | old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21899 | archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21900 | archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21901 | module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21902 | module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21903 | with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21904 | allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21905 | no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21906 | hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21907 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21908 | hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21909 | hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21910 | hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21911 | hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21912 | hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21913 | hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21914 | inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21915 | link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21916 | fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21917 | always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21918 | export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21919 | exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21920 | include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21921 | prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21922 | file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21923 | hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21924 | compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21925 | predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21926 | postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21927 | predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21928 | postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21929 | compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
21930 | |||
21931 | LTCC='$LTCC' | ||
21932 | LTCFLAGS='$LTCFLAGS' | ||
21933 | compiler='$compiler_DEFAULT' | ||
21934 | |||
21935 | # Quote evaled strings. | ||
21936 | for var in SED \ | ||
21937 | GREP \ | ||
21938 | EGREP \ | ||
21939 | FGREP \ | ||
21940 | LD \ | ||
21941 | NM \ | ||
21942 | LN_S \ | ||
21943 | lt_SP2NL \ | ||
21944 | lt_NL2SP \ | ||
21945 | reload_flag \ | ||
21946 | deplibs_check_method \ | ||
21947 | file_magic_cmd \ | ||
21948 | AR \ | ||
21949 | AR_FLAGS \ | ||
21950 | STRIP \ | ||
21951 | RANLIB \ | ||
21952 | CC \ | ||
21953 | CFLAGS \ | ||
21954 | compiler \ | ||
21955 | lt_cv_sys_global_symbol_pipe \ | ||
21956 | lt_cv_sys_global_symbol_to_cdecl \ | ||
21957 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
21958 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | ||
21959 | SHELL \ | ||
21960 | ECHO \ | ||
21961 | lt_prog_compiler_no_builtin_flag \ | ||
21962 | lt_prog_compiler_wl \ | ||
21963 | lt_prog_compiler_pic \ | ||
21964 | lt_prog_compiler_static \ | ||
21965 | lt_cv_prog_compiler_c_o \ | ||
21966 | need_locks \ | ||
21967 | DSYMUTIL \ | ||
21968 | NMEDIT \ | ||
21969 | LIPO \ | ||
21970 | OTOOL \ | ||
21971 | OTOOL64 \ | ||
21972 | shrext_cmds \ | ||
21973 | export_dynamic_flag_spec \ | ||
21974 | whole_archive_flag_spec \ | ||
21975 | compiler_needs_object \ | ||
21976 | with_gnu_ld \ | ||
21977 | allow_undefined_flag \ | ||
21978 | no_undefined_flag \ | ||
21979 | hardcode_libdir_flag_spec \ | ||
21980 | hardcode_libdir_flag_spec_ld \ | ||
21981 | hardcode_libdir_separator \ | ||
21982 | fix_srcfile_path \ | ||
21983 | exclude_expsyms \ | ||
21984 | include_expsyms \ | ||
21985 | file_list_spec \ | ||
21986 | variables_saved_for_relink \ | ||
21987 | libname_spec \ | ||
21988 | library_names_spec \ | ||
21989 | soname_spec \ | ||
21990 | finish_eval \ | ||
21991 | old_striplib \ | ||
21992 | striplib \ | ||
21993 | compiler_lib_search_dirs \ | ||
21994 | predep_objects \ | ||
21995 | postdep_objects \ | ||
21996 | predeps \ | ||
21997 | postdeps \ | ||
21998 | compiler_lib_search_path \ | ||
21999 | LD_CXX \ | ||
22000 | compiler_CXX \ | ||
22001 | lt_prog_compiler_no_builtin_flag_CXX \ | ||
22002 | lt_prog_compiler_wl_CXX \ | ||
22003 | lt_prog_compiler_pic_CXX \ | ||
22004 | lt_prog_compiler_static_CXX \ | ||
22005 | lt_cv_prog_compiler_c_o_CXX \ | ||
22006 | export_dynamic_flag_spec_CXX \ | ||
22007 | whole_archive_flag_spec_CXX \ | ||
22008 | compiler_needs_object_CXX \ | ||
22009 | with_gnu_ld_CXX \ | ||
22010 | allow_undefined_flag_CXX \ | ||
22011 | no_undefined_flag_CXX \ | ||
22012 | hardcode_libdir_flag_spec_CXX \ | ||
22013 | hardcode_libdir_flag_spec_ld_CXX \ | ||
22014 | hardcode_libdir_separator_CXX \ | ||
22015 | fix_srcfile_path_CXX \ | ||
22016 | exclude_expsyms_CXX \ | ||
22017 | include_expsyms_CXX \ | ||
22018 | file_list_spec_CXX \ | ||
22019 | compiler_lib_search_dirs_CXX \ | ||
22020 | predep_objects_CXX \ | ||
22021 | postdep_objects_CXX \ | ||
22022 | predeps_CXX \ | ||
22023 | postdeps_CXX \ | ||
22024 | compiler_lib_search_path_CXX; do | ||
22025 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
22026 | *[\\\\\\\`\\"\\\$]*) | ||
22027 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | ||
22028 | ;; | ||
22029 | *) | ||
22030 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
22031 | ;; | ||
22032 | esac | ||
22033 | done | ||
22034 | |||
22035 | # Double-quote double-evaled strings. | ||
22036 | for var in reload_cmds \ | ||
22037 | old_postinstall_cmds \ | ||
22038 | old_postuninstall_cmds \ | ||
22039 | old_archive_cmds \ | ||
22040 | extract_expsyms_cmds \ | ||
22041 | old_archive_from_new_cmds \ | ||
22042 | old_archive_from_expsyms_cmds \ | ||
22043 | archive_cmds \ | ||
22044 | archive_expsym_cmds \ | ||
22045 | module_cmds \ | ||
22046 | module_expsym_cmds \ | ||
22047 | export_symbols_cmds \ | ||
22048 | prelink_cmds \ | ||
22049 | postinstall_cmds \ | ||
22050 | postuninstall_cmds \ | ||
22051 | finish_cmds \ | ||
22052 | sys_lib_search_path_spec \ | ||
22053 | sys_lib_dlsearch_path_spec \ | ||
22054 | old_archive_cmds_CXX \ | ||
22055 | old_archive_from_new_cmds_CXX \ | ||
22056 | old_archive_from_expsyms_cmds_CXX \ | ||
22057 | archive_cmds_CXX \ | ||
22058 | archive_expsym_cmds_CXX \ | ||
22059 | module_cmds_CXX \ | ||
22060 | module_expsym_cmds_CXX \ | ||
22061 | export_symbols_cmds_CXX \ | ||
22062 | prelink_cmds_CXX; do | ||
22063 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
22064 | *[\\\\\\\`\\"\\\$]*) | ||
22065 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | ||
22066 | ;; | ||
22067 | *) | ||
22068 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
22069 | ;; | ||
22070 | esac | ||
22071 | done | ||
22072 | |||
22073 | # Fix-up fallback echo if it was mangled by the above quoting rules. | ||
22074 | case \$lt_ECHO in | ||
22075 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | ||
22076 | ;; | ||
22077 | esac | ||
22078 | |||
22079 | ac_aux_dir='$ac_aux_dir' | ||
22080 | xsi_shell='$xsi_shell' | ||
22081 | lt_shell_append='$lt_shell_append' | ||
22082 | |||
22083 | # See if we are running on zsh, and set the options which allow our | ||
22084 | # commands through without removal of \ escapes INIT. | ||
22085 | if test -n "\${ZSH_VERSION+set}" ; then | ||
22086 | setopt NO_GLOB_SUBST | ||
22087 | fi | ||
22088 | |||
22089 | |||
22090 | PACKAGE='$PACKAGE' | ||
22091 | VERSION='$VERSION' | ||
22092 | TIMESTAMP='$TIMESTAMP' | ||
22093 | RM='$RM' | ||
22094 | ofile='$ofile' | ||
22095 | |||
22096 | |||
22097 | |||
22098 | |||
22099 | |||
22100 | |||
22101 | _ACEOF | ||
22102 | |||
22103 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
22104 | |||
22105 | # Handling of arguments. | ||
22106 | for ac_config_target in $ac_config_targets | ||
22107 | do | ||
22108 | case $ac_config_target in | ||
22109 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
22110 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | ||
22111 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | ||
22112 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
22113 | "eina.pc") CONFIG_FILES="$CONFIG_FILES eina.pc" ;; | ||
22114 | "eina.spec") CONFIG_FILES="$CONFIG_FILES eina.spec" ;; | ||
22115 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | ||
22116 | "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;; | ||
22117 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | ||
22118 | "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;; | ||
22119 | "src/include/eina_config.h") CONFIG_FILES="$CONFIG_FILES src/include/eina_config.h" ;; | ||
22120 | "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; | ||
22121 | "src/modules/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;; | ||
22122 | "src/modules/mp/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/mp/Makefile" ;; | ||
22123 | "src/modules/mp/chained_pool/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/mp/chained_pool/Makefile" ;; | ||
22124 | "src/modules/mp/ememoa_fixed/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/mp/ememoa_fixed/Makefile" ;; | ||
22125 | "src/modules/mp/ememoa_unknown/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/mp/ememoa_unknown/Makefile" ;; | ||
22126 | "src/modules/mp/pass_through/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/mp/pass_through/Makefile" ;; | ||
22127 | "src/modules/mp/fixed_bitmap/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/mp/fixed_bitmap/Makefile" ;; | ||
22128 | "src/modules/mp/buddy/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/mp/buddy/Makefile" ;; | ||
22129 | "src/modules/mp/one_big/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/mp/one_big/Makefile" ;; | ||
22130 | "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;; | ||
22131 | "src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;; | ||
22132 | |||
22133 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; | ||
22134 | esac | ||
22135 | done | ||
22136 | |||
22137 | |||
22138 | # If the user did not use the arguments to specify the items to instantiate, | ||
22139 | # then the envvar interface is used. Set only those that are not. | ||
22140 | # We use the long form for the default assignment because of an extremely | ||
22141 | # bizarre bug on SunOS 4.1.3. | ||
22142 | if $ac_need_defaults; then | ||
22143 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
22144 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
22145 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | ||
22146 | fi | ||
22147 | |||
22148 | # Have a temporary directory for convenience. Make it in the build tree | ||
22149 | # simply because there is no reason against having it here, and in addition, | ||
22150 | # creating and moving files from /tmp can sometimes cause problems. | ||
22151 | # Hook for its removal unless debugging. | ||
22152 | # Note that there is a small window in which the directory will not be cleaned: | ||
22153 | # after its creation but before its name has been assigned to `$tmp'. | ||
22154 | $debug || | ||
22155 | { | ||
22156 | tmp= | ||
22157 | trap 'exit_status=$? | ||
22158 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | ||
22159 | ' 0 | ||
22160 | trap 'as_fn_exit 1' 1 2 13 15 | ||
22161 | } | ||
22162 | # Create a (secure) tmp directory for tmp files. | ||
22163 | |||
22164 | { | ||
22165 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
22166 | test -n "$tmp" && test -d "$tmp" | ||
22167 | } || | ||
22168 | { | ||
22169 | tmp=./conf$$-$RANDOM | ||
22170 | (umask 077 && mkdir "$tmp") | ||
22171 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | ||
22172 | |||
22173 | # Set up the scripts for CONFIG_FILES section. | ||
22174 | # No need to generate them if there are no CONFIG_FILES. | ||
22175 | # This happens for instance with `./config.status config.h'. | ||
22176 | if test -n "$CONFIG_FILES"; then | ||
22177 | |||
22178 | |||
22179 | ac_cr=`echo X | tr X '\015'` | ||
22180 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | ||
22181 | # But we know of no other shell where ac_cr would be empty at this | ||
22182 | # point, so we can use a bashism as a fallback. | ||
22183 | if test "x$ac_cr" = x; then | ||
22184 | eval ac_cr=\$\'\\r\' | ||
22185 | fi | ||
22186 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | ||
22187 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | ||
22188 | ac_cs_awk_cr='\\r' | ||
22189 | else | ||
22190 | ac_cs_awk_cr=$ac_cr | ||
22191 | fi | ||
22192 | |||
22193 | echo 'BEGIN {' >"$tmp/subs1.awk" && | ||
22194 | _ACEOF | ||
22195 | |||
22196 | |||
22197 | { | ||
22198 | echo "cat >conf$$subs.awk <<_ACEOF" && | ||
22199 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | ||
22200 | echo "_ACEOF" | ||
22201 | } >conf$$subs.sh || | ||
22202 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
22203 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | ||
22204 | ac_delim='%!_!# ' | ||
22205 | for ac_last_try in false false false false false :; do | ||
22206 | . ./conf$$subs.sh || | ||
22207 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
22208 | |||
22209 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | ||
22210 | if test $ac_delim_n = $ac_delim_num; then | ||
22211 | break | ||
22212 | elif $ac_last_try; then | ||
22213 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
22214 | else | ||
22215 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
22216 | fi | ||
22217 | done | ||
22218 | rm -f conf$$subs.sh | ||
22219 | |||
22220 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
22221 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | ||
22222 | _ACEOF | ||
22223 | sed -n ' | ||
22224 | h | ||
22225 | s/^/S["/; s/!.*/"]=/ | ||
22226 | p | ||
22227 | g | ||
22228 | s/^[^!]*!// | ||
22229 | :repl | ||
22230 | t repl | ||
22231 | s/'"$ac_delim"'$// | ||
22232 | t delim | ||
22233 | :nl | ||
22234 | h | ||
22235 | s/\(.\{148\}\)..*/\1/ | ||
22236 | t more1 | ||
22237 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | ||
22238 | p | ||
22239 | n | ||
22240 | b repl | ||
22241 | :more1 | ||
22242 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
22243 | p | ||
22244 | g | ||
22245 | s/.\{148\}// | ||
22246 | t nl | ||
22247 | :delim | ||
22248 | h | ||
22249 | s/\(.\{148\}\)..*/\1/ | ||
22250 | t more2 | ||
22251 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | ||
22252 | p | ||
22253 | b | ||
22254 | :more2 | ||
22255 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
22256 | p | ||
22257 | g | ||
22258 | s/.\{148\}// | ||
22259 | t delim | ||
22260 | ' <conf$$subs.awk | sed ' | ||
22261 | /^[^""]/{ | ||
22262 | N | ||
22263 | s/\n// | ||
22264 | } | ||
22265 | ' >>$CONFIG_STATUS || ac_write_fail=1 | ||
22266 | rm -f conf$$subs.awk | ||
22267 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
22268 | _ACAWK | ||
22269 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | ||
22270 | for (key in S) S_is_set[key] = 1 | ||
22271 | FS = "" | ||
22272 | |||
22273 | } | ||
22274 | { | ||
22275 | line = $ 0 | ||
22276 | nfields = split(line, field, "@") | ||
22277 | substed = 0 | ||
22278 | len = length(field[1]) | ||
22279 | for (i = 2; i < nfields; i++) { | ||
22280 | key = field[i] | ||
22281 | keylen = length(key) | ||
22282 | if (S_is_set[key]) { | ||
22283 | value = S[key] | ||
22284 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | ||
22285 | len += length(value) + length(field[++i]) | ||
22286 | substed = 1 | ||
22287 | } else | ||
22288 | len += 1 + keylen | ||
22289 | } | ||
22290 | |||
22291 | print line | ||
22292 | } | ||
22293 | |||
22294 | _ACAWK | ||
22295 | _ACEOF | ||
22296 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
22297 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | ||
22298 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | ||
22299 | else | ||
22300 | cat | ||
22301 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | ||
22302 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | ||
22303 | _ACEOF | ||
22304 | |||
22305 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | ||
22306 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | ||
22307 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
22308 | # (actually we leave an empty line to preserve line numbers). | ||
22309 | if test "x$srcdir" = x.; then | ||
22310 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | ||
22311 | h | ||
22312 | s/// | ||
22313 | s/^/:/ | ||
22314 | s/[ ]*$/:/ | ||
22315 | s/:\$(srcdir):/:/g | ||
22316 | s/:\${srcdir}:/:/g | ||
22317 | s/:@srcdir@:/:/g | ||
22318 | s/^:*// | ||
22319 | s/:*$// | ||
22320 | x | ||
22321 | s/\(=[ ]*\).*/\1/ | ||
22322 | G | ||
22323 | s/\n// | ||
22324 | s/^[^=]*=[ ]*$// | ||
22325 | }' | ||
22326 | fi | ||
22327 | |||
22328 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
22329 | fi # test -n "$CONFIG_FILES" | ||
22330 | |||
22331 | # Set up the scripts for CONFIG_HEADERS section. | ||
22332 | # No need to generate them if there are no CONFIG_HEADERS. | ||
22333 | # This happens for instance with `./config.status Makefile'. | ||
22334 | if test -n "$CONFIG_HEADERS"; then | ||
22335 | cat >"$tmp/defines.awk" <<\_ACAWK || | ||
22336 | BEGIN { | ||
22337 | _ACEOF | ||
22338 | |||
22339 | # Transform confdefs.h into an awk script `defines.awk', embedded as | ||
22340 | # here-document in config.status, that substitutes the proper values into | ||
22341 | # config.h.in to produce config.h. | ||
22342 | |||
22343 | # Create a delimiter string that does not exist in confdefs.h, to ease | ||
22344 | # handling of long lines. | ||
22345 | ac_delim='%!_!# ' | ||
22346 | for ac_last_try in false false :; do | ||
22347 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | ||
22348 | if test -z "$ac_t"; then | ||
22349 | break | ||
22350 | elif $ac_last_try; then | ||
22351 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | ||
22352 | else | ||
22353 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
22354 | fi | ||
22355 | done | ||
22356 | |||
22357 | # For the awk script, D is an array of macro values keyed by name, | ||
22358 | # likewise P contains macro parameters if any. Preserve backslash | ||
22359 | # newline sequences. | ||
22360 | |||
22361 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
22362 | sed -n ' | ||
22363 | s/.\{148\}/&'"$ac_delim"'/g | ||
22364 | t rset | ||
22365 | :rset | ||
22366 | s/^[ ]*#[ ]*define[ ][ ]*/ / | ||
22367 | t def | ||
22368 | d | ||
22369 | :def | ||
22370 | s/\\$// | ||
22371 | t bsnl | ||
22372 | s/["\\]/\\&/g | ||
22373 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
22374 | D["\1"]=" \3"/p | ||
22375 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | ||
22376 | d | ||
22377 | :bsnl | ||
22378 | s/["\\]/\\&/g | ||
22379 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
22380 | D["\1"]=" \3\\\\\\n"\\/p | ||
22381 | t cont | ||
22382 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | ||
22383 | t cont | ||
22384 | d | ||
22385 | :cont | ||
22386 | n | ||
22387 | s/.\{148\}/&'"$ac_delim"'/g | ||
22388 | t clear | ||
22389 | :clear | ||
22390 | s/\\$// | ||
22391 | t bsnlc | ||
22392 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | ||
22393 | d | ||
22394 | :bsnlc | ||
22395 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | ||
22396 | b cont | ||
22397 | ' <confdefs.h | sed ' | ||
22398 | s/'"$ac_delim"'/"\\\ | ||
22399 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | ||
22400 | |||
22401 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
22402 | for (key in D) D_is_set[key] = 1 | ||
22403 | FS = "" | ||
22404 | } | ||
22405 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | ||
22406 | line = \$ 0 | ||
22407 | split(line, arg, " ") | ||
22408 | if (arg[1] == "#") { | ||
22409 | defundef = arg[2] | ||
22410 | mac1 = arg[3] | ||
22411 | } else { | ||
22412 | defundef = substr(arg[1], 2) | ||
22413 | mac1 = arg[2] | ||
22414 | } | ||
22415 | split(mac1, mac2, "(") #) | ||
22416 | macro = mac2[1] | ||
22417 | prefix = substr(line, 1, index(line, defundef) - 1) | ||
22418 | if (D_is_set[macro]) { | ||
22419 | # Preserve the white space surrounding the "#". | ||
22420 | print prefix "define", macro P[macro] D[macro] | ||
22421 | next | ||
22422 | } else { | ||
22423 | # Replace #undef with comments. This is necessary, for example, | ||
22424 | # in the case of _POSIX_SOURCE, which is predefined and required | ||
22425 | # on some systems where configure will not decide to define it. | ||
22426 | if (defundef == "undef") { | ||
22427 | print "/*", prefix defundef, macro, "*/" | ||
22428 | next | ||
22429 | } | ||
22430 | } | ||
22431 | } | ||
22432 | { print } | ||
22433 | _ACAWK | ||
22434 | _ACEOF | ||
22435 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
22436 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | ||
22437 | fi # test -n "$CONFIG_HEADERS" | ||
22438 | |||
22439 | |||
22440 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | ||
22441 | shift | ||
22442 | for ac_tag | ||
22443 | do | ||
22444 | case $ac_tag in | ||
22445 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
22446 | esac | ||
22447 | case $ac_mode$ac_tag in | ||
22448 | :[FHL]*:*);; | ||
22449 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; | ||
22450 | :[FH]-) ac_tag=-:-;; | ||
22451 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
22452 | esac | ||
22453 | ac_save_IFS=$IFS | ||
22454 | IFS=: | ||
22455 | set x $ac_tag | ||
22456 | IFS=$ac_save_IFS | ||
22457 | shift | ||
22458 | ac_file=$1 | ||
22459 | shift | ||
22460 | |||
22461 | case $ac_mode in | ||
22462 | :L) ac_source=$1;; | ||
22463 | :[FH]) | ||
22464 | ac_file_inputs= | ||
22465 | for ac_f | ||
22466 | do | ||
22467 | case $ac_f in | ||
22468 | -) ac_f="$tmp/stdin";; | ||
22469 | *) # Look for the file first in the build tree, then in the source tree | ||
22470 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
22471 | # because $ac_f cannot contain `:'. | ||
22472 | test -f "$ac_f" || | ||
22473 | case $ac_f in | ||
22474 | [\\/$]*) false;; | ||
22475 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
22476 | esac || | ||
22477 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; | ||
22478 | esac | ||
22479 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | ||
22480 | as_fn_append ac_file_inputs " '$ac_f'" | ||
22481 | done | ||
22482 | |||
22483 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
22484 | # use $as_me), people would be surprised to read: | ||
22485 | # /* config.h. Generated by config.status. */ | ||
22486 | configure_input='Generated from '` | ||
22487 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | ||
22488 | `' by configure.' | ||
22489 | if test x"$ac_file" != x-; then | ||
22490 | configure_input="$ac_file. $configure_input" | ||
22491 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | ||
22492 | $as_echo "$as_me: creating $ac_file" >&6;} | ||
22493 | fi | ||
22494 | # Neutralize special characters interpreted by sed in replacement strings. | ||
22495 | case $configure_input in #( | ||
22496 | *\&* | *\|* | *\\* ) | ||
22497 | ac_sed_conf_input=`$as_echo "$configure_input" | | ||
22498 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | ||
22499 | *) ac_sed_conf_input=$configure_input;; | ||
22500 | esac | ||
22501 | |||
22502 | case $ac_tag in | ||
22503 | *:-:* | *:-) cat >"$tmp/stdin" \ | ||
22504 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | ||
22505 | esac | ||
22506 | ;; | ||
22507 | esac | ||
22508 | |||
22509 | ac_dir=`$as_dirname -- "$ac_file" || | ||
22510 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
22511 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
22512 | X"$ac_file" : 'X\(//\)$' \| \ | ||
22513 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
22514 | $as_echo X"$ac_file" | | ||
22515 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
22516 | s//\1/ | ||
22517 | q | ||
22518 | } | ||
22519 | /^X\(\/\/\)[^/].*/{ | ||
22520 | s//\1/ | ||
22521 | q | ||
22522 | } | ||
22523 | /^X\(\/\/\)$/{ | ||
22524 | s//\1/ | ||
22525 | q | ||
22526 | } | ||
22527 | /^X\(\/\).*/{ | ||
22528 | s//\1/ | ||
22529 | q | ||
22530 | } | ||
22531 | s/.*/./; q'` | ||
22532 | as_dir="$ac_dir"; as_fn_mkdir_p | ||
22533 | ac_builddir=. | ||
22534 | |||
22535 | case "$ac_dir" in | ||
22536 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
22537 | *) | ||
22538 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
22539 | # A ".." for each directory in $ac_dir_suffix. | ||
22540 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
22541 | case $ac_top_builddir_sub in | ||
22542 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
22543 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
22544 | esac ;; | ||
22545 | esac | ||
22546 | ac_abs_top_builddir=$ac_pwd | ||
22547 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
22548 | # for backward compatibility: | ||
22549 | ac_top_builddir=$ac_top_build_prefix | ||
22550 | |||
22551 | case $srcdir in | ||
22552 | .) # We are building in place. | ||
22553 | ac_srcdir=. | ||
22554 | ac_top_srcdir=$ac_top_builddir_sub | ||
22555 | ac_abs_top_srcdir=$ac_pwd ;; | ||
22556 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
22557 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
22558 | ac_top_srcdir=$srcdir | ||
22559 | ac_abs_top_srcdir=$srcdir ;; | ||
22560 | *) # Relative name. | ||
22561 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
22562 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
22563 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
22564 | esac | ||
22565 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
22566 | |||
22567 | |||
22568 | case $ac_mode in | ||
22569 | :F) | ||
22570 | # | ||
22571 | # CONFIG_FILE | ||
22572 | # | ||
22573 | |||
22574 | case $INSTALL in | ||
22575 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
22576 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
22577 | esac | ||
22578 | ac_MKDIR_P=$MKDIR_P | ||
22579 | case $MKDIR_P in | ||
22580 | [\\/$]* | ?:[\\/]* ) ;; | ||
22581 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | ||
22582 | esac | ||
22583 | _ACEOF | ||
22584 | |||
22585 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
22586 | # If the template does not know about datarootdir, expand it. | ||
22587 | # FIXME: This hack should be removed a few years after 2.60. | ||
22588 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
22589 | ac_sed_dataroot=' | ||
22590 | /datarootdir/ { | ||
22591 | p | ||
22592 | q | ||
22593 | } | ||
22594 | /@datadir@/p | ||
22595 | /@docdir@/p | ||
22596 | /@infodir@/p | ||
22597 | /@localedir@/p | ||
22598 | /@mandir@/p' | ||
22599 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | ||
22600 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
22601 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
22602 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
22603 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
22604 | _ACEOF | ||
22605 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
22606 | ac_datarootdir_hack=' | ||
22607 | s&@datadir@&$datadir&g | ||
22608 | s&@docdir@&$docdir&g | ||
22609 | s&@infodir@&$infodir&g | ||
22610 | s&@localedir@&$localedir&g | ||
22611 | s&@mandir@&$mandir&g | ||
22612 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
22613 | esac | ||
22614 | _ACEOF | ||
22615 | |||
22616 | # Neutralize VPATH when `$srcdir' = `.'. | ||
22617 | # Shell code in configure.ac might set extrasub. | ||
22618 | # FIXME: do we really want to maintain this feature? | ||
22619 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
22620 | ac_sed_extra="$ac_vpsub | ||
22621 | $extrasub | ||
22622 | _ACEOF | ||
22623 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
22624 | :t | ||
22625 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
22626 | s|@configure_input@|$ac_sed_conf_input|;t t | ||
22627 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
22628 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | ||
22629 | s&@srcdir@&$ac_srcdir&;t t | ||
22630 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
22631 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
22632 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
22633 | s&@builddir@&$ac_builddir&;t t | ||
22634 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
22635 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
22636 | s&@INSTALL@&$ac_INSTALL&;t t | ||
22637 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | ||
22638 | $ac_datarootdir_hack | ||
22639 | " | ||
22640 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | ||
22641 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
22642 | |||
22643 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
22644 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | ||
22645 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | ||
22646 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
22647 | which seems to be undefined. Please make sure it is defined" >&5 | ||
22648 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
22649 | which seems to be undefined. Please make sure it is defined" >&2;} | ||
22650 | |||
22651 | rm -f "$tmp/stdin" | ||
22652 | case $ac_file in | ||
22653 | -) cat "$tmp/out" && rm -f "$tmp/out";; | ||
22654 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | ||
22655 | esac \ | ||
22656 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
22657 | ;; | ||
22658 | :H) | ||
22659 | # | ||
22660 | # CONFIG_HEADER | ||
22661 | # | ||
22662 | if test x"$ac_file" != x-; then | ||
22663 | { | ||
22664 | $as_echo "/* $configure_input */" \ | ||
22665 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | ||
22666 | } >"$tmp/config.h" \ | ||
22667 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
22668 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | ||
22669 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | ||
22670 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | ||
22671 | else | ||
22672 | rm -f "$ac_file" | ||
22673 | mv "$tmp/config.h" "$ac_file" \ | ||
22674 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
22675 | fi | ||
22676 | else | ||
22677 | $as_echo "/* $configure_input */" \ | ||
22678 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | ||
22679 | || as_fn_error $? "could not create -" "$LINENO" 5 | ||
22680 | fi | ||
22681 | # Compute "$ac_file"'s index in $config_headers. | ||
22682 | _am_arg="$ac_file" | ||
22683 | _am_stamp_count=1 | ||
22684 | for _am_header in $config_headers :; do | ||
22685 | case $_am_header in | ||
22686 | $_am_arg | $_am_arg:* ) | ||
22687 | break ;; | ||
22688 | * ) | ||
22689 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | ||
22690 | esac | ||
22691 | done | ||
22692 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | ||
22693 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
22694 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | ||
22695 | X"$_am_arg" : 'X\(//\)$' \| \ | ||
22696 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | ||
22697 | $as_echo X"$_am_arg" | | ||
22698 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
22699 | s//\1/ | ||
22700 | q | ||
22701 | } | ||
22702 | /^X\(\/\/\)[^/].*/{ | ||
22703 | s//\1/ | ||
22704 | q | ||
22705 | } | ||
22706 | /^X\(\/\/\)$/{ | ||
22707 | s//\1/ | ||
22708 | q | ||
22709 | } | ||
22710 | /^X\(\/\).*/{ | ||
22711 | s//\1/ | ||
22712 | q | ||
22713 | } | ||
22714 | s/.*/./; q'`/stamp-h$_am_stamp_count | ||
22715 | ;; | ||
22716 | |||
22717 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | ||
22718 | $as_echo "$as_me: executing $ac_file commands" >&6;} | ||
22719 | ;; | ||
22720 | esac | ||
22721 | |||
22722 | |||
22723 | case $ac_file$ac_mode in | ||
22724 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | ||
22725 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | ||
22726 | # are listed without --file. Let's play safe and only enable the eval | ||
22727 | # if we detect the quoting. | ||
22728 | case $CONFIG_FILES in | ||
22729 | *\'*) eval set x "$CONFIG_FILES" ;; | ||
22730 | *) set x $CONFIG_FILES ;; | ||
22731 | esac | ||
22732 | shift | ||
22733 | for mf | ||
22734 | do | ||
22735 | # Strip MF so we end up with the name of the file. | ||
22736 | mf=`echo "$mf" | sed -e 's/:.*$//'` | ||
22737 | # Check whether this is an Automake generated Makefile or not. | ||
22738 | # We used to match only the files named `Makefile.in', but | ||
22739 | # some people rename them; so instead we look at the file content. | ||
22740 | # Grep'ing the first line is not enough: some people post-process | ||
22741 | # each Makefile.in and add a new line on top of each file to say so. | ||
22742 | # Grep'ing the whole file is not good either: AIX grep has a line | ||
22743 | # limit of 2048, but all sed's we know have understand at least 4000. | ||
22744 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | ||
22745 | dirpart=`$as_dirname -- "$mf" || | ||
22746 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
22747 | X"$mf" : 'X\(//\)[^/]' \| \ | ||
22748 | X"$mf" : 'X\(//\)$' \| \ | ||
22749 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | ||
22750 | $as_echo X"$mf" | | ||
22751 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
22752 | s//\1/ | ||
22753 | q | ||
22754 | } | ||
22755 | /^X\(\/\/\)[^/].*/{ | ||
22756 | s//\1/ | ||
22757 | q | ||
22758 | } | ||
22759 | /^X\(\/\/\)$/{ | ||
22760 | s//\1/ | ||
22761 | q | ||
22762 | } | ||
22763 | /^X\(\/\).*/{ | ||
22764 | s//\1/ | ||
22765 | q | ||
22766 | } | ||
22767 | s/.*/./; q'` | ||
22768 | else | ||
22769 | continue | ||
22770 | fi | ||
22771 | # Extract the definition of DEPDIR, am__include, and am__quote | ||
22772 | # from the Makefile without running `make'. | ||
22773 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | ||
22774 | test -z "$DEPDIR" && continue | ||
22775 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | ||
22776 | test -z "am__include" && continue | ||
22777 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | ||
22778 | # When using ansi2knr, U may be empty or an underscore; expand it | ||
22779 | U=`sed -n 's/^U = //p' < "$mf"` | ||
22780 | # Find all dependency output files, they are included files with | ||
22781 | # $(DEPDIR) in their names. We invoke sed twice because it is the | ||
22782 | # simplest approach to changing $(DEPDIR) to its actual value in the | ||
22783 | # expansion. | ||
22784 | for file in `sed -n " | ||
22785 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | ||
22786 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | ||
22787 | # Make sure the directory exists. | ||
22788 | test -f "$dirpart/$file" && continue | ||
22789 | fdir=`$as_dirname -- "$file" || | ||
22790 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
22791 | X"$file" : 'X\(//\)[^/]' \| \ | ||
22792 | X"$file" : 'X\(//\)$' \| \ | ||
22793 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | ||
22794 | $as_echo X"$file" | | ||
22795 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
22796 | s//\1/ | ||
22797 | q | ||
22798 | } | ||
22799 | /^X\(\/\/\)[^/].*/{ | ||
22800 | s//\1/ | ||
22801 | q | ||
22802 | } | ||
22803 | /^X\(\/\/\)$/{ | ||
22804 | s//\1/ | ||
22805 | q | ||
22806 | } | ||
22807 | /^X\(\/\).*/{ | ||
22808 | s//\1/ | ||
22809 | q | ||
22810 | } | ||
22811 | s/.*/./; q'` | ||
22812 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | ||
22813 | # echo "creating $dirpart/$file" | ||
22814 | echo '# dummy' > "$dirpart/$file" | ||
22815 | done | ||
22816 | done | ||
22817 | } | ||
22818 | ;; | ||
22819 | "libtool":C) | ||
22820 | |||
22821 | # See if we are running on zsh, and set the options which allow our | ||
22822 | # commands through without removal of \ escapes. | ||
22823 | if test -n "${ZSH_VERSION+set}" ; then | ||
22824 | setopt NO_GLOB_SUBST | ||
22825 | fi | ||
22826 | |||
22827 | cfgfile="${ofile}T" | ||
22828 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | ||
22829 | $RM "$cfgfile" | ||
22830 | |||
22831 | cat <<_LT_EOF >> "$cfgfile" | ||
22832 | #! $SHELL | ||
22833 | |||
22834 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | ||
22835 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | ||
22836 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
22837 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
22838 | # | ||
22839 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
22840 | # 2006, 2007, 2008 Free Software Foundation, Inc. | ||
22841 | # Written by Gordon Matzigkeit, 1996 | ||
22842 | # | ||
22843 | # This file is part of GNU Libtool. | ||
22844 | # | ||
22845 | # GNU Libtool is free software; you can redistribute it and/or | ||
22846 | # modify it under the terms of the GNU General Public License as | ||
22847 | # published by the Free Software Foundation; either version 2 of | ||
22848 | # the License, or (at your option) any later version. | ||
22849 | # | ||
22850 | # As a special exception to the GNU General Public License, | ||
22851 | # if you distribute this file as part of a program or library that | ||
22852 | # is built using GNU Libtool, you may include this file under the | ||
22853 | # same distribution terms that you use for the rest of that program. | ||
22854 | # | ||
22855 | # GNU Libtool is distributed in the hope that it will be useful, | ||
22856 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
22857 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
22858 | # GNU General Public License for more details. | ||
22859 | # | ||
22860 | # You should have received a copy of the GNU General Public License | ||
22861 | # along with GNU Libtool; see the file COPYING. If not, a copy | ||
22862 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | ||
22863 | # obtained by writing to the Free Software Foundation, Inc., | ||
22864 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
22865 | |||
22866 | |||
22867 | # The names of the tagged configurations supported by this script. | ||
22868 | available_tags="CXX " | ||
22869 | |||
22870 | # ### BEGIN LIBTOOL CONFIG | ||
22871 | |||
22872 | # Assembler program. | ||
22873 | AS=$AS | ||
22874 | |||
22875 | # DLL creation program. | ||
22876 | DLLTOOL=$DLLTOOL | ||
22877 | |||
22878 | # Object dumper program. | ||
22879 | OBJDUMP=$OBJDUMP | ||
22880 | |||
22881 | # Which release of libtool.m4 was used? | ||
22882 | macro_version=$macro_version | ||
22883 | macro_revision=$macro_revision | ||
22884 | |||
22885 | # Whether or not to build shared libraries. | ||
22886 | build_libtool_libs=$enable_shared | ||
22887 | |||
22888 | # Whether or not to build static libraries. | ||
22889 | build_old_libs=$enable_static | ||
22890 | |||
22891 | # What type of objects to build. | ||
22892 | pic_mode=$pic_mode | ||
22893 | |||
22894 | # Whether or not to optimize for fast installation. | ||
22895 | fast_install=$enable_fast_install | ||
22896 | |||
22897 | # The host system. | ||
22898 | host_alias=$host_alias | ||
22899 | host=$host | ||
22900 | host_os=$host_os | ||
22901 | |||
22902 | # The build system. | ||
22903 | build_alias=$build_alias | ||
22904 | build=$build | ||
22905 | build_os=$build_os | ||
22906 | |||
22907 | # A sed program that does not truncate output. | ||
22908 | SED=$lt_SED | ||
22909 | |||
22910 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | ||
22911 | Xsed="\$SED -e 1s/^X//" | ||
22912 | |||
22913 | # A grep program that handles long lines. | ||
22914 | GREP=$lt_GREP | ||
22915 | |||
22916 | # An ERE matcher. | ||
22917 | EGREP=$lt_EGREP | ||
22918 | |||
22919 | # A literal string matcher. | ||
22920 | FGREP=$lt_FGREP | ||
22921 | |||
22922 | # A BSD- or MS-compatible name lister. | ||
22923 | NM=$lt_NM | ||
22924 | |||
22925 | # Whether we need soft or hard links. | ||
22926 | LN_S=$lt_LN_S | ||
22927 | |||
22928 | # What is the maximum length of a command? | ||
22929 | max_cmd_len=$max_cmd_len | ||
22930 | |||
22931 | # Object file suffix (normally "o"). | ||
22932 | objext=$ac_objext | ||
22933 | |||
22934 | # Executable file suffix (normally ""). | ||
22935 | exeext=$exeext | ||
22936 | |||
22937 | # whether the shell understands "unset". | ||
22938 | lt_unset=$lt_unset | ||
22939 | |||
22940 | # turn spaces into newlines. | ||
22941 | SP2NL=$lt_lt_SP2NL | ||
22942 | |||
22943 | # turn newlines into spaces. | ||
22944 | NL2SP=$lt_lt_NL2SP | ||
22945 | |||
22946 | # How to create reloadable object files. | ||
22947 | reload_flag=$lt_reload_flag | ||
22948 | reload_cmds=$lt_reload_cmds | ||
22949 | |||
22950 | # Method to check whether dependent libraries are shared objects. | ||
22951 | deplibs_check_method=$lt_deplibs_check_method | ||
22952 | |||
22953 | # Command to use when deplibs_check_method == "file_magic". | ||
22954 | file_magic_cmd=$lt_file_magic_cmd | ||
22955 | |||
22956 | # The archiver. | ||
22957 | AR=$lt_AR | ||
22958 | AR_FLAGS=$lt_AR_FLAGS | ||
22959 | |||
22960 | # A symbol stripping program. | ||
22961 | STRIP=$lt_STRIP | ||
22962 | |||
22963 | # Commands used to install an old-style archive. | ||
22964 | RANLIB=$lt_RANLIB | ||
22965 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
22966 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
22967 | |||
22968 | # A C compiler. | ||
22969 | LTCC=$lt_CC | ||
22970 | |||
22971 | # LTCC compiler flags. | ||
22972 | LTCFLAGS=$lt_CFLAGS | ||
22973 | |||
22974 | # Take the output of nm and produce a listing of raw symbols and C names. | ||
22975 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | ||
22976 | |||
22977 | # Transform the output of nm in a proper C declaration. | ||
22978 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | ||
22979 | |||
22980 | # Transform the output of nm in a C name address pair. | ||
22981 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
22982 | |||
22983 | # Transform the output of nm in a C name address pair when lib prefix is needed. | ||
22984 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | ||
22985 | |||
22986 | # The name of the directory that contains temporary libtool files. | ||
22987 | objdir=$objdir | ||
22988 | |||
22989 | # Shell to use when invoking shell scripts. | ||
22990 | SHELL=$lt_SHELL | ||
22991 | |||
22992 | # An echo program that does not interpret backslashes. | ||
22993 | ECHO=$lt_ECHO | ||
22994 | |||
22995 | # Used to examine libraries when file_magic_cmd begins with "file". | ||
22996 | MAGIC_CMD=$MAGIC_CMD | ||
22997 | |||
22998 | # Must we lock files when doing compilation? | ||
22999 | need_locks=$lt_need_locks | ||
23000 | |||
23001 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | ||
23002 | DSYMUTIL=$lt_DSYMUTIL | ||
23003 | |||
23004 | # Tool to change global to local symbols on Mac OS X. | ||
23005 | NMEDIT=$lt_NMEDIT | ||
23006 | |||
23007 | # Tool to manipulate fat objects and archives on Mac OS X. | ||
23008 | LIPO=$lt_LIPO | ||
23009 | |||
23010 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | ||
23011 | OTOOL=$lt_OTOOL | ||
23012 | |||
23013 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | ||
23014 | OTOOL64=$lt_OTOOL64 | ||
23015 | |||
23016 | # Old archive suffix (normally "a"). | ||
23017 | libext=$libext | ||
23018 | |||
23019 | # Shared library suffix (normally ".so"). | ||
23020 | shrext_cmds=$lt_shrext_cmds | ||
23021 | |||
23022 | # The commands to extract the exported symbol list from a shared archive. | ||
23023 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | ||
23024 | |||
23025 | # Variables whose values should be saved in libtool wrapper scripts and | ||
23026 | # restored at link time. | ||
23027 | variables_saved_for_relink=$lt_variables_saved_for_relink | ||
23028 | |||
23029 | # Do we need the "lib" prefix for modules? | ||
23030 | need_lib_prefix=$need_lib_prefix | ||
23031 | |||
23032 | # Do we need a version for libraries? | ||
23033 | need_version=$need_version | ||
23034 | |||
23035 | # Library versioning type. | ||
23036 | version_type=$version_type | ||
23037 | |||
23038 | # Shared library runtime path variable. | ||
23039 | runpath_var=$runpath_var | ||
23040 | |||
23041 | # Shared library path variable. | ||
23042 | shlibpath_var=$shlibpath_var | ||
23043 | |||
23044 | # Is shlibpath searched before the hard-coded library search path? | ||
23045 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | ||
23046 | |||
23047 | # Format of library name prefix. | ||
23048 | libname_spec=$lt_libname_spec | ||
23049 | |||
23050 | # List of archive names. First name is the real one, the rest are links. | ||
23051 | # The last name is the one that the linker finds with -lNAME | ||
23052 | library_names_spec=$lt_library_names_spec | ||
23053 | |||
23054 | # The coded name of the library, if different from the real name. | ||
23055 | soname_spec=$lt_soname_spec | ||
23056 | |||
23057 | # Command to use after installation of a shared archive. | ||
23058 | postinstall_cmds=$lt_postinstall_cmds | ||
23059 | |||
23060 | # Command to use after uninstallation of a shared archive. | ||
23061 | postuninstall_cmds=$lt_postuninstall_cmds | ||
23062 | |||
23063 | # Commands used to finish a libtool library installation in a directory. | ||
23064 | finish_cmds=$lt_finish_cmds | ||
23065 | |||
23066 | # As "finish_cmds", except a single script fragment to be evaled but | ||
23067 | # not shown. | ||
23068 | finish_eval=$lt_finish_eval | ||
23069 | |||
23070 | # Whether we should hardcode library paths into libraries. | ||
23071 | hardcode_into_libs=$hardcode_into_libs | ||
23072 | |||
23073 | # Compile-time system search path for libraries. | ||
23074 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | ||
23075 | |||
23076 | # Run-time system search path for libraries. | ||
23077 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | ||
23078 | |||
23079 | # Whether dlopen is supported. | ||
23080 | dlopen_support=$enable_dlopen | ||
23081 | |||
23082 | # Whether dlopen of programs is supported. | ||
23083 | dlopen_self=$enable_dlopen_self | ||
23084 | |||
23085 | # Whether dlopen of statically linked programs is supported. | ||
23086 | dlopen_self_static=$enable_dlopen_self_static | ||
23087 | |||
23088 | # Commands to strip libraries. | ||
23089 | old_striplib=$lt_old_striplib | ||
23090 | striplib=$lt_striplib | ||
23091 | |||
23092 | |||
23093 | # The linker used to build libraries. | ||
23094 | LD=$lt_LD | ||
23095 | |||
23096 | # Commands used to build an old-style archive. | ||
23097 | old_archive_cmds=$lt_old_archive_cmds | ||
23098 | |||
23099 | # A language specific compiler. | ||
23100 | CC=$lt_compiler | ||
23101 | |||
23102 | # Is the compiler the GNU compiler? | ||
23103 | with_gcc=$GCC | ||
23104 | |||
23105 | # Compiler flag to turn off builtin functions. | ||
23106 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | ||
23107 | |||
23108 | # How to pass a linker flag through the compiler. | ||
23109 | wl=$lt_lt_prog_compiler_wl | ||
23110 | |||
23111 | # Additional compiler flags for building library objects. | ||
23112 | pic_flag=$lt_lt_prog_compiler_pic | ||
23113 | |||
23114 | # Compiler flag to prevent dynamic linking. | ||
23115 | link_static_flag=$lt_lt_prog_compiler_static | ||
23116 | |||
23117 | # Does compiler simultaneously support -c and -o options? | ||
23118 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | ||
23119 | |||
23120 | # Whether or not to add -lc for building shared libraries. | ||
23121 | build_libtool_need_lc=$archive_cmds_need_lc | ||
23122 | |||
23123 | # Whether or not to disallow shared libs when runtime libs are static. | ||
23124 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | ||
23125 | |||
23126 | # Compiler flag to allow reflexive dlopens. | ||
23127 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | ||
23128 | |||
23129 | # Compiler flag to generate shared objects directly from archives. | ||
23130 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | ||
23131 | |||
23132 | # Whether the compiler copes with passing no objects directly. | ||
23133 | compiler_needs_object=$lt_compiler_needs_object | ||
23134 | |||
23135 | # Create an old-style archive from a shared archive. | ||
23136 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | ||
23137 | |||
23138 | # Create a temporary old-style archive to link instead of a shared archive. | ||
23139 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | ||
23140 | |||
23141 | # Commands used to build a shared archive. | ||
23142 | archive_cmds=$lt_archive_cmds | ||
23143 | archive_expsym_cmds=$lt_archive_expsym_cmds | ||
23144 | |||
23145 | # Commands used to build a loadable module if different from building | ||
23146 | # a shared archive. | ||
23147 | module_cmds=$lt_module_cmds | ||
23148 | module_expsym_cmds=$lt_module_expsym_cmds | ||
23149 | |||
23150 | # Whether we are building with GNU ld or not. | ||
23151 | with_gnu_ld=$lt_with_gnu_ld | ||
23152 | |||
23153 | # Flag that allows shared libraries with undefined symbols to be built. | ||
23154 | allow_undefined_flag=$lt_allow_undefined_flag | ||
23155 | |||
23156 | # Flag that enforces no undefined symbols. | ||
23157 | no_undefined_flag=$lt_no_undefined_flag | ||
23158 | |||
23159 | # Flag to hardcode \$libdir into a binary during linking. | ||
23160 | # This must work even if \$libdir does not exist | ||
23161 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | ||
23162 | |||
23163 | # If ld is used when linking, flag to hardcode \$libdir into a binary | ||
23164 | # during linking. This must work even if \$libdir does not exist. | ||
23165 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | ||
23166 | |||
23167 | # Whether we need a single "-rpath" flag with a separated argument. | ||
23168 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | ||
23169 | |||
23170 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
23171 | # DIR into the resulting binary. | ||
23172 | hardcode_direct=$hardcode_direct | ||
23173 | |||
23174 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
23175 | # DIR into the resulting binary and the resulting library dependency is | ||
23176 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | ||
23177 | # library is relocated. | ||
23178 | hardcode_direct_absolute=$hardcode_direct_absolute | ||
23179 | |||
23180 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | ||
23181 | # into the resulting binary. | ||
23182 | hardcode_minus_L=$hardcode_minus_L | ||
23183 | |||
23184 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | ||
23185 | # into the resulting binary. | ||
23186 | hardcode_shlibpath_var=$hardcode_shlibpath_var | ||
23187 | |||
23188 | # Set to "yes" if building a shared library automatically hardcodes DIR | ||
23189 | # into the library and all subsequent libraries and executables linked | ||
23190 | # against it. | ||
23191 | hardcode_automatic=$hardcode_automatic | ||
23192 | |||
23193 | # Set to yes if linker adds runtime paths of dependent libraries | ||
23194 | # to runtime path list. | ||
23195 | inherit_rpath=$inherit_rpath | ||
23196 | |||
23197 | # Whether libtool must link a program against all its dependency libraries. | ||
23198 | link_all_deplibs=$link_all_deplibs | ||
23199 | |||
23200 | # Fix the shell variable \$srcfile for the compiler. | ||
23201 | fix_srcfile_path=$lt_fix_srcfile_path | ||
23202 | |||
23203 | # Set to "yes" if exported symbols are required. | ||
23204 | always_export_symbols=$always_export_symbols | ||
23205 | |||
23206 | # The commands to list exported symbols. | ||
23207 | export_symbols_cmds=$lt_export_symbols_cmds | ||
23208 | |||
23209 | # Symbols that should not be listed in the preloaded symbols. | ||
23210 | exclude_expsyms=$lt_exclude_expsyms | ||
23211 | |||
23212 | # Symbols that must always be exported. | ||
23213 | include_expsyms=$lt_include_expsyms | ||
23214 | |||
23215 | # Commands necessary for linking programs (against libraries) with templates. | ||
23216 | prelink_cmds=$lt_prelink_cmds | ||
23217 | |||
23218 | # Specify filename containing input files. | ||
23219 | file_list_spec=$lt_file_list_spec | ||
23220 | |||
23221 | # How to hardcode a shared library path into an executable. | ||
23222 | hardcode_action=$hardcode_action | ||
23223 | |||
23224 | # The directories searched by this compiler when creating a shared library. | ||
23225 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | ||
23226 | |||
23227 | # Dependencies to place before and after the objects being linked to | ||
23228 | # create a shared library. | ||
23229 | predep_objects=$lt_predep_objects | ||
23230 | postdep_objects=$lt_postdep_objects | ||
23231 | predeps=$lt_predeps | ||
23232 | postdeps=$lt_postdeps | ||
23233 | |||
23234 | # The library search path used internally by the compiler when linking | ||
23235 | # a shared library. | ||
23236 | compiler_lib_search_path=$lt_compiler_lib_search_path | ||
23237 | |||
23238 | # ### END LIBTOOL CONFIG | ||
23239 | |||
23240 | _LT_EOF | ||
23241 | |||
23242 | case $host_os in | ||
23243 | aix3*) | ||
23244 | cat <<\_LT_EOF >> "$cfgfile" | ||
23245 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
23246 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
23247 | # vanish in a puff of smoke. | ||
23248 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
23249 | COLLECT_NAMES= | ||
23250 | export COLLECT_NAMES | ||
23251 | fi | ||
23252 | _LT_EOF | ||
23253 | ;; | ||
23254 | esac | ||
23255 | |||
23256 | |||
23257 | ltmain="$ac_aux_dir/ltmain.sh" | ||
23258 | |||
23259 | |||
23260 | # We use sed instead of cat because bash on DJGPP gets confused if | ||
23261 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
23262 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
23263 | # is reportedly fixed, but why not run on old versions too? | ||
23264 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | ||
23265 | || (rm -f "$cfgfile"; exit 1) | ||
23266 | |||
23267 | case $xsi_shell in | ||
23268 | yes) | ||
23269 | cat << \_LT_EOF >> "$cfgfile" | ||
23270 | |||
23271 | # func_dirname file append nondir_replacement | ||
23272 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
23273 | # otherwise set result to NONDIR_REPLACEMENT. | ||
23274 | func_dirname () | ||
23275 | { | ||
23276 | case ${1} in | ||
23277 | */*) func_dirname_result="${1%/*}${2}" ;; | ||
23278 | * ) func_dirname_result="${3}" ;; | ||
23279 | esac | ||
23280 | } | ||
23281 | |||
23282 | # func_basename file | ||
23283 | func_basename () | ||
23284 | { | ||
23285 | func_basename_result="${1##*/}" | ||
23286 | } | ||
23287 | |||
23288 | # func_dirname_and_basename file append nondir_replacement | ||
23289 | # perform func_basename and func_dirname in a single function | ||
23290 | # call: | ||
23291 | # dirname: Compute the dirname of FILE. If nonempty, | ||
23292 | # add APPEND to the result, otherwise set result | ||
23293 | # to NONDIR_REPLACEMENT. | ||
23294 | # value returned in "$func_dirname_result" | ||
23295 | # basename: Compute filename of FILE. | ||
23296 | # value retuned in "$func_basename_result" | ||
23297 | # Implementation must be kept synchronized with func_dirname | ||
23298 | # and func_basename. For efficiency, we do not delegate to | ||
23299 | # those functions but instead duplicate the functionality here. | ||
23300 | func_dirname_and_basename () | ||
23301 | { | ||
23302 | case ${1} in | ||
23303 | */*) func_dirname_result="${1%/*}${2}" ;; | ||
23304 | * ) func_dirname_result="${3}" ;; | ||
23305 | esac | ||
23306 | func_basename_result="${1##*/}" | ||
23307 | } | ||
23308 | |||
23309 | # func_stripname prefix suffix name | ||
23310 | # strip PREFIX and SUFFIX off of NAME. | ||
23311 | # PREFIX and SUFFIX must not contain globbing or regex special | ||
23312 | # characters, hashes, percent signs, but SUFFIX may contain a leading | ||
23313 | # dot (in which case that matches only a dot). | ||
23314 | func_stripname () | ||
23315 | { | ||
23316 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | ||
23317 | # positional parameters, so assign one to ordinary parameter first. | ||
23318 | func_stripname_result=${3} | ||
23319 | func_stripname_result=${func_stripname_result#"${1}"} | ||
23320 | func_stripname_result=${func_stripname_result%"${2}"} | ||
23321 | } | ||
23322 | |||
23323 | # func_opt_split | ||
23324 | func_opt_split () | ||
23325 | { | ||
23326 | func_opt_split_opt=${1%%=*} | ||
23327 | func_opt_split_arg=${1#*=} | ||
23328 | } | ||
23329 | |||
23330 | # func_lo2o object | ||
23331 | func_lo2o () | ||
23332 | { | ||
23333 | case ${1} in | ||
23334 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | ||
23335 | *) func_lo2o_result=${1} ;; | ||
23336 | esac | ||
23337 | } | ||
23338 | |||
23339 | # func_xform libobj-or-source | ||
23340 | func_xform () | ||
23341 | { | ||
23342 | func_xform_result=${1%.*}.lo | ||
23343 | } | ||
23344 | |||
23345 | # func_arith arithmetic-term... | ||
23346 | func_arith () | ||
23347 | { | ||
23348 | func_arith_result=$(( $* )) | ||
23349 | } | ||
23350 | |||
23351 | # func_len string | ||
23352 | # STRING may not start with a hyphen. | ||
23353 | func_len () | ||
23354 | { | ||
23355 | func_len_result=${#1} | ||
23356 | } | ||
23357 | |||
23358 | _LT_EOF | ||
23359 | ;; | ||
23360 | *) # Bourne compatible functions. | ||
23361 | cat << \_LT_EOF >> "$cfgfile" | ||
23362 | |||
23363 | # func_dirname file append nondir_replacement | ||
23364 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
23365 | # otherwise set result to NONDIR_REPLACEMENT. | ||
23366 | func_dirname () | ||
23367 | { | ||
23368 | # Extract subdirectory from the argument. | ||
23369 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | ||
23370 | if test "X$func_dirname_result" = "X${1}"; then | ||
23371 | func_dirname_result="${3}" | ||
23372 | else | ||
23373 | func_dirname_result="$func_dirname_result${2}" | ||
23374 | fi | ||
23375 | } | ||
23376 | |||
23377 | # func_basename file | ||
23378 | func_basename () | ||
23379 | { | ||
23380 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | ||
23381 | } | ||
23382 | |||
23383 | |||
23384 | # func_stripname prefix suffix name | ||
23385 | # strip PREFIX and SUFFIX off of NAME. | ||
23386 | # PREFIX and SUFFIX must not contain globbing or regex special | ||
23387 | # characters, hashes, percent signs, but SUFFIX may contain a leading | ||
23388 | # dot (in which case that matches only a dot). | ||
23389 | # func_strip_suffix prefix name | ||
23390 | func_stripname () | ||
23391 | { | ||
23392 | case ${2} in | ||
23393 | .*) func_stripname_result=`$ECHO "X${3}" \ | ||
23394 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | ||
23395 | *) func_stripname_result=`$ECHO "X${3}" \ | ||
23396 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | ||
23397 | esac | ||
23398 | } | ||
23399 | |||
23400 | # sed scripts: | ||
23401 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | ||
23402 | my_sed_long_arg='1s/^-[^=]*=//' | ||
23403 | |||
23404 | # func_opt_split | ||
23405 | func_opt_split () | ||
23406 | { | ||
23407 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | ||
23408 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | ||
23409 | } | ||
23410 | |||
23411 | # func_lo2o object | ||
23412 | func_lo2o () | ||
23413 | { | ||
23414 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | ||
23415 | } | ||
23416 | |||
23417 | # func_xform libobj-or-source | ||
23418 | func_xform () | ||
23419 | { | ||
23420 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | ||
23421 | } | ||
23422 | |||
23423 | # func_arith arithmetic-term... | ||
23424 | func_arith () | ||
23425 | { | ||
23426 | func_arith_result=`expr "$@"` | ||
23427 | } | ||
23428 | |||
23429 | # func_len string | ||
23430 | # STRING may not start with a hyphen. | ||
23431 | func_len () | ||
23432 | { | ||
23433 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | ||
23434 | } | ||
23435 | |||
23436 | _LT_EOF | ||
23437 | esac | ||
23438 | |||
23439 | case $lt_shell_append in | ||
23440 | yes) | ||
23441 | cat << \_LT_EOF >> "$cfgfile" | ||
23442 | |||
23443 | # func_append var value | ||
23444 | # Append VALUE to the end of shell variable VAR. | ||
23445 | func_append () | ||
23446 | { | ||
23447 | eval "$1+=\$2" | ||
23448 | } | ||
23449 | _LT_EOF | ||
23450 | ;; | ||
23451 | *) | ||
23452 | cat << \_LT_EOF >> "$cfgfile" | ||
23453 | |||
23454 | # func_append var value | ||
23455 | # Append VALUE to the end of shell variable VAR. | ||
23456 | func_append () | ||
23457 | { | ||
23458 | eval "$1=\$$1\$2" | ||
23459 | } | ||
23460 | |||
23461 | _LT_EOF | ||
23462 | ;; | ||
23463 | esac | ||
23464 | |||
23465 | |||
23466 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | ||
23467 | || (rm -f "$cfgfile"; exit 1) | ||
23468 | |||
23469 | mv -f "$cfgfile" "$ofile" || | ||
23470 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
23471 | chmod +x "$ofile" | ||
23472 | |||
23473 | |||
23474 | cat <<_LT_EOF >> "$ofile" | ||
23475 | |||
23476 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | ||
23477 | |||
23478 | # The linker used to build libraries. | ||
23479 | LD=$lt_LD_CXX | ||
23480 | |||
23481 | # Commands used to build an old-style archive. | ||
23482 | old_archive_cmds=$lt_old_archive_cmds_CXX | ||
23483 | |||
23484 | # A language specific compiler. | ||
23485 | CC=$lt_compiler_CXX | ||
23486 | |||
23487 | # Is the compiler the GNU compiler? | ||
23488 | with_gcc=$GCC_CXX | ||
23489 | |||
23490 | # Compiler flag to turn off builtin functions. | ||
23491 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | ||
23492 | |||
23493 | # How to pass a linker flag through the compiler. | ||
23494 | wl=$lt_lt_prog_compiler_wl_CXX | ||
23495 | |||
23496 | # Additional compiler flags for building library objects. | ||
23497 | pic_flag=$lt_lt_prog_compiler_pic_CXX | ||
23498 | |||
23499 | # Compiler flag to prevent dynamic linking. | ||
23500 | link_static_flag=$lt_lt_prog_compiler_static_CXX | ||
23501 | |||
23502 | # Does compiler simultaneously support -c and -o options? | ||
23503 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | ||
23504 | |||
23505 | # Whether or not to add -lc for building shared libraries. | ||
23506 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | ||
23507 | |||
23508 | # Whether or not to disallow shared libs when runtime libs are static. | ||
23509 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | ||
23510 | |||
23511 | # Compiler flag to allow reflexive dlopens. | ||
23512 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | ||
23513 | |||
23514 | # Compiler flag to generate shared objects directly from archives. | ||
23515 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | ||
23516 | |||
23517 | # Whether the compiler copes with passing no objects directly. | ||
23518 | compiler_needs_object=$lt_compiler_needs_object_CXX | ||
23519 | |||
23520 | # Create an old-style archive from a shared archive. | ||
23521 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | ||
23522 | |||
23523 | # Create a temporary old-style archive to link instead of a shared archive. | ||
23524 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | ||
23525 | |||
23526 | # Commands used to build a shared archive. | ||
23527 | archive_cmds=$lt_archive_cmds_CXX | ||
23528 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | ||
23529 | |||
23530 | # Commands used to build a loadable module if different from building | ||
23531 | # a shared archive. | ||
23532 | module_cmds=$lt_module_cmds_CXX | ||
23533 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | ||
23534 | |||
23535 | # Whether we are building with GNU ld or not. | ||
23536 | with_gnu_ld=$lt_with_gnu_ld_CXX | ||
23537 | |||
23538 | # Flag that allows shared libraries with undefined symbols to be built. | ||
23539 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | ||
23540 | |||
23541 | # Flag that enforces no undefined symbols. | ||
23542 | no_undefined_flag=$lt_no_undefined_flag_CXX | ||
23543 | |||
23544 | # Flag to hardcode \$libdir into a binary during linking. | ||
23545 | # This must work even if \$libdir does not exist | ||
23546 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | ||
23547 | |||
23548 | # If ld is used when linking, flag to hardcode \$libdir into a binary | ||
23549 | # during linking. This must work even if \$libdir does not exist. | ||
23550 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | ||
23551 | |||
23552 | # Whether we need a single "-rpath" flag with a separated argument. | ||
23553 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | ||
23554 | |||
23555 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
23556 | # DIR into the resulting binary. | ||
23557 | hardcode_direct=$hardcode_direct_CXX | ||
23558 | |||
23559 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
23560 | # DIR into the resulting binary and the resulting library dependency is | ||
23561 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | ||
23562 | # library is relocated. | ||
23563 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | ||
23564 | |||
23565 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | ||
23566 | # into the resulting binary. | ||
23567 | hardcode_minus_L=$hardcode_minus_L_CXX | ||
23568 | |||
23569 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | ||
23570 | # into the resulting binary. | ||
23571 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | ||
23572 | |||
23573 | # Set to "yes" if building a shared library automatically hardcodes DIR | ||
23574 | # into the library and all subsequent libraries and executables linked | ||
23575 | # against it. | ||
23576 | hardcode_automatic=$hardcode_automatic_CXX | ||
23577 | |||
23578 | # Set to yes if linker adds runtime paths of dependent libraries | ||
23579 | # to runtime path list. | ||
23580 | inherit_rpath=$inherit_rpath_CXX | ||
23581 | |||
23582 | # Whether libtool must link a program against all its dependency libraries. | ||
23583 | link_all_deplibs=$link_all_deplibs_CXX | ||
23584 | |||
23585 | # Fix the shell variable \$srcfile for the compiler. | ||
23586 | fix_srcfile_path=$lt_fix_srcfile_path_CXX | ||
23587 | |||
23588 | # Set to "yes" if exported symbols are required. | ||
23589 | always_export_symbols=$always_export_symbols_CXX | ||
23590 | |||
23591 | # The commands to list exported symbols. | ||
23592 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | ||
23593 | |||
23594 | # Symbols that should not be listed in the preloaded symbols. | ||
23595 | exclude_expsyms=$lt_exclude_expsyms_CXX | ||
23596 | |||
23597 | # Symbols that must always be exported. | ||
23598 | include_expsyms=$lt_include_expsyms_CXX | ||
23599 | |||
23600 | # Commands necessary for linking programs (against libraries) with templates. | ||
23601 | prelink_cmds=$lt_prelink_cmds_CXX | ||
23602 | |||
23603 | # Specify filename containing input files. | ||
23604 | file_list_spec=$lt_file_list_spec_CXX | ||
23605 | |||
23606 | # How to hardcode a shared library path into an executable. | ||
23607 | hardcode_action=$hardcode_action_CXX | ||
23608 | |||
23609 | # The directories searched by this compiler when creating a shared library. | ||
23610 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | ||
23611 | |||
23612 | # Dependencies to place before and after the objects being linked to | ||
23613 | # create a shared library. | ||
23614 | predep_objects=$lt_predep_objects_CXX | ||
23615 | postdep_objects=$lt_postdep_objects_CXX | ||
23616 | predeps=$lt_predeps_CXX | ||
23617 | postdeps=$lt_postdeps_CXX | ||
23618 | |||
23619 | # The library search path used internally by the compiler when linking | ||
23620 | # a shared library. | ||
23621 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | ||
23622 | |||
23623 | # ### END LIBTOOL TAG CONFIG: CXX | ||
23624 | _LT_EOF | ||
23625 | |||
23626 | ;; | ||
23627 | |||
23628 | esac | ||
23629 | done # for ac_tag | ||
23630 | |||
23631 | |||
23632 | as_fn_exit 0 | ||
23633 | _ACEOF | ||
23634 | ac_clean_files=$ac_clean_files_save | ||
23635 | |||
23636 | test $ac_write_fail = 0 || | ||
23637 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | ||
23638 | |||
23639 | |||
23640 | # configure is writing to config.log, and then calls config.status. | ||
23641 | # config.status does its own redirection, appending to config.log. | ||
23642 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
23643 | # by configure, so config.status won't be able to write to it; its | ||
23644 | # output is simply discarded. So we exec the FD to /dev/null, | ||
23645 | # effectively closing config.log, so it can be properly (re)opened and | ||
23646 | # appended to by config.status. When coming back to configure, we | ||
23647 | # need to make the FD available again. | ||
23648 | if test "$no_create" != yes; then | ||
23649 | ac_cs_success=: | ||
23650 | ac_config_status_args= | ||
23651 | test "$silent" = yes && | ||
23652 | ac_config_status_args="$ac_config_status_args --quiet" | ||
23653 | exec 5>/dev/null | ||
23654 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
23655 | exec 5>>config.log | ||
23656 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
23657 | # would make configure fail if this is the last instruction. | ||
23658 | $ac_cs_success || as_fn_exit 1 | ||
23659 | fi | ||
23660 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | ||
23661 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | ||
23662 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | ||
23663 | fi | ||
23664 | |||
23665 | |||
23666 | ##################################################################### | ||
23667 | ## Info | ||
23668 | |||
23669 | echo | ||
23670 | echo | ||
23671 | echo | ||
23672 | echo "------------------------------------------------------------------------" | ||
23673 | echo "$PACKAGE $VERSION" | ||
23674 | echo "------------------------------------------------------------------------" | ||
23675 | echo | ||
23676 | echo | ||
23677 | echo "Configuration Options Summary:" | ||
23678 | echo | ||
23679 | echo " Magic debug..........: ${have_magic_debug}" | ||
23680 | echo " Safety checks........: ${have_safety_checks}" | ||
23681 | echo " Maximum log level....: ${with_max_log_level}" | ||
23682 | echo " Report string usage..: ${have_stringshare_usage}" | ||
23683 | echo " Valgrind support.....: ${have_valgrind}" | ||
23684 | echo " Default mempool......: ${have_default_mempool}" | ||
23685 | echo " Log support..........: ${enable_log}" | ||
23686 | echo " Thread Support.......: ${have_threads}" | ||
23687 | if test "${have_threads}" = "POSIX" ; then | ||
23688 | echo " spinlock...........: ${have_posix_threads_spinlock}" | ||
23689 | echo " debug usage........: ${have_debug_threads}" | ||
23690 | echo " on/off support.....: ${have_on_off_threads}" | ||
23691 | fi | ||
23692 | echo " Amalgamation.........: ${do_amalgamation}" | ||
23693 | echo " Iconv support........: ${have_iconv}" | ||
23694 | echo " File dirfd...........: ${have_dirfd}" | ||
23695 | echo " File xattr...........: ${have_xattr}" | ||
23696 | echo | ||
23697 | echo " Documentation........: ${build_doc}" | ||
23698 | echo " Tests................: ${enable_tests}" | ||
23699 | echo " Coverage.............: ${enable_coverage}" | ||
23700 | echo " Examples.............: ${enable_build_examples}" | ||
23701 | echo " Tiler Example........: ${build_tiler_example}" | ||
23702 | echo " Examples installed...: ${enable_install_examples}" | ||
23703 | echo " Benchmark............: ${enable_benchmark}" | ||
23704 | if test "x${enable_benchmark}" = "xyes" ; then | ||
23705 | echo " Glib...............: ${enable_benchmark_glib}" | ||
23706 | echo " E17 real data......: ${enable_benchmark_e17}" | ||
23707 | fi | ||
23708 | echo | ||
23709 | echo " CPU Specific Extensions:" | ||
23710 | echo " MMX................: ${have_mmx}" | ||
23711 | echo " SSE................: ${have_sse}" | ||
23712 | echo " SSE2...............: ${have_sse2}" | ||
23713 | echo " ALTIVEC............: ${have_altivec}" | ||
23714 | echo | ||
23715 | echo " Memory pools:" | ||
23716 | echo " Buddy..............: ${enable_buddy}" | ||
23717 | echo " Chained pool.......: ${enable_chained_pool}" | ||
23718 | echo " Ememoa fixed.......: ${enable_ememoa_fixed}" | ||
23719 | echo " Ememoa unknown.....: ${enable_ememoa_unknown}" | ||
23720 | echo " Fixed bitmap.......: ${enable_fixed_bitmap}" | ||
23721 | echo " One big............: ${enable_one_big}" | ||
23722 | echo " Pass through.......: ${enable_pass_through}" | ||
23723 | echo | ||
23724 | echo "Compilation............: make (or gmake)" | ||
23725 | echo " CPPFLAGS.............: $CPPFLAGS" | ||
23726 | echo " CFLAGS...............: $CFLAGS" | ||
23727 | echo " LDFLAGS..............: $LDFLAGS" | ||
23728 | echo | ||
23729 | echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')" | ||
23730 | echo " prefix...............: $prefix" | ||
23731 | echo | ||
23732 | |||
23733 | # Check whether --enable-voltron was given. | ||
23734 | if test "${enable_voltron+set}" = set; then : | ||
23735 | enableval=$enable_voltron; | ||
23736 | if test "x${enableval}" = "xyes" ; then | ||
23737 | have_voltron="yes" | ||
23738 | else | ||
23739 | have_voltron="no" | ||
23740 | fi | ||
23741 | |||
23742 | else | ||
23743 | have_voltron="no" | ||
23744 | |||
23745 | fi | ||
23746 | |||
23747 | |||
23748 | if test "x$have_voltron" = "xyes" -a "x$do_amalgamation" = "xyes" -o "x${have_on_off_threads}" = "xyes"; then | ||
23749 | echo "//////////////////////////////////////////////////////////////////////////////////////////////////////////////////" | ||
23750 | echo "/////////////////////////////////////////////////////////////////////////////////////{#///////////////////////////" | ||
23751 | echo "/////////////////////////////////////////////////////////////////////////////////// EN3 xx&HWx////////////////////" | ||
23752 | echo "////////////////////////////////////////////////#{//xd3:& \/{:x////////////////////#WJNd_ HHNp#///////////////////" | ||
23753 | echo "///////////////////////////////////////////////\x WDMMM EDDzEQp&^x ^^_x #///////////&37z^xHHH7_///////////////////" | ||
23754 | echo "////////////////////////////////////////////////xPMMMMM LMMMLQQzzQDzH\{xx\{////////{x&H9@^&d^ {//////////////////" | ||
23755 | echo "///////////////////////////////////////////^JLE:PMMMQ9N^EDMMMMMMMLzJJ^ @&dx////////#dHdN^x{/{x {//////////////////" | ||
23756 | echo "//////////////////////////////////////////#LMMM EEE7p@H@NE777QMMMMMMM3H3_x/////////^HH3W^pH@x x///////////////////" | ||
23757 | echo "//////////////////////////////////////////#MMLN_^: {/:L&\{:@7EWWWzMMM3H3_x////{:x ^3dd3 HHNENd^{//////////////////" | ||
23758 | echo "//////////////////////////////////////////#WW7N^//////7Q:////{xHE93H3^^_ #////{H3H3JDdxx&H3Wz3:///////////////////" | ||
23759 | echo "//////////////////////////////////////////_E93 ///////{^#/#{{{{{{#x37dx77x////{Hp3pd _ xx_7H////////////////////" | ||
23760 | echo "#/////////////////////////////////////////#&MHd{////////#x^ ^&__ xxzMJH9P ////{xx\#\:x\:d@_://///////////////////" | ||
23761 | echo "3H #///////////////////////////////////////{pp^Jpx{///{ &&__^:{{:xxxx7MQNWpx///@x//{# xxx#///////////////////////#" | ||
23762 | echo "3HN7Hx{//////////////////////////////////////\xd NQd#x \# &x{/x3pHHH&#&PP&@zNxx##:{////////////////////////////{ ^" | ||
23763 | echo "HH{@37N_x{////////////////////////////////////x_//#zDxx x //# ^x#//#E9_P&p://////////////////////////////{\&:\\" | ||
23764 | echo "H@/JMJ799H_:{/////////////////////////////////{\/// L7_xx^#/\LMMMMM3MLN@Mp7 dW{\////////////////////////////{ #^H" | ||
23765 | echo "H^/PMMMD9773d^\{////////////////////////////////////dzWLp/{x7MMMMMEJMM7DMHD#^z&#//////////////////////////{x&\ dHH" | ||
23766 | echo "H^{MMMMMMLEN33Hd_://////////////////////////////////#WNMLzzPPLMMMLHMML^NNNQW93JdE_ //////////////////////#_ :@H3HH" | ||
23767 | echo "HdxWMMMMMMMMzWdHHpNH {/////////////////////////////{z99QEJDQJ7@EM3LMM37M9LHLMNL:^\{////////////////////{x_\_HHH&&x" | ||
23768 | echo "HH_^zMMMMMMMML7dHH39zN_\//////////////////////////{WQLHEENpDPDLHQMMPHMDEzNMLWJ///////////////////////#_x d3Hd^dHx" | ||
23769 | echo "/\@HH HLMMMMMMMM9 3HHHp9DJ&#////////////////////////xN_\LzPMMMLpPMMPdLMWLdMMNQ3/////////////////////{ ^x&dddd HHH " | ||
23770 | echo "//{ HH@ 9MMMMMMLxdHHHHH3HpEQN /////////////////////:PL\/QMMMLE3LMMp#JMJJ9JMM&M //////////////////{#\ _ ^^&:x##HHHx" | ||
23771 | echo "////:d3H_&PMMMMN&3HHHHHHHHHHWEJH\/////////////////{zMd//^EE {/xHEH&HMLHLHMMJpL#////////{#x _^^&WpHHHHH3HHNxHHxHHHx" | ||
23772 | echo "/////#_HHH^WMMP3L9HHHHHHHHHHHHHWE7_{//////////////7Mz{///:7EWNEzPL3LMWQWDMM_zN/{\x ^& zLMDpHp973HHHHHH3HH7x3H dHHx" | ||
23773 | echo "///////xHHH@_E&3D9N3H3HHHHHHHHHH3HW7dx///////////dMM ////#QJEEJJ9:Hp9dz^WdH_&d3p3HHHHdLQE3pNNHHHHHHHHH3HH9xHH &HHx" | ||
23774 | echo "////////#@3H3^ HHN3WpHHHHHHHHHHHHHHH33d #/////// MM7//{x@pppH__ME_MME@xH3Hzz3H33HHHH@7pHH33HHHHHHHHHHH3HH9xHH__HHx" | ||
23775 | echo "/////////{ HHHHHHHH333HHHHHHHHHHHHHHHHH33&x{///:Pz9HpWp@ :::{/pM^EMMML H3HELQ3H3HHHH_pHHHHHHHHHHHHHHHHHHp9\@d& HHx" | ||
23776 | echo "///////////:dHHHHHHHH33HHHHHHHHHHHHHHHHHHHHd^\\H33d_x::##{/{x_PDxMMMME&HHHHH99H3HHHd&HHHHHHHHHHHHHHHHHH9Wx&^ x HHx" | ||
23777 | echo "////////////{^HHHHHHHHHHHHHHHHHHHHHHHHHHH@&HN33@H77ppppppWW3&JMdHMMMMHHHHHHHHWHHHHH&3pWHHHHHHHHHH3HHHpz_ HHH3&xHHx" | ||
23778 | echo "//////////////xHHHHHHHHHHHHHHHHHHHH3H3@d3p3@x:\{/# HN73& xx DL\DMMML_HHHHHHHHpHHHpH7JHHHHHHH3p33d&_@d\ 3HHH3&:3Hx" | ||
23779 | echo "///////////////#&HHHHHHHHHHHHHHHHHHHH_H7^x\//#^ddH3^Nz@_&&&&_MN MMMMJ@H3HHHHH3p3H3pQQ3Hd@_^ xx ^@dH&\{x@HH3_\HHx" | ||
23780 | echo "////////////////{ HHHHHHHHHHHHHHH@ x{{z\/#^33d {Nz3:LPx&&&&^WMxNMMMM3HHH3N3Hp79zWH _ xx _@dHHHHHHHHHHH^#{xd_{#@Hx" | ||
23781 | echo "//////////////////\@HH3HHHHHH@^x#{: &&7_@ddH:7d@__&@Mp^&&&&xPz#LMMML&3HJMMzNH@^ ^&:@HHHHHHHHHHHHHHHHHHd&^{/////:Hx" | ||
23782 | echo "/////////////{{{/{/{^dHHHd^x#{\ &HHH W ^@&Q9 _^ _d3QL ^ xWMW#dJMMz@HJMEx\x^HHHHHdx&HHHHHHHd&^ xx\#{//////////#Hx" | ||
23783 | echo "/////////{x ^&:xEDW^ x#:## d^dH3HHHHxd_HHdMzHx# NMMM7x&dH_JLp7 {x\&@HHD@\:{#x ^HHHd&#x x\#{////////////////////{Hx" | ||
23784 | echo "//////{#x^^&&\ _D9^x\{{:^NQP3HHHHHH pxHHd9MMdxx EMMM _^@@PD3PMMLEQH@3W& &^ x##\##{/////////////////////////////{@x" | ||
23785 | echo "/////#:x^ @d:^^7N#{\ &HHWHH99HHHHHH:7 d&^LMM3^_dNpH_#^_3LEWMMMMMPddHpd:HHHH@ ^ x{#:////////////////////{x&////{x:" | ||
23786 | echo "////:x ^x W:^^HWx3dHHHH333H39HHHH3@&&xxx@J7@#:_@&&d : ELp9MMMMMz&H333#dHHH3H\///{:3x##{/{##{/{#\\\##### W_{////^x/" | ||
23787 | echo "//{ :x^ #E:^^&N\ELWHHH3dHHH3333HHH E\:xx__^_ d^EPML^dDPHDMMMMM7&H33N#&HHHHH /////{3//////////////////\3@{//////{//" | ||
23788 | echo "/{ xx{x{7_ ^^N^xJNzN3Hp@HHHH39HH3H J: ^ NEQ__^zMMM9dLJ3LMMMML3@HHH9\ H3HHH&{/////^ ////////////////\3d{///////////" | ||
23789 | echo "/x x///:9:^^p&x@3W3p3HHHpddd@H9HHH_Lx^ EMM7x&^MMMEEMWNMMMMMD@d3HH9 \HHHHHH //////7{//////////////#3H#/////////////" | ||
23790 | echo "\_:#///@ ^d3^xHH33N3@x ^&dH&@HHH M_^^MML&x_3QJWQLdzMMMMMJ_HH3HNd#@HHHHHHx/////:W/////////////{x #///////////////" | ||
23791 | echo "^&:///{p\^_W^x&HWH^x &_HHHHHHd HHH PNx9LQ7W_3N779d\WMMMMMW&HHH3WN{_HHHHHH3://///p ////////////////////////////////" | ||
23792 | echo "@dx////Ep3Np^\@_:^dHHHd^Hd_ :\xHH3&EP^3d@d3Hp7zLMQ_{ JMLd@HHHHpE:&HHHHHHHH\/////@{////////////////////////////////" | ||
23793 | echo "H@ :#//DLMM9_: :HHHHH@^x#/////#HHHd_NNNJPMMMMMMMMMMQ&{d_HHHHH3zx@HHHHHHHHH#&@@@@7@@dpdx{//////////////////////////" | ||
23794 | echo "dJx #//_E_d&&^::_d_x#//\///////&HHH_HPMMMMMMMMMMLJ7Wp@_HHHHHHz_ HHHHHHHHHHx7QzJE97^x{/////////////////////////////" | ||
23795 | echo "^z_ {/\{_9 ^{\#//////:///////xHHH3H&7MMMPJN3d__@HHHHHHH3HH73:HHHHHHHHHH ^ x#{@{///////////////////////////////" | ||
23796 | echo "^dD \{ x#^7^x\/////////x///////#HH33HHHd3d37pHH3HHHHHHHHHHHp7#dHHHHHHHH&_EMMMMMMMPz7d #///////////////////////////" | ||
23797 | echo "^^_73x ^ :xd^{/////////x////////_HHHHHH33NNWpp3HHHHHHHHHHHHE:^HHHHHH3H WMMMMMMMMDH7:\ JQ7d {//////////////////////" | ||
23798 | echo "^^@JzE^\x^ :\x{////////_///\_WJHxHHHHHHHHHHH3HHHHHHHHHHHHH9&xHHHHHHd 9MMMMMMMMLJ J//xQ\7LMMQpx///////////////////" | ||
23799 | echo " _3zLLLpx x{///////{_ zH9PP9H {{dHHHHHHHHHHHHHHHHHHHHHHHp9#dHHH3H@x^zMMMMMMMMMPJ d//93DMMMMMMMQH\////////////////" | ||
23800 | echo " x^NE9dxx x://///////#dNP_\/{^H79@pHHHHHHHHHHHHHHHHHHH3H3zx_HHHHHH_&DMMMMMMMMMMDE :/ 7QMMMMMMMMMMMJ&#/////////////" | ||
23801 | echo " @3pQMp^7N^x//////////// __7LMMMM JHHHHHHHHHHHHH3HHHHH3H9@ HHHHHHH&LMMMMMMMMMMMP7^#{EWMMMMMMMMMMMMMML7 {//////////" | ||
23802 | echo "^^^&HLWd7d {///////////#3LMMMMMMMHpJpHHHHHHHHHHH3JQJ7NDWE\HHHH3H@ QMMMMMMMMMMMMLp&##LMMMMMMMMMMMMMMMMMMPd{////////" | ||
23803 | echo "3WNNN7pH99Wd #/////////pHMMMMMMMMD N993HH3HHHHHHHH9LMMMLx@3HHHH_ JMMMMMMMMMMMMMMd@##MMMMMMMMMMMMMMMMMMMMMQ{///////" | ||
23804 | echo "MMMMM3ELMMMMLE@&@_x////EWMMMMMMMMM3JJpEN3HHHHHHHH7DDMMMH HHHHd ^NMMMMMMMMMMMMMMM_d{#MMMMMMMMMMMMMMMMMMMMM@////////" | ||
23805 | echo "MMMM7{DMMMMD3JMMMMDJ /#DzMMMMMMMMML^Qz7W9p3pWN7799zJE7d\x_HH@:_HMMMMMMMMMMMMMMMWx3{\MMMMMMMMMMMMMMMMMMMMD{////////" | ||
23806 | echo "MMML:HMMMM9@MMMLdHJEH{ PLMMMMMMMMMME&pNp^^_^ x ^^__ \#x{&&LMMMMMMMMMMMMMMMJ:p{\MMMMMMMMMMMMMMMMMMMM_/////////" | ||
23807 | echo "MMMW/7MMMM&LM3LdQz@JM33MMMMMMMMMMMMM&x _@dHHHHHHH@&_^ ^_ ^x:^LMMMMMMPQJ7Np333pW 3 xEDMMMMMMMMMMMMMMMMMJ//////////" | ||
23808 | echo "MML\/EMMMP3_xNpJMM3^&WzMPMMMMMMMMMMML3x^^^^_&dH3W7EzPPpx\x\\xd333H&_&@pEQPLMMQPM7E9LHd@@3ELMMMMMMMMMMMM //////////" | ||
23809 | echo "MM3//zMMMNW//QdMMM3 \#LQWMMMMMMMMDp@__&dd@@&__&&@dHpHd33 &x@33Hd@_^^^xMMMMMMM3pMx{HM x9/{\:@pNQMMMMMMMQ///////////" | ||
23810 | echo "MMH::PMMMW7{/P_MMM7^{xM7^MMMMMMD@@W&&dH3Hx_x:7DzJ97Np &H^&x_dHd@&&@d3WMMMMMMME&M WMMN/7{/WHzMLEWWNELMMW///////////" | ||
23811 | echo "_H_^^dNJzWH@/7HPMM@_/dD&@MMMLzp W@^7zE7pxHHN99EzQQ7_p9^H^_:&d&^ ^_&&MMMMMMMD M xMML#^x/{JMMMMMMMDW3Wx///////////" | ||
23812 | echo "Hz^x::xx{/{x^p3dMQx /7N H3@^_@#dW#:_d@@HHHHHH3NPN&NLMQ H & NN799997WWzMMMMMMMLxM^&LMM^{&/#LMMMMMMMMMMLN^#/////////" | ||
23813 | echo " x WpH@x\//////{@ { _^_@d^ ^__\dH MEH_d3HHHHHHN&3MMMMD H & H&&______ HMMMMMMMM P_3MMMN/&/#LMMMMMMMMMMMMML@////////" | ||
23814 | echo "\{xH7x::\////////\7MM9@_^_@HHd d_ MMM9@7HHd@NWHp^WMMMDx3 & 3dHW7EzDLMLLDQzJE9NxHxxp33_/x{/NMMMMMMMMMMMMMMP#///////" | ||
23815 | echo "# ^_ ^ ^x///////{9&MMJ^^^ ^_3xH_ MMM^73@_WQz93&@&@LLN_H __9WH&^ x:\#{\^&& {///{p//////////{x&WzLMMMMMMMMMH///////" | ||
23816 | echo "^^ 3^^^#///////H_LMME&@dHH@ _x3@xPMz&&_7MMMMLDJHx\ 3pd #{/////////{x@HH&\//////7{////{#////////{x&WzMMMMML#//////" | ||
23817 | echo ": :d^^^x/////// &PMMM&_dd@&^^ {^W7^p xxH@@&__37NNW7NH^:xxxx ^_&&@dHH&:////////p ////{^/////////////\&ELMM3//////" | ||
23818 | echo "{\:xxxx#//////{Hp77p@ x#////////#&& xx::\\:xxxx ^_&&&&&@@@&&&&_____x//////////##/////&////////////////{^NQ#/////" | ||
23819 | fi | ||
23820 | |||
diff --git a/libraries/eina/configure.ac b/libraries/eina/configure.ac deleted file mode 100644 index 38fb13d..0000000 --- a/libraries/eina/configure.ac +++ /dev/null | |||
@@ -1,898 +0,0 @@ | |||
1 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
2 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
3 | m4_define([v_maj], [1]) | ||
4 | m4_define([v_min], [2]) | ||
5 | m4_define([v_mic], [0]) | ||
6 | m4_define([v_rev], m4_esyscmd([(svnversion "${SVN_REPO_PATH:-.}" | grep -v '\(export\|Unversioned directory\)' || 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]-alpha, [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="${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 | ### Checks for compiler characteristics | ||
356 | AC_C_CONST | ||
357 | AC_C_BIGENDIAN | ||
358 | AC_C_INLINE | ||
359 | AC_PROG_CC_STDC | ||
360 | EFL_ATTRIBUTE_UNUSED | ||
361 | |||
362 | have_wince="no" | ||
363 | have_win32="no" | ||
364 | EINA_CFLAGS="" | ||
365 | case "$host_os" in | ||
366 | mingw32ce*) | ||
367 | EINA_CFLAGS="${EVIL_CFLAGS}" | ||
368 | have_win32="yes" | ||
369 | have_wince="yes" | ||
370 | ;; | ||
371 | mingw*) | ||
372 | EINA_CFLAGS="${EVIL_CFLAGS}" | ||
373 | have_win32="yes" | ||
374 | ;; | ||
375 | esac | ||
376 | AM_CONDITIONAL([EINA_HAVE_WINCE], [test "x$have_wince" = "xyes"]) | ||
377 | AM_CONDITIONAL([EINA_HAVE_WIN32], [test "x$have_win32" = "xyes"]) | ||
378 | |||
379 | m4_ifdef([v_mic], | ||
380 | [ | ||
381 | EFL_COMPILER_FLAG([-Wall]) | ||
382 | EFL_COMPILER_FLAG([-W]) | ||
383 | ]) | ||
384 | |||
385 | EFL_COMPILER_FLAG([-Wshadow]) | ||
386 | |||
387 | ### Checks for portability layer | ||
388 | |||
389 | PKG_CHECK_MODULES([EXOTIC], | ||
390 | [exotic], | ||
391 | [enable_exotic="yes"], | ||
392 | [enable_exotic="no"]) | ||
393 | |||
394 | if test "x${enable_exotic}" = "xyes"; then | ||
395 | requirement_eina="exotic ${requirement_eina}" | ||
396 | EINA_CFLAGS="${EINA_CFLAGS} ${EXOTIC_CFLAGS}" | ||
397 | EINA_LIBS="${EXOTIC_LIBS}" | ||
398 | |||
399 | EINA_CONFIGURE_HAVE_EXOTIC="#define EINA_HAVE_EXOTIC" | ||
400 | AC_DEFINE([HAVE_EXOTIC_H], [1], [Define to 1 if you have Exotic.]) | ||
401 | fi | ||
402 | AM_CONDITIONAL([EINA_HAVE_EXOTIC], [test "x${enable_exotic}" = "xyes"]) | ||
403 | AC_SUBST([EINA_CONFIGURE_HAVE_EXOTIC]) | ||
404 | |||
405 | case "$host_vendor" in | ||
406 | ps3*) | ||
407 | PKG_CHECK_MODULES([ESCAPE], [escape]) | ||
408 | AC_DEFINE(HAVE_ESCAPE, 1, [Set to 1 if Escape package is installed]) | ||
409 | requirement_eina="${requirement_eina} escape" | ||
410 | EINA_CFLAGS="${ESCAPE_CFLAGS} ${EINA_CFLAGS}" | ||
411 | ;; | ||
412 | esac | ||
413 | |||
414 | AC_SUBST([EINA_CFLAGS]) | ||
415 | |||
416 | ### Checks for linker characteristics | ||
417 | EINA_LIBS= | ||
418 | lt_enable_auto_import="" | ||
419 | case "${host_os}" in | ||
420 | mingw*) | ||
421 | EINA_LIBS="${EINA_LIBS} -ldl ${EVIL_LIBS} -lm" | ||
422 | lt_enable_auto_import="-Wl,--enable-auto-import" | ||
423 | ;; | ||
424 | dragonfly*|openbsd*) | ||
425 | EINA_LIBS="${EINA_LIBS} -lm" | ||
426 | ;; | ||
427 | freebsd*|netbsd*) | ||
428 | EINA_LIBS="${EINA_LIBS} -lrt -lm" | ||
429 | ;; | ||
430 | darwin*) | ||
431 | EINA_LIBS="${EINA_LIBS} -lm" | ||
432 | ;; | ||
433 | cygwin*) | ||
434 | EINA_LIBS="${EINA_LIBS} -ldl -lm" | ||
435 | ;; | ||
436 | *) | ||
437 | EINA_LIBS="${EINA_LIBS} -lrt -ldl -lm" | ||
438 | ;; | ||
439 | esac | ||
440 | case "$host_vendor" in | ||
441 | ps3*) | ||
442 | # Escape had already been checked to exist | ||
443 | EINA_LIBS="${ESCAPE_LIBS}" | ||
444 | ;; | ||
445 | esac | ||
446 | AC_SUBST([EINA_LIBS]) | ||
447 | AC_SUBST([lt_enable_auto_import]) | ||
448 | |||
449 | EFL_LINKER_FLAG([-fno-strict-aliasing]) | ||
450 | |||
451 | CFLAGS="${CFLAGS} ${EINA_CFLAGS}" | ||
452 | LDFLAGS="${LDFLAGS} ${EINA_LDFLAGS}" | ||
453 | LIBS="${LIBS} ${EINA_LIBS}" | ||
454 | |||
455 | ### Checks for header files | ||
456 | AC_HEADER_ASSERT | ||
457 | AC_HEADER_TIME | ||
458 | EFL_CHECK_PATH_MAX | ||
459 | AC_CHECK_HEADERS([unistd.h libgen.h inttypes.h stdint.h sys/types.h siginfo.h strings.h sys/mman.h execinfo.h]) | ||
460 | |||
461 | if test "x${ac_cv_header_inttypes_h}" = "xyes" ; then | ||
462 | EINA_CONFIGURE_HAVE_INTTYPES_H="#define EINA_HAVE_INTTYPES_H" | ||
463 | AC_DEFINE([HAVE_INTTYPES_H], [1], [Define to 1 if you have the <inttypes.h> header file.]) | ||
464 | fi | ||
465 | AC_SUBST([EINA_CONFIGURE_HAVE_INTTYPES_H]) | ||
466 | |||
467 | if test "x${ac_cv_header_inttypes_h}" = "xyes" ; then | ||
468 | EINA_CONFIGURE_HAVE_STDINT_H="#define EINA_HAVE_STDINT_H" | ||
469 | AC_DEFINE([HAVE_STDINT_H], [1], [Define to 1 if you have the <stdint.h> header file.]) | ||
470 | fi | ||
471 | AC_SUBST([EINA_CONFIGURE_HAVE_STDINT_H]) | ||
472 | |||
473 | ### Checks for types | ||
474 | |||
475 | AC_CHECK_SIZEOF([wchar_t]) | ||
476 | EINA_SIZEOF_WCHAR_T=$ac_cv_sizeof_wchar_t | ||
477 | AC_SUBST([EINA_SIZEOF_WCHAR_T]) | ||
478 | AC_CHECK_TYPES([siginfo_t], [], [], | ||
479 | [[#include <signal.h> | ||
480 | #if HAVE_SIGINFO_H | ||
481 | # include <siginfo.h> | ||
482 | #endif | ||
483 | ]]) | ||
484 | |||
485 | ### Check if dirent.h is usable | ||
486 | |||
487 | AC_CHECK_TYPES([struct dirent], [have_dirent="yes"], [have_dirent="no"], | ||
488 | [[#include <dirent.h> | ||
489 | ]]) | ||
490 | |||
491 | if test "x${have_dirent}" = "xyes" ; then | ||
492 | EINA_CONFIGURE_HAVE_DIRENT_H="#define EINA_HAVE_DIRENT_H" | ||
493 | AC_DEFINE([HAVE_DIRENT_H], [1], [Define to 1 if you have a valid <dirent.h> header file.]) | ||
494 | fi | ||
495 | AC_SUBST([EINA_CONFIGURE_HAVE_DIRENT_H]) | ||
496 | |||
497 | ### Checks for library functions | ||
498 | AC_ISC_POSIX | ||
499 | AC_FUNC_ALLOCA | ||
500 | AC_CHECK_FUNCS([strlcpy openat fstatat fpathconf execvp backtrace backtrace_symbols]) | ||
501 | |||
502 | AC_MSG_CHECKING([for dirfd]) | ||
503 | AC_LINK_IFELSE( | ||
504 | [ | ||
505 | AC_LANG_PROGRAM( | ||
506 | [[ | ||
507 | #include <dirent.h> | ||
508 | ]], | ||
509 | [[ | ||
510 | int main(void) | ||
511 | { | ||
512 | DIR *dirp; | ||
513 | return dirfd(dirp); | ||
514 | } | ||
515 | ]]) | ||
516 | ], | ||
517 | [have_dirfd="yes"], | ||
518 | [have_dirfd="no"]) | ||
519 | |||
520 | AC_MSG_RESULT([${have_dirfd}]) | ||
521 | |||
522 | if test "x${have_dirfd}" = "xyes" ; then | ||
523 | AC_DEFINE([HAVE_DIRFD], [1], [ Define to 1 if you have the `dirfd' function or macro.]) | ||
524 | fi | ||
525 | |||
526 | # check debug information for malloc | ||
527 | AC_CHECK_FUNCS([malloc_usable_size], [malloc_true_size="yes"], [malloc_true_size="no"]) | ||
528 | if test "x${malloc_true_size}" = "xyes" ; then | ||
529 | AC_DEFINE([HAVE_MALLOC_USABLE_SIZE], [1], [We will be able to know the exact amount of wasted memory]) | ||
530 | fi | ||
531 | |||
532 | want_debug_malloc="no" | ||
533 | AC_ARG_ENABLE([debug-malloc], | ||
534 | [AC_HELP_STRING([--enable-debug-malloc], [enable debugging of malloc usage overhead in our allocator @<:@default=enabled@:>@])], | ||
535 | [ | ||
536 | if test "x${enableval}" = "xyes" ; then | ||
537 | want_debug_malloc="yes" | ||
538 | else | ||
539 | want_debug_malloc="no" | ||
540 | fi | ||
541 | ], [want_debug_malloc="no"]) | ||
542 | |||
543 | if test "x${malloc_true_size}" = "xyes" -a "x${want_debug_malloc}" = "xyes"; then | ||
544 | AC_DEFINE([EINA_DEBUG_MALLOC], [1], [Turn on debugging overhead in mempool]) | ||
545 | fi | ||
546 | |||
547 | # dlopen and dladdr | ||
548 | dlopen_libs="" | ||
549 | case "$host_os" in | ||
550 | mingw*) | ||
551 | # managed by evil | ||
552 | AC_DEFINE([HAVE_DLADDR]) | ||
553 | AC_DEFINE([HAVE_DLOPEN]) | ||
554 | ;; | ||
555 | *) | ||
556 | AC_CHECK_FUNCS([dlopen], [res="yes"], [res="no"]) | ||
557 | if test "x${res}" = "xyes" ; then | ||
558 | AC_CHECK_FUNCS([dladdr], [AC_DEFINE([HAVE_DLADDR])]) | ||
559 | AC_DEFINE([HAVE_DLOPEN]) | ||
560 | else | ||
561 | AC_CHECK_LIB([dl], [dlopen], [res="yes"], [res="no"]) | ||
562 | if test "x${res}" = "xyes" ; then | ||
563 | AC_CHECK_LIB([dl], [dladdr], [AC_DEFINE([HAVE_DLADDR])]) | ||
564 | AC_DEFINE(HAVE_DLOPEN) | ||
565 | dlopen_libs="-ldl" | ||
566 | fi | ||
567 | fi | ||
568 | ;; | ||
569 | esac | ||
570 | AC_SUBST([dlopen_libs]) | ||
571 | |||
572 | have_log="yes" | ||
573 | EFL_CHECK_FNMATCH([have_log="yes"], [have_log="no"]) | ||
574 | |||
575 | want_log="yes" | ||
576 | AC_ARG_ENABLE([log], | ||
577 | [AC_HELP_STRING([--disable-log], [disable Eina_Log infrastructure completly @<:@default=enabled@:>@])], | ||
578 | [ | ||
579 | if test "x${enableval}" = "xyes" ; then | ||
580 | want_log="yes" | ||
581 | else | ||
582 | want_log="no" | ||
583 | fi | ||
584 | ], | ||
585 | [want_log="yes"]) | ||
586 | |||
587 | enable_log="no" | ||
588 | if test "x${have_log}" = xyes -a "x${want_log}" = xyes; then | ||
589 | enable_log="yes" | ||
590 | fi | ||
591 | |||
592 | AC_MSG_CHECKING([wether to build Eina_Log infrastructure]) | ||
593 | AC_MSG_RESULT([${enable_log}]) | ||
594 | |||
595 | if test "x${enable_log}" = "xyes"; then | ||
596 | EINA_CONFIGURE_ENABLE_LOG="#define EINA_ENABLE_LOG" | ||
597 | AC_DEFINE([HAVE_LOG], [1], [Define to 1 if we log support is on]) | ||
598 | fi | ||
599 | AC_SUBST([EINA_CONFIGURE_ENABLE_LOG]) | ||
600 | |||
601 | AC_CHECK_HEADERS([mcheck.h], [AC_DEFINE([HAVE_MCHECK], [1], [Have mcheck.h])]) | ||
602 | AC_CHECK_FUNCS([mtrace], [AC_DEFINE([HAVE_MTRACE], [1], [Have mtrace])]) | ||
603 | |||
604 | # iconv library | ||
605 | have_iconv="no" | ||
606 | AC_ARG_WITH([iconv-link], | ||
607 | AC_HELP_STRING([--with-iconv-link=ICONV_LINK], [explicitly specify an iconv link option]), | ||
608 | [ | ||
609 | LIBS="$withval $LIBS" | ||
610 | have_iconv="yes" | ||
611 | iconv_libs=$withval | ||
612 | ]) | ||
613 | |||
614 | AC_MSG_CHECKING(for explicit iconv link options) | ||
615 | if test "x${iconv_libs}" = "x" ; then | ||
616 | AC_MSG_RESULT([no explicit iconv link option]) | ||
617 | else | ||
618 | AC_MSG_RESULT([$iconv_libs]) | ||
619 | fi | ||
620 | |||
621 | if test "x${have_iconv}" = "xno" ; then | ||
622 | AC_CHECK_HEADERS([iconv.h], [have_iconv="yes"]) | ||
623 | |||
624 | if test "x${have_iconv}" = "xyes" ; then | ||
625 | AC_MSG_CHECKING([whether iconv() is in libc]) | ||
626 | |||
627 | AC_LINK_IFELSE( | ||
628 | [AC_LANG_PROGRAM( | ||
629 | [[ | ||
630 | #include <stdlib.h> | ||
631 | #include <iconv.h> | ||
632 | ]], | ||
633 | [[ | ||
634 | iconv_t ic; | ||
635 | size_t count = iconv(ic, NULL, NULL, NULL, NULL); | ||
636 | ]])], | ||
637 | [have_iconv="yes"], | ||
638 | [have_iconv="no"]) | ||
639 | |||
640 | AC_MSG_RESULT([${have_iconv}]) | ||
641 | fi | ||
642 | |||
643 | if test "x${have_iconv}" = "xno" ; then | ||
644 | AC_MSG_CHECKING([whether iconv() is in libiconv.a]) | ||
645 | |||
646 | LIBS_save="${LIBS}" | ||
647 | LIBS="-liconv $LIBS" | ||
648 | AC_LINK_IFELSE( | ||
649 | [AC_LANG_PROGRAM( | ||
650 | [[ | ||
651 | #include <stdlib.h> | ||
652 | #include <iconv.h> | ||
653 | ]], | ||
654 | [[ | ||
655 | iconv_t ic; | ||
656 | size_t count; | ||
657 | count = iconv(ic, NULL, NULL, NULL, NULL); | ||
658 | ]])], | ||
659 | [ | ||
660 | have_iconv="yes" | ||
661 | iconv_libs="-liconv" | ||
662 | ], | ||
663 | [ | ||
664 | have_iconv="no" | ||
665 | LIBS=${LIBS_save} | ||
666 | ]) | ||
667 | |||
668 | AC_MSG_RESULT([${have_iconv}]) | ||
669 | fi | ||
670 | |||
671 | if test "x${have_iconv}" = "xno" ; then | ||
672 | AC_MSG_CHECKING([whether iconv() is in libiconv_plug.a]) | ||
673 | |||
674 | LIBS_save="${LIBS}" | ||
675 | LIBS="-liconv_plug $LIBS" | ||
676 | AC_LINK_IFELSE( | ||
677 | [AC_LANG_PROGRAM( | ||
678 | [[ | ||
679 | #include <stdlib.h> | ||
680 | #include <iconv.h> | ||
681 | ]], | ||
682 | [[ | ||
683 | iconv_t ic; | ||
684 | size_t count = iconv(ic, NULL, NULL, NULL, NULL); | ||
685 | ]])], | ||
686 | [ | ||
687 | have_iconv="yes" | ||
688 | iconv_libs="-liconv_plug" | ||
689 | ], | ||
690 | [ | ||
691 | have_iconv="no" | ||
692 | LIBS=${LIBS_save} | ||
693 | ]) | ||
694 | |||
695 | AC_MSG_RESULT([${have_iconv}]) | ||
696 | fi | ||
697 | fi | ||
698 | |||
699 | AC_SUBST([iconv_libs]) | ||
700 | |||
701 | if test "x${have_iconv}" = "xyes" ; then | ||
702 | AC_DEFINE([HAVE_ICONV], [1], [Set to 1 if iconv library is installed]) | ||
703 | fi | ||
704 | |||
705 | # shmopen | ||
706 | have_shmopen=no | ||
707 | AC_MSG_CHECKING([for shm_open availability]) | ||
708 | |||
709 | LIBS_save="${LIBS}" | ||
710 | LIBS="${LIBS} -lrt" | ||
711 | AC_LINK_IFELSE( | ||
712 | [AC_LANG_PROGRAM( | ||
713 | [[ | ||
714 | #include <sys/mman.h> | ||
715 | #include <sys/stat.h> /* For mode constants */ | ||
716 | #include <fcntl.h> /* For O_* constants */ | ||
717 | ]], | ||
718 | [[ | ||
719 | int fd; | ||
720 | |||
721 | fd = shm_open("/dev/null", O_RDONLY, S_IRWXU | S_IRWXG | S_IRWXO); | ||
722 | ]])], | ||
723 | [have_shmopen="yes"], | ||
724 | [have_shmopen="no"]) | ||
725 | |||
726 | LIBS="${LIBS_save}" | ||
727 | |||
728 | AC_MSG_RESULT([${have_shmopen}]) | ||
729 | |||
730 | if test "x${have_shmopen}" = "xyes"; then | ||
731 | AC_DEFINE([HAVE_SHMOPEN], [1], [Define to 1 if you have the `shm_open' function.]) | ||
732 | rt_libs="-lrt" | ||
733 | fi | ||
734 | |||
735 | AC_SUBST([rt_libs]) | ||
736 | |||
737 | # extended attribute | ||
738 | |||
739 | AC_MSG_CHECKING([for extended attributes]) | ||
740 | |||
741 | AC_COMPILE_IFELSE( | ||
742 | [AC_LANG_PROGRAM( | ||
743 | [[ | ||
744 | #include <stdlib.h> | ||
745 | #include <sys/types.h> | ||
746 | #include <sys/xattr.h> | ||
747 | ]], | ||
748 | [[ | ||
749 | size_t tmp = listxattr("/", NULL, 0); | ||
750 | tmp = getxattr("/", "user.ethumb.md5", NULL, 0); | ||
751 | setxattr("/", "user.ethumb.md5", NULL, 0, 0); | ||
752 | ]])], | ||
753 | [ | ||
754 | AC_DEFINE([HAVE_XATTR], [1], [Define to 1 if you have the `listxattr', `setxattr' and `getxattr' functions.]) | ||
755 | have_xattr="yes" | ||
756 | ], | ||
757 | [have_xattr="no"]) | ||
758 | |||
759 | AC_MSG_RESULT([${have_xattr}]) | ||
760 | |||
761 | ### Modules | ||
762 | |||
763 | if test "x${have_default_mempool}" = "xyes" ; then | ||
764 | enable_chained_pool="no" | ||
765 | enable_pass_through="static" | ||
766 | else | ||
767 | enable_chained_pool="static" | ||
768 | enable_pass_through="no" | ||
769 | fi | ||
770 | |||
771 | enable_one_big="static" | ||
772 | |||
773 | EINA_CHECK_MODULE([chained-pool], [${enable_chained_pool}], [chained pool]) | ||
774 | EINA_CHECK_MODULE([ememoa-fixed], [${enable_ememoa}], [ememoa fixed]) | ||
775 | EINA_CHECK_MODULE([ememoa-unknown], [${enable_ememoa}], [ememoa unknown]) | ||
776 | EINA_CHECK_MODULE([fixed-bitmap], [no], [fixed bitmap]) | ||
777 | EINA_CHECK_MODULE([pass-through], [${enable_pass_through}], [pass through]) | ||
778 | EINA_CHECK_MODULE([buddy], [no], [buddy]) | ||
779 | EINA_CHECK_MODULE([one-big], [${enable_one_big}], [one big]) | ||
780 | |||
781 | ### Make the debug preprocessor configurable | ||
782 | |||
783 | ### Unit tests, coverage and benchmarking | ||
784 | |||
785 | EFL_CHECK_TESTS([enable_tests="yes"], [enable_tests="no"]) | ||
786 | |||
787 | EFL_CHECK_COVERAGE([${enable_tests}], [enable_coverage="yes"], [enable_coverage="no"]) | ||
788 | EINA_CFLAGS="${EINA_CFLAGS} ${EFL_COVERAGE_CFLAGS}" | ||
789 | EINA_LIBS="${EINA_LIBS} ${EFL_COVERAGE_LIBS}" | ||
790 | if test "x$enable_coverage" = "xyes" ; then | ||
791 | EINA_CFLAGS="${EINA_CFLAGS} ${EFL_DEBUG_CFLAGS}" | ||
792 | fi | ||
793 | |||
794 | EFL_CHECK_BENCHMARK([enable_benchmark="yes"], [enable_benchmark="no"]) | ||
795 | EINA_BENCH_MODULE([glib], [${enable_benchmark}], [glib-2.0], [enable_benchmark_glib="yes"], [enable_benchmark_glib="no"]) | ||
796 | if test -n "$CXX" && test "x$enable_benchmark" = "xyes" ; then | ||
797 | AC_DEFINE_UNQUOTED([CITYHASH_BENCH], [1], [enable bench tests for google hash method]) | ||
798 | fi | ||
799 | AM_CONDITIONAL([CITYHASH_BENCH], [test -n "$CXX" && test "x$enable_benchmark" = "xyes"]) | ||
800 | |||
801 | AC_SUBST([requirement_eina]) | ||
802 | |||
803 | ### Build and install examples | ||
804 | EFL_CHECK_BUILD_EXAMPLES([enable_build_examples="yes"], [enable_build_examples="no"]) | ||
805 | EFL_CHECK_INSTALL_EXAMPLES([enable_install_examples="yes"], [enable_install_examples="no"]) | ||
806 | |||
807 | AC_CONFIG_FILES([ | ||
808 | Makefile | ||
809 | eina.pc | ||
810 | eina.spec | ||
811 | doc/Makefile | ||
812 | doc/Doxyfile | ||
813 | src/Makefile | ||
814 | src/include/Makefile | ||
815 | src/include/eina_config.h | ||
816 | src/lib/Makefile | ||
817 | src/modules/Makefile | ||
818 | src/modules/mp/Makefile | ||
819 | src/modules/mp/chained_pool/Makefile | ||
820 | src/modules/mp/ememoa_fixed/Makefile | ||
821 | src/modules/mp/ememoa_unknown/Makefile | ||
822 | src/modules/mp/pass_through/Makefile | ||
823 | src/modules/mp/fixed_bitmap/Makefile | ||
824 | src/modules/mp/buddy/Makefile | ||
825 | src/modules/mp/one_big/Makefile | ||
826 | src/tests/Makefile | ||
827 | src/examples/Makefile | ||
828 | ]) | ||
829 | |||
830 | AC_OUTPUT | ||
831 | |||
832 | ##################################################################### | ||
833 | ## Info | ||
834 | |||
835 | echo | ||
836 | echo | ||
837 | echo | ||
838 | echo "------------------------------------------------------------------------" | ||
839 | echo "$PACKAGE $VERSION" | ||
840 | echo "------------------------------------------------------------------------" | ||
841 | echo | ||
842 | echo | ||
843 | echo "Configuration Options Summary:" | ||
844 | echo | ||
845 | echo " Magic debug..........: ${have_magic_debug}" | ||
846 | echo " Safety checks........: ${have_safety_checks}" | ||
847 | echo " Maximum log level....: ${with_max_log_level}" | ||
848 | echo " Report string usage..: ${have_stringshare_usage}" | ||
849 | echo " Valgrind support.....: ${have_valgrind}" | ||
850 | echo " Default mempool......: ${have_default_mempool}" | ||
851 | echo " Log support..........: ${enable_log}" | ||
852 | echo " Thread Support.......: ${have_threads}" | ||
853 | if test "${have_threads}" = "POSIX" ; then | ||
854 | echo " spinlock...........: ${have_posix_threads_spinlock}" | ||
855 | echo " debug usage........: ${have_debug_threads}" | ||
856 | echo " on/off support.....: ${have_on_off_threads}" | ||
857 | fi | ||
858 | echo " Amalgamation.........: ${do_amalgamation}" | ||
859 | echo " Iconv support........: ${have_iconv}" | ||
860 | echo " File dirfd...........: ${have_dirfd}" | ||
861 | echo " File xattr...........: ${have_xattr}" | ||
862 | echo | ||
863 | echo " Documentation........: ${build_doc}" | ||
864 | echo " Tests................: ${enable_tests}" | ||
865 | echo " Coverage.............: ${enable_coverage}" | ||
866 | echo " Examples.............: ${enable_build_examples}" | ||
867 | echo " Tiler Example........: ${build_tiler_example}" | ||
868 | echo " Examples installed...: ${enable_install_examples}" | ||
869 | echo " Benchmark............: ${enable_benchmark}" | ||
870 | if test "x${enable_benchmark}" = "xyes" ; then | ||
871 | echo " Glib...............: ${enable_benchmark_glib}" | ||
872 | echo " E17 real data......: ${enable_benchmark_e17}" | ||
873 | fi | ||
874 | echo | ||
875 | echo " CPU Specific Extensions:" | ||
876 | echo " MMX................: ${have_mmx}" | ||
877 | echo " SSE................: ${have_sse}" | ||
878 | echo " SSE2...............: ${have_sse2}" | ||
879 | echo " ALTIVEC............: ${have_altivec}" | ||
880 | echo | ||
881 | echo " Memory pools:" | ||
882 | echo " Buddy..............: ${enable_buddy}" | ||
883 | echo " Chained pool.......: ${enable_chained_pool}" | ||
884 | echo " Ememoa fixed.......: ${enable_ememoa_fixed}" | ||
885 | echo " Ememoa unknown.....: ${enable_ememoa_unknown}" | ||
886 | echo " Fixed bitmap.......: ${enable_fixed_bitmap}" | ||
887 | echo " One big............: ${enable_one_big}" | ||
888 | echo " Pass through.......: ${enable_pass_through}" | ||
889 | echo | ||
890 | echo "Compilation............: make (or gmake)" | ||
891 | echo " CPPFLAGS.............: $CPPFLAGS" | ||
892 | echo " CFLAGS...............: $CFLAGS" | ||
893 | echo " LDFLAGS..............: $LDFLAGS" | ||
894 | echo | ||
895 | echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')" | ||
896 | echo " prefix...............: $prefix" | ||
897 | echo | ||
898 | EFL_FORM_VOLTRON | ||