diff options
Diffstat (limited to 'libraries/evas/configure')
-rwxr-xr-x | libraries/evas/configure | 36059 |
1 files changed, 0 insertions, 36059 deletions
diff --git a/libraries/evas/configure b/libraries/evas/configure deleted file mode 100755 index f2e24f4..0000000 --- a/libraries/evas/configure +++ /dev/null | |||
@@ -1,36059 +0,0 @@ | |||
1 | #! /bin/sh | ||
2 | # Guess values for system-dependent variables and create Makefiles. | ||
3 | # Generated by GNU Autoconf 2.67 for evas 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='evas' | ||
703 | PACKAGE_TARNAME='evas' | ||
704 | PACKAGE_VERSION='1.2.0-alpha' | ||
705 | PACKAGE_STRING='evas 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 | requirement_evas | ||
751 | pthread_libs | ||
752 | pthread_cflags | ||
753 | altivec_cflags | ||
754 | EVAS_LIBS | ||
755 | EVAS_CFLAGS | ||
756 | EFL_ENABLE_COVERAGE_FALSE | ||
757 | EFL_ENABLE_COVERAGE_TRUE | ||
758 | EFL_COVERAGE_LIBS | ||
759 | EFL_COVERAGE_CFLAGS | ||
760 | have_lcov | ||
761 | EFL_ENABLE_TESTS_FALSE | ||
762 | EFL_ENABLE_TESTS_TRUE | ||
763 | CHECK_LIBS | ||
764 | CHECK_CFLAGS | ||
765 | BUILD_EXAMPLES_FALSE | ||
766 | BUILD_EXAMPLES_TRUE | ||
767 | edje_cc | ||
768 | EDJE_LIBS | ||
769 | EDJE_CFLAGS | ||
770 | ECORE_EVAS_LIBS | ||
771 | ECORE_EVAS_CFLAGS | ||
772 | INSTALL_EXAMPLES_FALSE | ||
773 | INSTALL_EXAMPLES_TRUE | ||
774 | VALGRIND_LIBS | ||
775 | VALGRIND_CFLAGS | ||
776 | METRIC_CACHE_FALSE | ||
777 | METRIC_CACHE_TRUE | ||
778 | WORD_CACHE_FALSE | ||
779 | WORD_CACHE_TRUE | ||
780 | EVAS_MAGIC_DEBUG_FALSE | ||
781 | EVAS_MAGIC_DEBUG_TRUE | ||
782 | EVAS_SSE3_CFLAGS | ||
783 | XEXT_LIBS | ||
784 | XEXT_CFLAGS | ||
785 | EVAS_STATIC_BUILD_GENERIC_FALSE | ||
786 | EVAS_STATIC_BUILD_GENERIC_TRUE | ||
787 | BUILD_LOADER_GENERIC_FALSE | ||
788 | BUILD_LOADER_GENERIC_TRUE | ||
789 | evas_image_loader_generic_libs | ||
790 | evas_image_loader_generic_cflags | ||
791 | EVAS_STATIC_BUILD_PSD_FALSE | ||
792 | EVAS_STATIC_BUILD_PSD_TRUE | ||
793 | BUILD_LOADER_PSD_FALSE | ||
794 | BUILD_LOADER_PSD_TRUE | ||
795 | evas_image_loader_psd_libs | ||
796 | evas_image_loader_psd_cflags | ||
797 | EVAS_STATIC_BUILD_ICO_FALSE | ||
798 | EVAS_STATIC_BUILD_ICO_TRUE | ||
799 | BUILD_LOADER_ICO_FALSE | ||
800 | BUILD_LOADER_ICO_TRUE | ||
801 | evas_image_loader_ico_libs | ||
802 | evas_image_loader_ico_cflags | ||
803 | EVAS_STATIC_BUILD_WBMP_FALSE | ||
804 | EVAS_STATIC_BUILD_WBMP_TRUE | ||
805 | BUILD_LOADER_WBMP_FALSE | ||
806 | BUILD_LOADER_WBMP_TRUE | ||
807 | evas_image_loader_wbmp_libs | ||
808 | evas_image_loader_wbmp_cflags | ||
809 | EVAS_STATIC_BUILD_TGA_FALSE | ||
810 | EVAS_STATIC_BUILD_TGA_TRUE | ||
811 | BUILD_LOADER_TGA_FALSE | ||
812 | BUILD_LOADER_TGA_TRUE | ||
813 | evas_image_loader_tga_libs | ||
814 | evas_image_loader_tga_cflags | ||
815 | EVAS_STATIC_BUILD_BMP_FALSE | ||
816 | EVAS_STATIC_BUILD_BMP_TRUE | ||
817 | BUILD_LOADER_BMP_FALSE | ||
818 | BUILD_LOADER_BMP_TRUE | ||
819 | evas_image_loader_bmp_libs | ||
820 | evas_image_loader_bmp_cflags | ||
821 | EVAS_STATIC_BUILD_XPM_FALSE | ||
822 | EVAS_STATIC_BUILD_XPM_TRUE | ||
823 | BUILD_LOADER_XPM_FALSE | ||
824 | BUILD_LOADER_XPM_TRUE | ||
825 | evas_image_loader_xpm_libs | ||
826 | evas_image_loader_xpm_cflags | ||
827 | EVAS_STATIC_BUILD_TIFF_FALSE | ||
828 | EVAS_STATIC_BUILD_TIFF_TRUE | ||
829 | BUILD_LOADER_TIFF_FALSE | ||
830 | BUILD_LOADER_TIFF_TRUE | ||
831 | evas_image_loader_tiff_libs | ||
832 | evas_image_loader_tiff_cflags | ||
833 | EVAS_STATIC_BUILD_SVG_FALSE | ||
834 | EVAS_STATIC_BUILD_SVG_TRUE | ||
835 | BUILD_LOADER_SVG_FALSE | ||
836 | BUILD_LOADER_SVG_TRUE | ||
837 | evas_image_loader_svg_libs | ||
838 | evas_image_loader_svg_cflags | ||
839 | SVG_LIBS | ||
840 | SVG_CFLAGS | ||
841 | EVAS_STATIC_BUILD_PNG_FALSE | ||
842 | EVAS_STATIC_BUILD_PNG_TRUE | ||
843 | BUILD_LOADER_PNG_FALSE | ||
844 | BUILD_LOADER_PNG_TRUE | ||
845 | evas_image_loader_png_libs | ||
846 | evas_image_loader_png_cflags | ||
847 | PNG_LIBS | ||
848 | PNG_CFLAGS | ||
849 | EVAS_STATIC_BUILD_PMAPS_FALSE | ||
850 | EVAS_STATIC_BUILD_PMAPS_TRUE | ||
851 | BUILD_LOADER_PMAPS_FALSE | ||
852 | BUILD_LOADER_PMAPS_TRUE | ||
853 | evas_image_loader_pmaps_libs | ||
854 | evas_image_loader_pmaps_cflags | ||
855 | BUILD_SAVER_JPEG_FALSE | ||
856 | BUILD_SAVER_JPEG_TRUE | ||
857 | EVAS_STATIC_BUILD_JPEG_FALSE | ||
858 | EVAS_STATIC_BUILD_JPEG_TRUE | ||
859 | BUILD_LOADER_JPEG_FALSE | ||
860 | BUILD_LOADER_JPEG_TRUE | ||
861 | evas_image_loader_jpeg_libs | ||
862 | evas_image_loader_jpeg_cflags | ||
863 | EVAS_STATIC_BUILD_GIF_FALSE | ||
864 | EVAS_STATIC_BUILD_GIF_TRUE | ||
865 | BUILD_LOADER_GIF_FALSE | ||
866 | BUILD_LOADER_GIF_TRUE | ||
867 | evas_image_loader_gif_libs | ||
868 | evas_image_loader_gif_cflags | ||
869 | EVAS_STATIC_BUILD_EET_FALSE | ||
870 | EVAS_STATIC_BUILD_EET_TRUE | ||
871 | BUILD_LOADER_EET_FALSE | ||
872 | BUILD_LOADER_EET_TRUE | ||
873 | evas_image_loader_eet_libs | ||
874 | evas_image_loader_eet_cflags | ||
875 | EET_LIBS | ||
876 | EET_CFLAGS | ||
877 | EVAS_STATIC_BUILD_EDB_FALSE | ||
878 | EVAS_STATIC_BUILD_EDB_TRUE | ||
879 | BUILD_LOADER_EDB_FALSE | ||
880 | BUILD_LOADER_EDB_TRUE | ||
881 | evas_image_loader_edb_libs | ||
882 | evas_image_loader_edb_cflags | ||
883 | EDB_LIBS | ||
884 | EDB_CFLAGS | ||
885 | EVAS_STATIC_BUILD_SOFTWARE_8_FALSE | ||
886 | EVAS_STATIC_BUILD_SOFTWARE_8_TRUE | ||
887 | BUILD_ENGINE_SOFTWARE_8_FALSE | ||
888 | BUILD_ENGINE_SOFTWARE_8_TRUE | ||
889 | EVAS_STATIC_BUILD_SOFTWARE_16_FALSE | ||
890 | EVAS_STATIC_BUILD_SOFTWARE_16_TRUE | ||
891 | BUILD_ENGINE_SOFTWARE_16_FALSE | ||
892 | BUILD_ENGINE_SOFTWARE_16_TRUE | ||
893 | EVAS_STATIC_BUILD_GL_COMMON_FALSE | ||
894 | EVAS_STATIC_BUILD_GL_COMMON_TRUE | ||
895 | BUILD_ENGINE_GL_COMMON_FALSE | ||
896 | BUILD_ENGINE_GL_COMMON_TRUE | ||
897 | evas_engine_gl_common_libs | ||
898 | have_evas_engine_gl_x11 | ||
899 | EVAS_STATIC_BUILD_GL_X11_FALSE | ||
900 | EVAS_STATIC_BUILD_GL_X11_TRUE | ||
901 | BUILD_ENGINE_GL_X11_FALSE | ||
902 | BUILD_ENGINE_GL_X11_TRUE | ||
903 | have_evas_engine_gl_xlib | ||
904 | EVAS_STATIC_BUILD_GL_XLIB_FALSE | ||
905 | EVAS_STATIC_BUILD_GL_XLIB_TRUE | ||
906 | BUILD_ENGINE_GL_XLIB_FALSE | ||
907 | BUILD_ENGINE_GL_XLIB_TRUE | ||
908 | evas_engine_gl_xlib_libs | ||
909 | evas_engine_gl_xlib_cflags | ||
910 | have_evas_engine_gl_xcb | ||
911 | EVAS_STATIC_BUILD_GL_XCB_FALSE | ||
912 | EVAS_STATIC_BUILD_GL_XCB_TRUE | ||
913 | BUILD_ENGINE_GL_XCB_FALSE | ||
914 | BUILD_ENGINE_GL_XCB_TRUE | ||
915 | evas_engine_gl_xcb_libs | ||
916 | evas_engine_gl_xcb_cflags | ||
917 | XCB_GL_LIBS | ||
918 | XCB_GL_CFLAGS | ||
919 | have_evas_engine_software_x11 | ||
920 | EVAS_STATIC_BUILD_SOFTWARE_X11_FALSE | ||
921 | EVAS_STATIC_BUILD_SOFTWARE_X11_TRUE | ||
922 | BUILD_ENGINE_SOFTWARE_X11_FALSE | ||
923 | BUILD_ENGINE_SOFTWARE_X11_TRUE | ||
924 | have_evas_engine_software_xlib | ||
925 | have_evas_engine_software_xcb | ||
926 | EVAS_STATIC_BUILD_SOFTWARE_XLIB_FALSE | ||
927 | EVAS_STATIC_BUILD_SOFTWARE_XLIB_TRUE | ||
928 | BUILD_ENGINE_SOFTWARE_XLIB_FALSE | ||
929 | BUILD_ENGINE_SOFTWARE_XLIB_TRUE | ||
930 | evas_engine_software_xlib_libs | ||
931 | evas_engine_software_xlib_cflags | ||
932 | EVAS_STATIC_BUILD_SOFTWARE_XCB_FALSE | ||
933 | EVAS_STATIC_BUILD_SOFTWARE_XCB_TRUE | ||
934 | BUILD_ENGINE_SOFTWARE_XCB_FALSE | ||
935 | BUILD_ENGINE_SOFTWARE_XCB_TRUE | ||
936 | evas_engine_software_xcb_libs | ||
937 | evas_engine_software_xcb_cflags | ||
938 | EVAS_STATIC_BUILD_SOFTWARE_GENERIC_FALSE | ||
939 | EVAS_STATIC_BUILD_SOFTWARE_GENERIC_TRUE | ||
940 | EVAS_STATIC_BUILD_WAYLAND_EGL_FALSE | ||
941 | EVAS_STATIC_BUILD_WAYLAND_EGL_TRUE | ||
942 | BUILD_ENGINE_WAYLAND_EGL_FALSE | ||
943 | BUILD_ENGINE_WAYLAND_EGL_TRUE | ||
944 | evas_engine_wayland_egl_libs | ||
945 | evas_engine_wayland_egl_cflags | ||
946 | WAYLAND_EGL_LIBS | ||
947 | WAYLAND_EGL_CFLAGS | ||
948 | EVAS_STATIC_BUILD_WAYLAND_SHM_FALSE | ||
949 | EVAS_STATIC_BUILD_WAYLAND_SHM_TRUE | ||
950 | BUILD_ENGINE_WAYLAND_SHM_FALSE | ||
951 | BUILD_ENGINE_WAYLAND_SHM_TRUE | ||
952 | evas_engine_wayland_shm_libs | ||
953 | evas_engine_wayland_shm_cflags | ||
954 | EVAS_STATIC_BUILD_SOFTWARE_16_SDL_FALSE | ||
955 | EVAS_STATIC_BUILD_SOFTWARE_16_SDL_TRUE | ||
956 | BUILD_ENGINE_SOFTWARE_16_SDL_FALSE | ||
957 | BUILD_ENGINE_SOFTWARE_16_SDL_TRUE | ||
958 | evas_engine_software_16_sdl_libs | ||
959 | evas_engine_software_16_sdl_cflags | ||
960 | EVAS_STATIC_BUILD_SOFTWARE_16_WINCE_FALSE | ||
961 | EVAS_STATIC_BUILD_SOFTWARE_16_WINCE_TRUE | ||
962 | BUILD_ENGINE_SOFTWARE_16_WINCE_FALSE | ||
963 | BUILD_ENGINE_SOFTWARE_16_WINCE_TRUE | ||
964 | evas_engine_software_16_wince_libs | ||
965 | evas_engine_software_16_wince_cflags | ||
966 | EVAS_STATIC_BUILD_SOFTWARE_16_DDRAW_FALSE | ||
967 | EVAS_STATIC_BUILD_SOFTWARE_16_DDRAW_TRUE | ||
968 | BUILD_ENGINE_SOFTWARE_16_DDRAW_FALSE | ||
969 | BUILD_ENGINE_SOFTWARE_16_DDRAW_TRUE | ||
970 | evas_engine_software_16_ddraw_libs | ||
971 | evas_engine_software_16_ddraw_cflags | ||
972 | EVAS_STATIC_BUILD_SOFTWARE_16_X11_FALSE | ||
973 | EVAS_STATIC_BUILD_SOFTWARE_16_X11_TRUE | ||
974 | BUILD_ENGINE_SOFTWARE_16_X11_FALSE | ||
975 | BUILD_ENGINE_SOFTWARE_16_X11_TRUE | ||
976 | evas_engine_software_16_x11_libs | ||
977 | evas_engine_software_16_x11_cflags | ||
978 | X_EXTRA_LIBS | ||
979 | X_LIBS | ||
980 | X_PRE_LIBS | ||
981 | X_CFLAGS | ||
982 | XMKMF | ||
983 | EVAS_STATIC_BUILD_SOFTWARE_8_X11_FALSE | ||
984 | EVAS_STATIC_BUILD_SOFTWARE_8_X11_TRUE | ||
985 | BUILD_ENGINE_SOFTWARE_8_X11_FALSE | ||
986 | BUILD_ENGINE_SOFTWARE_8_X11_TRUE | ||
987 | evas_engine_software_8_x11_libs | ||
988 | evas_engine_software_8_x11_cflags | ||
989 | XCB_LIBS | ||
990 | XCB_CFLAGS | ||
991 | EVAS_STATIC_BUILD_DIRECTFB_FALSE | ||
992 | EVAS_STATIC_BUILD_DIRECTFB_TRUE | ||
993 | BUILD_ENGINE_DIRECTFB_FALSE | ||
994 | BUILD_ENGINE_DIRECTFB_TRUE | ||
995 | evas_engine_directfb_libs | ||
996 | evas_engine_directfb_cflags | ||
997 | DIRECTFB_LIBS | ||
998 | DIRECTFB_CFLAGS | ||
999 | EVAS_STATIC_BUILD_FB_FALSE | ||
1000 | EVAS_STATIC_BUILD_FB_TRUE | ||
1001 | BUILD_ENGINE_FB_FALSE | ||
1002 | BUILD_ENGINE_FB_TRUE | ||
1003 | evas_engine_fb_libs | ||
1004 | evas_engine_fb_cflags | ||
1005 | EVAS_STATIC_BUILD_GL_COCOA_FALSE | ||
1006 | EVAS_STATIC_BUILD_GL_COCOA_TRUE | ||
1007 | BUILD_ENGINE_GL_COCOA_FALSE | ||
1008 | BUILD_ENGINE_GL_COCOA_TRUE | ||
1009 | evas_engine_gl_cocoa_libs | ||
1010 | evas_engine_gl_cocoa_cflags | ||
1011 | GL_EET_LIBS | ||
1012 | GL_EET_CFLAGS | ||
1013 | EVAS_STATIC_BUILD_GL_SDL_FALSE | ||
1014 | EVAS_STATIC_BUILD_GL_SDL_TRUE | ||
1015 | BUILD_ENGINE_GL_SDL_FALSE | ||
1016 | BUILD_ENGINE_GL_SDL_TRUE | ||
1017 | evas_engine_gl_sdl_libs | ||
1018 | evas_engine_gl_sdl_cflags | ||
1019 | SDL_LIBS | ||
1020 | SDL_CFLAGS | ||
1021 | EVAS_STATIC_BUILD_PSL1GHT_FALSE | ||
1022 | EVAS_STATIC_BUILD_PSL1GHT_TRUE | ||
1023 | BUILD_ENGINE_PSL1GHT_FALSE | ||
1024 | BUILD_ENGINE_PSL1GHT_TRUE | ||
1025 | evas_engine_psl1ght_libs | ||
1026 | evas_engine_psl1ght_cflags | ||
1027 | EVAS_STATIC_BUILD_DIRECT3D_FALSE | ||
1028 | EVAS_STATIC_BUILD_DIRECT3D_TRUE | ||
1029 | BUILD_ENGINE_DIRECT3D_FALSE | ||
1030 | BUILD_ENGINE_DIRECT3D_TRUE | ||
1031 | evas_engine_direct3d_libs | ||
1032 | evas_engine_direct3d_cflags | ||
1033 | EVAS_STATIC_BUILD_SOFTWARE_DDRAW_FALSE | ||
1034 | EVAS_STATIC_BUILD_SOFTWARE_DDRAW_TRUE | ||
1035 | BUILD_ENGINE_SOFTWARE_DDRAW_FALSE | ||
1036 | BUILD_ENGINE_SOFTWARE_DDRAW_TRUE | ||
1037 | evas_engine_software_ddraw_libs | ||
1038 | evas_engine_software_ddraw_cflags | ||
1039 | EVAS_STATIC_BUILD_SOFTWARE_GDI_FALSE | ||
1040 | EVAS_STATIC_BUILD_SOFTWARE_GDI_TRUE | ||
1041 | BUILD_ENGINE_SOFTWARE_GDI_FALSE | ||
1042 | BUILD_ENGINE_SOFTWARE_GDI_TRUE | ||
1043 | evas_engine_software_gdi_libs | ||
1044 | evas_engine_software_gdi_cflags | ||
1045 | EVAS_STATIC_BUILD_BUFFER_FALSE | ||
1046 | EVAS_STATIC_BUILD_BUFFER_TRUE | ||
1047 | BUILD_ENGINE_BUFFER_FALSE | ||
1048 | BUILD_ENGINE_BUFFER_TRUE | ||
1049 | evas_engine_buffer_libs | ||
1050 | evas_engine_buffer_cflags | ||
1051 | EVAS_CSERVE_FALSE | ||
1052 | EVAS_CSERVE_TRUE | ||
1053 | SHM_OPEN_LINK | ||
1054 | dlopen_libs | ||
1055 | EFL_FNMATCH_LIBS | ||
1056 | ALLOCA | ||
1057 | lt_enable_auto_import | ||
1058 | PIXMAN_LIBS | ||
1059 | PIXMAN_CFLAGS | ||
1060 | HARFBUZZ_LIBS | ||
1061 | HARFBUZZ_CFLAGS | ||
1062 | FRIBIDI_LIBS | ||
1063 | FRIBIDI_CFLAGS | ||
1064 | LINEBREAK_LIBS | ||
1065 | LINEBREAK_CFLAGS | ||
1066 | EVAS_USE_LINEBREAK_FALSE | ||
1067 | EVAS_USE_LINEBREAK_TRUE | ||
1068 | FONTCONFIG_LIBS | ||
1069 | FONTCONFIG_CFLAGS | ||
1070 | FREETYPE_LIBS | ||
1071 | FREETYPE_CFLAGS | ||
1072 | EINA_LIBS | ||
1073 | EINA_CFLAGS | ||
1074 | EVAS_HAVE_EXOTIC_FALSE | ||
1075 | EVAS_HAVE_EXOTIC_TRUE | ||
1076 | EXOTIC_LIBS | ||
1077 | EXOTIC_CFLAGS | ||
1078 | EVIL_LIBS | ||
1079 | EVIL_CFLAGS | ||
1080 | EFL_BUILD_DOC_FALSE | ||
1081 | EFL_BUILD_DOC_TRUE | ||
1082 | efl_doxygen | ||
1083 | efl_have_doxygen | ||
1084 | pkgconfig_requires_private | ||
1085 | PKG_CONFIG_LIBDIR | ||
1086 | PKG_CONFIG_PATH | ||
1087 | PKG_CONFIG | ||
1088 | CXXCPP | ||
1089 | am__fastdepCXX_FALSE | ||
1090 | am__fastdepCXX_TRUE | ||
1091 | CXXDEPMODE | ||
1092 | ac_ct_CXX | ||
1093 | CXXFLAGS | ||
1094 | CXX | ||
1095 | am__fastdepOBJC_FALSE | ||
1096 | am__fastdepOBJC_TRUE | ||
1097 | OBJCDEPMODE | ||
1098 | ac_ct_OBJC | ||
1099 | OBJCFLAGS | ||
1100 | OBJC | ||
1101 | MODULE_ARCH | ||
1102 | VMAJ | ||
1103 | release_info | ||
1104 | version_info | ||
1105 | OTOOL64 | ||
1106 | OTOOL | ||
1107 | LIPO | ||
1108 | NMEDIT | ||
1109 | DSYMUTIL | ||
1110 | lt_ECHO | ||
1111 | RANLIB | ||
1112 | AR | ||
1113 | LN_S | ||
1114 | NM | ||
1115 | ac_ct_DUMPBIN | ||
1116 | DUMPBIN | ||
1117 | LD | ||
1118 | FGREP | ||
1119 | SED | ||
1120 | LIBTOOL | ||
1121 | OBJDUMP | ||
1122 | DLLTOOL | ||
1123 | AS | ||
1124 | host_os | ||
1125 | host_vendor | ||
1126 | host_cpu | ||
1127 | host | ||
1128 | build_os | ||
1129 | build_vendor | ||
1130 | build_cpu | ||
1131 | build | ||
1132 | EGREP | ||
1133 | GREP | ||
1134 | CPP | ||
1135 | am__fastdepCC_FALSE | ||
1136 | am__fastdepCC_TRUE | ||
1137 | CCDEPMODE | ||
1138 | AMDEPBACKSLASH | ||
1139 | AMDEP_FALSE | ||
1140 | AMDEP_TRUE | ||
1141 | am__quote | ||
1142 | am__include | ||
1143 | DEPDIR | ||
1144 | OBJEXT | ||
1145 | EXEEXT | ||
1146 | ac_ct_CC | ||
1147 | CPPFLAGS | ||
1148 | LDFLAGS | ||
1149 | CFLAGS | ||
1150 | CC | ||
1151 | AM_BACKSLASH | ||
1152 | AM_DEFAULT_VERBOSITY | ||
1153 | am__untar | ||
1154 | am__tar | ||
1155 | AMTAR | ||
1156 | am__leading_dot | ||
1157 | SET_MAKE | ||
1158 | AWK | ||
1159 | mkdir_p | ||
1160 | MKDIR_P | ||
1161 | INSTALL_STRIP_PROGRAM | ||
1162 | STRIP | ||
1163 | install_sh | ||
1164 | MAKEINFO | ||
1165 | AUTOHEADER | ||
1166 | AUTOMAKE | ||
1167 | AUTOCONF | ||
1168 | ACLOCAL | ||
1169 | VERSION | ||
1170 | PACKAGE | ||
1171 | CYGPATH_W | ||
1172 | am__isrc | ||
1173 | INSTALL_DATA | ||
1174 | INSTALL_SCRIPT | ||
1175 | INSTALL_PROGRAM | ||
1176 | target_alias | ||
1177 | host_alias | ||
1178 | build_alias | ||
1179 | LIBS | ||
1180 | ECHO_T | ||
1181 | ECHO_N | ||
1182 | ECHO_C | ||
1183 | DEFS | ||
1184 | mandir | ||
1185 | localedir | ||
1186 | libdir | ||
1187 | psdir | ||
1188 | pdfdir | ||
1189 | dvidir | ||
1190 | htmldir | ||
1191 | infodir | ||
1192 | docdir | ||
1193 | oldincludedir | ||
1194 | includedir | ||
1195 | localstatedir | ||
1196 | sharedstatedir | ||
1197 | sysconfdir | ||
1198 | datadir | ||
1199 | datarootdir | ||
1200 | libexecdir | ||
1201 | sbindir | ||
1202 | bindir | ||
1203 | program_transform_name | ||
1204 | prefix | ||
1205 | exec_prefix | ||
1206 | PACKAGE_URL | ||
1207 | PACKAGE_BUGREPORT | ||
1208 | PACKAGE_STRING | ||
1209 | PACKAGE_VERSION | ||
1210 | PACKAGE_TARNAME | ||
1211 | PACKAGE_NAME | ||
1212 | PATH_SEPARATOR | ||
1213 | SHELL' | ||
1214 | ac_subst_files='' | ||
1215 | ac_user_opts=' | ||
1216 | enable_option_checking | ||
1217 | enable_silent_rules | ||
1218 | enable_dependency_tracking | ||
1219 | enable_shared | ||
1220 | enable_static | ||
1221 | with_pic | ||
1222 | enable_fast_install | ||
1223 | with_gnu_ld | ||
1224 | enable_libtool_lock | ||
1225 | enable_strict | ||
1226 | enable_simple_x11 | ||
1227 | enable_doc | ||
1228 | with_doxygen | ||
1229 | enable_fontconfig | ||
1230 | enable_liblinebreak | ||
1231 | enable_fribidi | ||
1232 | enable_harfbuzz | ||
1233 | enable_pixman | ||
1234 | enable_pixman_font | ||
1235 | enable_pixman_rect | ||
1236 | enable_pixman_line | ||
1237 | enable_pixman_poly | ||
1238 | enable_pixman_image | ||
1239 | enable_pixman_image_scale_sample | ||
1240 | enable_tile_rotate | ||
1241 | enable_evas_cserve | ||
1242 | enable_gl_flavor_gles | ||
1243 | enable_gles_variety_sgx | ||
1244 | enable_gles_variety_s3c6410 | ||
1245 | enable_buffer | ||
1246 | enable_software_gdi | ||
1247 | enable_software_ddraw | ||
1248 | enable_direct3d | ||
1249 | enable_psl1ght | ||
1250 | enable_gl_sdl | ||
1251 | enable_gl_cocoa | ||
1252 | enable_fb | ||
1253 | enable_directfb | ||
1254 | enable_software_8_x11 | ||
1255 | enable_software_16_x11 | ||
1256 | with_x | ||
1257 | enable_software_16_ddraw | ||
1258 | enable_software_16_wince | ||
1259 | enable_software_16_sdl | ||
1260 | enable_wayland_shm | ||
1261 | enable_wayland_egl | ||
1262 | enable_sdl_primitive | ||
1263 | enable_static_software_generic | ||
1264 | enable_software_xcb | ||
1265 | enable_software_xlib | ||
1266 | enable_gl_xcb | ||
1267 | enable_gl_xlib | ||
1268 | enable_static_software_16 | ||
1269 | enable_static_software_8 | ||
1270 | enable_image_loader_edb | ||
1271 | enable_image_loader_eet | ||
1272 | enable_font_loader_eet | ||
1273 | enable_image_loader_gif | ||
1274 | enable_image_loader_jpeg | ||
1275 | enable_image_loader_pmaps | ||
1276 | enable_image_loader_png | ||
1277 | enable_image_loader_svg | ||
1278 | enable_image_loader_tiff | ||
1279 | enable_image_loader_xpm | ||
1280 | enable_image_loader_bmp | ||
1281 | enable_image_loader_tga | ||
1282 | enable_image_loader_wbmp | ||
1283 | enable_image_loader_ico | ||
1284 | enable_image_loader_psd | ||
1285 | enable_image_loader_generic | ||
1286 | enable_pthreads | ||
1287 | enable_pipe_render | ||
1288 | enable_async_render | ||
1289 | enable_async_events | ||
1290 | enable_async_preload | ||
1291 | enable_cpu_mmx | ||
1292 | enable_cpu_sse | ||
1293 | enable_cpu_sse3 | ||
1294 | enable_cpu_altivec | ||
1295 | enable_cpu_neon | ||
1296 | enable_cpu_c | ||
1297 | enable_evas_magic_debug | ||
1298 | enable_word_cache | ||
1299 | enable_metric_cache | ||
1300 | enable_scale_sample | ||
1301 | enable_scale_smooth | ||
1302 | enable_convert_yuv | ||
1303 | enable_small_dither_mask | ||
1304 | enable_line_dither_mask | ||
1305 | enable_no_dither_mask | ||
1306 | enable_convert_8_rgb_332 | ||
1307 | enable_convert_8_rgb_666 | ||
1308 | enable_convert_8_rgb_232 | ||
1309 | enable_convert_8_rgb_222 | ||
1310 | enable_convert_8_rgb_221 | ||
1311 | enable_convert_8_rgb_121 | ||
1312 | enable_convert_8_rgb_111 | ||
1313 | enable_convert_16_rgb_565 | ||
1314 | enable_convert_16_bgr_565 | ||
1315 | enable_convert_16_rgb_555 | ||
1316 | enable_convert_16_rgb_444 | ||
1317 | enable_convert_16_rgb_ipq | ||
1318 | enable_convert_16_rgb_rot_0 | ||
1319 | enable_convert_16_rgb_rot_180 | ||
1320 | enable_convert_16_rgb_rot_270 | ||
1321 | enable_convert_16_rgb_rot_90 | ||
1322 | enable_convert_24_rgb_888 | ||
1323 | enable_convert_24_bgr_888 | ||
1324 | enable_convert_32_rgb_8888 | ||
1325 | enable_convert_32_rgbx_8888 | ||
1326 | enable_convert_32_bgr_8888 | ||
1327 | enable_convert_32_bgrx_8888 | ||
1328 | enable_convert_24_rgb_ezx | ||
1329 | enable_convert_32_rgb_ezx | ||
1330 | enable_convert_32_rgb_rot_0 | ||
1331 | enable_convert_32_rgb_rot_180 | ||
1332 | enable_convert_32_rgb_rot_270 | ||
1333 | enable_convert_32_rgb_rot_90 | ||
1334 | enable_convert_8_gry_1 | ||
1335 | enable_convert_8_gry_16 | ||
1336 | enable_convert_8_grayscale_64 | ||
1337 | enable_valgrind | ||
1338 | enable_install_examples | ||
1339 | enable_build_examples | ||
1340 | enable_tests | ||
1341 | enable_coverage | ||
1342 | ' | ||
1343 | ac_precious_vars='build_alias | ||
1344 | host_alias | ||
1345 | target_alias | ||
1346 | CC | ||
1347 | CFLAGS | ||
1348 | LDFLAGS | ||
1349 | LIBS | ||
1350 | CPPFLAGS | ||
1351 | CPP | ||
1352 | OBJC | ||
1353 | OBJCFLAGS | ||
1354 | CXX | ||
1355 | CXXFLAGS | ||
1356 | CCC | ||
1357 | CXXCPP | ||
1358 | PKG_CONFIG | ||
1359 | PKG_CONFIG_PATH | ||
1360 | PKG_CONFIG_LIBDIR | ||
1361 | EVIL_CFLAGS | ||
1362 | EVIL_LIBS | ||
1363 | EXOTIC_CFLAGS | ||
1364 | EXOTIC_LIBS | ||
1365 | EINA_CFLAGS | ||
1366 | EINA_LIBS | ||
1367 | FREETYPE_CFLAGS | ||
1368 | FREETYPE_LIBS | ||
1369 | FONTCONFIG_CFLAGS | ||
1370 | FONTCONFIG_LIBS | ||
1371 | FRIBIDI_CFLAGS | ||
1372 | FRIBIDI_LIBS | ||
1373 | HARFBUZZ_CFLAGS | ||
1374 | HARFBUZZ_LIBS | ||
1375 | PIXMAN_CFLAGS | ||
1376 | PIXMAN_LIBS | ||
1377 | SDL_CFLAGS | ||
1378 | SDL_LIBS | ||
1379 | GL_EET_CFLAGS | ||
1380 | GL_EET_LIBS | ||
1381 | DIRECTFB_CFLAGS | ||
1382 | DIRECTFB_LIBS | ||
1383 | XCB_CFLAGS | ||
1384 | XCB_LIBS | ||
1385 | XMKMF | ||
1386 | WAYLAND_EGL_CFLAGS | ||
1387 | WAYLAND_EGL_LIBS | ||
1388 | XCB_GL_CFLAGS | ||
1389 | XCB_GL_LIBS | ||
1390 | EDB_CFLAGS | ||
1391 | EDB_LIBS | ||
1392 | EET_CFLAGS | ||
1393 | EET_LIBS | ||
1394 | PNG_CFLAGS | ||
1395 | PNG_LIBS | ||
1396 | SVG_CFLAGS | ||
1397 | SVG_LIBS | ||
1398 | XEXT_CFLAGS | ||
1399 | XEXT_LIBS | ||
1400 | VALGRIND_CFLAGS | ||
1401 | VALGRIND_LIBS | ||
1402 | ECORE_EVAS_CFLAGS | ||
1403 | ECORE_EVAS_LIBS | ||
1404 | EDJE_CFLAGS | ||
1405 | EDJE_LIBS | ||
1406 | CHECK_CFLAGS | ||
1407 | CHECK_LIBS' | ||
1408 | |||
1409 | |||
1410 | # Initialize some variables set by options. | ||
1411 | ac_init_help= | ||
1412 | ac_init_version=false | ||
1413 | ac_unrecognized_opts= | ||
1414 | ac_unrecognized_sep= | ||
1415 | # The variables have the same names as the options, with | ||
1416 | # dashes changed to underlines. | ||
1417 | cache_file=/dev/null | ||
1418 | exec_prefix=NONE | ||
1419 | no_create= | ||
1420 | no_recursion= | ||
1421 | prefix=NONE | ||
1422 | program_prefix=NONE | ||
1423 | program_suffix=NONE | ||
1424 | program_transform_name=s,x,x, | ||
1425 | silent= | ||
1426 | site= | ||
1427 | srcdir= | ||
1428 | verbose= | ||
1429 | x_includes=NONE | ||
1430 | x_libraries=NONE | ||
1431 | |||
1432 | # Installation directory options. | ||
1433 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
1434 | # and all the variables that are supposed to be based on exec_prefix | ||
1435 | # by default will actually change. | ||
1436 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
1437 | # (The list follows the same order as the GNU Coding Standards.) | ||
1438 | bindir='${exec_prefix}/bin' | ||
1439 | sbindir='${exec_prefix}/sbin' | ||
1440 | libexecdir='${exec_prefix}/libexec' | ||
1441 | datarootdir='${prefix}/share' | ||
1442 | datadir='${datarootdir}' | ||
1443 | sysconfdir='${prefix}/etc' | ||
1444 | sharedstatedir='${prefix}/com' | ||
1445 | localstatedir='${prefix}/var' | ||
1446 | includedir='${prefix}/include' | ||
1447 | oldincludedir='/usr/include' | ||
1448 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
1449 | infodir='${datarootdir}/info' | ||
1450 | htmldir='${docdir}' | ||
1451 | dvidir='${docdir}' | ||
1452 | pdfdir='${docdir}' | ||
1453 | psdir='${docdir}' | ||
1454 | libdir='${exec_prefix}/lib' | ||
1455 | localedir='${datarootdir}/locale' | ||
1456 | mandir='${datarootdir}/man' | ||
1457 | |||
1458 | ac_prev= | ||
1459 | ac_dashdash= | ||
1460 | for ac_option | ||
1461 | do | ||
1462 | # If the previous option needs an argument, assign it. | ||
1463 | if test -n "$ac_prev"; then | ||
1464 | eval $ac_prev=\$ac_option | ||
1465 | ac_prev= | ||
1466 | continue | ||
1467 | fi | ||
1468 | |||
1469 | case $ac_option in | ||
1470 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
1471 | *=) ac_optarg= ;; | ||
1472 | *) ac_optarg=yes ;; | ||
1473 | esac | ||
1474 | |||
1475 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
1476 | |||
1477 | case $ac_dashdash$ac_option in | ||
1478 | --) | ||
1479 | ac_dashdash=yes ;; | ||
1480 | |||
1481 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
1482 | ac_prev=bindir ;; | ||
1483 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
1484 | bindir=$ac_optarg ;; | ||
1485 | |||
1486 | -build | --build | --buil | --bui | --bu) | ||
1487 | ac_prev=build_alias ;; | ||
1488 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
1489 | build_alias=$ac_optarg ;; | ||
1490 | |||
1491 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
1492 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
1493 | ac_prev=cache_file ;; | ||
1494 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
1495 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
1496 | cache_file=$ac_optarg ;; | ||
1497 | |||
1498 | --config-cache | -C) | ||
1499 | cache_file=config.cache ;; | ||
1500 | |||
1501 | -datadir | --datadir | --datadi | --datad) | ||
1502 | ac_prev=datadir ;; | ||
1503 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
1504 | datadir=$ac_optarg ;; | ||
1505 | |||
1506 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
1507 | | --dataroo | --dataro | --datar) | ||
1508 | ac_prev=datarootdir ;; | ||
1509 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
1510 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
1511 | datarootdir=$ac_optarg ;; | ||
1512 | |||
1513 | -disable-* | --disable-*) | ||
1514 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
1515 | # Reject names that are not valid shell variable names. | ||
1516 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1517 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
1518 | ac_useropt_orig=$ac_useropt | ||
1519 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1520 | case $ac_user_opts in | ||
1521 | *" | ||
1522 | "enable_$ac_useropt" | ||
1523 | "*) ;; | ||
1524 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | ||
1525 | ac_unrecognized_sep=', ';; | ||
1526 | esac | ||
1527 | eval enable_$ac_useropt=no ;; | ||
1528 | |||
1529 | -docdir | --docdir | --docdi | --doc | --do) | ||
1530 | ac_prev=docdir ;; | ||
1531 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
1532 | docdir=$ac_optarg ;; | ||
1533 | |||
1534 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
1535 | ac_prev=dvidir ;; | ||
1536 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
1537 | dvidir=$ac_optarg ;; | ||
1538 | |||
1539 | -enable-* | --enable-*) | ||
1540 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
1541 | # Reject names that are not valid shell variable names. | ||
1542 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1543 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
1544 | ac_useropt_orig=$ac_useropt | ||
1545 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1546 | case $ac_user_opts in | ||
1547 | *" | ||
1548 | "enable_$ac_useropt" | ||
1549 | "*) ;; | ||
1550 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | ||
1551 | ac_unrecognized_sep=', ';; | ||
1552 | esac | ||
1553 | eval enable_$ac_useropt=\$ac_optarg ;; | ||
1554 | |||
1555 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
1556 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
1557 | | --exec | --exe | --ex) | ||
1558 | ac_prev=exec_prefix ;; | ||
1559 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
1560 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
1561 | | --exec=* | --exe=* | --ex=*) | ||
1562 | exec_prefix=$ac_optarg ;; | ||
1563 | |||
1564 | -gas | --gas | --ga | --g) | ||
1565 | # Obsolete; use --with-gas. | ||
1566 | with_gas=yes ;; | ||
1567 | |||
1568 | -help | --help | --hel | --he | -h) | ||
1569 | ac_init_help=long ;; | ||
1570 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
1571 | ac_init_help=recursive ;; | ||
1572 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
1573 | ac_init_help=short ;; | ||
1574 | |||
1575 | -host | --host | --hos | --ho) | ||
1576 | ac_prev=host_alias ;; | ||
1577 | -host=* | --host=* | --hos=* | --ho=*) | ||
1578 | host_alias=$ac_optarg ;; | ||
1579 | |||
1580 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
1581 | ac_prev=htmldir ;; | ||
1582 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
1583 | | --ht=*) | ||
1584 | htmldir=$ac_optarg ;; | ||
1585 | |||
1586 | -includedir | --includedir | --includedi | --included | --include \ | ||
1587 | | --includ | --inclu | --incl | --inc) | ||
1588 | ac_prev=includedir ;; | ||
1589 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
1590 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
1591 | includedir=$ac_optarg ;; | ||
1592 | |||
1593 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
1594 | ac_prev=infodir ;; | ||
1595 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
1596 | infodir=$ac_optarg ;; | ||
1597 | |||
1598 | -libdir | --libdir | --libdi | --libd) | ||
1599 | ac_prev=libdir ;; | ||
1600 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
1601 | libdir=$ac_optarg ;; | ||
1602 | |||
1603 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
1604 | | --libexe | --libex | --libe) | ||
1605 | ac_prev=libexecdir ;; | ||
1606 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
1607 | | --libexe=* | --libex=* | --libe=*) | ||
1608 | libexecdir=$ac_optarg ;; | ||
1609 | |||
1610 | -localedir | --localedir | --localedi | --localed | --locale) | ||
1611 | ac_prev=localedir ;; | ||
1612 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
1613 | localedir=$ac_optarg ;; | ||
1614 | |||
1615 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
1616 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
1617 | ac_prev=localstatedir ;; | ||
1618 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
1619 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
1620 | localstatedir=$ac_optarg ;; | ||
1621 | |||
1622 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
1623 | ac_prev=mandir ;; | ||
1624 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
1625 | mandir=$ac_optarg ;; | ||
1626 | |||
1627 | -nfp | --nfp | --nf) | ||
1628 | # Obsolete; use --without-fp. | ||
1629 | with_fp=no ;; | ||
1630 | |||
1631 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
1632 | | --no-cr | --no-c | -n) | ||
1633 | no_create=yes ;; | ||
1634 | |||
1635 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
1636 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
1637 | no_recursion=yes ;; | ||
1638 | |||
1639 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
1640 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
1641 | | --oldin | --oldi | --old | --ol | --o) | ||
1642 | ac_prev=oldincludedir ;; | ||
1643 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
1644 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
1645 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
1646 | oldincludedir=$ac_optarg ;; | ||
1647 | |||
1648 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
1649 | ac_prev=prefix ;; | ||
1650 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
1651 | prefix=$ac_optarg ;; | ||
1652 | |||
1653 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
1654 | | --program-pre | --program-pr | --program-p) | ||
1655 | ac_prev=program_prefix ;; | ||
1656 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
1657 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
1658 | program_prefix=$ac_optarg ;; | ||
1659 | |||
1660 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
1661 | | --program-suf | --program-su | --program-s) | ||
1662 | ac_prev=program_suffix ;; | ||
1663 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
1664 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
1665 | program_suffix=$ac_optarg ;; | ||
1666 | |||
1667 | -program-transform-name | --program-transform-name \ | ||
1668 | | --program-transform-nam | --program-transform-na \ | ||
1669 | | --program-transform-n | --program-transform- \ | ||
1670 | | --program-transform | --program-transfor \ | ||
1671 | | --program-transfo | --program-transf \ | ||
1672 | | --program-trans | --program-tran \ | ||
1673 | | --progr-tra | --program-tr | --program-t) | ||
1674 | ac_prev=program_transform_name ;; | ||
1675 | -program-transform-name=* | --program-transform-name=* \ | ||
1676 | | --program-transform-nam=* | --program-transform-na=* \ | ||
1677 | | --program-transform-n=* | --program-transform-=* \ | ||
1678 | | --program-transform=* | --program-transfor=* \ | ||
1679 | | --program-transfo=* | --program-transf=* \ | ||
1680 | | --program-trans=* | --program-tran=* \ | ||
1681 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
1682 | program_transform_name=$ac_optarg ;; | ||
1683 | |||
1684 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
1685 | ac_prev=pdfdir ;; | ||
1686 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
1687 | pdfdir=$ac_optarg ;; | ||
1688 | |||
1689 | -psdir | --psdir | --psdi | --psd | --ps) | ||
1690 | ac_prev=psdir ;; | ||
1691 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
1692 | psdir=$ac_optarg ;; | ||
1693 | |||
1694 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1695 | | -silent | --silent | --silen | --sile | --sil) | ||
1696 | silent=yes ;; | ||
1697 | |||
1698 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1699 | ac_prev=sbindir ;; | ||
1700 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1701 | | --sbi=* | --sb=*) | ||
1702 | sbindir=$ac_optarg ;; | ||
1703 | |||
1704 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1705 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1706 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1707 | | --sha | --sh) | ||
1708 | ac_prev=sharedstatedir ;; | ||
1709 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1710 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1711 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1712 | | --sha=* | --sh=*) | ||
1713 | sharedstatedir=$ac_optarg ;; | ||
1714 | |||
1715 | -site | --site | --sit) | ||
1716 | ac_prev=site ;; | ||
1717 | -site=* | --site=* | --sit=*) | ||
1718 | site=$ac_optarg ;; | ||
1719 | |||
1720 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1721 | ac_prev=srcdir ;; | ||
1722 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1723 | srcdir=$ac_optarg ;; | ||
1724 | |||
1725 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1726 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1727 | ac_prev=sysconfdir ;; | ||
1728 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1729 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1730 | sysconfdir=$ac_optarg ;; | ||
1731 | |||
1732 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1733 | ac_prev=target_alias ;; | ||
1734 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1735 | target_alias=$ac_optarg ;; | ||
1736 | |||
1737 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1738 | verbose=yes ;; | ||
1739 | |||
1740 | -version | --version | --versio | --versi | --vers | -V) | ||
1741 | ac_init_version=: ;; | ||
1742 | |||
1743 | -with-* | --with-*) | ||
1744 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1745 | # Reject names that are not valid shell variable names. | ||
1746 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1747 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1748 | ac_useropt_orig=$ac_useropt | ||
1749 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1750 | case $ac_user_opts in | ||
1751 | *" | ||
1752 | "with_$ac_useropt" | ||
1753 | "*) ;; | ||
1754 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | ||
1755 | ac_unrecognized_sep=', ';; | ||
1756 | esac | ||
1757 | eval with_$ac_useropt=\$ac_optarg ;; | ||
1758 | |||
1759 | -without-* | --without-*) | ||
1760 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1761 | # Reject names that are not valid shell variable names. | ||
1762 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1763 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1764 | ac_useropt_orig=$ac_useropt | ||
1765 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1766 | case $ac_user_opts in | ||
1767 | *" | ||
1768 | "with_$ac_useropt" | ||
1769 | "*) ;; | ||
1770 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | ||
1771 | ac_unrecognized_sep=', ';; | ||
1772 | esac | ||
1773 | eval with_$ac_useropt=no ;; | ||
1774 | |||
1775 | --x) | ||
1776 | # Obsolete; use --with-x. | ||
1777 | with_x=yes ;; | ||
1778 | |||
1779 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1780 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1781 | ac_prev=x_includes ;; | ||
1782 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1783 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1784 | x_includes=$ac_optarg ;; | ||
1785 | |||
1786 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1787 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1788 | ac_prev=x_libraries ;; | ||
1789 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1790 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1791 | x_libraries=$ac_optarg ;; | ||
1792 | |||
1793 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | ||
1794 | Try \`$0 --help' for more information" | ||
1795 | ;; | ||
1796 | |||
1797 | *=*) | ||
1798 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1799 | # Reject names that are not valid shell variable names. | ||
1800 | case $ac_envvar in #( | ||
1801 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | ||
1802 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | ||
1803 | esac | ||
1804 | eval $ac_envvar=\$ac_optarg | ||
1805 | export $ac_envvar ;; | ||
1806 | |||
1807 | *) | ||
1808 | # FIXME: should be removed in autoconf 3.0. | ||
1809 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1810 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1811 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1812 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
1813 | ;; | ||
1814 | |||
1815 | esac | ||
1816 | done | ||
1817 | |||
1818 | if test -n "$ac_prev"; then | ||
1819 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1820 | as_fn_error $? "missing argument to $ac_option" | ||
1821 | fi | ||
1822 | |||
1823 | if test -n "$ac_unrecognized_opts"; then | ||
1824 | case $enable_option_checking in | ||
1825 | no) ;; | ||
1826 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | ||
1827 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | ||
1828 | esac | ||
1829 | fi | ||
1830 | |||
1831 | # Check all directory arguments for consistency. | ||
1832 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1833 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1834 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1835 | libdir localedir mandir | ||
1836 | do | ||
1837 | eval ac_val=\$$ac_var | ||
1838 | # Remove trailing slashes. | ||
1839 | case $ac_val in | ||
1840 | */ ) | ||
1841 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | ||
1842 | eval $ac_var=\$ac_val;; | ||
1843 | esac | ||
1844 | # Be sure to have absolute directory names. | ||
1845 | case $ac_val in | ||
1846 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1847 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1848 | esac | ||
1849 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | ||
1850 | done | ||
1851 | |||
1852 | # There might be people who depend on the old broken behavior: `$host' | ||
1853 | # used to hold the argument of --host etc. | ||
1854 | # FIXME: To remove some day. | ||
1855 | build=$build_alias | ||
1856 | host=$host_alias | ||
1857 | target=$target_alias | ||
1858 | |||
1859 | # FIXME: To remove some day. | ||
1860 | if test "x$host_alias" != x; then | ||
1861 | if test "x$build_alias" = x; then | ||
1862 | cross_compiling=maybe | ||
1863 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | ||
1864 | If a cross compiler is detected then cross compile mode will be used" >&2 | ||
1865 | elif test "x$build_alias" != "x$host_alias"; then | ||
1866 | cross_compiling=yes | ||
1867 | fi | ||
1868 | fi | ||
1869 | |||
1870 | ac_tool_prefix= | ||
1871 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1872 | |||
1873 | test "$silent" = yes && exec 6>/dev/null | ||
1874 | |||
1875 | |||
1876 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1877 | ac_ls_di=`ls -di .` && | ||
1878 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1879 | as_fn_error $? "working directory cannot be determined" | ||
1880 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1881 | as_fn_error $? "pwd does not report name of working directory" | ||
1882 | |||
1883 | |||
1884 | # Find the source files, if location was not specified. | ||
1885 | if test -z "$srcdir"; then | ||
1886 | ac_srcdir_defaulted=yes | ||
1887 | # Try the directory containing this script, then the parent directory. | ||
1888 | ac_confdir=`$as_dirname -- "$as_myself" || | ||
1889 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1890 | X"$as_myself" : 'X\(//\)[^/]' \| \ | ||
1891 | X"$as_myself" : 'X\(//\)$' \| \ | ||
1892 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | ||
1893 | $as_echo X"$as_myself" | | ||
1894 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1895 | s//\1/ | ||
1896 | q | ||
1897 | } | ||
1898 | /^X\(\/\/\)[^/].*/{ | ||
1899 | s//\1/ | ||
1900 | q | ||
1901 | } | ||
1902 | /^X\(\/\/\)$/{ | ||
1903 | s//\1/ | ||
1904 | q | ||
1905 | } | ||
1906 | /^X\(\/\).*/{ | ||
1907 | s//\1/ | ||
1908 | q | ||
1909 | } | ||
1910 | s/.*/./; q'` | ||
1911 | srcdir=$ac_confdir | ||
1912 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1913 | srcdir=.. | ||
1914 | fi | ||
1915 | else | ||
1916 | ac_srcdir_defaulted=no | ||
1917 | fi | ||
1918 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1919 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1920 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | ||
1921 | fi | ||
1922 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1923 | ac_abs_confdir=`( | ||
1924 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | ||
1925 | pwd)` | ||
1926 | # When building in place, set srcdir=. | ||
1927 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1928 | srcdir=. | ||
1929 | fi | ||
1930 | # Remove unnecessary trailing slashes from srcdir. | ||
1931 | # Double slashes in file names in object file debugging info | ||
1932 | # mess up M-x gdb in Emacs. | ||
1933 | case $srcdir in | ||
1934 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1935 | esac | ||
1936 | for ac_var in $ac_precious_vars; do | ||
1937 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1938 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1939 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1940 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1941 | done | ||
1942 | |||
1943 | # | ||
1944 | # Report the --help message. | ||
1945 | # | ||
1946 | if test "$ac_init_help" = "long"; then | ||
1947 | # Omit some internal or obsolete options to make the list less imposing. | ||
1948 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1949 | cat <<_ACEOF | ||
1950 | \`configure' configures evas 1.2.0-alpha to adapt to many kinds of systems. | ||
1951 | |||
1952 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1953 | |||
1954 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1955 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1956 | |||
1957 | Defaults for the options are specified in brackets. | ||
1958 | |||
1959 | Configuration: | ||
1960 | -h, --help display this help and exit | ||
1961 | --help=short display options specific to this package | ||
1962 | --help=recursive display the short help of all the included packages | ||
1963 | -V, --version display version information and exit | ||
1964 | -q, --quiet, --silent do not print \`checking ...' messages | ||
1965 | --cache-file=FILE cache test results in FILE [disabled] | ||
1966 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1967 | -n, --no-create do not create output files | ||
1968 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1969 | |||
1970 | Installation directories: | ||
1971 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1972 | [$ac_default_prefix] | ||
1973 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1974 | [PREFIX] | ||
1975 | |||
1976 | By default, \`make install' will install all the files in | ||
1977 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1978 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1979 | for instance \`--prefix=\$HOME'. | ||
1980 | |||
1981 | For better control, use the options below. | ||
1982 | |||
1983 | Fine tuning of the installation directories: | ||
1984 | --bindir=DIR user executables [EPREFIX/bin] | ||
1985 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1986 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1987 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1988 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1989 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1990 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1991 | --includedir=DIR C header files [PREFIX/include] | ||
1992 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1993 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1994 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1995 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1996 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1997 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1998 | --docdir=DIR documentation root [DATAROOTDIR/doc/evas] | ||
1999 | --htmldir=DIR html documentation [DOCDIR] | ||
2000 | --dvidir=DIR dvi documentation [DOCDIR] | ||
2001 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
2002 | --psdir=DIR ps documentation [DOCDIR] | ||
2003 | _ACEOF | ||
2004 | |||
2005 | cat <<\_ACEOF | ||
2006 | |||
2007 | Program names: | ||
2008 | --program-prefix=PREFIX prepend PREFIX to installed program names | ||
2009 | --program-suffix=SUFFIX append SUFFIX to installed program names | ||
2010 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | ||
2011 | |||
2012 | X features: | ||
2013 | --x-includes=DIR X include files are in DIR | ||
2014 | --x-libraries=DIR X library files are in DIR | ||
2015 | |||
2016 | System types: | ||
2017 | --build=BUILD configure for building on BUILD [guessed] | ||
2018 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
2019 | _ACEOF | ||
2020 | fi | ||
2021 | |||
2022 | if test -n "$ac_init_help"; then | ||
2023 | case $ac_init_help in | ||
2024 | short | recursive ) echo "Configuration of evas 1.2.0-alpha:";; | ||
2025 | esac | ||
2026 | cat <<\_ACEOF | ||
2027 | |||
2028 | Optional Features: | ||
2029 | --disable-option-checking ignore unrecognized --enable/--with options | ||
2030 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
2031 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
2032 | --enable-silent-rules less verbose build output (undo: `make V=1') | ||
2033 | --disable-silent-rules verbose build output (undo: `make V=0') | ||
2034 | --disable-dependency-tracking speeds up one-time build | ||
2035 | --enable-dependency-tracking do not reject slow dependency extractors | ||
2036 | --enable-shared[=PKGS] build shared libraries [default=yes] | ||
2037 | --enable-static[=PKGS] build static libraries [default=yes] | ||
2038 | --enable-fast-install[=PKGS] | ||
2039 | optimize for fast installation [default=yes] | ||
2040 | --disable-libtool-lock avoid locking (might break parallel builds) | ||
2041 | --enable-strict enable strict checking mode. [default==disabled] | ||
2042 | --enable-simple-x11 enable simple x11 linking | ||
2043 | --disable-doc Disable documentation build [default=enabled] | ||
2044 | --disable-fontconfig disable fontconfig for finding fonts. | ||
2045 | [default=enabled] | ||
2046 | --disable-liblinebreak disable linking against liblinebreak. | ||
2047 | [default=enabled] | ||
2048 | --disable-fribidi disable bidirectional text support. | ||
2049 | [default=enabled] | ||
2050 | --disable-harfbuzz disable complex text shaping and layouting support. | ||
2051 | [default=enabled] | ||
2052 | --enable-pixman enable pixman for software rendering. | ||
2053 | [default=enabled] | ||
2054 | --enable-pixman-font Allow pixman to render fonts | ||
2055 | --enable-pixman-rect Allow pixman to render rects | ||
2056 | --enable-pixman-line Allow pixman to render lines | ||
2057 | --enable-pixman-poly Allow pixman to render polys | ||
2058 | --enable-pixman-image Allow pixman to render images | ||
2059 | --enable-pixman-image-scale-sample | ||
2060 | Allow pixman to render sampled scaled images | ||
2061 | --enable-tile-rotate Enable tiled rotate algorithm | ||
2062 | --disable-evas-cserve disable shared cache server support. | ||
2063 | [default=enabled] | ||
2064 | --enable-gl-flavor-gles enable gles flavor of gl instead of standard | ||
2065 | --enable-gles-variety-sgx | ||
2066 | GLES variety SGX 3D unit | ||
2067 | --enable-gles-variety-s3c6410 | ||
2068 | GLES variety s3c6410 3D unit | ||
2069 | --enable-buffer enable Buffer rendering backend | ||
2070 | --enable-software-gdi enable Software GDI rendering backend | ||
2071 | --enable-software-ddraw enable Software DirectDraw rendering backend | ||
2072 | --enable-direct3d enable Direct3D rendering backend | ||
2073 | --enable-psl1ght enable PSL1GHT rendering backend | ||
2074 | --enable-gl-sdl enable OpenGL SDL rendering backend | ||
2075 | --enable-gl-cocoa enable OpenGL Cocoa rendering backend | ||
2076 | --enable-fb enable Framebuffer rendering backend | ||
2077 | --enable-directfb enable DirectFB rendering backend | ||
2078 | --enable-software-8-x11 enable Software X11 8 bits grayscale rendering | ||
2079 | backend | ||
2080 | --enable-software-16-x11 | ||
2081 | enable Software X11 16 bits rendering backend | ||
2082 | --enable-software-16-ddraw | ||
2083 | enable Software DirectDraw 16 bits rendering backend | ||
2084 | --enable-software-16-wince | ||
2085 | enable Software Windows CE 16 bits rendering backend | ||
2086 | --enable-software-16-sdl | ||
2087 | enable Software SDL 16 bits rendering backend | ||
2088 | --enable-wayland-shm enable Wayland Shm rendering backend | ||
2089 | --enable-wayland-egl enable Wayland Egl rendering backend | ||
2090 | --enable-sdl-primitive | ||
2091 | --enable-static-software-generic | ||
2092 | Build software generic engine as part of libevas | ||
2093 | --enable-software-xcb enable Software XCB Engine. [default=disabled] | ||
2094 | --enable-software-xcb enable Software XCB rendering backend | ||
2095 | --enable-software-xlib enable Software Xlib rendering backend | ||
2096 | --enable-gl-xcb enable OpenGL XCB Engine. [default=disabled] | ||
2097 | --enable-gl-xcb enable OpenGL XCB rendering backend | ||
2098 | --enable-gl-xlib enable OpenGL XLib rendering backend | ||
2099 | --enable-static-software-16 | ||
2100 | Build software 16 engine as part of libevas | ||
2101 | --enable-static-software-8 | ||
2102 | Build software 8 engine as part of libevas | ||
2103 | --enable-image-loader-edb | ||
2104 | enable Edb image loader | ||
2105 | --enable-image-loader-eet | ||
2106 | enable Eet image loader | ||
2107 | --disable-font-loader-eet | ||
2108 | disable EET font loader. [[default=enabled]] | ||
2109 | --enable-image-loader-gif | ||
2110 | enable Gif image loader | ||
2111 | --enable-image-loader-jpeg | ||
2112 | enable Jpeg image loader | ||
2113 | --enable-image-loader-pmaps | ||
2114 | enable PMAPS image loader | ||
2115 | --enable-image-loader-png | ||
2116 | enable PNG image loader | ||
2117 | --enable-image-loader-svg | ||
2118 | enable SVG image loader | ||
2119 | --enable-image-loader-tiff | ||
2120 | enable Tiff image loader | ||
2121 | --enable-image-loader-xpm | ||
2122 | enable XPM image loader | ||
2123 | --enable-image-loader-bmp | ||
2124 | enable BMP image loader | ||
2125 | --enable-image-loader-tga | ||
2126 | enable TGA image loader | ||
2127 | --enable-image-loader-wbmp | ||
2128 | enable WBMP image loader | ||
2129 | --enable-image-loader-ico | ||
2130 | enable ICO image loader | ||
2131 | --enable-image-loader-psd | ||
2132 | enable PSD image loader | ||
2133 | --enable-image-loader-generic | ||
2134 | enable GENERIC image loader | ||
2135 | --enable-pthreads enable threaded rendering | ||
2136 | --enable-pipe-render enable threaded pipe rendering support | ||
2137 | --enable-async-render enable asynchronously threaded pipe rendering | ||
2138 | support | ||
2139 | --enable-async-events enable async events support | ||
2140 | --enable-async-preload enable async image preloading support | ||
2141 | --enable-cpu-mmx enable mmx code | ||
2142 | --enable-cpu-sse enable sse code | ||
2143 | --enable-cpu-sse3 enable sse3 code | ||
2144 | --enable-cpu-altivec enable altivec code | ||
2145 | --enable-cpu-neon build neon code, the code will be checked at run | ||
2146 | time to see if the CPU supports it | ||
2147 | --enable-cpu-c enable C code | ||
2148 | --disable-evas-magic-debug | ||
2149 | disable MAGIC_DEBUG check when people pass in wrong | ||
2150 | object type. [[default=enabled]] | ||
2151 | --enable-word-cache Enable experimental word caching to speed up | ||
2152 | rendering [[default=disabled]] | ||
2153 | --enable-metric-cache Enable experimental metric caching to speed up | ||
2154 | rendering [[default=disabled]] | ||
2155 | --disable-scale-sample disable sampling scaler code [default=enabled] | ||
2156 | --disable-scale-smooth disable smooth scaler code [default=enabled] | ||
2157 | --enable-convert-yuv enable yuv converter code | ||
2158 | --enable-small-dither-mask | ||
2159 | enable small dither mask [default=disabled] | ||
2160 | --enable-line-dither-mask | ||
2161 | enable line dither mask [default=disabled] | ||
2162 | --enable-no-dither-mask enable conversion to 16bpp without dither mask | ||
2163 | [default=disabled] | ||
2164 | --disable-convert-8-rgb-332 | ||
2165 | disable the 8bpp RGB 332 converter code | ||
2166 | --disable-convert-8-rgb-666 | ||
2167 | disable the 8bpp RGB 666 converter code | ||
2168 | --disable-convert-8-rgb-232 | ||
2169 | disable the 8bpp RGB 232 converter code | ||
2170 | --disable-convert-8-rgb-222 | ||
2171 | disable the 8bpp RGB 222 converter code | ||
2172 | --disable-convert-8-rgb-221 | ||
2173 | disable the 8bpp RGB 221 converter code | ||
2174 | --disable-convert-8-rgb-121 | ||
2175 | disable the 8bpp RGB 121 converter code | ||
2176 | --disable-convert-8-rgb-111 | ||
2177 | disable the 8bpp RGB 111 converter code | ||
2178 | --disable-convert-16-rgb-565 | ||
2179 | disable the 16bpp RGB 565 converter code | ||
2180 | --disable-convert-16-bgr-565 | ||
2181 | disable the 16bpp BGR 565 converter code | ||
2182 | --disable-convert-16-rgb-555 | ||
2183 | disable the 16bpp RGB 555 converter code | ||
2184 | --disable-convert-16-rgb-444 | ||
2185 | disable the 16bpp RGB 444 converter code | ||
2186 | --disable-convert-16-rgb-ipq | ||
2187 | disable 16bpp 565 (444 ipaq) converter code | ||
2188 | --disable-convert-16-rgb-rot-0 | ||
2189 | disable the 16bpp RGB rotation 0 converter code | ||
2190 | --disable-convert-16-rgb-rot-180 | ||
2191 | disable the 16bpp RGB rotation 180 converter code | ||
2192 | --disable-convert-16-rgb-rot-270 | ||
2193 | disable the 16bpp RGB rotation 270 converter code | ||
2194 | --disable-convert-16-rgb-rot-90 | ||
2195 | disable the 16bpp RGB rotation 90 converter code | ||
2196 | --disable-convert-24-rgb-888 | ||
2197 | disable the 24bpp RGB 888 converter code | ||
2198 | --disable-convert-24-bgr-888 | ||
2199 | disable the 24bpp BGR 888 converter code | ||
2200 | --disable-convert-32-rgb-8888 | ||
2201 | disable the 32bpp RGB 8888 converter code | ||
2202 | --disable-convert-32-rgbx-8888 | ||
2203 | disable the 32bpp RGBX 8888 converter code | ||
2204 | --disable-convert-32-bgr-8888 | ||
2205 | disable the 32bpp BGR 8888 converter code | ||
2206 | --disable-convert-32-bgrx-8888 | ||
2207 | disable the 32bpp BGRX 8888 converter code | ||
2208 | --disable-convert-24-rgb-ezx | ||
2209 | disable 24bpp 666 (666 ezx) converter code | ||
2210 | --disable-convert-32-rgb-ezx | ||
2211 | disable 32bpp 666 (666 ezx) converter code | ||
2212 | --disable-convert-32-rgb-rot-0 | ||
2213 | disable the 32bpp RGB rotation 0 converter code | ||
2214 | --disable-convert-32-rgb-rot-180 | ||
2215 | disable the 32bpp RGB rotation 180 converter code | ||
2216 | --disable-convert-32-rgb-rot-270 | ||
2217 | disable the 32bpp RGB rotation 270 converter code | ||
2218 | --disable-convert-32-rgb-rot-90 | ||
2219 | disable the 32bpp RGB rotation 90 converter code | ||
2220 | --disable-convert-8-gry-1 | ||
2221 | disable the 8bpp GRY 1 converter code | ||
2222 | --disable-convert-8-gry-16 | ||
2223 | disable the 8bpp GRY 16 converter code | ||
2224 | --disable-convert-8-grayscale-64 | ||
2225 | disable 8bpp grayscale 64-palette converter code | ||
2226 | --enable-valgrind enable valgrind fixes to stop false reports | ||
2227 | --disable-install-examples | ||
2228 | disable installing examples (compiled or just | ||
2229 | source). [default==enabled] | ||
2230 | --enable-build-examples enable building examples (this requires extra | ||
2231 | denpendencies. if you don't have them installed yet, | ||
2232 | don't build with this option or it will fail. build | ||
2233 | again when you have it, overriding the previous | ||
2234 | installation). [default==disabled] | ||
2235 | --enable-tests enable tests [default=disabled] | ||
2236 | --enable-coverage enable coverage profiling instrumentation | ||
2237 | [default=disabled] | ||
2238 | |||
2239 | Optional Packages: | ||
2240 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
2241 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
2242 | --with-pic try to use only PIC/non-PIC objects [default=use | ||
2243 | both] | ||
2244 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | ||
2245 | --with-doxygen=FILE doxygen program to use [default=doxygen] | ||
2246 | --with-x use the X Window System | ||
2247 | |||
2248 | Some influential environment variables: | ||
2249 | CC C compiler command | ||
2250 | CFLAGS C compiler flags | ||
2251 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
2252 | nonstandard directory <lib dir> | ||
2253 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
2254 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | ||
2255 | you have headers in a nonstandard directory <include dir> | ||
2256 | CPP C preprocessor | ||
2257 | OBJC Objective C compiler command | ||
2258 | OBJCFLAGS Objective C compiler flags | ||
2259 | CXX C++ compiler command | ||
2260 | CXXFLAGS C++ compiler flags | ||
2261 | CXXCPP C++ preprocessor | ||
2262 | PKG_CONFIG path to pkg-config utility | ||
2263 | PKG_CONFIG_PATH | ||
2264 | directories to add to pkg-config's search path | ||
2265 | PKG_CONFIG_LIBDIR | ||
2266 | path overriding pkg-config's built-in search path | ||
2267 | EVIL_CFLAGS C compiler flags for EVIL, overriding pkg-config | ||
2268 | EVIL_LIBS linker flags for EVIL, overriding pkg-config | ||
2269 | EXOTIC_CFLAGS | ||
2270 | C compiler flags for EXOTIC, overriding pkg-config | ||
2271 | EXOTIC_LIBS linker flags for EXOTIC, overriding pkg-config | ||
2272 | EINA_CFLAGS C compiler flags for EINA, overriding pkg-config | ||
2273 | EINA_LIBS linker flags for EINA, overriding pkg-config | ||
2274 | FREETYPE_CFLAGS | ||
2275 | C compiler flags for FREETYPE, overriding pkg-config | ||
2276 | FREETYPE_LIBS | ||
2277 | linker flags for FREETYPE, overriding pkg-config | ||
2278 | FONTCONFIG_CFLAGS | ||
2279 | C compiler flags for FONTCONFIG, overriding pkg-config | ||
2280 | FONTCONFIG_LIBS | ||
2281 | linker flags for FONTCONFIG, overriding pkg-config | ||
2282 | FRIBIDI_CFLAGS | ||
2283 | C compiler flags for FRIBIDI, overriding pkg-config | ||
2284 | FRIBIDI_LIBS | ||
2285 | linker flags for FRIBIDI, overriding pkg-config | ||
2286 | HARFBUZZ_CFLAGS | ||
2287 | C compiler flags for HARFBUZZ, overriding pkg-config | ||
2288 | HARFBUZZ_LIBS | ||
2289 | linker flags for HARFBUZZ, overriding pkg-config | ||
2290 | PIXMAN_CFLAGS | ||
2291 | C compiler flags for PIXMAN, overriding pkg-config | ||
2292 | PIXMAN_LIBS linker flags for PIXMAN, overriding pkg-config | ||
2293 | SDL_CFLAGS C compiler flags for SDL, overriding pkg-config | ||
2294 | SDL_LIBS linker flags for SDL, overriding pkg-config | ||
2295 | GL_EET_CFLAGS | ||
2296 | C compiler flags for GL_EET, overriding pkg-config | ||
2297 | GL_EET_LIBS linker flags for GL_EET, overriding pkg-config | ||
2298 | DIRECTFB_CFLAGS | ||
2299 | C compiler flags for DIRECTFB, overriding pkg-config | ||
2300 | DIRECTFB_LIBS | ||
2301 | linker flags for DIRECTFB, overriding pkg-config | ||
2302 | XCB_CFLAGS C compiler flags for XCB, overriding pkg-config | ||
2303 | XCB_LIBS linker flags for XCB, overriding pkg-config | ||
2304 | XMKMF Path to xmkmf, Makefile generator for X Window System | ||
2305 | WAYLAND_EGL_CFLAGS | ||
2306 | C compiler flags for WAYLAND_EGL, overriding pkg-config | ||
2307 | WAYLAND_EGL_LIBS | ||
2308 | linker flags for WAYLAND_EGL, overriding pkg-config | ||
2309 | XCB_GL_CFLAGS | ||
2310 | C compiler flags for XCB_GL, overriding pkg-config | ||
2311 | XCB_GL_LIBS linker flags for XCB_GL, overriding pkg-config | ||
2312 | EDB_CFLAGS C compiler flags for EDB, overriding pkg-config | ||
2313 | EDB_LIBS linker flags for EDB, overriding pkg-config | ||
2314 | EET_CFLAGS C compiler flags for EET, overriding pkg-config | ||
2315 | EET_LIBS linker flags for EET, overriding pkg-config | ||
2316 | PNG_CFLAGS C compiler flags for PNG, overriding pkg-config | ||
2317 | PNG_LIBS linker flags for PNG, overriding pkg-config | ||
2318 | SVG_CFLAGS C compiler flags for SVG, overriding pkg-config | ||
2319 | SVG_LIBS linker flags for SVG, overriding pkg-config | ||
2320 | XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config | ||
2321 | XEXT_LIBS linker flags for XEXT, overriding pkg-config | ||
2322 | VALGRIND_CFLAGS | ||
2323 | C compiler flags for VALGRIND, overriding pkg-config | ||
2324 | VALGRIND_LIBS | ||
2325 | linker flags for VALGRIND, overriding pkg-config | ||
2326 | ECORE_EVAS_CFLAGS | ||
2327 | C compiler flags for ECORE_EVAS, overriding pkg-config | ||
2328 | ECORE_EVAS_LIBS | ||
2329 | linker flags for ECORE_EVAS, overriding pkg-config | ||
2330 | EDJE_CFLAGS C compiler flags for EDJE, overriding pkg-config | ||
2331 | EDJE_LIBS linker flags for EDJE, overriding pkg-config | ||
2332 | CHECK_CFLAGS | ||
2333 | C compiler flags for CHECK, overriding pkg-config | ||
2334 | CHECK_LIBS linker flags for CHECK, overriding pkg-config | ||
2335 | |||
2336 | Use these variables to override the choices made by `configure' or to help | ||
2337 | it to find libraries and programs with nonstandard names/locations. | ||
2338 | |||
2339 | Report bugs to <enlightenment-devel@lists.sourceforge.net>. | ||
2340 | _ACEOF | ||
2341 | ac_status=$? | ||
2342 | fi | ||
2343 | |||
2344 | if test "$ac_init_help" = "recursive"; then | ||
2345 | # If there are subdirs, report their specific --help. | ||
2346 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
2347 | test -d "$ac_dir" || | ||
2348 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | ||
2349 | continue | ||
2350 | ac_builddir=. | ||
2351 | |||
2352 | case "$ac_dir" in | ||
2353 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
2354 | *) | ||
2355 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
2356 | # A ".." for each directory in $ac_dir_suffix. | ||
2357 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
2358 | case $ac_top_builddir_sub in | ||
2359 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
2360 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
2361 | esac ;; | ||
2362 | esac | ||
2363 | ac_abs_top_builddir=$ac_pwd | ||
2364 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
2365 | # for backward compatibility: | ||
2366 | ac_top_builddir=$ac_top_build_prefix | ||
2367 | |||
2368 | case $srcdir in | ||
2369 | .) # We are building in place. | ||
2370 | ac_srcdir=. | ||
2371 | ac_top_srcdir=$ac_top_builddir_sub | ||
2372 | ac_abs_top_srcdir=$ac_pwd ;; | ||
2373 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
2374 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
2375 | ac_top_srcdir=$srcdir | ||
2376 | ac_abs_top_srcdir=$srcdir ;; | ||
2377 | *) # Relative name. | ||
2378 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
2379 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
2380 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
2381 | esac | ||
2382 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
2383 | |||
2384 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
2385 | # Check for guested configure. | ||
2386 | if test -f "$ac_srcdir/configure.gnu"; then | ||
2387 | echo && | ||
2388 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
2389 | elif test -f "$ac_srcdir/configure"; then | ||
2390 | echo && | ||
2391 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
2392 | else | ||
2393 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
2394 | fi || ac_status=$? | ||
2395 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
2396 | done | ||
2397 | fi | ||
2398 | |||
2399 | test -n "$ac_init_help" && exit $ac_status | ||
2400 | if $ac_init_version; then | ||
2401 | cat <<\_ACEOF | ||
2402 | evas configure 1.2.0-alpha | ||
2403 | generated by GNU Autoconf 2.67 | ||
2404 | |||
2405 | Copyright (C) 2010 Free Software Foundation, Inc. | ||
2406 | This configure script is free software; the Free Software Foundation | ||
2407 | gives unlimited permission to copy, distribute and modify it. | ||
2408 | _ACEOF | ||
2409 | exit | ||
2410 | fi | ||
2411 | |||
2412 | ## ------------------------ ## | ||
2413 | ## Autoconf initialization. ## | ||
2414 | ## ------------------------ ## | ||
2415 | |||
2416 | # ac_fn_c_try_compile LINENO | ||
2417 | # -------------------------- | ||
2418 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
2419 | ac_fn_c_try_compile () | ||
2420 | { | ||
2421 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2422 | rm -f conftest.$ac_objext | ||
2423 | if { { ac_try="$ac_compile" | ||
2424 | case "(($ac_try" in | ||
2425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2426 | *) ac_try_echo=$ac_try;; | ||
2427 | esac | ||
2428 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2429 | $as_echo "$ac_try_echo"; } >&5 | ||
2430 | (eval "$ac_compile") 2>conftest.err | ||
2431 | ac_status=$? | ||
2432 | if test -s conftest.err; then | ||
2433 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2434 | cat conftest.er1 >&5 | ||
2435 | mv -f conftest.er1 conftest.err | ||
2436 | fi | ||
2437 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2438 | test $ac_status = 0; } && { | ||
2439 | test -z "$ac_c_werror_flag" || | ||
2440 | test ! -s conftest.err | ||
2441 | } && test -s conftest.$ac_objext; then : | ||
2442 | ac_retval=0 | ||
2443 | else | ||
2444 | $as_echo "$as_me: failed program was:" >&5 | ||
2445 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2446 | |||
2447 | ac_retval=1 | ||
2448 | fi | ||
2449 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2450 | as_fn_set_status $ac_retval | ||
2451 | |||
2452 | } # ac_fn_c_try_compile | ||
2453 | |||
2454 | # ac_fn_c_try_cpp LINENO | ||
2455 | # ---------------------- | ||
2456 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||
2457 | ac_fn_c_try_cpp () | ||
2458 | { | ||
2459 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2460 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||
2461 | case "(($ac_try" in | ||
2462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2463 | *) ac_try_echo=$ac_try;; | ||
2464 | esac | ||
2465 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2466 | $as_echo "$ac_try_echo"; } >&5 | ||
2467 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||
2468 | ac_status=$? | ||
2469 | if test -s conftest.err; then | ||
2470 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2471 | cat conftest.er1 >&5 | ||
2472 | mv -f conftest.er1 conftest.err | ||
2473 | fi | ||
2474 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2475 | test $ac_status = 0; } > conftest.i && { | ||
2476 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
2477 | test ! -s conftest.err | ||
2478 | }; then : | ||
2479 | ac_retval=0 | ||
2480 | else | ||
2481 | $as_echo "$as_me: failed program was:" >&5 | ||
2482 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2483 | |||
2484 | ac_retval=1 | ||
2485 | fi | ||
2486 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2487 | as_fn_set_status $ac_retval | ||
2488 | |||
2489 | } # ac_fn_c_try_cpp | ||
2490 | |||
2491 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | ||
2492 | # ------------------------------------------------------- | ||
2493 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | ||
2494 | # the include files in INCLUDES and setting the cache variable VAR | ||
2495 | # accordingly. | ||
2496 | ac_fn_c_check_header_mongrel () | ||
2497 | { | ||
2498 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2499 | if eval "test \"\${$3+set}\"" = set; then : | ||
2500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2501 | $as_echo_n "checking for $2... " >&6; } | ||
2502 | if eval "test \"\${$3+set}\"" = set; then : | ||
2503 | $as_echo_n "(cached) " >&6 | ||
2504 | fi | ||
2505 | eval ac_res=\$$3 | ||
2506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2507 | $as_echo "$ac_res" >&6; } | ||
2508 | else | ||
2509 | # Is the header compilable? | ||
2510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | ||
2511 | $as_echo_n "checking $2 usability... " >&6; } | ||
2512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2513 | /* end confdefs.h. */ | ||
2514 | $4 | ||
2515 | #include <$2> | ||
2516 | _ACEOF | ||
2517 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2518 | ac_header_compiler=yes | ||
2519 | else | ||
2520 | ac_header_compiler=no | ||
2521 | fi | ||
2522 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | ||
2524 | $as_echo "$ac_header_compiler" >&6; } | ||
2525 | |||
2526 | # Is the header present? | ||
2527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | ||
2528 | $as_echo_n "checking $2 presence... " >&6; } | ||
2529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2530 | /* end confdefs.h. */ | ||
2531 | #include <$2> | ||
2532 | _ACEOF | ||
2533 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
2534 | ac_header_preproc=yes | ||
2535 | else | ||
2536 | ac_header_preproc=no | ||
2537 | fi | ||
2538 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
2539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | ||
2540 | $as_echo "$ac_header_preproc" >&6; } | ||
2541 | |||
2542 | # So? What about this header? | ||
2543 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | ||
2544 | yes:no: ) | ||
2545 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
2546 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
2547 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
2548 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
2549 | ;; | ||
2550 | no:yes:* ) | ||
2551 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | ||
2552 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | ||
2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | ||
2554 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | ||
2555 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | ||
2556 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | ||
2557 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | ||
2558 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | ||
2559 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
2560 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
2561 | ( $as_echo "## -------------------------------------------------------- ## | ||
2562 | ## Report this to enlightenment-devel@lists.sourceforge.net ## | ||
2563 | ## -------------------------------------------------------- ##" | ||
2564 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
2565 | ;; | ||
2566 | esac | ||
2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2568 | $as_echo_n "checking for $2... " >&6; } | ||
2569 | if eval "test \"\${$3+set}\"" = set; then : | ||
2570 | $as_echo_n "(cached) " >&6 | ||
2571 | else | ||
2572 | eval "$3=\$ac_header_compiler" | ||
2573 | fi | ||
2574 | eval ac_res=\$$3 | ||
2575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2576 | $as_echo "$ac_res" >&6; } | ||
2577 | fi | ||
2578 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2579 | |||
2580 | } # ac_fn_c_check_header_mongrel | ||
2581 | |||
2582 | # ac_fn_c_try_run LINENO | ||
2583 | # ---------------------- | ||
2584 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | ||
2585 | # that executables *can* be run. | ||
2586 | ac_fn_c_try_run () | ||
2587 | { | ||
2588 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2589 | if { { ac_try="$ac_link" | ||
2590 | case "(($ac_try" in | ||
2591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2592 | *) ac_try_echo=$ac_try;; | ||
2593 | esac | ||
2594 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2595 | $as_echo "$ac_try_echo"; } >&5 | ||
2596 | (eval "$ac_link") 2>&5 | ||
2597 | ac_status=$? | ||
2598 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2599 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | ||
2600 | { { case "(($ac_try" in | ||
2601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2602 | *) ac_try_echo=$ac_try;; | ||
2603 | esac | ||
2604 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2605 | $as_echo "$ac_try_echo"; } >&5 | ||
2606 | (eval "$ac_try") 2>&5 | ||
2607 | ac_status=$? | ||
2608 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2609 | test $ac_status = 0; }; }; then : | ||
2610 | ac_retval=0 | ||
2611 | else | ||
2612 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
2613 | $as_echo "$as_me: failed program was:" >&5 | ||
2614 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2615 | |||
2616 | ac_retval=$ac_status | ||
2617 | fi | ||
2618 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
2619 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2620 | as_fn_set_status $ac_retval | ||
2621 | |||
2622 | } # ac_fn_c_try_run | ||
2623 | |||
2624 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | ||
2625 | # ------------------------------------------------------- | ||
2626 | # Tests whether HEADER exists and can be compiled using the include files in | ||
2627 | # INCLUDES, setting the cache variable VAR accordingly. | ||
2628 | ac_fn_c_check_header_compile () | ||
2629 | { | ||
2630 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2632 | $as_echo_n "checking for $2... " >&6; } | ||
2633 | if eval "test \"\${$3+set}\"" = set; then : | ||
2634 | $as_echo_n "(cached) " >&6 | ||
2635 | else | ||
2636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2637 | /* end confdefs.h. */ | ||
2638 | $4 | ||
2639 | #include <$2> | ||
2640 | _ACEOF | ||
2641 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2642 | eval "$3=yes" | ||
2643 | else | ||
2644 | eval "$3=no" | ||
2645 | fi | ||
2646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2647 | fi | ||
2648 | eval ac_res=\$$3 | ||
2649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2650 | $as_echo "$ac_res" >&6; } | ||
2651 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2652 | |||
2653 | } # ac_fn_c_check_header_compile | ||
2654 | |||
2655 | # ac_fn_c_try_link LINENO | ||
2656 | # ----------------------- | ||
2657 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
2658 | ac_fn_c_try_link () | ||
2659 | { | ||
2660 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2661 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
2662 | if { { ac_try="$ac_link" | ||
2663 | case "(($ac_try" in | ||
2664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2665 | *) ac_try_echo=$ac_try;; | ||
2666 | esac | ||
2667 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2668 | $as_echo "$ac_try_echo"; } >&5 | ||
2669 | (eval "$ac_link") 2>conftest.err | ||
2670 | ac_status=$? | ||
2671 | if test -s conftest.err; then | ||
2672 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2673 | cat conftest.er1 >&5 | ||
2674 | mv -f conftest.er1 conftest.err | ||
2675 | fi | ||
2676 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2677 | test $ac_status = 0; } && { | ||
2678 | test -z "$ac_c_werror_flag" || | ||
2679 | test ! -s conftest.err | ||
2680 | } && test -s conftest$ac_exeext && { | ||
2681 | test "$cross_compiling" = yes || | ||
2682 | $as_test_x conftest$ac_exeext | ||
2683 | }; then : | ||
2684 | ac_retval=0 | ||
2685 | else | ||
2686 | $as_echo "$as_me: failed program was:" >&5 | ||
2687 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2688 | |||
2689 | ac_retval=1 | ||
2690 | fi | ||
2691 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
2692 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
2693 | # interfere with the next link command; also delete a directory that is | ||
2694 | # left behind by Apple's compiler. We do this before executing the actions. | ||
2695 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
2696 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2697 | as_fn_set_status $ac_retval | ||
2698 | |||
2699 | } # ac_fn_c_try_link | ||
2700 | |||
2701 | # ac_fn_c_check_func LINENO FUNC VAR | ||
2702 | # ---------------------------------- | ||
2703 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | ||
2704 | ac_fn_c_check_func () | ||
2705 | { | ||
2706 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
2708 | $as_echo_n "checking for $2... " >&6; } | ||
2709 | if eval "test \"\${$3+set}\"" = set; then : | ||
2710 | $as_echo_n "(cached) " >&6 | ||
2711 | else | ||
2712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2713 | /* end confdefs.h. */ | ||
2714 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | ||
2715 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
2716 | #define $2 innocuous_$2 | ||
2717 | |||
2718 | /* System header to define __stub macros and hopefully few prototypes, | ||
2719 | which can conflict with char $2 (); below. | ||
2720 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2721 | <limits.h> exists even on freestanding compilers. */ | ||
2722 | |||
2723 | #ifdef __STDC__ | ||
2724 | # include <limits.h> | ||
2725 | #else | ||
2726 | # include <assert.h> | ||
2727 | #endif | ||
2728 | |||
2729 | #undef $2 | ||
2730 | |||
2731 | /* Override any GCC internal prototype to avoid an error. | ||
2732 | Use char because int might match the return type of a GCC | ||
2733 | builtin and then its argument prototype would still apply. */ | ||
2734 | #ifdef __cplusplus | ||
2735 | extern "C" | ||
2736 | #endif | ||
2737 | char $2 (); | ||
2738 | /* The GNU C library defines this for functions which it implements | ||
2739 | to always fail with ENOSYS. Some functions are actually named | ||
2740 | something starting with __ and the normal name is an alias. */ | ||
2741 | #if defined __stub_$2 || defined __stub___$2 | ||
2742 | choke me | ||
2743 | #endif | ||
2744 | |||
2745 | int | ||
2746 | main () | ||
2747 | { | ||
2748 | return $2 (); | ||
2749 | ; | ||
2750 | return 0; | ||
2751 | } | ||
2752 | _ACEOF | ||
2753 | if ac_fn_c_try_link "$LINENO"; then : | ||
2754 | eval "$3=yes" | ||
2755 | else | ||
2756 | eval "$3=no" | ||
2757 | fi | ||
2758 | rm -f core conftest.err conftest.$ac_objext \ | ||
2759 | conftest$ac_exeext conftest.$ac_ext | ||
2760 | fi | ||
2761 | eval ac_res=\$$3 | ||
2762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2763 | $as_echo "$ac_res" >&6; } | ||
2764 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2765 | |||
2766 | } # ac_fn_c_check_func | ||
2767 | |||
2768 | # ac_fn_objc_try_compile LINENO | ||
2769 | # ----------------------------- | ||
2770 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
2771 | ac_fn_objc_try_compile () | ||
2772 | { | ||
2773 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2774 | rm -f conftest.$ac_objext | ||
2775 | if { { ac_try="$ac_compile" | ||
2776 | case "(($ac_try" in | ||
2777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2778 | *) ac_try_echo=$ac_try;; | ||
2779 | esac | ||
2780 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2781 | $as_echo "$ac_try_echo"; } >&5 | ||
2782 | (eval "$ac_compile") 2>conftest.err | ||
2783 | ac_status=$? | ||
2784 | if test -s conftest.err; then | ||
2785 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2786 | cat conftest.er1 >&5 | ||
2787 | mv -f conftest.er1 conftest.err | ||
2788 | fi | ||
2789 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2790 | test $ac_status = 0; } && { | ||
2791 | test -z "$ac_objc_werror_flag" || | ||
2792 | test ! -s conftest.err | ||
2793 | } && test -s conftest.$ac_objext; then : | ||
2794 | ac_retval=0 | ||
2795 | else | ||
2796 | $as_echo "$as_me: failed program was:" >&5 | ||
2797 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2798 | |||
2799 | ac_retval=1 | ||
2800 | fi | ||
2801 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2802 | as_fn_set_status $ac_retval | ||
2803 | |||
2804 | } # ac_fn_objc_try_compile | ||
2805 | |||
2806 | # ac_fn_objc_try_link LINENO | ||
2807 | # -------------------------- | ||
2808 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
2809 | ac_fn_objc_try_link () | ||
2810 | { | ||
2811 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2812 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
2813 | if { { ac_try="$ac_link" | ||
2814 | case "(($ac_try" in | ||
2815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2816 | *) ac_try_echo=$ac_try;; | ||
2817 | esac | ||
2818 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2819 | $as_echo "$ac_try_echo"; } >&5 | ||
2820 | (eval "$ac_link") 2>conftest.err | ||
2821 | ac_status=$? | ||
2822 | if test -s conftest.err; then | ||
2823 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2824 | cat conftest.er1 >&5 | ||
2825 | mv -f conftest.er1 conftest.err | ||
2826 | fi | ||
2827 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2828 | test $ac_status = 0; } && { | ||
2829 | test -z "$ac_objc_werror_flag" || | ||
2830 | test ! -s conftest.err | ||
2831 | } && test -s conftest$ac_exeext && { | ||
2832 | test "$cross_compiling" = yes || | ||
2833 | $as_test_x conftest$ac_exeext | ||
2834 | }; then : | ||
2835 | ac_retval=0 | ||
2836 | else | ||
2837 | $as_echo "$as_me: failed program was:" >&5 | ||
2838 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2839 | |||
2840 | ac_retval=1 | ||
2841 | fi | ||
2842 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
2843 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
2844 | # interfere with the next link command; also delete a directory that is | ||
2845 | # left behind by Apple's compiler. We do this before executing the actions. | ||
2846 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
2847 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2848 | as_fn_set_status $ac_retval | ||
2849 | |||
2850 | } # ac_fn_objc_try_link | ||
2851 | |||
2852 | # ac_fn_cxx_try_compile LINENO | ||
2853 | # ---------------------------- | ||
2854 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
2855 | ac_fn_cxx_try_compile () | ||
2856 | { | ||
2857 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2858 | rm -f conftest.$ac_objext | ||
2859 | if { { ac_try="$ac_compile" | ||
2860 | case "(($ac_try" in | ||
2861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2862 | *) ac_try_echo=$ac_try;; | ||
2863 | esac | ||
2864 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2865 | $as_echo "$ac_try_echo"; } >&5 | ||
2866 | (eval "$ac_compile") 2>conftest.err | ||
2867 | ac_status=$? | ||
2868 | if test -s conftest.err; then | ||
2869 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2870 | cat conftest.er1 >&5 | ||
2871 | mv -f conftest.er1 conftest.err | ||
2872 | fi | ||
2873 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2874 | test $ac_status = 0; } && { | ||
2875 | test -z "$ac_cxx_werror_flag" || | ||
2876 | test ! -s conftest.err | ||
2877 | } && test -s conftest.$ac_objext; then : | ||
2878 | ac_retval=0 | ||
2879 | else | ||
2880 | $as_echo "$as_me: failed program was:" >&5 | ||
2881 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2882 | |||
2883 | ac_retval=1 | ||
2884 | fi | ||
2885 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2886 | as_fn_set_status $ac_retval | ||
2887 | |||
2888 | } # ac_fn_cxx_try_compile | ||
2889 | |||
2890 | # ac_fn_cxx_try_cpp LINENO | ||
2891 | # ------------------------ | ||
2892 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||
2893 | ac_fn_cxx_try_cpp () | ||
2894 | { | ||
2895 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2896 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||
2897 | case "(($ac_try" in | ||
2898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2899 | *) ac_try_echo=$ac_try;; | ||
2900 | esac | ||
2901 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2902 | $as_echo "$ac_try_echo"; } >&5 | ||
2903 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||
2904 | ac_status=$? | ||
2905 | if test -s conftest.err; then | ||
2906 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2907 | cat conftest.er1 >&5 | ||
2908 | mv -f conftest.er1 conftest.err | ||
2909 | fi | ||
2910 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2911 | test $ac_status = 0; } > conftest.i && { | ||
2912 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | ||
2913 | test ! -s conftest.err | ||
2914 | }; then : | ||
2915 | ac_retval=0 | ||
2916 | else | ||
2917 | $as_echo "$as_me: failed program was:" >&5 | ||
2918 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2919 | |||
2920 | ac_retval=1 | ||
2921 | fi | ||
2922 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2923 | as_fn_set_status $ac_retval | ||
2924 | |||
2925 | } # ac_fn_cxx_try_cpp | ||
2926 | |||
2927 | # ac_fn_cxx_try_link LINENO | ||
2928 | # ------------------------- | ||
2929 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
2930 | ac_fn_cxx_try_link () | ||
2931 | { | ||
2932 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2933 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
2934 | if { { ac_try="$ac_link" | ||
2935 | case "(($ac_try" in | ||
2936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2937 | *) ac_try_echo=$ac_try;; | ||
2938 | esac | ||
2939 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2940 | $as_echo "$ac_try_echo"; } >&5 | ||
2941 | (eval "$ac_link") 2>conftest.err | ||
2942 | ac_status=$? | ||
2943 | if test -s conftest.err; then | ||
2944 | grep -v '^ *+' conftest.err >conftest.er1 | ||
2945 | cat conftest.er1 >&5 | ||
2946 | mv -f conftest.er1 conftest.err | ||
2947 | fi | ||
2948 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2949 | test $ac_status = 0; } && { | ||
2950 | test -z "$ac_cxx_werror_flag" || | ||
2951 | test ! -s conftest.err | ||
2952 | } && test -s conftest$ac_exeext && { | ||
2953 | test "$cross_compiling" = yes || | ||
2954 | $as_test_x conftest$ac_exeext | ||
2955 | }; then : | ||
2956 | ac_retval=0 | ||
2957 | else | ||
2958 | $as_echo "$as_me: failed program was:" >&5 | ||
2959 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2960 | |||
2961 | ac_retval=1 | ||
2962 | fi | ||
2963 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
2964 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
2965 | # interfere with the next link command; also delete a directory that is | ||
2966 | # left behind by Apple's compiler. We do this before executing the actions. | ||
2967 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
2968 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
2969 | as_fn_set_status $ac_retval | ||
2970 | |||
2971 | } # ac_fn_cxx_try_link | ||
2972 | |||
2973 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | ||
2974 | # -------------------------------------------- | ||
2975 | # Tries to find the compile-time value of EXPR in a program that includes | ||
2976 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | ||
2977 | # computed | ||
2978 | ac_fn_c_compute_int () | ||
2979 | { | ||
2980 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2981 | if test "$cross_compiling" = yes; then | ||
2982 | # Depending upon the size, compute the lo and hi bounds. | ||
2983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2984 | /* end confdefs.h. */ | ||
2985 | $4 | ||
2986 | int | ||
2987 | main () | ||
2988 | { | ||
2989 | static int test_array [1 - 2 * !(($2) >= 0)]; | ||
2990 | test_array [0] = 0 | ||
2991 | |||
2992 | ; | ||
2993 | return 0; | ||
2994 | } | ||
2995 | _ACEOF | ||
2996 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2997 | ac_lo=0 ac_mid=0 | ||
2998 | while :; do | ||
2999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3000 | /* end confdefs.h. */ | ||
3001 | $4 | ||
3002 | int | ||
3003 | main () | ||
3004 | { | ||
3005 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||
3006 | test_array [0] = 0 | ||
3007 | |||
3008 | ; | ||
3009 | return 0; | ||
3010 | } | ||
3011 | _ACEOF | ||
3012 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3013 | ac_hi=$ac_mid; break | ||
3014 | else | ||
3015 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | ||
3016 | if test $ac_lo -le $ac_mid; then | ||
3017 | ac_lo= ac_hi= | ||
3018 | break | ||
3019 | fi | ||
3020 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | ||
3021 | fi | ||
3022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3023 | done | ||
3024 | else | ||
3025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3026 | /* end confdefs.h. */ | ||
3027 | $4 | ||
3028 | int | ||
3029 | main () | ||
3030 | { | ||
3031 | static int test_array [1 - 2 * !(($2) < 0)]; | ||
3032 | test_array [0] = 0 | ||
3033 | |||
3034 | ; | ||
3035 | return 0; | ||
3036 | } | ||
3037 | _ACEOF | ||
3038 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3039 | ac_hi=-1 ac_mid=-1 | ||
3040 | while :; do | ||
3041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3042 | /* end confdefs.h. */ | ||
3043 | $4 | ||
3044 | int | ||
3045 | main () | ||
3046 | { | ||
3047 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | ||
3048 | test_array [0] = 0 | ||
3049 | |||
3050 | ; | ||
3051 | return 0; | ||
3052 | } | ||
3053 | _ACEOF | ||
3054 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3055 | ac_lo=$ac_mid; break | ||
3056 | else | ||
3057 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | ||
3058 | if test $ac_mid -le $ac_hi; then | ||
3059 | ac_lo= ac_hi= | ||
3060 | break | ||
3061 | fi | ||
3062 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | ||
3063 | fi | ||
3064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3065 | done | ||
3066 | else | ||
3067 | ac_lo= ac_hi= | ||
3068 | fi | ||
3069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3070 | fi | ||
3071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3072 | # Binary search between lo and hi bounds. | ||
3073 | while test "x$ac_lo" != "x$ac_hi"; do | ||
3074 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | ||
3075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3076 | /* end confdefs.h. */ | ||
3077 | $4 | ||
3078 | int | ||
3079 | main () | ||
3080 | { | ||
3081 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||
3082 | test_array [0] = 0 | ||
3083 | |||
3084 | ; | ||
3085 | return 0; | ||
3086 | } | ||
3087 | _ACEOF | ||
3088 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3089 | ac_hi=$ac_mid | ||
3090 | else | ||
3091 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | ||
3092 | fi | ||
3093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3094 | done | ||
3095 | case $ac_lo in #(( | ||
3096 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | ||
3097 | '') ac_retval=1 ;; | ||
3098 | esac | ||
3099 | else | ||
3100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3101 | /* end confdefs.h. */ | ||
3102 | $4 | ||
3103 | static long int longval () { return $2; } | ||
3104 | static unsigned long int ulongval () { return $2; } | ||
3105 | #include <stdio.h> | ||
3106 | #include <stdlib.h> | ||
3107 | int | ||
3108 | main () | ||
3109 | { | ||
3110 | |||
3111 | FILE *f = fopen ("conftest.val", "w"); | ||
3112 | if (! f) | ||
3113 | return 1; | ||
3114 | if (($2) < 0) | ||
3115 | { | ||
3116 | long int i = longval (); | ||
3117 | if (i != ($2)) | ||
3118 | return 1; | ||
3119 | fprintf (f, "%ld", i); | ||
3120 | } | ||
3121 | else | ||
3122 | { | ||
3123 | unsigned long int i = ulongval (); | ||
3124 | if (i != ($2)) | ||
3125 | return 1; | ||
3126 | fprintf (f, "%lu", i); | ||
3127 | } | ||
3128 | /* Do not output a trailing newline, as this causes \r\n confusion | ||
3129 | on some platforms. */ | ||
3130 | return ferror (f) || fclose (f) != 0; | ||
3131 | |||
3132 | ; | ||
3133 | return 0; | ||
3134 | } | ||
3135 | _ACEOF | ||
3136 | if ac_fn_c_try_run "$LINENO"; then : | ||
3137 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | ||
3138 | else | ||
3139 | ac_retval=1 | ||
3140 | fi | ||
3141 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
3142 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
3143 | rm -f conftest.val | ||
3144 | |||
3145 | fi | ||
3146 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
3147 | as_fn_set_status $ac_retval | ||
3148 | |||
3149 | } # ac_fn_c_compute_int | ||
3150 | |||
3151 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | ||
3152 | # ------------------------------------------- | ||
3153 | # Tests whether TYPE exists after having included INCLUDES, setting cache | ||
3154 | # variable VAR accordingly. | ||
3155 | ac_fn_c_check_type () | ||
3156 | { | ||
3157 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
3158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
3159 | $as_echo_n "checking for $2... " >&6; } | ||
3160 | if eval "test \"\${$3+set}\"" = set; then : | ||
3161 | $as_echo_n "(cached) " >&6 | ||
3162 | else | ||
3163 | eval "$3=no" | ||
3164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3165 | /* end confdefs.h. */ | ||
3166 | $4 | ||
3167 | int | ||
3168 | main () | ||
3169 | { | ||
3170 | if (sizeof ($2)) | ||
3171 | return 0; | ||
3172 | ; | ||
3173 | return 0; | ||
3174 | } | ||
3175 | _ACEOF | ||
3176 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3178 | /* end confdefs.h. */ | ||
3179 | $4 | ||
3180 | int | ||
3181 | main () | ||
3182 | { | ||
3183 | if (sizeof (($2))) | ||
3184 | return 0; | ||
3185 | ; | ||
3186 | return 0; | ||
3187 | } | ||
3188 | _ACEOF | ||
3189 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3190 | |||
3191 | else | ||
3192 | eval "$3=yes" | ||
3193 | fi | ||
3194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3195 | fi | ||
3196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3197 | fi | ||
3198 | eval ac_res=\$$3 | ||
3199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
3200 | $as_echo "$ac_res" >&6; } | ||
3201 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
3202 | |||
3203 | } # ac_fn_c_check_type | ||
3204 | |||
3205 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | ||
3206 | # --------------------------------------------- | ||
3207 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | ||
3208 | # accordingly. | ||
3209 | ac_fn_c_check_decl () | ||
3210 | { | ||
3211 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
3212 | as_decl_name=`echo $2|sed 's/ *(.*//'` | ||
3213 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | ||
3214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | ||
3215 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | ||
3216 | if eval "test \"\${$3+set}\"" = set; then : | ||
3217 | $as_echo_n "(cached) " >&6 | ||
3218 | else | ||
3219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3220 | /* end confdefs.h. */ | ||
3221 | $4 | ||
3222 | int | ||
3223 | main () | ||
3224 | { | ||
3225 | #ifndef $as_decl_name | ||
3226 | #ifdef __cplusplus | ||
3227 | (void) $as_decl_use; | ||
3228 | #else | ||
3229 | (void) $as_decl_name; | ||
3230 | #endif | ||
3231 | #endif | ||
3232 | |||
3233 | ; | ||
3234 | return 0; | ||
3235 | } | ||
3236 | _ACEOF | ||
3237 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3238 | eval "$3=yes" | ||
3239 | else | ||
3240 | eval "$3=no" | ||
3241 | fi | ||
3242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3243 | fi | ||
3244 | eval ac_res=\$$3 | ||
3245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
3246 | $as_echo "$ac_res" >&6; } | ||
3247 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
3248 | |||
3249 | } # ac_fn_c_check_decl | ||
3250 | cat >config.log <<_ACEOF | ||
3251 | This file contains any messages produced by compilers while | ||
3252 | running configure, to aid debugging if configure makes a mistake. | ||
3253 | |||
3254 | It was created by evas $as_me 1.2.0-alpha, which was | ||
3255 | generated by GNU Autoconf 2.67. Invocation command line was | ||
3256 | |||
3257 | $ $0 $@ | ||
3258 | |||
3259 | _ACEOF | ||
3260 | exec 5>>config.log | ||
3261 | { | ||
3262 | cat <<_ASUNAME | ||
3263 | ## --------- ## | ||
3264 | ## Platform. ## | ||
3265 | ## --------- ## | ||
3266 | |||
3267 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
3268 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
3269 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
3270 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
3271 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
3272 | |||
3273 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
3274 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
3275 | |||
3276 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
3277 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
3278 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
3279 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
3280 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
3281 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
3282 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
3283 | |||
3284 | _ASUNAME | ||
3285 | |||
3286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3287 | for as_dir in $PATH | ||
3288 | do | ||
3289 | IFS=$as_save_IFS | ||
3290 | test -z "$as_dir" && as_dir=. | ||
3291 | $as_echo "PATH: $as_dir" | ||
3292 | done | ||
3293 | IFS=$as_save_IFS | ||
3294 | |||
3295 | } >&5 | ||
3296 | |||
3297 | cat >&5 <<_ACEOF | ||
3298 | |||
3299 | |||
3300 | ## ----------- ## | ||
3301 | ## Core tests. ## | ||
3302 | ## ----------- ## | ||
3303 | |||
3304 | _ACEOF | ||
3305 | |||
3306 | |||
3307 | # Keep a trace of the command line. | ||
3308 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
3309 | # Strip out --silent because we don't want to record it for future runs. | ||
3310 | # Also quote any args containing shell meta-characters. | ||
3311 | # Make two passes to allow for proper duplicate-argument suppression. | ||
3312 | ac_configure_args= | ||
3313 | ac_configure_args0= | ||
3314 | ac_configure_args1= | ||
3315 | ac_must_keep_next=false | ||
3316 | for ac_pass in 1 2 | ||
3317 | do | ||
3318 | for ac_arg | ||
3319 | do | ||
3320 | case $ac_arg in | ||
3321 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
3322 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
3323 | | -silent | --silent | --silen | --sile | --sil) | ||
3324 | continue ;; | ||
3325 | *\'*) | ||
3326 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
3327 | esac | ||
3328 | case $ac_pass in | ||
3329 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | ||
3330 | 2) | ||
3331 | as_fn_append ac_configure_args1 " '$ac_arg'" | ||
3332 | if test $ac_must_keep_next = true; then | ||
3333 | ac_must_keep_next=false # Got value, back to normal. | ||
3334 | else | ||
3335 | case $ac_arg in | ||
3336 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
3337 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
3338 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
3339 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
3340 | case "$ac_configure_args0 " in | ||
3341 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
3342 | esac | ||
3343 | ;; | ||
3344 | -* ) ac_must_keep_next=true ;; | ||
3345 | esac | ||
3346 | fi | ||
3347 | as_fn_append ac_configure_args " '$ac_arg'" | ||
3348 | ;; | ||
3349 | esac | ||
3350 | done | ||
3351 | done | ||
3352 | { ac_configure_args0=; unset ac_configure_args0;} | ||
3353 | { ac_configure_args1=; unset ac_configure_args1;} | ||
3354 | |||
3355 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
3356 | # config.log. We remove comments because anyway the quotes in there | ||
3357 | # would cause problems or look ugly. | ||
3358 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
3359 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
3360 | trap 'exit_status=$? | ||
3361 | # Save into config.log some information that might help in debugging. | ||
3362 | { | ||
3363 | echo | ||
3364 | |||
3365 | $as_echo "## ---------------- ## | ||
3366 | ## Cache variables. ## | ||
3367 | ## ---------------- ##" | ||
3368 | echo | ||
3369 | # The following way of writing the cache mishandles newlines in values, | ||
3370 | ( | ||
3371 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
3372 | eval ac_val=\$$ac_var | ||
3373 | case $ac_val in #( | ||
3374 | *${as_nl}*) | ||
3375 | case $ac_var in #( | ||
3376 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
3377 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
3378 | esac | ||
3379 | case $ac_var in #( | ||
3380 | _ | IFS | as_nl) ;; #( | ||
3381 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
3382 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
3383 | esac ;; | ||
3384 | esac | ||
3385 | done | ||
3386 | (set) 2>&1 | | ||
3387 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
3388 | *${as_nl}ac_space=\ *) | ||
3389 | sed -n \ | ||
3390 | "s/'\''/'\''\\\\'\'''\''/g; | ||
3391 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
3392 | ;; #( | ||
3393 | *) | ||
3394 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
3395 | ;; | ||
3396 | esac | | ||
3397 | sort | ||
3398 | ) | ||
3399 | echo | ||
3400 | |||
3401 | $as_echo "## ----------------- ## | ||
3402 | ## Output variables. ## | ||
3403 | ## ----------------- ##" | ||
3404 | echo | ||
3405 | for ac_var in $ac_subst_vars | ||
3406 | do | ||
3407 | eval ac_val=\$$ac_var | ||
3408 | case $ac_val in | ||
3409 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
3410 | esac | ||
3411 | $as_echo "$ac_var='\''$ac_val'\''" | ||
3412 | done | sort | ||
3413 | echo | ||
3414 | |||
3415 | if test -n "$ac_subst_files"; then | ||
3416 | $as_echo "## ------------------- ## | ||
3417 | ## File substitutions. ## | ||
3418 | ## ------------------- ##" | ||
3419 | echo | ||
3420 | for ac_var in $ac_subst_files | ||
3421 | do | ||
3422 | eval ac_val=\$$ac_var | ||
3423 | case $ac_val in | ||
3424 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
3425 | esac | ||
3426 | $as_echo "$ac_var='\''$ac_val'\''" | ||
3427 | done | sort | ||
3428 | echo | ||
3429 | fi | ||
3430 | |||
3431 | if test -s confdefs.h; then | ||
3432 | $as_echo "## ----------- ## | ||
3433 | ## confdefs.h. ## | ||
3434 | ## ----------- ##" | ||
3435 | echo | ||
3436 | cat confdefs.h | ||
3437 | echo | ||
3438 | fi | ||
3439 | test "$ac_signal" != 0 && | ||
3440 | $as_echo "$as_me: caught signal $ac_signal" | ||
3441 | $as_echo "$as_me: exit $exit_status" | ||
3442 | } >&5 | ||
3443 | rm -f core *.core core.conftest.* && | ||
3444 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
3445 | exit $exit_status | ||
3446 | ' 0 | ||
3447 | for ac_signal in 1 2 13 15; do | ||
3448 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | ||
3449 | done | ||
3450 | ac_signal=0 | ||
3451 | |||
3452 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
3453 | rm -f -r conftest* confdefs.h | ||
3454 | |||
3455 | $as_echo "/* confdefs.h */" > confdefs.h | ||
3456 | |||
3457 | # Predefined preprocessor variables. | ||
3458 | |||
3459 | cat >>confdefs.h <<_ACEOF | ||
3460 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
3461 | _ACEOF | ||
3462 | |||
3463 | cat >>confdefs.h <<_ACEOF | ||
3464 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
3465 | _ACEOF | ||
3466 | |||
3467 | cat >>confdefs.h <<_ACEOF | ||
3468 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
3469 | _ACEOF | ||
3470 | |||
3471 | cat >>confdefs.h <<_ACEOF | ||
3472 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
3473 | _ACEOF | ||
3474 | |||
3475 | cat >>confdefs.h <<_ACEOF | ||
3476 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
3477 | _ACEOF | ||
3478 | |||
3479 | cat >>confdefs.h <<_ACEOF | ||
3480 | #define PACKAGE_URL "$PACKAGE_URL" | ||
3481 | _ACEOF | ||
3482 | |||
3483 | |||
3484 | # Let the site file select an alternate cache file if it wants to. | ||
3485 | # Prefer an explicitly selected file to automatically selected ones. | ||
3486 | ac_site_file1=NONE | ||
3487 | ac_site_file2=NONE | ||
3488 | if test -n "$CONFIG_SITE"; then | ||
3489 | # We do not want a PATH search for config.site. | ||
3490 | case $CONFIG_SITE in #(( | ||
3491 | -*) ac_site_file1=./$CONFIG_SITE;; | ||
3492 | */*) ac_site_file1=$CONFIG_SITE;; | ||
3493 | *) ac_site_file1=./$CONFIG_SITE;; | ||
3494 | esac | ||
3495 | elif test "x$prefix" != xNONE; then | ||
3496 | ac_site_file1=$prefix/share/config.site | ||
3497 | ac_site_file2=$prefix/etc/config.site | ||
3498 | else | ||
3499 | ac_site_file1=$ac_default_prefix/share/config.site | ||
3500 | ac_site_file2=$ac_default_prefix/etc/config.site | ||
3501 | fi | ||
3502 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | ||
3503 | do | ||
3504 | test "x$ac_site_file" = xNONE && continue | ||
3505 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | ||
3506 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | ||
3507 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | ||
3508 | sed 's/^/| /' "$ac_site_file" >&5 | ||
3509 | . "$ac_site_file" \ | ||
3510 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3511 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3512 | as_fn_error $? "failed to load site script $ac_site_file | ||
3513 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
3514 | fi | ||
3515 | done | ||
3516 | |||
3517 | if test -r "$cache_file"; then | ||
3518 | # Some versions of bash will fail to source /dev/null (special files | ||
3519 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | ||
3520 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | ||
3521 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | ||
3522 | $as_echo "$as_me: loading cache $cache_file" >&6;} | ||
3523 | case $cache_file in | ||
3524 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
3525 | *) . "./$cache_file";; | ||
3526 | esac | ||
3527 | fi | ||
3528 | else | ||
3529 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | ||
3530 | $as_echo "$as_me: creating cache $cache_file" >&6;} | ||
3531 | >$cache_file | ||
3532 | fi | ||
3533 | |||
3534 | # Check that the precious variables saved in the cache have kept the same | ||
3535 | # value. | ||
3536 | ac_cache_corrupted=false | ||
3537 | for ac_var in $ac_precious_vars; do | ||
3538 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
3539 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
3540 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
3541 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
3542 | case $ac_old_set,$ac_new_set in | ||
3543 | set,) | ||
3544 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
3545 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
3546 | ac_cache_corrupted=: ;; | ||
3547 | ,set) | ||
3548 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | ||
3549 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
3550 | ac_cache_corrupted=: ;; | ||
3551 | ,);; | ||
3552 | *) | ||
3553 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
3554 | # differences in whitespace do not lead to failure. | ||
3555 | ac_old_val_w=`echo x $ac_old_val` | ||
3556 | ac_new_val_w=`echo x $ac_new_val` | ||
3557 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | ||
3558 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | ||
3559 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
3560 | ac_cache_corrupted=: | ||
3561 | else | ||
3562 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | ||
3563 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | ||
3564 | eval $ac_var=\$ac_old_val | ||
3565 | fi | ||
3566 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | ||
3567 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | ||
3568 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | ||
3569 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | ||
3570 | fi;; | ||
3571 | esac | ||
3572 | # Pass precious variables to config.status. | ||
3573 | if test "$ac_new_set" = set; then | ||
3574 | case $ac_new_val in | ||
3575 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
3576 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
3577 | esac | ||
3578 | case " $ac_configure_args " in | ||
3579 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
3580 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | ||
3581 | esac | ||
3582 | fi | ||
3583 | done | ||
3584 | if $ac_cache_corrupted; then | ||
3585 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3586 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3587 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | ||
3588 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
3589 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | ||
3590 | fi | ||
3591 | ## -------------------- ## | ||
3592 | ## Main body of script. ## | ||
3593 | ## -------------------- ## | ||
3594 | |||
3595 | ac_ext=c | ||
3596 | ac_cpp='$CPP $CPPFLAGS' | ||
3597 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3598 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3599 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3600 | |||
3601 | |||
3602 | |||
3603 | |||
3604 | |||
3605 | |||
3606 | ac_config_headers="$ac_config_headers config.h" | ||
3607 | |||
3608 | |||
3609 | |||
3610 | |||
3611 | am__api_version='1.11' | ||
3612 | |||
3613 | ac_aux_dir= | ||
3614 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
3615 | if test -f "$ac_dir/install-sh"; then | ||
3616 | ac_aux_dir=$ac_dir | ||
3617 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
3618 | break | ||
3619 | elif test -f "$ac_dir/install.sh"; then | ||
3620 | ac_aux_dir=$ac_dir | ||
3621 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
3622 | break | ||
3623 | elif test -f "$ac_dir/shtool"; then | ||
3624 | ac_aux_dir=$ac_dir | ||
3625 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
3626 | break | ||
3627 | fi | ||
3628 | done | ||
3629 | if test -z "$ac_aux_dir"; then | ||
3630 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | ||
3631 | fi | ||
3632 | |||
3633 | # These three variables are undocumented and unsupported, | ||
3634 | # and are intended to be withdrawn in a future Autoconf release. | ||
3635 | # They can cause serious problems if a builder's source tree is in a directory | ||
3636 | # whose full name contains unusual characters. | ||
3637 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
3638 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
3639 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
3640 | |||
3641 | |||
3642 | # Find a good install program. We prefer a C program (faster), | ||
3643 | # so one script is as good as another. But avoid the broken or | ||
3644 | # incompatible versions: | ||
3645 | # SysV /etc/install, /usr/sbin/install | ||
3646 | # SunOS /usr/etc/install | ||
3647 | # IRIX /sbin/install | ||
3648 | # AIX /bin/install | ||
3649 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
3650 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
3651 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
3652 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
3653 | # OS/2's system install, which has a completely different semantic | ||
3654 | # ./install, which can be erroneously created by make from ./install.sh. | ||
3655 | # Reject install programs that cannot install multiple files. | ||
3656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | ||
3657 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | ||
3658 | if test -z "$INSTALL"; then | ||
3659 | if test "${ac_cv_path_install+set}" = set; then : | ||
3660 | $as_echo_n "(cached) " >&6 | ||
3661 | else | ||
3662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3663 | for as_dir in $PATH | ||
3664 | do | ||
3665 | IFS=$as_save_IFS | ||
3666 | test -z "$as_dir" && as_dir=. | ||
3667 | # Account for people who put trailing slashes in PATH elements. | ||
3668 | case $as_dir/ in #(( | ||
3669 | ./ | .// | /[cC]/* | \ | ||
3670 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
3671 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | ||
3672 | /usr/ucb/* ) ;; | ||
3673 | *) | ||
3674 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
3675 | # Don't use installbsd from OSF since it installs stuff as root | ||
3676 | # by default. | ||
3677 | for ac_prog in ginstall scoinst install; do | ||
3678 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3679 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
3680 | if test $ac_prog = install && | ||
3681 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
3682 | # AIX install. It has an incompatible calling convention. | ||
3683 | : | ||
3684 | elif test $ac_prog = install && | ||
3685 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
3686 | # program-specific install script used by HP pwplus--don't use. | ||
3687 | : | ||
3688 | else | ||
3689 | rm -rf conftest.one conftest.two conftest.dir | ||
3690 | echo one > conftest.one | ||
3691 | echo two > conftest.two | ||
3692 | mkdir conftest.dir | ||
3693 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | ||
3694 | test -s conftest.one && test -s conftest.two && | ||
3695 | test -s conftest.dir/conftest.one && | ||
3696 | test -s conftest.dir/conftest.two | ||
3697 | then | ||
3698 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
3699 | break 3 | ||
3700 | fi | ||
3701 | fi | ||
3702 | fi | ||
3703 | done | ||
3704 | done | ||
3705 | ;; | ||
3706 | esac | ||
3707 | |||
3708 | done | ||
3709 | IFS=$as_save_IFS | ||
3710 | |||
3711 | rm -rf conftest.one conftest.two conftest.dir | ||
3712 | |||
3713 | fi | ||
3714 | if test "${ac_cv_path_install+set}" = set; then | ||
3715 | INSTALL=$ac_cv_path_install | ||
3716 | else | ||
3717 | # As a last resort, use the slow shell script. Don't cache a | ||
3718 | # value for INSTALL within a source directory, because that will | ||
3719 | # break other packages using the cache if that directory is | ||
3720 | # removed, or if the value is a relative name. | ||
3721 | INSTALL=$ac_install_sh | ||
3722 | fi | ||
3723 | fi | ||
3724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | ||
3725 | $as_echo "$INSTALL" >&6; } | ||
3726 | |||
3727 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
3728 | # It thinks the first close brace ends the variable substitution. | ||
3729 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
3730 | |||
3731 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
3732 | |||
3733 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
3734 | |||
3735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | ||
3736 | $as_echo_n "checking whether build environment is sane... " >&6; } | ||
3737 | # Just in case | ||
3738 | sleep 1 | ||
3739 | echo timestamp > conftest.file | ||
3740 | # Reject unsafe characters in $srcdir or the absolute working directory | ||
3741 | # name. Accept space and tab only in the latter. | ||
3742 | am_lf=' | ||
3743 | ' | ||
3744 | case `pwd` in | ||
3745 | *[\\\"\#\$\&\'\`$am_lf]*) | ||
3746 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;; | ||
3747 | esac | ||
3748 | case $srcdir in | ||
3749 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | ||
3750 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;; | ||
3751 | esac | ||
3752 | |||
3753 | # Do `set' in a subshell so we don't clobber the current shell's | ||
3754 | # arguments. Must try -L first in case configure is actually a | ||
3755 | # symlink; some systems play weird games with the mod time of symlinks | ||
3756 | # (eg FreeBSD returns the mod time of the symlink's containing | ||
3757 | # directory). | ||
3758 | if ( | ||
3759 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | ||
3760 | if test "$*" = "X"; then | ||
3761 | # -L didn't work. | ||
3762 | set X `ls -t "$srcdir/configure" conftest.file` | ||
3763 | fi | ||
3764 | rm -f conftest.file | ||
3765 | if test "$*" != "X $srcdir/configure conftest.file" \ | ||
3766 | && test "$*" != "X conftest.file $srcdir/configure"; then | ||
3767 | |||
3768 | # If neither matched, then we have a broken ls. This can happen | ||
3769 | # if, for instance, CONFIG_SHELL is bash and it inherits a | ||
3770 | # broken ls alias from the environment. This has actually | ||
3771 | # happened. Such a system could not be considered "sane". | ||
3772 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | ||
3773 | alias in your environment" "$LINENO" 5 | ||
3774 | fi | ||
3775 | |||
3776 | test "$2" = conftest.file | ||
3777 | ) | ||
3778 | then | ||
3779 | # Ok. | ||
3780 | : | ||
3781 | else | ||
3782 | as_fn_error $? "newly created file is older than distributed files! | ||
3783 | Check your system clock" "$LINENO" 5 | ||
3784 | fi | ||
3785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
3786 | $as_echo "yes" >&6; } | ||
3787 | test "$program_prefix" != NONE && | ||
3788 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | ||
3789 | # Use a double $ so make ignores it. | ||
3790 | test "$program_suffix" != NONE && | ||
3791 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | ||
3792 | # Double any \ or $. | ||
3793 | # By default was `s,x,x', remove it if useless. | ||
3794 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | ||
3795 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | ||
3796 | |||
3797 | # expand $ac_aux_dir to an absolute path | ||
3798 | am_aux_dir=`cd $ac_aux_dir && pwd` | ||
3799 | |||
3800 | if test x"${MISSING+set}" != xset; then | ||
3801 | case $am_aux_dir in | ||
3802 | *\ * | *\ *) | ||
3803 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | ||
3804 | *) | ||
3805 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | ||
3806 | esac | ||
3807 | fi | ||
3808 | # Use eval to expand $SHELL | ||
3809 | if eval "$MISSING --run true"; then | ||
3810 | am_missing_run="$MISSING --run " | ||
3811 | else | ||
3812 | am_missing_run= | ||
3813 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | ||
3814 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | ||
3815 | fi | ||
3816 | |||
3817 | if test x"${install_sh}" != xset; then | ||
3818 | case $am_aux_dir in | ||
3819 | *\ * | *\ *) | ||
3820 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | ||
3821 | *) | ||
3822 | install_sh="\${SHELL} $am_aux_dir/install-sh" | ||
3823 | esac | ||
3824 | fi | ||
3825 | |||
3826 | # Installed binaries are usually stripped using `strip' when the user | ||
3827 | # run `make install-strip'. However `strip' might not be the right | ||
3828 | # tool to use in cross-compilation environments, therefore Automake | ||
3829 | # will honor the `STRIP' environment variable to overrule this program. | ||
3830 | if test "$cross_compiling" != no; then | ||
3831 | if test -n "$ac_tool_prefix"; then | ||
3832 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
3833 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
3834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3835 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3836 | if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
3837 | $as_echo_n "(cached) " >&6 | ||
3838 | else | ||
3839 | if test -n "$STRIP"; then | ||
3840 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
3841 | else | ||
3842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3843 | for as_dir in $PATH | ||
3844 | do | ||
3845 | IFS=$as_save_IFS | ||
3846 | test -z "$as_dir" && as_dir=. | ||
3847 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3848 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3849 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
3850 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3851 | break 2 | ||
3852 | fi | ||
3853 | done | ||
3854 | done | ||
3855 | IFS=$as_save_IFS | ||
3856 | |||
3857 | fi | ||
3858 | fi | ||
3859 | STRIP=$ac_cv_prog_STRIP | ||
3860 | if test -n "$STRIP"; then | ||
3861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
3862 | $as_echo "$STRIP" >&6; } | ||
3863 | else | ||
3864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3865 | $as_echo "no" >&6; } | ||
3866 | fi | ||
3867 | |||
3868 | |||
3869 | fi | ||
3870 | if test -z "$ac_cv_prog_STRIP"; then | ||
3871 | ac_ct_STRIP=$STRIP | ||
3872 | # Extract the first word of "strip", so it can be a program name with args. | ||
3873 | set dummy strip; ac_word=$2 | ||
3874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3875 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3876 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
3877 | $as_echo_n "(cached) " >&6 | ||
3878 | else | ||
3879 | if test -n "$ac_ct_STRIP"; then | ||
3880 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
3881 | else | ||
3882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3883 | for as_dir in $PATH | ||
3884 | do | ||
3885 | IFS=$as_save_IFS | ||
3886 | test -z "$as_dir" && as_dir=. | ||
3887 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3888 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3889 | ac_cv_prog_ac_ct_STRIP="strip" | ||
3890 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3891 | break 2 | ||
3892 | fi | ||
3893 | done | ||
3894 | done | ||
3895 | IFS=$as_save_IFS | ||
3896 | |||
3897 | fi | ||
3898 | fi | ||
3899 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
3900 | if test -n "$ac_ct_STRIP"; then | ||
3901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
3902 | $as_echo "$ac_ct_STRIP" >&6; } | ||
3903 | else | ||
3904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3905 | $as_echo "no" >&6; } | ||
3906 | fi | ||
3907 | |||
3908 | if test "x$ac_ct_STRIP" = x; then | ||
3909 | STRIP=":" | ||
3910 | else | ||
3911 | case $cross_compiling:$ac_tool_warned in | ||
3912 | yes:) | ||
3913 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3914 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3915 | ac_tool_warned=yes ;; | ||
3916 | esac | ||
3917 | STRIP=$ac_ct_STRIP | ||
3918 | fi | ||
3919 | else | ||
3920 | STRIP="$ac_cv_prog_STRIP" | ||
3921 | fi | ||
3922 | |||
3923 | fi | ||
3924 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | ||
3925 | |||
3926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | ||
3927 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | ||
3928 | if test -z "$MKDIR_P"; then | ||
3929 | if test "${ac_cv_path_mkdir+set}" = set; then : | ||
3930 | $as_echo_n "(cached) " >&6 | ||
3931 | else | ||
3932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3933 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | ||
3934 | do | ||
3935 | IFS=$as_save_IFS | ||
3936 | test -z "$as_dir" && as_dir=. | ||
3937 | for ac_prog in mkdir gmkdir; do | ||
3938 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3939 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | ||
3940 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | ||
3941 | 'mkdir (GNU coreutils) '* | \ | ||
3942 | 'mkdir (coreutils) '* | \ | ||
3943 | 'mkdir (fileutils) '4.1*) | ||
3944 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | ||
3945 | break 3;; | ||
3946 | esac | ||
3947 | done | ||
3948 | done | ||
3949 | done | ||
3950 | IFS=$as_save_IFS | ||
3951 | |||
3952 | fi | ||
3953 | |||
3954 | test -d ./--version && rmdir ./--version | ||
3955 | if test "${ac_cv_path_mkdir+set}" = set; then | ||
3956 | MKDIR_P="$ac_cv_path_mkdir -p" | ||
3957 | else | ||
3958 | # As a last resort, use the slow shell script. Don't cache a | ||
3959 | # value for MKDIR_P within a source directory, because that will | ||
3960 | # break other packages using the cache if that directory is | ||
3961 | # removed, or if the value is a relative name. | ||
3962 | MKDIR_P="$ac_install_sh -d" | ||
3963 | fi | ||
3964 | fi | ||
3965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | ||
3966 | $as_echo "$MKDIR_P" >&6; } | ||
3967 | |||
3968 | mkdir_p="$MKDIR_P" | ||
3969 | case $mkdir_p in | ||
3970 | [\\/$]* | ?:[\\/]*) ;; | ||
3971 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | ||
3972 | esac | ||
3973 | |||
3974 | for ac_prog in gawk mawk nawk awk | ||
3975 | do | ||
3976 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3977 | set dummy $ac_prog; ac_word=$2 | ||
3978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3979 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3980 | if test "${ac_cv_prog_AWK+set}" = set; then : | ||
3981 | $as_echo_n "(cached) " >&6 | ||
3982 | else | ||
3983 | if test -n "$AWK"; then | ||
3984 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
3985 | else | ||
3986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3987 | for as_dir in $PATH | ||
3988 | do | ||
3989 | IFS=$as_save_IFS | ||
3990 | test -z "$as_dir" && as_dir=. | ||
3991 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3992 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3993 | ac_cv_prog_AWK="$ac_prog" | ||
3994 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3995 | break 2 | ||
3996 | fi | ||
3997 | done | ||
3998 | done | ||
3999 | IFS=$as_save_IFS | ||
4000 | |||
4001 | fi | ||
4002 | fi | ||
4003 | AWK=$ac_cv_prog_AWK | ||
4004 | if test -n "$AWK"; then | ||
4005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | ||
4006 | $as_echo "$AWK" >&6; } | ||
4007 | else | ||
4008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4009 | $as_echo "no" >&6; } | ||
4010 | fi | ||
4011 | |||
4012 | |||
4013 | test -n "$AWK" && break | ||
4014 | done | ||
4015 | |||
4016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | ||
4017 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | ||
4018 | set x ${MAKE-make} | ||
4019 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | ||
4020 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : | ||
4021 | $as_echo_n "(cached) " >&6 | ||
4022 | else | ||
4023 | cat >conftest.make <<\_ACEOF | ||
4024 | SHELL = /bin/sh | ||
4025 | all: | ||
4026 | @echo '@@@%%%=$(MAKE)=@@@%%%' | ||
4027 | _ACEOF | ||
4028 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | ||
4029 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | ||
4030 | *@@@%%%=?*=@@@%%%*) | ||
4031 | eval ac_cv_prog_make_${ac_make}_set=yes;; | ||
4032 | *) | ||
4033 | eval ac_cv_prog_make_${ac_make}_set=no;; | ||
4034 | esac | ||
4035 | rm -f conftest.make | ||
4036 | fi | ||
4037 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | ||
4038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
4039 | $as_echo "yes" >&6; } | ||
4040 | SET_MAKE= | ||
4041 | else | ||
4042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4043 | $as_echo "no" >&6; } | ||
4044 | SET_MAKE="MAKE=${MAKE-make}" | ||
4045 | fi | ||
4046 | |||
4047 | rm -rf .tst 2>/dev/null | ||
4048 | mkdir .tst 2>/dev/null | ||
4049 | if test -d .tst; then | ||
4050 | am__leading_dot=. | ||
4051 | else | ||
4052 | am__leading_dot=_ | ||
4053 | fi | ||
4054 | rmdir .tst 2>/dev/null | ||
4055 | |||
4056 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | ||
4057 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | ||
4058 | # is not polluted with repeated "-I." | ||
4059 | am__isrc=' -I$(srcdir)' | ||
4060 | # test to see if srcdir already configured | ||
4061 | if test -f $srcdir/config.status; then | ||
4062 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | ||
4063 | fi | ||
4064 | fi | ||
4065 | |||
4066 | # test whether we have cygpath | ||
4067 | if test -z "$CYGPATH_W"; then | ||
4068 | if (cygpath --version) >/dev/null 2>/dev/null; then | ||
4069 | CYGPATH_W='cygpath -w' | ||
4070 | else | ||
4071 | CYGPATH_W=echo | ||
4072 | fi | ||
4073 | fi | ||
4074 | |||
4075 | |||
4076 | # Define the identity of the package. | ||
4077 | PACKAGE='evas' | ||
4078 | VERSION='1.2.0-alpha' | ||
4079 | |||
4080 | |||
4081 | cat >>confdefs.h <<_ACEOF | ||
4082 | #define PACKAGE "$PACKAGE" | ||
4083 | _ACEOF | ||
4084 | |||
4085 | |||
4086 | cat >>confdefs.h <<_ACEOF | ||
4087 | #define VERSION "$VERSION" | ||
4088 | _ACEOF | ||
4089 | |||
4090 | # Some tools Automake needs. | ||
4091 | |||
4092 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | ||
4093 | |||
4094 | |||
4095 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | ||
4096 | |||
4097 | |||
4098 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | ||
4099 | |||
4100 | |||
4101 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | ||
4102 | |||
4103 | |||
4104 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | ||
4105 | |||
4106 | # We need awk for the "check" target. The system "awk" is bad on | ||
4107 | # some platforms. | ||
4108 | # Always define AMTAR for backward compatibility. | ||
4109 | |||
4110 | AMTAR=${AMTAR-"${am_missing_run}tar"} | ||
4111 | |||
4112 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | ||
4113 | |||
4114 | |||
4115 | |||
4116 | |||
4117 | |||
4118 | # Check whether --enable-silent-rules was given. | ||
4119 | if test "${enable_silent_rules+set}" = set; then : | ||
4120 | enableval=$enable_silent_rules; | ||
4121 | fi | ||
4122 | |||
4123 | case $enable_silent_rules in | ||
4124 | yes) AM_DEFAULT_VERBOSITY=0;; | ||
4125 | no) AM_DEFAULT_VERBOSITY=1;; | ||
4126 | *) AM_DEFAULT_VERBOSITY=0;; | ||
4127 | esac | ||
4128 | AM_BACKSLASH='\' | ||
4129 | |||
4130 | |||
4131 | DEPDIR="${am__leading_dot}deps" | ||
4132 | |||
4133 | ac_config_commands="$ac_config_commands depfiles" | ||
4134 | |||
4135 | |||
4136 | am_make=${MAKE-make} | ||
4137 | cat > confinc << 'END' | ||
4138 | am__doit: | ||
4139 | @echo this is the am__doit target | ||
4140 | .PHONY: am__doit | ||
4141 | END | ||
4142 | # If we don't find an include directive, just comment out the code. | ||
4143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | ||
4144 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | ||
4145 | am__include="#" | ||
4146 | am__quote= | ||
4147 | _am_result=none | ||
4148 | # First try GNU make style include. | ||
4149 | echo "include confinc" > confmf | ||
4150 | # Ignore all kinds of additional output from `make'. | ||
4151 | case `$am_make -s -f confmf 2> /dev/null` in #( | ||
4152 | *the\ am__doit\ target*) | ||
4153 | am__include=include | ||
4154 | am__quote= | ||
4155 | _am_result=GNU | ||
4156 | ;; | ||
4157 | esac | ||
4158 | # Now try BSD make style include. | ||
4159 | if test "$am__include" = "#"; then | ||
4160 | echo '.include "confinc"' > confmf | ||
4161 | case `$am_make -s -f confmf 2> /dev/null` in #( | ||
4162 | *the\ am__doit\ target*) | ||
4163 | am__include=.include | ||
4164 | am__quote="\"" | ||
4165 | _am_result=BSD | ||
4166 | ;; | ||
4167 | esac | ||
4168 | fi | ||
4169 | |||
4170 | |||
4171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | ||
4172 | $as_echo "$_am_result" >&6; } | ||
4173 | rm -f confinc confmf | ||
4174 | |||
4175 | # Check whether --enable-dependency-tracking was given. | ||
4176 | if test "${enable_dependency_tracking+set}" = set; then : | ||
4177 | enableval=$enable_dependency_tracking; | ||
4178 | fi | ||
4179 | |||
4180 | if test "x$enable_dependency_tracking" != xno; then | ||
4181 | am_depcomp="$ac_aux_dir/depcomp" | ||
4182 | AMDEPBACKSLASH='\' | ||
4183 | fi | ||
4184 | if test "x$enable_dependency_tracking" != xno; then | ||
4185 | AMDEP_TRUE= | ||
4186 | AMDEP_FALSE='#' | ||
4187 | else | ||
4188 | AMDEP_TRUE='#' | ||
4189 | AMDEP_FALSE= | ||
4190 | fi | ||
4191 | |||
4192 | |||
4193 | ac_ext=c | ||
4194 | ac_cpp='$CPP $CPPFLAGS' | ||
4195 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4196 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4197 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4198 | if test -n "$ac_tool_prefix"; then | ||
4199 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
4200 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
4201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4202 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4203 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
4204 | $as_echo_n "(cached) " >&6 | ||
4205 | else | ||
4206 | if test -n "$CC"; then | ||
4207 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
4208 | else | ||
4209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4210 | for as_dir in $PATH | ||
4211 | do | ||
4212 | IFS=$as_save_IFS | ||
4213 | test -z "$as_dir" && as_dir=. | ||
4214 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4215 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4216 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
4217 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4218 | break 2 | ||
4219 | fi | ||
4220 | done | ||
4221 | done | ||
4222 | IFS=$as_save_IFS | ||
4223 | |||
4224 | fi | ||
4225 | fi | ||
4226 | CC=$ac_cv_prog_CC | ||
4227 | if test -n "$CC"; then | ||
4228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
4229 | $as_echo "$CC" >&6; } | ||
4230 | else | ||
4231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4232 | $as_echo "no" >&6; } | ||
4233 | fi | ||
4234 | |||
4235 | |||
4236 | fi | ||
4237 | if test -z "$ac_cv_prog_CC"; then | ||
4238 | ac_ct_CC=$CC | ||
4239 | # Extract the first word of "gcc", so it can be a program name with args. | ||
4240 | set dummy gcc; ac_word=$2 | ||
4241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4242 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4243 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
4244 | $as_echo_n "(cached) " >&6 | ||
4245 | else | ||
4246 | if test -n "$ac_ct_CC"; then | ||
4247 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
4248 | else | ||
4249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4250 | for as_dir in $PATH | ||
4251 | do | ||
4252 | IFS=$as_save_IFS | ||
4253 | test -z "$as_dir" && as_dir=. | ||
4254 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4255 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4256 | ac_cv_prog_ac_ct_CC="gcc" | ||
4257 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4258 | break 2 | ||
4259 | fi | ||
4260 | done | ||
4261 | done | ||
4262 | IFS=$as_save_IFS | ||
4263 | |||
4264 | fi | ||
4265 | fi | ||
4266 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
4267 | if test -n "$ac_ct_CC"; then | ||
4268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
4269 | $as_echo "$ac_ct_CC" >&6; } | ||
4270 | else | ||
4271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4272 | $as_echo "no" >&6; } | ||
4273 | fi | ||
4274 | |||
4275 | if test "x$ac_ct_CC" = x; then | ||
4276 | CC="" | ||
4277 | else | ||
4278 | case $cross_compiling:$ac_tool_warned in | ||
4279 | yes:) | ||
4280 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
4281 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
4282 | ac_tool_warned=yes ;; | ||
4283 | esac | ||
4284 | CC=$ac_ct_CC | ||
4285 | fi | ||
4286 | else | ||
4287 | CC="$ac_cv_prog_CC" | ||
4288 | fi | ||
4289 | |||
4290 | if test -z "$CC"; then | ||
4291 | if test -n "$ac_tool_prefix"; then | ||
4292 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
4293 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
4294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4295 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4296 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
4297 | $as_echo_n "(cached) " >&6 | ||
4298 | else | ||
4299 | if test -n "$CC"; then | ||
4300 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
4301 | else | ||
4302 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4303 | for as_dir in $PATH | ||
4304 | do | ||
4305 | IFS=$as_save_IFS | ||
4306 | test -z "$as_dir" && as_dir=. | ||
4307 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4308 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4309 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
4310 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4311 | break 2 | ||
4312 | fi | ||
4313 | done | ||
4314 | done | ||
4315 | IFS=$as_save_IFS | ||
4316 | |||
4317 | fi | ||
4318 | fi | ||
4319 | CC=$ac_cv_prog_CC | ||
4320 | if test -n "$CC"; then | ||
4321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
4322 | $as_echo "$CC" >&6; } | ||
4323 | else | ||
4324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4325 | $as_echo "no" >&6; } | ||
4326 | fi | ||
4327 | |||
4328 | |||
4329 | fi | ||
4330 | fi | ||
4331 | if test -z "$CC"; then | ||
4332 | # Extract the first word of "cc", so it can be a program name with args. | ||
4333 | set dummy cc; ac_word=$2 | ||
4334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4335 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4336 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
4337 | $as_echo_n "(cached) " >&6 | ||
4338 | else | ||
4339 | if test -n "$CC"; then | ||
4340 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
4341 | else | ||
4342 | ac_prog_rejected=no | ||
4343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4344 | for as_dir in $PATH | ||
4345 | do | ||
4346 | IFS=$as_save_IFS | ||
4347 | test -z "$as_dir" && as_dir=. | ||
4348 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4349 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4350 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
4351 | ac_prog_rejected=yes | ||
4352 | continue | ||
4353 | fi | ||
4354 | ac_cv_prog_CC="cc" | ||
4355 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4356 | break 2 | ||
4357 | fi | ||
4358 | done | ||
4359 | done | ||
4360 | IFS=$as_save_IFS | ||
4361 | |||
4362 | if test $ac_prog_rejected = yes; then | ||
4363 | # We found a bogon in the path, so make sure we never use it. | ||
4364 | set dummy $ac_cv_prog_CC | ||
4365 | shift | ||
4366 | if test $# != 0; then | ||
4367 | # We chose a different compiler from the bogus one. | ||
4368 | # However, it has the same basename, so the bogon will be chosen | ||
4369 | # first if we set CC to just the basename; use the full file name. | ||
4370 | shift | ||
4371 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
4372 | fi | ||
4373 | fi | ||
4374 | fi | ||
4375 | fi | ||
4376 | CC=$ac_cv_prog_CC | ||
4377 | if test -n "$CC"; then | ||
4378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
4379 | $as_echo "$CC" >&6; } | ||
4380 | else | ||
4381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4382 | $as_echo "no" >&6; } | ||
4383 | fi | ||
4384 | |||
4385 | |||
4386 | fi | ||
4387 | if test -z "$CC"; then | ||
4388 | if test -n "$ac_tool_prefix"; then | ||
4389 | for ac_prog in cl.exe | ||
4390 | do | ||
4391 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
4392 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
4393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4394 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4395 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
4396 | $as_echo_n "(cached) " >&6 | ||
4397 | else | ||
4398 | if test -n "$CC"; then | ||
4399 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
4400 | else | ||
4401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4402 | for as_dir in $PATH | ||
4403 | do | ||
4404 | IFS=$as_save_IFS | ||
4405 | test -z "$as_dir" && as_dir=. | ||
4406 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4407 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4408 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
4409 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4410 | break 2 | ||
4411 | fi | ||
4412 | done | ||
4413 | done | ||
4414 | IFS=$as_save_IFS | ||
4415 | |||
4416 | fi | ||
4417 | fi | ||
4418 | CC=$ac_cv_prog_CC | ||
4419 | if test -n "$CC"; then | ||
4420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
4421 | $as_echo "$CC" >&6; } | ||
4422 | else | ||
4423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4424 | $as_echo "no" >&6; } | ||
4425 | fi | ||
4426 | |||
4427 | |||
4428 | test -n "$CC" && break | ||
4429 | done | ||
4430 | fi | ||
4431 | if test -z "$CC"; then | ||
4432 | ac_ct_CC=$CC | ||
4433 | for ac_prog in cl.exe | ||
4434 | do | ||
4435 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4436 | set dummy $ac_prog; ac_word=$2 | ||
4437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4438 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4439 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
4440 | $as_echo_n "(cached) " >&6 | ||
4441 | else | ||
4442 | if test -n "$ac_ct_CC"; then | ||
4443 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
4444 | else | ||
4445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4446 | for as_dir in $PATH | ||
4447 | do | ||
4448 | IFS=$as_save_IFS | ||
4449 | test -z "$as_dir" && as_dir=. | ||
4450 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4451 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4452 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
4453 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4454 | break 2 | ||
4455 | fi | ||
4456 | done | ||
4457 | done | ||
4458 | IFS=$as_save_IFS | ||
4459 | |||
4460 | fi | ||
4461 | fi | ||
4462 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
4463 | if test -n "$ac_ct_CC"; then | ||
4464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
4465 | $as_echo "$ac_ct_CC" >&6; } | ||
4466 | else | ||
4467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4468 | $as_echo "no" >&6; } | ||
4469 | fi | ||
4470 | |||
4471 | |||
4472 | test -n "$ac_ct_CC" && break | ||
4473 | done | ||
4474 | |||
4475 | if test "x$ac_ct_CC" = x; then | ||
4476 | CC="" | ||
4477 | else | ||
4478 | case $cross_compiling:$ac_tool_warned in | ||
4479 | yes:) | ||
4480 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
4481 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
4482 | ac_tool_warned=yes ;; | ||
4483 | esac | ||
4484 | CC=$ac_ct_CC | ||
4485 | fi | ||
4486 | fi | ||
4487 | |||
4488 | fi | ||
4489 | |||
4490 | |||
4491 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4492 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4493 | as_fn_error $? "no acceptable C compiler found in \$PATH | ||
4494 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4495 | |||
4496 | # Provide some information about the compiler. | ||
4497 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
4498 | set X $ac_compile | ||
4499 | ac_compiler=$2 | ||
4500 | for ac_option in --version -v -V -qversion; do | ||
4501 | { { ac_try="$ac_compiler $ac_option >&5" | ||
4502 | case "(($ac_try" in | ||
4503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4504 | *) ac_try_echo=$ac_try;; | ||
4505 | esac | ||
4506 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4507 | $as_echo "$ac_try_echo"; } >&5 | ||
4508 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
4509 | ac_status=$? | ||
4510 | if test -s conftest.err; then | ||
4511 | sed '10a\ | ||
4512 | ... rest of stderr output deleted ... | ||
4513 | 10q' conftest.err >conftest.er1 | ||
4514 | cat conftest.er1 >&5 | ||
4515 | fi | ||
4516 | rm -f conftest.er1 conftest.err | ||
4517 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4518 | test $ac_status = 0; } | ||
4519 | done | ||
4520 | |||
4521 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4522 | /* end confdefs.h. */ | ||
4523 | |||
4524 | int | ||
4525 | main () | ||
4526 | { | ||
4527 | |||
4528 | ; | ||
4529 | return 0; | ||
4530 | } | ||
4531 | _ACEOF | ||
4532 | ac_clean_files_save=$ac_clean_files | ||
4533 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | ||
4534 | # Try to create an executable without -o first, disregard a.out. | ||
4535 | # It will help us diagnose broken compilers, and finding out an intuition | ||
4536 | # of exeext. | ||
4537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | ||
4538 | $as_echo_n "checking whether the C compiler works... " >&6; } | ||
4539 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
4540 | |||
4541 | # The possible output files: | ||
4542 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | ||
4543 | |||
4544 | ac_rmfiles= | ||
4545 | for ac_file in $ac_files | ||
4546 | do | ||
4547 | case $ac_file in | ||
4548 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
4549 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
4550 | esac | ||
4551 | done | ||
4552 | rm -f $ac_rmfiles | ||
4553 | |||
4554 | if { { ac_try="$ac_link_default" | ||
4555 | case "(($ac_try" in | ||
4556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4557 | *) ac_try_echo=$ac_try;; | ||
4558 | esac | ||
4559 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4560 | $as_echo "$ac_try_echo"; } >&5 | ||
4561 | (eval "$ac_link_default") 2>&5 | ||
4562 | ac_status=$? | ||
4563 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4564 | test $ac_status = 0; }; then : | ||
4565 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
4566 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
4567 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
4568 | # so that the user can short-circuit this test for compilers unknown to | ||
4569 | # Autoconf. | ||
4570 | for ac_file in $ac_files '' | ||
4571 | do | ||
4572 | test -f "$ac_file" || continue | ||
4573 | case $ac_file in | ||
4574 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | ||
4575 | ;; | ||
4576 | [ab].out ) | ||
4577 | # We found the default executable, but exeext='' is most | ||
4578 | # certainly right. | ||
4579 | break;; | ||
4580 | *.* ) | ||
4581 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
4582 | then :; else | ||
4583 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
4584 | fi | ||
4585 | # We set ac_cv_exeext here because the later test for it is not | ||
4586 | # safe: cross compilers may not add the suffix if given an `-o' | ||
4587 | # argument, so we may need to know it at that point already. | ||
4588 | # Even if this section looks crufty: it has the advantage of | ||
4589 | # actually working. | ||
4590 | break;; | ||
4591 | * ) | ||
4592 | break;; | ||
4593 | esac | ||
4594 | done | ||
4595 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
4596 | |||
4597 | else | ||
4598 | ac_file='' | ||
4599 | fi | ||
4600 | if test -z "$ac_file"; then : | ||
4601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4602 | $as_echo "no" >&6; } | ||
4603 | $as_echo "$as_me: failed program was:" >&5 | ||
4604 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4605 | |||
4606 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4607 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4608 | as_fn_error 77 "C compiler cannot create executables | ||
4609 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4610 | else | ||
4611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
4612 | $as_echo "yes" >&6; } | ||
4613 | fi | ||
4614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | ||
4615 | $as_echo_n "checking for C compiler default output file name... " >&6; } | ||
4616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | ||
4617 | $as_echo "$ac_file" >&6; } | ||
4618 | ac_exeext=$ac_cv_exeext | ||
4619 | |||
4620 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | ||
4621 | ac_clean_files=$ac_clean_files_save | ||
4622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | ||
4623 | $as_echo_n "checking for suffix of executables... " >&6; } | ||
4624 | if { { ac_try="$ac_link" | ||
4625 | case "(($ac_try" in | ||
4626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4627 | *) ac_try_echo=$ac_try;; | ||
4628 | esac | ||
4629 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4630 | $as_echo "$ac_try_echo"; } >&5 | ||
4631 | (eval "$ac_link") 2>&5 | ||
4632 | ac_status=$? | ||
4633 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4634 | test $ac_status = 0; }; then : | ||
4635 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
4636 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
4637 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
4638 | # `rm'. | ||
4639 | for ac_file in conftest.exe conftest conftest.*; do | ||
4640 | test -f "$ac_file" || continue | ||
4641 | case $ac_file in | ||
4642 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
4643 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
4644 | break;; | ||
4645 | * ) break;; | ||
4646 | esac | ||
4647 | done | ||
4648 | else | ||
4649 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4650 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4651 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | ||
4652 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4653 | fi | ||
4654 | rm -f conftest conftest$ac_cv_exeext | ||
4655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | ||
4656 | $as_echo "$ac_cv_exeext" >&6; } | ||
4657 | |||
4658 | rm -f conftest.$ac_ext | ||
4659 | EXEEXT=$ac_cv_exeext | ||
4660 | ac_exeext=$EXEEXT | ||
4661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4662 | /* end confdefs.h. */ | ||
4663 | #include <stdio.h> | ||
4664 | int | ||
4665 | main () | ||
4666 | { | ||
4667 | FILE *f = fopen ("conftest.out", "w"); | ||
4668 | return ferror (f) || fclose (f) != 0; | ||
4669 | |||
4670 | ; | ||
4671 | return 0; | ||
4672 | } | ||
4673 | _ACEOF | ||
4674 | ac_clean_files="$ac_clean_files conftest.out" | ||
4675 | # Check that the compiler produces executables we can run. If not, either | ||
4676 | # the compiler is broken, or we cross compile. | ||
4677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | ||
4678 | $as_echo_n "checking whether we are cross compiling... " >&6; } | ||
4679 | if test "$cross_compiling" != yes; then | ||
4680 | { { ac_try="$ac_link" | ||
4681 | case "(($ac_try" in | ||
4682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4683 | *) ac_try_echo=$ac_try;; | ||
4684 | esac | ||
4685 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4686 | $as_echo "$ac_try_echo"; } >&5 | ||
4687 | (eval "$ac_link") 2>&5 | ||
4688 | ac_status=$? | ||
4689 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4690 | test $ac_status = 0; } | ||
4691 | if { ac_try='./conftest$ac_cv_exeext' | ||
4692 | { { case "(($ac_try" in | ||
4693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4694 | *) ac_try_echo=$ac_try;; | ||
4695 | esac | ||
4696 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4697 | $as_echo "$ac_try_echo"; } >&5 | ||
4698 | (eval "$ac_try") 2>&5 | ||
4699 | ac_status=$? | ||
4700 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4701 | test $ac_status = 0; }; }; then | ||
4702 | cross_compiling=no | ||
4703 | else | ||
4704 | if test "$cross_compiling" = maybe; then | ||
4705 | cross_compiling=yes | ||
4706 | else | ||
4707 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4708 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4709 | as_fn_error $? "cannot run C compiled programs. | ||
4710 | If you meant to cross compile, use \`--host'. | ||
4711 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4712 | fi | ||
4713 | fi | ||
4714 | fi | ||
4715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | ||
4716 | $as_echo "$cross_compiling" >&6; } | ||
4717 | |||
4718 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | ||
4719 | ac_clean_files=$ac_clean_files_save | ||
4720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | ||
4721 | $as_echo_n "checking for suffix of object files... " >&6; } | ||
4722 | if test "${ac_cv_objext+set}" = set; then : | ||
4723 | $as_echo_n "(cached) " >&6 | ||
4724 | else | ||
4725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4726 | /* end confdefs.h. */ | ||
4727 | |||
4728 | int | ||
4729 | main () | ||
4730 | { | ||
4731 | |||
4732 | ; | ||
4733 | return 0; | ||
4734 | } | ||
4735 | _ACEOF | ||
4736 | rm -f conftest.o conftest.obj | ||
4737 | if { { ac_try="$ac_compile" | ||
4738 | case "(($ac_try" in | ||
4739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4740 | *) ac_try_echo=$ac_try;; | ||
4741 | esac | ||
4742 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4743 | $as_echo "$ac_try_echo"; } >&5 | ||
4744 | (eval "$ac_compile") 2>&5 | ||
4745 | ac_status=$? | ||
4746 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4747 | test $ac_status = 0; }; then : | ||
4748 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
4749 | test -f "$ac_file" || continue; | ||
4750 | case $ac_file in | ||
4751 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | ||
4752 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
4753 | break;; | ||
4754 | esac | ||
4755 | done | ||
4756 | else | ||
4757 | $as_echo "$as_me: failed program was:" >&5 | ||
4758 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4759 | |||
4760 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4761 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4762 | as_fn_error $? "cannot compute suffix of object files: cannot compile | ||
4763 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
4764 | fi | ||
4765 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
4766 | fi | ||
4767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | ||
4768 | $as_echo "$ac_cv_objext" >&6; } | ||
4769 | OBJEXT=$ac_cv_objext | ||
4770 | ac_objext=$OBJEXT | ||
4771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | ||
4772 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
4773 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | ||
4774 | $as_echo_n "(cached) " >&6 | ||
4775 | else | ||
4776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4777 | /* end confdefs.h. */ | ||
4778 | |||
4779 | int | ||
4780 | main () | ||
4781 | { | ||
4782 | #ifndef __GNUC__ | ||
4783 | choke me | ||
4784 | #endif | ||
4785 | |||
4786 | ; | ||
4787 | return 0; | ||
4788 | } | ||
4789 | _ACEOF | ||
4790 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4791 | ac_compiler_gnu=yes | ||
4792 | else | ||
4793 | ac_compiler_gnu=no | ||
4794 | fi | ||
4795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4796 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
4797 | |||
4798 | fi | ||
4799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
4800 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
4801 | if test $ac_compiler_gnu = yes; then | ||
4802 | GCC=yes | ||
4803 | else | ||
4804 | GCC= | ||
4805 | fi | ||
4806 | ac_test_CFLAGS=${CFLAGS+set} | ||
4807 | ac_save_CFLAGS=$CFLAGS | ||
4808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
4809 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
4810 | if test "${ac_cv_prog_cc_g+set}" = set; then : | ||
4811 | $as_echo_n "(cached) " >&6 | ||
4812 | else | ||
4813 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
4814 | ac_c_werror_flag=yes | ||
4815 | ac_cv_prog_cc_g=no | ||
4816 | CFLAGS="-g" | ||
4817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4818 | /* end confdefs.h. */ | ||
4819 | |||
4820 | int | ||
4821 | main () | ||
4822 | { | ||
4823 | |||
4824 | ; | ||
4825 | return 0; | ||
4826 | } | ||
4827 | _ACEOF | ||
4828 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4829 | ac_cv_prog_cc_g=yes | ||
4830 | else | ||
4831 | CFLAGS="" | ||
4832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4833 | /* end confdefs.h. */ | ||
4834 | |||
4835 | int | ||
4836 | main () | ||
4837 | { | ||
4838 | |||
4839 | ; | ||
4840 | return 0; | ||
4841 | } | ||
4842 | _ACEOF | ||
4843 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4844 | |||
4845 | else | ||
4846 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
4847 | CFLAGS="-g" | ||
4848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4849 | /* end confdefs.h. */ | ||
4850 | |||
4851 | int | ||
4852 | main () | ||
4853 | { | ||
4854 | |||
4855 | ; | ||
4856 | return 0; | ||
4857 | } | ||
4858 | _ACEOF | ||
4859 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4860 | ac_cv_prog_cc_g=yes | ||
4861 | fi | ||
4862 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4863 | fi | ||
4864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4865 | fi | ||
4866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4867 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
4868 | fi | ||
4869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
4870 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
4871 | if test "$ac_test_CFLAGS" = set; then | ||
4872 | CFLAGS=$ac_save_CFLAGS | ||
4873 | elif test $ac_cv_prog_cc_g = yes; then | ||
4874 | if test "$GCC" = yes; then | ||
4875 | CFLAGS="-g -O2" | ||
4876 | else | ||
4877 | CFLAGS="-g" | ||
4878 | fi | ||
4879 | else | ||
4880 | if test "$GCC" = yes; then | ||
4881 | CFLAGS="-O2" | ||
4882 | else | ||
4883 | CFLAGS= | ||
4884 | fi | ||
4885 | fi | ||
4886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
4887 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
4888 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
4889 | $as_echo_n "(cached) " >&6 | ||
4890 | else | ||
4891 | ac_cv_prog_cc_c89=no | ||
4892 | ac_save_CC=$CC | ||
4893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4894 | /* end confdefs.h. */ | ||
4895 | #include <stdarg.h> | ||
4896 | #include <stdio.h> | ||
4897 | #include <sys/types.h> | ||
4898 | #include <sys/stat.h> | ||
4899 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
4900 | struct buf { int x; }; | ||
4901 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
4902 | static char *e (p, i) | ||
4903 | char **p; | ||
4904 | int i; | ||
4905 | { | ||
4906 | return p[i]; | ||
4907 | } | ||
4908 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
4909 | { | ||
4910 | char *s; | ||
4911 | va_list v; | ||
4912 | va_start (v,p); | ||
4913 | s = g (p, va_arg (v,int)); | ||
4914 | va_end (v); | ||
4915 | return s; | ||
4916 | } | ||
4917 | |||
4918 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
4919 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
4920 | These don't provoke an error unfortunately, instead are silently treated | ||
4921 | as 'x'. The following induces an error, until -std is added to get | ||
4922 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
4923 | array size at least. It's necessary to write '\x00'==0 to get something | ||
4924 | that's true only with -std. */ | ||
4925 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
4926 | |||
4927 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
4928 | inside strings and character constants. */ | ||
4929 | #define FOO(x) 'x' | ||
4930 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
4931 | |||
4932 | int test (int i, double x); | ||
4933 | struct s1 {int (*f) (int a);}; | ||
4934 | struct s2 {int (*f) (double a);}; | ||
4935 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
4936 | int argc; | ||
4937 | char **argv; | ||
4938 | int | ||
4939 | main () | ||
4940 | { | ||
4941 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
4942 | ; | ||
4943 | return 0; | ||
4944 | } | ||
4945 | _ACEOF | ||
4946 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
4947 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
4948 | do | ||
4949 | CC="$ac_save_CC $ac_arg" | ||
4950 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4951 | ac_cv_prog_cc_c89=$ac_arg | ||
4952 | fi | ||
4953 | rm -f core conftest.err conftest.$ac_objext | ||
4954 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
4955 | done | ||
4956 | rm -f conftest.$ac_ext | ||
4957 | CC=$ac_save_CC | ||
4958 | |||
4959 | fi | ||
4960 | # AC_CACHE_VAL | ||
4961 | case "x$ac_cv_prog_cc_c89" in | ||
4962 | x) | ||
4963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
4964 | $as_echo "none needed" >&6; } ;; | ||
4965 | xno) | ||
4966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
4967 | $as_echo "unsupported" >&6; } ;; | ||
4968 | *) | ||
4969 | CC="$CC $ac_cv_prog_cc_c89" | ||
4970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
4971 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
4972 | esac | ||
4973 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
4974 | |||
4975 | fi | ||
4976 | |||
4977 | ac_ext=c | ||
4978 | ac_cpp='$CPP $CPPFLAGS' | ||
4979 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4980 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4981 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4982 | |||
4983 | depcc="$CC" am_compiler_list= | ||
4984 | |||
4985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
4986 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
4987 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | ||
4988 | $as_echo_n "(cached) " >&6 | ||
4989 | else | ||
4990 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
4991 | # We make a subdir and do the tests there. Otherwise we can end up | ||
4992 | # making bogus files that we don't know about and never remove. For | ||
4993 | # instance it was reported that on HP-UX the gcc test will end up | ||
4994 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
4995 | # in D'. | ||
4996 | mkdir conftest.dir | ||
4997 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
4998 | # using a relative directory. | ||
4999 | cp "$am_depcomp" conftest.dir | ||
5000 | cd conftest.dir | ||
5001 | # We will build objects and dependencies in a subdirectory because | ||
5002 | # it helps to detect inapplicable dependency modes. For instance | ||
5003 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
5004 | # side effect of compilation, but ICC will put the dependencies in | ||
5005 | # the current directory while Tru64 will put them in the object | ||
5006 | # directory. | ||
5007 | mkdir sub | ||
5008 | |||
5009 | am_cv_CC_dependencies_compiler_type=none | ||
5010 | if test "$am_compiler_list" = ""; then | ||
5011 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
5012 | fi | ||
5013 | am__universal=false | ||
5014 | case " $depcc " in #( | ||
5015 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
5016 | esac | ||
5017 | |||
5018 | for depmode in $am_compiler_list; do | ||
5019 | # Setup a source with many dependencies, because some compilers | ||
5020 | # like to wrap large dependency lists on column 80 (with \), and | ||
5021 | # we should not choose a depcomp mode which is confused by this. | ||
5022 | # | ||
5023 | # We need to recreate these files for each test, as the compiler may | ||
5024 | # overwrite some of them when testing with obscure command lines. | ||
5025 | # This happens at least with the AIX C compiler. | ||
5026 | : > sub/conftest.c | ||
5027 | for i in 1 2 3 4 5 6; do | ||
5028 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
5029 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
5030 | # Solaris 8's {/usr,}/bin/sh. | ||
5031 | touch sub/conftst$i.h | ||
5032 | done | ||
5033 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
5034 | |||
5035 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
5036 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
5037 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
5038 | # versions had trouble with output in subdirs | ||
5039 | am__obj=sub/conftest.${OBJEXT-o} | ||
5040 | am__minus_obj="-o $am__obj" | ||
5041 | case $depmode in | ||
5042 | gcc) | ||
5043 | # This depmode causes a compiler race in universal mode. | ||
5044 | test "$am__universal" = false || continue | ||
5045 | ;; | ||
5046 | nosideeffect) | ||
5047 | # after this tag, mechanisms are not by side-effect, so they'll | ||
5048 | # only be used when explicitly requested | ||
5049 | if test "x$enable_dependency_tracking" = xyes; then | ||
5050 | continue | ||
5051 | else | ||
5052 | break | ||
5053 | fi | ||
5054 | ;; | ||
5055 | msvisualcpp | msvcmsys) | ||
5056 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
5057 | # not run yet. These depmodes are late enough in the game, and | ||
5058 | # so weak that their functioning should not be impacted. | ||
5059 | am__obj=conftest.${OBJEXT-o} | ||
5060 | am__minus_obj= | ||
5061 | ;; | ||
5062 | none) break ;; | ||
5063 | esac | ||
5064 | if depmode=$depmode \ | ||
5065 | source=sub/conftest.c object=$am__obj \ | ||
5066 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
5067 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
5068 | >/dev/null 2>conftest.err && | ||
5069 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
5070 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
5071 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
5072 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
5073 | # icc doesn't choke on unknown options, it will just issue warnings | ||
5074 | # or remarks (even with -Werror). So we grep stderr for any message | ||
5075 | # that says an option was ignored or not supported. | ||
5076 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
5077 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
5078 | # The diagnosis changed in icc 8.0: | ||
5079 | # icc: Command line remark: option '-MP' not supported | ||
5080 | if (grep 'ignoring option' conftest.err || | ||
5081 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
5082 | am_cv_CC_dependencies_compiler_type=$depmode | ||
5083 | break | ||
5084 | fi | ||
5085 | fi | ||
5086 | done | ||
5087 | |||
5088 | cd .. | ||
5089 | rm -rf conftest.dir | ||
5090 | else | ||
5091 | am_cv_CC_dependencies_compiler_type=none | ||
5092 | fi | ||
5093 | |||
5094 | fi | ||
5095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | ||
5096 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | ||
5097 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
5098 | |||
5099 | if | ||
5100 | test "x$enable_dependency_tracking" != xno \ | ||
5101 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
5102 | am__fastdepCC_TRUE= | ||
5103 | am__fastdepCC_FALSE='#' | ||
5104 | else | ||
5105 | am__fastdepCC_TRUE='#' | ||
5106 | am__fastdepCC_FALSE= | ||
5107 | fi | ||
5108 | |||
5109 | |||
5110 | |||
5111 | ac_ext=c | ||
5112 | ac_cpp='$CPP $CPPFLAGS' | ||
5113 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
5114 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
5115 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
5116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||
5117 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||
5118 | # On Suns, sometimes $CPP names a directory. | ||
5119 | if test -n "$CPP" && test -d "$CPP"; then | ||
5120 | CPP= | ||
5121 | fi | ||
5122 | if test -z "$CPP"; then | ||
5123 | if test "${ac_cv_prog_CPP+set}" = set; then : | ||
5124 | $as_echo_n "(cached) " >&6 | ||
5125 | else | ||
5126 | # Double quotes because CPP needs to be expanded | ||
5127 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
5128 | do | ||
5129 | ac_preproc_ok=false | ||
5130 | for ac_c_preproc_warn_flag in '' yes | ||
5131 | do | ||
5132 | # Use a header file that comes with gcc, so configuring glibc | ||
5133 | # with a fresh cross-compiler works. | ||
5134 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5135 | # <limits.h> exists even on freestanding compilers. | ||
5136 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
5137 | # not just through cpp. "Syntax error" is here to catch this case. | ||
5138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5139 | /* end confdefs.h. */ | ||
5140 | #ifdef __STDC__ | ||
5141 | # include <limits.h> | ||
5142 | #else | ||
5143 | # include <assert.h> | ||
5144 | #endif | ||
5145 | Syntax error | ||
5146 | _ACEOF | ||
5147 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
5148 | |||
5149 | else | ||
5150 | # Broken: fails on valid input. | ||
5151 | continue | ||
5152 | fi | ||
5153 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
5154 | |||
5155 | # OK, works on sane cases. Now check whether nonexistent headers | ||
5156 | # can be detected and how. | ||
5157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5158 | /* end confdefs.h. */ | ||
5159 | #include <ac_nonexistent.h> | ||
5160 | _ACEOF | ||
5161 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
5162 | # Broken: success on invalid input. | ||
5163 | continue | ||
5164 | else | ||
5165 | # Passes both tests. | ||
5166 | ac_preproc_ok=: | ||
5167 | break | ||
5168 | fi | ||
5169 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
5170 | |||
5171 | done | ||
5172 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
5173 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
5174 | if $ac_preproc_ok; then : | ||
5175 | break | ||
5176 | fi | ||
5177 | |||
5178 | done | ||
5179 | ac_cv_prog_CPP=$CPP | ||
5180 | |||
5181 | fi | ||
5182 | CPP=$ac_cv_prog_CPP | ||
5183 | else | ||
5184 | ac_cv_prog_CPP=$CPP | ||
5185 | fi | ||
5186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||
5187 | $as_echo "$CPP" >&6; } | ||
5188 | ac_preproc_ok=false | ||
5189 | for ac_c_preproc_warn_flag in '' yes | ||
5190 | do | ||
5191 | # Use a header file that comes with gcc, so configuring glibc | ||
5192 | # with a fresh cross-compiler works. | ||
5193 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5194 | # <limits.h> exists even on freestanding compilers. | ||
5195 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
5196 | # not just through cpp. "Syntax error" is here to catch this case. | ||
5197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5198 | /* end confdefs.h. */ | ||
5199 | #ifdef __STDC__ | ||
5200 | # include <limits.h> | ||
5201 | #else | ||
5202 | # include <assert.h> | ||
5203 | #endif | ||
5204 | Syntax error | ||
5205 | _ACEOF | ||
5206 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
5207 | |||
5208 | else | ||
5209 | # Broken: fails on valid input. | ||
5210 | continue | ||
5211 | fi | ||
5212 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
5213 | |||
5214 | # OK, works on sane cases. Now check whether nonexistent headers | ||
5215 | # can be detected and how. | ||
5216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5217 | /* end confdefs.h. */ | ||
5218 | #include <ac_nonexistent.h> | ||
5219 | _ACEOF | ||
5220 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
5221 | # Broken: success on invalid input. | ||
5222 | continue | ||
5223 | else | ||
5224 | # Passes both tests. | ||
5225 | ac_preproc_ok=: | ||
5226 | break | ||
5227 | fi | ||
5228 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
5229 | |||
5230 | done | ||
5231 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
5232 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
5233 | if $ac_preproc_ok; then : | ||
5234 | |||
5235 | else | ||
5236 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
5237 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
5238 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | ||
5239 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
5240 | fi | ||
5241 | |||
5242 | ac_ext=c | ||
5243 | ac_cpp='$CPP $CPPFLAGS' | ||
5244 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
5245 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
5246 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
5247 | |||
5248 | |||
5249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | ||
5250 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | ||
5251 | if test "${ac_cv_path_GREP+set}" = set; then : | ||
5252 | $as_echo_n "(cached) " >&6 | ||
5253 | else | ||
5254 | if test -z "$GREP"; then | ||
5255 | ac_path_GREP_found=false | ||
5256 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
5257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5258 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
5259 | do | ||
5260 | IFS=$as_save_IFS | ||
5261 | test -z "$as_dir" && as_dir=. | ||
5262 | for ac_prog in grep ggrep; do | ||
5263 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5264 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
5265 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | ||
5266 | # Check for GNU ac_path_GREP and select it if it is found. | ||
5267 | # Check for GNU $ac_path_GREP | ||
5268 | case `"$ac_path_GREP" --version 2>&1` in | ||
5269 | *GNU*) | ||
5270 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
5271 | *) | ||
5272 | ac_count=0 | ||
5273 | $as_echo_n 0123456789 >"conftest.in" | ||
5274 | while : | ||
5275 | do | ||
5276 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
5277 | mv "conftest.tmp" "conftest.in" | ||
5278 | cp "conftest.in" "conftest.nl" | ||
5279 | $as_echo 'GREP' >> "conftest.nl" | ||
5280 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
5281 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
5282 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
5283 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
5284 | # Best one so far, save it but keep looking for a better one | ||
5285 | ac_cv_path_GREP="$ac_path_GREP" | ||
5286 | ac_path_GREP_max=$ac_count | ||
5287 | fi | ||
5288 | # 10*(2^10) chars as input seems more than enough | ||
5289 | test $ac_count -gt 10 && break | ||
5290 | done | ||
5291 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
5292 | esac | ||
5293 | |||
5294 | $ac_path_GREP_found && break 3 | ||
5295 | done | ||
5296 | done | ||
5297 | done | ||
5298 | IFS=$as_save_IFS | ||
5299 | if test -z "$ac_cv_path_GREP"; then | ||
5300 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
5301 | fi | ||
5302 | else | ||
5303 | ac_cv_path_GREP=$GREP | ||
5304 | fi | ||
5305 | |||
5306 | fi | ||
5307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | ||
5308 | $as_echo "$ac_cv_path_GREP" >&6; } | ||
5309 | GREP="$ac_cv_path_GREP" | ||
5310 | |||
5311 | |||
5312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | ||
5313 | $as_echo_n "checking for egrep... " >&6; } | ||
5314 | if test "${ac_cv_path_EGREP+set}" = set; then : | ||
5315 | $as_echo_n "(cached) " >&6 | ||
5316 | else | ||
5317 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
5318 | then ac_cv_path_EGREP="$GREP -E" | ||
5319 | else | ||
5320 | if test -z "$EGREP"; then | ||
5321 | ac_path_EGREP_found=false | ||
5322 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
5323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5324 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
5325 | do | ||
5326 | IFS=$as_save_IFS | ||
5327 | test -z "$as_dir" && as_dir=. | ||
5328 | for ac_prog in egrep; do | ||
5329 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5330 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
5331 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
5332 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
5333 | # Check for GNU $ac_path_EGREP | ||
5334 | case `"$ac_path_EGREP" --version 2>&1` in | ||
5335 | *GNU*) | ||
5336 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
5337 | *) | ||
5338 | ac_count=0 | ||
5339 | $as_echo_n 0123456789 >"conftest.in" | ||
5340 | while : | ||
5341 | do | ||
5342 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
5343 | mv "conftest.tmp" "conftest.in" | ||
5344 | cp "conftest.in" "conftest.nl" | ||
5345 | $as_echo 'EGREP' >> "conftest.nl" | ||
5346 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
5347 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
5348 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
5349 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
5350 | # Best one so far, save it but keep looking for a better one | ||
5351 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
5352 | ac_path_EGREP_max=$ac_count | ||
5353 | fi | ||
5354 | # 10*(2^10) chars as input seems more than enough | ||
5355 | test $ac_count -gt 10 && break | ||
5356 | done | ||
5357 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
5358 | esac | ||
5359 | |||
5360 | $ac_path_EGREP_found && break 3 | ||
5361 | done | ||
5362 | done | ||
5363 | done | ||
5364 | IFS=$as_save_IFS | ||
5365 | if test -z "$ac_cv_path_EGREP"; then | ||
5366 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
5367 | fi | ||
5368 | else | ||
5369 | ac_cv_path_EGREP=$EGREP | ||
5370 | fi | ||
5371 | |||
5372 | fi | ||
5373 | fi | ||
5374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | ||
5375 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||
5376 | EGREP="$ac_cv_path_EGREP" | ||
5377 | |||
5378 | |||
5379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | ||
5380 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||
5381 | if test "${ac_cv_header_stdc+set}" = set; then : | ||
5382 | $as_echo_n "(cached) " >&6 | ||
5383 | else | ||
5384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5385 | /* end confdefs.h. */ | ||
5386 | #include <stdlib.h> | ||
5387 | #include <stdarg.h> | ||
5388 | #include <string.h> | ||
5389 | #include <float.h> | ||
5390 | |||
5391 | int | ||
5392 | main () | ||
5393 | { | ||
5394 | |||
5395 | ; | ||
5396 | return 0; | ||
5397 | } | ||
5398 | _ACEOF | ||
5399 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5400 | ac_cv_header_stdc=yes | ||
5401 | else | ||
5402 | ac_cv_header_stdc=no | ||
5403 | fi | ||
5404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5405 | |||
5406 | if test $ac_cv_header_stdc = yes; then | ||
5407 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
5408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5409 | /* end confdefs.h. */ | ||
5410 | #include <string.h> | ||
5411 | |||
5412 | _ACEOF | ||
5413 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
5414 | $EGREP "memchr" >/dev/null 2>&1; then : | ||
5415 | |||
5416 | else | ||
5417 | ac_cv_header_stdc=no | ||
5418 | fi | ||
5419 | rm -f conftest* | ||
5420 | |||
5421 | fi | ||
5422 | |||
5423 | if test $ac_cv_header_stdc = yes; then | ||
5424 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
5425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5426 | /* end confdefs.h. */ | ||
5427 | #include <stdlib.h> | ||
5428 | |||
5429 | _ACEOF | ||
5430 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
5431 | $EGREP "free" >/dev/null 2>&1; then : | ||
5432 | |||
5433 | else | ||
5434 | ac_cv_header_stdc=no | ||
5435 | fi | ||
5436 | rm -f conftest* | ||
5437 | |||
5438 | fi | ||
5439 | |||
5440 | if test $ac_cv_header_stdc = yes; then | ||
5441 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
5442 | if test "$cross_compiling" = yes; then : | ||
5443 | : | ||
5444 | else | ||
5445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5446 | /* end confdefs.h. */ | ||
5447 | #include <ctype.h> | ||
5448 | #include <stdlib.h> | ||
5449 | #if ((' ' & 0x0FF) == 0x020) | ||
5450 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
5451 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
5452 | #else | ||
5453 | # define ISLOWER(c) \ | ||
5454 | (('a' <= (c) && (c) <= 'i') \ | ||
5455 | || ('j' <= (c) && (c) <= 'r') \ | ||
5456 | || ('s' <= (c) && (c) <= 'z')) | ||
5457 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
5458 | #endif | ||
5459 | |||
5460 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
5461 | int | ||
5462 | main () | ||
5463 | { | ||
5464 | int i; | ||
5465 | for (i = 0; i < 256; i++) | ||
5466 | if (XOR (islower (i), ISLOWER (i)) | ||
5467 | || toupper (i) != TOUPPER (i)) | ||
5468 | return 2; | ||
5469 | return 0; | ||
5470 | } | ||
5471 | _ACEOF | ||
5472 | if ac_fn_c_try_run "$LINENO"; then : | ||
5473 | |||
5474 | else | ||
5475 | ac_cv_header_stdc=no | ||
5476 | fi | ||
5477 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
5478 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
5479 | fi | ||
5480 | |||
5481 | fi | ||
5482 | fi | ||
5483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||
5484 | $as_echo "$ac_cv_header_stdc" >&6; } | ||
5485 | if test $ac_cv_header_stdc = yes; then | ||
5486 | |||
5487 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||
5488 | |||
5489 | fi | ||
5490 | |||
5491 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
5492 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
5493 | inttypes.h stdint.h unistd.h | ||
5494 | do : | ||
5495 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5496 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | ||
5497 | " | ||
5498 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
5499 | cat >>confdefs.h <<_ACEOF | ||
5500 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5501 | _ACEOF | ||
5502 | |||
5503 | fi | ||
5504 | |||
5505 | done | ||
5506 | |||
5507 | |||
5508 | |||
5509 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | ||
5510 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | ||
5511 | MINIX=yes | ||
5512 | else | ||
5513 | MINIX= | ||
5514 | fi | ||
5515 | |||
5516 | |||
5517 | if test "$MINIX" = yes; then | ||
5518 | |||
5519 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | ||
5520 | |||
5521 | |||
5522 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | ||
5523 | |||
5524 | |||
5525 | $as_echo "#define _MINIX 1" >>confdefs.h | ||
5526 | |||
5527 | fi | ||
5528 | |||
5529 | |||
5530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | ||
5531 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | ||
5532 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | ||
5533 | $as_echo_n "(cached) " >&6 | ||
5534 | else | ||
5535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5536 | /* end confdefs.h. */ | ||
5537 | |||
5538 | # define __EXTENSIONS__ 1 | ||
5539 | $ac_includes_default | ||
5540 | int | ||
5541 | main () | ||
5542 | { | ||
5543 | |||
5544 | ; | ||
5545 | return 0; | ||
5546 | } | ||
5547 | _ACEOF | ||
5548 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5549 | ac_cv_safe_to_define___extensions__=yes | ||
5550 | else | ||
5551 | ac_cv_safe_to_define___extensions__=no | ||
5552 | fi | ||
5553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5554 | fi | ||
5555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | ||
5556 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | ||
5557 | test $ac_cv_safe_to_define___extensions__ = yes && | ||
5558 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | ||
5559 | |||
5560 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | ||
5561 | |||
5562 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | ||
5563 | |||
5564 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | ||
5565 | |||
5566 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | ||
5567 | |||
5568 | |||
5569 | |||
5570 | |||
5571 | # Make sure we can run config.sub. | ||
5572 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
5573 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | ||
5574 | |||
5575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | ||
5576 | $as_echo_n "checking build system type... " >&6; } | ||
5577 | if test "${ac_cv_build+set}" = set; then : | ||
5578 | $as_echo_n "(cached) " >&6 | ||
5579 | else | ||
5580 | ac_build_alias=$build_alias | ||
5581 | test "x$ac_build_alias" = x && | ||
5582 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
5583 | test "x$ac_build_alias" = x && | ||
5584 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | ||
5585 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
5586 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | ||
5587 | |||
5588 | fi | ||
5589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | ||
5590 | $as_echo "$ac_cv_build" >&6; } | ||
5591 | case $ac_cv_build in | ||
5592 | *-*-*) ;; | ||
5593 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; | ||
5594 | esac | ||
5595 | build=$ac_cv_build | ||
5596 | ac_save_IFS=$IFS; IFS='-' | ||
5597 | set x $ac_cv_build | ||
5598 | shift | ||
5599 | build_cpu=$1 | ||
5600 | build_vendor=$2 | ||
5601 | shift; shift | ||
5602 | # Remember, the first character of IFS is used to create $*, | ||
5603 | # except with old shells: | ||
5604 | build_os=$* | ||
5605 | IFS=$ac_save_IFS | ||
5606 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
5607 | |||
5608 | |||
5609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | ||
5610 | $as_echo_n "checking host system type... " >&6; } | ||
5611 | if test "${ac_cv_host+set}" = set; then : | ||
5612 | $as_echo_n "(cached) " >&6 | ||
5613 | else | ||
5614 | if test "x$host_alias" = x; then | ||
5615 | ac_cv_host=$ac_cv_build | ||
5616 | else | ||
5617 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
5618 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | ||
5619 | fi | ||
5620 | |||
5621 | fi | ||
5622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | ||
5623 | $as_echo "$ac_cv_host" >&6; } | ||
5624 | case $ac_cv_host in | ||
5625 | *-*-*) ;; | ||
5626 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; | ||
5627 | esac | ||
5628 | host=$ac_cv_host | ||
5629 | ac_save_IFS=$IFS; IFS='-' | ||
5630 | set x $ac_cv_host | ||
5631 | shift | ||
5632 | host_cpu=$1 | ||
5633 | host_vendor=$2 | ||
5634 | shift; shift | ||
5635 | # Remember, the first character of IFS is used to create $*, | ||
5636 | # except with old shells: | ||
5637 | host_os=$* | ||
5638 | IFS=$ac_save_IFS | ||
5639 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
5640 | |||
5641 | |||
5642 | enable_win32_dll=yes | ||
5643 | |||
5644 | case $host in | ||
5645 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) | ||
5646 | if test -n "$ac_tool_prefix"; then | ||
5647 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | ||
5648 | set dummy ${ac_tool_prefix}as; ac_word=$2 | ||
5649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5650 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5651 | if test "${ac_cv_prog_AS+set}" = set; then : | ||
5652 | $as_echo_n "(cached) " >&6 | ||
5653 | else | ||
5654 | if test -n "$AS"; then | ||
5655 | ac_cv_prog_AS="$AS" # Let the user override the test. | ||
5656 | else | ||
5657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5658 | for as_dir in $PATH | ||
5659 | do | ||
5660 | IFS=$as_save_IFS | ||
5661 | test -z "$as_dir" && as_dir=. | ||
5662 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5663 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5664 | ac_cv_prog_AS="${ac_tool_prefix}as" | ||
5665 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5666 | break 2 | ||
5667 | fi | ||
5668 | done | ||
5669 | done | ||
5670 | IFS=$as_save_IFS | ||
5671 | |||
5672 | fi | ||
5673 | fi | ||
5674 | AS=$ac_cv_prog_AS | ||
5675 | if test -n "$AS"; then | ||
5676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | ||
5677 | $as_echo "$AS" >&6; } | ||
5678 | else | ||
5679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5680 | $as_echo "no" >&6; } | ||
5681 | fi | ||
5682 | |||
5683 | |||
5684 | fi | ||
5685 | if test -z "$ac_cv_prog_AS"; then | ||
5686 | ac_ct_AS=$AS | ||
5687 | # Extract the first word of "as", so it can be a program name with args. | ||
5688 | set dummy as; ac_word=$2 | ||
5689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5690 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5691 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : | ||
5692 | $as_echo_n "(cached) " >&6 | ||
5693 | else | ||
5694 | if test -n "$ac_ct_AS"; then | ||
5695 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | ||
5696 | else | ||
5697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5698 | for as_dir in $PATH | ||
5699 | do | ||
5700 | IFS=$as_save_IFS | ||
5701 | test -z "$as_dir" && as_dir=. | ||
5702 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5703 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5704 | ac_cv_prog_ac_ct_AS="as" | ||
5705 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5706 | break 2 | ||
5707 | fi | ||
5708 | done | ||
5709 | done | ||
5710 | IFS=$as_save_IFS | ||
5711 | |||
5712 | fi | ||
5713 | fi | ||
5714 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | ||
5715 | if test -n "$ac_ct_AS"; then | ||
5716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 | ||
5717 | $as_echo "$ac_ct_AS" >&6; } | ||
5718 | else | ||
5719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5720 | $as_echo "no" >&6; } | ||
5721 | fi | ||
5722 | |||
5723 | if test "x$ac_ct_AS" = x; then | ||
5724 | AS="false" | ||
5725 | else | ||
5726 | case $cross_compiling:$ac_tool_warned in | ||
5727 | yes:) | ||
5728 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5729 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5730 | ac_tool_warned=yes ;; | ||
5731 | esac | ||
5732 | AS=$ac_ct_AS | ||
5733 | fi | ||
5734 | else | ||
5735 | AS="$ac_cv_prog_AS" | ||
5736 | fi | ||
5737 | |||
5738 | if test -n "$ac_tool_prefix"; then | ||
5739 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | ||
5740 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | ||
5741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5742 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5743 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | ||
5744 | $as_echo_n "(cached) " >&6 | ||
5745 | else | ||
5746 | if test -n "$DLLTOOL"; then | ||
5747 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | ||
5748 | else | ||
5749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5750 | for as_dir in $PATH | ||
5751 | do | ||
5752 | IFS=$as_save_IFS | ||
5753 | test -z "$as_dir" && as_dir=. | ||
5754 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5755 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5756 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | ||
5757 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5758 | break 2 | ||
5759 | fi | ||
5760 | done | ||
5761 | done | ||
5762 | IFS=$as_save_IFS | ||
5763 | |||
5764 | fi | ||
5765 | fi | ||
5766 | DLLTOOL=$ac_cv_prog_DLLTOOL | ||
5767 | if test -n "$DLLTOOL"; then | ||
5768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | ||
5769 | $as_echo "$DLLTOOL" >&6; } | ||
5770 | else | ||
5771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5772 | $as_echo "no" >&6; } | ||
5773 | fi | ||
5774 | |||
5775 | |||
5776 | fi | ||
5777 | if test -z "$ac_cv_prog_DLLTOOL"; then | ||
5778 | ac_ct_DLLTOOL=$DLLTOOL | ||
5779 | # Extract the first word of "dlltool", so it can be a program name with args. | ||
5780 | set dummy dlltool; ac_word=$2 | ||
5781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5782 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5783 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : | ||
5784 | $as_echo_n "(cached) " >&6 | ||
5785 | else | ||
5786 | if test -n "$ac_ct_DLLTOOL"; then | ||
5787 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | ||
5788 | else | ||
5789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5790 | for as_dir in $PATH | ||
5791 | do | ||
5792 | IFS=$as_save_IFS | ||
5793 | test -z "$as_dir" && as_dir=. | ||
5794 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5795 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5796 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | ||
5797 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5798 | break 2 | ||
5799 | fi | ||
5800 | done | ||
5801 | done | ||
5802 | IFS=$as_save_IFS | ||
5803 | |||
5804 | fi | ||
5805 | fi | ||
5806 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | ||
5807 | if test -n "$ac_ct_DLLTOOL"; then | ||
5808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | ||
5809 | $as_echo "$ac_ct_DLLTOOL" >&6; } | ||
5810 | else | ||
5811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5812 | $as_echo "no" >&6; } | ||
5813 | fi | ||
5814 | |||
5815 | if test "x$ac_ct_DLLTOOL" = x; then | ||
5816 | DLLTOOL="false" | ||
5817 | else | ||
5818 | case $cross_compiling:$ac_tool_warned in | ||
5819 | yes:) | ||
5820 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5821 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5822 | ac_tool_warned=yes ;; | ||
5823 | esac | ||
5824 | DLLTOOL=$ac_ct_DLLTOOL | ||
5825 | fi | ||
5826 | else | ||
5827 | DLLTOOL="$ac_cv_prog_DLLTOOL" | ||
5828 | fi | ||
5829 | |||
5830 | if test -n "$ac_tool_prefix"; then | ||
5831 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | ||
5832 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | ||
5833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5834 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5835 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | ||
5836 | $as_echo_n "(cached) " >&6 | ||
5837 | else | ||
5838 | if test -n "$OBJDUMP"; then | ||
5839 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | ||
5840 | else | ||
5841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5842 | for as_dir in $PATH | ||
5843 | do | ||
5844 | IFS=$as_save_IFS | ||
5845 | test -z "$as_dir" && as_dir=. | ||
5846 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5847 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5848 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | ||
5849 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5850 | break 2 | ||
5851 | fi | ||
5852 | done | ||
5853 | done | ||
5854 | IFS=$as_save_IFS | ||
5855 | |||
5856 | fi | ||
5857 | fi | ||
5858 | OBJDUMP=$ac_cv_prog_OBJDUMP | ||
5859 | if test -n "$OBJDUMP"; then | ||
5860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | ||
5861 | $as_echo "$OBJDUMP" >&6; } | ||
5862 | else | ||
5863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5864 | $as_echo "no" >&6; } | ||
5865 | fi | ||
5866 | |||
5867 | |||
5868 | fi | ||
5869 | if test -z "$ac_cv_prog_OBJDUMP"; then | ||
5870 | ac_ct_OBJDUMP=$OBJDUMP | ||
5871 | # Extract the first word of "objdump", so it can be a program name with args. | ||
5872 | set dummy objdump; ac_word=$2 | ||
5873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5874 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5875 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | ||
5876 | $as_echo_n "(cached) " >&6 | ||
5877 | else | ||
5878 | if test -n "$ac_ct_OBJDUMP"; then | ||
5879 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | ||
5880 | else | ||
5881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5882 | for as_dir in $PATH | ||
5883 | do | ||
5884 | IFS=$as_save_IFS | ||
5885 | test -z "$as_dir" && as_dir=. | ||
5886 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5887 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5888 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | ||
5889 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5890 | break 2 | ||
5891 | fi | ||
5892 | done | ||
5893 | done | ||
5894 | IFS=$as_save_IFS | ||
5895 | |||
5896 | fi | ||
5897 | fi | ||
5898 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | ||
5899 | if test -n "$ac_ct_OBJDUMP"; then | ||
5900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | ||
5901 | $as_echo "$ac_ct_OBJDUMP" >&6; } | ||
5902 | else | ||
5903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5904 | $as_echo "no" >&6; } | ||
5905 | fi | ||
5906 | |||
5907 | if test "x$ac_ct_OBJDUMP" = x; then | ||
5908 | OBJDUMP="false" | ||
5909 | else | ||
5910 | case $cross_compiling:$ac_tool_warned in | ||
5911 | yes:) | ||
5912 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
5913 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
5914 | ac_tool_warned=yes ;; | ||
5915 | esac | ||
5916 | OBJDUMP=$ac_ct_OBJDUMP | ||
5917 | fi | ||
5918 | else | ||
5919 | OBJDUMP="$ac_cv_prog_OBJDUMP" | ||
5920 | fi | ||
5921 | |||
5922 | ;; | ||
5923 | esac | ||
5924 | |||
5925 | test -z "$AS" && AS=as | ||
5926 | |||
5927 | |||
5928 | |||
5929 | |||
5930 | |||
5931 | test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
5932 | |||
5933 | |||
5934 | |||
5935 | |||
5936 | |||
5937 | test -z "$OBJDUMP" && OBJDUMP=objdump | ||
5938 | |||
5939 | |||
5940 | |||
5941 | |||
5942 | |||
5943 | |||
5944 | |||
5945 | case `pwd` in | ||
5946 | *\ * | *\ *) | ||
5947 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | ||
5948 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | ||
5949 | esac | ||
5950 | |||
5951 | |||
5952 | |||
5953 | macro_version='2.2.6b' | ||
5954 | macro_revision='1.3017' | ||
5955 | |||
5956 | |||
5957 | |||
5958 | |||
5959 | |||
5960 | |||
5961 | |||
5962 | |||
5963 | |||
5964 | |||
5965 | |||
5966 | |||
5967 | |||
5968 | ltmain="$ac_aux_dir/ltmain.sh" | ||
5969 | |||
5970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | ||
5971 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | ||
5972 | if test "${ac_cv_path_SED+set}" = set; then : | ||
5973 | $as_echo_n "(cached) " >&6 | ||
5974 | else | ||
5975 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | ||
5976 | for ac_i in 1 2 3 4 5 6 7; do | ||
5977 | ac_script="$ac_script$as_nl$ac_script" | ||
5978 | done | ||
5979 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | ||
5980 | { ac_script=; unset ac_script;} | ||
5981 | if test -z "$SED"; then | ||
5982 | ac_path_SED_found=false | ||
5983 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
5984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5985 | for as_dir in $PATH | ||
5986 | do | ||
5987 | IFS=$as_save_IFS | ||
5988 | test -z "$as_dir" && as_dir=. | ||
5989 | for ac_prog in sed gsed; do | ||
5990 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5991 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | ||
5992 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | ||
5993 | # Check for GNU ac_path_SED and select it if it is found. | ||
5994 | # Check for GNU $ac_path_SED | ||
5995 | case `"$ac_path_SED" --version 2>&1` in | ||
5996 | *GNU*) | ||
5997 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | ||
5998 | *) | ||
5999 | ac_count=0 | ||
6000 | $as_echo_n 0123456789 >"conftest.in" | ||
6001 | while : | ||
6002 | do | ||
6003 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
6004 | mv "conftest.tmp" "conftest.in" | ||
6005 | cp "conftest.in" "conftest.nl" | ||
6006 | $as_echo '' >> "conftest.nl" | ||
6007 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
6008 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
6009 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
6010 | if test $ac_count -gt ${ac_path_SED_max-0}; then | ||
6011 | # Best one so far, save it but keep looking for a better one | ||
6012 | ac_cv_path_SED="$ac_path_SED" | ||
6013 | ac_path_SED_max=$ac_count | ||
6014 | fi | ||
6015 | # 10*(2^10) chars as input seems more than enough | ||
6016 | test $ac_count -gt 10 && break | ||
6017 | done | ||
6018 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
6019 | esac | ||
6020 | |||
6021 | $ac_path_SED_found && break 3 | ||
6022 | done | ||
6023 | done | ||
6024 | done | ||
6025 | IFS=$as_save_IFS | ||
6026 | if test -z "$ac_cv_path_SED"; then | ||
6027 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | ||
6028 | fi | ||
6029 | else | ||
6030 | ac_cv_path_SED=$SED | ||
6031 | fi | ||
6032 | |||
6033 | fi | ||
6034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | ||
6035 | $as_echo "$ac_cv_path_SED" >&6; } | ||
6036 | SED="$ac_cv_path_SED" | ||
6037 | rm -f conftest.sed | ||
6038 | |||
6039 | test -z "$SED" && SED=sed | ||
6040 | Xsed="$SED -e 1s/^X//" | ||
6041 | |||
6042 | |||
6043 | |||
6044 | |||
6045 | |||
6046 | |||
6047 | |||
6048 | |||
6049 | |||
6050 | |||
6051 | |||
6052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | ||
6053 | $as_echo_n "checking for fgrep... " >&6; } | ||
6054 | if test "${ac_cv_path_FGREP+set}" = set; then : | ||
6055 | $as_echo_n "(cached) " >&6 | ||
6056 | else | ||
6057 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | ||
6058 | then ac_cv_path_FGREP="$GREP -F" | ||
6059 | else | ||
6060 | if test -z "$FGREP"; then | ||
6061 | ac_path_FGREP_found=false | ||
6062 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
6063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6064 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
6065 | do | ||
6066 | IFS=$as_save_IFS | ||
6067 | test -z "$as_dir" && as_dir=. | ||
6068 | for ac_prog in fgrep; do | ||
6069 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6070 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
6071 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | ||
6072 | # Check for GNU ac_path_FGREP and select it if it is found. | ||
6073 | # Check for GNU $ac_path_FGREP | ||
6074 | case `"$ac_path_FGREP" --version 2>&1` in | ||
6075 | *GNU*) | ||
6076 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | ||
6077 | *) | ||
6078 | ac_count=0 | ||
6079 | $as_echo_n 0123456789 >"conftest.in" | ||
6080 | while : | ||
6081 | do | ||
6082 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
6083 | mv "conftest.tmp" "conftest.in" | ||
6084 | cp "conftest.in" "conftest.nl" | ||
6085 | $as_echo 'FGREP' >> "conftest.nl" | ||
6086 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
6087 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
6088 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
6089 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | ||
6090 | # Best one so far, save it but keep looking for a better one | ||
6091 | ac_cv_path_FGREP="$ac_path_FGREP" | ||
6092 | ac_path_FGREP_max=$ac_count | ||
6093 | fi | ||
6094 | # 10*(2^10) chars as input seems more than enough | ||
6095 | test $ac_count -gt 10 && break | ||
6096 | done | ||
6097 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
6098 | esac | ||
6099 | |||
6100 | $ac_path_FGREP_found && break 3 | ||
6101 | done | ||
6102 | done | ||
6103 | done | ||
6104 | IFS=$as_save_IFS | ||
6105 | if test -z "$ac_cv_path_FGREP"; then | ||
6106 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
6107 | fi | ||
6108 | else | ||
6109 | ac_cv_path_FGREP=$FGREP | ||
6110 | fi | ||
6111 | |||
6112 | fi | ||
6113 | fi | ||
6114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | ||
6115 | $as_echo "$ac_cv_path_FGREP" >&6; } | ||
6116 | FGREP="$ac_cv_path_FGREP" | ||
6117 | |||
6118 | |||
6119 | test -z "$GREP" && GREP=grep | ||
6120 | |||
6121 | |||
6122 | |||
6123 | |||
6124 | |||
6125 | |||
6126 | |||
6127 | |||
6128 | |||
6129 | |||
6130 | |||
6131 | |||
6132 | |||
6133 | |||
6134 | |||
6135 | |||
6136 | |||
6137 | |||
6138 | |||
6139 | # Check whether --with-gnu-ld was given. | ||
6140 | if test "${with_gnu_ld+set}" = set; then : | ||
6141 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | ||
6142 | else | ||
6143 | with_gnu_ld=no | ||
6144 | fi | ||
6145 | |||
6146 | ac_prog=ld | ||
6147 | if test "$GCC" = yes; then | ||
6148 | # Check if gcc -print-prog-name=ld gives a path. | ||
6149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | ||
6150 | $as_echo_n "checking for ld used by $CC... " >&6; } | ||
6151 | case $host in | ||
6152 | *-*-mingw*) | ||
6153 | # gcc leaves a trailing carriage return which upsets mingw | ||
6154 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
6155 | *) | ||
6156 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
6157 | esac | ||
6158 | case $ac_prog in | ||
6159 | # Accept absolute paths. | ||
6160 | [\\/]* | ?:[\\/]*) | ||
6161 | re_direlt='/[^/][^/]*/\.\./' | ||
6162 | # Canonicalize the pathname of ld | ||
6163 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | ||
6164 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | ||
6165 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | ||
6166 | done | ||
6167 | test -z "$LD" && LD="$ac_prog" | ||
6168 | ;; | ||
6169 | "") | ||
6170 | # If it fails, then pretend we aren't using GCC. | ||
6171 | ac_prog=ld | ||
6172 | ;; | ||
6173 | *) | ||
6174 | # If it is relative, then search for the first ld in PATH. | ||
6175 | with_gnu_ld=unknown | ||
6176 | ;; | ||
6177 | esac | ||
6178 | elif test "$with_gnu_ld" = yes; then | ||
6179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | ||
6180 | $as_echo_n "checking for GNU ld... " >&6; } | ||
6181 | else | ||
6182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | ||
6183 | $as_echo_n "checking for non-GNU ld... " >&6; } | ||
6184 | fi | ||
6185 | if test "${lt_cv_path_LD+set}" = set; then : | ||
6186 | $as_echo_n "(cached) " >&6 | ||
6187 | else | ||
6188 | if test -z "$LD"; then | ||
6189 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
6190 | for ac_dir in $PATH; do | ||
6191 | IFS="$lt_save_ifs" | ||
6192 | test -z "$ac_dir" && ac_dir=. | ||
6193 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
6194 | lt_cv_path_LD="$ac_dir/$ac_prog" | ||
6195 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
6196 | # but apparently some variants of GNU ld only accept -v. | ||
6197 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
6198 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
6199 | *GNU* | *'with BFD'*) | ||
6200 | test "$with_gnu_ld" != no && break | ||
6201 | ;; | ||
6202 | *) | ||
6203 | test "$with_gnu_ld" != yes && break | ||
6204 | ;; | ||
6205 | esac | ||
6206 | fi | ||
6207 | done | ||
6208 | IFS="$lt_save_ifs" | ||
6209 | else | ||
6210 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
6211 | fi | ||
6212 | fi | ||
6213 | |||
6214 | LD="$lt_cv_path_LD" | ||
6215 | if test -n "$LD"; then | ||
6216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | ||
6217 | $as_echo "$LD" >&6; } | ||
6218 | else | ||
6219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6220 | $as_echo "no" >&6; } | ||
6221 | fi | ||
6222 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | ||
6223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | ||
6224 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | ||
6225 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | ||
6226 | $as_echo_n "(cached) " >&6 | ||
6227 | else | ||
6228 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | ||
6229 | case `$LD -v 2>&1 </dev/null` in | ||
6230 | *GNU* | *'with BFD'*) | ||
6231 | lt_cv_prog_gnu_ld=yes | ||
6232 | ;; | ||
6233 | *) | ||
6234 | lt_cv_prog_gnu_ld=no | ||
6235 | ;; | ||
6236 | esac | ||
6237 | fi | ||
6238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | ||
6239 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | ||
6240 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
6241 | |||
6242 | |||
6243 | |||
6244 | |||
6245 | |||
6246 | |||
6247 | |||
6248 | |||
6249 | |||
6250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | ||
6251 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | ||
6252 | if test "${lt_cv_path_NM+set}" = set; then : | ||
6253 | $as_echo_n "(cached) " >&6 | ||
6254 | else | ||
6255 | if test -n "$NM"; then | ||
6256 | # Let the user override the test. | ||
6257 | lt_cv_path_NM="$NM" | ||
6258 | else | ||
6259 | lt_nm_to_check="${ac_tool_prefix}nm" | ||
6260 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | ||
6261 | lt_nm_to_check="$lt_nm_to_check nm" | ||
6262 | fi | ||
6263 | for lt_tmp_nm in $lt_nm_to_check; do | ||
6264 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
6265 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | ||
6266 | IFS="$lt_save_ifs" | ||
6267 | test -z "$ac_dir" && ac_dir=. | ||
6268 | tmp_nm="$ac_dir/$lt_tmp_nm" | ||
6269 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | ||
6270 | # Check to see if the nm accepts a BSD-compat flag. | ||
6271 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | ||
6272 | # nm: unknown option "B" ignored | ||
6273 | # Tru64's nm complains that /dev/null is an invalid object file | ||
6274 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | ||
6275 | */dev/null* | *'Invalid file or object type'*) | ||
6276 | lt_cv_path_NM="$tmp_nm -B" | ||
6277 | break | ||
6278 | ;; | ||
6279 | *) | ||
6280 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | ||
6281 | */dev/null*) | ||
6282 | lt_cv_path_NM="$tmp_nm -p" | ||
6283 | break | ||
6284 | ;; | ||
6285 | *) | ||
6286 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | ||
6287 | continue # so that we can try to find one that supports BSD flags | ||
6288 | ;; | ||
6289 | esac | ||
6290 | ;; | ||
6291 | esac | ||
6292 | fi | ||
6293 | done | ||
6294 | IFS="$lt_save_ifs" | ||
6295 | done | ||
6296 | : ${lt_cv_path_NM=no} | ||
6297 | fi | ||
6298 | fi | ||
6299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | ||
6300 | $as_echo "$lt_cv_path_NM" >&6; } | ||
6301 | if test "$lt_cv_path_NM" != "no"; then | ||
6302 | NM="$lt_cv_path_NM" | ||
6303 | else | ||
6304 | # Didn't find any BSD compatible name lister, look for dumpbin. | ||
6305 | if test -n "$ac_tool_prefix"; then | ||
6306 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
6307 | do | ||
6308 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
6309 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
6310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6311 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6312 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | ||
6313 | $as_echo_n "(cached) " >&6 | ||
6314 | else | ||
6315 | if test -n "$DUMPBIN"; then | ||
6316 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | ||
6317 | else | ||
6318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6319 | for as_dir in $PATH | ||
6320 | do | ||
6321 | IFS=$as_save_IFS | ||
6322 | test -z "$as_dir" && as_dir=. | ||
6323 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6324 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6325 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | ||
6326 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6327 | break 2 | ||
6328 | fi | ||
6329 | done | ||
6330 | done | ||
6331 | IFS=$as_save_IFS | ||
6332 | |||
6333 | fi | ||
6334 | fi | ||
6335 | DUMPBIN=$ac_cv_prog_DUMPBIN | ||
6336 | if test -n "$DUMPBIN"; then | ||
6337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | ||
6338 | $as_echo "$DUMPBIN" >&6; } | ||
6339 | else | ||
6340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6341 | $as_echo "no" >&6; } | ||
6342 | fi | ||
6343 | |||
6344 | |||
6345 | test -n "$DUMPBIN" && break | ||
6346 | done | ||
6347 | fi | ||
6348 | if test -z "$DUMPBIN"; then | ||
6349 | ac_ct_DUMPBIN=$DUMPBIN | ||
6350 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | ||
6351 | do | ||
6352 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
6353 | set dummy $ac_prog; ac_word=$2 | ||
6354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6355 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6356 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | ||
6357 | $as_echo_n "(cached) " >&6 | ||
6358 | else | ||
6359 | if test -n "$ac_ct_DUMPBIN"; then | ||
6360 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | ||
6361 | else | ||
6362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6363 | for as_dir in $PATH | ||
6364 | do | ||
6365 | IFS=$as_save_IFS | ||
6366 | test -z "$as_dir" && as_dir=. | ||
6367 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6368 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6369 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | ||
6370 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6371 | break 2 | ||
6372 | fi | ||
6373 | done | ||
6374 | done | ||
6375 | IFS=$as_save_IFS | ||
6376 | |||
6377 | fi | ||
6378 | fi | ||
6379 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | ||
6380 | if test -n "$ac_ct_DUMPBIN"; then | ||
6381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | ||
6382 | $as_echo "$ac_ct_DUMPBIN" >&6; } | ||
6383 | else | ||
6384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6385 | $as_echo "no" >&6; } | ||
6386 | fi | ||
6387 | |||
6388 | |||
6389 | test -n "$ac_ct_DUMPBIN" && break | ||
6390 | done | ||
6391 | |||
6392 | if test "x$ac_ct_DUMPBIN" = x; then | ||
6393 | DUMPBIN=":" | ||
6394 | else | ||
6395 | case $cross_compiling:$ac_tool_warned in | ||
6396 | yes:) | ||
6397 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6398 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6399 | ac_tool_warned=yes ;; | ||
6400 | esac | ||
6401 | DUMPBIN=$ac_ct_DUMPBIN | ||
6402 | fi | ||
6403 | fi | ||
6404 | |||
6405 | |||
6406 | if test "$DUMPBIN" != ":"; then | ||
6407 | NM="$DUMPBIN" | ||
6408 | fi | ||
6409 | fi | ||
6410 | test -z "$NM" && NM=nm | ||
6411 | |||
6412 | |||
6413 | |||
6414 | |||
6415 | |||
6416 | |||
6417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | ||
6418 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | ||
6419 | if test "${lt_cv_nm_interface+set}" = set; then : | ||
6420 | $as_echo_n "(cached) " >&6 | ||
6421 | else | ||
6422 | lt_cv_nm_interface="BSD nm" | ||
6423 | echo "int some_variable = 0;" > conftest.$ac_ext | ||
6424 | (eval echo "\"\$as_me:6424: $ac_compile\"" >&5) | ||
6425 | (eval "$ac_compile" 2>conftest.err) | ||
6426 | cat conftest.err >&5 | ||
6427 | (eval echo "\"\$as_me:6427: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | ||
6428 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | ||
6429 | cat conftest.err >&5 | ||
6430 | (eval echo "\"\$as_me:6430: output\"" >&5) | ||
6431 | cat conftest.out >&5 | ||
6432 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | ||
6433 | lt_cv_nm_interface="MS dumpbin" | ||
6434 | fi | ||
6435 | rm -f conftest* | ||
6436 | fi | ||
6437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | ||
6438 | $as_echo "$lt_cv_nm_interface" >&6; } | ||
6439 | |||
6440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | ||
6441 | $as_echo_n "checking whether ln -s works... " >&6; } | ||
6442 | LN_S=$as_ln_s | ||
6443 | if test "$LN_S" = "ln -s"; then | ||
6444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6445 | $as_echo "yes" >&6; } | ||
6446 | else | ||
6447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | ||
6448 | $as_echo "no, using $LN_S" >&6; } | ||
6449 | fi | ||
6450 | |||
6451 | # find the maximum length of command line arguments | ||
6452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | ||
6453 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | ||
6454 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | ||
6455 | $as_echo_n "(cached) " >&6 | ||
6456 | else | ||
6457 | i=0 | ||
6458 | teststring="ABCD" | ||
6459 | |||
6460 | case $build_os in | ||
6461 | msdosdjgpp*) | ||
6462 | # On DJGPP, this test can blow up pretty badly due to problems in libc | ||
6463 | # (any single argument exceeding 2000 bytes causes a buffer overrun | ||
6464 | # during glob expansion). Even if it were fixed, the result of this | ||
6465 | # check would be larger than it should be. | ||
6466 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | ||
6467 | ;; | ||
6468 | |||
6469 | gnu*) | ||
6470 | # Under GNU Hurd, this test is not required because there is | ||
6471 | # no limit to the length of command line arguments. | ||
6472 | # Libtool will interpret -1 as no limit whatsoever | ||
6473 | lt_cv_sys_max_cmd_len=-1; | ||
6474 | ;; | ||
6475 | |||
6476 | cygwin* | mingw* | cegcc*) | ||
6477 | # On Win9x/ME, this test blows up -- it succeeds, but takes | ||
6478 | # about 5 minutes as the teststring grows exponentially. | ||
6479 | # Worse, since 9x/ME are not pre-emptively multitasking, | ||
6480 | # you end up with a "frozen" computer, even though with patience | ||
6481 | # the test eventually succeeds (with a max line length of 256k). | ||
6482 | # Instead, let's just punt: use the minimum linelength reported by | ||
6483 | # all of the supported platforms: 8192 (on NT/2K/XP). | ||
6484 | lt_cv_sys_max_cmd_len=8192; | ||
6485 | ;; | ||
6486 | |||
6487 | amigaos*) | ||
6488 | # On AmigaOS with pdksh, this test takes hours, literally. | ||
6489 | # So we just punt and use a minimum line length of 8192. | ||
6490 | lt_cv_sys_max_cmd_len=8192; | ||
6491 | ;; | ||
6492 | |||
6493 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | ||
6494 | # This has been around since 386BSD, at least. Likely further. | ||
6495 | if test -x /sbin/sysctl; then | ||
6496 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | ||
6497 | elif test -x /usr/sbin/sysctl; then | ||
6498 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | ||
6499 | else | ||
6500 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | ||
6501 | fi | ||
6502 | # And add a safety zone | ||
6503 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
6504 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
6505 | ;; | ||
6506 | |||
6507 | interix*) | ||
6508 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | ||
6509 | lt_cv_sys_max_cmd_len=196608 | ||
6510 | ;; | ||
6511 | |||
6512 | osf*) | ||
6513 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | ||
6514 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | ||
6515 | # nice to cause kernel panics so lets avoid the loop below. | ||
6516 | # First set a reasonable default. | ||
6517 | lt_cv_sys_max_cmd_len=16384 | ||
6518 | # | ||
6519 | if test -x /sbin/sysconfig; then | ||
6520 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | ||
6521 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | ||
6522 | esac | ||
6523 | fi | ||
6524 | ;; | ||
6525 | sco3.2v5*) | ||
6526 | lt_cv_sys_max_cmd_len=102400 | ||
6527 | ;; | ||
6528 | sysv5* | sco5v6* | sysv4.2uw2*) | ||
6529 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | ||
6530 | if test -n "$kargmax"; then | ||
6531 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | ||
6532 | else | ||
6533 | lt_cv_sys_max_cmd_len=32768 | ||
6534 | fi | ||
6535 | ;; | ||
6536 | *) | ||
6537 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | ||
6538 | if test -n "$lt_cv_sys_max_cmd_len"; then | ||
6539 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
6540 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
6541 | else | ||
6542 | # Make teststring a little bigger before we do anything with it. | ||
6543 | # a 1K string should be a reasonable start. | ||
6544 | for i in 1 2 3 4 5 6 7 8 ; do | ||
6545 | teststring=$teststring$teststring | ||
6546 | done | ||
6547 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | ||
6548 | # If test is not a shell built-in, we'll probably end up computing a | ||
6549 | # maximum length that is only half of the actual maximum length, but | ||
6550 | # we can't tell. | ||
6551 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | ||
6552 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | ||
6553 | test $i != 17 # 1/2 MB should be enough | ||
6554 | do | ||
6555 | i=`expr $i + 1` | ||
6556 | teststring=$teststring$teststring | ||
6557 | done | ||
6558 | # Only check the string length outside the loop. | ||
6559 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | ||
6560 | teststring= | ||
6561 | # Add a significant safety factor because C++ compilers can tack on | ||
6562 | # massive amounts of additional arguments before passing them to the | ||
6563 | # linker. It appears as though 1/2 is a usable value. | ||
6564 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | ||
6565 | fi | ||
6566 | ;; | ||
6567 | esac | ||
6568 | |||
6569 | fi | ||
6570 | |||
6571 | if test -n $lt_cv_sys_max_cmd_len ; then | ||
6572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | ||
6573 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | ||
6574 | else | ||
6575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | ||
6576 | $as_echo "none" >&6; } | ||
6577 | fi | ||
6578 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
6579 | |||
6580 | |||
6581 | |||
6582 | |||
6583 | |||
6584 | |||
6585 | : ${CP="cp -f"} | ||
6586 | : ${MV="mv -f"} | ||
6587 | : ${RM="rm -f"} | ||
6588 | |||
6589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | ||
6590 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | ||
6591 | # Try some XSI features | ||
6592 | xsi_shell=no | ||
6593 | ( _lt_dummy="a/b/c" | ||
6594 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | ||
6595 | = c,a/b,, \ | ||
6596 | && eval 'test $(( 1 + 1 )) -eq 2 \ | ||
6597 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | ||
6598 | && xsi_shell=yes | ||
6599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | ||
6600 | $as_echo "$xsi_shell" >&6; } | ||
6601 | |||
6602 | |||
6603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | ||
6604 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | ||
6605 | lt_shell_append=no | ||
6606 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | ||
6607 | >/dev/null 2>&1 \ | ||
6608 | && lt_shell_append=yes | ||
6609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | ||
6610 | $as_echo "$lt_shell_append" >&6; } | ||
6611 | |||
6612 | |||
6613 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
6614 | lt_unset=unset | ||
6615 | else | ||
6616 | lt_unset=false | ||
6617 | fi | ||
6618 | |||
6619 | |||
6620 | |||
6621 | |||
6622 | |||
6623 | # test EBCDIC or ASCII | ||
6624 | case `echo X|tr X '\101'` in | ||
6625 | A) # ASCII based system | ||
6626 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | ||
6627 | lt_SP2NL='tr \040 \012' | ||
6628 | lt_NL2SP='tr \015\012 \040\040' | ||
6629 | ;; | ||
6630 | *) # EBCDIC based system | ||
6631 | lt_SP2NL='tr \100 \n' | ||
6632 | lt_NL2SP='tr \r\n \100\100' | ||
6633 | ;; | ||
6634 | esac | ||
6635 | |||
6636 | |||
6637 | |||
6638 | |||
6639 | |||
6640 | |||
6641 | |||
6642 | |||
6643 | |||
6644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | ||
6645 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | ||
6646 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | ||
6647 | $as_echo_n "(cached) " >&6 | ||
6648 | else | ||
6649 | lt_cv_ld_reload_flag='-r' | ||
6650 | fi | ||
6651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | ||
6652 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | ||
6653 | reload_flag=$lt_cv_ld_reload_flag | ||
6654 | case $reload_flag in | ||
6655 | "" | " "*) ;; | ||
6656 | *) reload_flag=" $reload_flag" ;; | ||
6657 | esac | ||
6658 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
6659 | case $host_os in | ||
6660 | darwin*) | ||
6661 | if test "$GCC" = yes; then | ||
6662 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
6663 | else | ||
6664 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
6665 | fi | ||
6666 | ;; | ||
6667 | esac | ||
6668 | |||
6669 | |||
6670 | |||
6671 | |||
6672 | |||
6673 | |||
6674 | |||
6675 | |||
6676 | |||
6677 | if test -n "$ac_tool_prefix"; then | ||
6678 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | ||
6679 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | ||
6680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6681 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6682 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | ||
6683 | $as_echo_n "(cached) " >&6 | ||
6684 | else | ||
6685 | if test -n "$OBJDUMP"; then | ||
6686 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | ||
6687 | else | ||
6688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6689 | for as_dir in $PATH | ||
6690 | do | ||
6691 | IFS=$as_save_IFS | ||
6692 | test -z "$as_dir" && as_dir=. | ||
6693 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6694 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6695 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | ||
6696 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6697 | break 2 | ||
6698 | fi | ||
6699 | done | ||
6700 | done | ||
6701 | IFS=$as_save_IFS | ||
6702 | |||
6703 | fi | ||
6704 | fi | ||
6705 | OBJDUMP=$ac_cv_prog_OBJDUMP | ||
6706 | if test -n "$OBJDUMP"; then | ||
6707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | ||
6708 | $as_echo "$OBJDUMP" >&6; } | ||
6709 | else | ||
6710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6711 | $as_echo "no" >&6; } | ||
6712 | fi | ||
6713 | |||
6714 | |||
6715 | fi | ||
6716 | if test -z "$ac_cv_prog_OBJDUMP"; then | ||
6717 | ac_ct_OBJDUMP=$OBJDUMP | ||
6718 | # Extract the first word of "objdump", so it can be a program name with args. | ||
6719 | set dummy objdump; ac_word=$2 | ||
6720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6721 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6722 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | ||
6723 | $as_echo_n "(cached) " >&6 | ||
6724 | else | ||
6725 | if test -n "$ac_ct_OBJDUMP"; then | ||
6726 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | ||
6727 | else | ||
6728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6729 | for as_dir in $PATH | ||
6730 | do | ||
6731 | IFS=$as_save_IFS | ||
6732 | test -z "$as_dir" && as_dir=. | ||
6733 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6734 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6735 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | ||
6736 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6737 | break 2 | ||
6738 | fi | ||
6739 | done | ||
6740 | done | ||
6741 | IFS=$as_save_IFS | ||
6742 | |||
6743 | fi | ||
6744 | fi | ||
6745 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | ||
6746 | if test -n "$ac_ct_OBJDUMP"; then | ||
6747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | ||
6748 | $as_echo "$ac_ct_OBJDUMP" >&6; } | ||
6749 | else | ||
6750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6751 | $as_echo "no" >&6; } | ||
6752 | fi | ||
6753 | |||
6754 | if test "x$ac_ct_OBJDUMP" = x; then | ||
6755 | OBJDUMP="false" | ||
6756 | else | ||
6757 | case $cross_compiling:$ac_tool_warned in | ||
6758 | yes:) | ||
6759 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
6760 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
6761 | ac_tool_warned=yes ;; | ||
6762 | esac | ||
6763 | OBJDUMP=$ac_ct_OBJDUMP | ||
6764 | fi | ||
6765 | else | ||
6766 | OBJDUMP="$ac_cv_prog_OBJDUMP" | ||
6767 | fi | ||
6768 | |||
6769 | test -z "$OBJDUMP" && OBJDUMP=objdump | ||
6770 | |||
6771 | |||
6772 | |||
6773 | |||
6774 | |||
6775 | |||
6776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | ||
6777 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | ||
6778 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | ||
6779 | $as_echo_n "(cached) " >&6 | ||
6780 | else | ||
6781 | lt_cv_file_magic_cmd='$MAGIC_CMD' | ||
6782 | lt_cv_file_magic_test_file= | ||
6783 | lt_cv_deplibs_check_method='unknown' | ||
6784 | # Need to set the preceding variable on all platforms that support | ||
6785 | # interlibrary dependencies. | ||
6786 | # 'none' -- dependencies not supported. | ||
6787 | # `unknown' -- same as none, but documents that we really don't know. | ||
6788 | # 'pass_all' -- all dependencies passed with no checks. | ||
6789 | # 'test_compile' -- check by making test program. | ||
6790 | # 'file_magic [[regex]]' -- check by looking for files in library path | ||
6791 | # which responds to the $file_magic_cmd with a given extended regex. | ||
6792 | # If you have `file' or equivalent on your system and you're not sure | ||
6793 | # whether `pass_all' will *always* work, you probably want this one. | ||
6794 | |||
6795 | case $host_os in | ||
6796 | aix[4-9]*) | ||
6797 | lt_cv_deplibs_check_method=pass_all | ||
6798 | ;; | ||
6799 | |||
6800 | beos*) | ||
6801 | lt_cv_deplibs_check_method=pass_all | ||
6802 | ;; | ||
6803 | |||
6804 | bsdi[45]*) | ||
6805 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | ||
6806 | lt_cv_file_magic_cmd='/usr/bin/file -L' | ||
6807 | lt_cv_file_magic_test_file=/shlib/libc.so | ||
6808 | ;; | ||
6809 | |||
6810 | cygwin*) | ||
6811 | # func_win32_libid is a shell function defined in ltmain.sh | ||
6812 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
6813 | lt_cv_file_magic_cmd='func_win32_libid' | ||
6814 | ;; | ||
6815 | |||
6816 | mingw* | pw32*) | ||
6817 | # Base MSYS/MinGW do not provide the 'file' command needed by | ||
6818 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | ||
6819 | # unless we find 'file', for example because we are cross-compiling. | ||
6820 | if ( file / ) >/dev/null 2>&1; then | ||
6821 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
6822 | lt_cv_file_magic_cmd='func_win32_libid' | ||
6823 | else | ||
6824 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
6825 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
6826 | fi | ||
6827 | ;; | ||
6828 | |||
6829 | cegcc) | ||
6830 | # use the weaker test based on 'objdump'. See mingw*. | ||
6831 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | ||
6832 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
6833 | ;; | ||
6834 | |||
6835 | darwin* | rhapsody*) | ||
6836 | lt_cv_deplibs_check_method=pass_all | ||
6837 | ;; | ||
6838 | |||
6839 | freebsd* | dragonfly*) | ||
6840 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | ||
6841 | case $host_cpu in | ||
6842 | i*86 ) | ||
6843 | # Not sure whether the presence of OpenBSD here was a mistake. | ||
6844 | # Let's accept both of them until this is cleared up. | ||
6845 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | ||
6846 | lt_cv_file_magic_cmd=/usr/bin/file | ||
6847 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | ||
6848 | ;; | ||
6849 | esac | ||
6850 | else | ||
6851 | lt_cv_deplibs_check_method=pass_all | ||
6852 | fi | ||
6853 | ;; | ||
6854 | |||
6855 | gnu*) | ||
6856 | lt_cv_deplibs_check_method=pass_all | ||
6857 | ;; | ||
6858 | |||
6859 | hpux10.20* | hpux11*) | ||
6860 | lt_cv_file_magic_cmd=/usr/bin/file | ||
6861 | case $host_cpu in | ||
6862 | ia64*) | ||
6863 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | ||
6864 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
6865 | ;; | ||
6866 | hppa*64*) | ||
6867 | 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]' | ||
6868 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
6869 | ;; | ||
6870 | *) | ||
6871 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | ||
6872 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
6873 | ;; | ||
6874 | esac | ||
6875 | ;; | ||
6876 | |||
6877 | interix[3-9]*) | ||
6878 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | ||
6879 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | ||
6880 | ;; | ||
6881 | |||
6882 | irix5* | irix6* | nonstopux*) | ||
6883 | case $LD in | ||
6884 | *-32|*"-32 ") libmagic=32-bit;; | ||
6885 | *-n32|*"-n32 ") libmagic=N32;; | ||
6886 | *-64|*"-64 ") libmagic=64-bit;; | ||
6887 | *) libmagic=never-match;; | ||
6888 | esac | ||
6889 | lt_cv_deplibs_check_method=pass_all | ||
6890 | ;; | ||
6891 | |||
6892 | # This must be Linux ELF. | ||
6893 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
6894 | lt_cv_deplibs_check_method=pass_all | ||
6895 | ;; | ||
6896 | |||
6897 | netbsd* | netbsdelf*-gnu) | ||
6898 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | ||
6899 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | ||
6900 | else | ||
6901 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | ||
6902 | fi | ||
6903 | ;; | ||
6904 | |||
6905 | newos6*) | ||
6906 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | ||
6907 | lt_cv_file_magic_cmd=/usr/bin/file | ||
6908 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | ||
6909 | ;; | ||
6910 | |||
6911 | *nto* | *qnx*) | ||
6912 | lt_cv_deplibs_check_method=pass_all | ||
6913 | ;; | ||
6914 | |||
6915 | openbsd*) | ||
6916 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
6917 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | ||
6918 | else | ||
6919 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | ||
6920 | fi | ||
6921 | ;; | ||
6922 | |||
6923 | osf3* | osf4* | osf5*) | ||
6924 | lt_cv_deplibs_check_method=pass_all | ||
6925 | ;; | ||
6926 | |||
6927 | rdos*) | ||
6928 | lt_cv_deplibs_check_method=pass_all | ||
6929 | ;; | ||
6930 | |||
6931 | solaris*) | ||
6932 | lt_cv_deplibs_check_method=pass_all | ||
6933 | ;; | ||
6934 | |||
6935 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
6936 | lt_cv_deplibs_check_method=pass_all | ||
6937 | ;; | ||
6938 | |||
6939 | sysv4 | sysv4.3*) | ||
6940 | case $host_vendor in | ||
6941 | motorola) | ||
6942 | 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]' | ||
6943 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | ||
6944 | ;; | ||
6945 | ncr) | ||
6946 | lt_cv_deplibs_check_method=pass_all | ||
6947 | ;; | ||
6948 | sequent) | ||
6949 | lt_cv_file_magic_cmd='/bin/file' | ||
6950 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | ||
6951 | ;; | ||
6952 | sni) | ||
6953 | lt_cv_file_magic_cmd='/bin/file' | ||
6954 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | ||
6955 | lt_cv_file_magic_test_file=/lib/libc.so | ||
6956 | ;; | ||
6957 | siemens) | ||
6958 | lt_cv_deplibs_check_method=pass_all | ||
6959 | ;; | ||
6960 | pc) | ||
6961 | lt_cv_deplibs_check_method=pass_all | ||
6962 | ;; | ||
6963 | esac | ||
6964 | ;; | ||
6965 | |||
6966 | tpf*) | ||
6967 | lt_cv_deplibs_check_method=pass_all | ||
6968 | ;; | ||
6969 | esac | ||
6970 | |||
6971 | fi | ||
6972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | ||
6973 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | ||
6974 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
6975 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
6976 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
6977 | |||
6978 | |||
6979 | |||
6980 | |||
6981 | |||
6982 | |||
6983 | |||
6984 | |||
6985 | |||
6986 | |||
6987 | |||
6988 | |||
6989 | if test -n "$ac_tool_prefix"; then | ||
6990 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | ||
6991 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | ||
6992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
6993 | $as_echo_n "checking for $ac_word... " >&6; } | ||
6994 | if test "${ac_cv_prog_AR+set}" = set; then : | ||
6995 | $as_echo_n "(cached) " >&6 | ||
6996 | else | ||
6997 | if test -n "$AR"; then | ||
6998 | ac_cv_prog_AR="$AR" # Let the user override the test. | ||
6999 | else | ||
7000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7001 | for as_dir in $PATH | ||
7002 | do | ||
7003 | IFS=$as_save_IFS | ||
7004 | test -z "$as_dir" && as_dir=. | ||
7005 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7006 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7007 | ac_cv_prog_AR="${ac_tool_prefix}ar" | ||
7008 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7009 | break 2 | ||
7010 | fi | ||
7011 | done | ||
7012 | done | ||
7013 | IFS=$as_save_IFS | ||
7014 | |||
7015 | fi | ||
7016 | fi | ||
7017 | AR=$ac_cv_prog_AR | ||
7018 | if test -n "$AR"; then | ||
7019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | ||
7020 | $as_echo "$AR" >&6; } | ||
7021 | else | ||
7022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7023 | $as_echo "no" >&6; } | ||
7024 | fi | ||
7025 | |||
7026 | |||
7027 | fi | ||
7028 | if test -z "$ac_cv_prog_AR"; then | ||
7029 | ac_ct_AR=$AR | ||
7030 | # Extract the first word of "ar", so it can be a program name with args. | ||
7031 | set dummy ar; ac_word=$2 | ||
7032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7033 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7034 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | ||
7035 | $as_echo_n "(cached) " >&6 | ||
7036 | else | ||
7037 | if test -n "$ac_ct_AR"; then | ||
7038 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
7039 | else | ||
7040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7041 | for as_dir in $PATH | ||
7042 | do | ||
7043 | IFS=$as_save_IFS | ||
7044 | test -z "$as_dir" && as_dir=. | ||
7045 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7046 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7047 | ac_cv_prog_ac_ct_AR="ar" | ||
7048 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7049 | break 2 | ||
7050 | fi | ||
7051 | done | ||
7052 | done | ||
7053 | IFS=$as_save_IFS | ||
7054 | |||
7055 | fi | ||
7056 | fi | ||
7057 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
7058 | if test -n "$ac_ct_AR"; then | ||
7059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||
7060 | $as_echo "$ac_ct_AR" >&6; } | ||
7061 | else | ||
7062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7063 | $as_echo "no" >&6; } | ||
7064 | fi | ||
7065 | |||
7066 | if test "x$ac_ct_AR" = x; then | ||
7067 | AR="false" | ||
7068 | else | ||
7069 | case $cross_compiling:$ac_tool_warned in | ||
7070 | yes:) | ||
7071 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
7072 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
7073 | ac_tool_warned=yes ;; | ||
7074 | esac | ||
7075 | AR=$ac_ct_AR | ||
7076 | fi | ||
7077 | else | ||
7078 | AR="$ac_cv_prog_AR" | ||
7079 | fi | ||
7080 | |||
7081 | test -z "$AR" && AR=ar | ||
7082 | test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
7083 | |||
7084 | |||
7085 | |||
7086 | |||
7087 | |||
7088 | |||
7089 | |||
7090 | |||
7091 | |||
7092 | |||
7093 | |||
7094 | if test -n "$ac_tool_prefix"; then | ||
7095 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
7096 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
7097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7098 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7099 | if test "${ac_cv_prog_STRIP+set}" = set; then : | ||
7100 | $as_echo_n "(cached) " >&6 | ||
7101 | else | ||
7102 | if test -n "$STRIP"; then | ||
7103 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
7104 | else | ||
7105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7106 | for as_dir in $PATH | ||
7107 | do | ||
7108 | IFS=$as_save_IFS | ||
7109 | test -z "$as_dir" && as_dir=. | ||
7110 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7111 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7112 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
7113 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7114 | break 2 | ||
7115 | fi | ||
7116 | done | ||
7117 | done | ||
7118 | IFS=$as_save_IFS | ||
7119 | |||
7120 | fi | ||
7121 | fi | ||
7122 | STRIP=$ac_cv_prog_STRIP | ||
7123 | if test -n "$STRIP"; then | ||
7124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | ||
7125 | $as_echo "$STRIP" >&6; } | ||
7126 | else | ||
7127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7128 | $as_echo "no" >&6; } | ||
7129 | fi | ||
7130 | |||
7131 | |||
7132 | fi | ||
7133 | if test -z "$ac_cv_prog_STRIP"; then | ||
7134 | ac_ct_STRIP=$STRIP | ||
7135 | # Extract the first word of "strip", so it can be a program name with args. | ||
7136 | set dummy strip; ac_word=$2 | ||
7137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7138 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7139 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | ||
7140 | $as_echo_n "(cached) " >&6 | ||
7141 | else | ||
7142 | if test -n "$ac_ct_STRIP"; then | ||
7143 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
7144 | else | ||
7145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7146 | for as_dir in $PATH | ||
7147 | do | ||
7148 | IFS=$as_save_IFS | ||
7149 | test -z "$as_dir" && as_dir=. | ||
7150 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7151 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7152 | ac_cv_prog_ac_ct_STRIP="strip" | ||
7153 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7154 | break 2 | ||
7155 | fi | ||
7156 | done | ||
7157 | done | ||
7158 | IFS=$as_save_IFS | ||
7159 | |||
7160 | fi | ||
7161 | fi | ||
7162 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
7163 | if test -n "$ac_ct_STRIP"; then | ||
7164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | ||
7165 | $as_echo "$ac_ct_STRIP" >&6; } | ||
7166 | else | ||
7167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7168 | $as_echo "no" >&6; } | ||
7169 | fi | ||
7170 | |||
7171 | if test "x$ac_ct_STRIP" = x; then | ||
7172 | STRIP=":" | ||
7173 | else | ||
7174 | case $cross_compiling:$ac_tool_warned in | ||
7175 | yes:) | ||
7176 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
7177 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
7178 | ac_tool_warned=yes ;; | ||
7179 | esac | ||
7180 | STRIP=$ac_ct_STRIP | ||
7181 | fi | ||
7182 | else | ||
7183 | STRIP="$ac_cv_prog_STRIP" | ||
7184 | fi | ||
7185 | |||
7186 | test -z "$STRIP" && STRIP=: | ||
7187 | |||
7188 | |||
7189 | |||
7190 | |||
7191 | |||
7192 | |||
7193 | if test -n "$ac_tool_prefix"; then | ||
7194 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
7195 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
7196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7197 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7198 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | ||
7199 | $as_echo_n "(cached) " >&6 | ||
7200 | else | ||
7201 | if test -n "$RANLIB"; then | ||
7202 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
7203 | else | ||
7204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7205 | for as_dir in $PATH | ||
7206 | do | ||
7207 | IFS=$as_save_IFS | ||
7208 | test -z "$as_dir" && as_dir=. | ||
7209 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7210 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7211 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
7212 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7213 | break 2 | ||
7214 | fi | ||
7215 | done | ||
7216 | done | ||
7217 | IFS=$as_save_IFS | ||
7218 | |||
7219 | fi | ||
7220 | fi | ||
7221 | RANLIB=$ac_cv_prog_RANLIB | ||
7222 | if test -n "$RANLIB"; then | ||
7223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | ||
7224 | $as_echo "$RANLIB" >&6; } | ||
7225 | else | ||
7226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7227 | $as_echo "no" >&6; } | ||
7228 | fi | ||
7229 | |||
7230 | |||
7231 | fi | ||
7232 | if test -z "$ac_cv_prog_RANLIB"; then | ||
7233 | ac_ct_RANLIB=$RANLIB | ||
7234 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
7235 | set dummy ranlib; ac_word=$2 | ||
7236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7237 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7238 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | ||
7239 | $as_echo_n "(cached) " >&6 | ||
7240 | else | ||
7241 | if test -n "$ac_ct_RANLIB"; then | ||
7242 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
7243 | else | ||
7244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7245 | for as_dir in $PATH | ||
7246 | do | ||
7247 | IFS=$as_save_IFS | ||
7248 | test -z "$as_dir" && as_dir=. | ||
7249 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7250 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7251 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
7252 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7253 | break 2 | ||
7254 | fi | ||
7255 | done | ||
7256 | done | ||
7257 | IFS=$as_save_IFS | ||
7258 | |||
7259 | fi | ||
7260 | fi | ||
7261 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
7262 | if test -n "$ac_ct_RANLIB"; then | ||
7263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | ||
7264 | $as_echo "$ac_ct_RANLIB" >&6; } | ||
7265 | else | ||
7266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7267 | $as_echo "no" >&6; } | ||
7268 | fi | ||
7269 | |||
7270 | if test "x$ac_ct_RANLIB" = x; then | ||
7271 | RANLIB=":" | ||
7272 | else | ||
7273 | case $cross_compiling:$ac_tool_warned in | ||
7274 | yes:) | ||
7275 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
7276 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
7277 | ac_tool_warned=yes ;; | ||
7278 | esac | ||
7279 | RANLIB=$ac_ct_RANLIB | ||
7280 | fi | ||
7281 | else | ||
7282 | RANLIB="$ac_cv_prog_RANLIB" | ||
7283 | fi | ||
7284 | |||
7285 | test -z "$RANLIB" && RANLIB=: | ||
7286 | |||
7287 | |||
7288 | |||
7289 | |||
7290 | |||
7291 | |||
7292 | # Determine commands to create old-style static archives. | ||
7293 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | ||
7294 | old_postinstall_cmds='chmod 644 $oldlib' | ||
7295 | old_postuninstall_cmds= | ||
7296 | |||
7297 | if test -n "$RANLIB"; then | ||
7298 | case $host_os in | ||
7299 | openbsd*) | ||
7300 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | ||
7301 | ;; | ||
7302 | *) | ||
7303 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | ||
7304 | ;; | ||
7305 | esac | ||
7306 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | ||
7307 | fi | ||
7308 | |||
7309 | |||
7310 | |||
7311 | |||
7312 | |||
7313 | |||
7314 | |||
7315 | |||
7316 | |||
7317 | |||
7318 | |||
7319 | |||
7320 | |||
7321 | |||
7322 | |||
7323 | |||
7324 | |||
7325 | |||
7326 | |||
7327 | |||
7328 | |||
7329 | |||
7330 | |||
7331 | |||
7332 | |||
7333 | |||
7334 | |||
7335 | |||
7336 | |||
7337 | |||
7338 | |||
7339 | |||
7340 | |||
7341 | |||
7342 | # If no C compiler was specified, use CC. | ||
7343 | LTCC=${LTCC-"$CC"} | ||
7344 | |||
7345 | # If no C compiler flags were specified, use CFLAGS. | ||
7346 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
7347 | |||
7348 | # Allow CC to be a program name with arguments. | ||
7349 | compiler=$CC | ||
7350 | |||
7351 | |||
7352 | # Check for command to grab the raw symbol name followed by C symbol from nm. | ||
7353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | ||
7354 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | ||
7355 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | ||
7356 | $as_echo_n "(cached) " >&6 | ||
7357 | else | ||
7358 | |||
7359 | # These are sane defaults that work on at least a few old systems. | ||
7360 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | ||
7361 | |||
7362 | # Character class describing NM global symbol codes. | ||
7363 | symcode='[BCDEGRST]' | ||
7364 | |||
7365 | # Regexp to match symbols that can be accessed directly from C. | ||
7366 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | ||
7367 | |||
7368 | # Define system-specific variables. | ||
7369 | case $host_os in | ||
7370 | aix*) | ||
7371 | symcode='[BCDT]' | ||
7372 | ;; | ||
7373 | cygwin* | mingw* | pw32* | cegcc*) | ||
7374 | symcode='[ABCDGISTW]' | ||
7375 | ;; | ||
7376 | hpux*) | ||
7377 | if test "$host_cpu" = ia64; then | ||
7378 | symcode='[ABCDEGRST]' | ||
7379 | fi | ||
7380 | ;; | ||
7381 | irix* | nonstopux*) | ||
7382 | symcode='[BCDEGRST]' | ||
7383 | ;; | ||
7384 | osf*) | ||
7385 | symcode='[BCDEGQRST]' | ||
7386 | ;; | ||
7387 | solaris*) | ||
7388 | symcode='[BDRT]' | ||
7389 | ;; | ||
7390 | sco3.2v5*) | ||
7391 | symcode='[DT]' | ||
7392 | ;; | ||
7393 | sysv4.2uw2*) | ||
7394 | symcode='[DT]' | ||
7395 | ;; | ||
7396 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | ||
7397 | symcode='[ABDT]' | ||
7398 | ;; | ||
7399 | sysv4) | ||
7400 | symcode='[DFNSTU]' | ||
7401 | ;; | ||
7402 | esac | ||
7403 | |||
7404 | # If we're using GNU nm, then use its standard symbol codes. | ||
7405 | case `$NM -V 2>&1` in | ||
7406 | *GNU* | *'with BFD'*) | ||
7407 | symcode='[ABCDGIRSTW]' ;; | ||
7408 | esac | ||
7409 | |||
7410 | # Transform an extracted symbol line into a proper C declaration. | ||
7411 | # Some systems (esp. on ia64) link data and code symbols differently, | ||
7412 | # so use this general approach. | ||
7413 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
7414 | |||
7415 | # Transform an extracted symbol line into symbol name and symbol address | ||
7416 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
7417 | 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'" | ||
7418 | |||
7419 | # Handle CRLF in mingw tool chain | ||
7420 | opt_cr= | ||
7421 | case $build_os in | ||
7422 | mingw*) | ||
7423 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | ||
7424 | ;; | ||
7425 | esac | ||
7426 | |||
7427 | # Try without a prefix underscore, then with it. | ||
7428 | for ac_symprfx in "" "_"; do | ||
7429 | |||
7430 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | ||
7431 | symxfrm="\\1 $ac_symprfx\\2 \\2" | ||
7432 | |||
7433 | # Write the raw and C identifiers. | ||
7434 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
7435 | # Fake it for dumpbin and say T for any non-static function | ||
7436 | # and D for any global variable. | ||
7437 | # Also find C++ and __fastcall symbols from MSVC++, | ||
7438 | # which start with @ or ?. | ||
7439 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | ||
7440 | " {last_section=section; section=\$ 3};"\ | ||
7441 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | ||
7442 | " \$ 0!~/External *\|/{next};"\ | ||
7443 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | ||
7444 | " {if(hide[section]) next};"\ | ||
7445 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | ||
7446 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | ||
7447 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | ||
7448 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | ||
7449 | " ' prfx=^$ac_symprfx" | ||
7450 | else | ||
7451 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
7452 | fi | ||
7453 | |||
7454 | # Check to see that the pipe works correctly. | ||
7455 | pipe_works=no | ||
7456 | |||
7457 | rm -f conftest* | ||
7458 | cat > conftest.$ac_ext <<_LT_EOF | ||
7459 | #ifdef __cplusplus | ||
7460 | extern "C" { | ||
7461 | #endif | ||
7462 | char nm_test_var; | ||
7463 | void nm_test_func(void); | ||
7464 | void nm_test_func(void){} | ||
7465 | #ifdef __cplusplus | ||
7466 | } | ||
7467 | #endif | ||
7468 | int main(){nm_test_var='a';nm_test_func();return(0);} | ||
7469 | _LT_EOF | ||
7470 | |||
7471 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
7472 | (eval $ac_compile) 2>&5 | ||
7473 | ac_status=$? | ||
7474 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7475 | test $ac_status = 0; }; then | ||
7476 | # Now try to grab the symbols. | ||
7477 | nlist=conftest.nm | ||
7478 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 | ||
7479 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | ||
7480 | ac_status=$? | ||
7481 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7482 | test $ac_status = 0; } && test -s "$nlist"; then | ||
7483 | # Try sorting and uniquifying the output. | ||
7484 | if sort "$nlist" | uniq > "$nlist"T; then | ||
7485 | mv -f "$nlist"T "$nlist" | ||
7486 | else | ||
7487 | rm -f "$nlist"T | ||
7488 | fi | ||
7489 | |||
7490 | # Make sure that we snagged all the symbols we need. | ||
7491 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | ||
7492 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | ||
7493 | cat <<_LT_EOF > conftest.$ac_ext | ||
7494 | #ifdef __cplusplus | ||
7495 | extern "C" { | ||
7496 | #endif | ||
7497 | |||
7498 | _LT_EOF | ||
7499 | # Now generate the symbol file. | ||
7500 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | ||
7501 | |||
7502 | cat <<_LT_EOF >> conftest.$ac_ext | ||
7503 | |||
7504 | /* The mapping between symbol names and symbols. */ | ||
7505 | const struct { | ||
7506 | const char *name; | ||
7507 | void *address; | ||
7508 | } | ||
7509 | lt__PROGRAM__LTX_preloaded_symbols[] = | ||
7510 | { | ||
7511 | { "@PROGRAM@", (void *) 0 }, | ||
7512 | _LT_EOF | ||
7513 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | ||
7514 | cat <<\_LT_EOF >> conftest.$ac_ext | ||
7515 | {0, (void *) 0} | ||
7516 | }; | ||
7517 | |||
7518 | /* This works around a problem in FreeBSD linker */ | ||
7519 | #ifdef FREEBSD_WORKAROUND | ||
7520 | static const void *lt_preloaded_setup() { | ||
7521 | return lt__PROGRAM__LTX_preloaded_symbols; | ||
7522 | } | ||
7523 | #endif | ||
7524 | |||
7525 | #ifdef __cplusplus | ||
7526 | } | ||
7527 | #endif | ||
7528 | _LT_EOF | ||
7529 | # Now try linking the two files. | ||
7530 | mv conftest.$ac_objext conftstm.$ac_objext | ||
7531 | lt_save_LIBS="$LIBS" | ||
7532 | lt_save_CFLAGS="$CFLAGS" | ||
7533 | LIBS="conftstm.$ac_objext" | ||
7534 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | ||
7535 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
7536 | (eval $ac_link) 2>&5 | ||
7537 | ac_status=$? | ||
7538 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7539 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | ||
7540 | pipe_works=yes | ||
7541 | fi | ||
7542 | LIBS="$lt_save_LIBS" | ||
7543 | CFLAGS="$lt_save_CFLAGS" | ||
7544 | else | ||
7545 | echo "cannot find nm_test_func in $nlist" >&5 | ||
7546 | fi | ||
7547 | else | ||
7548 | echo "cannot find nm_test_var in $nlist" >&5 | ||
7549 | fi | ||
7550 | else | ||
7551 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | ||
7552 | fi | ||
7553 | else | ||
7554 | echo "$progname: failed program was:" >&5 | ||
7555 | cat conftest.$ac_ext >&5 | ||
7556 | fi | ||
7557 | rm -rf conftest* conftst* | ||
7558 | |||
7559 | # Do not use the global_symbol_pipe unless it works. | ||
7560 | if test "$pipe_works" = yes; then | ||
7561 | break | ||
7562 | else | ||
7563 | lt_cv_sys_global_symbol_pipe= | ||
7564 | fi | ||
7565 | done | ||
7566 | |||
7567 | fi | ||
7568 | |||
7569 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | ||
7570 | lt_cv_sys_global_symbol_to_cdecl= | ||
7571 | fi | ||
7572 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | ||
7573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | ||
7574 | $as_echo "failed" >&6; } | ||
7575 | else | ||
7576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | ||
7577 | $as_echo "ok" >&6; } | ||
7578 | fi | ||
7579 | |||
7580 | |||
7581 | |||
7582 | |||
7583 | |||
7584 | |||
7585 | |||
7586 | |||
7587 | |||
7588 | |||
7589 | |||
7590 | |||
7591 | |||
7592 | |||
7593 | |||
7594 | |||
7595 | |||
7596 | |||
7597 | |||
7598 | |||
7599 | |||
7600 | |||
7601 | # Check whether --enable-libtool-lock was given. | ||
7602 | if test "${enable_libtool_lock+set}" = set; then : | ||
7603 | enableval=$enable_libtool_lock; | ||
7604 | fi | ||
7605 | |||
7606 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
7607 | |||
7608 | # Some flags need to be propagated to the compiler or linker for good | ||
7609 | # libtool support. | ||
7610 | case $host in | ||
7611 | ia64-*-hpux*) | ||
7612 | # Find out which ABI we are using. | ||
7613 | echo 'int i;' > conftest.$ac_ext | ||
7614 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
7615 | (eval $ac_compile) 2>&5 | ||
7616 | ac_status=$? | ||
7617 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7618 | test $ac_status = 0; }; then | ||
7619 | case `/usr/bin/file conftest.$ac_objext` in | ||
7620 | *ELF-32*) | ||
7621 | HPUX_IA64_MODE="32" | ||
7622 | ;; | ||
7623 | *ELF-64*) | ||
7624 | HPUX_IA64_MODE="64" | ||
7625 | ;; | ||
7626 | esac | ||
7627 | fi | ||
7628 | rm -rf conftest* | ||
7629 | ;; | ||
7630 | *-*-irix6*) | ||
7631 | # Find out which ABI we are using. | ||
7632 | echo '#line 7632 "configure"' > conftest.$ac_ext | ||
7633 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
7634 | (eval $ac_compile) 2>&5 | ||
7635 | ac_status=$? | ||
7636 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7637 | test $ac_status = 0; }; then | ||
7638 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
7639 | case `/usr/bin/file conftest.$ac_objext` in | ||
7640 | *32-bit*) | ||
7641 | LD="${LD-ld} -melf32bsmip" | ||
7642 | ;; | ||
7643 | *N32*) | ||
7644 | LD="${LD-ld} -melf32bmipn32" | ||
7645 | ;; | ||
7646 | *64-bit*) | ||
7647 | LD="${LD-ld} -melf64bmip" | ||
7648 | ;; | ||
7649 | esac | ||
7650 | else | ||
7651 | case `/usr/bin/file conftest.$ac_objext` in | ||
7652 | *32-bit*) | ||
7653 | LD="${LD-ld} -32" | ||
7654 | ;; | ||
7655 | *N32*) | ||
7656 | LD="${LD-ld} -n32" | ||
7657 | ;; | ||
7658 | *64-bit*) | ||
7659 | LD="${LD-ld} -64" | ||
7660 | ;; | ||
7661 | esac | ||
7662 | fi | ||
7663 | fi | ||
7664 | rm -rf conftest* | ||
7665 | ;; | ||
7666 | |||
7667 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | ||
7668 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | ||
7669 | # Find out which ABI we are using. | ||
7670 | echo 'int i;' > conftest.$ac_ext | ||
7671 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
7672 | (eval $ac_compile) 2>&5 | ||
7673 | ac_status=$? | ||
7674 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7675 | test $ac_status = 0; }; then | ||
7676 | case `/usr/bin/file conftest.o` in | ||
7677 | *32-bit*) | ||
7678 | case $host in | ||
7679 | x86_64-*kfreebsd*-gnu) | ||
7680 | LD="${LD-ld} -m elf_i386_fbsd" | ||
7681 | ;; | ||
7682 | x86_64-*linux*) | ||
7683 | LD="${LD-ld} -m elf_i386" | ||
7684 | ;; | ||
7685 | ppc64-*linux*|powerpc64-*linux*) | ||
7686 | LD="${LD-ld} -m elf32ppclinux" | ||
7687 | ;; | ||
7688 | s390x-*linux*) | ||
7689 | LD="${LD-ld} -m elf_s390" | ||
7690 | ;; | ||
7691 | sparc64-*linux*) | ||
7692 | LD="${LD-ld} -m elf32_sparc" | ||
7693 | ;; | ||
7694 | esac | ||
7695 | ;; | ||
7696 | *64-bit*) | ||
7697 | case $host in | ||
7698 | x86_64-*kfreebsd*-gnu) | ||
7699 | LD="${LD-ld} -m elf_x86_64_fbsd" | ||
7700 | ;; | ||
7701 | x86_64-*linux*) | ||
7702 | LD="${LD-ld} -m elf_x86_64" | ||
7703 | ;; | ||
7704 | ppc*-*linux*|powerpc*-*linux*) | ||
7705 | LD="${LD-ld} -m elf64ppc" | ||
7706 | ;; | ||
7707 | s390*-*linux*|s390*-*tpf*) | ||
7708 | LD="${LD-ld} -m elf64_s390" | ||
7709 | ;; | ||
7710 | sparc*-*linux*) | ||
7711 | LD="${LD-ld} -m elf64_sparc" | ||
7712 | ;; | ||
7713 | esac | ||
7714 | ;; | ||
7715 | esac | ||
7716 | fi | ||
7717 | rm -rf conftest* | ||
7718 | ;; | ||
7719 | |||
7720 | *-*-sco3.2v5*) | ||
7721 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | ||
7722 | SAVE_CFLAGS="$CFLAGS" | ||
7723 | CFLAGS="$CFLAGS -belf" | ||
7724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | ||
7725 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | ||
7726 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | ||
7727 | $as_echo_n "(cached) " >&6 | ||
7728 | else | ||
7729 | ac_ext=c | ||
7730 | ac_cpp='$CPP $CPPFLAGS' | ||
7731 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
7732 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
7733 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
7734 | |||
7735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7736 | /* end confdefs.h. */ | ||
7737 | |||
7738 | int | ||
7739 | main () | ||
7740 | { | ||
7741 | |||
7742 | ; | ||
7743 | return 0; | ||
7744 | } | ||
7745 | _ACEOF | ||
7746 | if ac_fn_c_try_link "$LINENO"; then : | ||
7747 | lt_cv_cc_needs_belf=yes | ||
7748 | else | ||
7749 | lt_cv_cc_needs_belf=no | ||
7750 | fi | ||
7751 | rm -f core conftest.err conftest.$ac_objext \ | ||
7752 | conftest$ac_exeext conftest.$ac_ext | ||
7753 | ac_ext=c | ||
7754 | ac_cpp='$CPP $CPPFLAGS' | ||
7755 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
7756 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
7757 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
7758 | |||
7759 | fi | ||
7760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | ||
7761 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | ||
7762 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | ||
7763 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | ||
7764 | CFLAGS="$SAVE_CFLAGS" | ||
7765 | fi | ||
7766 | ;; | ||
7767 | sparc*-*solaris*) | ||
7768 | # Find out which ABI we are using. | ||
7769 | echo 'int i;' > conftest.$ac_ext | ||
7770 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
7771 | (eval $ac_compile) 2>&5 | ||
7772 | ac_status=$? | ||
7773 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
7774 | test $ac_status = 0; }; then | ||
7775 | case `/usr/bin/file conftest.o` in | ||
7776 | *64-bit*) | ||
7777 | case $lt_cv_prog_gnu_ld in | ||
7778 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | ||
7779 | *) | ||
7780 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | ||
7781 | LD="${LD-ld} -64" | ||
7782 | fi | ||
7783 | ;; | ||
7784 | esac | ||
7785 | ;; | ||
7786 | esac | ||
7787 | fi | ||
7788 | rm -rf conftest* | ||
7789 | ;; | ||
7790 | esac | ||
7791 | |||
7792 | need_locks="$enable_libtool_lock" | ||
7793 | |||
7794 | |||
7795 | case $host_os in | ||
7796 | rhapsody* | darwin*) | ||
7797 | if test -n "$ac_tool_prefix"; then | ||
7798 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | ||
7799 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | ||
7800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7801 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7802 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | ||
7803 | $as_echo_n "(cached) " >&6 | ||
7804 | else | ||
7805 | if test -n "$DSYMUTIL"; then | ||
7806 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | ||
7807 | else | ||
7808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7809 | for as_dir in $PATH | ||
7810 | do | ||
7811 | IFS=$as_save_IFS | ||
7812 | test -z "$as_dir" && as_dir=. | ||
7813 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7814 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7815 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | ||
7816 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7817 | break 2 | ||
7818 | fi | ||
7819 | done | ||
7820 | done | ||
7821 | IFS=$as_save_IFS | ||
7822 | |||
7823 | fi | ||
7824 | fi | ||
7825 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | ||
7826 | if test -n "$DSYMUTIL"; then | ||
7827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | ||
7828 | $as_echo "$DSYMUTIL" >&6; } | ||
7829 | else | ||
7830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7831 | $as_echo "no" >&6; } | ||
7832 | fi | ||
7833 | |||
7834 | |||
7835 | fi | ||
7836 | if test -z "$ac_cv_prog_DSYMUTIL"; then | ||
7837 | ac_ct_DSYMUTIL=$DSYMUTIL | ||
7838 | # Extract the first word of "dsymutil", so it can be a program name with args. | ||
7839 | set dummy dsymutil; ac_word=$2 | ||
7840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7841 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7842 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | ||
7843 | $as_echo_n "(cached) " >&6 | ||
7844 | else | ||
7845 | if test -n "$ac_ct_DSYMUTIL"; then | ||
7846 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | ||
7847 | else | ||
7848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7849 | for as_dir in $PATH | ||
7850 | do | ||
7851 | IFS=$as_save_IFS | ||
7852 | test -z "$as_dir" && as_dir=. | ||
7853 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7854 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7855 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | ||
7856 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7857 | break 2 | ||
7858 | fi | ||
7859 | done | ||
7860 | done | ||
7861 | IFS=$as_save_IFS | ||
7862 | |||
7863 | fi | ||
7864 | fi | ||
7865 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | ||
7866 | if test -n "$ac_ct_DSYMUTIL"; then | ||
7867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | ||
7868 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | ||
7869 | else | ||
7870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7871 | $as_echo "no" >&6; } | ||
7872 | fi | ||
7873 | |||
7874 | if test "x$ac_ct_DSYMUTIL" = x; then | ||
7875 | DSYMUTIL=":" | ||
7876 | else | ||
7877 | case $cross_compiling:$ac_tool_warned in | ||
7878 | yes:) | ||
7879 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
7880 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
7881 | ac_tool_warned=yes ;; | ||
7882 | esac | ||
7883 | DSYMUTIL=$ac_ct_DSYMUTIL | ||
7884 | fi | ||
7885 | else | ||
7886 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | ||
7887 | fi | ||
7888 | |||
7889 | if test -n "$ac_tool_prefix"; then | ||
7890 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | ||
7891 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | ||
7892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7893 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7894 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | ||
7895 | $as_echo_n "(cached) " >&6 | ||
7896 | else | ||
7897 | if test -n "$NMEDIT"; then | ||
7898 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | ||
7899 | else | ||
7900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7901 | for as_dir in $PATH | ||
7902 | do | ||
7903 | IFS=$as_save_IFS | ||
7904 | test -z "$as_dir" && as_dir=. | ||
7905 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7906 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7907 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | ||
7908 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7909 | break 2 | ||
7910 | fi | ||
7911 | done | ||
7912 | done | ||
7913 | IFS=$as_save_IFS | ||
7914 | |||
7915 | fi | ||
7916 | fi | ||
7917 | NMEDIT=$ac_cv_prog_NMEDIT | ||
7918 | if test -n "$NMEDIT"; then | ||
7919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | ||
7920 | $as_echo "$NMEDIT" >&6; } | ||
7921 | else | ||
7922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7923 | $as_echo "no" >&6; } | ||
7924 | fi | ||
7925 | |||
7926 | |||
7927 | fi | ||
7928 | if test -z "$ac_cv_prog_NMEDIT"; then | ||
7929 | ac_ct_NMEDIT=$NMEDIT | ||
7930 | # Extract the first word of "nmedit", so it can be a program name with args. | ||
7931 | set dummy nmedit; ac_word=$2 | ||
7932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7933 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7934 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | ||
7935 | $as_echo_n "(cached) " >&6 | ||
7936 | else | ||
7937 | if test -n "$ac_ct_NMEDIT"; then | ||
7938 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | ||
7939 | else | ||
7940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7941 | for as_dir in $PATH | ||
7942 | do | ||
7943 | IFS=$as_save_IFS | ||
7944 | test -z "$as_dir" && as_dir=. | ||
7945 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7946 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7947 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | ||
7948 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7949 | break 2 | ||
7950 | fi | ||
7951 | done | ||
7952 | done | ||
7953 | IFS=$as_save_IFS | ||
7954 | |||
7955 | fi | ||
7956 | fi | ||
7957 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | ||
7958 | if test -n "$ac_ct_NMEDIT"; then | ||
7959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | ||
7960 | $as_echo "$ac_ct_NMEDIT" >&6; } | ||
7961 | else | ||
7962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7963 | $as_echo "no" >&6; } | ||
7964 | fi | ||
7965 | |||
7966 | if test "x$ac_ct_NMEDIT" = x; then | ||
7967 | NMEDIT=":" | ||
7968 | else | ||
7969 | case $cross_compiling:$ac_tool_warned in | ||
7970 | yes:) | ||
7971 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
7972 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
7973 | ac_tool_warned=yes ;; | ||
7974 | esac | ||
7975 | NMEDIT=$ac_ct_NMEDIT | ||
7976 | fi | ||
7977 | else | ||
7978 | NMEDIT="$ac_cv_prog_NMEDIT" | ||
7979 | fi | ||
7980 | |||
7981 | if test -n "$ac_tool_prefix"; then | ||
7982 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | ||
7983 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | ||
7984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
7985 | $as_echo_n "checking for $ac_word... " >&6; } | ||
7986 | if test "${ac_cv_prog_LIPO+set}" = set; then : | ||
7987 | $as_echo_n "(cached) " >&6 | ||
7988 | else | ||
7989 | if test -n "$LIPO"; then | ||
7990 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | ||
7991 | else | ||
7992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7993 | for as_dir in $PATH | ||
7994 | do | ||
7995 | IFS=$as_save_IFS | ||
7996 | test -z "$as_dir" && as_dir=. | ||
7997 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7998 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7999 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | ||
8000 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8001 | break 2 | ||
8002 | fi | ||
8003 | done | ||
8004 | done | ||
8005 | IFS=$as_save_IFS | ||
8006 | |||
8007 | fi | ||
8008 | fi | ||
8009 | LIPO=$ac_cv_prog_LIPO | ||
8010 | if test -n "$LIPO"; then | ||
8011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | ||
8012 | $as_echo "$LIPO" >&6; } | ||
8013 | else | ||
8014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8015 | $as_echo "no" >&6; } | ||
8016 | fi | ||
8017 | |||
8018 | |||
8019 | fi | ||
8020 | if test -z "$ac_cv_prog_LIPO"; then | ||
8021 | ac_ct_LIPO=$LIPO | ||
8022 | # Extract the first word of "lipo", so it can be a program name with args. | ||
8023 | set dummy lipo; ac_word=$2 | ||
8024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
8025 | $as_echo_n "checking for $ac_word... " >&6; } | ||
8026 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | ||
8027 | $as_echo_n "(cached) " >&6 | ||
8028 | else | ||
8029 | if test -n "$ac_ct_LIPO"; then | ||
8030 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | ||
8031 | else | ||
8032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
8033 | for as_dir in $PATH | ||
8034 | do | ||
8035 | IFS=$as_save_IFS | ||
8036 | test -z "$as_dir" && as_dir=. | ||
8037 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8038 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
8039 | ac_cv_prog_ac_ct_LIPO="lipo" | ||
8040 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8041 | break 2 | ||
8042 | fi | ||
8043 | done | ||
8044 | done | ||
8045 | IFS=$as_save_IFS | ||
8046 | |||
8047 | fi | ||
8048 | fi | ||
8049 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | ||
8050 | if test -n "$ac_ct_LIPO"; then | ||
8051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | ||
8052 | $as_echo "$ac_ct_LIPO" >&6; } | ||
8053 | else | ||
8054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8055 | $as_echo "no" >&6; } | ||
8056 | fi | ||
8057 | |||
8058 | if test "x$ac_ct_LIPO" = x; then | ||
8059 | LIPO=":" | ||
8060 | else | ||
8061 | case $cross_compiling:$ac_tool_warned in | ||
8062 | yes:) | ||
8063 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
8064 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
8065 | ac_tool_warned=yes ;; | ||
8066 | esac | ||
8067 | LIPO=$ac_ct_LIPO | ||
8068 | fi | ||
8069 | else | ||
8070 | LIPO="$ac_cv_prog_LIPO" | ||
8071 | fi | ||
8072 | |||
8073 | if test -n "$ac_tool_prefix"; then | ||
8074 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | ||
8075 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | ||
8076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
8077 | $as_echo_n "checking for $ac_word... " >&6; } | ||
8078 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | ||
8079 | $as_echo_n "(cached) " >&6 | ||
8080 | else | ||
8081 | if test -n "$OTOOL"; then | ||
8082 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | ||
8083 | else | ||
8084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
8085 | for as_dir in $PATH | ||
8086 | do | ||
8087 | IFS=$as_save_IFS | ||
8088 | test -z "$as_dir" && as_dir=. | ||
8089 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8090 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
8091 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | ||
8092 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8093 | break 2 | ||
8094 | fi | ||
8095 | done | ||
8096 | done | ||
8097 | IFS=$as_save_IFS | ||
8098 | |||
8099 | fi | ||
8100 | fi | ||
8101 | OTOOL=$ac_cv_prog_OTOOL | ||
8102 | if test -n "$OTOOL"; then | ||
8103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | ||
8104 | $as_echo "$OTOOL" >&6; } | ||
8105 | else | ||
8106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8107 | $as_echo "no" >&6; } | ||
8108 | fi | ||
8109 | |||
8110 | |||
8111 | fi | ||
8112 | if test -z "$ac_cv_prog_OTOOL"; then | ||
8113 | ac_ct_OTOOL=$OTOOL | ||
8114 | # Extract the first word of "otool", so it can be a program name with args. | ||
8115 | set dummy otool; ac_word=$2 | ||
8116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
8117 | $as_echo_n "checking for $ac_word... " >&6; } | ||
8118 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | ||
8119 | $as_echo_n "(cached) " >&6 | ||
8120 | else | ||
8121 | if test -n "$ac_ct_OTOOL"; then | ||
8122 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | ||
8123 | else | ||
8124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
8125 | for as_dir in $PATH | ||
8126 | do | ||
8127 | IFS=$as_save_IFS | ||
8128 | test -z "$as_dir" && as_dir=. | ||
8129 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8130 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
8131 | ac_cv_prog_ac_ct_OTOOL="otool" | ||
8132 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8133 | break 2 | ||
8134 | fi | ||
8135 | done | ||
8136 | done | ||
8137 | IFS=$as_save_IFS | ||
8138 | |||
8139 | fi | ||
8140 | fi | ||
8141 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | ||
8142 | if test -n "$ac_ct_OTOOL"; then | ||
8143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | ||
8144 | $as_echo "$ac_ct_OTOOL" >&6; } | ||
8145 | else | ||
8146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8147 | $as_echo "no" >&6; } | ||
8148 | fi | ||
8149 | |||
8150 | if test "x$ac_ct_OTOOL" = x; then | ||
8151 | OTOOL=":" | ||
8152 | else | ||
8153 | case $cross_compiling:$ac_tool_warned in | ||
8154 | yes:) | ||
8155 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
8156 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
8157 | ac_tool_warned=yes ;; | ||
8158 | esac | ||
8159 | OTOOL=$ac_ct_OTOOL | ||
8160 | fi | ||
8161 | else | ||
8162 | OTOOL="$ac_cv_prog_OTOOL" | ||
8163 | fi | ||
8164 | |||
8165 | if test -n "$ac_tool_prefix"; then | ||
8166 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | ||
8167 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | ||
8168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
8169 | $as_echo_n "checking for $ac_word... " >&6; } | ||
8170 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | ||
8171 | $as_echo_n "(cached) " >&6 | ||
8172 | else | ||
8173 | if test -n "$OTOOL64"; then | ||
8174 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | ||
8175 | else | ||
8176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
8177 | for as_dir in $PATH | ||
8178 | do | ||
8179 | IFS=$as_save_IFS | ||
8180 | test -z "$as_dir" && as_dir=. | ||
8181 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8182 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
8183 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | ||
8184 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8185 | break 2 | ||
8186 | fi | ||
8187 | done | ||
8188 | done | ||
8189 | IFS=$as_save_IFS | ||
8190 | |||
8191 | fi | ||
8192 | fi | ||
8193 | OTOOL64=$ac_cv_prog_OTOOL64 | ||
8194 | if test -n "$OTOOL64"; then | ||
8195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | ||
8196 | $as_echo "$OTOOL64" >&6; } | ||
8197 | else | ||
8198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8199 | $as_echo "no" >&6; } | ||
8200 | fi | ||
8201 | |||
8202 | |||
8203 | fi | ||
8204 | if test -z "$ac_cv_prog_OTOOL64"; then | ||
8205 | ac_ct_OTOOL64=$OTOOL64 | ||
8206 | # Extract the first word of "otool64", so it can be a program name with args. | ||
8207 | set dummy otool64; ac_word=$2 | ||
8208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
8209 | $as_echo_n "checking for $ac_word... " >&6; } | ||
8210 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | ||
8211 | $as_echo_n "(cached) " >&6 | ||
8212 | else | ||
8213 | if test -n "$ac_ct_OTOOL64"; then | ||
8214 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | ||
8215 | else | ||
8216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
8217 | for as_dir in $PATH | ||
8218 | do | ||
8219 | IFS=$as_save_IFS | ||
8220 | test -z "$as_dir" && as_dir=. | ||
8221 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
8222 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
8223 | ac_cv_prog_ac_ct_OTOOL64="otool64" | ||
8224 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
8225 | break 2 | ||
8226 | fi | ||
8227 | done | ||
8228 | done | ||
8229 | IFS=$as_save_IFS | ||
8230 | |||
8231 | fi | ||
8232 | fi | ||
8233 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | ||
8234 | if test -n "$ac_ct_OTOOL64"; then | ||
8235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | ||
8236 | $as_echo "$ac_ct_OTOOL64" >&6; } | ||
8237 | else | ||
8238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8239 | $as_echo "no" >&6; } | ||
8240 | fi | ||
8241 | |||
8242 | if test "x$ac_ct_OTOOL64" = x; then | ||
8243 | OTOOL64=":" | ||
8244 | else | ||
8245 | case $cross_compiling:$ac_tool_warned in | ||
8246 | yes:) | ||
8247 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
8248 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
8249 | ac_tool_warned=yes ;; | ||
8250 | esac | ||
8251 | OTOOL64=$ac_ct_OTOOL64 | ||
8252 | fi | ||
8253 | else | ||
8254 | OTOOL64="$ac_cv_prog_OTOOL64" | ||
8255 | fi | ||
8256 | |||
8257 | |||
8258 | |||
8259 | |||
8260 | |||
8261 | |||
8262 | |||
8263 | |||
8264 | |||
8265 | |||
8266 | |||
8267 | |||
8268 | |||
8269 | |||
8270 | |||
8271 | |||
8272 | |||
8273 | |||
8274 | |||
8275 | |||
8276 | |||
8277 | |||
8278 | |||
8279 | |||
8280 | |||
8281 | |||
8282 | |||
8283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | ||
8284 | $as_echo_n "checking for -single_module linker flag... " >&6; } | ||
8285 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | ||
8286 | $as_echo_n "(cached) " >&6 | ||
8287 | else | ||
8288 | lt_cv_apple_cc_single_mod=no | ||
8289 | if test -z "${LT_MULTI_MODULE}"; then | ||
8290 | # By default we will add the -single_module flag. You can override | ||
8291 | # by either setting the environment variable LT_MULTI_MODULE | ||
8292 | # non-empty at configure time, or by adding -multi_module to the | ||
8293 | # link flags. | ||
8294 | rm -rf libconftest.dylib* | ||
8295 | echo "int foo(void){return 1;}" > conftest.c | ||
8296 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | ||
8297 | -dynamiclib -Wl,-single_module conftest.c" >&5 | ||
8298 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | ||
8299 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | ||
8300 | _lt_result=$? | ||
8301 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | ||
8302 | lt_cv_apple_cc_single_mod=yes | ||
8303 | else | ||
8304 | cat conftest.err >&5 | ||
8305 | fi | ||
8306 | rm -rf libconftest.dylib* | ||
8307 | rm -f conftest.* | ||
8308 | fi | ||
8309 | fi | ||
8310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | ||
8311 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | ||
8312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | ||
8313 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | ||
8314 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | ||
8315 | $as_echo_n "(cached) " >&6 | ||
8316 | else | ||
8317 | lt_cv_ld_exported_symbols_list=no | ||
8318 | save_LDFLAGS=$LDFLAGS | ||
8319 | echo "_main" > conftest.sym | ||
8320 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | ||
8321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8322 | /* end confdefs.h. */ | ||
8323 | |||
8324 | int | ||
8325 | main () | ||
8326 | { | ||
8327 | |||
8328 | ; | ||
8329 | return 0; | ||
8330 | } | ||
8331 | _ACEOF | ||
8332 | if ac_fn_c_try_link "$LINENO"; then : | ||
8333 | lt_cv_ld_exported_symbols_list=yes | ||
8334 | else | ||
8335 | lt_cv_ld_exported_symbols_list=no | ||
8336 | fi | ||
8337 | rm -f core conftest.err conftest.$ac_objext \ | ||
8338 | conftest$ac_exeext conftest.$ac_ext | ||
8339 | LDFLAGS="$save_LDFLAGS" | ||
8340 | |||
8341 | fi | ||
8342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | ||
8343 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | ||
8344 | case $host_os in | ||
8345 | rhapsody* | darwin1.[012]) | ||
8346 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | ||
8347 | darwin1.*) | ||
8348 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | ||
8349 | darwin*) # darwin 5.x on | ||
8350 | # if running on 10.5 or later, the deployment target defaults | ||
8351 | # to the OS version, if on x86, and 10.4, the deployment | ||
8352 | # target defaults to 10.4. Don't you love it? | ||
8353 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | ||
8354 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | ||
8355 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | ||
8356 | 10.[012]*) | ||
8357 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | ||
8358 | 10.*) | ||
8359 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | ||
8360 | esac | ||
8361 | ;; | ||
8362 | esac | ||
8363 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | ||
8364 | _lt_dar_single_mod='$single_module' | ||
8365 | fi | ||
8366 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | ||
8367 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | ||
8368 | else | ||
8369 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
8370 | fi | ||
8371 | if test "$DSYMUTIL" != ":"; then | ||
8372 | _lt_dsymutil='~$DSYMUTIL $lib || :' | ||
8373 | else | ||
8374 | _lt_dsymutil= | ||
8375 | fi | ||
8376 | ;; | ||
8377 | esac | ||
8378 | |||
8379 | for ac_header in dlfcn.h | ||
8380 | do : | ||
8381 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | ||
8382 | " | ||
8383 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | ||
8384 | cat >>confdefs.h <<_ACEOF | ||
8385 | #define HAVE_DLFCN_H 1 | ||
8386 | _ACEOF | ||
8387 | |||
8388 | fi | ||
8389 | |||
8390 | done | ||
8391 | |||
8392 | |||
8393 | |||
8394 | # Set options | ||
8395 | |||
8396 | |||
8397 | |||
8398 | enable_dlopen=no | ||
8399 | |||
8400 | |||
8401 | |||
8402 | # Check whether --enable-shared was given. | ||
8403 | if test "${enable_shared+set}" = set; then : | ||
8404 | enableval=$enable_shared; p=${PACKAGE-default} | ||
8405 | case $enableval in | ||
8406 | yes) enable_shared=yes ;; | ||
8407 | no) enable_shared=no ;; | ||
8408 | *) | ||
8409 | enable_shared=no | ||
8410 | # Look at the argument we got. We use all the common list separators. | ||
8411 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
8412 | for pkg in $enableval; do | ||
8413 | IFS="$lt_save_ifs" | ||
8414 | if test "X$pkg" = "X$p"; then | ||
8415 | enable_shared=yes | ||
8416 | fi | ||
8417 | done | ||
8418 | IFS="$lt_save_ifs" | ||
8419 | ;; | ||
8420 | esac | ||
8421 | else | ||
8422 | enable_shared=yes | ||
8423 | fi | ||
8424 | |||
8425 | |||
8426 | |||
8427 | |||
8428 | |||
8429 | |||
8430 | |||
8431 | |||
8432 | |||
8433 | # Check whether --enable-static was given. | ||
8434 | if test "${enable_static+set}" = set; then : | ||
8435 | enableval=$enable_static; p=${PACKAGE-default} | ||
8436 | case $enableval in | ||
8437 | yes) enable_static=yes ;; | ||
8438 | no) enable_static=no ;; | ||
8439 | *) | ||
8440 | enable_static=no | ||
8441 | # Look at the argument we got. We use all the common list separators. | ||
8442 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
8443 | for pkg in $enableval; do | ||
8444 | IFS="$lt_save_ifs" | ||
8445 | if test "X$pkg" = "X$p"; then | ||
8446 | enable_static=yes | ||
8447 | fi | ||
8448 | done | ||
8449 | IFS="$lt_save_ifs" | ||
8450 | ;; | ||
8451 | esac | ||
8452 | else | ||
8453 | enable_static=yes | ||
8454 | fi | ||
8455 | |||
8456 | |||
8457 | |||
8458 | |||
8459 | |||
8460 | |||
8461 | |||
8462 | |||
8463 | |||
8464 | |||
8465 | # Check whether --with-pic was given. | ||
8466 | if test "${with_pic+set}" = set; then : | ||
8467 | withval=$with_pic; pic_mode="$withval" | ||
8468 | else | ||
8469 | pic_mode=default | ||
8470 | fi | ||
8471 | |||
8472 | |||
8473 | test -z "$pic_mode" && pic_mode=default | ||
8474 | |||
8475 | |||
8476 | |||
8477 | |||
8478 | |||
8479 | |||
8480 | |||
8481 | # Check whether --enable-fast-install was given. | ||
8482 | if test "${enable_fast_install+set}" = set; then : | ||
8483 | enableval=$enable_fast_install; p=${PACKAGE-default} | ||
8484 | case $enableval in | ||
8485 | yes) enable_fast_install=yes ;; | ||
8486 | no) enable_fast_install=no ;; | ||
8487 | *) | ||
8488 | enable_fast_install=no | ||
8489 | # Look at the argument we got. We use all the common list separators. | ||
8490 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
8491 | for pkg in $enableval; do | ||
8492 | IFS="$lt_save_ifs" | ||
8493 | if test "X$pkg" = "X$p"; then | ||
8494 | enable_fast_install=yes | ||
8495 | fi | ||
8496 | done | ||
8497 | IFS="$lt_save_ifs" | ||
8498 | ;; | ||
8499 | esac | ||
8500 | else | ||
8501 | enable_fast_install=yes | ||
8502 | fi | ||
8503 | |||
8504 | |||
8505 | |||
8506 | |||
8507 | |||
8508 | |||
8509 | |||
8510 | |||
8511 | |||
8512 | |||
8513 | |||
8514 | # This can be used to rebuild libtool when needed | ||
8515 | LIBTOOL_DEPS="$ltmain" | ||
8516 | |||
8517 | # Always use our own libtool. | ||
8518 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | ||
8519 | |||
8520 | |||
8521 | |||
8522 | |||
8523 | |||
8524 | |||
8525 | |||
8526 | |||
8527 | |||
8528 | |||
8529 | |||
8530 | |||
8531 | |||
8532 | |||
8533 | |||
8534 | |||
8535 | |||
8536 | |||
8537 | |||
8538 | |||
8539 | |||
8540 | |||
8541 | |||
8542 | |||
8543 | |||
8544 | test -z "$LN_S" && LN_S="ln -s" | ||
8545 | |||
8546 | |||
8547 | |||
8548 | |||
8549 | |||
8550 | |||
8551 | |||
8552 | |||
8553 | |||
8554 | |||
8555 | |||
8556 | |||
8557 | |||
8558 | |||
8559 | if test -n "${ZSH_VERSION+set}" ; then | ||
8560 | setopt NO_GLOB_SUBST | ||
8561 | fi | ||
8562 | |||
8563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | ||
8564 | $as_echo_n "checking for objdir... " >&6; } | ||
8565 | if test "${lt_cv_objdir+set}" = set; then : | ||
8566 | $as_echo_n "(cached) " >&6 | ||
8567 | else | ||
8568 | rm -f .libs 2>/dev/null | ||
8569 | mkdir .libs 2>/dev/null | ||
8570 | if test -d .libs; then | ||
8571 | lt_cv_objdir=.libs | ||
8572 | else | ||
8573 | # MS-DOS does not allow filenames that begin with a dot. | ||
8574 | lt_cv_objdir=_libs | ||
8575 | fi | ||
8576 | rmdir .libs 2>/dev/null | ||
8577 | fi | ||
8578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | ||
8579 | $as_echo "$lt_cv_objdir" >&6; } | ||
8580 | objdir=$lt_cv_objdir | ||
8581 | |||
8582 | |||
8583 | |||
8584 | |||
8585 | |||
8586 | cat >>confdefs.h <<_ACEOF | ||
8587 | #define LT_OBJDIR "$lt_cv_objdir/" | ||
8588 | _ACEOF | ||
8589 | |||
8590 | |||
8591 | |||
8592 | |||
8593 | |||
8594 | |||
8595 | |||
8596 | |||
8597 | |||
8598 | |||
8599 | |||
8600 | |||
8601 | |||
8602 | |||
8603 | |||
8604 | |||
8605 | |||
8606 | case $host_os in | ||
8607 | aix3*) | ||
8608 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
8609 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
8610 | # vanish in a puff of smoke. | ||
8611 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
8612 | COLLECT_NAMES= | ||
8613 | export COLLECT_NAMES | ||
8614 | fi | ||
8615 | ;; | ||
8616 | esac | ||
8617 | |||
8618 | # Sed substitution that helps us do robust quoting. It backslashifies | ||
8619 | # metacharacters that are still active within double-quoted strings. | ||
8620 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | ||
8621 | |||
8622 | # Same as above, but do not quote variable references. | ||
8623 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | ||
8624 | |||
8625 | # Sed substitution to delay expansion of an escaped shell variable in a | ||
8626 | # double_quote_subst'ed string. | ||
8627 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
8628 | |||
8629 | # Sed substitution to delay expansion of an escaped single quote. | ||
8630 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | ||
8631 | |||
8632 | # Sed substitution to avoid accidental globbing in evaled expressions | ||
8633 | no_glob_subst='s/\*/\\\*/g' | ||
8634 | |||
8635 | # Global variables: | ||
8636 | ofile=libtool | ||
8637 | can_build_shared=yes | ||
8638 | |||
8639 | # All known linkers require a `.a' archive for static linking (except MSVC, | ||
8640 | # which needs '.lib'). | ||
8641 | libext=a | ||
8642 | |||
8643 | with_gnu_ld="$lt_cv_prog_gnu_ld" | ||
8644 | |||
8645 | old_CC="$CC" | ||
8646 | old_CFLAGS="$CFLAGS" | ||
8647 | |||
8648 | # Set sane defaults for various variables | ||
8649 | test -z "$CC" && CC=cc | ||
8650 | test -z "$LTCC" && LTCC=$CC | ||
8651 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | ||
8652 | test -z "$LD" && LD=ld | ||
8653 | test -z "$ac_objext" && ac_objext=o | ||
8654 | |||
8655 | for cc_temp in $compiler""; do | ||
8656 | case $cc_temp in | ||
8657 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | ||
8658 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | ||
8659 | \-*) ;; | ||
8660 | *) break;; | ||
8661 | esac | ||
8662 | done | ||
8663 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
8664 | |||
8665 | |||
8666 | # Only perform the check for file, if the check method requires it | ||
8667 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | ||
8668 | case $deplibs_check_method in | ||
8669 | file_magic*) | ||
8670 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | ||
8671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | ||
8672 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | ||
8673 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | ||
8674 | $as_echo_n "(cached) " >&6 | ||
8675 | else | ||
8676 | case $MAGIC_CMD in | ||
8677 | [\\/*] | ?:[\\/]*) | ||
8678 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
8679 | ;; | ||
8680 | *) | ||
8681 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
8682 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
8683 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | ||
8684 | for ac_dir in $ac_dummy; do | ||
8685 | IFS="$lt_save_ifs" | ||
8686 | test -z "$ac_dir" && ac_dir=. | ||
8687 | if test -f $ac_dir/${ac_tool_prefix}file; then | ||
8688 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | ||
8689 | if test -n "$file_magic_test_file"; then | ||
8690 | case $deplibs_check_method in | ||
8691 | "file_magic "*) | ||
8692 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | ||
8693 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
8694 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
8695 | $EGREP "$file_magic_regex" > /dev/null; then | ||
8696 | : | ||
8697 | else | ||
8698 | cat <<_LT_EOF 1>&2 | ||
8699 | |||
8700 | *** Warning: the command libtool uses to detect shared libraries, | ||
8701 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
8702 | *** The result is that libtool may fail to recognize shared libraries | ||
8703 | *** as such. This will affect the creation of libtool libraries that | ||
8704 | *** depend on shared libraries, but programs linked with such libtool | ||
8705 | *** libraries will work regardless of this problem. Nevertheless, you | ||
8706 | *** may want to report the problem to your system manager and/or to | ||
8707 | *** bug-libtool@gnu.org | ||
8708 | |||
8709 | _LT_EOF | ||
8710 | fi ;; | ||
8711 | esac | ||
8712 | fi | ||
8713 | break | ||
8714 | fi | ||
8715 | done | ||
8716 | IFS="$lt_save_ifs" | ||
8717 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
8718 | ;; | ||
8719 | esac | ||
8720 | fi | ||
8721 | |||
8722 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
8723 | if test -n "$MAGIC_CMD"; then | ||
8724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | ||
8725 | $as_echo "$MAGIC_CMD" >&6; } | ||
8726 | else | ||
8727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8728 | $as_echo "no" >&6; } | ||
8729 | fi | ||
8730 | |||
8731 | |||
8732 | |||
8733 | |||
8734 | |||
8735 | if test -z "$lt_cv_path_MAGIC_CMD"; then | ||
8736 | if test -n "$ac_tool_prefix"; then | ||
8737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | ||
8738 | $as_echo_n "checking for file... " >&6; } | ||
8739 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | ||
8740 | $as_echo_n "(cached) " >&6 | ||
8741 | else | ||
8742 | case $MAGIC_CMD in | ||
8743 | [\\/*] | ?:[\\/]*) | ||
8744 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
8745 | ;; | ||
8746 | *) | ||
8747 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
8748 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
8749 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | ||
8750 | for ac_dir in $ac_dummy; do | ||
8751 | IFS="$lt_save_ifs" | ||
8752 | test -z "$ac_dir" && ac_dir=. | ||
8753 | if test -f $ac_dir/file; then | ||
8754 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | ||
8755 | if test -n "$file_magic_test_file"; then | ||
8756 | case $deplibs_check_method in | ||
8757 | "file_magic "*) | ||
8758 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | ||
8759 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
8760 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
8761 | $EGREP "$file_magic_regex" > /dev/null; then | ||
8762 | : | ||
8763 | else | ||
8764 | cat <<_LT_EOF 1>&2 | ||
8765 | |||
8766 | *** Warning: the command libtool uses to detect shared libraries, | ||
8767 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
8768 | *** The result is that libtool may fail to recognize shared libraries | ||
8769 | *** as such. This will affect the creation of libtool libraries that | ||
8770 | *** depend on shared libraries, but programs linked with such libtool | ||
8771 | *** libraries will work regardless of this problem. Nevertheless, you | ||
8772 | *** may want to report the problem to your system manager and/or to | ||
8773 | *** bug-libtool@gnu.org | ||
8774 | |||
8775 | _LT_EOF | ||
8776 | fi ;; | ||
8777 | esac | ||
8778 | fi | ||
8779 | break | ||
8780 | fi | ||
8781 | done | ||
8782 | IFS="$lt_save_ifs" | ||
8783 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
8784 | ;; | ||
8785 | esac | ||
8786 | fi | ||
8787 | |||
8788 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
8789 | if test -n "$MAGIC_CMD"; then | ||
8790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | ||
8791 | $as_echo "$MAGIC_CMD" >&6; } | ||
8792 | else | ||
8793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8794 | $as_echo "no" >&6; } | ||
8795 | fi | ||
8796 | |||
8797 | |||
8798 | else | ||
8799 | MAGIC_CMD=: | ||
8800 | fi | ||
8801 | fi | ||
8802 | |||
8803 | fi | ||
8804 | ;; | ||
8805 | esac | ||
8806 | |||
8807 | # Use C for the default configuration in the libtool script | ||
8808 | |||
8809 | lt_save_CC="$CC" | ||
8810 | ac_ext=c | ||
8811 | ac_cpp='$CPP $CPPFLAGS' | ||
8812 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
8813 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
8814 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
8815 | |||
8816 | |||
8817 | # Source file extension for C test sources. | ||
8818 | ac_ext=c | ||
8819 | |||
8820 | # Object file extension for compiled C test sources. | ||
8821 | objext=o | ||
8822 | objext=$objext | ||
8823 | |||
8824 | # Code to be used in simple compile tests | ||
8825 | lt_simple_compile_test_code="int some_variable = 0;" | ||
8826 | |||
8827 | # Code to be used in simple link tests | ||
8828 | lt_simple_link_test_code='int main(){return(0);}' | ||
8829 | |||
8830 | |||
8831 | |||
8832 | |||
8833 | |||
8834 | |||
8835 | |||
8836 | # If no C compiler was specified, use CC. | ||
8837 | LTCC=${LTCC-"$CC"} | ||
8838 | |||
8839 | # If no C compiler flags were specified, use CFLAGS. | ||
8840 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
8841 | |||
8842 | # Allow CC to be a program name with arguments. | ||
8843 | compiler=$CC | ||
8844 | |||
8845 | # Save the default compiler, since it gets overwritten when the other | ||
8846 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | ||
8847 | compiler_DEFAULT=$CC | ||
8848 | |||
8849 | # save warnings/boilerplate of simple test code | ||
8850 | ac_outfile=conftest.$ac_objext | ||
8851 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
8852 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
8853 | _lt_compiler_boilerplate=`cat conftest.err` | ||
8854 | $RM conftest* | ||
8855 | |||
8856 | ac_outfile=conftest.$ac_objext | ||
8857 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | ||
8858 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
8859 | _lt_linker_boilerplate=`cat conftest.err` | ||
8860 | $RM -r conftest* | ||
8861 | |||
8862 | |||
8863 | ## CAVEAT EMPTOR: | ||
8864 | ## There is no encapsulation within the following macros, do not change | ||
8865 | ## the running order or otherwise move them around unless you know exactly | ||
8866 | ## what you are doing... | ||
8867 | if test -n "$compiler"; then | ||
8868 | |||
8869 | lt_prog_compiler_no_builtin_flag= | ||
8870 | |||
8871 | if test "$GCC" = yes; then | ||
8872 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | ||
8873 | |||
8874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | ||
8875 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | ||
8876 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | ||
8877 | $as_echo_n "(cached) " >&6 | ||
8878 | else | ||
8879 | lt_cv_prog_compiler_rtti_exceptions=no | ||
8880 | ac_outfile=conftest.$ac_objext | ||
8881 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
8882 | lt_compiler_flag="-fno-rtti -fno-exceptions" | ||
8883 | # Insert the option either (1) after the last *FLAGS variable, or | ||
8884 | # (2) before a word containing "conftest.", or (3) at the end. | ||
8885 | # Note that $ac_compile itself does not contain backslashes and begins | ||
8886 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
8887 | # The option is referenced via a variable to avoid confusing sed. | ||
8888 | lt_compile=`echo "$ac_compile" | $SED \ | ||
8889 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
8890 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
8891 | -e 's:$: $lt_compiler_flag:'` | ||
8892 | (eval echo "\"\$as_me:8892: $lt_compile\"" >&5) | ||
8893 | (eval "$lt_compile" 2>conftest.err) | ||
8894 | ac_status=$? | ||
8895 | cat conftest.err >&5 | ||
8896 | echo "$as_me:8896: \$? = $ac_status" >&5 | ||
8897 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
8898 | # The compiler can only warn and ignore the option if not recognized | ||
8899 | # So say no if there are warnings other than the usual output. | ||
8900 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
8901 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
8902 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
8903 | lt_cv_prog_compiler_rtti_exceptions=yes | ||
8904 | fi | ||
8905 | fi | ||
8906 | $RM conftest* | ||
8907 | |||
8908 | fi | ||
8909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | ||
8910 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | ||
8911 | |||
8912 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | ||
8913 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | ||
8914 | else | ||
8915 | : | ||
8916 | fi | ||
8917 | |||
8918 | fi | ||
8919 | |||
8920 | |||
8921 | |||
8922 | |||
8923 | |||
8924 | |||
8925 | lt_prog_compiler_wl= | ||
8926 | lt_prog_compiler_pic= | ||
8927 | lt_prog_compiler_static= | ||
8928 | |||
8929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
8930 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
8931 | |||
8932 | if test "$GCC" = yes; then | ||
8933 | lt_prog_compiler_wl='-Wl,' | ||
8934 | lt_prog_compiler_static='-static' | ||
8935 | |||
8936 | case $host_os in | ||
8937 | aix*) | ||
8938 | # All AIX code is PIC. | ||
8939 | if test "$host_cpu" = ia64; then | ||
8940 | # AIX 5 now supports IA64 processor | ||
8941 | lt_prog_compiler_static='-Bstatic' | ||
8942 | fi | ||
8943 | ;; | ||
8944 | |||
8945 | amigaos*) | ||
8946 | case $host_cpu in | ||
8947 | powerpc) | ||
8948 | # see comment about AmigaOS4 .so support | ||
8949 | lt_prog_compiler_pic='-fPIC' | ||
8950 | ;; | ||
8951 | m68k) | ||
8952 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
8953 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
8954 | # like `-m68040'. | ||
8955 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | ||
8956 | ;; | ||
8957 | esac | ||
8958 | ;; | ||
8959 | |||
8960 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
8961 | # PIC is the default for these OSes. | ||
8962 | ;; | ||
8963 | |||
8964 | mingw* | cygwin* | pw32* | os2* | cegcc*) | ||
8965 | # This hack is so that the source file can tell whether it is being | ||
8966 | # built for inclusion in a dll (and should export symbols for example). | ||
8967 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | ||
8968 | # (--disable-auto-import) libraries | ||
8969 | lt_prog_compiler_pic='-DDLL_EXPORT' | ||
8970 | ;; | ||
8971 | |||
8972 | darwin* | rhapsody*) | ||
8973 | # PIC is the default on this platform | ||
8974 | # Common symbols not allowed in MH_DYLIB files | ||
8975 | lt_prog_compiler_pic='-fno-common' | ||
8976 | ;; | ||
8977 | |||
8978 | hpux*) | ||
8979 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | ||
8980 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | ||
8981 | # sets the default TLS model and affects inlining. | ||
8982 | case $host_cpu in | ||
8983 | hppa*64*) | ||
8984 | # +Z the default | ||
8985 | ;; | ||
8986 | *) | ||
8987 | lt_prog_compiler_pic='-fPIC' | ||
8988 | ;; | ||
8989 | esac | ||
8990 | ;; | ||
8991 | |||
8992 | interix[3-9]*) | ||
8993 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
8994 | # Instead, we relocate shared libraries at runtime. | ||
8995 | ;; | ||
8996 | |||
8997 | msdosdjgpp*) | ||
8998 | # Just because we use GCC doesn't mean we suddenly get shared libraries | ||
8999 | # on systems that don't support them. | ||
9000 | lt_prog_compiler_can_build_shared=no | ||
9001 | enable_shared=no | ||
9002 | ;; | ||
9003 | |||
9004 | *nto* | *qnx*) | ||
9005 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
9006 | # it will coredump. | ||
9007 | lt_prog_compiler_pic='-fPIC -shared' | ||
9008 | ;; | ||
9009 | |||
9010 | sysv4*MP*) | ||
9011 | if test -d /usr/nec; then | ||
9012 | lt_prog_compiler_pic=-Kconform_pic | ||
9013 | fi | ||
9014 | ;; | ||
9015 | |||
9016 | *) | ||
9017 | lt_prog_compiler_pic='-fPIC' | ||
9018 | ;; | ||
9019 | esac | ||
9020 | else | ||
9021 | # PORTME Check for flag to pass linker flags through the system compiler. | ||
9022 | case $host_os in | ||
9023 | aix*) | ||
9024 | lt_prog_compiler_wl='-Wl,' | ||
9025 | if test "$host_cpu" = ia64; then | ||
9026 | # AIX 5 now supports IA64 processor | ||
9027 | lt_prog_compiler_static='-Bstatic' | ||
9028 | else | ||
9029 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | ||
9030 | fi | ||
9031 | ;; | ||
9032 | |||
9033 | mingw* | cygwin* | pw32* | os2* | cegcc*) | ||
9034 | # This hack is so that the source file can tell whether it is being | ||
9035 | # built for inclusion in a dll (and should export symbols for example). | ||
9036 | lt_prog_compiler_pic='-DDLL_EXPORT' | ||
9037 | ;; | ||
9038 | |||
9039 | hpux9* | hpux10* | hpux11*) | ||
9040 | lt_prog_compiler_wl='-Wl,' | ||
9041 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
9042 | # not for PA HP-UX. | ||
9043 | case $host_cpu in | ||
9044 | hppa*64*|ia64*) | ||
9045 | # +Z the default | ||
9046 | ;; | ||
9047 | *) | ||
9048 | lt_prog_compiler_pic='+Z' | ||
9049 | ;; | ||
9050 | esac | ||
9051 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | ||
9052 | lt_prog_compiler_static='${wl}-a ${wl}archive' | ||
9053 | ;; | ||
9054 | |||
9055 | irix5* | irix6* | nonstopux*) | ||
9056 | lt_prog_compiler_wl='-Wl,' | ||
9057 | # PIC (with -KPIC) is the default. | ||
9058 | lt_prog_compiler_static='-non_shared' | ||
9059 | ;; | ||
9060 | |||
9061 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
9062 | case $cc_basename in | ||
9063 | # old Intel for x86_64 which still supported -KPIC. | ||
9064 | ecc*) | ||
9065 | lt_prog_compiler_wl='-Wl,' | ||
9066 | lt_prog_compiler_pic='-KPIC' | ||
9067 | lt_prog_compiler_static='-static' | ||
9068 | ;; | ||
9069 | # icc used to be incompatible with GCC. | ||
9070 | # ICC 10 doesn't accept -KPIC any more. | ||
9071 | icc* | ifort*) | ||
9072 | lt_prog_compiler_wl='-Wl,' | ||
9073 | lt_prog_compiler_pic='-fPIC' | ||
9074 | lt_prog_compiler_static='-static' | ||
9075 | ;; | ||
9076 | # Lahey Fortran 8.1. | ||
9077 | lf95*) | ||
9078 | lt_prog_compiler_wl='-Wl,' | ||
9079 | lt_prog_compiler_pic='--shared' | ||
9080 | lt_prog_compiler_static='--static' | ||
9081 | ;; | ||
9082 | pgcc* | pgf77* | pgf90* | pgf95*) | ||
9083 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
9084 | # which looks to be a dead project) | ||
9085 | lt_prog_compiler_wl='-Wl,' | ||
9086 | lt_prog_compiler_pic='-fpic' | ||
9087 | lt_prog_compiler_static='-Bstatic' | ||
9088 | ;; | ||
9089 | ccc*) | ||
9090 | lt_prog_compiler_wl='-Wl,' | ||
9091 | # All Alpha code is PIC. | ||
9092 | lt_prog_compiler_static='-non_shared' | ||
9093 | ;; | ||
9094 | xl*) | ||
9095 | # IBM XL C 8.0/Fortran 10.1 on PPC | ||
9096 | lt_prog_compiler_wl='-Wl,' | ||
9097 | lt_prog_compiler_pic='-qpic' | ||
9098 | lt_prog_compiler_static='-qstaticlink' | ||
9099 | ;; | ||
9100 | *) | ||
9101 | case `$CC -V 2>&1 | sed 5q` in | ||
9102 | *Sun\ C*) | ||
9103 | # Sun C 5.9 | ||
9104 | lt_prog_compiler_pic='-KPIC' | ||
9105 | lt_prog_compiler_static='-Bstatic' | ||
9106 | lt_prog_compiler_wl='-Wl,' | ||
9107 | ;; | ||
9108 | *Sun\ F*) | ||
9109 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | ||
9110 | lt_prog_compiler_pic='-KPIC' | ||
9111 | lt_prog_compiler_static='-Bstatic' | ||
9112 | lt_prog_compiler_wl='' | ||
9113 | ;; | ||
9114 | esac | ||
9115 | ;; | ||
9116 | esac | ||
9117 | ;; | ||
9118 | |||
9119 | newsos6) | ||
9120 | lt_prog_compiler_pic='-KPIC' | ||
9121 | lt_prog_compiler_static='-Bstatic' | ||
9122 | ;; | ||
9123 | |||
9124 | *nto* | *qnx*) | ||
9125 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
9126 | # it will coredump. | ||
9127 | lt_prog_compiler_pic='-fPIC -shared' | ||
9128 | ;; | ||
9129 | |||
9130 | osf3* | osf4* | osf5*) | ||
9131 | lt_prog_compiler_wl='-Wl,' | ||
9132 | # All OSF/1 code is PIC. | ||
9133 | lt_prog_compiler_static='-non_shared' | ||
9134 | ;; | ||
9135 | |||
9136 | rdos*) | ||
9137 | lt_prog_compiler_static='-non_shared' | ||
9138 | ;; | ||
9139 | |||
9140 | solaris*) | ||
9141 | lt_prog_compiler_pic='-KPIC' | ||
9142 | lt_prog_compiler_static='-Bstatic' | ||
9143 | case $cc_basename in | ||
9144 | f77* | f90* | f95*) | ||
9145 | lt_prog_compiler_wl='-Qoption ld ';; | ||
9146 | *) | ||
9147 | lt_prog_compiler_wl='-Wl,';; | ||
9148 | esac | ||
9149 | ;; | ||
9150 | |||
9151 | sunos4*) | ||
9152 | lt_prog_compiler_wl='-Qoption ld ' | ||
9153 | lt_prog_compiler_pic='-PIC' | ||
9154 | lt_prog_compiler_static='-Bstatic' | ||
9155 | ;; | ||
9156 | |||
9157 | sysv4 | sysv4.2uw2* | sysv4.3*) | ||
9158 | lt_prog_compiler_wl='-Wl,' | ||
9159 | lt_prog_compiler_pic='-KPIC' | ||
9160 | lt_prog_compiler_static='-Bstatic' | ||
9161 | ;; | ||
9162 | |||
9163 | sysv4*MP*) | ||
9164 | if test -d /usr/nec ;then | ||
9165 | lt_prog_compiler_pic='-Kconform_pic' | ||
9166 | lt_prog_compiler_static='-Bstatic' | ||
9167 | fi | ||
9168 | ;; | ||
9169 | |||
9170 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
9171 | lt_prog_compiler_wl='-Wl,' | ||
9172 | lt_prog_compiler_pic='-KPIC' | ||
9173 | lt_prog_compiler_static='-Bstatic' | ||
9174 | ;; | ||
9175 | |||
9176 | unicos*) | ||
9177 | lt_prog_compiler_wl='-Wl,' | ||
9178 | lt_prog_compiler_can_build_shared=no | ||
9179 | ;; | ||
9180 | |||
9181 | uts4*) | ||
9182 | lt_prog_compiler_pic='-pic' | ||
9183 | lt_prog_compiler_static='-Bstatic' | ||
9184 | ;; | ||
9185 | |||
9186 | *) | ||
9187 | lt_prog_compiler_can_build_shared=no | ||
9188 | ;; | ||
9189 | esac | ||
9190 | fi | ||
9191 | |||
9192 | case $host_os in | ||
9193 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
9194 | *djgpp*) | ||
9195 | lt_prog_compiler_pic= | ||
9196 | ;; | ||
9197 | *) | ||
9198 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | ||
9199 | ;; | ||
9200 | esac | ||
9201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | ||
9202 | $as_echo "$lt_prog_compiler_pic" >&6; } | ||
9203 | |||
9204 | |||
9205 | |||
9206 | |||
9207 | |||
9208 | |||
9209 | # | ||
9210 | # Check to make sure the PIC flag actually works. | ||
9211 | # | ||
9212 | if test -n "$lt_prog_compiler_pic"; then | ||
9213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | ||
9214 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | ||
9215 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | ||
9216 | $as_echo_n "(cached) " >&6 | ||
9217 | else | ||
9218 | lt_cv_prog_compiler_pic_works=no | ||
9219 | ac_outfile=conftest.$ac_objext | ||
9220 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
9221 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | ||
9222 | # Insert the option either (1) after the last *FLAGS variable, or | ||
9223 | # (2) before a word containing "conftest.", or (3) at the end. | ||
9224 | # Note that $ac_compile itself does not contain backslashes and begins | ||
9225 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
9226 | # The option is referenced via a variable to avoid confusing sed. | ||
9227 | lt_compile=`echo "$ac_compile" | $SED \ | ||
9228 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
9229 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
9230 | -e 's:$: $lt_compiler_flag:'` | ||
9231 | (eval echo "\"\$as_me:9231: $lt_compile\"" >&5) | ||
9232 | (eval "$lt_compile" 2>conftest.err) | ||
9233 | ac_status=$? | ||
9234 | cat conftest.err >&5 | ||
9235 | echo "$as_me:9235: \$? = $ac_status" >&5 | ||
9236 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
9237 | # The compiler can only warn and ignore the option if not recognized | ||
9238 | # So say no if there are warnings other than the usual output. | ||
9239 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
9240 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
9241 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
9242 | lt_cv_prog_compiler_pic_works=yes | ||
9243 | fi | ||
9244 | fi | ||
9245 | $RM conftest* | ||
9246 | |||
9247 | fi | ||
9248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | ||
9249 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | ||
9250 | |||
9251 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | ||
9252 | case $lt_prog_compiler_pic in | ||
9253 | "" | " "*) ;; | ||
9254 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | ||
9255 | esac | ||
9256 | else | ||
9257 | lt_prog_compiler_pic= | ||
9258 | lt_prog_compiler_can_build_shared=no | ||
9259 | fi | ||
9260 | |||
9261 | fi | ||
9262 | |||
9263 | |||
9264 | |||
9265 | |||
9266 | |||
9267 | |||
9268 | # | ||
9269 | # Check to make sure the static flag actually works. | ||
9270 | # | ||
9271 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | ||
9272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | ||
9273 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | ||
9274 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | ||
9275 | $as_echo_n "(cached) " >&6 | ||
9276 | else | ||
9277 | lt_cv_prog_compiler_static_works=no | ||
9278 | save_LDFLAGS="$LDFLAGS" | ||
9279 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | ||
9280 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | ||
9281 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
9282 | # The linker can only warn and ignore the option if not recognized | ||
9283 | # So say no if there are warnings | ||
9284 | if test -s conftest.err; then | ||
9285 | # Append any errors to the config.log. | ||
9286 | cat conftest.err 1>&5 | ||
9287 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
9288 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
9289 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
9290 | lt_cv_prog_compiler_static_works=yes | ||
9291 | fi | ||
9292 | else | ||
9293 | lt_cv_prog_compiler_static_works=yes | ||
9294 | fi | ||
9295 | fi | ||
9296 | $RM -r conftest* | ||
9297 | LDFLAGS="$save_LDFLAGS" | ||
9298 | |||
9299 | fi | ||
9300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | ||
9301 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | ||
9302 | |||
9303 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | ||
9304 | : | ||
9305 | else | ||
9306 | lt_prog_compiler_static= | ||
9307 | fi | ||
9308 | |||
9309 | |||
9310 | |||
9311 | |||
9312 | |||
9313 | |||
9314 | |||
9315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
9316 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
9317 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | ||
9318 | $as_echo_n "(cached) " >&6 | ||
9319 | else | ||
9320 | lt_cv_prog_compiler_c_o=no | ||
9321 | $RM -r conftest 2>/dev/null | ||
9322 | mkdir conftest | ||
9323 | cd conftest | ||
9324 | mkdir out | ||
9325 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
9326 | |||
9327 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
9328 | # Insert the option either (1) after the last *FLAGS variable, or | ||
9329 | # (2) before a word containing "conftest.", or (3) at the end. | ||
9330 | # Note that $ac_compile itself does not contain backslashes and begins | ||
9331 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
9332 | lt_compile=`echo "$ac_compile" | $SED \ | ||
9333 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
9334 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
9335 | -e 's:$: $lt_compiler_flag:'` | ||
9336 | (eval echo "\"\$as_me:9336: $lt_compile\"" >&5) | ||
9337 | (eval "$lt_compile" 2>out/conftest.err) | ||
9338 | ac_status=$? | ||
9339 | cat out/conftest.err >&5 | ||
9340 | echo "$as_me:9340: \$? = $ac_status" >&5 | ||
9341 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
9342 | then | ||
9343 | # The compiler can only warn and ignore the option if not recognized | ||
9344 | # So say no if there are warnings | ||
9345 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
9346 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
9347 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
9348 | lt_cv_prog_compiler_c_o=yes | ||
9349 | fi | ||
9350 | fi | ||
9351 | chmod u+w . 2>&5 | ||
9352 | $RM conftest* | ||
9353 | # SGI C++ compiler will create directory out/ii_files/ for | ||
9354 | # template instantiation | ||
9355 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
9356 | $RM out/* && rmdir out | ||
9357 | cd .. | ||
9358 | $RM -r conftest | ||
9359 | $RM conftest* | ||
9360 | |||
9361 | fi | ||
9362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | ||
9363 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | ||
9364 | |||
9365 | |||
9366 | |||
9367 | |||
9368 | |||
9369 | |||
9370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
9371 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
9372 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | ||
9373 | $as_echo_n "(cached) " >&6 | ||
9374 | else | ||
9375 | lt_cv_prog_compiler_c_o=no | ||
9376 | $RM -r conftest 2>/dev/null | ||
9377 | mkdir conftest | ||
9378 | cd conftest | ||
9379 | mkdir out | ||
9380 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
9381 | |||
9382 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
9383 | # Insert the option either (1) after the last *FLAGS variable, or | ||
9384 | # (2) before a word containing "conftest.", or (3) at the end. | ||
9385 | # Note that $ac_compile itself does not contain backslashes and begins | ||
9386 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
9387 | lt_compile=`echo "$ac_compile" | $SED \ | ||
9388 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
9389 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
9390 | -e 's:$: $lt_compiler_flag:'` | ||
9391 | (eval echo "\"\$as_me:9391: $lt_compile\"" >&5) | ||
9392 | (eval "$lt_compile" 2>out/conftest.err) | ||
9393 | ac_status=$? | ||
9394 | cat out/conftest.err >&5 | ||
9395 | echo "$as_me:9395: \$? = $ac_status" >&5 | ||
9396 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
9397 | then | ||
9398 | # The compiler can only warn and ignore the option if not recognized | ||
9399 | # So say no if there are warnings | ||
9400 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
9401 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
9402 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
9403 | lt_cv_prog_compiler_c_o=yes | ||
9404 | fi | ||
9405 | fi | ||
9406 | chmod u+w . 2>&5 | ||
9407 | $RM conftest* | ||
9408 | # SGI C++ compiler will create directory out/ii_files/ for | ||
9409 | # template instantiation | ||
9410 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
9411 | $RM out/* && rmdir out | ||
9412 | cd .. | ||
9413 | $RM -r conftest | ||
9414 | $RM conftest* | ||
9415 | |||
9416 | fi | ||
9417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | ||
9418 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | ||
9419 | |||
9420 | |||
9421 | |||
9422 | |||
9423 | hard_links="nottested" | ||
9424 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | ||
9425 | # do not overwrite the value of need_locks provided by the user | ||
9426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | ||
9427 | $as_echo_n "checking if we can lock with hard links... " >&6; } | ||
9428 | hard_links=yes | ||
9429 | $RM conftest* | ||
9430 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
9431 | touch conftest.a | ||
9432 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
9433 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
9434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | ||
9435 | $as_echo "$hard_links" >&6; } | ||
9436 | if test "$hard_links" = no; then | ||
9437 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | ||
9438 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | ||
9439 | need_locks=warn | ||
9440 | fi | ||
9441 | else | ||
9442 | need_locks=no | ||
9443 | fi | ||
9444 | |||
9445 | |||
9446 | |||
9447 | |||
9448 | |||
9449 | |||
9450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
9451 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | ||
9452 | |||
9453 | runpath_var= | ||
9454 | allow_undefined_flag= | ||
9455 | always_export_symbols=no | ||
9456 | archive_cmds= | ||
9457 | archive_expsym_cmds= | ||
9458 | compiler_needs_object=no | ||
9459 | enable_shared_with_static_runtimes=no | ||
9460 | export_dynamic_flag_spec= | ||
9461 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
9462 | hardcode_automatic=no | ||
9463 | hardcode_direct=no | ||
9464 | hardcode_direct_absolute=no | ||
9465 | hardcode_libdir_flag_spec= | ||
9466 | hardcode_libdir_flag_spec_ld= | ||
9467 | hardcode_libdir_separator= | ||
9468 | hardcode_minus_L=no | ||
9469 | hardcode_shlibpath_var=unsupported | ||
9470 | inherit_rpath=no | ||
9471 | link_all_deplibs=unknown | ||
9472 | module_cmds= | ||
9473 | module_expsym_cmds= | ||
9474 | old_archive_from_new_cmds= | ||
9475 | old_archive_from_expsyms_cmds= | ||
9476 | thread_safe_flag_spec= | ||
9477 | whole_archive_flag_spec= | ||
9478 | # include_expsyms should be a list of space-separated symbols to be *always* | ||
9479 | # included in the symbol list | ||
9480 | include_expsyms= | ||
9481 | # exclude_expsyms can be an extended regexp of symbols to exclude | ||
9482 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | ||
9483 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | ||
9484 | # as well as any symbol that contains `d'. | ||
9485 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | ||
9486 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | ||
9487 | # platforms (ab)use it in PIC code, but their linkers get confused if | ||
9488 | # the symbol is explicitly referenced. Since portable code cannot | ||
9489 | # rely on this symbol name, it's probably fine to never include it in | ||
9490 | # preloaded symbol tables. | ||
9491 | # Exclude shared library initialization/finalization symbols. | ||
9492 | extract_expsyms_cmds= | ||
9493 | |||
9494 | case $host_os in | ||
9495 | cygwin* | mingw* | pw32* | cegcc*) | ||
9496 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | ||
9497 | # When not using gcc, we currently assume that we are using | ||
9498 | # Microsoft Visual C++. | ||
9499 | if test "$GCC" != yes; then | ||
9500 | with_gnu_ld=no | ||
9501 | fi | ||
9502 | ;; | ||
9503 | interix*) | ||
9504 | # we just hope/assume this is gcc and not c89 (= MSVC++) | ||
9505 | with_gnu_ld=yes | ||
9506 | ;; | ||
9507 | openbsd*) | ||
9508 | with_gnu_ld=no | ||
9509 | ;; | ||
9510 | linux* | k*bsd*-gnu) | ||
9511 | link_all_deplibs=no | ||
9512 | ;; | ||
9513 | esac | ||
9514 | |||
9515 | ld_shlibs=yes | ||
9516 | if test "$with_gnu_ld" = yes; then | ||
9517 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
9518 | wlarc='${wl}' | ||
9519 | |||
9520 | # Set some defaults for GNU ld with shared library support. These | ||
9521 | # are reset later if shared libraries are not supported. Putting them | ||
9522 | # here allows them to be overridden if necessary. | ||
9523 | runpath_var=LD_RUN_PATH | ||
9524 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
9525 | export_dynamic_flag_spec='${wl}--export-dynamic' | ||
9526 | # ancient GNU ld didn't support --whole-archive et. al. | ||
9527 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | ||
9528 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
9529 | else | ||
9530 | whole_archive_flag_spec= | ||
9531 | fi | ||
9532 | supports_anon_versioning=no | ||
9533 | case `$LD -v 2>&1` in | ||
9534 | *GNU\ gold*) supports_anon_versioning=yes ;; | ||
9535 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
9536 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
9537 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
9538 | *\ 2.11.*) ;; # other 2.11 versions | ||
9539 | *) supports_anon_versioning=yes ;; | ||
9540 | esac | ||
9541 | |||
9542 | # See if GNU ld supports shared libraries. | ||
9543 | case $host_os in | ||
9544 | aix[3-9]*) | ||
9545 | # On AIX/PPC, the GNU linker is very broken | ||
9546 | if test "$host_cpu" != ia64; then | ||
9547 | ld_shlibs=no | ||
9548 | cat <<_LT_EOF 1>&2 | ||
9549 | |||
9550 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | ||
9551 | *** to be unable to reliably create shared libraries on AIX. | ||
9552 | *** Therefore, libtool is disabling shared libraries support. If you | ||
9553 | *** really care for shared libraries, you may want to modify your PATH | ||
9554 | *** so that a non-GNU linker is found, and then restart. | ||
9555 | |||
9556 | _LT_EOF | ||
9557 | fi | ||
9558 | ;; | ||
9559 | |||
9560 | amigaos*) | ||
9561 | case $host_cpu in | ||
9562 | powerpc) | ||
9563 | # see comment about AmigaOS4 .so support | ||
9564 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9565 | archive_expsym_cmds='' | ||
9566 | ;; | ||
9567 | m68k) | ||
9568 | 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)' | ||
9569 | hardcode_libdir_flag_spec='-L$libdir' | ||
9570 | hardcode_minus_L=yes | ||
9571 | ;; | ||
9572 | esac | ||
9573 | ;; | ||
9574 | |||
9575 | beos*) | ||
9576 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
9577 | allow_undefined_flag=unsupported | ||
9578 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
9579 | # support --undefined. This deserves some investigation. FIXME | ||
9580 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9581 | else | ||
9582 | ld_shlibs=no | ||
9583 | fi | ||
9584 | ;; | ||
9585 | |||
9586 | cygwin* | mingw* | pw32* | cegcc*) | ||
9587 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | ||
9588 | # as there is no search path for DLLs. | ||
9589 | hardcode_libdir_flag_spec='-L$libdir' | ||
9590 | allow_undefined_flag=unsupported | ||
9591 | always_export_symbols=no | ||
9592 | enable_shared_with_static_runtimes=yes | ||
9593 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | ||
9594 | |||
9595 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
9596 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
9597 | # If the export-symbols file already is a .def file (1st line | ||
9598 | # is EXPORTS), use it as is; otherwise, prepend... | ||
9599 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
9600 | cp $export_symbols $output_objdir/$soname.def; | ||
9601 | else | ||
9602 | echo EXPORTS > $output_objdir/$soname.def; | ||
9603 | cat $export_symbols >> $output_objdir/$soname.def; | ||
9604 | fi~ | ||
9605 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
9606 | else | ||
9607 | ld_shlibs=no | ||
9608 | fi | ||
9609 | ;; | ||
9610 | |||
9611 | interix[3-9]*) | ||
9612 | hardcode_direct=no | ||
9613 | hardcode_shlibpath_var=no | ||
9614 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
9615 | export_dynamic_flag_spec='${wl}-E' | ||
9616 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
9617 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
9618 | # default) and relocated if they conflict, which is a slow very memory | ||
9619 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
9620 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
9621 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
9622 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
9623 | 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' | ||
9624 | ;; | ||
9625 | |||
9626 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | ||
9627 | tmp_diet=no | ||
9628 | if test "$host_os" = linux-dietlibc; then | ||
9629 | case $cc_basename in | ||
9630 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | ||
9631 | esac | ||
9632 | fi | ||
9633 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | ||
9634 | && test "$tmp_diet" = no | ||
9635 | then | ||
9636 | tmp_addflag= | ||
9637 | tmp_sharedflag='-shared' | ||
9638 | case $cc_basename,$host_cpu in | ||
9639 | pgcc*) # Portland Group C compiler | ||
9640 | 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' | ||
9641 | tmp_addflag=' $pic_flag' | ||
9642 | ;; | ||
9643 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | ||
9644 | 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' | ||
9645 | tmp_addflag=' $pic_flag -Mnomain' ;; | ||
9646 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | ||
9647 | tmp_addflag=' -i_dynamic' ;; | ||
9648 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | ||
9649 | tmp_addflag=' -i_dynamic -nofor_main' ;; | ||
9650 | ifc* | ifort*) # Intel Fortran compiler | ||
9651 | tmp_addflag=' -nofor_main' ;; | ||
9652 | lf95*) # Lahey Fortran 8.1 | ||
9653 | whole_archive_flag_spec= | ||
9654 | tmp_sharedflag='--shared' ;; | ||
9655 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | ||
9656 | tmp_sharedflag='-qmkshrobj' | ||
9657 | tmp_addflag= ;; | ||
9658 | esac | ||
9659 | case `$CC -V 2>&1 | sed 5q` in | ||
9660 | *Sun\ C*) # Sun C 5.9 | ||
9661 | 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' | ||
9662 | compiler_needs_object=yes | ||
9663 | tmp_sharedflag='-G' ;; | ||
9664 | *Sun\ F*) # Sun Fortran 8.3 | ||
9665 | tmp_sharedflag='-G' ;; | ||
9666 | esac | ||
9667 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9668 | |||
9669 | if test "x$supports_anon_versioning" = xyes; then | ||
9670 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
9671 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
9672 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
9673 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
9674 | fi | ||
9675 | |||
9676 | case $cc_basename in | ||
9677 | xlf*) | ||
9678 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | ||
9679 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | ||
9680 | hardcode_libdir_flag_spec= | ||
9681 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | ||
9682 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | ||
9683 | if test "x$supports_anon_versioning" = xyes; then | ||
9684 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | ||
9685 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
9686 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
9687 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | ||
9688 | fi | ||
9689 | ;; | ||
9690 | esac | ||
9691 | else | ||
9692 | ld_shlibs=no | ||
9693 | fi | ||
9694 | ;; | ||
9695 | |||
9696 | netbsd* | netbsdelf*-gnu) | ||
9697 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
9698 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
9699 | wlarc= | ||
9700 | else | ||
9701 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9702 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
9703 | fi | ||
9704 | ;; | ||
9705 | |||
9706 | solaris*) | ||
9707 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | ||
9708 | ld_shlibs=no | ||
9709 | cat <<_LT_EOF 1>&2 | ||
9710 | |||
9711 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | ||
9712 | *** create shared libraries on Solaris systems. Therefore, libtool | ||
9713 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
9714 | *** binutils to release 2.9.1 or newer. Another option is to modify | ||
9715 | *** your PATH or compiler configuration so that the native linker is | ||
9716 | *** used, and then restart. | ||
9717 | |||
9718 | _LT_EOF | ||
9719 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
9720 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9721 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
9722 | else | ||
9723 | ld_shlibs=no | ||
9724 | fi | ||
9725 | ;; | ||
9726 | |||
9727 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | ||
9728 | case `$LD -v 2>&1` in | ||
9729 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | ||
9730 | ld_shlibs=no | ||
9731 | cat <<_LT_EOF 1>&2 | ||
9732 | |||
9733 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | ||
9734 | *** reliably create shared libraries on SCO systems. Therefore, libtool | ||
9735 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
9736 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | ||
9737 | *** your PATH or compiler configuration so that the native linker is | ||
9738 | *** used, and then restart. | ||
9739 | |||
9740 | _LT_EOF | ||
9741 | ;; | ||
9742 | *) | ||
9743 | # For security reasons, it is highly recommended that you always | ||
9744 | # use absolute paths for naming shared libraries, and exclude the | ||
9745 | # DT_RUNPATH tag from executables and libraries. But doing so | ||
9746 | # requires that you compile everything twice, which is a pain. | ||
9747 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
9748 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
9749 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9750 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
9751 | else | ||
9752 | ld_shlibs=no | ||
9753 | fi | ||
9754 | ;; | ||
9755 | esac | ||
9756 | ;; | ||
9757 | |||
9758 | sunos4*) | ||
9759 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
9760 | wlarc= | ||
9761 | hardcode_direct=yes | ||
9762 | hardcode_shlibpath_var=no | ||
9763 | ;; | ||
9764 | |||
9765 | *) | ||
9766 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
9767 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9768 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
9769 | else | ||
9770 | ld_shlibs=no | ||
9771 | fi | ||
9772 | ;; | ||
9773 | esac | ||
9774 | |||
9775 | if test "$ld_shlibs" = no; then | ||
9776 | runpath_var= | ||
9777 | hardcode_libdir_flag_spec= | ||
9778 | export_dynamic_flag_spec= | ||
9779 | whole_archive_flag_spec= | ||
9780 | fi | ||
9781 | else | ||
9782 | # PORTME fill in a description of your system's linker (not GNU ld) | ||
9783 | case $host_os in | ||
9784 | aix3*) | ||
9785 | allow_undefined_flag=unsupported | ||
9786 | always_export_symbols=yes | ||
9787 | 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' | ||
9788 | # Note: this linker hardcodes the directories in LIBPATH if there | ||
9789 | # are no directories specified by -L. | ||
9790 | hardcode_minus_L=yes | ||
9791 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | ||
9792 | # Neither direct hardcoding nor static linking is supported with a | ||
9793 | # broken collect2. | ||
9794 | hardcode_direct=unsupported | ||
9795 | fi | ||
9796 | ;; | ||
9797 | |||
9798 | aix[4-9]*) | ||
9799 | if test "$host_cpu" = ia64; then | ||
9800 | # On IA64, the linker does run time linking by default, so we don't | ||
9801 | # have to do anything special. | ||
9802 | aix_use_runtimelinking=no | ||
9803 | exp_sym_flag='-Bexport' | ||
9804 | no_entry_flag="" | ||
9805 | else | ||
9806 | # If we're using GNU nm, then we don't want the "-C" option. | ||
9807 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
9808 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | ||
9809 | 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' | ||
9810 | else | ||
9811 | 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' | ||
9812 | fi | ||
9813 | aix_use_runtimelinking=no | ||
9814 | |||
9815 | # Test if we are trying to use run time linking or normal | ||
9816 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
9817 | # need to do runtime linking. | ||
9818 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | ||
9819 | for ld_flag in $LDFLAGS; do | ||
9820 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | ||
9821 | aix_use_runtimelinking=yes | ||
9822 | break | ||
9823 | fi | ||
9824 | done | ||
9825 | ;; | ||
9826 | esac | ||
9827 | |||
9828 | exp_sym_flag='-bexport' | ||
9829 | no_entry_flag='-bnoentry' | ||
9830 | fi | ||
9831 | |||
9832 | # When large executables or shared objects are built, AIX ld can | ||
9833 | # have problems creating the table of contents. If linking a library | ||
9834 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
9835 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
9836 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
9837 | |||
9838 | archive_cmds='' | ||
9839 | hardcode_direct=yes | ||
9840 | hardcode_direct_absolute=yes | ||
9841 | hardcode_libdir_separator=':' | ||
9842 | link_all_deplibs=yes | ||
9843 | file_list_spec='${wl}-f,' | ||
9844 | |||
9845 | if test "$GCC" = yes; then | ||
9846 | case $host_os in aix4.[012]|aix4.[012].*) | ||
9847 | # We only want to do this on AIX 4.2 and lower, the check | ||
9848 | # below for broken collect2 doesn't work under 4.3+ | ||
9849 | collect2name=`${CC} -print-prog-name=collect2` | ||
9850 | if test -f "$collect2name" && | ||
9851 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | ||
9852 | then | ||
9853 | # We have reworked collect2 | ||
9854 | : | ||
9855 | else | ||
9856 | # We have old collect2 | ||
9857 | hardcode_direct=unsupported | ||
9858 | # It fails to find uninstalled libraries when the uninstalled | ||
9859 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
9860 | # to unsupported forces relinking | ||
9861 | hardcode_minus_L=yes | ||
9862 | hardcode_libdir_flag_spec='-L$libdir' | ||
9863 | hardcode_libdir_separator= | ||
9864 | fi | ||
9865 | ;; | ||
9866 | esac | ||
9867 | shared_flag='-shared' | ||
9868 | if test "$aix_use_runtimelinking" = yes; then | ||
9869 | shared_flag="$shared_flag "'${wl}-G' | ||
9870 | fi | ||
9871 | link_all_deplibs=no | ||
9872 | else | ||
9873 | # not using gcc | ||
9874 | if test "$host_cpu" = ia64; then | ||
9875 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
9876 | # chokes on -Wl,-G. The following line is correct: | ||
9877 | shared_flag='-G' | ||
9878 | else | ||
9879 | if test "$aix_use_runtimelinking" = yes; then | ||
9880 | shared_flag='${wl}-G' | ||
9881 | else | ||
9882 | shared_flag='${wl}-bM:SRE' | ||
9883 | fi | ||
9884 | fi | ||
9885 | fi | ||
9886 | |||
9887 | export_dynamic_flag_spec='${wl}-bexpall' | ||
9888 | # It seems that -bexpall does not export symbols beginning with | ||
9889 | # underscore (_), so it is better to generate a list of symbols to export. | ||
9890 | always_export_symbols=yes | ||
9891 | if test "$aix_use_runtimelinking" = yes; then | ||
9892 | # Warning - without using the other runtime loading flags (-brtl), | ||
9893 | # -berok will link without error, but may produce a broken library. | ||
9894 | allow_undefined_flag='-berok' | ||
9895 | # Determine the default libpath from the value encoded in an | ||
9896 | # empty executable. | ||
9897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9898 | /* end confdefs.h. */ | ||
9899 | |||
9900 | int | ||
9901 | main () | ||
9902 | { | ||
9903 | |||
9904 | ; | ||
9905 | return 0; | ||
9906 | } | ||
9907 | _ACEOF | ||
9908 | if ac_fn_c_try_link "$LINENO"; then : | ||
9909 | |||
9910 | lt_aix_libpath_sed=' | ||
9911 | /Import File Strings/,/^$/ { | ||
9912 | /^0/ { | ||
9913 | s/^0 *\(.*\)$/\1/ | ||
9914 | p | ||
9915 | } | ||
9916 | }' | ||
9917 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
9918 | # Check for a 64-bit object if we didn't find anything. | ||
9919 | if test -z "$aix_libpath"; then | ||
9920 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
9921 | fi | ||
9922 | fi | ||
9923 | rm -f core conftest.err conftest.$ac_objext \ | ||
9924 | conftest$ac_exeext conftest.$ac_ext | ||
9925 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
9926 | |||
9927 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
9928 | 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" | ||
9929 | else | ||
9930 | if test "$host_cpu" = ia64; then | ||
9931 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | ||
9932 | allow_undefined_flag="-z nodefs" | ||
9933 | 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" | ||
9934 | else | ||
9935 | # Determine the default libpath from the value encoded in an | ||
9936 | # empty executable. | ||
9937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9938 | /* end confdefs.h. */ | ||
9939 | |||
9940 | int | ||
9941 | main () | ||
9942 | { | ||
9943 | |||
9944 | ; | ||
9945 | return 0; | ||
9946 | } | ||
9947 | _ACEOF | ||
9948 | if ac_fn_c_try_link "$LINENO"; then : | ||
9949 | |||
9950 | lt_aix_libpath_sed=' | ||
9951 | /Import File Strings/,/^$/ { | ||
9952 | /^0/ { | ||
9953 | s/^0 *\(.*\)$/\1/ | ||
9954 | p | ||
9955 | } | ||
9956 | }' | ||
9957 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
9958 | # Check for a 64-bit object if we didn't find anything. | ||
9959 | if test -z "$aix_libpath"; then | ||
9960 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
9961 | fi | ||
9962 | fi | ||
9963 | rm -f core conftest.err conftest.$ac_objext \ | ||
9964 | conftest$ac_exeext conftest.$ac_ext | ||
9965 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
9966 | |||
9967 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
9968 | # Warning - without using the other run time loading flags, | ||
9969 | # -berok will link without error, but may produce a broken library. | ||
9970 | no_undefined_flag=' ${wl}-bernotok' | ||
9971 | allow_undefined_flag=' ${wl}-berok' | ||
9972 | # Exported symbols can be pulled into shared objects from archives | ||
9973 | whole_archive_flag_spec='$convenience' | ||
9974 | archive_cmds_need_lc=yes | ||
9975 | # This is similar to how AIX traditionally builds its shared libraries. | ||
9976 | 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' | ||
9977 | fi | ||
9978 | fi | ||
9979 | ;; | ||
9980 | |||
9981 | amigaos*) | ||
9982 | case $host_cpu in | ||
9983 | powerpc) | ||
9984 | # see comment about AmigaOS4 .so support | ||
9985 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
9986 | archive_expsym_cmds='' | ||
9987 | ;; | ||
9988 | m68k) | ||
9989 | 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)' | ||
9990 | hardcode_libdir_flag_spec='-L$libdir' | ||
9991 | hardcode_minus_L=yes | ||
9992 | ;; | ||
9993 | esac | ||
9994 | ;; | ||
9995 | |||
9996 | bsdi[45]*) | ||
9997 | export_dynamic_flag_spec=-rdynamic | ||
9998 | ;; | ||
9999 | |||
10000 | cygwin* | mingw* | pw32* | cegcc*) | ||
10001 | # When not using gcc, we currently assume that we are using | ||
10002 | # Microsoft Visual C++. | ||
10003 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
10004 | # no search path for DLLs. | ||
10005 | hardcode_libdir_flag_spec=' ' | ||
10006 | allow_undefined_flag=unsupported | ||
10007 | # Tell ltmain to make .lib files, not .a files. | ||
10008 | libext=lib | ||
10009 | # Tell ltmain to make .dll files, not .so files. | ||
10010 | shrext_cmds=".dll" | ||
10011 | # FIXME: Setting linknames here is a bad hack. | ||
10012 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
10013 | # The linker will automatically build a .lib file if we build a DLL. | ||
10014 | old_archive_from_new_cmds='true' | ||
10015 | # FIXME: Should let the user specify the lib program. | ||
10016 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | ||
10017 | fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
10018 | enable_shared_with_static_runtimes=yes | ||
10019 | ;; | ||
10020 | |||
10021 | darwin* | rhapsody*) | ||
10022 | |||
10023 | |||
10024 | archive_cmds_need_lc=no | ||
10025 | hardcode_direct=no | ||
10026 | hardcode_automatic=yes | ||
10027 | hardcode_shlibpath_var=unsupported | ||
10028 | whole_archive_flag_spec='' | ||
10029 | link_all_deplibs=yes | ||
10030 | allow_undefined_flag="$_lt_dar_allow_undefined" | ||
10031 | case $cc_basename in | ||
10032 | ifort*) _lt_dar_can_shared=yes ;; | ||
10033 | *) _lt_dar_can_shared=$GCC ;; | ||
10034 | esac | ||
10035 | if test "$_lt_dar_can_shared" = "yes"; then | ||
10036 | output_verbose_link_cmd=echo | ||
10037 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | ||
10038 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | ||
10039 | 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}" | ||
10040 | 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}" | ||
10041 | |||
10042 | else | ||
10043 | ld_shlibs=no | ||
10044 | fi | ||
10045 | |||
10046 | ;; | ||
10047 | |||
10048 | dgux*) | ||
10049 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
10050 | hardcode_libdir_flag_spec='-L$libdir' | ||
10051 | hardcode_shlibpath_var=no | ||
10052 | ;; | ||
10053 | |||
10054 | freebsd1*) | ||
10055 | ld_shlibs=no | ||
10056 | ;; | ||
10057 | |||
10058 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | ||
10059 | # support. Future versions do this automatically, but an explicit c++rt0.o | ||
10060 | # does not break anything, and helps significantly (at the cost of a little | ||
10061 | # extra space). | ||
10062 | freebsd2.2*) | ||
10063 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | ||
10064 | hardcode_libdir_flag_spec='-R$libdir' | ||
10065 | hardcode_direct=yes | ||
10066 | hardcode_shlibpath_var=no | ||
10067 | ;; | ||
10068 | |||
10069 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | ||
10070 | freebsd2*) | ||
10071 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
10072 | hardcode_direct=yes | ||
10073 | hardcode_minus_L=yes | ||
10074 | hardcode_shlibpath_var=no | ||
10075 | ;; | ||
10076 | |||
10077 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
10078 | freebsd* | dragonfly*) | ||
10079 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
10080 | hardcode_libdir_flag_spec='-R$libdir' | ||
10081 | hardcode_direct=yes | ||
10082 | hardcode_shlibpath_var=no | ||
10083 | ;; | ||
10084 | |||
10085 | hpux9*) | ||
10086 | if test "$GCC" = yes; then | ||
10087 | 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' | ||
10088 | else | ||
10089 | 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' | ||
10090 | fi | ||
10091 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
10092 | hardcode_libdir_separator=: | ||
10093 | hardcode_direct=yes | ||
10094 | |||
10095 | # hardcode_minus_L: Not really in the search PATH, | ||
10096 | # but as the default location of the library. | ||
10097 | hardcode_minus_L=yes | ||
10098 | export_dynamic_flag_spec='${wl}-E' | ||
10099 | ;; | ||
10100 | |||
10101 | hpux10*) | ||
10102 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
10103 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
10104 | else | ||
10105 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
10106 | fi | ||
10107 | if test "$with_gnu_ld" = no; then | ||
10108 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
10109 | hardcode_libdir_flag_spec_ld='+b $libdir' | ||
10110 | hardcode_libdir_separator=: | ||
10111 | hardcode_direct=yes | ||
10112 | hardcode_direct_absolute=yes | ||
10113 | export_dynamic_flag_spec='${wl}-E' | ||
10114 | # hardcode_minus_L: Not really in the search PATH, | ||
10115 | # but as the default location of the library. | ||
10116 | hardcode_minus_L=yes | ||
10117 | fi | ||
10118 | ;; | ||
10119 | |||
10120 | hpux11*) | ||
10121 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
10122 | case $host_cpu in | ||
10123 | hppa*64*) | ||
10124 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10125 | ;; | ||
10126 | ia64*) | ||
10127 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
10128 | ;; | ||
10129 | *) | ||
10130 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
10131 | ;; | ||
10132 | esac | ||
10133 | else | ||
10134 | case $host_cpu in | ||
10135 | hppa*64*) | ||
10136 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10137 | ;; | ||
10138 | ia64*) | ||
10139 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
10140 | ;; | ||
10141 | *) | ||
10142 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
10143 | ;; | ||
10144 | esac | ||
10145 | fi | ||
10146 | if test "$with_gnu_ld" = no; then | ||
10147 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
10148 | hardcode_libdir_separator=: | ||
10149 | |||
10150 | case $host_cpu in | ||
10151 | hppa*64*|ia64*) | ||
10152 | hardcode_direct=no | ||
10153 | hardcode_shlibpath_var=no | ||
10154 | ;; | ||
10155 | *) | ||
10156 | hardcode_direct=yes | ||
10157 | hardcode_direct_absolute=yes | ||
10158 | export_dynamic_flag_spec='${wl}-E' | ||
10159 | |||
10160 | # hardcode_minus_L: Not really in the search PATH, | ||
10161 | # but as the default location of the library. | ||
10162 | hardcode_minus_L=yes | ||
10163 | ;; | ||
10164 | esac | ||
10165 | fi | ||
10166 | ;; | ||
10167 | |||
10168 | irix5* | irix6* | nonstopux*) | ||
10169 | if test "$GCC" = yes; then | ||
10170 | 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' | ||
10171 | # Try to use the -exported_symbol ld option, if it does not | ||
10172 | # work, assume that -exports_file does not work either and | ||
10173 | # implicitly export all symbols. | ||
10174 | save_LDFLAGS="$LDFLAGS" | ||
10175 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | ||
10176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10177 | /* end confdefs.h. */ | ||
10178 | int foo(void) {} | ||
10179 | _ACEOF | ||
10180 | if ac_fn_c_try_link "$LINENO"; then : | ||
10181 | 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' | ||
10182 | |||
10183 | fi | ||
10184 | rm -f core conftest.err conftest.$ac_objext \ | ||
10185 | conftest$ac_exeext conftest.$ac_ext | ||
10186 | LDFLAGS="$save_LDFLAGS" | ||
10187 | else | ||
10188 | 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' | ||
10189 | 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' | ||
10190 | fi | ||
10191 | archive_cmds_need_lc='no' | ||
10192 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
10193 | hardcode_libdir_separator=: | ||
10194 | inherit_rpath=yes | ||
10195 | link_all_deplibs=yes | ||
10196 | ;; | ||
10197 | |||
10198 | netbsd* | netbsdelf*-gnu) | ||
10199 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
10200 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | ||
10201 | else | ||
10202 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | ||
10203 | fi | ||
10204 | hardcode_libdir_flag_spec='-R$libdir' | ||
10205 | hardcode_direct=yes | ||
10206 | hardcode_shlibpath_var=no | ||
10207 | ;; | ||
10208 | |||
10209 | newsos6) | ||
10210 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
10211 | hardcode_direct=yes | ||
10212 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
10213 | hardcode_libdir_separator=: | ||
10214 | hardcode_shlibpath_var=no | ||
10215 | ;; | ||
10216 | |||
10217 | *nto* | *qnx*) | ||
10218 | ;; | ||
10219 | |||
10220 | openbsd*) | ||
10221 | if test -f /usr/libexec/ld.so; then | ||
10222 | hardcode_direct=yes | ||
10223 | hardcode_shlibpath_var=no | ||
10224 | hardcode_direct_absolute=yes | ||
10225 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
10226 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
10227 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | ||
10228 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
10229 | export_dynamic_flag_spec='${wl}-E' | ||
10230 | else | ||
10231 | case $host_os in | ||
10232 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | ||
10233 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
10234 | hardcode_libdir_flag_spec='-R$libdir' | ||
10235 | ;; | ||
10236 | *) | ||
10237 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
10238 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
10239 | ;; | ||
10240 | esac | ||
10241 | fi | ||
10242 | else | ||
10243 | ld_shlibs=no | ||
10244 | fi | ||
10245 | ;; | ||
10246 | |||
10247 | os2*) | ||
10248 | hardcode_libdir_flag_spec='-L$libdir' | ||
10249 | hardcode_minus_L=yes | ||
10250 | allow_undefined_flag=unsupported | ||
10251 | 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' | ||
10252 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | ||
10253 | ;; | ||
10254 | |||
10255 | osf3*) | ||
10256 | if test "$GCC" = yes; then | ||
10257 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
10258 | 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' | ||
10259 | else | ||
10260 | allow_undefined_flag=' -expect_unresolved \*' | ||
10261 | 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' | ||
10262 | fi | ||
10263 | archive_cmds_need_lc='no' | ||
10264 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
10265 | hardcode_libdir_separator=: | ||
10266 | ;; | ||
10267 | |||
10268 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
10269 | if test "$GCC" = yes; then | ||
10270 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
10271 | 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' | ||
10272 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
10273 | else | ||
10274 | allow_undefined_flag=' -expect_unresolved \*' | ||
10275 | 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' | ||
10276 | 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~ | ||
10277 | $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' | ||
10278 | |||
10279 | # Both c and cxx compiler support -rpath directly | ||
10280 | hardcode_libdir_flag_spec='-rpath $libdir' | ||
10281 | fi | ||
10282 | archive_cmds_need_lc='no' | ||
10283 | hardcode_libdir_separator=: | ||
10284 | ;; | ||
10285 | |||
10286 | solaris*) | ||
10287 | no_undefined_flag=' -z defs' | ||
10288 | if test "$GCC" = yes; then | ||
10289 | wlarc='${wl}' | ||
10290 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10291 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
10292 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
10293 | else | ||
10294 | case `$CC -V 2>&1` in | ||
10295 | *"Compilers 5.0"*) | ||
10296 | wlarc='' | ||
10297 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
10298 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
10299 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | ||
10300 | ;; | ||
10301 | *) | ||
10302 | wlarc='${wl}' | ||
10303 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10304 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
10305 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | ||
10306 | ;; | ||
10307 | esac | ||
10308 | fi | ||
10309 | hardcode_libdir_flag_spec='-R$libdir' | ||
10310 | hardcode_shlibpath_var=no | ||
10311 | case $host_os in | ||
10312 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
10313 | *) | ||
10314 | # The compiler driver will combine and reorder linker options, | ||
10315 | # but understands `-z linker_flag'. GCC discards it without `$wl', | ||
10316 | # but is careful enough not to reorder. | ||
10317 | # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
10318 | if test "$GCC" = yes; then | ||
10319 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | ||
10320 | else | ||
10321 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | ||
10322 | fi | ||
10323 | ;; | ||
10324 | esac | ||
10325 | link_all_deplibs=yes | ||
10326 | ;; | ||
10327 | |||
10328 | sunos4*) | ||
10329 | if test "x$host_vendor" = xsequent; then | ||
10330 | # Use $CC to link under sequent, because it throws in some extra .o | ||
10331 | # files that make .init and .fini sections work. | ||
10332 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10333 | else | ||
10334 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | ||
10335 | fi | ||
10336 | hardcode_libdir_flag_spec='-L$libdir' | ||
10337 | hardcode_direct=yes | ||
10338 | hardcode_minus_L=yes | ||
10339 | hardcode_shlibpath_var=no | ||
10340 | ;; | ||
10341 | |||
10342 | sysv4) | ||
10343 | case $host_vendor in | ||
10344 | sni) | ||
10345 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
10346 | hardcode_direct=yes # is this really true??? | ||
10347 | ;; | ||
10348 | siemens) | ||
10349 | ## LD is ld it makes a PLAMLIB | ||
10350 | ## CC just makes a GrossModule. | ||
10351 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | ||
10352 | reload_cmds='$CC -r -o $output$reload_objs' | ||
10353 | hardcode_direct=no | ||
10354 | ;; | ||
10355 | motorola) | ||
10356 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
10357 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | ||
10358 | ;; | ||
10359 | esac | ||
10360 | runpath_var='LD_RUN_PATH' | ||
10361 | hardcode_shlibpath_var=no | ||
10362 | ;; | ||
10363 | |||
10364 | sysv4.3*) | ||
10365 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
10366 | hardcode_shlibpath_var=no | ||
10367 | export_dynamic_flag_spec='-Bexport' | ||
10368 | ;; | ||
10369 | |||
10370 | sysv4*MP*) | ||
10371 | if test -d /usr/nec; then | ||
10372 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
10373 | hardcode_shlibpath_var=no | ||
10374 | runpath_var=LD_RUN_PATH | ||
10375 | hardcode_runpath_var=yes | ||
10376 | ld_shlibs=yes | ||
10377 | fi | ||
10378 | ;; | ||
10379 | |||
10380 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | ||
10381 | no_undefined_flag='${wl}-z,text' | ||
10382 | archive_cmds_need_lc=no | ||
10383 | hardcode_shlibpath_var=no | ||
10384 | runpath_var='LD_RUN_PATH' | ||
10385 | |||
10386 | if test "$GCC" = yes; then | ||
10387 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10388 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10389 | else | ||
10390 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10391 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10392 | fi | ||
10393 | ;; | ||
10394 | |||
10395 | sysv5* | sco3.2v5* | sco5v6*) | ||
10396 | # Note: We can NOT use -z defs as we might desire, because we do not | ||
10397 | # link with -lc, and that would cause any symbols used from libc to | ||
10398 | # always be unresolved, which means just about no library would | ||
10399 | # ever link correctly. If we're not using GNU ld we use -z text | ||
10400 | # though, which does catch some bad symbols but isn't as heavy-handed | ||
10401 | # as -z defs. | ||
10402 | no_undefined_flag='${wl}-z,text' | ||
10403 | allow_undefined_flag='${wl}-z,nodefs' | ||
10404 | archive_cmds_need_lc=no | ||
10405 | hardcode_shlibpath_var=no | ||
10406 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | ||
10407 | hardcode_libdir_separator=':' | ||
10408 | link_all_deplibs=yes | ||
10409 | export_dynamic_flag_spec='${wl}-Bexport' | ||
10410 | runpath_var='LD_RUN_PATH' | ||
10411 | |||
10412 | if test "$GCC" = yes; then | ||
10413 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10414 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10415 | else | ||
10416 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10417 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
10418 | fi | ||
10419 | ;; | ||
10420 | |||
10421 | uts4*) | ||
10422 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
10423 | hardcode_libdir_flag_spec='-L$libdir' | ||
10424 | hardcode_shlibpath_var=no | ||
10425 | ;; | ||
10426 | |||
10427 | *) | ||
10428 | ld_shlibs=no | ||
10429 | ;; | ||
10430 | esac | ||
10431 | |||
10432 | if test x$host_vendor = xsni; then | ||
10433 | case $host in | ||
10434 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
10435 | export_dynamic_flag_spec='${wl}-Blargedynsym' | ||
10436 | ;; | ||
10437 | esac | ||
10438 | fi | ||
10439 | fi | ||
10440 | |||
10441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | ||
10442 | $as_echo "$ld_shlibs" >&6; } | ||
10443 | test "$ld_shlibs" = no && can_build_shared=no | ||
10444 | |||
10445 | with_gnu_ld=$with_gnu_ld | ||
10446 | |||
10447 | |||
10448 | |||
10449 | |||
10450 | |||
10451 | |||
10452 | |||
10453 | |||
10454 | |||
10455 | |||
10456 | |||
10457 | |||
10458 | |||
10459 | |||
10460 | |||
10461 | # | ||
10462 | # Do we need to explicitly link libc? | ||
10463 | # | ||
10464 | case "x$archive_cmds_need_lc" in | ||
10465 | x|xyes) | ||
10466 | # Assume -lc should be added | ||
10467 | archive_cmds_need_lc=yes | ||
10468 | |||
10469 | if test "$enable_shared" = yes && test "$GCC" = yes; then | ||
10470 | case $archive_cmds in | ||
10471 | *'~'*) | ||
10472 | # FIXME: we may have to deal with multi-command sequences. | ||
10473 | ;; | ||
10474 | '$CC '*) | ||
10475 | # Test whether the compiler implicitly links with -lc since on some | ||
10476 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | ||
10477 | # to ld, don't add -lc before -lgcc. | ||
10478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | ||
10479 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | ||
10480 | $RM conftest* | ||
10481 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
10482 | |||
10483 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
10484 | (eval $ac_compile) 2>&5 | ||
10485 | ac_status=$? | ||
10486 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
10487 | test $ac_status = 0; } 2>conftest.err; then | ||
10488 | soname=conftest | ||
10489 | lib=conftest | ||
10490 | libobjs=conftest.$ac_objext | ||
10491 | deplibs= | ||
10492 | wl=$lt_prog_compiler_wl | ||
10493 | pic_flag=$lt_prog_compiler_pic | ||
10494 | compiler_flags=-v | ||
10495 | linker_flags=-v | ||
10496 | verstring= | ||
10497 | output_objdir=. | ||
10498 | libname=conftest | ||
10499 | lt_save_allow_undefined_flag=$allow_undefined_flag | ||
10500 | allow_undefined_flag= | ||
10501 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | ||
10502 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | ||
10503 | ac_status=$? | ||
10504 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
10505 | test $ac_status = 0; } | ||
10506 | then | ||
10507 | archive_cmds_need_lc=no | ||
10508 | else | ||
10509 | archive_cmds_need_lc=yes | ||
10510 | fi | ||
10511 | allow_undefined_flag=$lt_save_allow_undefined_flag | ||
10512 | else | ||
10513 | cat conftest.err 1>&5 | ||
10514 | fi | ||
10515 | $RM conftest* | ||
10516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 | ||
10517 | $as_echo "$archive_cmds_need_lc" >&6; } | ||
10518 | ;; | ||
10519 | esac | ||
10520 | fi | ||
10521 | ;; | ||
10522 | esac | ||
10523 | |||
10524 | |||
10525 | |||
10526 | |||
10527 | |||
10528 | |||
10529 | |||
10530 | |||
10531 | |||
10532 | |||
10533 | |||
10534 | |||
10535 | |||
10536 | |||
10537 | |||
10538 | |||
10539 | |||
10540 | |||
10541 | |||
10542 | |||
10543 | |||
10544 | |||
10545 | |||
10546 | |||
10547 | |||
10548 | |||
10549 | |||
10550 | |||
10551 | |||
10552 | |||
10553 | |||
10554 | |||
10555 | |||
10556 | |||
10557 | |||
10558 | |||
10559 | |||
10560 | |||
10561 | |||
10562 | |||
10563 | |||
10564 | |||
10565 | |||
10566 | |||
10567 | |||
10568 | |||
10569 | |||
10570 | |||
10571 | |||
10572 | |||
10573 | |||
10574 | |||
10575 | |||
10576 | |||
10577 | |||
10578 | |||
10579 | |||
10580 | |||
10581 | |||
10582 | |||
10583 | |||
10584 | |||
10585 | |||
10586 | |||
10587 | |||
10588 | |||
10589 | |||
10590 | |||
10591 | |||
10592 | |||
10593 | |||
10594 | |||
10595 | |||
10596 | |||
10597 | |||
10598 | |||
10599 | |||
10600 | |||
10601 | |||
10602 | |||
10603 | |||
10604 | |||
10605 | |||
10606 | |||
10607 | |||
10608 | |||
10609 | |||
10610 | |||
10611 | |||
10612 | |||
10613 | |||
10614 | |||
10615 | |||
10616 | |||
10617 | |||
10618 | |||
10619 | |||
10620 | |||
10621 | |||
10622 | |||
10623 | |||
10624 | |||
10625 | |||
10626 | |||
10627 | |||
10628 | |||
10629 | |||
10630 | |||
10631 | |||
10632 | |||
10633 | |||
10634 | |||
10635 | |||
10636 | |||
10637 | |||
10638 | |||
10639 | |||
10640 | |||
10641 | |||
10642 | |||
10643 | |||
10644 | |||
10645 | |||
10646 | |||
10647 | |||
10648 | |||
10649 | |||
10650 | |||
10651 | |||
10652 | |||
10653 | |||
10654 | |||
10655 | |||
10656 | |||
10657 | |||
10658 | |||
10659 | |||
10660 | |||
10661 | |||
10662 | |||
10663 | |||
10664 | |||
10665 | |||
10666 | |||
10667 | |||
10668 | |||
10669 | |||
10670 | |||
10671 | |||
10672 | |||
10673 | |||
10674 | |||
10675 | |||
10676 | |||
10677 | |||
10678 | |||
10679 | |||
10680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | ||
10681 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | ||
10682 | |||
10683 | if test "$GCC" = yes; then | ||
10684 | case $host_os in | ||
10685 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | ||
10686 | *) lt_awk_arg="/^libraries:/" ;; | ||
10687 | esac | ||
10688 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
10689 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | ||
10690 | # if the path contains ";" then we assume it to be the separator | ||
10691 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
10692 | # assumed that no part of a normal pathname contains ";" but that should | ||
10693 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
10694 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | ||
10695 | else | ||
10696 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
10697 | fi | ||
10698 | # Ok, now we have the path, separated by spaces, we can step through it | ||
10699 | # and add multilib dir if necessary. | ||
10700 | lt_tmp_lt_search_path_spec= | ||
10701 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | ||
10702 | for lt_sys_path in $lt_search_path_spec; do | ||
10703 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | ||
10704 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | ||
10705 | else | ||
10706 | test -d "$lt_sys_path" && \ | ||
10707 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | ||
10708 | fi | ||
10709 | done | ||
10710 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | ||
10711 | BEGIN {RS=" "; FS="/|\n";} { | ||
10712 | lt_foo=""; | ||
10713 | lt_count=0; | ||
10714 | for (lt_i = NF; lt_i > 0; lt_i--) { | ||
10715 | if ($lt_i != "" && $lt_i != ".") { | ||
10716 | if ($lt_i == "..") { | ||
10717 | lt_count++; | ||
10718 | } else { | ||
10719 | if (lt_count == 0) { | ||
10720 | lt_foo="/" $lt_i lt_foo; | ||
10721 | } else { | ||
10722 | lt_count--; | ||
10723 | } | ||
10724 | } | ||
10725 | } | ||
10726 | } | ||
10727 | if (lt_foo != "") { lt_freq[lt_foo]++; } | ||
10728 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | ||
10729 | }'` | ||
10730 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | ||
10731 | else | ||
10732 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
10733 | fi | ||
10734 | library_names_spec= | ||
10735 | libname_spec='lib$name' | ||
10736 | soname_spec= | ||
10737 | shrext_cmds=".so" | ||
10738 | postinstall_cmds= | ||
10739 | postuninstall_cmds= | ||
10740 | finish_cmds= | ||
10741 | finish_eval= | ||
10742 | shlibpath_var= | ||
10743 | shlibpath_overrides_runpath=unknown | ||
10744 | version_type=none | ||
10745 | dynamic_linker="$host_os ld.so" | ||
10746 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
10747 | need_lib_prefix=unknown | ||
10748 | hardcode_into_libs=no | ||
10749 | |||
10750 | # when you set need_version to no, make sure it does not cause -set_version | ||
10751 | # flags to be left without arguments | ||
10752 | need_version=unknown | ||
10753 | |||
10754 | case $host_os in | ||
10755 | aix3*) | ||
10756 | version_type=linux | ||
10757 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
10758 | shlibpath_var=LIBPATH | ||
10759 | |||
10760 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
10761 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10762 | ;; | ||
10763 | |||
10764 | aix[4-9]*) | ||
10765 | version_type=linux | ||
10766 | need_lib_prefix=no | ||
10767 | need_version=no | ||
10768 | hardcode_into_libs=yes | ||
10769 | if test "$host_cpu" = ia64; then | ||
10770 | # AIX 5 supports IA64 | ||
10771 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
10772 | shlibpath_var=LD_LIBRARY_PATH | ||
10773 | else | ||
10774 | # With GCC up to 2.95.x, collect2 would create an import file | ||
10775 | # for dependence libraries. The import file would start with | ||
10776 | # the line `#! .'. This would cause the generated library to | ||
10777 | # depend on `.', always an invalid library. This was fixed in | ||
10778 | # development snapshots of GCC prior to 3.0. | ||
10779 | case $host_os in | ||
10780 | aix4 | aix4.[01] | aix4.[01].*) | ||
10781 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
10782 | echo ' yes ' | ||
10783 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | ||
10784 | : | ||
10785 | else | ||
10786 | can_build_shared=no | ||
10787 | fi | ||
10788 | ;; | ||
10789 | esac | ||
10790 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
10791 | # soname into executable. Probably we can add versioning support to | ||
10792 | # collect2, so additional links can be useful in future. | ||
10793 | if test "$aix_use_runtimelinking" = yes; then | ||
10794 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
10795 | # instead of lib<name>.a to let people know that these are not | ||
10796 | # typical AIX shared libraries. | ||
10797 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10798 | else | ||
10799 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
10800 | # and later when we are not doing run time linking. | ||
10801 | library_names_spec='${libname}${release}.a $libname.a' | ||
10802 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10803 | fi | ||
10804 | shlibpath_var=LIBPATH | ||
10805 | fi | ||
10806 | ;; | ||
10807 | |||
10808 | amigaos*) | ||
10809 | case $host_cpu in | ||
10810 | powerpc) | ||
10811 | # Since July 2007 AmigaOS4 officially supports .so libraries. | ||
10812 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | ||
10813 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10814 | ;; | ||
10815 | m68k) | ||
10816 | library_names_spec='$libname.ixlibrary $libname.a' | ||
10817 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
10818 | 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' | ||
10819 | ;; | ||
10820 | esac | ||
10821 | ;; | ||
10822 | |||
10823 | beos*) | ||
10824 | library_names_spec='${libname}${shared_ext}' | ||
10825 | dynamic_linker="$host_os ld.so" | ||
10826 | shlibpath_var=LIBRARY_PATH | ||
10827 | ;; | ||
10828 | |||
10829 | bsdi[45]*) | ||
10830 | version_type=linux | ||
10831 | need_version=no | ||
10832 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
10833 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10834 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
10835 | shlibpath_var=LD_LIBRARY_PATH | ||
10836 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
10837 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
10838 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
10839 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
10840 | # libtool to hard-code these into programs | ||
10841 | ;; | ||
10842 | |||
10843 | cygwin* | mingw* | pw32* | cegcc*) | ||
10844 | version_type=windows | ||
10845 | shrext_cmds=".dll" | ||
10846 | need_version=no | ||
10847 | need_lib_prefix=no | ||
10848 | |||
10849 | case $GCC,$host_os in | ||
10850 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | ||
10851 | library_names_spec='$libname.dll.a' | ||
10852 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
10853 | postinstall_cmds='base_file=`basename \${file}`~ | ||
10854 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
10855 | dldir=$destdir/`dirname \$dlpath`~ | ||
10856 | test -d \$dldir || mkdir -p \$dldir~ | ||
10857 | $install_prog $dir/$dlname \$dldir/$dlname~ | ||
10858 | chmod a+x \$dldir/$dlname~ | ||
10859 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | ||
10860 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | ||
10861 | fi' | ||
10862 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
10863 | dlpath=$dir/\$dldll~ | ||
10864 | $RM \$dlpath' | ||
10865 | shlibpath_overrides_runpath=yes | ||
10866 | |||
10867 | case $host_os in | ||
10868 | cygwin*) | ||
10869 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
10870 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
10871 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
10872 | ;; | ||
10873 | mingw* | cegcc*) | ||
10874 | # MinGW DLLs use traditional 'lib' prefix | ||
10875 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
10876 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
10877 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
10878 | # It is most probably a Windows format PATH printed by | ||
10879 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
10880 | # path with ; separators, and with drive letters. We can handle the | ||
10881 | # drive letters (cygwin fileutils understands them), so leave them, | ||
10882 | # especially as we might pass files found there to a mingw objdump, | ||
10883 | # which wouldn't understand a cygwinified path. Ahh. | ||
10884 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
10885 | else | ||
10886 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
10887 | fi | ||
10888 | ;; | ||
10889 | pw32*) | ||
10890 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
10891 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
10892 | ;; | ||
10893 | esac | ||
10894 | ;; | ||
10895 | |||
10896 | *) | ||
10897 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
10898 | ;; | ||
10899 | esac | ||
10900 | dynamic_linker='Win32 ld.exe' | ||
10901 | # FIXME: first we should search . and the directory the executable is in | ||
10902 | shlibpath_var=PATH | ||
10903 | ;; | ||
10904 | |||
10905 | darwin* | rhapsody*) | ||
10906 | dynamic_linker="$host_os dyld" | ||
10907 | version_type=darwin | ||
10908 | need_lib_prefix=no | ||
10909 | need_version=no | ||
10910 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
10911 | soname_spec='${libname}${release}${major}$shared_ext' | ||
10912 | shlibpath_overrides_runpath=yes | ||
10913 | shlibpath_var=DYLD_LIBRARY_PATH | ||
10914 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | ||
10915 | |||
10916 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | ||
10917 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
10918 | ;; | ||
10919 | |||
10920 | dgux*) | ||
10921 | version_type=linux | ||
10922 | need_lib_prefix=no | ||
10923 | need_version=no | ||
10924 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
10925 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10926 | shlibpath_var=LD_LIBRARY_PATH | ||
10927 | ;; | ||
10928 | |||
10929 | freebsd1*) | ||
10930 | dynamic_linker=no | ||
10931 | ;; | ||
10932 | |||
10933 | freebsd* | dragonfly*) | ||
10934 | # DragonFly does not have aout. When/if they implement a new | ||
10935 | # versioning mechanism, adjust this. | ||
10936 | if test -x /usr/bin/objformat; then | ||
10937 | objformat=`/usr/bin/objformat` | ||
10938 | else | ||
10939 | case $host_os in | ||
10940 | freebsd[123]*) objformat=aout ;; | ||
10941 | *) objformat=elf ;; | ||
10942 | esac | ||
10943 | fi | ||
10944 | version_type=freebsd-$objformat | ||
10945 | case $version_type in | ||
10946 | freebsd-elf*) | ||
10947 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
10948 | need_version=no | ||
10949 | need_lib_prefix=no | ||
10950 | ;; | ||
10951 | freebsd-*) | ||
10952 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
10953 | need_version=yes | ||
10954 | ;; | ||
10955 | esac | ||
10956 | shlibpath_var=LD_LIBRARY_PATH | ||
10957 | case $host_os in | ||
10958 | freebsd2*) | ||
10959 | shlibpath_overrides_runpath=yes | ||
10960 | ;; | ||
10961 | freebsd3.[01]* | freebsdelf3.[01]*) | ||
10962 | shlibpath_overrides_runpath=yes | ||
10963 | hardcode_into_libs=yes | ||
10964 | ;; | ||
10965 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | ||
10966 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | ||
10967 | shlibpath_overrides_runpath=no | ||
10968 | hardcode_into_libs=yes | ||
10969 | ;; | ||
10970 | *) # from 4.6 on, and DragonFly | ||
10971 | shlibpath_overrides_runpath=yes | ||
10972 | hardcode_into_libs=yes | ||
10973 | ;; | ||
10974 | esac | ||
10975 | ;; | ||
10976 | |||
10977 | gnu*) | ||
10978 | version_type=linux | ||
10979 | need_lib_prefix=no | ||
10980 | need_version=no | ||
10981 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
10982 | soname_spec='${libname}${release}${shared_ext}$major' | ||
10983 | shlibpath_var=LD_LIBRARY_PATH | ||
10984 | hardcode_into_libs=yes | ||
10985 | ;; | ||
10986 | |||
10987 | hpux9* | hpux10* | hpux11*) | ||
10988 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
10989 | # link against other versions. | ||
10990 | version_type=sunos | ||
10991 | need_lib_prefix=no | ||
10992 | need_version=no | ||
10993 | case $host_cpu in | ||
10994 | ia64*) | ||
10995 | shrext_cmds='.so' | ||
10996 | hardcode_into_libs=yes | ||
10997 | dynamic_linker="$host_os dld.so" | ||
10998 | shlibpath_var=LD_LIBRARY_PATH | ||
10999 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
11000 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11001 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11002 | if test "X$HPUX_IA64_MODE" = X32; then | ||
11003 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
11004 | else | ||
11005 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
11006 | fi | ||
11007 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
11008 | ;; | ||
11009 | hppa*64*) | ||
11010 | shrext_cmds='.sl' | ||
11011 | hardcode_into_libs=yes | ||
11012 | dynamic_linker="$host_os dld.sl" | ||
11013 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
11014 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
11015 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11016 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11017 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
11018 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
11019 | ;; | ||
11020 | *) | ||
11021 | shrext_cmds='.sl' | ||
11022 | dynamic_linker="$host_os dld.sl" | ||
11023 | shlibpath_var=SHLIB_PATH | ||
11024 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
11025 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11026 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11027 | ;; | ||
11028 | esac | ||
11029 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
11030 | postinstall_cmds='chmod 555 $lib' | ||
11031 | ;; | ||
11032 | |||
11033 | interix[3-9]*) | ||
11034 | version_type=linux | ||
11035 | need_lib_prefix=no | ||
11036 | need_version=no | ||
11037 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
11038 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11039 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
11040 | shlibpath_var=LD_LIBRARY_PATH | ||
11041 | shlibpath_overrides_runpath=no | ||
11042 | hardcode_into_libs=yes | ||
11043 | ;; | ||
11044 | |||
11045 | irix5* | irix6* | nonstopux*) | ||
11046 | case $host_os in | ||
11047 | nonstopux*) version_type=nonstopux ;; | ||
11048 | *) | ||
11049 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
11050 | version_type=linux | ||
11051 | else | ||
11052 | version_type=irix | ||
11053 | fi ;; | ||
11054 | esac | ||
11055 | need_lib_prefix=no | ||
11056 | need_version=no | ||
11057 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11058 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
11059 | case $host_os in | ||
11060 | irix5* | nonstopux*) | ||
11061 | libsuff= shlibsuff= | ||
11062 | ;; | ||
11063 | *) | ||
11064 | case $LD in # libtool.m4 will add one of these switches to LD | ||
11065 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
11066 | libsuff= shlibsuff= libmagic=32-bit;; | ||
11067 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
11068 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
11069 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
11070 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
11071 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
11072 | esac | ||
11073 | ;; | ||
11074 | esac | ||
11075 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
11076 | shlibpath_overrides_runpath=no | ||
11077 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
11078 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
11079 | hardcode_into_libs=yes | ||
11080 | ;; | ||
11081 | |||
11082 | # No shared lib support for Linux oldld, aout, or coff. | ||
11083 | linux*oldld* | linux*aout* | linux*coff*) | ||
11084 | dynamic_linker=no | ||
11085 | ;; | ||
11086 | |||
11087 | # This must be Linux ELF. | ||
11088 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
11089 | version_type=linux | ||
11090 | need_lib_prefix=no | ||
11091 | need_version=no | ||
11092 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11093 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11094 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
11095 | shlibpath_var=LD_LIBRARY_PATH | ||
11096 | shlibpath_overrides_runpath=no | ||
11097 | # Some binutils ld are patched to set DT_RUNPATH | ||
11098 | save_LDFLAGS=$LDFLAGS | ||
11099 | save_libdir=$libdir | ||
11100 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | ||
11101 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | ||
11102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11103 | /* end confdefs.h. */ | ||
11104 | |||
11105 | int | ||
11106 | main () | ||
11107 | { | ||
11108 | |||
11109 | ; | ||
11110 | return 0; | ||
11111 | } | ||
11112 | _ACEOF | ||
11113 | if ac_fn_c_try_link "$LINENO"; then : | ||
11114 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | ||
11115 | shlibpath_overrides_runpath=yes | ||
11116 | fi | ||
11117 | fi | ||
11118 | rm -f core conftest.err conftest.$ac_objext \ | ||
11119 | conftest$ac_exeext conftest.$ac_ext | ||
11120 | LDFLAGS=$save_LDFLAGS | ||
11121 | libdir=$save_libdir | ||
11122 | |||
11123 | # This implies no fast_install, which is unacceptable. | ||
11124 | # Some rework will be needed to allow for fast_install | ||
11125 | # before this can be enabled. | ||
11126 | hardcode_into_libs=yes | ||
11127 | |||
11128 | # Append ld.so.conf contents to the search path | ||
11129 | if test -f /etc/ld.so.conf; then | ||
11130 | 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' ' '` | ||
11131 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
11132 | fi | ||
11133 | |||
11134 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
11135 | # powerpc, because MkLinux only supported shared libraries with the | ||
11136 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
11137 | # most powerpc-linux boxes support dynamic linking these days and | ||
11138 | # people can always --disable-shared, the test was removed, and we | ||
11139 | # assume the GNU/Linux dynamic linker is in use. | ||
11140 | dynamic_linker='GNU/Linux ld.so' | ||
11141 | ;; | ||
11142 | |||
11143 | netbsdelf*-gnu) | ||
11144 | version_type=linux | ||
11145 | need_lib_prefix=no | ||
11146 | need_version=no | ||
11147 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
11148 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11149 | shlibpath_var=LD_LIBRARY_PATH | ||
11150 | shlibpath_overrides_runpath=no | ||
11151 | hardcode_into_libs=yes | ||
11152 | dynamic_linker='NetBSD ld.elf_so' | ||
11153 | ;; | ||
11154 | |||
11155 | netbsd*) | ||
11156 | version_type=sunos | ||
11157 | need_lib_prefix=no | ||
11158 | need_version=no | ||
11159 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
11160 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
11161 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
11162 | dynamic_linker='NetBSD (a.out) ld.so' | ||
11163 | else | ||
11164 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
11165 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11166 | dynamic_linker='NetBSD ld.elf_so' | ||
11167 | fi | ||
11168 | shlibpath_var=LD_LIBRARY_PATH | ||
11169 | shlibpath_overrides_runpath=yes | ||
11170 | hardcode_into_libs=yes | ||
11171 | ;; | ||
11172 | |||
11173 | newsos6) | ||
11174 | version_type=linux | ||
11175 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11176 | shlibpath_var=LD_LIBRARY_PATH | ||
11177 | shlibpath_overrides_runpath=yes | ||
11178 | ;; | ||
11179 | |||
11180 | *nto* | *qnx*) | ||
11181 | version_type=qnx | ||
11182 | need_lib_prefix=no | ||
11183 | need_version=no | ||
11184 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11185 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11186 | shlibpath_var=LD_LIBRARY_PATH | ||
11187 | shlibpath_overrides_runpath=no | ||
11188 | hardcode_into_libs=yes | ||
11189 | dynamic_linker='ldqnx.so' | ||
11190 | ;; | ||
11191 | |||
11192 | openbsd*) | ||
11193 | version_type=sunos | ||
11194 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
11195 | need_lib_prefix=no | ||
11196 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | ||
11197 | case $host_os in | ||
11198 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | ||
11199 | *) need_version=no ;; | ||
11200 | esac | ||
11201 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
11202 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
11203 | shlibpath_var=LD_LIBRARY_PATH | ||
11204 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
11205 | case $host_os in | ||
11206 | openbsd2.[89] | openbsd2.[89].*) | ||
11207 | shlibpath_overrides_runpath=no | ||
11208 | ;; | ||
11209 | *) | ||
11210 | shlibpath_overrides_runpath=yes | ||
11211 | ;; | ||
11212 | esac | ||
11213 | else | ||
11214 | shlibpath_overrides_runpath=yes | ||
11215 | fi | ||
11216 | ;; | ||
11217 | |||
11218 | os2*) | ||
11219 | libname_spec='$name' | ||
11220 | shrext_cmds=".dll" | ||
11221 | need_lib_prefix=no | ||
11222 | library_names_spec='$libname${shared_ext} $libname.a' | ||
11223 | dynamic_linker='OS/2 ld.exe' | ||
11224 | shlibpath_var=LIBPATH | ||
11225 | ;; | ||
11226 | |||
11227 | osf3* | osf4* | osf5*) | ||
11228 | version_type=osf | ||
11229 | need_lib_prefix=no | ||
11230 | need_version=no | ||
11231 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11232 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11233 | shlibpath_var=LD_LIBRARY_PATH | ||
11234 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
11235 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
11236 | ;; | ||
11237 | |||
11238 | rdos*) | ||
11239 | dynamic_linker=no | ||
11240 | ;; | ||
11241 | |||
11242 | solaris*) | ||
11243 | version_type=linux | ||
11244 | need_lib_prefix=no | ||
11245 | need_version=no | ||
11246 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11247 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11248 | shlibpath_var=LD_LIBRARY_PATH | ||
11249 | shlibpath_overrides_runpath=yes | ||
11250 | hardcode_into_libs=yes | ||
11251 | # ldd complains unless libraries are executable | ||
11252 | postinstall_cmds='chmod +x $lib' | ||
11253 | ;; | ||
11254 | |||
11255 | sunos4*) | ||
11256 | version_type=sunos | ||
11257 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
11258 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
11259 | shlibpath_var=LD_LIBRARY_PATH | ||
11260 | shlibpath_overrides_runpath=yes | ||
11261 | if test "$with_gnu_ld" = yes; then | ||
11262 | need_lib_prefix=no | ||
11263 | fi | ||
11264 | need_version=yes | ||
11265 | ;; | ||
11266 | |||
11267 | sysv4 | sysv4.3*) | ||
11268 | version_type=linux | ||
11269 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11270 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11271 | shlibpath_var=LD_LIBRARY_PATH | ||
11272 | case $host_vendor in | ||
11273 | sni) | ||
11274 | shlibpath_overrides_runpath=no | ||
11275 | need_lib_prefix=no | ||
11276 | runpath_var=LD_RUN_PATH | ||
11277 | ;; | ||
11278 | siemens) | ||
11279 | need_lib_prefix=no | ||
11280 | ;; | ||
11281 | motorola) | ||
11282 | need_lib_prefix=no | ||
11283 | need_version=no | ||
11284 | shlibpath_overrides_runpath=no | ||
11285 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
11286 | ;; | ||
11287 | esac | ||
11288 | ;; | ||
11289 | |||
11290 | sysv4*MP*) | ||
11291 | if test -d /usr/nec ;then | ||
11292 | version_type=linux | ||
11293 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
11294 | soname_spec='$libname${shared_ext}.$major' | ||
11295 | shlibpath_var=LD_LIBRARY_PATH | ||
11296 | fi | ||
11297 | ;; | ||
11298 | |||
11299 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
11300 | version_type=freebsd-elf | ||
11301 | need_lib_prefix=no | ||
11302 | need_version=no | ||
11303 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
11304 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11305 | shlibpath_var=LD_LIBRARY_PATH | ||
11306 | shlibpath_overrides_runpath=yes | ||
11307 | hardcode_into_libs=yes | ||
11308 | if test "$with_gnu_ld" = yes; then | ||
11309 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
11310 | else | ||
11311 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
11312 | case $host_os in | ||
11313 | sco3.2v5*) | ||
11314 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
11315 | ;; | ||
11316 | esac | ||
11317 | fi | ||
11318 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
11319 | ;; | ||
11320 | |||
11321 | tpf*) | ||
11322 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | ||
11323 | version_type=linux | ||
11324 | need_lib_prefix=no | ||
11325 | need_version=no | ||
11326 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11327 | shlibpath_var=LD_LIBRARY_PATH | ||
11328 | shlibpath_overrides_runpath=no | ||
11329 | hardcode_into_libs=yes | ||
11330 | ;; | ||
11331 | |||
11332 | uts4*) | ||
11333 | version_type=linux | ||
11334 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11335 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11336 | shlibpath_var=LD_LIBRARY_PATH | ||
11337 | ;; | ||
11338 | |||
11339 | *) | ||
11340 | dynamic_linker=no | ||
11341 | ;; | ||
11342 | esac | ||
11343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | ||
11344 | $as_echo "$dynamic_linker" >&6; } | ||
11345 | test "$dynamic_linker" = no && can_build_shared=no | ||
11346 | |||
11347 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
11348 | if test "$GCC" = yes; then | ||
11349 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
11350 | fi | ||
11351 | |||
11352 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | ||
11353 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | ||
11354 | fi | ||
11355 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | ||
11356 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | ||
11357 | fi | ||
11358 | |||
11359 | |||
11360 | |||
11361 | |||
11362 | |||
11363 | |||
11364 | |||
11365 | |||
11366 | |||
11367 | |||
11368 | |||
11369 | |||
11370 | |||
11371 | |||
11372 | |||
11373 | |||
11374 | |||
11375 | |||
11376 | |||
11377 | |||
11378 | |||
11379 | |||
11380 | |||
11381 | |||
11382 | |||
11383 | |||
11384 | |||
11385 | |||
11386 | |||
11387 | |||
11388 | |||
11389 | |||
11390 | |||
11391 | |||
11392 | |||
11393 | |||
11394 | |||
11395 | |||
11396 | |||
11397 | |||
11398 | |||
11399 | |||
11400 | |||
11401 | |||
11402 | |||
11403 | |||
11404 | |||
11405 | |||
11406 | |||
11407 | |||
11408 | |||
11409 | |||
11410 | |||
11411 | |||
11412 | |||
11413 | |||
11414 | |||
11415 | |||
11416 | |||
11417 | |||
11418 | |||
11419 | |||
11420 | |||
11421 | |||
11422 | |||
11423 | |||
11424 | |||
11425 | |||
11426 | |||
11427 | |||
11428 | |||
11429 | |||
11430 | |||
11431 | |||
11432 | |||
11433 | |||
11434 | |||
11435 | |||
11436 | |||
11437 | |||
11438 | |||
11439 | |||
11440 | |||
11441 | |||
11442 | |||
11443 | |||
11444 | |||
11445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | ||
11446 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | ||
11447 | hardcode_action= | ||
11448 | if test -n "$hardcode_libdir_flag_spec" || | ||
11449 | test -n "$runpath_var" || | ||
11450 | test "X$hardcode_automatic" = "Xyes" ; then | ||
11451 | |||
11452 | # We can hardcode non-existent directories. | ||
11453 | if test "$hardcode_direct" != no && | ||
11454 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
11455 | # have to relink, otherwise we might link with an installed library | ||
11456 | # when we should be linking with a yet-to-be-installed one | ||
11457 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | ||
11458 | test "$hardcode_minus_L" != no; then | ||
11459 | # Linking always hardcodes the temporary library directory. | ||
11460 | hardcode_action=relink | ||
11461 | else | ||
11462 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
11463 | hardcode_action=immediate | ||
11464 | fi | ||
11465 | else | ||
11466 | # We cannot hardcode anything, or else we can only hardcode existing | ||
11467 | # directories. | ||
11468 | hardcode_action=unsupported | ||
11469 | fi | ||
11470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | ||
11471 | $as_echo "$hardcode_action" >&6; } | ||
11472 | |||
11473 | if test "$hardcode_action" = relink || | ||
11474 | test "$inherit_rpath" = yes; then | ||
11475 | # Fast installation is not supported | ||
11476 | enable_fast_install=no | ||
11477 | elif test "$shlibpath_overrides_runpath" = yes || | ||
11478 | test "$enable_shared" = no; then | ||
11479 | # Fast installation is not necessary | ||
11480 | enable_fast_install=needless | ||
11481 | fi | ||
11482 | |||
11483 | |||
11484 | |||
11485 | |||
11486 | |||
11487 | |||
11488 | if test "x$enable_dlopen" != xyes; then | ||
11489 | enable_dlopen=unknown | ||
11490 | enable_dlopen_self=unknown | ||
11491 | enable_dlopen_self_static=unknown | ||
11492 | else | ||
11493 | lt_cv_dlopen=no | ||
11494 | lt_cv_dlopen_libs= | ||
11495 | |||
11496 | case $host_os in | ||
11497 | beos*) | ||
11498 | lt_cv_dlopen="load_add_on" | ||
11499 | lt_cv_dlopen_libs= | ||
11500 | lt_cv_dlopen_self=yes | ||
11501 | ;; | ||
11502 | |||
11503 | mingw* | pw32* | cegcc*) | ||
11504 | lt_cv_dlopen="LoadLibrary" | ||
11505 | lt_cv_dlopen_libs= | ||
11506 | ;; | ||
11507 | |||
11508 | cygwin*) | ||
11509 | lt_cv_dlopen="dlopen" | ||
11510 | lt_cv_dlopen_libs= | ||
11511 | ;; | ||
11512 | |||
11513 | darwin*) | ||
11514 | # if libdl is installed we need to link against it | ||
11515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | ||
11516 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
11517 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | ||
11518 | $as_echo_n "(cached) " >&6 | ||
11519 | else | ||
11520 | ac_check_lib_save_LIBS=$LIBS | ||
11521 | LIBS="-ldl $LIBS" | ||
11522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11523 | /* end confdefs.h. */ | ||
11524 | |||
11525 | /* Override any GCC internal prototype to avoid an error. | ||
11526 | Use char because int might match the return type of a GCC | ||
11527 | builtin and then its argument prototype would still apply. */ | ||
11528 | #ifdef __cplusplus | ||
11529 | extern "C" | ||
11530 | #endif | ||
11531 | char dlopen (); | ||
11532 | int | ||
11533 | main () | ||
11534 | { | ||
11535 | return dlopen (); | ||
11536 | ; | ||
11537 | return 0; | ||
11538 | } | ||
11539 | _ACEOF | ||
11540 | if ac_fn_c_try_link "$LINENO"; then : | ||
11541 | ac_cv_lib_dl_dlopen=yes | ||
11542 | else | ||
11543 | ac_cv_lib_dl_dlopen=no | ||
11544 | fi | ||
11545 | rm -f core conftest.err conftest.$ac_objext \ | ||
11546 | conftest$ac_exeext conftest.$ac_ext | ||
11547 | LIBS=$ac_check_lib_save_LIBS | ||
11548 | fi | ||
11549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | ||
11550 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
11551 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | ||
11552 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
11553 | else | ||
11554 | |||
11555 | lt_cv_dlopen="dyld" | ||
11556 | lt_cv_dlopen_libs= | ||
11557 | lt_cv_dlopen_self=yes | ||
11558 | |||
11559 | fi | ||
11560 | |||
11561 | ;; | ||
11562 | |||
11563 | *) | ||
11564 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | ||
11565 | if test "x$ac_cv_func_shl_load" = x""yes; then : | ||
11566 | lt_cv_dlopen="shl_load" | ||
11567 | else | ||
11568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | ||
11569 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | ||
11570 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | ||
11571 | $as_echo_n "(cached) " >&6 | ||
11572 | else | ||
11573 | ac_check_lib_save_LIBS=$LIBS | ||
11574 | LIBS="-ldld $LIBS" | ||
11575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11576 | /* end confdefs.h. */ | ||
11577 | |||
11578 | /* Override any GCC internal prototype to avoid an error. | ||
11579 | Use char because int might match the return type of a GCC | ||
11580 | builtin and then its argument prototype would still apply. */ | ||
11581 | #ifdef __cplusplus | ||
11582 | extern "C" | ||
11583 | #endif | ||
11584 | char shl_load (); | ||
11585 | int | ||
11586 | main () | ||
11587 | { | ||
11588 | return shl_load (); | ||
11589 | ; | ||
11590 | return 0; | ||
11591 | } | ||
11592 | _ACEOF | ||
11593 | if ac_fn_c_try_link "$LINENO"; then : | ||
11594 | ac_cv_lib_dld_shl_load=yes | ||
11595 | else | ||
11596 | ac_cv_lib_dld_shl_load=no | ||
11597 | fi | ||
11598 | rm -f core conftest.err conftest.$ac_objext \ | ||
11599 | conftest$ac_exeext conftest.$ac_ext | ||
11600 | LIBS=$ac_check_lib_save_LIBS | ||
11601 | fi | ||
11602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | ||
11603 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | ||
11604 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | ||
11605 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | ||
11606 | else | ||
11607 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | ||
11608 | if test "x$ac_cv_func_dlopen" = x""yes; then : | ||
11609 | lt_cv_dlopen="dlopen" | ||
11610 | else | ||
11611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | ||
11612 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
11613 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | ||
11614 | $as_echo_n "(cached) " >&6 | ||
11615 | else | ||
11616 | ac_check_lib_save_LIBS=$LIBS | ||
11617 | LIBS="-ldl $LIBS" | ||
11618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11619 | /* end confdefs.h. */ | ||
11620 | |||
11621 | /* Override any GCC internal prototype to avoid an error. | ||
11622 | Use char because int might match the return type of a GCC | ||
11623 | builtin and then its argument prototype would still apply. */ | ||
11624 | #ifdef __cplusplus | ||
11625 | extern "C" | ||
11626 | #endif | ||
11627 | char dlopen (); | ||
11628 | int | ||
11629 | main () | ||
11630 | { | ||
11631 | return dlopen (); | ||
11632 | ; | ||
11633 | return 0; | ||
11634 | } | ||
11635 | _ACEOF | ||
11636 | if ac_fn_c_try_link "$LINENO"; then : | ||
11637 | ac_cv_lib_dl_dlopen=yes | ||
11638 | else | ||
11639 | ac_cv_lib_dl_dlopen=no | ||
11640 | fi | ||
11641 | rm -f core conftest.err conftest.$ac_objext \ | ||
11642 | conftest$ac_exeext conftest.$ac_ext | ||
11643 | LIBS=$ac_check_lib_save_LIBS | ||
11644 | fi | ||
11645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | ||
11646 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
11647 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | ||
11648 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
11649 | else | ||
11650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | ||
11651 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | ||
11652 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | ||
11653 | $as_echo_n "(cached) " >&6 | ||
11654 | else | ||
11655 | ac_check_lib_save_LIBS=$LIBS | ||
11656 | LIBS="-lsvld $LIBS" | ||
11657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11658 | /* end confdefs.h. */ | ||
11659 | |||
11660 | /* Override any GCC internal prototype to avoid an error. | ||
11661 | Use char because int might match the return type of a GCC | ||
11662 | builtin and then its argument prototype would still apply. */ | ||
11663 | #ifdef __cplusplus | ||
11664 | extern "C" | ||
11665 | #endif | ||
11666 | char dlopen (); | ||
11667 | int | ||
11668 | main () | ||
11669 | { | ||
11670 | return dlopen (); | ||
11671 | ; | ||
11672 | return 0; | ||
11673 | } | ||
11674 | _ACEOF | ||
11675 | if ac_fn_c_try_link "$LINENO"; then : | ||
11676 | ac_cv_lib_svld_dlopen=yes | ||
11677 | else | ||
11678 | ac_cv_lib_svld_dlopen=no | ||
11679 | fi | ||
11680 | rm -f core conftest.err conftest.$ac_objext \ | ||
11681 | conftest$ac_exeext conftest.$ac_ext | ||
11682 | LIBS=$ac_check_lib_save_LIBS | ||
11683 | fi | ||
11684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | ||
11685 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | ||
11686 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | ||
11687 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | ||
11688 | else | ||
11689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | ||
11690 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | ||
11691 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | ||
11692 | $as_echo_n "(cached) " >&6 | ||
11693 | else | ||
11694 | ac_check_lib_save_LIBS=$LIBS | ||
11695 | LIBS="-ldld $LIBS" | ||
11696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11697 | /* end confdefs.h. */ | ||
11698 | |||
11699 | /* Override any GCC internal prototype to avoid an error. | ||
11700 | Use char because int might match the return type of a GCC | ||
11701 | builtin and then its argument prototype would still apply. */ | ||
11702 | #ifdef __cplusplus | ||
11703 | extern "C" | ||
11704 | #endif | ||
11705 | char dld_link (); | ||
11706 | int | ||
11707 | main () | ||
11708 | { | ||
11709 | return dld_link (); | ||
11710 | ; | ||
11711 | return 0; | ||
11712 | } | ||
11713 | _ACEOF | ||
11714 | if ac_fn_c_try_link "$LINENO"; then : | ||
11715 | ac_cv_lib_dld_dld_link=yes | ||
11716 | else | ||
11717 | ac_cv_lib_dld_dld_link=no | ||
11718 | fi | ||
11719 | rm -f core conftest.err conftest.$ac_objext \ | ||
11720 | conftest$ac_exeext conftest.$ac_ext | ||
11721 | LIBS=$ac_check_lib_save_LIBS | ||
11722 | fi | ||
11723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | ||
11724 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | ||
11725 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | ||
11726 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | ||
11727 | fi | ||
11728 | |||
11729 | |||
11730 | fi | ||
11731 | |||
11732 | |||
11733 | fi | ||
11734 | |||
11735 | |||
11736 | fi | ||
11737 | |||
11738 | |||
11739 | fi | ||
11740 | |||
11741 | |||
11742 | fi | ||
11743 | |||
11744 | ;; | ||
11745 | esac | ||
11746 | |||
11747 | if test "x$lt_cv_dlopen" != xno; then | ||
11748 | enable_dlopen=yes | ||
11749 | else | ||
11750 | enable_dlopen=no | ||
11751 | fi | ||
11752 | |||
11753 | case $lt_cv_dlopen in | ||
11754 | dlopen) | ||
11755 | save_CPPFLAGS="$CPPFLAGS" | ||
11756 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | ||
11757 | |||
11758 | save_LDFLAGS="$LDFLAGS" | ||
11759 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | ||
11760 | |||
11761 | save_LIBS="$LIBS" | ||
11762 | LIBS="$lt_cv_dlopen_libs $LIBS" | ||
11763 | |||
11764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | ||
11765 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | ||
11766 | if test "${lt_cv_dlopen_self+set}" = set; then : | ||
11767 | $as_echo_n "(cached) " >&6 | ||
11768 | else | ||
11769 | if test "$cross_compiling" = yes; then : | ||
11770 | lt_cv_dlopen_self=cross | ||
11771 | else | ||
11772 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
11773 | lt_status=$lt_dlunknown | ||
11774 | cat > conftest.$ac_ext <<_LT_EOF | ||
11775 | #line 11775 "configure" | ||
11776 | #include "confdefs.h" | ||
11777 | |||
11778 | #if HAVE_DLFCN_H | ||
11779 | #include <dlfcn.h> | ||
11780 | #endif | ||
11781 | |||
11782 | #include <stdio.h> | ||
11783 | |||
11784 | #ifdef RTLD_GLOBAL | ||
11785 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
11786 | #else | ||
11787 | # ifdef DL_GLOBAL | ||
11788 | # define LT_DLGLOBAL DL_GLOBAL | ||
11789 | # else | ||
11790 | # define LT_DLGLOBAL 0 | ||
11791 | # endif | ||
11792 | #endif | ||
11793 | |||
11794 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
11795 | find out it does not work in some platform. */ | ||
11796 | #ifndef LT_DLLAZY_OR_NOW | ||
11797 | # ifdef RTLD_LAZY | ||
11798 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
11799 | # else | ||
11800 | # ifdef DL_LAZY | ||
11801 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
11802 | # else | ||
11803 | # ifdef RTLD_NOW | ||
11804 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
11805 | # else | ||
11806 | # ifdef DL_NOW | ||
11807 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
11808 | # else | ||
11809 | # define LT_DLLAZY_OR_NOW 0 | ||
11810 | # endif | ||
11811 | # endif | ||
11812 | # endif | ||
11813 | # endif | ||
11814 | #endif | ||
11815 | |||
11816 | void fnord() { int i=42;} | ||
11817 | int main () | ||
11818 | { | ||
11819 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
11820 | int status = $lt_dlunknown; | ||
11821 | |||
11822 | if (self) | ||
11823 | { | ||
11824 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
11825 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
11826 | /* dlclose (self); */ | ||
11827 | } | ||
11828 | else | ||
11829 | puts (dlerror ()); | ||
11830 | |||
11831 | return status; | ||
11832 | } | ||
11833 | _LT_EOF | ||
11834 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
11835 | (eval $ac_link) 2>&5 | ||
11836 | ac_status=$? | ||
11837 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
11838 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
11839 | (./conftest; exit; ) >&5 2>/dev/null | ||
11840 | lt_status=$? | ||
11841 | case x$lt_status in | ||
11842 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | ||
11843 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | ||
11844 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | ||
11845 | esac | ||
11846 | else : | ||
11847 | # compilation failed | ||
11848 | lt_cv_dlopen_self=no | ||
11849 | fi | ||
11850 | fi | ||
11851 | rm -fr conftest* | ||
11852 | |||
11853 | |||
11854 | fi | ||
11855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | ||
11856 | $as_echo "$lt_cv_dlopen_self" >&6; } | ||
11857 | |||
11858 | if test "x$lt_cv_dlopen_self" = xyes; then | ||
11859 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | ||
11860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | ||
11861 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | ||
11862 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | ||
11863 | $as_echo_n "(cached) " >&6 | ||
11864 | else | ||
11865 | if test "$cross_compiling" = yes; then : | ||
11866 | lt_cv_dlopen_self_static=cross | ||
11867 | else | ||
11868 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
11869 | lt_status=$lt_dlunknown | ||
11870 | cat > conftest.$ac_ext <<_LT_EOF | ||
11871 | #line 11871 "configure" | ||
11872 | #include "confdefs.h" | ||
11873 | |||
11874 | #if HAVE_DLFCN_H | ||
11875 | #include <dlfcn.h> | ||
11876 | #endif | ||
11877 | |||
11878 | #include <stdio.h> | ||
11879 | |||
11880 | #ifdef RTLD_GLOBAL | ||
11881 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
11882 | #else | ||
11883 | # ifdef DL_GLOBAL | ||
11884 | # define LT_DLGLOBAL DL_GLOBAL | ||
11885 | # else | ||
11886 | # define LT_DLGLOBAL 0 | ||
11887 | # endif | ||
11888 | #endif | ||
11889 | |||
11890 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
11891 | find out it does not work in some platform. */ | ||
11892 | #ifndef LT_DLLAZY_OR_NOW | ||
11893 | # ifdef RTLD_LAZY | ||
11894 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
11895 | # else | ||
11896 | # ifdef DL_LAZY | ||
11897 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
11898 | # else | ||
11899 | # ifdef RTLD_NOW | ||
11900 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
11901 | # else | ||
11902 | # ifdef DL_NOW | ||
11903 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
11904 | # else | ||
11905 | # define LT_DLLAZY_OR_NOW 0 | ||
11906 | # endif | ||
11907 | # endif | ||
11908 | # endif | ||
11909 | # endif | ||
11910 | #endif | ||
11911 | |||
11912 | void fnord() { int i=42;} | ||
11913 | int main () | ||
11914 | { | ||
11915 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
11916 | int status = $lt_dlunknown; | ||
11917 | |||
11918 | if (self) | ||
11919 | { | ||
11920 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
11921 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
11922 | /* dlclose (self); */ | ||
11923 | } | ||
11924 | else | ||
11925 | puts (dlerror ()); | ||
11926 | |||
11927 | return status; | ||
11928 | } | ||
11929 | _LT_EOF | ||
11930 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | ||
11931 | (eval $ac_link) 2>&5 | ||
11932 | ac_status=$? | ||
11933 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
11934 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
11935 | (./conftest; exit; ) >&5 2>/dev/null | ||
11936 | lt_status=$? | ||
11937 | case x$lt_status in | ||
11938 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | ||
11939 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | ||
11940 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | ||
11941 | esac | ||
11942 | else : | ||
11943 | # compilation failed | ||
11944 | lt_cv_dlopen_self_static=no | ||
11945 | fi | ||
11946 | fi | ||
11947 | rm -fr conftest* | ||
11948 | |||
11949 | |||
11950 | fi | ||
11951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | ||
11952 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | ||
11953 | fi | ||
11954 | |||
11955 | CPPFLAGS="$save_CPPFLAGS" | ||
11956 | LDFLAGS="$save_LDFLAGS" | ||
11957 | LIBS="$save_LIBS" | ||
11958 | ;; | ||
11959 | esac | ||
11960 | |||
11961 | case $lt_cv_dlopen_self in | ||
11962 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | ||
11963 | *) enable_dlopen_self=unknown ;; | ||
11964 | esac | ||
11965 | |||
11966 | case $lt_cv_dlopen_self_static in | ||
11967 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | ||
11968 | *) enable_dlopen_self_static=unknown ;; | ||
11969 | esac | ||
11970 | fi | ||
11971 | |||
11972 | |||
11973 | |||
11974 | |||
11975 | |||
11976 | |||
11977 | |||
11978 | |||
11979 | |||
11980 | |||
11981 | |||
11982 | |||
11983 | |||
11984 | |||
11985 | |||
11986 | |||
11987 | |||
11988 | striplib= | ||
11989 | old_striplib= | ||
11990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | ||
11991 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | ||
11992 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | ||
11993 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
11994 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
11995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11996 | $as_echo "yes" >&6; } | ||
11997 | else | ||
11998 | # FIXME - insert some real tests, host_os isn't really good enough | ||
11999 | case $host_os in | ||
12000 | darwin*) | ||
12001 | if test -n "$STRIP" ; then | ||
12002 | striplib="$STRIP -x" | ||
12003 | old_striplib="$STRIP -S" | ||
12004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12005 | $as_echo "yes" >&6; } | ||
12006 | else | ||
12007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12008 | $as_echo "no" >&6; } | ||
12009 | fi | ||
12010 | ;; | ||
12011 | *) | ||
12012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12013 | $as_echo "no" >&6; } | ||
12014 | ;; | ||
12015 | esac | ||
12016 | fi | ||
12017 | |||
12018 | |||
12019 | |||
12020 | |||
12021 | |||
12022 | |||
12023 | |||
12024 | |||
12025 | |||
12026 | |||
12027 | |||
12028 | |||
12029 | # Report which library types will actually be built | ||
12030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | ||
12031 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | ||
12032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | ||
12033 | $as_echo "$can_build_shared" >&6; } | ||
12034 | |||
12035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | ||
12036 | $as_echo_n "checking whether to build shared libraries... " >&6; } | ||
12037 | test "$can_build_shared" = "no" && enable_shared=no | ||
12038 | |||
12039 | # On AIX, shared libraries and static libraries use the same namespace, and | ||
12040 | # are all built from PIC. | ||
12041 | case $host_os in | ||
12042 | aix3*) | ||
12043 | test "$enable_shared" = yes && enable_static=no | ||
12044 | if test -n "$RANLIB"; then | ||
12045 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | ||
12046 | postinstall_cmds='$RANLIB $lib' | ||
12047 | fi | ||
12048 | ;; | ||
12049 | |||
12050 | aix[4-9]*) | ||
12051 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | ||
12052 | test "$enable_shared" = yes && enable_static=no | ||
12053 | fi | ||
12054 | ;; | ||
12055 | esac | ||
12056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | ||
12057 | $as_echo "$enable_shared" >&6; } | ||
12058 | |||
12059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | ||
12060 | $as_echo_n "checking whether to build static libraries... " >&6; } | ||
12061 | # Make sure either enable_shared or enable_static is yes. | ||
12062 | test "$enable_shared" = yes || enable_static=yes | ||
12063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | ||
12064 | $as_echo "$enable_static" >&6; } | ||
12065 | |||
12066 | |||
12067 | |||
12068 | |||
12069 | fi | ||
12070 | ac_ext=c | ||
12071 | ac_cpp='$CPP $CPPFLAGS' | ||
12072 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
12073 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
12074 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
12075 | |||
12076 | CC="$lt_save_CC" | ||
12077 | |||
12078 | |||
12079 | |||
12080 | |||
12081 | |||
12082 | |||
12083 | |||
12084 | |||
12085 | |||
12086 | |||
12087 | |||
12088 | |||
12089 | |||
12090 | ac_config_commands="$ac_config_commands libtool" | ||
12091 | |||
12092 | |||
12093 | |||
12094 | |||
12095 | # Only expand once: | ||
12096 | |||
12097 | |||
12098 | |||
12099 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
12100 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
12101 | |||
12102 | |||
12103 | |||
12104 | cat >>confdefs.h <<_ACEOF | ||
12105 | #define VMAJ 1 | ||
12106 | _ACEOF | ||
12107 | |||
12108 | |||
12109 | cat >>confdefs.h <<_ACEOF | ||
12110 | #define VMIN 2 | ||
12111 | _ACEOF | ||
12112 | |||
12113 | |||
12114 | cat >>confdefs.h <<_ACEOF | ||
12115 | #define VMIC 0 | ||
12116 | _ACEOF | ||
12117 | |||
12118 | |||
12119 | cat >>confdefs.h <<_ACEOF | ||
12120 | #define VREV 0 | ||
12121 | _ACEOF | ||
12122 | |||
12123 | version_info="3:0:2" | ||
12124 | release_info="" | ||
12125 | |||
12126 | |||
12127 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
12128 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
12129 | VMAJ=1 | ||
12130 | |||
12131 | |||
12132 | ### Needed information | ||
12133 | |||
12134 | |||
12135 | |||
12136 | |||
12137 | case "$host_os" in | ||
12138 | mingw32ce*) | ||
12139 | MODULE_ARCH="$host_os-$host_cpu" | ||
12140 | ;; | ||
12141 | *) | ||
12142 | MODULE_ARCH="$host_os-$host_cpu-1.2.0" | ||
12143 | ;; | ||
12144 | esac | ||
12145 | |||
12146 | |||
12147 | cat >>confdefs.h <<_ACEOF | ||
12148 | #define MODULE_ARCH "$MODULE_ARCH" | ||
12149 | _ACEOF | ||
12150 | |||
12151 | |||
12152 | want_fontconfig="auto" | ||
12153 | want_fribidi="auto" | ||
12154 | want_harfbuzz="auto" | ||
12155 | want_pixman="no" | ||
12156 | want_evas_cserve="yes" | ||
12157 | |||
12158 | want_evas_engine_buffer="yes" | ||
12159 | want_evas_engine_software_xlib="no" | ||
12160 | want_evas_engine_software_xcb="no" | ||
12161 | want_evas_engine_software_gdi="no" | ||
12162 | want_evas_engine_software_ddraw="no" | ||
12163 | want_evas_engine_software_8_x11="no" | ||
12164 | want_evas_engine_software_16_x11="no" | ||
12165 | want_evas_engine_software_16_ddraw="no" | ||
12166 | want_evas_engine_software_16_wince="no" | ||
12167 | want_evas_engine_software_16_sdl="no" | ||
12168 | want_evas_engine_gl_xlib="no" | ||
12169 | want_evas_engine_gl_xcb="no" | ||
12170 | want_evas_engine_gl_sdl="no" | ||
12171 | want_evas_engine_gl_cocoa="no" | ||
12172 | want_evas_engine_direct3d="no" | ||
12173 | want_evas_engine_fb="no" | ||
12174 | want_evas_engine_directfb="no" | ||
12175 | want_evas_engine_psl1ght="no" | ||
12176 | want_evas_engine_wayland_shm="no" | ||
12177 | want_evas_engine_wayland_egl="no" | ||
12178 | |||
12179 | want_evas_image_loader_edb="yes" | ||
12180 | want_evas_image_loader_eet="yes" | ||
12181 | want_evas_image_loader_gif="yes" | ||
12182 | want_evas_image_loader_jpeg="yes" | ||
12183 | want_evas_image_loader_pmaps="yes" | ||
12184 | want_evas_image_loader_png="yes" | ||
12185 | want_evas_image_loader_svg="yes" | ||
12186 | want_evas_image_loader_tiff="yes" | ||
12187 | want_evas_image_loader_xpm="yes" | ||
12188 | want_evas_image_loader_bmp="yes" | ||
12189 | want_evas_image_loader_tga="yes" | ||
12190 | want_evas_image_loader_wbmp="yes" | ||
12191 | want_evas_image_loader_ico="yes" | ||
12192 | want_evas_image_loader_psd="yes" | ||
12193 | want_evas_image_loader_generic="yes" | ||
12194 | |||
12195 | want_evas_font_loader_eet="yes" | ||
12196 | |||
12197 | case "$host_os" in | ||
12198 | mingw32ce*) | ||
12199 | want_fontconfig="no" | ||
12200 | want_evas_engine_software_16_wince="yes" | ||
12201 | want_evas_image_loader_edb="no" | ||
12202 | want_evas_image_loader_gif="no" | ||
12203 | want_evas_image_loader_svg="no" | ||
12204 | want_evas_image_loader_tiff="no" | ||
12205 | ;; | ||
12206 | mingw*) | ||
12207 | want_evas_engine_software_gdi="yes" | ||
12208 | want_evas_engine_software_ddraw="yes" | ||
12209 | want_evas_engine_direct3d="yes" | ||
12210 | want_evas_engine_software_16_ddraw="yes" | ||
12211 | want_evas_image_loader_edb="no" | ||
12212 | want_evas_image_loader_svg="no" | ||
12213 | ;; | ||
12214 | darwin*) | ||
12215 | want_evas_engine_software_xlib="auto" | ||
12216 | want_evas_engine_gl_cocoa="auto" | ||
12217 | ;; | ||
12218 | *) | ||
12219 | want_evas_engine_software_xlib="auto" | ||
12220 | want_evas_engine_gl_xlib="auto" | ||
12221 | want_evas_engine_software_xcb="no" | ||
12222 | want_evas_engine_gl_xcb="no" | ||
12223 | want_evas_engine_fb="auto" | ||
12224 | want_evas_engine_wayland_shm="auto" | ||
12225 | want_evas_engine_wayland_egl="auto" | ||
12226 | ### no - not ready/usable/complete | ||
12227 | # want_evas_engine_software_8_x11="auto" | ||
12228 | # want_evas_engine_software_16_x11="auto" | ||
12229 | ;; | ||
12230 | esac | ||
12231 | |||
12232 | case "$host_vendor" in | ||
12233 | ps3*) | ||
12234 | want_evas_engine_psl1ght="static" | ||
12235 | ;; | ||
12236 | esac | ||
12237 | |||
12238 | requirement_evas="" | ||
12239 | |||
12240 | |||
12241 | ### Additional options to configure | ||
12242 | |||
12243 | # when used, that option makes configure script fails when | ||
12244 | # a requirement is selected, but not met. | ||
12245 | use_strict="no" | ||
12246 | # Check whether --enable-strict was given. | ||
12247 | if test "${enable_strict+set}" = set; then : | ||
12248 | enableval=$enable_strict; use_strict="yes" | ||
12249 | else | ||
12250 | use_strict="no" | ||
12251 | fi | ||
12252 | |||
12253 | |||
12254 | # Simple X11 build/link | ||
12255 | # Check whether --enable-simple-x11 was given. | ||
12256 | if test "${enable_simple_x11+set}" = set; then : | ||
12257 | enableval=$enable_simple_x11; | ||
12258 | if test "x${enableval}" = "xyes" ; then | ||
12259 | want_evas_simple_x11="yes" | ||
12260 | else | ||
12261 | want_evas_simple_x11="no" | ||
12262 | fi | ||
12263 | |||
12264 | fi | ||
12265 | |||
12266 | |||
12267 | |||
12268 | ### Checks for programs | ||
12269 | |||
12270 | |||
12271 | ac_ext=m | ||
12272 | ac_cpp='$OBJCPP $CPPFLAGS' | ||
12273 | ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
12274 | ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
12275 | ac_compiler_gnu=$ac_cv_objc_compiler_gnu | ||
12276 | if test -n "$ac_tool_prefix"; then | ||
12277 | for ac_prog in gcc objcc objc cc CC | ||
12278 | do | ||
12279 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
12280 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
12281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12282 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12283 | if test "${ac_cv_prog_OBJC+set}" = set; then : | ||
12284 | $as_echo_n "(cached) " >&6 | ||
12285 | else | ||
12286 | if test -n "$OBJC"; then | ||
12287 | ac_cv_prog_OBJC="$OBJC" # Let the user override the test. | ||
12288 | else | ||
12289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12290 | for as_dir in $PATH | ||
12291 | do | ||
12292 | IFS=$as_save_IFS | ||
12293 | test -z "$as_dir" && as_dir=. | ||
12294 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12295 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12296 | ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" | ||
12297 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12298 | break 2 | ||
12299 | fi | ||
12300 | done | ||
12301 | done | ||
12302 | IFS=$as_save_IFS | ||
12303 | |||
12304 | fi | ||
12305 | fi | ||
12306 | OBJC=$ac_cv_prog_OBJC | ||
12307 | if test -n "$OBJC"; then | ||
12308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 | ||
12309 | $as_echo "$OBJC" >&6; } | ||
12310 | else | ||
12311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12312 | $as_echo "no" >&6; } | ||
12313 | fi | ||
12314 | |||
12315 | |||
12316 | test -n "$OBJC" && break | ||
12317 | done | ||
12318 | fi | ||
12319 | if test -z "$OBJC"; then | ||
12320 | ac_ct_OBJC=$OBJC | ||
12321 | for ac_prog in gcc objcc objc cc CC | ||
12322 | do | ||
12323 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
12324 | set dummy $ac_prog; ac_word=$2 | ||
12325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12326 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12327 | if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then : | ||
12328 | $as_echo_n "(cached) " >&6 | ||
12329 | else | ||
12330 | if test -n "$ac_ct_OBJC"; then | ||
12331 | ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. | ||
12332 | else | ||
12333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12334 | for as_dir in $PATH | ||
12335 | do | ||
12336 | IFS=$as_save_IFS | ||
12337 | test -z "$as_dir" && as_dir=. | ||
12338 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12339 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12340 | ac_cv_prog_ac_ct_OBJC="$ac_prog" | ||
12341 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12342 | break 2 | ||
12343 | fi | ||
12344 | done | ||
12345 | done | ||
12346 | IFS=$as_save_IFS | ||
12347 | |||
12348 | fi | ||
12349 | fi | ||
12350 | ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC | ||
12351 | if test -n "$ac_ct_OBJC"; then | ||
12352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 | ||
12353 | $as_echo "$ac_ct_OBJC" >&6; } | ||
12354 | else | ||
12355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12356 | $as_echo "no" >&6; } | ||
12357 | fi | ||
12358 | |||
12359 | |||
12360 | test -n "$ac_ct_OBJC" && break | ||
12361 | done | ||
12362 | |||
12363 | if test "x$ac_ct_OBJC" = x; then | ||
12364 | OBJC="gcc" | ||
12365 | else | ||
12366 | case $cross_compiling:$ac_tool_warned in | ||
12367 | yes:) | ||
12368 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
12369 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
12370 | ac_tool_warned=yes ;; | ||
12371 | esac | ||
12372 | OBJC=$ac_ct_OBJC | ||
12373 | fi | ||
12374 | fi | ||
12375 | |||
12376 | # Provide some information about the compiler. | ||
12377 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 | ||
12378 | set X $ac_compile | ||
12379 | ac_compiler=$2 | ||
12380 | for ac_option in --version -v -V -qversion; do | ||
12381 | { { ac_try="$ac_compiler $ac_option >&5" | ||
12382 | case "(($ac_try" in | ||
12383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12384 | *) ac_try_echo=$ac_try;; | ||
12385 | esac | ||
12386 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
12387 | $as_echo "$ac_try_echo"; } >&5 | ||
12388 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
12389 | ac_status=$? | ||
12390 | if test -s conftest.err; then | ||
12391 | sed '10a\ | ||
12392 | ... rest of stderr output deleted ... | ||
12393 | 10q' conftest.err >conftest.er1 | ||
12394 | cat conftest.er1 >&5 | ||
12395 | fi | ||
12396 | rm -f conftest.er1 conftest.err | ||
12397 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12398 | test $ac_status = 0; } | ||
12399 | done | ||
12400 | |||
12401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5 | ||
12402 | $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } | ||
12403 | if test "${ac_cv_objc_compiler_gnu+set}" = set; then : | ||
12404 | $as_echo_n "(cached) " >&6 | ||
12405 | else | ||
12406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12407 | /* end confdefs.h. */ | ||
12408 | |||
12409 | int | ||
12410 | main () | ||
12411 | { | ||
12412 | #ifndef __GNUC__ | ||
12413 | choke me | ||
12414 | #endif | ||
12415 | |||
12416 | ; | ||
12417 | return 0; | ||
12418 | } | ||
12419 | _ACEOF | ||
12420 | if ac_fn_objc_try_compile "$LINENO"; then : | ||
12421 | ac_compiler_gnu=yes | ||
12422 | else | ||
12423 | ac_compiler_gnu=no | ||
12424 | fi | ||
12425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12426 | ac_cv_objc_compiler_gnu=$ac_compiler_gnu | ||
12427 | |||
12428 | fi | ||
12429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 | ||
12430 | $as_echo "$ac_cv_objc_compiler_gnu" >&6; } | ||
12431 | if test $ac_compiler_gnu = yes; then | ||
12432 | GOBJC=yes | ||
12433 | else | ||
12434 | GOBJC= | ||
12435 | fi | ||
12436 | ac_test_OBJCFLAGS=${OBJCFLAGS+set} | ||
12437 | ac_save_OBJCFLAGS=$OBJCFLAGS | ||
12438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 | ||
12439 | $as_echo_n "checking whether $OBJC accepts -g... " >&6; } | ||
12440 | if test "${ac_cv_prog_objc_g+set}" = set; then : | ||
12441 | $as_echo_n "(cached) " >&6 | ||
12442 | else | ||
12443 | ac_save_objc_werror_flag=$ac_objc_werror_flag | ||
12444 | ac_objc_werror_flag=yes | ||
12445 | ac_cv_prog_objc_g=no | ||
12446 | OBJCFLAGS="-g" | ||
12447 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12448 | /* end confdefs.h. */ | ||
12449 | |||
12450 | int | ||
12451 | main () | ||
12452 | { | ||
12453 | |||
12454 | ; | ||
12455 | return 0; | ||
12456 | } | ||
12457 | _ACEOF | ||
12458 | if ac_fn_objc_try_compile "$LINENO"; then : | ||
12459 | ac_cv_prog_objc_g=yes | ||
12460 | else | ||
12461 | OBJCFLAGS="" | ||
12462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12463 | /* end confdefs.h. */ | ||
12464 | |||
12465 | int | ||
12466 | main () | ||
12467 | { | ||
12468 | |||
12469 | ; | ||
12470 | return 0; | ||
12471 | } | ||
12472 | _ACEOF | ||
12473 | if ac_fn_objc_try_compile "$LINENO"; then : | ||
12474 | |||
12475 | else | ||
12476 | ac_objc_werror_flag=$ac_save_objc_werror_flag | ||
12477 | OBJCFLAGS="-g" | ||
12478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12479 | /* end confdefs.h. */ | ||
12480 | |||
12481 | int | ||
12482 | main () | ||
12483 | { | ||
12484 | |||
12485 | ; | ||
12486 | return 0; | ||
12487 | } | ||
12488 | _ACEOF | ||
12489 | if ac_fn_objc_try_compile "$LINENO"; then : | ||
12490 | ac_cv_prog_objc_g=yes | ||
12491 | fi | ||
12492 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12493 | fi | ||
12494 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12495 | fi | ||
12496 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12497 | ac_objc_werror_flag=$ac_save_objc_werror_flag | ||
12498 | fi | ||
12499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 | ||
12500 | $as_echo "$ac_cv_prog_objc_g" >&6; } | ||
12501 | if test "$ac_test_OBJCFLAGS" = set; then | ||
12502 | OBJCFLAGS=$ac_save_OBJCFLAGS | ||
12503 | elif test $ac_cv_prog_objc_g = yes; then | ||
12504 | if test "$GOBJC" = yes; then | ||
12505 | OBJCFLAGS="-g -O2" | ||
12506 | else | ||
12507 | OBJCFLAGS="-g" | ||
12508 | fi | ||
12509 | else | ||
12510 | if test "$GOBJC" = yes; then | ||
12511 | OBJCFLAGS="-O2" | ||
12512 | else | ||
12513 | OBJCFLAGS= | ||
12514 | fi | ||
12515 | fi | ||
12516 | ac_ext=c | ||
12517 | ac_cpp='$CPP $CPPFLAGS' | ||
12518 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
12519 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
12520 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
12521 | |||
12522 | depcc="$OBJC" am_compiler_list='gcc3 gcc' | ||
12523 | |||
12524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
12525 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
12526 | if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then : | ||
12527 | $as_echo_n "(cached) " >&6 | ||
12528 | else | ||
12529 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
12530 | # We make a subdir and do the tests there. Otherwise we can end up | ||
12531 | # making bogus files that we don't know about and never remove. For | ||
12532 | # instance it was reported that on HP-UX the gcc test will end up | ||
12533 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
12534 | # in D'. | ||
12535 | mkdir conftest.dir | ||
12536 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
12537 | # using a relative directory. | ||
12538 | cp "$am_depcomp" conftest.dir | ||
12539 | cd conftest.dir | ||
12540 | # We will build objects and dependencies in a subdirectory because | ||
12541 | # it helps to detect inapplicable dependency modes. For instance | ||
12542 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
12543 | # side effect of compilation, but ICC will put the dependencies in | ||
12544 | # the current directory while Tru64 will put them in the object | ||
12545 | # directory. | ||
12546 | mkdir sub | ||
12547 | |||
12548 | am_cv_OBJC_dependencies_compiler_type=none | ||
12549 | if test "$am_compiler_list" = ""; then | ||
12550 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
12551 | fi | ||
12552 | am__universal=false | ||
12553 | |||
12554 | |||
12555 | for depmode in $am_compiler_list; do | ||
12556 | # Setup a source with many dependencies, because some compilers | ||
12557 | # like to wrap large dependency lists on column 80 (with \), and | ||
12558 | # we should not choose a depcomp mode which is confused by this. | ||
12559 | # | ||
12560 | # We need to recreate these files for each test, as the compiler may | ||
12561 | # overwrite some of them when testing with obscure command lines. | ||
12562 | # This happens at least with the AIX C compiler. | ||
12563 | : > sub/conftest.c | ||
12564 | for i in 1 2 3 4 5 6; do | ||
12565 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
12566 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
12567 | # Solaris 8's {/usr,}/bin/sh. | ||
12568 | touch sub/conftst$i.h | ||
12569 | done | ||
12570 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
12571 | |||
12572 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
12573 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
12574 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
12575 | # versions had trouble with output in subdirs | ||
12576 | am__obj=sub/conftest.${OBJEXT-o} | ||
12577 | am__minus_obj="-o $am__obj" | ||
12578 | case $depmode in | ||
12579 | gcc) | ||
12580 | # This depmode causes a compiler race in universal mode. | ||
12581 | test "$am__universal" = false || continue | ||
12582 | ;; | ||
12583 | nosideeffect) | ||
12584 | # after this tag, mechanisms are not by side-effect, so they'll | ||
12585 | # only be used when explicitly requested | ||
12586 | if test "x$enable_dependency_tracking" = xyes; then | ||
12587 | continue | ||
12588 | else | ||
12589 | break | ||
12590 | fi | ||
12591 | ;; | ||
12592 | msvisualcpp | msvcmsys) | ||
12593 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
12594 | # not run yet. These depmodes are late enough in the game, and | ||
12595 | # so weak that their functioning should not be impacted. | ||
12596 | am__obj=conftest.${OBJEXT-o} | ||
12597 | am__minus_obj= | ||
12598 | ;; | ||
12599 | none) break ;; | ||
12600 | esac | ||
12601 | if depmode=$depmode \ | ||
12602 | source=sub/conftest.c object=$am__obj \ | ||
12603 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
12604 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
12605 | >/dev/null 2>conftest.err && | ||
12606 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
12607 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
12608 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
12609 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
12610 | # icc doesn't choke on unknown options, it will just issue warnings | ||
12611 | # or remarks (even with -Werror). So we grep stderr for any message | ||
12612 | # that says an option was ignored or not supported. | ||
12613 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
12614 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
12615 | # The diagnosis changed in icc 8.0: | ||
12616 | # icc: Command line remark: option '-MP' not supported | ||
12617 | if (grep 'ignoring option' conftest.err || | ||
12618 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
12619 | am_cv_OBJC_dependencies_compiler_type=$depmode | ||
12620 | break | ||
12621 | fi | ||
12622 | fi | ||
12623 | done | ||
12624 | |||
12625 | cd .. | ||
12626 | rm -rf conftest.dir | ||
12627 | else | ||
12628 | am_cv_OBJC_dependencies_compiler_type=none | ||
12629 | fi | ||
12630 | |||
12631 | fi | ||
12632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5 | ||
12633 | $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; } | ||
12634 | OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type | ||
12635 | |||
12636 | if | ||
12637 | test "x$enable_dependency_tracking" != xno \ | ||
12638 | && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then | ||
12639 | am__fastdepOBJC_TRUE= | ||
12640 | am__fastdepOBJC_FALSE='#' | ||
12641 | else | ||
12642 | am__fastdepOBJC_TRUE='#' | ||
12643 | am__fastdepOBJC_FALSE= | ||
12644 | fi | ||
12645 | |||
12646 | |||
12647 | |||
12648 | depcc="$OBJC" am_compiler_list='gcc3 gcc' | ||
12649 | |||
12650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
12651 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
12652 | if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then : | ||
12653 | $as_echo_n "(cached) " >&6 | ||
12654 | else | ||
12655 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
12656 | # We make a subdir and do the tests there. Otherwise we can end up | ||
12657 | # making bogus files that we don't know about and never remove. For | ||
12658 | # instance it was reported that on HP-UX the gcc test will end up | ||
12659 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
12660 | # in D'. | ||
12661 | mkdir conftest.dir | ||
12662 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
12663 | # using a relative directory. | ||
12664 | cp "$am_depcomp" conftest.dir | ||
12665 | cd conftest.dir | ||
12666 | # We will build objects and dependencies in a subdirectory because | ||
12667 | # it helps to detect inapplicable dependency modes. For instance | ||
12668 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
12669 | # side effect of compilation, but ICC will put the dependencies in | ||
12670 | # the current directory while Tru64 will put them in the object | ||
12671 | # directory. | ||
12672 | mkdir sub | ||
12673 | |||
12674 | am_cv_OBJC_dependencies_compiler_type=none | ||
12675 | if test "$am_compiler_list" = ""; then | ||
12676 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
12677 | fi | ||
12678 | am__universal=false | ||
12679 | |||
12680 | |||
12681 | for depmode in $am_compiler_list; do | ||
12682 | # Setup a source with many dependencies, because some compilers | ||
12683 | # like to wrap large dependency lists on column 80 (with \), and | ||
12684 | # we should not choose a depcomp mode which is confused by this. | ||
12685 | # | ||
12686 | # We need to recreate these files for each test, as the compiler may | ||
12687 | # overwrite some of them when testing with obscure command lines. | ||
12688 | # This happens at least with the AIX C compiler. | ||
12689 | : > sub/conftest.c | ||
12690 | for i in 1 2 3 4 5 6; do | ||
12691 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
12692 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
12693 | # Solaris 8's {/usr,}/bin/sh. | ||
12694 | touch sub/conftst$i.h | ||
12695 | done | ||
12696 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
12697 | |||
12698 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
12699 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
12700 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
12701 | # versions had trouble with output in subdirs | ||
12702 | am__obj=sub/conftest.${OBJEXT-o} | ||
12703 | am__minus_obj="-o $am__obj" | ||
12704 | case $depmode in | ||
12705 | gcc) | ||
12706 | # This depmode causes a compiler race in universal mode. | ||
12707 | test "$am__universal" = false || continue | ||
12708 | ;; | ||
12709 | nosideeffect) | ||
12710 | # after this tag, mechanisms are not by side-effect, so they'll | ||
12711 | # only be used when explicitly requested | ||
12712 | if test "x$enable_dependency_tracking" = xyes; then | ||
12713 | continue | ||
12714 | else | ||
12715 | break | ||
12716 | fi | ||
12717 | ;; | ||
12718 | msvisualcpp | msvcmsys) | ||
12719 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
12720 | # not run yet. These depmodes are late enough in the game, and | ||
12721 | # so weak that their functioning should not be impacted. | ||
12722 | am__obj=conftest.${OBJEXT-o} | ||
12723 | am__minus_obj= | ||
12724 | ;; | ||
12725 | none) break ;; | ||
12726 | esac | ||
12727 | if depmode=$depmode \ | ||
12728 | source=sub/conftest.c object=$am__obj \ | ||
12729 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
12730 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
12731 | >/dev/null 2>conftest.err && | ||
12732 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
12733 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
12734 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
12735 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
12736 | # icc doesn't choke on unknown options, it will just issue warnings | ||
12737 | # or remarks (even with -Werror). So we grep stderr for any message | ||
12738 | # that says an option was ignored or not supported. | ||
12739 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
12740 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
12741 | # The diagnosis changed in icc 8.0: | ||
12742 | # icc: Command line remark: option '-MP' not supported | ||
12743 | if (grep 'ignoring option' conftest.err || | ||
12744 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
12745 | am_cv_OBJC_dependencies_compiler_type=$depmode | ||
12746 | break | ||
12747 | fi | ||
12748 | fi | ||
12749 | done | ||
12750 | |||
12751 | cd .. | ||
12752 | rm -rf conftest.dir | ||
12753 | else | ||
12754 | am_cv_OBJC_dependencies_compiler_type=none | ||
12755 | fi | ||
12756 | |||
12757 | fi | ||
12758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5 | ||
12759 | $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; } | ||
12760 | OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type | ||
12761 | |||
12762 | if | ||
12763 | test "x$enable_dependency_tracking" != xno \ | ||
12764 | && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then | ||
12765 | am__fastdepOBJC_TRUE= | ||
12766 | am__fastdepOBJC_FALSE='#' | ||
12767 | else | ||
12768 | am__fastdepOBJC_TRUE='#' | ||
12769 | am__fastdepOBJC_FALSE= | ||
12770 | fi | ||
12771 | |||
12772 | |||
12773 | |||
12774 | |||
12775 | |||
12776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Objective C compiler works" >&5 | ||
12777 | $as_echo_n "checking whether the Objective C compiler works... " >&6; } | ||
12778 | if test "${rw_cv_prog_objc_works+set}" = set; then : | ||
12779 | $as_echo_n "(cached) " >&6 | ||
12780 | else | ||
12781 | ac_ext=m | ||
12782 | ac_cpp='$OBJCPP $CPPFLAGS' | ||
12783 | ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
12784 | ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
12785 | ac_compiler_gnu=$ac_cv_objc_compiler_gnu | ||
12786 | |||
12787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12788 | /* end confdefs.h. */ | ||
12789 | |||
12790 | int | ||
12791 | main () | ||
12792 | { | ||
12793 | |||
12794 | ; | ||
12795 | return 0; | ||
12796 | } | ||
12797 | _ACEOF | ||
12798 | if ac_fn_objc_try_link "$LINENO"; then : | ||
12799 | rw_cv_prog_objc_works=yes | ||
12800 | else | ||
12801 | rw_cv_prog_objc_works=no | ||
12802 | fi | ||
12803 | rm -f core conftest.err conftest.$ac_objext \ | ||
12804 | conftest$ac_exeext conftest.$ac_ext | ||
12805 | ac_ext=c | ||
12806 | ac_cpp='$CPP $CPPFLAGS' | ||
12807 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
12808 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
12809 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
12810 | |||
12811 | fi | ||
12812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rw_cv_prog_objc_works" >&5 | ||
12813 | $as_echo "$rw_cv_prog_objc_works" >&6; } | ||
12814 | |||
12815 | |||
12816 | ac_ext=cpp | ||
12817 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
12818 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
12819 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
12820 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
12821 | if test -z "$CXX"; then | ||
12822 | if test -n "$CCC"; then | ||
12823 | CXX=$CCC | ||
12824 | else | ||
12825 | if test -n "$ac_tool_prefix"; then | ||
12826 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | ||
12827 | do | ||
12828 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
12829 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
12830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12831 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12832 | if test "${ac_cv_prog_CXX+set}" = set; then : | ||
12833 | $as_echo_n "(cached) " >&6 | ||
12834 | else | ||
12835 | if test -n "$CXX"; then | ||
12836 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | ||
12837 | else | ||
12838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12839 | for as_dir in $PATH | ||
12840 | do | ||
12841 | IFS=$as_save_IFS | ||
12842 | test -z "$as_dir" && as_dir=. | ||
12843 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12844 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12845 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | ||
12846 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12847 | break 2 | ||
12848 | fi | ||
12849 | done | ||
12850 | done | ||
12851 | IFS=$as_save_IFS | ||
12852 | |||
12853 | fi | ||
12854 | fi | ||
12855 | CXX=$ac_cv_prog_CXX | ||
12856 | if test -n "$CXX"; then | ||
12857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | ||
12858 | $as_echo "$CXX" >&6; } | ||
12859 | else | ||
12860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12861 | $as_echo "no" >&6; } | ||
12862 | fi | ||
12863 | |||
12864 | |||
12865 | test -n "$CXX" && break | ||
12866 | done | ||
12867 | fi | ||
12868 | if test -z "$CXX"; then | ||
12869 | ac_ct_CXX=$CXX | ||
12870 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | ||
12871 | do | ||
12872 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
12873 | set dummy $ac_prog; ac_word=$2 | ||
12874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
12875 | $as_echo_n "checking for $ac_word... " >&6; } | ||
12876 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | ||
12877 | $as_echo_n "(cached) " >&6 | ||
12878 | else | ||
12879 | if test -n "$ac_ct_CXX"; then | ||
12880 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | ||
12881 | else | ||
12882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
12883 | for as_dir in $PATH | ||
12884 | do | ||
12885 | IFS=$as_save_IFS | ||
12886 | test -z "$as_dir" && as_dir=. | ||
12887 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
12888 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
12889 | ac_cv_prog_ac_ct_CXX="$ac_prog" | ||
12890 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
12891 | break 2 | ||
12892 | fi | ||
12893 | done | ||
12894 | done | ||
12895 | IFS=$as_save_IFS | ||
12896 | |||
12897 | fi | ||
12898 | fi | ||
12899 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | ||
12900 | if test -n "$ac_ct_CXX"; then | ||
12901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | ||
12902 | $as_echo "$ac_ct_CXX" >&6; } | ||
12903 | else | ||
12904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12905 | $as_echo "no" >&6; } | ||
12906 | fi | ||
12907 | |||
12908 | |||
12909 | test -n "$ac_ct_CXX" && break | ||
12910 | done | ||
12911 | |||
12912 | if test "x$ac_ct_CXX" = x; then | ||
12913 | CXX="g++" | ||
12914 | else | ||
12915 | case $cross_compiling:$ac_tool_warned in | ||
12916 | yes:) | ||
12917 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
12918 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
12919 | ac_tool_warned=yes ;; | ||
12920 | esac | ||
12921 | CXX=$ac_ct_CXX | ||
12922 | fi | ||
12923 | fi | ||
12924 | |||
12925 | fi | ||
12926 | fi | ||
12927 | # Provide some information about the compiler. | ||
12928 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | ||
12929 | set X $ac_compile | ||
12930 | ac_compiler=$2 | ||
12931 | for ac_option in --version -v -V -qversion; do | ||
12932 | { { ac_try="$ac_compiler $ac_option >&5" | ||
12933 | case "(($ac_try" in | ||
12934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12935 | *) ac_try_echo=$ac_try;; | ||
12936 | esac | ||
12937 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
12938 | $as_echo "$ac_try_echo"; } >&5 | ||
12939 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
12940 | ac_status=$? | ||
12941 | if test -s conftest.err; then | ||
12942 | sed '10a\ | ||
12943 | ... rest of stderr output deleted ... | ||
12944 | 10q' conftest.err >conftest.er1 | ||
12945 | cat conftest.er1 >&5 | ||
12946 | fi | ||
12947 | rm -f conftest.er1 conftest.err | ||
12948 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
12949 | test $ac_status = 0; } | ||
12950 | done | ||
12951 | |||
12952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | ||
12953 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | ||
12954 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | ||
12955 | $as_echo_n "(cached) " >&6 | ||
12956 | else | ||
12957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12958 | /* end confdefs.h. */ | ||
12959 | |||
12960 | int | ||
12961 | main () | ||
12962 | { | ||
12963 | #ifndef __GNUC__ | ||
12964 | choke me | ||
12965 | #endif | ||
12966 | |||
12967 | ; | ||
12968 | return 0; | ||
12969 | } | ||
12970 | _ACEOF | ||
12971 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
12972 | ac_compiler_gnu=yes | ||
12973 | else | ||
12974 | ac_compiler_gnu=no | ||
12975 | fi | ||
12976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12977 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | ||
12978 | |||
12979 | fi | ||
12980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | ||
12981 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | ||
12982 | if test $ac_compiler_gnu = yes; then | ||
12983 | GXX=yes | ||
12984 | else | ||
12985 | GXX= | ||
12986 | fi | ||
12987 | ac_test_CXXFLAGS=${CXXFLAGS+set} | ||
12988 | ac_save_CXXFLAGS=$CXXFLAGS | ||
12989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | ||
12990 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | ||
12991 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | ||
12992 | $as_echo_n "(cached) " >&6 | ||
12993 | else | ||
12994 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | ||
12995 | ac_cxx_werror_flag=yes | ||
12996 | ac_cv_prog_cxx_g=no | ||
12997 | CXXFLAGS="-g" | ||
12998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12999 | /* end confdefs.h. */ | ||
13000 | |||
13001 | int | ||
13002 | main () | ||
13003 | { | ||
13004 | |||
13005 | ; | ||
13006 | return 0; | ||
13007 | } | ||
13008 | _ACEOF | ||
13009 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
13010 | ac_cv_prog_cxx_g=yes | ||
13011 | else | ||
13012 | CXXFLAGS="" | ||
13013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13014 | /* end confdefs.h. */ | ||
13015 | |||
13016 | int | ||
13017 | main () | ||
13018 | { | ||
13019 | |||
13020 | ; | ||
13021 | return 0; | ||
13022 | } | ||
13023 | _ACEOF | ||
13024 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
13025 | |||
13026 | else | ||
13027 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
13028 | CXXFLAGS="-g" | ||
13029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13030 | /* end confdefs.h. */ | ||
13031 | |||
13032 | int | ||
13033 | main () | ||
13034 | { | ||
13035 | |||
13036 | ; | ||
13037 | return 0; | ||
13038 | } | ||
13039 | _ACEOF | ||
13040 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
13041 | ac_cv_prog_cxx_g=yes | ||
13042 | fi | ||
13043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13044 | fi | ||
13045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13046 | fi | ||
13047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13048 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
13049 | fi | ||
13050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | ||
13051 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | ||
13052 | if test "$ac_test_CXXFLAGS" = set; then | ||
13053 | CXXFLAGS=$ac_save_CXXFLAGS | ||
13054 | elif test $ac_cv_prog_cxx_g = yes; then | ||
13055 | if test "$GXX" = yes; then | ||
13056 | CXXFLAGS="-g -O2" | ||
13057 | else | ||
13058 | CXXFLAGS="-g" | ||
13059 | fi | ||
13060 | else | ||
13061 | if test "$GXX" = yes; then | ||
13062 | CXXFLAGS="-O2" | ||
13063 | else | ||
13064 | CXXFLAGS= | ||
13065 | fi | ||
13066 | fi | ||
13067 | ac_ext=c | ||
13068 | ac_cpp='$CPP $CPPFLAGS' | ||
13069 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
13070 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13071 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
13072 | |||
13073 | depcc="$CXX" am_compiler_list= | ||
13074 | |||
13075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
13076 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
13077 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : | ||
13078 | $as_echo_n "(cached) " >&6 | ||
13079 | else | ||
13080 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
13081 | # We make a subdir and do the tests there. Otherwise we can end up | ||
13082 | # making bogus files that we don't know about and never remove. For | ||
13083 | # instance it was reported that on HP-UX the gcc test will end up | ||
13084 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
13085 | # in D'. | ||
13086 | mkdir conftest.dir | ||
13087 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
13088 | # using a relative directory. | ||
13089 | cp "$am_depcomp" conftest.dir | ||
13090 | cd conftest.dir | ||
13091 | # We will build objects and dependencies in a subdirectory because | ||
13092 | # it helps to detect inapplicable dependency modes. For instance | ||
13093 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
13094 | # side effect of compilation, but ICC will put the dependencies in | ||
13095 | # the current directory while Tru64 will put them in the object | ||
13096 | # directory. | ||
13097 | mkdir sub | ||
13098 | |||
13099 | am_cv_CXX_dependencies_compiler_type=none | ||
13100 | if test "$am_compiler_list" = ""; then | ||
13101 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
13102 | fi | ||
13103 | am__universal=false | ||
13104 | case " $depcc " in #( | ||
13105 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
13106 | esac | ||
13107 | |||
13108 | for depmode in $am_compiler_list; do | ||
13109 | # Setup a source with many dependencies, because some compilers | ||
13110 | # like to wrap large dependency lists on column 80 (with \), and | ||
13111 | # we should not choose a depcomp mode which is confused by this. | ||
13112 | # | ||
13113 | # We need to recreate these files for each test, as the compiler may | ||
13114 | # overwrite some of them when testing with obscure command lines. | ||
13115 | # This happens at least with the AIX C compiler. | ||
13116 | : > sub/conftest.c | ||
13117 | for i in 1 2 3 4 5 6; do | ||
13118 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
13119 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
13120 | # Solaris 8's {/usr,}/bin/sh. | ||
13121 | touch sub/conftst$i.h | ||
13122 | done | ||
13123 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
13124 | |||
13125 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
13126 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
13127 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
13128 | # versions had trouble with output in subdirs | ||
13129 | am__obj=sub/conftest.${OBJEXT-o} | ||
13130 | am__minus_obj="-o $am__obj" | ||
13131 | case $depmode in | ||
13132 | gcc) | ||
13133 | # This depmode causes a compiler race in universal mode. | ||
13134 | test "$am__universal" = false || continue | ||
13135 | ;; | ||
13136 | nosideeffect) | ||
13137 | # after this tag, mechanisms are not by side-effect, so they'll | ||
13138 | # only be used when explicitly requested | ||
13139 | if test "x$enable_dependency_tracking" = xyes; then | ||
13140 | continue | ||
13141 | else | ||
13142 | break | ||
13143 | fi | ||
13144 | ;; | ||
13145 | msvisualcpp | msvcmsys) | ||
13146 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
13147 | # not run yet. These depmodes are late enough in the game, and | ||
13148 | # so weak that their functioning should not be impacted. | ||
13149 | am__obj=conftest.${OBJEXT-o} | ||
13150 | am__minus_obj= | ||
13151 | ;; | ||
13152 | none) break ;; | ||
13153 | esac | ||
13154 | if depmode=$depmode \ | ||
13155 | source=sub/conftest.c object=$am__obj \ | ||
13156 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
13157 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
13158 | >/dev/null 2>conftest.err && | ||
13159 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
13160 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
13161 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
13162 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
13163 | # icc doesn't choke on unknown options, it will just issue warnings | ||
13164 | # or remarks (even with -Werror). So we grep stderr for any message | ||
13165 | # that says an option was ignored or not supported. | ||
13166 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
13167 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
13168 | # The diagnosis changed in icc 8.0: | ||
13169 | # icc: Command line remark: option '-MP' not supported | ||
13170 | if (grep 'ignoring option' conftest.err || | ||
13171 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
13172 | am_cv_CXX_dependencies_compiler_type=$depmode | ||
13173 | break | ||
13174 | fi | ||
13175 | fi | ||
13176 | done | ||
13177 | |||
13178 | cd .. | ||
13179 | rm -rf conftest.dir | ||
13180 | else | ||
13181 | am_cv_CXX_dependencies_compiler_type=none | ||
13182 | fi | ||
13183 | |||
13184 | fi | ||
13185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | ||
13186 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | ||
13187 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | ||
13188 | |||
13189 | if | ||
13190 | test "x$enable_dependency_tracking" != xno \ | ||
13191 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | ||
13192 | am__fastdepCXX_TRUE= | ||
13193 | am__fastdepCXX_FALSE='#' | ||
13194 | else | ||
13195 | am__fastdepCXX_TRUE='#' | ||
13196 | am__fastdepCXX_FALSE= | ||
13197 | fi | ||
13198 | |||
13199 | |||
13200 | |||
13201 | ac_ext=cpp | ||
13202 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
13203 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
13204 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13205 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
13206 | if test -z "$CXX"; then | ||
13207 | if test -n "$CCC"; then | ||
13208 | CXX=$CCC | ||
13209 | else | ||
13210 | if test -n "$ac_tool_prefix"; then | ||
13211 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | ||
13212 | do | ||
13213 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
13214 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
13215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
13216 | $as_echo_n "checking for $ac_word... " >&6; } | ||
13217 | if test "${ac_cv_prog_CXX+set}" = set; then : | ||
13218 | $as_echo_n "(cached) " >&6 | ||
13219 | else | ||
13220 | if test -n "$CXX"; then | ||
13221 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | ||
13222 | else | ||
13223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
13224 | for as_dir in $PATH | ||
13225 | do | ||
13226 | IFS=$as_save_IFS | ||
13227 | test -z "$as_dir" && as_dir=. | ||
13228 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
13229 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
13230 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | ||
13231 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
13232 | break 2 | ||
13233 | fi | ||
13234 | done | ||
13235 | done | ||
13236 | IFS=$as_save_IFS | ||
13237 | |||
13238 | fi | ||
13239 | fi | ||
13240 | CXX=$ac_cv_prog_CXX | ||
13241 | if test -n "$CXX"; then | ||
13242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | ||
13243 | $as_echo "$CXX" >&6; } | ||
13244 | else | ||
13245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13246 | $as_echo "no" >&6; } | ||
13247 | fi | ||
13248 | |||
13249 | |||
13250 | test -n "$CXX" && break | ||
13251 | done | ||
13252 | fi | ||
13253 | if test -z "$CXX"; then | ||
13254 | ac_ct_CXX=$CXX | ||
13255 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | ||
13256 | do | ||
13257 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
13258 | set dummy $ac_prog; ac_word=$2 | ||
13259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
13260 | $as_echo_n "checking for $ac_word... " >&6; } | ||
13261 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | ||
13262 | $as_echo_n "(cached) " >&6 | ||
13263 | else | ||
13264 | if test -n "$ac_ct_CXX"; then | ||
13265 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | ||
13266 | else | ||
13267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
13268 | for as_dir in $PATH | ||
13269 | do | ||
13270 | IFS=$as_save_IFS | ||
13271 | test -z "$as_dir" && as_dir=. | ||
13272 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
13273 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
13274 | ac_cv_prog_ac_ct_CXX="$ac_prog" | ||
13275 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
13276 | break 2 | ||
13277 | fi | ||
13278 | done | ||
13279 | done | ||
13280 | IFS=$as_save_IFS | ||
13281 | |||
13282 | fi | ||
13283 | fi | ||
13284 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | ||
13285 | if test -n "$ac_ct_CXX"; then | ||
13286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | ||
13287 | $as_echo "$ac_ct_CXX" >&6; } | ||
13288 | else | ||
13289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13290 | $as_echo "no" >&6; } | ||
13291 | fi | ||
13292 | |||
13293 | |||
13294 | test -n "$ac_ct_CXX" && break | ||
13295 | done | ||
13296 | |||
13297 | if test "x$ac_ct_CXX" = x; then | ||
13298 | CXX="g++" | ||
13299 | else | ||
13300 | case $cross_compiling:$ac_tool_warned in | ||
13301 | yes:) | ||
13302 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
13303 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
13304 | ac_tool_warned=yes ;; | ||
13305 | esac | ||
13306 | CXX=$ac_ct_CXX | ||
13307 | fi | ||
13308 | fi | ||
13309 | |||
13310 | fi | ||
13311 | fi | ||
13312 | # Provide some information about the compiler. | ||
13313 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | ||
13314 | set X $ac_compile | ||
13315 | ac_compiler=$2 | ||
13316 | for ac_option in --version -v -V -qversion; do | ||
13317 | { { ac_try="$ac_compiler $ac_option >&5" | ||
13318 | case "(($ac_try" in | ||
13319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13320 | *) ac_try_echo=$ac_try;; | ||
13321 | esac | ||
13322 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
13323 | $as_echo "$ac_try_echo"; } >&5 | ||
13324 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
13325 | ac_status=$? | ||
13326 | if test -s conftest.err; then | ||
13327 | sed '10a\ | ||
13328 | ... rest of stderr output deleted ... | ||
13329 | 10q' conftest.err >conftest.er1 | ||
13330 | cat conftest.er1 >&5 | ||
13331 | fi | ||
13332 | rm -f conftest.er1 conftest.err | ||
13333 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
13334 | test $ac_status = 0; } | ||
13335 | done | ||
13336 | |||
13337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | ||
13338 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | ||
13339 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | ||
13340 | $as_echo_n "(cached) " >&6 | ||
13341 | else | ||
13342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13343 | /* end confdefs.h. */ | ||
13344 | |||
13345 | int | ||
13346 | main () | ||
13347 | { | ||
13348 | #ifndef __GNUC__ | ||
13349 | choke me | ||
13350 | #endif | ||
13351 | |||
13352 | ; | ||
13353 | return 0; | ||
13354 | } | ||
13355 | _ACEOF | ||
13356 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
13357 | ac_compiler_gnu=yes | ||
13358 | else | ||
13359 | ac_compiler_gnu=no | ||
13360 | fi | ||
13361 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13362 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | ||
13363 | |||
13364 | fi | ||
13365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | ||
13366 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | ||
13367 | if test $ac_compiler_gnu = yes; then | ||
13368 | GXX=yes | ||
13369 | else | ||
13370 | GXX= | ||
13371 | fi | ||
13372 | ac_test_CXXFLAGS=${CXXFLAGS+set} | ||
13373 | ac_save_CXXFLAGS=$CXXFLAGS | ||
13374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | ||
13375 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | ||
13376 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | ||
13377 | $as_echo_n "(cached) " >&6 | ||
13378 | else | ||
13379 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | ||
13380 | ac_cxx_werror_flag=yes | ||
13381 | ac_cv_prog_cxx_g=no | ||
13382 | CXXFLAGS="-g" | ||
13383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13384 | /* end confdefs.h. */ | ||
13385 | |||
13386 | int | ||
13387 | main () | ||
13388 | { | ||
13389 | |||
13390 | ; | ||
13391 | return 0; | ||
13392 | } | ||
13393 | _ACEOF | ||
13394 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
13395 | ac_cv_prog_cxx_g=yes | ||
13396 | else | ||
13397 | CXXFLAGS="" | ||
13398 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13399 | /* end confdefs.h. */ | ||
13400 | |||
13401 | int | ||
13402 | main () | ||
13403 | { | ||
13404 | |||
13405 | ; | ||
13406 | return 0; | ||
13407 | } | ||
13408 | _ACEOF | ||
13409 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
13410 | |||
13411 | else | ||
13412 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
13413 | CXXFLAGS="-g" | ||
13414 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13415 | /* end confdefs.h. */ | ||
13416 | |||
13417 | int | ||
13418 | main () | ||
13419 | { | ||
13420 | |||
13421 | ; | ||
13422 | return 0; | ||
13423 | } | ||
13424 | _ACEOF | ||
13425 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
13426 | ac_cv_prog_cxx_g=yes | ||
13427 | fi | ||
13428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13429 | fi | ||
13430 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13431 | fi | ||
13432 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13433 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
13434 | fi | ||
13435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | ||
13436 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | ||
13437 | if test "$ac_test_CXXFLAGS" = set; then | ||
13438 | CXXFLAGS=$ac_save_CXXFLAGS | ||
13439 | elif test $ac_cv_prog_cxx_g = yes; then | ||
13440 | if test "$GXX" = yes; then | ||
13441 | CXXFLAGS="-g -O2" | ||
13442 | else | ||
13443 | CXXFLAGS="-g" | ||
13444 | fi | ||
13445 | else | ||
13446 | if test "$GXX" = yes; then | ||
13447 | CXXFLAGS="-O2" | ||
13448 | else | ||
13449 | CXXFLAGS= | ||
13450 | fi | ||
13451 | fi | ||
13452 | ac_ext=c | ||
13453 | ac_cpp='$CPP $CPPFLAGS' | ||
13454 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
13455 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13456 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
13457 | |||
13458 | depcc="$CXX" am_compiler_list= | ||
13459 | |||
13460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
13461 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
13462 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : | ||
13463 | $as_echo_n "(cached) " >&6 | ||
13464 | else | ||
13465 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
13466 | # We make a subdir and do the tests there. Otherwise we can end up | ||
13467 | # making bogus files that we don't know about and never remove. For | ||
13468 | # instance it was reported that on HP-UX the gcc test will end up | ||
13469 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
13470 | # in D'. | ||
13471 | mkdir conftest.dir | ||
13472 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
13473 | # using a relative directory. | ||
13474 | cp "$am_depcomp" conftest.dir | ||
13475 | cd conftest.dir | ||
13476 | # We will build objects and dependencies in a subdirectory because | ||
13477 | # it helps to detect inapplicable dependency modes. For instance | ||
13478 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
13479 | # side effect of compilation, but ICC will put the dependencies in | ||
13480 | # the current directory while Tru64 will put them in the object | ||
13481 | # directory. | ||
13482 | mkdir sub | ||
13483 | |||
13484 | am_cv_CXX_dependencies_compiler_type=none | ||
13485 | if test "$am_compiler_list" = ""; then | ||
13486 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
13487 | fi | ||
13488 | am__universal=false | ||
13489 | case " $depcc " in #( | ||
13490 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
13491 | esac | ||
13492 | |||
13493 | for depmode in $am_compiler_list; do | ||
13494 | # Setup a source with many dependencies, because some compilers | ||
13495 | # like to wrap large dependency lists on column 80 (with \), and | ||
13496 | # we should not choose a depcomp mode which is confused by this. | ||
13497 | # | ||
13498 | # We need to recreate these files for each test, as the compiler may | ||
13499 | # overwrite some of them when testing with obscure command lines. | ||
13500 | # This happens at least with the AIX C compiler. | ||
13501 | : > sub/conftest.c | ||
13502 | for i in 1 2 3 4 5 6; do | ||
13503 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
13504 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
13505 | # Solaris 8's {/usr,}/bin/sh. | ||
13506 | touch sub/conftst$i.h | ||
13507 | done | ||
13508 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
13509 | |||
13510 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
13511 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
13512 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
13513 | # versions had trouble with output in subdirs | ||
13514 | am__obj=sub/conftest.${OBJEXT-o} | ||
13515 | am__minus_obj="-o $am__obj" | ||
13516 | case $depmode in | ||
13517 | gcc) | ||
13518 | # This depmode causes a compiler race in universal mode. | ||
13519 | test "$am__universal" = false || continue | ||
13520 | ;; | ||
13521 | nosideeffect) | ||
13522 | # after this tag, mechanisms are not by side-effect, so they'll | ||
13523 | # only be used when explicitly requested | ||
13524 | if test "x$enable_dependency_tracking" = xyes; then | ||
13525 | continue | ||
13526 | else | ||
13527 | break | ||
13528 | fi | ||
13529 | ;; | ||
13530 | msvisualcpp | msvcmsys) | ||
13531 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
13532 | # not run yet. These depmodes are late enough in the game, and | ||
13533 | # so weak that their functioning should not be impacted. | ||
13534 | am__obj=conftest.${OBJEXT-o} | ||
13535 | am__minus_obj= | ||
13536 | ;; | ||
13537 | none) break ;; | ||
13538 | esac | ||
13539 | if depmode=$depmode \ | ||
13540 | source=sub/conftest.c object=$am__obj \ | ||
13541 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
13542 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
13543 | >/dev/null 2>conftest.err && | ||
13544 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
13545 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
13546 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
13547 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
13548 | # icc doesn't choke on unknown options, it will just issue warnings | ||
13549 | # or remarks (even with -Werror). So we grep stderr for any message | ||
13550 | # that says an option was ignored or not supported. | ||
13551 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
13552 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
13553 | # The diagnosis changed in icc 8.0: | ||
13554 | # icc: Command line remark: option '-MP' not supported | ||
13555 | if (grep 'ignoring option' conftest.err || | ||
13556 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
13557 | am_cv_CXX_dependencies_compiler_type=$depmode | ||
13558 | break | ||
13559 | fi | ||
13560 | fi | ||
13561 | done | ||
13562 | |||
13563 | cd .. | ||
13564 | rm -rf conftest.dir | ||
13565 | else | ||
13566 | am_cv_CXX_dependencies_compiler_type=none | ||
13567 | fi | ||
13568 | |||
13569 | fi | ||
13570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | ||
13571 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | ||
13572 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | ||
13573 | |||
13574 | if | ||
13575 | test "x$enable_dependency_tracking" != xno \ | ||
13576 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | ||
13577 | am__fastdepCXX_TRUE= | ||
13578 | am__fastdepCXX_FALSE='#' | ||
13579 | else | ||
13580 | am__fastdepCXX_TRUE='#' | ||
13581 | am__fastdepCXX_FALSE= | ||
13582 | fi | ||
13583 | |||
13584 | |||
13585 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | ||
13586 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | ||
13587 | (test "X$CXX" != "Xg++"))) ; then | ||
13588 | ac_ext=cpp | ||
13589 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
13590 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
13591 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13592 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
13593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | ||
13594 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | ||
13595 | if test -z "$CXXCPP"; then | ||
13596 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | ||
13597 | $as_echo_n "(cached) " >&6 | ||
13598 | else | ||
13599 | # Double quotes because CXXCPP needs to be expanded | ||
13600 | for CXXCPP in "$CXX -E" "/lib/cpp" | ||
13601 | do | ||
13602 | ac_preproc_ok=false | ||
13603 | for ac_cxx_preproc_warn_flag in '' yes | ||
13604 | do | ||
13605 | # Use a header file that comes with gcc, so configuring glibc | ||
13606 | # with a fresh cross-compiler works. | ||
13607 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13608 | # <limits.h> exists even on freestanding compilers. | ||
13609 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
13610 | # not just through cpp. "Syntax error" is here to catch this case. | ||
13611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13612 | /* end confdefs.h. */ | ||
13613 | #ifdef __STDC__ | ||
13614 | # include <limits.h> | ||
13615 | #else | ||
13616 | # include <assert.h> | ||
13617 | #endif | ||
13618 | Syntax error | ||
13619 | _ACEOF | ||
13620 | if ac_fn_cxx_try_cpp "$LINENO"; then : | ||
13621 | |||
13622 | else | ||
13623 | # Broken: fails on valid input. | ||
13624 | continue | ||
13625 | fi | ||
13626 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
13627 | |||
13628 | # OK, works on sane cases. Now check whether nonexistent headers | ||
13629 | # can be detected and how. | ||
13630 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13631 | /* end confdefs.h. */ | ||
13632 | #include <ac_nonexistent.h> | ||
13633 | _ACEOF | ||
13634 | if ac_fn_cxx_try_cpp "$LINENO"; then : | ||
13635 | # Broken: success on invalid input. | ||
13636 | continue | ||
13637 | else | ||
13638 | # Passes both tests. | ||
13639 | ac_preproc_ok=: | ||
13640 | break | ||
13641 | fi | ||
13642 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
13643 | |||
13644 | done | ||
13645 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
13646 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
13647 | if $ac_preproc_ok; then : | ||
13648 | break | ||
13649 | fi | ||
13650 | |||
13651 | done | ||
13652 | ac_cv_prog_CXXCPP=$CXXCPP | ||
13653 | |||
13654 | fi | ||
13655 | CXXCPP=$ac_cv_prog_CXXCPP | ||
13656 | else | ||
13657 | ac_cv_prog_CXXCPP=$CXXCPP | ||
13658 | fi | ||
13659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | ||
13660 | $as_echo "$CXXCPP" >&6; } | ||
13661 | ac_preproc_ok=false | ||
13662 | for ac_cxx_preproc_warn_flag in '' yes | ||
13663 | do | ||
13664 | # Use a header file that comes with gcc, so configuring glibc | ||
13665 | # with a fresh cross-compiler works. | ||
13666 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13667 | # <limits.h> exists even on freestanding compilers. | ||
13668 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
13669 | # not just through cpp. "Syntax error" is here to catch this case. | ||
13670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13671 | /* end confdefs.h. */ | ||
13672 | #ifdef __STDC__ | ||
13673 | # include <limits.h> | ||
13674 | #else | ||
13675 | # include <assert.h> | ||
13676 | #endif | ||
13677 | Syntax error | ||
13678 | _ACEOF | ||
13679 | if ac_fn_cxx_try_cpp "$LINENO"; then : | ||
13680 | |||
13681 | else | ||
13682 | # Broken: fails on valid input. | ||
13683 | continue | ||
13684 | fi | ||
13685 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
13686 | |||
13687 | # OK, works on sane cases. Now check whether nonexistent headers | ||
13688 | # can be detected and how. | ||
13689 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13690 | /* end confdefs.h. */ | ||
13691 | #include <ac_nonexistent.h> | ||
13692 | _ACEOF | ||
13693 | if ac_fn_cxx_try_cpp "$LINENO"; then : | ||
13694 | # Broken: success on invalid input. | ||
13695 | continue | ||
13696 | else | ||
13697 | # Passes both tests. | ||
13698 | ac_preproc_ok=: | ||
13699 | break | ||
13700 | fi | ||
13701 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
13702 | |||
13703 | done | ||
13704 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
13705 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
13706 | if $ac_preproc_ok; then : | ||
13707 | |||
13708 | else | ||
13709 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
13710 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
13711 | _lt_caught_CXX_error=yes; } | ||
13712 | fi | ||
13713 | |||
13714 | ac_ext=c | ||
13715 | ac_cpp='$CPP $CPPFLAGS' | ||
13716 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
13717 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13718 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
13719 | |||
13720 | else | ||
13721 | _lt_caught_CXX_error=yes | ||
13722 | fi | ||
13723 | |||
13724 | |||
13725 | |||
13726 | |||
13727 | ac_ext=cpp | ||
13728 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
13729 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
13730 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13731 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
13732 | |||
13733 | archive_cmds_need_lc_CXX=no | ||
13734 | allow_undefined_flag_CXX= | ||
13735 | always_export_symbols_CXX=no | ||
13736 | archive_expsym_cmds_CXX= | ||
13737 | compiler_needs_object_CXX=no | ||
13738 | export_dynamic_flag_spec_CXX= | ||
13739 | hardcode_direct_CXX=no | ||
13740 | hardcode_direct_absolute_CXX=no | ||
13741 | hardcode_libdir_flag_spec_CXX= | ||
13742 | hardcode_libdir_flag_spec_ld_CXX= | ||
13743 | hardcode_libdir_separator_CXX= | ||
13744 | hardcode_minus_L_CXX=no | ||
13745 | hardcode_shlibpath_var_CXX=unsupported | ||
13746 | hardcode_automatic_CXX=no | ||
13747 | inherit_rpath_CXX=no | ||
13748 | module_cmds_CXX= | ||
13749 | module_expsym_cmds_CXX= | ||
13750 | link_all_deplibs_CXX=unknown | ||
13751 | old_archive_cmds_CXX=$old_archive_cmds | ||
13752 | no_undefined_flag_CXX= | ||
13753 | whole_archive_flag_spec_CXX= | ||
13754 | enable_shared_with_static_runtimes_CXX=no | ||
13755 | |||
13756 | # Source file extension for C++ test sources. | ||
13757 | ac_ext=cpp | ||
13758 | |||
13759 | # Object file extension for compiled C++ test sources. | ||
13760 | objext=o | ||
13761 | objext_CXX=$objext | ||
13762 | |||
13763 | # No sense in running all these tests if we already determined that | ||
13764 | # the CXX compiler isn't working. Some variables (like enable_shared) | ||
13765 | # are currently assumed to apply to all compilers on this platform, | ||
13766 | # and will be corrupted by setting them based on a non-working compiler. | ||
13767 | if test "$_lt_caught_CXX_error" != yes; then | ||
13768 | # Code to be used in simple compile tests | ||
13769 | lt_simple_compile_test_code="int some_variable = 0;" | ||
13770 | |||
13771 | # Code to be used in simple link tests | ||
13772 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | ||
13773 | |||
13774 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
13775 | |||
13776 | |||
13777 | |||
13778 | |||
13779 | |||
13780 | |||
13781 | # If no C compiler was specified, use CC. | ||
13782 | LTCC=${LTCC-"$CC"} | ||
13783 | |||
13784 | # If no C compiler flags were specified, use CFLAGS. | ||
13785 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
13786 | |||
13787 | # Allow CC to be a program name with arguments. | ||
13788 | compiler=$CC | ||
13789 | |||
13790 | |||
13791 | # save warnings/boilerplate of simple test code | ||
13792 | ac_outfile=conftest.$ac_objext | ||
13793 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
13794 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
13795 | _lt_compiler_boilerplate=`cat conftest.err` | ||
13796 | $RM conftest* | ||
13797 | |||
13798 | ac_outfile=conftest.$ac_objext | ||
13799 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | ||
13800 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
13801 | _lt_linker_boilerplate=`cat conftest.err` | ||
13802 | $RM -r conftest* | ||
13803 | |||
13804 | |||
13805 | # Allow CC to be a program name with arguments. | ||
13806 | lt_save_CC=$CC | ||
13807 | lt_save_LD=$LD | ||
13808 | lt_save_GCC=$GCC | ||
13809 | GCC=$GXX | ||
13810 | lt_save_with_gnu_ld=$with_gnu_ld | ||
13811 | lt_save_path_LD=$lt_cv_path_LD | ||
13812 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | ||
13813 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | ||
13814 | else | ||
13815 | $as_unset lt_cv_prog_gnu_ld | ||
13816 | fi | ||
13817 | if test -n "${lt_cv_path_LDCXX+set}"; then | ||
13818 | lt_cv_path_LD=$lt_cv_path_LDCXX | ||
13819 | else | ||
13820 | $as_unset lt_cv_path_LD | ||
13821 | fi | ||
13822 | test -z "${LDCXX+set}" || LD=$LDCXX | ||
13823 | CC=${CXX-"c++"} | ||
13824 | compiler=$CC | ||
13825 | compiler_CXX=$CC | ||
13826 | for cc_temp in $compiler""; do | ||
13827 | case $cc_temp in | ||
13828 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | ||
13829 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | ||
13830 | \-*) ;; | ||
13831 | *) break;; | ||
13832 | esac | ||
13833 | done | ||
13834 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
13835 | |||
13836 | |||
13837 | if test -n "$compiler"; then | ||
13838 | # We don't want -fno-exception when compiling C++ code, so set the | ||
13839 | # no_builtin_flag separately | ||
13840 | if test "$GXX" = yes; then | ||
13841 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | ||
13842 | else | ||
13843 | lt_prog_compiler_no_builtin_flag_CXX= | ||
13844 | fi | ||
13845 | |||
13846 | if test "$GXX" = yes; then | ||
13847 | # Set up default GNU C++ configuration | ||
13848 | |||
13849 | |||
13850 | |||
13851 | # Check whether --with-gnu-ld was given. | ||
13852 | if test "${with_gnu_ld+set}" = set; then : | ||
13853 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | ||
13854 | else | ||
13855 | with_gnu_ld=no | ||
13856 | fi | ||
13857 | |||
13858 | ac_prog=ld | ||
13859 | if test "$GCC" = yes; then | ||
13860 | # Check if gcc -print-prog-name=ld gives a path. | ||
13861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | ||
13862 | $as_echo_n "checking for ld used by $CC... " >&6; } | ||
13863 | case $host in | ||
13864 | *-*-mingw*) | ||
13865 | # gcc leaves a trailing carriage return which upsets mingw | ||
13866 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
13867 | *) | ||
13868 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
13869 | esac | ||
13870 | case $ac_prog in | ||
13871 | # Accept absolute paths. | ||
13872 | [\\/]* | ?:[\\/]*) | ||
13873 | re_direlt='/[^/][^/]*/\.\./' | ||
13874 | # Canonicalize the pathname of ld | ||
13875 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | ||
13876 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | ||
13877 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | ||
13878 | done | ||
13879 | test -z "$LD" && LD="$ac_prog" | ||
13880 | ;; | ||
13881 | "") | ||
13882 | # If it fails, then pretend we aren't using GCC. | ||
13883 | ac_prog=ld | ||
13884 | ;; | ||
13885 | *) | ||
13886 | # If it is relative, then search for the first ld in PATH. | ||
13887 | with_gnu_ld=unknown | ||
13888 | ;; | ||
13889 | esac | ||
13890 | elif test "$with_gnu_ld" = yes; then | ||
13891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | ||
13892 | $as_echo_n "checking for GNU ld... " >&6; } | ||
13893 | else | ||
13894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | ||
13895 | $as_echo_n "checking for non-GNU ld... " >&6; } | ||
13896 | fi | ||
13897 | if test "${lt_cv_path_LD+set}" = set; then : | ||
13898 | $as_echo_n "(cached) " >&6 | ||
13899 | else | ||
13900 | if test -z "$LD"; then | ||
13901 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
13902 | for ac_dir in $PATH; do | ||
13903 | IFS="$lt_save_ifs" | ||
13904 | test -z "$ac_dir" && ac_dir=. | ||
13905 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
13906 | lt_cv_path_LD="$ac_dir/$ac_prog" | ||
13907 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
13908 | # but apparently some variants of GNU ld only accept -v. | ||
13909 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
13910 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
13911 | *GNU* | *'with BFD'*) | ||
13912 | test "$with_gnu_ld" != no && break | ||
13913 | ;; | ||
13914 | *) | ||
13915 | test "$with_gnu_ld" != yes && break | ||
13916 | ;; | ||
13917 | esac | ||
13918 | fi | ||
13919 | done | ||
13920 | IFS="$lt_save_ifs" | ||
13921 | else | ||
13922 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
13923 | fi | ||
13924 | fi | ||
13925 | |||
13926 | LD="$lt_cv_path_LD" | ||
13927 | if test -n "$LD"; then | ||
13928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | ||
13929 | $as_echo "$LD" >&6; } | ||
13930 | else | ||
13931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13932 | $as_echo "no" >&6; } | ||
13933 | fi | ||
13934 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | ||
13935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | ||
13936 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | ||
13937 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | ||
13938 | $as_echo_n "(cached) " >&6 | ||
13939 | else | ||
13940 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | ||
13941 | case `$LD -v 2>&1 </dev/null` in | ||
13942 | *GNU* | *'with BFD'*) | ||
13943 | lt_cv_prog_gnu_ld=yes | ||
13944 | ;; | ||
13945 | *) | ||
13946 | lt_cv_prog_gnu_ld=no | ||
13947 | ;; | ||
13948 | esac | ||
13949 | fi | ||
13950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | ||
13951 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | ||
13952 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
13953 | |||
13954 | |||
13955 | |||
13956 | |||
13957 | |||
13958 | |||
13959 | |||
13960 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | ||
13961 | # archiving commands below assume that GNU ld is being used. | ||
13962 | if test "$with_gnu_ld" = yes; then | ||
13963 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
13964 | 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' | ||
13965 | |||
13966 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
13967 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
13968 | |||
13969 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
13970 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | ||
13971 | # investigate it a little bit more. (MM) | ||
13972 | wlarc='${wl}' | ||
13973 | |||
13974 | # ancient GNU ld didn't support --whole-archive et. al. | ||
13975 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | ||
13976 | $GREP 'no-whole-archive' > /dev/null; then | ||
13977 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
13978 | else | ||
13979 | whole_archive_flag_spec_CXX= | ||
13980 | fi | ||
13981 | else | ||
13982 | with_gnu_ld=no | ||
13983 | wlarc= | ||
13984 | |||
13985 | # A generic and very simple default shared library creation | ||
13986 | # command for GNU C++ for the case where it uses the native | ||
13987 | # linker, instead of GNU ld. If possible, this setting should | ||
13988 | # overridden to take advantage of the native linker features on | ||
13989 | # the platform it is being used on. | ||
13990 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | ||
13991 | fi | ||
13992 | |||
13993 | # Commands to make compiler produce verbose output that lists | ||
13994 | # what "hidden" libraries, object files and flags are used when | ||
13995 | # linking a shared library. | ||
13996 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | ||
13997 | |||
13998 | else | ||
13999 | GXX=no | ||
14000 | with_gnu_ld=no | ||
14001 | wlarc= | ||
14002 | fi | ||
14003 | |||
14004 | # PORTME: fill in a description of your system's C++ link characteristics | ||
14005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
14006 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | ||
14007 | ld_shlibs_CXX=yes | ||
14008 | case $host_os in | ||
14009 | aix3*) | ||
14010 | # FIXME: insert proper C++ library support | ||
14011 | ld_shlibs_CXX=no | ||
14012 | ;; | ||
14013 | aix[4-9]*) | ||
14014 | if test "$host_cpu" = ia64; then | ||
14015 | # On IA64, the linker does run time linking by default, so we don't | ||
14016 | # have to do anything special. | ||
14017 | aix_use_runtimelinking=no | ||
14018 | exp_sym_flag='-Bexport' | ||
14019 | no_entry_flag="" | ||
14020 | else | ||
14021 | aix_use_runtimelinking=no | ||
14022 | |||
14023 | # Test if we are trying to use run time linking or normal | ||
14024 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
14025 | # need to do runtime linking. | ||
14026 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | ||
14027 | for ld_flag in $LDFLAGS; do | ||
14028 | case $ld_flag in | ||
14029 | *-brtl*) | ||
14030 | aix_use_runtimelinking=yes | ||
14031 | break | ||
14032 | ;; | ||
14033 | esac | ||
14034 | done | ||
14035 | ;; | ||
14036 | esac | ||
14037 | |||
14038 | exp_sym_flag='-bexport' | ||
14039 | no_entry_flag='-bnoentry' | ||
14040 | fi | ||
14041 | |||
14042 | # When large executables or shared objects are built, AIX ld can | ||
14043 | # have problems creating the table of contents. If linking a library | ||
14044 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
14045 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
14046 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
14047 | |||
14048 | archive_cmds_CXX='' | ||
14049 | hardcode_direct_CXX=yes | ||
14050 | hardcode_direct_absolute_CXX=yes | ||
14051 | hardcode_libdir_separator_CXX=':' | ||
14052 | link_all_deplibs_CXX=yes | ||
14053 | file_list_spec_CXX='${wl}-f,' | ||
14054 | |||
14055 | if test "$GXX" = yes; then | ||
14056 | case $host_os in aix4.[012]|aix4.[012].*) | ||
14057 | # We only want to do this on AIX 4.2 and lower, the check | ||
14058 | # below for broken collect2 doesn't work under 4.3+ | ||
14059 | collect2name=`${CC} -print-prog-name=collect2` | ||
14060 | if test -f "$collect2name" && | ||
14061 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | ||
14062 | then | ||
14063 | # We have reworked collect2 | ||
14064 | : | ||
14065 | else | ||
14066 | # We have old collect2 | ||
14067 | hardcode_direct_CXX=unsupported | ||
14068 | # It fails to find uninstalled libraries when the uninstalled | ||
14069 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
14070 | # to unsupported forces relinking | ||
14071 | hardcode_minus_L_CXX=yes | ||
14072 | hardcode_libdir_flag_spec_CXX='-L$libdir' | ||
14073 | hardcode_libdir_separator_CXX= | ||
14074 | fi | ||
14075 | esac | ||
14076 | shared_flag='-shared' | ||
14077 | if test "$aix_use_runtimelinking" = yes; then | ||
14078 | shared_flag="$shared_flag "'${wl}-G' | ||
14079 | fi | ||
14080 | else | ||
14081 | # not using gcc | ||
14082 | if test "$host_cpu" = ia64; then | ||
14083 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
14084 | # chokes on -Wl,-G. The following line is correct: | ||
14085 | shared_flag='-G' | ||
14086 | else | ||
14087 | if test "$aix_use_runtimelinking" = yes; then | ||
14088 | shared_flag='${wl}-G' | ||
14089 | else | ||
14090 | shared_flag='${wl}-bM:SRE' | ||
14091 | fi | ||
14092 | fi | ||
14093 | fi | ||
14094 | |||
14095 | export_dynamic_flag_spec_CXX='${wl}-bexpall' | ||
14096 | # It seems that -bexpall does not export symbols beginning with | ||
14097 | # underscore (_), so it is better to generate a list of symbols to | ||
14098 | # export. | ||
14099 | always_export_symbols_CXX=yes | ||
14100 | if test "$aix_use_runtimelinking" = yes; then | ||
14101 | # Warning - without using the other runtime loading flags (-brtl), | ||
14102 | # -berok will link without error, but may produce a broken library. | ||
14103 | allow_undefined_flag_CXX='-berok' | ||
14104 | # Determine the default libpath from the value encoded in an empty | ||
14105 | # executable. | ||
14106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14107 | /* end confdefs.h. */ | ||
14108 | |||
14109 | int | ||
14110 | main () | ||
14111 | { | ||
14112 | |||
14113 | ; | ||
14114 | return 0; | ||
14115 | } | ||
14116 | _ACEOF | ||
14117 | if ac_fn_cxx_try_link "$LINENO"; then : | ||
14118 | |||
14119 | lt_aix_libpath_sed=' | ||
14120 | /Import File Strings/,/^$/ { | ||
14121 | /^0/ { | ||
14122 | s/^0 *\(.*\)$/\1/ | ||
14123 | p | ||
14124 | } | ||
14125 | }' | ||
14126 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
14127 | # Check for a 64-bit object if we didn't find anything. | ||
14128 | if test -z "$aix_libpath"; then | ||
14129 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
14130 | fi | ||
14131 | fi | ||
14132 | rm -f core conftest.err conftest.$ac_objext \ | ||
14133 | conftest$ac_exeext conftest.$ac_ext | ||
14134 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
14135 | |||
14136 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
14137 | |||
14138 | 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" | ||
14139 | else | ||
14140 | if test "$host_cpu" = ia64; then | ||
14141 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | ||
14142 | allow_undefined_flag_CXX="-z nodefs" | ||
14143 | 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" | ||
14144 | else | ||
14145 | # Determine the default libpath from the value encoded in an | ||
14146 | # empty executable. | ||
14147 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14148 | /* end confdefs.h. */ | ||
14149 | |||
14150 | int | ||
14151 | main () | ||
14152 | { | ||
14153 | |||
14154 | ; | ||
14155 | return 0; | ||
14156 | } | ||
14157 | _ACEOF | ||
14158 | if ac_fn_cxx_try_link "$LINENO"; then : | ||
14159 | |||
14160 | lt_aix_libpath_sed=' | ||
14161 | /Import File Strings/,/^$/ { | ||
14162 | /^0/ { | ||
14163 | s/^0 *\(.*\)$/\1/ | ||
14164 | p | ||
14165 | } | ||
14166 | }' | ||
14167 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
14168 | # Check for a 64-bit object if we didn't find anything. | ||
14169 | if test -z "$aix_libpath"; then | ||
14170 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
14171 | fi | ||
14172 | fi | ||
14173 | rm -f core conftest.err conftest.$ac_objext \ | ||
14174 | conftest$ac_exeext conftest.$ac_ext | ||
14175 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
14176 | |||
14177 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
14178 | # Warning - without using the other run time loading flags, | ||
14179 | # -berok will link without error, but may produce a broken library. | ||
14180 | no_undefined_flag_CXX=' ${wl}-bernotok' | ||
14181 | allow_undefined_flag_CXX=' ${wl}-berok' | ||
14182 | # Exported symbols can be pulled into shared objects from archives | ||
14183 | whole_archive_flag_spec_CXX='$convenience' | ||
14184 | archive_cmds_need_lc_CXX=yes | ||
14185 | # This is similar to how AIX traditionally builds its shared | ||
14186 | # libraries. | ||
14187 | 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' | ||
14188 | fi | ||
14189 | fi | ||
14190 | ;; | ||
14191 | |||
14192 | beos*) | ||
14193 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | ||
14194 | allow_undefined_flag_CXX=unsupported | ||
14195 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
14196 | # support --undefined. This deserves some investigation. FIXME | ||
14197 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
14198 | else | ||
14199 | ld_shlibs_CXX=no | ||
14200 | fi | ||
14201 | ;; | ||
14202 | |||
14203 | chorus*) | ||
14204 | case $cc_basename in | ||
14205 | *) | ||
14206 | # FIXME: insert proper C++ library support | ||
14207 | ld_shlibs_CXX=no | ||
14208 | ;; | ||
14209 | esac | ||
14210 | ;; | ||
14211 | |||
14212 | cygwin* | mingw* | pw32* | cegcc*) | ||
14213 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | ||
14214 | # as there is no search path for DLLs. | ||
14215 | hardcode_libdir_flag_spec_CXX='-L$libdir' | ||
14216 | allow_undefined_flag_CXX=unsupported | ||
14217 | always_export_symbols_CXX=no | ||
14218 | enable_shared_with_static_runtimes_CXX=yes | ||
14219 | |||
14220 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | ||
14221 | 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' | ||
14222 | # If the export-symbols file already is a .def file (1st line | ||
14223 | # is EXPORTS), use it as is; otherwise, prepend... | ||
14224 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
14225 | cp $export_symbols $output_objdir/$soname.def; | ||
14226 | else | ||
14227 | echo EXPORTS > $output_objdir/$soname.def; | ||
14228 | cat $export_symbols >> $output_objdir/$soname.def; | ||
14229 | fi~ | ||
14230 | $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' | ||
14231 | else | ||
14232 | ld_shlibs_CXX=no | ||
14233 | fi | ||
14234 | ;; | ||
14235 | darwin* | rhapsody*) | ||
14236 | |||
14237 | |||
14238 | archive_cmds_need_lc_CXX=no | ||
14239 | hardcode_direct_CXX=no | ||
14240 | hardcode_automatic_CXX=yes | ||
14241 | hardcode_shlibpath_var_CXX=unsupported | ||
14242 | whole_archive_flag_spec_CXX='' | ||
14243 | link_all_deplibs_CXX=yes | ||
14244 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | ||
14245 | case $cc_basename in | ||
14246 | ifort*) _lt_dar_can_shared=yes ;; | ||
14247 | *) _lt_dar_can_shared=$GCC ;; | ||
14248 | esac | ||
14249 | if test "$_lt_dar_can_shared" = "yes"; then | ||
14250 | output_verbose_link_cmd=echo | ||
14251 | 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}" | ||
14252 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | ||
14253 | 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}" | ||
14254 | 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}" | ||
14255 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | ||
14256 | 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}" | ||
14257 | 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}" | ||
14258 | fi | ||
14259 | |||
14260 | else | ||
14261 | ld_shlibs_CXX=no | ||
14262 | fi | ||
14263 | |||
14264 | ;; | ||
14265 | |||
14266 | dgux*) | ||
14267 | case $cc_basename in | ||
14268 | ec++*) | ||
14269 | # FIXME: insert proper C++ library support | ||
14270 | ld_shlibs_CXX=no | ||
14271 | ;; | ||
14272 | ghcx*) | ||
14273 | # Green Hills C++ Compiler | ||
14274 | # FIXME: insert proper C++ library support | ||
14275 | ld_shlibs_CXX=no | ||
14276 | ;; | ||
14277 | *) | ||
14278 | # FIXME: insert proper C++ library support | ||
14279 | ld_shlibs_CXX=no | ||
14280 | ;; | ||
14281 | esac | ||
14282 | ;; | ||
14283 | |||
14284 | freebsd[12]*) | ||
14285 | # C++ shared libraries reported to be fairly broken before | ||
14286 | # switch to ELF | ||
14287 | ld_shlibs_CXX=no | ||
14288 | ;; | ||
14289 | |||
14290 | freebsd-elf*) | ||
14291 | archive_cmds_need_lc_CXX=no | ||
14292 | ;; | ||
14293 | |||
14294 | freebsd* | dragonfly*) | ||
14295 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | ||
14296 | # conventions | ||
14297 | ld_shlibs_CXX=yes | ||
14298 | ;; | ||
14299 | |||
14300 | gnu*) | ||
14301 | ;; | ||
14302 | |||
14303 | hpux9*) | ||
14304 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | ||
14305 | hardcode_libdir_separator_CXX=: | ||
14306 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
14307 | hardcode_direct_CXX=yes | ||
14308 | hardcode_minus_L_CXX=yes # Not in the search PATH, | ||
14309 | # but as the default | ||
14310 | # location of the library. | ||
14311 | |||
14312 | case $cc_basename in | ||
14313 | CC*) | ||
14314 | # FIXME: insert proper C++ library support | ||
14315 | ld_shlibs_CXX=no | ||
14316 | ;; | ||
14317 | aCC*) | ||
14318 | 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' | ||
14319 | # Commands to make compiler produce verbose output that lists | ||
14320 | # what "hidden" libraries, object files and flags are used when | ||
14321 | # linking a shared library. | ||
14322 | # | ||
14323 | # There doesn't appear to be a way to prevent this compiler from | ||
14324 | # explicitly linking system object files so we need to strip them | ||
14325 | # from the output so that they don't get included in the library | ||
14326 | # dependencies. | ||
14327 | 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' | ||
14328 | ;; | ||
14329 | *) | ||
14330 | if test "$GXX" = yes; then | ||
14331 | 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' | ||
14332 | else | ||
14333 | # FIXME: insert proper C++ library support | ||
14334 | ld_shlibs_CXX=no | ||
14335 | fi | ||
14336 | ;; | ||
14337 | esac | ||
14338 | ;; | ||
14339 | |||
14340 | hpux10*|hpux11*) | ||
14341 | if test $with_gnu_ld = no; then | ||
14342 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | ||
14343 | hardcode_libdir_separator_CXX=: | ||
14344 | |||
14345 | case $host_cpu in | ||
14346 | hppa*64*|ia64*) | ||
14347 | ;; | ||
14348 | *) | ||
14349 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
14350 | ;; | ||
14351 | esac | ||
14352 | fi | ||
14353 | case $host_cpu in | ||
14354 | hppa*64*|ia64*) | ||
14355 | hardcode_direct_CXX=no | ||
14356 | hardcode_shlibpath_var_CXX=no | ||
14357 | ;; | ||
14358 | *) | ||
14359 | hardcode_direct_CXX=yes | ||
14360 | hardcode_direct_absolute_CXX=yes | ||
14361 | hardcode_minus_L_CXX=yes # Not in the search PATH, | ||
14362 | # but as the default | ||
14363 | # location of the library. | ||
14364 | ;; | ||
14365 | esac | ||
14366 | |||
14367 | case $cc_basename in | ||
14368 | CC*) | ||
14369 | # FIXME: insert proper C++ library support | ||
14370 | ld_shlibs_CXX=no | ||
14371 | ;; | ||
14372 | aCC*) | ||
14373 | case $host_cpu in | ||
14374 | hppa*64*) | ||
14375 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
14376 | ;; | ||
14377 | ia64*) | ||
14378 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
14379 | ;; | ||
14380 | *) | ||
14381 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
14382 | ;; | ||
14383 | esac | ||
14384 | # Commands to make compiler produce verbose output that lists | ||
14385 | # what "hidden" libraries, object files and flags are used when | ||
14386 | # linking a shared library. | ||
14387 | # | ||
14388 | # There doesn't appear to be a way to prevent this compiler from | ||
14389 | # explicitly linking system object files so we need to strip them | ||
14390 | # from the output so that they don't get included in the library | ||
14391 | # dependencies. | ||
14392 | 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' | ||
14393 | ;; | ||
14394 | *) | ||
14395 | if test "$GXX" = yes; then | ||
14396 | if test $with_gnu_ld = no; then | ||
14397 | case $host_cpu in | ||
14398 | hppa*64*) | ||
14399 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
14400 | ;; | ||
14401 | ia64*) | ||
14402 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
14403 | ;; | ||
14404 | *) | ||
14405 | 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' | ||
14406 | ;; | ||
14407 | esac | ||
14408 | fi | ||
14409 | else | ||
14410 | # FIXME: insert proper C++ library support | ||
14411 | ld_shlibs_CXX=no | ||
14412 | fi | ||
14413 | ;; | ||
14414 | esac | ||
14415 | ;; | ||
14416 | |||
14417 | interix[3-9]*) | ||
14418 | hardcode_direct_CXX=no | ||
14419 | hardcode_shlibpath_var_CXX=no | ||
14420 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
14421 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
14422 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
14423 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
14424 | # default) and relocated if they conflict, which is a slow very memory | ||
14425 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
14426 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
14427 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
14428 | 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' | ||
14429 | 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' | ||
14430 | ;; | ||
14431 | irix5* | irix6*) | ||
14432 | case $cc_basename in | ||
14433 | CC*) | ||
14434 | # SGI C++ | ||
14435 | 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' | ||
14436 | |||
14437 | # Archives containing C++ object files must be created using | ||
14438 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | ||
14439 | # necessary to make sure instantiated templates are included | ||
14440 | # in the archive. | ||
14441 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | ||
14442 | ;; | ||
14443 | *) | ||
14444 | if test "$GXX" = yes; then | ||
14445 | if test "$with_gnu_ld" = no; then | ||
14446 | 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' | ||
14447 | else | ||
14448 | 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' | ||
14449 | fi | ||
14450 | fi | ||
14451 | link_all_deplibs_CXX=yes | ||
14452 | ;; | ||
14453 | esac | ||
14454 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
14455 | hardcode_libdir_separator_CXX=: | ||
14456 | inherit_rpath_CXX=yes | ||
14457 | ;; | ||
14458 | |||
14459 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
14460 | case $cc_basename in | ||
14461 | KCC*) | ||
14462 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
14463 | |||
14464 | # KCC will only create a shared library if the output file | ||
14465 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
14466 | # to its proper name (with version) after linking. | ||
14467 | 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' | ||
14468 | 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' | ||
14469 | # Commands to make compiler produce verbose output that lists | ||
14470 | # what "hidden" libraries, object files and flags are used when | ||
14471 | # linking a shared library. | ||
14472 | # | ||
14473 | # There doesn't appear to be a way to prevent this compiler from | ||
14474 | # explicitly linking system object files so we need to strip them | ||
14475 | # from the output so that they don't get included in the library | ||
14476 | # dependencies. | ||
14477 | 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' | ||
14478 | |||
14479 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
14480 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
14481 | |||
14482 | # Archives containing C++ object files must be created using | ||
14483 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | ||
14484 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | ||
14485 | ;; | ||
14486 | icpc* | ecpc* ) | ||
14487 | # Intel C++ | ||
14488 | with_gnu_ld=yes | ||
14489 | # version 8.0 and above of icpc choke on multiply defined symbols | ||
14490 | # if we add $predep_objects and $postdep_objects, however 7.1 and | ||
14491 | # earlier do not add the objects themselves. | ||
14492 | case `$CC -V 2>&1` in | ||
14493 | *"Version 7."*) | ||
14494 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
14495 | 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' | ||
14496 | ;; | ||
14497 | *) # Version 8.0 or newer | ||
14498 | tmp_idyn= | ||
14499 | case $host_cpu in | ||
14500 | ia64*) tmp_idyn=' -i_dynamic';; | ||
14501 | esac | ||
14502 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
14503 | 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' | ||
14504 | ;; | ||
14505 | esac | ||
14506 | archive_cmds_need_lc_CXX=no | ||
14507 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
14508 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
14509 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | ||
14510 | ;; | ||
14511 | pgCC* | pgcpp*) | ||
14512 | # Portland Group C++ compiler | ||
14513 | case `$CC -V` in | ||
14514 | *pgCC\ [1-5]* | *pgcpp\ [1-5]*) | ||
14515 | prelink_cmds_CXX='tpldir=Template.dir~ | ||
14516 | rm -rf $tpldir~ | ||
14517 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | ||
14518 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | ||
14519 | old_archive_cmds_CXX='tpldir=Template.dir~ | ||
14520 | rm -rf $tpldir~ | ||
14521 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | ||
14522 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | ||
14523 | $RANLIB $oldlib' | ||
14524 | archive_cmds_CXX='tpldir=Template.dir~ | ||
14525 | rm -rf $tpldir~ | ||
14526 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | ||
14527 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | ||
14528 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | ||
14529 | rm -rf $tpldir~ | ||
14530 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | ||
14531 | $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' | ||
14532 | ;; | ||
14533 | *) # Version 6 will use weak symbols | ||
14534 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | ||
14535 | 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' | ||
14536 | ;; | ||
14537 | esac | ||
14538 | |||
14539 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | ||
14540 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
14541 | 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' | ||
14542 | ;; | ||
14543 | cxx*) | ||
14544 | # Compaq C++ | ||
14545 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
14546 | 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' | ||
14547 | |||
14548 | runpath_var=LD_RUN_PATH | ||
14549 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | ||
14550 | hardcode_libdir_separator_CXX=: | ||
14551 | |||
14552 | # Commands to make compiler produce verbose output that lists | ||
14553 | # what "hidden" libraries, object files and flags are used when | ||
14554 | # linking a shared library. | ||
14555 | # | ||
14556 | # There doesn't appear to be a way to prevent this compiler from | ||
14557 | # explicitly linking system object files so we need to strip them | ||
14558 | # from the output so that they don't get included in the library | ||
14559 | # dependencies. | ||
14560 | 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' | ||
14561 | ;; | ||
14562 | xl*) | ||
14563 | # IBM XL 8.0 on PPC, with GNU ld | ||
14564 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
14565 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
14566 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
14567 | if test "x$supports_anon_versioning" = xyes; then | ||
14568 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | ||
14569 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
14570 | echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
14571 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
14572 | fi | ||
14573 | ;; | ||
14574 | *) | ||
14575 | case `$CC -V 2>&1 | sed 5q` in | ||
14576 | *Sun\ C*) | ||
14577 | # Sun C++ 5.9 | ||
14578 | no_undefined_flag_CXX=' -zdefs' | ||
14579 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
14580 | 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' | ||
14581 | hardcode_libdir_flag_spec_CXX='-R$libdir' | ||
14582 | 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' | ||
14583 | compiler_needs_object_CXX=yes | ||
14584 | |||
14585 | # Not sure whether something based on | ||
14586 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | ||
14587 | # would be better. | ||
14588 | output_verbose_link_cmd='echo' | ||
14589 | |||
14590 | # Archives containing C++ object files must be created using | ||
14591 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | ||
14592 | # necessary to make sure instantiated templates are included | ||
14593 | # in the archive. | ||
14594 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | ||
14595 | ;; | ||
14596 | esac | ||
14597 | ;; | ||
14598 | esac | ||
14599 | ;; | ||
14600 | |||
14601 | lynxos*) | ||
14602 | # FIXME: insert proper C++ library support | ||
14603 | ld_shlibs_CXX=no | ||
14604 | ;; | ||
14605 | |||
14606 | m88k*) | ||
14607 | # FIXME: insert proper C++ library support | ||
14608 | ld_shlibs_CXX=no | ||
14609 | ;; | ||
14610 | |||
14611 | mvs*) | ||
14612 | case $cc_basename in | ||
14613 | cxx*) | ||
14614 | # FIXME: insert proper C++ library support | ||
14615 | ld_shlibs_CXX=no | ||
14616 | ;; | ||
14617 | *) | ||
14618 | # FIXME: insert proper C++ library support | ||
14619 | ld_shlibs_CXX=no | ||
14620 | ;; | ||
14621 | esac | ||
14622 | ;; | ||
14623 | |||
14624 | netbsd*) | ||
14625 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
14626 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | ||
14627 | wlarc= | ||
14628 | hardcode_libdir_flag_spec_CXX='-R$libdir' | ||
14629 | hardcode_direct_CXX=yes | ||
14630 | hardcode_shlibpath_var_CXX=no | ||
14631 | fi | ||
14632 | # Workaround some broken pre-1.5 toolchains | ||
14633 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | ||
14634 | ;; | ||
14635 | |||
14636 | *nto* | *qnx*) | ||
14637 | ld_shlibs_CXX=yes | ||
14638 | ;; | ||
14639 | |||
14640 | openbsd2*) | ||
14641 | # C++ shared libraries are fairly broken | ||
14642 | ld_shlibs_CXX=no | ||
14643 | ;; | ||
14644 | |||
14645 | openbsd*) | ||
14646 | if test -f /usr/libexec/ld.so; then | ||
14647 | hardcode_direct_CXX=yes | ||
14648 | hardcode_shlibpath_var_CXX=no | ||
14649 | hardcode_direct_absolute_CXX=yes | ||
14650 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | ||
14651 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
14652 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
14653 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | ||
14654 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
14655 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
14656 | fi | ||
14657 | output_verbose_link_cmd=echo | ||
14658 | else | ||
14659 | ld_shlibs_CXX=no | ||
14660 | fi | ||
14661 | ;; | ||
14662 | |||
14663 | osf3* | osf4* | osf5*) | ||
14664 | case $cc_basename in | ||
14665 | KCC*) | ||
14666 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
14667 | |||
14668 | # KCC will only create a shared library if the output file | ||
14669 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
14670 | # to its proper name (with version) after linking. | ||
14671 | 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' | ||
14672 | |||
14673 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
14674 | hardcode_libdir_separator_CXX=: | ||
14675 | |||
14676 | # Archives containing C++ object files must be created using | ||
14677 | # the KAI C++ compiler. | ||
14678 | case $host in | ||
14679 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | ||
14680 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | ||
14681 | esac | ||
14682 | ;; | ||
14683 | RCC*) | ||
14684 | # Rational C++ 2.4.1 | ||
14685 | # FIXME: insert proper C++ library support | ||
14686 | ld_shlibs_CXX=no | ||
14687 | ;; | ||
14688 | cxx*) | ||
14689 | case $host in | ||
14690 | osf3*) | ||
14691 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | ||
14692 | 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' | ||
14693 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
14694 | ;; | ||
14695 | *) | ||
14696 | allow_undefined_flag_CXX=' -expect_unresolved \*' | ||
14697 | 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' | ||
14698 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | ||
14699 | echo "-hidden">> $lib.exp~ | ||
14700 | $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~ | ||
14701 | $RM $lib.exp' | ||
14702 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | ||
14703 | ;; | ||
14704 | esac | ||
14705 | |||
14706 | hardcode_libdir_separator_CXX=: | ||
14707 | |||
14708 | # Commands to make compiler produce verbose output that lists | ||
14709 | # what "hidden" libraries, object files and flags are used when | ||
14710 | # linking a shared library. | ||
14711 | # | ||
14712 | # There doesn't appear to be a way to prevent this compiler from | ||
14713 | # explicitly linking system object files so we need to strip them | ||
14714 | # from the output so that they don't get included in the library | ||
14715 | # dependencies. | ||
14716 | 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' | ||
14717 | ;; | ||
14718 | *) | ||
14719 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
14720 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | ||
14721 | case $host in | ||
14722 | osf3*) | ||
14723 | 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' | ||
14724 | ;; | ||
14725 | *) | ||
14726 | 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' | ||
14727 | ;; | ||
14728 | esac | ||
14729 | |||
14730 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
14731 | hardcode_libdir_separator_CXX=: | ||
14732 | |||
14733 | # Commands to make compiler produce verbose output that lists | ||
14734 | # what "hidden" libraries, object files and flags are used when | ||
14735 | # linking a shared library. | ||
14736 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | ||
14737 | |||
14738 | else | ||
14739 | # FIXME: insert proper C++ library support | ||
14740 | ld_shlibs_CXX=no | ||
14741 | fi | ||
14742 | ;; | ||
14743 | esac | ||
14744 | ;; | ||
14745 | |||
14746 | psos*) | ||
14747 | # FIXME: insert proper C++ library support | ||
14748 | ld_shlibs_CXX=no | ||
14749 | ;; | ||
14750 | |||
14751 | sunos4*) | ||
14752 | case $cc_basename in | ||
14753 | CC*) | ||
14754 | # Sun C++ 4.x | ||
14755 | # FIXME: insert proper C++ library support | ||
14756 | ld_shlibs_CXX=no | ||
14757 | ;; | ||
14758 | lcc*) | ||
14759 | # Lucid | ||
14760 | # FIXME: insert proper C++ library support | ||
14761 | ld_shlibs_CXX=no | ||
14762 | ;; | ||
14763 | *) | ||
14764 | # FIXME: insert proper C++ library support | ||
14765 | ld_shlibs_CXX=no | ||
14766 | ;; | ||
14767 | esac | ||
14768 | ;; | ||
14769 | |||
14770 | solaris*) | ||
14771 | case $cc_basename in | ||
14772 | CC*) | ||
14773 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
14774 | archive_cmds_need_lc_CXX=yes | ||
14775 | no_undefined_flag_CXX=' -zdefs' | ||
14776 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
14777 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
14778 | $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' | ||
14779 | |||
14780 | hardcode_libdir_flag_spec_CXX='-R$libdir' | ||
14781 | hardcode_shlibpath_var_CXX=no | ||
14782 | case $host_os in | ||
14783 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
14784 | *) | ||
14785 | # The compiler driver will combine and reorder linker options, | ||
14786 | # but understands `-z linker_flag'. | ||
14787 | # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
14788 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | ||
14789 | ;; | ||
14790 | esac | ||
14791 | link_all_deplibs_CXX=yes | ||
14792 | |||
14793 | output_verbose_link_cmd='echo' | ||
14794 | |||
14795 | # Archives containing C++ object files must be created using | ||
14796 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | ||
14797 | # necessary to make sure instantiated templates are included | ||
14798 | # in the archive. | ||
14799 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | ||
14800 | ;; | ||
14801 | gcx*) | ||
14802 | # Green Hills C++ Compiler | ||
14803 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
14804 | |||
14805 | # The C++ compiler must be used to create the archive. | ||
14806 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | ||
14807 | ;; | ||
14808 | *) | ||
14809 | # GNU C++ compiler with Solaris linker | ||
14810 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
14811 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | ||
14812 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | ||
14813 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
14814 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
14815 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | ||
14816 | |||
14817 | # Commands to make compiler produce verbose output that lists | ||
14818 | # what "hidden" libraries, object files and flags are used when | ||
14819 | # linking a shared library. | ||
14820 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | ||
14821 | else | ||
14822 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | ||
14823 | # platform. | ||
14824 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
14825 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | ||
14826 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | ||
14827 | |||
14828 | # Commands to make compiler produce verbose output that lists | ||
14829 | # what "hidden" libraries, object files and flags are used when | ||
14830 | # linking a shared library. | ||
14831 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | ||
14832 | fi | ||
14833 | |||
14834 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | ||
14835 | case $host_os in | ||
14836 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
14837 | *) | ||
14838 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | ||
14839 | ;; | ||
14840 | esac | ||
14841 | fi | ||
14842 | ;; | ||
14843 | esac | ||
14844 | ;; | ||
14845 | |||
14846 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | ||
14847 | no_undefined_flag_CXX='${wl}-z,text' | ||
14848 | archive_cmds_need_lc_CXX=no | ||
14849 | hardcode_shlibpath_var_CXX=no | ||
14850 | runpath_var='LD_RUN_PATH' | ||
14851 | |||
14852 | case $cc_basename in | ||
14853 | CC*) | ||
14854 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
14855 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
14856 | ;; | ||
14857 | *) | ||
14858 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
14859 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
14860 | ;; | ||
14861 | esac | ||
14862 | ;; | ||
14863 | |||
14864 | sysv5* | sco3.2v5* | sco5v6*) | ||
14865 | # Note: We can NOT use -z defs as we might desire, because we do not | ||
14866 | # link with -lc, and that would cause any symbols used from libc to | ||
14867 | # always be unresolved, which means just about no library would | ||
14868 | # ever link correctly. If we're not using GNU ld we use -z text | ||
14869 | # though, which does catch some bad symbols but isn't as heavy-handed | ||
14870 | # as -z defs. | ||
14871 | no_undefined_flag_CXX='${wl}-z,text' | ||
14872 | allow_undefined_flag_CXX='${wl}-z,nodefs' | ||
14873 | archive_cmds_need_lc_CXX=no | ||
14874 | hardcode_shlibpath_var_CXX=no | ||
14875 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | ||
14876 | hardcode_libdir_separator_CXX=':' | ||
14877 | link_all_deplibs_CXX=yes | ||
14878 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | ||
14879 | runpath_var='LD_RUN_PATH' | ||
14880 | |||
14881 | case $cc_basename in | ||
14882 | CC*) | ||
14883 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
14884 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
14885 | ;; | ||
14886 | *) | ||
14887 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
14888 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
14889 | ;; | ||
14890 | esac | ||
14891 | ;; | ||
14892 | |||
14893 | tandem*) | ||
14894 | case $cc_basename in | ||
14895 | NCC*) | ||
14896 | # NonStop-UX NCC 3.20 | ||
14897 | # FIXME: insert proper C++ library support | ||
14898 | ld_shlibs_CXX=no | ||
14899 | ;; | ||
14900 | *) | ||
14901 | # FIXME: insert proper C++ library support | ||
14902 | ld_shlibs_CXX=no | ||
14903 | ;; | ||
14904 | esac | ||
14905 | ;; | ||
14906 | |||
14907 | vxworks*) | ||
14908 | # FIXME: insert proper C++ library support | ||
14909 | ld_shlibs_CXX=no | ||
14910 | ;; | ||
14911 | |||
14912 | *) | ||
14913 | # FIXME: insert proper C++ library support | ||
14914 | ld_shlibs_CXX=no | ||
14915 | ;; | ||
14916 | esac | ||
14917 | |||
14918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | ||
14919 | $as_echo "$ld_shlibs_CXX" >&6; } | ||
14920 | test "$ld_shlibs_CXX" = no && can_build_shared=no | ||
14921 | |||
14922 | GCC_CXX="$GXX" | ||
14923 | LD_CXX="$LD" | ||
14924 | |||
14925 | ## CAVEAT EMPTOR: | ||
14926 | ## There is no encapsulation within the following macros, do not change | ||
14927 | ## the running order or otherwise move them around unless you know exactly | ||
14928 | ## what you are doing... | ||
14929 | # Dependencies to place before and after the object being linked: | ||
14930 | predep_objects_CXX= | ||
14931 | postdep_objects_CXX= | ||
14932 | predeps_CXX= | ||
14933 | postdeps_CXX= | ||
14934 | compiler_lib_search_path_CXX= | ||
14935 | |||
14936 | cat > conftest.$ac_ext <<_LT_EOF | ||
14937 | class Foo | ||
14938 | { | ||
14939 | public: | ||
14940 | Foo (void) { a = 0; } | ||
14941 | private: | ||
14942 | int a; | ||
14943 | }; | ||
14944 | _LT_EOF | ||
14945 | |||
14946 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
14947 | (eval $ac_compile) 2>&5 | ||
14948 | ac_status=$? | ||
14949 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
14950 | test $ac_status = 0; }; then | ||
14951 | # Parse the compiler output and extract the necessary | ||
14952 | # objects, libraries and library flags. | ||
14953 | |||
14954 | # Sentinel used to keep track of whether or not we are before | ||
14955 | # the conftest object file. | ||
14956 | pre_test_object_deps_done=no | ||
14957 | |||
14958 | for p in `eval "$output_verbose_link_cmd"`; do | ||
14959 | case $p in | ||
14960 | |||
14961 | -L* | -R* | -l*) | ||
14962 | # Some compilers place space between "-{L,R}" and the path. | ||
14963 | # Remove the space. | ||
14964 | if test $p = "-L" || | ||
14965 | test $p = "-R"; then | ||
14966 | prev=$p | ||
14967 | continue | ||
14968 | else | ||
14969 | prev= | ||
14970 | fi | ||
14971 | |||
14972 | if test "$pre_test_object_deps_done" = no; then | ||
14973 | case $p in | ||
14974 | -L* | -R*) | ||
14975 | # Internal compiler library paths should come after those | ||
14976 | # provided the user. The postdeps already come after the | ||
14977 | # user supplied libs so there is no need to process them. | ||
14978 | if test -z "$compiler_lib_search_path_CXX"; then | ||
14979 | compiler_lib_search_path_CXX="${prev}${p}" | ||
14980 | else | ||
14981 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | ||
14982 | fi | ||
14983 | ;; | ||
14984 | # The "-l" case would never come before the object being | ||
14985 | # linked, so don't bother handling this case. | ||
14986 | esac | ||
14987 | else | ||
14988 | if test -z "$postdeps_CXX"; then | ||
14989 | postdeps_CXX="${prev}${p}" | ||
14990 | else | ||
14991 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | ||
14992 | fi | ||
14993 | fi | ||
14994 | ;; | ||
14995 | |||
14996 | *.$objext) | ||
14997 | # This assumes that the test object file only shows up | ||
14998 | # once in the compiler output. | ||
14999 | if test "$p" = "conftest.$objext"; then | ||
15000 | pre_test_object_deps_done=yes | ||
15001 | continue | ||
15002 | fi | ||
15003 | |||
15004 | if test "$pre_test_object_deps_done" = no; then | ||
15005 | if test -z "$predep_objects_CXX"; then | ||
15006 | predep_objects_CXX="$p" | ||
15007 | else | ||
15008 | predep_objects_CXX="$predep_objects_CXX $p" | ||
15009 | fi | ||
15010 | else | ||
15011 | if test -z "$postdep_objects_CXX"; then | ||
15012 | postdep_objects_CXX="$p" | ||
15013 | else | ||
15014 | postdep_objects_CXX="$postdep_objects_CXX $p" | ||
15015 | fi | ||
15016 | fi | ||
15017 | ;; | ||
15018 | |||
15019 | *) ;; # Ignore the rest. | ||
15020 | |||
15021 | esac | ||
15022 | done | ||
15023 | |||
15024 | # Clean up. | ||
15025 | rm -f a.out a.exe | ||
15026 | else | ||
15027 | echo "libtool.m4: error: problem compiling CXX test program" | ||
15028 | fi | ||
15029 | |||
15030 | $RM -f confest.$objext | ||
15031 | |||
15032 | # PORTME: override above test on systems where it is broken | ||
15033 | case $host_os in | ||
15034 | interix[3-9]*) | ||
15035 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | ||
15036 | # hack all around it, let's just trust "g++" to DTRT. | ||
15037 | predep_objects_CXX= | ||
15038 | postdep_objects_CXX= | ||
15039 | postdeps_CXX= | ||
15040 | ;; | ||
15041 | |||
15042 | linux*) | ||
15043 | case `$CC -V 2>&1 | sed 5q` in | ||
15044 | *Sun\ C*) | ||
15045 | # Sun C++ 5.9 | ||
15046 | |||
15047 | # The more standards-conforming stlport4 library is | ||
15048 | # incompatible with the Cstd library. Avoid specifying | ||
15049 | # it if it's in CXXFLAGS. Ignore libCrun as | ||
15050 | # -library=stlport4 depends on it. | ||
15051 | case " $CXX $CXXFLAGS " in | ||
15052 | *" -library=stlport4 "*) | ||
15053 | solaris_use_stlport4=yes | ||
15054 | ;; | ||
15055 | esac | ||
15056 | |||
15057 | if test "$solaris_use_stlport4" != yes; then | ||
15058 | postdeps_CXX='-library=Cstd -library=Crun' | ||
15059 | fi | ||
15060 | ;; | ||
15061 | esac | ||
15062 | ;; | ||
15063 | |||
15064 | solaris*) | ||
15065 | case $cc_basename in | ||
15066 | CC*) | ||
15067 | # The more standards-conforming stlport4 library is | ||
15068 | # incompatible with the Cstd library. Avoid specifying | ||
15069 | # it if it's in CXXFLAGS. Ignore libCrun as | ||
15070 | # -library=stlport4 depends on it. | ||
15071 | case " $CXX $CXXFLAGS " in | ||
15072 | *" -library=stlport4 "*) | ||
15073 | solaris_use_stlport4=yes | ||
15074 | ;; | ||
15075 | esac | ||
15076 | |||
15077 | # Adding this requires a known-good setup of shared libraries for | ||
15078 | # Sun compiler versions before 5.6, else PIC objects from an old | ||
15079 | # archive will be linked into the output, leading to subtle bugs. | ||
15080 | if test "$solaris_use_stlport4" != yes; then | ||
15081 | postdeps_CXX='-library=Cstd -library=Crun' | ||
15082 | fi | ||
15083 | ;; | ||
15084 | esac | ||
15085 | ;; | ||
15086 | esac | ||
15087 | |||
15088 | |||
15089 | case " $postdeps_CXX " in | ||
15090 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | ||
15091 | esac | ||
15092 | compiler_lib_search_dirs_CXX= | ||
15093 | if test -n "${compiler_lib_search_path_CXX}"; then | ||
15094 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | ||
15095 | fi | ||
15096 | |||
15097 | |||
15098 | |||
15099 | |||
15100 | |||
15101 | |||
15102 | |||
15103 | |||
15104 | |||
15105 | |||
15106 | |||
15107 | |||
15108 | |||
15109 | |||
15110 | |||
15111 | |||
15112 | |||
15113 | |||
15114 | |||
15115 | |||
15116 | |||
15117 | |||
15118 | |||
15119 | |||
15120 | |||
15121 | |||
15122 | |||
15123 | |||
15124 | |||
15125 | |||
15126 | |||
15127 | lt_prog_compiler_wl_CXX= | ||
15128 | lt_prog_compiler_pic_CXX= | ||
15129 | lt_prog_compiler_static_CXX= | ||
15130 | |||
15131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | ||
15132 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | ||
15133 | |||
15134 | # C++ specific cases for pic, static, wl, etc. | ||
15135 | if test "$GXX" = yes; then | ||
15136 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15137 | lt_prog_compiler_static_CXX='-static' | ||
15138 | |||
15139 | case $host_os in | ||
15140 | aix*) | ||
15141 | # All AIX code is PIC. | ||
15142 | if test "$host_cpu" = ia64; then | ||
15143 | # AIX 5 now supports IA64 processor | ||
15144 | lt_prog_compiler_static_CXX='-Bstatic' | ||
15145 | fi | ||
15146 | ;; | ||
15147 | |||
15148 | amigaos*) | ||
15149 | case $host_cpu in | ||
15150 | powerpc) | ||
15151 | # see comment about AmigaOS4 .so support | ||
15152 | lt_prog_compiler_pic_CXX='-fPIC' | ||
15153 | ;; | ||
15154 | m68k) | ||
15155 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
15156 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
15157 | # like `-m68040'. | ||
15158 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | ||
15159 | ;; | ||
15160 | esac | ||
15161 | ;; | ||
15162 | |||
15163 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
15164 | # PIC is the default for these OSes. | ||
15165 | ;; | ||
15166 | mingw* | cygwin* | os2* | pw32* | cegcc*) | ||
15167 | # This hack is so that the source file can tell whether it is being | ||
15168 | # built for inclusion in a dll (and should export symbols for example). | ||
15169 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | ||
15170 | # (--disable-auto-import) libraries | ||
15171 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | ||
15172 | ;; | ||
15173 | darwin* | rhapsody*) | ||
15174 | # PIC is the default on this platform | ||
15175 | # Common symbols not allowed in MH_DYLIB files | ||
15176 | lt_prog_compiler_pic_CXX='-fno-common' | ||
15177 | ;; | ||
15178 | *djgpp*) | ||
15179 | # DJGPP does not support shared libraries at all | ||
15180 | lt_prog_compiler_pic_CXX= | ||
15181 | ;; | ||
15182 | interix[3-9]*) | ||
15183 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
15184 | # Instead, we relocate shared libraries at runtime. | ||
15185 | ;; | ||
15186 | sysv4*MP*) | ||
15187 | if test -d /usr/nec; then | ||
15188 | lt_prog_compiler_pic_CXX=-Kconform_pic | ||
15189 | fi | ||
15190 | ;; | ||
15191 | hpux*) | ||
15192 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | ||
15193 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | ||
15194 | # sets the default TLS model and affects inlining. | ||
15195 | case $host_cpu in | ||
15196 | hppa*64*) | ||
15197 | ;; | ||
15198 | *) | ||
15199 | lt_prog_compiler_pic_CXX='-fPIC' | ||
15200 | ;; | ||
15201 | esac | ||
15202 | ;; | ||
15203 | *qnx* | *nto*) | ||
15204 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
15205 | # it will coredump. | ||
15206 | lt_prog_compiler_pic_CXX='-fPIC -shared' | ||
15207 | ;; | ||
15208 | *) | ||
15209 | lt_prog_compiler_pic_CXX='-fPIC' | ||
15210 | ;; | ||
15211 | esac | ||
15212 | else | ||
15213 | case $host_os in | ||
15214 | aix[4-9]*) | ||
15215 | # All AIX code is PIC. | ||
15216 | if test "$host_cpu" = ia64; then | ||
15217 | # AIX 5 now supports IA64 processor | ||
15218 | lt_prog_compiler_static_CXX='-Bstatic' | ||
15219 | else | ||
15220 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | ||
15221 | fi | ||
15222 | ;; | ||
15223 | chorus*) | ||
15224 | case $cc_basename in | ||
15225 | cxch68*) | ||
15226 | # Green Hills C++ Compiler | ||
15227 | # _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" | ||
15228 | ;; | ||
15229 | esac | ||
15230 | ;; | ||
15231 | dgux*) | ||
15232 | case $cc_basename in | ||
15233 | ec++*) | ||
15234 | lt_prog_compiler_pic_CXX='-KPIC' | ||
15235 | ;; | ||
15236 | ghcx*) | ||
15237 | # Green Hills C++ Compiler | ||
15238 | lt_prog_compiler_pic_CXX='-pic' | ||
15239 | ;; | ||
15240 | *) | ||
15241 | ;; | ||
15242 | esac | ||
15243 | ;; | ||
15244 | freebsd* | dragonfly*) | ||
15245 | # FreeBSD uses GNU C++ | ||
15246 | ;; | ||
15247 | hpux9* | hpux10* | hpux11*) | ||
15248 | case $cc_basename in | ||
15249 | CC*) | ||
15250 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15251 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | ||
15252 | if test "$host_cpu" != ia64; then | ||
15253 | lt_prog_compiler_pic_CXX='+Z' | ||
15254 | fi | ||
15255 | ;; | ||
15256 | aCC*) | ||
15257 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15258 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | ||
15259 | case $host_cpu in | ||
15260 | hppa*64*|ia64*) | ||
15261 | # +Z the default | ||
15262 | ;; | ||
15263 | *) | ||
15264 | lt_prog_compiler_pic_CXX='+Z' | ||
15265 | ;; | ||
15266 | esac | ||
15267 | ;; | ||
15268 | *) | ||
15269 | ;; | ||
15270 | esac | ||
15271 | ;; | ||
15272 | interix*) | ||
15273 | # This is c89, which is MS Visual C++ (no shared libs) | ||
15274 | # Anyone wants to do a port? | ||
15275 | ;; | ||
15276 | irix5* | irix6* | nonstopux*) | ||
15277 | case $cc_basename in | ||
15278 | CC*) | ||
15279 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15280 | lt_prog_compiler_static_CXX='-non_shared' | ||
15281 | # CC pic flag -KPIC is the default. | ||
15282 | ;; | ||
15283 | *) | ||
15284 | ;; | ||
15285 | esac | ||
15286 | ;; | ||
15287 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
15288 | case $cc_basename in | ||
15289 | KCC*) | ||
15290 | # KAI C++ Compiler | ||
15291 | lt_prog_compiler_wl_CXX='--backend -Wl,' | ||
15292 | lt_prog_compiler_pic_CXX='-fPIC' | ||
15293 | ;; | ||
15294 | ecpc* ) | ||
15295 | # old Intel C++ for x86_64 which still supported -KPIC. | ||
15296 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15297 | lt_prog_compiler_pic_CXX='-KPIC' | ||
15298 | lt_prog_compiler_static_CXX='-static' | ||
15299 | ;; | ||
15300 | icpc* ) | ||
15301 | # Intel C++, used to be incompatible with GCC. | ||
15302 | # ICC 10 doesn't accept -KPIC any more. | ||
15303 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15304 | lt_prog_compiler_pic_CXX='-fPIC' | ||
15305 | lt_prog_compiler_static_CXX='-static' | ||
15306 | ;; | ||
15307 | pgCC* | pgcpp*) | ||
15308 | # Portland Group C++ compiler | ||
15309 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15310 | lt_prog_compiler_pic_CXX='-fpic' | ||
15311 | lt_prog_compiler_static_CXX='-Bstatic' | ||
15312 | ;; | ||
15313 | cxx*) | ||
15314 | # Compaq C++ | ||
15315 | # Make sure the PIC flag is empty. It appears that all Alpha | ||
15316 | # Linux and Compaq Tru64 Unix objects are PIC. | ||
15317 | lt_prog_compiler_pic_CXX= | ||
15318 | lt_prog_compiler_static_CXX='-non_shared' | ||
15319 | ;; | ||
15320 | xlc* | xlC*) | ||
15321 | # IBM XL 8.0 on PPC | ||
15322 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15323 | lt_prog_compiler_pic_CXX='-qpic' | ||
15324 | lt_prog_compiler_static_CXX='-qstaticlink' | ||
15325 | ;; | ||
15326 | *) | ||
15327 | case `$CC -V 2>&1 | sed 5q` in | ||
15328 | *Sun\ C*) | ||
15329 | # Sun C++ 5.9 | ||
15330 | lt_prog_compiler_pic_CXX='-KPIC' | ||
15331 | lt_prog_compiler_static_CXX='-Bstatic' | ||
15332 | lt_prog_compiler_wl_CXX='-Qoption ld ' | ||
15333 | ;; | ||
15334 | esac | ||
15335 | ;; | ||
15336 | esac | ||
15337 | ;; | ||
15338 | lynxos*) | ||
15339 | ;; | ||
15340 | m88k*) | ||
15341 | ;; | ||
15342 | mvs*) | ||
15343 | case $cc_basename in | ||
15344 | cxx*) | ||
15345 | lt_prog_compiler_pic_CXX='-W c,exportall' | ||
15346 | ;; | ||
15347 | *) | ||
15348 | ;; | ||
15349 | esac | ||
15350 | ;; | ||
15351 | netbsd* | netbsdelf*-gnu) | ||
15352 | ;; | ||
15353 | *qnx* | *nto*) | ||
15354 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
15355 | # it will coredump. | ||
15356 | lt_prog_compiler_pic_CXX='-fPIC -shared' | ||
15357 | ;; | ||
15358 | osf3* | osf4* | osf5*) | ||
15359 | case $cc_basename in | ||
15360 | KCC*) | ||
15361 | lt_prog_compiler_wl_CXX='--backend -Wl,' | ||
15362 | ;; | ||
15363 | RCC*) | ||
15364 | # Rational C++ 2.4.1 | ||
15365 | lt_prog_compiler_pic_CXX='-pic' | ||
15366 | ;; | ||
15367 | cxx*) | ||
15368 | # Digital/Compaq C++ | ||
15369 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15370 | # Make sure the PIC flag is empty. It appears that all Alpha | ||
15371 | # Linux and Compaq Tru64 Unix objects are PIC. | ||
15372 | lt_prog_compiler_pic_CXX= | ||
15373 | lt_prog_compiler_static_CXX='-non_shared' | ||
15374 | ;; | ||
15375 | *) | ||
15376 | ;; | ||
15377 | esac | ||
15378 | ;; | ||
15379 | psos*) | ||
15380 | ;; | ||
15381 | solaris*) | ||
15382 | case $cc_basename in | ||
15383 | CC*) | ||
15384 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
15385 | lt_prog_compiler_pic_CXX='-KPIC' | ||
15386 | lt_prog_compiler_static_CXX='-Bstatic' | ||
15387 | lt_prog_compiler_wl_CXX='-Qoption ld ' | ||
15388 | ;; | ||
15389 | gcx*) | ||
15390 | # Green Hills C++ Compiler | ||
15391 | lt_prog_compiler_pic_CXX='-PIC' | ||
15392 | ;; | ||
15393 | *) | ||
15394 | ;; | ||
15395 | esac | ||
15396 | ;; | ||
15397 | sunos4*) | ||
15398 | case $cc_basename in | ||
15399 | CC*) | ||
15400 | # Sun C++ 4.x | ||
15401 | lt_prog_compiler_pic_CXX='-pic' | ||
15402 | lt_prog_compiler_static_CXX='-Bstatic' | ||
15403 | ;; | ||
15404 | lcc*) | ||
15405 | # Lucid | ||
15406 | lt_prog_compiler_pic_CXX='-pic' | ||
15407 | ;; | ||
15408 | *) | ||
15409 | ;; | ||
15410 | esac | ||
15411 | ;; | ||
15412 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
15413 | case $cc_basename in | ||
15414 | CC*) | ||
15415 | lt_prog_compiler_wl_CXX='-Wl,' | ||
15416 | lt_prog_compiler_pic_CXX='-KPIC' | ||
15417 | lt_prog_compiler_static_CXX='-Bstatic' | ||
15418 | ;; | ||
15419 | esac | ||
15420 | ;; | ||
15421 | tandem*) | ||
15422 | case $cc_basename in | ||
15423 | NCC*) | ||
15424 | # NonStop-UX NCC 3.20 | ||
15425 | lt_prog_compiler_pic_CXX='-KPIC' | ||
15426 | ;; | ||
15427 | *) | ||
15428 | ;; | ||
15429 | esac | ||
15430 | ;; | ||
15431 | vxworks*) | ||
15432 | ;; | ||
15433 | *) | ||
15434 | lt_prog_compiler_can_build_shared_CXX=no | ||
15435 | ;; | ||
15436 | esac | ||
15437 | fi | ||
15438 | |||
15439 | case $host_os in | ||
15440 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
15441 | *djgpp*) | ||
15442 | lt_prog_compiler_pic_CXX= | ||
15443 | ;; | ||
15444 | *) | ||
15445 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | ||
15446 | ;; | ||
15447 | esac | ||
15448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 | ||
15449 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } | ||
15450 | |||
15451 | |||
15452 | |||
15453 | # | ||
15454 | # Check to make sure the PIC flag actually works. | ||
15455 | # | ||
15456 | if test -n "$lt_prog_compiler_pic_CXX"; then | ||
15457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | ||
15458 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | ||
15459 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : | ||
15460 | $as_echo_n "(cached) " >&6 | ||
15461 | else | ||
15462 | lt_cv_prog_compiler_pic_works_CXX=no | ||
15463 | ac_outfile=conftest.$ac_objext | ||
15464 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
15465 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | ||
15466 | # Insert the option either (1) after the last *FLAGS variable, or | ||
15467 | # (2) before a word containing "conftest.", or (3) at the end. | ||
15468 | # Note that $ac_compile itself does not contain backslashes and begins | ||
15469 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
15470 | # The option is referenced via a variable to avoid confusing sed. | ||
15471 | lt_compile=`echo "$ac_compile" | $SED \ | ||
15472 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
15473 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
15474 | -e 's:$: $lt_compiler_flag:'` | ||
15475 | (eval echo "\"\$as_me:15475: $lt_compile\"" >&5) | ||
15476 | (eval "$lt_compile" 2>conftest.err) | ||
15477 | ac_status=$? | ||
15478 | cat conftest.err >&5 | ||
15479 | echo "$as_me:15479: \$? = $ac_status" >&5 | ||
15480 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
15481 | # The compiler can only warn and ignore the option if not recognized | ||
15482 | # So say no if there are warnings other than the usual output. | ||
15483 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
15484 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
15485 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
15486 | lt_cv_prog_compiler_pic_works_CXX=yes | ||
15487 | fi | ||
15488 | fi | ||
15489 | $RM conftest* | ||
15490 | |||
15491 | fi | ||
15492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | ||
15493 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | ||
15494 | |||
15495 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | ||
15496 | case $lt_prog_compiler_pic_CXX in | ||
15497 | "" | " "*) ;; | ||
15498 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | ||
15499 | esac | ||
15500 | else | ||
15501 | lt_prog_compiler_pic_CXX= | ||
15502 | lt_prog_compiler_can_build_shared_CXX=no | ||
15503 | fi | ||
15504 | |||
15505 | fi | ||
15506 | |||
15507 | |||
15508 | |||
15509 | # | ||
15510 | # Check to make sure the static flag actually works. | ||
15511 | # | ||
15512 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | ||
15513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | ||
15514 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | ||
15515 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : | ||
15516 | $as_echo_n "(cached) " >&6 | ||
15517 | else | ||
15518 | lt_cv_prog_compiler_static_works_CXX=no | ||
15519 | save_LDFLAGS="$LDFLAGS" | ||
15520 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | ||
15521 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | ||
15522 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
15523 | # The linker can only warn and ignore the option if not recognized | ||
15524 | # So say no if there are warnings | ||
15525 | if test -s conftest.err; then | ||
15526 | # Append any errors to the config.log. | ||
15527 | cat conftest.err 1>&5 | ||
15528 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
15529 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
15530 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
15531 | lt_cv_prog_compiler_static_works_CXX=yes | ||
15532 | fi | ||
15533 | else | ||
15534 | lt_cv_prog_compiler_static_works_CXX=yes | ||
15535 | fi | ||
15536 | fi | ||
15537 | $RM -r conftest* | ||
15538 | LDFLAGS="$save_LDFLAGS" | ||
15539 | |||
15540 | fi | ||
15541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | ||
15542 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | ||
15543 | |||
15544 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | ||
15545 | : | ||
15546 | else | ||
15547 | lt_prog_compiler_static_CXX= | ||
15548 | fi | ||
15549 | |||
15550 | |||
15551 | |||
15552 | |||
15553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
15554 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
15555 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | ||
15556 | $as_echo_n "(cached) " >&6 | ||
15557 | else | ||
15558 | lt_cv_prog_compiler_c_o_CXX=no | ||
15559 | $RM -r conftest 2>/dev/null | ||
15560 | mkdir conftest | ||
15561 | cd conftest | ||
15562 | mkdir out | ||
15563 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
15564 | |||
15565 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
15566 | # Insert the option either (1) after the last *FLAGS variable, or | ||
15567 | # (2) before a word containing "conftest.", or (3) at the end. | ||
15568 | # Note that $ac_compile itself does not contain backslashes and begins | ||
15569 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
15570 | lt_compile=`echo "$ac_compile" | $SED \ | ||
15571 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
15572 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
15573 | -e 's:$: $lt_compiler_flag:'` | ||
15574 | (eval echo "\"\$as_me:15574: $lt_compile\"" >&5) | ||
15575 | (eval "$lt_compile" 2>out/conftest.err) | ||
15576 | ac_status=$? | ||
15577 | cat out/conftest.err >&5 | ||
15578 | echo "$as_me:15578: \$? = $ac_status" >&5 | ||
15579 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
15580 | then | ||
15581 | # The compiler can only warn and ignore the option if not recognized | ||
15582 | # So say no if there are warnings | ||
15583 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
15584 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
15585 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
15586 | lt_cv_prog_compiler_c_o_CXX=yes | ||
15587 | fi | ||
15588 | fi | ||
15589 | chmod u+w . 2>&5 | ||
15590 | $RM conftest* | ||
15591 | # SGI C++ compiler will create directory out/ii_files/ for | ||
15592 | # template instantiation | ||
15593 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
15594 | $RM out/* && rmdir out | ||
15595 | cd .. | ||
15596 | $RM -r conftest | ||
15597 | $RM conftest* | ||
15598 | |||
15599 | fi | ||
15600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | ||
15601 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | ||
15602 | |||
15603 | |||
15604 | |||
15605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
15606 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | ||
15607 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | ||
15608 | $as_echo_n "(cached) " >&6 | ||
15609 | else | ||
15610 | lt_cv_prog_compiler_c_o_CXX=no | ||
15611 | $RM -r conftest 2>/dev/null | ||
15612 | mkdir conftest | ||
15613 | cd conftest | ||
15614 | mkdir out | ||
15615 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
15616 | |||
15617 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
15618 | # Insert the option either (1) after the last *FLAGS variable, or | ||
15619 | # (2) before a word containing "conftest.", or (3) at the end. | ||
15620 | # Note that $ac_compile itself does not contain backslashes and begins | ||
15621 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
15622 | lt_compile=`echo "$ac_compile" | $SED \ | ||
15623 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
15624 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
15625 | -e 's:$: $lt_compiler_flag:'` | ||
15626 | (eval echo "\"\$as_me:15626: $lt_compile\"" >&5) | ||
15627 | (eval "$lt_compile" 2>out/conftest.err) | ||
15628 | ac_status=$? | ||
15629 | cat out/conftest.err >&5 | ||
15630 | echo "$as_me:15630: \$? = $ac_status" >&5 | ||
15631 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
15632 | then | ||
15633 | # The compiler can only warn and ignore the option if not recognized | ||
15634 | # So say no if there are warnings | ||
15635 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
15636 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
15637 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
15638 | lt_cv_prog_compiler_c_o_CXX=yes | ||
15639 | fi | ||
15640 | fi | ||
15641 | chmod u+w . 2>&5 | ||
15642 | $RM conftest* | ||
15643 | # SGI C++ compiler will create directory out/ii_files/ for | ||
15644 | # template instantiation | ||
15645 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
15646 | $RM out/* && rmdir out | ||
15647 | cd .. | ||
15648 | $RM -r conftest | ||
15649 | $RM conftest* | ||
15650 | |||
15651 | fi | ||
15652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | ||
15653 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | ||
15654 | |||
15655 | |||
15656 | |||
15657 | |||
15658 | hard_links="nottested" | ||
15659 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | ||
15660 | # do not overwrite the value of need_locks provided by the user | ||
15661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | ||
15662 | $as_echo_n "checking if we can lock with hard links... " >&6; } | ||
15663 | hard_links=yes | ||
15664 | $RM conftest* | ||
15665 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
15666 | touch conftest.a | ||
15667 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
15668 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
15669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | ||
15670 | $as_echo "$hard_links" >&6; } | ||
15671 | if test "$hard_links" = no; then | ||
15672 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | ||
15673 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | ||
15674 | need_locks=warn | ||
15675 | fi | ||
15676 | else | ||
15677 | need_locks=no | ||
15678 | fi | ||
15679 | |||
15680 | |||
15681 | |||
15682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
15683 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | ||
15684 | |||
15685 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
15686 | case $host_os in | ||
15687 | aix[4-9]*) | ||
15688 | # If we're using GNU nm, then we don't want the "-C" option. | ||
15689 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
15690 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | ||
15691 | 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' | ||
15692 | else | ||
15693 | 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' | ||
15694 | fi | ||
15695 | ;; | ||
15696 | pw32*) | ||
15697 | export_symbols_cmds_CXX="$ltdll_cmds" | ||
15698 | ;; | ||
15699 | cygwin* | mingw* | cegcc*) | ||
15700 | 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' | ||
15701 | ;; | ||
15702 | linux* | k*bsd*-gnu) | ||
15703 | link_all_deplibs_CXX=no | ||
15704 | ;; | ||
15705 | *) | ||
15706 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
15707 | ;; | ||
15708 | esac | ||
15709 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | ||
15710 | |||
15711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | ||
15712 | $as_echo "$ld_shlibs_CXX" >&6; } | ||
15713 | test "$ld_shlibs_CXX" = no && can_build_shared=no | ||
15714 | |||
15715 | with_gnu_ld_CXX=$with_gnu_ld | ||
15716 | |||
15717 | |||
15718 | |||
15719 | |||
15720 | |||
15721 | |||
15722 | # | ||
15723 | # Do we need to explicitly link libc? | ||
15724 | # | ||
15725 | case "x$archive_cmds_need_lc_CXX" in | ||
15726 | x|xyes) | ||
15727 | # Assume -lc should be added | ||
15728 | archive_cmds_need_lc_CXX=yes | ||
15729 | |||
15730 | if test "$enable_shared" = yes && test "$GCC" = yes; then | ||
15731 | case $archive_cmds_CXX in | ||
15732 | *'~'*) | ||
15733 | # FIXME: we may have to deal with multi-command sequences. | ||
15734 | ;; | ||
15735 | '$CC '*) | ||
15736 | # Test whether the compiler implicitly links with -lc since on some | ||
15737 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | ||
15738 | # to ld, don't add -lc before -lgcc. | ||
15739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | ||
15740 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | ||
15741 | $RM conftest* | ||
15742 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
15743 | |||
15744 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | ||
15745 | (eval $ac_compile) 2>&5 | ||
15746 | ac_status=$? | ||
15747 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
15748 | test $ac_status = 0; } 2>conftest.err; then | ||
15749 | soname=conftest | ||
15750 | lib=conftest | ||
15751 | libobjs=conftest.$ac_objext | ||
15752 | deplibs= | ||
15753 | wl=$lt_prog_compiler_wl_CXX | ||
15754 | pic_flag=$lt_prog_compiler_pic_CXX | ||
15755 | compiler_flags=-v | ||
15756 | linker_flags=-v | ||
15757 | verstring= | ||
15758 | output_objdir=. | ||
15759 | libname=conftest | ||
15760 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | ||
15761 | allow_undefined_flag_CXX= | ||
15762 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | ||
15763 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | ||
15764 | ac_status=$? | ||
15765 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
15766 | test $ac_status = 0; } | ||
15767 | then | ||
15768 | archive_cmds_need_lc_CXX=no | ||
15769 | else | ||
15770 | archive_cmds_need_lc_CXX=yes | ||
15771 | fi | ||
15772 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | ||
15773 | else | ||
15774 | cat conftest.err 1>&5 | ||
15775 | fi | ||
15776 | $RM conftest* | ||
15777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 | ||
15778 | $as_echo "$archive_cmds_need_lc_CXX" >&6; } | ||
15779 | ;; | ||
15780 | esac | ||
15781 | fi | ||
15782 | ;; | ||
15783 | esac | ||
15784 | |||
15785 | |||
15786 | |||
15787 | |||
15788 | |||
15789 | |||
15790 | |||
15791 | |||
15792 | |||
15793 | |||
15794 | |||
15795 | |||
15796 | |||
15797 | |||
15798 | |||
15799 | |||
15800 | |||
15801 | |||
15802 | |||
15803 | |||
15804 | |||
15805 | |||
15806 | |||
15807 | |||
15808 | |||
15809 | |||
15810 | |||
15811 | |||
15812 | |||
15813 | |||
15814 | |||
15815 | |||
15816 | |||
15817 | |||
15818 | |||
15819 | |||
15820 | |||
15821 | |||
15822 | |||
15823 | |||
15824 | |||
15825 | |||
15826 | |||
15827 | |||
15828 | |||
15829 | |||
15830 | |||
15831 | |||
15832 | |||
15833 | |||
15834 | |||
15835 | |||
15836 | |||
15837 | |||
15838 | |||
15839 | |||
15840 | |||
15841 | |||
15842 | |||
15843 | |||
15844 | |||
15845 | |||
15846 | |||
15847 | |||
15848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | ||
15849 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | ||
15850 | |||
15851 | library_names_spec= | ||
15852 | libname_spec='lib$name' | ||
15853 | soname_spec= | ||
15854 | shrext_cmds=".so" | ||
15855 | postinstall_cmds= | ||
15856 | postuninstall_cmds= | ||
15857 | finish_cmds= | ||
15858 | finish_eval= | ||
15859 | shlibpath_var= | ||
15860 | shlibpath_overrides_runpath=unknown | ||
15861 | version_type=none | ||
15862 | dynamic_linker="$host_os ld.so" | ||
15863 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
15864 | need_lib_prefix=unknown | ||
15865 | hardcode_into_libs=no | ||
15866 | |||
15867 | # when you set need_version to no, make sure it does not cause -set_version | ||
15868 | # flags to be left without arguments | ||
15869 | need_version=unknown | ||
15870 | |||
15871 | case $host_os in | ||
15872 | aix3*) | ||
15873 | version_type=linux | ||
15874 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
15875 | shlibpath_var=LIBPATH | ||
15876 | |||
15877 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
15878 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15879 | ;; | ||
15880 | |||
15881 | aix[4-9]*) | ||
15882 | version_type=linux | ||
15883 | need_lib_prefix=no | ||
15884 | need_version=no | ||
15885 | hardcode_into_libs=yes | ||
15886 | if test "$host_cpu" = ia64; then | ||
15887 | # AIX 5 supports IA64 | ||
15888 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
15889 | shlibpath_var=LD_LIBRARY_PATH | ||
15890 | else | ||
15891 | # With GCC up to 2.95.x, collect2 would create an import file | ||
15892 | # for dependence libraries. The import file would start with | ||
15893 | # the line `#! .'. This would cause the generated library to | ||
15894 | # depend on `.', always an invalid library. This was fixed in | ||
15895 | # development snapshots of GCC prior to 3.0. | ||
15896 | case $host_os in | ||
15897 | aix4 | aix4.[01] | aix4.[01].*) | ||
15898 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
15899 | echo ' yes ' | ||
15900 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | ||
15901 | : | ||
15902 | else | ||
15903 | can_build_shared=no | ||
15904 | fi | ||
15905 | ;; | ||
15906 | esac | ||
15907 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
15908 | # soname into executable. Probably we can add versioning support to | ||
15909 | # collect2, so additional links can be useful in future. | ||
15910 | if test "$aix_use_runtimelinking" = yes; then | ||
15911 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
15912 | # instead of lib<name>.a to let people know that these are not | ||
15913 | # typical AIX shared libraries. | ||
15914 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
15915 | else | ||
15916 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
15917 | # and later when we are not doing run time linking. | ||
15918 | library_names_spec='${libname}${release}.a $libname.a' | ||
15919 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15920 | fi | ||
15921 | shlibpath_var=LIBPATH | ||
15922 | fi | ||
15923 | ;; | ||
15924 | |||
15925 | amigaos*) | ||
15926 | case $host_cpu in | ||
15927 | powerpc) | ||
15928 | # Since July 2007 AmigaOS4 officially supports .so libraries. | ||
15929 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | ||
15930 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
15931 | ;; | ||
15932 | m68k) | ||
15933 | library_names_spec='$libname.ixlibrary $libname.a' | ||
15934 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
15935 | 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' | ||
15936 | ;; | ||
15937 | esac | ||
15938 | ;; | ||
15939 | |||
15940 | beos*) | ||
15941 | library_names_spec='${libname}${shared_ext}' | ||
15942 | dynamic_linker="$host_os ld.so" | ||
15943 | shlibpath_var=LIBRARY_PATH | ||
15944 | ;; | ||
15945 | |||
15946 | bsdi[45]*) | ||
15947 | version_type=linux | ||
15948 | need_version=no | ||
15949 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
15950 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15951 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
15952 | shlibpath_var=LD_LIBRARY_PATH | ||
15953 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
15954 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
15955 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
15956 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
15957 | # libtool to hard-code these into programs | ||
15958 | ;; | ||
15959 | |||
15960 | cygwin* | mingw* | pw32* | cegcc*) | ||
15961 | version_type=windows | ||
15962 | shrext_cmds=".dll" | ||
15963 | need_version=no | ||
15964 | need_lib_prefix=no | ||
15965 | |||
15966 | case $GCC,$host_os in | ||
15967 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | ||
15968 | library_names_spec='$libname.dll.a' | ||
15969 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
15970 | postinstall_cmds='base_file=`basename \${file}`~ | ||
15971 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
15972 | dldir=$destdir/`dirname \$dlpath`~ | ||
15973 | test -d \$dldir || mkdir -p \$dldir~ | ||
15974 | $install_prog $dir/$dlname \$dldir/$dlname~ | ||
15975 | chmod a+x \$dldir/$dlname~ | ||
15976 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | ||
15977 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | ||
15978 | fi' | ||
15979 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
15980 | dlpath=$dir/\$dldll~ | ||
15981 | $RM \$dlpath' | ||
15982 | shlibpath_overrides_runpath=yes | ||
15983 | |||
15984 | case $host_os in | ||
15985 | cygwin*) | ||
15986 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
15987 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
15988 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
15989 | ;; | ||
15990 | mingw* | cegcc*) | ||
15991 | # MinGW DLLs use traditional 'lib' prefix | ||
15992 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
15993 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
15994 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | ||
15995 | # It is most probably a Windows format PATH printed by | ||
15996 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
15997 | # path with ; separators, and with drive letters. We can handle the | ||
15998 | # drive letters (cygwin fileutils understands them), so leave them, | ||
15999 | # especially as we might pass files found there to a mingw objdump, | ||
16000 | # which wouldn't understand a cygwinified path. Ahh. | ||
16001 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
16002 | else | ||
16003 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
16004 | fi | ||
16005 | ;; | ||
16006 | pw32*) | ||
16007 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
16008 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
16009 | ;; | ||
16010 | esac | ||
16011 | ;; | ||
16012 | |||
16013 | *) | ||
16014 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
16015 | ;; | ||
16016 | esac | ||
16017 | dynamic_linker='Win32 ld.exe' | ||
16018 | # FIXME: first we should search . and the directory the executable is in | ||
16019 | shlibpath_var=PATH | ||
16020 | ;; | ||
16021 | |||
16022 | darwin* | rhapsody*) | ||
16023 | dynamic_linker="$host_os dyld" | ||
16024 | version_type=darwin | ||
16025 | need_lib_prefix=no | ||
16026 | need_version=no | ||
16027 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
16028 | soname_spec='${libname}${release}${major}$shared_ext' | ||
16029 | shlibpath_overrides_runpath=yes | ||
16030 | shlibpath_var=DYLD_LIBRARY_PATH | ||
16031 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | ||
16032 | |||
16033 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
16034 | ;; | ||
16035 | |||
16036 | dgux*) | ||
16037 | version_type=linux | ||
16038 | need_lib_prefix=no | ||
16039 | need_version=no | ||
16040 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
16041 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16042 | shlibpath_var=LD_LIBRARY_PATH | ||
16043 | ;; | ||
16044 | |||
16045 | freebsd1*) | ||
16046 | dynamic_linker=no | ||
16047 | ;; | ||
16048 | |||
16049 | freebsd* | dragonfly*) | ||
16050 | # DragonFly does not have aout. When/if they implement a new | ||
16051 | # versioning mechanism, adjust this. | ||
16052 | if test -x /usr/bin/objformat; then | ||
16053 | objformat=`/usr/bin/objformat` | ||
16054 | else | ||
16055 | case $host_os in | ||
16056 | freebsd[123]*) objformat=aout ;; | ||
16057 | *) objformat=elf ;; | ||
16058 | esac | ||
16059 | fi | ||
16060 | version_type=freebsd-$objformat | ||
16061 | case $version_type in | ||
16062 | freebsd-elf*) | ||
16063 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
16064 | need_version=no | ||
16065 | need_lib_prefix=no | ||
16066 | ;; | ||
16067 | freebsd-*) | ||
16068 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
16069 | need_version=yes | ||
16070 | ;; | ||
16071 | esac | ||
16072 | shlibpath_var=LD_LIBRARY_PATH | ||
16073 | case $host_os in | ||
16074 | freebsd2*) | ||
16075 | shlibpath_overrides_runpath=yes | ||
16076 | ;; | ||
16077 | freebsd3.[01]* | freebsdelf3.[01]*) | ||
16078 | shlibpath_overrides_runpath=yes | ||
16079 | hardcode_into_libs=yes | ||
16080 | ;; | ||
16081 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | ||
16082 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | ||
16083 | shlibpath_overrides_runpath=no | ||
16084 | hardcode_into_libs=yes | ||
16085 | ;; | ||
16086 | *) # from 4.6 on, and DragonFly | ||
16087 | shlibpath_overrides_runpath=yes | ||
16088 | hardcode_into_libs=yes | ||
16089 | ;; | ||
16090 | esac | ||
16091 | ;; | ||
16092 | |||
16093 | gnu*) | ||
16094 | version_type=linux | ||
16095 | need_lib_prefix=no | ||
16096 | need_version=no | ||
16097 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
16098 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16099 | shlibpath_var=LD_LIBRARY_PATH | ||
16100 | hardcode_into_libs=yes | ||
16101 | ;; | ||
16102 | |||
16103 | hpux9* | hpux10* | hpux11*) | ||
16104 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
16105 | # link against other versions. | ||
16106 | version_type=sunos | ||
16107 | need_lib_prefix=no | ||
16108 | need_version=no | ||
16109 | case $host_cpu in | ||
16110 | ia64*) | ||
16111 | shrext_cmds='.so' | ||
16112 | hardcode_into_libs=yes | ||
16113 | dynamic_linker="$host_os dld.so" | ||
16114 | shlibpath_var=LD_LIBRARY_PATH | ||
16115 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
16116 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16117 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16118 | if test "X$HPUX_IA64_MODE" = X32; then | ||
16119 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
16120 | else | ||
16121 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
16122 | fi | ||
16123 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
16124 | ;; | ||
16125 | hppa*64*) | ||
16126 | shrext_cmds='.sl' | ||
16127 | hardcode_into_libs=yes | ||
16128 | dynamic_linker="$host_os dld.sl" | ||
16129 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
16130 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
16131 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16132 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16133 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
16134 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
16135 | ;; | ||
16136 | *) | ||
16137 | shrext_cmds='.sl' | ||
16138 | dynamic_linker="$host_os dld.sl" | ||
16139 | shlibpath_var=SHLIB_PATH | ||
16140 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
16141 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16142 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16143 | ;; | ||
16144 | esac | ||
16145 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
16146 | postinstall_cmds='chmod 555 $lib' | ||
16147 | ;; | ||
16148 | |||
16149 | interix[3-9]*) | ||
16150 | version_type=linux | ||
16151 | need_lib_prefix=no | ||
16152 | need_version=no | ||
16153 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
16154 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16155 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
16156 | shlibpath_var=LD_LIBRARY_PATH | ||
16157 | shlibpath_overrides_runpath=no | ||
16158 | hardcode_into_libs=yes | ||
16159 | ;; | ||
16160 | |||
16161 | irix5* | irix6* | nonstopux*) | ||
16162 | case $host_os in | ||
16163 | nonstopux*) version_type=nonstopux ;; | ||
16164 | *) | ||
16165 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
16166 | version_type=linux | ||
16167 | else | ||
16168 | version_type=irix | ||
16169 | fi ;; | ||
16170 | esac | ||
16171 | need_lib_prefix=no | ||
16172 | need_version=no | ||
16173 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16174 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
16175 | case $host_os in | ||
16176 | irix5* | nonstopux*) | ||
16177 | libsuff= shlibsuff= | ||
16178 | ;; | ||
16179 | *) | ||
16180 | case $LD in # libtool.m4 will add one of these switches to LD | ||
16181 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
16182 | libsuff= shlibsuff= libmagic=32-bit;; | ||
16183 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
16184 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
16185 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
16186 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
16187 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
16188 | esac | ||
16189 | ;; | ||
16190 | esac | ||
16191 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
16192 | shlibpath_overrides_runpath=no | ||
16193 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
16194 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
16195 | hardcode_into_libs=yes | ||
16196 | ;; | ||
16197 | |||
16198 | # No shared lib support for Linux oldld, aout, or coff. | ||
16199 | linux*oldld* | linux*aout* | linux*coff*) | ||
16200 | dynamic_linker=no | ||
16201 | ;; | ||
16202 | |||
16203 | # This must be Linux ELF. | ||
16204 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
16205 | version_type=linux | ||
16206 | need_lib_prefix=no | ||
16207 | need_version=no | ||
16208 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16209 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16210 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
16211 | shlibpath_var=LD_LIBRARY_PATH | ||
16212 | shlibpath_overrides_runpath=no | ||
16213 | # Some binutils ld are patched to set DT_RUNPATH | ||
16214 | save_LDFLAGS=$LDFLAGS | ||
16215 | save_libdir=$libdir | ||
16216 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | ||
16217 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | ||
16218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16219 | /* end confdefs.h. */ | ||
16220 | |||
16221 | int | ||
16222 | main () | ||
16223 | { | ||
16224 | |||
16225 | ; | ||
16226 | return 0; | ||
16227 | } | ||
16228 | _ACEOF | ||
16229 | if ac_fn_cxx_try_link "$LINENO"; then : | ||
16230 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | ||
16231 | shlibpath_overrides_runpath=yes | ||
16232 | fi | ||
16233 | fi | ||
16234 | rm -f core conftest.err conftest.$ac_objext \ | ||
16235 | conftest$ac_exeext conftest.$ac_ext | ||
16236 | LDFLAGS=$save_LDFLAGS | ||
16237 | libdir=$save_libdir | ||
16238 | |||
16239 | # This implies no fast_install, which is unacceptable. | ||
16240 | # Some rework will be needed to allow for fast_install | ||
16241 | # before this can be enabled. | ||
16242 | hardcode_into_libs=yes | ||
16243 | |||
16244 | # Append ld.so.conf contents to the search path | ||
16245 | if test -f /etc/ld.so.conf; then | ||
16246 | 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' ' '` | ||
16247 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
16248 | fi | ||
16249 | |||
16250 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
16251 | # powerpc, because MkLinux only supported shared libraries with the | ||
16252 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
16253 | # most powerpc-linux boxes support dynamic linking these days and | ||
16254 | # people can always --disable-shared, the test was removed, and we | ||
16255 | # assume the GNU/Linux dynamic linker is in use. | ||
16256 | dynamic_linker='GNU/Linux ld.so' | ||
16257 | ;; | ||
16258 | |||
16259 | netbsdelf*-gnu) | ||
16260 | version_type=linux | ||
16261 | need_lib_prefix=no | ||
16262 | need_version=no | ||
16263 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
16264 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16265 | shlibpath_var=LD_LIBRARY_PATH | ||
16266 | shlibpath_overrides_runpath=no | ||
16267 | hardcode_into_libs=yes | ||
16268 | dynamic_linker='NetBSD ld.elf_so' | ||
16269 | ;; | ||
16270 | |||
16271 | netbsd*) | ||
16272 | version_type=sunos | ||
16273 | need_lib_prefix=no | ||
16274 | need_version=no | ||
16275 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
16276 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
16277 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
16278 | dynamic_linker='NetBSD (a.out) ld.so' | ||
16279 | else | ||
16280 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
16281 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16282 | dynamic_linker='NetBSD ld.elf_so' | ||
16283 | fi | ||
16284 | shlibpath_var=LD_LIBRARY_PATH | ||
16285 | shlibpath_overrides_runpath=yes | ||
16286 | hardcode_into_libs=yes | ||
16287 | ;; | ||
16288 | |||
16289 | newsos6) | ||
16290 | version_type=linux | ||
16291 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16292 | shlibpath_var=LD_LIBRARY_PATH | ||
16293 | shlibpath_overrides_runpath=yes | ||
16294 | ;; | ||
16295 | |||
16296 | *nto* | *qnx*) | ||
16297 | version_type=qnx | ||
16298 | need_lib_prefix=no | ||
16299 | need_version=no | ||
16300 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16301 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16302 | shlibpath_var=LD_LIBRARY_PATH | ||
16303 | shlibpath_overrides_runpath=no | ||
16304 | hardcode_into_libs=yes | ||
16305 | dynamic_linker='ldqnx.so' | ||
16306 | ;; | ||
16307 | |||
16308 | openbsd*) | ||
16309 | version_type=sunos | ||
16310 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
16311 | need_lib_prefix=no | ||
16312 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | ||
16313 | case $host_os in | ||
16314 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | ||
16315 | *) need_version=no ;; | ||
16316 | esac | ||
16317 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
16318 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
16319 | shlibpath_var=LD_LIBRARY_PATH | ||
16320 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
16321 | case $host_os in | ||
16322 | openbsd2.[89] | openbsd2.[89].*) | ||
16323 | shlibpath_overrides_runpath=no | ||
16324 | ;; | ||
16325 | *) | ||
16326 | shlibpath_overrides_runpath=yes | ||
16327 | ;; | ||
16328 | esac | ||
16329 | else | ||
16330 | shlibpath_overrides_runpath=yes | ||
16331 | fi | ||
16332 | ;; | ||
16333 | |||
16334 | os2*) | ||
16335 | libname_spec='$name' | ||
16336 | shrext_cmds=".dll" | ||
16337 | need_lib_prefix=no | ||
16338 | library_names_spec='$libname${shared_ext} $libname.a' | ||
16339 | dynamic_linker='OS/2 ld.exe' | ||
16340 | shlibpath_var=LIBPATH | ||
16341 | ;; | ||
16342 | |||
16343 | osf3* | osf4* | osf5*) | ||
16344 | version_type=osf | ||
16345 | need_lib_prefix=no | ||
16346 | need_version=no | ||
16347 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16348 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16349 | shlibpath_var=LD_LIBRARY_PATH | ||
16350 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
16351 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
16352 | ;; | ||
16353 | |||
16354 | rdos*) | ||
16355 | dynamic_linker=no | ||
16356 | ;; | ||
16357 | |||
16358 | solaris*) | ||
16359 | version_type=linux | ||
16360 | need_lib_prefix=no | ||
16361 | need_version=no | ||
16362 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16363 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16364 | shlibpath_var=LD_LIBRARY_PATH | ||
16365 | shlibpath_overrides_runpath=yes | ||
16366 | hardcode_into_libs=yes | ||
16367 | # ldd complains unless libraries are executable | ||
16368 | postinstall_cmds='chmod +x $lib' | ||
16369 | ;; | ||
16370 | |||
16371 | sunos4*) | ||
16372 | version_type=sunos | ||
16373 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
16374 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
16375 | shlibpath_var=LD_LIBRARY_PATH | ||
16376 | shlibpath_overrides_runpath=yes | ||
16377 | if test "$with_gnu_ld" = yes; then | ||
16378 | need_lib_prefix=no | ||
16379 | fi | ||
16380 | need_version=yes | ||
16381 | ;; | ||
16382 | |||
16383 | sysv4 | sysv4.3*) | ||
16384 | version_type=linux | ||
16385 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16386 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16387 | shlibpath_var=LD_LIBRARY_PATH | ||
16388 | case $host_vendor in | ||
16389 | sni) | ||
16390 | shlibpath_overrides_runpath=no | ||
16391 | need_lib_prefix=no | ||
16392 | runpath_var=LD_RUN_PATH | ||
16393 | ;; | ||
16394 | siemens) | ||
16395 | need_lib_prefix=no | ||
16396 | ;; | ||
16397 | motorola) | ||
16398 | need_lib_prefix=no | ||
16399 | need_version=no | ||
16400 | shlibpath_overrides_runpath=no | ||
16401 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
16402 | ;; | ||
16403 | esac | ||
16404 | ;; | ||
16405 | |||
16406 | sysv4*MP*) | ||
16407 | if test -d /usr/nec ;then | ||
16408 | version_type=linux | ||
16409 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
16410 | soname_spec='$libname${shared_ext}.$major' | ||
16411 | shlibpath_var=LD_LIBRARY_PATH | ||
16412 | fi | ||
16413 | ;; | ||
16414 | |||
16415 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
16416 | version_type=freebsd-elf | ||
16417 | need_lib_prefix=no | ||
16418 | need_version=no | ||
16419 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
16420 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16421 | shlibpath_var=LD_LIBRARY_PATH | ||
16422 | shlibpath_overrides_runpath=yes | ||
16423 | hardcode_into_libs=yes | ||
16424 | if test "$with_gnu_ld" = yes; then | ||
16425 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
16426 | else | ||
16427 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
16428 | case $host_os in | ||
16429 | sco3.2v5*) | ||
16430 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
16431 | ;; | ||
16432 | esac | ||
16433 | fi | ||
16434 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
16435 | ;; | ||
16436 | |||
16437 | tpf*) | ||
16438 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | ||
16439 | version_type=linux | ||
16440 | need_lib_prefix=no | ||
16441 | need_version=no | ||
16442 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16443 | shlibpath_var=LD_LIBRARY_PATH | ||
16444 | shlibpath_overrides_runpath=no | ||
16445 | hardcode_into_libs=yes | ||
16446 | ;; | ||
16447 | |||
16448 | uts4*) | ||
16449 | version_type=linux | ||
16450 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16451 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16452 | shlibpath_var=LD_LIBRARY_PATH | ||
16453 | ;; | ||
16454 | |||
16455 | *) | ||
16456 | dynamic_linker=no | ||
16457 | ;; | ||
16458 | esac | ||
16459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | ||
16460 | $as_echo "$dynamic_linker" >&6; } | ||
16461 | test "$dynamic_linker" = no && can_build_shared=no | ||
16462 | |||
16463 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
16464 | if test "$GCC" = yes; then | ||
16465 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
16466 | fi | ||
16467 | |||
16468 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | ||
16469 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | ||
16470 | fi | ||
16471 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | ||
16472 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | ||
16473 | fi | ||
16474 | |||
16475 | |||
16476 | |||
16477 | |||
16478 | |||
16479 | |||
16480 | |||
16481 | |||
16482 | |||
16483 | |||
16484 | |||
16485 | |||
16486 | |||
16487 | |||
16488 | |||
16489 | |||
16490 | |||
16491 | |||
16492 | |||
16493 | |||
16494 | |||
16495 | |||
16496 | |||
16497 | |||
16498 | |||
16499 | |||
16500 | |||
16501 | |||
16502 | |||
16503 | |||
16504 | |||
16505 | |||
16506 | |||
16507 | |||
16508 | |||
16509 | |||
16510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | ||
16511 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | ||
16512 | hardcode_action_CXX= | ||
16513 | if test -n "$hardcode_libdir_flag_spec_CXX" || | ||
16514 | test -n "$runpath_var_CXX" || | ||
16515 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | ||
16516 | |||
16517 | # We can hardcode non-existent directories. | ||
16518 | if test "$hardcode_direct_CXX" != no && | ||
16519 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
16520 | # have to relink, otherwise we might link with an installed library | ||
16521 | # when we should be linking with a yet-to-be-installed one | ||
16522 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | ||
16523 | test "$hardcode_minus_L_CXX" != no; then | ||
16524 | # Linking always hardcodes the temporary library directory. | ||
16525 | hardcode_action_CXX=relink | ||
16526 | else | ||
16527 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
16528 | hardcode_action_CXX=immediate | ||
16529 | fi | ||
16530 | else | ||
16531 | # We cannot hardcode anything, or else we can only hardcode existing | ||
16532 | # directories. | ||
16533 | hardcode_action_CXX=unsupported | ||
16534 | fi | ||
16535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | ||
16536 | $as_echo "$hardcode_action_CXX" >&6; } | ||
16537 | |||
16538 | if test "$hardcode_action_CXX" = relink || | ||
16539 | test "$inherit_rpath_CXX" = yes; then | ||
16540 | # Fast installation is not supported | ||
16541 | enable_fast_install=no | ||
16542 | elif test "$shlibpath_overrides_runpath" = yes || | ||
16543 | test "$enable_shared" = no; then | ||
16544 | # Fast installation is not necessary | ||
16545 | enable_fast_install=needless | ||
16546 | fi | ||
16547 | |||
16548 | |||
16549 | |||
16550 | |||
16551 | |||
16552 | |||
16553 | |||
16554 | fi # test -n "$compiler" | ||
16555 | |||
16556 | CC=$lt_save_CC | ||
16557 | LDCXX=$LD | ||
16558 | LD=$lt_save_LD | ||
16559 | GCC=$lt_save_GCC | ||
16560 | with_gnu_ld=$lt_save_with_gnu_ld | ||
16561 | lt_cv_path_LDCXX=$lt_cv_path_LD | ||
16562 | lt_cv_path_LD=$lt_save_path_LD | ||
16563 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | ||
16564 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | ||
16565 | fi # test "$_lt_caught_CXX_error" != yes | ||
16566 | |||
16567 | ac_ext=c | ||
16568 | ac_cpp='$CPP $CPPFLAGS' | ||
16569 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
16570 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
16571 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
16572 | |||
16573 | |||
16574 | ac_ext=c | ||
16575 | ac_cpp='$CPP $CPPFLAGS' | ||
16576 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
16577 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
16578 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
16579 | if test -n "$ac_tool_prefix"; then | ||
16580 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
16581 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
16582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
16583 | $as_echo_n "checking for $ac_word... " >&6; } | ||
16584 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
16585 | $as_echo_n "(cached) " >&6 | ||
16586 | else | ||
16587 | if test -n "$CC"; then | ||
16588 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
16589 | else | ||
16590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16591 | for as_dir in $PATH | ||
16592 | do | ||
16593 | IFS=$as_save_IFS | ||
16594 | test -z "$as_dir" && as_dir=. | ||
16595 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16596 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
16597 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
16598 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16599 | break 2 | ||
16600 | fi | ||
16601 | done | ||
16602 | done | ||
16603 | IFS=$as_save_IFS | ||
16604 | |||
16605 | fi | ||
16606 | fi | ||
16607 | CC=$ac_cv_prog_CC | ||
16608 | if test -n "$CC"; then | ||
16609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
16610 | $as_echo "$CC" >&6; } | ||
16611 | else | ||
16612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16613 | $as_echo "no" >&6; } | ||
16614 | fi | ||
16615 | |||
16616 | |||
16617 | fi | ||
16618 | if test -z "$ac_cv_prog_CC"; then | ||
16619 | ac_ct_CC=$CC | ||
16620 | # Extract the first word of "gcc", so it can be a program name with args. | ||
16621 | set dummy gcc; ac_word=$2 | ||
16622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
16623 | $as_echo_n "checking for $ac_word... " >&6; } | ||
16624 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
16625 | $as_echo_n "(cached) " >&6 | ||
16626 | else | ||
16627 | if test -n "$ac_ct_CC"; then | ||
16628 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
16629 | else | ||
16630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16631 | for as_dir in $PATH | ||
16632 | do | ||
16633 | IFS=$as_save_IFS | ||
16634 | test -z "$as_dir" && as_dir=. | ||
16635 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16636 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
16637 | ac_cv_prog_ac_ct_CC="gcc" | ||
16638 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16639 | break 2 | ||
16640 | fi | ||
16641 | done | ||
16642 | done | ||
16643 | IFS=$as_save_IFS | ||
16644 | |||
16645 | fi | ||
16646 | fi | ||
16647 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
16648 | if test -n "$ac_ct_CC"; then | ||
16649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
16650 | $as_echo "$ac_ct_CC" >&6; } | ||
16651 | else | ||
16652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16653 | $as_echo "no" >&6; } | ||
16654 | fi | ||
16655 | |||
16656 | if test "x$ac_ct_CC" = x; then | ||
16657 | CC="" | ||
16658 | else | ||
16659 | case $cross_compiling:$ac_tool_warned in | ||
16660 | yes:) | ||
16661 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
16662 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
16663 | ac_tool_warned=yes ;; | ||
16664 | esac | ||
16665 | CC=$ac_ct_CC | ||
16666 | fi | ||
16667 | else | ||
16668 | CC="$ac_cv_prog_CC" | ||
16669 | fi | ||
16670 | |||
16671 | if test -z "$CC"; then | ||
16672 | if test -n "$ac_tool_prefix"; then | ||
16673 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
16674 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
16675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
16676 | $as_echo_n "checking for $ac_word... " >&6; } | ||
16677 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
16678 | $as_echo_n "(cached) " >&6 | ||
16679 | else | ||
16680 | if test -n "$CC"; then | ||
16681 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
16682 | else | ||
16683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16684 | for as_dir in $PATH | ||
16685 | do | ||
16686 | IFS=$as_save_IFS | ||
16687 | test -z "$as_dir" && as_dir=. | ||
16688 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16689 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
16690 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
16691 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16692 | break 2 | ||
16693 | fi | ||
16694 | done | ||
16695 | done | ||
16696 | IFS=$as_save_IFS | ||
16697 | |||
16698 | fi | ||
16699 | fi | ||
16700 | CC=$ac_cv_prog_CC | ||
16701 | if test -n "$CC"; then | ||
16702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
16703 | $as_echo "$CC" >&6; } | ||
16704 | else | ||
16705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16706 | $as_echo "no" >&6; } | ||
16707 | fi | ||
16708 | |||
16709 | |||
16710 | fi | ||
16711 | fi | ||
16712 | if test -z "$CC"; then | ||
16713 | # Extract the first word of "cc", so it can be a program name with args. | ||
16714 | set dummy cc; ac_word=$2 | ||
16715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
16716 | $as_echo_n "checking for $ac_word... " >&6; } | ||
16717 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
16718 | $as_echo_n "(cached) " >&6 | ||
16719 | else | ||
16720 | if test -n "$CC"; then | ||
16721 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
16722 | else | ||
16723 | ac_prog_rejected=no | ||
16724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16725 | for as_dir in $PATH | ||
16726 | do | ||
16727 | IFS=$as_save_IFS | ||
16728 | test -z "$as_dir" && as_dir=. | ||
16729 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16730 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
16731 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
16732 | ac_prog_rejected=yes | ||
16733 | continue | ||
16734 | fi | ||
16735 | ac_cv_prog_CC="cc" | ||
16736 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16737 | break 2 | ||
16738 | fi | ||
16739 | done | ||
16740 | done | ||
16741 | IFS=$as_save_IFS | ||
16742 | |||
16743 | if test $ac_prog_rejected = yes; then | ||
16744 | # We found a bogon in the path, so make sure we never use it. | ||
16745 | set dummy $ac_cv_prog_CC | ||
16746 | shift | ||
16747 | if test $# != 0; then | ||
16748 | # We chose a different compiler from the bogus one. | ||
16749 | # However, it has the same basename, so the bogon will be chosen | ||
16750 | # first if we set CC to just the basename; use the full file name. | ||
16751 | shift | ||
16752 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
16753 | fi | ||
16754 | fi | ||
16755 | fi | ||
16756 | fi | ||
16757 | CC=$ac_cv_prog_CC | ||
16758 | if test -n "$CC"; then | ||
16759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
16760 | $as_echo "$CC" >&6; } | ||
16761 | else | ||
16762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16763 | $as_echo "no" >&6; } | ||
16764 | fi | ||
16765 | |||
16766 | |||
16767 | fi | ||
16768 | if test -z "$CC"; then | ||
16769 | if test -n "$ac_tool_prefix"; then | ||
16770 | for ac_prog in cl.exe | ||
16771 | do | ||
16772 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
16773 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
16774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
16775 | $as_echo_n "checking for $ac_word... " >&6; } | ||
16776 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
16777 | $as_echo_n "(cached) " >&6 | ||
16778 | else | ||
16779 | if test -n "$CC"; then | ||
16780 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
16781 | else | ||
16782 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16783 | for as_dir in $PATH | ||
16784 | do | ||
16785 | IFS=$as_save_IFS | ||
16786 | test -z "$as_dir" && as_dir=. | ||
16787 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16788 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
16789 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
16790 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16791 | break 2 | ||
16792 | fi | ||
16793 | done | ||
16794 | done | ||
16795 | IFS=$as_save_IFS | ||
16796 | |||
16797 | fi | ||
16798 | fi | ||
16799 | CC=$ac_cv_prog_CC | ||
16800 | if test -n "$CC"; then | ||
16801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
16802 | $as_echo "$CC" >&6; } | ||
16803 | else | ||
16804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16805 | $as_echo "no" >&6; } | ||
16806 | fi | ||
16807 | |||
16808 | |||
16809 | test -n "$CC" && break | ||
16810 | done | ||
16811 | fi | ||
16812 | if test -z "$CC"; then | ||
16813 | ac_ct_CC=$CC | ||
16814 | for ac_prog in cl.exe | ||
16815 | do | ||
16816 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
16817 | set dummy $ac_prog; ac_word=$2 | ||
16818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
16819 | $as_echo_n "checking for $ac_word... " >&6; } | ||
16820 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
16821 | $as_echo_n "(cached) " >&6 | ||
16822 | else | ||
16823 | if test -n "$ac_ct_CC"; then | ||
16824 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
16825 | else | ||
16826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16827 | for as_dir in $PATH | ||
16828 | do | ||
16829 | IFS=$as_save_IFS | ||
16830 | test -z "$as_dir" && as_dir=. | ||
16831 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16832 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
16833 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
16834 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16835 | break 2 | ||
16836 | fi | ||
16837 | done | ||
16838 | done | ||
16839 | IFS=$as_save_IFS | ||
16840 | |||
16841 | fi | ||
16842 | fi | ||
16843 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
16844 | if test -n "$ac_ct_CC"; then | ||
16845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
16846 | $as_echo "$ac_ct_CC" >&6; } | ||
16847 | else | ||
16848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16849 | $as_echo "no" >&6; } | ||
16850 | fi | ||
16851 | |||
16852 | |||
16853 | test -n "$ac_ct_CC" && break | ||
16854 | done | ||
16855 | |||
16856 | if test "x$ac_ct_CC" = x; then | ||
16857 | CC="" | ||
16858 | else | ||
16859 | case $cross_compiling:$ac_tool_warned in | ||
16860 | yes:) | ||
16861 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
16862 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
16863 | ac_tool_warned=yes ;; | ||
16864 | esac | ||
16865 | CC=$ac_ct_CC | ||
16866 | fi | ||
16867 | fi | ||
16868 | |||
16869 | fi | ||
16870 | |||
16871 | |||
16872 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
16873 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
16874 | as_fn_error $? "no acceptable C compiler found in \$PATH | ||
16875 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
16876 | |||
16877 | # Provide some information about the compiler. | ||
16878 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
16879 | set X $ac_compile | ||
16880 | ac_compiler=$2 | ||
16881 | for ac_option in --version -v -V -qversion; do | ||
16882 | { { ac_try="$ac_compiler $ac_option >&5" | ||
16883 | case "(($ac_try" in | ||
16884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16885 | *) ac_try_echo=$ac_try;; | ||
16886 | esac | ||
16887 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
16888 | $as_echo "$ac_try_echo"; } >&5 | ||
16889 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
16890 | ac_status=$? | ||
16891 | if test -s conftest.err; then | ||
16892 | sed '10a\ | ||
16893 | ... rest of stderr output deleted ... | ||
16894 | 10q' conftest.err >conftest.er1 | ||
16895 | cat conftest.er1 >&5 | ||
16896 | fi | ||
16897 | rm -f conftest.er1 conftest.err | ||
16898 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
16899 | test $ac_status = 0; } | ||
16900 | done | ||
16901 | |||
16902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | ||
16903 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
16904 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | ||
16905 | $as_echo_n "(cached) " >&6 | ||
16906 | else | ||
16907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16908 | /* end confdefs.h. */ | ||
16909 | |||
16910 | int | ||
16911 | main () | ||
16912 | { | ||
16913 | #ifndef __GNUC__ | ||
16914 | choke me | ||
16915 | #endif | ||
16916 | |||
16917 | ; | ||
16918 | return 0; | ||
16919 | } | ||
16920 | _ACEOF | ||
16921 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16922 | ac_compiler_gnu=yes | ||
16923 | else | ||
16924 | ac_compiler_gnu=no | ||
16925 | fi | ||
16926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16927 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
16928 | |||
16929 | fi | ||
16930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
16931 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
16932 | if test $ac_compiler_gnu = yes; then | ||
16933 | GCC=yes | ||
16934 | else | ||
16935 | GCC= | ||
16936 | fi | ||
16937 | ac_test_CFLAGS=${CFLAGS+set} | ||
16938 | ac_save_CFLAGS=$CFLAGS | ||
16939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
16940 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
16941 | if test "${ac_cv_prog_cc_g+set}" = set; then : | ||
16942 | $as_echo_n "(cached) " >&6 | ||
16943 | else | ||
16944 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
16945 | ac_c_werror_flag=yes | ||
16946 | ac_cv_prog_cc_g=no | ||
16947 | CFLAGS="-g" | ||
16948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16949 | /* end confdefs.h. */ | ||
16950 | |||
16951 | int | ||
16952 | main () | ||
16953 | { | ||
16954 | |||
16955 | ; | ||
16956 | return 0; | ||
16957 | } | ||
16958 | _ACEOF | ||
16959 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16960 | ac_cv_prog_cc_g=yes | ||
16961 | else | ||
16962 | CFLAGS="" | ||
16963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16964 | /* end confdefs.h. */ | ||
16965 | |||
16966 | int | ||
16967 | main () | ||
16968 | { | ||
16969 | |||
16970 | ; | ||
16971 | return 0; | ||
16972 | } | ||
16973 | _ACEOF | ||
16974 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16975 | |||
16976 | else | ||
16977 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
16978 | CFLAGS="-g" | ||
16979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16980 | /* end confdefs.h. */ | ||
16981 | |||
16982 | int | ||
16983 | main () | ||
16984 | { | ||
16985 | |||
16986 | ; | ||
16987 | return 0; | ||
16988 | } | ||
16989 | _ACEOF | ||
16990 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16991 | ac_cv_prog_cc_g=yes | ||
16992 | fi | ||
16993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16994 | fi | ||
16995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16996 | fi | ||
16997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16998 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
16999 | fi | ||
17000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
17001 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
17002 | if test "$ac_test_CFLAGS" = set; then | ||
17003 | CFLAGS=$ac_save_CFLAGS | ||
17004 | elif test $ac_cv_prog_cc_g = yes; then | ||
17005 | if test "$GCC" = yes; then | ||
17006 | CFLAGS="-g -O2" | ||
17007 | else | ||
17008 | CFLAGS="-g" | ||
17009 | fi | ||
17010 | else | ||
17011 | if test "$GCC" = yes; then | ||
17012 | CFLAGS="-O2" | ||
17013 | else | ||
17014 | CFLAGS= | ||
17015 | fi | ||
17016 | fi | ||
17017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
17018 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
17019 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
17020 | $as_echo_n "(cached) " >&6 | ||
17021 | else | ||
17022 | ac_cv_prog_cc_c89=no | ||
17023 | ac_save_CC=$CC | ||
17024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17025 | /* end confdefs.h. */ | ||
17026 | #include <stdarg.h> | ||
17027 | #include <stdio.h> | ||
17028 | #include <sys/types.h> | ||
17029 | #include <sys/stat.h> | ||
17030 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
17031 | struct buf { int x; }; | ||
17032 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
17033 | static char *e (p, i) | ||
17034 | char **p; | ||
17035 | int i; | ||
17036 | { | ||
17037 | return p[i]; | ||
17038 | } | ||
17039 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
17040 | { | ||
17041 | char *s; | ||
17042 | va_list v; | ||
17043 | va_start (v,p); | ||
17044 | s = g (p, va_arg (v,int)); | ||
17045 | va_end (v); | ||
17046 | return s; | ||
17047 | } | ||
17048 | |||
17049 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
17050 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
17051 | These don't provoke an error unfortunately, instead are silently treated | ||
17052 | as 'x'. The following induces an error, until -std is added to get | ||
17053 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
17054 | array size at least. It's necessary to write '\x00'==0 to get something | ||
17055 | that's true only with -std. */ | ||
17056 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
17057 | |||
17058 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
17059 | inside strings and character constants. */ | ||
17060 | #define FOO(x) 'x' | ||
17061 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
17062 | |||
17063 | int test (int i, double x); | ||
17064 | struct s1 {int (*f) (int a);}; | ||
17065 | struct s2 {int (*f) (double a);}; | ||
17066 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
17067 | int argc; | ||
17068 | char **argv; | ||
17069 | int | ||
17070 | main () | ||
17071 | { | ||
17072 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
17073 | ; | ||
17074 | return 0; | ||
17075 | } | ||
17076 | _ACEOF | ||
17077 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
17078 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
17079 | do | ||
17080 | CC="$ac_save_CC $ac_arg" | ||
17081 | if ac_fn_c_try_compile "$LINENO"; then : | ||
17082 | ac_cv_prog_cc_c89=$ac_arg | ||
17083 | fi | ||
17084 | rm -f core conftest.err conftest.$ac_objext | ||
17085 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
17086 | done | ||
17087 | rm -f conftest.$ac_ext | ||
17088 | CC=$ac_save_CC | ||
17089 | |||
17090 | fi | ||
17091 | # AC_CACHE_VAL | ||
17092 | case "x$ac_cv_prog_cc_c89" in | ||
17093 | x) | ||
17094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
17095 | $as_echo "none needed" >&6; } ;; | ||
17096 | xno) | ||
17097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
17098 | $as_echo "unsupported" >&6; } ;; | ||
17099 | *) | ||
17100 | CC="$CC $ac_cv_prog_cc_c89" | ||
17101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
17102 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
17103 | esac | ||
17104 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
17105 | |||
17106 | fi | ||
17107 | |||
17108 | ac_ext=c | ||
17109 | ac_cpp='$CPP $CPPFLAGS' | ||
17110 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
17111 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
17112 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
17113 | |||
17114 | depcc="$CC" am_compiler_list= | ||
17115 | |||
17116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | ||
17117 | $as_echo_n "checking dependency style of $depcc... " >&6; } | ||
17118 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | ||
17119 | $as_echo_n "(cached) " >&6 | ||
17120 | else | ||
17121 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
17122 | # We make a subdir and do the tests there. Otherwise we can end up | ||
17123 | # making bogus files that we don't know about and never remove. For | ||
17124 | # instance it was reported that on HP-UX the gcc test will end up | ||
17125 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
17126 | # in D'. | ||
17127 | mkdir conftest.dir | ||
17128 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
17129 | # using a relative directory. | ||
17130 | cp "$am_depcomp" conftest.dir | ||
17131 | cd conftest.dir | ||
17132 | # We will build objects and dependencies in a subdirectory because | ||
17133 | # it helps to detect inapplicable dependency modes. For instance | ||
17134 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
17135 | # side effect of compilation, but ICC will put the dependencies in | ||
17136 | # the current directory while Tru64 will put them in the object | ||
17137 | # directory. | ||
17138 | mkdir sub | ||
17139 | |||
17140 | am_cv_CC_dependencies_compiler_type=none | ||
17141 | if test "$am_compiler_list" = ""; then | ||
17142 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
17143 | fi | ||
17144 | am__universal=false | ||
17145 | case " $depcc " in #( | ||
17146 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | ||
17147 | esac | ||
17148 | |||
17149 | for depmode in $am_compiler_list; do | ||
17150 | # Setup a source with many dependencies, because some compilers | ||
17151 | # like to wrap large dependency lists on column 80 (with \), and | ||
17152 | # we should not choose a depcomp mode which is confused by this. | ||
17153 | # | ||
17154 | # We need to recreate these files for each test, as the compiler may | ||
17155 | # overwrite some of them when testing with obscure command lines. | ||
17156 | # This happens at least with the AIX C compiler. | ||
17157 | : > sub/conftest.c | ||
17158 | for i in 1 2 3 4 5 6; do | ||
17159 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
17160 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
17161 | # Solaris 8's {/usr,}/bin/sh. | ||
17162 | touch sub/conftst$i.h | ||
17163 | done | ||
17164 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
17165 | |||
17166 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
17167 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
17168 | # handle `-M -o', and we need to detect this. Also, some Intel | ||
17169 | # versions had trouble with output in subdirs | ||
17170 | am__obj=sub/conftest.${OBJEXT-o} | ||
17171 | am__minus_obj="-o $am__obj" | ||
17172 | case $depmode in | ||
17173 | gcc) | ||
17174 | # This depmode causes a compiler race in universal mode. | ||
17175 | test "$am__universal" = false || continue | ||
17176 | ;; | ||
17177 | nosideeffect) | ||
17178 | # after this tag, mechanisms are not by side-effect, so they'll | ||
17179 | # only be used when explicitly requested | ||
17180 | if test "x$enable_dependency_tracking" = xyes; then | ||
17181 | continue | ||
17182 | else | ||
17183 | break | ||
17184 | fi | ||
17185 | ;; | ||
17186 | msvisualcpp | msvcmsys) | ||
17187 | # This compiler won't grok `-c -o', but also, the minuso test has | ||
17188 | # not run yet. These depmodes are late enough in the game, and | ||
17189 | # so weak that their functioning should not be impacted. | ||
17190 | am__obj=conftest.${OBJEXT-o} | ||
17191 | am__minus_obj= | ||
17192 | ;; | ||
17193 | none) break ;; | ||
17194 | esac | ||
17195 | if depmode=$depmode \ | ||
17196 | source=sub/conftest.c object=$am__obj \ | ||
17197 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
17198 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | ||
17199 | >/dev/null 2>conftest.err && | ||
17200 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
17201 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
17202 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | ||
17203 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
17204 | # icc doesn't choke on unknown options, it will just issue warnings | ||
17205 | # or remarks (even with -Werror). So we grep stderr for any message | ||
17206 | # that says an option was ignored or not supported. | ||
17207 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
17208 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
17209 | # The diagnosis changed in icc 8.0: | ||
17210 | # icc: Command line remark: option '-MP' not supported | ||
17211 | if (grep 'ignoring option' conftest.err || | ||
17212 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
17213 | am_cv_CC_dependencies_compiler_type=$depmode | ||
17214 | break | ||
17215 | fi | ||
17216 | fi | ||
17217 | done | ||
17218 | |||
17219 | cd .. | ||
17220 | rm -rf conftest.dir | ||
17221 | else | ||
17222 | am_cv_CC_dependencies_compiler_type=none | ||
17223 | fi | ||
17224 | |||
17225 | fi | ||
17226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | ||
17227 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | ||
17228 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
17229 | |||
17230 | if | ||
17231 | test "x$enable_dependency_tracking" != xno \ | ||
17232 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
17233 | am__fastdepCC_TRUE= | ||
17234 | am__fastdepCC_FALSE='#' | ||
17235 | else | ||
17236 | am__fastdepCC_TRUE='#' | ||
17237 | am__fastdepCC_FALSE= | ||
17238 | fi | ||
17239 | |||
17240 | |||
17241 | |||
17242 | # pkg-config | ||
17243 | |||
17244 | |||
17245 | |||
17246 | |||
17247 | |||
17248 | |||
17249 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | ||
17250 | if test -n "$ac_tool_prefix"; then | ||
17251 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||
17252 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||
17253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
17254 | $as_echo_n "checking for $ac_word... " >&6; } | ||
17255 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | ||
17256 | $as_echo_n "(cached) " >&6 | ||
17257 | else | ||
17258 | case $PKG_CONFIG in | ||
17259 | [\\/]* | ?:[\\/]*) | ||
17260 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
17261 | ;; | ||
17262 | *) | ||
17263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17264 | for as_dir in $PATH | ||
17265 | do | ||
17266 | IFS=$as_save_IFS | ||
17267 | test -z "$as_dir" && as_dir=. | ||
17268 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17269 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17270 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
17271 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17272 | break 2 | ||
17273 | fi | ||
17274 | done | ||
17275 | done | ||
17276 | IFS=$as_save_IFS | ||
17277 | |||
17278 | ;; | ||
17279 | esac | ||
17280 | fi | ||
17281 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
17282 | if test -n "$PKG_CONFIG"; then | ||
17283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | ||
17284 | $as_echo "$PKG_CONFIG" >&6; } | ||
17285 | else | ||
17286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17287 | $as_echo "no" >&6; } | ||
17288 | fi | ||
17289 | |||
17290 | |||
17291 | fi | ||
17292 | if test -z "$ac_cv_path_PKG_CONFIG"; then | ||
17293 | ac_pt_PKG_CONFIG=$PKG_CONFIG | ||
17294 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
17295 | set dummy pkg-config; ac_word=$2 | ||
17296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
17297 | $as_echo_n "checking for $ac_word... " >&6; } | ||
17298 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : | ||
17299 | $as_echo_n "(cached) " >&6 | ||
17300 | else | ||
17301 | case $ac_pt_PKG_CONFIG in | ||
17302 | [\\/]* | ?:[\\/]*) | ||
17303 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | ||
17304 | ;; | ||
17305 | *) | ||
17306 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17307 | for as_dir in $PATH | ||
17308 | do | ||
17309 | IFS=$as_save_IFS | ||
17310 | test -z "$as_dir" && as_dir=. | ||
17311 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17312 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17313 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
17314 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17315 | break 2 | ||
17316 | fi | ||
17317 | done | ||
17318 | done | ||
17319 | IFS=$as_save_IFS | ||
17320 | |||
17321 | ;; | ||
17322 | esac | ||
17323 | fi | ||
17324 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | ||
17325 | if test -n "$ac_pt_PKG_CONFIG"; then | ||
17326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | ||
17327 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | ||
17328 | else | ||
17329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17330 | $as_echo "no" >&6; } | ||
17331 | fi | ||
17332 | |||
17333 | if test "x$ac_pt_PKG_CONFIG" = x; then | ||
17334 | PKG_CONFIG="" | ||
17335 | else | ||
17336 | case $cross_compiling:$ac_tool_warned in | ||
17337 | yes:) | ||
17338 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
17339 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
17340 | ac_tool_warned=yes ;; | ||
17341 | esac | ||
17342 | PKG_CONFIG=$ac_pt_PKG_CONFIG | ||
17343 | fi | ||
17344 | else | ||
17345 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | ||
17346 | fi | ||
17347 | |||
17348 | fi | ||
17349 | if test -n "$PKG_CONFIG"; then | ||
17350 | _pkg_min_version=0.9.0 | ||
17351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | ||
17352 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | ||
17353 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | ||
17354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17355 | $as_echo "yes" >&6; } | ||
17356 | else | ||
17357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17358 | $as_echo "no" >&6; } | ||
17359 | PKG_CONFIG="" | ||
17360 | fi | ||
17361 | fi | ||
17362 | |||
17363 | # Check whether pkg-config supports Requires.private | ||
17364 | if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then | ||
17365 | pkgconfig_requires_private="Requires.private" | ||
17366 | else | ||
17367 | pkgconfig_requires_private="Requires" | ||
17368 | fi | ||
17369 | |||
17370 | |||
17371 | # doxygen program for documentation building | ||
17372 | |||
17373 | |||
17374 | # Check whether --enable-doc was given. | ||
17375 | if test "${enable_doc+set}" = set; then : | ||
17376 | enableval=$enable_doc; | ||
17377 | if test "x${enableval}" = "xyes" ; then | ||
17378 | efl_enable_doc="yes" | ||
17379 | else | ||
17380 | efl_enable_doc="no" | ||
17381 | fi | ||
17382 | |||
17383 | else | ||
17384 | efl_enable_doc="yes" | ||
17385 | fi | ||
17386 | |||
17387 | |||
17388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 | ||
17389 | $as_echo_n "checking whether to build documentation... " >&6; } | ||
17390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${efl_enable_doc}" >&5 | ||
17391 | $as_echo "${efl_enable_doc}" >&6; } | ||
17392 | |||
17393 | if test "x${efl_enable_doc}" = "xyes" ; then | ||
17394 | |||
17395 | |||
17396 | efl_doxygen="doxygen" | ||
17397 | |||
17398 | |||
17399 | # Check whether --with-doxygen was given. | ||
17400 | if test "${with_doxygen+set}" = set; then : | ||
17401 | withval=$with_doxygen; | ||
17402 | efl_doxygen=${withval} | ||
17403 | # Extract the first word of "${efl_doxygen}", so it can be a program name with args. | ||
17404 | set dummy ${efl_doxygen}; ac_word=$2 | ||
17405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
17406 | $as_echo_n "checking for $ac_word... " >&6; } | ||
17407 | if test "${ac_cv_prog_efl_have_doxygen+set}" = set; then : | ||
17408 | $as_echo_n "(cached) " >&6 | ||
17409 | else | ||
17410 | if test -n "$efl_have_doxygen"; then | ||
17411 | ac_cv_prog_efl_have_doxygen="$efl_have_doxygen" # Let the user override the test. | ||
17412 | else | ||
17413 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17414 | for as_dir in $PATH | ||
17415 | do | ||
17416 | IFS=$as_save_IFS | ||
17417 | test -z "$as_dir" && as_dir=. | ||
17418 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17419 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17420 | ac_cv_prog_efl_have_doxygen="yes" | ||
17421 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17422 | break 2 | ||
17423 | fi | ||
17424 | done | ||
17425 | done | ||
17426 | IFS=$as_save_IFS | ||
17427 | |||
17428 | test -z "$ac_cv_prog_efl_have_doxygen" && ac_cv_prog_efl_have_doxygen="no" | ||
17429 | fi | ||
17430 | fi | ||
17431 | efl_have_doxygen=$ac_cv_prog_efl_have_doxygen | ||
17432 | if test -n "$efl_have_doxygen"; then | ||
17433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $efl_have_doxygen" >&5 | ||
17434 | $as_echo "$efl_have_doxygen" >&6; } | ||
17435 | else | ||
17436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17437 | $as_echo "no" >&6; } | ||
17438 | fi | ||
17439 | |||
17440 | |||
17441 | if test "x${efl_have_doxygen}" = "xno" ; then | ||
17442 | echo "WARNING:" | ||
17443 | echo "The doxygen program you specified:" | ||
17444 | echo "${efl_doxygen}" | ||
17445 | echo "was not found. Please check the path and make sure " | ||
17446 | echo "the program exists and is executable." | ||
17447 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no doxygen detected. Documentation will not be built" >&5 | ||
17448 | $as_echo "$as_me: WARNING: no doxygen detected. Documentation will not be built" >&2;} | ||
17449 | fi | ||
17450 | |||
17451 | else | ||
17452 | # Extract the first word of "${efl_doxygen}", so it can be a program name with args. | ||
17453 | set dummy ${efl_doxygen}; ac_word=$2 | ||
17454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
17455 | $as_echo_n "checking for $ac_word... " >&6; } | ||
17456 | if test "${ac_cv_prog_efl_have_doxygen+set}" = set; then : | ||
17457 | $as_echo_n "(cached) " >&6 | ||
17458 | else | ||
17459 | if test -n "$efl_have_doxygen"; then | ||
17460 | ac_cv_prog_efl_have_doxygen="$efl_have_doxygen" # Let the user override the test. | ||
17461 | else | ||
17462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17463 | for as_dir in $PATH | ||
17464 | do | ||
17465 | IFS=$as_save_IFS | ||
17466 | test -z "$as_dir" && as_dir=. | ||
17467 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17468 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17469 | ac_cv_prog_efl_have_doxygen="yes" | ||
17470 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17471 | break 2 | ||
17472 | fi | ||
17473 | done | ||
17474 | done | ||
17475 | IFS=$as_save_IFS | ||
17476 | |||
17477 | test -z "$ac_cv_prog_efl_have_doxygen" && ac_cv_prog_efl_have_doxygen="no" | ||
17478 | fi | ||
17479 | fi | ||
17480 | efl_have_doxygen=$ac_cv_prog_efl_have_doxygen | ||
17481 | if test -n "$efl_have_doxygen"; then | ||
17482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $efl_have_doxygen" >&5 | ||
17483 | $as_echo "$efl_have_doxygen" >&6; } | ||
17484 | else | ||
17485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17486 | $as_echo "no" >&6; } | ||
17487 | fi | ||
17488 | |||
17489 | |||
17490 | if test "x${efl_have_doxygen}" = "xno" ; then | ||
17491 | echo "WARNING:" | ||
17492 | echo "The doxygen program was not found in your execute path." | ||
17493 | echo "You may have doxygen installed somewhere not covered by your path." | ||
17494 | echo "" | ||
17495 | echo "If this is the case make sure you have the packages installed, AND" | ||
17496 | echo "that the doxygen program is in your execute path (see your" | ||
17497 | echo "shell manual page on setting the \$PATH environment variable), OR" | ||
17498 | echo "alternatively, specify the program to use with --with-doxygen." | ||
17499 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no doxygen detected. Documentation will not be built" >&5 | ||
17500 | $as_echo "$as_me: WARNING: no doxygen detected. Documentation will not be built" >&2;} | ||
17501 | fi | ||
17502 | |||
17503 | fi | ||
17504 | |||
17505 | fi | ||
17506 | |||
17507 | |||
17508 | |||
17509 | if ! test "x${efl_have_doxygen}" = "xyes" ; then | ||
17510 | efl_enable_doc="no" | ||
17511 | fi | ||
17512 | |||
17513 | if test "x${efl_enable_doc}" = "xyes"; then | ||
17514 | EFL_BUILD_DOC_TRUE= | ||
17515 | EFL_BUILD_DOC_FALSE='#' | ||
17516 | else | ||
17517 | EFL_BUILD_DOC_TRUE='#' | ||
17518 | EFL_BUILD_DOC_FALSE= | ||
17519 | fi | ||
17520 | |||
17521 | |||
17522 | if test "x${efl_enable_doc}" = "xyes" ; then | ||
17523 | build_doc="yes" | ||
17524 | else | ||
17525 | build_doc="no" | ||
17526 | fi | ||
17527 | |||
17528 | |||
17529 | |||
17530 | |||
17531 | ### Checks for libraries | ||
17532 | |||
17533 | # Evil library for compilation on Windows CE | ||
17534 | |||
17535 | case "$host_os" in | ||
17536 | mingw*) | ||
17537 | |||
17538 | pkg_failed=no | ||
17539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVIL" >&5 | ||
17540 | $as_echo_n "checking for EVIL... " >&6; } | ||
17541 | |||
17542 | if test -n "$EVIL_CFLAGS"; then | ||
17543 | pkg_cv_EVIL_CFLAGS="$EVIL_CFLAGS" | ||
17544 | elif test -n "$PKG_CONFIG"; then | ||
17545 | if test -n "$PKG_CONFIG" && \ | ||
17546 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evil >= 1.0.0\""; } >&5 | ||
17547 | ($PKG_CONFIG --exists --print-errors "evil >= 1.0.0") 2>&5 | ||
17548 | ac_status=$? | ||
17549 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17550 | test $ac_status = 0; }; then | ||
17551 | pkg_cv_EVIL_CFLAGS=`$PKG_CONFIG --cflags "evil >= 1.0.0" 2>/dev/null` | ||
17552 | else | ||
17553 | pkg_failed=yes | ||
17554 | fi | ||
17555 | else | ||
17556 | pkg_failed=untried | ||
17557 | fi | ||
17558 | if test -n "$EVIL_LIBS"; then | ||
17559 | pkg_cv_EVIL_LIBS="$EVIL_LIBS" | ||
17560 | elif test -n "$PKG_CONFIG"; then | ||
17561 | if test -n "$PKG_CONFIG" && \ | ||
17562 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evil >= 1.0.0\""; } >&5 | ||
17563 | ($PKG_CONFIG --exists --print-errors "evil >= 1.0.0") 2>&5 | ||
17564 | ac_status=$? | ||
17565 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17566 | test $ac_status = 0; }; then | ||
17567 | pkg_cv_EVIL_LIBS=`$PKG_CONFIG --libs "evil >= 1.0.0" 2>/dev/null` | ||
17568 | else | ||
17569 | pkg_failed=yes | ||
17570 | fi | ||
17571 | else | ||
17572 | pkg_failed=untried | ||
17573 | fi | ||
17574 | |||
17575 | |||
17576 | |||
17577 | if test $pkg_failed = yes; then | ||
17578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17579 | $as_echo "no" >&6; } | ||
17580 | |||
17581 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
17582 | _pkg_short_errors_supported=yes | ||
17583 | else | ||
17584 | _pkg_short_errors_supported=no | ||
17585 | fi | ||
17586 | if test $_pkg_short_errors_supported = yes; then | ||
17587 | EVIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "evil >= 1.0.0" 2>&1` | ||
17588 | else | ||
17589 | EVIL_PKG_ERRORS=`$PKG_CONFIG --print-errors "evil >= 1.0.0" 2>&1` | ||
17590 | fi | ||
17591 | # Put the nasty error message in config.log where it belongs | ||
17592 | echo "$EVIL_PKG_ERRORS" >&5 | ||
17593 | |||
17594 | as_fn_error $? "Package requirements (evil >= 1.0.0) were not met: | ||
17595 | |||
17596 | $EVIL_PKG_ERRORS | ||
17597 | |||
17598 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
17599 | installed software in a non-standard prefix. | ||
17600 | |||
17601 | Alternatively, you may set the environment variables EVIL_CFLAGS | ||
17602 | and EVIL_LIBS to avoid the need to call pkg-config. | ||
17603 | See the pkg-config man page for more details." "$LINENO" 5 | ||
17604 | elif test $pkg_failed = untried; then | ||
17605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17606 | $as_echo "no" >&6; } | ||
17607 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
17608 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
17609 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
17610 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
17611 | path to pkg-config. | ||
17612 | |||
17613 | Alternatively, you may set the environment variables EVIL_CFLAGS | ||
17614 | and EVIL_LIBS to avoid the need to call pkg-config. | ||
17615 | See the pkg-config man page for more details. | ||
17616 | |||
17617 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
17618 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
17619 | else | ||
17620 | EVIL_CFLAGS=$pkg_cv_EVIL_CFLAGS | ||
17621 | EVIL_LIBS=$pkg_cv_EVIL_LIBS | ||
17622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17623 | $as_echo "yes" >&6; } | ||
17624 | |||
17625 | fi | ||
17626 | |||
17627 | $as_echo "#define HAVE_EVIL 1" >>confdefs.h | ||
17628 | |||
17629 | requirement_evas="evil ${requirement_evas}" | ||
17630 | ;; | ||
17631 | esac | ||
17632 | |||
17633 | ### Checks for portability layer | ||
17634 | |||
17635 | |||
17636 | pkg_failed=no | ||
17637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXOTIC" >&5 | ||
17638 | $as_echo_n "checking for EXOTIC... " >&6; } | ||
17639 | |||
17640 | if test -n "$EXOTIC_CFLAGS"; then | ||
17641 | pkg_cv_EXOTIC_CFLAGS="$EXOTIC_CFLAGS" | ||
17642 | elif test -n "$PKG_CONFIG"; then | ||
17643 | if test -n "$PKG_CONFIG" && \ | ||
17644 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"exotic\""; } >&5 | ||
17645 | ($PKG_CONFIG --exists --print-errors "exotic") 2>&5 | ||
17646 | ac_status=$? | ||
17647 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17648 | test $ac_status = 0; }; then | ||
17649 | pkg_cv_EXOTIC_CFLAGS=`$PKG_CONFIG --cflags "exotic" 2>/dev/null` | ||
17650 | else | ||
17651 | pkg_failed=yes | ||
17652 | fi | ||
17653 | else | ||
17654 | pkg_failed=untried | ||
17655 | fi | ||
17656 | if test -n "$EXOTIC_LIBS"; then | ||
17657 | pkg_cv_EXOTIC_LIBS="$EXOTIC_LIBS" | ||
17658 | elif test -n "$PKG_CONFIG"; then | ||
17659 | if test -n "$PKG_CONFIG" && \ | ||
17660 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"exotic\""; } >&5 | ||
17661 | ($PKG_CONFIG --exists --print-errors "exotic") 2>&5 | ||
17662 | ac_status=$? | ||
17663 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17664 | test $ac_status = 0; }; then | ||
17665 | pkg_cv_EXOTIC_LIBS=`$PKG_CONFIG --libs "exotic" 2>/dev/null` | ||
17666 | else | ||
17667 | pkg_failed=yes | ||
17668 | fi | ||
17669 | else | ||
17670 | pkg_failed=untried | ||
17671 | fi | ||
17672 | |||
17673 | |||
17674 | |||
17675 | if test $pkg_failed = yes; then | ||
17676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17677 | $as_echo "no" >&6; } | ||
17678 | |||
17679 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
17680 | _pkg_short_errors_supported=yes | ||
17681 | else | ||
17682 | _pkg_short_errors_supported=no | ||
17683 | fi | ||
17684 | if test $_pkg_short_errors_supported = yes; then | ||
17685 | EXOTIC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "exotic" 2>&1` | ||
17686 | else | ||
17687 | EXOTIC_PKG_ERRORS=`$PKG_CONFIG --print-errors "exotic" 2>&1` | ||
17688 | fi | ||
17689 | # Put the nasty error message in config.log where it belongs | ||
17690 | echo "$EXOTIC_PKG_ERRORS" >&5 | ||
17691 | |||
17692 | enable_exotic="no" | ||
17693 | elif test $pkg_failed = untried; then | ||
17694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17695 | $as_echo "no" >&6; } | ||
17696 | enable_exotic="no" | ||
17697 | else | ||
17698 | EXOTIC_CFLAGS=$pkg_cv_EXOTIC_CFLAGS | ||
17699 | EXOTIC_LIBS=$pkg_cv_EXOTIC_LIBS | ||
17700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17701 | $as_echo "yes" >&6; } | ||
17702 | enable_exotic="yes" | ||
17703 | fi | ||
17704 | |||
17705 | if test "x${enable_exotic}" = "xyes"; then | ||
17706 | requirement_evas="exotic ${requirement_evas}" | ||
17707 | |||
17708 | |||
17709 | $as_echo "#define HAVE_EXOTIC 1" >>confdefs.h | ||
17710 | |||
17711 | fi | ||
17712 | if test "x${enable_exotic}" = "xyes"; then | ||
17713 | EVAS_HAVE_EXOTIC_TRUE= | ||
17714 | EVAS_HAVE_EXOTIC_FALSE='#' | ||
17715 | else | ||
17716 | EVAS_HAVE_EXOTIC_TRUE='#' | ||
17717 | EVAS_HAVE_EXOTIC_FALSE= | ||
17718 | fi | ||
17719 | |||
17720 | |||
17721 | ## strong dependencies | ||
17722 | |||
17723 | # Eina | ||
17724 | |||
17725 | pkg_failed=no | ||
17726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EINA" >&5 | ||
17727 | $as_echo_n "checking for EINA... " >&6; } | ||
17728 | |||
17729 | if test -n "$EINA_CFLAGS"; then | ||
17730 | pkg_cv_EINA_CFLAGS="$EINA_CFLAGS" | ||
17731 | elif test -n "$PKG_CONFIG"; then | ||
17732 | if test -n "$PKG_CONFIG" && \ | ||
17733 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eina >= 1.2.0\""; } >&5 | ||
17734 | ($PKG_CONFIG --exists --print-errors "eina >= 1.2.0") 2>&5 | ||
17735 | ac_status=$? | ||
17736 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17737 | test $ac_status = 0; }; then | ||
17738 | pkg_cv_EINA_CFLAGS=`$PKG_CONFIG --cflags "eina >= 1.2.0" 2>/dev/null` | ||
17739 | else | ||
17740 | pkg_failed=yes | ||
17741 | fi | ||
17742 | else | ||
17743 | pkg_failed=untried | ||
17744 | fi | ||
17745 | if test -n "$EINA_LIBS"; then | ||
17746 | pkg_cv_EINA_LIBS="$EINA_LIBS" | ||
17747 | elif test -n "$PKG_CONFIG"; then | ||
17748 | if test -n "$PKG_CONFIG" && \ | ||
17749 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eina >= 1.2.0\""; } >&5 | ||
17750 | ($PKG_CONFIG --exists --print-errors "eina >= 1.2.0") 2>&5 | ||
17751 | ac_status=$? | ||
17752 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17753 | test $ac_status = 0; }; then | ||
17754 | pkg_cv_EINA_LIBS=`$PKG_CONFIG --libs "eina >= 1.2.0" 2>/dev/null` | ||
17755 | else | ||
17756 | pkg_failed=yes | ||
17757 | fi | ||
17758 | else | ||
17759 | pkg_failed=untried | ||
17760 | fi | ||
17761 | |||
17762 | |||
17763 | |||
17764 | if test $pkg_failed = yes; then | ||
17765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17766 | $as_echo "no" >&6; } | ||
17767 | |||
17768 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
17769 | _pkg_short_errors_supported=yes | ||
17770 | else | ||
17771 | _pkg_short_errors_supported=no | ||
17772 | fi | ||
17773 | if test $_pkg_short_errors_supported = yes; then | ||
17774 | EINA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eina >= 1.2.0" 2>&1` | ||
17775 | else | ||
17776 | EINA_PKG_ERRORS=`$PKG_CONFIG --print-errors "eina >= 1.2.0" 2>&1` | ||
17777 | fi | ||
17778 | # Put the nasty error message in config.log where it belongs | ||
17779 | echo "$EINA_PKG_ERRORS" >&5 | ||
17780 | |||
17781 | as_fn_error $? "Package requirements (eina >= 1.2.0) were not met: | ||
17782 | |||
17783 | $EINA_PKG_ERRORS | ||
17784 | |||
17785 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
17786 | installed software in a non-standard prefix. | ||
17787 | |||
17788 | Alternatively, you may set the environment variables EINA_CFLAGS | ||
17789 | and EINA_LIBS to avoid the need to call pkg-config. | ||
17790 | See the pkg-config man page for more details." "$LINENO" 5 | ||
17791 | elif test $pkg_failed = untried; then | ||
17792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17793 | $as_echo "no" >&6; } | ||
17794 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
17795 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
17796 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
17797 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
17798 | path to pkg-config. | ||
17799 | |||
17800 | Alternatively, you may set the environment variables EINA_CFLAGS | ||
17801 | and EINA_LIBS to avoid the need to call pkg-config. | ||
17802 | See the pkg-config man page for more details. | ||
17803 | |||
17804 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
17805 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
17806 | else | ||
17807 | EINA_CFLAGS=$pkg_cv_EINA_CFLAGS | ||
17808 | EINA_LIBS=$pkg_cv_EINA_LIBS | ||
17809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17810 | $as_echo "yes" >&6; } | ||
17811 | |||
17812 | fi | ||
17813 | CPPFLAGS_SAVE="$CPPFLAGS" | ||
17814 | CPPFLAGS="$CPPFLAGS $EINA_CFLAGS" | ||
17815 | # The cast to long int works around a bug in the HP C Compiler | ||
17816 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
17817 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
17818 | # This bug is HP SR number 8606223364. | ||
17819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Eina_Unicode" >&5 | ||
17820 | $as_echo_n "checking size of Eina_Unicode... " >&6; } | ||
17821 | if test "${ac_cv_sizeof_Eina_Unicode+set}" = set; then : | ||
17822 | $as_echo_n "(cached) " >&6 | ||
17823 | else | ||
17824 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (Eina_Unicode))" "ac_cv_sizeof_Eina_Unicode" "#include <Eina.h> | ||
17825 | "; then : | ||
17826 | |||
17827 | else | ||
17828 | if test "$ac_cv_type_Eina_Unicode" = yes; then | ||
17829 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
17830 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
17831 | as_fn_error 77 "cannot compute sizeof (Eina_Unicode) | ||
17832 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
17833 | else | ||
17834 | ac_cv_sizeof_Eina_Unicode=0 | ||
17835 | fi | ||
17836 | fi | ||
17837 | |||
17838 | fi | ||
17839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_Eina_Unicode" >&5 | ||
17840 | $as_echo "$ac_cv_sizeof_Eina_Unicode" >&6; } | ||
17841 | |||
17842 | |||
17843 | |||
17844 | cat >>confdefs.h <<_ACEOF | ||
17845 | #define SIZEOF_EINA_UNICODE $ac_cv_sizeof_Eina_Unicode | ||
17846 | _ACEOF | ||
17847 | |||
17848 | |||
17849 | CPPFLAGS="$CPPFLAGS_SAVE" | ||
17850 | |||
17851 | # Freetype | ||
17852 | |||
17853 | pkg_failed=no | ||
17854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 | ||
17855 | $as_echo_n "checking for FREETYPE... " >&6; } | ||
17856 | |||
17857 | if test -n "$FREETYPE_CFLAGS"; then | ||
17858 | pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" | ||
17859 | elif test -n "$PKG_CONFIG"; then | ||
17860 | if test -n "$PKG_CONFIG" && \ | ||
17861 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 9.3.0\""; } >&5 | ||
17862 | ($PKG_CONFIG --exists --print-errors "freetype2 >= 9.3.0") 2>&5 | ||
17863 | ac_status=$? | ||
17864 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17865 | test $ac_status = 0; }; then | ||
17866 | pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 9.3.0" 2>/dev/null` | ||
17867 | else | ||
17868 | pkg_failed=yes | ||
17869 | fi | ||
17870 | else | ||
17871 | pkg_failed=untried | ||
17872 | fi | ||
17873 | if test -n "$FREETYPE_LIBS"; then | ||
17874 | pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" | ||
17875 | elif test -n "$PKG_CONFIG"; then | ||
17876 | if test -n "$PKG_CONFIG" && \ | ||
17877 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 9.3.0\""; } >&5 | ||
17878 | ($PKG_CONFIG --exists --print-errors "freetype2 >= 9.3.0") 2>&5 | ||
17879 | ac_status=$? | ||
17880 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17881 | test $ac_status = 0; }; then | ||
17882 | pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 9.3.0" 2>/dev/null` | ||
17883 | else | ||
17884 | pkg_failed=yes | ||
17885 | fi | ||
17886 | else | ||
17887 | pkg_failed=untried | ||
17888 | fi | ||
17889 | |||
17890 | |||
17891 | |||
17892 | if test $pkg_failed = yes; then | ||
17893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17894 | $as_echo "no" >&6; } | ||
17895 | |||
17896 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
17897 | _pkg_short_errors_supported=yes | ||
17898 | else | ||
17899 | _pkg_short_errors_supported=no | ||
17900 | fi | ||
17901 | if test $_pkg_short_errors_supported = yes; then | ||
17902 | FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2 >= 9.3.0" 2>&1` | ||
17903 | else | ||
17904 | FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2 >= 9.3.0" 2>&1` | ||
17905 | fi | ||
17906 | # Put the nasty error message in config.log where it belongs | ||
17907 | echo "$FREETYPE_PKG_ERRORS" >&5 | ||
17908 | |||
17909 | as_fn_error $? "Package requirements (freetype2 >= 9.3.0) were not met: | ||
17910 | |||
17911 | $FREETYPE_PKG_ERRORS | ||
17912 | |||
17913 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
17914 | installed software in a non-standard prefix. | ||
17915 | |||
17916 | Alternatively, you may set the environment variables FREETYPE_CFLAGS | ||
17917 | and FREETYPE_LIBS to avoid the need to call pkg-config. | ||
17918 | See the pkg-config man page for more details." "$LINENO" 5 | ||
17919 | elif test $pkg_failed = untried; then | ||
17920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17921 | $as_echo "no" >&6; } | ||
17922 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
17923 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
17924 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
17925 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
17926 | path to pkg-config. | ||
17927 | |||
17928 | Alternatively, you may set the environment variables FREETYPE_CFLAGS | ||
17929 | and FREETYPE_LIBS to avoid the need to call pkg-config. | ||
17930 | See the pkg-config man page for more details. | ||
17931 | |||
17932 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
17933 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
17934 | else | ||
17935 | FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS | ||
17936 | FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS | ||
17937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17938 | $as_echo "yes" >&6; } | ||
17939 | |||
17940 | fi | ||
17941 | |||
17942 | requirement_evas="freetype2 eina >= 1.2.0 ${requirement_evas}" | ||
17943 | |||
17944 | ## optional dependencies | ||
17945 | |||
17946 | # FontConfig | ||
17947 | have_fontconfig="no" | ||
17948 | # Check whether --enable-fontconfig was given. | ||
17949 | if test "${enable_fontconfig+set}" = set; then : | ||
17950 | enableval=$enable_fontconfig; | ||
17951 | if test "x${enableval}" = "xyes" ; then | ||
17952 | want_fontconfig="yes" | ||
17953 | else | ||
17954 | want_fontconfig="no" | ||
17955 | fi | ||
17956 | |||
17957 | fi | ||
17958 | |||
17959 | |||
17960 | |||
17961 | if test "x${want_fontconfig}" = "xyes" -o "x${want_fontconfig}" = "xauto" ; then | ||
17962 | |||
17963 | pkg_failed=no | ||
17964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5 | ||
17965 | $as_echo_n "checking for FONTCONFIG... " >&6; } | ||
17966 | |||
17967 | if test -n "$FONTCONFIG_CFLAGS"; then | ||
17968 | pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS" | ||
17969 | elif test -n "$PKG_CONFIG"; then | ||
17970 | if test -n "$PKG_CONFIG" && \ | ||
17971 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.5.0\""; } >&5 | ||
17972 | ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.5.0") 2>&5 | ||
17973 | ac_status=$? | ||
17974 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17975 | test $ac_status = 0; }; then | ||
17976 | pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.5.0" 2>/dev/null` | ||
17977 | else | ||
17978 | pkg_failed=yes | ||
17979 | fi | ||
17980 | else | ||
17981 | pkg_failed=untried | ||
17982 | fi | ||
17983 | if test -n "$FONTCONFIG_LIBS"; then | ||
17984 | pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS" | ||
17985 | elif test -n "$PKG_CONFIG"; then | ||
17986 | if test -n "$PKG_CONFIG" && \ | ||
17987 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.5.0\""; } >&5 | ||
17988 | ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.5.0") 2>&5 | ||
17989 | ac_status=$? | ||
17990 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
17991 | test $ac_status = 0; }; then | ||
17992 | pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.5.0" 2>/dev/null` | ||
17993 | else | ||
17994 | pkg_failed=yes | ||
17995 | fi | ||
17996 | else | ||
17997 | pkg_failed=untried | ||
17998 | fi | ||
17999 | |||
18000 | |||
18001 | |||
18002 | if test $pkg_failed = yes; then | ||
18003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18004 | $as_echo "no" >&6; } | ||
18005 | |||
18006 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
18007 | _pkg_short_errors_supported=yes | ||
18008 | else | ||
18009 | _pkg_short_errors_supported=no | ||
18010 | fi | ||
18011 | if test $_pkg_short_errors_supported = yes; then | ||
18012 | FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.5.0" 2>&1` | ||
18013 | else | ||
18014 | FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.5.0" 2>&1` | ||
18015 | fi | ||
18016 | # Put the nasty error message in config.log where it belongs | ||
18017 | echo "$FONTCONFIG_PKG_ERRORS" >&5 | ||
18018 | |||
18019 | |||
18020 | if test "x${want_fontconfig}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
18021 | as_fn_error $? "Fontconfig not found (strict dependencies checking)" "$LINENO" 5 | ||
18022 | fi | ||
18023 | |||
18024 | elif test $pkg_failed = untried; then | ||
18025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18026 | $as_echo "no" >&6; } | ||
18027 | |||
18028 | if test "x${want_fontconfig}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
18029 | as_fn_error $? "Fontconfig not found (strict dependencies checking)" "$LINENO" 5 | ||
18030 | fi | ||
18031 | |||
18032 | else | ||
18033 | FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS | ||
18034 | FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS | ||
18035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18036 | $as_echo "yes" >&6; } | ||
18037 | |||
18038 | have_fontconfig="yes" | ||
18039 | |||
18040 | $as_echo "#define HAVE_FONTCONFIG 1" >>confdefs.h | ||
18041 | |||
18042 | requirement_evas="fontconfig ${requirement_evas}" | ||
18043 | |||
18044 | fi | ||
18045 | fi | ||
18046 | |||
18047 | # linebreak | ||
18048 | have_linebreak="no" | ||
18049 | want_linebreak="yes" | ||
18050 | # Check whether --enable-liblinebreak was given. | ||
18051 | if test "${enable_liblinebreak+set}" = set; then : | ||
18052 | enableval=$enable_liblinebreak; | ||
18053 | if test "x${enableval}" = "xyes" ; then | ||
18054 | want_linebreak="yes" | ||
18055 | else | ||
18056 | want_linebreak="no" | ||
18057 | fi | ||
18058 | |||
18059 | fi | ||
18060 | |||
18061 | |||
18062 | |||
18063 | if test "x${want_linebreak}" = "xyes"; then | ||
18064 | EVAS_USE_LINEBREAK_TRUE= | ||
18065 | EVAS_USE_LINEBREAK_FALSE='#' | ||
18066 | else | ||
18067 | EVAS_USE_LINEBREAK_TRUE='#' | ||
18068 | EVAS_USE_LINEBREAK_FALSE= | ||
18069 | fi | ||
18070 | |||
18071 | if test "x${want_linebreak}" = "xyes" ; then | ||
18072 | have_linebreak="yes" | ||
18073 | LINEBREAK_CFLAGS='-I$(top_srcdir)/src/static_deps/liblinebreak' | ||
18074 | LINEBREAK_LIBS='$(top_builddir)/src/static_deps/liblinebreak/liblinebreak.la' | ||
18075 | |||
18076 | |||
18077 | |||
18078 | $as_echo "#define HAVE_LINEBREAK 1" >>confdefs.h | ||
18079 | |||
18080 | else | ||
18081 | have_linebreak="no" | ||
18082 | fi | ||
18083 | |||
18084 | # fribidi support | ||
18085 | have_fribidi="no" | ||
18086 | # Check whether --enable-fribidi was given. | ||
18087 | if test "${enable_fribidi+set}" = set; then : | ||
18088 | enableval=$enable_fribidi; | ||
18089 | if test "x${enableval}" = "xyes" ; then | ||
18090 | want_fribidi="yes" | ||
18091 | else | ||
18092 | want_fribidi="no" | ||
18093 | fi | ||
18094 | |||
18095 | fi | ||
18096 | |||
18097 | |||
18098 | if test "x${want_fribidi}" = "xyes" -o "x${want_fribidi}" = "xauto" ; then | ||
18099 | |||
18100 | pkg_failed=no | ||
18101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FRIBIDI" >&5 | ||
18102 | $as_echo_n "checking for FRIBIDI... " >&6; } | ||
18103 | |||
18104 | if test -n "$FRIBIDI_CFLAGS"; then | ||
18105 | pkg_cv_FRIBIDI_CFLAGS="$FRIBIDI_CFLAGS" | ||
18106 | elif test -n "$PKG_CONFIG"; then | ||
18107 | if test -n "$PKG_CONFIG" && \ | ||
18108 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fribidi >= 0.19.2\""; } >&5 | ||
18109 | ($PKG_CONFIG --exists --print-errors "fribidi >= 0.19.2") 2>&5 | ||
18110 | ac_status=$? | ||
18111 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
18112 | test $ac_status = 0; }; then | ||
18113 | pkg_cv_FRIBIDI_CFLAGS=`$PKG_CONFIG --cflags "fribidi >= 0.19.2" 2>/dev/null` | ||
18114 | else | ||
18115 | pkg_failed=yes | ||
18116 | fi | ||
18117 | else | ||
18118 | pkg_failed=untried | ||
18119 | fi | ||
18120 | if test -n "$FRIBIDI_LIBS"; then | ||
18121 | pkg_cv_FRIBIDI_LIBS="$FRIBIDI_LIBS" | ||
18122 | elif test -n "$PKG_CONFIG"; then | ||
18123 | if test -n "$PKG_CONFIG" && \ | ||
18124 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fribidi >= 0.19.2\""; } >&5 | ||
18125 | ($PKG_CONFIG --exists --print-errors "fribidi >= 0.19.2") 2>&5 | ||
18126 | ac_status=$? | ||
18127 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
18128 | test $ac_status = 0; }; then | ||
18129 | pkg_cv_FRIBIDI_LIBS=`$PKG_CONFIG --libs "fribidi >= 0.19.2" 2>/dev/null` | ||
18130 | else | ||
18131 | pkg_failed=yes | ||
18132 | fi | ||
18133 | else | ||
18134 | pkg_failed=untried | ||
18135 | fi | ||
18136 | |||
18137 | |||
18138 | |||
18139 | if test $pkg_failed = yes; then | ||
18140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18141 | $as_echo "no" >&6; } | ||
18142 | |||
18143 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
18144 | _pkg_short_errors_supported=yes | ||
18145 | else | ||
18146 | _pkg_short_errors_supported=no | ||
18147 | fi | ||
18148 | if test $_pkg_short_errors_supported = yes; then | ||
18149 | FRIBIDI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fribidi >= 0.19.2" 2>&1` | ||
18150 | else | ||
18151 | FRIBIDI_PKG_ERRORS=`$PKG_CONFIG --print-errors "fribidi >= 0.19.2" 2>&1` | ||
18152 | fi | ||
18153 | # Put the nasty error message in config.log where it belongs | ||
18154 | echo "$FRIBIDI_PKG_ERRORS" >&5 | ||
18155 | |||
18156 | |||
18157 | if test "x$want_fribidi" = "xyes" -a "x$use_strict" = "xyes" ; then | ||
18158 | as_fn_error $? "Fribidi not found (strict dependencies checking)" "$LINENO" 5 | ||
18159 | fi | ||
18160 | |||
18161 | elif test $pkg_failed = untried; then | ||
18162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18163 | $as_echo "no" >&6; } | ||
18164 | |||
18165 | if test "x$want_fribidi" = "xyes" -a "x$use_strict" = "xyes" ; then | ||
18166 | as_fn_error $? "Fribidi not found (strict dependencies checking)" "$LINENO" 5 | ||
18167 | fi | ||
18168 | |||
18169 | else | ||
18170 | FRIBIDI_CFLAGS=$pkg_cv_FRIBIDI_CFLAGS | ||
18171 | FRIBIDI_LIBS=$pkg_cv_FRIBIDI_LIBS | ||
18172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18173 | $as_echo "yes" >&6; } | ||
18174 | |||
18175 | have_fribidi="yes" | ||
18176 | |||
18177 | $as_echo "#define HAVE_FRIBIDI 1" >>confdefs.h | ||
18178 | |||
18179 | requirement_evas="fribidi ${requirement_evas}" | ||
18180 | CPPFLAGS_SAVE="$CPPFLAGS" | ||
18181 | CPPFLAGS="$CPPFLAGS $FRIBIDI_CFLAGS" | ||
18182 | # The cast to long int works around a bug in the HP C Compiler | ||
18183 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
18184 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
18185 | # This bug is HP SR number 8606223364. | ||
18186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of FriBidiChar" >&5 | ||
18187 | $as_echo_n "checking size of FriBidiChar... " >&6; } | ||
18188 | if test "${ac_cv_sizeof_FriBidiChar+set}" = set; then : | ||
18189 | $as_echo_n "(cached) " >&6 | ||
18190 | else | ||
18191 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (FriBidiChar))" "ac_cv_sizeof_FriBidiChar" "#include <fribidi/fribidi.h> | ||
18192 | "; then : | ||
18193 | |||
18194 | else | ||
18195 | if test "$ac_cv_type_FriBidiChar" = yes; then | ||
18196 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
18197 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
18198 | as_fn_error 77 "cannot compute sizeof (FriBidiChar) | ||
18199 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
18200 | else | ||
18201 | ac_cv_sizeof_FriBidiChar=0 | ||
18202 | fi | ||
18203 | fi | ||
18204 | |||
18205 | fi | ||
18206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_FriBidiChar" >&5 | ||
18207 | $as_echo "$ac_cv_sizeof_FriBidiChar" >&6; } | ||
18208 | |||
18209 | |||
18210 | |||
18211 | cat >>confdefs.h <<_ACEOF | ||
18212 | #define SIZEOF_FRIBIDICHAR $ac_cv_sizeof_FriBidiChar | ||
18213 | _ACEOF | ||
18214 | |||
18215 | |||
18216 | CPPFLAGS="$CPPFLAGS_SAVE" | ||
18217 | |||
18218 | fi | ||
18219 | fi | ||
18220 | |||
18221 | if test "x${have_fribidi}" = "xno"; then | ||
18222 | HAS_BIDI=0 | ||
18223 | fi | ||
18224 | |||
18225 | # harfbuzz support | ||
18226 | have_harfbuzz="no" | ||
18227 | have_harfbuzz_ft="no" | ||
18228 | # Check whether --enable-harfbuzz was given. | ||
18229 | if test "${enable_harfbuzz+set}" = set; then : | ||
18230 | enableval=$enable_harfbuzz; | ||
18231 | if test "x${enableval}" = "xyes" ; then | ||
18232 | want_harfbuzz="yes" | ||
18233 | else | ||
18234 | want_harfbuzz="no" | ||
18235 | fi | ||
18236 | |||
18237 | fi | ||
18238 | |||
18239 | |||
18240 | if test "x${want_harfbuzz}" = "xyes" -o "x${want_harfbuzz}" = "xauto" ; then | ||
18241 | |||
18242 | pkg_failed=no | ||
18243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HARFBUZZ" >&5 | ||
18244 | $as_echo_n "checking for HARFBUZZ... " >&6; } | ||
18245 | |||
18246 | if test -n "$HARFBUZZ_CFLAGS"; then | ||
18247 | pkg_cv_HARFBUZZ_CFLAGS="$HARFBUZZ_CFLAGS" | ||
18248 | elif test -n "$PKG_CONFIG"; then | ||
18249 | if test -n "$PKG_CONFIG" && \ | ||
18250 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"harfbuzz >= 0.6.0\""; } >&5 | ||
18251 | ($PKG_CONFIG --exists --print-errors "harfbuzz >= 0.6.0") 2>&5 | ||
18252 | ac_status=$? | ||
18253 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
18254 | test $ac_status = 0; }; then | ||
18255 | pkg_cv_HARFBUZZ_CFLAGS=`$PKG_CONFIG --cflags "harfbuzz >= 0.6.0" 2>/dev/null` | ||
18256 | else | ||
18257 | pkg_failed=yes | ||
18258 | fi | ||
18259 | else | ||
18260 | pkg_failed=untried | ||
18261 | fi | ||
18262 | if test -n "$HARFBUZZ_LIBS"; then | ||
18263 | pkg_cv_HARFBUZZ_LIBS="$HARFBUZZ_LIBS" | ||
18264 | elif test -n "$PKG_CONFIG"; then | ||
18265 | if test -n "$PKG_CONFIG" && \ | ||
18266 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"harfbuzz >= 0.6.0\""; } >&5 | ||
18267 | ($PKG_CONFIG --exists --print-errors "harfbuzz >= 0.6.0") 2>&5 | ||
18268 | ac_status=$? | ||
18269 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
18270 | test $ac_status = 0; }; then | ||
18271 | pkg_cv_HARFBUZZ_LIBS=`$PKG_CONFIG --libs "harfbuzz >= 0.6.0" 2>/dev/null` | ||
18272 | else | ||
18273 | pkg_failed=yes | ||
18274 | fi | ||
18275 | else | ||
18276 | pkg_failed=untried | ||
18277 | fi | ||
18278 | |||
18279 | |||
18280 | |||
18281 | if test $pkg_failed = yes; then | ||
18282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18283 | $as_echo "no" >&6; } | ||
18284 | |||
18285 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
18286 | _pkg_short_errors_supported=yes | ||
18287 | else | ||
18288 | _pkg_short_errors_supported=no | ||
18289 | fi | ||
18290 | if test $_pkg_short_errors_supported = yes; then | ||
18291 | HARFBUZZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "harfbuzz >= 0.6.0" 2>&1` | ||
18292 | else | ||
18293 | HARFBUZZ_PKG_ERRORS=`$PKG_CONFIG --print-errors "harfbuzz >= 0.6.0" 2>&1` | ||
18294 | fi | ||
18295 | # Put the nasty error message in config.log where it belongs | ||
18296 | echo "$HARFBUZZ_PKG_ERRORS" >&5 | ||
18297 | |||
18298 | |||
18299 | if test "x$want_harfbuzz" = "xyes" -a "x$use_strict" = "xyes" ; then | ||
18300 | as_fn_error $? "Harfbuzz not found (strict dependencies checking)" "$LINENO" 5 | ||
18301 | fi | ||
18302 | |||
18303 | elif test $pkg_failed = untried; then | ||
18304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18305 | $as_echo "no" >&6; } | ||
18306 | |||
18307 | if test "x$want_harfbuzz" = "xyes" -a "x$use_strict" = "xyes" ; then | ||
18308 | as_fn_error $? "Harfbuzz not found (strict dependencies checking)" "$LINENO" 5 | ||
18309 | fi | ||
18310 | |||
18311 | else | ||
18312 | HARFBUZZ_CFLAGS=$pkg_cv_HARFBUZZ_CFLAGS | ||
18313 | HARFBUZZ_LIBS=$pkg_cv_HARFBUZZ_LIBS | ||
18314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18315 | $as_echo "yes" >&6; } | ||
18316 | |||
18317 | have_harfbuzz="yes" | ||
18318 | requirement_evas="harfbuzz ${requirement_evas}" | ||
18319 | |||
18320 | fi | ||
18321 | if test "x$have_harfbuzz" = "xyes" ; then | ||
18322 | |||
18323 | CPPFLAGS_SAVE="$CPPFLAGS" | ||
18324 | CPPFLAGS="$CPPFLAGS $HARFBUZZ_CFLAGS $FREETYPE_CFLAGS" | ||
18325 | # must have for usage with harfbuzz although harfbuzz may not have it. | ||
18326 | |||
18327 | ac_fn_c_check_header_mongrel "$LINENO" "hb-ft.h" "ac_cv_header_hb_ft_h" "$ac_includes_default" | ||
18328 | if test "x$ac_cv_header_hb_ft_h" = x""yes; then : | ||
18329 | |||
18330 | have_harfbuzz_ft="yes" | ||
18331 | #Depend on harfbuzz ft for harfbuzz support | ||
18332 | |||
18333 | $as_echo "#define HAVE_HARFBUZZ 1" >>confdefs.h | ||
18334 | |||
18335 | |||
18336 | else | ||
18337 | |||
18338 | if test "x$want_harfbuzz" = "xyes" -a "x$use_strict" = "xyes" ; then | ||
18339 | as_fn_error $? "Harfbuzz-ft not found (strict dependencies checking)" "$LINENO" 5 | ||
18340 | fi | ||
18341 | have_harfbuzz="no" | ||
18342 | |||
18343 | fi | ||
18344 | |||
18345 | |||
18346 | CPPFLAGS="$CPPFLAGS_SAVE" | ||
18347 | fi | ||
18348 | fi | ||
18349 | |||
18350 | if test "x${have_harfbuzz}" = "xno"; then | ||
18351 | HAS_HARFBUZZ=0 | ||
18352 | fi | ||
18353 | |||
18354 | # Pixman | ||
18355 | have_pixman="no" | ||
18356 | # Check whether --enable-pixman was given. | ||
18357 | if test "${enable_pixman+set}" = set; then : | ||
18358 | enableval=$enable_pixman; | ||
18359 | if test "x${enableval}" = "xyes" ; then | ||
18360 | want_pixman="yes" | ||
18361 | else | ||
18362 | want_pixman="no" | ||
18363 | fi | ||
18364 | |||
18365 | fi | ||
18366 | |||
18367 | |||
18368 | |||
18369 | if test "x${want_pixman}" = "xyes" -o "x${want_pixman}" = "xauto" ; then | ||
18370 | |||
18371 | pkg_failed=no | ||
18372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIXMAN" >&5 | ||
18373 | $as_echo_n "checking for PIXMAN... " >&6; } | ||
18374 | |||
18375 | if test -n "$PIXMAN_CFLAGS"; then | ||
18376 | pkg_cv_PIXMAN_CFLAGS="$PIXMAN_CFLAGS" | ||
18377 | elif test -n "$PKG_CONFIG"; then | ||
18378 | if test -n "$PKG_CONFIG" && \ | ||
18379 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pixman-1\""; } >&5 | ||
18380 | ($PKG_CONFIG --exists --print-errors "pixman-1") 2>&5 | ||
18381 | ac_status=$? | ||
18382 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
18383 | test $ac_status = 0; }; then | ||
18384 | pkg_cv_PIXMAN_CFLAGS=`$PKG_CONFIG --cflags "pixman-1" 2>/dev/null` | ||
18385 | else | ||
18386 | pkg_failed=yes | ||
18387 | fi | ||
18388 | else | ||
18389 | pkg_failed=untried | ||
18390 | fi | ||
18391 | if test -n "$PIXMAN_LIBS"; then | ||
18392 | pkg_cv_PIXMAN_LIBS="$PIXMAN_LIBS" | ||
18393 | elif test -n "$PKG_CONFIG"; then | ||
18394 | if test -n "$PKG_CONFIG" && \ | ||
18395 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pixman-1\""; } >&5 | ||
18396 | ($PKG_CONFIG --exists --print-errors "pixman-1") 2>&5 | ||
18397 | ac_status=$? | ||
18398 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
18399 | test $ac_status = 0; }; then | ||
18400 | pkg_cv_PIXMAN_LIBS=`$PKG_CONFIG --libs "pixman-1" 2>/dev/null` | ||
18401 | else | ||
18402 | pkg_failed=yes | ||
18403 | fi | ||
18404 | else | ||
18405 | pkg_failed=untried | ||
18406 | fi | ||
18407 | |||
18408 | |||
18409 | |||
18410 | if test $pkg_failed = yes; then | ||
18411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18412 | $as_echo "no" >&6; } | ||
18413 | |||
18414 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
18415 | _pkg_short_errors_supported=yes | ||
18416 | else | ||
18417 | _pkg_short_errors_supported=no | ||
18418 | fi | ||
18419 | if test $_pkg_short_errors_supported = yes; then | ||
18420 | PIXMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pixman-1" 2>&1` | ||
18421 | else | ||
18422 | PIXMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "pixman-1" 2>&1` | ||
18423 | fi | ||
18424 | # Put the nasty error message in config.log where it belongs | ||
18425 | echo "$PIXMAN_PKG_ERRORS" >&5 | ||
18426 | |||
18427 | |||
18428 | if test "x${want_pixman}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
18429 | as_fn_error $? "Pixman not found (strict dependencies checking)" "$LINENO" 5 | ||
18430 | fi | ||
18431 | |||
18432 | elif test $pkg_failed = untried; then | ||
18433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18434 | $as_echo "no" >&6; } | ||
18435 | |||
18436 | if test "x${want_pixman}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
18437 | as_fn_error $? "Pixman not found (strict dependencies checking)" "$LINENO" 5 | ||
18438 | fi | ||
18439 | |||
18440 | else | ||
18441 | PIXMAN_CFLAGS=$pkg_cv_PIXMAN_CFLAGS | ||
18442 | PIXMAN_LIBS=$pkg_cv_PIXMAN_LIBS | ||
18443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18444 | $as_echo "yes" >&6; } | ||
18445 | |||
18446 | have_pixman="yes" | ||
18447 | |||
18448 | $as_echo "#define HAVE_PIXMAN 1" >>confdefs.h | ||
18449 | |||
18450 | requirement_evas="pixman-1 ${requirement_evas}" | ||
18451 | |||
18452 | fi | ||
18453 | fi | ||
18454 | |||
18455 | have_pixman_font="no" | ||
18456 | # Check whether --enable-pixman-font was given. | ||
18457 | if test "${enable_pixman_font+set}" = set; then : | ||
18458 | enableval=$enable_pixman_font; | ||
18459 | have_pixman_font="yes" | ||
18460 | |||
18461 | $as_echo "#define PIXMAN_FONT 1" >>confdefs.h | ||
18462 | |||
18463 | |||
18464 | |||
18465 | fi | ||
18466 | |||
18467 | |||
18468 | have_pixman_rect="no" | ||
18469 | # Check whether --enable-pixman-rect was given. | ||
18470 | if test "${enable_pixman_rect+set}" = set; then : | ||
18471 | enableval=$enable_pixman_rect; | ||
18472 | have_pixman_rect="yes" | ||
18473 | |||
18474 | $as_echo "#define PIXMAN_RECT 1" >>confdefs.h | ||
18475 | |||
18476 | |||
18477 | |||
18478 | fi | ||
18479 | |||
18480 | |||
18481 | have_pixman_line="no" | ||
18482 | # Check whether --enable-pixman-line was given. | ||
18483 | if test "${enable_pixman_line+set}" = set; then : | ||
18484 | enableval=$enable_pixman_line; | ||
18485 | have_pixman_line="yes" | ||
18486 | |||
18487 | $as_echo "#define PIXMAN_LINE 1" >>confdefs.h | ||
18488 | |||
18489 | |||
18490 | |||
18491 | fi | ||
18492 | |||
18493 | |||
18494 | have_pixman_poly="no" | ||
18495 | # Check whether --enable-pixman-poly was given. | ||
18496 | if test "${enable_pixman_poly+set}" = set; then : | ||
18497 | enableval=$enable_pixman_poly; | ||
18498 | have_pixman_poly="yes" | ||
18499 | |||
18500 | $as_echo "#define PIXMAN_POLY 1" >>confdefs.h | ||
18501 | |||
18502 | |||
18503 | |||
18504 | fi | ||
18505 | |||
18506 | |||
18507 | have_pixman_image="no" | ||
18508 | # Check whether --enable-pixman-image was given. | ||
18509 | if test "${enable_pixman_image+set}" = set; then : | ||
18510 | enableval=$enable_pixman_image; | ||
18511 | have_pixman_image="yes" | ||
18512 | |||
18513 | $as_echo "#define PIXMAN_IMAGE 1" >>confdefs.h | ||
18514 | |||
18515 | |||
18516 | |||
18517 | fi | ||
18518 | |||
18519 | |||
18520 | have_pixman_image_scale_sample="no" | ||
18521 | # Check whether --enable-pixman-image-scale-sample was given. | ||
18522 | if test "${enable_pixman_image_scale_sample+set}" = set; then : | ||
18523 | enableval=$enable_pixman_image_scale_sample; | ||
18524 | have_pixman_image_scale_sample="yes" | ||
18525 | |||
18526 | $as_echo "#define PIXMAN_IMAGE_SCALE_SAMPLE 1" >>confdefs.h | ||
18527 | |||
18528 | |||
18529 | |||
18530 | fi | ||
18531 | |||
18532 | |||
18533 | have_tile_rotate="no" | ||
18534 | # Check whether --enable-tile-rotate was given. | ||
18535 | if test "${enable_tile_rotate+set}" = set; then : | ||
18536 | enableval=$enable_tile_rotate; | ||
18537 | have_tile_rotate="yes" | ||
18538 | |||
18539 | $as_echo "#define TILE_ROTATE 1" >>confdefs.h | ||
18540 | |||
18541 | |||
18542 | |||
18543 | fi | ||
18544 | |||
18545 | |||
18546 | ### Checks for header files | ||
18547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | ||
18548 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||
18549 | if test "${ac_cv_header_stdc+set}" = set; then : | ||
18550 | $as_echo_n "(cached) " >&6 | ||
18551 | else | ||
18552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18553 | /* end confdefs.h. */ | ||
18554 | #include <stdlib.h> | ||
18555 | #include <stdarg.h> | ||
18556 | #include <string.h> | ||
18557 | #include <float.h> | ||
18558 | |||
18559 | int | ||
18560 | main () | ||
18561 | { | ||
18562 | |||
18563 | ; | ||
18564 | return 0; | ||
18565 | } | ||
18566 | _ACEOF | ||
18567 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18568 | ac_cv_header_stdc=yes | ||
18569 | else | ||
18570 | ac_cv_header_stdc=no | ||
18571 | fi | ||
18572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18573 | |||
18574 | if test $ac_cv_header_stdc = yes; then | ||
18575 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
18576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18577 | /* end confdefs.h. */ | ||
18578 | #include <string.h> | ||
18579 | |||
18580 | _ACEOF | ||
18581 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
18582 | $EGREP "memchr" >/dev/null 2>&1; then : | ||
18583 | |||
18584 | else | ||
18585 | ac_cv_header_stdc=no | ||
18586 | fi | ||
18587 | rm -f conftest* | ||
18588 | |||
18589 | fi | ||
18590 | |||
18591 | if test $ac_cv_header_stdc = yes; then | ||
18592 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
18593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18594 | /* end confdefs.h. */ | ||
18595 | #include <stdlib.h> | ||
18596 | |||
18597 | _ACEOF | ||
18598 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
18599 | $EGREP "free" >/dev/null 2>&1; then : | ||
18600 | |||
18601 | else | ||
18602 | ac_cv_header_stdc=no | ||
18603 | fi | ||
18604 | rm -f conftest* | ||
18605 | |||
18606 | fi | ||
18607 | |||
18608 | if test $ac_cv_header_stdc = yes; then | ||
18609 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
18610 | if test "$cross_compiling" = yes; then : | ||
18611 | : | ||
18612 | else | ||
18613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18614 | /* end confdefs.h. */ | ||
18615 | #include <ctype.h> | ||
18616 | #include <stdlib.h> | ||
18617 | #if ((' ' & 0x0FF) == 0x020) | ||
18618 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
18619 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
18620 | #else | ||
18621 | # define ISLOWER(c) \ | ||
18622 | (('a' <= (c) && (c) <= 'i') \ | ||
18623 | || ('j' <= (c) && (c) <= 'r') \ | ||
18624 | || ('s' <= (c) && (c) <= 'z')) | ||
18625 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
18626 | #endif | ||
18627 | |||
18628 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
18629 | int | ||
18630 | main () | ||
18631 | { | ||
18632 | int i; | ||
18633 | for (i = 0; i < 256; i++) | ||
18634 | if (XOR (islower (i), ISLOWER (i)) | ||
18635 | || toupper (i) != TOUPPER (i)) | ||
18636 | return 2; | ||
18637 | return 0; | ||
18638 | } | ||
18639 | _ACEOF | ||
18640 | if ac_fn_c_try_run "$LINENO"; then : | ||
18641 | |||
18642 | else | ||
18643 | ac_cv_header_stdc=no | ||
18644 | fi | ||
18645 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
18646 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
18647 | fi | ||
18648 | |||
18649 | fi | ||
18650 | fi | ||
18651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||
18652 | $as_echo "$ac_cv_header_stdc" >&6; } | ||
18653 | if test $ac_cv_header_stdc = yes; then | ||
18654 | |||
18655 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||
18656 | |||
18657 | fi | ||
18658 | |||
18659 | for ac_header in unistd.h stdint.h sys/param.h netinet/in.h sys/mman.h | ||
18660 | do : | ||
18661 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
18662 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
18663 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
18664 | cat >>confdefs.h <<_ACEOF | ||
18665 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
18666 | _ACEOF | ||
18667 | |||
18668 | fi | ||
18669 | |||
18670 | done | ||
18671 | |||
18672 | |||
18673 | |||
18674 | default_max="4096" | ||
18675 | ac_ext=c | ||
18676 | ac_cpp='$CPP $CPPFLAGS' | ||
18677 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
18678 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
18679 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
18680 | |||
18681 | |||
18682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATH_MAX in limits.h" >&5 | ||
18683 | $as_echo_n "checking for PATH_MAX in limits.h... " >&6; } | ||
18684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18685 | /* end confdefs.h. */ | ||
18686 | |||
18687 | #include <limits.h> | ||
18688 | |||
18689 | int | ||
18690 | main () | ||
18691 | { | ||
18692 | |||
18693 | int i = PATH_MAX; | ||
18694 | |||
18695 | ; | ||
18696 | return 0; | ||
18697 | } | ||
18698 | _ACEOF | ||
18699 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18701 | $as_echo "yes" >&6; } | ||
18702 | else | ||
18703 | |||
18704 | |||
18705 | cat >>confdefs.h <<_ACEOF | ||
18706 | #define PATH_MAX ${default_max} | ||
18707 | _ACEOF | ||
18708 | |||
18709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: using ${default_max}" >&5 | ||
18710 | $as_echo "no: using ${default_max}" >&6; } | ||
18711 | |||
18712 | fi | ||
18713 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18714 | |||
18715 | ac_ext=c | ||
18716 | ac_cpp='$CPP $CPPFLAGS' | ||
18717 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
18718 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
18719 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
18720 | |||
18721 | |||
18722 | |||
18723 | |||
18724 | ### Checks for types | ||
18725 | ac_fn_c_check_type "$LINENO" "struct sigaction" "ac_cv_type_struct_sigaction" "#include <signal.h> | ||
18726 | " | ||
18727 | if test "x$ac_cv_type_struct_sigaction" = x""yes; then : | ||
18728 | |||
18729 | cat >>confdefs.h <<_ACEOF | ||
18730 | #define HAVE_STRUCT_SIGACTION 1 | ||
18731 | _ACEOF | ||
18732 | |||
18733 | |||
18734 | fi | ||
18735 | |||
18736 | |||
18737 | |||
18738 | ### Checks for structures | ||
18739 | |||
18740 | |||
18741 | ### Checks for compiler characteristics | ||
18742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | ||
18743 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | ||
18744 | if test "${ac_cv_c_const+set}" = set; then : | ||
18745 | $as_echo_n "(cached) " >&6 | ||
18746 | else | ||
18747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18748 | /* end confdefs.h. */ | ||
18749 | |||
18750 | int | ||
18751 | main () | ||
18752 | { | ||
18753 | /* FIXME: Include the comments suggested by Paul. */ | ||
18754 | #ifndef __cplusplus | ||
18755 | /* Ultrix mips cc rejects this. */ | ||
18756 | typedef int charset[2]; | ||
18757 | const charset cs; | ||
18758 | /* SunOS 4.1.1 cc rejects this. */ | ||
18759 | char const *const *pcpcc; | ||
18760 | char **ppc; | ||
18761 | /* NEC SVR4.0.2 mips cc rejects this. */ | ||
18762 | struct point {int x, y;}; | ||
18763 | static struct point const zero = {0,0}; | ||
18764 | /* AIX XL C 1.02.0.0 rejects this. | ||
18765 | It does not let you subtract one const X* pointer from another in | ||
18766 | an arm of an if-expression whose if-part is not a constant | ||
18767 | expression */ | ||
18768 | const char *g = "string"; | ||
18769 | pcpcc = &g + (g ? g-g : 0); | ||
18770 | /* HPUX 7.0 cc rejects these. */ | ||
18771 | ++pcpcc; | ||
18772 | ppc = (char**) pcpcc; | ||
18773 | pcpcc = (char const *const *) ppc; | ||
18774 | { /* SCO 3.2v4 cc rejects this. */ | ||
18775 | char *t; | ||
18776 | char const *s = 0 ? (char *) 0 : (char const *) 0; | ||
18777 | |||
18778 | *t++ = 0; | ||
18779 | if (s) return 0; | ||
18780 | } | ||
18781 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | ||
18782 | int x[] = {25, 17}; | ||
18783 | const int *foo = &x[0]; | ||
18784 | ++foo; | ||
18785 | } | ||
18786 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | ||
18787 | typedef const int *iptr; | ||
18788 | iptr p = 0; | ||
18789 | ++p; | ||
18790 | } | ||
18791 | { /* AIX XL C 1.02.0.0 rejects this saying | ||
18792 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | ||
18793 | struct s { int j; const int *ap[3]; }; | ||
18794 | struct s *b; b->j = 5; | ||
18795 | } | ||
18796 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | ||
18797 | const int foo = 10; | ||
18798 | if (!foo) return 0; | ||
18799 | } | ||
18800 | return !cs[0] && !zero.x; | ||
18801 | #endif | ||
18802 | |||
18803 | ; | ||
18804 | return 0; | ||
18805 | } | ||
18806 | _ACEOF | ||
18807 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18808 | ac_cv_c_const=yes | ||
18809 | else | ||
18810 | ac_cv_c_const=no | ||
18811 | fi | ||
18812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18813 | fi | ||
18814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | ||
18815 | $as_echo "$ac_cv_c_const" >&6; } | ||
18816 | if test $ac_cv_c_const = no; then | ||
18817 | |||
18818 | $as_echo "#define const /**/" >>confdefs.h | ||
18819 | |||
18820 | fi | ||
18821 | |||
18822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | ||
18823 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | ||
18824 | if test "${ac_cv_c_bigendian+set}" = set; then : | ||
18825 | $as_echo_n "(cached) " >&6 | ||
18826 | else | ||
18827 | ac_cv_c_bigendian=unknown | ||
18828 | # See if we're dealing with a universal compiler. | ||
18829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18830 | /* end confdefs.h. */ | ||
18831 | #ifndef __APPLE_CC__ | ||
18832 | not a universal capable compiler | ||
18833 | #endif | ||
18834 | typedef int dummy; | ||
18835 | |||
18836 | _ACEOF | ||
18837 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18838 | |||
18839 | # Check for potential -arch flags. It is not universal unless | ||
18840 | # there are at least two -arch flags with different values. | ||
18841 | ac_arch= | ||
18842 | ac_prev= | ||
18843 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | ||
18844 | if test -n "$ac_prev"; then | ||
18845 | case $ac_word in | ||
18846 | i?86 | x86_64 | ppc | ppc64) | ||
18847 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | ||
18848 | ac_arch=$ac_word | ||
18849 | else | ||
18850 | ac_cv_c_bigendian=universal | ||
18851 | break | ||
18852 | fi | ||
18853 | ;; | ||
18854 | esac | ||
18855 | ac_prev= | ||
18856 | elif test "x$ac_word" = "x-arch"; then | ||
18857 | ac_prev=arch | ||
18858 | fi | ||
18859 | done | ||
18860 | fi | ||
18861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18862 | if test $ac_cv_c_bigendian = unknown; then | ||
18863 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
18864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18865 | /* end confdefs.h. */ | ||
18866 | #include <sys/types.h> | ||
18867 | #include <sys/param.h> | ||
18868 | |||
18869 | int | ||
18870 | main () | ||
18871 | { | ||
18872 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | ||
18873 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | ||
18874 | && LITTLE_ENDIAN) | ||
18875 | bogus endian macros | ||
18876 | #endif | ||
18877 | |||
18878 | ; | ||
18879 | return 0; | ||
18880 | } | ||
18881 | _ACEOF | ||
18882 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18883 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
18884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18885 | /* end confdefs.h. */ | ||
18886 | #include <sys/types.h> | ||
18887 | #include <sys/param.h> | ||
18888 | |||
18889 | int | ||
18890 | main () | ||
18891 | { | ||
18892 | #if BYTE_ORDER != BIG_ENDIAN | ||
18893 | not big endian | ||
18894 | #endif | ||
18895 | |||
18896 | ; | ||
18897 | return 0; | ||
18898 | } | ||
18899 | _ACEOF | ||
18900 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18901 | ac_cv_c_bigendian=yes | ||
18902 | else | ||
18903 | ac_cv_c_bigendian=no | ||
18904 | fi | ||
18905 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18906 | fi | ||
18907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18908 | fi | ||
18909 | if test $ac_cv_c_bigendian = unknown; then | ||
18910 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | ||
18911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18912 | /* end confdefs.h. */ | ||
18913 | #include <limits.h> | ||
18914 | |||
18915 | int | ||
18916 | main () | ||
18917 | { | ||
18918 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | ||
18919 | bogus endian macros | ||
18920 | #endif | ||
18921 | |||
18922 | ; | ||
18923 | return 0; | ||
18924 | } | ||
18925 | _ACEOF | ||
18926 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18927 | # It does; now see whether it defined to _BIG_ENDIAN or not. | ||
18928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18929 | /* end confdefs.h. */ | ||
18930 | #include <limits.h> | ||
18931 | |||
18932 | int | ||
18933 | main () | ||
18934 | { | ||
18935 | #ifndef _BIG_ENDIAN | ||
18936 | not big endian | ||
18937 | #endif | ||
18938 | |||
18939 | ; | ||
18940 | return 0; | ||
18941 | } | ||
18942 | _ACEOF | ||
18943 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18944 | ac_cv_c_bigendian=yes | ||
18945 | else | ||
18946 | ac_cv_c_bigendian=no | ||
18947 | fi | ||
18948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18949 | fi | ||
18950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18951 | fi | ||
18952 | if test $ac_cv_c_bigendian = unknown; then | ||
18953 | # Compile a test program. | ||
18954 | if test "$cross_compiling" = yes; then : | ||
18955 | # Try to guess by grepping values from an object file. | ||
18956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18957 | /* end confdefs.h. */ | ||
18958 | short int ascii_mm[] = | ||
18959 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
18960 | short int ascii_ii[] = | ||
18961 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
18962 | int use_ascii (int i) { | ||
18963 | return ascii_mm[i] + ascii_ii[i]; | ||
18964 | } | ||
18965 | short int ebcdic_ii[] = | ||
18966 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
18967 | short int ebcdic_mm[] = | ||
18968 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
18969 | int use_ebcdic (int i) { | ||
18970 | return ebcdic_mm[i] + ebcdic_ii[i]; | ||
18971 | } | ||
18972 | extern int foo; | ||
18973 | |||
18974 | int | ||
18975 | main () | ||
18976 | { | ||
18977 | return use_ascii (foo) == use_ebcdic (foo); | ||
18978 | ; | ||
18979 | return 0; | ||
18980 | } | ||
18981 | _ACEOF | ||
18982 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18983 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | ||
18984 | ac_cv_c_bigendian=yes | ||
18985 | fi | ||
18986 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
18987 | if test "$ac_cv_c_bigendian" = unknown; then | ||
18988 | ac_cv_c_bigendian=no | ||
18989 | else | ||
18990 | # finding both strings is unlikely to happen, but who knows? | ||
18991 | ac_cv_c_bigendian=unknown | ||
18992 | fi | ||
18993 | fi | ||
18994 | fi | ||
18995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18996 | else | ||
18997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18998 | /* end confdefs.h. */ | ||
18999 | $ac_includes_default | ||
19000 | int | ||
19001 | main () | ||
19002 | { | ||
19003 | |||
19004 | /* Are we little or big endian? From Harbison&Steele. */ | ||
19005 | union | ||
19006 | { | ||
19007 | long int l; | ||
19008 | char c[sizeof (long int)]; | ||
19009 | } u; | ||
19010 | u.l = 1; | ||
19011 | return u.c[sizeof (long int) - 1] == 1; | ||
19012 | |||
19013 | ; | ||
19014 | return 0; | ||
19015 | } | ||
19016 | _ACEOF | ||
19017 | if ac_fn_c_try_run "$LINENO"; then : | ||
19018 | ac_cv_c_bigendian=no | ||
19019 | else | ||
19020 | ac_cv_c_bigendian=yes | ||
19021 | fi | ||
19022 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
19023 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
19024 | fi | ||
19025 | |||
19026 | fi | ||
19027 | fi | ||
19028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | ||
19029 | $as_echo "$ac_cv_c_bigendian" >&6; } | ||
19030 | case $ac_cv_c_bigendian in #( | ||
19031 | yes) | ||
19032 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | ||
19033 | ;; #( | ||
19034 | no) | ||
19035 | ;; #( | ||
19036 | universal) | ||
19037 | |||
19038 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | ||
19039 | |||
19040 | ;; #( | ||
19041 | *) | ||
19042 | as_fn_error $? "unknown endianness | ||
19043 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | ||
19044 | esac | ||
19045 | |||
19046 | case $ac_cv_prog_cc_stdc in #( | ||
19047 | no) : | ||
19048 | ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( | ||
19049 | *) : | ||
19050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 | ||
19051 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | ||
19052 | if test "${ac_cv_prog_cc_c99+set}" = set; then : | ||
19053 | $as_echo_n "(cached) " >&6 | ||
19054 | else | ||
19055 | ac_cv_prog_cc_c99=no | ||
19056 | ac_save_CC=$CC | ||
19057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19058 | /* end confdefs.h. */ | ||
19059 | #include <stdarg.h> | ||
19060 | #include <stdbool.h> | ||
19061 | #include <stdlib.h> | ||
19062 | #include <wchar.h> | ||
19063 | #include <stdio.h> | ||
19064 | |||
19065 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | ||
19066 | #define debug(...) fprintf (stderr, __VA_ARGS__) | ||
19067 | #define showlist(...) puts (#__VA_ARGS__) | ||
19068 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | ||
19069 | static void | ||
19070 | test_varargs_macros (void) | ||
19071 | { | ||
19072 | int x = 1234; | ||
19073 | int y = 5678; | ||
19074 | debug ("Flag"); | ||
19075 | debug ("X = %d\n", x); | ||
19076 | showlist (The first, second, and third items.); | ||
19077 | report (x>y, "x is %d but y is %d", x, y); | ||
19078 | } | ||
19079 | |||
19080 | // Check long long types. | ||
19081 | #define BIG64 18446744073709551615ull | ||
19082 | #define BIG32 4294967295ul | ||
19083 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | ||
19084 | #if !BIG_OK | ||
19085 | your preprocessor is broken; | ||
19086 | #endif | ||
19087 | #if BIG_OK | ||
19088 | #else | ||
19089 | your preprocessor is broken; | ||
19090 | #endif | ||
19091 | static long long int bignum = -9223372036854775807LL; | ||
19092 | static unsigned long long int ubignum = BIG64; | ||
19093 | |||
19094 | struct incomplete_array | ||
19095 | { | ||
19096 | int datasize; | ||
19097 | double data[]; | ||
19098 | }; | ||
19099 | |||
19100 | struct named_init { | ||
19101 | int number; | ||
19102 | const wchar_t *name; | ||
19103 | double average; | ||
19104 | }; | ||
19105 | |||
19106 | typedef const char *ccp; | ||
19107 | |||
19108 | static inline int | ||
19109 | test_restrict (ccp restrict text) | ||
19110 | { | ||
19111 | // See if C++-style comments work. | ||
19112 | // Iterate through items via the restricted pointer. | ||
19113 | // Also check for declarations in for loops. | ||
19114 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | ||
19115 | continue; | ||
19116 | return 0; | ||
19117 | } | ||
19118 | |||
19119 | // Check varargs and va_copy. | ||
19120 | static void | ||
19121 | test_varargs (const char *format, ...) | ||
19122 | { | ||
19123 | va_list args; | ||
19124 | va_start (args, format); | ||
19125 | va_list args_copy; | ||
19126 | va_copy (args_copy, args); | ||
19127 | |||
19128 | const char *str; | ||
19129 | int number; | ||
19130 | float fnumber; | ||
19131 | |||
19132 | while (*format) | ||
19133 | { | ||
19134 | switch (*format++) | ||
19135 | { | ||
19136 | case 's': // string | ||
19137 | str = va_arg (args_copy, const char *); | ||
19138 | break; | ||
19139 | case 'd': // int | ||
19140 | number = va_arg (args_copy, int); | ||
19141 | break; | ||
19142 | case 'f': // float | ||
19143 | fnumber = va_arg (args_copy, double); | ||
19144 | break; | ||
19145 | default: | ||
19146 | break; | ||
19147 | } | ||
19148 | } | ||
19149 | va_end (args_copy); | ||
19150 | va_end (args); | ||
19151 | } | ||
19152 | |||
19153 | int | ||
19154 | main () | ||
19155 | { | ||
19156 | |||
19157 | // Check bool. | ||
19158 | _Bool success = false; | ||
19159 | |||
19160 | // Check restrict. | ||
19161 | if (test_restrict ("String literal") == 0) | ||
19162 | success = true; | ||
19163 | char *restrict newvar = "Another string"; | ||
19164 | |||
19165 | // Check varargs. | ||
19166 | test_varargs ("s, d' f .", "string", 65, 34.234); | ||
19167 | test_varargs_macros (); | ||
19168 | |||
19169 | // Check flexible array members. | ||
19170 | struct incomplete_array *ia = | ||
19171 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | ||
19172 | ia->datasize = 10; | ||
19173 | for (int i = 0; i < ia->datasize; ++i) | ||
19174 | ia->data[i] = i * 1.234; | ||
19175 | |||
19176 | // Check named initializers. | ||
19177 | struct named_init ni = { | ||
19178 | .number = 34, | ||
19179 | .name = L"Test wide string", | ||
19180 | .average = 543.34343, | ||
19181 | }; | ||
19182 | |||
19183 | ni.number = 58; | ||
19184 | |||
19185 | int dynamic_array[ni.number]; | ||
19186 | dynamic_array[ni.number - 1] = 543; | ||
19187 | |||
19188 | // work around unused variable warnings | ||
19189 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | ||
19190 | || dynamic_array[ni.number - 1] != 543); | ||
19191 | |||
19192 | ; | ||
19193 | return 0; | ||
19194 | } | ||
19195 | _ACEOF | ||
19196 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 | ||
19197 | do | ||
19198 | CC="$ac_save_CC $ac_arg" | ||
19199 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19200 | ac_cv_prog_cc_c99=$ac_arg | ||
19201 | fi | ||
19202 | rm -f core conftest.err conftest.$ac_objext | ||
19203 | test "x$ac_cv_prog_cc_c99" != "xno" && break | ||
19204 | done | ||
19205 | rm -f conftest.$ac_ext | ||
19206 | CC=$ac_save_CC | ||
19207 | |||
19208 | fi | ||
19209 | # AC_CACHE_VAL | ||
19210 | case "x$ac_cv_prog_cc_c99" in | ||
19211 | x) | ||
19212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
19213 | $as_echo "none needed" >&6; } ;; | ||
19214 | xno) | ||
19215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
19216 | $as_echo "unsupported" >&6; } ;; | ||
19217 | *) | ||
19218 | CC="$CC $ac_cv_prog_cc_c99" | ||
19219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | ||
19220 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | ||
19221 | esac | ||
19222 | if test "x$ac_cv_prog_cc_c99" != xno; then : | ||
19223 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | ||
19224 | else | ||
19225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
19226 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
19227 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
19228 | $as_echo_n "(cached) " >&6 | ||
19229 | else | ||
19230 | ac_cv_prog_cc_c89=no | ||
19231 | ac_save_CC=$CC | ||
19232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19233 | /* end confdefs.h. */ | ||
19234 | #include <stdarg.h> | ||
19235 | #include <stdio.h> | ||
19236 | #include <sys/types.h> | ||
19237 | #include <sys/stat.h> | ||
19238 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
19239 | struct buf { int x; }; | ||
19240 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
19241 | static char *e (p, i) | ||
19242 | char **p; | ||
19243 | int i; | ||
19244 | { | ||
19245 | return p[i]; | ||
19246 | } | ||
19247 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
19248 | { | ||
19249 | char *s; | ||
19250 | va_list v; | ||
19251 | va_start (v,p); | ||
19252 | s = g (p, va_arg (v,int)); | ||
19253 | va_end (v); | ||
19254 | return s; | ||
19255 | } | ||
19256 | |||
19257 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
19258 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
19259 | These don't provoke an error unfortunately, instead are silently treated | ||
19260 | as 'x'. The following induces an error, until -std is added to get | ||
19261 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
19262 | array size at least. It's necessary to write '\x00'==0 to get something | ||
19263 | that's true only with -std. */ | ||
19264 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
19265 | |||
19266 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
19267 | inside strings and character constants. */ | ||
19268 | #define FOO(x) 'x' | ||
19269 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
19270 | |||
19271 | int test (int i, double x); | ||
19272 | struct s1 {int (*f) (int a);}; | ||
19273 | struct s2 {int (*f) (double a);}; | ||
19274 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
19275 | int argc; | ||
19276 | char **argv; | ||
19277 | int | ||
19278 | main () | ||
19279 | { | ||
19280 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
19281 | ; | ||
19282 | return 0; | ||
19283 | } | ||
19284 | _ACEOF | ||
19285 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
19286 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
19287 | do | ||
19288 | CC="$ac_save_CC $ac_arg" | ||
19289 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19290 | ac_cv_prog_cc_c89=$ac_arg | ||
19291 | fi | ||
19292 | rm -f core conftest.err conftest.$ac_objext | ||
19293 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
19294 | done | ||
19295 | rm -f conftest.$ac_ext | ||
19296 | CC=$ac_save_CC | ||
19297 | |||
19298 | fi | ||
19299 | # AC_CACHE_VAL | ||
19300 | case "x$ac_cv_prog_cc_c89" in | ||
19301 | x) | ||
19302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
19303 | $as_echo "none needed" >&6; } ;; | ||
19304 | xno) | ||
19305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
19306 | $as_echo "unsupported" >&6; } ;; | ||
19307 | *) | ||
19308 | CC="$CC $ac_cv_prog_cc_c89" | ||
19309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
19310 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
19311 | esac | ||
19312 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
19313 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | ||
19314 | else | ||
19315 | ac_cv_prog_cc_stdc=no | ||
19316 | fi | ||
19317 | |||
19318 | fi | ||
19319 | ;; | ||
19320 | esac | ||
19321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 | ||
19322 | $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } | ||
19323 | if test "${ac_cv_prog_cc_stdc+set}" = set; then : | ||
19324 | $as_echo_n "(cached) " >&6 | ||
19325 | fi | ||
19326 | |||
19327 | case $ac_cv_prog_cc_stdc in #( | ||
19328 | no) : | ||
19329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
19330 | $as_echo "unsupported" >&6; } ;; #( | ||
19331 | '') : | ||
19332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
19333 | $as_echo "none needed" >&6; } ;; #( | ||
19334 | *) : | ||
19335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 | ||
19336 | $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; | ||
19337 | esac | ||
19338 | |||
19339 | |||
19340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((unused))" >&5 | ||
19341 | $as_echo_n "checking for __attribute__ ((unused))... " >&6; } | ||
19342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19343 | /* end confdefs.h. */ | ||
19344 | |||
19345 | void foo(int x __attribute__ ((unused))) {} | ||
19346 | |||
19347 | int | ||
19348 | main () | ||
19349 | { | ||
19350 | |||
19351 | |||
19352 | ; | ||
19353 | return 0; | ||
19354 | } | ||
19355 | _ACEOF | ||
19356 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19357 | have_attribute_unused="yes" | ||
19358 | else | ||
19359 | have_attribute_unused="no" | ||
19360 | fi | ||
19361 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_attribute_unused}" >&5 | ||
19363 | $as_echo "${have_attribute_unused}" >&6; } | ||
19364 | |||
19365 | if test "x${have_attribute_unused}" = "xyes" ; then | ||
19366 | |||
19367 | $as_echo "#define __UNUSED__ __attribute__ ((unused))" >>confdefs.h | ||
19368 | |||
19369 | else | ||
19370 | |||
19371 | $as_echo "#define __UNUSED__ /**/" >>confdefs.h | ||
19372 | |||
19373 | fi | ||
19374 | |||
19375 | |||
19376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((vector))" >&5 | ||
19377 | $as_echo_n "checking for __attribute__ ((vector))... " >&6; } | ||
19378 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19379 | /* end confdefs.h. */ | ||
19380 | |||
19381 | typedef int v4si __attribute__ ((vector_size (16))); | ||
19382 | |||
19383 | int | ||
19384 | main () | ||
19385 | { | ||
19386 | |||
19387 | if (sizeof(v4si) == 16) | ||
19388 | return 0; | ||
19389 | else | ||
19390 | return -1; | ||
19391 | |||
19392 | ; | ||
19393 | return 0; | ||
19394 | } | ||
19395 | _ACEOF | ||
19396 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19397 | have_attribute_vector="yes" | ||
19398 | else | ||
19399 | have_attribute_vector="no" | ||
19400 | fi | ||
19401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_attribute_vector}" >&5 | ||
19403 | $as_echo "${have_attribute_vector}" >&6; } | ||
19404 | |||
19405 | if test "x${have_attribute_vector}" = "xyes" ; then | ||
19406 | |||
19407 | $as_echo "#define HAVE_GCC_ATTRIBUTE_VECTOR 1" >>confdefs.h | ||
19408 | |||
19409 | fi | ||
19410 | |||
19411 | |||
19412 | |||
19413 | have_attribute_forceinline="no" | ||
19414 | |||
19415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __forceinline" >&5 | ||
19416 | $as_echo_n "checking for __forceinline... " >&6; } | ||
19417 | |||
19418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19419 | /* end confdefs.h. */ | ||
19420 | |||
19421 | #include <windows.h> | ||
19422 | static __forceinline void foo(void) {} | ||
19423 | |||
19424 | int | ||
19425 | main () | ||
19426 | { | ||
19427 | |||
19428 | |||
19429 | ; | ||
19430 | return 0; | ||
19431 | } | ||
19432 | _ACEOF | ||
19433 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19434 | |||
19435 | have_attribute_always_inline="yes" | ||
19436 | have_attribute_forceinline="yes" | ||
19437 | |||
19438 | else | ||
19439 | have_attribute_always_inline="no" | ||
19440 | fi | ||
19441 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19442 | |||
19443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_attribute_always_inline}" >&5 | ||
19444 | $as_echo "${have_attribute_always_inline}" >&6; } | ||
19445 | |||
19446 | if test "x${have_attribute_always_inline}" = "xno" ; then | ||
19447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__always_inline__))" >&5 | ||
19448 | $as_echo_n "checking for __attribute__ ((__always_inline__))... " >&6; } | ||
19449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19450 | /* end confdefs.h. */ | ||
19451 | |||
19452 | static __attribute__((__always_inline__)) inline void foo(void) {} | ||
19453 | |||
19454 | int | ||
19455 | main () | ||
19456 | { | ||
19457 | |||
19458 | |||
19459 | ; | ||
19460 | return 0; | ||
19461 | } | ||
19462 | _ACEOF | ||
19463 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19464 | have_attribute_always_inline="yes" | ||
19465 | else | ||
19466 | have_attribute_always_inline="no" | ||
19467 | fi | ||
19468 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_attribute_always_inline}" >&5 | ||
19470 | $as_echo "${have_attribute_always_inline}" >&6; } | ||
19471 | fi | ||
19472 | |||
19473 | if test "x${have_attribute_always_inline}" = "xyes" ; then | ||
19474 | if test "x${have_attribute_forceinline}" = "xyes" ; then | ||
19475 | |||
19476 | $as_echo "#define EFL_ALWAYS_INLINE __forceinline" >>confdefs.h | ||
19477 | |||
19478 | else | ||
19479 | |||
19480 | $as_echo "#define EFL_ALWAYS_INLINE __attribute__ ((__always_inline__)) inline" >>confdefs.h | ||
19481 | |||
19482 | fi | ||
19483 | else | ||
19484 | |||
19485 | $as_echo "#define EFL_ALWAYS_INLINE static inline" >>confdefs.h | ||
19486 | |||
19487 | fi | ||
19488 | |||
19489 | |||
19490 | |||
19491 | ### Checks for linker characteristics | ||
19492 | lt_enable_auto_import="" | ||
19493 | case "${host_os}" in | ||
19494 | mingw*) | ||
19495 | |||
19496 | $as_echo "#define EFL_EVAS_BUILD 1" >>confdefs.h | ||
19497 | |||
19498 | lt_enable_auto_import="-Wl,--enable-auto-import" | ||
19499 | ;; | ||
19500 | esac | ||
19501 | |||
19502 | |||
19503 | |||
19504 | ### Checks for library functions | ||
19505 | |||
19506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 | ||
19507 | $as_echo_n "checking for library containing strerror... " >&6; } | ||
19508 | if test "${ac_cv_search_strerror+set}" = set; then : | ||
19509 | $as_echo_n "(cached) " >&6 | ||
19510 | else | ||
19511 | ac_func_search_save_LIBS=$LIBS | ||
19512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19513 | /* end confdefs.h. */ | ||
19514 | |||
19515 | /* Override any GCC internal prototype to avoid an error. | ||
19516 | Use char because int might match the return type of a GCC | ||
19517 | builtin and then its argument prototype would still apply. */ | ||
19518 | #ifdef __cplusplus | ||
19519 | extern "C" | ||
19520 | #endif | ||
19521 | char strerror (); | ||
19522 | int | ||
19523 | main () | ||
19524 | { | ||
19525 | return strerror (); | ||
19526 | ; | ||
19527 | return 0; | ||
19528 | } | ||
19529 | _ACEOF | ||
19530 | for ac_lib in '' cposix; do | ||
19531 | if test -z "$ac_lib"; then | ||
19532 | ac_res="none required" | ||
19533 | else | ||
19534 | ac_res=-l$ac_lib | ||
19535 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
19536 | fi | ||
19537 | if ac_fn_c_try_link "$LINENO"; then : | ||
19538 | ac_cv_search_strerror=$ac_res | ||
19539 | fi | ||
19540 | rm -f core conftest.err conftest.$ac_objext \ | ||
19541 | conftest$ac_exeext | ||
19542 | if test "${ac_cv_search_strerror+set}" = set; then : | ||
19543 | break | ||
19544 | fi | ||
19545 | done | ||
19546 | if test "${ac_cv_search_strerror+set}" = set; then : | ||
19547 | |||
19548 | else | ||
19549 | ac_cv_search_strerror=no | ||
19550 | fi | ||
19551 | rm conftest.$ac_ext | ||
19552 | LIBS=$ac_func_search_save_LIBS | ||
19553 | fi | ||
19554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 | ||
19555 | $as_echo "$ac_cv_search_strerror" >&6; } | ||
19556 | ac_res=$ac_cv_search_strerror | ||
19557 | if test "$ac_res" != no; then : | ||
19558 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
19559 | |||
19560 | fi | ||
19561 | |||
19562 | for ac_func in siglongjmp | ||
19563 | do : | ||
19564 | ac_fn_c_check_func "$LINENO" "siglongjmp" "ac_cv_func_siglongjmp" | ||
19565 | if test "x$ac_cv_func_siglongjmp" = x""yes; then : | ||
19566 | cat >>confdefs.h <<_ACEOF | ||
19567 | #define HAVE_SIGLONGJMP 1 | ||
19568 | _ACEOF | ||
19569 | |||
19570 | fi | ||
19571 | done | ||
19572 | |||
19573 | |||
19574 | # alloca | ||
19575 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | ||
19576 | # for constant arguments. Useless! | ||
19577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | ||
19578 | $as_echo_n "checking for working alloca.h... " >&6; } | ||
19579 | if test "${ac_cv_working_alloca_h+set}" = set; then : | ||
19580 | $as_echo_n "(cached) " >&6 | ||
19581 | else | ||
19582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19583 | /* end confdefs.h. */ | ||
19584 | #include <alloca.h> | ||
19585 | int | ||
19586 | main () | ||
19587 | { | ||
19588 | char *p = (char *) alloca (2 * sizeof (int)); | ||
19589 | if (p) return 0; | ||
19590 | ; | ||
19591 | return 0; | ||
19592 | } | ||
19593 | _ACEOF | ||
19594 | if ac_fn_c_try_link "$LINENO"; then : | ||
19595 | ac_cv_working_alloca_h=yes | ||
19596 | else | ||
19597 | ac_cv_working_alloca_h=no | ||
19598 | fi | ||
19599 | rm -f core conftest.err conftest.$ac_objext \ | ||
19600 | conftest$ac_exeext conftest.$ac_ext | ||
19601 | fi | ||
19602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 | ||
19603 | $as_echo "$ac_cv_working_alloca_h" >&6; } | ||
19604 | if test $ac_cv_working_alloca_h = yes; then | ||
19605 | |||
19606 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h | ||
19607 | |||
19608 | fi | ||
19609 | |||
19610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 | ||
19611 | $as_echo_n "checking for alloca... " >&6; } | ||
19612 | if test "${ac_cv_func_alloca_works+set}" = set; then : | ||
19613 | $as_echo_n "(cached) " >&6 | ||
19614 | else | ||
19615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19616 | /* end confdefs.h. */ | ||
19617 | #ifdef __GNUC__ | ||
19618 | # define alloca __builtin_alloca | ||
19619 | #else | ||
19620 | # ifdef _MSC_VER | ||
19621 | # include <malloc.h> | ||
19622 | # define alloca _alloca | ||
19623 | # else | ||
19624 | # ifdef HAVE_ALLOCA_H | ||
19625 | # include <alloca.h> | ||
19626 | # else | ||
19627 | # ifdef _AIX | ||
19628 | #pragma alloca | ||
19629 | # else | ||
19630 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | ||
19631 | char *alloca (); | ||
19632 | # endif | ||
19633 | # endif | ||
19634 | # endif | ||
19635 | # endif | ||
19636 | #endif | ||
19637 | |||
19638 | int | ||
19639 | main () | ||
19640 | { | ||
19641 | char *p = (char *) alloca (1); | ||
19642 | if (p) return 0; | ||
19643 | ; | ||
19644 | return 0; | ||
19645 | } | ||
19646 | _ACEOF | ||
19647 | if ac_fn_c_try_link "$LINENO"; then : | ||
19648 | ac_cv_func_alloca_works=yes | ||
19649 | else | ||
19650 | ac_cv_func_alloca_works=no | ||
19651 | fi | ||
19652 | rm -f core conftest.err conftest.$ac_objext \ | ||
19653 | conftest$ac_exeext conftest.$ac_ext | ||
19654 | fi | ||
19655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | ||
19656 | $as_echo "$ac_cv_func_alloca_works" >&6; } | ||
19657 | |||
19658 | if test $ac_cv_func_alloca_works = yes; then | ||
19659 | |||
19660 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h | ||
19661 | |||
19662 | else | ||
19663 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | ||
19664 | # that cause trouble. Some versions do not even contain alloca or | ||
19665 | # contain a buggy version. If you still want to use their alloca, | ||
19666 | # use ar to extract alloca.o from them instead of compiling alloca.c. | ||
19667 | |||
19668 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | ||
19669 | |||
19670 | $as_echo "#define C_ALLOCA 1" >>confdefs.h | ||
19671 | |||
19672 | |||
19673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 | ||
19674 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | ||
19675 | if test "${ac_cv_os_cray+set}" = set; then : | ||
19676 | $as_echo_n "(cached) " >&6 | ||
19677 | else | ||
19678 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19679 | /* end confdefs.h. */ | ||
19680 | #if defined CRAY && ! defined CRAY2 | ||
19681 | webecray | ||
19682 | #else | ||
19683 | wenotbecray | ||
19684 | #endif | ||
19685 | |||
19686 | _ACEOF | ||
19687 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
19688 | $EGREP "webecray" >/dev/null 2>&1; then : | ||
19689 | ac_cv_os_cray=yes | ||
19690 | else | ||
19691 | ac_cv_os_cray=no | ||
19692 | fi | ||
19693 | rm -f conftest* | ||
19694 | |||
19695 | fi | ||
19696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | ||
19697 | $as_echo "$ac_cv_os_cray" >&6; } | ||
19698 | if test $ac_cv_os_cray = yes; then | ||
19699 | for ac_func in _getb67 GETB67 getb67; do | ||
19700 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
19701 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
19702 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
19703 | |||
19704 | cat >>confdefs.h <<_ACEOF | ||
19705 | #define CRAY_STACKSEG_END $ac_func | ||
19706 | _ACEOF | ||
19707 | |||
19708 | break | ||
19709 | fi | ||
19710 | |||
19711 | done | ||
19712 | fi | ||
19713 | |||
19714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 | ||
19715 | $as_echo_n "checking stack direction for C alloca... " >&6; } | ||
19716 | if test "${ac_cv_c_stack_direction+set}" = set; then : | ||
19717 | $as_echo_n "(cached) " >&6 | ||
19718 | else | ||
19719 | if test "$cross_compiling" = yes; then : | ||
19720 | ac_cv_c_stack_direction=0 | ||
19721 | else | ||
19722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19723 | /* end confdefs.h. */ | ||
19724 | $ac_includes_default | ||
19725 | int | ||
19726 | find_stack_direction () | ||
19727 | { | ||
19728 | static char *addr = 0; | ||
19729 | auto char dummy; | ||
19730 | if (addr == 0) | ||
19731 | { | ||
19732 | addr = &dummy; | ||
19733 | return find_stack_direction (); | ||
19734 | } | ||
19735 | else | ||
19736 | return (&dummy > addr) ? 1 : -1; | ||
19737 | } | ||
19738 | |||
19739 | int | ||
19740 | main () | ||
19741 | { | ||
19742 | return find_stack_direction () < 0; | ||
19743 | } | ||
19744 | _ACEOF | ||
19745 | if ac_fn_c_try_run "$LINENO"; then : | ||
19746 | ac_cv_c_stack_direction=1 | ||
19747 | else | ||
19748 | ac_cv_c_stack_direction=-1 | ||
19749 | fi | ||
19750 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
19751 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
19752 | fi | ||
19753 | |||
19754 | fi | ||
19755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | ||
19756 | $as_echo "$ac_cv_c_stack_direction" >&6; } | ||
19757 | cat >>confdefs.h <<_ACEOF | ||
19758 | #define STACK_DIRECTION $ac_cv_c_stack_direction | ||
19759 | _ACEOF | ||
19760 | |||
19761 | |||
19762 | fi | ||
19763 | |||
19764 | |||
19765 | # fnmatch | ||
19766 | |||
19767 | |||
19768 | ac_fn_c_check_header_mongrel "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default" | ||
19769 | if test "x$ac_cv_header_fnmatch_h" = x""yes; then : | ||
19770 | _efl_have_fnmatch="yes" | ||
19771 | else | ||
19772 | _efl_have_fnmatch="no" | ||
19773 | fi | ||
19774 | |||
19775 | |||
19776 | |||
19777 | if test "x${_efl_have_fnmatch}" = "xyes" ; then | ||
19778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fnmatch" >&5 | ||
19779 | $as_echo_n "checking for library containing fnmatch... " >&6; } | ||
19780 | if test "${ac_cv_search_fnmatch+set}" = set; then : | ||
19781 | $as_echo_n "(cached) " >&6 | ||
19782 | else | ||
19783 | ac_func_search_save_LIBS=$LIBS | ||
19784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19785 | /* end confdefs.h. */ | ||
19786 | |||
19787 | /* Override any GCC internal prototype to avoid an error. | ||
19788 | Use char because int might match the return type of a GCC | ||
19789 | builtin and then its argument prototype would still apply. */ | ||
19790 | #ifdef __cplusplus | ||
19791 | extern "C" | ||
19792 | #endif | ||
19793 | char fnmatch (); | ||
19794 | int | ||
19795 | main () | ||
19796 | { | ||
19797 | return fnmatch (); | ||
19798 | ; | ||
19799 | return 0; | ||
19800 | } | ||
19801 | _ACEOF | ||
19802 | for ac_lib in '' fnmatch evil exotic iberty; do | ||
19803 | if test -z "$ac_lib"; then | ||
19804 | ac_res="none required" | ||
19805 | else | ||
19806 | ac_res=-l$ac_lib | ||
19807 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
19808 | fi | ||
19809 | if ac_fn_c_try_link "$LINENO"; then : | ||
19810 | ac_cv_search_fnmatch=$ac_res | ||
19811 | fi | ||
19812 | rm -f core conftest.err conftest.$ac_objext \ | ||
19813 | conftest$ac_exeext | ||
19814 | if test "${ac_cv_search_fnmatch+set}" = set; then : | ||
19815 | break | ||
19816 | fi | ||
19817 | done | ||
19818 | if test "${ac_cv_search_fnmatch+set}" = set; then : | ||
19819 | |||
19820 | else | ||
19821 | ac_cv_search_fnmatch=no | ||
19822 | fi | ||
19823 | rm conftest.$ac_ext | ||
19824 | LIBS=$ac_func_search_save_LIBS | ||
19825 | fi | ||
19826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fnmatch" >&5 | ||
19827 | $as_echo "$ac_cv_search_fnmatch" >&6; } | ||
19828 | ac_res=$ac_cv_search_fnmatch | ||
19829 | if test "$ac_res" != no; then : | ||
19830 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
19831 | _efl_have_fnmatch="yes" | ||
19832 | else | ||
19833 | _efl_have_fnmatch="no" | ||
19834 | fi | ||
19835 | |||
19836 | fi | ||
19837 | |||
19838 | EFL_FNMATCH_LIBS="" | ||
19839 | |||
19840 | 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 | ||
19841 | EFL_FNMATCH_LIBS=${ac_cv_search_fnmatch} | ||
19842 | fi | ||
19843 | |||
19844 | |||
19845 | |||
19846 | if test "x$_efl_have_fnmatch" = "xyes"; then : | ||
19847 | |||
19848 | else | ||
19849 | as_fn_error $? "Cannot find fnmatch()" "$LINENO" 5 | ||
19850 | fi | ||
19851 | |||
19852 | |||
19853 | |||
19854 | # dlopen | ||
19855 | dlopen_libs="" | ||
19856 | case "$host_os" in | ||
19857 | mingw32ce*) | ||
19858 | # managed by evil | ||
19859 | $as_echo "#define HAVE_DLSYM 1" >>confdefs.h | ||
19860 | |||
19861 | ;; | ||
19862 | mingw*) | ||
19863 | # nothing on mingw platform | ||
19864 | ;; | ||
19865 | *) | ||
19866 | for ac_func in dlsym | ||
19867 | do : | ||
19868 | ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym" | ||
19869 | if test "x$ac_cv_func_dlsym" = x""yes; then : | ||
19870 | cat >>confdefs.h <<_ACEOF | ||
19871 | #define HAVE_DLSYM 1 | ||
19872 | _ACEOF | ||
19873 | res=yes | ||
19874 | else | ||
19875 | res=no | ||
19876 | fi | ||
19877 | done | ||
19878 | |||
19879 | if test "x$res" = "xyes"; then | ||
19880 | $as_echo "#define HAVE_DLSYM 1" >>confdefs.h | ||
19881 | |||
19882 | else | ||
19883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 | ||
19884 | $as_echo_n "checking for dlsym in -ldl... " >&6; } | ||
19885 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then : | ||
19886 | $as_echo_n "(cached) " >&6 | ||
19887 | else | ||
19888 | ac_check_lib_save_LIBS=$LIBS | ||
19889 | LIBS="-ldl $LIBS" | ||
19890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19891 | /* end confdefs.h. */ | ||
19892 | |||
19893 | /* Override any GCC internal prototype to avoid an error. | ||
19894 | Use char because int might match the return type of a GCC | ||
19895 | builtin and then its argument prototype would still apply. */ | ||
19896 | #ifdef __cplusplus | ||
19897 | extern "C" | ||
19898 | #endif | ||
19899 | char dlsym (); | ||
19900 | int | ||
19901 | main () | ||
19902 | { | ||
19903 | return dlsym (); | ||
19904 | ; | ||
19905 | return 0; | ||
19906 | } | ||
19907 | _ACEOF | ||
19908 | if ac_fn_c_try_link "$LINENO"; then : | ||
19909 | ac_cv_lib_dl_dlsym=yes | ||
19910 | else | ||
19911 | ac_cv_lib_dl_dlsym=no | ||
19912 | fi | ||
19913 | rm -f core conftest.err conftest.$ac_objext \ | ||
19914 | conftest$ac_exeext conftest.$ac_ext | ||
19915 | LIBS=$ac_check_lib_save_LIBS | ||
19916 | fi | ||
19917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 | ||
19918 | $as_echo "$ac_cv_lib_dl_dlsym" >&6; } | ||
19919 | if test "x$ac_cv_lib_dl_dlsym" = x""yes; then : | ||
19920 | res=yes | ||
19921 | else | ||
19922 | res=no | ||
19923 | fi | ||
19924 | |||
19925 | if test "x$res" = "xyes"; then | ||
19926 | dlopen_libs=-ldl | ||
19927 | $as_echo "#define HAVE_DLSYM 1" >>confdefs.h | ||
19928 | |||
19929 | else | ||
19930 | want_evas_engine_gl_xlib="no" | ||
19931 | want_evas_engine_gl_xcb="no" | ||
19932 | want_evas_engine_gl_sdl="no" | ||
19933 | fi | ||
19934 | fi | ||
19935 | esac | ||
19936 | |||
19937 | |||
19938 | res=no | ||
19939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround in -lm" >&5 | ||
19940 | $as_echo_n "checking for lround in -lm... " >&6; } | ||
19941 | if test "${ac_cv_lib_m_lround+set}" = set; then : | ||
19942 | $as_echo_n "(cached) " >&6 | ||
19943 | else | ||
19944 | ac_check_lib_save_LIBS=$LIBS | ||
19945 | LIBS="-lm $LIBS" | ||
19946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19947 | /* end confdefs.h. */ | ||
19948 | |||
19949 | /* Override any GCC internal prototype to avoid an error. | ||
19950 | Use char because int might match the return type of a GCC | ||
19951 | builtin and then its argument prototype would still apply. */ | ||
19952 | #ifdef __cplusplus | ||
19953 | extern "C" | ||
19954 | #endif | ||
19955 | char lround (); | ||
19956 | int | ||
19957 | main () | ||
19958 | { | ||
19959 | return lround (); | ||
19960 | ; | ||
19961 | return 0; | ||
19962 | } | ||
19963 | _ACEOF | ||
19964 | if ac_fn_c_try_link "$LINENO"; then : | ||
19965 | ac_cv_lib_m_lround=yes | ||
19966 | else | ||
19967 | ac_cv_lib_m_lround=no | ||
19968 | fi | ||
19969 | rm -f core conftest.err conftest.$ac_objext \ | ||
19970 | conftest$ac_exeext conftest.$ac_ext | ||
19971 | LIBS=$ac_check_lib_save_LIBS | ||
19972 | fi | ||
19973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lround" >&5 | ||
19974 | $as_echo "$ac_cv_lib_m_lround" >&6; } | ||
19975 | if test "x$ac_cv_lib_m_lround" = x""yes; then : | ||
19976 | res=yes | ||
19977 | else | ||
19978 | res=no | ||
19979 | fi | ||
19980 | |||
19981 | if test "x$res" = "xyes"; then | ||
19982 | |||
19983 | $as_echo "#define HAVE_LROUND 1" >>confdefs.h | ||
19984 | |||
19985 | fi | ||
19986 | |||
19987 | SHM_OPEN_LINK="" | ||
19988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shm_open() is present" >&5 | ||
19989 | $as_echo_n "checking whether shm_open() is present... " >&6; } | ||
19990 | LIBS_save=${LIBS} | ||
19991 | LIBS="${LIBS} -lrt" | ||
19992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19993 | /* end confdefs.h. */ | ||
19994 | |||
19995 | #include <sys/stat.h> | ||
19996 | #include <sys/mman.h> | ||
19997 | #include <fcntl.h> | ||
19998 | |||
19999 | int | ||
20000 | main () | ||
20001 | { | ||
20002 | |||
20003 | int fd; | ||
20004 | fd = shm_open("/", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); | ||
20005 | shm_unlink("/"); | ||
20006 | |||
20007 | ; | ||
20008 | return 0; | ||
20009 | } | ||
20010 | _ACEOF | ||
20011 | if ac_fn_c_try_link "$LINENO"; then : | ||
20012 | |||
20013 | have_shm_open="yes" | ||
20014 | |||
20015 | $as_echo "#define HAVE_SHM_OPEN 1" >>confdefs.h | ||
20016 | |||
20017 | SHM_OPEN_LINK="-lrt" | ||
20018 | |||
20019 | else | ||
20020 | have_shm_open="no" | ||
20021 | fi | ||
20022 | rm -f core conftest.err conftest.$ac_objext \ | ||
20023 | conftest$ac_exeext conftest.$ac_ext | ||
20024 | LIBS=${LIBS_save} | ||
20025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_shm_open}" >&5 | ||
20026 | $as_echo "${have_shm_open}" >&6; } | ||
20027 | |||
20028 | |||
20029 | # (shm_open (for cache server) | ||
20030 | # Check whether --enable-evas-cserve was given. | ||
20031 | if test "${enable_evas_cserve+set}" = set; then : | ||
20032 | enableval=$enable_evas_cserve; | ||
20033 | if test "x${enableval}" = "xyes" ; then | ||
20034 | want_evas_cserve="yes" | ||
20035 | else | ||
20036 | want_evas_cserve="no" | ||
20037 | fi | ||
20038 | |||
20039 | fi | ||
20040 | |||
20041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared cache server and support" >&5 | ||
20042 | $as_echo_n "checking whether to build shared cache server and support... " >&6; } | ||
20043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_evas_cserve}" >&5 | ||
20044 | $as_echo "${want_evas_cserve}" >&6; } | ||
20045 | |||
20046 | if test "x${want_evas_cserve}" = "xyes" ; then | ||
20047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shm_open() is present" >&5 | ||
20048 | $as_echo_n "checking whether shm_open() is present... " >&6; } | ||
20049 | LIBS_save=${LIBS} | ||
20050 | LIBS="${LIBS} -lrt" | ||
20051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
20052 | /* end confdefs.h. */ | ||
20053 | |||
20054 | #include <sys/types.h> | ||
20055 | #include <sys/mman.h> | ||
20056 | #include <fcntl.h> | ||
20057 | |||
20058 | int | ||
20059 | main () | ||
20060 | { | ||
20061 | |||
20062 | int fd; | ||
20063 | fd = shm_open("/", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); | ||
20064 | shm_unlink("/"); | ||
20065 | |||
20066 | ; | ||
20067 | return 0; | ||
20068 | } | ||
20069 | _ACEOF | ||
20070 | if ac_fn_c_try_link "$LINENO"; then : | ||
20071 | want_evas_cserve="yes" | ||
20072 | else | ||
20073 | want_evas_cserve="no" | ||
20074 | fi | ||
20075 | rm -f core conftest.err conftest.$ac_objext \ | ||
20076 | conftest$ac_exeext conftest.$ac_ext | ||
20077 | LIBS=${LIBS_save} | ||
20078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_evas_cserve}" >&5 | ||
20079 | $as_echo "${want_evas_cserve}" >&6; } | ||
20080 | fi | ||
20081 | |||
20082 | if test "x${want_evas_cserve}" = "xyes" ; then | ||
20083 | |||
20084 | $as_echo "#define EVAS_CSERVE 1" >>confdefs.h | ||
20085 | |||
20086 | fi | ||
20087 | |||
20088 | if test "x${want_evas_cserve}" = "xyes"; then | ||
20089 | EVAS_CSERVE_TRUE= | ||
20090 | EVAS_CSERVE_FALSE='#' | ||
20091 | else | ||
20092 | EVAS_CSERVE_TRUE='#' | ||
20093 | EVAS_CSERVE_FALSE= | ||
20094 | fi | ||
20095 | |||
20096 | |||
20097 | |||
20098 | |||
20099 | ####################################### | ||
20100 | ## GL force flavor gles | ||
20101 | gl_flavor_gles="no" | ||
20102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build GLES flavor of GL" >&5 | ||
20103 | $as_echo_n "checking whether to build GLES flavor of GL... " >&6; } | ||
20104 | # Check whether --enable-gl-flavor-gles was given. | ||
20105 | if test "${enable_gl_flavor_gles+set}" = set; then : | ||
20106 | enableval=$enable_gl_flavor_gles; | ||
20107 | if test "x$enableval" = "xyes" ; then | ||
20108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
20109 | $as_echo "yes" >&6; } | ||
20110 | gl_flavor_gles="yes" | ||
20111 | else | ||
20112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20113 | $as_echo "no" >&6; } | ||
20114 | gl_flavor_gles="no" | ||
20115 | fi | ||
20116 | |||
20117 | else | ||
20118 | |||
20119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20120 | $as_echo "no" >&6; } | ||
20121 | gl_flavor_gles="no" | ||
20122 | |||
20123 | |||
20124 | fi | ||
20125 | |||
20126 | |||
20127 | ####################################### | ||
20128 | ## GLES variety sgx | ||
20129 | gles_variety_sgx="no" | ||
20130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build GLES variety for SGX" >&5 | ||
20131 | $as_echo_n "checking whether to build GLES variety for SGX... " >&6; } | ||
20132 | # Check whether --enable-gles-variety-sgx was given. | ||
20133 | if test "${enable_gles_variety_sgx+set}" = set; then : | ||
20134 | enableval=$enable_gles_variety_sgx; | ||
20135 | if test "x$enableval" = "xyes" ; then | ||
20136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
20137 | $as_echo "yes" >&6; } | ||
20138 | |||
20139 | $as_echo "#define GLES_VARIETY_SGX 1" >>confdefs.h | ||
20140 | |||
20141 | gles_variety_sgx="yes" | ||
20142 | else | ||
20143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20144 | $as_echo "no" >&6; } | ||
20145 | gles_variety_sgx="no" | ||
20146 | fi | ||
20147 | |||
20148 | else | ||
20149 | |||
20150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20151 | $as_echo "no" >&6; } | ||
20152 | gles_variety_sgx="no" | ||
20153 | |||
20154 | |||
20155 | fi | ||
20156 | |||
20157 | |||
20158 | ####################################### | ||
20159 | ## GLES variety s3c6410 | ||
20160 | gles_variety_s3c6410="no" | ||
20161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build GLES variety for s3c6410" >&5 | ||
20162 | $as_echo_n "checking whether to build GLES variety for s3c6410... " >&6; } | ||
20163 | # Check whether --enable-gles-variety-s3c6410 was given. | ||
20164 | if test "${enable_gles_variety_s3c6410+set}" = set; then : | ||
20165 | enableval=$enable_gles_variety_s3c6410; | ||
20166 | if test "x$enableval" = "xyes" ; then | ||
20167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
20168 | $as_echo "yes" >&6; } | ||
20169 | |||
20170 | $as_echo "#define GLES_VARIETY_S3C6410 1" >>confdefs.h | ||
20171 | |||
20172 | gles_variety_s3c6410="yes" | ||
20173 | else | ||
20174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20175 | $as_echo "no" >&6; } | ||
20176 | gles_variety_s3c6410="no" | ||
20177 | fi | ||
20178 | |||
20179 | else | ||
20180 | |||
20181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20182 | $as_echo "no" >&6; } | ||
20183 | gles_variety_s3c6410="no" | ||
20184 | |||
20185 | |||
20186 | fi | ||
20187 | |||
20188 | |||
20189 | if test "x$gl_flavor_gles" = "xyes"; then | ||
20190 | eng="" | ||
20191 | if test "x$gles_variety_sgx" = "xyes"; then eng="x"$eng; fi | ||
20192 | if test "x$gles_variety_s3c6410" = "xyes"; then eng="x"$eng; fi | ||
20193 | if test "x$eng" = "xx"; then | ||
20194 | eng="" | ||
20195 | else | ||
20196 | as_fn_error $? "Please enable just 1 OpenGL-ES flavor. Choices are: | ||
20197 | --enable-gles-variety-sgx (Most GL-ES2 GPUs with shader compiler) | ||
20198 | --enable-gles-variety-s3c6410 (s3c6410 with offline shader compiler) | ||
20199 | You will also need to enable the OpenGL engine for X11 with: | ||
20200 | --enable-gl-xlib or --enable-gl-xcb | ||
20201 | " "$LINENO" 5 | ||
20202 | fi | ||
20203 | fi | ||
20204 | |||
20205 | ##################################################################### | ||
20206 | ## Engines | ||
20207 | |||
20208 | |||
20209 | |||
20210 | |||
20211 | want_engine="${want_evas_engine_buffer}" | ||
20212 | want_static_engine="no" | ||
20213 | have_engine="no" | ||
20214 | have_evas_engine_buffer="no" | ||
20215 | |||
20216 | # Check whether --enable-buffer was given. | ||
20217 | if test "${enable_buffer+set}" = set; then : | ||
20218 | enableval=$enable_buffer; | ||
20219 | if test "x${enableval}" = "xyes" ; then | ||
20220 | want_engine="yes" | ||
20221 | else | ||
20222 | if test "x${enableval}" = "xstatic" ; then | ||
20223 | want_engine="static" | ||
20224 | else | ||
20225 | want_engine="no" | ||
20226 | fi | ||
20227 | fi | ||
20228 | |||
20229 | fi | ||
20230 | |||
20231 | |||
20232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Buffer rendering backend" >&5 | ||
20233 | $as_echo_n "checking whether to enable Buffer rendering backend... " >&6; } | ||
20234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
20235 | $as_echo "${want_engine}" >&6; } | ||
20236 | |||
20237 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
20238 | |||
20239 | |||
20240 | have_dep="yes" | ||
20241 | evas_engine_buffer_cflags="" | ||
20242 | evas_engine_buffer_libs="" | ||
20243 | |||
20244 | |||
20245 | |||
20246 | |||
20247 | if test "x${have_dep}" = "xyes" ; then | ||
20248 | have_engine="yes" | ||
20249 | else | ||
20250 | have_engine="no" | ||
20251 | fi | ||
20252 | |||
20253 | |||
20254 | fi | ||
20255 | |||
20256 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
20257 | as_fn_error $? "Buffer dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
20258 | fi | ||
20259 | |||
20260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Buffer rendering backend will be built" >&5 | ||
20261 | $as_echo_n "checking whether Buffer rendering backend will be built... " >&6; } | ||
20262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
20263 | $as_echo "${have_engine}" >&6; } | ||
20264 | |||
20265 | if test "x${have_engine}" = "xyes" ; then | ||
20266 | if test "x${want_engine}" = "xstatic" ; then | ||
20267 | have_evas_engine_buffer="static" | ||
20268 | want_static_engine="yes" | ||
20269 | else | ||
20270 | have_evas_engine_buffer="yes" | ||
20271 | fi | ||
20272 | fi | ||
20273 | |||
20274 | if test "x${have_engine}" = "xyes" ; then | ||
20275 | |||
20276 | $as_echo "#define BUILD_ENGINE_BUFFER 1" >>confdefs.h | ||
20277 | |||
20278 | fi | ||
20279 | |||
20280 | if test "x${have_engine}" = "xyes"; then | ||
20281 | BUILD_ENGINE_BUFFER_TRUE= | ||
20282 | BUILD_ENGINE_BUFFER_FALSE='#' | ||
20283 | else | ||
20284 | BUILD_ENGINE_BUFFER_TRUE='#' | ||
20285 | BUILD_ENGINE_BUFFER_FALSE= | ||
20286 | fi | ||
20287 | |||
20288 | |||
20289 | if test "x${want_static_engine}" = "xyes" ; then | ||
20290 | |||
20291 | $as_echo "#define EVAS_STATIC_BUILD_BUFFER 1" >>confdefs.h | ||
20292 | |||
20293 | have_static_module="yes" | ||
20294 | fi | ||
20295 | |||
20296 | if test "x${want_static_engine}" = "xyes"; then | ||
20297 | EVAS_STATIC_BUILD_BUFFER_TRUE= | ||
20298 | EVAS_STATIC_BUILD_BUFFER_FALSE='#' | ||
20299 | else | ||
20300 | EVAS_STATIC_BUILD_BUFFER_TRUE='#' | ||
20301 | EVAS_STATIC_BUILD_BUFFER_FALSE= | ||
20302 | fi | ||
20303 | |||
20304 | |||
20305 | |||
20306 | |||
20307 | |||
20308 | |||
20309 | |||
20310 | |||
20311 | |||
20312 | |||
20313 | want_engine="${want_evas_engine_software_gdi}" | ||
20314 | want_static_engine="no" | ||
20315 | have_engine="no" | ||
20316 | have_evas_engine_software_gdi="no" | ||
20317 | |||
20318 | # Check whether --enable-software-gdi was given. | ||
20319 | if test "${enable_software_gdi+set}" = set; then : | ||
20320 | enableval=$enable_software_gdi; | ||
20321 | if test "x${enableval}" = "xyes" ; then | ||
20322 | want_engine="yes" | ||
20323 | else | ||
20324 | if test "x${enableval}" = "xstatic" ; then | ||
20325 | want_engine="static" | ||
20326 | else | ||
20327 | want_engine="no" | ||
20328 | fi | ||
20329 | fi | ||
20330 | |||
20331 | fi | ||
20332 | |||
20333 | |||
20334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Software GDI rendering backend" >&5 | ||
20335 | $as_echo_n "checking whether to enable Software GDI rendering backend... " >&6; } | ||
20336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
20337 | $as_echo "${want_engine}" >&6; } | ||
20338 | |||
20339 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
20340 | |||
20341 | |||
20342 | have_dep="no" | ||
20343 | evas_engine_software_gdi_cflags="" | ||
20344 | evas_engine_software_gdi_libs="" | ||
20345 | |||
20346 | ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" | ||
20347 | if test "x$ac_cv_header_windows_h" = x""yes; then : | ||
20348 | |||
20349 | have_dep="yes" | ||
20350 | evas_engine_software_gdi_libs="-lgdi32" | ||
20351 | |||
20352 | |||
20353 | fi | ||
20354 | |||
20355 | |||
20356 | |||
20357 | |||
20358 | |||
20359 | |||
20360 | if test "x${have_dep}" = "xyes" ; then | ||
20361 | have_engine="yes" | ||
20362 | else | ||
20363 | have_engine="no" | ||
20364 | fi | ||
20365 | |||
20366 | |||
20367 | fi | ||
20368 | |||
20369 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
20370 | as_fn_error $? "Software GDI dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
20371 | fi | ||
20372 | |||
20373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Software GDI rendering backend will be built" >&5 | ||
20374 | $as_echo_n "checking whether Software GDI rendering backend will be built... " >&6; } | ||
20375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
20376 | $as_echo "${have_engine}" >&6; } | ||
20377 | |||
20378 | if test "x${have_engine}" = "xyes" ; then | ||
20379 | if test "x${want_engine}" = "xstatic" ; then | ||
20380 | have_evas_engine_software_gdi="static" | ||
20381 | want_static_engine="yes" | ||
20382 | else | ||
20383 | have_evas_engine_software_gdi="yes" | ||
20384 | fi | ||
20385 | fi | ||
20386 | |||
20387 | if test "x${have_engine}" = "xyes" ; then | ||
20388 | |||
20389 | $as_echo "#define BUILD_ENGINE_SOFTWARE_GDI 1" >>confdefs.h | ||
20390 | |||
20391 | fi | ||
20392 | |||
20393 | if test "x${have_engine}" = "xyes"; then | ||
20394 | BUILD_ENGINE_SOFTWARE_GDI_TRUE= | ||
20395 | BUILD_ENGINE_SOFTWARE_GDI_FALSE='#' | ||
20396 | else | ||
20397 | BUILD_ENGINE_SOFTWARE_GDI_TRUE='#' | ||
20398 | BUILD_ENGINE_SOFTWARE_GDI_FALSE= | ||
20399 | fi | ||
20400 | |||
20401 | |||
20402 | if test "x${want_static_engine}" = "xyes" ; then | ||
20403 | |||
20404 | $as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_GDI 1" >>confdefs.h | ||
20405 | |||
20406 | have_static_module="yes" | ||
20407 | fi | ||
20408 | |||
20409 | if test "x${want_static_engine}" = "xyes"; then | ||
20410 | EVAS_STATIC_BUILD_SOFTWARE_GDI_TRUE= | ||
20411 | EVAS_STATIC_BUILD_SOFTWARE_GDI_FALSE='#' | ||
20412 | else | ||
20413 | EVAS_STATIC_BUILD_SOFTWARE_GDI_TRUE='#' | ||
20414 | EVAS_STATIC_BUILD_SOFTWARE_GDI_FALSE= | ||
20415 | fi | ||
20416 | |||
20417 | |||
20418 | |||
20419 | |||
20420 | |||
20421 | |||
20422 | |||
20423 | |||
20424 | |||
20425 | |||
20426 | want_engine="${want_evas_engine_software_ddraw}" | ||
20427 | want_static_engine="no" | ||
20428 | have_engine="no" | ||
20429 | have_evas_engine_software_ddraw="no" | ||
20430 | |||
20431 | # Check whether --enable-software-ddraw was given. | ||
20432 | if test "${enable_software_ddraw+set}" = set; then : | ||
20433 | enableval=$enable_software_ddraw; | ||
20434 | if test "x${enableval}" = "xyes" ; then | ||
20435 | want_engine="yes" | ||
20436 | else | ||
20437 | if test "x${enableval}" = "xstatic" ; then | ||
20438 | want_engine="static" | ||
20439 | else | ||
20440 | want_engine="no" | ||
20441 | fi | ||
20442 | fi | ||
20443 | |||
20444 | fi | ||
20445 | |||
20446 | |||
20447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Software DirectDraw rendering backend" >&5 | ||
20448 | $as_echo_n "checking whether to enable Software DirectDraw rendering backend... " >&6; } | ||
20449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
20450 | $as_echo "${want_engine}" >&6; } | ||
20451 | |||
20452 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
20453 | |||
20454 | |||
20455 | have_dep="no" | ||
20456 | evas_engine_software_ddraw_cflags="" | ||
20457 | evas_engine_software_ddraw_libs="" | ||
20458 | |||
20459 | ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default" | ||
20460 | if test "x$ac_cv_header_ddraw_h" = x""yes; then : | ||
20461 | |||
20462 | have_dep="yes" | ||
20463 | evas_engine_software_ddraw_libs="-lddraw" | ||
20464 | |||
20465 | |||
20466 | fi | ||
20467 | |||
20468 | |||
20469 | |||
20470 | |||
20471 | |||
20472 | |||
20473 | if test "x${have_dep}" = "xyes" ; then | ||
20474 | have_engine="yes" | ||
20475 | else | ||
20476 | have_engine="no" | ||
20477 | fi | ||
20478 | |||
20479 | |||
20480 | fi | ||
20481 | |||
20482 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
20483 | as_fn_error $? "Software DirectDraw dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
20484 | fi | ||
20485 | |||
20486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Software DirectDraw rendering backend will be built" >&5 | ||
20487 | $as_echo_n "checking whether Software DirectDraw rendering backend will be built... " >&6; } | ||
20488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
20489 | $as_echo "${have_engine}" >&6; } | ||
20490 | |||
20491 | if test "x${have_engine}" = "xyes" ; then | ||
20492 | if test "x${want_engine}" = "xstatic" ; then | ||
20493 | have_evas_engine_software_ddraw="static" | ||
20494 | want_static_engine="yes" | ||
20495 | else | ||
20496 | have_evas_engine_software_ddraw="yes" | ||
20497 | fi | ||
20498 | fi | ||
20499 | |||
20500 | if test "x${have_engine}" = "xyes" ; then | ||
20501 | |||
20502 | $as_echo "#define BUILD_ENGINE_SOFTWARE_DDRAW 1" >>confdefs.h | ||
20503 | |||
20504 | fi | ||
20505 | |||
20506 | if test "x${have_engine}" = "xyes"; then | ||
20507 | BUILD_ENGINE_SOFTWARE_DDRAW_TRUE= | ||
20508 | BUILD_ENGINE_SOFTWARE_DDRAW_FALSE='#' | ||
20509 | else | ||
20510 | BUILD_ENGINE_SOFTWARE_DDRAW_TRUE='#' | ||
20511 | BUILD_ENGINE_SOFTWARE_DDRAW_FALSE= | ||
20512 | fi | ||
20513 | |||
20514 | |||
20515 | if test "x${want_static_engine}" = "xyes" ; then | ||
20516 | |||
20517 | $as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_DDRAW 1" >>confdefs.h | ||
20518 | |||
20519 | have_static_module="yes" | ||
20520 | fi | ||
20521 | |||
20522 | if test "x${want_static_engine}" = "xyes"; then | ||
20523 | EVAS_STATIC_BUILD_SOFTWARE_DDRAW_TRUE= | ||
20524 | EVAS_STATIC_BUILD_SOFTWARE_DDRAW_FALSE='#' | ||
20525 | else | ||
20526 | EVAS_STATIC_BUILD_SOFTWARE_DDRAW_TRUE='#' | ||
20527 | EVAS_STATIC_BUILD_SOFTWARE_DDRAW_FALSE= | ||
20528 | fi | ||
20529 | |||
20530 | |||
20531 | |||
20532 | |||
20533 | |||
20534 | |||
20535 | |||
20536 | |||
20537 | |||
20538 | |||
20539 | want_engine="${want_evas_engine_direct3d}" | ||
20540 | want_static_engine="no" | ||
20541 | have_engine="no" | ||
20542 | have_evas_engine_direct3d="no" | ||
20543 | |||
20544 | # Check whether --enable-direct3d was given. | ||
20545 | if test "${enable_direct3d+set}" = set; then : | ||
20546 | enableval=$enable_direct3d; | ||
20547 | if test "x${enableval}" = "xyes" ; then | ||
20548 | want_engine="yes" | ||
20549 | else | ||
20550 | if test "x${enableval}" = "xstatic" ; then | ||
20551 | want_engine="static" | ||
20552 | else | ||
20553 | want_engine="no" | ||
20554 | fi | ||
20555 | fi | ||
20556 | |||
20557 | fi | ||
20558 | |||
20559 | |||
20560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Direct3D rendering backend" >&5 | ||
20561 | $as_echo_n "checking whether to enable Direct3D rendering backend... " >&6; } | ||
20562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
20563 | $as_echo "${want_engine}" >&6; } | ||
20564 | |||
20565 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
20566 | |||
20567 | |||
20568 | evas_engine_direct3d_cflags="" | ||
20569 | evas_engine_direct3d_libs="" | ||
20570 | |||
20571 | for ac_header in d3d9.h d3dx9.h | ||
20572 | do : | ||
20573 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
20574 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
20575 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
20576 | cat >>confdefs.h <<_ACEOF | ||
20577 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
20578 | _ACEOF | ||
20579 | |||
20580 | have_dep="yes" | ||
20581 | evas_engine_direct3d_libs="-ld3d9 -ld3dx9 -lgdi32" | ||
20582 | |||
20583 | else | ||
20584 | have_dep="no"; break | ||
20585 | |||
20586 | fi | ||
20587 | |||
20588 | done | ||
20589 | |||
20590 | |||
20591 | |||
20592 | |||
20593 | |||
20594 | if test "x${have_dep}" = "xyes" ; then | ||
20595 | have_engine="yes" | ||
20596 | else | ||
20597 | have_engine="no" | ||
20598 | fi | ||
20599 | |||
20600 | |||
20601 | fi | ||
20602 | |||
20603 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
20604 | as_fn_error $? "Direct3D dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
20605 | fi | ||
20606 | |||
20607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Direct3D rendering backend will be built" >&5 | ||
20608 | $as_echo_n "checking whether Direct3D rendering backend will be built... " >&6; } | ||
20609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
20610 | $as_echo "${have_engine}" >&6; } | ||
20611 | |||
20612 | if test "x${have_engine}" = "xyes" ; then | ||
20613 | if test "x${want_engine}" = "xstatic" ; then | ||
20614 | have_evas_engine_direct3d="static" | ||
20615 | want_static_engine="yes" | ||
20616 | else | ||
20617 | have_evas_engine_direct3d="yes" | ||
20618 | fi | ||
20619 | fi | ||
20620 | |||
20621 | if test "x${have_engine}" = "xyes" ; then | ||
20622 | |||
20623 | $as_echo "#define BUILD_ENGINE_DIRECT3D 1" >>confdefs.h | ||
20624 | |||
20625 | fi | ||
20626 | |||
20627 | if test "x${have_engine}" = "xyes"; then | ||
20628 | BUILD_ENGINE_DIRECT3D_TRUE= | ||
20629 | BUILD_ENGINE_DIRECT3D_FALSE='#' | ||
20630 | else | ||
20631 | BUILD_ENGINE_DIRECT3D_TRUE='#' | ||
20632 | BUILD_ENGINE_DIRECT3D_FALSE= | ||
20633 | fi | ||
20634 | |||
20635 | |||
20636 | if test "x${want_static_engine}" = "xyes" ; then | ||
20637 | |||
20638 | $as_echo "#define EVAS_STATIC_BUILD_DIRECT3D 1" >>confdefs.h | ||
20639 | |||
20640 | have_static_module="yes" | ||
20641 | fi | ||
20642 | |||
20643 | if test "x${want_static_engine}" = "xyes"; then | ||
20644 | EVAS_STATIC_BUILD_DIRECT3D_TRUE= | ||
20645 | EVAS_STATIC_BUILD_DIRECT3D_FALSE='#' | ||
20646 | else | ||
20647 | EVAS_STATIC_BUILD_DIRECT3D_TRUE='#' | ||
20648 | EVAS_STATIC_BUILD_DIRECT3D_FALSE= | ||
20649 | fi | ||
20650 | |||
20651 | |||
20652 | |||
20653 | |||
20654 | |||
20655 | |||
20656 | |||
20657 | |||
20658 | |||
20659 | |||
20660 | want_engine="${want_evas_engine_psl1ght}" | ||
20661 | want_static_engine="no" | ||
20662 | have_engine="no" | ||
20663 | have_evas_engine_psl1ght="no" | ||
20664 | |||
20665 | # Check whether --enable-psl1ght was given. | ||
20666 | if test "${enable_psl1ght+set}" = set; then : | ||
20667 | enableval=$enable_psl1ght; | ||
20668 | if test "x${enableval}" = "xyes" ; then | ||
20669 | want_engine="yes" | ||
20670 | else | ||
20671 | if test "x${enableval}" = "xstatic" ; then | ||
20672 | want_engine="static" | ||
20673 | else | ||
20674 | want_engine="no" | ||
20675 | fi | ||
20676 | fi | ||
20677 | |||
20678 | fi | ||
20679 | |||
20680 | |||
20681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PSL1GHT rendering backend" >&5 | ||
20682 | $as_echo_n "checking whether to enable PSL1GHT rendering backend... " >&6; } | ||
20683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
20684 | $as_echo "${want_engine}" >&6; } | ||
20685 | |||
20686 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
20687 | |||
20688 | |||
20689 | have_dep="no" | ||
20690 | evas_engine_psl1ght_cflags="" | ||
20691 | evas_engine_psl1ght_libs="" | ||
20692 | |||
20693 | ac_fn_c_check_header_mongrel "$LINENO" "rsx/rsx.h" "ac_cv_header_rsx_rsx_h" "$ac_includes_default" | ||
20694 | if test "x$ac_cv_header_rsx_rsx_h" = x""yes; then : | ||
20695 | have_dep="yes" | ||
20696 | fi | ||
20697 | |||
20698 | |||
20699 | |||
20700 | |||
20701 | |||
20702 | |||
20703 | if test "x${have_dep}" = "xyes" ; then | ||
20704 | have_engine="yes" | ||
20705 | else | ||
20706 | have_engine="no" | ||
20707 | fi | ||
20708 | |||
20709 | |||
20710 | fi | ||
20711 | |||
20712 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
20713 | as_fn_error $? "PSL1GHT dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
20714 | fi | ||
20715 | |||
20716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PSL1GHT rendering backend will be built" >&5 | ||
20717 | $as_echo_n "checking whether PSL1GHT rendering backend will be built... " >&6; } | ||
20718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
20719 | $as_echo "${have_engine}" >&6; } | ||
20720 | |||
20721 | if test "x${have_engine}" = "xyes" ; then | ||
20722 | if test "x${want_engine}" = "xstatic" ; then | ||
20723 | have_evas_engine_psl1ght="static" | ||
20724 | want_static_engine="yes" | ||
20725 | else | ||
20726 | have_evas_engine_psl1ght="yes" | ||
20727 | fi | ||
20728 | fi | ||
20729 | |||
20730 | if test "x${have_engine}" = "xyes" ; then | ||
20731 | |||
20732 | $as_echo "#define BUILD_ENGINE_PSL1GHT 1" >>confdefs.h | ||
20733 | |||
20734 | fi | ||
20735 | |||
20736 | if test "x${have_engine}" = "xyes"; then | ||
20737 | BUILD_ENGINE_PSL1GHT_TRUE= | ||
20738 | BUILD_ENGINE_PSL1GHT_FALSE='#' | ||
20739 | else | ||
20740 | BUILD_ENGINE_PSL1GHT_TRUE='#' | ||
20741 | BUILD_ENGINE_PSL1GHT_FALSE= | ||
20742 | fi | ||
20743 | |||
20744 | |||
20745 | if test "x${want_static_engine}" = "xyes" ; then | ||
20746 | |||
20747 | $as_echo "#define EVAS_STATIC_BUILD_PSL1GHT 1" >>confdefs.h | ||
20748 | |||
20749 | have_static_module="yes" | ||
20750 | fi | ||
20751 | |||
20752 | if test "x${want_static_engine}" = "xyes"; then | ||
20753 | EVAS_STATIC_BUILD_PSL1GHT_TRUE= | ||
20754 | EVAS_STATIC_BUILD_PSL1GHT_FALSE='#' | ||
20755 | else | ||
20756 | EVAS_STATIC_BUILD_PSL1GHT_TRUE='#' | ||
20757 | EVAS_STATIC_BUILD_PSL1GHT_FALSE= | ||
20758 | fi | ||
20759 | |||
20760 | |||
20761 | |||
20762 | |||
20763 | |||
20764 | |||
20765 | |||
20766 | |||
20767 | |||
20768 | |||
20769 | want_engine="${want_evas_engine_gl_sdl}" | ||
20770 | want_static_engine="no" | ||
20771 | have_engine="no" | ||
20772 | have_evas_engine_gl_sdl="no" | ||
20773 | |||
20774 | # Check whether --enable-gl-sdl was given. | ||
20775 | if test "${enable_gl_sdl+set}" = set; then : | ||
20776 | enableval=$enable_gl_sdl; | ||
20777 | if test "x${enableval}" = "xyes" ; then | ||
20778 | want_engine="yes" | ||
20779 | else | ||
20780 | if test "x${enableval}" = "xstatic" ; then | ||
20781 | want_engine="static" | ||
20782 | else | ||
20783 | want_engine="no" | ||
20784 | fi | ||
20785 | fi | ||
20786 | |||
20787 | fi | ||
20788 | |||
20789 | |||
20790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OpenGL SDL rendering backend" >&5 | ||
20791 | $as_echo_n "checking whether to enable OpenGL SDL rendering backend... " >&6; } | ||
20792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
20793 | $as_echo "${want_engine}" >&6; } | ||
20794 | |||
20795 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
20796 | |||
20797 | |||
20798 | requirement="" | ||
20799 | have_dep="no" | ||
20800 | evas_engine_gl_sdl_cflags="" | ||
20801 | evas_engine_gl_sdl_libs="" | ||
20802 | |||
20803 | |||
20804 | pkg_failed=no | ||
20805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5 | ||
20806 | $as_echo_n "checking for SDL... " >&6; } | ||
20807 | |||
20808 | if test -n "$SDL_CFLAGS"; then | ||
20809 | pkg_cv_SDL_CFLAGS="$SDL_CFLAGS" | ||
20810 | elif test -n "$PKG_CONFIG"; then | ||
20811 | if test -n "$PKG_CONFIG" && \ | ||
20812 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5 | ||
20813 | ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5 | ||
20814 | ac_status=$? | ||
20815 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20816 | test $ac_status = 0; }; then | ||
20817 | pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl >= 1.2.0" 2>/dev/null` | ||
20818 | else | ||
20819 | pkg_failed=yes | ||
20820 | fi | ||
20821 | else | ||
20822 | pkg_failed=untried | ||
20823 | fi | ||
20824 | if test -n "$SDL_LIBS"; then | ||
20825 | pkg_cv_SDL_LIBS="$SDL_LIBS" | ||
20826 | elif test -n "$PKG_CONFIG"; then | ||
20827 | if test -n "$PKG_CONFIG" && \ | ||
20828 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5 | ||
20829 | ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5 | ||
20830 | ac_status=$? | ||
20831 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
20832 | test $ac_status = 0; }; then | ||
20833 | pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl >= 1.2.0" 2>/dev/null` | ||
20834 | else | ||
20835 | pkg_failed=yes | ||
20836 | fi | ||
20837 | else | ||
20838 | pkg_failed=untried | ||
20839 | fi | ||
20840 | |||
20841 | |||
20842 | |||
20843 | if test $pkg_failed = yes; then | ||
20844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20845 | $as_echo "no" >&6; } | ||
20846 | |||
20847 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
20848 | _pkg_short_errors_supported=yes | ||
20849 | else | ||
20850 | _pkg_short_errors_supported=no | ||
20851 | fi | ||
20852 | if test $_pkg_short_errors_supported = yes; then | ||
20853 | SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl >= 1.2.0" 2>&1` | ||
20854 | else | ||
20855 | SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl >= 1.2.0" 2>&1` | ||
20856 | fi | ||
20857 | # Put the nasty error message in config.log where it belongs | ||
20858 | echo "$SDL_PKG_ERRORS" >&5 | ||
20859 | |||
20860 | as_fn_error $? "Package requirements (sdl >= 1.2.0) were not met: | ||
20861 | |||
20862 | $SDL_PKG_ERRORS | ||
20863 | |||
20864 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
20865 | installed software in a non-standard prefix. | ||
20866 | |||
20867 | Alternatively, you may set the environment variables SDL_CFLAGS | ||
20868 | and SDL_LIBS to avoid the need to call pkg-config. | ||
20869 | See the pkg-config man page for more details." "$LINENO" 5 | ||
20870 | elif test $pkg_failed = untried; then | ||
20871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
20872 | $as_echo "no" >&6; } | ||
20873 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
20874 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
20875 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
20876 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
20877 | path to pkg-config. | ||
20878 | |||
20879 | Alternatively, you may set the environment variables SDL_CFLAGS | ||
20880 | and SDL_LIBS to avoid the need to call pkg-config. | ||
20881 | See the pkg-config man page for more details. | ||
20882 | |||
20883 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
20884 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
20885 | else | ||
20886 | SDL_CFLAGS=$pkg_cv_SDL_CFLAGS | ||
20887 | SDL_LIBS=$pkg_cv_SDL_LIBS | ||
20888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
20889 | $as_echo "yes" >&6; } | ||
20890 | |||
20891 | have_dep="yes" | ||
20892 | requirement="sdl" | ||
20893 | evas_engine_gl_sdl_cflags="${SDL_CFLAGS}" | ||
20894 | evas_engine_gl_sdl_libs="${SDL_LIBS}" | ||
20895 | |||
20896 | |||
20897 | fi | ||
20898 | |||
20899 | gl_pt_lib=""; | ||
20900 | have_gl_pt="no" | ||
20901 | |||
20902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_create() is supported" >&5 | ||
20903 | $as_echo_n "checking whether pthread_create() is supported... " >&6; } | ||
20904 | CFLAGS_save="${CFLAGS}" | ||
20905 | CFLAGS="${CFLAGS} -pthread" | ||
20906 | LIBS_save="${LIBS}" | ||
20907 | LIBS="${LIBS} -pthread" | ||
20908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
20909 | /* end confdefs.h. */ | ||
20910 | |||
20911 | #include <pthread.h> | ||
20912 | |||
20913 | int | ||
20914 | main () | ||
20915 | { | ||
20916 | |||
20917 | pthread_create(NULL, NULL, NULL, NULL); | ||
20918 | |||
20919 | ; | ||
20920 | return 0; | ||
20921 | } | ||
20922 | _ACEOF | ||
20923 | if ac_fn_c_try_link "$LINENO"; then : | ||
20924 | have_gl_pt="yes" | ||
20925 | else | ||
20926 | have_gl_pt="no" | ||
20927 | fi | ||
20928 | rm -f core conftest.err conftest.$ac_objext \ | ||
20929 | conftest$ac_exeext conftest.$ac_ext | ||
20930 | CFLAGS=${CFLAGS_save} | ||
20931 | LIBS=${LIBS_save} | ||
20932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_gl_pt}" >&5 | ||
20933 | $as_echo "${have_gl_pt}" >&6; } | ||
20934 | |||
20935 | if test "x$have_gl_pt" = "xyes" ; then | ||
20936 | gl_pt_lib=" -pthread" | ||
20937 | fi | ||
20938 | |||
20939 | ac_fn_c_check_header_compile "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" " | ||
20940 | #include <GL/gl.h> | ||
20941 | #include <GL/glext.h> | ||
20942 | |||
20943 | " | ||
20944 | if test "x$ac_cv_header_GL_gl_h" = x""yes; then : | ||
20945 | have_dep="yes" | ||
20946 | else | ||
20947 | have_dep="no" | ||
20948 | fi | ||
20949 | |||
20950 | |||
20951 | |||
20952 | if test "x$gl_flavor_gles" = "xyes" ; then | ||
20953 | have_dep=no | ||
20954 | fi | ||
20955 | |||
20956 | if test "x${have_dep}" = "xyes" ; then | ||
20957 | evas_engine_gl_sdl_cflags="${SDL_CFLAGS}" | ||
20958 | evas_engine_gl_sdl_libs="${SDL_LIBS} -lGL -lm $gl_pt_lib" | ||
20959 | evas_engine_gl_common_libs="-lGL -lm $gl_pt_lib" | ||
20960 | else | ||
20961 | ac_fn_c_check_header_compile "$LINENO" "SDL/SDL_opengles.h" "ac_cv_header_SDL_SDL_opengles_h" " | ||
20962 | #include <SDL/SDL_opengles.h> | ||
20963 | #include <EGL/egl.h> | ||
20964 | |||
20965 | " | ||
20966 | if test "x$ac_cv_header_SDL_SDL_opengles_h" = x""yes; then : | ||
20967 | have_egl="yes" | ||
20968 | else | ||
20969 | have_egl="no" | ||
20970 | fi | ||
20971 | |||
20972 | |||
20973 | if test "x${have_egl}" = "xyes" ; then | ||
20974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glTexImage2D in -lGLESv2" >&5 | ||
20975 | $as_echo_n "checking for glTexImage2D in -lGLESv2... " >&6; } | ||
20976 | if test "${ac_cv_lib_GLESv2_glTexImage2D+set}" = set; then : | ||
20977 | $as_echo_n "(cached) " >&6 | ||
20978 | else | ||
20979 | ac_check_lib_save_LIBS=$LIBS | ||
20980 | LIBS="-lGLESv2 -lEGL -lm $gl_pt_lib $LIBS" | ||
20981 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
20982 | /* end confdefs.h. */ | ||
20983 | |||
20984 | /* Override any GCC internal prototype to avoid an error. | ||
20985 | Use char because int might match the return type of a GCC | ||
20986 | builtin and then its argument prototype would still apply. */ | ||
20987 | #ifdef __cplusplus | ||
20988 | extern "C" | ||
20989 | #endif | ||
20990 | char glTexImage2D (); | ||
20991 | int | ||
20992 | main () | ||
20993 | { | ||
20994 | return glTexImage2D (); | ||
20995 | ; | ||
20996 | return 0; | ||
20997 | } | ||
20998 | _ACEOF | ||
20999 | if ac_fn_c_try_link "$LINENO"; then : | ||
21000 | ac_cv_lib_GLESv2_glTexImage2D=yes | ||
21001 | else | ||
21002 | ac_cv_lib_GLESv2_glTexImage2D=no | ||
21003 | fi | ||
21004 | rm -f core conftest.err conftest.$ac_objext \ | ||
21005 | conftest$ac_exeext conftest.$ac_ext | ||
21006 | LIBS=$ac_check_lib_save_LIBS | ||
21007 | fi | ||
21008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLESv2_glTexImage2D" >&5 | ||
21009 | $as_echo "$ac_cv_lib_GLESv2_glTexImage2D" >&6; } | ||
21010 | if test "x$ac_cv_lib_GLESv2_glTexImage2D" = x""yes; then : | ||
21011 | have_glesv2="yes" | ||
21012 | fi | ||
21013 | |||
21014 | if test "x${have_glesv2}" = "xyes" ; then | ||
21015 | evas_engine_gl_sdl_cflags="${SDL_CFLAGS}" | ||
21016 | evas_engine_gl_sdl_libs="${SDL_LIBS} -lGLESv2 -lEGL -lm $gl_pt_lib" | ||
21017 | evas_engine_gl_common_libs="-lGLESv2 -lm $gl_pt_lib" | ||
21018 | have_dep="yes" | ||
21019 | |||
21020 | $as_echo "#define GLES_VARIETY_SGX 1" >>confdefs.h | ||
21021 | |||
21022 | gles_variety_sgx="yes" | ||
21023 | fi | ||
21024 | fi | ||
21025 | fi | ||
21026 | |||
21027 | |||
21028 | |||
21029 | |||
21030 | if test "x${want_engine}" = "xstatic" ; then | ||
21031 | requirement_evas="${requirement} ${requirement_evas}" | ||
21032 | fi | ||
21033 | |||
21034 | if test "x${have_dep}" = "xyes" ; then | ||
21035 | have_engine="yes" | ||
21036 | else | ||
21037 | have_engine="no" | ||
21038 | fi | ||
21039 | |||
21040 | |||
21041 | fi | ||
21042 | |||
21043 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
21044 | as_fn_error $? "OpenGL SDL dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
21045 | fi | ||
21046 | |||
21047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenGL SDL rendering backend will be built" >&5 | ||
21048 | $as_echo_n "checking whether OpenGL SDL rendering backend will be built... " >&6; } | ||
21049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
21050 | $as_echo "${have_engine}" >&6; } | ||
21051 | |||
21052 | if test "x${have_engine}" = "xyes" ; then | ||
21053 | if test "x${want_engine}" = "xstatic" ; then | ||
21054 | have_evas_engine_gl_sdl="static" | ||
21055 | want_static_engine="yes" | ||
21056 | else | ||
21057 | have_evas_engine_gl_sdl="yes" | ||
21058 | fi | ||
21059 | fi | ||
21060 | |||
21061 | if test "x${have_engine}" = "xyes" ; then | ||
21062 | |||
21063 | $as_echo "#define BUILD_ENGINE_GL_SDL 1" >>confdefs.h | ||
21064 | |||
21065 | fi | ||
21066 | |||
21067 | if test "x${have_engine}" = "xyes"; then | ||
21068 | BUILD_ENGINE_GL_SDL_TRUE= | ||
21069 | BUILD_ENGINE_GL_SDL_FALSE='#' | ||
21070 | else | ||
21071 | BUILD_ENGINE_GL_SDL_TRUE='#' | ||
21072 | BUILD_ENGINE_GL_SDL_FALSE= | ||
21073 | fi | ||
21074 | |||
21075 | |||
21076 | if test "x${want_static_engine}" = "xyes" ; then | ||
21077 | |||
21078 | $as_echo "#define EVAS_STATIC_BUILD_GL_SDL 1" >>confdefs.h | ||
21079 | |||
21080 | have_static_module="yes" | ||
21081 | fi | ||
21082 | |||
21083 | if test "x${want_static_engine}" = "xyes"; then | ||
21084 | EVAS_STATIC_BUILD_GL_SDL_TRUE= | ||
21085 | EVAS_STATIC_BUILD_GL_SDL_FALSE='#' | ||
21086 | else | ||
21087 | EVAS_STATIC_BUILD_GL_SDL_TRUE='#' | ||
21088 | EVAS_STATIC_BUILD_GL_SDL_FALSE= | ||
21089 | fi | ||
21090 | |||
21091 | |||
21092 | |||
21093 | |||
21094 | |||
21095 | |||
21096 | |||
21097 | |||
21098 | |||
21099 | |||
21100 | want_engine="${want_evas_engine_gl_cocoa}" | ||
21101 | want_static_engine="no" | ||
21102 | have_engine="no" | ||
21103 | have_evas_engine_gl_cocoa="no" | ||
21104 | |||
21105 | # Check whether --enable-gl-cocoa was given. | ||
21106 | if test "${enable_gl_cocoa+set}" = set; then : | ||
21107 | enableval=$enable_gl_cocoa; | ||
21108 | if test "x${enableval}" = "xyes" ; then | ||
21109 | want_engine="yes" | ||
21110 | else | ||
21111 | if test "x${enableval}" = "xstatic" ; then | ||
21112 | want_engine="static" | ||
21113 | else | ||
21114 | want_engine="no" | ||
21115 | fi | ||
21116 | fi | ||
21117 | |||
21118 | fi | ||
21119 | |||
21120 | |||
21121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OpenGL Cocoa rendering backend" >&5 | ||
21122 | $as_echo_n "checking whether to enable OpenGL Cocoa rendering backend... " >&6; } | ||
21123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
21124 | $as_echo "${want_engine}" >&6; } | ||
21125 | |||
21126 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
21127 | |||
21128 | |||
21129 | evas_engine_gl_cocoa_cflags="" | ||
21130 | evas_engine_gl_cocoa_libs="" | ||
21131 | |||
21132 | ac_ext=m | ||
21133 | ac_cpp='$OBJCPP $CPPFLAGS' | ||
21134 | ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
21135 | ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
21136 | ac_compiler_gnu=$ac_cv_objc_compiler_gnu | ||
21137 | |||
21138 | |||
21139 | LIBS_save="$LIBS" | ||
21140 | LIBS="$LIBS -framework Cocoa" | ||
21141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
21142 | /* end confdefs.h. */ | ||
21143 | |||
21144 | #include <Cocoa/Cocoa.h> | ||
21145 | |||
21146 | int | ||
21147 | main () | ||
21148 | { | ||
21149 | |||
21150 | NSWindow *window; | ||
21151 | window = [[NSWindow alloc] | ||
21152 | initWithContentRect:NSMakeRect(0, 0, 1, 1) | ||
21153 | styleMask:(NSTitledWindowMask) | ||
21154 | backing:NSBackingStoreBuffered | ||
21155 | defer:NO | ||
21156 | screen:nil | ||
21157 | ]; | ||
21158 | |||
21159 | ; | ||
21160 | return 0; | ||
21161 | } | ||
21162 | _ACEOF | ||
21163 | if ac_fn_objc_try_link "$LINENO"; then : | ||
21164 | |||
21165 | have_dep="yes" | ||
21166 | evas_engine_gl_cocoa_libs="-framework Cocoa" | ||
21167 | |||
21168 | else | ||
21169 | have_dep="no" | ||
21170 | fi | ||
21171 | rm -f core conftest.err conftest.$ac_objext \ | ||
21172 | conftest$ac_exeext conftest.$ac_ext | ||
21173 | LIBS="$LIBS_save" | ||
21174 | |||
21175 | ac_ext=c | ||
21176 | ac_cpp='$CPP $CPPFLAGS' | ||
21177 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
21178 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
21179 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
21180 | |||
21181 | |||
21182 | if test "x${have_dep}" = "xyes" ; then | ||
21183 | |||
21184 | pkg_failed=no | ||
21185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL_EET" >&5 | ||
21186 | $as_echo_n "checking for GL_EET... " >&6; } | ||
21187 | |||
21188 | if test -n "$GL_EET_CFLAGS"; then | ||
21189 | pkg_cv_GL_EET_CFLAGS="$GL_EET_CFLAGS" | ||
21190 | elif test -n "$PKG_CONFIG"; then | ||
21191 | if test -n "$PKG_CONFIG" && \ | ||
21192 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.6.0\""; } >&5 | ||
21193 | ($PKG_CONFIG --exists --print-errors "eet >= 1.6.0") 2>&5 | ||
21194 | ac_status=$? | ||
21195 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21196 | test $ac_status = 0; }; then | ||
21197 | pkg_cv_GL_EET_CFLAGS=`$PKG_CONFIG --cflags "eet >= 1.6.0" 2>/dev/null` | ||
21198 | else | ||
21199 | pkg_failed=yes | ||
21200 | fi | ||
21201 | else | ||
21202 | pkg_failed=untried | ||
21203 | fi | ||
21204 | if test -n "$GL_EET_LIBS"; then | ||
21205 | pkg_cv_GL_EET_LIBS="$GL_EET_LIBS" | ||
21206 | elif test -n "$PKG_CONFIG"; then | ||
21207 | if test -n "$PKG_CONFIG" && \ | ||
21208 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.6.0\""; } >&5 | ||
21209 | ($PKG_CONFIG --exists --print-errors "eet >= 1.6.0") 2>&5 | ||
21210 | ac_status=$? | ||
21211 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21212 | test $ac_status = 0; }; then | ||
21213 | pkg_cv_GL_EET_LIBS=`$PKG_CONFIG --libs "eet >= 1.6.0" 2>/dev/null` | ||
21214 | else | ||
21215 | pkg_failed=yes | ||
21216 | fi | ||
21217 | else | ||
21218 | pkg_failed=untried | ||
21219 | fi | ||
21220 | |||
21221 | |||
21222 | |||
21223 | if test $pkg_failed = yes; then | ||
21224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21225 | $as_echo "no" >&6; } | ||
21226 | |||
21227 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
21228 | _pkg_short_errors_supported=yes | ||
21229 | else | ||
21230 | _pkg_short_errors_supported=no | ||
21231 | fi | ||
21232 | if test $_pkg_short_errors_supported = yes; then | ||
21233 | GL_EET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eet >= 1.6.0" 2>&1` | ||
21234 | else | ||
21235 | GL_EET_PKG_ERRORS=`$PKG_CONFIG --print-errors "eet >= 1.6.0" 2>&1` | ||
21236 | fi | ||
21237 | # Put the nasty error message in config.log where it belongs | ||
21238 | echo "$GL_EET_PKG_ERRORS" >&5 | ||
21239 | |||
21240 | have_dep="no" | ||
21241 | elif test $pkg_failed = untried; then | ||
21242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21243 | $as_echo "no" >&6; } | ||
21244 | have_dep="no" | ||
21245 | else | ||
21246 | GL_EET_CFLAGS=$pkg_cv_GL_EET_CFLAGS | ||
21247 | GL_EET_LIBS=$pkg_cv_GL_EET_LIBS | ||
21248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
21249 | $as_echo "yes" >&6; } | ||
21250 | have_dep="yes" | ||
21251 | fi | ||
21252 | fi | ||
21253 | |||
21254 | |||
21255 | |||
21256 | |||
21257 | if test "x${have_dep}" = "xyes" ; then | ||
21258 | have_engine="yes" | ||
21259 | else | ||
21260 | have_engine="no" | ||
21261 | fi | ||
21262 | |||
21263 | |||
21264 | fi | ||
21265 | |||
21266 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
21267 | as_fn_error $? "OpenGL Cocoa dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
21268 | fi | ||
21269 | |||
21270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenGL Cocoa rendering backend will be built" >&5 | ||
21271 | $as_echo_n "checking whether OpenGL Cocoa rendering backend will be built... " >&6; } | ||
21272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
21273 | $as_echo "${have_engine}" >&6; } | ||
21274 | |||
21275 | if test "x${have_engine}" = "xyes" ; then | ||
21276 | if test "x${want_engine}" = "xstatic" ; then | ||
21277 | have_evas_engine_gl_cocoa="static" | ||
21278 | want_static_engine="yes" | ||
21279 | else | ||
21280 | have_evas_engine_gl_cocoa="yes" | ||
21281 | fi | ||
21282 | fi | ||
21283 | |||
21284 | if test "x${have_engine}" = "xyes" ; then | ||
21285 | |||
21286 | $as_echo "#define BUILD_ENGINE_GL_COCOA 1" >>confdefs.h | ||
21287 | |||
21288 | fi | ||
21289 | |||
21290 | if test "x${have_engine}" = "xyes"; then | ||
21291 | BUILD_ENGINE_GL_COCOA_TRUE= | ||
21292 | BUILD_ENGINE_GL_COCOA_FALSE='#' | ||
21293 | else | ||
21294 | BUILD_ENGINE_GL_COCOA_TRUE='#' | ||
21295 | BUILD_ENGINE_GL_COCOA_FALSE= | ||
21296 | fi | ||
21297 | |||
21298 | |||
21299 | if test "x${want_static_engine}" = "xyes" ; then | ||
21300 | |||
21301 | $as_echo "#define EVAS_STATIC_BUILD_GL_COCOA 1" >>confdefs.h | ||
21302 | |||
21303 | have_static_module="yes" | ||
21304 | fi | ||
21305 | |||
21306 | if test "x${want_static_engine}" = "xyes"; then | ||
21307 | EVAS_STATIC_BUILD_GL_COCOA_TRUE= | ||
21308 | EVAS_STATIC_BUILD_GL_COCOA_FALSE='#' | ||
21309 | else | ||
21310 | EVAS_STATIC_BUILD_GL_COCOA_TRUE='#' | ||
21311 | EVAS_STATIC_BUILD_GL_COCOA_FALSE= | ||
21312 | fi | ||
21313 | |||
21314 | |||
21315 | |||
21316 | |||
21317 | |||
21318 | |||
21319 | |||
21320 | |||
21321 | |||
21322 | |||
21323 | want_engine="${want_evas_engine_fb}" | ||
21324 | want_static_engine="no" | ||
21325 | have_engine="no" | ||
21326 | have_evas_engine_fb="no" | ||
21327 | |||
21328 | # Check whether --enable-fb was given. | ||
21329 | if test "${enable_fb+set}" = set; then : | ||
21330 | enableval=$enable_fb; | ||
21331 | if test "x${enableval}" = "xyes" ; then | ||
21332 | want_engine="yes" | ||
21333 | else | ||
21334 | if test "x${enableval}" = "xstatic" ; then | ||
21335 | want_engine="static" | ||
21336 | else | ||
21337 | want_engine="no" | ||
21338 | fi | ||
21339 | fi | ||
21340 | |||
21341 | fi | ||
21342 | |||
21343 | |||
21344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Framebuffer rendering backend" >&5 | ||
21345 | $as_echo_n "checking whether to enable Framebuffer rendering backend... " >&6; } | ||
21346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
21347 | $as_echo "${want_engine}" >&6; } | ||
21348 | |||
21349 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
21350 | |||
21351 | |||
21352 | have_dep="no" | ||
21353 | evas_engine_fb_cflags="" | ||
21354 | evas_engine_fb_libs="" | ||
21355 | |||
21356 | ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default" | ||
21357 | if test "x$ac_cv_header_linux_fb_h" = x""yes; then : | ||
21358 | have_dep="yes" | ||
21359 | fi | ||
21360 | |||
21361 | |||
21362 | |||
21363 | |||
21364 | |||
21365 | |||
21366 | if test "x${have_dep}" = "xyes" ; then | ||
21367 | have_engine="yes" | ||
21368 | else | ||
21369 | have_engine="no" | ||
21370 | fi | ||
21371 | |||
21372 | |||
21373 | fi | ||
21374 | |||
21375 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
21376 | as_fn_error $? "Framebuffer dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
21377 | fi | ||
21378 | |||
21379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Framebuffer rendering backend will be built" >&5 | ||
21380 | $as_echo_n "checking whether Framebuffer rendering backend will be built... " >&6; } | ||
21381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
21382 | $as_echo "${have_engine}" >&6; } | ||
21383 | |||
21384 | if test "x${have_engine}" = "xyes" ; then | ||
21385 | if test "x${want_engine}" = "xstatic" ; then | ||
21386 | have_evas_engine_fb="static" | ||
21387 | want_static_engine="yes" | ||
21388 | else | ||
21389 | have_evas_engine_fb="yes" | ||
21390 | fi | ||
21391 | fi | ||
21392 | |||
21393 | if test "x${have_engine}" = "xyes" ; then | ||
21394 | |||
21395 | $as_echo "#define BUILD_ENGINE_FB 1" >>confdefs.h | ||
21396 | |||
21397 | fi | ||
21398 | |||
21399 | if test "x${have_engine}" = "xyes"; then | ||
21400 | BUILD_ENGINE_FB_TRUE= | ||
21401 | BUILD_ENGINE_FB_FALSE='#' | ||
21402 | else | ||
21403 | BUILD_ENGINE_FB_TRUE='#' | ||
21404 | BUILD_ENGINE_FB_FALSE= | ||
21405 | fi | ||
21406 | |||
21407 | |||
21408 | if test "x${want_static_engine}" = "xyes" ; then | ||
21409 | |||
21410 | $as_echo "#define EVAS_STATIC_BUILD_FB 1" >>confdefs.h | ||
21411 | |||
21412 | have_static_module="yes" | ||
21413 | fi | ||
21414 | |||
21415 | if test "x${want_static_engine}" = "xyes"; then | ||
21416 | EVAS_STATIC_BUILD_FB_TRUE= | ||
21417 | EVAS_STATIC_BUILD_FB_FALSE='#' | ||
21418 | else | ||
21419 | EVAS_STATIC_BUILD_FB_TRUE='#' | ||
21420 | EVAS_STATIC_BUILD_FB_FALSE= | ||
21421 | fi | ||
21422 | |||
21423 | |||
21424 | |||
21425 | |||
21426 | |||
21427 | |||
21428 | |||
21429 | |||
21430 | |||
21431 | |||
21432 | want_engine="${want_evas_engine_directfb}" | ||
21433 | want_static_engine="no" | ||
21434 | have_engine="no" | ||
21435 | have_evas_engine_directfb="no" | ||
21436 | |||
21437 | # Check whether --enable-directfb was given. | ||
21438 | if test "${enable_directfb+set}" = set; then : | ||
21439 | enableval=$enable_directfb; | ||
21440 | if test "x${enableval}" = "xyes" ; then | ||
21441 | want_engine="yes" | ||
21442 | else | ||
21443 | if test "x${enableval}" = "xstatic" ; then | ||
21444 | want_engine="static" | ||
21445 | else | ||
21446 | want_engine="no" | ||
21447 | fi | ||
21448 | fi | ||
21449 | |||
21450 | fi | ||
21451 | |||
21452 | |||
21453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DirectFB rendering backend" >&5 | ||
21454 | $as_echo_n "checking whether to enable DirectFB rendering backend... " >&6; } | ||
21455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
21456 | $as_echo "${want_engine}" >&6; } | ||
21457 | |||
21458 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
21459 | |||
21460 | |||
21461 | requirement="" | ||
21462 | have_dep="no" | ||
21463 | evas_engine_directfb_cflags="" | ||
21464 | evas_engine_directfb_libs="" | ||
21465 | |||
21466 | |||
21467 | pkg_failed=no | ||
21468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRECTFB" >&5 | ||
21469 | $as_echo_n "checking for DIRECTFB... " >&6; } | ||
21470 | |||
21471 | if test -n "$DIRECTFB_CFLAGS"; then | ||
21472 | pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS" | ||
21473 | elif test -n "$PKG_CONFIG"; then | ||
21474 | if test -n "$PKG_CONFIG" && \ | ||
21475 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.16\""; } >&5 | ||
21476 | ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.16") 2>&5 | ||
21477 | ac_status=$? | ||
21478 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21479 | test $ac_status = 0; }; then | ||
21480 | pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.16" 2>/dev/null` | ||
21481 | else | ||
21482 | pkg_failed=yes | ||
21483 | fi | ||
21484 | else | ||
21485 | pkg_failed=untried | ||
21486 | fi | ||
21487 | if test -n "$DIRECTFB_LIBS"; then | ||
21488 | pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS" | ||
21489 | elif test -n "$PKG_CONFIG"; then | ||
21490 | if test -n "$PKG_CONFIG" && \ | ||
21491 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.16\""; } >&5 | ||
21492 | ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.16") 2>&5 | ||
21493 | ac_status=$? | ||
21494 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21495 | test $ac_status = 0; }; then | ||
21496 | pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.16" 2>/dev/null` | ||
21497 | else | ||
21498 | pkg_failed=yes | ||
21499 | fi | ||
21500 | else | ||
21501 | pkg_failed=untried | ||
21502 | fi | ||
21503 | |||
21504 | |||
21505 | |||
21506 | if test $pkg_failed = yes; then | ||
21507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21508 | $as_echo "no" >&6; } | ||
21509 | |||
21510 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
21511 | _pkg_short_errors_supported=yes | ||
21512 | else | ||
21513 | _pkg_short_errors_supported=no | ||
21514 | fi | ||
21515 | if test $_pkg_short_errors_supported = yes; then | ||
21516 | DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "directfb >= 0.9.16" 2>&1` | ||
21517 | else | ||
21518 | DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors "directfb >= 0.9.16" 2>&1` | ||
21519 | fi | ||
21520 | # Put the nasty error message in config.log where it belongs | ||
21521 | echo "$DIRECTFB_PKG_ERRORS" >&5 | ||
21522 | |||
21523 | as_fn_error $? "Package requirements (directfb >= 0.9.16) were not met: | ||
21524 | |||
21525 | $DIRECTFB_PKG_ERRORS | ||
21526 | |||
21527 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
21528 | installed software in a non-standard prefix. | ||
21529 | |||
21530 | Alternatively, you may set the environment variables DIRECTFB_CFLAGS | ||
21531 | and DIRECTFB_LIBS to avoid the need to call pkg-config. | ||
21532 | See the pkg-config man page for more details." "$LINENO" 5 | ||
21533 | elif test $pkg_failed = untried; then | ||
21534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21535 | $as_echo "no" >&6; } | ||
21536 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
21537 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
21538 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
21539 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
21540 | path to pkg-config. | ||
21541 | |||
21542 | Alternatively, you may set the environment variables DIRECTFB_CFLAGS | ||
21543 | and DIRECTFB_LIBS to avoid the need to call pkg-config. | ||
21544 | See the pkg-config man page for more details. | ||
21545 | |||
21546 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
21547 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
21548 | else | ||
21549 | DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS | ||
21550 | DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS | ||
21551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
21552 | $as_echo "yes" >&6; } | ||
21553 | |||
21554 | have_dep="yes" | ||
21555 | requirement="directfb" | ||
21556 | evas_engine_directfb_cflags="${DIRECTFB_CFLAGS}" | ||
21557 | evas_engine_directfb_libs="${DIRECTFB_LIBS}" | ||
21558 | |||
21559 | |||
21560 | fi | ||
21561 | |||
21562 | |||
21563 | |||
21564 | |||
21565 | if test "x${want_engine}" = "xstatic" ; then | ||
21566 | requirement_evas="${requirement} ${requirement_evas}" | ||
21567 | fi | ||
21568 | |||
21569 | if test "x${have_dep}" = "xyes" ; then | ||
21570 | have_engine="yes" | ||
21571 | else | ||
21572 | have_engine="no" | ||
21573 | fi | ||
21574 | |||
21575 | |||
21576 | fi | ||
21577 | |||
21578 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
21579 | as_fn_error $? "DirectFB dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
21580 | fi | ||
21581 | |||
21582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DirectFB rendering backend will be built" >&5 | ||
21583 | $as_echo_n "checking whether DirectFB rendering backend will be built... " >&6; } | ||
21584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
21585 | $as_echo "${have_engine}" >&6; } | ||
21586 | |||
21587 | if test "x${have_engine}" = "xyes" ; then | ||
21588 | if test "x${want_engine}" = "xstatic" ; then | ||
21589 | have_evas_engine_directfb="static" | ||
21590 | want_static_engine="yes" | ||
21591 | else | ||
21592 | have_evas_engine_directfb="yes" | ||
21593 | fi | ||
21594 | fi | ||
21595 | |||
21596 | if test "x${have_engine}" = "xyes" ; then | ||
21597 | |||
21598 | $as_echo "#define BUILD_ENGINE_DIRECTFB 1" >>confdefs.h | ||
21599 | |||
21600 | fi | ||
21601 | |||
21602 | if test "x${have_engine}" = "xyes"; then | ||
21603 | BUILD_ENGINE_DIRECTFB_TRUE= | ||
21604 | BUILD_ENGINE_DIRECTFB_FALSE='#' | ||
21605 | else | ||
21606 | BUILD_ENGINE_DIRECTFB_TRUE='#' | ||
21607 | BUILD_ENGINE_DIRECTFB_FALSE= | ||
21608 | fi | ||
21609 | |||
21610 | |||
21611 | if test "x${want_static_engine}" = "xyes" ; then | ||
21612 | |||
21613 | $as_echo "#define EVAS_STATIC_BUILD_DIRECTFB 1" >>confdefs.h | ||
21614 | |||
21615 | have_static_module="yes" | ||
21616 | fi | ||
21617 | |||
21618 | if test "x${want_static_engine}" = "xyes"; then | ||
21619 | EVAS_STATIC_BUILD_DIRECTFB_TRUE= | ||
21620 | EVAS_STATIC_BUILD_DIRECTFB_FALSE='#' | ||
21621 | else | ||
21622 | EVAS_STATIC_BUILD_DIRECTFB_TRUE='#' | ||
21623 | EVAS_STATIC_BUILD_DIRECTFB_FALSE= | ||
21624 | fi | ||
21625 | |||
21626 | |||
21627 | |||
21628 | |||
21629 | |||
21630 | |||
21631 | |||
21632 | |||
21633 | |||
21634 | |||
21635 | want_engine="${want_evas_engine_software_8_x11}" | ||
21636 | want_static_engine="no" | ||
21637 | have_engine="no" | ||
21638 | have_evas_engine_software_8_x11="no" | ||
21639 | |||
21640 | # Check whether --enable-software-8-x11 was given. | ||
21641 | if test "${enable_software_8_x11+set}" = set; then : | ||
21642 | enableval=$enable_software_8_x11; | ||
21643 | if test "x${enableval}" = "xyes" ; then | ||
21644 | want_engine="yes" | ||
21645 | else | ||
21646 | if test "x${enableval}" = "xstatic" ; then | ||
21647 | want_engine="static" | ||
21648 | else | ||
21649 | want_engine="no" | ||
21650 | fi | ||
21651 | fi | ||
21652 | |||
21653 | fi | ||
21654 | |||
21655 | |||
21656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Software X11 8 bits grayscale rendering backend" >&5 | ||
21657 | $as_echo_n "checking whether to enable Software X11 8 bits grayscale rendering backend... " >&6; } | ||
21658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
21659 | $as_echo "${want_engine}" >&6; } | ||
21660 | |||
21661 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
21662 | |||
21663 | |||
21664 | have_dep="no" | ||
21665 | evas_engine_software_8_x11_cflags="" | ||
21666 | evas_engine_software_8_x11_libs="" | ||
21667 | |||
21668 | |||
21669 | pkg_failed=no | ||
21670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB" >&5 | ||
21671 | $as_echo_n "checking for XCB... " >&6; } | ||
21672 | |||
21673 | if test -n "$XCB_CFLAGS"; then | ||
21674 | pkg_cv_XCB_CFLAGS="$XCB_CFLAGS" | ||
21675 | elif test -n "$PKG_CONFIG"; then | ||
21676 | if test -n "$PKG_CONFIG" && \ | ||
21677 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb xcb-shm xcb-image >= 0.2.1 pixman-1\""; } >&5 | ||
21678 | ($PKG_CONFIG --exists --print-errors "xcb xcb-shm xcb-image >= 0.2.1 pixman-1") 2>&5 | ||
21679 | ac_status=$? | ||
21680 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21681 | test $ac_status = 0; }; then | ||
21682 | pkg_cv_XCB_CFLAGS=`$PKG_CONFIG --cflags "xcb xcb-shm xcb-image >= 0.2.1 pixman-1" 2>/dev/null` | ||
21683 | else | ||
21684 | pkg_failed=yes | ||
21685 | fi | ||
21686 | else | ||
21687 | pkg_failed=untried | ||
21688 | fi | ||
21689 | if test -n "$XCB_LIBS"; then | ||
21690 | pkg_cv_XCB_LIBS="$XCB_LIBS" | ||
21691 | elif test -n "$PKG_CONFIG"; then | ||
21692 | if test -n "$PKG_CONFIG" && \ | ||
21693 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb xcb-shm xcb-image >= 0.2.1 pixman-1\""; } >&5 | ||
21694 | ($PKG_CONFIG --exists --print-errors "xcb xcb-shm xcb-image >= 0.2.1 pixman-1") 2>&5 | ||
21695 | ac_status=$? | ||
21696 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
21697 | test $ac_status = 0; }; then | ||
21698 | pkg_cv_XCB_LIBS=`$PKG_CONFIG --libs "xcb xcb-shm xcb-image >= 0.2.1 pixman-1" 2>/dev/null` | ||
21699 | else | ||
21700 | pkg_failed=yes | ||
21701 | fi | ||
21702 | else | ||
21703 | pkg_failed=untried | ||
21704 | fi | ||
21705 | |||
21706 | |||
21707 | |||
21708 | if test $pkg_failed = yes; then | ||
21709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21710 | $as_echo "no" >&6; } | ||
21711 | |||
21712 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
21713 | _pkg_short_errors_supported=yes | ||
21714 | else | ||
21715 | _pkg_short_errors_supported=no | ||
21716 | fi | ||
21717 | if test $_pkg_short_errors_supported = yes; then | ||
21718 | XCB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb xcb-shm xcb-image >= 0.2.1 pixman-1" 2>&1` | ||
21719 | else | ||
21720 | XCB_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb xcb-shm xcb-image >= 0.2.1 pixman-1" 2>&1` | ||
21721 | fi | ||
21722 | # Put the nasty error message in config.log where it belongs | ||
21723 | echo "$XCB_PKG_ERRORS" >&5 | ||
21724 | |||
21725 | |||
21726 | have_dep="no" | ||
21727 | |||
21728 | |||
21729 | elif test $pkg_failed = untried; then | ||
21730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
21731 | $as_echo "no" >&6; } | ||
21732 | |||
21733 | have_dep="no" | ||
21734 | |||
21735 | |||
21736 | else | ||
21737 | XCB_CFLAGS=$pkg_cv_XCB_CFLAGS | ||
21738 | XCB_LIBS=$pkg_cv_XCB_LIBS | ||
21739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
21740 | $as_echo "yes" >&6; } | ||
21741 | |||
21742 | have_dep="yes" | ||
21743 | requirement="xcb xcb-shm xcb-image pixman-1" | ||
21744 | evas_engine_software_8_x11_cflags="${XCB_CFLAGS}" | ||
21745 | evas_engine_software_8_x11_libs="${XCB_LIBS}" | ||
21746 | |||
21747 | fi | ||
21748 | |||
21749 | |||
21750 | |||
21751 | |||
21752 | if test "x${want_engine}" = "xstatic" ; then | ||
21753 | requirement_evas="${requirement} ${requirement_evas}" | ||
21754 | fi | ||
21755 | |||
21756 | if test "x${have_dep}" = "xyes" ; then | ||
21757 | have_engine="yes" | ||
21758 | else | ||
21759 | have_engine="no" | ||
21760 | fi | ||
21761 | |||
21762 | |||
21763 | fi | ||
21764 | |||
21765 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
21766 | as_fn_error $? "Software X11 8 bits grayscale dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
21767 | fi | ||
21768 | |||
21769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Software X11 8 bits grayscale rendering backend will be built" >&5 | ||
21770 | $as_echo_n "checking whether Software X11 8 bits grayscale rendering backend will be built... " >&6; } | ||
21771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
21772 | $as_echo "${have_engine}" >&6; } | ||
21773 | |||
21774 | if test "x${have_engine}" = "xyes" ; then | ||
21775 | if test "x${want_engine}" = "xstatic" ; then | ||
21776 | have_evas_engine_software_8_x11="static" | ||
21777 | want_static_engine="yes" | ||
21778 | else | ||
21779 | have_evas_engine_software_8_x11="yes" | ||
21780 | fi | ||
21781 | fi | ||
21782 | |||
21783 | if test "x${have_engine}" = "xyes" ; then | ||
21784 | |||
21785 | $as_echo "#define BUILD_ENGINE_SOFTWARE_8_X11 1" >>confdefs.h | ||
21786 | |||
21787 | fi | ||
21788 | |||
21789 | if test "x${have_engine}" = "xyes"; then | ||
21790 | BUILD_ENGINE_SOFTWARE_8_X11_TRUE= | ||
21791 | BUILD_ENGINE_SOFTWARE_8_X11_FALSE='#' | ||
21792 | else | ||
21793 | BUILD_ENGINE_SOFTWARE_8_X11_TRUE='#' | ||
21794 | BUILD_ENGINE_SOFTWARE_8_X11_FALSE= | ||
21795 | fi | ||
21796 | |||
21797 | |||
21798 | if test "x${want_static_engine}" = "xyes" ; then | ||
21799 | |||
21800 | $as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_8_X11 1" >>confdefs.h | ||
21801 | |||
21802 | have_static_module="yes" | ||
21803 | fi | ||
21804 | |||
21805 | if test "x${want_static_engine}" = "xyes"; then | ||
21806 | EVAS_STATIC_BUILD_SOFTWARE_8_X11_TRUE= | ||
21807 | EVAS_STATIC_BUILD_SOFTWARE_8_X11_FALSE='#' | ||
21808 | else | ||
21809 | EVAS_STATIC_BUILD_SOFTWARE_8_X11_TRUE='#' | ||
21810 | EVAS_STATIC_BUILD_SOFTWARE_8_X11_FALSE= | ||
21811 | fi | ||
21812 | |||
21813 | |||
21814 | |||
21815 | |||
21816 | |||
21817 | |||
21818 | |||
21819 | |||
21820 | |||
21821 | |||
21822 | want_engine="${want_evas_engine_software_16_x11}" | ||
21823 | want_static_engine="no" | ||
21824 | have_engine="no" | ||
21825 | have_evas_engine_software_16_x11="no" | ||
21826 | |||
21827 | # Check whether --enable-software-16-x11 was given. | ||
21828 | if test "${enable_software_16_x11+set}" = set; then : | ||
21829 | enableval=$enable_software_16_x11; | ||
21830 | if test "x${enableval}" = "xyes" ; then | ||
21831 | want_engine="yes" | ||
21832 | else | ||
21833 | if test "x${enableval}" = "xstatic" ; then | ||
21834 | want_engine="static" | ||
21835 | else | ||
21836 | want_engine="no" | ||
21837 | fi | ||
21838 | fi | ||
21839 | |||
21840 | fi | ||
21841 | |||
21842 | |||
21843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Software X11 16 bits rendering backend" >&5 | ||
21844 | $as_echo_n "checking whether to enable Software X11 16 bits rendering backend... " >&6; } | ||
21845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
21846 | $as_echo "${want_engine}" >&6; } | ||
21847 | |||
21848 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
21849 | |||
21850 | |||
21851 | have_dep="no" | ||
21852 | evas_engine_software_16_x11_cflags="" | ||
21853 | evas_engine_software_16_x11_libs="" | ||
21854 | |||
21855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 | ||
21856 | $as_echo_n "checking for X... " >&6; } | ||
21857 | |||
21858 | |||
21859 | # Check whether --with-x was given. | ||
21860 | if test "${with_x+set}" = set; then : | ||
21861 | withval=$with_x; | ||
21862 | fi | ||
21863 | |||
21864 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | ||
21865 | if test "x$with_x" = xno; then | ||
21866 | # The user explicitly disabled X. | ||
21867 | have_x=disabled | ||
21868 | else | ||
21869 | case $x_includes,$x_libraries in #( | ||
21870 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #( | ||
21871 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : | ||
21872 | $as_echo_n "(cached) " >&6 | ||
21873 | else | ||
21874 | # One or both of the vars are not set, and there is no cached value. | ||
21875 | ac_x_includes=no ac_x_libraries=no | ||
21876 | rm -f -r conftest.dir | ||
21877 | if mkdir conftest.dir; then | ||
21878 | cd conftest.dir | ||
21879 | cat >Imakefile <<'_ACEOF' | ||
21880 | incroot: | ||
21881 | @echo incroot='${INCROOT}' | ||
21882 | usrlibdir: | ||
21883 | @echo usrlibdir='${USRLIBDIR}' | ||
21884 | libdir: | ||
21885 | @echo libdir='${LIBDIR}' | ||
21886 | _ACEOF | ||
21887 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | ||
21888 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | ||
21889 | for ac_var in incroot usrlibdir libdir; do | ||
21890 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | ||
21891 | done | ||
21892 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | ||
21893 | for ac_extension in a so sl dylib la dll; do | ||
21894 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && | ||
21895 | test -f "$ac_im_libdir/libX11.$ac_extension"; then | ||
21896 | ac_im_usrlibdir=$ac_im_libdir; break | ||
21897 | fi | ||
21898 | done | ||
21899 | # Screen out bogus values from the imake configuration. They are | ||
21900 | # bogus both because they are the default anyway, and because | ||
21901 | # using them would break gcc on systems where it needs fixed includes. | ||
21902 | case $ac_im_incroot in | ||
21903 | /usr/include) ac_x_includes= ;; | ||
21904 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | ||
21905 | esac | ||
21906 | case $ac_im_usrlibdir in | ||
21907 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; | ||
21908 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | ||
21909 | esac | ||
21910 | fi | ||
21911 | cd .. | ||
21912 | rm -f -r conftest.dir | ||
21913 | fi | ||
21914 | |||
21915 | # Standard set of common directories for X headers. | ||
21916 | # Check X11 before X11Rn because it is often a symlink to the current release. | ||
21917 | ac_x_header_dirs=' | ||
21918 | /usr/X11/include | ||
21919 | /usr/X11R7/include | ||
21920 | /usr/X11R6/include | ||
21921 | /usr/X11R5/include | ||
21922 | /usr/X11R4/include | ||
21923 | |||
21924 | /usr/include/X11 | ||
21925 | /usr/include/X11R7 | ||
21926 | /usr/include/X11R6 | ||
21927 | /usr/include/X11R5 | ||
21928 | /usr/include/X11R4 | ||
21929 | |||
21930 | /usr/local/X11/include | ||
21931 | /usr/local/X11R7/include | ||
21932 | /usr/local/X11R6/include | ||
21933 | /usr/local/X11R5/include | ||
21934 | /usr/local/X11R4/include | ||
21935 | |||
21936 | /usr/local/include/X11 | ||
21937 | /usr/local/include/X11R7 | ||
21938 | /usr/local/include/X11R6 | ||
21939 | /usr/local/include/X11R5 | ||
21940 | /usr/local/include/X11R4 | ||
21941 | |||
21942 | /usr/X386/include | ||
21943 | /usr/x386/include | ||
21944 | /usr/XFree86/include/X11 | ||
21945 | |||
21946 | /usr/include | ||
21947 | /usr/local/include | ||
21948 | /usr/unsupported/include | ||
21949 | /usr/athena/include | ||
21950 | /usr/local/x11r5/include | ||
21951 | /usr/lpp/Xamples/include | ||
21952 | |||
21953 | /usr/openwin/include | ||
21954 | /usr/openwin/share/include' | ||
21955 | |||
21956 | if test "$ac_x_includes" = no; then | ||
21957 | # Guess where to find include files, by looking for Xlib.h. | ||
21958 | # First, try using that file with no special directory specified. | ||
21959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
21960 | /* end confdefs.h. */ | ||
21961 | #include <X11/Xlib.h> | ||
21962 | _ACEOF | ||
21963 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
21964 | # We can compile using X headers with no special include directory. | ||
21965 | ac_x_includes= | ||
21966 | else | ||
21967 | for ac_dir in $ac_x_header_dirs; do | ||
21968 | if test -r "$ac_dir/X11/Xlib.h"; then | ||
21969 | ac_x_includes=$ac_dir | ||
21970 | break | ||
21971 | fi | ||
21972 | done | ||
21973 | fi | ||
21974 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
21975 | fi # $ac_x_includes = no | ||
21976 | |||
21977 | if test "$ac_x_libraries" = no; then | ||
21978 | # Check for the libraries. | ||
21979 | # See if we find them without any special options. | ||
21980 | # Don't add to $LIBS permanently. | ||
21981 | ac_save_LIBS=$LIBS | ||
21982 | LIBS="-lX11 $LIBS" | ||
21983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
21984 | /* end confdefs.h. */ | ||
21985 | #include <X11/Xlib.h> | ||
21986 | int | ||
21987 | main () | ||
21988 | { | ||
21989 | XrmInitialize () | ||
21990 | ; | ||
21991 | return 0; | ||
21992 | } | ||
21993 | _ACEOF | ||
21994 | if ac_fn_c_try_link "$LINENO"; then : | ||
21995 | LIBS=$ac_save_LIBS | ||
21996 | # We can link X programs with no special library path. | ||
21997 | ac_x_libraries= | ||
21998 | else | ||
21999 | LIBS=$ac_save_LIBS | ||
22000 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | ||
22001 | do | ||
22002 | # Don't even attempt the hair of trying to link an X program! | ||
22003 | for ac_extension in a so sl dylib la dll; do | ||
22004 | if test -r "$ac_dir/libX11.$ac_extension"; then | ||
22005 | ac_x_libraries=$ac_dir | ||
22006 | break 2 | ||
22007 | fi | ||
22008 | done | ||
22009 | done | ||
22010 | fi | ||
22011 | rm -f core conftest.err conftest.$ac_objext \ | ||
22012 | conftest$ac_exeext conftest.$ac_ext | ||
22013 | fi # $ac_x_libraries = no | ||
22014 | |||
22015 | case $ac_x_includes,$ac_x_libraries in #( | ||
22016 | no,* | *,no | *\'*) | ||
22017 | # Didn't find X, or a directory has "'" in its name. | ||
22018 | ac_cv_have_x="have_x=no";; #( | ||
22019 | *) | ||
22020 | # Record where we found X for the cache. | ||
22021 | ac_cv_have_x="have_x=yes\ | ||
22022 | ac_x_includes='$ac_x_includes'\ | ||
22023 | ac_x_libraries='$ac_x_libraries'" | ||
22024 | esac | ||
22025 | fi | ||
22026 | ;; #( | ||
22027 | *) have_x=yes;; | ||
22028 | esac | ||
22029 | eval "$ac_cv_have_x" | ||
22030 | fi # $with_x != no | ||
22031 | |||
22032 | if test "$have_x" != yes; then | ||
22033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 | ||
22034 | $as_echo "$have_x" >&6; } | ||
22035 | no_x=yes | ||
22036 | else | ||
22037 | # If each of the values was on the command line, it overrides each guess. | ||
22038 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | ||
22039 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | ||
22040 | # Update the cache value to reflect the command line values. | ||
22041 | ac_cv_have_x="have_x=yes\ | ||
22042 | ac_x_includes='$x_includes'\ | ||
22043 | ac_x_libraries='$x_libraries'" | ||
22044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 | ||
22045 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } | ||
22046 | fi | ||
22047 | |||
22048 | if test "$no_x" = yes; then | ||
22049 | # Not all programs may use this symbol, but it does not hurt to define it. | ||
22050 | |||
22051 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h | ||
22052 | |||
22053 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | ||
22054 | else | ||
22055 | if test -n "$x_includes"; then | ||
22056 | X_CFLAGS="$X_CFLAGS -I$x_includes" | ||
22057 | fi | ||
22058 | |||
22059 | # It would also be nice to do this for all -L options, not just this one. | ||
22060 | if test -n "$x_libraries"; then | ||
22061 | X_LIBS="$X_LIBS -L$x_libraries" | ||
22062 | # For Solaris; some versions of Sun CC require a space after -R and | ||
22063 | # others require no space. Words are not sufficient . . . . | ||
22064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 | ||
22065 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } | ||
22066 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | ||
22067 | ac_xsave_c_werror_flag=$ac_c_werror_flag | ||
22068 | ac_c_werror_flag=yes | ||
22069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22070 | /* end confdefs.h. */ | ||
22071 | |||
22072 | int | ||
22073 | main () | ||
22074 | { | ||
22075 | |||
22076 | ; | ||
22077 | return 0; | ||
22078 | } | ||
22079 | _ACEOF | ||
22080 | if ac_fn_c_try_link "$LINENO"; then : | ||
22081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
22082 | $as_echo "no" >&6; } | ||
22083 | X_LIBS="$X_LIBS -R$x_libraries" | ||
22084 | else | ||
22085 | LIBS="$ac_xsave_LIBS -R $x_libraries" | ||
22086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22087 | /* end confdefs.h. */ | ||
22088 | |||
22089 | int | ||
22090 | main () | ||
22091 | { | ||
22092 | |||
22093 | ; | ||
22094 | return 0; | ||
22095 | } | ||
22096 | _ACEOF | ||
22097 | if ac_fn_c_try_link "$LINENO"; then : | ||
22098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
22099 | $as_echo "yes" >&6; } | ||
22100 | X_LIBS="$X_LIBS -R $x_libraries" | ||
22101 | else | ||
22102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 | ||
22103 | $as_echo "neither works" >&6; } | ||
22104 | fi | ||
22105 | rm -f core conftest.err conftest.$ac_objext \ | ||
22106 | conftest$ac_exeext conftest.$ac_ext | ||
22107 | fi | ||
22108 | rm -f core conftest.err conftest.$ac_objext \ | ||
22109 | conftest$ac_exeext conftest.$ac_ext | ||
22110 | ac_c_werror_flag=$ac_xsave_c_werror_flag | ||
22111 | LIBS=$ac_xsave_LIBS | ||
22112 | fi | ||
22113 | |||
22114 | # Check for system-dependent libraries X programs must link with. | ||
22115 | # Do this before checking for the system-independent R6 libraries | ||
22116 | # (-lICE), since we may need -lsocket or whatever for X linking. | ||
22117 | |||
22118 | if test "$ISC" = yes; then | ||
22119 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | ||
22120 | else | ||
22121 | # Martyn Johnson says this is needed for Ultrix, if the X | ||
22122 | # libraries were built with DECnet support. And Karl Berry says | ||
22123 | # the Alpha needs dnet_stub (dnet does not exist). | ||
22124 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | ||
22125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22126 | /* end confdefs.h. */ | ||
22127 | |||
22128 | /* Override any GCC internal prototype to avoid an error. | ||
22129 | Use char because int might match the return type of a GCC | ||
22130 | builtin and then its argument prototype would still apply. */ | ||
22131 | #ifdef __cplusplus | ||
22132 | extern "C" | ||
22133 | #endif | ||
22134 | char XOpenDisplay (); | ||
22135 | int | ||
22136 | main () | ||
22137 | { | ||
22138 | return XOpenDisplay (); | ||
22139 | ; | ||
22140 | return 0; | ||
22141 | } | ||
22142 | _ACEOF | ||
22143 | if ac_fn_c_try_link "$LINENO"; then : | ||
22144 | |||
22145 | else | ||
22146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 | ||
22147 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } | ||
22148 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : | ||
22149 | $as_echo_n "(cached) " >&6 | ||
22150 | else | ||
22151 | ac_check_lib_save_LIBS=$LIBS | ||
22152 | LIBS="-ldnet $LIBS" | ||
22153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22154 | /* end confdefs.h. */ | ||
22155 | |||
22156 | /* Override any GCC internal prototype to avoid an error. | ||
22157 | Use char because int might match the return type of a GCC | ||
22158 | builtin and then its argument prototype would still apply. */ | ||
22159 | #ifdef __cplusplus | ||
22160 | extern "C" | ||
22161 | #endif | ||
22162 | char dnet_ntoa (); | ||
22163 | int | ||
22164 | main () | ||
22165 | { | ||
22166 | return dnet_ntoa (); | ||
22167 | ; | ||
22168 | return 0; | ||
22169 | } | ||
22170 | _ACEOF | ||
22171 | if ac_fn_c_try_link "$LINENO"; then : | ||
22172 | ac_cv_lib_dnet_dnet_ntoa=yes | ||
22173 | else | ||
22174 | ac_cv_lib_dnet_dnet_ntoa=no | ||
22175 | fi | ||
22176 | rm -f core conftest.err conftest.$ac_objext \ | ||
22177 | conftest$ac_exeext conftest.$ac_ext | ||
22178 | LIBS=$ac_check_lib_save_LIBS | ||
22179 | fi | ||
22180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | ||
22181 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } | ||
22182 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : | ||
22183 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | ||
22184 | fi | ||
22185 | |||
22186 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | ||
22187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 | ||
22188 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } | ||
22189 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : | ||
22190 | $as_echo_n "(cached) " >&6 | ||
22191 | else | ||
22192 | ac_check_lib_save_LIBS=$LIBS | ||
22193 | LIBS="-ldnet_stub $LIBS" | ||
22194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22195 | /* end confdefs.h. */ | ||
22196 | |||
22197 | /* Override any GCC internal prototype to avoid an error. | ||
22198 | Use char because int might match the return type of a GCC | ||
22199 | builtin and then its argument prototype would still apply. */ | ||
22200 | #ifdef __cplusplus | ||
22201 | extern "C" | ||
22202 | #endif | ||
22203 | char dnet_ntoa (); | ||
22204 | int | ||
22205 | main () | ||
22206 | { | ||
22207 | return dnet_ntoa (); | ||
22208 | ; | ||
22209 | return 0; | ||
22210 | } | ||
22211 | _ACEOF | ||
22212 | if ac_fn_c_try_link "$LINENO"; then : | ||
22213 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | ||
22214 | else | ||
22215 | ac_cv_lib_dnet_stub_dnet_ntoa=no | ||
22216 | fi | ||
22217 | rm -f core conftest.err conftest.$ac_objext \ | ||
22218 | conftest$ac_exeext conftest.$ac_ext | ||
22219 | LIBS=$ac_check_lib_save_LIBS | ||
22220 | fi | ||
22221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | ||
22222 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } | ||
22223 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then : | ||
22224 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | ||
22225 | fi | ||
22226 | |||
22227 | fi | ||
22228 | fi | ||
22229 | rm -f core conftest.err conftest.$ac_objext \ | ||
22230 | conftest$ac_exeext conftest.$ac_ext | ||
22231 | LIBS="$ac_xsave_LIBS" | ||
22232 | |||
22233 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | ||
22234 | # to get the SysV transport functions. | ||
22235 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | ||
22236 | # needs -lnsl. | ||
22237 | # The nsl library prevents programs from opening the X display | ||
22238 | # on Irix 5.2, according to T.E. Dickey. | ||
22239 | # The functions gethostbyname, getservbyname, and inet_addr are | ||
22240 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | ||
22241 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | ||
22242 | if test "x$ac_cv_func_gethostbyname" = x""yes; then : | ||
22243 | |||
22244 | fi | ||
22245 | |||
22246 | if test $ac_cv_func_gethostbyname = no; then | ||
22247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 | ||
22248 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } | ||
22249 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : | ||
22250 | $as_echo_n "(cached) " >&6 | ||
22251 | else | ||
22252 | ac_check_lib_save_LIBS=$LIBS | ||
22253 | LIBS="-lnsl $LIBS" | ||
22254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22255 | /* end confdefs.h. */ | ||
22256 | |||
22257 | /* Override any GCC internal prototype to avoid an error. | ||
22258 | Use char because int might match the return type of a GCC | ||
22259 | builtin and then its argument prototype would still apply. */ | ||
22260 | #ifdef __cplusplus | ||
22261 | extern "C" | ||
22262 | #endif | ||
22263 | char gethostbyname (); | ||
22264 | int | ||
22265 | main () | ||
22266 | { | ||
22267 | return gethostbyname (); | ||
22268 | ; | ||
22269 | return 0; | ||
22270 | } | ||
22271 | _ACEOF | ||
22272 | if ac_fn_c_try_link "$LINENO"; then : | ||
22273 | ac_cv_lib_nsl_gethostbyname=yes | ||
22274 | else | ||
22275 | ac_cv_lib_nsl_gethostbyname=no | ||
22276 | fi | ||
22277 | rm -f core conftest.err conftest.$ac_objext \ | ||
22278 | conftest$ac_exeext conftest.$ac_ext | ||
22279 | LIBS=$ac_check_lib_save_LIBS | ||
22280 | fi | ||
22281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 | ||
22282 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } | ||
22283 | if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : | ||
22284 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | ||
22285 | fi | ||
22286 | |||
22287 | if test $ac_cv_lib_nsl_gethostbyname = no; then | ||
22288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 | ||
22289 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } | ||
22290 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : | ||
22291 | $as_echo_n "(cached) " >&6 | ||
22292 | else | ||
22293 | ac_check_lib_save_LIBS=$LIBS | ||
22294 | LIBS="-lbsd $LIBS" | ||
22295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22296 | /* end confdefs.h. */ | ||
22297 | |||
22298 | /* Override any GCC internal prototype to avoid an error. | ||
22299 | Use char because int might match the return type of a GCC | ||
22300 | builtin and then its argument prototype would still apply. */ | ||
22301 | #ifdef __cplusplus | ||
22302 | extern "C" | ||
22303 | #endif | ||
22304 | char gethostbyname (); | ||
22305 | int | ||
22306 | main () | ||
22307 | { | ||
22308 | return gethostbyname (); | ||
22309 | ; | ||
22310 | return 0; | ||
22311 | } | ||
22312 | _ACEOF | ||
22313 | if ac_fn_c_try_link "$LINENO"; then : | ||
22314 | ac_cv_lib_bsd_gethostbyname=yes | ||
22315 | else | ||
22316 | ac_cv_lib_bsd_gethostbyname=no | ||
22317 | fi | ||
22318 | rm -f core conftest.err conftest.$ac_objext \ | ||
22319 | conftest$ac_exeext conftest.$ac_ext | ||
22320 | LIBS=$ac_check_lib_save_LIBS | ||
22321 | fi | ||
22322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 | ||
22323 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } | ||
22324 | if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : | ||
22325 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | ||
22326 | fi | ||
22327 | |||
22328 | fi | ||
22329 | fi | ||
22330 | |||
22331 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | ||
22332 | # socket/setsockopt and other routines are undefined under SCO ODT | ||
22333 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | ||
22334 | # on later versions), says Simon Leinen: it contains gethostby* | ||
22335 | # variants that don't use the name server (or something). -lsocket | ||
22336 | # must be given before -lnsl if both are needed. We assume that | ||
22337 | # if connect needs -lnsl, so does gethostbyname. | ||
22338 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" | ||
22339 | if test "x$ac_cv_func_connect" = x""yes; then : | ||
22340 | |||
22341 | fi | ||
22342 | |||
22343 | if test $ac_cv_func_connect = no; then | ||
22344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 | ||
22345 | $as_echo_n "checking for connect in -lsocket... " >&6; } | ||
22346 | if test "${ac_cv_lib_socket_connect+set}" = set; then : | ||
22347 | $as_echo_n "(cached) " >&6 | ||
22348 | else | ||
22349 | ac_check_lib_save_LIBS=$LIBS | ||
22350 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | ||
22351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22352 | /* end confdefs.h. */ | ||
22353 | |||
22354 | /* Override any GCC internal prototype to avoid an error. | ||
22355 | Use char because int might match the return type of a GCC | ||
22356 | builtin and then its argument prototype would still apply. */ | ||
22357 | #ifdef __cplusplus | ||
22358 | extern "C" | ||
22359 | #endif | ||
22360 | char connect (); | ||
22361 | int | ||
22362 | main () | ||
22363 | { | ||
22364 | return connect (); | ||
22365 | ; | ||
22366 | return 0; | ||
22367 | } | ||
22368 | _ACEOF | ||
22369 | if ac_fn_c_try_link "$LINENO"; then : | ||
22370 | ac_cv_lib_socket_connect=yes | ||
22371 | else | ||
22372 | ac_cv_lib_socket_connect=no | ||
22373 | fi | ||
22374 | rm -f core conftest.err conftest.$ac_objext \ | ||
22375 | conftest$ac_exeext conftest.$ac_ext | ||
22376 | LIBS=$ac_check_lib_save_LIBS | ||
22377 | fi | ||
22378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 | ||
22379 | $as_echo "$ac_cv_lib_socket_connect" >&6; } | ||
22380 | if test "x$ac_cv_lib_socket_connect" = x""yes; then : | ||
22381 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | ||
22382 | fi | ||
22383 | |||
22384 | fi | ||
22385 | |||
22386 | # Guillermo Gomez says -lposix is necessary on A/UX. | ||
22387 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" | ||
22388 | if test "x$ac_cv_func_remove" = x""yes; then : | ||
22389 | |||
22390 | fi | ||
22391 | |||
22392 | if test $ac_cv_func_remove = no; then | ||
22393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 | ||
22394 | $as_echo_n "checking for remove in -lposix... " >&6; } | ||
22395 | if test "${ac_cv_lib_posix_remove+set}" = set; then : | ||
22396 | $as_echo_n "(cached) " >&6 | ||
22397 | else | ||
22398 | ac_check_lib_save_LIBS=$LIBS | ||
22399 | LIBS="-lposix $LIBS" | ||
22400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22401 | /* end confdefs.h. */ | ||
22402 | |||
22403 | /* Override any GCC internal prototype to avoid an error. | ||
22404 | Use char because int might match the return type of a GCC | ||
22405 | builtin and then its argument prototype would still apply. */ | ||
22406 | #ifdef __cplusplus | ||
22407 | extern "C" | ||
22408 | #endif | ||
22409 | char remove (); | ||
22410 | int | ||
22411 | main () | ||
22412 | { | ||
22413 | return remove (); | ||
22414 | ; | ||
22415 | return 0; | ||
22416 | } | ||
22417 | _ACEOF | ||
22418 | if ac_fn_c_try_link "$LINENO"; then : | ||
22419 | ac_cv_lib_posix_remove=yes | ||
22420 | else | ||
22421 | ac_cv_lib_posix_remove=no | ||
22422 | fi | ||
22423 | rm -f core conftest.err conftest.$ac_objext \ | ||
22424 | conftest$ac_exeext conftest.$ac_ext | ||
22425 | LIBS=$ac_check_lib_save_LIBS | ||
22426 | fi | ||
22427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 | ||
22428 | $as_echo "$ac_cv_lib_posix_remove" >&6; } | ||
22429 | if test "x$ac_cv_lib_posix_remove" = x""yes; then : | ||
22430 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | ||
22431 | fi | ||
22432 | |||
22433 | fi | ||
22434 | |||
22435 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | ||
22436 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" | ||
22437 | if test "x$ac_cv_func_shmat" = x""yes; then : | ||
22438 | |||
22439 | fi | ||
22440 | |||
22441 | if test $ac_cv_func_shmat = no; then | ||
22442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 | ||
22443 | $as_echo_n "checking for shmat in -lipc... " >&6; } | ||
22444 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then : | ||
22445 | $as_echo_n "(cached) " >&6 | ||
22446 | else | ||
22447 | ac_check_lib_save_LIBS=$LIBS | ||
22448 | LIBS="-lipc $LIBS" | ||
22449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22450 | /* end confdefs.h. */ | ||
22451 | |||
22452 | /* Override any GCC internal prototype to avoid an error. | ||
22453 | Use char because int might match the return type of a GCC | ||
22454 | builtin and then its argument prototype would still apply. */ | ||
22455 | #ifdef __cplusplus | ||
22456 | extern "C" | ||
22457 | #endif | ||
22458 | char shmat (); | ||
22459 | int | ||
22460 | main () | ||
22461 | { | ||
22462 | return shmat (); | ||
22463 | ; | ||
22464 | return 0; | ||
22465 | } | ||
22466 | _ACEOF | ||
22467 | if ac_fn_c_try_link "$LINENO"; then : | ||
22468 | ac_cv_lib_ipc_shmat=yes | ||
22469 | else | ||
22470 | ac_cv_lib_ipc_shmat=no | ||
22471 | fi | ||
22472 | rm -f core conftest.err conftest.$ac_objext \ | ||
22473 | conftest$ac_exeext conftest.$ac_ext | ||
22474 | LIBS=$ac_check_lib_save_LIBS | ||
22475 | fi | ||
22476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 | ||
22477 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } | ||
22478 | if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : | ||
22479 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | ||
22480 | fi | ||
22481 | |||
22482 | fi | ||
22483 | fi | ||
22484 | |||
22485 | # Check for libraries that X11R6 Xt/Xaw programs need. | ||
22486 | ac_save_LDFLAGS=$LDFLAGS | ||
22487 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | ||
22488 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | ||
22489 | # check for ICE first), but we must link in the order -lSM -lICE or | ||
22490 | # we get undefined symbols. So assume we have SM if we have ICE. | ||
22491 | # These have to be linked with before -lX11, unlike the other | ||
22492 | # libraries we check for below, so use a different variable. | ||
22493 | # John Interrante, Karl Berry | ||
22494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 | ||
22495 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } | ||
22496 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : | ||
22497 | $as_echo_n "(cached) " >&6 | ||
22498 | else | ||
22499 | ac_check_lib_save_LIBS=$LIBS | ||
22500 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | ||
22501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22502 | /* end confdefs.h. */ | ||
22503 | |||
22504 | /* Override any GCC internal prototype to avoid an error. | ||
22505 | Use char because int might match the return type of a GCC | ||
22506 | builtin and then its argument prototype would still apply. */ | ||
22507 | #ifdef __cplusplus | ||
22508 | extern "C" | ||
22509 | #endif | ||
22510 | char IceConnectionNumber (); | ||
22511 | int | ||
22512 | main () | ||
22513 | { | ||
22514 | return IceConnectionNumber (); | ||
22515 | ; | ||
22516 | return 0; | ||
22517 | } | ||
22518 | _ACEOF | ||
22519 | if ac_fn_c_try_link "$LINENO"; then : | ||
22520 | ac_cv_lib_ICE_IceConnectionNumber=yes | ||
22521 | else | ||
22522 | ac_cv_lib_ICE_IceConnectionNumber=no | ||
22523 | fi | ||
22524 | rm -f core conftest.err conftest.$ac_objext \ | ||
22525 | conftest$ac_exeext conftest.$ac_ext | ||
22526 | LIBS=$ac_check_lib_save_LIBS | ||
22527 | fi | ||
22528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | ||
22529 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } | ||
22530 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : | ||
22531 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | ||
22532 | fi | ||
22533 | |||
22534 | LDFLAGS=$ac_save_LDFLAGS | ||
22535 | |||
22536 | fi | ||
22537 | |||
22538 | |||
22539 | ac_fn_c_check_header_mongrel "$LINENO" "X11/X.h" "ac_cv_header_X11_X_h" "$ac_includes_default" | ||
22540 | if test "x$ac_cv_header_X11_X_h" = x""yes; then : | ||
22541 | have_dep="yes" | ||
22542 | fi | ||
22543 | |||
22544 | |||
22545 | |||
22546 | if test "x${have_dep}" = "xyes" ; then | ||
22547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCreateImage in -lX11" >&5 | ||
22548 | $as_echo_n "checking for XCreateImage in -lX11... " >&6; } | ||
22549 | if test "${ac_cv_lib_X11_XCreateImage+set}" = set; then : | ||
22550 | $as_echo_n "(cached) " >&6 | ||
22551 | else | ||
22552 | ac_check_lib_save_LIBS=$LIBS | ||
22553 | LIBS="-lX11 $LIBS" | ||
22554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22555 | /* end confdefs.h. */ | ||
22556 | |||
22557 | /* Override any GCC internal prototype to avoid an error. | ||
22558 | Use char because int might match the return type of a GCC | ||
22559 | builtin and then its argument prototype would still apply. */ | ||
22560 | #ifdef __cplusplus | ||
22561 | extern "C" | ||
22562 | #endif | ||
22563 | char XCreateImage (); | ||
22564 | int | ||
22565 | main () | ||
22566 | { | ||
22567 | return XCreateImage (); | ||
22568 | ; | ||
22569 | return 0; | ||
22570 | } | ||
22571 | _ACEOF | ||
22572 | if ac_fn_c_try_link "$LINENO"; then : | ||
22573 | ac_cv_lib_X11_XCreateImage=yes | ||
22574 | else | ||
22575 | ac_cv_lib_X11_XCreateImage=no | ||
22576 | fi | ||
22577 | rm -f core conftest.err conftest.$ac_objext \ | ||
22578 | conftest$ac_exeext conftest.$ac_ext | ||
22579 | LIBS=$ac_check_lib_save_LIBS | ||
22580 | fi | ||
22581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XCreateImage" >&5 | ||
22582 | $as_echo "$ac_cv_lib_X11_XCreateImage" >&6; } | ||
22583 | if test "x$ac_cv_lib_X11_XCreateImage" = x""yes; then : | ||
22584 | have_dep="yes" | ||
22585 | else | ||
22586 | have_dep="no" | ||
22587 | fi | ||
22588 | |||
22589 | fi | ||
22590 | |||
22591 | if test "x${have_dep}" = "xyes" ; then | ||
22592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmCreateImage in -lXext" >&5 | ||
22593 | $as_echo_n "checking for XShmCreateImage in -lXext... " >&6; } | ||
22594 | if test "${ac_cv_lib_Xext_XShmCreateImage+set}" = set; then : | ||
22595 | $as_echo_n "(cached) " >&6 | ||
22596 | else | ||
22597 | ac_check_lib_save_LIBS=$LIBS | ||
22598 | LIBS="-lXext $LIBS" | ||
22599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
22600 | /* end confdefs.h. */ | ||
22601 | |||
22602 | /* Override any GCC internal prototype to avoid an error. | ||
22603 | Use char because int might match the return type of a GCC | ||
22604 | builtin and then its argument prototype would still apply. */ | ||
22605 | #ifdef __cplusplus | ||
22606 | extern "C" | ||
22607 | #endif | ||
22608 | char XShmCreateImage (); | ||
22609 | int | ||
22610 | main () | ||
22611 | { | ||
22612 | return XShmCreateImage (); | ||
22613 | ; | ||
22614 | return 0; | ||
22615 | } | ||
22616 | _ACEOF | ||
22617 | if ac_fn_c_try_link "$LINENO"; then : | ||
22618 | ac_cv_lib_Xext_XShmCreateImage=yes | ||
22619 | else | ||
22620 | ac_cv_lib_Xext_XShmCreateImage=no | ||
22621 | fi | ||
22622 | rm -f core conftest.err conftest.$ac_objext \ | ||
22623 | conftest$ac_exeext conftest.$ac_ext | ||
22624 | LIBS=$ac_check_lib_save_LIBS | ||
22625 | fi | ||
22626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmCreateImage" >&5 | ||
22627 | $as_echo "$ac_cv_lib_Xext_XShmCreateImage" >&6; } | ||
22628 | if test "x$ac_cv_lib_Xext_XShmCreateImage" = x""yes; then : | ||
22629 | have_dep="yes" | ||
22630 | else | ||
22631 | have_dep="no" | ||
22632 | fi | ||
22633 | |||
22634 | fi | ||
22635 | |||
22636 | if test "x${have_dep}" = "xyes" ; then | ||
22637 | if test "xno" = "xyes" ; then | ||
22638 | x_libs="${x_libs} -lX11 -lXext" | ||
22639 | else | ||
22640 | x_dir=${x_dir:-/usr/X11R6} | ||
22641 | x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}} | ||
22642 | x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext" | ||
22643 | fi | ||
22644 | evas_engine_software_16_x11_cflags="${x_cflags}" | ||
22645 | evas_engine_software_16_x11_libs="${x_libs}" | ||
22646 | fi | ||
22647 | |||
22648 | |||
22649 | |||
22650 | |||
22651 | if test "x${have_dep}" = "xyes" ; then | ||
22652 | have_engine="yes" | ||
22653 | else | ||
22654 | have_engine="no" | ||
22655 | fi | ||
22656 | |||
22657 | |||
22658 | fi | ||
22659 | |||
22660 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
22661 | as_fn_error $? "Software X11 16 bits dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
22662 | fi | ||
22663 | |||
22664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Software X11 16 bits rendering backend will be built" >&5 | ||
22665 | $as_echo_n "checking whether Software X11 16 bits rendering backend will be built... " >&6; } | ||
22666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
22667 | $as_echo "${have_engine}" >&6; } | ||
22668 | |||
22669 | if test "x${have_engine}" = "xyes" ; then | ||
22670 | if test "x${want_engine}" = "xstatic" ; then | ||
22671 | have_evas_engine_software_16_x11="static" | ||
22672 | want_static_engine="yes" | ||
22673 | else | ||
22674 | have_evas_engine_software_16_x11="yes" | ||
22675 | fi | ||
22676 | fi | ||
22677 | |||
22678 | if test "x${have_engine}" = "xyes" ; then | ||
22679 | |||
22680 | $as_echo "#define BUILD_ENGINE_SOFTWARE_16_X11 1" >>confdefs.h | ||
22681 | |||
22682 | fi | ||
22683 | |||
22684 | if test "x${have_engine}" = "xyes"; then | ||
22685 | BUILD_ENGINE_SOFTWARE_16_X11_TRUE= | ||
22686 | BUILD_ENGINE_SOFTWARE_16_X11_FALSE='#' | ||
22687 | else | ||
22688 | BUILD_ENGINE_SOFTWARE_16_X11_TRUE='#' | ||
22689 | BUILD_ENGINE_SOFTWARE_16_X11_FALSE= | ||
22690 | fi | ||
22691 | |||
22692 | |||
22693 | if test "x${want_static_engine}" = "xyes" ; then | ||
22694 | |||
22695 | $as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_16_X11 1" >>confdefs.h | ||
22696 | |||
22697 | have_static_module="yes" | ||
22698 | fi | ||
22699 | |||
22700 | if test "x${want_static_engine}" = "xyes"; then | ||
22701 | EVAS_STATIC_BUILD_SOFTWARE_16_X11_TRUE= | ||
22702 | EVAS_STATIC_BUILD_SOFTWARE_16_X11_FALSE='#' | ||
22703 | else | ||
22704 | EVAS_STATIC_BUILD_SOFTWARE_16_X11_TRUE='#' | ||
22705 | EVAS_STATIC_BUILD_SOFTWARE_16_X11_FALSE= | ||
22706 | fi | ||
22707 | |||
22708 | |||
22709 | |||
22710 | |||
22711 | |||
22712 | |||
22713 | |||
22714 | |||
22715 | |||
22716 | |||
22717 | want_engine="${want_evas_engine_software_16_ddraw}" | ||
22718 | want_static_engine="no" | ||
22719 | have_engine="no" | ||
22720 | have_evas_engine_software_16_ddraw="no" | ||
22721 | |||
22722 | # Check whether --enable-software-16-ddraw was given. | ||
22723 | if test "${enable_software_16_ddraw+set}" = set; then : | ||
22724 | enableval=$enable_software_16_ddraw; | ||
22725 | if test "x${enableval}" = "xyes" ; then | ||
22726 | want_engine="yes" | ||
22727 | else | ||
22728 | if test "x${enableval}" = "xstatic" ; then | ||
22729 | want_engine="static" | ||
22730 | else | ||
22731 | want_engine="no" | ||
22732 | fi | ||
22733 | fi | ||
22734 | |||
22735 | fi | ||
22736 | |||
22737 | |||
22738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Software DirectDraw 16 bits rendering backend" >&5 | ||
22739 | $as_echo_n "checking whether to enable Software DirectDraw 16 bits rendering backend... " >&6; } | ||
22740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
22741 | $as_echo "${want_engine}" >&6; } | ||
22742 | |||
22743 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
22744 | |||
22745 | |||
22746 | have_dep="no" | ||
22747 | evas_engine_software_16_ddraw_cflags="" | ||
22748 | evas_engine_software_16_ddraw_libs="" | ||
22749 | |||
22750 | ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default" | ||
22751 | if test "x$ac_cv_header_ddraw_h" = x""yes; then : | ||
22752 | |||
22753 | have_dep="yes" | ||
22754 | evas_engine_software_16_ddraw_libs="-lddraw -lgdi32" | ||
22755 | |||
22756 | |||
22757 | fi | ||
22758 | |||
22759 | |||
22760 | |||
22761 | |||
22762 | |||
22763 | |||
22764 | if test "x${have_dep}" = "xyes" ; then | ||
22765 | have_engine="yes" | ||
22766 | else | ||
22767 | have_engine="no" | ||
22768 | fi | ||
22769 | |||
22770 | |||
22771 | fi | ||
22772 | |||
22773 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
22774 | as_fn_error $? "Software DirectDraw 16 bits dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
22775 | fi | ||
22776 | |||
22777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Software DirectDraw 16 bits rendering backend will be built" >&5 | ||
22778 | $as_echo_n "checking whether Software DirectDraw 16 bits rendering backend will be built... " >&6; } | ||
22779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
22780 | $as_echo "${have_engine}" >&6; } | ||
22781 | |||
22782 | if test "x${have_engine}" = "xyes" ; then | ||
22783 | if test "x${want_engine}" = "xstatic" ; then | ||
22784 | have_evas_engine_software_16_ddraw="static" | ||
22785 | want_static_engine="yes" | ||
22786 | else | ||
22787 | have_evas_engine_software_16_ddraw="yes" | ||
22788 | fi | ||
22789 | fi | ||
22790 | |||
22791 | if test "x${have_engine}" = "xyes" ; then | ||
22792 | |||
22793 | $as_echo "#define BUILD_ENGINE_SOFTWARE_16_DDRAW 1" >>confdefs.h | ||
22794 | |||
22795 | fi | ||
22796 | |||
22797 | if test "x${have_engine}" = "xyes"; then | ||
22798 | BUILD_ENGINE_SOFTWARE_16_DDRAW_TRUE= | ||
22799 | BUILD_ENGINE_SOFTWARE_16_DDRAW_FALSE='#' | ||
22800 | else | ||
22801 | BUILD_ENGINE_SOFTWARE_16_DDRAW_TRUE='#' | ||
22802 | BUILD_ENGINE_SOFTWARE_16_DDRAW_FALSE= | ||
22803 | fi | ||
22804 | |||
22805 | |||
22806 | if test "x${want_static_engine}" = "xyes" ; then | ||
22807 | |||
22808 | $as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_16_DDRAW 1" >>confdefs.h | ||
22809 | |||
22810 | have_static_module="yes" | ||
22811 | fi | ||
22812 | |||
22813 | if test "x${want_static_engine}" = "xyes"; then | ||
22814 | EVAS_STATIC_BUILD_SOFTWARE_16_DDRAW_TRUE= | ||
22815 | EVAS_STATIC_BUILD_SOFTWARE_16_DDRAW_FALSE='#' | ||
22816 | else | ||
22817 | EVAS_STATIC_BUILD_SOFTWARE_16_DDRAW_TRUE='#' | ||
22818 | EVAS_STATIC_BUILD_SOFTWARE_16_DDRAW_FALSE= | ||
22819 | fi | ||
22820 | |||
22821 | |||
22822 | |||
22823 | |||
22824 | |||
22825 | |||
22826 | |||
22827 | |||
22828 | |||
22829 | |||
22830 | want_engine="${want_evas_engine_software_16_wince}" | ||
22831 | want_static_engine="no" | ||
22832 | have_engine="no" | ||
22833 | have_evas_engine_software_16_wince="no" | ||
22834 | |||
22835 | # Check whether --enable-software-16-wince was given. | ||
22836 | if test "${enable_software_16_wince+set}" = set; then : | ||
22837 | enableval=$enable_software_16_wince; | ||
22838 | if test "x${enableval}" = "xyes" ; then | ||
22839 | want_engine="yes" | ||
22840 | else | ||
22841 | if test "x${enableval}" = "xstatic" ; then | ||
22842 | want_engine="static" | ||
22843 | else | ||
22844 | want_engine="no" | ||
22845 | fi | ||
22846 | fi | ||
22847 | |||
22848 | fi | ||
22849 | |||
22850 | |||
22851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Software Windows CE 16 bits rendering backend" >&5 | ||
22852 | $as_echo_n "checking whether to enable Software Windows CE 16 bits rendering backend... " >&6; } | ||
22853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
22854 | $as_echo "${want_engine}" >&6; } | ||
22855 | |||
22856 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
22857 | |||
22858 | |||
22859 | have_dep="yes" | ||
22860 | evas_engine_software_16_wince_cflags="" | ||
22861 | evas_engine_software_16_wince_libs="" | ||
22862 | |||
22863 | |||
22864 | |||
22865 | |||
22866 | if test "x${have_dep}" = "xyes" ; then | ||
22867 | have_engine="yes" | ||
22868 | else | ||
22869 | have_engine="no" | ||
22870 | fi | ||
22871 | |||
22872 | |||
22873 | fi | ||
22874 | |||
22875 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
22876 | as_fn_error $? "Software Windows CE 16 bits dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
22877 | fi | ||
22878 | |||
22879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Software Windows CE 16 bits rendering backend will be built" >&5 | ||
22880 | $as_echo_n "checking whether Software Windows CE 16 bits rendering backend will be built... " >&6; } | ||
22881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
22882 | $as_echo "${have_engine}" >&6; } | ||
22883 | |||
22884 | if test "x${have_engine}" = "xyes" ; then | ||
22885 | if test "x${want_engine}" = "xstatic" ; then | ||
22886 | have_evas_engine_software_16_wince="static" | ||
22887 | want_static_engine="yes" | ||
22888 | else | ||
22889 | have_evas_engine_software_16_wince="yes" | ||
22890 | fi | ||
22891 | fi | ||
22892 | |||
22893 | if test "x${have_engine}" = "xyes" ; then | ||
22894 | |||
22895 | $as_echo "#define BUILD_ENGINE_SOFTWARE_16_WINCE 1" >>confdefs.h | ||
22896 | |||
22897 | fi | ||
22898 | |||
22899 | if test "x${have_engine}" = "xyes"; then | ||
22900 | BUILD_ENGINE_SOFTWARE_16_WINCE_TRUE= | ||
22901 | BUILD_ENGINE_SOFTWARE_16_WINCE_FALSE='#' | ||
22902 | else | ||
22903 | BUILD_ENGINE_SOFTWARE_16_WINCE_TRUE='#' | ||
22904 | BUILD_ENGINE_SOFTWARE_16_WINCE_FALSE= | ||
22905 | fi | ||
22906 | |||
22907 | |||
22908 | if test "x${want_static_engine}" = "xyes" ; then | ||
22909 | |||
22910 | $as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_16_WINCE 1" >>confdefs.h | ||
22911 | |||
22912 | have_static_module="yes" | ||
22913 | fi | ||
22914 | |||
22915 | if test "x${want_static_engine}" = "xyes"; then | ||
22916 | EVAS_STATIC_BUILD_SOFTWARE_16_WINCE_TRUE= | ||
22917 | EVAS_STATIC_BUILD_SOFTWARE_16_WINCE_FALSE='#' | ||
22918 | else | ||
22919 | EVAS_STATIC_BUILD_SOFTWARE_16_WINCE_TRUE='#' | ||
22920 | EVAS_STATIC_BUILD_SOFTWARE_16_WINCE_FALSE= | ||
22921 | fi | ||
22922 | |||
22923 | |||
22924 | |||
22925 | |||
22926 | |||
22927 | |||
22928 | |||
22929 | |||
22930 | |||
22931 | |||
22932 | want_engine="${want_evas_engine_software_16_sdl}" | ||
22933 | want_static_engine="no" | ||
22934 | have_engine="no" | ||
22935 | have_evas_engine_software_16_sdl="no" | ||
22936 | |||
22937 | # Check whether --enable-software-16-sdl was given. | ||
22938 | if test "${enable_software_16_sdl+set}" = set; then : | ||
22939 | enableval=$enable_software_16_sdl; | ||
22940 | if test "x${enableval}" = "xyes" ; then | ||
22941 | want_engine="yes" | ||
22942 | else | ||
22943 | if test "x${enableval}" = "xstatic" ; then | ||
22944 | want_engine="static" | ||
22945 | else | ||
22946 | want_engine="no" | ||
22947 | fi | ||
22948 | fi | ||
22949 | |||
22950 | fi | ||
22951 | |||
22952 | |||
22953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Software SDL 16 bits rendering backend" >&5 | ||
22954 | $as_echo_n "checking whether to enable Software SDL 16 bits rendering backend... " >&6; } | ||
22955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
22956 | $as_echo "${want_engine}" >&6; } | ||
22957 | |||
22958 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
22959 | |||
22960 | |||
22961 | requirement="" | ||
22962 | have_dep="no" | ||
22963 | evas_engine_software_16_sdl_cflags="" | ||
22964 | evas_engine_software_16_sdl_libs="" | ||
22965 | |||
22966 | |||
22967 | pkg_failed=no | ||
22968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5 | ||
22969 | $as_echo_n "checking for SDL... " >&6; } | ||
22970 | |||
22971 | if test -n "$SDL_CFLAGS"; then | ||
22972 | pkg_cv_SDL_CFLAGS="$SDL_CFLAGS" | ||
22973 | elif test -n "$PKG_CONFIG"; then | ||
22974 | if test -n "$PKG_CONFIG" && \ | ||
22975 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5 | ||
22976 | ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5 | ||
22977 | ac_status=$? | ||
22978 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22979 | test $ac_status = 0; }; then | ||
22980 | pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl >= 1.2.0" 2>/dev/null` | ||
22981 | else | ||
22982 | pkg_failed=yes | ||
22983 | fi | ||
22984 | else | ||
22985 | pkg_failed=untried | ||
22986 | fi | ||
22987 | if test -n "$SDL_LIBS"; then | ||
22988 | pkg_cv_SDL_LIBS="$SDL_LIBS" | ||
22989 | elif test -n "$PKG_CONFIG"; then | ||
22990 | if test -n "$PKG_CONFIG" && \ | ||
22991 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5 | ||
22992 | ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5 | ||
22993 | ac_status=$? | ||
22994 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
22995 | test $ac_status = 0; }; then | ||
22996 | pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl >= 1.2.0" 2>/dev/null` | ||
22997 | else | ||
22998 | pkg_failed=yes | ||
22999 | fi | ||
23000 | else | ||
23001 | pkg_failed=untried | ||
23002 | fi | ||
23003 | |||
23004 | |||
23005 | |||
23006 | if test $pkg_failed = yes; then | ||
23007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
23008 | $as_echo "no" >&6; } | ||
23009 | |||
23010 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
23011 | _pkg_short_errors_supported=yes | ||
23012 | else | ||
23013 | _pkg_short_errors_supported=no | ||
23014 | fi | ||
23015 | if test $_pkg_short_errors_supported = yes; then | ||
23016 | SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl >= 1.2.0" 2>&1` | ||
23017 | else | ||
23018 | SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl >= 1.2.0" 2>&1` | ||
23019 | fi | ||
23020 | # Put the nasty error message in config.log where it belongs | ||
23021 | echo "$SDL_PKG_ERRORS" >&5 | ||
23022 | |||
23023 | as_fn_error $? "Package requirements (sdl >= 1.2.0) were not met: | ||
23024 | |||
23025 | $SDL_PKG_ERRORS | ||
23026 | |||
23027 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | ||
23028 | installed software in a non-standard prefix. | ||
23029 | |||
23030 | Alternatively, you may set the environment variables SDL_CFLAGS | ||
23031 | and SDL_LIBS to avoid the need to call pkg-config. | ||
23032 | See the pkg-config man page for more details." "$LINENO" 5 | ||
23033 | elif test $pkg_failed = untried; then | ||
23034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
23035 | $as_echo "no" >&6; } | ||
23036 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
23037 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
23038 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | ||
23039 | is in your PATH or set the PKG_CONFIG environment variable to the full | ||
23040 | path to pkg-config. | ||
23041 | |||
23042 | Alternatively, you may set the environment variables SDL_CFLAGS | ||
23043 | and SDL_LIBS to avoid the need to call pkg-config. | ||
23044 | See the pkg-config man page for more details. | ||
23045 | |||
23046 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | ||
23047 | See \`config.log' for more details" "$LINENO" 5 ; } | ||
23048 | else | ||
23049 | SDL_CFLAGS=$pkg_cv_SDL_CFLAGS | ||
23050 | SDL_LIBS=$pkg_cv_SDL_LIBS | ||
23051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
23052 | $as_echo "yes" >&6; } | ||
23053 | |||
23054 | have_dep="yes" | ||
23055 | requirement="sdl" | ||
23056 | evas_engine_software_16_sdl_cflags="${SDL_CFLAGS}" | ||
23057 | evas_engine_software_16_sdl_libs="${SDL_LIBS}" | ||
23058 | |||
23059 | |||
23060 | fi | ||
23061 | |||
23062 | |||
23063 | |||
23064 | |||
23065 | if test "x${want_engine}" = "xstatic" ; then | ||
23066 | requirement_evas="${requirement} ${requirement_evas}" | ||
23067 | fi | ||
23068 | |||
23069 | if test "x${have_dep}" = "xyes" ; then | ||
23070 | have_engine="yes" | ||
23071 | else | ||
23072 | have_engine="no" | ||
23073 | fi | ||
23074 | |||
23075 | |||
23076 | fi | ||
23077 | |||
23078 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
23079 | as_fn_error $? "Software SDL 16 bits dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
23080 | fi | ||
23081 | |||
23082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Software SDL 16 bits rendering backend will be built" >&5 | ||
23083 | $as_echo_n "checking whether Software SDL 16 bits rendering backend will be built... " >&6; } | ||
23084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
23085 | $as_echo "${have_engine}" >&6; } | ||
23086 | |||
23087 | if test "x${have_engine}" = "xyes" ; then | ||
23088 | if test "x${want_engine}" = "xstatic" ; then | ||
23089 | have_evas_engine_software_16_sdl="static" | ||
23090 | want_static_engine="yes" | ||
23091 | else | ||
23092 | have_evas_engine_software_16_sdl="yes" | ||
23093 | fi | ||
23094 | fi | ||
23095 | |||
23096 | if test "x${have_engine}" = "xyes" ; then | ||
23097 | |||
23098 | $as_echo "#define BUILD_ENGINE_SOFTWARE_16_SDL 1" >>confdefs.h | ||
23099 | |||
23100 | fi | ||
23101 | |||
23102 | if test "x${have_engine}" = "xyes"; then | ||
23103 | BUILD_ENGINE_SOFTWARE_16_SDL_TRUE= | ||
23104 | BUILD_ENGINE_SOFTWARE_16_SDL_FALSE='#' | ||
23105 | else | ||
23106 | BUILD_ENGINE_SOFTWARE_16_SDL_TRUE='#' | ||
23107 | BUILD_ENGINE_SOFTWARE_16_SDL_FALSE= | ||
23108 | fi | ||
23109 | |||
23110 | |||
23111 | if test "x${want_static_engine}" = "xyes" ; then | ||
23112 | |||
23113 | $as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_16_SDL 1" >>confdefs.h | ||
23114 | |||
23115 | have_static_module="yes" | ||
23116 | fi | ||
23117 | |||
23118 | if test "x${want_static_engine}" = "xyes"; then | ||
23119 | EVAS_STATIC_BUILD_SOFTWARE_16_SDL_TRUE= | ||
23120 | EVAS_STATIC_BUILD_SOFTWARE_16_SDL_FALSE='#' | ||
23121 | else | ||
23122 | EVAS_STATIC_BUILD_SOFTWARE_16_SDL_TRUE='#' | ||
23123 | EVAS_STATIC_BUILD_SOFTWARE_16_SDL_FALSE= | ||
23124 | fi | ||
23125 | |||
23126 | |||
23127 | |||
23128 | |||
23129 | |||
23130 | |||
23131 | |||
23132 | |||
23133 | |||
23134 | |||
23135 | want_engine="${want_evas_engine_wayland_shm}" | ||
23136 | want_static_engine="no" | ||
23137 | have_engine="no" | ||
23138 | have_evas_engine_wayland_shm="no" | ||
23139 | |||
23140 | # Check whether --enable-wayland-shm was given. | ||
23141 | if test "${enable_wayland_shm+set}" = set; then : | ||
23142 | enableval=$enable_wayland_shm; | ||
23143 | if test "x${enableval}" = "xyes" ; then | ||
23144 | want_engine="yes" | ||
23145 | else | ||
23146 | if test "x${enableval}" = "xstatic" ; then | ||
23147 | want_engine="static" | ||
23148 | else | ||
23149 | want_engine="no" | ||
23150 | fi | ||
23151 | fi | ||
23152 | |||
23153 | fi | ||
23154 | |||
23155 | |||
23156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Wayland Shm rendering backend" >&5 | ||
23157 | $as_echo_n "checking whether to enable Wayland Shm rendering backend... " >&6; } | ||
23158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
23159 | $as_echo "${want_engine}" >&6; } | ||
23160 | |||
23161 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
23162 | |||
23163 | |||
23164 | have_dep="yes" | ||
23165 | evas_engine_wayland_shm_cflags="" | ||
23166 | evas_engine_wayland_shm_libs="" | ||
23167 | |||
23168 | |||
23169 | |||
23170 | |||
23171 | if test "x${have_dep}" = "xyes" ; then | ||
23172 | have_engine="yes" | ||
23173 | else | ||
23174 | have_engine="no" | ||
23175 | fi | ||
23176 | |||
23177 | |||
23178 | fi | ||
23179 | |||
23180 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
23181 | as_fn_error $? "Wayland Shm dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
23182 | fi | ||
23183 | |||
23184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Wayland Shm rendering backend will be built" >&5 | ||
23185 | $as_echo_n "checking whether Wayland Shm rendering backend will be built... " >&6; } | ||
23186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
23187 | $as_echo "${have_engine}" >&6; } | ||
23188 | |||
23189 | if test "x${have_engine}" = "xyes" ; then | ||
23190 | if test "x${want_engine}" = "xstatic" ; then | ||
23191 | have_evas_engine_wayland_shm="static" | ||
23192 | want_static_engine="yes" | ||
23193 | else | ||
23194 | have_evas_engine_wayland_shm="yes" | ||
23195 | fi | ||
23196 | fi | ||
23197 | |||
23198 | if test "x${have_engine}" = "xyes" ; then | ||
23199 | |||
23200 | $as_echo "#define BUILD_ENGINE_WAYLAND_SHM 1" >>confdefs.h | ||
23201 | |||
23202 | fi | ||
23203 | |||
23204 | if test "x${have_engine}" = "xyes"; then | ||
23205 | BUILD_ENGINE_WAYLAND_SHM_TRUE= | ||
23206 | BUILD_ENGINE_WAYLAND_SHM_FALSE='#' | ||
23207 | else | ||
23208 | BUILD_ENGINE_WAYLAND_SHM_TRUE='#' | ||
23209 | BUILD_ENGINE_WAYLAND_SHM_FALSE= | ||
23210 | fi | ||
23211 | |||
23212 | |||
23213 | if test "x${want_static_engine}" = "xyes" ; then | ||
23214 | |||
23215 | $as_echo "#define EVAS_STATIC_BUILD_WAYLAND_SHM 1" >>confdefs.h | ||
23216 | |||
23217 | have_static_module="yes" | ||
23218 | fi | ||
23219 | |||
23220 | if test "x${want_static_engine}" = "xyes"; then | ||
23221 | EVAS_STATIC_BUILD_WAYLAND_SHM_TRUE= | ||
23222 | EVAS_STATIC_BUILD_WAYLAND_SHM_FALSE='#' | ||
23223 | else | ||
23224 | EVAS_STATIC_BUILD_WAYLAND_SHM_TRUE='#' | ||
23225 | EVAS_STATIC_BUILD_WAYLAND_SHM_FALSE= | ||
23226 | fi | ||
23227 | |||
23228 | |||
23229 | |||
23230 | |||
23231 | |||
23232 | |||
23233 | |||
23234 | |||
23235 | |||
23236 | |||
23237 | want_engine="${want_evas_engine_wayland_egl}" | ||
23238 | want_static_engine="no" | ||
23239 | have_engine="no" | ||
23240 | have_evas_engine_wayland_egl="no" | ||
23241 | |||
23242 | # Check whether --enable-wayland-egl was given. | ||
23243 | if test "${enable_wayland_egl+set}" = set; then : | ||
23244 | enableval=$enable_wayland_egl; | ||
23245 | if test "x${enableval}" = "xyes" ; then | ||
23246 | want_engine="yes" | ||
23247 | else | ||
23248 | if test "x${enableval}" = "xstatic" ; then | ||
23249 | want_engine="static" | ||
23250 | else | ||
23251 | want_engine="no" | ||
23252 | fi | ||
23253 | fi | ||
23254 | |||
23255 | fi | ||
23256 | |||
23257 | |||
23258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Wayland Egl rendering backend" >&5 | ||
23259 | $as_echo_n "checking whether to enable Wayland Egl rendering backend... " >&6; } | ||
23260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
23261 | $as_echo "${want_engine}" >&6; } | ||
23262 | |||
23263 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
23264 | |||
23265 | |||
23266 | requirement="" | ||
23267 | have_dep="no" | ||
23268 | evas_engine_wayland_egl_cflags="" | ||
23269 | evas_engine_wayland_egl_libs="" | ||
23270 | |||
23271 | |||
23272 | pkg_failed=no | ||
23273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND_EGL" >&5 | ||
23274 | $as_echo_n "checking for WAYLAND_EGL... " >&6; } | ||
23275 | |||
23276 | if test -n "$WAYLAND_EGL_CFLAGS"; then | ||
23277 | pkg_cv_WAYLAND_EGL_CFLAGS="$WAYLAND_EGL_CFLAGS" | ||
23278 | elif test -n "$PKG_CONFIG"; then | ||
23279 | if test -n "$PKG_CONFIG" && \ | ||
23280 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"egl >= 7.10 glesv2 gl wayland-client wayland-egl\""; } >&5 | ||
23281 | ($PKG_CONFIG --exists --print-errors "egl >= 7.10 glesv2 gl wayland-client wayland-egl") 2>&5 | ||
23282 | ac_status=$? | ||
23283 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
23284 | test $ac_status = 0; }; then | ||
23285 | pkg_cv_WAYLAND_EGL_CFLAGS=`$PKG_CONFIG --cflags "egl >= 7.10 glesv2 gl wayland-client wayland-egl" 2>/dev/null` | ||
23286 | else | ||
23287 | pkg_failed=yes | ||
23288 | fi | ||
23289 | else | ||
23290 | pkg_failed=untried | ||
23291 | fi | ||
23292 | if test -n "$WAYLAND_EGL_LIBS"; then | ||
23293 | pkg_cv_WAYLAND_EGL_LIBS="$WAYLAND_EGL_LIBS" | ||
23294 | elif test -n "$PKG_CONFIG"; then | ||
23295 | if test -n "$PKG_CONFIG" && \ | ||
23296 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"egl >= 7.10 glesv2 gl wayland-client wayland-egl\""; } >&5 | ||
23297 | ($PKG_CONFIG --exists --print-errors "egl >= 7.10 glesv2 gl wayland-client wayland-egl") 2>&5 | ||
23298 | ac_status=$? | ||
23299 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
23300 | test $ac_status = 0; }; then | ||
23301 | pkg_cv_WAYLAND_EGL_LIBS=`$PKG_CONFIG --libs "egl >= 7.10 glesv2 gl wayland-client wayland-egl" 2>/dev/null` | ||
23302 | else | ||
23303 | pkg_failed=yes | ||
23304 | fi | ||
23305 | else | ||
23306 | pkg_failed=untried | ||
23307 | fi | ||
23308 | |||
23309 | |||
23310 | |||
23311 | if test $pkg_failed = yes; then | ||
23312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
23313 | $as_echo "no" >&6; } | ||
23314 | |||
23315 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
23316 | _pkg_short_errors_supported=yes | ||
23317 | else | ||
23318 | _pkg_short_errors_supported=no | ||
23319 | fi | ||
23320 | if test $_pkg_short_errors_supported = yes; then | ||
23321 | WAYLAND_EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "egl >= 7.10 glesv2 gl wayland-client wayland-egl" 2>&1` | ||
23322 | else | ||
23323 | WAYLAND_EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors "egl >= 7.10 glesv2 gl wayland-client wayland-egl" 2>&1` | ||
23324 | fi | ||
23325 | # Put the nasty error message in config.log where it belongs | ||
23326 | echo "$WAYLAND_EGL_PKG_ERRORS" >&5 | ||
23327 | |||
23328 | |||
23329 | have_dep="no" | ||
23330 | |||
23331 | |||
23332 | elif test $pkg_failed = untried; then | ||
23333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
23334 | $as_echo "no" >&6; } | ||
23335 | |||
23336 | have_dep="no" | ||
23337 | |||
23338 | |||
23339 | else | ||
23340 | WAYLAND_EGL_CFLAGS=$pkg_cv_WAYLAND_EGL_CFLAGS | ||
23341 | WAYLAND_EGL_LIBS=$pkg_cv_WAYLAND_EGL_LIBS | ||
23342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
23343 | $as_echo "yes" >&6; } | ||
23344 | |||
23345 | have_dep="yes" | ||
23346 | requirement="egl >= 7.10 glesv2 gl wayland-client wayland-egl" | ||
23347 | evas_engine_wayland_egl_cflags="${WAYLAND_EGL_CFLAGS}" | ||
23348 | evas_engine_wayland_egl_libs="${WAYLAND_EGL_LIBS}" | ||
23349 | |||
23350 | fi | ||
23351 | |||
23352 | if test "x${have_dep}" = "xyes" ; then | ||
23353 | |||
23354 | pkg_failed=no | ||
23355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL_EET" >&5 | ||
23356 | $as_echo_n "checking for GL_EET... " >&6; } | ||
23357 | |||
23358 | if test -n "$GL_EET_CFLAGS"; then | ||
23359 | pkg_cv_GL_EET_CFLAGS="$GL_EET_CFLAGS" | ||
23360 | elif test -n "$PKG_CONFIG"; then | ||
23361 | if test -n "$PKG_CONFIG" && \ | ||
23362 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.6.0\""; } >&5 | ||
23363 | ($PKG_CONFIG --exists --print-errors "eet >= 1.6.0") 2>&5 | ||
23364 | ac_status=$? | ||
23365 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
23366 | test $ac_status = 0; }; then | ||
23367 | pkg_cv_GL_EET_CFLAGS=`$PKG_CONFIG --cflags "eet >= 1.6.0" 2>/dev/null` | ||
23368 | else | ||
23369 | pkg_failed=yes | ||
23370 | fi | ||
23371 | else | ||
23372 | pkg_failed=untried | ||
23373 | fi | ||
23374 | if test -n "$GL_EET_LIBS"; then | ||
23375 | pkg_cv_GL_EET_LIBS="$GL_EET_LIBS" | ||
23376 | elif test -n "$PKG_CONFIG"; then | ||
23377 | if test -n "$PKG_CONFIG" && \ | ||
23378 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.6.0\""; } >&5 | ||
23379 | ($PKG_CONFIG --exists --print-errors "eet >= 1.6.0") 2>&5 | ||
23380 | ac_status=$? | ||
23381 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
23382 | test $ac_status = 0; }; then | ||
23383 | pkg_cv_GL_EET_LIBS=`$PKG_CONFIG --libs "eet >= 1.6.0" 2>/dev/null` | ||
23384 | else | ||
23385 | pkg_failed=yes | ||
23386 | fi | ||
23387 | else | ||
23388 | pkg_failed=untried | ||
23389 | fi | ||
23390 | |||
23391 | |||
23392 | |||
23393 | if test $pkg_failed = yes; then | ||
23394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
23395 | $as_echo "no" >&6; } | ||
23396 | |||
23397 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
23398 | _pkg_short_errors_supported=yes | ||
23399 | else | ||
23400 | _pkg_short_errors_supported=no | ||
23401 | fi | ||
23402 | if test $_pkg_short_errors_supported = yes; then | ||
23403 | GL_EET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eet >= 1.6.0" 2>&1` | ||
23404 | else | ||
23405 | GL_EET_PKG_ERRORS=`$PKG_CONFIG --print-errors "eet >= 1.6.0" 2>&1` | ||
23406 | fi | ||
23407 | # Put the nasty error message in config.log where it belongs | ||
23408 | echo "$GL_EET_PKG_ERRORS" >&5 | ||
23409 | |||
23410 | have_dep="no" | ||
23411 | elif test $pkg_failed = untried; then | ||
23412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
23413 | $as_echo "no" >&6; } | ||
23414 | have_dep="no" | ||
23415 | else | ||
23416 | GL_EET_CFLAGS=$pkg_cv_GL_EET_CFLAGS | ||
23417 | GL_EET_LIBS=$pkg_cv_GL_EET_LIBS | ||
23418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
23419 | $as_echo "yes" >&6; } | ||
23420 | have_dep="yes" | ||
23421 | fi | ||
23422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glTexImage2D in -lGLESv2" >&5 | ||
23423 | $as_echo_n "checking for glTexImage2D in -lGLESv2... " >&6; } | ||
23424 | if test "${ac_cv_lib_GLESv2_glTexImage2D+set}" = set; then : | ||
23425 | $as_echo_n "(cached) " >&6 | ||
23426 | else | ||
23427 | ac_check_lib_save_LIBS=$LIBS | ||
23428 | LIBS="-lGLESv2 -lEGL -lm $LIBS" | ||
23429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23430 | /* end confdefs.h. */ | ||
23431 | |||
23432 | /* Override any GCC internal prototype to avoid an error. | ||
23433 | Use char because int might match the return type of a GCC | ||
23434 | builtin and then its argument prototype would still apply. */ | ||
23435 | #ifdef __cplusplus | ||
23436 | extern "C" | ||
23437 | #endif | ||
23438 | char glTexImage2D (); | ||
23439 | int | ||
23440 | main () | ||
23441 | { | ||
23442 | return glTexImage2D (); | ||
23443 | ; | ||
23444 | return 0; | ||
23445 | } | ||
23446 | _ACEOF | ||
23447 | if ac_fn_c_try_link "$LINENO"; then : | ||
23448 | ac_cv_lib_GLESv2_glTexImage2D=yes | ||
23449 | else | ||
23450 | ac_cv_lib_GLESv2_glTexImage2D=no | ||
23451 | fi | ||
23452 | rm -f core conftest.err conftest.$ac_objext \ | ||
23453 | conftest$ac_exeext conftest.$ac_ext | ||
23454 | LIBS=$ac_check_lib_save_LIBS | ||
23455 | fi | ||
23456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLESv2_glTexImage2D" >&5 | ||
23457 | $as_echo "$ac_cv_lib_GLESv2_glTexImage2D" >&6; } | ||
23458 | if test "x$ac_cv_lib_GLESv2_glTexImage2D" = x""yes; then : | ||
23459 | have_glesv2="yes" | ||
23460 | fi | ||
23461 | |||
23462 | if test "x${have_glesv2}" = "xyes" ; then | ||
23463 | evas_engine_wayland_egl_cflags="${WAYLAND_EGL_CFLAGS}" | ||
23464 | evas_engine_wayland_egl_libs="${WAYLAND_EGL_LIBS} -lGL -lGLESv2 -lEGL" | ||
23465 | fi | ||
23466 | fi | ||
23467 | |||
23468 | |||
23469 | |||
23470 | |||
23471 | if test "x${want_engine}" = "xstatic" ; then | ||
23472 | requirement_evas="${requirement} ${requirement_evas}" | ||
23473 | fi | ||
23474 | |||
23475 | if test "x${have_dep}" = "xyes" ; then | ||
23476 | have_engine="yes" | ||
23477 | else | ||
23478 | have_engine="no" | ||
23479 | fi | ||
23480 | |||
23481 | |||
23482 | fi | ||
23483 | |||
23484 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
23485 | as_fn_error $? "Wayland Egl dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
23486 | fi | ||
23487 | |||
23488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Wayland Egl rendering backend will be built" >&5 | ||
23489 | $as_echo_n "checking whether Wayland Egl rendering backend will be built... " >&6; } | ||
23490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
23491 | $as_echo "${have_engine}" >&6; } | ||
23492 | |||
23493 | if test "x${have_engine}" = "xyes" ; then | ||
23494 | if test "x${want_engine}" = "xstatic" ; then | ||
23495 | have_evas_engine_wayland_egl="static" | ||
23496 | want_static_engine="yes" | ||
23497 | else | ||
23498 | have_evas_engine_wayland_egl="yes" | ||
23499 | fi | ||
23500 | fi | ||
23501 | |||
23502 | if test "x${have_engine}" = "xyes" ; then | ||
23503 | |||
23504 | $as_echo "#define BUILD_ENGINE_WAYLAND_EGL 1" >>confdefs.h | ||
23505 | |||
23506 | fi | ||
23507 | |||
23508 | if test "x${have_engine}" = "xyes"; then | ||
23509 | BUILD_ENGINE_WAYLAND_EGL_TRUE= | ||
23510 | BUILD_ENGINE_WAYLAND_EGL_FALSE='#' | ||
23511 | else | ||
23512 | BUILD_ENGINE_WAYLAND_EGL_TRUE='#' | ||
23513 | BUILD_ENGINE_WAYLAND_EGL_FALSE= | ||
23514 | fi | ||
23515 | |||
23516 | |||
23517 | if test "x${want_static_engine}" = "xyes" ; then | ||
23518 | |||
23519 | $as_echo "#define EVAS_STATIC_BUILD_WAYLAND_EGL 1" >>confdefs.h | ||
23520 | |||
23521 | have_static_module="yes" | ||
23522 | fi | ||
23523 | |||
23524 | if test "x${want_static_engine}" = "xyes"; then | ||
23525 | EVAS_STATIC_BUILD_WAYLAND_EGL_TRUE= | ||
23526 | EVAS_STATIC_BUILD_WAYLAND_EGL_FALSE='#' | ||
23527 | else | ||
23528 | EVAS_STATIC_BUILD_WAYLAND_EGL_TRUE='#' | ||
23529 | EVAS_STATIC_BUILD_WAYLAND_EGL_FALSE= | ||
23530 | fi | ||
23531 | |||
23532 | |||
23533 | |||
23534 | |||
23535 | |||
23536 | |||
23537 | |||
23538 | # SDL primitive | ||
23539 | sdl_primitive="no" | ||
23540 | |||
23541 | # Check whether --enable-sdl-primitive was given. | ||
23542 | if test "${enable_sdl_primitive+set}" = set; then : | ||
23543 | enableval=$enable_sdl_primitive; sdl_primitive=${enableval} | ||
23544 | |||
23545 | fi | ||
23546 | |||
23547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SDL primitive when possible" >&5 | ||
23548 | $as_echo_n "checking whether to use SDL primitive when possible... " >&6; } | ||
23549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sdl_primitive}" >&5 | ||
23550 | $as_echo "${sdl_primitive}" >&6; } | ||
23551 | |||
23552 | if test "x${sdl_primitive}" = "xyes" ; then | ||
23553 | |||
23554 | $as_echo "#define ENGINE_SDL_PRIMITIVE 1" >>confdefs.h | ||
23555 | |||
23556 | fi | ||
23557 | |||
23558 | # if software generic need to be build as part of libevas.so | ||
23559 | have_static_software_generic="no" | ||
23560 | # Check whether --enable-static-software-generic was given. | ||
23561 | if test "${enable_static_software_generic+set}" = set; then : | ||
23562 | enableval=$enable_static_software_generic; have_static_software_generic=${enableval} | ||
23563 | |||
23564 | fi | ||
23565 | |||
23566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Whether to build software generic engine as part of libevas" >&5 | ||
23567 | $as_echo_n "checking Whether to build software generic engine as part of libevas... " >&6; } | ||
23568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_static_software_generic}" >&5 | ||
23569 | $as_echo "${have_static_software_generic}" >&6; } | ||
23570 | |||
23571 | if test "x${have_static_module}" = "xyes" -a "x${have_static_software_generic}" = "xno"; then | ||
23572 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Forcing --enable-static-software-generic as engines must be compiled statically" >&5 | ||
23573 | $as_echo "$as_me: WARNING: Forcing --enable-static-software-generic as engines must be compiled statically" >&2;} | ||
23574 | have_static_software_generic="yes" | ||
23575 | fi | ||
23576 | |||
23577 | if test "x${have_static_software_generic}" = "xyes"; then | ||
23578 | EVAS_STATIC_BUILD_SOFTWARE_GENERIC_TRUE= | ||
23579 | EVAS_STATIC_BUILD_SOFTWARE_GENERIC_FALSE='#' | ||
23580 | else | ||
23581 | EVAS_STATIC_BUILD_SOFTWARE_GENERIC_TRUE='#' | ||
23582 | EVAS_STATIC_BUILD_SOFTWARE_GENERIC_FALSE= | ||
23583 | fi | ||
23584 | |||
23585 | if test "x${have_static_software_generic}" = "xyes"; then | ||
23586 | |||
23587 | $as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_GENERIC 1" >>confdefs.h | ||
23588 | |||
23589 | fi | ||
23590 | |||
23591 | |||
23592 | ######## Software Engine ######## | ||
23593 | have_evas_engine_software_x11="no" | ||
23594 | have_evas_engine_software_xcb="no" | ||
23595 | have_evas_engine_software_xlib="no" | ||
23596 | build_software_xcb= | ||
23597 | |||
23598 | ## XCB Checks ## | ||
23599 | want_xcb="no" | ||
23600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Software XCB Engine" >&5 | ||
23601 | $as_echo_n "checking whether to build Software XCB Engine... " >&6; } | ||
23602 | # Check whether --enable-software-xcb was given. | ||
23603 | if test "${enable_software_xcb+set}" = set; then : | ||
23604 | enableval=$enable_software_xcb; want_xcb=$enableval | ||
23605 | |||
23606 | fi | ||
23607 | |||
23608 | if test "x$want_xcb" != "xno" ; then | ||
23609 | |||
23610 | |||
23611 | |||
23612 | want_engine="${want_evas_engine_software_xcb}" | ||
23613 | want_static_engine="no" | ||
23614 | have_engine="no" | ||
23615 | have_evas_engine_software_xcb="no" | ||
23616 | |||
23617 | # Check whether --enable-software-xcb was given. | ||
23618 | if test "${enable_software_xcb+set}" = set; then : | ||
23619 | enableval=$enable_software_xcb; | ||
23620 | if test "x${enableval}" = "xyes" ; then | ||
23621 | want_engine="yes" | ||
23622 | else | ||
23623 | if test "x${enableval}" = "xstatic" ; then | ||
23624 | want_engine="static" | ||
23625 | else | ||
23626 | want_engine="no" | ||
23627 | fi | ||
23628 | fi | ||
23629 | |||
23630 | fi | ||
23631 | |||
23632 | |||
23633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Software XCB rendering backend" >&5 | ||
23634 | $as_echo_n "checking whether to enable Software XCB rendering backend... " >&6; } | ||
23635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
23636 | $as_echo "${want_engine}" >&6; } | ||
23637 | |||
23638 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
23639 | |||
23640 | |||
23641 | requirement="" | ||
23642 | have_dep="no" | ||
23643 | evas_engine_software_xcb_cflags="" | ||
23644 | evas_engine_software_xcb_libs="" | ||
23645 | |||
23646 | |||
23647 | pkg_failed=no | ||
23648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB" >&5 | ||
23649 | $as_echo_n "checking for XCB... " >&6; } | ||
23650 | |||
23651 | if test -n "$XCB_CFLAGS"; then | ||
23652 | pkg_cv_XCB_CFLAGS="$XCB_CFLAGS" | ||
23653 | elif test -n "$PKG_CONFIG"; then | ||
23654 | if test -n "$PKG_CONFIG" && \ | ||
23655 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb xcb-shm xcb-image >= 0.2.1 pixman-1\""; } >&5 | ||
23656 | ($PKG_CONFIG --exists --print-errors "xcb xcb-shm xcb-image >= 0.2.1 pixman-1") 2>&5 | ||
23657 | ac_status=$? | ||
23658 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
23659 | test $ac_status = 0; }; then | ||
23660 | pkg_cv_XCB_CFLAGS=`$PKG_CONFIG --cflags "xcb xcb-shm xcb-image >= 0.2.1 pixman-1" 2>/dev/null` | ||
23661 | else | ||
23662 | pkg_failed=yes | ||
23663 | fi | ||
23664 | else | ||
23665 | pkg_failed=untried | ||
23666 | fi | ||
23667 | if test -n "$XCB_LIBS"; then | ||
23668 | pkg_cv_XCB_LIBS="$XCB_LIBS" | ||
23669 | elif test -n "$PKG_CONFIG"; then | ||
23670 | if test -n "$PKG_CONFIG" && \ | ||
23671 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb xcb-shm xcb-image >= 0.2.1 pixman-1\""; } >&5 | ||
23672 | ($PKG_CONFIG --exists --print-errors "xcb xcb-shm xcb-image >= 0.2.1 pixman-1") 2>&5 | ||
23673 | ac_status=$? | ||
23674 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
23675 | test $ac_status = 0; }; then | ||
23676 | pkg_cv_XCB_LIBS=`$PKG_CONFIG --libs "xcb xcb-shm xcb-image >= 0.2.1 pixman-1" 2>/dev/null` | ||
23677 | else | ||
23678 | pkg_failed=yes | ||
23679 | fi | ||
23680 | else | ||
23681 | pkg_failed=untried | ||
23682 | fi | ||
23683 | |||
23684 | |||
23685 | |||
23686 | if test $pkg_failed = yes; then | ||
23687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
23688 | $as_echo "no" >&6; } | ||
23689 | |||
23690 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
23691 | _pkg_short_errors_supported=yes | ||
23692 | else | ||
23693 | _pkg_short_errors_supported=no | ||
23694 | fi | ||
23695 | if test $_pkg_short_errors_supported = yes; then | ||
23696 | XCB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb xcb-shm xcb-image >= 0.2.1 pixman-1" 2>&1` | ||
23697 | else | ||
23698 | XCB_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb xcb-shm xcb-image >= 0.2.1 pixman-1" 2>&1` | ||
23699 | fi | ||
23700 | # Put the nasty error message in config.log where it belongs | ||
23701 | echo "$XCB_PKG_ERRORS" >&5 | ||
23702 | |||
23703 | |||
23704 | have_dep="no" | ||
23705 | |||
23706 | |||
23707 | elif test $pkg_failed = untried; then | ||
23708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
23709 | $as_echo "no" >&6; } | ||
23710 | |||
23711 | have_dep="no" | ||
23712 | |||
23713 | |||
23714 | else | ||
23715 | XCB_CFLAGS=$pkg_cv_XCB_CFLAGS | ||
23716 | XCB_LIBS=$pkg_cv_XCB_LIBS | ||
23717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
23718 | $as_echo "yes" >&6; } | ||
23719 | |||
23720 | have_dep="yes" | ||
23721 | requirement="xcb xcb-shm xcb-image pixman-1" | ||
23722 | evas_engine_software_xcb_cflags="${XCB_CFLAGS}" | ||
23723 | evas_engine_software_xcb_libs="${XCB_LIBS}" | ||
23724 | |||
23725 | fi | ||
23726 | |||
23727 | |||
23728 | |||
23729 | |||
23730 | if test "x${want_engine}" = "xstatic" ; then | ||
23731 | requirement_evas="${requirement} ${requirement_evas}" | ||
23732 | fi | ||
23733 | |||
23734 | if test "x${have_dep}" = "xyes" ; then | ||
23735 | have_engine="yes" | ||
23736 | else | ||
23737 | have_engine="no" | ||
23738 | fi | ||
23739 | |||
23740 | |||
23741 | fi | ||
23742 | |||
23743 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
23744 | as_fn_error $? "Software XCB dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
23745 | fi | ||
23746 | |||
23747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Software XCB rendering backend will be built" >&5 | ||
23748 | $as_echo_n "checking whether Software XCB rendering backend will be built... " >&6; } | ||
23749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
23750 | $as_echo "${have_engine}" >&6; } | ||
23751 | |||
23752 | if test "x${have_engine}" = "xyes" ; then | ||
23753 | if test "x${want_engine}" = "xstatic" ; then | ||
23754 | have_evas_engine_software_xcb="static" | ||
23755 | want_static_engine="yes" | ||
23756 | else | ||
23757 | have_evas_engine_software_xcb="yes" | ||
23758 | fi | ||
23759 | fi | ||
23760 | |||
23761 | if test "x${have_engine}" = "xyes" ; then | ||
23762 | |||
23763 | $as_echo "#define BUILD_ENGINE_SOFTWARE_XCB 1" >>confdefs.h | ||
23764 | |||
23765 | fi | ||
23766 | |||
23767 | if test "x${have_engine}" = "xyes"; then | ||
23768 | BUILD_ENGINE_SOFTWARE_XCB_TRUE= | ||
23769 | BUILD_ENGINE_SOFTWARE_XCB_FALSE='#' | ||
23770 | else | ||
23771 | BUILD_ENGINE_SOFTWARE_XCB_TRUE='#' | ||
23772 | BUILD_ENGINE_SOFTWARE_XCB_FALSE= | ||
23773 | fi | ||
23774 | |||
23775 | |||
23776 | if test "x${want_static_engine}" = "xyes" ; then | ||
23777 | |||
23778 | $as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_XCB 1" >>confdefs.h | ||
23779 | |||
23780 | have_static_module="yes" | ||
23781 | fi | ||
23782 | |||
23783 | if test "x${want_static_engine}" = "xyes"; then | ||
23784 | EVAS_STATIC_BUILD_SOFTWARE_XCB_TRUE= | ||
23785 | EVAS_STATIC_BUILD_SOFTWARE_XCB_FALSE='#' | ||
23786 | else | ||
23787 | EVAS_STATIC_BUILD_SOFTWARE_XCB_TRUE='#' | ||
23788 | EVAS_STATIC_BUILD_SOFTWARE_XCB_FALSE= | ||
23789 | fi | ||
23790 | |||
23791 | |||
23792 | |||
23793 | |||
23794 | |||
23795 | |||
23796 | if test "x$have_evas_engine_software_xcb" != "xno" ; then | ||
23797 | build_software_xcb="yes" | ||
23798 | have_evas_engine_software_x11="yes" | ||
23799 | |||
23800 | cat >>confdefs.h <<_ACEOF | ||
23801 | #define BUILD_ENGINE_SOFTWARE_X11 1 | ||
23802 | _ACEOF | ||
23803 | |||
23804 | |||
23805 | cat >>confdefs.h <<_ACEOF | ||
23806 | #define BUILD_ENGINE_SOFTWARE_XCB 1 | ||
23807 | _ACEOF | ||
23808 | |||
23809 | fi | ||
23810 | else | ||
23811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
23812 | $as_echo "no" >&6; } | ||
23813 | build_software_xcb="no" | ||
23814 | fi | ||
23815 | |||
23816 | ## If we are not building XCB, then we can build XLib ## | ||
23817 | |||
23818 | if test "x$build_software_xcb" = "xno" ; then | ||
23819 | |||
23820 | |||
23821 | |||
23822 | want_engine="${want_evas_engine_software_xlib}" | ||
23823 | want_static_engine="no" | ||
23824 | have_engine="no" | ||
23825 | have_evas_engine_software_xlib="no" | ||
23826 | |||
23827 | # Check whether --enable-software-xlib was given. | ||
23828 | if test "${enable_software_xlib+set}" = set; then : | ||
23829 | enableval=$enable_software_xlib; | ||
23830 | if test "x${enableval}" = "xyes" ; then | ||
23831 | want_engine="yes" | ||
23832 | else | ||
23833 | if test "x${enableval}" = "xstatic" ; then | ||
23834 | want_engine="static" | ||
23835 | else | ||
23836 | want_engine="no" | ||
23837 | fi | ||
23838 | fi | ||
23839 | |||
23840 | fi | ||
23841 | |||
23842 | |||
23843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Software Xlib rendering backend" >&5 | ||
23844 | $as_echo_n "checking whether to enable Software Xlib rendering backend... " >&6; } | ||
23845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
23846 | $as_echo "${want_engine}" >&6; } | ||
23847 | |||
23848 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
23849 | |||
23850 | |||
23851 | have_dep="no" | ||
23852 | evas_engine_software_xlib_cflags="" | ||
23853 | evas_engine_software_xlib_libs="" | ||
23854 | |||
23855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 | ||
23856 | $as_echo_n "checking for X... " >&6; } | ||
23857 | |||
23858 | |||
23859 | # Check whether --with-x was given. | ||
23860 | if test "${with_x+set}" = set; then : | ||
23861 | withval=$with_x; | ||
23862 | fi | ||
23863 | |||
23864 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | ||
23865 | if test "x$with_x" = xno; then | ||
23866 | # The user explicitly disabled X. | ||
23867 | have_x=disabled | ||
23868 | else | ||
23869 | case $x_includes,$x_libraries in #( | ||
23870 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #( | ||
23871 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : | ||
23872 | $as_echo_n "(cached) " >&6 | ||
23873 | else | ||
23874 | # One or both of the vars are not set, and there is no cached value. | ||
23875 | ac_x_includes=no ac_x_libraries=no | ||
23876 | rm -f -r conftest.dir | ||
23877 | if mkdir conftest.dir; then | ||
23878 | cd conftest.dir | ||
23879 | cat >Imakefile <<'_ACEOF' | ||
23880 | incroot: | ||
23881 | @echo incroot='${INCROOT}' | ||
23882 | usrlibdir: | ||
23883 | @echo usrlibdir='${USRLIBDIR}' | ||
23884 | libdir: | ||
23885 | @echo libdir='${LIBDIR}' | ||
23886 | _ACEOF | ||
23887 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | ||
23888 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | ||
23889 | for ac_var in incroot usrlibdir libdir; do | ||
23890 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | ||
23891 | done | ||
23892 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | ||
23893 | for ac_extension in a so sl dylib la dll; do | ||
23894 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && | ||
23895 | test -f "$ac_im_libdir/libX11.$ac_extension"; then | ||
23896 | ac_im_usrlibdir=$ac_im_libdir; break | ||
23897 | fi | ||
23898 | done | ||
23899 | # Screen out bogus values from the imake configuration. They are | ||
23900 | # bogus both because they are the default anyway, and because | ||
23901 | # using them would break gcc on systems where it needs fixed includes. | ||
23902 | case $ac_im_incroot in | ||
23903 | /usr/include) ac_x_includes= ;; | ||
23904 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | ||
23905 | esac | ||
23906 | case $ac_im_usrlibdir in | ||
23907 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; | ||
23908 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | ||
23909 | esac | ||
23910 | fi | ||
23911 | cd .. | ||
23912 | rm -f -r conftest.dir | ||
23913 | fi | ||
23914 | |||
23915 | # Standard set of common directories for X headers. | ||
23916 | # Check X11 before X11Rn because it is often a symlink to the current release. | ||
23917 | ac_x_header_dirs=' | ||
23918 | /usr/X11/include | ||
23919 | /usr/X11R7/include | ||
23920 | /usr/X11R6/include | ||
23921 | /usr/X11R5/include | ||
23922 | /usr/X11R4/include | ||
23923 | |||
23924 | /usr/include/X11 | ||
23925 | /usr/include/X11R7 | ||
23926 | /usr/include/X11R6 | ||
23927 | /usr/include/X11R5 | ||
23928 | /usr/include/X11R4 | ||
23929 | |||
23930 | /usr/local/X11/include | ||
23931 | /usr/local/X11R7/include | ||
23932 | /usr/local/X11R6/include | ||
23933 | /usr/local/X11R5/include | ||
23934 | /usr/local/X11R4/include | ||
23935 | |||
23936 | /usr/local/include/X11 | ||
23937 | /usr/local/include/X11R7 | ||
23938 | /usr/local/include/X11R6 | ||
23939 | /usr/local/include/X11R5 | ||
23940 | /usr/local/include/X11R4 | ||
23941 | |||
23942 | /usr/X386/include | ||
23943 | /usr/x386/include | ||
23944 | /usr/XFree86/include/X11 | ||
23945 | |||
23946 | /usr/include | ||
23947 | /usr/local/include | ||
23948 | /usr/unsupported/include | ||
23949 | /usr/athena/include | ||
23950 | /usr/local/x11r5/include | ||
23951 | /usr/lpp/Xamples/include | ||
23952 | |||
23953 | /usr/openwin/include | ||
23954 | /usr/openwin/share/include' | ||
23955 | |||
23956 | if test "$ac_x_includes" = no; then | ||
23957 | # Guess where to find include files, by looking for Xlib.h. | ||
23958 | # First, try using that file with no special directory specified. | ||
23959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23960 | /* end confdefs.h. */ | ||
23961 | #include <X11/Xlib.h> | ||
23962 | _ACEOF | ||
23963 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
23964 | # We can compile using X headers with no special include directory. | ||
23965 | ac_x_includes= | ||
23966 | else | ||
23967 | for ac_dir in $ac_x_header_dirs; do | ||
23968 | if test -r "$ac_dir/X11/Xlib.h"; then | ||
23969 | ac_x_includes=$ac_dir | ||
23970 | break | ||
23971 | fi | ||
23972 | done | ||
23973 | fi | ||
23974 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
23975 | fi # $ac_x_includes = no | ||
23976 | |||
23977 | if test "$ac_x_libraries" = no; then | ||
23978 | # Check for the libraries. | ||
23979 | # See if we find them without any special options. | ||
23980 | # Don't add to $LIBS permanently. | ||
23981 | ac_save_LIBS=$LIBS | ||
23982 | LIBS="-lX11 $LIBS" | ||
23983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
23984 | /* end confdefs.h. */ | ||
23985 | #include <X11/Xlib.h> | ||
23986 | int | ||
23987 | main () | ||
23988 | { | ||
23989 | XrmInitialize () | ||
23990 | ; | ||
23991 | return 0; | ||
23992 | } | ||
23993 | _ACEOF | ||
23994 | if ac_fn_c_try_link "$LINENO"; then : | ||
23995 | LIBS=$ac_save_LIBS | ||
23996 | # We can link X programs with no special library path. | ||
23997 | ac_x_libraries= | ||
23998 | else | ||
23999 | LIBS=$ac_save_LIBS | ||
24000 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | ||
24001 | do | ||
24002 | # Don't even attempt the hair of trying to link an X program! | ||
24003 | for ac_extension in a so sl dylib la dll; do | ||
24004 | if test -r "$ac_dir/libX11.$ac_extension"; then | ||
24005 | ac_x_libraries=$ac_dir | ||
24006 | break 2 | ||
24007 | fi | ||
24008 | done | ||
24009 | done | ||
24010 | fi | ||
24011 | rm -f core conftest.err conftest.$ac_objext \ | ||
24012 | conftest$ac_exeext conftest.$ac_ext | ||
24013 | fi # $ac_x_libraries = no | ||
24014 | |||
24015 | case $ac_x_includes,$ac_x_libraries in #( | ||
24016 | no,* | *,no | *\'*) | ||
24017 | # Didn't find X, or a directory has "'" in its name. | ||
24018 | ac_cv_have_x="have_x=no";; #( | ||
24019 | *) | ||
24020 | # Record where we found X for the cache. | ||
24021 | ac_cv_have_x="have_x=yes\ | ||
24022 | ac_x_includes='$ac_x_includes'\ | ||
24023 | ac_x_libraries='$ac_x_libraries'" | ||
24024 | esac | ||
24025 | fi | ||
24026 | ;; #( | ||
24027 | *) have_x=yes;; | ||
24028 | esac | ||
24029 | eval "$ac_cv_have_x" | ||
24030 | fi # $with_x != no | ||
24031 | |||
24032 | if test "$have_x" != yes; then | ||
24033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 | ||
24034 | $as_echo "$have_x" >&6; } | ||
24035 | no_x=yes | ||
24036 | else | ||
24037 | # If each of the values was on the command line, it overrides each guess. | ||
24038 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | ||
24039 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | ||
24040 | # Update the cache value to reflect the command line values. | ||
24041 | ac_cv_have_x="have_x=yes\ | ||
24042 | ac_x_includes='$x_includes'\ | ||
24043 | ac_x_libraries='$x_libraries'" | ||
24044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 | ||
24045 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } | ||
24046 | fi | ||
24047 | |||
24048 | if test "$no_x" = yes; then | ||
24049 | # Not all programs may use this symbol, but it does not hurt to define it. | ||
24050 | |||
24051 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h | ||
24052 | |||
24053 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | ||
24054 | else | ||
24055 | if test -n "$x_includes"; then | ||
24056 | X_CFLAGS="$X_CFLAGS -I$x_includes" | ||
24057 | fi | ||
24058 | |||
24059 | # It would also be nice to do this for all -L options, not just this one. | ||
24060 | if test -n "$x_libraries"; then | ||
24061 | X_LIBS="$X_LIBS -L$x_libraries" | ||
24062 | # For Solaris; some versions of Sun CC require a space after -R and | ||
24063 | # others require no space. Words are not sufficient . . . . | ||
24064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 | ||
24065 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } | ||
24066 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | ||
24067 | ac_xsave_c_werror_flag=$ac_c_werror_flag | ||
24068 | ac_c_werror_flag=yes | ||
24069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24070 | /* end confdefs.h. */ | ||
24071 | |||
24072 | int | ||
24073 | main () | ||
24074 | { | ||
24075 | |||
24076 | ; | ||
24077 | return 0; | ||
24078 | } | ||
24079 | _ACEOF | ||
24080 | if ac_fn_c_try_link "$LINENO"; then : | ||
24081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
24082 | $as_echo "no" >&6; } | ||
24083 | X_LIBS="$X_LIBS -R$x_libraries" | ||
24084 | else | ||
24085 | LIBS="$ac_xsave_LIBS -R $x_libraries" | ||
24086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24087 | /* end confdefs.h. */ | ||
24088 | |||
24089 | int | ||
24090 | main () | ||
24091 | { | ||
24092 | |||
24093 | ; | ||
24094 | return 0; | ||
24095 | } | ||
24096 | _ACEOF | ||
24097 | if ac_fn_c_try_link "$LINENO"; then : | ||
24098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
24099 | $as_echo "yes" >&6; } | ||
24100 | X_LIBS="$X_LIBS -R $x_libraries" | ||
24101 | else | ||
24102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 | ||
24103 | $as_echo "neither works" >&6; } | ||
24104 | fi | ||
24105 | rm -f core conftest.err conftest.$ac_objext \ | ||
24106 | conftest$ac_exeext conftest.$ac_ext | ||
24107 | fi | ||
24108 | rm -f core conftest.err conftest.$ac_objext \ | ||
24109 | conftest$ac_exeext conftest.$ac_ext | ||
24110 | ac_c_werror_flag=$ac_xsave_c_werror_flag | ||
24111 | LIBS=$ac_xsave_LIBS | ||
24112 | fi | ||
24113 | |||
24114 | # Check for system-dependent libraries X programs must link with. | ||
24115 | # Do this before checking for the system-independent R6 libraries | ||
24116 | # (-lICE), since we may need -lsocket or whatever for X linking. | ||
24117 | |||
24118 | if test "$ISC" = yes; then | ||
24119 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | ||
24120 | else | ||
24121 | # Martyn Johnson says this is needed for Ultrix, if the X | ||
24122 | # libraries were built with DECnet support. And Karl Berry says | ||
24123 | # the Alpha needs dnet_stub (dnet does not exist). | ||
24124 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | ||
24125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24126 | /* end confdefs.h. */ | ||
24127 | |||
24128 | /* Override any GCC internal prototype to avoid an error. | ||
24129 | Use char because int might match the return type of a GCC | ||
24130 | builtin and then its argument prototype would still apply. */ | ||
24131 | #ifdef __cplusplus | ||
24132 | extern "C" | ||
24133 | #endif | ||
24134 | char XOpenDisplay (); | ||
24135 | int | ||
24136 | main () | ||
24137 | { | ||
24138 | return XOpenDisplay (); | ||
24139 | ; | ||
24140 | return 0; | ||
24141 | } | ||
24142 | _ACEOF | ||
24143 | if ac_fn_c_try_link "$LINENO"; then : | ||
24144 | |||
24145 | else | ||
24146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 | ||
24147 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } | ||
24148 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : | ||
24149 | $as_echo_n "(cached) " >&6 | ||
24150 | else | ||
24151 | ac_check_lib_save_LIBS=$LIBS | ||
24152 | LIBS="-ldnet $LIBS" | ||
24153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24154 | /* end confdefs.h. */ | ||
24155 | |||
24156 | /* Override any GCC internal prototype to avoid an error. | ||
24157 | Use char because int might match the return type of a GCC | ||
24158 | builtin and then its argument prototype would still apply. */ | ||
24159 | #ifdef __cplusplus | ||
24160 | extern "C" | ||
24161 | #endif | ||
24162 | char dnet_ntoa (); | ||
24163 | int | ||
24164 | main () | ||
24165 | { | ||
24166 | return dnet_ntoa (); | ||
24167 | ; | ||
24168 | return 0; | ||
24169 | } | ||
24170 | _ACEOF | ||
24171 | if ac_fn_c_try_link "$LINENO"; then : | ||
24172 | ac_cv_lib_dnet_dnet_ntoa=yes | ||
24173 | else | ||
24174 | ac_cv_lib_dnet_dnet_ntoa=no | ||
24175 | fi | ||
24176 | rm -f core conftest.err conftest.$ac_objext \ | ||
24177 | conftest$ac_exeext conftest.$ac_ext | ||
24178 | LIBS=$ac_check_lib_save_LIBS | ||
24179 | fi | ||
24180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | ||
24181 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } | ||
24182 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : | ||
24183 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | ||
24184 | fi | ||
24185 | |||
24186 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | ||
24187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 | ||
24188 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } | ||
24189 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : | ||
24190 | $as_echo_n "(cached) " >&6 | ||
24191 | else | ||
24192 | ac_check_lib_save_LIBS=$LIBS | ||
24193 | LIBS="-ldnet_stub $LIBS" | ||
24194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24195 | /* end confdefs.h. */ | ||
24196 | |||
24197 | /* Override any GCC internal prototype to avoid an error. | ||
24198 | Use char because int might match the return type of a GCC | ||
24199 | builtin and then its argument prototype would still apply. */ | ||
24200 | #ifdef __cplusplus | ||
24201 | extern "C" | ||
24202 | #endif | ||
24203 | char dnet_ntoa (); | ||
24204 | int | ||
24205 | main () | ||
24206 | { | ||
24207 | return dnet_ntoa (); | ||
24208 | ; | ||
24209 | return 0; | ||
24210 | } | ||
24211 | _ACEOF | ||
24212 | if ac_fn_c_try_link "$LINENO"; then : | ||
24213 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | ||
24214 | else | ||
24215 | ac_cv_lib_dnet_stub_dnet_ntoa=no | ||
24216 | fi | ||
24217 | rm -f core conftest.err conftest.$ac_objext \ | ||
24218 | conftest$ac_exeext conftest.$ac_ext | ||
24219 | LIBS=$ac_check_lib_save_LIBS | ||
24220 | fi | ||
24221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | ||
24222 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } | ||
24223 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then : | ||
24224 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | ||
24225 | fi | ||
24226 | |||
24227 | fi | ||
24228 | fi | ||
24229 | rm -f core conftest.err conftest.$ac_objext \ | ||
24230 | conftest$ac_exeext conftest.$ac_ext | ||
24231 | LIBS="$ac_xsave_LIBS" | ||
24232 | |||
24233 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | ||
24234 | # to get the SysV transport functions. | ||
24235 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | ||
24236 | # needs -lnsl. | ||
24237 | # The nsl library prevents programs from opening the X display | ||
24238 | # on Irix 5.2, according to T.E. Dickey. | ||
24239 | # The functions gethostbyname, getservbyname, and inet_addr are | ||
24240 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | ||
24241 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | ||
24242 | if test "x$ac_cv_func_gethostbyname" = x""yes; then : | ||
24243 | |||
24244 | fi | ||
24245 | |||
24246 | if test $ac_cv_func_gethostbyname = no; then | ||
24247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 | ||
24248 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } | ||
24249 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : | ||
24250 | $as_echo_n "(cached) " >&6 | ||
24251 | else | ||
24252 | ac_check_lib_save_LIBS=$LIBS | ||
24253 | LIBS="-lnsl $LIBS" | ||
24254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24255 | /* end confdefs.h. */ | ||
24256 | |||
24257 | /* Override any GCC internal prototype to avoid an error. | ||
24258 | Use char because int might match the return type of a GCC | ||
24259 | builtin and then its argument prototype would still apply. */ | ||
24260 | #ifdef __cplusplus | ||
24261 | extern "C" | ||
24262 | #endif | ||
24263 | char gethostbyname (); | ||
24264 | int | ||
24265 | main () | ||
24266 | { | ||
24267 | return gethostbyname (); | ||
24268 | ; | ||
24269 | return 0; | ||
24270 | } | ||
24271 | _ACEOF | ||
24272 | if ac_fn_c_try_link "$LINENO"; then : | ||
24273 | ac_cv_lib_nsl_gethostbyname=yes | ||
24274 | else | ||
24275 | ac_cv_lib_nsl_gethostbyname=no | ||
24276 | fi | ||
24277 | rm -f core conftest.err conftest.$ac_objext \ | ||
24278 | conftest$ac_exeext conftest.$ac_ext | ||
24279 | LIBS=$ac_check_lib_save_LIBS | ||
24280 | fi | ||
24281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 | ||
24282 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } | ||
24283 | if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : | ||
24284 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | ||
24285 | fi | ||
24286 | |||
24287 | if test $ac_cv_lib_nsl_gethostbyname = no; then | ||
24288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 | ||
24289 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } | ||
24290 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : | ||
24291 | $as_echo_n "(cached) " >&6 | ||
24292 | else | ||
24293 | ac_check_lib_save_LIBS=$LIBS | ||
24294 | LIBS="-lbsd $LIBS" | ||
24295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24296 | /* end confdefs.h. */ | ||
24297 | |||
24298 | /* Override any GCC internal prototype to avoid an error. | ||
24299 | Use char because int might match the return type of a GCC | ||
24300 | builtin and then its argument prototype would still apply. */ | ||
24301 | #ifdef __cplusplus | ||
24302 | extern "C" | ||
24303 | #endif | ||
24304 | char gethostbyname (); | ||
24305 | int | ||
24306 | main () | ||
24307 | { | ||
24308 | return gethostbyname (); | ||
24309 | ; | ||
24310 | return 0; | ||
24311 | } | ||
24312 | _ACEOF | ||
24313 | if ac_fn_c_try_link "$LINENO"; then : | ||
24314 | ac_cv_lib_bsd_gethostbyname=yes | ||
24315 | else | ||
24316 | ac_cv_lib_bsd_gethostbyname=no | ||
24317 | fi | ||
24318 | rm -f core conftest.err conftest.$ac_objext \ | ||
24319 | conftest$ac_exeext conftest.$ac_ext | ||
24320 | LIBS=$ac_check_lib_save_LIBS | ||
24321 | fi | ||
24322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 | ||
24323 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } | ||
24324 | if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : | ||
24325 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | ||
24326 | fi | ||
24327 | |||
24328 | fi | ||
24329 | fi | ||
24330 | |||
24331 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | ||
24332 | # socket/setsockopt and other routines are undefined under SCO ODT | ||
24333 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | ||
24334 | # on later versions), says Simon Leinen: it contains gethostby* | ||
24335 | # variants that don't use the name server (or something). -lsocket | ||
24336 | # must be given before -lnsl if both are needed. We assume that | ||
24337 | # if connect needs -lnsl, so does gethostbyname. | ||
24338 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" | ||
24339 | if test "x$ac_cv_func_connect" = x""yes; then : | ||
24340 | |||
24341 | fi | ||
24342 | |||
24343 | if test $ac_cv_func_connect = no; then | ||
24344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 | ||
24345 | $as_echo_n "checking for connect in -lsocket... " >&6; } | ||
24346 | if test "${ac_cv_lib_socket_connect+set}" = set; then : | ||
24347 | $as_echo_n "(cached) " >&6 | ||
24348 | else | ||
24349 | ac_check_lib_save_LIBS=$LIBS | ||
24350 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | ||
24351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24352 | /* end confdefs.h. */ | ||
24353 | |||
24354 | /* Override any GCC internal prototype to avoid an error. | ||
24355 | Use char because int might match the return type of a GCC | ||
24356 | builtin and then its argument prototype would still apply. */ | ||
24357 | #ifdef __cplusplus | ||
24358 | extern "C" | ||
24359 | #endif | ||
24360 | char connect (); | ||
24361 | int | ||
24362 | main () | ||
24363 | { | ||
24364 | return connect (); | ||
24365 | ; | ||
24366 | return 0; | ||
24367 | } | ||
24368 | _ACEOF | ||
24369 | if ac_fn_c_try_link "$LINENO"; then : | ||
24370 | ac_cv_lib_socket_connect=yes | ||
24371 | else | ||
24372 | ac_cv_lib_socket_connect=no | ||
24373 | fi | ||
24374 | rm -f core conftest.err conftest.$ac_objext \ | ||
24375 | conftest$ac_exeext conftest.$ac_ext | ||
24376 | LIBS=$ac_check_lib_save_LIBS | ||
24377 | fi | ||
24378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 | ||
24379 | $as_echo "$ac_cv_lib_socket_connect" >&6; } | ||
24380 | if test "x$ac_cv_lib_socket_connect" = x""yes; then : | ||
24381 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | ||
24382 | fi | ||
24383 | |||
24384 | fi | ||
24385 | |||
24386 | # Guillermo Gomez says -lposix is necessary on A/UX. | ||
24387 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" | ||
24388 | if test "x$ac_cv_func_remove" = x""yes; then : | ||
24389 | |||
24390 | fi | ||
24391 | |||
24392 | if test $ac_cv_func_remove = no; then | ||
24393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 | ||
24394 | $as_echo_n "checking for remove in -lposix... " >&6; } | ||
24395 | if test "${ac_cv_lib_posix_remove+set}" = set; then : | ||
24396 | $as_echo_n "(cached) " >&6 | ||
24397 | else | ||
24398 | ac_check_lib_save_LIBS=$LIBS | ||
24399 | LIBS="-lposix $LIBS" | ||
24400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24401 | /* end confdefs.h. */ | ||
24402 | |||
24403 | /* Override any GCC internal prototype to avoid an error. | ||
24404 | Use char because int might match the return type of a GCC | ||
24405 | builtin and then its argument prototype would still apply. */ | ||
24406 | #ifdef __cplusplus | ||
24407 | extern "C" | ||
24408 | #endif | ||
24409 | char remove (); | ||
24410 | int | ||
24411 | main () | ||
24412 | { | ||
24413 | return remove (); | ||
24414 | ; | ||
24415 | return 0; | ||
24416 | } | ||
24417 | _ACEOF | ||
24418 | if ac_fn_c_try_link "$LINENO"; then : | ||
24419 | ac_cv_lib_posix_remove=yes | ||
24420 | else | ||
24421 | ac_cv_lib_posix_remove=no | ||
24422 | fi | ||
24423 | rm -f core conftest.err conftest.$ac_objext \ | ||
24424 | conftest$ac_exeext conftest.$ac_ext | ||
24425 | LIBS=$ac_check_lib_save_LIBS | ||
24426 | fi | ||
24427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 | ||
24428 | $as_echo "$ac_cv_lib_posix_remove" >&6; } | ||
24429 | if test "x$ac_cv_lib_posix_remove" = x""yes; then : | ||
24430 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | ||
24431 | fi | ||
24432 | |||
24433 | fi | ||
24434 | |||
24435 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | ||
24436 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" | ||
24437 | if test "x$ac_cv_func_shmat" = x""yes; then : | ||
24438 | |||
24439 | fi | ||
24440 | |||
24441 | if test $ac_cv_func_shmat = no; then | ||
24442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 | ||
24443 | $as_echo_n "checking for shmat in -lipc... " >&6; } | ||
24444 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then : | ||
24445 | $as_echo_n "(cached) " >&6 | ||
24446 | else | ||
24447 | ac_check_lib_save_LIBS=$LIBS | ||
24448 | LIBS="-lipc $LIBS" | ||
24449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24450 | /* end confdefs.h. */ | ||
24451 | |||
24452 | /* Override any GCC internal prototype to avoid an error. | ||
24453 | Use char because int might match the return type of a GCC | ||
24454 | builtin and then its argument prototype would still apply. */ | ||
24455 | #ifdef __cplusplus | ||
24456 | extern "C" | ||
24457 | #endif | ||
24458 | char shmat (); | ||
24459 | int | ||
24460 | main () | ||
24461 | { | ||
24462 | return shmat (); | ||
24463 | ; | ||
24464 | return 0; | ||
24465 | } | ||
24466 | _ACEOF | ||
24467 | if ac_fn_c_try_link "$LINENO"; then : | ||
24468 | ac_cv_lib_ipc_shmat=yes | ||
24469 | else | ||
24470 | ac_cv_lib_ipc_shmat=no | ||
24471 | fi | ||
24472 | rm -f core conftest.err conftest.$ac_objext \ | ||
24473 | conftest$ac_exeext conftest.$ac_ext | ||
24474 | LIBS=$ac_check_lib_save_LIBS | ||
24475 | fi | ||
24476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 | ||
24477 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } | ||
24478 | if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : | ||
24479 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | ||
24480 | fi | ||
24481 | |||
24482 | fi | ||
24483 | fi | ||
24484 | |||
24485 | # Check for libraries that X11R6 Xt/Xaw programs need. | ||
24486 | ac_save_LDFLAGS=$LDFLAGS | ||
24487 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | ||
24488 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | ||
24489 | # check for ICE first), but we must link in the order -lSM -lICE or | ||
24490 | # we get undefined symbols. So assume we have SM if we have ICE. | ||
24491 | # These have to be linked with before -lX11, unlike the other | ||
24492 | # libraries we check for below, so use a different variable. | ||
24493 | # John Interrante, Karl Berry | ||
24494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 | ||
24495 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } | ||
24496 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : | ||
24497 | $as_echo_n "(cached) " >&6 | ||
24498 | else | ||
24499 | ac_check_lib_save_LIBS=$LIBS | ||
24500 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | ||
24501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24502 | /* end confdefs.h. */ | ||
24503 | |||
24504 | /* Override any GCC internal prototype to avoid an error. | ||
24505 | Use char because int might match the return type of a GCC | ||
24506 | builtin and then its argument prototype would still apply. */ | ||
24507 | #ifdef __cplusplus | ||
24508 | extern "C" | ||
24509 | #endif | ||
24510 | char IceConnectionNumber (); | ||
24511 | int | ||
24512 | main () | ||
24513 | { | ||
24514 | return IceConnectionNumber (); | ||
24515 | ; | ||
24516 | return 0; | ||
24517 | } | ||
24518 | _ACEOF | ||
24519 | if ac_fn_c_try_link "$LINENO"; then : | ||
24520 | ac_cv_lib_ICE_IceConnectionNumber=yes | ||
24521 | else | ||
24522 | ac_cv_lib_ICE_IceConnectionNumber=no | ||
24523 | fi | ||
24524 | rm -f core conftest.err conftest.$ac_objext \ | ||
24525 | conftest$ac_exeext conftest.$ac_ext | ||
24526 | LIBS=$ac_check_lib_save_LIBS | ||
24527 | fi | ||
24528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | ||
24529 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } | ||
24530 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : | ||
24531 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | ||
24532 | fi | ||
24533 | |||
24534 | LDFLAGS=$ac_save_LDFLAGS | ||
24535 | |||
24536 | fi | ||
24537 | |||
24538 | |||
24539 | ac_fn_c_check_header_mongrel "$LINENO" "X11/X.h" "ac_cv_header_X11_X_h" "$ac_includes_default" | ||
24540 | if test "x$ac_cv_header_X11_X_h" = x""yes; then : | ||
24541 | have_dep="yes" | ||
24542 | fi | ||
24543 | |||
24544 | |||
24545 | |||
24546 | if test "x${have_dep}" = "xyes" ; then | ||
24547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCreateImage in -lX11" >&5 | ||
24548 | $as_echo_n "checking for XCreateImage in -lX11... " >&6; } | ||
24549 | if test "${ac_cv_lib_X11_XCreateImage+set}" = set; then : | ||
24550 | $as_echo_n "(cached) " >&6 | ||
24551 | else | ||
24552 | ac_check_lib_save_LIBS=$LIBS | ||
24553 | LIBS="-lX11 $LIBS" | ||
24554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24555 | /* end confdefs.h. */ | ||
24556 | |||
24557 | /* Override any GCC internal prototype to avoid an error. | ||
24558 | Use char because int might match the return type of a GCC | ||
24559 | builtin and then its argument prototype would still apply. */ | ||
24560 | #ifdef __cplusplus | ||
24561 | extern "C" | ||
24562 | #endif | ||
24563 | char XCreateImage (); | ||
24564 | int | ||
24565 | main () | ||
24566 | { | ||
24567 | return XCreateImage (); | ||
24568 | ; | ||
24569 | return 0; | ||
24570 | } | ||
24571 | _ACEOF | ||
24572 | if ac_fn_c_try_link "$LINENO"; then : | ||
24573 | ac_cv_lib_X11_XCreateImage=yes | ||
24574 | else | ||
24575 | ac_cv_lib_X11_XCreateImage=no | ||
24576 | fi | ||
24577 | rm -f core conftest.err conftest.$ac_objext \ | ||
24578 | conftest$ac_exeext conftest.$ac_ext | ||
24579 | LIBS=$ac_check_lib_save_LIBS | ||
24580 | fi | ||
24581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XCreateImage" >&5 | ||
24582 | $as_echo "$ac_cv_lib_X11_XCreateImage" >&6; } | ||
24583 | if test "x$ac_cv_lib_X11_XCreateImage" = x""yes; then : | ||
24584 | have_dep="yes" | ||
24585 | else | ||
24586 | have_dep="no" | ||
24587 | fi | ||
24588 | |||
24589 | fi | ||
24590 | |||
24591 | if test "x${have_dep}" = "xyes" ; then | ||
24592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmCreateImage in -lXext" >&5 | ||
24593 | $as_echo_n "checking for XShmCreateImage in -lXext... " >&6; } | ||
24594 | if test "${ac_cv_lib_Xext_XShmCreateImage+set}" = set; then : | ||
24595 | $as_echo_n "(cached) " >&6 | ||
24596 | else | ||
24597 | ac_check_lib_save_LIBS=$LIBS | ||
24598 | LIBS="-lXext $LIBS" | ||
24599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24600 | /* end confdefs.h. */ | ||
24601 | |||
24602 | /* Override any GCC internal prototype to avoid an error. | ||
24603 | Use char because int might match the return type of a GCC | ||
24604 | builtin and then its argument prototype would still apply. */ | ||
24605 | #ifdef __cplusplus | ||
24606 | extern "C" | ||
24607 | #endif | ||
24608 | char XShmCreateImage (); | ||
24609 | int | ||
24610 | main () | ||
24611 | { | ||
24612 | return XShmCreateImage (); | ||
24613 | ; | ||
24614 | return 0; | ||
24615 | } | ||
24616 | _ACEOF | ||
24617 | if ac_fn_c_try_link "$LINENO"; then : | ||
24618 | ac_cv_lib_Xext_XShmCreateImage=yes | ||
24619 | else | ||
24620 | ac_cv_lib_Xext_XShmCreateImage=no | ||
24621 | fi | ||
24622 | rm -f core conftest.err conftest.$ac_objext \ | ||
24623 | conftest$ac_exeext conftest.$ac_ext | ||
24624 | LIBS=$ac_check_lib_save_LIBS | ||
24625 | fi | ||
24626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmCreateImage" >&5 | ||
24627 | $as_echo "$ac_cv_lib_Xext_XShmCreateImage" >&6; } | ||
24628 | if test "x$ac_cv_lib_Xext_XShmCreateImage" = x""yes; then : | ||
24629 | have_dep="yes" | ||
24630 | else | ||
24631 | have_dep="no" | ||
24632 | fi | ||
24633 | |||
24634 | fi | ||
24635 | |||
24636 | if test "x${have_dep}" = "xyes" ; then | ||
24637 | if test "xno" = "xyes" ; then | ||
24638 | x_libs="${x_libs} -lX11 -lXext" | ||
24639 | else | ||
24640 | x_dir=${x_dir:-/usr/X11R6} | ||
24641 | x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}} | ||
24642 | x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext" | ||
24643 | fi | ||
24644 | evas_engine_software_xlib_cflags="${x_cflags}" | ||
24645 | evas_engine_software_xlib_libs="${x_libs}" | ||
24646 | fi | ||
24647 | |||
24648 | |||
24649 | |||
24650 | |||
24651 | if test "x${have_dep}" = "xyes" ; then | ||
24652 | have_engine="yes" | ||
24653 | else | ||
24654 | have_engine="no" | ||
24655 | fi | ||
24656 | |||
24657 | |||
24658 | fi | ||
24659 | |||
24660 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
24661 | as_fn_error $? "Software Xlib dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
24662 | fi | ||
24663 | |||
24664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Software Xlib rendering backend will be built" >&5 | ||
24665 | $as_echo_n "checking whether Software Xlib rendering backend will be built... " >&6; } | ||
24666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
24667 | $as_echo "${have_engine}" >&6; } | ||
24668 | |||
24669 | if test "x${have_engine}" = "xyes" ; then | ||
24670 | if test "x${want_engine}" = "xstatic" ; then | ||
24671 | have_evas_engine_software_xlib="static" | ||
24672 | want_static_engine="yes" | ||
24673 | else | ||
24674 | have_evas_engine_software_xlib="yes" | ||
24675 | fi | ||
24676 | fi | ||
24677 | |||
24678 | if test "x${have_engine}" = "xyes" ; then | ||
24679 | |||
24680 | $as_echo "#define BUILD_ENGINE_SOFTWARE_XLIB 1" >>confdefs.h | ||
24681 | |||
24682 | fi | ||
24683 | |||
24684 | if test "x${have_engine}" = "xyes"; then | ||
24685 | BUILD_ENGINE_SOFTWARE_XLIB_TRUE= | ||
24686 | BUILD_ENGINE_SOFTWARE_XLIB_FALSE='#' | ||
24687 | else | ||
24688 | BUILD_ENGINE_SOFTWARE_XLIB_TRUE='#' | ||
24689 | BUILD_ENGINE_SOFTWARE_XLIB_FALSE= | ||
24690 | fi | ||
24691 | |||
24692 | |||
24693 | if test "x${want_static_engine}" = "xyes" ; then | ||
24694 | |||
24695 | $as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_XLIB 1" >>confdefs.h | ||
24696 | |||
24697 | have_static_module="yes" | ||
24698 | fi | ||
24699 | |||
24700 | if test "x${want_static_engine}" = "xyes"; then | ||
24701 | EVAS_STATIC_BUILD_SOFTWARE_XLIB_TRUE= | ||
24702 | EVAS_STATIC_BUILD_SOFTWARE_XLIB_FALSE='#' | ||
24703 | else | ||
24704 | EVAS_STATIC_BUILD_SOFTWARE_XLIB_TRUE='#' | ||
24705 | EVAS_STATIC_BUILD_SOFTWARE_XLIB_FALSE= | ||
24706 | fi | ||
24707 | |||
24708 | |||
24709 | |||
24710 | |||
24711 | |||
24712 | |||
24713 | # if software_x11 is available, define everything needed for X11 | ||
24714 | if test "x$have_evas_engine_software_xlib" != "xno" ; then | ||
24715 | have_evas_engine_software_x11="yes" | ||
24716 | |||
24717 | cat >>confdefs.h <<_ACEOF | ||
24718 | #define BUILD_ENGINE_SOFTWARE_X11 1 | ||
24719 | _ACEOF | ||
24720 | |||
24721 | |||
24722 | cat >>confdefs.h <<_ACEOF | ||
24723 | #define BUILD_ENGINE_SOFTWARE_XLIB 1 | ||
24724 | _ACEOF | ||
24725 | |||
24726 | fi | ||
24727 | else | ||
24728 | have_evas_engine_software_xlib="no" | ||
24729 | fi | ||
24730 | |||
24731 | if test "x$have_evas_engine_software_xlib" = "xstatic" -o "x$have_evas_engine_software_xcb" = "xstatic"; then | ||
24732 | |||
24733 | cat >>confdefs.h <<_ACEOF | ||
24734 | #define EVAS_STATIC_BUILD_SOFTWARE_X11 1 | ||
24735 | _ACEOF | ||
24736 | |||
24737 | fi | ||
24738 | |||
24739 | |||
24740 | |||
24741 | |||
24742 | if test "x${have_evas_engine_software_xlib}" != "xno"; then | ||
24743 | BUILD_ENGINE_SOFTWARE_XLIB_TRUE= | ||
24744 | BUILD_ENGINE_SOFTWARE_XLIB_FALSE='#' | ||
24745 | else | ||
24746 | BUILD_ENGINE_SOFTWARE_XLIB_TRUE='#' | ||
24747 | BUILD_ENGINE_SOFTWARE_XLIB_FALSE= | ||
24748 | fi | ||
24749 | |||
24750 | if test "x${have_evas_engine_software_xcb}" != "xno"; then | ||
24751 | BUILD_ENGINE_SOFTWARE_XCB_TRUE= | ||
24752 | BUILD_ENGINE_SOFTWARE_XCB_FALSE='#' | ||
24753 | else | ||
24754 | BUILD_ENGINE_SOFTWARE_XCB_TRUE='#' | ||
24755 | BUILD_ENGINE_SOFTWARE_XCB_FALSE= | ||
24756 | fi | ||
24757 | |||
24758 | if test "x${have_evas_engine_software_x11}" != "xno"; then | ||
24759 | BUILD_ENGINE_SOFTWARE_X11_TRUE= | ||
24760 | BUILD_ENGINE_SOFTWARE_X11_FALSE='#' | ||
24761 | else | ||
24762 | BUILD_ENGINE_SOFTWARE_X11_TRUE='#' | ||
24763 | BUILD_ENGINE_SOFTWARE_X11_FALSE= | ||
24764 | fi | ||
24765 | |||
24766 | |||
24767 | if test "x${have_evas_engine_software_xcb}" = "xstatic" -o "x${have_evas_engine_software_xlib}" = "xstatic"; then | ||
24768 | EVAS_STATIC_BUILD_SOFTWARE_X11_TRUE= | ||
24769 | EVAS_STATIC_BUILD_SOFTWARE_X11_FALSE='#' | ||
24770 | else | ||
24771 | EVAS_STATIC_BUILD_SOFTWARE_X11_TRUE='#' | ||
24772 | EVAS_STATIC_BUILD_SOFTWARE_X11_FALSE= | ||
24773 | fi | ||
24774 | |||
24775 | if test "x${have_evas_engine_software_xlib}" = "xstatic"; then | ||
24776 | EVAS_STATIC_BUILD_SOFTWARE_XLIB_TRUE= | ||
24777 | EVAS_STATIC_BUILD_SOFTWARE_XLIB_FALSE='#' | ||
24778 | else | ||
24779 | EVAS_STATIC_BUILD_SOFTWARE_XLIB_TRUE='#' | ||
24780 | EVAS_STATIC_BUILD_SOFTWARE_XLIB_FALSE= | ||
24781 | fi | ||
24782 | |||
24783 | if test "x${have_evas_engine_software_xcb}" = "xstatic"; then | ||
24784 | EVAS_STATIC_BUILD_SOFTWARE_XCB_TRUE= | ||
24785 | EVAS_STATIC_BUILD_SOFTWARE_XCB_FALSE='#' | ||
24786 | else | ||
24787 | EVAS_STATIC_BUILD_SOFTWARE_XCB_TRUE='#' | ||
24788 | EVAS_STATIC_BUILD_SOFTWARE_XCB_FALSE= | ||
24789 | fi | ||
24790 | |||
24791 | |||
24792 | |||
24793 | |||
24794 | |||
24795 | ######## OpenGL Engine ######## | ||
24796 | have_evas_engine_gl_x11="no" | ||
24797 | have_evas_engine_gl_xcb="no" | ||
24798 | build_gl_xcb="no" | ||
24799 | |||
24800 | ## XCB Checks ## | ||
24801 | want_gl_xcb="no" | ||
24802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build OpenGL XCB Engine" >&5 | ||
24803 | $as_echo_n "checking whether to build OpenGL XCB Engine... " >&6; } | ||
24804 | # Check whether --enable-gl-xcb was given. | ||
24805 | if test "${enable_gl_xcb+set}" = set; then : | ||
24806 | enableval=$enable_gl_xcb; want_gl_xcb=$enableval | ||
24807 | |||
24808 | fi | ||
24809 | |||
24810 | if test "x$want_gl_xcb" = "xyes" ; then | ||
24811 | |||
24812 | |||
24813 | |||
24814 | want_engine="${want_evas_engine_gl_xcb}" | ||
24815 | want_static_engine="no" | ||
24816 | have_engine="no" | ||
24817 | have_evas_engine_gl_xcb="no" | ||
24818 | |||
24819 | # Check whether --enable-gl-xcb was given. | ||
24820 | if test "${enable_gl_xcb+set}" = set; then : | ||
24821 | enableval=$enable_gl_xcb; | ||
24822 | if test "x${enableval}" = "xyes" ; then | ||
24823 | want_engine="yes" | ||
24824 | else | ||
24825 | if test "x${enableval}" = "xstatic" ; then | ||
24826 | want_engine="static" | ||
24827 | else | ||
24828 | want_engine="no" | ||
24829 | fi | ||
24830 | fi | ||
24831 | |||
24832 | fi | ||
24833 | |||
24834 | |||
24835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OpenGL XCB rendering backend" >&5 | ||
24836 | $as_echo_n "checking whether to enable OpenGL XCB rendering backend... " >&6; } | ||
24837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
24838 | $as_echo "${want_engine}" >&6; } | ||
24839 | |||
24840 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
24841 | |||
24842 | |||
24843 | evas_engine_gl_xcb_cflags="" | ||
24844 | evas_engine_gl_xcb_libs="" | ||
24845 | |||
24846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 | ||
24847 | $as_echo_n "checking for X... " >&6; } | ||
24848 | |||
24849 | |||
24850 | # Check whether --with-x was given. | ||
24851 | if test "${with_x+set}" = set; then : | ||
24852 | withval=$with_x; | ||
24853 | fi | ||
24854 | |||
24855 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | ||
24856 | if test "x$with_x" = xno; then | ||
24857 | # The user explicitly disabled X. | ||
24858 | have_x=disabled | ||
24859 | else | ||
24860 | case $x_includes,$x_libraries in #( | ||
24861 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #( | ||
24862 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : | ||
24863 | $as_echo_n "(cached) " >&6 | ||
24864 | else | ||
24865 | # One or both of the vars are not set, and there is no cached value. | ||
24866 | ac_x_includes=no ac_x_libraries=no | ||
24867 | rm -f -r conftest.dir | ||
24868 | if mkdir conftest.dir; then | ||
24869 | cd conftest.dir | ||
24870 | cat >Imakefile <<'_ACEOF' | ||
24871 | incroot: | ||
24872 | @echo incroot='${INCROOT}' | ||
24873 | usrlibdir: | ||
24874 | @echo usrlibdir='${USRLIBDIR}' | ||
24875 | libdir: | ||
24876 | @echo libdir='${LIBDIR}' | ||
24877 | _ACEOF | ||
24878 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | ||
24879 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | ||
24880 | for ac_var in incroot usrlibdir libdir; do | ||
24881 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | ||
24882 | done | ||
24883 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | ||
24884 | for ac_extension in a so sl dylib la dll; do | ||
24885 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && | ||
24886 | test -f "$ac_im_libdir/libX11.$ac_extension"; then | ||
24887 | ac_im_usrlibdir=$ac_im_libdir; break | ||
24888 | fi | ||
24889 | done | ||
24890 | # Screen out bogus values from the imake configuration. They are | ||
24891 | # bogus both because they are the default anyway, and because | ||
24892 | # using them would break gcc on systems where it needs fixed includes. | ||
24893 | case $ac_im_incroot in | ||
24894 | /usr/include) ac_x_includes= ;; | ||
24895 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | ||
24896 | esac | ||
24897 | case $ac_im_usrlibdir in | ||
24898 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; | ||
24899 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | ||
24900 | esac | ||
24901 | fi | ||
24902 | cd .. | ||
24903 | rm -f -r conftest.dir | ||
24904 | fi | ||
24905 | |||
24906 | # Standard set of common directories for X headers. | ||
24907 | # Check X11 before X11Rn because it is often a symlink to the current release. | ||
24908 | ac_x_header_dirs=' | ||
24909 | /usr/X11/include | ||
24910 | /usr/X11R7/include | ||
24911 | /usr/X11R6/include | ||
24912 | /usr/X11R5/include | ||
24913 | /usr/X11R4/include | ||
24914 | |||
24915 | /usr/include/X11 | ||
24916 | /usr/include/X11R7 | ||
24917 | /usr/include/X11R6 | ||
24918 | /usr/include/X11R5 | ||
24919 | /usr/include/X11R4 | ||
24920 | |||
24921 | /usr/local/X11/include | ||
24922 | /usr/local/X11R7/include | ||
24923 | /usr/local/X11R6/include | ||
24924 | /usr/local/X11R5/include | ||
24925 | /usr/local/X11R4/include | ||
24926 | |||
24927 | /usr/local/include/X11 | ||
24928 | /usr/local/include/X11R7 | ||
24929 | /usr/local/include/X11R6 | ||
24930 | /usr/local/include/X11R5 | ||
24931 | /usr/local/include/X11R4 | ||
24932 | |||
24933 | /usr/X386/include | ||
24934 | /usr/x386/include | ||
24935 | /usr/XFree86/include/X11 | ||
24936 | |||
24937 | /usr/include | ||
24938 | /usr/local/include | ||
24939 | /usr/unsupported/include | ||
24940 | /usr/athena/include | ||
24941 | /usr/local/x11r5/include | ||
24942 | /usr/lpp/Xamples/include | ||
24943 | |||
24944 | /usr/openwin/include | ||
24945 | /usr/openwin/share/include' | ||
24946 | |||
24947 | if test "$ac_x_includes" = no; then | ||
24948 | # Guess where to find include files, by looking for Xlib.h. | ||
24949 | # First, try using that file with no special directory specified. | ||
24950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24951 | /* end confdefs.h. */ | ||
24952 | #include <X11/Xlib.h> | ||
24953 | _ACEOF | ||
24954 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
24955 | # We can compile using X headers with no special include directory. | ||
24956 | ac_x_includes= | ||
24957 | else | ||
24958 | for ac_dir in $ac_x_header_dirs; do | ||
24959 | if test -r "$ac_dir/X11/Xlib.h"; then | ||
24960 | ac_x_includes=$ac_dir | ||
24961 | break | ||
24962 | fi | ||
24963 | done | ||
24964 | fi | ||
24965 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
24966 | fi # $ac_x_includes = no | ||
24967 | |||
24968 | if test "$ac_x_libraries" = no; then | ||
24969 | # Check for the libraries. | ||
24970 | # See if we find them without any special options. | ||
24971 | # Don't add to $LIBS permanently. | ||
24972 | ac_save_LIBS=$LIBS | ||
24973 | LIBS="-lX11 $LIBS" | ||
24974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
24975 | /* end confdefs.h. */ | ||
24976 | #include <X11/Xlib.h> | ||
24977 | int | ||
24978 | main () | ||
24979 | { | ||
24980 | XrmInitialize () | ||
24981 | ; | ||
24982 | return 0; | ||
24983 | } | ||
24984 | _ACEOF | ||
24985 | if ac_fn_c_try_link "$LINENO"; then : | ||
24986 | LIBS=$ac_save_LIBS | ||
24987 | # We can link X programs with no special library path. | ||
24988 | ac_x_libraries= | ||
24989 | else | ||
24990 | LIBS=$ac_save_LIBS | ||
24991 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | ||
24992 | do | ||
24993 | # Don't even attempt the hair of trying to link an X program! | ||
24994 | for ac_extension in a so sl dylib la dll; do | ||
24995 | if test -r "$ac_dir/libX11.$ac_extension"; then | ||
24996 | ac_x_libraries=$ac_dir | ||
24997 | break 2 | ||
24998 | fi | ||
24999 | done | ||
25000 | done | ||
25001 | fi | ||
25002 | rm -f core conftest.err conftest.$ac_objext \ | ||
25003 | conftest$ac_exeext conftest.$ac_ext | ||
25004 | fi # $ac_x_libraries = no | ||
25005 | |||
25006 | case $ac_x_includes,$ac_x_libraries in #( | ||
25007 | no,* | *,no | *\'*) | ||
25008 | # Didn't find X, or a directory has "'" in its name. | ||
25009 | ac_cv_have_x="have_x=no";; #( | ||
25010 | *) | ||
25011 | # Record where we found X for the cache. | ||
25012 | ac_cv_have_x="have_x=yes\ | ||
25013 | ac_x_includes='$ac_x_includes'\ | ||
25014 | ac_x_libraries='$ac_x_libraries'" | ||
25015 | esac | ||
25016 | fi | ||
25017 | ;; #( | ||
25018 | *) have_x=yes;; | ||
25019 | esac | ||
25020 | eval "$ac_cv_have_x" | ||
25021 | fi # $with_x != no | ||
25022 | |||
25023 | if test "$have_x" != yes; then | ||
25024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 | ||
25025 | $as_echo "$have_x" >&6; } | ||
25026 | no_x=yes | ||
25027 | else | ||
25028 | # If each of the values was on the command line, it overrides each guess. | ||
25029 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | ||
25030 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | ||
25031 | # Update the cache value to reflect the command line values. | ||
25032 | ac_cv_have_x="have_x=yes\ | ||
25033 | ac_x_includes='$x_includes'\ | ||
25034 | ac_x_libraries='$x_libraries'" | ||
25035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 | ||
25036 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } | ||
25037 | fi | ||
25038 | |||
25039 | if test "$no_x" = yes; then | ||
25040 | # Not all programs may use this symbol, but it does not hurt to define it. | ||
25041 | |||
25042 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h | ||
25043 | |||
25044 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | ||
25045 | else | ||
25046 | if test -n "$x_includes"; then | ||
25047 | X_CFLAGS="$X_CFLAGS -I$x_includes" | ||
25048 | fi | ||
25049 | |||
25050 | # It would also be nice to do this for all -L options, not just this one. | ||
25051 | if test -n "$x_libraries"; then | ||
25052 | X_LIBS="$X_LIBS -L$x_libraries" | ||
25053 | # For Solaris; some versions of Sun CC require a space after -R and | ||
25054 | # others require no space. Words are not sufficient . . . . | ||
25055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 | ||
25056 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } | ||
25057 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | ||
25058 | ac_xsave_c_werror_flag=$ac_c_werror_flag | ||
25059 | ac_c_werror_flag=yes | ||
25060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25061 | /* end confdefs.h. */ | ||
25062 | |||
25063 | int | ||
25064 | main () | ||
25065 | { | ||
25066 | |||
25067 | ; | ||
25068 | return 0; | ||
25069 | } | ||
25070 | _ACEOF | ||
25071 | if ac_fn_c_try_link "$LINENO"; then : | ||
25072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
25073 | $as_echo "no" >&6; } | ||
25074 | X_LIBS="$X_LIBS -R$x_libraries" | ||
25075 | else | ||
25076 | LIBS="$ac_xsave_LIBS -R $x_libraries" | ||
25077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25078 | /* end confdefs.h. */ | ||
25079 | |||
25080 | int | ||
25081 | main () | ||
25082 | { | ||
25083 | |||
25084 | ; | ||
25085 | return 0; | ||
25086 | } | ||
25087 | _ACEOF | ||
25088 | if ac_fn_c_try_link "$LINENO"; then : | ||
25089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
25090 | $as_echo "yes" >&6; } | ||
25091 | X_LIBS="$X_LIBS -R $x_libraries" | ||
25092 | else | ||
25093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 | ||
25094 | $as_echo "neither works" >&6; } | ||
25095 | fi | ||
25096 | rm -f core conftest.err conftest.$ac_objext \ | ||
25097 | conftest$ac_exeext conftest.$ac_ext | ||
25098 | fi | ||
25099 | rm -f core conftest.err conftest.$ac_objext \ | ||
25100 | conftest$ac_exeext conftest.$ac_ext | ||
25101 | ac_c_werror_flag=$ac_xsave_c_werror_flag | ||
25102 | LIBS=$ac_xsave_LIBS | ||
25103 | fi | ||
25104 | |||
25105 | # Check for system-dependent libraries X programs must link with. | ||
25106 | # Do this before checking for the system-independent R6 libraries | ||
25107 | # (-lICE), since we may need -lsocket or whatever for X linking. | ||
25108 | |||
25109 | if test "$ISC" = yes; then | ||
25110 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | ||
25111 | else | ||
25112 | # Martyn Johnson says this is needed for Ultrix, if the X | ||
25113 | # libraries were built with DECnet support. And Karl Berry says | ||
25114 | # the Alpha needs dnet_stub (dnet does not exist). | ||
25115 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | ||
25116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25117 | /* end confdefs.h. */ | ||
25118 | |||
25119 | /* Override any GCC internal prototype to avoid an error. | ||
25120 | Use char because int might match the return type of a GCC | ||
25121 | builtin and then its argument prototype would still apply. */ | ||
25122 | #ifdef __cplusplus | ||
25123 | extern "C" | ||
25124 | #endif | ||
25125 | char XOpenDisplay (); | ||
25126 | int | ||
25127 | main () | ||
25128 | { | ||
25129 | return XOpenDisplay (); | ||
25130 | ; | ||
25131 | return 0; | ||
25132 | } | ||
25133 | _ACEOF | ||
25134 | if ac_fn_c_try_link "$LINENO"; then : | ||
25135 | |||
25136 | else | ||
25137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 | ||
25138 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } | ||
25139 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : | ||
25140 | $as_echo_n "(cached) " >&6 | ||
25141 | else | ||
25142 | ac_check_lib_save_LIBS=$LIBS | ||
25143 | LIBS="-ldnet $LIBS" | ||
25144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25145 | /* end confdefs.h. */ | ||
25146 | |||
25147 | /* Override any GCC internal prototype to avoid an error. | ||
25148 | Use char because int might match the return type of a GCC | ||
25149 | builtin and then its argument prototype would still apply. */ | ||
25150 | #ifdef __cplusplus | ||
25151 | extern "C" | ||
25152 | #endif | ||
25153 | char dnet_ntoa (); | ||
25154 | int | ||
25155 | main () | ||
25156 | { | ||
25157 | return dnet_ntoa (); | ||
25158 | ; | ||
25159 | return 0; | ||
25160 | } | ||
25161 | _ACEOF | ||
25162 | if ac_fn_c_try_link "$LINENO"; then : | ||
25163 | ac_cv_lib_dnet_dnet_ntoa=yes | ||
25164 | else | ||
25165 | ac_cv_lib_dnet_dnet_ntoa=no | ||
25166 | fi | ||
25167 | rm -f core conftest.err conftest.$ac_objext \ | ||
25168 | conftest$ac_exeext conftest.$ac_ext | ||
25169 | LIBS=$ac_check_lib_save_LIBS | ||
25170 | fi | ||
25171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | ||
25172 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } | ||
25173 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : | ||
25174 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | ||
25175 | fi | ||
25176 | |||
25177 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | ||
25178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 | ||
25179 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } | ||
25180 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : | ||
25181 | $as_echo_n "(cached) " >&6 | ||
25182 | else | ||
25183 | ac_check_lib_save_LIBS=$LIBS | ||
25184 | LIBS="-ldnet_stub $LIBS" | ||
25185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25186 | /* end confdefs.h. */ | ||
25187 | |||
25188 | /* Override any GCC internal prototype to avoid an error. | ||
25189 | Use char because int might match the return type of a GCC | ||
25190 | builtin and then its argument prototype would still apply. */ | ||
25191 | #ifdef __cplusplus | ||
25192 | extern "C" | ||
25193 | #endif | ||
25194 | char dnet_ntoa (); | ||
25195 | int | ||
25196 | main () | ||
25197 | { | ||
25198 | return dnet_ntoa (); | ||
25199 | ; | ||
25200 | return 0; | ||
25201 | } | ||
25202 | _ACEOF | ||
25203 | if ac_fn_c_try_link "$LINENO"; then : | ||
25204 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | ||
25205 | else | ||
25206 | ac_cv_lib_dnet_stub_dnet_ntoa=no | ||
25207 | fi | ||
25208 | rm -f core conftest.err conftest.$ac_objext \ | ||
25209 | conftest$ac_exeext conftest.$ac_ext | ||
25210 | LIBS=$ac_check_lib_save_LIBS | ||
25211 | fi | ||
25212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | ||
25213 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } | ||
25214 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then : | ||
25215 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | ||
25216 | fi | ||
25217 | |||
25218 | fi | ||
25219 | fi | ||
25220 | rm -f core conftest.err conftest.$ac_objext \ | ||
25221 | conftest$ac_exeext conftest.$ac_ext | ||
25222 | LIBS="$ac_xsave_LIBS" | ||
25223 | |||
25224 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | ||
25225 | # to get the SysV transport functions. | ||
25226 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | ||
25227 | # needs -lnsl. | ||
25228 | # The nsl library prevents programs from opening the X display | ||
25229 | # on Irix 5.2, according to T.E. Dickey. | ||
25230 | # The functions gethostbyname, getservbyname, and inet_addr are | ||
25231 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | ||
25232 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | ||
25233 | if test "x$ac_cv_func_gethostbyname" = x""yes; then : | ||
25234 | |||
25235 | fi | ||
25236 | |||
25237 | if test $ac_cv_func_gethostbyname = no; then | ||
25238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 | ||
25239 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } | ||
25240 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : | ||
25241 | $as_echo_n "(cached) " >&6 | ||
25242 | else | ||
25243 | ac_check_lib_save_LIBS=$LIBS | ||
25244 | LIBS="-lnsl $LIBS" | ||
25245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25246 | /* end confdefs.h. */ | ||
25247 | |||
25248 | /* Override any GCC internal prototype to avoid an error. | ||
25249 | Use char because int might match the return type of a GCC | ||
25250 | builtin and then its argument prototype would still apply. */ | ||
25251 | #ifdef __cplusplus | ||
25252 | extern "C" | ||
25253 | #endif | ||
25254 | char gethostbyname (); | ||
25255 | int | ||
25256 | main () | ||
25257 | { | ||
25258 | return gethostbyname (); | ||
25259 | ; | ||
25260 | return 0; | ||
25261 | } | ||
25262 | _ACEOF | ||
25263 | if ac_fn_c_try_link "$LINENO"; then : | ||
25264 | ac_cv_lib_nsl_gethostbyname=yes | ||
25265 | else | ||
25266 | ac_cv_lib_nsl_gethostbyname=no | ||
25267 | fi | ||
25268 | rm -f core conftest.err conftest.$ac_objext \ | ||
25269 | conftest$ac_exeext conftest.$ac_ext | ||
25270 | LIBS=$ac_check_lib_save_LIBS | ||
25271 | fi | ||
25272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 | ||
25273 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } | ||
25274 | if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : | ||
25275 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | ||
25276 | fi | ||
25277 | |||
25278 | if test $ac_cv_lib_nsl_gethostbyname = no; then | ||
25279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 | ||
25280 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } | ||
25281 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : | ||
25282 | $as_echo_n "(cached) " >&6 | ||
25283 | else | ||
25284 | ac_check_lib_save_LIBS=$LIBS | ||
25285 | LIBS="-lbsd $LIBS" | ||
25286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25287 | /* end confdefs.h. */ | ||
25288 | |||
25289 | /* Override any GCC internal prototype to avoid an error. | ||
25290 | Use char because int might match the return type of a GCC | ||
25291 | builtin and then its argument prototype would still apply. */ | ||
25292 | #ifdef __cplusplus | ||
25293 | extern "C" | ||
25294 | #endif | ||
25295 | char gethostbyname (); | ||
25296 | int | ||
25297 | main () | ||
25298 | { | ||
25299 | return gethostbyname (); | ||
25300 | ; | ||
25301 | return 0; | ||
25302 | } | ||
25303 | _ACEOF | ||
25304 | if ac_fn_c_try_link "$LINENO"; then : | ||
25305 | ac_cv_lib_bsd_gethostbyname=yes | ||
25306 | else | ||
25307 | ac_cv_lib_bsd_gethostbyname=no | ||
25308 | fi | ||
25309 | rm -f core conftest.err conftest.$ac_objext \ | ||
25310 | conftest$ac_exeext conftest.$ac_ext | ||
25311 | LIBS=$ac_check_lib_save_LIBS | ||
25312 | fi | ||
25313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 | ||
25314 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } | ||
25315 | if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : | ||
25316 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | ||
25317 | fi | ||
25318 | |||
25319 | fi | ||
25320 | fi | ||
25321 | |||
25322 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | ||
25323 | # socket/setsockopt and other routines are undefined under SCO ODT | ||
25324 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | ||
25325 | # on later versions), says Simon Leinen: it contains gethostby* | ||
25326 | # variants that don't use the name server (or something). -lsocket | ||
25327 | # must be given before -lnsl if both are needed. We assume that | ||
25328 | # if connect needs -lnsl, so does gethostbyname. | ||
25329 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" | ||
25330 | if test "x$ac_cv_func_connect" = x""yes; then : | ||
25331 | |||
25332 | fi | ||
25333 | |||
25334 | if test $ac_cv_func_connect = no; then | ||
25335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 | ||
25336 | $as_echo_n "checking for connect in -lsocket... " >&6; } | ||
25337 | if test "${ac_cv_lib_socket_connect+set}" = set; then : | ||
25338 | $as_echo_n "(cached) " >&6 | ||
25339 | else | ||
25340 | ac_check_lib_save_LIBS=$LIBS | ||
25341 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | ||
25342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25343 | /* end confdefs.h. */ | ||
25344 | |||
25345 | /* Override any GCC internal prototype to avoid an error. | ||
25346 | Use char because int might match the return type of a GCC | ||
25347 | builtin and then its argument prototype would still apply. */ | ||
25348 | #ifdef __cplusplus | ||
25349 | extern "C" | ||
25350 | #endif | ||
25351 | char connect (); | ||
25352 | int | ||
25353 | main () | ||
25354 | { | ||
25355 | return connect (); | ||
25356 | ; | ||
25357 | return 0; | ||
25358 | } | ||
25359 | _ACEOF | ||
25360 | if ac_fn_c_try_link "$LINENO"; then : | ||
25361 | ac_cv_lib_socket_connect=yes | ||
25362 | else | ||
25363 | ac_cv_lib_socket_connect=no | ||
25364 | fi | ||
25365 | rm -f core conftest.err conftest.$ac_objext \ | ||
25366 | conftest$ac_exeext conftest.$ac_ext | ||
25367 | LIBS=$ac_check_lib_save_LIBS | ||
25368 | fi | ||
25369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 | ||
25370 | $as_echo "$ac_cv_lib_socket_connect" >&6; } | ||
25371 | if test "x$ac_cv_lib_socket_connect" = x""yes; then : | ||
25372 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | ||
25373 | fi | ||
25374 | |||
25375 | fi | ||
25376 | |||
25377 | # Guillermo Gomez says -lposix is necessary on A/UX. | ||
25378 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" | ||
25379 | if test "x$ac_cv_func_remove" = x""yes; then : | ||
25380 | |||
25381 | fi | ||
25382 | |||
25383 | if test $ac_cv_func_remove = no; then | ||
25384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 | ||
25385 | $as_echo_n "checking for remove in -lposix... " >&6; } | ||
25386 | if test "${ac_cv_lib_posix_remove+set}" = set; then : | ||
25387 | $as_echo_n "(cached) " >&6 | ||
25388 | else | ||
25389 | ac_check_lib_save_LIBS=$LIBS | ||
25390 | LIBS="-lposix $LIBS" | ||
25391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25392 | /* end confdefs.h. */ | ||
25393 | |||
25394 | /* Override any GCC internal prototype to avoid an error. | ||
25395 | Use char because int might match the return type of a GCC | ||
25396 | builtin and then its argument prototype would still apply. */ | ||
25397 | #ifdef __cplusplus | ||
25398 | extern "C" | ||
25399 | #endif | ||
25400 | char remove (); | ||
25401 | int | ||
25402 | main () | ||
25403 | { | ||
25404 | return remove (); | ||
25405 | ; | ||
25406 | return 0; | ||
25407 | } | ||
25408 | _ACEOF | ||
25409 | if ac_fn_c_try_link "$LINENO"; then : | ||
25410 | ac_cv_lib_posix_remove=yes | ||
25411 | else | ||
25412 | ac_cv_lib_posix_remove=no | ||
25413 | fi | ||
25414 | rm -f core conftest.err conftest.$ac_objext \ | ||
25415 | conftest$ac_exeext conftest.$ac_ext | ||
25416 | LIBS=$ac_check_lib_save_LIBS | ||
25417 | fi | ||
25418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 | ||
25419 | $as_echo "$ac_cv_lib_posix_remove" >&6; } | ||
25420 | if test "x$ac_cv_lib_posix_remove" = x""yes; then : | ||
25421 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | ||
25422 | fi | ||
25423 | |||
25424 | fi | ||
25425 | |||
25426 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | ||
25427 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" | ||
25428 | if test "x$ac_cv_func_shmat" = x""yes; then : | ||
25429 | |||
25430 | fi | ||
25431 | |||
25432 | if test $ac_cv_func_shmat = no; then | ||
25433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 | ||
25434 | $as_echo_n "checking for shmat in -lipc... " >&6; } | ||
25435 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then : | ||
25436 | $as_echo_n "(cached) " >&6 | ||
25437 | else | ||
25438 | ac_check_lib_save_LIBS=$LIBS | ||
25439 | LIBS="-lipc $LIBS" | ||
25440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25441 | /* end confdefs.h. */ | ||
25442 | |||
25443 | /* Override any GCC internal prototype to avoid an error. | ||
25444 | Use char because int might match the return type of a GCC | ||
25445 | builtin and then its argument prototype would still apply. */ | ||
25446 | #ifdef __cplusplus | ||
25447 | extern "C" | ||
25448 | #endif | ||
25449 | char shmat (); | ||
25450 | int | ||
25451 | main () | ||
25452 | { | ||
25453 | return shmat (); | ||
25454 | ; | ||
25455 | return 0; | ||
25456 | } | ||
25457 | _ACEOF | ||
25458 | if ac_fn_c_try_link "$LINENO"; then : | ||
25459 | ac_cv_lib_ipc_shmat=yes | ||
25460 | else | ||
25461 | ac_cv_lib_ipc_shmat=no | ||
25462 | fi | ||
25463 | rm -f core conftest.err conftest.$ac_objext \ | ||
25464 | conftest$ac_exeext conftest.$ac_ext | ||
25465 | LIBS=$ac_check_lib_save_LIBS | ||
25466 | fi | ||
25467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 | ||
25468 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } | ||
25469 | if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : | ||
25470 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | ||
25471 | fi | ||
25472 | |||
25473 | fi | ||
25474 | fi | ||
25475 | |||
25476 | # Check for libraries that X11R6 Xt/Xaw programs need. | ||
25477 | ac_save_LDFLAGS=$LDFLAGS | ||
25478 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | ||
25479 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | ||
25480 | # check for ICE first), but we must link in the order -lSM -lICE or | ||
25481 | # we get undefined symbols. So assume we have SM if we have ICE. | ||
25482 | # These have to be linked with before -lX11, unlike the other | ||
25483 | # libraries we check for below, so use a different variable. | ||
25484 | # John Interrante, Karl Berry | ||
25485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 | ||
25486 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } | ||
25487 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : | ||
25488 | $as_echo_n "(cached) " >&6 | ||
25489 | else | ||
25490 | ac_check_lib_save_LIBS=$LIBS | ||
25491 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | ||
25492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25493 | /* end confdefs.h. */ | ||
25494 | |||
25495 | /* Override any GCC internal prototype to avoid an error. | ||
25496 | Use char because int might match the return type of a GCC | ||
25497 | builtin and then its argument prototype would still apply. */ | ||
25498 | #ifdef __cplusplus | ||
25499 | extern "C" | ||
25500 | #endif | ||
25501 | char IceConnectionNumber (); | ||
25502 | int | ||
25503 | main () | ||
25504 | { | ||
25505 | return IceConnectionNumber (); | ||
25506 | ; | ||
25507 | return 0; | ||
25508 | } | ||
25509 | _ACEOF | ||
25510 | if ac_fn_c_try_link "$LINENO"; then : | ||
25511 | ac_cv_lib_ICE_IceConnectionNumber=yes | ||
25512 | else | ||
25513 | ac_cv_lib_ICE_IceConnectionNumber=no | ||
25514 | fi | ||
25515 | rm -f core conftest.err conftest.$ac_objext \ | ||
25516 | conftest$ac_exeext conftest.$ac_ext | ||
25517 | LIBS=$ac_check_lib_save_LIBS | ||
25518 | fi | ||
25519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | ||
25520 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } | ||
25521 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : | ||
25522 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | ||
25523 | fi | ||
25524 | |||
25525 | LDFLAGS=$ac_save_LDFLAGS | ||
25526 | |||
25527 | fi | ||
25528 | |||
25529 | |||
25530 | ac_fn_c_check_header_compile "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" " | ||
25531 | #include <GL/gl.h> | ||
25532 | #include <GL/glext.h> | ||
25533 | #include <GL/glx.h> | ||
25534 | |||
25535 | " | ||
25536 | if test "x$ac_cv_header_GL_gl_h" = x""yes; then : | ||
25537 | have_dep="yes" | ||
25538 | else | ||
25539 | have_dep="no" | ||
25540 | fi | ||
25541 | |||
25542 | |||
25543 | |||
25544 | gl_pt_lib=""; | ||
25545 | have_gl_pt="no" | ||
25546 | |||
25547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_create() is supported" >&5 | ||
25548 | $as_echo_n "checking whether pthread_create() is supported... " >&6; } | ||
25549 | CFLAGS_save="${CFLAGS}" | ||
25550 | CFLAGS="${CFLAGS} -pthread" | ||
25551 | LIBS_save="${LIBS}" | ||
25552 | LIBS="${LIBS} -pthread" | ||
25553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25554 | /* end confdefs.h. */ | ||
25555 | |||
25556 | #include <pthread.h> | ||
25557 | |||
25558 | int | ||
25559 | main () | ||
25560 | { | ||
25561 | |||
25562 | pthread_create(NULL, NULL, NULL, NULL); | ||
25563 | |||
25564 | ; | ||
25565 | return 0; | ||
25566 | } | ||
25567 | _ACEOF | ||
25568 | if ac_fn_c_try_link "$LINENO"; then : | ||
25569 | have_gl_pt="yes" | ||
25570 | else | ||
25571 | have_gl_pt="no" | ||
25572 | fi | ||
25573 | rm -f core conftest.err conftest.$ac_objext \ | ||
25574 | conftest$ac_exeext conftest.$ac_ext | ||
25575 | CFLAGS=${CFLAGS_save} | ||
25576 | LIBS=${LIBS_save} | ||
25577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_gl_pt}" >&5 | ||
25578 | $as_echo "${have_gl_pt}" >&6; } | ||
25579 | |||
25580 | if test "x$have_gl_pt" = "xyes" ; then | ||
25581 | gl_pt_lib=" -pthread" | ||
25582 | fi | ||
25583 | |||
25584 | if test "x${have_dep}" = "xyes" ; then | ||
25585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCreateColormap in -lX11" >&5 | ||
25586 | $as_echo_n "checking for XCreateColormap in -lX11... " >&6; } | ||
25587 | if test "${ac_cv_lib_X11_XCreateColormap+set}" = set; then : | ||
25588 | $as_echo_n "(cached) " >&6 | ||
25589 | else | ||
25590 | ac_check_lib_save_LIBS=$LIBS | ||
25591 | LIBS="-lX11 $LIBS" | ||
25592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25593 | /* end confdefs.h. */ | ||
25594 | |||
25595 | /* Override any GCC internal prototype to avoid an error. | ||
25596 | Use char because int might match the return type of a GCC | ||
25597 | builtin and then its argument prototype would still apply. */ | ||
25598 | #ifdef __cplusplus | ||
25599 | extern "C" | ||
25600 | #endif | ||
25601 | char XCreateColormap (); | ||
25602 | int | ||
25603 | main () | ||
25604 | { | ||
25605 | return XCreateColormap (); | ||
25606 | ; | ||
25607 | return 0; | ||
25608 | } | ||
25609 | _ACEOF | ||
25610 | if ac_fn_c_try_link "$LINENO"; then : | ||
25611 | ac_cv_lib_X11_XCreateColormap=yes | ||
25612 | else | ||
25613 | ac_cv_lib_X11_XCreateColormap=no | ||
25614 | fi | ||
25615 | rm -f core conftest.err conftest.$ac_objext \ | ||
25616 | conftest$ac_exeext conftest.$ac_ext | ||
25617 | LIBS=$ac_check_lib_save_LIBS | ||
25618 | fi | ||
25619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XCreateColormap" >&5 | ||
25620 | $as_echo "$ac_cv_lib_X11_XCreateColormap" >&6; } | ||
25621 | if test "x$ac_cv_lib_X11_XCreateColormap" = x""yes; then : | ||
25622 | have_dep="yes" | ||
25623 | else | ||
25624 | have_dep="no" | ||
25625 | fi | ||
25626 | |||
25627 | fi | ||
25628 | |||
25629 | if test "x${have_dep}" = "xyes" ; then | ||
25630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreatePicture in -lXrender" >&5 | ||
25631 | $as_echo_n "checking for XRenderCreatePicture in -lXrender... " >&6; } | ||
25632 | if test "${ac_cv_lib_Xrender_XRenderCreatePicture+set}" = set; then : | ||
25633 | $as_echo_n "(cached) " >&6 | ||
25634 | else | ||
25635 | ac_check_lib_save_LIBS=$LIBS | ||
25636 | LIBS="-lXrender $LIBS" | ||
25637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25638 | /* end confdefs.h. */ | ||
25639 | |||
25640 | /* Override any GCC internal prototype to avoid an error. | ||
25641 | Use char because int might match the return type of a GCC | ||
25642 | builtin and then its argument prototype would still apply. */ | ||
25643 | #ifdef __cplusplus | ||
25644 | extern "C" | ||
25645 | #endif | ||
25646 | char XRenderCreatePicture (); | ||
25647 | int | ||
25648 | main () | ||
25649 | { | ||
25650 | return XRenderCreatePicture (); | ||
25651 | ; | ||
25652 | return 0; | ||
25653 | } | ||
25654 | _ACEOF | ||
25655 | if ac_fn_c_try_link "$LINENO"; then : | ||
25656 | ac_cv_lib_Xrender_XRenderCreatePicture=yes | ||
25657 | else | ||
25658 | ac_cv_lib_Xrender_XRenderCreatePicture=no | ||
25659 | fi | ||
25660 | rm -f core conftest.err conftest.$ac_objext \ | ||
25661 | conftest$ac_exeext conftest.$ac_ext | ||
25662 | LIBS=$ac_check_lib_save_LIBS | ||
25663 | fi | ||
25664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreatePicture" >&5 | ||
25665 | $as_echo "$ac_cv_lib_Xrender_XRenderCreatePicture" >&6; } | ||
25666 | if test "x$ac_cv_lib_Xrender_XRenderCreatePicture" = x""yes; then : | ||
25667 | have_dep="yes" | ||
25668 | else | ||
25669 | have_dep="no" | ||
25670 | fi | ||
25671 | |||
25672 | fi | ||
25673 | |||
25674 | if test "x${have_dep}" = "xyes" ; then | ||
25675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXCreateContext in -lGL" >&5 | ||
25676 | $as_echo_n "checking for glXCreateContext in -lGL... " >&6; } | ||
25677 | if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then : | ||
25678 | $as_echo_n "(cached) " >&6 | ||
25679 | else | ||
25680 | ac_check_lib_save_LIBS=$LIBS | ||
25681 | LIBS="-lGL -lX11 -lXext -lXrender -lm $gl_pt_lib $LIBS" | ||
25682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25683 | /* end confdefs.h. */ | ||
25684 | |||
25685 | /* Override any GCC internal prototype to avoid an error. | ||
25686 | Use char because int might match the return type of a GCC | ||
25687 | builtin and then its argument prototype would still apply. */ | ||
25688 | #ifdef __cplusplus | ||
25689 | extern "C" | ||
25690 | #endif | ||
25691 | char glXCreateContext (); | ||
25692 | int | ||
25693 | main () | ||
25694 | { | ||
25695 | return glXCreateContext (); | ||
25696 | ; | ||
25697 | return 0; | ||
25698 | } | ||
25699 | _ACEOF | ||
25700 | if ac_fn_c_try_link "$LINENO"; then : | ||
25701 | ac_cv_lib_GL_glXCreateContext=yes | ||
25702 | else | ||
25703 | ac_cv_lib_GL_glXCreateContext=no | ||
25704 | fi | ||
25705 | rm -f core conftest.err conftest.$ac_objext \ | ||
25706 | conftest$ac_exeext conftest.$ac_ext | ||
25707 | LIBS=$ac_check_lib_save_LIBS | ||
25708 | fi | ||
25709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glXCreateContext" >&5 | ||
25710 | $as_echo "$ac_cv_lib_GL_glXCreateContext" >&6; } | ||
25711 | if test "x$ac_cv_lib_GL_glXCreateContext" = x""yes; then : | ||
25712 | have_dep="yes" | ||
25713 | else | ||
25714 | have_dep="no" | ||
25715 | fi | ||
25716 | |||
25717 | fi | ||
25718 | |||
25719 | |||
25720 | pkg_failed=no | ||
25721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_GL" >&5 | ||
25722 | $as_echo_n "checking for XCB_GL... " >&6; } | ||
25723 | |||
25724 | if test -n "$XCB_GL_CFLAGS"; then | ||
25725 | pkg_cv_XCB_GL_CFLAGS="$XCB_GL_CFLAGS" | ||
25726 | elif test -n "$PKG_CONFIG"; then | ||
25727 | if test -n "$PKG_CONFIG" && \ | ||
25728 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb xcb-glx xcb-render xcb-renderutil\""; } >&5 | ||
25729 | ($PKG_CONFIG --exists --print-errors "x11-xcb xcb xcb-glx xcb-render xcb-renderutil") 2>&5 | ||
25730 | ac_status=$? | ||
25731 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
25732 | test $ac_status = 0; }; then | ||
25733 | pkg_cv_XCB_GL_CFLAGS=`$PKG_CONFIG --cflags "x11-xcb xcb xcb-glx xcb-render xcb-renderutil" 2>/dev/null` | ||
25734 | else | ||
25735 | pkg_failed=yes | ||
25736 | fi | ||
25737 | else | ||
25738 | pkg_failed=untried | ||
25739 | fi | ||
25740 | if test -n "$XCB_GL_LIBS"; then | ||
25741 | pkg_cv_XCB_GL_LIBS="$XCB_GL_LIBS" | ||
25742 | elif test -n "$PKG_CONFIG"; then | ||
25743 | if test -n "$PKG_CONFIG" && \ | ||
25744 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb xcb-glx xcb-render xcb-renderutil\""; } >&5 | ||
25745 | ($PKG_CONFIG --exists --print-errors "x11-xcb xcb xcb-glx xcb-render xcb-renderutil") 2>&5 | ||
25746 | ac_status=$? | ||
25747 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
25748 | test $ac_status = 0; }; then | ||
25749 | pkg_cv_XCB_GL_LIBS=`$PKG_CONFIG --libs "x11-xcb xcb xcb-glx xcb-render xcb-renderutil" 2>/dev/null` | ||
25750 | else | ||
25751 | pkg_failed=yes | ||
25752 | fi | ||
25753 | else | ||
25754 | pkg_failed=untried | ||
25755 | fi | ||
25756 | |||
25757 | |||
25758 | |||
25759 | if test $pkg_failed = yes; then | ||
25760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
25761 | $as_echo "no" >&6; } | ||
25762 | |||
25763 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
25764 | _pkg_short_errors_supported=yes | ||
25765 | else | ||
25766 | _pkg_short_errors_supported=no | ||
25767 | fi | ||
25768 | if test $_pkg_short_errors_supported = yes; then | ||
25769 | XCB_GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11-xcb xcb xcb-glx xcb-render xcb-renderutil" 2>&1` | ||
25770 | else | ||
25771 | XCB_GL_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11-xcb xcb xcb-glx xcb-render xcb-renderutil" 2>&1` | ||
25772 | fi | ||
25773 | # Put the nasty error message in config.log where it belongs | ||
25774 | echo "$XCB_GL_PKG_ERRORS" >&5 | ||
25775 | |||
25776 | |||
25777 | have_dep="no" | ||
25778 | |||
25779 | |||
25780 | elif test $pkg_failed = untried; then | ||
25781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
25782 | $as_echo "no" >&6; } | ||
25783 | |||
25784 | have_dep="no" | ||
25785 | |||
25786 | |||
25787 | else | ||
25788 | XCB_GL_CFLAGS=$pkg_cv_XCB_GL_CFLAGS | ||
25789 | XCB_GL_LIBS=$pkg_cv_XCB_GL_LIBS | ||
25790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
25791 | $as_echo "yes" >&6; } | ||
25792 | |||
25793 | have_dep="yes" | ||
25794 | requirement="x11-xcb xcb xcb-glx xcb-render xcb-renderutil" | ||
25795 | evas_engine_gl_xcb_cflags="${XCB_GL_CFLAGS}" | ||
25796 | evas_engine_gl_xcb_libs="${XCB_GL_LIBS}" | ||
25797 | |||
25798 | fi | ||
25799 | |||
25800 | if test "x$gl_flavor_gles" = "xyes" ; then | ||
25801 | have_dep=no | ||
25802 | fi | ||
25803 | |||
25804 | if test "x${have_dep}" = "xyes" ; then | ||
25805 | |||
25806 | pkg_failed=no | ||
25807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL_EET" >&5 | ||
25808 | $as_echo_n "checking for GL_EET... " >&6; } | ||
25809 | |||
25810 | if test -n "$GL_EET_CFLAGS"; then | ||
25811 | pkg_cv_GL_EET_CFLAGS="$GL_EET_CFLAGS" | ||
25812 | elif test -n "$PKG_CONFIG"; then | ||
25813 | if test -n "$PKG_CONFIG" && \ | ||
25814 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.6.0\""; } >&5 | ||
25815 | ($PKG_CONFIG --exists --print-errors "eet >= 1.6.0") 2>&5 | ||
25816 | ac_status=$? | ||
25817 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
25818 | test $ac_status = 0; }; then | ||
25819 | pkg_cv_GL_EET_CFLAGS=`$PKG_CONFIG --cflags "eet >= 1.6.0" 2>/dev/null` | ||
25820 | else | ||
25821 | pkg_failed=yes | ||
25822 | fi | ||
25823 | else | ||
25824 | pkg_failed=untried | ||
25825 | fi | ||
25826 | if test -n "$GL_EET_LIBS"; then | ||
25827 | pkg_cv_GL_EET_LIBS="$GL_EET_LIBS" | ||
25828 | elif test -n "$PKG_CONFIG"; then | ||
25829 | if test -n "$PKG_CONFIG" && \ | ||
25830 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.6.0\""; } >&5 | ||
25831 | ($PKG_CONFIG --exists --print-errors "eet >= 1.6.0") 2>&5 | ||
25832 | ac_status=$? | ||
25833 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
25834 | test $ac_status = 0; }; then | ||
25835 | pkg_cv_GL_EET_LIBS=`$PKG_CONFIG --libs "eet >= 1.6.0" 2>/dev/null` | ||
25836 | else | ||
25837 | pkg_failed=yes | ||
25838 | fi | ||
25839 | else | ||
25840 | pkg_failed=untried | ||
25841 | fi | ||
25842 | |||
25843 | |||
25844 | |||
25845 | if test $pkg_failed = yes; then | ||
25846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
25847 | $as_echo "no" >&6; } | ||
25848 | |||
25849 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
25850 | _pkg_short_errors_supported=yes | ||
25851 | else | ||
25852 | _pkg_short_errors_supported=no | ||
25853 | fi | ||
25854 | if test $_pkg_short_errors_supported = yes; then | ||
25855 | GL_EET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eet >= 1.6.0" 2>&1` | ||
25856 | else | ||
25857 | GL_EET_PKG_ERRORS=`$PKG_CONFIG --print-errors "eet >= 1.6.0" 2>&1` | ||
25858 | fi | ||
25859 | # Put the nasty error message in config.log where it belongs | ||
25860 | echo "$GL_EET_PKG_ERRORS" >&5 | ||
25861 | |||
25862 | have_dep="no" | ||
25863 | elif test $pkg_failed = untried; then | ||
25864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
25865 | $as_echo "no" >&6; } | ||
25866 | have_dep="no" | ||
25867 | else | ||
25868 | GL_EET_CFLAGS=$pkg_cv_GL_EET_CFLAGS | ||
25869 | GL_EET_LIBS=$pkg_cv_GL_EET_LIBS | ||
25870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
25871 | $as_echo "yes" >&6; } | ||
25872 | have_dep="yes" | ||
25873 | fi | ||
25874 | if test "x${have_dep}" = "xyes" ; then | ||
25875 | if test "xno" = "xyes" ; then | ||
25876 | x_libs="${x_libs} -lX11 -lXext -lXrender" | ||
25877 | else | ||
25878 | x_dir=${x_dir:-/usr/X11R6} | ||
25879 | x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}} | ||
25880 | x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext -lXrender" | ||
25881 | fi | ||
25882 | evas_engine_gl_xcb_cflags="-I/usr/include ${XCB_GL_CFLAGS} ${x_cflags}" | ||
25883 | evas_engine_gl_xcb_libs="${XCB_GL_LIBS} ${x_libs} -lGL $gl_pt_lib" | ||
25884 | evas_engine_gl_common_libs="-lGL $gl_pt_lib" | ||
25885 | fi | ||
25886 | else | ||
25887 | if test "xno" = "xyes" ; then | ||
25888 | x_libs="${x_libs} -lX11 -lXext -lXrender" | ||
25889 | else | ||
25890 | x_dir=${x_dir:-/usr/X11R6} | ||
25891 | x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}} | ||
25892 | x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext -lXrender" | ||
25893 | fi | ||
25894 | ac_fn_c_check_header_compile "$LINENO" "GLES2/gl2.h" "ac_cv_header_GLES2_gl2_h" " | ||
25895 | #include <GLES2/gl2.h> | ||
25896 | #include <GLES2/gl2ext.h> | ||
25897 | #include <EGL/egl.h> | ||
25898 | |||
25899 | " | ||
25900 | if test "x$ac_cv_header_GLES2_gl2_h" = x""yes; then : | ||
25901 | have_egl="yes" | ||
25902 | else | ||
25903 | have_egl="no" | ||
25904 | fi | ||
25905 | |||
25906 | |||
25907 | if test "x${have_egl}" = "xyes" ; then | ||
25908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glTexImage2D in -lGLESv2" >&5 | ||
25909 | $as_echo_n "checking for glTexImage2D in -lGLESv2... " >&6; } | ||
25910 | if test "${ac_cv_lib_GLESv2_glTexImage2D+set}" = set; then : | ||
25911 | $as_echo_n "(cached) " >&6 | ||
25912 | else | ||
25913 | ac_check_lib_save_LIBS=$LIBS | ||
25914 | LIBS="-lGLESv2 -lEGL ${x_libs} -lm $gl_pt_lib $LIBS" | ||
25915 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
25916 | /* end confdefs.h. */ | ||
25917 | |||
25918 | /* Override any GCC internal prototype to avoid an error. | ||
25919 | Use char because int might match the return type of a GCC | ||
25920 | builtin and then its argument prototype would still apply. */ | ||
25921 | #ifdef __cplusplus | ||
25922 | extern "C" | ||
25923 | #endif | ||
25924 | char glTexImage2D (); | ||
25925 | int | ||
25926 | main () | ||
25927 | { | ||
25928 | return glTexImage2D (); | ||
25929 | ; | ||
25930 | return 0; | ||
25931 | } | ||
25932 | _ACEOF | ||
25933 | if ac_fn_c_try_link "$LINENO"; then : | ||
25934 | ac_cv_lib_GLESv2_glTexImage2D=yes | ||
25935 | else | ||
25936 | ac_cv_lib_GLESv2_glTexImage2D=no | ||
25937 | fi | ||
25938 | rm -f core conftest.err conftest.$ac_objext \ | ||
25939 | conftest$ac_exeext conftest.$ac_ext | ||
25940 | LIBS=$ac_check_lib_save_LIBS | ||
25941 | fi | ||
25942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLESv2_glTexImage2D" >&5 | ||
25943 | $as_echo "$ac_cv_lib_GLESv2_glTexImage2D" >&6; } | ||
25944 | if test "x$ac_cv_lib_GLESv2_glTexImage2D" = x""yes; then : | ||
25945 | have_glesv2="yes" | ||
25946 | fi | ||
25947 | |||
25948 | if test "x${have_glesv2}" = "xyes" ; then | ||
25949 | |||
25950 | pkg_failed=no | ||
25951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL_EET" >&5 | ||
25952 | $as_echo_n "checking for GL_EET... " >&6; } | ||
25953 | |||
25954 | if test -n "$GL_EET_CFLAGS"; then | ||
25955 | pkg_cv_GL_EET_CFLAGS="$GL_EET_CFLAGS" | ||
25956 | elif test -n "$PKG_CONFIG"; then | ||
25957 | if test -n "$PKG_CONFIG" && \ | ||
25958 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.6.0\""; } >&5 | ||
25959 | ($PKG_CONFIG --exists --print-errors "eet >= 1.6.0") 2>&5 | ||
25960 | ac_status=$? | ||
25961 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
25962 | test $ac_status = 0; }; then | ||
25963 | pkg_cv_GL_EET_CFLAGS=`$PKG_CONFIG --cflags "eet >= 1.6.0" 2>/dev/null` | ||
25964 | else | ||
25965 | pkg_failed=yes | ||
25966 | fi | ||
25967 | else | ||
25968 | pkg_failed=untried | ||
25969 | fi | ||
25970 | if test -n "$GL_EET_LIBS"; then | ||
25971 | pkg_cv_GL_EET_LIBS="$GL_EET_LIBS" | ||
25972 | elif test -n "$PKG_CONFIG"; then | ||
25973 | if test -n "$PKG_CONFIG" && \ | ||
25974 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.6.0\""; } >&5 | ||
25975 | ($PKG_CONFIG --exists --print-errors "eet >= 1.6.0") 2>&5 | ||
25976 | ac_status=$? | ||
25977 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
25978 | test $ac_status = 0; }; then | ||
25979 | pkg_cv_GL_EET_LIBS=`$PKG_CONFIG --libs "eet >= 1.6.0" 2>/dev/null` | ||
25980 | else | ||
25981 | pkg_failed=yes | ||
25982 | fi | ||
25983 | else | ||
25984 | pkg_failed=untried | ||
25985 | fi | ||
25986 | |||
25987 | |||
25988 | |||
25989 | if test $pkg_failed = yes; then | ||
25990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
25991 | $as_echo "no" >&6; } | ||
25992 | |||
25993 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
25994 | _pkg_short_errors_supported=yes | ||
25995 | else | ||
25996 | _pkg_short_errors_supported=no | ||
25997 | fi | ||
25998 | if test $_pkg_short_errors_supported = yes; then | ||
25999 | GL_EET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eet >= 1.6.0" 2>&1` | ||
26000 | else | ||
26001 | GL_EET_PKG_ERRORS=`$PKG_CONFIG --print-errors "eet >= 1.6.0" 2>&1` | ||
26002 | fi | ||
26003 | # Put the nasty error message in config.log where it belongs | ||
26004 | echo "$GL_EET_PKG_ERRORS" >&5 | ||
26005 | |||
26006 | have_dep="no" | ||
26007 | elif test $pkg_failed = untried; then | ||
26008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
26009 | $as_echo "no" >&6; } | ||
26010 | have_dep="no" | ||
26011 | else | ||
26012 | GL_EET_CFLAGS=$pkg_cv_GL_EET_CFLAGS | ||
26013 | GL_EET_LIBS=$pkg_cv_GL_EET_LIBS | ||
26014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
26015 | $as_echo "yes" >&6; } | ||
26016 | have_dep="yes" | ||
26017 | fi | ||
26018 | if test "x${have_dep}" = "xyes" ; then | ||
26019 | evas_engine_gl_xcb_cflags="${XCB_GL_CFLAGS} ${x_cflags}" | ||
26020 | evas_engine_gl_xcb_libs="${XCB_GL_LIBS} ${x_libs} -lGLESv2 -lEGL -lm $gl_pt_lib" | ||
26021 | evas_engine_gl_common_libs="-lGLESv2 -lm $gl_pt_lib" | ||
26022 | have_dep="yes" | ||
26023 | |||
26024 | $as_echo "#define GLES_VARIETY_SGX 1" >>confdefs.h | ||
26025 | |||
26026 | gles_variety_sgx="yes" | ||
26027 | fi | ||
26028 | fi | ||
26029 | fi | ||
26030 | fi | ||
26031 | |||
26032 | |||
26033 | |||
26034 | |||
26035 | if test "x${have_dep}" = "xyes" ; then | ||
26036 | have_engine="yes" | ||
26037 | else | ||
26038 | have_engine="no" | ||
26039 | fi | ||
26040 | |||
26041 | |||
26042 | fi | ||
26043 | |||
26044 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
26045 | as_fn_error $? "OpenGL XCB dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
26046 | fi | ||
26047 | |||
26048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenGL XCB rendering backend will be built" >&5 | ||
26049 | $as_echo_n "checking whether OpenGL XCB rendering backend will be built... " >&6; } | ||
26050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
26051 | $as_echo "${have_engine}" >&6; } | ||
26052 | |||
26053 | if test "x${have_engine}" = "xyes" ; then | ||
26054 | if test "x${want_engine}" = "xstatic" ; then | ||
26055 | have_evas_engine_gl_xcb="static" | ||
26056 | want_static_engine="yes" | ||
26057 | else | ||
26058 | have_evas_engine_gl_xcb="yes" | ||
26059 | fi | ||
26060 | fi | ||
26061 | |||
26062 | if test "x${have_engine}" = "xyes" ; then | ||
26063 | |||
26064 | $as_echo "#define BUILD_ENGINE_GL_XCB 1" >>confdefs.h | ||
26065 | |||
26066 | fi | ||
26067 | |||
26068 | if test "x${have_engine}" = "xyes"; then | ||
26069 | BUILD_ENGINE_GL_XCB_TRUE= | ||
26070 | BUILD_ENGINE_GL_XCB_FALSE='#' | ||
26071 | else | ||
26072 | BUILD_ENGINE_GL_XCB_TRUE='#' | ||
26073 | BUILD_ENGINE_GL_XCB_FALSE= | ||
26074 | fi | ||
26075 | |||
26076 | |||
26077 | if test "x${want_static_engine}" = "xyes" ; then | ||
26078 | |||
26079 | $as_echo "#define EVAS_STATIC_BUILD_GL_XCB 1" >>confdefs.h | ||
26080 | |||
26081 | have_static_module="yes" | ||
26082 | fi | ||
26083 | |||
26084 | if test "x${want_static_engine}" = "xyes"; then | ||
26085 | EVAS_STATIC_BUILD_GL_XCB_TRUE= | ||
26086 | EVAS_STATIC_BUILD_GL_XCB_FALSE='#' | ||
26087 | else | ||
26088 | EVAS_STATIC_BUILD_GL_XCB_TRUE='#' | ||
26089 | EVAS_STATIC_BUILD_GL_XCB_FALSE= | ||
26090 | fi | ||
26091 | |||
26092 | |||
26093 | |||
26094 | |||
26095 | |||
26096 | |||
26097 | if test "x$have_evas_engine_gl_xcb" != "xno" ; then | ||
26098 | build_gl_xcb="yes" | ||
26099 | have_evas_engine_gl_x11="yes" | ||
26100 | |||
26101 | $as_echo "#define BUILD_ENGINE_GL_X11 1" >>confdefs.h | ||
26102 | |||
26103 | |||
26104 | $as_echo "#define BUILD_ENGINE_GL_XCB 1" >>confdefs.h | ||
26105 | |||
26106 | if test "x$have_evas_engine_gl_xcb" = "xstatic" ; then | ||
26107 | |||
26108 | $as_echo "#define EVAS_STATIC_BUILD_GL_X11 1" >>confdefs.h | ||
26109 | |||
26110 | fi | ||
26111 | fi | ||
26112 | |||
26113 | else | ||
26114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
26115 | $as_echo "no" >&6; } | ||
26116 | build_gl_xcb="no" | ||
26117 | fi | ||
26118 | |||
26119 | ## If we are not building XCB, then we can build XLib ## | ||
26120 | |||
26121 | if test "x$build_gl_xcb" = "xno" ; then | ||
26122 | |||
26123 | |||
26124 | |||
26125 | want_engine="${want_evas_engine_gl_xlib}" | ||
26126 | want_static_engine="no" | ||
26127 | have_engine="no" | ||
26128 | have_evas_engine_gl_xlib="no" | ||
26129 | |||
26130 | # Check whether --enable-gl-xlib was given. | ||
26131 | if test "${enable_gl_xlib+set}" = set; then : | ||
26132 | enableval=$enable_gl_xlib; | ||
26133 | if test "x${enableval}" = "xyes" ; then | ||
26134 | want_engine="yes" | ||
26135 | else | ||
26136 | if test "x${enableval}" = "xstatic" ; then | ||
26137 | want_engine="static" | ||
26138 | else | ||
26139 | want_engine="no" | ||
26140 | fi | ||
26141 | fi | ||
26142 | |||
26143 | fi | ||
26144 | |||
26145 | |||
26146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OpenGL XLib rendering backend" >&5 | ||
26147 | $as_echo_n "checking whether to enable OpenGL XLib rendering backend... " >&6; } | ||
26148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5 | ||
26149 | $as_echo "${want_engine}" >&6; } | ||
26150 | |||
26151 | if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then | ||
26152 | |||
26153 | |||
26154 | evas_engine_gl_xlib_cflags="" | ||
26155 | evas_engine_gl_xlib_libs="" | ||
26156 | |||
26157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 | ||
26158 | $as_echo_n "checking for X... " >&6; } | ||
26159 | |||
26160 | |||
26161 | # Check whether --with-x was given. | ||
26162 | if test "${with_x+set}" = set; then : | ||
26163 | withval=$with_x; | ||
26164 | fi | ||
26165 | |||
26166 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | ||
26167 | if test "x$with_x" = xno; then | ||
26168 | # The user explicitly disabled X. | ||
26169 | have_x=disabled | ||
26170 | else | ||
26171 | case $x_includes,$x_libraries in #( | ||
26172 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #( | ||
26173 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : | ||
26174 | $as_echo_n "(cached) " >&6 | ||
26175 | else | ||
26176 | # One or both of the vars are not set, and there is no cached value. | ||
26177 | ac_x_includes=no ac_x_libraries=no | ||
26178 | rm -f -r conftest.dir | ||
26179 | if mkdir conftest.dir; then | ||
26180 | cd conftest.dir | ||
26181 | cat >Imakefile <<'_ACEOF' | ||
26182 | incroot: | ||
26183 | @echo incroot='${INCROOT}' | ||
26184 | usrlibdir: | ||
26185 | @echo usrlibdir='${USRLIBDIR}' | ||
26186 | libdir: | ||
26187 | @echo libdir='${LIBDIR}' | ||
26188 | _ACEOF | ||
26189 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | ||
26190 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | ||
26191 | for ac_var in incroot usrlibdir libdir; do | ||
26192 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | ||
26193 | done | ||
26194 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | ||
26195 | for ac_extension in a so sl dylib la dll; do | ||
26196 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && | ||
26197 | test -f "$ac_im_libdir/libX11.$ac_extension"; then | ||
26198 | ac_im_usrlibdir=$ac_im_libdir; break | ||
26199 | fi | ||
26200 | done | ||
26201 | # Screen out bogus values from the imake configuration. They are | ||
26202 | # bogus both because they are the default anyway, and because | ||
26203 | # using them would break gcc on systems where it needs fixed includes. | ||
26204 | case $ac_im_incroot in | ||
26205 | /usr/include) ac_x_includes= ;; | ||
26206 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | ||
26207 | esac | ||
26208 | case $ac_im_usrlibdir in | ||
26209 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; | ||
26210 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | ||
26211 | esac | ||
26212 | fi | ||
26213 | cd .. | ||
26214 | rm -f -r conftest.dir | ||
26215 | fi | ||
26216 | |||
26217 | # Standard set of common directories for X headers. | ||
26218 | # Check X11 before X11Rn because it is often a symlink to the current release. | ||
26219 | ac_x_header_dirs=' | ||
26220 | /usr/X11/include | ||
26221 | /usr/X11R7/include | ||
26222 | /usr/X11R6/include | ||
26223 | /usr/X11R5/include | ||
26224 | /usr/X11R4/include | ||
26225 | |||
26226 | /usr/include/X11 | ||
26227 | /usr/include/X11R7 | ||
26228 | /usr/include/X11R6 | ||
26229 | /usr/include/X11R5 | ||
26230 | /usr/include/X11R4 | ||
26231 | |||
26232 | /usr/local/X11/include | ||
26233 | /usr/local/X11R7/include | ||
26234 | /usr/local/X11R6/include | ||
26235 | /usr/local/X11R5/include | ||
26236 | /usr/local/X11R4/include | ||
26237 | |||
26238 | /usr/local/include/X11 | ||
26239 | /usr/local/include/X11R7 | ||
26240 | /usr/local/include/X11R6 | ||
26241 | /usr/local/include/X11R5 | ||
26242 | /usr/local/include/X11R4 | ||
26243 | |||
26244 | /usr/X386/include | ||
26245 | /usr/x386/include | ||
26246 | /usr/XFree86/include/X11 | ||
26247 | |||
26248 | /usr/include | ||
26249 | /usr/local/include | ||
26250 | /usr/unsupported/include | ||
26251 | /usr/athena/include | ||
26252 | /usr/local/x11r5/include | ||
26253 | /usr/lpp/Xamples/include | ||
26254 | |||
26255 | /usr/openwin/include | ||
26256 | /usr/openwin/share/include' | ||
26257 | |||
26258 | if test "$ac_x_includes" = no; then | ||
26259 | # Guess where to find include files, by looking for Xlib.h. | ||
26260 | # First, try using that file with no special directory specified. | ||
26261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26262 | /* end confdefs.h. */ | ||
26263 | #include <X11/Xlib.h> | ||
26264 | _ACEOF | ||
26265 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
26266 | # We can compile using X headers with no special include directory. | ||
26267 | ac_x_includes= | ||
26268 | else | ||
26269 | for ac_dir in $ac_x_header_dirs; do | ||
26270 | if test -r "$ac_dir/X11/Xlib.h"; then | ||
26271 | ac_x_includes=$ac_dir | ||
26272 | break | ||
26273 | fi | ||
26274 | done | ||
26275 | fi | ||
26276 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
26277 | fi # $ac_x_includes = no | ||
26278 | |||
26279 | if test "$ac_x_libraries" = no; then | ||
26280 | # Check for the libraries. | ||
26281 | # See if we find them without any special options. | ||
26282 | # Don't add to $LIBS permanently. | ||
26283 | ac_save_LIBS=$LIBS | ||
26284 | LIBS="-lX11 $LIBS" | ||
26285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26286 | /* end confdefs.h. */ | ||
26287 | #include <X11/Xlib.h> | ||
26288 | int | ||
26289 | main () | ||
26290 | { | ||
26291 | XrmInitialize () | ||
26292 | ; | ||
26293 | return 0; | ||
26294 | } | ||
26295 | _ACEOF | ||
26296 | if ac_fn_c_try_link "$LINENO"; then : | ||
26297 | LIBS=$ac_save_LIBS | ||
26298 | # We can link X programs with no special library path. | ||
26299 | ac_x_libraries= | ||
26300 | else | ||
26301 | LIBS=$ac_save_LIBS | ||
26302 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | ||
26303 | do | ||
26304 | # Don't even attempt the hair of trying to link an X program! | ||
26305 | for ac_extension in a so sl dylib la dll; do | ||
26306 | if test -r "$ac_dir/libX11.$ac_extension"; then | ||
26307 | ac_x_libraries=$ac_dir | ||
26308 | break 2 | ||
26309 | fi | ||
26310 | done | ||
26311 | done | ||
26312 | fi | ||
26313 | rm -f core conftest.err conftest.$ac_objext \ | ||
26314 | conftest$ac_exeext conftest.$ac_ext | ||
26315 | fi # $ac_x_libraries = no | ||
26316 | |||
26317 | case $ac_x_includes,$ac_x_libraries in #( | ||
26318 | no,* | *,no | *\'*) | ||
26319 | # Didn't find X, or a directory has "'" in its name. | ||
26320 | ac_cv_have_x="have_x=no";; #( | ||
26321 | *) | ||
26322 | # Record where we found X for the cache. | ||
26323 | ac_cv_have_x="have_x=yes\ | ||
26324 | ac_x_includes='$ac_x_includes'\ | ||
26325 | ac_x_libraries='$ac_x_libraries'" | ||
26326 | esac | ||
26327 | fi | ||
26328 | ;; #( | ||
26329 | *) have_x=yes;; | ||
26330 | esac | ||
26331 | eval "$ac_cv_have_x" | ||
26332 | fi # $with_x != no | ||
26333 | |||
26334 | if test "$have_x" != yes; then | ||
26335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 | ||
26336 | $as_echo "$have_x" >&6; } | ||
26337 | no_x=yes | ||
26338 | else | ||
26339 | # If each of the values was on the command line, it overrides each guess. | ||
26340 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | ||
26341 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | ||
26342 | # Update the cache value to reflect the command line values. | ||
26343 | ac_cv_have_x="have_x=yes\ | ||
26344 | ac_x_includes='$x_includes'\ | ||
26345 | ac_x_libraries='$x_libraries'" | ||
26346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 | ||
26347 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } | ||
26348 | fi | ||
26349 | |||
26350 | if test "$no_x" = yes; then | ||
26351 | # Not all programs may use this symbol, but it does not hurt to define it. | ||
26352 | |||
26353 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h | ||
26354 | |||
26355 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | ||
26356 | else | ||
26357 | if test -n "$x_includes"; then | ||
26358 | X_CFLAGS="$X_CFLAGS -I$x_includes" | ||
26359 | fi | ||
26360 | |||
26361 | # It would also be nice to do this for all -L options, not just this one. | ||
26362 | if test -n "$x_libraries"; then | ||
26363 | X_LIBS="$X_LIBS -L$x_libraries" | ||
26364 | # For Solaris; some versions of Sun CC require a space after -R and | ||
26365 | # others require no space. Words are not sufficient . . . . | ||
26366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 | ||
26367 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } | ||
26368 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | ||
26369 | ac_xsave_c_werror_flag=$ac_c_werror_flag | ||
26370 | ac_c_werror_flag=yes | ||
26371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26372 | /* end confdefs.h. */ | ||
26373 | |||
26374 | int | ||
26375 | main () | ||
26376 | { | ||
26377 | |||
26378 | ; | ||
26379 | return 0; | ||
26380 | } | ||
26381 | _ACEOF | ||
26382 | if ac_fn_c_try_link "$LINENO"; then : | ||
26383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
26384 | $as_echo "no" >&6; } | ||
26385 | X_LIBS="$X_LIBS -R$x_libraries" | ||
26386 | else | ||
26387 | LIBS="$ac_xsave_LIBS -R $x_libraries" | ||
26388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26389 | /* end confdefs.h. */ | ||
26390 | |||
26391 | int | ||
26392 | main () | ||
26393 | { | ||
26394 | |||
26395 | ; | ||
26396 | return 0; | ||
26397 | } | ||
26398 | _ACEOF | ||
26399 | if ac_fn_c_try_link "$LINENO"; then : | ||
26400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
26401 | $as_echo "yes" >&6; } | ||
26402 | X_LIBS="$X_LIBS -R $x_libraries" | ||
26403 | else | ||
26404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 | ||
26405 | $as_echo "neither works" >&6; } | ||
26406 | fi | ||
26407 | rm -f core conftest.err conftest.$ac_objext \ | ||
26408 | conftest$ac_exeext conftest.$ac_ext | ||
26409 | fi | ||
26410 | rm -f core conftest.err conftest.$ac_objext \ | ||
26411 | conftest$ac_exeext conftest.$ac_ext | ||
26412 | ac_c_werror_flag=$ac_xsave_c_werror_flag | ||
26413 | LIBS=$ac_xsave_LIBS | ||
26414 | fi | ||
26415 | |||
26416 | # Check for system-dependent libraries X programs must link with. | ||
26417 | # Do this before checking for the system-independent R6 libraries | ||
26418 | # (-lICE), since we may need -lsocket or whatever for X linking. | ||
26419 | |||
26420 | if test "$ISC" = yes; then | ||
26421 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | ||
26422 | else | ||
26423 | # Martyn Johnson says this is needed for Ultrix, if the X | ||
26424 | # libraries were built with DECnet support. And Karl Berry says | ||
26425 | # the Alpha needs dnet_stub (dnet does not exist). | ||
26426 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | ||
26427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26428 | /* end confdefs.h. */ | ||
26429 | |||
26430 | /* Override any GCC internal prototype to avoid an error. | ||
26431 | Use char because int might match the return type of a GCC | ||
26432 | builtin and then its argument prototype would still apply. */ | ||
26433 | #ifdef __cplusplus | ||
26434 | extern "C" | ||
26435 | #endif | ||
26436 | char XOpenDisplay (); | ||
26437 | int | ||
26438 | main () | ||
26439 | { | ||
26440 | return XOpenDisplay (); | ||
26441 | ; | ||
26442 | return 0; | ||
26443 | } | ||
26444 | _ACEOF | ||
26445 | if ac_fn_c_try_link "$LINENO"; then : | ||
26446 | |||
26447 | else | ||
26448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 | ||
26449 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } | ||
26450 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : | ||
26451 | $as_echo_n "(cached) " >&6 | ||
26452 | else | ||
26453 | ac_check_lib_save_LIBS=$LIBS | ||
26454 | LIBS="-ldnet $LIBS" | ||
26455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26456 | /* end confdefs.h. */ | ||
26457 | |||
26458 | /* Override any GCC internal prototype to avoid an error. | ||
26459 | Use char because int might match the return type of a GCC | ||
26460 | builtin and then its argument prototype would still apply. */ | ||
26461 | #ifdef __cplusplus | ||
26462 | extern "C" | ||
26463 | #endif | ||
26464 | char dnet_ntoa (); | ||
26465 | int | ||
26466 | main () | ||
26467 | { | ||
26468 | return dnet_ntoa (); | ||
26469 | ; | ||
26470 | return 0; | ||
26471 | } | ||
26472 | _ACEOF | ||
26473 | if ac_fn_c_try_link "$LINENO"; then : | ||
26474 | ac_cv_lib_dnet_dnet_ntoa=yes | ||
26475 | else | ||
26476 | ac_cv_lib_dnet_dnet_ntoa=no | ||
26477 | fi | ||
26478 | rm -f core conftest.err conftest.$ac_objext \ | ||
26479 | conftest$ac_exeext conftest.$ac_ext | ||
26480 | LIBS=$ac_check_lib_save_LIBS | ||
26481 | fi | ||
26482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | ||
26483 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } | ||
26484 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : | ||
26485 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | ||
26486 | fi | ||
26487 | |||
26488 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | ||
26489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 | ||
26490 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } | ||
26491 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : | ||
26492 | $as_echo_n "(cached) " >&6 | ||
26493 | else | ||
26494 | ac_check_lib_save_LIBS=$LIBS | ||
26495 | LIBS="-ldnet_stub $LIBS" | ||
26496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26497 | /* end confdefs.h. */ | ||
26498 | |||
26499 | /* Override any GCC internal prototype to avoid an error. | ||
26500 | Use char because int might match the return type of a GCC | ||
26501 | builtin and then its argument prototype would still apply. */ | ||
26502 | #ifdef __cplusplus | ||
26503 | extern "C" | ||
26504 | #endif | ||
26505 | char dnet_ntoa (); | ||
26506 | int | ||
26507 | main () | ||
26508 | { | ||
26509 | return dnet_ntoa (); | ||
26510 | ; | ||
26511 | return 0; | ||
26512 | } | ||
26513 | _ACEOF | ||
26514 | if ac_fn_c_try_link "$LINENO"; then : | ||
26515 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | ||
26516 | else | ||
26517 | ac_cv_lib_dnet_stub_dnet_ntoa=no | ||
26518 | fi | ||
26519 | rm -f core conftest.err conftest.$ac_objext \ | ||
26520 | conftest$ac_exeext conftest.$ac_ext | ||
26521 | LIBS=$ac_check_lib_save_LIBS | ||
26522 | fi | ||
26523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | ||
26524 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } | ||
26525 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then : | ||
26526 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | ||
26527 | fi | ||
26528 | |||
26529 | fi | ||
26530 | fi | ||
26531 | rm -f core conftest.err conftest.$ac_objext \ | ||
26532 | conftest$ac_exeext conftest.$ac_ext | ||
26533 | LIBS="$ac_xsave_LIBS" | ||
26534 | |||
26535 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | ||
26536 | # to get the SysV transport functions. | ||
26537 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | ||
26538 | # needs -lnsl. | ||
26539 | # The nsl library prevents programs from opening the X display | ||
26540 | # on Irix 5.2, according to T.E. Dickey. | ||
26541 | # The functions gethostbyname, getservbyname, and inet_addr are | ||
26542 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | ||
26543 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | ||
26544 | if test "x$ac_cv_func_gethostbyname" = x""yes; then : | ||
26545 | |||
26546 | fi | ||
26547 | |||
26548 | if test $ac_cv_func_gethostbyname = no; then | ||
26549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 | ||
26550 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } | ||
26551 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : | ||
26552 | $as_echo_n "(cached) " >&6 | ||
26553 | else | ||
26554 | ac_check_lib_save_LIBS=$LIBS | ||
26555 | LIBS="-lnsl $LIBS" | ||
26556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26557 | /* end confdefs.h. */ | ||
26558 | |||
26559 | /* Override any GCC internal prototype to avoid an error. | ||
26560 | Use char because int might match the return type of a GCC | ||
26561 | builtin and then its argument prototype would still apply. */ | ||
26562 | #ifdef __cplusplus | ||
26563 | extern "C" | ||
26564 | #endif | ||
26565 | char gethostbyname (); | ||
26566 | int | ||
26567 | main () | ||
26568 | { | ||
26569 | return gethostbyname (); | ||
26570 | ; | ||
26571 | return 0; | ||
26572 | } | ||
26573 | _ACEOF | ||
26574 | if ac_fn_c_try_link "$LINENO"; then : | ||
26575 | ac_cv_lib_nsl_gethostbyname=yes | ||
26576 | else | ||
26577 | ac_cv_lib_nsl_gethostbyname=no | ||
26578 | fi | ||
26579 | rm -f core conftest.err conftest.$ac_objext \ | ||
26580 | conftest$ac_exeext conftest.$ac_ext | ||
26581 | LIBS=$ac_check_lib_save_LIBS | ||
26582 | fi | ||
26583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 | ||
26584 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } | ||
26585 | if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : | ||
26586 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | ||
26587 | fi | ||
26588 | |||
26589 | if test $ac_cv_lib_nsl_gethostbyname = no; then | ||
26590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 | ||
26591 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } | ||
26592 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : | ||
26593 | $as_echo_n "(cached) " >&6 | ||
26594 | else | ||
26595 | ac_check_lib_save_LIBS=$LIBS | ||
26596 | LIBS="-lbsd $LIBS" | ||
26597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26598 | /* end confdefs.h. */ | ||
26599 | |||
26600 | /* Override any GCC internal prototype to avoid an error. | ||
26601 | Use char because int might match the return type of a GCC | ||
26602 | builtin and then its argument prototype would still apply. */ | ||
26603 | #ifdef __cplusplus | ||
26604 | extern "C" | ||
26605 | #endif | ||
26606 | char gethostbyname (); | ||
26607 | int | ||
26608 | main () | ||
26609 | { | ||
26610 | return gethostbyname (); | ||
26611 | ; | ||
26612 | return 0; | ||
26613 | } | ||
26614 | _ACEOF | ||
26615 | if ac_fn_c_try_link "$LINENO"; then : | ||
26616 | ac_cv_lib_bsd_gethostbyname=yes | ||
26617 | else | ||
26618 | ac_cv_lib_bsd_gethostbyname=no | ||
26619 | fi | ||
26620 | rm -f core conftest.err conftest.$ac_objext \ | ||
26621 | conftest$ac_exeext conftest.$ac_ext | ||
26622 | LIBS=$ac_check_lib_save_LIBS | ||
26623 | fi | ||
26624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 | ||
26625 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } | ||
26626 | if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : | ||
26627 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | ||
26628 | fi | ||
26629 | |||
26630 | fi | ||
26631 | fi | ||
26632 | |||
26633 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | ||
26634 | # socket/setsockopt and other routines are undefined under SCO ODT | ||
26635 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | ||
26636 | # on later versions), says Simon Leinen: it contains gethostby* | ||
26637 | # variants that don't use the name server (or something). -lsocket | ||
26638 | # must be given before -lnsl if both are needed. We assume that | ||
26639 | # if connect needs -lnsl, so does gethostbyname. | ||
26640 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" | ||
26641 | if test "x$ac_cv_func_connect" = x""yes; then : | ||
26642 | |||
26643 | fi | ||
26644 | |||
26645 | if test $ac_cv_func_connect = no; then | ||
26646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 | ||
26647 | $as_echo_n "checking for connect in -lsocket... " >&6; } | ||
26648 | if test "${ac_cv_lib_socket_connect+set}" = set; then : | ||
26649 | $as_echo_n "(cached) " >&6 | ||
26650 | else | ||
26651 | ac_check_lib_save_LIBS=$LIBS | ||
26652 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | ||
26653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26654 | /* end confdefs.h. */ | ||
26655 | |||
26656 | /* Override any GCC internal prototype to avoid an error. | ||
26657 | Use char because int might match the return type of a GCC | ||
26658 | builtin and then its argument prototype would still apply. */ | ||
26659 | #ifdef __cplusplus | ||
26660 | extern "C" | ||
26661 | #endif | ||
26662 | char connect (); | ||
26663 | int | ||
26664 | main () | ||
26665 | { | ||
26666 | return connect (); | ||
26667 | ; | ||
26668 | return 0; | ||
26669 | } | ||
26670 | _ACEOF | ||
26671 | if ac_fn_c_try_link "$LINENO"; then : | ||
26672 | ac_cv_lib_socket_connect=yes | ||
26673 | else | ||
26674 | ac_cv_lib_socket_connect=no | ||
26675 | fi | ||
26676 | rm -f core conftest.err conftest.$ac_objext \ | ||
26677 | conftest$ac_exeext conftest.$ac_ext | ||
26678 | LIBS=$ac_check_lib_save_LIBS | ||
26679 | fi | ||
26680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 | ||
26681 | $as_echo "$ac_cv_lib_socket_connect" >&6; } | ||
26682 | if test "x$ac_cv_lib_socket_connect" = x""yes; then : | ||
26683 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | ||
26684 | fi | ||
26685 | |||
26686 | fi | ||
26687 | |||
26688 | # Guillermo Gomez says -lposix is necessary on A/UX. | ||
26689 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" | ||
26690 | if test "x$ac_cv_func_remove" = x""yes; then : | ||
26691 | |||
26692 | fi | ||
26693 | |||
26694 | if test $ac_cv_func_remove = no; then | ||
26695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 | ||
26696 | $as_echo_n "checking for remove in -lposix... " >&6; } | ||
26697 | if test "${ac_cv_lib_posix_remove+set}" = set; then : | ||
26698 | $as_echo_n "(cached) " >&6 | ||
26699 | else | ||
26700 | ac_check_lib_save_LIBS=$LIBS | ||
26701 | LIBS="-lposix $LIBS" | ||
26702 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26703 | /* end confdefs.h. */ | ||
26704 | |||
26705 | /* Override any GCC internal prototype to avoid an error. | ||
26706 | Use char because int might match the return type of a GCC | ||
26707 | builtin and then its argument prototype would still apply. */ | ||
26708 | #ifdef __cplusplus | ||
26709 | extern "C" | ||
26710 | #endif | ||
26711 | char remove (); | ||
26712 | int | ||
26713 | main () | ||
26714 | { | ||
26715 | return remove (); | ||
26716 | ; | ||
26717 | return 0; | ||
26718 | } | ||
26719 | _ACEOF | ||
26720 | if ac_fn_c_try_link "$LINENO"; then : | ||
26721 | ac_cv_lib_posix_remove=yes | ||
26722 | else | ||
26723 | ac_cv_lib_posix_remove=no | ||
26724 | fi | ||
26725 | rm -f core conftest.err conftest.$ac_objext \ | ||
26726 | conftest$ac_exeext conftest.$ac_ext | ||
26727 | LIBS=$ac_check_lib_save_LIBS | ||
26728 | fi | ||
26729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 | ||
26730 | $as_echo "$ac_cv_lib_posix_remove" >&6; } | ||
26731 | if test "x$ac_cv_lib_posix_remove" = x""yes; then : | ||
26732 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | ||
26733 | fi | ||
26734 | |||
26735 | fi | ||
26736 | |||
26737 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | ||
26738 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" | ||
26739 | if test "x$ac_cv_func_shmat" = x""yes; then : | ||
26740 | |||
26741 | fi | ||
26742 | |||
26743 | if test $ac_cv_func_shmat = no; then | ||
26744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 | ||
26745 | $as_echo_n "checking for shmat in -lipc... " >&6; } | ||
26746 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then : | ||
26747 | $as_echo_n "(cached) " >&6 | ||
26748 | else | ||
26749 | ac_check_lib_save_LIBS=$LIBS | ||
26750 | LIBS="-lipc $LIBS" | ||
26751 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26752 | /* end confdefs.h. */ | ||
26753 | |||
26754 | /* Override any GCC internal prototype to avoid an error. | ||
26755 | Use char because int might match the return type of a GCC | ||
26756 | builtin and then its argument prototype would still apply. */ | ||
26757 | #ifdef __cplusplus | ||
26758 | extern "C" | ||
26759 | #endif | ||
26760 | char shmat (); | ||
26761 | int | ||
26762 | main () | ||
26763 | { | ||
26764 | return shmat (); | ||
26765 | ; | ||
26766 | return 0; | ||
26767 | } | ||
26768 | _ACEOF | ||
26769 | if ac_fn_c_try_link "$LINENO"; then : | ||
26770 | ac_cv_lib_ipc_shmat=yes | ||
26771 | else | ||
26772 | ac_cv_lib_ipc_shmat=no | ||
26773 | fi | ||
26774 | rm -f core conftest.err conftest.$ac_objext \ | ||
26775 | conftest$ac_exeext conftest.$ac_ext | ||
26776 | LIBS=$ac_check_lib_save_LIBS | ||
26777 | fi | ||
26778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 | ||
26779 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } | ||
26780 | if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : | ||
26781 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | ||
26782 | fi | ||
26783 | |||
26784 | fi | ||
26785 | fi | ||
26786 | |||
26787 | # Check for libraries that X11R6 Xt/Xaw programs need. | ||
26788 | ac_save_LDFLAGS=$LDFLAGS | ||
26789 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | ||
26790 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | ||
26791 | # check for ICE first), but we must link in the order -lSM -lICE or | ||
26792 | # we get undefined symbols. So assume we have SM if we have ICE. | ||
26793 | # These have to be linked with before -lX11, unlike the other | ||
26794 | # libraries we check for below, so use a different variable. | ||
26795 | # John Interrante, Karl Berry | ||
26796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 | ||
26797 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } | ||
26798 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : | ||
26799 | $as_echo_n "(cached) " >&6 | ||
26800 | else | ||
26801 | ac_check_lib_save_LIBS=$LIBS | ||
26802 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | ||
26803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26804 | /* end confdefs.h. */ | ||
26805 | |||
26806 | /* Override any GCC internal prototype to avoid an error. | ||
26807 | Use char because int might match the return type of a GCC | ||
26808 | builtin and then its argument prototype would still apply. */ | ||
26809 | #ifdef __cplusplus | ||
26810 | extern "C" | ||
26811 | #endif | ||
26812 | char IceConnectionNumber (); | ||
26813 | int | ||
26814 | main () | ||
26815 | { | ||
26816 | return IceConnectionNumber (); | ||
26817 | ; | ||
26818 | return 0; | ||
26819 | } | ||
26820 | _ACEOF | ||
26821 | if ac_fn_c_try_link "$LINENO"; then : | ||
26822 | ac_cv_lib_ICE_IceConnectionNumber=yes | ||
26823 | else | ||
26824 | ac_cv_lib_ICE_IceConnectionNumber=no | ||
26825 | fi | ||
26826 | rm -f core conftest.err conftest.$ac_objext \ | ||
26827 | conftest$ac_exeext conftest.$ac_ext | ||
26828 | LIBS=$ac_check_lib_save_LIBS | ||
26829 | fi | ||
26830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | ||
26831 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } | ||
26832 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : | ||
26833 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | ||
26834 | fi | ||
26835 | |||
26836 | LDFLAGS=$ac_save_LDFLAGS | ||
26837 | |||
26838 | fi | ||
26839 | |||
26840 | |||
26841 | ac_fn_c_check_header_compile "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" " | ||
26842 | #include <GL/gl.h> | ||
26843 | #include <GL/glext.h> | ||
26844 | #include <GL/glx.h> | ||
26845 | #include <X11/Xlib.h> | ||
26846 | #include <X11/Xatom.h> | ||
26847 | #include <X11/Xutil.h> | ||
26848 | #include <X11/extensions/Xrender.h> | ||
26849 | #include <X11/Xresource.h> | ||
26850 | |||
26851 | " | ||
26852 | if test "x$ac_cv_header_GL_gl_h" = x""yes; then : | ||
26853 | have_dep="yes" | ||
26854 | else | ||
26855 | have_dep="no" | ||
26856 | fi | ||
26857 | |||
26858 | |||
26859 | |||
26860 | gl_pt_lib=""; | ||
26861 | have_gl_pt="no" | ||
26862 | |||
26863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_create() is supported" >&5 | ||
26864 | $as_echo_n "checking whether pthread_create() is supported... " >&6; } | ||
26865 | CFLAGS_save="${CFLAGS}" | ||
26866 | CFLAGS="${CFLAGS} -pthread" | ||
26867 | LIBS_save="${LIBS}" | ||
26868 | LIBS="${LIBS} -pthread" | ||
26869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26870 | /* end confdefs.h. */ | ||
26871 | |||
26872 | #include <pthread.h> | ||
26873 | |||
26874 | int | ||
26875 | main () | ||
26876 | { | ||
26877 | |||
26878 | pthread_create(NULL, NULL, NULL, NULL); | ||
26879 | |||
26880 | ; | ||
26881 | return 0; | ||
26882 | } | ||
26883 | _ACEOF | ||
26884 | if ac_fn_c_try_link "$LINENO"; then : | ||
26885 | have_gl_pt="yes" | ||
26886 | else | ||
26887 | have_gl_pt="no" | ||
26888 | fi | ||
26889 | rm -f core conftest.err conftest.$ac_objext \ | ||
26890 | conftest$ac_exeext conftest.$ac_ext | ||
26891 | CFLAGS=${CFLAGS_save} | ||
26892 | LIBS=${LIBS_save} | ||
26893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_gl_pt}" >&5 | ||
26894 | $as_echo "${have_gl_pt}" >&6; } | ||
26895 | |||
26896 | if test "x$have_gl_pt" = "xyes" ; then | ||
26897 | gl_pt_lib=" -pthread" | ||
26898 | fi | ||
26899 | |||
26900 | if test "x${have_dep}" = "xyes" ; then | ||
26901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCreateColormap in -lX11" >&5 | ||
26902 | $as_echo_n "checking for XCreateColormap in -lX11... " >&6; } | ||
26903 | if test "${ac_cv_lib_X11_XCreateColormap+set}" = set; then : | ||
26904 | $as_echo_n "(cached) " >&6 | ||
26905 | else | ||
26906 | ac_check_lib_save_LIBS=$LIBS | ||
26907 | LIBS="-lX11 $LIBS" | ||
26908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26909 | /* end confdefs.h. */ | ||
26910 | |||
26911 | /* Override any GCC internal prototype to avoid an error. | ||
26912 | Use char because int might match the return type of a GCC | ||
26913 | builtin and then its argument prototype would still apply. */ | ||
26914 | #ifdef __cplusplus | ||
26915 | extern "C" | ||
26916 | #endif | ||
26917 | char XCreateColormap (); | ||
26918 | int | ||
26919 | main () | ||
26920 | { | ||
26921 | return XCreateColormap (); | ||
26922 | ; | ||
26923 | return 0; | ||
26924 | } | ||
26925 | _ACEOF | ||
26926 | if ac_fn_c_try_link "$LINENO"; then : | ||
26927 | ac_cv_lib_X11_XCreateColormap=yes | ||
26928 | else | ||
26929 | ac_cv_lib_X11_XCreateColormap=no | ||
26930 | fi | ||
26931 | rm -f core conftest.err conftest.$ac_objext \ | ||
26932 | conftest$ac_exeext conftest.$ac_ext | ||
26933 | LIBS=$ac_check_lib_save_LIBS | ||
26934 | fi | ||
26935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XCreateColormap" >&5 | ||
26936 | $as_echo "$ac_cv_lib_X11_XCreateColormap" >&6; } | ||
26937 | if test "x$ac_cv_lib_X11_XCreateColormap" = x""yes; then : | ||
26938 | have_dep="yes" | ||
26939 | else | ||
26940 | have_dep="no" | ||
26941 | fi | ||
26942 | |||
26943 | fi | ||
26944 | |||
26945 | if test "x${have_dep}" = "xyes" ; then | ||
26946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreatePicture in -lXrender" >&5 | ||
26947 | $as_echo_n "checking for XRenderCreatePicture in -lXrender... " >&6; } | ||
26948 | if test "${ac_cv_lib_Xrender_XRenderCreatePicture+set}" = set; then : | ||
26949 | $as_echo_n "(cached) " >&6 | ||
26950 | else | ||
26951 | ac_check_lib_save_LIBS=$LIBS | ||
26952 | LIBS="-lXrender $LIBS" | ||
26953 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26954 | /* end confdefs.h. */ | ||
26955 | |||
26956 | /* Override any GCC internal prototype to avoid an error. | ||
26957 | Use char because int might match the return type of a GCC | ||
26958 | builtin and then its argument prototype would still apply. */ | ||
26959 | #ifdef __cplusplus | ||
26960 | extern "C" | ||
26961 | #endif | ||
26962 | char XRenderCreatePicture (); | ||
26963 | int | ||
26964 | main () | ||
26965 | { | ||
26966 | return XRenderCreatePicture (); | ||
26967 | ; | ||
26968 | return 0; | ||
26969 | } | ||
26970 | _ACEOF | ||
26971 | if ac_fn_c_try_link "$LINENO"; then : | ||
26972 | ac_cv_lib_Xrender_XRenderCreatePicture=yes | ||
26973 | else | ||
26974 | ac_cv_lib_Xrender_XRenderCreatePicture=no | ||
26975 | fi | ||
26976 | rm -f core conftest.err conftest.$ac_objext \ | ||
26977 | conftest$ac_exeext conftest.$ac_ext | ||
26978 | LIBS=$ac_check_lib_save_LIBS | ||
26979 | fi | ||
26980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreatePicture" >&5 | ||
26981 | $as_echo "$ac_cv_lib_Xrender_XRenderCreatePicture" >&6; } | ||
26982 | if test "x$ac_cv_lib_Xrender_XRenderCreatePicture" = x""yes; then : | ||
26983 | have_dep="yes" | ||
26984 | else | ||
26985 | have_dep="no" | ||
26986 | fi | ||
26987 | |||
26988 | fi | ||
26989 | |||
26990 | if test "x${have_dep}" = "xyes" ; then | ||
26991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXCreateContext in -lGL" >&5 | ||
26992 | $as_echo_n "checking for glXCreateContext in -lGL... " >&6; } | ||
26993 | if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then : | ||
26994 | $as_echo_n "(cached) " >&6 | ||
26995 | else | ||
26996 | ac_check_lib_save_LIBS=$LIBS | ||
26997 | LIBS="-lGL -lX11 -lXext -lXrender -lm $gl_pt_lib $LIBS" | ||
26998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
26999 | /* end confdefs.h. */ | ||
27000 | |||
27001 | /* Override any GCC internal prototype to avoid an error. | ||
27002 | Use char because int might match the return type of a GCC | ||
27003 | builtin and then its argument prototype would still apply. */ | ||
27004 | #ifdef __cplusplus | ||
27005 | extern "C" | ||
27006 | #endif | ||
27007 | char glXCreateContext (); | ||
27008 | int | ||
27009 | main () | ||
27010 | { | ||
27011 | return glXCreateContext (); | ||
27012 | ; | ||
27013 | return 0; | ||
27014 | } | ||
27015 | _ACEOF | ||
27016 | if ac_fn_c_try_link "$LINENO"; then : | ||
27017 | ac_cv_lib_GL_glXCreateContext=yes | ||
27018 | else | ||
27019 | ac_cv_lib_GL_glXCreateContext=no | ||
27020 | fi | ||
27021 | rm -f core conftest.err conftest.$ac_objext \ | ||
27022 | conftest$ac_exeext conftest.$ac_ext | ||
27023 | LIBS=$ac_check_lib_save_LIBS | ||
27024 | fi | ||
27025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glXCreateContext" >&5 | ||
27026 | $as_echo "$ac_cv_lib_GL_glXCreateContext" >&6; } | ||
27027 | if test "x$ac_cv_lib_GL_glXCreateContext" = x""yes; then : | ||
27028 | have_dep="yes" | ||
27029 | else | ||
27030 | have_dep="no" | ||
27031 | fi | ||
27032 | |||
27033 | fi | ||
27034 | |||
27035 | if test "x$gl_flavor_gles" = "xyes" ; then | ||
27036 | have_dep=no | ||
27037 | fi | ||
27038 | |||
27039 | if test "x${have_dep}" = "xyes" ; then | ||
27040 | |||
27041 | pkg_failed=no | ||
27042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL_EET" >&5 | ||
27043 | $as_echo_n "checking for GL_EET... " >&6; } | ||
27044 | |||
27045 | if test -n "$GL_EET_CFLAGS"; then | ||
27046 | pkg_cv_GL_EET_CFLAGS="$GL_EET_CFLAGS" | ||
27047 | elif test -n "$PKG_CONFIG"; then | ||
27048 | if test -n "$PKG_CONFIG" && \ | ||
27049 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.6.0\""; } >&5 | ||
27050 | ($PKG_CONFIG --exists --print-errors "eet >= 1.6.0") 2>&5 | ||
27051 | ac_status=$? | ||
27052 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
27053 | test $ac_status = 0; }; then | ||
27054 | pkg_cv_GL_EET_CFLAGS=`$PKG_CONFIG --cflags "eet >= 1.6.0" 2>/dev/null` | ||
27055 | else | ||
27056 | pkg_failed=yes | ||
27057 | fi | ||
27058 | else | ||
27059 | pkg_failed=untried | ||
27060 | fi | ||
27061 | if test -n "$GL_EET_LIBS"; then | ||
27062 | pkg_cv_GL_EET_LIBS="$GL_EET_LIBS" | ||
27063 | elif test -n "$PKG_CONFIG"; then | ||
27064 | if test -n "$PKG_CONFIG" && \ | ||
27065 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.6.0\""; } >&5 | ||
27066 | ($PKG_CONFIG --exists --print-errors "eet >= 1.6.0") 2>&5 | ||
27067 | ac_status=$? | ||
27068 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
27069 | test $ac_status = 0; }; then | ||
27070 | pkg_cv_GL_EET_LIBS=`$PKG_CONFIG --libs "eet >= 1.6.0" 2>/dev/null` | ||
27071 | else | ||
27072 | pkg_failed=yes | ||
27073 | fi | ||
27074 | else | ||
27075 | pkg_failed=untried | ||
27076 | fi | ||
27077 | |||
27078 | |||
27079 | |||
27080 | if test $pkg_failed = yes; then | ||
27081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27082 | $as_echo "no" >&6; } | ||
27083 | |||
27084 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
27085 | _pkg_short_errors_supported=yes | ||
27086 | else | ||
27087 | _pkg_short_errors_supported=no | ||
27088 | fi | ||
27089 | if test $_pkg_short_errors_supported = yes; then | ||
27090 | GL_EET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eet >= 1.6.0" 2>&1` | ||
27091 | else | ||
27092 | GL_EET_PKG_ERRORS=`$PKG_CONFIG --print-errors "eet >= 1.6.0" 2>&1` | ||
27093 | fi | ||
27094 | # Put the nasty error message in config.log where it belongs | ||
27095 | echo "$GL_EET_PKG_ERRORS" >&5 | ||
27096 | |||
27097 | have_dep="no" | ||
27098 | elif test $pkg_failed = untried; then | ||
27099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27100 | $as_echo "no" >&6; } | ||
27101 | have_dep="no" | ||
27102 | else | ||
27103 | GL_EET_CFLAGS=$pkg_cv_GL_EET_CFLAGS | ||
27104 | GL_EET_LIBS=$pkg_cv_GL_EET_LIBS | ||
27105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
27106 | $as_echo "yes" >&6; } | ||
27107 | have_dep="yes" | ||
27108 | fi | ||
27109 | if test "x${have_dep}" = "xyes" ; then | ||
27110 | if test "xno" = "xyes" ; then | ||
27111 | x_libs="${x_libs} -lX11 -lXext -lXrender" | ||
27112 | else | ||
27113 | x_dir=${x_dir:-/usr/X11R6} | ||
27114 | x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}} | ||
27115 | x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext -lXrender" | ||
27116 | fi | ||
27117 | evas_engine_gl_xlib_cflags="-I/usr/include ${x_cflags}" | ||
27118 | evas_engine_gl_xlib_libs="${x_libs} -lGL $gl_pt_lib" | ||
27119 | evas_engine_gl_common_libs="-lGL $gl_pt_lib" | ||
27120 | fi | ||
27121 | else | ||
27122 | if test "xno" = "xyes" ; then | ||
27123 | x_libs="${x_libs} -lX11 -lXext -lXrender" | ||
27124 | else | ||
27125 | x_dir=${x_dir:-/usr/X11R6} | ||
27126 | x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}} | ||
27127 | x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext -lXrender" | ||
27128 | fi | ||
27129 | ac_fn_c_check_header_compile "$LINENO" "GLES2/gl2.h" "ac_cv_header_GLES2_gl2_h" " | ||
27130 | #include <GLES2/gl2.h> | ||
27131 | #include <GLES2/gl2ext.h> | ||
27132 | #include <EGL/egl.h> | ||
27133 | #include <X11/Xlib.h> | ||
27134 | #include <X11/Xatom.h> | ||
27135 | #include <X11/Xutil.h> | ||
27136 | #include <X11/extensions/Xrender.h> | ||
27137 | #include <X11/Xresource.h> | ||
27138 | |||
27139 | " | ||
27140 | if test "x$ac_cv_header_GLES2_gl2_h" = x""yes; then : | ||
27141 | have_egl="yes" | ||
27142 | else | ||
27143 | have_egl="no" | ||
27144 | fi | ||
27145 | |||
27146 | |||
27147 | if test "x${have_egl}" = "xyes" ; then | ||
27148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glTexImage2D in -lGLESv2" >&5 | ||
27149 | $as_echo_n "checking for glTexImage2D in -lGLESv2... " >&6; } | ||
27150 | if test "${ac_cv_lib_GLESv2_glTexImage2D+set}" = set; then : | ||
27151 | $as_echo_n "(cached) " >&6 | ||
27152 | else | ||
27153 | ac_check_lib_save_LIBS=$LIBS | ||
27154 | LIBS="-lGLESv2 -lEGL ${x_libs} -lm $gl_pt_lib $LIBS" | ||
27155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
27156 | /* end confdefs.h. */ | ||
27157 | |||
27158 | /* Override any GCC internal prototype to avoid an error. | ||
27159 | Use char because int might match the return type of a GCC | ||
27160 | builtin and then its argument prototype would still apply. */ | ||
27161 | #ifdef __cplusplus | ||
27162 | extern "C" | ||
27163 | #endif | ||
27164 | char glTexImage2D (); | ||
27165 | int | ||
27166 | main () | ||
27167 | { | ||
27168 | return glTexImage2D (); | ||
27169 | ; | ||
27170 | return 0; | ||
27171 | } | ||
27172 | _ACEOF | ||
27173 | if ac_fn_c_try_link "$LINENO"; then : | ||
27174 | ac_cv_lib_GLESv2_glTexImage2D=yes | ||
27175 | else | ||
27176 | ac_cv_lib_GLESv2_glTexImage2D=no | ||
27177 | fi | ||
27178 | rm -f core conftest.err conftest.$ac_objext \ | ||
27179 | conftest$ac_exeext conftest.$ac_ext | ||
27180 | LIBS=$ac_check_lib_save_LIBS | ||
27181 | fi | ||
27182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLESv2_glTexImage2D" >&5 | ||
27183 | $as_echo "$ac_cv_lib_GLESv2_glTexImage2D" >&6; } | ||
27184 | if test "x$ac_cv_lib_GLESv2_glTexImage2D" = x""yes; then : | ||
27185 | have_glesv2="yes" | ||
27186 | fi | ||
27187 | |||
27188 | if test "x${have_glesv2}" = "xyes" ; then | ||
27189 | |||
27190 | pkg_failed=no | ||
27191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL_EET" >&5 | ||
27192 | $as_echo_n "checking for GL_EET... " >&6; } | ||
27193 | |||
27194 | if test -n "$GL_EET_CFLAGS"; then | ||
27195 | pkg_cv_GL_EET_CFLAGS="$GL_EET_CFLAGS" | ||
27196 | elif test -n "$PKG_CONFIG"; then | ||
27197 | if test -n "$PKG_CONFIG" && \ | ||
27198 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.6.0\""; } >&5 | ||
27199 | ($PKG_CONFIG --exists --print-errors "eet >= 1.6.0") 2>&5 | ||
27200 | ac_status=$? | ||
27201 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
27202 | test $ac_status = 0; }; then | ||
27203 | pkg_cv_GL_EET_CFLAGS=`$PKG_CONFIG --cflags "eet >= 1.6.0" 2>/dev/null` | ||
27204 | else | ||
27205 | pkg_failed=yes | ||
27206 | fi | ||
27207 | else | ||
27208 | pkg_failed=untried | ||
27209 | fi | ||
27210 | if test -n "$GL_EET_LIBS"; then | ||
27211 | pkg_cv_GL_EET_LIBS="$GL_EET_LIBS" | ||
27212 | elif test -n "$PKG_CONFIG"; then | ||
27213 | if test -n "$PKG_CONFIG" && \ | ||
27214 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.6.0\""; } >&5 | ||
27215 | ($PKG_CONFIG --exists --print-errors "eet >= 1.6.0") 2>&5 | ||
27216 | ac_status=$? | ||
27217 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
27218 | test $ac_status = 0; }; then | ||
27219 | pkg_cv_GL_EET_LIBS=`$PKG_CONFIG --libs "eet >= 1.6.0" 2>/dev/null` | ||
27220 | else | ||
27221 | pkg_failed=yes | ||
27222 | fi | ||
27223 | else | ||
27224 | pkg_failed=untried | ||
27225 | fi | ||
27226 | |||
27227 | |||
27228 | |||
27229 | if test $pkg_failed = yes; then | ||
27230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27231 | $as_echo "no" >&6; } | ||
27232 | |||
27233 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
27234 | _pkg_short_errors_supported=yes | ||
27235 | else | ||
27236 | _pkg_short_errors_supported=no | ||
27237 | fi | ||
27238 | if test $_pkg_short_errors_supported = yes; then | ||
27239 | GL_EET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eet >= 1.6.0" 2>&1` | ||
27240 | else | ||
27241 | GL_EET_PKG_ERRORS=`$PKG_CONFIG --print-errors "eet >= 1.6.0" 2>&1` | ||
27242 | fi | ||
27243 | # Put the nasty error message in config.log where it belongs | ||
27244 | echo "$GL_EET_PKG_ERRORS" >&5 | ||
27245 | |||
27246 | have_dep="no" | ||
27247 | elif test $pkg_failed = untried; then | ||
27248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27249 | $as_echo "no" >&6; } | ||
27250 | have_dep="no" | ||
27251 | else | ||
27252 | GL_EET_CFLAGS=$pkg_cv_GL_EET_CFLAGS | ||
27253 | GL_EET_LIBS=$pkg_cv_GL_EET_LIBS | ||
27254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
27255 | $as_echo "yes" >&6; } | ||
27256 | have_dep="yes" | ||
27257 | fi | ||
27258 | if test "x${have_dep}" = "xyes" ; then | ||
27259 | evas_engine_gl_xlib_cflags="${x_cflags}" | ||
27260 | evas_engine_gl_xlib_libs="${x_libs} -lGLESv2 -lEGL -lm $gl_pt_lib" | ||
27261 | evas_engine_gl_common_libs="-lGLESv2 -lm $gl_pt_lib" | ||
27262 | have_dep="yes" | ||
27263 | |||
27264 | $as_echo "#define GLES_VARIETY_SGX 1" >>confdefs.h | ||
27265 | |||
27266 | gles_variety_sgx="yes" | ||
27267 | fi | ||
27268 | fi | ||
27269 | fi | ||
27270 | fi | ||
27271 | |||
27272 | |||
27273 | |||
27274 | |||
27275 | |||
27276 | if test "x${have_dep}" = "xyes" ; then | ||
27277 | have_engine="yes" | ||
27278 | else | ||
27279 | have_engine="no" | ||
27280 | fi | ||
27281 | |||
27282 | |||
27283 | fi | ||
27284 | |||
27285 | if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
27286 | as_fn_error $? "OpenGL XLib dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
27287 | fi | ||
27288 | |||
27289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenGL XLib rendering backend will be built" >&5 | ||
27290 | $as_echo_n "checking whether OpenGL XLib rendering backend will be built... " >&6; } | ||
27291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5 | ||
27292 | $as_echo "${have_engine}" >&6; } | ||
27293 | |||
27294 | if test "x${have_engine}" = "xyes" ; then | ||
27295 | if test "x${want_engine}" = "xstatic" ; then | ||
27296 | have_evas_engine_gl_xlib="static" | ||
27297 | want_static_engine="yes" | ||
27298 | else | ||
27299 | have_evas_engine_gl_xlib="yes" | ||
27300 | fi | ||
27301 | fi | ||
27302 | |||
27303 | if test "x${have_engine}" = "xyes" ; then | ||
27304 | |||
27305 | $as_echo "#define BUILD_ENGINE_GL_XLIB 1" >>confdefs.h | ||
27306 | |||
27307 | fi | ||
27308 | |||
27309 | if test "x${have_engine}" = "xyes"; then | ||
27310 | BUILD_ENGINE_GL_XLIB_TRUE= | ||
27311 | BUILD_ENGINE_GL_XLIB_FALSE='#' | ||
27312 | else | ||
27313 | BUILD_ENGINE_GL_XLIB_TRUE='#' | ||
27314 | BUILD_ENGINE_GL_XLIB_FALSE= | ||
27315 | fi | ||
27316 | |||
27317 | |||
27318 | if test "x${want_static_engine}" = "xyes" ; then | ||
27319 | |||
27320 | $as_echo "#define EVAS_STATIC_BUILD_GL_XLIB 1" >>confdefs.h | ||
27321 | |||
27322 | have_static_module="yes" | ||
27323 | fi | ||
27324 | |||
27325 | if test "x${want_static_engine}" = "xyes"; then | ||
27326 | EVAS_STATIC_BUILD_GL_XLIB_TRUE= | ||
27327 | EVAS_STATIC_BUILD_GL_XLIB_FALSE='#' | ||
27328 | else | ||
27329 | EVAS_STATIC_BUILD_GL_XLIB_TRUE='#' | ||
27330 | EVAS_STATIC_BUILD_GL_XLIB_FALSE= | ||
27331 | fi | ||
27332 | |||
27333 | |||
27334 | |||
27335 | |||
27336 | |||
27337 | |||
27338 | if test "x$have_evas_engine_gl_xlib" != "xno" ; then | ||
27339 | have_evas_engine_gl_x11="yes" | ||
27340 | |||
27341 | cat >>confdefs.h <<_ACEOF | ||
27342 | #define BUILD_ENGINE_GL_X11 1 | ||
27343 | _ACEOF | ||
27344 | |||
27345 | |||
27346 | cat >>confdefs.h <<_ACEOF | ||
27347 | #define BUILD_ENGINE_GL_XLIB 1 | ||
27348 | _ACEOF | ||
27349 | |||
27350 | if test "x$have_evas_engine_gl_xlib" = "xstatic" ; then | ||
27351 | |||
27352 | cat >>confdefs.h <<_ACEOF | ||
27353 | #define EVAS_STATIC_BUILD_GL_X11 1 | ||
27354 | _ACEOF | ||
27355 | |||
27356 | fi | ||
27357 | fi | ||
27358 | else | ||
27359 | have_evas_engine_gl_xlib="no" | ||
27360 | fi | ||
27361 | |||
27362 | |||
27363 | if test "x${have_evas_engine_gl_xlib}" != "xno"; then | ||
27364 | BUILD_ENGINE_GL_XLIB_TRUE= | ||
27365 | BUILD_ENGINE_GL_XLIB_FALSE='#' | ||
27366 | else | ||
27367 | BUILD_ENGINE_GL_XLIB_TRUE='#' | ||
27368 | BUILD_ENGINE_GL_XLIB_FALSE= | ||
27369 | fi | ||
27370 | |||
27371 | if test "x${have_evas_engine_gl_xcb}" != "xno"; then | ||
27372 | BUILD_ENGINE_GL_XCB_TRUE= | ||
27373 | BUILD_ENGINE_GL_XCB_FALSE='#' | ||
27374 | else | ||
27375 | BUILD_ENGINE_GL_XCB_TRUE='#' | ||
27376 | BUILD_ENGINE_GL_XCB_FALSE= | ||
27377 | fi | ||
27378 | |||
27379 | if test "x${have_evas_engine_gl_x11}" != "xno"; then | ||
27380 | BUILD_ENGINE_GL_X11_TRUE= | ||
27381 | BUILD_ENGINE_GL_X11_FALSE='#' | ||
27382 | else | ||
27383 | BUILD_ENGINE_GL_X11_TRUE='#' | ||
27384 | BUILD_ENGINE_GL_X11_FALSE= | ||
27385 | fi | ||
27386 | |||
27387 | |||
27388 | if test "x${have_evas_engine_gl_xcb}" = "xstatic" -o "x${have_evas_engine_gl_xlib}" = "xstatic"; then | ||
27389 | EVAS_STATIC_BUILD_GL_X11_TRUE= | ||
27390 | EVAS_STATIC_BUILD_GL_X11_FALSE='#' | ||
27391 | else | ||
27392 | EVAS_STATIC_BUILD_GL_X11_TRUE='#' | ||
27393 | EVAS_STATIC_BUILD_GL_X11_FALSE= | ||
27394 | fi | ||
27395 | |||
27396 | if test "x${have_evas_engine_gl_xlib}" = "xstatic"; then | ||
27397 | EVAS_STATIC_BUILD_GL_XLIB_TRUE= | ||
27398 | EVAS_STATIC_BUILD_GL_XLIB_FALSE='#' | ||
27399 | else | ||
27400 | EVAS_STATIC_BUILD_GL_XLIB_TRUE='#' | ||
27401 | EVAS_STATIC_BUILD_GL_XLIB_FALSE= | ||
27402 | fi | ||
27403 | |||
27404 | if test "x${have_evas_engine_gl_xcb}" = "xstatic"; then | ||
27405 | EVAS_STATIC_BUILD_GL_XCB_TRUE= | ||
27406 | EVAS_STATIC_BUILD_GL_XCB_FALSE='#' | ||
27407 | else | ||
27408 | EVAS_STATIC_BUILD_GL_XCB_TRUE='#' | ||
27409 | EVAS_STATIC_BUILD_GL_XCB_FALSE= | ||
27410 | fi | ||
27411 | |||
27412 | |||
27413 | |||
27414 | |||
27415 | # common gl | ||
27416 | have_evas_engine_gl_common="no" | ||
27417 | have_static_evas_engine_gl_common="no" | ||
27418 | if test "x$have_evas_engine_gl_xlib" = "xyes" \ | ||
27419 | || test "x$have_evas_engine_gl_xcb" = "xyes" \ | ||
27420 | || test "x$have_evas_engine_gl_sdl" = "xyes" \ | ||
27421 | || test "x$have_evas_engine_gl_cocoa" = "xyes" \ | ||
27422 | || test "x$have_evas_engine_wayland_egl" = "xyes"; then | ||
27423 | have_evas_engine_gl_common="yes" | ||
27424 | fi | ||
27425 | if test "x$have_evas_engine_gl_xlib" = "xstatic" \ | ||
27426 | || test "x$have_evas_engine_gl_xcb" = "xstatic" \ | ||
27427 | || test "x$have_evas_engine_gl_sdl" = "xstatic" \ | ||
27428 | || test "x$have_evas_engine_gl_cocoa" = "xstatic" \ | ||
27429 | || test "x$have_evas_engine_wayland_egl" = "xstatic"; then | ||
27430 | have_evas_engine_gl_common="yes" | ||
27431 | have_static_evas_engine_gl_common="yes" | ||
27432 | fi | ||
27433 | |||
27434 | if test "x$have_evas_engine_gl_common" = "xyes"; then | ||
27435 | evas_engine_gl_common_libs="" | ||
27436 | |||
27437 | $as_echo "#define BUILD_ENGINE_GL_COMMON 1" >>confdefs.h | ||
27438 | |||
27439 | fi | ||
27440 | |||
27441 | |||
27442 | |||
27443 | if test "x$have_evas_engine_gl_common" = "xyes"; then | ||
27444 | BUILD_ENGINE_GL_COMMON_TRUE= | ||
27445 | BUILD_ENGINE_GL_COMMON_FALSE='#' | ||
27446 | else | ||
27447 | BUILD_ENGINE_GL_COMMON_TRUE='#' | ||
27448 | BUILD_ENGINE_GL_COMMON_FALSE= | ||
27449 | fi | ||
27450 | |||
27451 | |||
27452 | if test "x${have_static_evas_engine_gl_common}" = "xyes"; then | ||
27453 | EVAS_STATIC_BUILD_GL_COMMON_TRUE= | ||
27454 | EVAS_STATIC_BUILD_GL_COMMON_FALSE='#' | ||
27455 | else | ||
27456 | EVAS_STATIC_BUILD_GL_COMMON_TRUE='#' | ||
27457 | EVAS_STATIC_BUILD_GL_COMMON_FALSE= | ||
27458 | fi | ||
27459 | |||
27460 | if test "x${have_static_evas_engine_gl_common}" = "xyes"; then | ||
27461 | |||
27462 | $as_echo "#define EVAS_STATIC_BUILD_GL_COMMON 1" >>confdefs.h | ||
27463 | |||
27464 | fi | ||
27465 | |||
27466 | # gl_sdl | ||
27467 | if test "x$have_evas_engine_gl_sdl" = "xyes" || test "x$have_evas_engine_gl_sdl" = "xstatic" ; then | ||
27468 | ac_fn_c_check_decl "$LINENO" "SDL_GL_CONTEXT_MAJOR_VERSION" "ac_cv_have_decl_SDL_GL_CONTEXT_MAJOR_VERSION" "#include <SDL/SDL_video.h> | ||
27469 | " | ||
27470 | if test "x$ac_cv_have_decl_SDL_GL_CONTEXT_MAJOR_VERSION" = x""yes; then : | ||
27471 | |||
27472 | $as_echo "#define HAVE_SDL_GL_CONTEXT_VERSION 1" >>confdefs.h | ||
27473 | |||
27474 | fi | ||
27475 | |||
27476 | fi | ||
27477 | |||
27478 | if test "x$gl_flavor_gles" = "xyes"; then | ||
27479 | ac_fn_c_check_decl "$LINENO" "SDL_OPENGLES" "ac_cv_have_decl_SDL_OPENGLES" "#include <SDL/SDL_video.h> | ||
27480 | " | ||
27481 | if test "x$ac_cv_have_decl_SDL_OPENGLES" = x""yes; then : | ||
27482 | |||
27483 | $as_echo "#define HAVE_SDL_FLAG_OPENGLES 1" >>confdefs.h | ||
27484 | |||
27485 | fi | ||
27486 | |||
27487 | fi | ||
27488 | |||
27489 | # if software 16 x11 is enabled - build software_16 (the generic 16bit | ||
27490 | # engine). later enable it fb_16 or other "16" bit engines are enabled. | ||
27491 | have_evas_engine_software_16="no" | ||
27492 | if test "x$have_evas_engine_software_16_x11" = "xyes" -o "x$have_evas_engine_software_16_x11" = "xstatic"; then | ||
27493 | have_evas_engine_software_16="yes" | ||
27494 | fi | ||
27495 | if test "x$have_evas_engine_software_16_sdl" = "xyes" -o "x$have_evas_engine_software_16_sdl" = "xstatic"; then | ||
27496 | have_evas_engine_software_16="yes" | ||
27497 | fi | ||
27498 | if test "x$have_evas_engine_software_16_ddraw" = "xyes" -o "x$have_evas_engine_software_16_ddraw" = "xstatic"; then | ||
27499 | have_evas_engine_software_16="yes" | ||
27500 | fi | ||
27501 | if test "x$have_evas_engine_software_16_wince" = "xyes" -o "x$have_evas_engine_software_16_wince" = "xstatic"; then | ||
27502 | have_evas_engine_software_16="yes" | ||
27503 | fi | ||
27504 | if test "x$have_evas_engine_software_16" = "xyes"; then | ||
27505 | BUILD_ENGINE_SOFTWARE_16_TRUE= | ||
27506 | BUILD_ENGINE_SOFTWARE_16_FALSE='#' | ||
27507 | else | ||
27508 | BUILD_ENGINE_SOFTWARE_16_TRUE='#' | ||
27509 | BUILD_ENGINE_SOFTWARE_16_FALSE= | ||
27510 | fi | ||
27511 | |||
27512 | |||
27513 | # if software 16 need to be build as part of libevas.so | ||
27514 | have_static_software_16="no" | ||
27515 | # Check whether --enable-static-software-16 was given. | ||
27516 | if test "${enable_static_software_16+set}" = set; then : | ||
27517 | enableval=$enable_static_software_16; have_static_software_16=${enableval} | ||
27518 | |||
27519 | fi | ||
27520 | |||
27521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Whether to build software 16 engine as part of libevas" >&5 | ||
27522 | $as_echo_n "checking Whether to build software 16 engine as part of libevas... " >&6; } | ||
27523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_static_software_16}" >&5 | ||
27524 | $as_echo "${have_static_software_16}" >&6; } | ||
27525 | |||
27526 | if test "x${have_static_software_16}" = "xyes"; then | ||
27527 | EVAS_STATIC_BUILD_SOFTWARE_16_TRUE= | ||
27528 | EVAS_STATIC_BUILD_SOFTWARE_16_FALSE='#' | ||
27529 | else | ||
27530 | EVAS_STATIC_BUILD_SOFTWARE_16_TRUE='#' | ||
27531 | EVAS_STATIC_BUILD_SOFTWARE_16_FALSE= | ||
27532 | fi | ||
27533 | |||
27534 | if test "x${have_static_software_16}" = "xyes"; then | ||
27535 | |||
27536 | $as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_16 1" >>confdefs.h | ||
27537 | |||
27538 | fi | ||
27539 | |||
27540 | # if software 8 x11 is enabled - build software_8 (the generic 8bit | ||
27541 | # engine). | ||
27542 | have_evas_engine_software_8="no" | ||
27543 | if test "x$have_evas_engine_software_8_x11" = "xyes" -o "x$have_evas_engine_software_8_x11" = "xstatic"; then | ||
27544 | have_evas_engine_software_8="yes" | ||
27545 | fi | ||
27546 | if test "x$have_evas_engine_software_8" = "xyes"; then | ||
27547 | BUILD_ENGINE_SOFTWARE_8_TRUE= | ||
27548 | BUILD_ENGINE_SOFTWARE_8_FALSE='#' | ||
27549 | else | ||
27550 | BUILD_ENGINE_SOFTWARE_8_TRUE='#' | ||
27551 | BUILD_ENGINE_SOFTWARE_8_FALSE= | ||
27552 | fi | ||
27553 | |||
27554 | |||
27555 | # if software 8 need to be build as part of libevas.so | ||
27556 | have_static_software_8="no" | ||
27557 | # Check whether --enable-static-software-8 was given. | ||
27558 | if test "${enable_static_software_8+set}" = set; then : | ||
27559 | enableval=$enable_static_software_8; have_static_software_8=${enableval} | ||
27560 | |||
27561 | fi | ||
27562 | |||
27563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Whether to build software 8 engine as part of libevas" >&5 | ||
27564 | $as_echo_n "checking Whether to build software 8 engine as part of libevas... " >&6; } | ||
27565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_static_software_8}" >&5 | ||
27566 | $as_echo "${have_static_software_8}" >&6; } | ||
27567 | |||
27568 | if test "x${have_static_software_8}" = "xyes"; then | ||
27569 | EVAS_STATIC_BUILD_SOFTWARE_8_TRUE= | ||
27570 | EVAS_STATIC_BUILD_SOFTWARE_8_FALSE='#' | ||
27571 | else | ||
27572 | EVAS_STATIC_BUILD_SOFTWARE_8_TRUE='#' | ||
27573 | EVAS_STATIC_BUILD_SOFTWARE_8_FALSE= | ||
27574 | fi | ||
27575 | |||
27576 | if test "x${have_static_software_8}" = "xyes"; then | ||
27577 | |||
27578 | $as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_8 1" >>confdefs.h | ||
27579 | |||
27580 | fi | ||
27581 | |||
27582 | ##################################################################### | ||
27583 | ## Image loaders | ||
27584 | |||
27585 | |||
27586 | |||
27587 | |||
27588 | |||
27589 | |||
27590 | want_loader="${want_evas_image_loader_edb}" | ||
27591 | want_static_loader="no" | ||
27592 | have_loader="no" | ||
27593 | have_evas_image_loader_edb="no" | ||
27594 | |||
27595 | # Check whether --enable-image-loader-edb was given. | ||
27596 | if test "${enable_image_loader_edb+set}" = set; then : | ||
27597 | enableval=$enable_image_loader_edb; | ||
27598 | if test "x${enableval}" = "xyes" ; then | ||
27599 | want_loader="yes" | ||
27600 | else | ||
27601 | if test "x${enableval}" = "xstatic" ; then | ||
27602 | want_loader="static" | ||
27603 | else | ||
27604 | want_loader="no" | ||
27605 | fi | ||
27606 | fi | ||
27607 | |||
27608 | |||
27609 | fi | ||
27610 | |||
27611 | |||
27612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Edb image loader" >&5 | ||
27613 | $as_echo_n "checking whether to enable Edb image loader... " >&6; } | ||
27614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
27615 | $as_echo "${want_loader}" >&6; } | ||
27616 | |||
27617 | if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then | ||
27618 | |||
27619 | |||
27620 | requirement="" | ||
27621 | have_dep="no" | ||
27622 | evas_image_loader_edb_cflags="" | ||
27623 | evas_image_loader_edb_libs="" | ||
27624 | |||
27625 | |||
27626 | pkg_failed=no | ||
27627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EDB" >&5 | ||
27628 | $as_echo_n "checking for EDB... " >&6; } | ||
27629 | |||
27630 | if test -n "$EDB_CFLAGS"; then | ||
27631 | pkg_cv_EDB_CFLAGS="$EDB_CFLAGS" | ||
27632 | elif test -n "$PKG_CONFIG"; then | ||
27633 | if test -n "$PKG_CONFIG" && \ | ||
27634 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"edb\""; } >&5 | ||
27635 | ($PKG_CONFIG --exists --print-errors "edb") 2>&5 | ||
27636 | ac_status=$? | ||
27637 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
27638 | test $ac_status = 0; }; then | ||
27639 | pkg_cv_EDB_CFLAGS=`$PKG_CONFIG --cflags "edb" 2>/dev/null` | ||
27640 | else | ||
27641 | pkg_failed=yes | ||
27642 | fi | ||
27643 | else | ||
27644 | pkg_failed=untried | ||
27645 | fi | ||
27646 | if test -n "$EDB_LIBS"; then | ||
27647 | pkg_cv_EDB_LIBS="$EDB_LIBS" | ||
27648 | elif test -n "$PKG_CONFIG"; then | ||
27649 | if test -n "$PKG_CONFIG" && \ | ||
27650 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"edb\""; } >&5 | ||
27651 | ($PKG_CONFIG --exists --print-errors "edb") 2>&5 | ||
27652 | ac_status=$? | ||
27653 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
27654 | test $ac_status = 0; }; then | ||
27655 | pkg_cv_EDB_LIBS=`$PKG_CONFIG --libs "edb" 2>/dev/null` | ||
27656 | else | ||
27657 | pkg_failed=yes | ||
27658 | fi | ||
27659 | else | ||
27660 | pkg_failed=untried | ||
27661 | fi | ||
27662 | |||
27663 | |||
27664 | |||
27665 | if test $pkg_failed = yes; then | ||
27666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27667 | $as_echo "no" >&6; } | ||
27668 | |||
27669 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
27670 | _pkg_short_errors_supported=yes | ||
27671 | else | ||
27672 | _pkg_short_errors_supported=no | ||
27673 | fi | ||
27674 | if test $_pkg_short_errors_supported = yes; then | ||
27675 | EDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "edb" 2>&1` | ||
27676 | else | ||
27677 | EDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "edb" 2>&1` | ||
27678 | fi | ||
27679 | # Put the nasty error message in config.log where it belongs | ||
27680 | echo "$EDB_PKG_ERRORS" >&5 | ||
27681 | |||
27682 | have_dep="no" | ||
27683 | elif test $pkg_failed = untried; then | ||
27684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27685 | $as_echo "no" >&6; } | ||
27686 | have_dep="no" | ||
27687 | else | ||
27688 | EDB_CFLAGS=$pkg_cv_EDB_CFLAGS | ||
27689 | EDB_LIBS=$pkg_cv_EDB_LIBS | ||
27690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
27691 | $as_echo "yes" >&6; } | ||
27692 | have_dep="yes" requirement="edb" | ||
27693 | fi | ||
27694 | evas_image_loader_edb_cflags="${EDB_CFLAGS}" | ||
27695 | evas_image_loader_edb_libs="${EDB_LIBS}" | ||
27696 | |||
27697 | |||
27698 | |||
27699 | |||
27700 | if test "x${want_loader}" = "xstatic" ; then | ||
27701 | requirement_evas="${requirement} ${requirement_evas}" | ||
27702 | fi | ||
27703 | |||
27704 | if test "x${have_dep}" = "xyes" ; then | ||
27705 | have_loader="yes" | ||
27706 | else | ||
27707 | have_loader="no" | ||
27708 | fi | ||
27709 | |||
27710 | |||
27711 | fi | ||
27712 | |||
27713 | if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
27714 | as_fn_error $? "Edb dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
27715 | fi | ||
27716 | |||
27717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Edb image loader will be built" >&5 | ||
27718 | $as_echo_n "checking whether Edb image loader will be built... " >&6; } | ||
27719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5 | ||
27720 | $as_echo "${have_loader}" >&6; } | ||
27721 | |||
27722 | if test "x${have_loader}" = "xyes" ; then | ||
27723 | if test "x${want_loader}" = "xstatic" ; then | ||
27724 | have_evas_image_loader_edb="static" | ||
27725 | want_static_loader="yes" | ||
27726 | else | ||
27727 | have_evas_image_loader_edb="yes" | ||
27728 | fi | ||
27729 | fi | ||
27730 | |||
27731 | if test "x${have_loader}" = "xyes" ; then | ||
27732 | |||
27733 | $as_echo "#define BUILD_LOADER_EDB 1" >>confdefs.h | ||
27734 | |||
27735 | fi | ||
27736 | |||
27737 | if test "x${have_loader}" = "xyes"; then | ||
27738 | BUILD_LOADER_EDB_TRUE= | ||
27739 | BUILD_LOADER_EDB_FALSE='#' | ||
27740 | else | ||
27741 | BUILD_LOADER_EDB_TRUE='#' | ||
27742 | BUILD_LOADER_EDB_FALSE= | ||
27743 | fi | ||
27744 | |||
27745 | |||
27746 | if test "x${want_static_loader}" = "xyes" ; then | ||
27747 | |||
27748 | $as_echo "#define EVAS_STATIC_BUILD_EDB 1" >>confdefs.h | ||
27749 | |||
27750 | have_static_module="yes" | ||
27751 | fi | ||
27752 | |||
27753 | if test "x${want_static_loader}" = "xyes"; then | ||
27754 | EVAS_STATIC_BUILD_EDB_TRUE= | ||
27755 | EVAS_STATIC_BUILD_EDB_FALSE='#' | ||
27756 | else | ||
27757 | EVAS_STATIC_BUILD_EDB_TRUE='#' | ||
27758 | EVAS_STATIC_BUILD_EDB_FALSE= | ||
27759 | fi | ||
27760 | |||
27761 | |||
27762 | |||
27763 | |||
27764 | |||
27765 | |||
27766 | |||
27767 | |||
27768 | |||
27769 | |||
27770 | |||
27771 | |||
27772 | want_loader="${want_evas_image_loader_eet}" | ||
27773 | want_static_loader="no" | ||
27774 | have_loader="no" | ||
27775 | have_evas_image_loader_eet="no" | ||
27776 | |||
27777 | # Check whether --enable-image-loader-eet was given. | ||
27778 | if test "${enable_image_loader_eet+set}" = set; then : | ||
27779 | enableval=$enable_image_loader_eet; | ||
27780 | if test "x${enableval}" = "xyes" ; then | ||
27781 | want_loader="yes" | ||
27782 | else | ||
27783 | if test "x${enableval}" = "xstatic" ; then | ||
27784 | want_loader="static" | ||
27785 | else | ||
27786 | want_loader="no" | ||
27787 | fi | ||
27788 | fi | ||
27789 | |||
27790 | |||
27791 | fi | ||
27792 | |||
27793 | |||
27794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Eet image loader" >&5 | ||
27795 | $as_echo_n "checking whether to enable Eet image loader... " >&6; } | ||
27796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
27797 | $as_echo "${want_loader}" >&6; } | ||
27798 | |||
27799 | if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then | ||
27800 | |||
27801 | |||
27802 | requirement="" | ||
27803 | have_dep="no" | ||
27804 | evas_image_loader_eet_cflags="" | ||
27805 | evas_image_loader_eet_libs="" | ||
27806 | |||
27807 | |||
27808 | pkg_failed=no | ||
27809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EET" >&5 | ||
27810 | $as_echo_n "checking for EET... " >&6; } | ||
27811 | |||
27812 | if test -n "$EET_CFLAGS"; then | ||
27813 | pkg_cv_EET_CFLAGS="$EET_CFLAGS" | ||
27814 | elif test -n "$PKG_CONFIG"; then | ||
27815 | if test -n "$PKG_CONFIG" && \ | ||
27816 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.6.0\""; } >&5 | ||
27817 | ($PKG_CONFIG --exists --print-errors "eet >= 1.6.0") 2>&5 | ||
27818 | ac_status=$? | ||
27819 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
27820 | test $ac_status = 0; }; then | ||
27821 | pkg_cv_EET_CFLAGS=`$PKG_CONFIG --cflags "eet >= 1.6.0" 2>/dev/null` | ||
27822 | else | ||
27823 | pkg_failed=yes | ||
27824 | fi | ||
27825 | else | ||
27826 | pkg_failed=untried | ||
27827 | fi | ||
27828 | if test -n "$EET_LIBS"; then | ||
27829 | pkg_cv_EET_LIBS="$EET_LIBS" | ||
27830 | elif test -n "$PKG_CONFIG"; then | ||
27831 | if test -n "$PKG_CONFIG" && \ | ||
27832 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.6.0\""; } >&5 | ||
27833 | ($PKG_CONFIG --exists --print-errors "eet >= 1.6.0") 2>&5 | ||
27834 | ac_status=$? | ||
27835 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
27836 | test $ac_status = 0; }; then | ||
27837 | pkg_cv_EET_LIBS=`$PKG_CONFIG --libs "eet >= 1.6.0" 2>/dev/null` | ||
27838 | else | ||
27839 | pkg_failed=yes | ||
27840 | fi | ||
27841 | else | ||
27842 | pkg_failed=untried | ||
27843 | fi | ||
27844 | |||
27845 | |||
27846 | |||
27847 | if test $pkg_failed = yes; then | ||
27848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27849 | $as_echo "no" >&6; } | ||
27850 | |||
27851 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
27852 | _pkg_short_errors_supported=yes | ||
27853 | else | ||
27854 | _pkg_short_errors_supported=no | ||
27855 | fi | ||
27856 | if test $_pkg_short_errors_supported = yes; then | ||
27857 | EET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eet >= 1.6.0" 2>&1` | ||
27858 | else | ||
27859 | EET_PKG_ERRORS=`$PKG_CONFIG --print-errors "eet >= 1.6.0" 2>&1` | ||
27860 | fi | ||
27861 | # Put the nasty error message in config.log where it belongs | ||
27862 | echo "$EET_PKG_ERRORS" >&5 | ||
27863 | |||
27864 | have_dep="no" | ||
27865 | elif test $pkg_failed = untried; then | ||
27866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
27867 | $as_echo "no" >&6; } | ||
27868 | have_dep="no" | ||
27869 | else | ||
27870 | EET_CFLAGS=$pkg_cv_EET_CFLAGS | ||
27871 | EET_LIBS=$pkg_cv_EET_LIBS | ||
27872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
27873 | $as_echo "yes" >&6; } | ||
27874 | have_dep="yes" requirement="eet >= 1.4.0" | ||
27875 | fi | ||
27876 | evas_image_loader_eet_cflags="${EET_CFLAGS}" | ||
27877 | evas_image_loader_eet_libs="${EET_LIBS}" | ||
27878 | |||
27879 | |||
27880 | |||
27881 | |||
27882 | if test "x${want_loader}" = "xstatic" ; then | ||
27883 | requirement_evas="${requirement} ${requirement_evas}" | ||
27884 | fi | ||
27885 | |||
27886 | if test "x${have_dep}" = "xyes" ; then | ||
27887 | have_loader="yes" | ||
27888 | else | ||
27889 | have_loader="no" | ||
27890 | fi | ||
27891 | |||
27892 | |||
27893 | fi | ||
27894 | |||
27895 | if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
27896 | as_fn_error $? "Eet dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
27897 | fi | ||
27898 | |||
27899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Eet image loader will be built" >&5 | ||
27900 | $as_echo_n "checking whether Eet image loader will be built... " >&6; } | ||
27901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5 | ||
27902 | $as_echo "${have_loader}" >&6; } | ||
27903 | |||
27904 | if test "x${have_loader}" = "xyes" ; then | ||
27905 | if test "x${want_loader}" = "xstatic" ; then | ||
27906 | have_evas_image_loader_eet="static" | ||
27907 | want_static_loader="yes" | ||
27908 | else | ||
27909 | have_evas_image_loader_eet="yes" | ||
27910 | fi | ||
27911 | fi | ||
27912 | |||
27913 | if test "x${have_loader}" = "xyes" ; then | ||
27914 | |||
27915 | $as_echo "#define BUILD_LOADER_EET 1" >>confdefs.h | ||
27916 | |||
27917 | fi | ||
27918 | |||
27919 | if test "x${have_loader}" = "xyes"; then | ||
27920 | BUILD_LOADER_EET_TRUE= | ||
27921 | BUILD_LOADER_EET_FALSE='#' | ||
27922 | else | ||
27923 | BUILD_LOADER_EET_TRUE='#' | ||
27924 | BUILD_LOADER_EET_FALSE= | ||
27925 | fi | ||
27926 | |||
27927 | |||
27928 | if test "x${want_static_loader}" = "xyes" ; then | ||
27929 | |||
27930 | $as_echo "#define EVAS_STATIC_BUILD_EET 1" >>confdefs.h | ||
27931 | |||
27932 | have_static_module="yes" | ||
27933 | fi | ||
27934 | |||
27935 | if test "x${want_static_loader}" = "xyes"; then | ||
27936 | EVAS_STATIC_BUILD_EET_TRUE= | ||
27937 | EVAS_STATIC_BUILD_EET_FALSE='#' | ||
27938 | else | ||
27939 | EVAS_STATIC_BUILD_EET_TRUE='#' | ||
27940 | EVAS_STATIC_BUILD_EET_FALSE= | ||
27941 | fi | ||
27942 | |||
27943 | |||
27944 | |||
27945 | |||
27946 | |||
27947 | |||
27948 | |||
27949 | |||
27950 | |||
27951 | want_loader="${want_evas_font_loader_eet}" | ||
27952 | have_evas_font_loader_eet="no" | ||
27953 | |||
27954 | # Check whether --enable-font-loader-eet was given. | ||
27955 | if test "${enable_font_loader_eet+set}" = set; then : | ||
27956 | enableval=$enable_font_loader_eet; want_loader=${enableval} | ||
27957 | |||
27958 | fi | ||
27959 | |||
27960 | |||
27961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Eet font loader" >&5 | ||
27962 | $as_echo_n "checking whether to enable Eet font loader... " >&6; } | ||
27963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
27964 | $as_echo "${want_loader}" >&6; } | ||
27965 | |||
27966 | if test "x$want_loader" = "xyes" -o "x$want_loader" = "xauto"; then | ||
27967 | |||
27968 | pkg_failed=no | ||
27969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EET" >&5 | ||
27970 | $as_echo_n "checking for EET... " >&6; } | ||
27971 | |||
27972 | if test -n "$EET_CFLAGS"; then | ||
27973 | pkg_cv_EET_CFLAGS="$EET_CFLAGS" | ||
27974 | elif test -n "$PKG_CONFIG"; then | ||
27975 | if test -n "$PKG_CONFIG" && \ | ||
27976 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.6.0\""; } >&5 | ||
27977 | ($PKG_CONFIG --exists --print-errors "eet >= 1.6.0") 2>&5 | ||
27978 | ac_status=$? | ||
27979 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
27980 | test $ac_status = 0; }; then | ||
27981 | pkg_cv_EET_CFLAGS=`$PKG_CONFIG --cflags "eet >= 1.6.0" 2>/dev/null` | ||
27982 | else | ||
27983 | pkg_failed=yes | ||
27984 | fi | ||
27985 | else | ||
27986 | pkg_failed=untried | ||
27987 | fi | ||
27988 | if test -n "$EET_LIBS"; then | ||
27989 | pkg_cv_EET_LIBS="$EET_LIBS" | ||
27990 | elif test -n "$PKG_CONFIG"; then | ||
27991 | if test -n "$PKG_CONFIG" && \ | ||
27992 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.6.0\""; } >&5 | ||
27993 | ($PKG_CONFIG --exists --print-errors "eet >= 1.6.0") 2>&5 | ||
27994 | ac_status=$? | ||
27995 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
27996 | test $ac_status = 0; }; then | ||
27997 | pkg_cv_EET_LIBS=`$PKG_CONFIG --libs "eet >= 1.6.0" 2>/dev/null` | ||
27998 | else | ||
27999 | pkg_failed=yes | ||
28000 | fi | ||
28001 | else | ||
28002 | pkg_failed=untried | ||
28003 | fi | ||
28004 | |||
28005 | |||
28006 | |||
28007 | if test $pkg_failed = yes; then | ||
28008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28009 | $as_echo "no" >&6; } | ||
28010 | |||
28011 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
28012 | _pkg_short_errors_supported=yes | ||
28013 | else | ||
28014 | _pkg_short_errors_supported=no | ||
28015 | fi | ||
28016 | if test $_pkg_short_errors_supported = yes; then | ||
28017 | EET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eet >= 1.6.0" 2>&1` | ||
28018 | else | ||
28019 | EET_PKG_ERRORS=`$PKG_CONFIG --print-errors "eet >= 1.6.0" 2>&1` | ||
28020 | fi | ||
28021 | # Put the nasty error message in config.log where it belongs | ||
28022 | echo "$EET_PKG_ERRORS" >&5 | ||
28023 | |||
28024 | have_evas_font_loader_eet="no" | ||
28025 | elif test $pkg_failed = untried; then | ||
28026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28027 | $as_echo "no" >&6; } | ||
28028 | have_evas_font_loader_eet="no" | ||
28029 | else | ||
28030 | EET_CFLAGS=$pkg_cv_EET_CFLAGS | ||
28031 | EET_LIBS=$pkg_cv_EET_LIBS | ||
28032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
28033 | $as_echo "yes" >&6; } | ||
28034 | have_evas_font_loader_eet="yes" | ||
28035 | fi | ||
28036 | fi | ||
28037 | |||
28038 | if test "x${have_evas_font_loader_eet}" = "xno" -a "x$want_loader" = "xyes" -a "x$use_strict" = "xyes" ; then | ||
28039 | as_fn_error $? "Eet dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
28040 | fi | ||
28041 | |||
28042 | if test "x$have_evas_font_loader_eet" = "xyes" ; then | ||
28043 | |||
28044 | $as_echo "#define BUILD_FONT_LOADER_EET 1" >>confdefs.h | ||
28045 | |||
28046 | requirement_evas="eet >= 1.6.0 ${requirement_evas}" | ||
28047 | fi | ||
28048 | |||
28049 | |||
28050 | |||
28051 | |||
28052 | |||
28053 | |||
28054 | |||
28055 | |||
28056 | |||
28057 | |||
28058 | |||
28059 | want_loader="${want_evas_image_loader_gif}" | ||
28060 | want_static_loader="no" | ||
28061 | have_loader="no" | ||
28062 | have_evas_image_loader_gif="no" | ||
28063 | |||
28064 | # Check whether --enable-image-loader-gif was given. | ||
28065 | if test "${enable_image_loader_gif+set}" = set; then : | ||
28066 | enableval=$enable_image_loader_gif; | ||
28067 | if test "x${enableval}" = "xyes" ; then | ||
28068 | want_loader="yes" | ||
28069 | else | ||
28070 | if test "x${enableval}" = "xstatic" ; then | ||
28071 | want_loader="static" | ||
28072 | else | ||
28073 | want_loader="no" | ||
28074 | fi | ||
28075 | fi | ||
28076 | |||
28077 | |||
28078 | fi | ||
28079 | |||
28080 | |||
28081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Gif image loader" >&5 | ||
28082 | $as_echo_n "checking whether to enable Gif image loader... " >&6; } | ||
28083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
28084 | $as_echo "${want_loader}" >&6; } | ||
28085 | |||
28086 | if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then | ||
28087 | |||
28088 | |||
28089 | have_dep="no" | ||
28090 | evas_image_loader_gif_cflags="" | ||
28091 | evas_image_loader_gif_libs="" | ||
28092 | |||
28093 | ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" | ||
28094 | if test "x$ac_cv_header_gif_lib_h" = x""yes; then : | ||
28095 | have_dep="yes" | ||
28096 | fi | ||
28097 | |||
28098 | |||
28099 | |||
28100 | if test "x${have_dep}" = "xyes" ; then | ||
28101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifOpenFileName in -lgif" >&5 | ||
28102 | $as_echo_n "checking for DGifOpenFileName in -lgif... " >&6; } | ||
28103 | if test "${ac_cv_lib_gif_DGifOpenFileName+set}" = set; then : | ||
28104 | $as_echo_n "(cached) " >&6 | ||
28105 | else | ||
28106 | ac_check_lib_save_LIBS=$LIBS | ||
28107 | LIBS="-lgif $LIBS" | ||
28108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
28109 | /* end confdefs.h. */ | ||
28110 | |||
28111 | /* Override any GCC internal prototype to avoid an error. | ||
28112 | Use char because int might match the return type of a GCC | ||
28113 | builtin and then its argument prototype would still apply. */ | ||
28114 | #ifdef __cplusplus | ||
28115 | extern "C" | ||
28116 | #endif | ||
28117 | char DGifOpenFileName (); | ||
28118 | int | ||
28119 | main () | ||
28120 | { | ||
28121 | return DGifOpenFileName (); | ||
28122 | ; | ||
28123 | return 0; | ||
28124 | } | ||
28125 | _ACEOF | ||
28126 | if ac_fn_c_try_link "$LINENO"; then : | ||
28127 | ac_cv_lib_gif_DGifOpenFileName=yes | ||
28128 | else | ||
28129 | ac_cv_lib_gif_DGifOpenFileName=no | ||
28130 | fi | ||
28131 | rm -f core conftest.err conftest.$ac_objext \ | ||
28132 | conftest$ac_exeext conftest.$ac_ext | ||
28133 | LIBS=$ac_check_lib_save_LIBS | ||
28134 | fi | ||
28135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifOpenFileName" >&5 | ||
28136 | $as_echo "$ac_cv_lib_gif_DGifOpenFileName" >&6; } | ||
28137 | if test "x$ac_cv_lib_gif_DGifOpenFileName" = x""yes; then : | ||
28138 | |||
28139 | evas_image_loader_gif_libs="-lgif" | ||
28140 | |||
28141 | else | ||
28142 | have_dep="no" | ||
28143 | |||
28144 | fi | ||
28145 | |||
28146 | |||
28147 | if test "x${have_dep}" = "xno" ; then | ||
28148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifOpenFileName in -lungif" >&5 | ||
28149 | $as_echo_n "checking for DGifOpenFileName in -lungif... " >&6; } | ||
28150 | if test "${ac_cv_lib_ungif_DGifOpenFileName+set}" = set; then : | ||
28151 | $as_echo_n "(cached) " >&6 | ||
28152 | else | ||
28153 | ac_check_lib_save_LIBS=$LIBS | ||
28154 | LIBS="-lungif $LIBS" | ||
28155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
28156 | /* end confdefs.h. */ | ||
28157 | |||
28158 | /* Override any GCC internal prototype to avoid an error. | ||
28159 | Use char because int might match the return type of a GCC | ||
28160 | builtin and then its argument prototype would still apply. */ | ||
28161 | #ifdef __cplusplus | ||
28162 | extern "C" | ||
28163 | #endif | ||
28164 | char DGifOpenFileName (); | ||
28165 | int | ||
28166 | main () | ||
28167 | { | ||
28168 | return DGifOpenFileName (); | ||
28169 | ; | ||
28170 | return 0; | ||
28171 | } | ||
28172 | _ACEOF | ||
28173 | if ac_fn_c_try_link "$LINENO"; then : | ||
28174 | ac_cv_lib_ungif_DGifOpenFileName=yes | ||
28175 | else | ||
28176 | ac_cv_lib_ungif_DGifOpenFileName=no | ||
28177 | fi | ||
28178 | rm -f core conftest.err conftest.$ac_objext \ | ||
28179 | conftest$ac_exeext conftest.$ac_ext | ||
28180 | LIBS=$ac_check_lib_save_LIBS | ||
28181 | fi | ||
28182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_DGifOpenFileName" >&5 | ||
28183 | $as_echo "$ac_cv_lib_ungif_DGifOpenFileName" >&6; } | ||
28184 | if test "x$ac_cv_lib_ungif_DGifOpenFileName" = x""yes; then : | ||
28185 | |||
28186 | have_dep="yes" | ||
28187 | evas_image_loader_gif_libs="-lungif" | ||
28188 | |||
28189 | |||
28190 | fi | ||
28191 | |||
28192 | fi | ||
28193 | fi | ||
28194 | |||
28195 | |||
28196 | |||
28197 | |||
28198 | if test "x${have_dep}" = "xyes" ; then | ||
28199 | have_loader="yes" | ||
28200 | else | ||
28201 | have_loader="no" | ||
28202 | fi | ||
28203 | |||
28204 | |||
28205 | fi | ||
28206 | |||
28207 | if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
28208 | as_fn_error $? "Gif dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
28209 | fi | ||
28210 | |||
28211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Gif image loader will be built" >&5 | ||
28212 | $as_echo_n "checking whether Gif image loader will be built... " >&6; } | ||
28213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5 | ||
28214 | $as_echo "${have_loader}" >&6; } | ||
28215 | |||
28216 | if test "x${have_loader}" = "xyes" ; then | ||
28217 | if test "x${want_loader}" = "xstatic" ; then | ||
28218 | have_evas_image_loader_gif="static" | ||
28219 | want_static_loader="yes" | ||
28220 | else | ||
28221 | have_evas_image_loader_gif="yes" | ||
28222 | fi | ||
28223 | fi | ||
28224 | |||
28225 | if test "x${have_loader}" = "xyes" ; then | ||
28226 | |||
28227 | $as_echo "#define BUILD_LOADER_GIF 1" >>confdefs.h | ||
28228 | |||
28229 | fi | ||
28230 | |||
28231 | if test "x${have_loader}" = "xyes"; then | ||
28232 | BUILD_LOADER_GIF_TRUE= | ||
28233 | BUILD_LOADER_GIF_FALSE='#' | ||
28234 | else | ||
28235 | BUILD_LOADER_GIF_TRUE='#' | ||
28236 | BUILD_LOADER_GIF_FALSE= | ||
28237 | fi | ||
28238 | |||
28239 | |||
28240 | if test "x${want_static_loader}" = "xyes" ; then | ||
28241 | |||
28242 | $as_echo "#define EVAS_STATIC_BUILD_GIF 1" >>confdefs.h | ||
28243 | |||
28244 | have_static_module="yes" | ||
28245 | fi | ||
28246 | |||
28247 | if test "x${want_static_loader}" = "xyes"; then | ||
28248 | EVAS_STATIC_BUILD_GIF_TRUE= | ||
28249 | EVAS_STATIC_BUILD_GIF_FALSE='#' | ||
28250 | else | ||
28251 | EVAS_STATIC_BUILD_GIF_TRUE='#' | ||
28252 | EVAS_STATIC_BUILD_GIF_FALSE= | ||
28253 | fi | ||
28254 | |||
28255 | |||
28256 | |||
28257 | |||
28258 | |||
28259 | |||
28260 | |||
28261 | have_evas_image_saver_jpeg="no" | ||
28262 | |||
28263 | |||
28264 | |||
28265 | |||
28266 | |||
28267 | want_loader="${want_evas_image_loader_jpeg}" | ||
28268 | want_static_loader="no" | ||
28269 | have_loader="no" | ||
28270 | have_evas_image_loader_jpeg="no" | ||
28271 | |||
28272 | # Check whether --enable-image-loader-jpeg was given. | ||
28273 | if test "${enable_image_loader_jpeg+set}" = set; then : | ||
28274 | enableval=$enable_image_loader_jpeg; | ||
28275 | if test "x${enableval}" = "xyes" ; then | ||
28276 | want_loader="yes" | ||
28277 | else | ||
28278 | if test "x${enableval}" = "xstatic" ; then | ||
28279 | want_loader="static" | ||
28280 | else | ||
28281 | want_loader="no" | ||
28282 | fi | ||
28283 | fi | ||
28284 | |||
28285 | |||
28286 | fi | ||
28287 | |||
28288 | |||
28289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Jpeg image loader" >&5 | ||
28290 | $as_echo_n "checking whether to enable Jpeg image loader... " >&6; } | ||
28291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
28292 | $as_echo "${want_loader}" >&6; } | ||
28293 | |||
28294 | if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then | ||
28295 | |||
28296 | |||
28297 | have_dep="no" | ||
28298 | evas_image_loader_jpeg_cflags="" | ||
28299 | evas_image_loader_jpeg_libs="" | ||
28300 | |||
28301 | ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" | ||
28302 | if test "x$ac_cv_header_jpeglib_h" = x""yes; then : | ||
28303 | have_dep="yes" | ||
28304 | fi | ||
28305 | |||
28306 | |||
28307 | |||
28308 | if test "x${have_dep}" = "xyes" ; then | ||
28309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 | ||
28310 | $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } | ||
28311 | if test "${ac_cv_lib_jpeg_jpeg_CreateDecompress+set}" = set; then : | ||
28312 | $as_echo_n "(cached) " >&6 | ||
28313 | else | ||
28314 | ac_check_lib_save_LIBS=$LIBS | ||
28315 | LIBS="-ljpeg $LIBS" | ||
28316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
28317 | /* end confdefs.h. */ | ||
28318 | |||
28319 | /* Override any GCC internal prototype to avoid an error. | ||
28320 | Use char because int might match the return type of a GCC | ||
28321 | builtin and then its argument prototype would still apply. */ | ||
28322 | #ifdef __cplusplus | ||
28323 | extern "C" | ||
28324 | #endif | ||
28325 | char jpeg_CreateDecompress (); | ||
28326 | int | ||
28327 | main () | ||
28328 | { | ||
28329 | return jpeg_CreateDecompress (); | ||
28330 | ; | ||
28331 | return 0; | ||
28332 | } | ||
28333 | _ACEOF | ||
28334 | if ac_fn_c_try_link "$LINENO"; then : | ||
28335 | ac_cv_lib_jpeg_jpeg_CreateDecompress=yes | ||
28336 | else | ||
28337 | ac_cv_lib_jpeg_jpeg_CreateDecompress=no | ||
28338 | fi | ||
28339 | rm -f core conftest.err conftest.$ac_objext \ | ||
28340 | conftest$ac_exeext conftest.$ac_ext | ||
28341 | LIBS=$ac_check_lib_save_LIBS | ||
28342 | fi | ||
28343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 | ||
28344 | $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } | ||
28345 | if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = x""yes; then : | ||
28346 | |||
28347 | evas_image_loader_jpeg_libs="-ljpeg" | ||
28348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
28349 | /* end confdefs.h. */ | ||
28350 | |||
28351 | #include <stdio.h> | ||
28352 | #include <jpeglib.h> | ||
28353 | #include <setjmp.h> | ||
28354 | |||
28355 | int | ||
28356 | main () | ||
28357 | { | ||
28358 | |||
28359 | struct jpeg_decompress_struct decomp; | ||
28360 | decomp.region_x = 0; | ||
28361 | |||
28362 | ; | ||
28363 | return 0; | ||
28364 | } | ||
28365 | _ACEOF | ||
28366 | if ac_fn_c_try_compile "$LINENO"; then : | ||
28367 | have_jpeg_region="yes" | ||
28368 | else | ||
28369 | have_jpeg_region="no" | ||
28370 | fi | ||
28371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28372 | |||
28373 | else | ||
28374 | have_dep="no" | ||
28375 | |||
28376 | fi | ||
28377 | |||
28378 | if test "x${have_jpeg_region}" = "xyes" ; then | ||
28379 | |||
28380 | $as_echo "#define BUILD_LOADER_JPEG_REGION 1" >>confdefs.h | ||
28381 | |||
28382 | fi | ||
28383 | fi | ||
28384 | |||
28385 | |||
28386 | |||
28387 | |||
28388 | if test "x${have_dep}" = "xyes" ; then | ||
28389 | have_loader="yes" | ||
28390 | else | ||
28391 | have_loader="no" | ||
28392 | fi | ||
28393 | |||
28394 | |||
28395 | fi | ||
28396 | |||
28397 | if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
28398 | as_fn_error $? "Jpeg dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
28399 | fi | ||
28400 | |||
28401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Jpeg image loader will be built" >&5 | ||
28402 | $as_echo_n "checking whether Jpeg image loader will be built... " >&6; } | ||
28403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5 | ||
28404 | $as_echo "${have_loader}" >&6; } | ||
28405 | |||
28406 | if test "x${have_loader}" = "xyes" ; then | ||
28407 | if test "x${want_loader}" = "xstatic" ; then | ||
28408 | have_evas_image_loader_jpeg="static" | ||
28409 | want_static_loader="yes" | ||
28410 | else | ||
28411 | have_evas_image_loader_jpeg="yes" | ||
28412 | fi | ||
28413 | fi | ||
28414 | |||
28415 | if test "x${have_loader}" = "xyes" ; then | ||
28416 | |||
28417 | $as_echo "#define BUILD_LOADER_JPEG 1" >>confdefs.h | ||
28418 | |||
28419 | fi | ||
28420 | |||
28421 | if test "x${have_loader}" = "xyes"; then | ||
28422 | BUILD_LOADER_JPEG_TRUE= | ||
28423 | BUILD_LOADER_JPEG_FALSE='#' | ||
28424 | else | ||
28425 | BUILD_LOADER_JPEG_TRUE='#' | ||
28426 | BUILD_LOADER_JPEG_FALSE= | ||
28427 | fi | ||
28428 | |||
28429 | |||
28430 | if test "x${want_static_loader}" = "xyes" ; then | ||
28431 | |||
28432 | $as_echo "#define EVAS_STATIC_BUILD_JPEG 1" >>confdefs.h | ||
28433 | |||
28434 | have_static_module="yes" | ||
28435 | fi | ||
28436 | |||
28437 | if test "x${want_static_loader}" = "xyes"; then | ||
28438 | EVAS_STATIC_BUILD_JPEG_TRUE= | ||
28439 | EVAS_STATIC_BUILD_JPEG_FALSE='#' | ||
28440 | else | ||
28441 | EVAS_STATIC_BUILD_JPEG_TRUE='#' | ||
28442 | EVAS_STATIC_BUILD_JPEG_FALSE= | ||
28443 | fi | ||
28444 | |||
28445 | |||
28446 | |||
28447 | |||
28448 | |||
28449 | |||
28450 | |||
28451 | case "$host_os" in | ||
28452 | mingw*) | ||
28453 | ;; | ||
28454 | *) | ||
28455 | if test "x${have_evas_image_loader_jpeg}" = "xyes" ; then | ||
28456 | |||
28457 | $as_echo "#define EVAS_BUILD_SAVER_JPEG 1" >>confdefs.h | ||
28458 | |||
28459 | have_evas_image_saver_jpeg="yes" | ||
28460 | fi | ||
28461 | ;; | ||
28462 | esac | ||
28463 | if test "x${have_evas_image_saver_jpeg}" = "xyes"; then | ||
28464 | BUILD_SAVER_JPEG_TRUE= | ||
28465 | BUILD_SAVER_JPEG_FALSE='#' | ||
28466 | else | ||
28467 | BUILD_SAVER_JPEG_TRUE='#' | ||
28468 | BUILD_SAVER_JPEG_FALSE= | ||
28469 | fi | ||
28470 | |||
28471 | |||
28472 | |||
28473 | |||
28474 | |||
28475 | |||
28476 | |||
28477 | want_loader="${want_evas_image_loader_pmaps}" | ||
28478 | want_static_loader="no" | ||
28479 | have_loader="no" | ||
28480 | have_evas_image_loader_pmaps="no" | ||
28481 | |||
28482 | # Check whether --enable-image-loader-pmaps was given. | ||
28483 | if test "${enable_image_loader_pmaps+set}" = set; then : | ||
28484 | enableval=$enable_image_loader_pmaps; | ||
28485 | if test "x${enableval}" = "xyes" ; then | ||
28486 | want_loader="yes" | ||
28487 | else | ||
28488 | if test "x${enableval}" = "xstatic" ; then | ||
28489 | want_loader="static" | ||
28490 | else | ||
28491 | want_loader="no" | ||
28492 | fi | ||
28493 | fi | ||
28494 | |||
28495 | |||
28496 | fi | ||
28497 | |||
28498 | |||
28499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PMAPS image loader" >&5 | ||
28500 | $as_echo_n "checking whether to enable PMAPS image loader... " >&6; } | ||
28501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
28502 | $as_echo "${want_loader}" >&6; } | ||
28503 | |||
28504 | if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then | ||
28505 | |||
28506 | |||
28507 | have_dep="yes" | ||
28508 | evas_image_loader_pmaps_cflags="" | ||
28509 | evas_image_loader_pmaps_libs="" | ||
28510 | |||
28511 | |||
28512 | |||
28513 | |||
28514 | if test "x${have_dep}" = "xyes" ; then | ||
28515 | have_loader="yes" | ||
28516 | else | ||
28517 | have_loader="no" | ||
28518 | fi | ||
28519 | |||
28520 | |||
28521 | fi | ||
28522 | |||
28523 | if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
28524 | as_fn_error $? "PMAPS dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
28525 | fi | ||
28526 | |||
28527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PMAPS image loader will be built" >&5 | ||
28528 | $as_echo_n "checking whether PMAPS image loader will be built... " >&6; } | ||
28529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5 | ||
28530 | $as_echo "${have_loader}" >&6; } | ||
28531 | |||
28532 | if test "x${have_loader}" = "xyes" ; then | ||
28533 | if test "x${want_loader}" = "xstatic" ; then | ||
28534 | have_evas_image_loader_pmaps="static" | ||
28535 | want_static_loader="yes" | ||
28536 | else | ||
28537 | have_evas_image_loader_pmaps="yes" | ||
28538 | fi | ||
28539 | fi | ||
28540 | |||
28541 | if test "x${have_loader}" = "xyes" ; then | ||
28542 | |||
28543 | $as_echo "#define BUILD_LOADER_PMAPS 1" >>confdefs.h | ||
28544 | |||
28545 | fi | ||
28546 | |||
28547 | if test "x${have_loader}" = "xyes"; then | ||
28548 | BUILD_LOADER_PMAPS_TRUE= | ||
28549 | BUILD_LOADER_PMAPS_FALSE='#' | ||
28550 | else | ||
28551 | BUILD_LOADER_PMAPS_TRUE='#' | ||
28552 | BUILD_LOADER_PMAPS_FALSE= | ||
28553 | fi | ||
28554 | |||
28555 | |||
28556 | if test "x${want_static_loader}" = "xyes" ; then | ||
28557 | |||
28558 | $as_echo "#define EVAS_STATIC_BUILD_PMAPS 1" >>confdefs.h | ||
28559 | |||
28560 | have_static_module="yes" | ||
28561 | fi | ||
28562 | |||
28563 | if test "x${want_static_loader}" = "xyes"; then | ||
28564 | EVAS_STATIC_BUILD_PMAPS_TRUE= | ||
28565 | EVAS_STATIC_BUILD_PMAPS_FALSE='#' | ||
28566 | else | ||
28567 | EVAS_STATIC_BUILD_PMAPS_TRUE='#' | ||
28568 | EVAS_STATIC_BUILD_PMAPS_FALSE= | ||
28569 | fi | ||
28570 | |||
28571 | |||
28572 | |||
28573 | |||
28574 | |||
28575 | |||
28576 | |||
28577 | |||
28578 | |||
28579 | |||
28580 | |||
28581 | |||
28582 | want_loader="${want_evas_image_loader_png}" | ||
28583 | want_static_loader="no" | ||
28584 | have_loader="no" | ||
28585 | have_evas_image_loader_png="no" | ||
28586 | |||
28587 | # Check whether --enable-image-loader-png was given. | ||
28588 | if test "${enable_image_loader_png+set}" = set; then : | ||
28589 | enableval=$enable_image_loader_png; | ||
28590 | if test "x${enableval}" = "xyes" ; then | ||
28591 | want_loader="yes" | ||
28592 | else | ||
28593 | if test "x${enableval}" = "xstatic" ; then | ||
28594 | want_loader="static" | ||
28595 | else | ||
28596 | want_loader="no" | ||
28597 | fi | ||
28598 | fi | ||
28599 | |||
28600 | |||
28601 | fi | ||
28602 | |||
28603 | |||
28604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PNG image loader" >&5 | ||
28605 | $as_echo_n "checking whether to enable PNG image loader... " >&6; } | ||
28606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
28607 | $as_echo "${want_loader}" >&6; } | ||
28608 | |||
28609 | if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then | ||
28610 | |||
28611 | |||
28612 | requirement="" | ||
28613 | have_dep="no" | ||
28614 | evas_image_loader_png_cflags="" | ||
28615 | evas_image_loader_png_libs="" | ||
28616 | |||
28617 | |||
28618 | pkg_failed=no | ||
28619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 | ||
28620 | $as_echo_n "checking for PNG... " >&6; } | ||
28621 | |||
28622 | if test -n "$PNG_CFLAGS"; then | ||
28623 | pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" | ||
28624 | elif test -n "$PKG_CONFIG"; then | ||
28625 | if test -n "$PKG_CONFIG" && \ | ||
28626 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2.10\""; } >&5 | ||
28627 | ($PKG_CONFIG --exists --print-errors "libpng >= 1.2.10") 2>&5 | ||
28628 | ac_status=$? | ||
28629 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28630 | test $ac_status = 0; }; then | ||
28631 | pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.2.10" 2>/dev/null` | ||
28632 | else | ||
28633 | pkg_failed=yes | ||
28634 | fi | ||
28635 | else | ||
28636 | pkg_failed=untried | ||
28637 | fi | ||
28638 | if test -n "$PNG_LIBS"; then | ||
28639 | pkg_cv_PNG_LIBS="$PNG_LIBS" | ||
28640 | elif test -n "$PKG_CONFIG"; then | ||
28641 | if test -n "$PKG_CONFIG" && \ | ||
28642 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2.10\""; } >&5 | ||
28643 | ($PKG_CONFIG --exists --print-errors "libpng >= 1.2.10") 2>&5 | ||
28644 | ac_status=$? | ||
28645 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28646 | test $ac_status = 0; }; then | ||
28647 | pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.2.10" 2>/dev/null` | ||
28648 | else | ||
28649 | pkg_failed=yes | ||
28650 | fi | ||
28651 | else | ||
28652 | pkg_failed=untried | ||
28653 | fi | ||
28654 | |||
28655 | |||
28656 | |||
28657 | if test $pkg_failed = yes; then | ||
28658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28659 | $as_echo "no" >&6; } | ||
28660 | |||
28661 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
28662 | _pkg_short_errors_supported=yes | ||
28663 | else | ||
28664 | _pkg_short_errors_supported=no | ||
28665 | fi | ||
28666 | if test $_pkg_short_errors_supported = yes; then | ||
28667 | PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng >= 1.2.10" 2>&1` | ||
28668 | else | ||
28669 | PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng >= 1.2.10" 2>&1` | ||
28670 | fi | ||
28671 | # Put the nasty error message in config.log where it belongs | ||
28672 | echo "$PNG_PKG_ERRORS" >&5 | ||
28673 | |||
28674 | have_dep="no" | ||
28675 | elif test $pkg_failed = untried; then | ||
28676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28677 | $as_echo "no" >&6; } | ||
28678 | have_dep="no" | ||
28679 | else | ||
28680 | PNG_CFLAGS=$pkg_cv_PNG_CFLAGS | ||
28681 | PNG_LIBS=$pkg_cv_PNG_LIBS | ||
28682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
28683 | $as_echo "yes" >&6; } | ||
28684 | have_dep="yes" requirement="libpng" | ||
28685 | fi | ||
28686 | |||
28687 | if test "x${have_dep}" = "xno" ; then | ||
28688 | |||
28689 | pkg_failed=no | ||
28690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 | ||
28691 | $as_echo_n "checking for PNG... " >&6; } | ||
28692 | |||
28693 | if test -n "$PNG_CFLAGS"; then | ||
28694 | pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" | ||
28695 | elif test -n "$PKG_CONFIG"; then | ||
28696 | if test -n "$PKG_CONFIG" && \ | ||
28697 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng15\""; } >&5 | ||
28698 | ($PKG_CONFIG --exists --print-errors "libpng15") 2>&5 | ||
28699 | ac_status=$? | ||
28700 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28701 | test $ac_status = 0; }; then | ||
28702 | pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng15" 2>/dev/null` | ||
28703 | else | ||
28704 | pkg_failed=yes | ||
28705 | fi | ||
28706 | else | ||
28707 | pkg_failed=untried | ||
28708 | fi | ||
28709 | if test -n "$PNG_LIBS"; then | ||
28710 | pkg_cv_PNG_LIBS="$PNG_LIBS" | ||
28711 | elif test -n "$PKG_CONFIG"; then | ||
28712 | if test -n "$PKG_CONFIG" && \ | ||
28713 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng15\""; } >&5 | ||
28714 | ($PKG_CONFIG --exists --print-errors "libpng15") 2>&5 | ||
28715 | ac_status=$? | ||
28716 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28717 | test $ac_status = 0; }; then | ||
28718 | pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng15" 2>/dev/null` | ||
28719 | else | ||
28720 | pkg_failed=yes | ||
28721 | fi | ||
28722 | else | ||
28723 | pkg_failed=untried | ||
28724 | fi | ||
28725 | |||
28726 | |||
28727 | |||
28728 | if test $pkg_failed = yes; then | ||
28729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28730 | $as_echo "no" >&6; } | ||
28731 | |||
28732 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
28733 | _pkg_short_errors_supported=yes | ||
28734 | else | ||
28735 | _pkg_short_errors_supported=no | ||
28736 | fi | ||
28737 | if test $_pkg_short_errors_supported = yes; then | ||
28738 | PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng15" 2>&1` | ||
28739 | else | ||
28740 | PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng15" 2>&1` | ||
28741 | fi | ||
28742 | # Put the nasty error message in config.log where it belongs | ||
28743 | echo "$PNG_PKG_ERRORS" >&5 | ||
28744 | |||
28745 | have_dep="no" | ||
28746 | elif test $pkg_failed = untried; then | ||
28747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28748 | $as_echo "no" >&6; } | ||
28749 | have_dep="no" | ||
28750 | else | ||
28751 | PNG_CFLAGS=$pkg_cv_PNG_CFLAGS | ||
28752 | PNG_LIBS=$pkg_cv_PNG_LIBS | ||
28753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
28754 | $as_echo "yes" >&6; } | ||
28755 | have_dep="yes" requirement="libpng15" | ||
28756 | fi | ||
28757 | fi | ||
28758 | |||
28759 | if test "x${have_dep}" = "xno" ; then | ||
28760 | |||
28761 | pkg_failed=no | ||
28762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 | ||
28763 | $as_echo_n "checking for PNG... " >&6; } | ||
28764 | |||
28765 | if test -n "$PNG_CFLAGS"; then | ||
28766 | pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" | ||
28767 | elif test -n "$PKG_CONFIG"; then | ||
28768 | if test -n "$PKG_CONFIG" && \ | ||
28769 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng14\""; } >&5 | ||
28770 | ($PKG_CONFIG --exists --print-errors "libpng14") 2>&5 | ||
28771 | ac_status=$? | ||
28772 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28773 | test $ac_status = 0; }; then | ||
28774 | pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng14" 2>/dev/null` | ||
28775 | else | ||
28776 | pkg_failed=yes | ||
28777 | fi | ||
28778 | else | ||
28779 | pkg_failed=untried | ||
28780 | fi | ||
28781 | if test -n "$PNG_LIBS"; then | ||
28782 | pkg_cv_PNG_LIBS="$PNG_LIBS" | ||
28783 | elif test -n "$PKG_CONFIG"; then | ||
28784 | if test -n "$PKG_CONFIG" && \ | ||
28785 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng14\""; } >&5 | ||
28786 | ($PKG_CONFIG --exists --print-errors "libpng14") 2>&5 | ||
28787 | ac_status=$? | ||
28788 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28789 | test $ac_status = 0; }; then | ||
28790 | pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng14" 2>/dev/null` | ||
28791 | else | ||
28792 | pkg_failed=yes | ||
28793 | fi | ||
28794 | else | ||
28795 | pkg_failed=untried | ||
28796 | fi | ||
28797 | |||
28798 | |||
28799 | |||
28800 | if test $pkg_failed = yes; then | ||
28801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28802 | $as_echo "no" >&6; } | ||
28803 | |||
28804 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
28805 | _pkg_short_errors_supported=yes | ||
28806 | else | ||
28807 | _pkg_short_errors_supported=no | ||
28808 | fi | ||
28809 | if test $_pkg_short_errors_supported = yes; then | ||
28810 | PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng14" 2>&1` | ||
28811 | else | ||
28812 | PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng14" 2>&1` | ||
28813 | fi | ||
28814 | # Put the nasty error message in config.log where it belongs | ||
28815 | echo "$PNG_PKG_ERRORS" >&5 | ||
28816 | |||
28817 | have_dep="no" | ||
28818 | elif test $pkg_failed = untried; then | ||
28819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28820 | $as_echo "no" >&6; } | ||
28821 | have_dep="no" | ||
28822 | else | ||
28823 | PNG_CFLAGS=$pkg_cv_PNG_CFLAGS | ||
28824 | PNG_LIBS=$pkg_cv_PNG_LIBS | ||
28825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
28826 | $as_echo "yes" >&6; } | ||
28827 | have_dep="yes" requirement="libpng14" | ||
28828 | fi | ||
28829 | fi | ||
28830 | |||
28831 | if test "x${have_dep}" = "xno" ; then | ||
28832 | |||
28833 | pkg_failed=no | ||
28834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 | ||
28835 | $as_echo_n "checking for PNG... " >&6; } | ||
28836 | |||
28837 | if test -n "$PNG_CFLAGS"; then | ||
28838 | pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" | ||
28839 | elif test -n "$PKG_CONFIG"; then | ||
28840 | if test -n "$PKG_CONFIG" && \ | ||
28841 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 >= 1.2.10\""; } >&5 | ||
28842 | ($PKG_CONFIG --exists --print-errors "libpng12 >= 1.2.10") 2>&5 | ||
28843 | ac_status=$? | ||
28844 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28845 | test $ac_status = 0; }; then | ||
28846 | pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng12 >= 1.2.10" 2>/dev/null` | ||
28847 | else | ||
28848 | pkg_failed=yes | ||
28849 | fi | ||
28850 | else | ||
28851 | pkg_failed=untried | ||
28852 | fi | ||
28853 | if test -n "$PNG_LIBS"; then | ||
28854 | pkg_cv_PNG_LIBS="$PNG_LIBS" | ||
28855 | elif test -n "$PKG_CONFIG"; then | ||
28856 | if test -n "$PKG_CONFIG" && \ | ||
28857 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 >= 1.2.10\""; } >&5 | ||
28858 | ($PKG_CONFIG --exists --print-errors "libpng12 >= 1.2.10") 2>&5 | ||
28859 | ac_status=$? | ||
28860 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
28861 | test $ac_status = 0; }; then | ||
28862 | pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng12 >= 1.2.10" 2>/dev/null` | ||
28863 | else | ||
28864 | pkg_failed=yes | ||
28865 | fi | ||
28866 | else | ||
28867 | pkg_failed=untried | ||
28868 | fi | ||
28869 | |||
28870 | |||
28871 | |||
28872 | if test $pkg_failed = yes; then | ||
28873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28874 | $as_echo "no" >&6; } | ||
28875 | |||
28876 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
28877 | _pkg_short_errors_supported=yes | ||
28878 | else | ||
28879 | _pkg_short_errors_supported=no | ||
28880 | fi | ||
28881 | if test $_pkg_short_errors_supported = yes; then | ||
28882 | PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng12 >= 1.2.10" 2>&1` | ||
28883 | else | ||
28884 | PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng12 >= 1.2.10" 2>&1` | ||
28885 | fi | ||
28886 | # Put the nasty error message in config.log where it belongs | ||
28887 | echo "$PNG_PKG_ERRORS" >&5 | ||
28888 | |||
28889 | have_dep="no" | ||
28890 | elif test $pkg_failed = untried; then | ||
28891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
28892 | $as_echo "no" >&6; } | ||
28893 | have_dep="no" | ||
28894 | else | ||
28895 | PNG_CFLAGS=$pkg_cv_PNG_CFLAGS | ||
28896 | PNG_LIBS=$pkg_cv_PNG_LIBS | ||
28897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
28898 | $as_echo "yes" >&6; } | ||
28899 | have_dep="yes" requirement="libpng12" | ||
28900 | fi | ||
28901 | fi | ||
28902 | |||
28903 | evas_image_loader_png_cflags="${PNG_CFLAGS}" | ||
28904 | evas_image_loader_png_libs="${PNG_LIBS}" | ||
28905 | |||
28906 | |||
28907 | |||
28908 | |||
28909 | if test "x${want_loader}" = "xstatic" ; then | ||
28910 | requirement_evas="${requirement} ${requirement_evas}" | ||
28911 | fi | ||
28912 | |||
28913 | if test "x${have_dep}" = "xyes" ; then | ||
28914 | have_loader="yes" | ||
28915 | else | ||
28916 | have_loader="no" | ||
28917 | fi | ||
28918 | |||
28919 | |||
28920 | fi | ||
28921 | |||
28922 | if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
28923 | as_fn_error $? "PNG dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
28924 | fi | ||
28925 | |||
28926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG image loader will be built" >&5 | ||
28927 | $as_echo_n "checking whether PNG image loader will be built... " >&6; } | ||
28928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5 | ||
28929 | $as_echo "${have_loader}" >&6; } | ||
28930 | |||
28931 | if test "x${have_loader}" = "xyes" ; then | ||
28932 | if test "x${want_loader}" = "xstatic" ; then | ||
28933 | have_evas_image_loader_png="static" | ||
28934 | want_static_loader="yes" | ||
28935 | else | ||
28936 | have_evas_image_loader_png="yes" | ||
28937 | fi | ||
28938 | fi | ||
28939 | |||
28940 | if test "x${have_loader}" = "xyes" ; then | ||
28941 | |||
28942 | $as_echo "#define BUILD_LOADER_PNG 1" >>confdefs.h | ||
28943 | |||
28944 | fi | ||
28945 | |||
28946 | if test "x${have_loader}" = "xyes"; then | ||
28947 | BUILD_LOADER_PNG_TRUE= | ||
28948 | BUILD_LOADER_PNG_FALSE='#' | ||
28949 | else | ||
28950 | BUILD_LOADER_PNG_TRUE='#' | ||
28951 | BUILD_LOADER_PNG_FALSE= | ||
28952 | fi | ||
28953 | |||
28954 | |||
28955 | if test "x${want_static_loader}" = "xyes" ; then | ||
28956 | |||
28957 | $as_echo "#define EVAS_STATIC_BUILD_PNG 1" >>confdefs.h | ||
28958 | |||
28959 | have_static_module="yes" | ||
28960 | fi | ||
28961 | |||
28962 | if test "x${want_static_loader}" = "xyes"; then | ||
28963 | EVAS_STATIC_BUILD_PNG_TRUE= | ||
28964 | EVAS_STATIC_BUILD_PNG_FALSE='#' | ||
28965 | else | ||
28966 | EVAS_STATIC_BUILD_PNG_TRUE='#' | ||
28967 | EVAS_STATIC_BUILD_PNG_FALSE= | ||
28968 | fi | ||
28969 | |||
28970 | |||
28971 | |||
28972 | |||
28973 | |||
28974 | |||
28975 | |||
28976 | |||
28977 | |||
28978 | |||
28979 | |||
28980 | |||
28981 | want_loader="${want_evas_image_loader_svg}" | ||
28982 | want_static_loader="no" | ||
28983 | have_loader="no" | ||
28984 | have_evas_image_loader_svg="no" | ||
28985 | |||
28986 | # Check whether --enable-image-loader-svg was given. | ||
28987 | if test "${enable_image_loader_svg+set}" = set; then : | ||
28988 | enableval=$enable_image_loader_svg; | ||
28989 | if test "x${enableval}" = "xyes" ; then | ||
28990 | want_loader="yes" | ||
28991 | else | ||
28992 | if test "x${enableval}" = "xstatic" ; then | ||
28993 | want_loader="static" | ||
28994 | else | ||
28995 | want_loader="no" | ||
28996 | fi | ||
28997 | fi | ||
28998 | |||
28999 | |||
29000 | fi | ||
29001 | |||
29002 | |||
29003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SVG image loader" >&5 | ||
29004 | $as_echo_n "checking whether to enable SVG image loader... " >&6; } | ||
29005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
29006 | $as_echo "${want_loader}" >&6; } | ||
29007 | |||
29008 | if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then | ||
29009 | |||
29010 | |||
29011 | requirement="" | ||
29012 | have_dep="no" | ||
29013 | evas_image_loader_svg_cflags="" | ||
29014 | evas_image_loader_svg_libs="" | ||
29015 | |||
29016 | |||
29017 | pkg_failed=no | ||
29018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVG" >&5 | ||
29019 | $as_echo_n "checking for SVG... " >&6; } | ||
29020 | |||
29021 | if test -n "$SVG_CFLAGS"; then | ||
29022 | pkg_cv_SVG_CFLAGS="$SVG_CFLAGS" | ||
29023 | elif test -n "$PKG_CONFIG"; then | ||
29024 | if test -n "$PKG_CONFIG" && \ | ||
29025 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.14.0 | ||
29026 | cairo >= 1.0.0\""; } >&5 | ||
29027 | ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.14.0 | ||
29028 | cairo >= 1.0.0") 2>&5 | ||
29029 | ac_status=$? | ||
29030 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
29031 | test $ac_status = 0; }; then | ||
29032 | pkg_cv_SVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.14.0 | ||
29033 | cairo >= 1.0.0" 2>/dev/null` | ||
29034 | else | ||
29035 | pkg_failed=yes | ||
29036 | fi | ||
29037 | else | ||
29038 | pkg_failed=untried | ||
29039 | fi | ||
29040 | if test -n "$SVG_LIBS"; then | ||
29041 | pkg_cv_SVG_LIBS="$SVG_LIBS" | ||
29042 | elif test -n "$PKG_CONFIG"; then | ||
29043 | if test -n "$PKG_CONFIG" && \ | ||
29044 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.14.0 | ||
29045 | cairo >= 1.0.0\""; } >&5 | ||
29046 | ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.14.0 | ||
29047 | cairo >= 1.0.0") 2>&5 | ||
29048 | ac_status=$? | ||
29049 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
29050 | test $ac_status = 0; }; then | ||
29051 | pkg_cv_SVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.14.0 | ||
29052 | cairo >= 1.0.0" 2>/dev/null` | ||
29053 | else | ||
29054 | pkg_failed=yes | ||
29055 | fi | ||
29056 | else | ||
29057 | pkg_failed=untried | ||
29058 | fi | ||
29059 | |||
29060 | |||
29061 | |||
29062 | if test $pkg_failed = yes; then | ||
29063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
29064 | $as_echo "no" >&6; } | ||
29065 | |||
29066 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
29067 | _pkg_short_errors_supported=yes | ||
29068 | else | ||
29069 | _pkg_short_errors_supported=no | ||
29070 | fi | ||
29071 | if test $_pkg_short_errors_supported = yes; then | ||
29072 | SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.14.0 | ||
29073 | cairo >= 1.0.0" 2>&1` | ||
29074 | else | ||
29075 | SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.14.0 | ||
29076 | cairo >= 1.0.0" 2>&1` | ||
29077 | fi | ||
29078 | # Put the nasty error message in config.log where it belongs | ||
29079 | echo "$SVG_PKG_ERRORS" >&5 | ||
29080 | |||
29081 | have_svg="no" | ||
29082 | |||
29083 | elif test $pkg_failed = untried; then | ||
29084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
29085 | $as_echo "no" >&6; } | ||
29086 | have_svg="no" | ||
29087 | |||
29088 | else | ||
29089 | SVG_CFLAGS=$pkg_cv_SVG_CFLAGS | ||
29090 | SVG_LIBS=$pkg_cv_SVG_LIBS | ||
29091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
29092 | $as_echo "yes" >&6; } | ||
29093 | have_dep="yes" requirement="librsvg-2.0 cairo" | ||
29094 | fi | ||
29095 | |||
29096 | if test "x${have_dep}" = "xyes" ; then | ||
29097 | evas_image_loader_svg_cflags="${SVG_CFLAGS}" | ||
29098 | evas_image_loader_svg_libs="${SVG_LIBS}" | ||
29099 | fi | ||
29100 | |||
29101 | |||
29102 | |||
29103 | |||
29104 | if test "x${want_loader}" = "xstatic" ; then | ||
29105 | requirement_evas="${requirement} ${requirement_evas}" | ||
29106 | fi | ||
29107 | |||
29108 | if test "x${have_dep}" = "xyes" ; then | ||
29109 | have_loader="yes" | ||
29110 | else | ||
29111 | have_loader="no" | ||
29112 | fi | ||
29113 | |||
29114 | |||
29115 | fi | ||
29116 | |||
29117 | if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
29118 | as_fn_error $? "SVG dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
29119 | fi | ||
29120 | |||
29121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SVG image loader will be built" >&5 | ||
29122 | $as_echo_n "checking whether SVG image loader will be built... " >&6; } | ||
29123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5 | ||
29124 | $as_echo "${have_loader}" >&6; } | ||
29125 | |||
29126 | if test "x${have_loader}" = "xyes" ; then | ||
29127 | if test "x${want_loader}" = "xstatic" ; then | ||
29128 | have_evas_image_loader_svg="static" | ||
29129 | want_static_loader="yes" | ||
29130 | else | ||
29131 | have_evas_image_loader_svg="yes" | ||
29132 | fi | ||
29133 | fi | ||
29134 | |||
29135 | if test "x${have_loader}" = "xyes" ; then | ||
29136 | |||
29137 | $as_echo "#define BUILD_LOADER_SVG 1" >>confdefs.h | ||
29138 | |||
29139 | fi | ||
29140 | |||
29141 | if test "x${have_loader}" = "xyes"; then | ||
29142 | BUILD_LOADER_SVG_TRUE= | ||
29143 | BUILD_LOADER_SVG_FALSE='#' | ||
29144 | else | ||
29145 | BUILD_LOADER_SVG_TRUE='#' | ||
29146 | BUILD_LOADER_SVG_FALSE= | ||
29147 | fi | ||
29148 | |||
29149 | |||
29150 | if test "x${want_static_loader}" = "xyes" ; then | ||
29151 | |||
29152 | $as_echo "#define EVAS_STATIC_BUILD_SVG 1" >>confdefs.h | ||
29153 | |||
29154 | have_static_module="yes" | ||
29155 | fi | ||
29156 | |||
29157 | if test "x${want_static_loader}" = "xyes"; then | ||
29158 | EVAS_STATIC_BUILD_SVG_TRUE= | ||
29159 | EVAS_STATIC_BUILD_SVG_FALSE='#' | ||
29160 | else | ||
29161 | EVAS_STATIC_BUILD_SVG_TRUE='#' | ||
29162 | EVAS_STATIC_BUILD_SVG_FALSE= | ||
29163 | fi | ||
29164 | |||
29165 | |||
29166 | |||
29167 | |||
29168 | |||
29169 | |||
29170 | |||
29171 | |||
29172 | |||
29173 | |||
29174 | |||
29175 | |||
29176 | want_loader="${want_evas_image_loader_tiff}" | ||
29177 | want_static_loader="no" | ||
29178 | have_loader="no" | ||
29179 | have_evas_image_loader_tiff="no" | ||
29180 | |||
29181 | # Check whether --enable-image-loader-tiff was given. | ||
29182 | if test "${enable_image_loader_tiff+set}" = set; then : | ||
29183 | enableval=$enable_image_loader_tiff; | ||
29184 | if test "x${enableval}" = "xyes" ; then | ||
29185 | want_loader="yes" | ||
29186 | else | ||
29187 | if test "x${enableval}" = "xstatic" ; then | ||
29188 | want_loader="static" | ||
29189 | else | ||
29190 | want_loader="no" | ||
29191 | fi | ||
29192 | fi | ||
29193 | |||
29194 | |||
29195 | fi | ||
29196 | |||
29197 | |||
29198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Tiff image loader" >&5 | ||
29199 | $as_echo_n "checking whether to enable Tiff image loader... " >&6; } | ||
29200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
29201 | $as_echo "${want_loader}" >&6; } | ||
29202 | |||
29203 | if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then | ||
29204 | |||
29205 | |||
29206 | have_dep="no" | ||
29207 | evas_image_loader_tiff_cflags="" | ||
29208 | evas_image_loader_tiff_libs="" | ||
29209 | |||
29210 | ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" | ||
29211 | if test "x$ac_cv_header_tiffio_h" = x""yes; then : | ||
29212 | have_dep="yes" | ||
29213 | fi | ||
29214 | |||
29215 | |||
29216 | |||
29217 | if test "x${have_dep}" = "xyes" ; then | ||
29218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadScanline in -ltiff" >&5 | ||
29219 | $as_echo_n "checking for TIFFReadScanline in -ltiff... " >&6; } | ||
29220 | if test "${ac_cv_lib_tiff_TIFFReadScanline+set}" = set; then : | ||
29221 | $as_echo_n "(cached) " >&6 | ||
29222 | else | ||
29223 | ac_check_lib_save_LIBS=$LIBS | ||
29224 | LIBS="-ltiff $LIBS" | ||
29225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
29226 | /* end confdefs.h. */ | ||
29227 | |||
29228 | /* Override any GCC internal prototype to avoid an error. | ||
29229 | Use char because int might match the return type of a GCC | ||
29230 | builtin and then its argument prototype would still apply. */ | ||
29231 | #ifdef __cplusplus | ||
29232 | extern "C" | ||
29233 | #endif | ||
29234 | char TIFFReadScanline (); | ||
29235 | int | ||
29236 | main () | ||
29237 | { | ||
29238 | return TIFFReadScanline (); | ||
29239 | ; | ||
29240 | return 0; | ||
29241 | } | ||
29242 | _ACEOF | ||
29243 | if ac_fn_c_try_link "$LINENO"; then : | ||
29244 | ac_cv_lib_tiff_TIFFReadScanline=yes | ||
29245 | else | ||
29246 | ac_cv_lib_tiff_TIFFReadScanline=no | ||
29247 | fi | ||
29248 | rm -f core conftest.err conftest.$ac_objext \ | ||
29249 | conftest$ac_exeext conftest.$ac_ext | ||
29250 | LIBS=$ac_check_lib_save_LIBS | ||
29251 | fi | ||
29252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadScanline" >&5 | ||
29253 | $as_echo "$ac_cv_lib_tiff_TIFFReadScanline" >&6; } | ||
29254 | if test "x$ac_cv_lib_tiff_TIFFReadScanline" = x""yes; then : | ||
29255 | |||
29256 | evas_image_loader_tiff_libs="-ltiff" | ||
29257 | |||
29258 | else | ||
29259 | have_dep="no" | ||
29260 | |||
29261 | fi | ||
29262 | |||
29263 | |||
29264 | if test "x${have_dep}" = "xno" ; then | ||
29265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadScanline in -ltiff" >&5 | ||
29266 | $as_echo_n "checking for TIFFReadScanline in -ltiff... " >&6; } | ||
29267 | if test "${ac_cv_lib_tiff_TIFFReadScanline+set}" = set; then : | ||
29268 | $as_echo_n "(cached) " >&6 | ||
29269 | else | ||
29270 | ac_check_lib_save_LIBS=$LIBS | ||
29271 | LIBS="-ltiff $LIBS" | ||
29272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
29273 | /* end confdefs.h. */ | ||
29274 | |||
29275 | /* Override any GCC internal prototype to avoid an error. | ||
29276 | Use char because int might match the return type of a GCC | ||
29277 | builtin and then its argument prototype would still apply. */ | ||
29278 | #ifdef __cplusplus | ||
29279 | extern "C" | ||
29280 | #endif | ||
29281 | char TIFFReadScanline (); | ||
29282 | int | ||
29283 | main () | ||
29284 | { | ||
29285 | return TIFFReadScanline (); | ||
29286 | ; | ||
29287 | return 0; | ||
29288 | } | ||
29289 | _ACEOF | ||
29290 | if ac_fn_c_try_link "$LINENO"; then : | ||
29291 | ac_cv_lib_tiff_TIFFReadScanline=yes | ||
29292 | else | ||
29293 | ac_cv_lib_tiff_TIFFReadScanline=no | ||
29294 | fi | ||
29295 | rm -f core conftest.err conftest.$ac_objext \ | ||
29296 | conftest$ac_exeext conftest.$ac_ext | ||
29297 | LIBS=$ac_check_lib_save_LIBS | ||
29298 | fi | ||
29299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadScanline" >&5 | ||
29300 | $as_echo "$ac_cv_lib_tiff_TIFFReadScanline" >&6; } | ||
29301 | if test "x$ac_cv_lib_tiff_TIFFReadScanline" = x""yes; then : | ||
29302 | |||
29303 | have_dep="yes" | ||
29304 | evas_image_loader_tiff_libs="-ltiff -ljpeg -lz -lm" | ||
29305 | |||
29306 | |||
29307 | fi | ||
29308 | |||
29309 | fi | ||
29310 | |||
29311 | if test "x${have_dep}" = "xno" ; then | ||
29312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadScanline in -ltiff34" >&5 | ||
29313 | $as_echo_n "checking for TIFFReadScanline in -ltiff34... " >&6; } | ||
29314 | if test "${ac_cv_lib_tiff34_TIFFReadScanline+set}" = set; then : | ||
29315 | $as_echo_n "(cached) " >&6 | ||
29316 | else | ||
29317 | ac_check_lib_save_LIBS=$LIBS | ||
29318 | LIBS="-ltiff34 $LIBS" | ||
29319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
29320 | /* end confdefs.h. */ | ||
29321 | |||
29322 | /* Override any GCC internal prototype to avoid an error. | ||
29323 | Use char because int might match the return type of a GCC | ||
29324 | builtin and then its argument prototype would still apply. */ | ||
29325 | #ifdef __cplusplus | ||
29326 | extern "C" | ||
29327 | #endif | ||
29328 | char TIFFReadScanline (); | ||
29329 | int | ||
29330 | main () | ||
29331 | { | ||
29332 | return TIFFReadScanline (); | ||
29333 | ; | ||
29334 | return 0; | ||
29335 | } | ||
29336 | _ACEOF | ||
29337 | if ac_fn_c_try_link "$LINENO"; then : | ||
29338 | ac_cv_lib_tiff34_TIFFReadScanline=yes | ||
29339 | else | ||
29340 | ac_cv_lib_tiff34_TIFFReadScanline=no | ||
29341 | fi | ||
29342 | rm -f core conftest.err conftest.$ac_objext \ | ||
29343 | conftest$ac_exeext conftest.$ac_ext | ||
29344 | LIBS=$ac_check_lib_save_LIBS | ||
29345 | fi | ||
29346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff34_TIFFReadScanline" >&5 | ||
29347 | $as_echo "$ac_cv_lib_tiff34_TIFFReadScanline" >&6; } | ||
29348 | if test "x$ac_cv_lib_tiff34_TIFFReadScanline" = x""yes; then : | ||
29349 | |||
29350 | have_dep="yes" | ||
29351 | evas_image_loader_tiff_libs="-ltiff34 -ljpeg -lz -lm" | ||
29352 | |||
29353 | |||
29354 | fi | ||
29355 | |||
29356 | fi | ||
29357 | fi | ||
29358 | |||
29359 | |||
29360 | |||
29361 | |||
29362 | if test "x${have_dep}" = "xyes" ; then | ||
29363 | have_loader="yes" | ||
29364 | else | ||
29365 | have_loader="no" | ||
29366 | fi | ||
29367 | |||
29368 | |||
29369 | fi | ||
29370 | |||
29371 | if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
29372 | as_fn_error $? "Tiff dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
29373 | fi | ||
29374 | |||
29375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Tiff image loader will be built" >&5 | ||
29376 | $as_echo_n "checking whether Tiff image loader will be built... " >&6; } | ||
29377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5 | ||
29378 | $as_echo "${have_loader}" >&6; } | ||
29379 | |||
29380 | if test "x${have_loader}" = "xyes" ; then | ||
29381 | if test "x${want_loader}" = "xstatic" ; then | ||
29382 | have_evas_image_loader_tiff="static" | ||
29383 | want_static_loader="yes" | ||
29384 | else | ||
29385 | have_evas_image_loader_tiff="yes" | ||
29386 | fi | ||
29387 | fi | ||
29388 | |||
29389 | if test "x${have_loader}" = "xyes" ; then | ||
29390 | |||
29391 | $as_echo "#define BUILD_LOADER_TIFF 1" >>confdefs.h | ||
29392 | |||
29393 | fi | ||
29394 | |||
29395 | if test "x${have_loader}" = "xyes"; then | ||
29396 | BUILD_LOADER_TIFF_TRUE= | ||
29397 | BUILD_LOADER_TIFF_FALSE='#' | ||
29398 | else | ||
29399 | BUILD_LOADER_TIFF_TRUE='#' | ||
29400 | BUILD_LOADER_TIFF_FALSE= | ||
29401 | fi | ||
29402 | |||
29403 | |||
29404 | if test "x${want_static_loader}" = "xyes" ; then | ||
29405 | |||
29406 | $as_echo "#define EVAS_STATIC_BUILD_TIFF 1" >>confdefs.h | ||
29407 | |||
29408 | have_static_module="yes" | ||
29409 | fi | ||
29410 | |||
29411 | if test "x${want_static_loader}" = "xyes"; then | ||
29412 | EVAS_STATIC_BUILD_TIFF_TRUE= | ||
29413 | EVAS_STATIC_BUILD_TIFF_FALSE='#' | ||
29414 | else | ||
29415 | EVAS_STATIC_BUILD_TIFF_TRUE='#' | ||
29416 | EVAS_STATIC_BUILD_TIFF_FALSE= | ||
29417 | fi | ||
29418 | |||
29419 | |||
29420 | |||
29421 | |||
29422 | |||
29423 | |||
29424 | |||
29425 | |||
29426 | |||
29427 | |||
29428 | |||
29429 | |||
29430 | want_loader="${want_evas_image_loader_xpm}" | ||
29431 | want_static_loader="no" | ||
29432 | have_loader="no" | ||
29433 | have_evas_image_loader_xpm="no" | ||
29434 | |||
29435 | # Check whether --enable-image-loader-xpm was given. | ||
29436 | if test "${enable_image_loader_xpm+set}" = set; then : | ||
29437 | enableval=$enable_image_loader_xpm; | ||
29438 | if test "x${enableval}" = "xyes" ; then | ||
29439 | want_loader="yes" | ||
29440 | else | ||
29441 | if test "x${enableval}" = "xstatic" ; then | ||
29442 | want_loader="static" | ||
29443 | else | ||
29444 | want_loader="no" | ||
29445 | fi | ||
29446 | fi | ||
29447 | |||
29448 | |||
29449 | fi | ||
29450 | |||
29451 | |||
29452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable XPM image loader" >&5 | ||
29453 | $as_echo_n "checking whether to enable XPM image loader... " >&6; } | ||
29454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
29455 | $as_echo "${want_loader}" >&6; } | ||
29456 | |||
29457 | if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then | ||
29458 | |||
29459 | |||
29460 | have_dep="yes" | ||
29461 | evas_image_loader_xpm_cflags="" | ||
29462 | evas_image_loader_xpm_libs="" | ||
29463 | |||
29464 | |||
29465 | |||
29466 | |||
29467 | if test "x${have_dep}" = "xyes" ; then | ||
29468 | have_loader="yes" | ||
29469 | else | ||
29470 | have_loader="no" | ||
29471 | fi | ||
29472 | |||
29473 | |||
29474 | fi | ||
29475 | |||
29476 | if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
29477 | as_fn_error $? "XPM dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
29478 | fi | ||
29479 | |||
29480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XPM image loader will be built" >&5 | ||
29481 | $as_echo_n "checking whether XPM image loader will be built... " >&6; } | ||
29482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5 | ||
29483 | $as_echo "${have_loader}" >&6; } | ||
29484 | |||
29485 | if test "x${have_loader}" = "xyes" ; then | ||
29486 | if test "x${want_loader}" = "xstatic" ; then | ||
29487 | have_evas_image_loader_xpm="static" | ||
29488 | want_static_loader="yes" | ||
29489 | else | ||
29490 | have_evas_image_loader_xpm="yes" | ||
29491 | fi | ||
29492 | fi | ||
29493 | |||
29494 | if test "x${have_loader}" = "xyes" ; then | ||
29495 | |||
29496 | $as_echo "#define BUILD_LOADER_XPM 1" >>confdefs.h | ||
29497 | |||
29498 | fi | ||
29499 | |||
29500 | if test "x${have_loader}" = "xyes"; then | ||
29501 | BUILD_LOADER_XPM_TRUE= | ||
29502 | BUILD_LOADER_XPM_FALSE='#' | ||
29503 | else | ||
29504 | BUILD_LOADER_XPM_TRUE='#' | ||
29505 | BUILD_LOADER_XPM_FALSE= | ||
29506 | fi | ||
29507 | |||
29508 | |||
29509 | if test "x${want_static_loader}" = "xyes" ; then | ||
29510 | |||
29511 | $as_echo "#define EVAS_STATIC_BUILD_XPM 1" >>confdefs.h | ||
29512 | |||
29513 | have_static_module="yes" | ||
29514 | fi | ||
29515 | |||
29516 | if test "x${want_static_loader}" = "xyes"; then | ||
29517 | EVAS_STATIC_BUILD_XPM_TRUE= | ||
29518 | EVAS_STATIC_BUILD_XPM_FALSE='#' | ||
29519 | else | ||
29520 | EVAS_STATIC_BUILD_XPM_TRUE='#' | ||
29521 | EVAS_STATIC_BUILD_XPM_FALSE= | ||
29522 | fi | ||
29523 | |||
29524 | |||
29525 | |||
29526 | |||
29527 | |||
29528 | |||
29529 | |||
29530 | |||
29531 | |||
29532 | |||
29533 | |||
29534 | |||
29535 | want_loader="${want_evas_image_loader_bmp}" | ||
29536 | want_static_loader="no" | ||
29537 | have_loader="no" | ||
29538 | have_evas_image_loader_bmp="no" | ||
29539 | |||
29540 | # Check whether --enable-image-loader-bmp was given. | ||
29541 | if test "${enable_image_loader_bmp+set}" = set; then : | ||
29542 | enableval=$enable_image_loader_bmp; | ||
29543 | if test "x${enableval}" = "xyes" ; then | ||
29544 | want_loader="yes" | ||
29545 | else | ||
29546 | if test "x${enableval}" = "xstatic" ; then | ||
29547 | want_loader="static" | ||
29548 | else | ||
29549 | want_loader="no" | ||
29550 | fi | ||
29551 | fi | ||
29552 | |||
29553 | |||
29554 | fi | ||
29555 | |||
29556 | |||
29557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable BMP image loader" >&5 | ||
29558 | $as_echo_n "checking whether to enable BMP image loader... " >&6; } | ||
29559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
29560 | $as_echo "${want_loader}" >&6; } | ||
29561 | |||
29562 | if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then | ||
29563 | |||
29564 | |||
29565 | have_dep="yes" | ||
29566 | evas_image_loader_bmp_cflags="" | ||
29567 | evas_image_loader_bmp_libs="" | ||
29568 | |||
29569 | |||
29570 | |||
29571 | |||
29572 | if test "x${have_dep}" = "xyes" ; then | ||
29573 | have_loader="yes" | ||
29574 | else | ||
29575 | have_loader="no" | ||
29576 | fi | ||
29577 | |||
29578 | |||
29579 | fi | ||
29580 | |||
29581 | if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
29582 | as_fn_error $? "BMP dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
29583 | fi | ||
29584 | |||
29585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BMP image loader will be built" >&5 | ||
29586 | $as_echo_n "checking whether BMP image loader will be built... " >&6; } | ||
29587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5 | ||
29588 | $as_echo "${have_loader}" >&6; } | ||
29589 | |||
29590 | if test "x${have_loader}" = "xyes" ; then | ||
29591 | if test "x${want_loader}" = "xstatic" ; then | ||
29592 | have_evas_image_loader_bmp="static" | ||
29593 | want_static_loader="yes" | ||
29594 | else | ||
29595 | have_evas_image_loader_bmp="yes" | ||
29596 | fi | ||
29597 | fi | ||
29598 | |||
29599 | if test "x${have_loader}" = "xyes" ; then | ||
29600 | |||
29601 | $as_echo "#define BUILD_LOADER_BMP 1" >>confdefs.h | ||
29602 | |||
29603 | fi | ||
29604 | |||
29605 | if test "x${have_loader}" = "xyes"; then | ||
29606 | BUILD_LOADER_BMP_TRUE= | ||
29607 | BUILD_LOADER_BMP_FALSE='#' | ||
29608 | else | ||
29609 | BUILD_LOADER_BMP_TRUE='#' | ||
29610 | BUILD_LOADER_BMP_FALSE= | ||
29611 | fi | ||
29612 | |||
29613 | |||
29614 | if test "x${want_static_loader}" = "xyes" ; then | ||
29615 | |||
29616 | $as_echo "#define EVAS_STATIC_BUILD_BMP 1" >>confdefs.h | ||
29617 | |||
29618 | have_static_module="yes" | ||
29619 | fi | ||
29620 | |||
29621 | if test "x${want_static_loader}" = "xyes"; then | ||
29622 | EVAS_STATIC_BUILD_BMP_TRUE= | ||
29623 | EVAS_STATIC_BUILD_BMP_FALSE='#' | ||
29624 | else | ||
29625 | EVAS_STATIC_BUILD_BMP_TRUE='#' | ||
29626 | EVAS_STATIC_BUILD_BMP_FALSE= | ||
29627 | fi | ||
29628 | |||
29629 | |||
29630 | |||
29631 | |||
29632 | |||
29633 | |||
29634 | |||
29635 | |||
29636 | |||
29637 | |||
29638 | |||
29639 | |||
29640 | want_loader="${want_evas_image_loader_tga}" | ||
29641 | want_static_loader="no" | ||
29642 | have_loader="no" | ||
29643 | have_evas_image_loader_tga="no" | ||
29644 | |||
29645 | # Check whether --enable-image-loader-tga was given. | ||
29646 | if test "${enable_image_loader_tga+set}" = set; then : | ||
29647 | enableval=$enable_image_loader_tga; | ||
29648 | if test "x${enableval}" = "xyes" ; then | ||
29649 | want_loader="yes" | ||
29650 | else | ||
29651 | if test "x${enableval}" = "xstatic" ; then | ||
29652 | want_loader="static" | ||
29653 | else | ||
29654 | want_loader="no" | ||
29655 | fi | ||
29656 | fi | ||
29657 | |||
29658 | |||
29659 | fi | ||
29660 | |||
29661 | |||
29662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TGA image loader" >&5 | ||
29663 | $as_echo_n "checking whether to enable TGA image loader... " >&6; } | ||
29664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
29665 | $as_echo "${want_loader}" >&6; } | ||
29666 | |||
29667 | if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then | ||
29668 | |||
29669 | |||
29670 | have_dep="yes" | ||
29671 | evas_image_loader_tga_cflags="" | ||
29672 | evas_image_loader_tga_libs="" | ||
29673 | |||
29674 | |||
29675 | |||
29676 | |||
29677 | if test "x${have_dep}" = "xyes" ; then | ||
29678 | have_loader="yes" | ||
29679 | else | ||
29680 | have_loader="no" | ||
29681 | fi | ||
29682 | |||
29683 | |||
29684 | fi | ||
29685 | |||
29686 | if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
29687 | as_fn_error $? "TGA dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
29688 | fi | ||
29689 | |||
29690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TGA image loader will be built" >&5 | ||
29691 | $as_echo_n "checking whether TGA image loader will be built... " >&6; } | ||
29692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5 | ||
29693 | $as_echo "${have_loader}" >&6; } | ||
29694 | |||
29695 | if test "x${have_loader}" = "xyes" ; then | ||
29696 | if test "x${want_loader}" = "xstatic" ; then | ||
29697 | have_evas_image_loader_tga="static" | ||
29698 | want_static_loader="yes" | ||
29699 | else | ||
29700 | have_evas_image_loader_tga="yes" | ||
29701 | fi | ||
29702 | fi | ||
29703 | |||
29704 | if test "x${have_loader}" = "xyes" ; then | ||
29705 | |||
29706 | $as_echo "#define BUILD_LOADER_TGA 1" >>confdefs.h | ||
29707 | |||
29708 | fi | ||
29709 | |||
29710 | if test "x${have_loader}" = "xyes"; then | ||
29711 | BUILD_LOADER_TGA_TRUE= | ||
29712 | BUILD_LOADER_TGA_FALSE='#' | ||
29713 | else | ||
29714 | BUILD_LOADER_TGA_TRUE='#' | ||
29715 | BUILD_LOADER_TGA_FALSE= | ||
29716 | fi | ||
29717 | |||
29718 | |||
29719 | if test "x${want_static_loader}" = "xyes" ; then | ||
29720 | |||
29721 | $as_echo "#define EVAS_STATIC_BUILD_TGA 1" >>confdefs.h | ||
29722 | |||
29723 | have_static_module="yes" | ||
29724 | fi | ||
29725 | |||
29726 | if test "x${want_static_loader}" = "xyes"; then | ||
29727 | EVAS_STATIC_BUILD_TGA_TRUE= | ||
29728 | EVAS_STATIC_BUILD_TGA_FALSE='#' | ||
29729 | else | ||
29730 | EVAS_STATIC_BUILD_TGA_TRUE='#' | ||
29731 | EVAS_STATIC_BUILD_TGA_FALSE= | ||
29732 | fi | ||
29733 | |||
29734 | |||
29735 | |||
29736 | |||
29737 | |||
29738 | |||
29739 | |||
29740 | |||
29741 | |||
29742 | |||
29743 | |||
29744 | |||
29745 | want_loader="${want_evas_image_loader_wbmp}" | ||
29746 | want_static_loader="no" | ||
29747 | have_loader="no" | ||
29748 | have_evas_image_loader_wbmp="no" | ||
29749 | |||
29750 | # Check whether --enable-image-loader-wbmp was given. | ||
29751 | if test "${enable_image_loader_wbmp+set}" = set; then : | ||
29752 | enableval=$enable_image_loader_wbmp; | ||
29753 | if test "x${enableval}" = "xyes" ; then | ||
29754 | want_loader="yes" | ||
29755 | else | ||
29756 | if test "x${enableval}" = "xstatic" ; then | ||
29757 | want_loader="static" | ||
29758 | else | ||
29759 | want_loader="no" | ||
29760 | fi | ||
29761 | fi | ||
29762 | |||
29763 | |||
29764 | fi | ||
29765 | |||
29766 | |||
29767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable WBMP image loader" >&5 | ||
29768 | $as_echo_n "checking whether to enable WBMP image loader... " >&6; } | ||
29769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
29770 | $as_echo "${want_loader}" >&6; } | ||
29771 | |||
29772 | if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then | ||
29773 | |||
29774 | |||
29775 | have_dep="yes" | ||
29776 | evas_image_loader_wbmp_cflags="" | ||
29777 | evas_image_loader_wbmp_libs="" | ||
29778 | |||
29779 | |||
29780 | |||
29781 | |||
29782 | if test "x${have_dep}" = "xyes" ; then | ||
29783 | have_loader="yes" | ||
29784 | else | ||
29785 | have_loader="no" | ||
29786 | fi | ||
29787 | |||
29788 | |||
29789 | fi | ||
29790 | |||
29791 | if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
29792 | as_fn_error $? "WBMP dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
29793 | fi | ||
29794 | |||
29795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WBMP image loader will be built" >&5 | ||
29796 | $as_echo_n "checking whether WBMP image loader will be built... " >&6; } | ||
29797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5 | ||
29798 | $as_echo "${have_loader}" >&6; } | ||
29799 | |||
29800 | if test "x${have_loader}" = "xyes" ; then | ||
29801 | if test "x${want_loader}" = "xstatic" ; then | ||
29802 | have_evas_image_loader_wbmp="static" | ||
29803 | want_static_loader="yes" | ||
29804 | else | ||
29805 | have_evas_image_loader_wbmp="yes" | ||
29806 | fi | ||
29807 | fi | ||
29808 | |||
29809 | if test "x${have_loader}" = "xyes" ; then | ||
29810 | |||
29811 | $as_echo "#define BUILD_LOADER_WBMP 1" >>confdefs.h | ||
29812 | |||
29813 | fi | ||
29814 | |||
29815 | if test "x${have_loader}" = "xyes"; then | ||
29816 | BUILD_LOADER_WBMP_TRUE= | ||
29817 | BUILD_LOADER_WBMP_FALSE='#' | ||
29818 | else | ||
29819 | BUILD_LOADER_WBMP_TRUE='#' | ||
29820 | BUILD_LOADER_WBMP_FALSE= | ||
29821 | fi | ||
29822 | |||
29823 | |||
29824 | if test "x${want_static_loader}" = "xyes" ; then | ||
29825 | |||
29826 | $as_echo "#define EVAS_STATIC_BUILD_WBMP 1" >>confdefs.h | ||
29827 | |||
29828 | have_static_module="yes" | ||
29829 | fi | ||
29830 | |||
29831 | if test "x${want_static_loader}" = "xyes"; then | ||
29832 | EVAS_STATIC_BUILD_WBMP_TRUE= | ||
29833 | EVAS_STATIC_BUILD_WBMP_FALSE='#' | ||
29834 | else | ||
29835 | EVAS_STATIC_BUILD_WBMP_TRUE='#' | ||
29836 | EVAS_STATIC_BUILD_WBMP_FALSE= | ||
29837 | fi | ||
29838 | |||
29839 | |||
29840 | |||
29841 | |||
29842 | |||
29843 | |||
29844 | |||
29845 | |||
29846 | |||
29847 | |||
29848 | |||
29849 | |||
29850 | want_loader="${want_evas_image_loader_ico}" | ||
29851 | want_static_loader="no" | ||
29852 | have_loader="no" | ||
29853 | have_evas_image_loader_ico="no" | ||
29854 | |||
29855 | # Check whether --enable-image-loader-ico was given. | ||
29856 | if test "${enable_image_loader_ico+set}" = set; then : | ||
29857 | enableval=$enable_image_loader_ico; | ||
29858 | if test "x${enableval}" = "xyes" ; then | ||
29859 | want_loader="yes" | ||
29860 | else | ||
29861 | if test "x${enableval}" = "xstatic" ; then | ||
29862 | want_loader="static" | ||
29863 | else | ||
29864 | want_loader="no" | ||
29865 | fi | ||
29866 | fi | ||
29867 | |||
29868 | |||
29869 | fi | ||
29870 | |||
29871 | |||
29872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ICO image loader" >&5 | ||
29873 | $as_echo_n "checking whether to enable ICO image loader... " >&6; } | ||
29874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
29875 | $as_echo "${want_loader}" >&6; } | ||
29876 | |||
29877 | if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then | ||
29878 | |||
29879 | |||
29880 | have_dep="yes" | ||
29881 | evas_image_loader_ico_cflags="" | ||
29882 | evas_image_loader_ico_libs="" | ||
29883 | |||
29884 | |||
29885 | |||
29886 | |||
29887 | if test "x${have_dep}" = "xyes" ; then | ||
29888 | have_loader="yes" | ||
29889 | else | ||
29890 | have_loader="no" | ||
29891 | fi | ||
29892 | |||
29893 | |||
29894 | fi | ||
29895 | |||
29896 | if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
29897 | as_fn_error $? "ICO dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
29898 | fi | ||
29899 | |||
29900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ICO image loader will be built" >&5 | ||
29901 | $as_echo_n "checking whether ICO image loader will be built... " >&6; } | ||
29902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5 | ||
29903 | $as_echo "${have_loader}" >&6; } | ||
29904 | |||
29905 | if test "x${have_loader}" = "xyes" ; then | ||
29906 | if test "x${want_loader}" = "xstatic" ; then | ||
29907 | have_evas_image_loader_ico="static" | ||
29908 | want_static_loader="yes" | ||
29909 | else | ||
29910 | have_evas_image_loader_ico="yes" | ||
29911 | fi | ||
29912 | fi | ||
29913 | |||
29914 | if test "x${have_loader}" = "xyes" ; then | ||
29915 | |||
29916 | $as_echo "#define BUILD_LOADER_ICO 1" >>confdefs.h | ||
29917 | |||
29918 | fi | ||
29919 | |||
29920 | if test "x${have_loader}" = "xyes"; then | ||
29921 | BUILD_LOADER_ICO_TRUE= | ||
29922 | BUILD_LOADER_ICO_FALSE='#' | ||
29923 | else | ||
29924 | BUILD_LOADER_ICO_TRUE='#' | ||
29925 | BUILD_LOADER_ICO_FALSE= | ||
29926 | fi | ||
29927 | |||
29928 | |||
29929 | if test "x${want_static_loader}" = "xyes" ; then | ||
29930 | |||
29931 | $as_echo "#define EVAS_STATIC_BUILD_ICO 1" >>confdefs.h | ||
29932 | |||
29933 | have_static_module="yes" | ||
29934 | fi | ||
29935 | |||
29936 | if test "x${want_static_loader}" = "xyes"; then | ||
29937 | EVAS_STATIC_BUILD_ICO_TRUE= | ||
29938 | EVAS_STATIC_BUILD_ICO_FALSE='#' | ||
29939 | else | ||
29940 | EVAS_STATIC_BUILD_ICO_TRUE='#' | ||
29941 | EVAS_STATIC_BUILD_ICO_FALSE= | ||
29942 | fi | ||
29943 | |||
29944 | |||
29945 | |||
29946 | |||
29947 | |||
29948 | |||
29949 | |||
29950 | |||
29951 | |||
29952 | |||
29953 | |||
29954 | |||
29955 | want_loader="${want_evas_image_loader_psd}" | ||
29956 | want_static_loader="no" | ||
29957 | have_loader="no" | ||
29958 | have_evas_image_loader_psd="no" | ||
29959 | |||
29960 | # Check whether --enable-image-loader-psd was given. | ||
29961 | if test "${enable_image_loader_psd+set}" = set; then : | ||
29962 | enableval=$enable_image_loader_psd; | ||
29963 | if test "x${enableval}" = "xyes" ; then | ||
29964 | want_loader="yes" | ||
29965 | else | ||
29966 | if test "x${enableval}" = "xstatic" ; then | ||
29967 | want_loader="static" | ||
29968 | else | ||
29969 | want_loader="no" | ||
29970 | fi | ||
29971 | fi | ||
29972 | |||
29973 | |||
29974 | fi | ||
29975 | |||
29976 | |||
29977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PSD image loader" >&5 | ||
29978 | $as_echo_n "checking whether to enable PSD image loader... " >&6; } | ||
29979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
29980 | $as_echo "${want_loader}" >&6; } | ||
29981 | |||
29982 | if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then | ||
29983 | |||
29984 | |||
29985 | have_dep="yes" | ||
29986 | evas_image_loader_psd_cflags="" | ||
29987 | evas_image_loader_psd_libs="" | ||
29988 | |||
29989 | |||
29990 | |||
29991 | |||
29992 | if test "x${have_dep}" = "xyes" ; then | ||
29993 | have_loader="yes" | ||
29994 | else | ||
29995 | have_loader="no" | ||
29996 | fi | ||
29997 | |||
29998 | |||
29999 | fi | ||
30000 | |||
30001 | if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
30002 | as_fn_error $? "PSD dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
30003 | fi | ||
30004 | |||
30005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PSD image loader will be built" >&5 | ||
30006 | $as_echo_n "checking whether PSD image loader will be built... " >&6; } | ||
30007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5 | ||
30008 | $as_echo "${have_loader}" >&6; } | ||
30009 | |||
30010 | if test "x${have_loader}" = "xyes" ; then | ||
30011 | if test "x${want_loader}" = "xstatic" ; then | ||
30012 | have_evas_image_loader_psd="static" | ||
30013 | want_static_loader="yes" | ||
30014 | else | ||
30015 | have_evas_image_loader_psd="yes" | ||
30016 | fi | ||
30017 | fi | ||
30018 | |||
30019 | if test "x${have_loader}" = "xyes" ; then | ||
30020 | |||
30021 | $as_echo "#define BUILD_LOADER_PSD 1" >>confdefs.h | ||
30022 | |||
30023 | fi | ||
30024 | |||
30025 | if test "x${have_loader}" = "xyes"; then | ||
30026 | BUILD_LOADER_PSD_TRUE= | ||
30027 | BUILD_LOADER_PSD_FALSE='#' | ||
30028 | else | ||
30029 | BUILD_LOADER_PSD_TRUE='#' | ||
30030 | BUILD_LOADER_PSD_FALSE= | ||
30031 | fi | ||
30032 | |||
30033 | |||
30034 | if test "x${want_static_loader}" = "xyes" ; then | ||
30035 | |||
30036 | $as_echo "#define EVAS_STATIC_BUILD_PSD 1" >>confdefs.h | ||
30037 | |||
30038 | have_static_module="yes" | ||
30039 | fi | ||
30040 | |||
30041 | if test "x${want_static_loader}" = "xyes"; then | ||
30042 | EVAS_STATIC_BUILD_PSD_TRUE= | ||
30043 | EVAS_STATIC_BUILD_PSD_FALSE='#' | ||
30044 | else | ||
30045 | EVAS_STATIC_BUILD_PSD_TRUE='#' | ||
30046 | EVAS_STATIC_BUILD_PSD_FALSE= | ||
30047 | fi | ||
30048 | |||
30049 | |||
30050 | |||
30051 | |||
30052 | |||
30053 | |||
30054 | |||
30055 | |||
30056 | |||
30057 | |||
30058 | |||
30059 | |||
30060 | want_loader="${want_evas_image_loader_generic}" | ||
30061 | want_static_loader="no" | ||
30062 | have_loader="no" | ||
30063 | have_evas_image_loader_generic="no" | ||
30064 | |||
30065 | # Check whether --enable-image-loader-generic was given. | ||
30066 | if test "${enable_image_loader_generic+set}" = set; then : | ||
30067 | enableval=$enable_image_loader_generic; | ||
30068 | if test "x${enableval}" = "xyes" ; then | ||
30069 | want_loader="yes" | ||
30070 | else | ||
30071 | if test "x${enableval}" = "xstatic" ; then | ||
30072 | want_loader="static" | ||
30073 | else | ||
30074 | want_loader="no" | ||
30075 | fi | ||
30076 | fi | ||
30077 | |||
30078 | |||
30079 | fi | ||
30080 | |||
30081 | |||
30082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable GENERIC image loader" >&5 | ||
30083 | $as_echo_n "checking whether to enable GENERIC image loader... " >&6; } | ||
30084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5 | ||
30085 | $as_echo "${want_loader}" >&6; } | ||
30086 | |||
30087 | if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then | ||
30088 | |||
30089 | |||
30090 | have_dep="yes" | ||
30091 | evas_image_loader_generic_cflags="" | ||
30092 | evas_image_loader_generic_libs="" | ||
30093 | |||
30094 | |||
30095 | |||
30096 | |||
30097 | if test "x${have_dep}" = "xyes" ; then | ||
30098 | have_loader="yes" | ||
30099 | else | ||
30100 | have_loader="no" | ||
30101 | fi | ||
30102 | |||
30103 | |||
30104 | fi | ||
30105 | |||
30106 | if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
30107 | as_fn_error $? "GENERIC dependencies not found (strict dependencies checking)" "$LINENO" 5 | ||
30108 | fi | ||
30109 | |||
30110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GENERIC image loader will be built" >&5 | ||
30111 | $as_echo_n "checking whether GENERIC image loader will be built... " >&6; } | ||
30112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5 | ||
30113 | $as_echo "${have_loader}" >&6; } | ||
30114 | |||
30115 | if test "x${have_loader}" = "xyes" ; then | ||
30116 | if test "x${want_loader}" = "xstatic" ; then | ||
30117 | have_evas_image_loader_generic="static" | ||
30118 | want_static_loader="yes" | ||
30119 | else | ||
30120 | have_evas_image_loader_generic="yes" | ||
30121 | fi | ||
30122 | fi | ||
30123 | |||
30124 | if test "x${have_loader}" = "xyes" ; then | ||
30125 | |||
30126 | $as_echo "#define BUILD_LOADER_GENERIC 1" >>confdefs.h | ||
30127 | |||
30128 | fi | ||
30129 | |||
30130 | if test "x${have_loader}" = "xyes"; then | ||
30131 | BUILD_LOADER_GENERIC_TRUE= | ||
30132 | BUILD_LOADER_GENERIC_FALSE='#' | ||
30133 | else | ||
30134 | BUILD_LOADER_GENERIC_TRUE='#' | ||
30135 | BUILD_LOADER_GENERIC_FALSE= | ||
30136 | fi | ||
30137 | |||
30138 | |||
30139 | if test "x${want_static_loader}" = "xyes" ; then | ||
30140 | |||
30141 | $as_echo "#define EVAS_STATIC_BUILD_GENERIC 1" >>confdefs.h | ||
30142 | |||
30143 | have_static_module="yes" | ||
30144 | fi | ||
30145 | |||
30146 | if test "x${want_static_loader}" = "xyes"; then | ||
30147 | EVAS_STATIC_BUILD_GENERIC_TRUE= | ||
30148 | EVAS_STATIC_BUILD_GENERIC_FALSE='#' | ||
30149 | else | ||
30150 | EVAS_STATIC_BUILD_GENERIC_TRUE='#' | ||
30151 | EVAS_STATIC_BUILD_GENERIC_FALSE= | ||
30152 | fi | ||
30153 | |||
30154 | |||
30155 | |||
30156 | |||
30157 | |||
30158 | |||
30159 | |||
30160 | ##################################################################### | ||
30161 | ## Cpu based optimizations | ||
30162 | |||
30163 | ####################################### | ||
30164 | ## PTHREADS | ||
30165 | pthread_cflags="" | ||
30166 | pthread_libs="" | ||
30167 | build_pthreads="no" | ||
30168 | has_pthreads="no" | ||
30169 | need_pthreads="no" | ||
30170 | # basic pthread support | ||
30171 | ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" | ||
30172 | if test "x$ac_cv_header_pthread_h" = x""yes; then : | ||
30173 | |||
30174 | has_pthreads="yes" | ||
30175 | |||
30176 | else | ||
30177 | |||
30178 | has_pthreads="no" | ||
30179 | |||
30180 | |||
30181 | fi | ||
30182 | |||
30183 | |||
30184 | |||
30185 | # sched_getaffinity pthread_attr_setaffinity_np | ||
30186 | for ac_header in pthread.h sched.h | ||
30187 | do : | ||
30188 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
30189 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
30190 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
30191 | cat >>confdefs.h <<_ACEOF | ||
30192 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
30193 | _ACEOF | ||
30194 | |||
30195 | CFLAGS_save="${CFLAGS}" | ||
30196 | CFLAGS="${CFLAGS} -pthread" | ||
30197 | LIBS_save="${LIBS}" | ||
30198 | LIBS="${LIBS} -pthread" | ||
30199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
30200 | /* end confdefs.h. */ | ||
30201 | |||
30202 | #include <pthread.h> | ||
30203 | #include <sched.h> | ||
30204 | |||
30205 | int | ||
30206 | main () | ||
30207 | { | ||
30208 | |||
30209 | pthread_attr_setaffinity_np(NULL, 0, NULL); | ||
30210 | pthread_barrier_wait(NULL); | ||
30211 | |||
30212 | ; | ||
30213 | return 0; | ||
30214 | } | ||
30215 | _ACEOF | ||
30216 | if ac_fn_c_try_link "$LINENO"; then : | ||
30217 | build_pthreads="yes" | ||
30218 | else | ||
30219 | build_pthreads="no" | ||
30220 | fi | ||
30221 | rm -f core conftest.err conftest.$ac_objext \ | ||
30222 | conftest$ac_exeext conftest.$ac_ext | ||
30223 | CFLAGS=${CFLAGS_save} | ||
30224 | LIBS=${LIBS_save} | ||
30225 | |||
30226 | else | ||
30227 | build_pthreads="no" | ||
30228 | fi | ||
30229 | |||
30230 | done | ||
30231 | |||
30232 | |||
30233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_attr_setaffinity_np() and pthread_barrier_wait() are supported" >&5 | ||
30234 | $as_echo_n "checking whether pthread_attr_setaffinity_np() and pthread_barrier_wait() are supported... " >&6; } | ||
30235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${build_pthreads}" >&5 | ||
30236 | $as_echo "${build_pthreads}" >&6; } | ||
30237 | |||
30238 | ####################################### | ||
30239 | ## Pthread | ||
30240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build pthread code" >&5 | ||
30241 | $as_echo_n "checking whether to build pthread code... " >&6; } | ||
30242 | # Check whether --enable-pthreads was given. | ||
30243 | if test "${enable_pthreads+set}" = set; then : | ||
30244 | enableval=$enable_pthreads; | ||
30245 | if test "x$enableval" = "xyes" ; then | ||
30246 | if test "x$build_pthreads" = "xyes"; then | ||
30247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
30248 | $as_echo "yes" >&6; } | ||
30249 | |||
30250 | $as_echo "#define BUILD_PTHREAD 1" >>confdefs.h | ||
30251 | |||
30252 | build_pthreads="yes" | ||
30253 | need_pthreads="yes" | ||
30254 | else | ||
30255 | if "x$use_strict" = "xyes"; then | ||
30256 | as_fn_error $? "pthreads headers or functions not found (strict dependencies checking)" "$LINENO" 5 | ||
30257 | else | ||
30258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: pthread headers or functions not found" >&5 | ||
30259 | $as_echo "no: pthread headers or functions not found" >&6; } | ||
30260 | fi | ||
30261 | fi | ||
30262 | else | ||
30263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30264 | $as_echo "no" >&6; } | ||
30265 | build_pthreads="no" | ||
30266 | fi | ||
30267 | |||
30268 | else | ||
30269 | |||
30270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_pthreads" >&5 | ||
30271 | $as_echo "$build_pthreads" >&6; } | ||
30272 | if test "x$build_pthreads" = "xyes" ; then | ||
30273 | |||
30274 | $as_echo "#define BUILD_PTHREAD 1" >>confdefs.h | ||
30275 | |||
30276 | need_pthreads="yes" | ||
30277 | fi | ||
30278 | |||
30279 | |||
30280 | fi | ||
30281 | |||
30282 | |||
30283 | ####################################### | ||
30284 | ## Pipe Renderer | ||
30285 | build_pipe_render="no" | ||
30286 | |||
30287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Threaded Pipe Rendering support" >&5 | ||
30288 | $as_echo_n "checking whether to build Threaded Pipe Rendering support... " >&6; } | ||
30289 | # Check whether --enable-pipe-render was given. | ||
30290 | if test "${enable_pipe_render+set}" = set; then : | ||
30291 | enableval=$enable_pipe_render; build_pipe_render=$enableval | ||
30292 | |||
30293 | fi | ||
30294 | |||
30295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_pipe_render" >&5 | ||
30296 | $as_echo "$build_pipe_render" >&6; } | ||
30297 | |||
30298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build Threaded Pipe Rendering support" >&5 | ||
30299 | $as_echo_n "checking whether we can build Threaded Pipe Rendering support... " >&6; } | ||
30300 | if test \( "x$build_pipe_render" = "xyes" -o "x$build_pipe_render" = "xauto" \); then | ||
30301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
30302 | $as_echo "yes" >&6; } | ||
30303 | |||
30304 | $as_echo "#define BUILD_PIPE_RENDER 1" >>confdefs.h | ||
30305 | |||
30306 | build_pipe_render="yes" | ||
30307 | need_pthreads="yes" | ||
30308 | else | ||
30309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30310 | $as_echo "no" >&6; } | ||
30311 | build_pipe_render="no" | ||
30312 | fi | ||
30313 | |||
30314 | ####################################### | ||
30315 | ## Async Renderer | ||
30316 | build_async_render="no" | ||
30317 | |||
30318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Asynchronously Threaded Pipe Rendering support" >&5 | ||
30319 | $as_echo_n "checking whether to build Asynchronously Threaded Pipe Rendering support... " >&6; } | ||
30320 | # Check whether --enable-async-render was given. | ||
30321 | if test "${enable_async_render+set}" = set; then : | ||
30322 | enableval=$enable_async_render; build_async_render=$enableval | ||
30323 | |||
30324 | fi | ||
30325 | |||
30326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_async_render" >&5 | ||
30327 | $as_echo "$build_async_render" >&6; } | ||
30328 | |||
30329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build Asynchronously Threaded Pipe Rendering support" >&5 | ||
30330 | $as_echo_n "checking whether we can build Asynchronously Threaded Pipe Rendering support... " >&6; } | ||
30331 | if test \( "x$build_async_render" = "xyes" \); then | ||
30332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
30333 | $as_echo "yes" >&6; } | ||
30334 | |||
30335 | $as_echo "#define EVAS_FRAME_QUEUING 1" >>confdefs.h | ||
30336 | |||
30337 | build_async_render="yes" | ||
30338 | |||
30339 | $as_echo "#define BUILD_PIPE_RENDER 1" >>confdefs.h | ||
30340 | |||
30341 | build_pipe_render="yes" | ||
30342 | need_pthreads="yes" | ||
30343 | |||
30344 | |||
30345 | pkg_failed=no | ||
30346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 | ||
30347 | $as_echo_n "checking for XEXT... " >&6; } | ||
30348 | |||
30349 | if test -n "$XEXT_CFLAGS"; then | ||
30350 | pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" | ||
30351 | elif test -n "$PKG_CONFIG"; then | ||
30352 | if test -n "$PKG_CONFIG" && \ | ||
30353 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext < 1.1.1\""; } >&5 | ||
30354 | ($PKG_CONFIG --exists --print-errors "xext < 1.1.1") 2>&5 | ||
30355 | ac_status=$? | ||
30356 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
30357 | test $ac_status = 0; }; then | ||
30358 | pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext < 1.1.1" 2>/dev/null` | ||
30359 | else | ||
30360 | pkg_failed=yes | ||
30361 | fi | ||
30362 | else | ||
30363 | pkg_failed=untried | ||
30364 | fi | ||
30365 | if test -n "$XEXT_LIBS"; then | ||
30366 | pkg_cv_XEXT_LIBS="$XEXT_LIBS" | ||
30367 | elif test -n "$PKG_CONFIG"; then | ||
30368 | if test -n "$PKG_CONFIG" && \ | ||
30369 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext < 1.1.1\""; } >&5 | ||
30370 | ($PKG_CONFIG --exists --print-errors "xext < 1.1.1") 2>&5 | ||
30371 | ac_status=$? | ||
30372 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
30373 | test $ac_status = 0; }; then | ||
30374 | pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext < 1.1.1" 2>/dev/null` | ||
30375 | else | ||
30376 | pkg_failed=yes | ||
30377 | fi | ||
30378 | else | ||
30379 | pkg_failed=untried | ||
30380 | fi | ||
30381 | |||
30382 | |||
30383 | |||
30384 | if test $pkg_failed = yes; then | ||
30385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30386 | $as_echo "no" >&6; } | ||
30387 | |||
30388 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
30389 | _pkg_short_errors_supported=yes | ||
30390 | else | ||
30391 | _pkg_short_errors_supported=no | ||
30392 | fi | ||
30393 | if test $_pkg_short_errors_supported = yes; then | ||
30394 | XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xext < 1.1.1" 2>&1` | ||
30395 | else | ||
30396 | XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xext < 1.1.1" 2>&1` | ||
30397 | fi | ||
30398 | # Put the nasty error message in config.log where it belongs | ||
30399 | echo "$XEXT_PKG_ERRORS" >&5 | ||
30400 | |||
30401 | build_avoid_libXext_bug=no | ||
30402 | |||
30403 | elif test $pkg_failed = untried; then | ||
30404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30405 | $as_echo "no" >&6; } | ||
30406 | build_avoid_libXext_bug=no | ||
30407 | |||
30408 | else | ||
30409 | XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS | ||
30410 | XEXT_LIBS=$pkg_cv_XEXT_LIBS | ||
30411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
30412 | $as_echo "yes" >&6; } | ||
30413 | build_avoid_libXext_bug=yes | ||
30414 | fi | ||
30415 | if test \( "x$build_avoid_libXext_bug" = "xyes" \); then | ||
30416 | |||
30417 | $as_echo "#define LIBXEXT_VERSION_LOW 1" >>confdefs.h | ||
30418 | |||
30419 | fi | ||
30420 | else | ||
30421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30422 | $as_echo "no" >&6; } | ||
30423 | build_async_render="no" | ||
30424 | fi | ||
30425 | |||
30426 | ####################################### | ||
30427 | ## Async events | ||
30428 | build_async_events="auto" | ||
30429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Async Events support" >&5 | ||
30430 | $as_echo_n "checking whether to build Async Events support... " >&6; } | ||
30431 | # Check whether --enable-async-events was given. | ||
30432 | if test "${enable_async_events+set}" = set; then : | ||
30433 | enableval=$enable_async_events; build_async_events=$enableval | ||
30434 | |||
30435 | fi | ||
30436 | |||
30437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_async_events" >&5 | ||
30438 | $as_echo "$build_async_events" >&6; } | ||
30439 | |||
30440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build Async Events support" >&5 | ||
30441 | $as_echo_n "checking whether we can build Async Events support... " >&6; } | ||
30442 | if test "x$build_async_events" = "xyes" || test "x$build_async_events" = "xauto" ; then | ||
30443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
30444 | $as_echo "yes" >&6; } | ||
30445 | |||
30446 | $as_echo "#define BUILD_ASYNC_EVENTS 1" >>confdefs.h | ||
30447 | |||
30448 | build_async_events="yes" | ||
30449 | else | ||
30450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30451 | $as_echo "no" >&6; } | ||
30452 | build_async_events="no" | ||
30453 | fi | ||
30454 | |||
30455 | ####################################### | ||
30456 | ## Async image preload | ||
30457 | build_async_preload="auto" | ||
30458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Async Image Preload support" >&5 | ||
30459 | $as_echo_n "checking whether to build Async Image Preload support... " >&6; } | ||
30460 | # Check whether --enable-async-preload was given. | ||
30461 | if test "${enable_async_preload+set}" = set; then : | ||
30462 | enableval=$enable_async_preload; build_async_preload=$enableval | ||
30463 | |||
30464 | fi | ||
30465 | |||
30466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_async_preload" >&5 | ||
30467 | $as_echo "$build_async_preload" >&6; } | ||
30468 | |||
30469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build Async Image Preload support" >&5 | ||
30470 | $as_echo_n "checking whether we can build Async Image Preload support... " >&6; } | ||
30471 | if test \( "x$build_async_preload" = "xyes" -o "x$build_async_preload" = "xauto" \) -a "x$build_async_events" = "xyes"; then | ||
30472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
30473 | $as_echo "yes" >&6; } | ||
30474 | |||
30475 | $as_echo "#define BUILD_ASYNC_PRELOAD 1" >>confdefs.h | ||
30476 | |||
30477 | build_async_preload="yes" | ||
30478 | need_pthreads="yes" | ||
30479 | else | ||
30480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30481 | $as_echo "no" >&6; } | ||
30482 | build_async_preload="no" | ||
30483 | fi | ||
30484 | |||
30485 | ####################################### | ||
30486 | ## Link with pthread if needed | ||
30487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we should link with pthread" >&5 | ||
30488 | $as_echo_n "checking whether we should link with pthread... " >&6; } | ||
30489 | if test "x$need_pthreads" = "xyes"; then | ||
30490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
30491 | $as_echo "yes" >&6; } | ||
30492 | pthread_cflags="-pthread" | ||
30493 | pthread_libs="-pthread" | ||
30494 | else | ||
30495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30496 | $as_echo "no" >&6; } | ||
30497 | fi | ||
30498 | |||
30499 | ####################################### | ||
30500 | ## MMX | ||
30501 | build_cpu_mmx="no" | ||
30502 | case $host_cpu in | ||
30503 | i*86) | ||
30504 | build_cpu_mmx="yes" | ||
30505 | ;; | ||
30506 | x86_64) | ||
30507 | build_cpu_mmx="yes" | ||
30508 | ;; | ||
30509 | amd64) | ||
30510 | build_cpu_mmx="yes" | ||
30511 | ;; | ||
30512 | esac | ||
30513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build mmx code" >&5 | ||
30514 | $as_echo_n "checking whether to build mmx code... " >&6; } | ||
30515 | # Check whether --enable-cpu-mmx was given. | ||
30516 | if test "${enable_cpu_mmx+set}" = set; then : | ||
30517 | enableval=$enable_cpu_mmx; | ||
30518 | if test "x$enableval" = "xyes" ; then | ||
30519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
30520 | $as_echo "yes" >&6; } | ||
30521 | |||
30522 | $as_echo "#define BUILD_MMX 1" >>confdefs.h | ||
30523 | |||
30524 | build_cpu_mmx="yes" | ||
30525 | else | ||
30526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30527 | $as_echo "no" >&6; } | ||
30528 | build_cpu_mmx="no" | ||
30529 | fi | ||
30530 | |||
30531 | else | ||
30532 | |||
30533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_cpu_mmx" >&5 | ||
30534 | $as_echo "$build_cpu_mmx" >&6; } | ||
30535 | if test "x$build_cpu_mmx" = "xyes" ; then | ||
30536 | |||
30537 | $as_echo "#define BUILD_MMX 1" >>confdefs.h | ||
30538 | |||
30539 | fi | ||
30540 | |||
30541 | |||
30542 | fi | ||
30543 | |||
30544 | |||
30545 | ####################################### | ||
30546 | ## SSE | ||
30547 | build_cpu_sse="no" | ||
30548 | case $host_cpu in | ||
30549 | i*86) | ||
30550 | build_cpu_sse="yes" | ||
30551 | ;; | ||
30552 | x86_64) | ||
30553 | build_cpu_sse="yes" | ||
30554 | ;; | ||
30555 | amd64) | ||
30556 | build_cpu_sse="yes" | ||
30557 | ;; | ||
30558 | esac | ||
30559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build sse code" >&5 | ||
30560 | $as_echo_n "checking whether to build sse code... " >&6; } | ||
30561 | # Check whether --enable-cpu-sse was given. | ||
30562 | if test "${enable_cpu_sse+set}" = set; then : | ||
30563 | enableval=$enable_cpu_sse; | ||
30564 | if test "x$enableval" = "xyes" ; then | ||
30565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
30566 | $as_echo "yes" >&6; } | ||
30567 | |||
30568 | $as_echo "#define BUILD_SSE 1" >>confdefs.h | ||
30569 | |||
30570 | build_cpu_sse="yes" | ||
30571 | else | ||
30572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30573 | $as_echo "no" >&6; } | ||
30574 | build_cpu_sse="no" | ||
30575 | fi | ||
30576 | |||
30577 | else | ||
30578 | |||
30579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_cpu_sse" >&5 | ||
30580 | $as_echo "$build_cpu_sse" >&6; } | ||
30581 | if test "x$build_cpu_sse" = "xyes" ; then | ||
30582 | |||
30583 | $as_echo "#define BUILD_SSE 1" >>confdefs.h | ||
30584 | |||
30585 | fi | ||
30586 | |||
30587 | |||
30588 | fi | ||
30589 | |||
30590 | |||
30591 | ####################################### | ||
30592 | ## SSE3 | ||
30593 | build_cpu_sse3="no" | ||
30594 | case $host_cpu in | ||
30595 | i*86) | ||
30596 | build_cpu_sse3="yes" | ||
30597 | ;; | ||
30598 | x86_64) | ||
30599 | build_cpu_sse3="yes" | ||
30600 | ;; | ||
30601 | amd64) | ||
30602 | build_cpu_sse3="yes" | ||
30603 | ;; | ||
30604 | esac | ||
30605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build sse3 code" >&5 | ||
30606 | $as_echo_n "checking whether to build sse3 code... " >&6; } | ||
30607 | # Check whether --enable-cpu-sse3 was given. | ||
30608 | if test "${enable_cpu_sse3+set}" = set; then : | ||
30609 | enableval=$enable_cpu_sse3; | ||
30610 | if test "x$enableval" = "xyes" ; then | ||
30611 | ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default" | ||
30612 | if test "x$ac_cv_header_immintrin_h" = x""yes; then : | ||
30613 | |||
30614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
30615 | $as_echo "yes" >&6; } | ||
30616 | |||
30617 | $as_echo "#define BUILD_SSE3 1" >>confdefs.h | ||
30618 | |||
30619 | build_cpu_sse3="yes" | ||
30620 | |||
30621 | else | ||
30622 | |||
30623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30624 | $as_echo "no" >&6; } | ||
30625 | build_cpu_sse3="no" | ||
30626 | |||
30627 | fi | ||
30628 | |||
30629 | |||
30630 | else | ||
30631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30632 | $as_echo "no" >&6; } | ||
30633 | build_cpu_sse3="no" | ||
30634 | fi | ||
30635 | |||
30636 | else | ||
30637 | |||
30638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_cpu_sse3" >&5 | ||
30639 | $as_echo "$build_cpu_sse3" >&6; } | ||
30640 | if test "x$build_cpu_sse3" = "xyes" ; then | ||
30641 | ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default" | ||
30642 | if test "x$ac_cv_header_immintrin_h" = x""yes; then : | ||
30643 | |||
30644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
30645 | $as_echo "yes" >&6; } | ||
30646 | |||
30647 | $as_echo "#define BUILD_SSE3 1" >>confdefs.h | ||
30648 | |||
30649 | build_cpu_sse3="yes" | ||
30650 | |||
30651 | else | ||
30652 | |||
30653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30654 | $as_echo "no" >&6; } | ||
30655 | build_cpu_sse3="no" | ||
30656 | |||
30657 | fi | ||
30658 | |||
30659 | |||
30660 | fi | ||
30661 | |||
30662 | |||
30663 | fi | ||
30664 | |||
30665 | |||
30666 | |||
30667 | # as a big warning flag to anyone doing stuff like this... | ||
30668 | # NEVER EVER EVER EVER put **OPTIMIZATION** flags in | ||
30669 | # build flags in makefiles (from configure or anywhere else) | ||
30670 | # EVER as this screws your ability to build 1 binary and | ||
30671 | # cover ALL x86 arch's. This is the HEIGHT of WRONG. If the | ||
30672 | # person building choses to add optimization flags themselves | ||
30673 | # and decide the minimum baseline cpu arch is X then that's | ||
30674 | # their business, but NEVER should it be done here. NEVER. | ||
30675 | # I now have to do this due to the way this sse3 code was done - using | ||
30676 | # intrinsics and "functions" (opcodes) and types that only compile *IF* | ||
30677 | # you compile with -msse3. this ALSO tries to optimize REGULAR c code | ||
30678 | # with sse3 asm.. and this breaks things so badly. so... sse3 will be | ||
30679 | # off until further notice for 32bit x86. | ||
30680 | EVAS_SSE3_CFLAGS=" " | ||
30681 | if test "x$build_cpu_sse3" = "xyes" ; then | ||
30682 | EVAS_SSE3_CFLAGS="-msse3 " | ||
30683 | # CFLAGS="${CFLAGS} ${EVAS_SSE3_CFLAGS}" | ||
30684 | fi | ||
30685 | |||
30686 | |||
30687 | |||
30688 | |||
30689 | ####################################### | ||
30690 | ## ALTIVEC | ||
30691 | build_cpu_altivec="no" | ||
30692 | case $host_cpu in | ||
30693 | *power* | *ppc*) | ||
30694 | build_cpu_altivec="auto" | ||
30695 | ;; | ||
30696 | esac | ||
30697 | altivec_cflags="" | ||
30698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build altivec code" >&5 | ||
30699 | $as_echo_n "checking whether to build altivec code... " >&6; } | ||
30700 | # Check whether --enable-cpu-altivec was given. | ||
30701 | if test "${enable_cpu_altivec+set}" = set; then : | ||
30702 | enableval=$enable_cpu_altivec; build_cpu_altivec=$enableval | ||
30703 | else | ||
30704 | |||
30705 | if test ! "x$build_cpu_altivec" = "xauto"; then | ||
30706 | build_cpu_altivec="no" | ||
30707 | fi | ||
30708 | |||
30709 | |||
30710 | fi | ||
30711 | |||
30712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_cpu_altivec" >&5 | ||
30713 | $as_echo "$build_cpu_altivec" >&6; } | ||
30714 | |||
30715 | if test "x$build_cpu_altivec" = "xyes"; then | ||
30716 | ac_fn_c_check_header_mongrel "$LINENO" "altivec.h" "ac_cv_header_altivec_h" "$ac_includes_default" | ||
30717 | if test "x$ac_cv_header_altivec_h" = x""yes; then : | ||
30718 | |||
30719 | |||
30720 | $as_echo "#define BUILD_ALTIVEC 1" >>confdefs.h | ||
30721 | |||
30722 | |||
30723 | $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h | ||
30724 | |||
30725 | build_cpu_altivec="yes" | ||
30726 | |||
30727 | else | ||
30728 | |||
30729 | save_CFLAGS=$CFLAGS | ||
30730 | save_CPPFLAGS=$CPPFLAGS | ||
30731 | CFLAGS=$CFLAGS" -maltivec" | ||
30732 | CPPFLAGS=$CPPFLAGS" -maltivec" | ||
30733 | unset ac_cv_header_altivec_h | ||
30734 | ac_fn_c_check_header_mongrel "$LINENO" "altivec.h" "ac_cv_header_altivec_h" "$ac_includes_default" | ||
30735 | if test "x$ac_cv_header_altivec_h" = x""yes; then : | ||
30736 | |||
30737 | |||
30738 | $as_echo "#define BUILD_ALTIVEC 1" >>confdefs.h | ||
30739 | |||
30740 | |||
30741 | $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h | ||
30742 | |||
30743 | build_cpu_altivec="yes" | ||
30744 | |||
30745 | else | ||
30746 | |||
30747 | if test "x$build_cpu_altivec" = "xyes" -a "x$use_strict" = "xyes" ; then | ||
30748 | as_fn_error $? "Altivec not found (strict dependencies checking)" "$LINENO" 5 | ||
30749 | fi | ||
30750 | build_cpu_altivec="no" | ||
30751 | |||
30752 | |||
30753 | fi | ||
30754 | |||
30755 | |||
30756 | CFLAGS=$save_CFLAGS | ||
30757 | CPPFLAGS=$save_CPPFLAGS | ||
30758 | |||
30759 | |||
30760 | fi | ||
30761 | |||
30762 | |||
30763 | fi | ||
30764 | |||
30765 | if test "x$build_cpu_altivec" = "xyes"; then | ||
30766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use altivec compiler flag" >&5 | ||
30767 | $as_echo_n "checking whether to use altivec compiler flag... " >&6; } | ||
30768 | if test "x$GCC" = "xyes"; then | ||
30769 | if echo "int main(){return 0;}" | ${CPP} -faltivec - > /dev/null 2>&1; then | ||
30770 | altivec_cflags="-faltivec" | ||
30771 | |||
30772 | $as_echo "#define BUILD_ALTIVEC 1" >>confdefs.h | ||
30773 | |||
30774 | elif echo "int main(){return 0;}" | ${CPP} -maltivec - > /dev/null 2>&1; then | ||
30775 | altivec_cflags="-maltivec" | ||
30776 | |||
30777 | $as_echo "#define BUILD_ALTIVEC 1" >>confdefs.h | ||
30778 | |||
30779 | fi | ||
30780 | fi | ||
30781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $altivec_cflags" >&5 | ||
30782 | $as_echo "$altivec_cflags" >&6; } | ||
30783 | CFLAGS="$CFLAGS $altivec_cflags" | ||
30784 | fi | ||
30785 | |||
30786 | ####################################### | ||
30787 | ## NEON | ||
30788 | build_cpu_neon="no" | ||
30789 | case $host_cpu in | ||
30790 | arm*) | ||
30791 | build_cpu_neon="yes" | ||
30792 | ;; | ||
30793 | esac | ||
30794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build neon code" >&5 | ||
30795 | $as_echo_n "checking whether to build neon code... " >&6; } | ||
30796 | # Check whether --enable-cpu-neon was given. | ||
30797 | if test "${enable_cpu_neon+set}" = set; then : | ||
30798 | enableval=$enable_cpu_neon; | ||
30799 | if test "x$enableval" = "xyes" ; then | ||
30800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
30801 | /* end confdefs.h. */ | ||
30802 | |||
30803 | int | ||
30804 | main () | ||
30805 | { | ||
30806 | asm volatile (".fpu neon\nvqadd.u8 d0, d1, d0\n") | ||
30807 | ; | ||
30808 | return 0; | ||
30809 | } | ||
30810 | _ACEOF | ||
30811 | if ac_fn_c_try_compile "$LINENO"; then : | ||
30812 | |||
30813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
30814 | $as_echo "yes" >&6; } | ||
30815 | |||
30816 | $as_echo "#define BUILD_NEON 1" >>confdefs.h | ||
30817 | |||
30818 | build_cpu_neon="yes" | ||
30819 | |||
30820 | else | ||
30821 | |||
30822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30823 | $as_echo "no" >&6; } | ||
30824 | build_cpu_neon="no" | ||
30825 | |||
30826 | fi | ||
30827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30828 | else | ||
30829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30830 | $as_echo "no" >&6; } | ||
30831 | build_cpu_neon="no" | ||
30832 | fi | ||
30833 | |||
30834 | else | ||
30835 | |||
30836 | if test "x$build_cpu_neon" = "xyes" ; then | ||
30837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
30838 | /* end confdefs.h. */ | ||
30839 | #include <arm_neon.h> | ||
30840 | int | ||
30841 | main () | ||
30842 | { | ||
30843 | asm volatile ("vqadd.u8 d0, d1, d0\n") | ||
30844 | ; | ||
30845 | return 0; | ||
30846 | } | ||
30847 | _ACEOF | ||
30848 | if ac_fn_c_try_compile "$LINENO"; then : | ||
30849 | |||
30850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
30851 | $as_echo "yes" >&6; } | ||
30852 | |||
30853 | $as_echo "#define BUILD_NEON 1" >>confdefs.h | ||
30854 | |||
30855 | build_cpu_neon="yes" | ||
30856 | |||
30857 | else | ||
30858 | |||
30859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30860 | $as_echo "no" >&6; } | ||
30861 | build_cpu_neon="no" | ||
30862 | |||
30863 | fi | ||
30864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30865 | fi | ||
30866 | |||
30867 | |||
30868 | fi | ||
30869 | |||
30870 | |||
30871 | ####################################### | ||
30872 | ## C | ||
30873 | build_cpu_c="yes" | ||
30874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build c code" >&5 | ||
30875 | $as_echo_n "checking whether to build c code... " >&6; } | ||
30876 | # Check whether --enable-cpu-c was given. | ||
30877 | if test "${enable_cpu_c+set}" = set; then : | ||
30878 | enableval=$enable_cpu_c; | ||
30879 | if test "x$enableval" = "xyes" ; then | ||
30880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
30881 | $as_echo "yes" >&6; } | ||
30882 | |||
30883 | $as_echo "#define BUILD_C 1" >>confdefs.h | ||
30884 | |||
30885 | build_cpu_c="yes" | ||
30886 | else | ||
30887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
30888 | $as_echo "no" >&6; } | ||
30889 | build_cpu_c="no" | ||
30890 | fi | ||
30891 | |||
30892 | else | ||
30893 | |||
30894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_cpu_c" >&5 | ||
30895 | $as_echo "$build_cpu_c" >&6; } | ||
30896 | if test "x$build_cpu_c" = "xyes" ; then | ||
30897 | |||
30898 | $as_echo "#define BUILD_C 1" >>confdefs.h | ||
30899 | |||
30900 | fi | ||
30901 | |||
30902 | |||
30903 | fi | ||
30904 | |||
30905 | |||
30906 | ####################################### | ||
30907 | ## MAGIC_DEBUG | ||
30908 | want_evas_magic_debug="yes" | ||
30909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check magic for evas object" >&5 | ||
30910 | $as_echo_n "checking whether to check magic for evas object... " >&6; } | ||
30911 | # Check whether --enable-evas-magic-debug was given. | ||
30912 | if test "${enable_evas_magic_debug+set}" = set; then : | ||
30913 | enableval=$enable_evas_magic_debug; want_evas_magic_debug="$enableval" | ||
30914 | |||
30915 | fi | ||
30916 | |||
30917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_evas_magic_debug" >&5 | ||
30918 | $as_echo "$want_evas_magic_debug" >&6; } | ||
30919 | |||
30920 | if test "x$want_evas_magic_debug" = "xyes"; then | ||
30921 | EVAS_MAGIC_DEBUG_TRUE= | ||
30922 | EVAS_MAGIC_DEBUG_FALSE='#' | ||
30923 | else | ||
30924 | EVAS_MAGIC_DEBUG_TRUE='#' | ||
30925 | EVAS_MAGIC_DEBUG_FALSE= | ||
30926 | fi | ||
30927 | |||
30928 | if test "x$want_evas_magic_debug" = "xyes"; then | ||
30929 | |||
30930 | $as_echo "#define EVAS_MAGIC_DEBUG 1" >>confdefs.h | ||
30931 | |||
30932 | fi | ||
30933 | |||
30934 | |||
30935 | ####################################### | ||
30936 | ## Word Caching | ||
30937 | want_word_cache="no" | ||
30938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable caching of rendered words" >&5 | ||
30939 | $as_echo_n "checking whether to enable caching of rendered words... " >&6; } | ||
30940 | # Check whether --enable-word-cache was given. | ||
30941 | if test "${enable_word_cache+set}" = set; then : | ||
30942 | enableval=$enable_word_cache; want_word_cache="$enableval" | ||
30943 | |||
30944 | fi | ||
30945 | |||
30946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_word_cache" >&5 | ||
30947 | $as_echo "$want_word_cache" >&6; } | ||
30948 | |||
30949 | if test "x$want_word_cache" = "xyes"; then | ||
30950 | WORD_CACHE_TRUE= | ||
30951 | WORD_CACHE_FALSE='#' | ||
30952 | else | ||
30953 | WORD_CACHE_TRUE='#' | ||
30954 | WORD_CACHE_FALSE= | ||
30955 | fi | ||
30956 | |||
30957 | if test "x$want_word_cache" = "xyes"; then | ||
30958 | |||
30959 | $as_echo "#define WORD_CACHE 1" >>confdefs.h | ||
30960 | |||
30961 | fi | ||
30962 | |||
30963 | ####################################### | ||
30964 | ## Metric Caching | ||
30965 | want_metric_cache="no" | ||
30966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable caching of rendered metrics" >&5 | ||
30967 | $as_echo_n "checking whether to enable caching of rendered metrics... " >&6; } | ||
30968 | # Check whether --enable-metric-cache was given. | ||
30969 | if test "${enable_metric_cache+set}" = set; then : | ||
30970 | enableval=$enable_metric_cache; want_metric_cache="$enableval" | ||
30971 | |||
30972 | fi | ||
30973 | |||
30974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_metric_cache" >&5 | ||
30975 | $as_echo "$want_metric_cache" >&6; } | ||
30976 | |||
30977 | if test "x$want_metric_cache" = "xyes"; then | ||
30978 | METRIC_CACHE_TRUE= | ||
30979 | METRIC_CACHE_FALSE='#' | ||
30980 | else | ||
30981 | METRIC_CACHE_TRUE='#' | ||
30982 | METRIC_CACHE_FALSE= | ||
30983 | fi | ||
30984 | |||
30985 | if test "x$want_metric_cache" = "xyes"; then | ||
30986 | |||
30987 | $as_echo "#define METRIC_CACHE 1" >>confdefs.h | ||
30988 | |||
30989 | fi | ||
30990 | |||
30991 | |||
30992 | |||
30993 | ##################################################################### | ||
30994 | ## ARGB engine options | ||
30995 | |||
30996 | ####################################### | ||
30997 | ## Nearest sampling scaler | ||
30998 | |||
30999 | |||
31000 | # Check whether --enable-scale-sample was given. | ||
31001 | if test "${enable_scale_sample+set}" = set; then : | ||
31002 | enableval=$enable_scale_sample; | ||
31003 | if test "x${enableval}" = "xyes" ; then | ||
31004 | _efl_enable_scaler_option_scale_sample="yes" | ||
31005 | else | ||
31006 | _efl_enable_scaler_option_scale_sample="no" | ||
31007 | fi | ||
31008 | |||
31009 | else | ||
31010 | _efl_enable_scaler_option_scale_sample="yes" | ||
31011 | fi | ||
31012 | |||
31013 | |||
31014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build sampling scaler" >&5 | ||
31015 | $as_echo_n "checking whether to build sampling scaler... " >&6; } | ||
31016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_scaler_option_scale_sample}" >&5 | ||
31017 | $as_echo "${_efl_enable_scaler_option_scale_sample}" >&6; } | ||
31018 | |||
31019 | if test "x${_efl_enable_scaler_option_scale_sample}" = "xyes" ; then | ||
31020 | |||
31021 | $as_echo "#define BUILD_SCALE_SAMPLE 1" >>confdefs.h | ||
31022 | |||
31023 | fi | ||
31024 | |||
31025 | if test "x${_efl_enable_scaler_option_scale_sample}" = "xyes" ; then | ||
31026 | scaler_sample="yes" | ||
31027 | else | ||
31028 | scaler_sample="no" | ||
31029 | fi | ||
31030 | |||
31031 | |||
31032 | |||
31033 | |||
31034 | ## Smooth super and sub sampling scaler | ||
31035 | |||
31036 | |||
31037 | # Check whether --enable-scale-smooth was given. | ||
31038 | if test "${enable_scale_smooth+set}" = set; then : | ||
31039 | enableval=$enable_scale_smooth; | ||
31040 | if test "x${enableval}" = "xyes" ; then | ||
31041 | _efl_enable_scaler_option_scale_smooth="yes" | ||
31042 | else | ||
31043 | _efl_enable_scaler_option_scale_smooth="no" | ||
31044 | fi | ||
31045 | |||
31046 | else | ||
31047 | _efl_enable_scaler_option_scale_smooth="yes" | ||
31048 | fi | ||
31049 | |||
31050 | |||
31051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build smooth scaler" >&5 | ||
31052 | $as_echo_n "checking whether to build smooth scaler... " >&6; } | ||
31053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_scaler_option_scale_smooth}" >&5 | ||
31054 | $as_echo "${_efl_enable_scaler_option_scale_smooth}" >&6; } | ||
31055 | |||
31056 | if test "x${_efl_enable_scaler_option_scale_smooth}" = "xyes" ; then | ||
31057 | |||
31058 | $as_echo "#define BUILD_SCALE_SMOOTH 1" >>confdefs.h | ||
31059 | |||
31060 | fi | ||
31061 | |||
31062 | if test "x${_efl_enable_scaler_option_scale_smooth}" = "xyes" ; then | ||
31063 | scaler_smooth="yes" | ||
31064 | else | ||
31065 | scaler_smooth="no" | ||
31066 | fi | ||
31067 | |||
31068 | |||
31069 | |||
31070 | |||
31071 | |||
31072 | ####################################### | ||
31073 | ## YUV -> ARGB converter | ||
31074 | conv_yuv="no" | ||
31075 | conv_yuv="yes" | ||
31076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build yuv converter code" >&5 | ||
31077 | $as_echo_n "checking whether to build yuv converter code... " >&6; } | ||
31078 | # Check whether --enable-convert-yuv was given. | ||
31079 | if test "${enable_convert_yuv+set}" = set; then : | ||
31080 | enableval=$enable_convert_yuv; | ||
31081 | if test "x$enableval" = "xyes" ; then | ||
31082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
31083 | $as_echo "yes" >&6; } | ||
31084 | |||
31085 | $as_echo "#define BUILD_CONVERT_YUV 1" >>confdefs.h | ||
31086 | |||
31087 | conv_yuv="yes" | ||
31088 | else | ||
31089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
31090 | $as_echo "no" >&6; } | ||
31091 | conv_yuv="no" | ||
31092 | fi | ||
31093 | |||
31094 | else | ||
31095 | |||
31096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_yuv" >&5 | ||
31097 | $as_echo "$conv_yuv" >&6; } | ||
31098 | if test "x$conv_yuv" = "xyes" ; then | ||
31099 | |||
31100 | $as_echo "#define BUILD_CONVERT_YUV 1" >>confdefs.h | ||
31101 | |||
31102 | fi | ||
31103 | |||
31104 | |||
31105 | fi | ||
31106 | |||
31107 | |||
31108 | ##################################################################### | ||
31109 | ## Output rendering features | ||
31110 | |||
31111 | ####################################### | ||
31112 | ## Small dither mask instead of big one (lower quality) | ||
31113 | |||
31114 | |||
31115 | # Check whether --enable-small-dither-mask was given. | ||
31116 | if test "${enable_small_dither_mask+set}" = set; then : | ||
31117 | enableval=$enable_small_dither_mask; | ||
31118 | if test "x${enableval}" = "xyes" ; then | ||
31119 | _efl_enable_dither_option_small_dither_mask="yes" | ||
31120 | else | ||
31121 | _efl_enable_dither_option_small_dither_mask="no" | ||
31122 | fi | ||
31123 | |||
31124 | else | ||
31125 | _efl_enable_dither_option_small_dither_mask="no" | ||
31126 | fi | ||
31127 | |||
31128 | |||
31129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build small dither mask" >&5 | ||
31130 | $as_echo_n "checking whether to build small dither mask... " >&6; } | ||
31131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_dither_option_small_dither_mask}" >&5 | ||
31132 | $as_echo "${_efl_enable_dither_option_small_dither_mask}" >&6; } | ||
31133 | |||
31134 | if test "x${_efl_enable_dither_option_small_dither_mask}" = "xyes" ; then | ||
31135 | |||
31136 | $as_echo "#define BUILD_SMALL_DITHER_MASK 1" >>confdefs.h | ||
31137 | |||
31138 | fi | ||
31139 | |||
31140 | if test "x${_efl_enable_dither_option_small_dither_mask}" = "xyes" ; then | ||
31141 | conv_small_dither="yes" | ||
31142 | else | ||
31143 | conv_small_dither="no" | ||
31144 | fi | ||
31145 | |||
31146 | |||
31147 | |||
31148 | |||
31149 | ## Alternate Line dither mask instead of big one (lower quality - but fastest) | ||
31150 | |||
31151 | |||
31152 | # Check whether --enable-line-dither-mask was given. | ||
31153 | if test "${enable_line_dither_mask+set}" = set; then : | ||
31154 | enableval=$enable_line_dither_mask; | ||
31155 | if test "x${enableval}" = "xyes" ; then | ||
31156 | _efl_enable_dither_option_line_dither_mask="yes" | ||
31157 | else | ||
31158 | _efl_enable_dither_option_line_dither_mask="no" | ||
31159 | fi | ||
31160 | |||
31161 | else | ||
31162 | _efl_enable_dither_option_line_dither_mask="no" | ||
31163 | fi | ||
31164 | |||
31165 | |||
31166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build line dither mask" >&5 | ||
31167 | $as_echo_n "checking whether to build line dither mask... " >&6; } | ||
31168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_dither_option_line_dither_mask}" >&5 | ||
31169 | $as_echo "${_efl_enable_dither_option_line_dither_mask}" >&6; } | ||
31170 | |||
31171 | if test "x${_efl_enable_dither_option_line_dither_mask}" = "xyes" ; then | ||
31172 | |||
31173 | $as_echo "#define BUILD_LINE_DITHER_MASK 1" >>confdefs.h | ||
31174 | |||
31175 | fi | ||
31176 | |||
31177 | if test "x${_efl_enable_dither_option_line_dither_mask}" = "xyes" ; then | ||
31178 | conv_line_dither="yes" | ||
31179 | else | ||
31180 | conv_line_dither="no" | ||
31181 | fi | ||
31182 | |||
31183 | |||
31184 | |||
31185 | |||
31186 | ## No dither mask at all for 16bpp | ||
31187 | |||
31188 | |||
31189 | # Check whether --enable-no-dither-mask was given. | ||
31190 | if test "${enable_no_dither_mask+set}" = set; then : | ||
31191 | enableval=$enable_no_dither_mask; | ||
31192 | if test "x${enableval}" = "xyes" ; then | ||
31193 | _efl_enable_dither_option_no_dither_mask="yes" | ||
31194 | else | ||
31195 | _efl_enable_dither_option_no_dither_mask="no" | ||
31196 | fi | ||
31197 | |||
31198 | else | ||
31199 | _efl_enable_dither_option_no_dither_mask="no" | ||
31200 | fi | ||
31201 | |||
31202 | |||
31203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build conversion to 16bpp without dither mask" >&5 | ||
31204 | $as_echo_n "checking whether to build conversion to 16bpp without dither mask... " >&6; } | ||
31205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_dither_option_no_dither_mask}" >&5 | ||
31206 | $as_echo "${_efl_enable_dither_option_no_dither_mask}" >&6; } | ||
31207 | |||
31208 | if test "x${_efl_enable_dither_option_no_dither_mask}" = "xyes" ; then | ||
31209 | |||
31210 | $as_echo "#define BUILD_NO_DITHER_MASK 1" >>confdefs.h | ||
31211 | |||
31212 | fi | ||
31213 | |||
31214 | if test "x${_efl_enable_dither_option_no_dither_mask}" = "xyes" ; then | ||
31215 | conv_no_dither="yes" | ||
31216 | else | ||
31217 | conv_no_dither="no" | ||
31218 | fi | ||
31219 | |||
31220 | |||
31221 | |||
31222 | |||
31223 | |||
31224 | ####################################### | ||
31225 | ## Convert to 8bpp RGB 332 | ||
31226 | |||
31227 | |||
31228 | conv_8_rgb_332="no" | ||
31229 | |||
31230 | |||
31231 | # Check whether --enable-convert-8-rgb-332 was given. | ||
31232 | if test "${enable_convert_8_rgb_332+set}" = set; then : | ||
31233 | enableval=$enable_convert_8_rgb_332; conv_8_rgb_332=$enableval | ||
31234 | else | ||
31235 | conv_8_rgb_332=yes | ||
31236 | |||
31237 | fi | ||
31238 | |||
31239 | |||
31240 | |||
31241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 8bpp RGB 332 converter code" >&5 | ||
31242 | $as_echo_n "checking whether to build 8bpp RGB 332 converter code... " >&6; } | ||
31243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_8_rgb_332" >&5 | ||
31244 | $as_echo "$conv_8_rgb_332" >&6; } | ||
31245 | |||
31246 | if test "x$conv_8_rgb_332" = "xyes" ; then | ||
31247 | |||
31248 | $as_echo "#define BUILD_CONVERT_8_RGB_332 1" >>confdefs.h | ||
31249 | |||
31250 | fi | ||
31251 | |||
31252 | |||
31253 | |||
31254 | |||
31255 | |||
31256 | ## Convert to 8bpp RGB 666 | ||
31257 | |||
31258 | |||
31259 | conv_8_rgb_666="no" | ||
31260 | |||
31261 | |||
31262 | # Check whether --enable-convert-8-rgb-666 was given. | ||
31263 | if test "${enable_convert_8_rgb_666+set}" = set; then : | ||
31264 | enableval=$enable_convert_8_rgb_666; conv_8_rgb_666=$enableval | ||
31265 | else | ||
31266 | conv_8_rgb_666=yes | ||
31267 | |||
31268 | fi | ||
31269 | |||
31270 | |||
31271 | |||
31272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 8bpp RGB 666 converter code" >&5 | ||
31273 | $as_echo_n "checking whether to build 8bpp RGB 666 converter code... " >&6; } | ||
31274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_8_rgb_666" >&5 | ||
31275 | $as_echo "$conv_8_rgb_666" >&6; } | ||
31276 | |||
31277 | if test "x$conv_8_rgb_666" = "xyes" ; then | ||
31278 | |||
31279 | $as_echo "#define BUILD_CONVERT_8_RGB_666 1" >>confdefs.h | ||
31280 | |||
31281 | fi | ||
31282 | |||
31283 | |||
31284 | |||
31285 | |||
31286 | |||
31287 | ## Convert to 8bpp RGB 232 | ||
31288 | |||
31289 | |||
31290 | conv_8_rgb_232="no" | ||
31291 | |||
31292 | |||
31293 | # Check whether --enable-convert-8-rgb-232 was given. | ||
31294 | if test "${enable_convert_8_rgb_232+set}" = set; then : | ||
31295 | enableval=$enable_convert_8_rgb_232; conv_8_rgb_232=$enableval | ||
31296 | else | ||
31297 | conv_8_rgb_232=yes | ||
31298 | |||
31299 | fi | ||
31300 | |||
31301 | |||
31302 | |||
31303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 8bpp RGB 232 converter code" >&5 | ||
31304 | $as_echo_n "checking whether to build 8bpp RGB 232 converter code... " >&6; } | ||
31305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_8_rgb_232" >&5 | ||
31306 | $as_echo "$conv_8_rgb_232" >&6; } | ||
31307 | |||
31308 | if test "x$conv_8_rgb_232" = "xyes" ; then | ||
31309 | |||
31310 | $as_echo "#define BUILD_CONVERT_8_RGB_232 1" >>confdefs.h | ||
31311 | |||
31312 | fi | ||
31313 | |||
31314 | |||
31315 | |||
31316 | |||
31317 | |||
31318 | ## Convert to 8bpp RGB 222 | ||
31319 | |||
31320 | |||
31321 | conv_8_rgb_222="no" | ||
31322 | |||
31323 | |||
31324 | # Check whether --enable-convert-8-rgb-222 was given. | ||
31325 | if test "${enable_convert_8_rgb_222+set}" = set; then : | ||
31326 | enableval=$enable_convert_8_rgb_222; conv_8_rgb_222=$enableval | ||
31327 | else | ||
31328 | conv_8_rgb_222=yes | ||
31329 | |||
31330 | fi | ||
31331 | |||
31332 | |||
31333 | |||
31334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 8bpp RGB 222 converter code" >&5 | ||
31335 | $as_echo_n "checking whether to build 8bpp RGB 222 converter code... " >&6; } | ||
31336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_8_rgb_222" >&5 | ||
31337 | $as_echo "$conv_8_rgb_222" >&6; } | ||
31338 | |||
31339 | if test "x$conv_8_rgb_222" = "xyes" ; then | ||
31340 | |||
31341 | $as_echo "#define BUILD_CONVERT_8_RGB_222 1" >>confdefs.h | ||
31342 | |||
31343 | fi | ||
31344 | |||
31345 | |||
31346 | |||
31347 | |||
31348 | |||
31349 | ## Convert to 8bpp RGB 221 | ||
31350 | |||
31351 | |||
31352 | conv_8_rgb_221="no" | ||
31353 | |||
31354 | |||
31355 | # Check whether --enable-convert-8-rgb-221 was given. | ||
31356 | if test "${enable_convert_8_rgb_221+set}" = set; then : | ||
31357 | enableval=$enable_convert_8_rgb_221; conv_8_rgb_221=$enableval | ||
31358 | else | ||
31359 | conv_8_rgb_221=yes | ||
31360 | |||
31361 | fi | ||
31362 | |||
31363 | |||
31364 | |||
31365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 8bpp RGB 221 converter code" >&5 | ||
31366 | $as_echo_n "checking whether to build 8bpp RGB 221 converter code... " >&6; } | ||
31367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_8_rgb_221" >&5 | ||
31368 | $as_echo "$conv_8_rgb_221" >&6; } | ||
31369 | |||
31370 | if test "x$conv_8_rgb_221" = "xyes" ; then | ||
31371 | |||
31372 | $as_echo "#define BUILD_CONVERT_8_RGB_221 1" >>confdefs.h | ||
31373 | |||
31374 | fi | ||
31375 | |||
31376 | |||
31377 | |||
31378 | |||
31379 | |||
31380 | ## Convert to 8bpp RGB 121 | ||
31381 | |||
31382 | |||
31383 | conv_8_rgb_121="no" | ||
31384 | |||
31385 | |||
31386 | # Check whether --enable-convert-8-rgb-121 was given. | ||
31387 | if test "${enable_convert_8_rgb_121+set}" = set; then : | ||
31388 | enableval=$enable_convert_8_rgb_121; conv_8_rgb_121=$enableval | ||
31389 | else | ||
31390 | conv_8_rgb_121=yes | ||
31391 | |||
31392 | fi | ||
31393 | |||
31394 | |||
31395 | |||
31396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 8bpp RGB 121 converter code" >&5 | ||
31397 | $as_echo_n "checking whether to build 8bpp RGB 121 converter code... " >&6; } | ||
31398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_8_rgb_121" >&5 | ||
31399 | $as_echo "$conv_8_rgb_121" >&6; } | ||
31400 | |||
31401 | if test "x$conv_8_rgb_121" = "xyes" ; then | ||
31402 | |||
31403 | $as_echo "#define BUILD_CONVERT_8_RGB_121 1" >>confdefs.h | ||
31404 | |||
31405 | fi | ||
31406 | |||
31407 | |||
31408 | |||
31409 | |||
31410 | |||
31411 | ## Convert to 8bpp RGB 111 | ||
31412 | |||
31413 | |||
31414 | conv_8_rgb_111="no" | ||
31415 | |||
31416 | |||
31417 | # Check whether --enable-convert-8-rgb-111 was given. | ||
31418 | if test "${enable_convert_8_rgb_111+set}" = set; then : | ||
31419 | enableval=$enable_convert_8_rgb_111; conv_8_rgb_111=$enableval | ||
31420 | else | ||
31421 | conv_8_rgb_111=yes | ||
31422 | |||
31423 | fi | ||
31424 | |||
31425 | |||
31426 | |||
31427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 8bpp RGB 111 converter code" >&5 | ||
31428 | $as_echo_n "checking whether to build 8bpp RGB 111 converter code... " >&6; } | ||
31429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_8_rgb_111" >&5 | ||
31430 | $as_echo "$conv_8_rgb_111" >&6; } | ||
31431 | |||
31432 | if test "x$conv_8_rgb_111" = "xyes" ; then | ||
31433 | |||
31434 | $as_echo "#define BUILD_CONVERT_8_RGB_111 1" >>confdefs.h | ||
31435 | |||
31436 | fi | ||
31437 | |||
31438 | |||
31439 | |||
31440 | |||
31441 | |||
31442 | ## Convert to 16bpp RGB 565 | ||
31443 | |||
31444 | |||
31445 | conv_16_rgb_565="no" | ||
31446 | |||
31447 | |||
31448 | # Check whether --enable-convert-16-rgb-565 was given. | ||
31449 | if test "${enable_convert_16_rgb_565+set}" = set; then : | ||
31450 | enableval=$enable_convert_16_rgb_565; conv_16_rgb_565=$enableval | ||
31451 | else | ||
31452 | conv_16_rgb_565=yes | ||
31453 | |||
31454 | fi | ||
31455 | |||
31456 | |||
31457 | |||
31458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 16bpp RGB 565 converter code" >&5 | ||
31459 | $as_echo_n "checking whether to build 16bpp RGB 565 converter code... " >&6; } | ||
31460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_16_rgb_565" >&5 | ||
31461 | $as_echo "$conv_16_rgb_565" >&6; } | ||
31462 | |||
31463 | if test "x$conv_16_rgb_565" = "xyes" ; then | ||
31464 | |||
31465 | $as_echo "#define BUILD_CONVERT_16_RGB_565 1" >>confdefs.h | ||
31466 | |||
31467 | fi | ||
31468 | |||
31469 | |||
31470 | |||
31471 | |||
31472 | |||
31473 | ## Convert to 16bpp BGR 565 | ||
31474 | |||
31475 | |||
31476 | conv_16_bgr_565="no" | ||
31477 | |||
31478 | |||
31479 | # Check whether --enable-convert-16-bgr-565 was given. | ||
31480 | if test "${enable_convert_16_bgr_565+set}" = set; then : | ||
31481 | enableval=$enable_convert_16_bgr_565; conv_16_bgr_565=$enableval | ||
31482 | else | ||
31483 | conv_16_bgr_565=yes | ||
31484 | |||
31485 | fi | ||
31486 | |||
31487 | |||
31488 | |||
31489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 16bpp BGR 565 converter code" >&5 | ||
31490 | $as_echo_n "checking whether to build 16bpp BGR 565 converter code... " >&6; } | ||
31491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_16_bgr_565" >&5 | ||
31492 | $as_echo "$conv_16_bgr_565" >&6; } | ||
31493 | |||
31494 | if test "x$conv_16_bgr_565" = "xyes" ; then | ||
31495 | |||
31496 | $as_echo "#define BUILD_CONVERT_16_BGR_565 1" >>confdefs.h | ||
31497 | |||
31498 | fi | ||
31499 | |||
31500 | |||
31501 | |||
31502 | |||
31503 | |||
31504 | ## Convert to 16bpp RGB 555 | ||
31505 | |||
31506 | |||
31507 | conv_16_rgb_555="no" | ||
31508 | |||
31509 | |||
31510 | # Check whether --enable-convert-16-rgb-555 was given. | ||
31511 | if test "${enable_convert_16_rgb_555+set}" = set; then : | ||
31512 | enableval=$enable_convert_16_rgb_555; conv_16_rgb_555=$enableval | ||
31513 | else | ||
31514 | conv_16_rgb_555=yes | ||
31515 | |||
31516 | fi | ||
31517 | |||
31518 | |||
31519 | |||
31520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 16bpp RGB 555 converter code" >&5 | ||
31521 | $as_echo_n "checking whether to build 16bpp RGB 555 converter code... " >&6; } | ||
31522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_16_rgb_555" >&5 | ||
31523 | $as_echo "$conv_16_rgb_555" >&6; } | ||
31524 | |||
31525 | if test "x$conv_16_rgb_555" = "xyes" ; then | ||
31526 | |||
31527 | $as_echo "#define BUILD_CONVERT_16_RGB_555 1" >>confdefs.h | ||
31528 | |||
31529 | fi | ||
31530 | |||
31531 | |||
31532 | |||
31533 | |||
31534 | |||
31535 | ## Convert to 16bpp RGB 444 | ||
31536 | |||
31537 | |||
31538 | conv_16_rgb_444="no" | ||
31539 | |||
31540 | |||
31541 | # Check whether --enable-convert-16-rgb-444 was given. | ||
31542 | if test "${enable_convert_16_rgb_444+set}" = set; then : | ||
31543 | enableval=$enable_convert_16_rgb_444; conv_16_rgb_444=$enableval | ||
31544 | else | ||
31545 | conv_16_rgb_444=yes | ||
31546 | |||
31547 | fi | ||
31548 | |||
31549 | |||
31550 | |||
31551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 16bpp RGB 444 converter code" >&5 | ||
31552 | $as_echo_n "checking whether to build 16bpp RGB 444 converter code... " >&6; } | ||
31553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_16_rgb_444" >&5 | ||
31554 | $as_echo "$conv_16_rgb_444" >&6; } | ||
31555 | |||
31556 | if test "x$conv_16_rgb_444" = "xyes" ; then | ||
31557 | |||
31558 | $as_echo "#define BUILD_CONVERT_16_RGB_444 1" >>confdefs.h | ||
31559 | |||
31560 | fi | ||
31561 | |||
31562 | |||
31563 | |||
31564 | |||
31565 | |||
31566 | |||
31567 | ####################################### | ||
31568 | ## Convert to 16bpp RGB 565 (444 ipaq) | ||
31569 | conv_16_rgb_ipq="yes" | ||
31570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 16bpp 565 (444 ipaq) converter code" >&5 | ||
31571 | $as_echo_n "checking whether to build 16bpp 565 (444 ipaq) converter code... " >&6; } | ||
31572 | # Check whether --enable-convert-16-rgb-ipq was given. | ||
31573 | if test "${enable_convert_16_rgb_ipq+set}" = set; then : | ||
31574 | enableval=$enable_convert_16_rgb_ipq; | ||
31575 | if test "x$enableval" = "xyes" ; then | ||
31576 | |||
31577 | $as_echo "#define BUILD_CONVERT_16_RGB_454645 1" >>confdefs.h | ||
31578 | |||
31579 | conv_16_rgb_ipq="yes" | ||
31580 | else | ||
31581 | conv_16_rgb_ipq="no" | ||
31582 | fi | ||
31583 | |||
31584 | else | ||
31585 | |||
31586 | if test "x$conv_16_rgb_ipq" = "xyes" ; then | ||
31587 | |||
31588 | $as_echo "#define BUILD_CONVERT_16_RGB_454645 1" >>confdefs.h | ||
31589 | |||
31590 | fi | ||
31591 | |||
31592 | |||
31593 | fi | ||
31594 | |||
31595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_16_rgb_ipq" >&5 | ||
31596 | $as_echo "$conv_16_rgb_ipq" >&6; } | ||
31597 | |||
31598 | ####################################### | ||
31599 | ## Convert to 16bpp RGB with rotation of 0 | ||
31600 | |||
31601 | |||
31602 | conv_16_rgb_rot_0="no" | ||
31603 | |||
31604 | |||
31605 | # Check whether --enable-convert-16-rgb-rot-0 was given. | ||
31606 | if test "${enable_convert_16_rgb_rot_0+set}" = set; then : | ||
31607 | enableval=$enable_convert_16_rgb_rot_0; conv_16_rgb_rot_0=$enableval | ||
31608 | else | ||
31609 | conv_16_rgb_rot_0=yes | ||
31610 | |||
31611 | fi | ||
31612 | |||
31613 | |||
31614 | |||
31615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 16bpp RGB rotation 0 converter code" >&5 | ||
31616 | $as_echo_n "checking whether to build 16bpp RGB rotation 0 converter code... " >&6; } | ||
31617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_16_rgb_rot_0" >&5 | ||
31618 | $as_echo "$conv_16_rgb_rot_0" >&6; } | ||
31619 | |||
31620 | if test "x$conv_16_rgb_rot_0" = "xyes" ; then | ||
31621 | |||
31622 | $as_echo "#define BUILD_CONVERT_16_RGB_ROT0 1" >>confdefs.h | ||
31623 | |||
31624 | fi | ||
31625 | |||
31626 | |||
31627 | |||
31628 | |||
31629 | |||
31630 | ## Convert to 16bpp RGB with rotation of 180 | ||
31631 | |||
31632 | |||
31633 | conv_16_rgb_rot_180="no" | ||
31634 | |||
31635 | |||
31636 | # Check whether --enable-convert-16-rgb-rot-180 was given. | ||
31637 | if test "${enable_convert_16_rgb_rot_180+set}" = set; then : | ||
31638 | enableval=$enable_convert_16_rgb_rot_180; conv_16_rgb_rot_180=$enableval | ||
31639 | else | ||
31640 | conv_16_rgb_rot_180=yes | ||
31641 | |||
31642 | fi | ||
31643 | |||
31644 | |||
31645 | |||
31646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 16bpp RGB rotation 180 converter code" >&5 | ||
31647 | $as_echo_n "checking whether to build 16bpp RGB rotation 180 converter code... " >&6; } | ||
31648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_16_rgb_rot_180" >&5 | ||
31649 | $as_echo "$conv_16_rgb_rot_180" >&6; } | ||
31650 | |||
31651 | if test "x$conv_16_rgb_rot_180" = "xyes" ; then | ||
31652 | |||
31653 | $as_echo "#define BUILD_CONVERT_16_RGB_ROT180 1" >>confdefs.h | ||
31654 | |||
31655 | fi | ||
31656 | |||
31657 | |||
31658 | |||
31659 | |||
31660 | |||
31661 | ## Convert to 16bpp RGB with rotation of 270 | ||
31662 | |||
31663 | |||
31664 | conv_16_rgb_rot_270="no" | ||
31665 | |||
31666 | |||
31667 | # Check whether --enable-convert-16-rgb-rot-270 was given. | ||
31668 | if test "${enable_convert_16_rgb_rot_270+set}" = set; then : | ||
31669 | enableval=$enable_convert_16_rgb_rot_270; conv_16_rgb_rot_270=$enableval | ||
31670 | else | ||
31671 | conv_16_rgb_rot_270=yes | ||
31672 | |||
31673 | fi | ||
31674 | |||
31675 | |||
31676 | |||
31677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 16bpp RGB rotation 270 converter code" >&5 | ||
31678 | $as_echo_n "checking whether to build 16bpp RGB rotation 270 converter code... " >&6; } | ||
31679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_16_rgb_rot_270" >&5 | ||
31680 | $as_echo "$conv_16_rgb_rot_270" >&6; } | ||
31681 | |||
31682 | if test "x$conv_16_rgb_rot_270" = "xyes" ; then | ||
31683 | |||
31684 | $as_echo "#define BUILD_CONVERT_16_RGB_ROT270 1" >>confdefs.h | ||
31685 | |||
31686 | fi | ||
31687 | |||
31688 | |||
31689 | |||
31690 | |||
31691 | |||
31692 | ## Convert to 16bpp RGB with rotation of 90 | ||
31693 | |||
31694 | |||
31695 | conv_16_rgb_rot_90="no" | ||
31696 | |||
31697 | |||
31698 | # Check whether --enable-convert-16-rgb-rot-90 was given. | ||
31699 | if test "${enable_convert_16_rgb_rot_90+set}" = set; then : | ||
31700 | enableval=$enable_convert_16_rgb_rot_90; conv_16_rgb_rot_90=$enableval | ||
31701 | else | ||
31702 | conv_16_rgb_rot_90=yes | ||
31703 | |||
31704 | fi | ||
31705 | |||
31706 | |||
31707 | |||
31708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 16bpp RGB rotation 90 converter code" >&5 | ||
31709 | $as_echo_n "checking whether to build 16bpp RGB rotation 90 converter code... " >&6; } | ||
31710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_16_rgb_rot_90" >&5 | ||
31711 | $as_echo "$conv_16_rgb_rot_90" >&6; } | ||
31712 | |||
31713 | if test "x$conv_16_rgb_rot_90" = "xyes" ; then | ||
31714 | |||
31715 | $as_echo "#define BUILD_CONVERT_16_RGB_ROT90 1" >>confdefs.h | ||
31716 | |||
31717 | fi | ||
31718 | |||
31719 | |||
31720 | |||
31721 | |||
31722 | |||
31723 | |||
31724 | ####################################### | ||
31725 | ## Convert to 24bpp RGB 888 | ||
31726 | |||
31727 | |||
31728 | conv_24_rgb_888="no" | ||
31729 | |||
31730 | |||
31731 | # Check whether --enable-convert-24-rgb-888 was given. | ||
31732 | if test "${enable_convert_24_rgb_888+set}" = set; then : | ||
31733 | enableval=$enable_convert_24_rgb_888; conv_24_rgb_888=$enableval | ||
31734 | else | ||
31735 | conv_24_rgb_888=yes | ||
31736 | |||
31737 | fi | ||
31738 | |||
31739 | |||
31740 | |||
31741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 24bpp RGB 888 converter code" >&5 | ||
31742 | $as_echo_n "checking whether to build 24bpp RGB 888 converter code... " >&6; } | ||
31743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_24_rgb_888" >&5 | ||
31744 | $as_echo "$conv_24_rgb_888" >&6; } | ||
31745 | |||
31746 | if test "x$conv_24_rgb_888" = "xyes" ; then | ||
31747 | |||
31748 | $as_echo "#define BUILD_CONVERT_24_RGB_888 1" >>confdefs.h | ||
31749 | |||
31750 | fi | ||
31751 | |||
31752 | |||
31753 | |||
31754 | |||
31755 | |||
31756 | ## Convert to 24bpp BGR 888 | ||
31757 | |||
31758 | |||
31759 | conv_24_bgr_888="no" | ||
31760 | |||
31761 | |||
31762 | # Check whether --enable-convert-24-bgr-888 was given. | ||
31763 | if test "${enable_convert_24_bgr_888+set}" = set; then : | ||
31764 | enableval=$enable_convert_24_bgr_888; conv_24_bgr_888=$enableval | ||
31765 | else | ||
31766 | conv_24_bgr_888=yes | ||
31767 | |||
31768 | fi | ||
31769 | |||
31770 | |||
31771 | |||
31772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 24bpp BGR 888 converter code" >&5 | ||
31773 | $as_echo_n "checking whether to build 24bpp BGR 888 converter code... " >&6; } | ||
31774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_24_bgr_888" >&5 | ||
31775 | $as_echo "$conv_24_bgr_888" >&6; } | ||
31776 | |||
31777 | if test "x$conv_24_bgr_888" = "xyes" ; then | ||
31778 | |||
31779 | $as_echo "#define BUILD_CONVERT_24_BGR_888 1" >>confdefs.h | ||
31780 | |||
31781 | fi | ||
31782 | |||
31783 | |||
31784 | |||
31785 | |||
31786 | |||
31787 | ## Convert to 32bpp RGB 8888 | ||
31788 | |||
31789 | |||
31790 | conv_32_rgb_8888="no" | ||
31791 | |||
31792 | |||
31793 | # Check whether --enable-convert-32-rgb-8888 was given. | ||
31794 | if test "${enable_convert_32_rgb_8888+set}" = set; then : | ||
31795 | enableval=$enable_convert_32_rgb_8888; conv_32_rgb_8888=$enableval | ||
31796 | else | ||
31797 | conv_32_rgb_8888=yes | ||
31798 | |||
31799 | fi | ||
31800 | |||
31801 | |||
31802 | |||
31803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 32bpp RGB 8888 converter code" >&5 | ||
31804 | $as_echo_n "checking whether to build 32bpp RGB 8888 converter code... " >&6; } | ||
31805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_32_rgb_8888" >&5 | ||
31806 | $as_echo "$conv_32_rgb_8888" >&6; } | ||
31807 | |||
31808 | if test "x$conv_32_rgb_8888" = "xyes" ; then | ||
31809 | |||
31810 | $as_echo "#define BUILD_CONVERT_32_RGB_8888 1" >>confdefs.h | ||
31811 | |||
31812 | fi | ||
31813 | |||
31814 | |||
31815 | |||
31816 | |||
31817 | |||
31818 | ## Convert to 32bpp RGBX 8888 | ||
31819 | |||
31820 | |||
31821 | conv_32_rgbx_8888="no" | ||
31822 | |||
31823 | |||
31824 | # Check whether --enable-convert-32-rgbx-8888 was given. | ||
31825 | if test "${enable_convert_32_rgbx_8888+set}" = set; then : | ||
31826 | enableval=$enable_convert_32_rgbx_8888; conv_32_rgbx_8888=$enableval | ||
31827 | else | ||
31828 | conv_32_rgbx_8888=yes | ||
31829 | |||
31830 | fi | ||
31831 | |||
31832 | |||
31833 | |||
31834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 32bpp RGBX 8888 converter code" >&5 | ||
31835 | $as_echo_n "checking whether to build 32bpp RGBX 8888 converter code... " >&6; } | ||
31836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_32_rgbx_8888" >&5 | ||
31837 | $as_echo "$conv_32_rgbx_8888" >&6; } | ||
31838 | |||
31839 | if test "x$conv_32_rgbx_8888" = "xyes" ; then | ||
31840 | |||
31841 | $as_echo "#define BUILD_CONVERT_32_RGBX_8888 1" >>confdefs.h | ||
31842 | |||
31843 | fi | ||
31844 | |||
31845 | |||
31846 | |||
31847 | |||
31848 | |||
31849 | ## Convert to 32bpp BGR 8888 | ||
31850 | |||
31851 | |||
31852 | conv_32_bgr_8888="no" | ||
31853 | |||
31854 | |||
31855 | # Check whether --enable-convert-32-bgr-8888 was given. | ||
31856 | if test "${enable_convert_32_bgr_8888+set}" = set; then : | ||
31857 | enableval=$enable_convert_32_bgr_8888; conv_32_bgr_8888=$enableval | ||
31858 | else | ||
31859 | conv_32_bgr_8888=yes | ||
31860 | |||
31861 | fi | ||
31862 | |||
31863 | |||
31864 | |||
31865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 32bpp BGR 8888 converter code" >&5 | ||
31866 | $as_echo_n "checking whether to build 32bpp BGR 8888 converter code... " >&6; } | ||
31867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_32_bgr_8888" >&5 | ||
31868 | $as_echo "$conv_32_bgr_8888" >&6; } | ||
31869 | |||
31870 | if test "x$conv_32_bgr_8888" = "xyes" ; then | ||
31871 | |||
31872 | $as_echo "#define BUILD_CONVERT_32_BGR_8888 1" >>confdefs.h | ||
31873 | |||
31874 | fi | ||
31875 | |||
31876 | |||
31877 | |||
31878 | |||
31879 | |||
31880 | ## Convert to 32bpp BGRX 8888 | ||
31881 | |||
31882 | |||
31883 | conv_32_bgrx_8888="no" | ||
31884 | |||
31885 | |||
31886 | # Check whether --enable-convert-32-bgrx-8888 was given. | ||
31887 | if test "${enable_convert_32_bgrx_8888+set}" = set; then : | ||
31888 | enableval=$enable_convert_32_bgrx_8888; conv_32_bgrx_8888=$enableval | ||
31889 | else | ||
31890 | conv_32_bgrx_8888=yes | ||
31891 | |||
31892 | fi | ||
31893 | |||
31894 | |||
31895 | |||
31896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 32bpp BGRX 8888 converter code" >&5 | ||
31897 | $as_echo_n "checking whether to build 32bpp BGRX 8888 converter code... " >&6; } | ||
31898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_32_bgrx_8888" >&5 | ||
31899 | $as_echo "$conv_32_bgrx_8888" >&6; } | ||
31900 | |||
31901 | if test "x$conv_32_bgrx_8888" = "xyes" ; then | ||
31902 | |||
31903 | $as_echo "#define BUILD_CONVERT_32_BGRX_8888 1" >>confdefs.h | ||
31904 | |||
31905 | fi | ||
31906 | |||
31907 | |||
31908 | |||
31909 | |||
31910 | |||
31911 | |||
31912 | ####################################### | ||
31913 | ## Convert to 24bpp RGB 666 (666 ezx) | ||
31914 | conv_24_rgb_ezx="yes" | ||
31915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 24bpp 666 (666 ezx) converter code" >&5 | ||
31916 | $as_echo_n "checking whether to build 24bpp 666 (666 ezx) converter code... " >&6; } | ||
31917 | # Check whether --enable-convert-24-rgb-ezx was given. | ||
31918 | if test "${enable_convert_24_rgb_ezx+set}" = set; then : | ||
31919 | enableval=$enable_convert_24_rgb_ezx; | ||
31920 | if test "x$enableval" = "xyes" ; then | ||
31921 | |||
31922 | $as_echo "#define BUILD_CONVERT_24_RGB_666 1" >>confdefs.h | ||
31923 | |||
31924 | conv_24_rgb_ezx="yes" | ||
31925 | else | ||
31926 | conv_24_rgb_ezx="no" | ||
31927 | fi | ||
31928 | |||
31929 | else | ||
31930 | |||
31931 | if test "x$conv_24_rgb_ezx" = "xyes" ; then | ||
31932 | |||
31933 | $as_echo "#define BUILD_CONVERT_24_RGB_666 1" >>confdefs.h | ||
31934 | |||
31935 | fi | ||
31936 | |||
31937 | |||
31938 | fi | ||
31939 | |||
31940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_24_rgb_ezx" >&5 | ||
31941 | $as_echo "$conv_24_rgb_ezx" >&6; } | ||
31942 | |||
31943 | ####################################### | ||
31944 | ## Convert to 32bpp RGB 666 (666 ezx) | ||
31945 | conv_32_rgb_ezx="yes" | ||
31946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 32bpp 666 (666 ezx) converter code" >&5 | ||
31947 | $as_echo_n "checking whether to build 32bpp 666 (666 ezx) converter code... " >&6; } | ||
31948 | # Check whether --enable-convert-32-rgb-ezx was given. | ||
31949 | if test "${enable_convert_32_rgb_ezx+set}" = set; then : | ||
31950 | enableval=$enable_convert_32_rgb_ezx; | ||
31951 | if test "x$enableval" = "xyes" ; then | ||
31952 | |||
31953 | $as_echo "#define BUILD_CONVERT_32_RGB_666 1" >>confdefs.h | ||
31954 | |||
31955 | conv_32_rgb_ezx="yes" | ||
31956 | else | ||
31957 | conv_32_rgb_ezx="no" | ||
31958 | fi | ||
31959 | |||
31960 | else | ||
31961 | |||
31962 | if test "x$conv_32_rgb_ezx" = "xyes" ; then | ||
31963 | |||
31964 | $as_echo "#define BUILD_CONVERT_32_RGB_666 1" >>confdefs.h | ||
31965 | |||
31966 | fi | ||
31967 | |||
31968 | |||
31969 | fi | ||
31970 | |||
31971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_32_rgb_ezx" >&5 | ||
31972 | $as_echo "$conv_32_rgb_ezx" >&6; } | ||
31973 | |||
31974 | ####################################### | ||
31975 | ## Convert to 32bpp RGB with rotation of 0 | ||
31976 | |||
31977 | |||
31978 | conv_32_rgb_rot_0="no" | ||
31979 | |||
31980 | |||
31981 | # Check whether --enable-convert-32-rgb-rot-0 was given. | ||
31982 | if test "${enable_convert_32_rgb_rot_0+set}" = set; then : | ||
31983 | enableval=$enable_convert_32_rgb_rot_0; conv_32_rgb_rot_0=$enableval | ||
31984 | else | ||
31985 | conv_32_rgb_rot_0=yes | ||
31986 | |||
31987 | fi | ||
31988 | |||
31989 | |||
31990 | |||
31991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 32bpp RGB rotation 0 converter code" >&5 | ||
31992 | $as_echo_n "checking whether to build 32bpp RGB rotation 0 converter code... " >&6; } | ||
31993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_32_rgb_rot_0" >&5 | ||
31994 | $as_echo "$conv_32_rgb_rot_0" >&6; } | ||
31995 | |||
31996 | if test "x$conv_32_rgb_rot_0" = "xyes" ; then | ||
31997 | |||
31998 | $as_echo "#define BUILD_CONVERT_32_RGB_ROT0 1" >>confdefs.h | ||
31999 | |||
32000 | fi | ||
32001 | |||
32002 | |||
32003 | |||
32004 | |||
32005 | |||
32006 | ## Convert to 32bpp RGB with rotation of 180 | ||
32007 | |||
32008 | |||
32009 | conv_32_rgb_rot_180="no" | ||
32010 | |||
32011 | |||
32012 | # Check whether --enable-convert-32-rgb-rot-180 was given. | ||
32013 | if test "${enable_convert_32_rgb_rot_180+set}" = set; then : | ||
32014 | enableval=$enable_convert_32_rgb_rot_180; conv_32_rgb_rot_180=$enableval | ||
32015 | else | ||
32016 | conv_32_rgb_rot_180=yes | ||
32017 | |||
32018 | fi | ||
32019 | |||
32020 | |||
32021 | |||
32022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 32bpp RGB rotation 180 converter code" >&5 | ||
32023 | $as_echo_n "checking whether to build 32bpp RGB rotation 180 converter code... " >&6; } | ||
32024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_32_rgb_rot_180" >&5 | ||
32025 | $as_echo "$conv_32_rgb_rot_180" >&6; } | ||
32026 | |||
32027 | if test "x$conv_32_rgb_rot_180" = "xyes" ; then | ||
32028 | |||
32029 | $as_echo "#define BUILD_CONVERT_32_RGB_ROT180 1" >>confdefs.h | ||
32030 | |||
32031 | fi | ||
32032 | |||
32033 | |||
32034 | |||
32035 | |||
32036 | |||
32037 | ## Convert to 32bpp RGB with rotation of 270 | ||
32038 | |||
32039 | |||
32040 | conv_32_rgb_rot_270="no" | ||
32041 | |||
32042 | |||
32043 | # Check whether --enable-convert-32-rgb-rot-270 was given. | ||
32044 | if test "${enable_convert_32_rgb_rot_270+set}" = set; then : | ||
32045 | enableval=$enable_convert_32_rgb_rot_270; conv_32_rgb_rot_270=$enableval | ||
32046 | else | ||
32047 | conv_32_rgb_rot_270=yes | ||
32048 | |||
32049 | fi | ||
32050 | |||
32051 | |||
32052 | |||
32053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 32bpp RGB rotation 270 converter code" >&5 | ||
32054 | $as_echo_n "checking whether to build 32bpp RGB rotation 270 converter code... " >&6; } | ||
32055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_32_rgb_rot_270" >&5 | ||
32056 | $as_echo "$conv_32_rgb_rot_270" >&6; } | ||
32057 | |||
32058 | if test "x$conv_32_rgb_rot_270" = "xyes" ; then | ||
32059 | |||
32060 | $as_echo "#define BUILD_CONVERT_32_RGB_ROT270 1" >>confdefs.h | ||
32061 | |||
32062 | fi | ||
32063 | |||
32064 | |||
32065 | |||
32066 | |||
32067 | |||
32068 | ## Convert to 32bpp RGB with rotation of 90 | ||
32069 | |||
32070 | |||
32071 | conv_32_rgb_rot_90="no" | ||
32072 | |||
32073 | |||
32074 | # Check whether --enable-convert-32-rgb-rot-90 was given. | ||
32075 | if test "${enable_convert_32_rgb_rot_90+set}" = set; then : | ||
32076 | enableval=$enable_convert_32_rgb_rot_90; conv_32_rgb_rot_90=$enableval | ||
32077 | else | ||
32078 | conv_32_rgb_rot_90=yes | ||
32079 | |||
32080 | fi | ||
32081 | |||
32082 | |||
32083 | |||
32084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 32bpp RGB rotation 90 converter code" >&5 | ||
32085 | $as_echo_n "checking whether to build 32bpp RGB rotation 90 converter code... " >&6; } | ||
32086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_32_rgb_rot_90" >&5 | ||
32087 | $as_echo "$conv_32_rgb_rot_90" >&6; } | ||
32088 | |||
32089 | if test "x$conv_32_rgb_rot_90" = "xyes" ; then | ||
32090 | |||
32091 | $as_echo "#define BUILD_CONVERT_32_RGB_ROT90 1" >>confdefs.h | ||
32092 | |||
32093 | fi | ||
32094 | |||
32095 | |||
32096 | |||
32097 | |||
32098 | |||
32099 | |||
32100 | ####################################### | ||
32101 | ## Convert to 8bpp grayscale with 256 value, no palette | ||
32102 | |||
32103 | |||
32104 | conv_8_gry_1="no" | ||
32105 | |||
32106 | |||
32107 | # Check whether --enable-convert-8-gry-1 was given. | ||
32108 | if test "${enable_convert_8_gry_1+set}" = set; then : | ||
32109 | enableval=$enable_convert_8_gry_1; conv_8_gry_1=$enableval | ||
32110 | else | ||
32111 | conv_8_gry_1=yes | ||
32112 | |||
32113 | fi | ||
32114 | |||
32115 | |||
32116 | |||
32117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 8bpp GRY 1 converter code" >&5 | ||
32118 | $as_echo_n "checking whether to build 8bpp GRY 1 converter code... " >&6; } | ||
32119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_8_gry_1" >&5 | ||
32120 | $as_echo "$conv_8_gry_1" >&6; } | ||
32121 | |||
32122 | if test "x$conv_8_gry_1" = "xyes" ; then | ||
32123 | |||
32124 | $as_echo "#define BUILD_CONVERT_8_GRY_1 1" >>confdefs.h | ||
32125 | |||
32126 | fi | ||
32127 | |||
32128 | |||
32129 | |||
32130 | |||
32131 | |||
32132 | ## Convert to 8bpp grayscale with 16 value, no palette | ||
32133 | |||
32134 | |||
32135 | conv_8_gry_16="no" | ||
32136 | |||
32137 | |||
32138 | # Check whether --enable-convert-8-gry-16 was given. | ||
32139 | if test "${enable_convert_8_gry_16+set}" = set; then : | ||
32140 | enableval=$enable_convert_8_gry_16; conv_8_gry_16=$enableval | ||
32141 | else | ||
32142 | conv_8_gry_16=yes | ||
32143 | |||
32144 | fi | ||
32145 | |||
32146 | |||
32147 | |||
32148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 8bpp GRY 16 converter code" >&5 | ||
32149 | $as_echo_n "checking whether to build 8bpp GRY 16 converter code... " >&6; } | ||
32150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_8_gry_16" >&5 | ||
32151 | $as_echo "$conv_8_gry_16" >&6; } | ||
32152 | |||
32153 | if test "x$conv_8_gry_16" = "xyes" ; then | ||
32154 | |||
32155 | $as_echo "#define BUILD_CONVERT_8_GRY_16 1" >>confdefs.h | ||
32156 | |||
32157 | fi | ||
32158 | |||
32159 | |||
32160 | |||
32161 | |||
32162 | |||
32163 | |||
32164 | ####################################### | ||
32165 | ## Convert to 8bpp grayscale, 64-palette | ||
32166 | conv_8_grayscale_64="yes" | ||
32167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 8bpp grayscale 64-palette converter code" >&5 | ||
32168 | $as_echo_n "checking whether to build 8bpp grayscale 64-palette converter code... " >&6; } | ||
32169 | # Check whether --enable-convert-8-grayscale-64 was given. | ||
32170 | if test "${enable_convert_8_grayscale_64+set}" = set; then : | ||
32171 | enableval=$enable_convert_8_grayscale_64; | ||
32172 | if test "x$enableval" = "xyes"; then | ||
32173 | |||
32174 | $as_echo "#define BUILD_CONVERT_8_GRAYSCALE_64 1" >>confdefs.h | ||
32175 | |||
32176 | conv_8_grayscale_64="yes" | ||
32177 | else | ||
32178 | conv_8_grayscale_64="no" | ||
32179 | fi | ||
32180 | |||
32181 | else | ||
32182 | |||
32183 | if test "x$conv_8_grayscale_64" = "xyes"; then | ||
32184 | |||
32185 | $as_echo "#define BUILD_CONVERT_8_GRAYSCALE_64 1" >>confdefs.h | ||
32186 | |||
32187 | fi | ||
32188 | |||
32189 | |||
32190 | fi | ||
32191 | |||
32192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_8_grayscale_64" >&5 | ||
32193 | $as_echo "$conv_8_grayscale_64" >&6; } | ||
32194 | |||
32195 | ## valgrind | ||
32196 | want_valgrind="no" | ||
32197 | have_valgrind="no" | ||
32198 | |||
32199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable build with valgrind" >&5 | ||
32200 | $as_echo_n "checking whether to enable build with valgrind... " >&6; } | ||
32201 | # Check whether --enable-valgrind was given. | ||
32202 | if test "${enable_valgrind+set}" = set; then : | ||
32203 | enableval=$enable_valgrind; want_valgrind=$enableval | ||
32204 | |||
32205 | fi | ||
32206 | |||
32207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_valgrind" >&5 | ||
32208 | $as_echo "$want_valgrind" >&6; } | ||
32209 | |||
32210 | if test x$want_valgrind = "xyes"; then | ||
32211 | |||
32212 | pkg_failed=no | ||
32213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5 | ||
32214 | $as_echo_n "checking for VALGRIND... " >&6; } | ||
32215 | |||
32216 | if test -n "$VALGRIND_CFLAGS"; then | ||
32217 | pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS" | ||
32218 | elif test -n "$PKG_CONFIG"; then | ||
32219 | if test -n "$PKG_CONFIG" && \ | ||
32220 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind >= 2.4.0\""; } >&5 | ||
32221 | ($PKG_CONFIG --exists --print-errors "valgrind >= 2.4.0") 2>&5 | ||
32222 | ac_status=$? | ||
32223 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
32224 | test $ac_status = 0; }; then | ||
32225 | pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind >= 2.4.0" 2>/dev/null` | ||
32226 | else | ||
32227 | pkg_failed=yes | ||
32228 | fi | ||
32229 | else | ||
32230 | pkg_failed=untried | ||
32231 | fi | ||
32232 | if test -n "$VALGRIND_LIBS"; then | ||
32233 | pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS" | ||
32234 | elif test -n "$PKG_CONFIG"; then | ||
32235 | if test -n "$PKG_CONFIG" && \ | ||
32236 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind >= 2.4.0\""; } >&5 | ||
32237 | ($PKG_CONFIG --exists --print-errors "valgrind >= 2.4.0") 2>&5 | ||
32238 | ac_status=$? | ||
32239 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
32240 | test $ac_status = 0; }; then | ||
32241 | pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind >= 2.4.0" 2>/dev/null` | ||
32242 | else | ||
32243 | pkg_failed=yes | ||
32244 | fi | ||
32245 | else | ||
32246 | pkg_failed=untried | ||
32247 | fi | ||
32248 | |||
32249 | |||
32250 | |||
32251 | if test $pkg_failed = yes; then | ||
32252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
32253 | $as_echo "no" >&6; } | ||
32254 | |||
32255 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
32256 | _pkg_short_errors_supported=yes | ||
32257 | else | ||
32258 | _pkg_short_errors_supported=no | ||
32259 | fi | ||
32260 | if test $_pkg_short_errors_supported = yes; then | ||
32261 | VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "valgrind >= 2.4.0" 2>&1` | ||
32262 | else | ||
32263 | VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors "valgrind >= 2.4.0" 2>&1` | ||
32264 | fi | ||
32265 | # Put the nasty error message in config.log where it belongs | ||
32266 | echo "$VALGRIND_PKG_ERRORS" >&5 | ||
32267 | |||
32268 | |||
32269 | if test "x$want_valgrind" = "xyes" -a "x$use_strict" = "xyes" ; then | ||
32270 | as_fn_error $? "Valgrind not found (strict dependencies checking)" "$LINENO" 5 | ||
32271 | fi | ||
32272 | |||
32273 | |||
32274 | elif test $pkg_failed = untried; then | ||
32275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
32276 | $as_echo "no" >&6; } | ||
32277 | |||
32278 | if test "x$want_valgrind" = "xyes" -a "x$use_strict" = "xyes" ; then | ||
32279 | as_fn_error $? "Valgrind not found (strict dependencies checking)" "$LINENO" 5 | ||
32280 | fi | ||
32281 | |||
32282 | |||
32283 | else | ||
32284 | VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS | ||
32285 | VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS | ||
32286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
32287 | $as_echo "yes" >&6; } | ||
32288 | |||
32289 | |||
32290 | $as_echo "#define HAVE_VALGRIND 1" >>confdefs.h | ||
32291 | |||
32292 | have_valgrind=yes | ||
32293 | requirement_evas="valgrind ${requirement_evas}" | ||
32294 | |||
32295 | fi | ||
32296 | fi | ||
32297 | |||
32298 | ## Examples | ||
32299 | |||
32300 | install_examples="yes" | ||
32301 | # Check whether --enable-install-examples was given. | ||
32302 | if test "${enable_install_examples+set}" = set; then : | ||
32303 | enableval=$enable_install_examples; | ||
32304 | if test "x${enableval}" = "xyes" ; then | ||
32305 | install_examples="yes" | ||
32306 | else | ||
32307 | install_examples="no" | ||
32308 | fi | ||
32309 | |||
32310 | else | ||
32311 | install_examples="yes" | ||
32312 | fi | ||
32313 | |||
32314 | if test "x${install_examples}" = "xyes"; then | ||
32315 | INSTALL_EXAMPLES_TRUE= | ||
32316 | INSTALL_EXAMPLES_FALSE='#' | ||
32317 | else | ||
32318 | INSTALL_EXAMPLES_TRUE='#' | ||
32319 | INSTALL_EXAMPLES_FALSE= | ||
32320 | fi | ||
32321 | |||
32322 | |||
32323 | build_examples="no" | ||
32324 | # Check whether --enable-build-examples was given. | ||
32325 | if test "${enable_build_examples+set}" = set; then : | ||
32326 | enableval=$enable_build_examples; | ||
32327 | if test "x${enableval}" = "xyes" ; then | ||
32328 | build_examples="yes" | ||
32329 | # put in here the dependencies for Evas' examples. they are | ||
32330 | # meant to be 'real world' usage examples, thus one will be | ||
32331 | # using higher level libraries on these programs | ||
32332 | |||
32333 | pkg_failed=no | ||
32334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECORE_EVAS" >&5 | ||
32335 | $as_echo_n "checking for ECORE_EVAS... " >&6; } | ||
32336 | |||
32337 | if test -n "$ECORE_EVAS_CFLAGS"; then | ||
32338 | pkg_cv_ECORE_EVAS_CFLAGS="$ECORE_EVAS_CFLAGS" | ||
32339 | elif test -n "$PKG_CONFIG"; then | ||
32340 | if test -n "$PKG_CONFIG" && \ | ||
32341 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-evas ecore\""; } >&5 | ||
32342 | ($PKG_CONFIG --exists --print-errors "ecore-evas ecore") 2>&5 | ||
32343 | ac_status=$? | ||
32344 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
32345 | test $ac_status = 0; }; then | ||
32346 | pkg_cv_ECORE_EVAS_CFLAGS=`$PKG_CONFIG --cflags "ecore-evas ecore" 2>/dev/null` | ||
32347 | else | ||
32348 | pkg_failed=yes | ||
32349 | fi | ||
32350 | else | ||
32351 | pkg_failed=untried | ||
32352 | fi | ||
32353 | if test -n "$ECORE_EVAS_LIBS"; then | ||
32354 | pkg_cv_ECORE_EVAS_LIBS="$ECORE_EVAS_LIBS" | ||
32355 | elif test -n "$PKG_CONFIG"; then | ||
32356 | if test -n "$PKG_CONFIG" && \ | ||
32357 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-evas ecore\""; } >&5 | ||
32358 | ($PKG_CONFIG --exists --print-errors "ecore-evas ecore") 2>&5 | ||
32359 | ac_status=$? | ||
32360 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
32361 | test $ac_status = 0; }; then | ||
32362 | pkg_cv_ECORE_EVAS_LIBS=`$PKG_CONFIG --libs "ecore-evas ecore" 2>/dev/null` | ||
32363 | else | ||
32364 | pkg_failed=yes | ||
32365 | fi | ||
32366 | else | ||
32367 | pkg_failed=untried | ||
32368 | fi | ||
32369 | |||
32370 | |||
32371 | |||
32372 | if test $pkg_failed = yes; then | ||
32373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
32374 | $as_echo "no" >&6; } | ||
32375 | |||
32376 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
32377 | _pkg_short_errors_supported=yes | ||
32378 | else | ||
32379 | _pkg_short_errors_supported=no | ||
32380 | fi | ||
32381 | if test $_pkg_short_errors_supported = yes; then | ||
32382 | ECORE_EVAS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ecore-evas ecore" 2>&1` | ||
32383 | else | ||
32384 | ECORE_EVAS_PKG_ERRORS=`$PKG_CONFIG --print-errors "ecore-evas ecore" 2>&1` | ||
32385 | fi | ||
32386 | # Put the nasty error message in config.log where it belongs | ||
32387 | echo "$ECORE_EVAS_PKG_ERRORS" >&5 | ||
32388 | |||
32389 | build_examples="no" | ||
32390 | elif test $pkg_failed = untried; then | ||
32391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
32392 | $as_echo "no" >&6; } | ||
32393 | build_examples="no" | ||
32394 | else | ||
32395 | ECORE_EVAS_CFLAGS=$pkg_cv_ECORE_EVAS_CFLAGS | ||
32396 | ECORE_EVAS_LIBS=$pkg_cv_ECORE_EVAS_LIBS | ||
32397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
32398 | $as_echo "yes" >&6; } | ||
32399 | |||
32400 | fi | ||
32401 | |||
32402 | pkg_failed=no | ||
32403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EDJE" >&5 | ||
32404 | $as_echo_n "checking for EDJE... " >&6; } | ||
32405 | |||
32406 | if test -n "$EDJE_CFLAGS"; then | ||
32407 | pkg_cv_EDJE_CFLAGS="$EDJE_CFLAGS" | ||
32408 | elif test -n "$PKG_CONFIG"; then | ||
32409 | if test -n "$PKG_CONFIG" && \ | ||
32410 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"edje\""; } >&5 | ||
32411 | ($PKG_CONFIG --exists --print-errors "edje") 2>&5 | ||
32412 | ac_status=$? | ||
32413 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
32414 | test $ac_status = 0; }; then | ||
32415 | pkg_cv_EDJE_CFLAGS=`$PKG_CONFIG --cflags "edje" 2>/dev/null` | ||
32416 | else | ||
32417 | pkg_failed=yes | ||
32418 | fi | ||
32419 | else | ||
32420 | pkg_failed=untried | ||
32421 | fi | ||
32422 | if test -n "$EDJE_LIBS"; then | ||
32423 | pkg_cv_EDJE_LIBS="$EDJE_LIBS" | ||
32424 | elif test -n "$PKG_CONFIG"; then | ||
32425 | if test -n "$PKG_CONFIG" && \ | ||
32426 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"edje\""; } >&5 | ||
32427 | ($PKG_CONFIG --exists --print-errors "edje") 2>&5 | ||
32428 | ac_status=$? | ||
32429 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
32430 | test $ac_status = 0; }; then | ||
32431 | pkg_cv_EDJE_LIBS=`$PKG_CONFIG --libs "edje" 2>/dev/null` | ||
32432 | else | ||
32433 | pkg_failed=yes | ||
32434 | fi | ||
32435 | else | ||
32436 | pkg_failed=untried | ||
32437 | fi | ||
32438 | |||
32439 | |||
32440 | |||
32441 | if test $pkg_failed = yes; then | ||
32442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
32443 | $as_echo "no" >&6; } | ||
32444 | |||
32445 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
32446 | _pkg_short_errors_supported=yes | ||
32447 | else | ||
32448 | _pkg_short_errors_supported=no | ||
32449 | fi | ||
32450 | if test $_pkg_short_errors_supported = yes; then | ||
32451 | EDJE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "edje" 2>&1` | ||
32452 | else | ||
32453 | EDJE_PKG_ERRORS=`$PKG_CONFIG --print-errors "edje" 2>&1` | ||
32454 | fi | ||
32455 | # Put the nasty error message in config.log where it belongs | ||
32456 | echo "$EDJE_PKG_ERRORS" >&5 | ||
32457 | |||
32458 | build_examples="no" | ||
32459 | elif test $pkg_failed = untried; then | ||
32460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
32461 | $as_echo "no" >&6; } | ||
32462 | build_examples="no" | ||
32463 | else | ||
32464 | EDJE_CFLAGS=$pkg_cv_EDJE_CFLAGS | ||
32465 | EDJE_LIBS=$pkg_cv_EDJE_LIBS | ||
32466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
32467 | $as_echo "yes" >&6; } | ||
32468 | edje_cc=$($PKG_CONFIG --variable=prefix edje)/bin/edje_cc | ||
32469 | fi | ||
32470 | |||
32471 | else | ||
32472 | build_examples="no" | ||
32473 | fi | ||
32474 | |||
32475 | else | ||
32476 | build_examples="no" | ||
32477 | fi | ||
32478 | |||
32479 | if test "x${build_examples}" = "xyes"; then | ||
32480 | BUILD_EXAMPLES_TRUE= | ||
32481 | BUILD_EXAMPLES_FALSE='#' | ||
32482 | else | ||
32483 | BUILD_EXAMPLES_TRUE='#' | ||
32484 | BUILD_EXAMPLES_FALSE= | ||
32485 | fi | ||
32486 | |||
32487 | |||
32488 | ## Unit tests, coverage | ||
32489 | |||
32490 | |||
32491 | |||
32492 | |||
32493 | # Check whether --enable-tests was given. | ||
32494 | if test "${enable_tests+set}" = set; then : | ||
32495 | enableval=$enable_tests; | ||
32496 | if test "x${enableval}" = "xyes" ; then | ||
32497 | _efl_enable_tests="yes" | ||
32498 | else | ||
32499 | _efl_enable_tests="no" | ||
32500 | fi | ||
32501 | |||
32502 | else | ||
32503 | _efl_enable_tests="no" | ||
32504 | fi | ||
32505 | |||
32506 | |||
32507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests are built" >&5 | ||
32508 | $as_echo_n "checking whether tests are built... " >&6; } | ||
32509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_tests}" >&5 | ||
32510 | $as_echo "${_efl_enable_tests}" >&6; } | ||
32511 | |||
32512 | |||
32513 | |||
32514 | if test "x${_efl_enable_tests}" = "xyes" ; then | ||
32515 | |||
32516 | pkg_failed=no | ||
32517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5 | ||
32518 | $as_echo_n "checking for CHECK... " >&6; } | ||
32519 | |||
32520 | if test -n "$CHECK_CFLAGS"; then | ||
32521 | pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS" | ||
32522 | elif test -n "$PKG_CONFIG"; then | ||
32523 | if test -n "$PKG_CONFIG" && \ | ||
32524 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.5\""; } >&5 | ||
32525 | ($PKG_CONFIG --exists --print-errors "check >= 0.9.5") 2>&5 | ||
32526 | ac_status=$? | ||
32527 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
32528 | test $ac_status = 0; }; then | ||
32529 | pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.5" 2>/dev/null` | ||
32530 | else | ||
32531 | pkg_failed=yes | ||
32532 | fi | ||
32533 | else | ||
32534 | pkg_failed=untried | ||
32535 | fi | ||
32536 | if test -n "$CHECK_LIBS"; then | ||
32537 | pkg_cv_CHECK_LIBS="$CHECK_LIBS" | ||
32538 | elif test -n "$PKG_CONFIG"; then | ||
32539 | if test -n "$PKG_CONFIG" && \ | ||
32540 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.5\""; } >&5 | ||
32541 | ($PKG_CONFIG --exists --print-errors "check >= 0.9.5") 2>&5 | ||
32542 | ac_status=$? | ||
32543 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
32544 | test $ac_status = 0; }; then | ||
32545 | pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.5" 2>/dev/null` | ||
32546 | else | ||
32547 | pkg_failed=yes | ||
32548 | fi | ||
32549 | else | ||
32550 | pkg_failed=untried | ||
32551 | fi | ||
32552 | |||
32553 | |||
32554 | |||
32555 | if test $pkg_failed = yes; then | ||
32556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
32557 | $as_echo "no" >&6; } | ||
32558 | |||
32559 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
32560 | _pkg_short_errors_supported=yes | ||
32561 | else | ||
32562 | _pkg_short_errors_supported=no | ||
32563 | fi | ||
32564 | if test $_pkg_short_errors_supported = yes; then | ||
32565 | CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "check >= 0.9.5" 2>&1` | ||
32566 | else | ||
32567 | CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors "check >= 0.9.5" 2>&1` | ||
32568 | fi | ||
32569 | # Put the nasty error message in config.log where it belongs | ||
32570 | echo "$CHECK_PKG_ERRORS" >&5 | ||
32571 | |||
32572 | _efl_enable_tests="no" | ||
32573 | elif test $pkg_failed = untried; then | ||
32574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
32575 | $as_echo "no" >&6; } | ||
32576 | _efl_enable_tests="no" | ||
32577 | else | ||
32578 | CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS | ||
32579 | CHECK_LIBS=$pkg_cv_CHECK_LIBS | ||
32580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
32581 | $as_echo "yes" >&6; } | ||
32582 | dummy="yes" | ||
32583 | fi | ||
32584 | fi | ||
32585 | if test "x${_efl_enable_tests}" = "xyes" ; then | ||
32586 | |||
32587 | $as_echo "#define HAVE_TESTS 1" >>confdefs.h | ||
32588 | |||
32589 | fi | ||
32590 | |||
32591 | if test "x${_efl_enable_tests}" = "xyes"; then | ||
32592 | EFL_ENABLE_TESTS_TRUE= | ||
32593 | EFL_ENABLE_TESTS_FALSE='#' | ||
32594 | else | ||
32595 | EFL_ENABLE_TESTS_TRUE='#' | ||
32596 | EFL_ENABLE_TESTS_FALSE= | ||
32597 | fi | ||
32598 | |||
32599 | |||
32600 | if test "x$_efl_enable_tests" = "xyes"; then : | ||
32601 | enable_tests="yes" | ||
32602 | else | ||
32603 | enable_tests="no" | ||
32604 | fi | ||
32605 | |||
32606 | |||
32607 | |||
32608 | |||
32609 | |||
32610 | # Check whether --enable-coverage was given. | ||
32611 | if test "${enable_coverage+set}" = set; then : | ||
32612 | enableval=$enable_coverage; | ||
32613 | if test "x${enableval}" = "xyes" ; then | ||
32614 | _efl_enable_coverage="yes" | ||
32615 | else | ||
32616 | _efl_enable_coverage="no" | ||
32617 | fi | ||
32618 | |||
32619 | else | ||
32620 | _efl_enable_coverage="no" | ||
32621 | fi | ||
32622 | |||
32623 | |||
32624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use profiling instrumentation" >&5 | ||
32625 | $as_echo_n "checking whether to use profiling instrumentation... " >&6; } | ||
32626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_efl_enable_coverage" >&5 | ||
32627 | $as_echo "$_efl_enable_coverage" >&6; } | ||
32628 | |||
32629 | |||
32630 | if test "x$_efl_enable_coverage" = "xyes" && test ! "x${enable_tests}" = "xyes" ; then | ||
32631 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Coverage report requested but tests not being built, disable profiling instrumentation." >&5 | ||
32632 | $as_echo "$as_me: WARNING: Coverage report requested but tests not being built, disable profiling instrumentation." >&2;} | ||
32633 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Run configure with --enable-tests" >&5 | ||
32634 | $as_echo "$as_me: WARNING: Run configure with --enable-tests" >&2;} | ||
32635 | _efl_enable_coverage="no" | ||
32636 | fi | ||
32637 | |||
32638 | if test "x$_efl_enable_coverage" = "xyes" ; then | ||
32639 | # Extract the first word of "lcov", so it can be a program name with args. | ||
32640 | set dummy lcov; ac_word=$2 | ||
32641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
32642 | $as_echo_n "checking for $ac_word... " >&6; } | ||
32643 | if test "${ac_cv_prog_have_lcov+set}" = set; then : | ||
32644 | $as_echo_n "(cached) " >&6 | ||
32645 | else | ||
32646 | if test -n "$have_lcov"; then | ||
32647 | ac_cv_prog_have_lcov="$have_lcov" # Let the user override the test. | ||
32648 | else | ||
32649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
32650 | for as_dir in $PATH | ||
32651 | do | ||
32652 | IFS=$as_save_IFS | ||
32653 | test -z "$as_dir" && as_dir=. | ||
32654 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
32655 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
32656 | ac_cv_prog_have_lcov="yes" | ||
32657 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
32658 | break 2 | ||
32659 | fi | ||
32660 | done | ||
32661 | done | ||
32662 | IFS=$as_save_IFS | ||
32663 | |||
32664 | test -z "$ac_cv_prog_have_lcov" && ac_cv_prog_have_lcov="no" | ||
32665 | fi | ||
32666 | fi | ||
32667 | have_lcov=$ac_cv_prog_have_lcov | ||
32668 | if test -n "$have_lcov"; then | ||
32669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_lcov" >&5 | ||
32670 | $as_echo "$have_lcov" >&6; } | ||
32671 | else | ||
32672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
32673 | $as_echo "no" >&6; } | ||
32674 | fi | ||
32675 | |||
32676 | |||
32677 | if test "x$have_lcov" = "xyes" ; then | ||
32678 | EFL_COVERAGE_CFLAGS="-fprofile-arcs -ftest-coverage" | ||
32679 | EFL_COVERAGE_LIBS="-lgcov" | ||
32680 | # remove any optimisation flag and force debug symbols | ||
32681 | EFL_DEBUG_CFLAGS="-g -O0 -DDEBUG" | ||
32682 | else | ||
32683 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: lcov is not found, disable profiling instrumentation" >&5 | ||
32684 | $as_echo "$as_me: WARNING: lcov is not found, disable profiling instrumentation" >&2;} | ||
32685 | _efl_enable_coverage="no" | ||
32686 | fi | ||
32687 | fi | ||
32688 | |||
32689 | |||
32690 | |||
32691 | |||
32692 | if test "x${_efl_enable_coverage}" = "xyes"; then | ||
32693 | EFL_ENABLE_COVERAGE_TRUE= | ||
32694 | EFL_ENABLE_COVERAGE_FALSE='#' | ||
32695 | else | ||
32696 | EFL_ENABLE_COVERAGE_TRUE='#' | ||
32697 | EFL_ENABLE_COVERAGE_FALSE= | ||
32698 | fi | ||
32699 | |||
32700 | |||
32701 | if test "x$_efl_enable_coverage" = "xyes"; then : | ||
32702 | enable_coverage="yes" | ||
32703 | else | ||
32704 | enable_coverage="no" | ||
32705 | fi | ||
32706 | |||
32707 | EVAS_CFLAGS="${EVAS_CFLAGS} ${EFL_COVERAGE_CFLAGS} ${EXOTIC_CFLAGS}" | ||
32708 | EVAS_LIBS="${EVAS_LIBS} ${EFL_COVERAGE_LIBS} ${EXOTIC_LIBS}" | ||
32709 | if test "x$enable_coverage" = "xyes" ; then | ||
32710 | EVAS_CFLAGS="${EVAS_CFLAGS} ${EFL_DEBUG_CFLAGS}" | ||
32711 | fi | ||
32712 | |||
32713 | |||
32714 | |||
32715 | |||
32716 | ##################################################################### | ||
32717 | ## Fill in flags | ||
32718 | |||
32719 | |||
32720 | |||
32721 | |||
32722 | |||
32723 | |||
32724 | |||
32725 | ##################################################################### | ||
32726 | ## Output | ||
32727 | |||
32728 | ac_config_files="$ac_config_files Makefile evas-directfb.pc evas-fb.pc evas-opengl-x11.pc evas-opengl-sdl.pc evas-opengl-cocoa.pc evas-software-buffer.pc evas-software-x11.pc evas-software-8-x11.pc evas-software-16-x11.pc evas-software-gdi.pc evas-software-ddraw.pc evas-software-16-ddraw.pc evas-direct3d.pc evas-software-16-wince.pc evas-software-sdl.pc evas-psl1ght.pc evas-wayland-shm.pc evas-wayland-egl.pc evas.pc doc/evas.dox doc/Makefile doc/Doxyfile src/Makefile src/bin/Makefile src/lib/Makefile src/lib/canvas/Makefile src/lib/file/Makefile src/lib/cache/Makefile src/lib/cserve/Makefile src/lib/engines/Makefile src/lib/engines/common/Makefile src/lib/engines/common/evas_op_add/Makefile src/lib/engines/common/evas_op_blend/Makefile src/lib/engines/common/evas_op_copy/Makefile src/lib/engines/common/evas_op_mask/Makefile src/lib/engines/common/evas_op_mul/Makefile src/lib/engines/common/evas_op_sub/Makefile src/lib/engines/common_8/Makefile src/lib/engines/common_16/Makefile src/modules/Makefile src/modules/engines/Makefile src/modules/engines/software_generic/Makefile src/modules/engines/software_gdi/Makefile src/modules/engines/software_ddraw/Makefile src/modules/engines/direct3d/Makefile src/modules/engines/software_16_wince/Makefile src/modules/engines/software_x11/Makefile src/modules/engines/fb/Makefile src/modules/engines/buffer/Makefile src/modules/engines/directfb/Makefile src/modules/engines/gl_common/Makefile src/modules/engines/gl_x11/Makefile src/modules/engines/gl_sdl/Makefile src/modules/engines/gl_cocoa/Makefile src/modules/engines/psl1ght/Makefile src/modules/engines/software_8/Makefile src/modules/engines/software_8_x11/Makefile src/modules/engines/software_16/Makefile src/modules/engines/software_16_x11/Makefile src/modules/engines/software_16_ddraw/Makefile src/modules/engines/software_16_sdl/Makefile src/modules/engines/wayland_shm/Makefile src/modules/engines/wayland_egl/Makefile src/modules/loaders/Makefile src/modules/loaders/edb/Makefile src/modules/loaders/eet/Makefile src/modules/loaders/gif/Makefile src/modules/loaders/jpeg/Makefile src/modules/loaders/png/Makefile src/modules/loaders/tiff/Makefile src/modules/loaders/xpm/Makefile src/modules/loaders/bmp/Makefile src/modules/loaders/ico/Makefile src/modules/loaders/tga/Makefile src/modules/loaders/svg/Makefile src/modules/loaders/pmaps/Makefile src/modules/loaders/wbmp/Makefile src/modules/loaders/psd/Makefile src/modules/loaders/generic/Makefile src/modules/savers/Makefile src/modules/savers/edb/Makefile src/modules/savers/eet/Makefile src/modules/savers/jpeg/Makefile src/modules/savers/png/Makefile src/modules/savers/tiff/Makefile src/static_deps/Makefile src/static_deps/liblinebreak/Makefile src/lib/include/Makefile src/examples/Makefile src/tests/Makefile evas.spec" | ||
32729 | |||
32730 | cat >confcache <<\_ACEOF | ||
32731 | # This file is a shell script that caches the results of configure | ||
32732 | # tests run on this system so they can be shared between configure | ||
32733 | # scripts and configure runs, see configure's option --config-cache. | ||
32734 | # It is not useful on other systems. If it contains results you don't | ||
32735 | # want to keep, you may remove or edit it. | ||
32736 | # | ||
32737 | # config.status only pays attention to the cache file if you give it | ||
32738 | # the --recheck option to rerun configure. | ||
32739 | # | ||
32740 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
32741 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
32742 | # following values. | ||
32743 | |||
32744 | _ACEOF | ||
32745 | |||
32746 | # The following way of writing the cache mishandles newlines in values, | ||
32747 | # but we know of no workaround that is simple, portable, and efficient. | ||
32748 | # So, we kill variables containing newlines. | ||
32749 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
32750 | # and sets the high bit in the cache file unless we assign to the vars. | ||
32751 | ( | ||
32752 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
32753 | eval ac_val=\$$ac_var | ||
32754 | case $ac_val in #( | ||
32755 | *${as_nl}*) | ||
32756 | case $ac_var in #( | ||
32757 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
32758 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
32759 | esac | ||
32760 | case $ac_var in #( | ||
32761 | _ | IFS | as_nl) ;; #( | ||
32762 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
32763 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
32764 | esac ;; | ||
32765 | esac | ||
32766 | done | ||
32767 | |||
32768 | (set) 2>&1 | | ||
32769 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
32770 | *${as_nl}ac_space=\ *) | ||
32771 | # `set' does not quote correctly, so add quotes: double-quote | ||
32772 | # substitution turns \\\\ into \\, and sed turns \\ into \. | ||
32773 | sed -n \ | ||
32774 | "s/'/'\\\\''/g; | ||
32775 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
32776 | ;; #( | ||
32777 | *) | ||
32778 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
32779 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
32780 | ;; | ||
32781 | esac | | ||
32782 | sort | ||
32783 | ) | | ||
32784 | sed ' | ||
32785 | /^ac_cv_env_/b end | ||
32786 | t clear | ||
32787 | :clear | ||
32788 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
32789 | t end | ||
32790 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
32791 | :end' >>confcache | ||
32792 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
32793 | if test -w "$cache_file"; then | ||
32794 | test "x$cache_file" != "x/dev/null" && | ||
32795 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | ||
32796 | $as_echo "$as_me: updating cache $cache_file" >&6;} | ||
32797 | cat confcache >$cache_file | ||
32798 | else | ||
32799 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | ||
32800 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
32801 | fi | ||
32802 | fi | ||
32803 | rm -f confcache | ||
32804 | |||
32805 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
32806 | # Let make expand exec_prefix. | ||
32807 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
32808 | |||
32809 | DEFS=-DHAVE_CONFIG_H | ||
32810 | |||
32811 | ac_libobjs= | ||
32812 | ac_ltlibobjs= | ||
32813 | U= | ||
32814 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
32815 | # 1. Remove the extension, and $U if already installed. | ||
32816 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
32817 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | ||
32818 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
32819 | # will be set to the directory where LIBOBJS objects are built. | ||
32820 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
32821 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | ||
32822 | done | ||
32823 | LIBOBJS=$ac_libobjs | ||
32824 | |||
32825 | LTLIBOBJS=$ac_ltlibobjs | ||
32826 | |||
32827 | |||
32828 | if test -n "$EXEEXT"; then | ||
32829 | am__EXEEXT_TRUE= | ||
32830 | am__EXEEXT_FALSE='#' | ||
32831 | else | ||
32832 | am__EXEEXT_TRUE='#' | ||
32833 | am__EXEEXT_FALSE= | ||
32834 | fi | ||
32835 | |||
32836 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | ||
32837 | as_fn_error $? "conditional \"AMDEP\" was never defined. | ||
32838 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32839 | fi | ||
32840 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | ||
32841 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | ||
32842 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32843 | fi | ||
32844 | if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then | ||
32845 | as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined. | ||
32846 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32847 | fi | ||
32848 | if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then | ||
32849 | as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined. | ||
32850 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32851 | fi | ||
32852 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | ||
32853 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | ||
32854 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32855 | fi | ||
32856 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | ||
32857 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | ||
32858 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32859 | fi | ||
32860 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | ||
32861 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | ||
32862 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32863 | fi | ||
32864 | if test -z "${EFL_BUILD_DOC_TRUE}" && test -z "${EFL_BUILD_DOC_FALSE}"; then | ||
32865 | as_fn_error $? "conditional \"EFL_BUILD_DOC\" was never defined. | ||
32866 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32867 | fi | ||
32868 | if test -z "${EVAS_HAVE_EXOTIC_TRUE}" && test -z "${EVAS_HAVE_EXOTIC_FALSE}"; then | ||
32869 | as_fn_error $? "conditional \"EVAS_HAVE_EXOTIC\" was never defined. | ||
32870 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32871 | fi | ||
32872 | if test -z "${EVAS_USE_LINEBREAK_TRUE}" && test -z "${EVAS_USE_LINEBREAK_FALSE}"; then | ||
32873 | as_fn_error $? "conditional \"EVAS_USE_LINEBREAK\" was never defined. | ||
32874 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32875 | fi | ||
32876 | |||
32877 | if test -z "${EVAS_CSERVE_TRUE}" && test -z "${EVAS_CSERVE_FALSE}"; then | ||
32878 | as_fn_error $? "conditional \"EVAS_CSERVE\" was never defined. | ||
32879 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32880 | fi | ||
32881 | if test -z "${BUILD_ENGINE_BUFFER_TRUE}" && test -z "${BUILD_ENGINE_BUFFER_FALSE}"; then | ||
32882 | as_fn_error $? "conditional \"BUILD_ENGINE_BUFFER\" was never defined. | ||
32883 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32884 | fi | ||
32885 | if test -z "${EVAS_STATIC_BUILD_BUFFER_TRUE}" && test -z "${EVAS_STATIC_BUILD_BUFFER_FALSE}"; then | ||
32886 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_BUFFER\" was never defined. | ||
32887 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32888 | fi | ||
32889 | if test -z "${BUILD_ENGINE_SOFTWARE_GDI_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_GDI_FALSE}"; then | ||
32890 | as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_GDI\" was never defined. | ||
32891 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32892 | fi | ||
32893 | if test -z "${EVAS_STATIC_BUILD_SOFTWARE_GDI_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_GDI_FALSE}"; then | ||
32894 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_GDI\" was never defined. | ||
32895 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32896 | fi | ||
32897 | if test -z "${BUILD_ENGINE_SOFTWARE_DDRAW_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_DDRAW_FALSE}"; then | ||
32898 | as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_DDRAW\" was never defined. | ||
32899 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32900 | fi | ||
32901 | if test -z "${EVAS_STATIC_BUILD_SOFTWARE_DDRAW_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_DDRAW_FALSE}"; then | ||
32902 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_DDRAW\" was never defined. | ||
32903 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32904 | fi | ||
32905 | if test -z "${BUILD_ENGINE_DIRECT3D_TRUE}" && test -z "${BUILD_ENGINE_DIRECT3D_FALSE}"; then | ||
32906 | as_fn_error $? "conditional \"BUILD_ENGINE_DIRECT3D\" was never defined. | ||
32907 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32908 | fi | ||
32909 | if test -z "${EVAS_STATIC_BUILD_DIRECT3D_TRUE}" && test -z "${EVAS_STATIC_BUILD_DIRECT3D_FALSE}"; then | ||
32910 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_DIRECT3D\" was never defined. | ||
32911 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32912 | fi | ||
32913 | if test -z "${BUILD_ENGINE_PSL1GHT_TRUE}" && test -z "${BUILD_ENGINE_PSL1GHT_FALSE}"; then | ||
32914 | as_fn_error $? "conditional \"BUILD_ENGINE_PSL1GHT\" was never defined. | ||
32915 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32916 | fi | ||
32917 | if test -z "${EVAS_STATIC_BUILD_PSL1GHT_TRUE}" && test -z "${EVAS_STATIC_BUILD_PSL1GHT_FALSE}"; then | ||
32918 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_PSL1GHT\" was never defined. | ||
32919 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32920 | fi | ||
32921 | if test -z "${BUILD_ENGINE_GL_SDL_TRUE}" && test -z "${BUILD_ENGINE_GL_SDL_FALSE}"; then | ||
32922 | as_fn_error $? "conditional \"BUILD_ENGINE_GL_SDL\" was never defined. | ||
32923 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32924 | fi | ||
32925 | if test -z "${EVAS_STATIC_BUILD_GL_SDL_TRUE}" && test -z "${EVAS_STATIC_BUILD_GL_SDL_FALSE}"; then | ||
32926 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_GL_SDL\" was never defined. | ||
32927 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32928 | fi | ||
32929 | if test -z "${BUILD_ENGINE_GL_COCOA_TRUE}" && test -z "${BUILD_ENGINE_GL_COCOA_FALSE}"; then | ||
32930 | as_fn_error $? "conditional \"BUILD_ENGINE_GL_COCOA\" was never defined. | ||
32931 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32932 | fi | ||
32933 | if test -z "${EVAS_STATIC_BUILD_GL_COCOA_TRUE}" && test -z "${EVAS_STATIC_BUILD_GL_COCOA_FALSE}"; then | ||
32934 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_GL_COCOA\" was never defined. | ||
32935 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32936 | fi | ||
32937 | if test -z "${BUILD_ENGINE_FB_TRUE}" && test -z "${BUILD_ENGINE_FB_FALSE}"; then | ||
32938 | as_fn_error $? "conditional \"BUILD_ENGINE_FB\" was never defined. | ||
32939 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32940 | fi | ||
32941 | if test -z "${EVAS_STATIC_BUILD_FB_TRUE}" && test -z "${EVAS_STATIC_BUILD_FB_FALSE}"; then | ||
32942 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_FB\" was never defined. | ||
32943 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32944 | fi | ||
32945 | if test -z "${BUILD_ENGINE_DIRECTFB_TRUE}" && test -z "${BUILD_ENGINE_DIRECTFB_FALSE}"; then | ||
32946 | as_fn_error $? "conditional \"BUILD_ENGINE_DIRECTFB\" was never defined. | ||
32947 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32948 | fi | ||
32949 | if test -z "${EVAS_STATIC_BUILD_DIRECTFB_TRUE}" && test -z "${EVAS_STATIC_BUILD_DIRECTFB_FALSE}"; then | ||
32950 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_DIRECTFB\" was never defined. | ||
32951 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32952 | fi | ||
32953 | if test -z "${BUILD_ENGINE_SOFTWARE_8_X11_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_8_X11_FALSE}"; then | ||
32954 | as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_8_X11\" was never defined. | ||
32955 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32956 | fi | ||
32957 | if test -z "${EVAS_STATIC_BUILD_SOFTWARE_8_X11_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_8_X11_FALSE}"; then | ||
32958 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_8_X11\" was never defined. | ||
32959 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32960 | fi | ||
32961 | if test -z "${BUILD_ENGINE_SOFTWARE_16_X11_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_16_X11_FALSE}"; then | ||
32962 | as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_16_X11\" was never defined. | ||
32963 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32964 | fi | ||
32965 | if test -z "${EVAS_STATIC_BUILD_SOFTWARE_16_X11_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_16_X11_FALSE}"; then | ||
32966 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_16_X11\" was never defined. | ||
32967 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32968 | fi | ||
32969 | if test -z "${BUILD_ENGINE_SOFTWARE_16_DDRAW_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_16_DDRAW_FALSE}"; then | ||
32970 | as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_16_DDRAW\" was never defined. | ||
32971 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32972 | fi | ||
32973 | if test -z "${EVAS_STATIC_BUILD_SOFTWARE_16_DDRAW_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_16_DDRAW_FALSE}"; then | ||
32974 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_16_DDRAW\" was never defined. | ||
32975 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32976 | fi | ||
32977 | if test -z "${BUILD_ENGINE_SOFTWARE_16_WINCE_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_16_WINCE_FALSE}"; then | ||
32978 | as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_16_WINCE\" was never defined. | ||
32979 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32980 | fi | ||
32981 | if test -z "${EVAS_STATIC_BUILD_SOFTWARE_16_WINCE_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_16_WINCE_FALSE}"; then | ||
32982 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_16_WINCE\" was never defined. | ||
32983 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32984 | fi | ||
32985 | if test -z "${BUILD_ENGINE_SOFTWARE_16_SDL_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_16_SDL_FALSE}"; then | ||
32986 | as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_16_SDL\" was never defined. | ||
32987 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32988 | fi | ||
32989 | if test -z "${EVAS_STATIC_BUILD_SOFTWARE_16_SDL_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_16_SDL_FALSE}"; then | ||
32990 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_16_SDL\" was never defined. | ||
32991 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32992 | fi | ||
32993 | if test -z "${BUILD_ENGINE_WAYLAND_SHM_TRUE}" && test -z "${BUILD_ENGINE_WAYLAND_SHM_FALSE}"; then | ||
32994 | as_fn_error $? "conditional \"BUILD_ENGINE_WAYLAND_SHM\" was never defined. | ||
32995 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
32996 | fi | ||
32997 | if test -z "${EVAS_STATIC_BUILD_WAYLAND_SHM_TRUE}" && test -z "${EVAS_STATIC_BUILD_WAYLAND_SHM_FALSE}"; then | ||
32998 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_WAYLAND_SHM\" was never defined. | ||
32999 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33000 | fi | ||
33001 | if test -z "${BUILD_ENGINE_WAYLAND_EGL_TRUE}" && test -z "${BUILD_ENGINE_WAYLAND_EGL_FALSE}"; then | ||
33002 | as_fn_error $? "conditional \"BUILD_ENGINE_WAYLAND_EGL\" was never defined. | ||
33003 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33004 | fi | ||
33005 | if test -z "${EVAS_STATIC_BUILD_WAYLAND_EGL_TRUE}" && test -z "${EVAS_STATIC_BUILD_WAYLAND_EGL_FALSE}"; then | ||
33006 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_WAYLAND_EGL\" was never defined. | ||
33007 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33008 | fi | ||
33009 | if test -z "${EVAS_STATIC_BUILD_SOFTWARE_GENERIC_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_GENERIC_FALSE}"; then | ||
33010 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_GENERIC\" was never defined. | ||
33011 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33012 | fi | ||
33013 | if test -z "${BUILD_ENGINE_SOFTWARE_XCB_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_XCB_FALSE}"; then | ||
33014 | as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_XCB\" was never defined. | ||
33015 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33016 | fi | ||
33017 | if test -z "${EVAS_STATIC_BUILD_SOFTWARE_XCB_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_XCB_FALSE}"; then | ||
33018 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_XCB\" was never defined. | ||
33019 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33020 | fi | ||
33021 | if test -z "${BUILD_ENGINE_SOFTWARE_XLIB_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_XLIB_FALSE}"; then | ||
33022 | as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_XLIB\" was never defined. | ||
33023 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33024 | fi | ||
33025 | if test -z "${EVAS_STATIC_BUILD_SOFTWARE_XLIB_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_XLIB_FALSE}"; then | ||
33026 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_XLIB\" was never defined. | ||
33027 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33028 | fi | ||
33029 | if test -z "${BUILD_ENGINE_SOFTWARE_XLIB_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_XLIB_FALSE}"; then | ||
33030 | as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_XLIB\" was never defined. | ||
33031 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33032 | fi | ||
33033 | if test -z "${BUILD_ENGINE_SOFTWARE_XCB_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_XCB_FALSE}"; then | ||
33034 | as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_XCB\" was never defined. | ||
33035 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33036 | fi | ||
33037 | if test -z "${BUILD_ENGINE_SOFTWARE_X11_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_X11_FALSE}"; then | ||
33038 | as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_X11\" was never defined. | ||
33039 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33040 | fi | ||
33041 | if test -z "${EVAS_STATIC_BUILD_SOFTWARE_X11_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_X11_FALSE}"; then | ||
33042 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_X11\" was never defined. | ||
33043 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33044 | fi | ||
33045 | if test -z "${EVAS_STATIC_BUILD_SOFTWARE_XLIB_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_XLIB_FALSE}"; then | ||
33046 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_XLIB\" was never defined. | ||
33047 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33048 | fi | ||
33049 | if test -z "${EVAS_STATIC_BUILD_SOFTWARE_XCB_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_XCB_FALSE}"; then | ||
33050 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_XCB\" was never defined. | ||
33051 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33052 | fi | ||
33053 | if test -z "${BUILD_ENGINE_GL_XCB_TRUE}" && test -z "${BUILD_ENGINE_GL_XCB_FALSE}"; then | ||
33054 | as_fn_error $? "conditional \"BUILD_ENGINE_GL_XCB\" was never defined. | ||
33055 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33056 | fi | ||
33057 | if test -z "${EVAS_STATIC_BUILD_GL_XCB_TRUE}" && test -z "${EVAS_STATIC_BUILD_GL_XCB_FALSE}"; then | ||
33058 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_GL_XCB\" was never defined. | ||
33059 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33060 | fi | ||
33061 | if test -z "${BUILD_ENGINE_GL_XLIB_TRUE}" && test -z "${BUILD_ENGINE_GL_XLIB_FALSE}"; then | ||
33062 | as_fn_error $? "conditional \"BUILD_ENGINE_GL_XLIB\" was never defined. | ||
33063 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33064 | fi | ||
33065 | if test -z "${EVAS_STATIC_BUILD_GL_XLIB_TRUE}" && test -z "${EVAS_STATIC_BUILD_GL_XLIB_FALSE}"; then | ||
33066 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_GL_XLIB\" was never defined. | ||
33067 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33068 | fi | ||
33069 | if test -z "${BUILD_ENGINE_GL_XLIB_TRUE}" && test -z "${BUILD_ENGINE_GL_XLIB_FALSE}"; then | ||
33070 | as_fn_error $? "conditional \"BUILD_ENGINE_GL_XLIB\" was never defined. | ||
33071 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33072 | fi | ||
33073 | if test -z "${BUILD_ENGINE_GL_XCB_TRUE}" && test -z "${BUILD_ENGINE_GL_XCB_FALSE}"; then | ||
33074 | as_fn_error $? "conditional \"BUILD_ENGINE_GL_XCB\" was never defined. | ||
33075 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33076 | fi | ||
33077 | if test -z "${BUILD_ENGINE_GL_X11_TRUE}" && test -z "${BUILD_ENGINE_GL_X11_FALSE}"; then | ||
33078 | as_fn_error $? "conditional \"BUILD_ENGINE_GL_X11\" was never defined. | ||
33079 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33080 | fi | ||
33081 | if test -z "${EVAS_STATIC_BUILD_GL_X11_TRUE}" && test -z "${EVAS_STATIC_BUILD_GL_X11_FALSE}"; then | ||
33082 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_GL_X11\" was never defined. | ||
33083 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33084 | fi | ||
33085 | if test -z "${EVAS_STATIC_BUILD_GL_XLIB_TRUE}" && test -z "${EVAS_STATIC_BUILD_GL_XLIB_FALSE}"; then | ||
33086 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_GL_XLIB\" was never defined. | ||
33087 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33088 | fi | ||
33089 | if test -z "${EVAS_STATIC_BUILD_GL_XCB_TRUE}" && test -z "${EVAS_STATIC_BUILD_GL_XCB_FALSE}"; then | ||
33090 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_GL_XCB\" was never defined. | ||
33091 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33092 | fi | ||
33093 | if test -z "${BUILD_ENGINE_GL_COMMON_TRUE}" && test -z "${BUILD_ENGINE_GL_COMMON_FALSE}"; then | ||
33094 | as_fn_error $? "conditional \"BUILD_ENGINE_GL_COMMON\" was never defined. | ||
33095 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33096 | fi | ||
33097 | if test -z "${EVAS_STATIC_BUILD_GL_COMMON_TRUE}" && test -z "${EVAS_STATIC_BUILD_GL_COMMON_FALSE}"; then | ||
33098 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_GL_COMMON\" was never defined. | ||
33099 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33100 | fi | ||
33101 | if test -z "${BUILD_ENGINE_SOFTWARE_16_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_16_FALSE}"; then | ||
33102 | as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_16\" was never defined. | ||
33103 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33104 | fi | ||
33105 | if test -z "${EVAS_STATIC_BUILD_SOFTWARE_16_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_16_FALSE}"; then | ||
33106 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_16\" was never defined. | ||
33107 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33108 | fi | ||
33109 | if test -z "${BUILD_ENGINE_SOFTWARE_8_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_8_FALSE}"; then | ||
33110 | as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_8\" was never defined. | ||
33111 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33112 | fi | ||
33113 | if test -z "${EVAS_STATIC_BUILD_SOFTWARE_8_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_8_FALSE}"; then | ||
33114 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_8\" was never defined. | ||
33115 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33116 | fi | ||
33117 | if test -z "${BUILD_LOADER_EDB_TRUE}" && test -z "${BUILD_LOADER_EDB_FALSE}"; then | ||
33118 | as_fn_error $? "conditional \"BUILD_LOADER_EDB\" was never defined. | ||
33119 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33120 | fi | ||
33121 | if test -z "${EVAS_STATIC_BUILD_EDB_TRUE}" && test -z "${EVAS_STATIC_BUILD_EDB_FALSE}"; then | ||
33122 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_EDB\" was never defined. | ||
33123 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33124 | fi | ||
33125 | if test -z "${BUILD_LOADER_EET_TRUE}" && test -z "${BUILD_LOADER_EET_FALSE}"; then | ||
33126 | as_fn_error $? "conditional \"BUILD_LOADER_EET\" was never defined. | ||
33127 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33128 | fi | ||
33129 | if test -z "${EVAS_STATIC_BUILD_EET_TRUE}" && test -z "${EVAS_STATIC_BUILD_EET_FALSE}"; then | ||
33130 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_EET\" was never defined. | ||
33131 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33132 | fi | ||
33133 | if test -z "${BUILD_LOADER_GIF_TRUE}" && test -z "${BUILD_LOADER_GIF_FALSE}"; then | ||
33134 | as_fn_error $? "conditional \"BUILD_LOADER_GIF\" was never defined. | ||
33135 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33136 | fi | ||
33137 | if test -z "${EVAS_STATIC_BUILD_GIF_TRUE}" && test -z "${EVAS_STATIC_BUILD_GIF_FALSE}"; then | ||
33138 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_GIF\" was never defined. | ||
33139 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33140 | fi | ||
33141 | if test -z "${BUILD_LOADER_JPEG_TRUE}" && test -z "${BUILD_LOADER_JPEG_FALSE}"; then | ||
33142 | as_fn_error $? "conditional \"BUILD_LOADER_JPEG\" was never defined. | ||
33143 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33144 | fi | ||
33145 | if test -z "${EVAS_STATIC_BUILD_JPEG_TRUE}" && test -z "${EVAS_STATIC_BUILD_JPEG_FALSE}"; then | ||
33146 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_JPEG\" was never defined. | ||
33147 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33148 | fi | ||
33149 | if test -z "${BUILD_SAVER_JPEG_TRUE}" && test -z "${BUILD_SAVER_JPEG_FALSE}"; then | ||
33150 | as_fn_error $? "conditional \"BUILD_SAVER_JPEG\" was never defined. | ||
33151 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33152 | fi | ||
33153 | if test -z "${BUILD_LOADER_PMAPS_TRUE}" && test -z "${BUILD_LOADER_PMAPS_FALSE}"; then | ||
33154 | as_fn_error $? "conditional \"BUILD_LOADER_PMAPS\" was never defined. | ||
33155 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33156 | fi | ||
33157 | if test -z "${EVAS_STATIC_BUILD_PMAPS_TRUE}" && test -z "${EVAS_STATIC_BUILD_PMAPS_FALSE}"; then | ||
33158 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_PMAPS\" was never defined. | ||
33159 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33160 | fi | ||
33161 | if test -z "${BUILD_LOADER_PNG_TRUE}" && test -z "${BUILD_LOADER_PNG_FALSE}"; then | ||
33162 | as_fn_error $? "conditional \"BUILD_LOADER_PNG\" was never defined. | ||
33163 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33164 | fi | ||
33165 | if test -z "${EVAS_STATIC_BUILD_PNG_TRUE}" && test -z "${EVAS_STATIC_BUILD_PNG_FALSE}"; then | ||
33166 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_PNG\" was never defined. | ||
33167 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33168 | fi | ||
33169 | if test -z "${BUILD_LOADER_SVG_TRUE}" && test -z "${BUILD_LOADER_SVG_FALSE}"; then | ||
33170 | as_fn_error $? "conditional \"BUILD_LOADER_SVG\" was never defined. | ||
33171 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33172 | fi | ||
33173 | if test -z "${EVAS_STATIC_BUILD_SVG_TRUE}" && test -z "${EVAS_STATIC_BUILD_SVG_FALSE}"; then | ||
33174 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SVG\" was never defined. | ||
33175 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33176 | fi | ||
33177 | if test -z "${BUILD_LOADER_TIFF_TRUE}" && test -z "${BUILD_LOADER_TIFF_FALSE}"; then | ||
33178 | as_fn_error $? "conditional \"BUILD_LOADER_TIFF\" was never defined. | ||
33179 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33180 | fi | ||
33181 | if test -z "${EVAS_STATIC_BUILD_TIFF_TRUE}" && test -z "${EVAS_STATIC_BUILD_TIFF_FALSE}"; then | ||
33182 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_TIFF\" was never defined. | ||
33183 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33184 | fi | ||
33185 | if test -z "${BUILD_LOADER_XPM_TRUE}" && test -z "${BUILD_LOADER_XPM_FALSE}"; then | ||
33186 | as_fn_error $? "conditional \"BUILD_LOADER_XPM\" was never defined. | ||
33187 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33188 | fi | ||
33189 | if test -z "${EVAS_STATIC_BUILD_XPM_TRUE}" && test -z "${EVAS_STATIC_BUILD_XPM_FALSE}"; then | ||
33190 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_XPM\" was never defined. | ||
33191 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33192 | fi | ||
33193 | if test -z "${BUILD_LOADER_BMP_TRUE}" && test -z "${BUILD_LOADER_BMP_FALSE}"; then | ||
33194 | as_fn_error $? "conditional \"BUILD_LOADER_BMP\" was never defined. | ||
33195 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33196 | fi | ||
33197 | if test -z "${EVAS_STATIC_BUILD_BMP_TRUE}" && test -z "${EVAS_STATIC_BUILD_BMP_FALSE}"; then | ||
33198 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_BMP\" was never defined. | ||
33199 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33200 | fi | ||
33201 | if test -z "${BUILD_LOADER_TGA_TRUE}" && test -z "${BUILD_LOADER_TGA_FALSE}"; then | ||
33202 | as_fn_error $? "conditional \"BUILD_LOADER_TGA\" was never defined. | ||
33203 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33204 | fi | ||
33205 | if test -z "${EVAS_STATIC_BUILD_TGA_TRUE}" && test -z "${EVAS_STATIC_BUILD_TGA_FALSE}"; then | ||
33206 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_TGA\" was never defined. | ||
33207 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33208 | fi | ||
33209 | if test -z "${BUILD_LOADER_WBMP_TRUE}" && test -z "${BUILD_LOADER_WBMP_FALSE}"; then | ||
33210 | as_fn_error $? "conditional \"BUILD_LOADER_WBMP\" was never defined. | ||
33211 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33212 | fi | ||
33213 | if test -z "${EVAS_STATIC_BUILD_WBMP_TRUE}" && test -z "${EVAS_STATIC_BUILD_WBMP_FALSE}"; then | ||
33214 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_WBMP\" was never defined. | ||
33215 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33216 | fi | ||
33217 | if test -z "${BUILD_LOADER_ICO_TRUE}" && test -z "${BUILD_LOADER_ICO_FALSE}"; then | ||
33218 | as_fn_error $? "conditional \"BUILD_LOADER_ICO\" was never defined. | ||
33219 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33220 | fi | ||
33221 | if test -z "${EVAS_STATIC_BUILD_ICO_TRUE}" && test -z "${EVAS_STATIC_BUILD_ICO_FALSE}"; then | ||
33222 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_ICO\" was never defined. | ||
33223 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33224 | fi | ||
33225 | if test -z "${BUILD_LOADER_PSD_TRUE}" && test -z "${BUILD_LOADER_PSD_FALSE}"; then | ||
33226 | as_fn_error $? "conditional \"BUILD_LOADER_PSD\" was never defined. | ||
33227 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33228 | fi | ||
33229 | if test -z "${EVAS_STATIC_BUILD_PSD_TRUE}" && test -z "${EVAS_STATIC_BUILD_PSD_FALSE}"; then | ||
33230 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_PSD\" was never defined. | ||
33231 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33232 | fi | ||
33233 | if test -z "${BUILD_LOADER_GENERIC_TRUE}" && test -z "${BUILD_LOADER_GENERIC_FALSE}"; then | ||
33234 | as_fn_error $? "conditional \"BUILD_LOADER_GENERIC\" was never defined. | ||
33235 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33236 | fi | ||
33237 | if test -z "${EVAS_STATIC_BUILD_GENERIC_TRUE}" && test -z "${EVAS_STATIC_BUILD_GENERIC_FALSE}"; then | ||
33238 | as_fn_error $? "conditional \"EVAS_STATIC_BUILD_GENERIC\" was never defined. | ||
33239 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33240 | fi | ||
33241 | if test -z "${EVAS_MAGIC_DEBUG_TRUE}" && test -z "${EVAS_MAGIC_DEBUG_FALSE}"; then | ||
33242 | as_fn_error $? "conditional \"EVAS_MAGIC_DEBUG\" was never defined. | ||
33243 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33244 | fi | ||
33245 | if test -z "${WORD_CACHE_TRUE}" && test -z "${WORD_CACHE_FALSE}"; then | ||
33246 | as_fn_error $? "conditional \"WORD_CACHE\" was never defined. | ||
33247 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33248 | fi | ||
33249 | if test -z "${METRIC_CACHE_TRUE}" && test -z "${METRIC_CACHE_FALSE}"; then | ||
33250 | as_fn_error $? "conditional \"METRIC_CACHE\" was never defined. | ||
33251 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33252 | fi | ||
33253 | if test -z "${INSTALL_EXAMPLES_TRUE}" && test -z "${INSTALL_EXAMPLES_FALSE}"; then | ||
33254 | as_fn_error $? "conditional \"INSTALL_EXAMPLES\" was never defined. | ||
33255 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33256 | fi | ||
33257 | if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then | ||
33258 | as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined. | ||
33259 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33260 | fi | ||
33261 | if test -z "${EFL_ENABLE_TESTS_TRUE}" && test -z "${EFL_ENABLE_TESTS_FALSE}"; then | ||
33262 | as_fn_error $? "conditional \"EFL_ENABLE_TESTS\" was never defined. | ||
33263 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33264 | fi | ||
33265 | if test -z "${EFL_ENABLE_COVERAGE_TRUE}" && test -z "${EFL_ENABLE_COVERAGE_FALSE}"; then | ||
33266 | as_fn_error $? "conditional \"EFL_ENABLE_COVERAGE\" was never defined. | ||
33267 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
33268 | fi | ||
33269 | |||
33270 | : ${CONFIG_STATUS=./config.status} | ||
33271 | ac_write_fail=0 | ||
33272 | ac_clean_files_save=$ac_clean_files | ||
33273 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
33274 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | ||
33275 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
33276 | as_write_fail=0 | ||
33277 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | ||
33278 | #! $SHELL | ||
33279 | # Generated by $as_me. | ||
33280 | # Run this file to recreate the current configuration. | ||
33281 | # Compiler output produced by configure, useful for debugging | ||
33282 | # configure, is in config.log if it exists. | ||
33283 | |||
33284 | debug=false | ||
33285 | ac_cs_recheck=false | ||
33286 | ac_cs_silent=false | ||
33287 | |||
33288 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
33289 | export SHELL | ||
33290 | _ASEOF | ||
33291 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | ||
33292 | ## -------------------- ## | ||
33293 | ## M4sh Initialization. ## | ||
33294 | ## -------------------- ## | ||
33295 | |||
33296 | # Be more Bourne compatible | ||
33297 | DUALCASE=1; export DUALCASE # for MKS sh | ||
33298 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
33299 | emulate sh | ||
33300 | NULLCMD=: | ||
33301 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
33302 | # is contrary to our usage. Disable this feature. | ||
33303 | alias -g '${1+"$@"}'='"$@"' | ||
33304 | setopt NO_GLOB_SUBST | ||
33305 | else | ||
33306 | case `(set -o) 2>/dev/null` in #( | ||
33307 | *posix*) : | ||
33308 | set -o posix ;; #( | ||
33309 | *) : | ||
33310 | ;; | ||
33311 | esac | ||
33312 | fi | ||
33313 | |||
33314 | |||
33315 | as_nl=' | ||
33316 | ' | ||
33317 | export as_nl | ||
33318 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
33319 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
33320 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
33321 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
33322 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
33323 | # but without wasting forks for bash or zsh. | ||
33324 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
33325 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
33326 | as_echo='print -r --' | ||
33327 | as_echo_n='print -rn --' | ||
33328 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
33329 | as_echo='printf %s\n' | ||
33330 | as_echo_n='printf %s' | ||
33331 | else | ||
33332 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
33333 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
33334 | as_echo_n='/usr/ucb/echo -n' | ||
33335 | else | ||
33336 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
33337 | as_echo_n_body='eval | ||
33338 | arg=$1; | ||
33339 | case $arg in #( | ||
33340 | *"$as_nl"*) | ||
33341 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
33342 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
33343 | esac; | ||
33344 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
33345 | ' | ||
33346 | export as_echo_n_body | ||
33347 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
33348 | fi | ||
33349 | export as_echo_body | ||
33350 | as_echo='sh -c $as_echo_body as_echo' | ||
33351 | fi | ||
33352 | |||
33353 | # The user is always right. | ||
33354 | if test "${PATH_SEPARATOR+set}" != set; then | ||
33355 | PATH_SEPARATOR=: | ||
33356 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
33357 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
33358 | PATH_SEPARATOR=';' | ||
33359 | } | ||
33360 | fi | ||
33361 | |||
33362 | |||
33363 | # IFS | ||
33364 | # We need space, tab and new line, in precisely that order. Quoting is | ||
33365 | # there to prevent editors from complaining about space-tab. | ||
33366 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
33367 | # splitting by setting IFS to empty value.) | ||
33368 | IFS=" "" $as_nl" | ||
33369 | |||
33370 | # Find who we are. Look in the path if we contain no directory separator. | ||
33371 | case $0 in #(( | ||
33372 | *[\\/]* ) as_myself=$0 ;; | ||
33373 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
33374 | for as_dir in $PATH | ||
33375 | do | ||
33376 | IFS=$as_save_IFS | ||
33377 | test -z "$as_dir" && as_dir=. | ||
33378 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
33379 | done | ||
33380 | IFS=$as_save_IFS | ||
33381 | |||
33382 | ;; | ||
33383 | esac | ||
33384 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
33385 | # in which case we are not to be found in the path. | ||
33386 | if test "x$as_myself" = x; then | ||
33387 | as_myself=$0 | ||
33388 | fi | ||
33389 | if test ! -f "$as_myself"; then | ||
33390 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
33391 | exit 1 | ||
33392 | fi | ||
33393 | |||
33394 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
33395 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
33396 | # suppresses any "Segmentation fault" message there. '((' could | ||
33397 | # trigger a bug in pdksh 5.2.14. | ||
33398 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
33399 | do eval test x\${$as_var+set} = xset \ | ||
33400 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
33401 | done | ||
33402 | PS1='$ ' | ||
33403 | PS2='> ' | ||
33404 | PS4='+ ' | ||
33405 | |||
33406 | # NLS nuisances. | ||
33407 | LC_ALL=C | ||
33408 | export LC_ALL | ||
33409 | LANGUAGE=C | ||
33410 | export LANGUAGE | ||
33411 | |||
33412 | # CDPATH. | ||
33413 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
33414 | |||
33415 | |||
33416 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
33417 | # ---------------------------------------- | ||
33418 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
33419 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
33420 | # script with STATUS, using 1 if that was 0. | ||
33421 | as_fn_error () | ||
33422 | { | ||
33423 | as_status=$1; test $as_status -eq 0 && as_status=1 | ||
33424 | if test "$4"; then | ||
33425 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
33426 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
33427 | fi | ||
33428 | $as_echo "$as_me: error: $2" >&2 | ||
33429 | as_fn_exit $as_status | ||
33430 | } # as_fn_error | ||
33431 | |||
33432 | |||
33433 | # as_fn_set_status STATUS | ||
33434 | # ----------------------- | ||
33435 | # Set $? to STATUS, without forking. | ||
33436 | as_fn_set_status () | ||
33437 | { | ||
33438 | return $1 | ||
33439 | } # as_fn_set_status | ||
33440 | |||
33441 | # as_fn_exit STATUS | ||
33442 | # ----------------- | ||
33443 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
33444 | as_fn_exit () | ||
33445 | { | ||
33446 | set +e | ||
33447 | as_fn_set_status $1 | ||
33448 | exit $1 | ||
33449 | } # as_fn_exit | ||
33450 | |||
33451 | # as_fn_unset VAR | ||
33452 | # --------------- | ||
33453 | # Portably unset VAR. | ||
33454 | as_fn_unset () | ||
33455 | { | ||
33456 | { eval $1=; unset $1;} | ||
33457 | } | ||
33458 | as_unset=as_fn_unset | ||
33459 | # as_fn_append VAR VALUE | ||
33460 | # ---------------------- | ||
33461 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
33462 | # advantage of any shell optimizations that allow amortized linear growth over | ||
33463 | # repeated appends, instead of the typical quadratic growth present in naive | ||
33464 | # implementations. | ||
33465 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
33466 | eval 'as_fn_append () | ||
33467 | { | ||
33468 | eval $1+=\$2 | ||
33469 | }' | ||
33470 | else | ||
33471 | as_fn_append () | ||
33472 | { | ||
33473 | eval $1=\$$1\$2 | ||
33474 | } | ||
33475 | fi # as_fn_append | ||
33476 | |||
33477 | # as_fn_arith ARG... | ||
33478 | # ------------------ | ||
33479 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
33480 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
33481 | # must be portable across $(()) and expr. | ||
33482 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
33483 | eval 'as_fn_arith () | ||
33484 | { | ||
33485 | as_val=$(( $* )) | ||
33486 | }' | ||
33487 | else | ||
33488 | as_fn_arith () | ||
33489 | { | ||
33490 | as_val=`expr "$@" || test $? -eq 1` | ||
33491 | } | ||
33492 | fi # as_fn_arith | ||
33493 | |||
33494 | |||
33495 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
33496 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
33497 | as_expr=expr | ||
33498 | else | ||
33499 | as_expr=false | ||
33500 | fi | ||
33501 | |||
33502 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
33503 | as_basename=basename | ||
33504 | else | ||
33505 | as_basename=false | ||
33506 | fi | ||
33507 | |||
33508 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
33509 | as_dirname=dirname | ||
33510 | else | ||
33511 | as_dirname=false | ||
33512 | fi | ||
33513 | |||
33514 | as_me=`$as_basename -- "$0" || | ||
33515 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
33516 | X"$0" : 'X\(//\)$' \| \ | ||
33517 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
33518 | $as_echo X/"$0" | | ||
33519 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
33520 | s//\1/ | ||
33521 | q | ||
33522 | } | ||
33523 | /^X\/\(\/\/\)$/{ | ||
33524 | s//\1/ | ||
33525 | q | ||
33526 | } | ||
33527 | /^X\/\(\/\).*/{ | ||
33528 | s//\1/ | ||
33529 | q | ||
33530 | } | ||
33531 | s/.*/./; q'` | ||
33532 | |||
33533 | # Avoid depending upon Character Ranges. | ||
33534 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
33535 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
33536 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
33537 | as_cr_digits='0123456789' | ||
33538 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
33539 | |||
33540 | ECHO_C= ECHO_N= ECHO_T= | ||
33541 | case `echo -n x` in #((((( | ||
33542 | -n*) | ||
33543 | case `echo 'xy\c'` in | ||
33544 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
33545 | xy) ECHO_C='\c';; | ||
33546 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
33547 | ECHO_T=' ';; | ||
33548 | esac;; | ||
33549 | *) | ||
33550 | ECHO_N='-n';; | ||
33551 | esac | ||
33552 | |||
33553 | rm -f conf$$ conf$$.exe conf$$.file | ||
33554 | if test -d conf$$.dir; then | ||
33555 | rm -f conf$$.dir/conf$$.file | ||
33556 | else | ||
33557 | rm -f conf$$.dir | ||
33558 | mkdir conf$$.dir 2>/dev/null | ||
33559 | fi | ||
33560 | if (echo >conf$$.file) 2>/dev/null; then | ||
33561 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
33562 | as_ln_s='ln -s' | ||
33563 | # ... but there are two gotchas: | ||
33564 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
33565 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
33566 | # In both cases, we have to default to `cp -p'. | ||
33567 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
33568 | as_ln_s='cp -p' | ||
33569 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
33570 | as_ln_s=ln | ||
33571 | else | ||
33572 | as_ln_s='cp -p' | ||
33573 | fi | ||
33574 | else | ||
33575 | as_ln_s='cp -p' | ||
33576 | fi | ||
33577 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
33578 | rmdir conf$$.dir 2>/dev/null | ||
33579 | |||
33580 | |||
33581 | # as_fn_mkdir_p | ||
33582 | # ------------- | ||
33583 | # Create "$as_dir" as a directory, including parents if necessary. | ||
33584 | as_fn_mkdir_p () | ||
33585 | { | ||
33586 | |||
33587 | case $as_dir in #( | ||
33588 | -*) as_dir=./$as_dir;; | ||
33589 | esac | ||
33590 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
33591 | as_dirs= | ||
33592 | while :; do | ||
33593 | case $as_dir in #( | ||
33594 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
33595 | *) as_qdir=$as_dir;; | ||
33596 | esac | ||
33597 | as_dirs="'$as_qdir' $as_dirs" | ||
33598 | as_dir=`$as_dirname -- "$as_dir" || | ||
33599 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
33600 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
33601 | X"$as_dir" : 'X\(//\)$' \| \ | ||
33602 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
33603 | $as_echo X"$as_dir" | | ||
33604 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
33605 | s//\1/ | ||
33606 | q | ||
33607 | } | ||
33608 | /^X\(\/\/\)[^/].*/{ | ||
33609 | s//\1/ | ||
33610 | q | ||
33611 | } | ||
33612 | /^X\(\/\/\)$/{ | ||
33613 | s//\1/ | ||
33614 | q | ||
33615 | } | ||
33616 | /^X\(\/\).*/{ | ||
33617 | s//\1/ | ||
33618 | q | ||
33619 | } | ||
33620 | s/.*/./; q'` | ||
33621 | test -d "$as_dir" && break | ||
33622 | done | ||
33623 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
33624 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | ||
33625 | |||
33626 | |||
33627 | } # as_fn_mkdir_p | ||
33628 | if mkdir -p . 2>/dev/null; then | ||
33629 | as_mkdir_p='mkdir -p "$as_dir"' | ||
33630 | else | ||
33631 | test -d ./-p && rmdir ./-p | ||
33632 | as_mkdir_p=false | ||
33633 | fi | ||
33634 | |||
33635 | if test -x / >/dev/null 2>&1; then | ||
33636 | as_test_x='test -x' | ||
33637 | else | ||
33638 | if ls -dL / >/dev/null 2>&1; then | ||
33639 | as_ls_L_option=L | ||
33640 | else | ||
33641 | as_ls_L_option= | ||
33642 | fi | ||
33643 | as_test_x=' | ||
33644 | eval sh -c '\'' | ||
33645 | if test -d "$1"; then | ||
33646 | test -d "$1/."; | ||
33647 | else | ||
33648 | case $1 in #( | ||
33649 | -*)set "./$1";; | ||
33650 | esac; | ||
33651 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | ||
33652 | ???[sx]*):;;*)false;;esac;fi | ||
33653 | '\'' sh | ||
33654 | ' | ||
33655 | fi | ||
33656 | as_executable_p=$as_test_x | ||
33657 | |||
33658 | # Sed expression to map a string onto a valid CPP name. | ||
33659 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
33660 | |||
33661 | # Sed expression to map a string onto a valid variable name. | ||
33662 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
33663 | |||
33664 | |||
33665 | exec 6>&1 | ||
33666 | ## ----------------------------------- ## | ||
33667 | ## Main body of $CONFIG_STATUS script. ## | ||
33668 | ## ----------------------------------- ## | ||
33669 | _ASEOF | ||
33670 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | ||
33671 | |||
33672 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
33673 | # Save the log message, to keep $0 and so on meaningful, and to | ||
33674 | # report actual input values of CONFIG_FILES etc. instead of their | ||
33675 | # values after options handling. | ||
33676 | ac_log=" | ||
33677 | This file was extended by evas $as_me 1.2.0-alpha, which was | ||
33678 | generated by GNU Autoconf 2.67. Invocation command line was | ||
33679 | |||
33680 | CONFIG_FILES = $CONFIG_FILES | ||
33681 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
33682 | CONFIG_LINKS = $CONFIG_LINKS | ||
33683 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
33684 | $ $0 $@ | ||
33685 | |||
33686 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
33687 | " | ||
33688 | |||
33689 | _ACEOF | ||
33690 | |||
33691 | case $ac_config_files in *" | ||
33692 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | ||
33693 | esac | ||
33694 | |||
33695 | case $ac_config_headers in *" | ||
33696 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | ||
33697 | esac | ||
33698 | |||
33699 | |||
33700 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
33701 | # Files that config.status was made for. | ||
33702 | config_files="$ac_config_files" | ||
33703 | config_headers="$ac_config_headers" | ||
33704 | config_commands="$ac_config_commands" | ||
33705 | |||
33706 | _ACEOF | ||
33707 | |||
33708 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
33709 | ac_cs_usage="\ | ||
33710 | \`$as_me' instantiates files and other configuration actions | ||
33711 | from templates according to the current configuration. Unless the files | ||
33712 | and actions are specified as TAGs, all are instantiated by default. | ||
33713 | |||
33714 | Usage: $0 [OPTION]... [TAG]... | ||
33715 | |||
33716 | -h, --help print this help, then exit | ||
33717 | -V, --version print version number and configuration settings, then exit | ||
33718 | --config print configuration, then exit | ||
33719 | -q, --quiet, --silent | ||
33720 | do not print progress messages | ||
33721 | -d, --debug don't remove temporary files | ||
33722 | --recheck update $as_me by reconfiguring in the same conditions | ||
33723 | --file=FILE[:TEMPLATE] | ||
33724 | instantiate the configuration file FILE | ||
33725 | --header=FILE[:TEMPLATE] | ||
33726 | instantiate the configuration header FILE | ||
33727 | |||
33728 | Configuration files: | ||
33729 | $config_files | ||
33730 | |||
33731 | Configuration headers: | ||
33732 | $config_headers | ||
33733 | |||
33734 | Configuration commands: | ||
33735 | $config_commands | ||
33736 | |||
33737 | Report bugs to <enlightenment-devel@lists.sourceforge.net>." | ||
33738 | |||
33739 | _ACEOF | ||
33740 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
33741 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | ||
33742 | ac_cs_version="\\ | ||
33743 | evas config.status 1.2.0-alpha | ||
33744 | configured by $0, generated by GNU Autoconf 2.67, | ||
33745 | with options \\"\$ac_cs_config\\" | ||
33746 | |||
33747 | Copyright (C) 2010 Free Software Foundation, Inc. | ||
33748 | This config.status script is free software; the Free Software Foundation | ||
33749 | gives unlimited permission to copy, distribute and modify it." | ||
33750 | |||
33751 | ac_pwd='$ac_pwd' | ||
33752 | srcdir='$srcdir' | ||
33753 | INSTALL='$INSTALL' | ||
33754 | MKDIR_P='$MKDIR_P' | ||
33755 | AWK='$AWK' | ||
33756 | test -n "\$AWK" || AWK=awk | ||
33757 | _ACEOF | ||
33758 | |||
33759 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
33760 | # The default lists apply if the user does not specify any file. | ||
33761 | ac_need_defaults=: | ||
33762 | while test $# != 0 | ||
33763 | do | ||
33764 | case $1 in | ||
33765 | --*=?*) | ||
33766 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
33767 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
33768 | ac_shift=: | ||
33769 | ;; | ||
33770 | --*=) | ||
33771 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
33772 | ac_optarg= | ||
33773 | ac_shift=: | ||
33774 | ;; | ||
33775 | *) | ||
33776 | ac_option=$1 | ||
33777 | ac_optarg=$2 | ||
33778 | ac_shift=shift | ||
33779 | ;; | ||
33780 | esac | ||
33781 | |||
33782 | case $ac_option in | ||
33783 | # Handling of the options. | ||
33784 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
33785 | ac_cs_recheck=: ;; | ||
33786 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
33787 | $as_echo "$ac_cs_version"; exit ;; | ||
33788 | --config | --confi | --conf | --con | --co | --c ) | ||
33789 | $as_echo "$ac_cs_config"; exit ;; | ||
33790 | --debug | --debu | --deb | --de | --d | -d ) | ||
33791 | debug=: ;; | ||
33792 | --file | --fil | --fi | --f ) | ||
33793 | $ac_shift | ||
33794 | case $ac_optarg in | ||
33795 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
33796 | '') as_fn_error $? "missing file argument" ;; | ||
33797 | esac | ||
33798 | as_fn_append CONFIG_FILES " '$ac_optarg'" | ||
33799 | ac_need_defaults=false;; | ||
33800 | --header | --heade | --head | --hea ) | ||
33801 | $ac_shift | ||
33802 | case $ac_optarg in | ||
33803 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
33804 | esac | ||
33805 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | ||
33806 | ac_need_defaults=false;; | ||
33807 | --he | --h) | ||
33808 | # Conflict between --help and --header | ||
33809 | as_fn_error $? "ambiguous option: \`$1' | ||
33810 | Try \`$0 --help' for more information.";; | ||
33811 | --help | --hel | -h ) | ||
33812 | $as_echo "$ac_cs_usage"; exit ;; | ||
33813 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
33814 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
33815 | ac_cs_silent=: ;; | ||
33816 | |||
33817 | # This is an error. | ||
33818 | -*) as_fn_error $? "unrecognized option: \`$1' | ||
33819 | Try \`$0 --help' for more information." ;; | ||
33820 | |||
33821 | *) as_fn_append ac_config_targets " $1" | ||
33822 | ac_need_defaults=false ;; | ||
33823 | |||
33824 | esac | ||
33825 | shift | ||
33826 | done | ||
33827 | |||
33828 | ac_configure_extra_args= | ||
33829 | |||
33830 | if $ac_cs_silent; then | ||
33831 | exec 6>/dev/null | ||
33832 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
33833 | fi | ||
33834 | |||
33835 | _ACEOF | ||
33836 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
33837 | if \$ac_cs_recheck; then | ||
33838 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
33839 | shift | ||
33840 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | ||
33841 | CONFIG_SHELL='$SHELL' | ||
33842 | export CONFIG_SHELL | ||
33843 | exec "\$@" | ||
33844 | fi | ||
33845 | |||
33846 | _ACEOF | ||
33847 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
33848 | exec 5>>config.log | ||
33849 | { | ||
33850 | echo | ||
33851 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
33852 | ## Running $as_me. ## | ||
33853 | _ASBOX | ||
33854 | $as_echo "$ac_log" | ||
33855 | } >&5 | ||
33856 | |||
33857 | _ACEOF | ||
33858 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
33859 | # | ||
33860 | # INIT-COMMANDS | ||
33861 | # | ||
33862 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | ||
33863 | |||
33864 | |||
33865 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
33866 | # if CDPATH is set. | ||
33867 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
33868 | |||
33869 | sed_quote_subst='$sed_quote_subst' | ||
33870 | double_quote_subst='$double_quote_subst' | ||
33871 | delay_variable_subst='$delay_variable_subst' | ||
33872 | AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' | ||
33873 | DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' | ||
33874 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | ||
33875 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
33876 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | ||
33877 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | ||
33878 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
33879 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | ||
33880 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | ||
33881 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
33882 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | ||
33883 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
33884 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | ||
33885 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | ||
33886 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | ||
33887 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | ||
33888 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | ||
33889 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
33890 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
33891 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | ||
33892 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | ||
33893 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | ||
33894 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | ||
33895 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | ||
33896 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | ||
33897 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | ||
33898 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | ||
33899 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | ||
33900 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | ||
33901 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
33902 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33903 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | ||
33904 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | ||
33905 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | ||
33906 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
33907 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | ||
33908 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | ||
33909 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33910 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33911 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33912 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | ||
33913 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | ||
33914 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | ||
33915 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | ||
33916 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | ||
33917 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | ||
33918 | 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"`' | ||
33919 | 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"`' | ||
33920 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | ||
33921 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | ||
33922 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | ||
33923 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | ||
33924 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
33925 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | ||
33926 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | ||
33927 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
33928 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | ||
33929 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | ||
33930 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | ||
33931 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | ||
33932 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | ||
33933 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | ||
33934 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | ||
33935 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | ||
33936 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33937 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33938 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | ||
33939 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | ||
33940 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
33941 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
33942 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | ||
33943 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33944 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33945 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33946 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33947 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33948 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33949 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
33950 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
33951 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | ||
33952 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
33953 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | ||
33954 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | ||
33955 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | ||
33956 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | ||
33957 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | ||
33958 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
33959 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | ||
33960 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
33961 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | ||
33962 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | ||
33963 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | ||
33964 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33965 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
33966 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | ||
33967 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33968 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
33969 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | ||
33970 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | ||
33971 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | ||
33972 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | ||
33973 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
33974 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | ||
33975 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | ||
33976 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
33977 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
33978 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
33979 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33980 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33981 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | ||
33982 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | ||
33983 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | ||
33984 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
33985 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | ||
33986 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | ||
33987 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | ||
33988 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | ||
33989 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | ||
33990 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
33991 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | ||
33992 | compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' | ||
33993 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' | ||
33994 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' | ||
33995 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' | ||
33996 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' | ||
33997 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' | ||
33998 | LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
33999 | old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34000 | compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34001 | GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34002 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34003 | lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34004 | lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34005 | lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34006 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34007 | archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34008 | enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34009 | export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34010 | whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34011 | compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34012 | old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34013 | old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34014 | archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34015 | archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34016 | module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34017 | module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34018 | with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34019 | allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34020 | no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34021 | hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34022 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34023 | hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34024 | hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34025 | hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34026 | hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34027 | hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34028 | hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34029 | inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34030 | link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34031 | fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34032 | always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34033 | export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34034 | exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34035 | include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34036 | prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34037 | file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34038 | hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34039 | compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34040 | predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34041 | postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34042 | predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34043 | postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34044 | compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | ||
34045 | |||
34046 | LTCC='$LTCC' | ||
34047 | LTCFLAGS='$LTCFLAGS' | ||
34048 | compiler='$compiler_DEFAULT' | ||
34049 | |||
34050 | # Quote evaled strings. | ||
34051 | for var in SED \ | ||
34052 | GREP \ | ||
34053 | EGREP \ | ||
34054 | FGREP \ | ||
34055 | LD \ | ||
34056 | NM \ | ||
34057 | LN_S \ | ||
34058 | lt_SP2NL \ | ||
34059 | lt_NL2SP \ | ||
34060 | reload_flag \ | ||
34061 | deplibs_check_method \ | ||
34062 | file_magic_cmd \ | ||
34063 | AR \ | ||
34064 | AR_FLAGS \ | ||
34065 | STRIP \ | ||
34066 | RANLIB \ | ||
34067 | CC \ | ||
34068 | CFLAGS \ | ||
34069 | compiler \ | ||
34070 | lt_cv_sys_global_symbol_pipe \ | ||
34071 | lt_cv_sys_global_symbol_to_cdecl \ | ||
34072 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
34073 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | ||
34074 | SHELL \ | ||
34075 | ECHO \ | ||
34076 | lt_prog_compiler_no_builtin_flag \ | ||
34077 | lt_prog_compiler_wl \ | ||
34078 | lt_prog_compiler_pic \ | ||
34079 | lt_prog_compiler_static \ | ||
34080 | lt_cv_prog_compiler_c_o \ | ||
34081 | need_locks \ | ||
34082 | DSYMUTIL \ | ||
34083 | NMEDIT \ | ||
34084 | LIPO \ | ||
34085 | OTOOL \ | ||
34086 | OTOOL64 \ | ||
34087 | shrext_cmds \ | ||
34088 | export_dynamic_flag_spec \ | ||
34089 | whole_archive_flag_spec \ | ||
34090 | compiler_needs_object \ | ||
34091 | with_gnu_ld \ | ||
34092 | allow_undefined_flag \ | ||
34093 | no_undefined_flag \ | ||
34094 | hardcode_libdir_flag_spec \ | ||
34095 | hardcode_libdir_flag_spec_ld \ | ||
34096 | hardcode_libdir_separator \ | ||
34097 | fix_srcfile_path \ | ||
34098 | exclude_expsyms \ | ||
34099 | include_expsyms \ | ||
34100 | file_list_spec \ | ||
34101 | variables_saved_for_relink \ | ||
34102 | libname_spec \ | ||
34103 | library_names_spec \ | ||
34104 | soname_spec \ | ||
34105 | finish_eval \ | ||
34106 | old_striplib \ | ||
34107 | striplib \ | ||
34108 | compiler_lib_search_dirs \ | ||
34109 | predep_objects \ | ||
34110 | postdep_objects \ | ||
34111 | predeps \ | ||
34112 | postdeps \ | ||
34113 | compiler_lib_search_path \ | ||
34114 | LD_CXX \ | ||
34115 | compiler_CXX \ | ||
34116 | lt_prog_compiler_no_builtin_flag_CXX \ | ||
34117 | lt_prog_compiler_wl_CXX \ | ||
34118 | lt_prog_compiler_pic_CXX \ | ||
34119 | lt_prog_compiler_static_CXX \ | ||
34120 | lt_cv_prog_compiler_c_o_CXX \ | ||
34121 | export_dynamic_flag_spec_CXX \ | ||
34122 | whole_archive_flag_spec_CXX \ | ||
34123 | compiler_needs_object_CXX \ | ||
34124 | with_gnu_ld_CXX \ | ||
34125 | allow_undefined_flag_CXX \ | ||
34126 | no_undefined_flag_CXX \ | ||
34127 | hardcode_libdir_flag_spec_CXX \ | ||
34128 | hardcode_libdir_flag_spec_ld_CXX \ | ||
34129 | hardcode_libdir_separator_CXX \ | ||
34130 | fix_srcfile_path_CXX \ | ||
34131 | exclude_expsyms_CXX \ | ||
34132 | include_expsyms_CXX \ | ||
34133 | file_list_spec_CXX \ | ||
34134 | compiler_lib_search_dirs_CXX \ | ||
34135 | predep_objects_CXX \ | ||
34136 | postdep_objects_CXX \ | ||
34137 | predeps_CXX \ | ||
34138 | postdeps_CXX \ | ||
34139 | compiler_lib_search_path_CXX; do | ||
34140 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
34141 | *[\\\\\\\`\\"\\\$]*) | ||
34142 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | ||
34143 | ;; | ||
34144 | *) | ||
34145 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
34146 | ;; | ||
34147 | esac | ||
34148 | done | ||
34149 | |||
34150 | # Double-quote double-evaled strings. | ||
34151 | for var in reload_cmds \ | ||
34152 | old_postinstall_cmds \ | ||
34153 | old_postuninstall_cmds \ | ||
34154 | old_archive_cmds \ | ||
34155 | extract_expsyms_cmds \ | ||
34156 | old_archive_from_new_cmds \ | ||
34157 | old_archive_from_expsyms_cmds \ | ||
34158 | archive_cmds \ | ||
34159 | archive_expsym_cmds \ | ||
34160 | module_cmds \ | ||
34161 | module_expsym_cmds \ | ||
34162 | export_symbols_cmds \ | ||
34163 | prelink_cmds \ | ||
34164 | postinstall_cmds \ | ||
34165 | postuninstall_cmds \ | ||
34166 | finish_cmds \ | ||
34167 | sys_lib_search_path_spec \ | ||
34168 | sys_lib_dlsearch_path_spec \ | ||
34169 | old_archive_cmds_CXX \ | ||
34170 | old_archive_from_new_cmds_CXX \ | ||
34171 | old_archive_from_expsyms_cmds_CXX \ | ||
34172 | archive_cmds_CXX \ | ||
34173 | archive_expsym_cmds_CXX \ | ||
34174 | module_cmds_CXX \ | ||
34175 | module_expsym_cmds_CXX \ | ||
34176 | export_symbols_cmds_CXX \ | ||
34177 | prelink_cmds_CXX; do | ||
34178 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | ||
34179 | *[\\\\\\\`\\"\\\$]*) | ||
34180 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | ||
34181 | ;; | ||
34182 | *) | ||
34183 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
34184 | ;; | ||
34185 | esac | ||
34186 | done | ||
34187 | |||
34188 | # Fix-up fallback echo if it was mangled by the above quoting rules. | ||
34189 | case \$lt_ECHO in | ||
34190 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | ||
34191 | ;; | ||
34192 | esac | ||
34193 | |||
34194 | ac_aux_dir='$ac_aux_dir' | ||
34195 | xsi_shell='$xsi_shell' | ||
34196 | lt_shell_append='$lt_shell_append' | ||
34197 | |||
34198 | # See if we are running on zsh, and set the options which allow our | ||
34199 | # commands through without removal of \ escapes INIT. | ||
34200 | if test -n "\${ZSH_VERSION+set}" ; then | ||
34201 | setopt NO_GLOB_SUBST | ||
34202 | fi | ||
34203 | |||
34204 | |||
34205 | PACKAGE='$PACKAGE' | ||
34206 | VERSION='$VERSION' | ||
34207 | TIMESTAMP='$TIMESTAMP' | ||
34208 | RM='$RM' | ||
34209 | ofile='$ofile' | ||
34210 | |||
34211 | |||
34212 | |||
34213 | |||
34214 | |||
34215 | |||
34216 | _ACEOF | ||
34217 | |||
34218 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
34219 | |||
34220 | # Handling of arguments. | ||
34221 | for ac_config_target in $ac_config_targets | ||
34222 | do | ||
34223 | case $ac_config_target in | ||
34224 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
34225 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | ||
34226 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | ||
34227 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
34228 | "evas-directfb.pc") CONFIG_FILES="$CONFIG_FILES evas-directfb.pc" ;; | ||
34229 | "evas-fb.pc") CONFIG_FILES="$CONFIG_FILES evas-fb.pc" ;; | ||
34230 | "evas-opengl-x11.pc") CONFIG_FILES="$CONFIG_FILES evas-opengl-x11.pc" ;; | ||
34231 | "evas-opengl-sdl.pc") CONFIG_FILES="$CONFIG_FILES evas-opengl-sdl.pc" ;; | ||
34232 | "evas-opengl-cocoa.pc") CONFIG_FILES="$CONFIG_FILES evas-opengl-cocoa.pc" ;; | ||
34233 | "evas-software-buffer.pc") CONFIG_FILES="$CONFIG_FILES evas-software-buffer.pc" ;; | ||
34234 | "evas-software-x11.pc") CONFIG_FILES="$CONFIG_FILES evas-software-x11.pc" ;; | ||
34235 | "evas-software-8-x11.pc") CONFIG_FILES="$CONFIG_FILES evas-software-8-x11.pc" ;; | ||
34236 | "evas-software-16-x11.pc") CONFIG_FILES="$CONFIG_FILES evas-software-16-x11.pc" ;; | ||
34237 | "evas-software-gdi.pc") CONFIG_FILES="$CONFIG_FILES evas-software-gdi.pc" ;; | ||
34238 | "evas-software-ddraw.pc") CONFIG_FILES="$CONFIG_FILES evas-software-ddraw.pc" ;; | ||
34239 | "evas-software-16-ddraw.pc") CONFIG_FILES="$CONFIG_FILES evas-software-16-ddraw.pc" ;; | ||
34240 | "evas-direct3d.pc") CONFIG_FILES="$CONFIG_FILES evas-direct3d.pc" ;; | ||
34241 | "evas-software-16-wince.pc") CONFIG_FILES="$CONFIG_FILES evas-software-16-wince.pc" ;; | ||
34242 | "evas-software-sdl.pc") CONFIG_FILES="$CONFIG_FILES evas-software-sdl.pc" ;; | ||
34243 | "evas-psl1ght.pc") CONFIG_FILES="$CONFIG_FILES evas-psl1ght.pc" ;; | ||
34244 | "evas-wayland-shm.pc") CONFIG_FILES="$CONFIG_FILES evas-wayland-shm.pc" ;; | ||
34245 | "evas-wayland-egl.pc") CONFIG_FILES="$CONFIG_FILES evas-wayland-egl.pc" ;; | ||
34246 | "evas.pc") CONFIG_FILES="$CONFIG_FILES evas.pc" ;; | ||
34247 | "doc/evas.dox") CONFIG_FILES="$CONFIG_FILES doc/evas.dox" ;; | ||
34248 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | ||
34249 | "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;; | ||
34250 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | ||
34251 | "src/bin/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/Makefile" ;; | ||
34252 | "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; | ||
34253 | "src/lib/canvas/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/canvas/Makefile" ;; | ||
34254 | "src/lib/file/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/file/Makefile" ;; | ||
34255 | "src/lib/cache/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cache/Makefile" ;; | ||
34256 | "src/lib/cserve/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cserve/Makefile" ;; | ||
34257 | "src/lib/engines/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/engines/Makefile" ;; | ||
34258 | "src/lib/engines/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/engines/common/Makefile" ;; | ||
34259 | "src/lib/engines/common/evas_op_add/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/engines/common/evas_op_add/Makefile" ;; | ||
34260 | "src/lib/engines/common/evas_op_blend/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/engines/common/evas_op_blend/Makefile" ;; | ||
34261 | "src/lib/engines/common/evas_op_copy/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/engines/common/evas_op_copy/Makefile" ;; | ||
34262 | "src/lib/engines/common/evas_op_mask/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/engines/common/evas_op_mask/Makefile" ;; | ||
34263 | "src/lib/engines/common/evas_op_mul/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/engines/common/evas_op_mul/Makefile" ;; | ||
34264 | "src/lib/engines/common/evas_op_sub/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/engines/common/evas_op_sub/Makefile" ;; | ||
34265 | "src/lib/engines/common_8/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/engines/common_8/Makefile" ;; | ||
34266 | "src/lib/engines/common_16/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/engines/common_16/Makefile" ;; | ||
34267 | "src/modules/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;; | ||
34268 | "src/modules/engines/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/Makefile" ;; | ||
34269 | "src/modules/engines/software_generic/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_generic/Makefile" ;; | ||
34270 | "src/modules/engines/software_gdi/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_gdi/Makefile" ;; | ||
34271 | "src/modules/engines/software_ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_ddraw/Makefile" ;; | ||
34272 | "src/modules/engines/direct3d/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/direct3d/Makefile" ;; | ||
34273 | "src/modules/engines/software_16_wince/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_16_wince/Makefile" ;; | ||
34274 | "src/modules/engines/software_x11/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_x11/Makefile" ;; | ||
34275 | "src/modules/engines/fb/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/fb/Makefile" ;; | ||
34276 | "src/modules/engines/buffer/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/buffer/Makefile" ;; | ||
34277 | "src/modules/engines/directfb/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/directfb/Makefile" ;; | ||
34278 | "src/modules/engines/gl_common/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/gl_common/Makefile" ;; | ||
34279 | "src/modules/engines/gl_x11/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/gl_x11/Makefile" ;; | ||
34280 | "src/modules/engines/gl_sdl/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/gl_sdl/Makefile" ;; | ||
34281 | "src/modules/engines/gl_cocoa/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/gl_cocoa/Makefile" ;; | ||
34282 | "src/modules/engines/psl1ght/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/psl1ght/Makefile" ;; | ||
34283 | "src/modules/engines/software_8/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_8/Makefile" ;; | ||
34284 | "src/modules/engines/software_8_x11/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_8_x11/Makefile" ;; | ||
34285 | "src/modules/engines/software_16/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_16/Makefile" ;; | ||
34286 | "src/modules/engines/software_16_x11/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_16_x11/Makefile" ;; | ||
34287 | "src/modules/engines/software_16_ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_16_ddraw/Makefile" ;; | ||
34288 | "src/modules/engines/software_16_sdl/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_16_sdl/Makefile" ;; | ||
34289 | "src/modules/engines/wayland_shm/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/wayland_shm/Makefile" ;; | ||
34290 | "src/modules/engines/wayland_egl/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/wayland_egl/Makefile" ;; | ||
34291 | "src/modules/loaders/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/Makefile" ;; | ||
34292 | "src/modules/loaders/edb/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/edb/Makefile" ;; | ||
34293 | "src/modules/loaders/eet/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/eet/Makefile" ;; | ||
34294 | "src/modules/loaders/gif/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/gif/Makefile" ;; | ||
34295 | "src/modules/loaders/jpeg/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/jpeg/Makefile" ;; | ||
34296 | "src/modules/loaders/png/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/png/Makefile" ;; | ||
34297 | "src/modules/loaders/tiff/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/tiff/Makefile" ;; | ||
34298 | "src/modules/loaders/xpm/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/xpm/Makefile" ;; | ||
34299 | "src/modules/loaders/bmp/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/bmp/Makefile" ;; | ||
34300 | "src/modules/loaders/ico/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/ico/Makefile" ;; | ||
34301 | "src/modules/loaders/tga/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/tga/Makefile" ;; | ||
34302 | "src/modules/loaders/svg/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/svg/Makefile" ;; | ||
34303 | "src/modules/loaders/pmaps/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/pmaps/Makefile" ;; | ||
34304 | "src/modules/loaders/wbmp/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/wbmp/Makefile" ;; | ||
34305 | "src/modules/loaders/psd/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/psd/Makefile" ;; | ||
34306 | "src/modules/loaders/generic/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/generic/Makefile" ;; | ||
34307 | "src/modules/savers/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/savers/Makefile" ;; | ||
34308 | "src/modules/savers/edb/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/savers/edb/Makefile" ;; | ||
34309 | "src/modules/savers/eet/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/savers/eet/Makefile" ;; | ||
34310 | "src/modules/savers/jpeg/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/savers/jpeg/Makefile" ;; | ||
34311 | "src/modules/savers/png/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/savers/png/Makefile" ;; | ||
34312 | "src/modules/savers/tiff/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/savers/tiff/Makefile" ;; | ||
34313 | "src/static_deps/Makefile") CONFIG_FILES="$CONFIG_FILES src/static_deps/Makefile" ;; | ||
34314 | "src/static_deps/liblinebreak/Makefile") CONFIG_FILES="$CONFIG_FILES src/static_deps/liblinebreak/Makefile" ;; | ||
34315 | "src/lib/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/include/Makefile" ;; | ||
34316 | "src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;; | ||
34317 | "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;; | ||
34318 | "evas.spec") CONFIG_FILES="$CONFIG_FILES evas.spec" ;; | ||
34319 | |||
34320 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; | ||
34321 | esac | ||
34322 | done | ||
34323 | |||
34324 | |||
34325 | # If the user did not use the arguments to specify the items to instantiate, | ||
34326 | # then the envvar interface is used. Set only those that are not. | ||
34327 | # We use the long form for the default assignment because of an extremely | ||
34328 | # bizarre bug on SunOS 4.1.3. | ||
34329 | if $ac_need_defaults; then | ||
34330 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
34331 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
34332 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | ||
34333 | fi | ||
34334 | |||
34335 | # Have a temporary directory for convenience. Make it in the build tree | ||
34336 | # simply because there is no reason against having it here, and in addition, | ||
34337 | # creating and moving files from /tmp can sometimes cause problems. | ||
34338 | # Hook for its removal unless debugging. | ||
34339 | # Note that there is a small window in which the directory will not be cleaned: | ||
34340 | # after its creation but before its name has been assigned to `$tmp'. | ||
34341 | $debug || | ||
34342 | { | ||
34343 | tmp= | ||
34344 | trap 'exit_status=$? | ||
34345 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | ||
34346 | ' 0 | ||
34347 | trap 'as_fn_exit 1' 1 2 13 15 | ||
34348 | } | ||
34349 | # Create a (secure) tmp directory for tmp files. | ||
34350 | |||
34351 | { | ||
34352 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
34353 | test -n "$tmp" && test -d "$tmp" | ||
34354 | } || | ||
34355 | { | ||
34356 | tmp=./conf$$-$RANDOM | ||
34357 | (umask 077 && mkdir "$tmp") | ||
34358 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | ||
34359 | |||
34360 | # Set up the scripts for CONFIG_FILES section. | ||
34361 | # No need to generate them if there are no CONFIG_FILES. | ||
34362 | # This happens for instance with `./config.status config.h'. | ||
34363 | if test -n "$CONFIG_FILES"; then | ||
34364 | |||
34365 | |||
34366 | ac_cr=`echo X | tr X '\015'` | ||
34367 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | ||
34368 | # But we know of no other shell where ac_cr would be empty at this | ||
34369 | # point, so we can use a bashism as a fallback. | ||
34370 | if test "x$ac_cr" = x; then | ||
34371 | eval ac_cr=\$\'\\r\' | ||
34372 | fi | ||
34373 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | ||
34374 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | ||
34375 | ac_cs_awk_cr='\\r' | ||
34376 | else | ||
34377 | ac_cs_awk_cr=$ac_cr | ||
34378 | fi | ||
34379 | |||
34380 | echo 'BEGIN {' >"$tmp/subs1.awk" && | ||
34381 | _ACEOF | ||
34382 | |||
34383 | |||
34384 | { | ||
34385 | echo "cat >conf$$subs.awk <<_ACEOF" && | ||
34386 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | ||
34387 | echo "_ACEOF" | ||
34388 | } >conf$$subs.sh || | ||
34389 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
34390 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | ||
34391 | ac_delim='%!_!# ' | ||
34392 | for ac_last_try in false false false false false :; do | ||
34393 | . ./conf$$subs.sh || | ||
34394 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
34395 | |||
34396 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | ||
34397 | if test $ac_delim_n = $ac_delim_num; then | ||
34398 | break | ||
34399 | elif $ac_last_try; then | ||
34400 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
34401 | else | ||
34402 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
34403 | fi | ||
34404 | done | ||
34405 | rm -f conf$$subs.sh | ||
34406 | |||
34407 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
34408 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | ||
34409 | _ACEOF | ||
34410 | sed -n ' | ||
34411 | h | ||
34412 | s/^/S["/; s/!.*/"]=/ | ||
34413 | p | ||
34414 | g | ||
34415 | s/^[^!]*!// | ||
34416 | :repl | ||
34417 | t repl | ||
34418 | s/'"$ac_delim"'$// | ||
34419 | t delim | ||
34420 | :nl | ||
34421 | h | ||
34422 | s/\(.\{148\}\)..*/\1/ | ||
34423 | t more1 | ||
34424 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | ||
34425 | p | ||
34426 | n | ||
34427 | b repl | ||
34428 | :more1 | ||
34429 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
34430 | p | ||
34431 | g | ||
34432 | s/.\{148\}// | ||
34433 | t nl | ||
34434 | :delim | ||
34435 | h | ||
34436 | s/\(.\{148\}\)..*/\1/ | ||
34437 | t more2 | ||
34438 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | ||
34439 | p | ||
34440 | b | ||
34441 | :more2 | ||
34442 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
34443 | p | ||
34444 | g | ||
34445 | s/.\{148\}// | ||
34446 | t delim | ||
34447 | ' <conf$$subs.awk | sed ' | ||
34448 | /^[^""]/{ | ||
34449 | N | ||
34450 | s/\n// | ||
34451 | } | ||
34452 | ' >>$CONFIG_STATUS || ac_write_fail=1 | ||
34453 | rm -f conf$$subs.awk | ||
34454 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
34455 | _ACAWK | ||
34456 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | ||
34457 | for (key in S) S_is_set[key] = 1 | ||
34458 | FS = "" | ||
34459 | |||
34460 | } | ||
34461 | { | ||
34462 | line = $ 0 | ||
34463 | nfields = split(line, field, "@") | ||
34464 | substed = 0 | ||
34465 | len = length(field[1]) | ||
34466 | for (i = 2; i < nfields; i++) { | ||
34467 | key = field[i] | ||
34468 | keylen = length(key) | ||
34469 | if (S_is_set[key]) { | ||
34470 | value = S[key] | ||
34471 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | ||
34472 | len += length(value) + length(field[++i]) | ||
34473 | substed = 1 | ||
34474 | } else | ||
34475 | len += 1 + keylen | ||
34476 | } | ||
34477 | |||
34478 | print line | ||
34479 | } | ||
34480 | |||
34481 | _ACAWK | ||
34482 | _ACEOF | ||
34483 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
34484 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | ||
34485 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | ||
34486 | else | ||
34487 | cat | ||
34488 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | ||
34489 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | ||
34490 | _ACEOF | ||
34491 | |||
34492 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | ||
34493 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | ||
34494 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
34495 | # (actually we leave an empty line to preserve line numbers). | ||
34496 | if test "x$srcdir" = x.; then | ||
34497 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | ||
34498 | h | ||
34499 | s/// | ||
34500 | s/^/:/ | ||
34501 | s/[ ]*$/:/ | ||
34502 | s/:\$(srcdir):/:/g | ||
34503 | s/:\${srcdir}:/:/g | ||
34504 | s/:@srcdir@:/:/g | ||
34505 | s/^:*// | ||
34506 | s/:*$// | ||
34507 | x | ||
34508 | s/\(=[ ]*\).*/\1/ | ||
34509 | G | ||
34510 | s/\n// | ||
34511 | s/^[^=]*=[ ]*$// | ||
34512 | }' | ||
34513 | fi | ||
34514 | |||
34515 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
34516 | fi # test -n "$CONFIG_FILES" | ||
34517 | |||
34518 | # Set up the scripts for CONFIG_HEADERS section. | ||
34519 | # No need to generate them if there are no CONFIG_HEADERS. | ||
34520 | # This happens for instance with `./config.status Makefile'. | ||
34521 | if test -n "$CONFIG_HEADERS"; then | ||
34522 | cat >"$tmp/defines.awk" <<\_ACAWK || | ||
34523 | BEGIN { | ||
34524 | _ACEOF | ||
34525 | |||
34526 | # Transform confdefs.h into an awk script `defines.awk', embedded as | ||
34527 | # here-document in config.status, that substitutes the proper values into | ||
34528 | # config.h.in to produce config.h. | ||
34529 | |||
34530 | # Create a delimiter string that does not exist in confdefs.h, to ease | ||
34531 | # handling of long lines. | ||
34532 | ac_delim='%!_!# ' | ||
34533 | for ac_last_try in false false :; do | ||
34534 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | ||
34535 | if test -z "$ac_t"; then | ||
34536 | break | ||
34537 | elif $ac_last_try; then | ||
34538 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | ||
34539 | else | ||
34540 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
34541 | fi | ||
34542 | done | ||
34543 | |||
34544 | # For the awk script, D is an array of macro values keyed by name, | ||
34545 | # likewise P contains macro parameters if any. Preserve backslash | ||
34546 | # newline sequences. | ||
34547 | |||
34548 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
34549 | sed -n ' | ||
34550 | s/.\{148\}/&'"$ac_delim"'/g | ||
34551 | t rset | ||
34552 | :rset | ||
34553 | s/^[ ]*#[ ]*define[ ][ ]*/ / | ||
34554 | t def | ||
34555 | d | ||
34556 | :def | ||
34557 | s/\\$// | ||
34558 | t bsnl | ||
34559 | s/["\\]/\\&/g | ||
34560 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
34561 | D["\1"]=" \3"/p | ||
34562 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | ||
34563 | d | ||
34564 | :bsnl | ||
34565 | s/["\\]/\\&/g | ||
34566 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
34567 | D["\1"]=" \3\\\\\\n"\\/p | ||
34568 | t cont | ||
34569 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | ||
34570 | t cont | ||
34571 | d | ||
34572 | :cont | ||
34573 | n | ||
34574 | s/.\{148\}/&'"$ac_delim"'/g | ||
34575 | t clear | ||
34576 | :clear | ||
34577 | s/\\$// | ||
34578 | t bsnlc | ||
34579 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | ||
34580 | d | ||
34581 | :bsnlc | ||
34582 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | ||
34583 | b cont | ||
34584 | ' <confdefs.h | sed ' | ||
34585 | s/'"$ac_delim"'/"\\\ | ||
34586 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | ||
34587 | |||
34588 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
34589 | for (key in D) D_is_set[key] = 1 | ||
34590 | FS = "" | ||
34591 | } | ||
34592 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | ||
34593 | line = \$ 0 | ||
34594 | split(line, arg, " ") | ||
34595 | if (arg[1] == "#") { | ||
34596 | defundef = arg[2] | ||
34597 | mac1 = arg[3] | ||
34598 | } else { | ||
34599 | defundef = substr(arg[1], 2) | ||
34600 | mac1 = arg[2] | ||
34601 | } | ||
34602 | split(mac1, mac2, "(") #) | ||
34603 | macro = mac2[1] | ||
34604 | prefix = substr(line, 1, index(line, defundef) - 1) | ||
34605 | if (D_is_set[macro]) { | ||
34606 | # Preserve the white space surrounding the "#". | ||
34607 | print prefix "define", macro P[macro] D[macro] | ||
34608 | next | ||
34609 | } else { | ||
34610 | # Replace #undef with comments. This is necessary, for example, | ||
34611 | # in the case of _POSIX_SOURCE, which is predefined and required | ||
34612 | # on some systems where configure will not decide to define it. | ||
34613 | if (defundef == "undef") { | ||
34614 | print "/*", prefix defundef, macro, "*/" | ||
34615 | next | ||
34616 | } | ||
34617 | } | ||
34618 | } | ||
34619 | { print } | ||
34620 | _ACAWK | ||
34621 | _ACEOF | ||
34622 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
34623 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | ||
34624 | fi # test -n "$CONFIG_HEADERS" | ||
34625 | |||
34626 | |||
34627 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | ||
34628 | shift | ||
34629 | for ac_tag | ||
34630 | do | ||
34631 | case $ac_tag in | ||
34632 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
34633 | esac | ||
34634 | case $ac_mode$ac_tag in | ||
34635 | :[FHL]*:*);; | ||
34636 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; | ||
34637 | :[FH]-) ac_tag=-:-;; | ||
34638 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
34639 | esac | ||
34640 | ac_save_IFS=$IFS | ||
34641 | IFS=: | ||
34642 | set x $ac_tag | ||
34643 | IFS=$ac_save_IFS | ||
34644 | shift | ||
34645 | ac_file=$1 | ||
34646 | shift | ||
34647 | |||
34648 | case $ac_mode in | ||
34649 | :L) ac_source=$1;; | ||
34650 | :[FH]) | ||
34651 | ac_file_inputs= | ||
34652 | for ac_f | ||
34653 | do | ||
34654 | case $ac_f in | ||
34655 | -) ac_f="$tmp/stdin";; | ||
34656 | *) # Look for the file first in the build tree, then in the source tree | ||
34657 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
34658 | # because $ac_f cannot contain `:'. | ||
34659 | test -f "$ac_f" || | ||
34660 | case $ac_f in | ||
34661 | [\\/$]*) false;; | ||
34662 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
34663 | esac || | ||
34664 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; | ||
34665 | esac | ||
34666 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | ||
34667 | as_fn_append ac_file_inputs " '$ac_f'" | ||
34668 | done | ||
34669 | |||
34670 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
34671 | # use $as_me), people would be surprised to read: | ||
34672 | # /* config.h. Generated by config.status. */ | ||
34673 | configure_input='Generated from '` | ||
34674 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | ||
34675 | `' by configure.' | ||
34676 | if test x"$ac_file" != x-; then | ||
34677 | configure_input="$ac_file. $configure_input" | ||
34678 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | ||
34679 | $as_echo "$as_me: creating $ac_file" >&6;} | ||
34680 | fi | ||
34681 | # Neutralize special characters interpreted by sed in replacement strings. | ||
34682 | case $configure_input in #( | ||
34683 | *\&* | *\|* | *\\* ) | ||
34684 | ac_sed_conf_input=`$as_echo "$configure_input" | | ||
34685 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | ||
34686 | *) ac_sed_conf_input=$configure_input;; | ||
34687 | esac | ||
34688 | |||
34689 | case $ac_tag in | ||
34690 | *:-:* | *:-) cat >"$tmp/stdin" \ | ||
34691 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | ||
34692 | esac | ||
34693 | ;; | ||
34694 | esac | ||
34695 | |||
34696 | ac_dir=`$as_dirname -- "$ac_file" || | ||
34697 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
34698 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
34699 | X"$ac_file" : 'X\(//\)$' \| \ | ||
34700 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
34701 | $as_echo X"$ac_file" | | ||
34702 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
34703 | s//\1/ | ||
34704 | q | ||
34705 | } | ||
34706 | /^X\(\/\/\)[^/].*/{ | ||
34707 | s//\1/ | ||
34708 | q | ||
34709 | } | ||
34710 | /^X\(\/\/\)$/{ | ||
34711 | s//\1/ | ||
34712 | q | ||
34713 | } | ||
34714 | /^X\(\/\).*/{ | ||
34715 | s//\1/ | ||
34716 | q | ||
34717 | } | ||
34718 | s/.*/./; q'` | ||
34719 | as_dir="$ac_dir"; as_fn_mkdir_p | ||
34720 | ac_builddir=. | ||
34721 | |||
34722 | case "$ac_dir" in | ||
34723 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
34724 | *) | ||
34725 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
34726 | # A ".." for each directory in $ac_dir_suffix. | ||
34727 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
34728 | case $ac_top_builddir_sub in | ||
34729 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
34730 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
34731 | esac ;; | ||
34732 | esac | ||
34733 | ac_abs_top_builddir=$ac_pwd | ||
34734 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
34735 | # for backward compatibility: | ||
34736 | ac_top_builddir=$ac_top_build_prefix | ||
34737 | |||
34738 | case $srcdir in | ||
34739 | .) # We are building in place. | ||
34740 | ac_srcdir=. | ||
34741 | ac_top_srcdir=$ac_top_builddir_sub | ||
34742 | ac_abs_top_srcdir=$ac_pwd ;; | ||
34743 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
34744 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
34745 | ac_top_srcdir=$srcdir | ||
34746 | ac_abs_top_srcdir=$srcdir ;; | ||
34747 | *) # Relative name. | ||
34748 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
34749 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
34750 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
34751 | esac | ||
34752 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
34753 | |||
34754 | |||
34755 | case $ac_mode in | ||
34756 | :F) | ||
34757 | # | ||
34758 | # CONFIG_FILE | ||
34759 | # | ||
34760 | |||
34761 | case $INSTALL in | ||
34762 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
34763 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
34764 | esac | ||
34765 | ac_MKDIR_P=$MKDIR_P | ||
34766 | case $MKDIR_P in | ||
34767 | [\\/$]* | ?:[\\/]* ) ;; | ||
34768 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | ||
34769 | esac | ||
34770 | _ACEOF | ||
34771 | |||
34772 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
34773 | # If the template does not know about datarootdir, expand it. | ||
34774 | # FIXME: This hack should be removed a few years after 2.60. | ||
34775 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
34776 | ac_sed_dataroot=' | ||
34777 | /datarootdir/ { | ||
34778 | p | ||
34779 | q | ||
34780 | } | ||
34781 | /@datadir@/p | ||
34782 | /@docdir@/p | ||
34783 | /@infodir@/p | ||
34784 | /@localedir@/p | ||
34785 | /@mandir@/p' | ||
34786 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | ||
34787 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
34788 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
34789 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
34790 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
34791 | _ACEOF | ||
34792 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
34793 | ac_datarootdir_hack=' | ||
34794 | s&@datadir@&$datadir&g | ||
34795 | s&@docdir@&$docdir&g | ||
34796 | s&@infodir@&$infodir&g | ||
34797 | s&@localedir@&$localedir&g | ||
34798 | s&@mandir@&$mandir&g | ||
34799 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
34800 | esac | ||
34801 | _ACEOF | ||
34802 | |||
34803 | # Neutralize VPATH when `$srcdir' = `.'. | ||
34804 | # Shell code in configure.ac might set extrasub. | ||
34805 | # FIXME: do we really want to maintain this feature? | ||
34806 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
34807 | ac_sed_extra="$ac_vpsub | ||
34808 | $extrasub | ||
34809 | _ACEOF | ||
34810 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
34811 | :t | ||
34812 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
34813 | s|@configure_input@|$ac_sed_conf_input|;t t | ||
34814 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
34815 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | ||
34816 | s&@srcdir@&$ac_srcdir&;t t | ||
34817 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
34818 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
34819 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
34820 | s&@builddir@&$ac_builddir&;t t | ||
34821 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
34822 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
34823 | s&@INSTALL@&$ac_INSTALL&;t t | ||
34824 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | ||
34825 | $ac_datarootdir_hack | ||
34826 | " | ||
34827 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | ||
34828 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
34829 | |||
34830 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
34831 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | ||
34832 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | ||
34833 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
34834 | which seems to be undefined. Please make sure it is defined" >&5 | ||
34835 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
34836 | which seems to be undefined. Please make sure it is defined" >&2;} | ||
34837 | |||
34838 | rm -f "$tmp/stdin" | ||
34839 | case $ac_file in | ||
34840 | -) cat "$tmp/out" && rm -f "$tmp/out";; | ||
34841 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | ||
34842 | esac \ | ||
34843 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
34844 | ;; | ||
34845 | :H) | ||
34846 | # | ||
34847 | # CONFIG_HEADER | ||
34848 | # | ||
34849 | if test x"$ac_file" != x-; then | ||
34850 | { | ||
34851 | $as_echo "/* $configure_input */" \ | ||
34852 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | ||
34853 | } >"$tmp/config.h" \ | ||
34854 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
34855 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | ||
34856 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | ||
34857 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | ||
34858 | else | ||
34859 | rm -f "$ac_file" | ||
34860 | mv "$tmp/config.h" "$ac_file" \ | ||
34861 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
34862 | fi | ||
34863 | else | ||
34864 | $as_echo "/* $configure_input */" \ | ||
34865 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | ||
34866 | || as_fn_error $? "could not create -" "$LINENO" 5 | ||
34867 | fi | ||
34868 | # Compute "$ac_file"'s index in $config_headers. | ||
34869 | _am_arg="$ac_file" | ||
34870 | _am_stamp_count=1 | ||
34871 | for _am_header in $config_headers :; do | ||
34872 | case $_am_header in | ||
34873 | $_am_arg | $_am_arg:* ) | ||
34874 | break ;; | ||
34875 | * ) | ||
34876 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | ||
34877 | esac | ||
34878 | done | ||
34879 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | ||
34880 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
34881 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | ||
34882 | X"$_am_arg" : 'X\(//\)$' \| \ | ||
34883 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | ||
34884 | $as_echo X"$_am_arg" | | ||
34885 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
34886 | s//\1/ | ||
34887 | q | ||
34888 | } | ||
34889 | /^X\(\/\/\)[^/].*/{ | ||
34890 | s//\1/ | ||
34891 | q | ||
34892 | } | ||
34893 | /^X\(\/\/\)$/{ | ||
34894 | s//\1/ | ||
34895 | q | ||
34896 | } | ||
34897 | /^X\(\/\).*/{ | ||
34898 | s//\1/ | ||
34899 | q | ||
34900 | } | ||
34901 | s/.*/./; q'`/stamp-h$_am_stamp_count | ||
34902 | ;; | ||
34903 | |||
34904 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | ||
34905 | $as_echo "$as_me: executing $ac_file commands" >&6;} | ||
34906 | ;; | ||
34907 | esac | ||
34908 | |||
34909 | |||
34910 | case $ac_file$ac_mode in | ||
34911 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | ||
34912 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | ||
34913 | # are listed without --file. Let's play safe and only enable the eval | ||
34914 | # if we detect the quoting. | ||
34915 | case $CONFIG_FILES in | ||
34916 | *\'*) eval set x "$CONFIG_FILES" ;; | ||
34917 | *) set x $CONFIG_FILES ;; | ||
34918 | esac | ||
34919 | shift | ||
34920 | for mf | ||
34921 | do | ||
34922 | # Strip MF so we end up with the name of the file. | ||
34923 | mf=`echo "$mf" | sed -e 's/:.*$//'` | ||
34924 | # Check whether this is an Automake generated Makefile or not. | ||
34925 | # We used to match only the files named `Makefile.in', but | ||
34926 | # some people rename them; so instead we look at the file content. | ||
34927 | # Grep'ing the first line is not enough: some people post-process | ||
34928 | # each Makefile.in and add a new line on top of each file to say so. | ||
34929 | # Grep'ing the whole file is not good either: AIX grep has a line | ||
34930 | # limit of 2048, but all sed's we know have understand at least 4000. | ||
34931 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | ||
34932 | dirpart=`$as_dirname -- "$mf" || | ||
34933 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
34934 | X"$mf" : 'X\(//\)[^/]' \| \ | ||
34935 | X"$mf" : 'X\(//\)$' \| \ | ||
34936 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | ||
34937 | $as_echo X"$mf" | | ||
34938 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
34939 | s//\1/ | ||
34940 | q | ||
34941 | } | ||
34942 | /^X\(\/\/\)[^/].*/{ | ||
34943 | s//\1/ | ||
34944 | q | ||
34945 | } | ||
34946 | /^X\(\/\/\)$/{ | ||
34947 | s//\1/ | ||
34948 | q | ||
34949 | } | ||
34950 | /^X\(\/\).*/{ | ||
34951 | s//\1/ | ||
34952 | q | ||
34953 | } | ||
34954 | s/.*/./; q'` | ||
34955 | else | ||
34956 | continue | ||
34957 | fi | ||
34958 | # Extract the definition of DEPDIR, am__include, and am__quote | ||
34959 | # from the Makefile without running `make'. | ||
34960 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | ||
34961 | test -z "$DEPDIR" && continue | ||
34962 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | ||
34963 | test -z "am__include" && continue | ||
34964 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | ||
34965 | # When using ansi2knr, U may be empty or an underscore; expand it | ||
34966 | U=`sed -n 's/^U = //p' < "$mf"` | ||
34967 | # Find all dependency output files, they are included files with | ||
34968 | # $(DEPDIR) in their names. We invoke sed twice because it is the | ||
34969 | # simplest approach to changing $(DEPDIR) to its actual value in the | ||
34970 | # expansion. | ||
34971 | for file in `sed -n " | ||
34972 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | ||
34973 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | ||
34974 | # Make sure the directory exists. | ||
34975 | test -f "$dirpart/$file" && continue | ||
34976 | fdir=`$as_dirname -- "$file" || | ||
34977 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
34978 | X"$file" : 'X\(//\)[^/]' \| \ | ||
34979 | X"$file" : 'X\(//\)$' \| \ | ||
34980 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | ||
34981 | $as_echo X"$file" | | ||
34982 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
34983 | s//\1/ | ||
34984 | q | ||
34985 | } | ||
34986 | /^X\(\/\/\)[^/].*/{ | ||
34987 | s//\1/ | ||
34988 | q | ||
34989 | } | ||
34990 | /^X\(\/\/\)$/{ | ||
34991 | s//\1/ | ||
34992 | q | ||
34993 | } | ||
34994 | /^X\(\/\).*/{ | ||
34995 | s//\1/ | ||
34996 | q | ||
34997 | } | ||
34998 | s/.*/./; q'` | ||
34999 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | ||
35000 | # echo "creating $dirpart/$file" | ||
35001 | echo '# dummy' > "$dirpart/$file" | ||
35002 | done | ||
35003 | done | ||
35004 | } | ||
35005 | ;; | ||
35006 | "libtool":C) | ||
35007 | |||
35008 | # See if we are running on zsh, and set the options which allow our | ||
35009 | # commands through without removal of \ escapes. | ||
35010 | if test -n "${ZSH_VERSION+set}" ; then | ||
35011 | setopt NO_GLOB_SUBST | ||
35012 | fi | ||
35013 | |||
35014 | cfgfile="${ofile}T" | ||
35015 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | ||
35016 | $RM "$cfgfile" | ||
35017 | |||
35018 | cat <<_LT_EOF >> "$cfgfile" | ||
35019 | #! $SHELL | ||
35020 | |||
35021 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | ||
35022 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | ||
35023 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
35024 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
35025 | # | ||
35026 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
35027 | # 2006, 2007, 2008 Free Software Foundation, Inc. | ||
35028 | # Written by Gordon Matzigkeit, 1996 | ||
35029 | # | ||
35030 | # This file is part of GNU Libtool. | ||
35031 | # | ||
35032 | # GNU Libtool is free software; you can redistribute it and/or | ||
35033 | # modify it under the terms of the GNU General Public License as | ||
35034 | # published by the Free Software Foundation; either version 2 of | ||
35035 | # the License, or (at your option) any later version. | ||
35036 | # | ||
35037 | # As a special exception to the GNU General Public License, | ||
35038 | # if you distribute this file as part of a program or library that | ||
35039 | # is built using GNU Libtool, you may include this file under the | ||
35040 | # same distribution terms that you use for the rest of that program. | ||
35041 | # | ||
35042 | # GNU Libtool is distributed in the hope that it will be useful, | ||
35043 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
35044 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
35045 | # GNU General Public License for more details. | ||
35046 | # | ||
35047 | # You should have received a copy of the GNU General Public License | ||
35048 | # along with GNU Libtool; see the file COPYING. If not, a copy | ||
35049 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | ||
35050 | # obtained by writing to the Free Software Foundation, Inc., | ||
35051 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
35052 | |||
35053 | |||
35054 | # The names of the tagged configurations supported by this script. | ||
35055 | available_tags="CXX " | ||
35056 | |||
35057 | # ### BEGIN LIBTOOL CONFIG | ||
35058 | |||
35059 | # Assembler program. | ||
35060 | AS=$AS | ||
35061 | |||
35062 | # DLL creation program. | ||
35063 | DLLTOOL=$DLLTOOL | ||
35064 | |||
35065 | # Object dumper program. | ||
35066 | OBJDUMP=$OBJDUMP | ||
35067 | |||
35068 | # Which release of libtool.m4 was used? | ||
35069 | macro_version=$macro_version | ||
35070 | macro_revision=$macro_revision | ||
35071 | |||
35072 | # Whether or not to build shared libraries. | ||
35073 | build_libtool_libs=$enable_shared | ||
35074 | |||
35075 | # Whether or not to build static libraries. | ||
35076 | build_old_libs=$enable_static | ||
35077 | |||
35078 | # What type of objects to build. | ||
35079 | pic_mode=$pic_mode | ||
35080 | |||
35081 | # Whether or not to optimize for fast installation. | ||
35082 | fast_install=$enable_fast_install | ||
35083 | |||
35084 | # The host system. | ||
35085 | host_alias=$host_alias | ||
35086 | host=$host | ||
35087 | host_os=$host_os | ||
35088 | |||
35089 | # The build system. | ||
35090 | build_alias=$build_alias | ||
35091 | build=$build | ||
35092 | build_os=$build_os | ||
35093 | |||
35094 | # A sed program that does not truncate output. | ||
35095 | SED=$lt_SED | ||
35096 | |||
35097 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | ||
35098 | Xsed="\$SED -e 1s/^X//" | ||
35099 | |||
35100 | # A grep program that handles long lines. | ||
35101 | GREP=$lt_GREP | ||
35102 | |||
35103 | # An ERE matcher. | ||
35104 | EGREP=$lt_EGREP | ||
35105 | |||
35106 | # A literal string matcher. | ||
35107 | FGREP=$lt_FGREP | ||
35108 | |||
35109 | # A BSD- or MS-compatible name lister. | ||
35110 | NM=$lt_NM | ||
35111 | |||
35112 | # Whether we need soft or hard links. | ||
35113 | LN_S=$lt_LN_S | ||
35114 | |||
35115 | # What is the maximum length of a command? | ||
35116 | max_cmd_len=$max_cmd_len | ||
35117 | |||
35118 | # Object file suffix (normally "o"). | ||
35119 | objext=$ac_objext | ||
35120 | |||
35121 | # Executable file suffix (normally ""). | ||
35122 | exeext=$exeext | ||
35123 | |||
35124 | # whether the shell understands "unset". | ||
35125 | lt_unset=$lt_unset | ||
35126 | |||
35127 | # turn spaces into newlines. | ||
35128 | SP2NL=$lt_lt_SP2NL | ||
35129 | |||
35130 | # turn newlines into spaces. | ||
35131 | NL2SP=$lt_lt_NL2SP | ||
35132 | |||
35133 | # How to create reloadable object files. | ||
35134 | reload_flag=$lt_reload_flag | ||
35135 | reload_cmds=$lt_reload_cmds | ||
35136 | |||
35137 | # Method to check whether dependent libraries are shared objects. | ||
35138 | deplibs_check_method=$lt_deplibs_check_method | ||
35139 | |||
35140 | # Command to use when deplibs_check_method == "file_magic". | ||
35141 | file_magic_cmd=$lt_file_magic_cmd | ||
35142 | |||
35143 | # The archiver. | ||
35144 | AR=$lt_AR | ||
35145 | AR_FLAGS=$lt_AR_FLAGS | ||
35146 | |||
35147 | # A symbol stripping program. | ||
35148 | STRIP=$lt_STRIP | ||
35149 | |||
35150 | # Commands used to install an old-style archive. | ||
35151 | RANLIB=$lt_RANLIB | ||
35152 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
35153 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
35154 | |||
35155 | # A C compiler. | ||
35156 | LTCC=$lt_CC | ||
35157 | |||
35158 | # LTCC compiler flags. | ||
35159 | LTCFLAGS=$lt_CFLAGS | ||
35160 | |||
35161 | # Take the output of nm and produce a listing of raw symbols and C names. | ||
35162 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | ||
35163 | |||
35164 | # Transform the output of nm in a proper C declaration. | ||
35165 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | ||
35166 | |||
35167 | # Transform the output of nm in a C name address pair. | ||
35168 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
35169 | |||
35170 | # Transform the output of nm in a C name address pair when lib prefix is needed. | ||
35171 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | ||
35172 | |||
35173 | # The name of the directory that contains temporary libtool files. | ||
35174 | objdir=$objdir | ||
35175 | |||
35176 | # Shell to use when invoking shell scripts. | ||
35177 | SHELL=$lt_SHELL | ||
35178 | |||
35179 | # An echo program that does not interpret backslashes. | ||
35180 | ECHO=$lt_ECHO | ||
35181 | |||
35182 | # Used to examine libraries when file_magic_cmd begins with "file". | ||
35183 | MAGIC_CMD=$MAGIC_CMD | ||
35184 | |||
35185 | # Must we lock files when doing compilation? | ||
35186 | need_locks=$lt_need_locks | ||
35187 | |||
35188 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | ||
35189 | DSYMUTIL=$lt_DSYMUTIL | ||
35190 | |||
35191 | # Tool to change global to local symbols on Mac OS X. | ||
35192 | NMEDIT=$lt_NMEDIT | ||
35193 | |||
35194 | # Tool to manipulate fat objects and archives on Mac OS X. | ||
35195 | LIPO=$lt_LIPO | ||
35196 | |||
35197 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | ||
35198 | OTOOL=$lt_OTOOL | ||
35199 | |||
35200 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | ||
35201 | OTOOL64=$lt_OTOOL64 | ||
35202 | |||
35203 | # Old archive suffix (normally "a"). | ||
35204 | libext=$libext | ||
35205 | |||
35206 | # Shared library suffix (normally ".so"). | ||
35207 | shrext_cmds=$lt_shrext_cmds | ||
35208 | |||
35209 | # The commands to extract the exported symbol list from a shared archive. | ||
35210 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | ||
35211 | |||
35212 | # Variables whose values should be saved in libtool wrapper scripts and | ||
35213 | # restored at link time. | ||
35214 | variables_saved_for_relink=$lt_variables_saved_for_relink | ||
35215 | |||
35216 | # Do we need the "lib" prefix for modules? | ||
35217 | need_lib_prefix=$need_lib_prefix | ||
35218 | |||
35219 | # Do we need a version for libraries? | ||
35220 | need_version=$need_version | ||
35221 | |||
35222 | # Library versioning type. | ||
35223 | version_type=$version_type | ||
35224 | |||
35225 | # Shared library runtime path variable. | ||
35226 | runpath_var=$runpath_var | ||
35227 | |||
35228 | # Shared library path variable. | ||
35229 | shlibpath_var=$shlibpath_var | ||
35230 | |||
35231 | # Is shlibpath searched before the hard-coded library search path? | ||
35232 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | ||
35233 | |||
35234 | # Format of library name prefix. | ||
35235 | libname_spec=$lt_libname_spec | ||
35236 | |||
35237 | # List of archive names. First name is the real one, the rest are links. | ||
35238 | # The last name is the one that the linker finds with -lNAME | ||
35239 | library_names_spec=$lt_library_names_spec | ||
35240 | |||
35241 | # The coded name of the library, if different from the real name. | ||
35242 | soname_spec=$lt_soname_spec | ||
35243 | |||
35244 | # Command to use after installation of a shared archive. | ||
35245 | postinstall_cmds=$lt_postinstall_cmds | ||
35246 | |||
35247 | # Command to use after uninstallation of a shared archive. | ||
35248 | postuninstall_cmds=$lt_postuninstall_cmds | ||
35249 | |||
35250 | # Commands used to finish a libtool library installation in a directory. | ||
35251 | finish_cmds=$lt_finish_cmds | ||
35252 | |||
35253 | # As "finish_cmds", except a single script fragment to be evaled but | ||
35254 | # not shown. | ||
35255 | finish_eval=$lt_finish_eval | ||
35256 | |||
35257 | # Whether we should hardcode library paths into libraries. | ||
35258 | hardcode_into_libs=$hardcode_into_libs | ||
35259 | |||
35260 | # Compile-time system search path for libraries. | ||
35261 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | ||
35262 | |||
35263 | # Run-time system search path for libraries. | ||
35264 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | ||
35265 | |||
35266 | # Whether dlopen is supported. | ||
35267 | dlopen_support=$enable_dlopen | ||
35268 | |||
35269 | # Whether dlopen of programs is supported. | ||
35270 | dlopen_self=$enable_dlopen_self | ||
35271 | |||
35272 | # Whether dlopen of statically linked programs is supported. | ||
35273 | dlopen_self_static=$enable_dlopen_self_static | ||
35274 | |||
35275 | # Commands to strip libraries. | ||
35276 | old_striplib=$lt_old_striplib | ||
35277 | striplib=$lt_striplib | ||
35278 | |||
35279 | |||
35280 | # The linker used to build libraries. | ||
35281 | LD=$lt_LD | ||
35282 | |||
35283 | # Commands used to build an old-style archive. | ||
35284 | old_archive_cmds=$lt_old_archive_cmds | ||
35285 | |||
35286 | # A language specific compiler. | ||
35287 | CC=$lt_compiler | ||
35288 | |||
35289 | # Is the compiler the GNU compiler? | ||
35290 | with_gcc=$GCC | ||
35291 | |||
35292 | # Compiler flag to turn off builtin functions. | ||
35293 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | ||
35294 | |||
35295 | # How to pass a linker flag through the compiler. | ||
35296 | wl=$lt_lt_prog_compiler_wl | ||
35297 | |||
35298 | # Additional compiler flags for building library objects. | ||
35299 | pic_flag=$lt_lt_prog_compiler_pic | ||
35300 | |||
35301 | # Compiler flag to prevent dynamic linking. | ||
35302 | link_static_flag=$lt_lt_prog_compiler_static | ||
35303 | |||
35304 | # Does compiler simultaneously support -c and -o options? | ||
35305 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | ||
35306 | |||
35307 | # Whether or not to add -lc for building shared libraries. | ||
35308 | build_libtool_need_lc=$archive_cmds_need_lc | ||
35309 | |||
35310 | # Whether or not to disallow shared libs when runtime libs are static. | ||
35311 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | ||
35312 | |||
35313 | # Compiler flag to allow reflexive dlopens. | ||
35314 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | ||
35315 | |||
35316 | # Compiler flag to generate shared objects directly from archives. | ||
35317 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | ||
35318 | |||
35319 | # Whether the compiler copes with passing no objects directly. | ||
35320 | compiler_needs_object=$lt_compiler_needs_object | ||
35321 | |||
35322 | # Create an old-style archive from a shared archive. | ||
35323 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | ||
35324 | |||
35325 | # Create a temporary old-style archive to link instead of a shared archive. | ||
35326 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | ||
35327 | |||
35328 | # Commands used to build a shared archive. | ||
35329 | archive_cmds=$lt_archive_cmds | ||
35330 | archive_expsym_cmds=$lt_archive_expsym_cmds | ||
35331 | |||
35332 | # Commands used to build a loadable module if different from building | ||
35333 | # a shared archive. | ||
35334 | module_cmds=$lt_module_cmds | ||
35335 | module_expsym_cmds=$lt_module_expsym_cmds | ||
35336 | |||
35337 | # Whether we are building with GNU ld or not. | ||
35338 | with_gnu_ld=$lt_with_gnu_ld | ||
35339 | |||
35340 | # Flag that allows shared libraries with undefined symbols to be built. | ||
35341 | allow_undefined_flag=$lt_allow_undefined_flag | ||
35342 | |||
35343 | # Flag that enforces no undefined symbols. | ||
35344 | no_undefined_flag=$lt_no_undefined_flag | ||
35345 | |||
35346 | # Flag to hardcode \$libdir into a binary during linking. | ||
35347 | # This must work even if \$libdir does not exist | ||
35348 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | ||
35349 | |||
35350 | # If ld is used when linking, flag to hardcode \$libdir into a binary | ||
35351 | # during linking. This must work even if \$libdir does not exist. | ||
35352 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | ||
35353 | |||
35354 | # Whether we need a single "-rpath" flag with a separated argument. | ||
35355 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | ||
35356 | |||
35357 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
35358 | # DIR into the resulting binary. | ||
35359 | hardcode_direct=$hardcode_direct | ||
35360 | |||
35361 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
35362 | # DIR into the resulting binary and the resulting library dependency is | ||
35363 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | ||
35364 | # library is relocated. | ||
35365 | hardcode_direct_absolute=$hardcode_direct_absolute | ||
35366 | |||
35367 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | ||
35368 | # into the resulting binary. | ||
35369 | hardcode_minus_L=$hardcode_minus_L | ||
35370 | |||
35371 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | ||
35372 | # into the resulting binary. | ||
35373 | hardcode_shlibpath_var=$hardcode_shlibpath_var | ||
35374 | |||
35375 | # Set to "yes" if building a shared library automatically hardcodes DIR | ||
35376 | # into the library and all subsequent libraries and executables linked | ||
35377 | # against it. | ||
35378 | hardcode_automatic=$hardcode_automatic | ||
35379 | |||
35380 | # Set to yes if linker adds runtime paths of dependent libraries | ||
35381 | # to runtime path list. | ||
35382 | inherit_rpath=$inherit_rpath | ||
35383 | |||
35384 | # Whether libtool must link a program against all its dependency libraries. | ||
35385 | link_all_deplibs=$link_all_deplibs | ||
35386 | |||
35387 | # Fix the shell variable \$srcfile for the compiler. | ||
35388 | fix_srcfile_path=$lt_fix_srcfile_path | ||
35389 | |||
35390 | # Set to "yes" if exported symbols are required. | ||
35391 | always_export_symbols=$always_export_symbols | ||
35392 | |||
35393 | # The commands to list exported symbols. | ||
35394 | export_symbols_cmds=$lt_export_symbols_cmds | ||
35395 | |||
35396 | # Symbols that should not be listed in the preloaded symbols. | ||
35397 | exclude_expsyms=$lt_exclude_expsyms | ||
35398 | |||
35399 | # Symbols that must always be exported. | ||
35400 | include_expsyms=$lt_include_expsyms | ||
35401 | |||
35402 | # Commands necessary for linking programs (against libraries) with templates. | ||
35403 | prelink_cmds=$lt_prelink_cmds | ||
35404 | |||
35405 | # Specify filename containing input files. | ||
35406 | file_list_spec=$lt_file_list_spec | ||
35407 | |||
35408 | # How to hardcode a shared library path into an executable. | ||
35409 | hardcode_action=$hardcode_action | ||
35410 | |||
35411 | # The directories searched by this compiler when creating a shared library. | ||
35412 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | ||
35413 | |||
35414 | # Dependencies to place before and after the objects being linked to | ||
35415 | # create a shared library. | ||
35416 | predep_objects=$lt_predep_objects | ||
35417 | postdep_objects=$lt_postdep_objects | ||
35418 | predeps=$lt_predeps | ||
35419 | postdeps=$lt_postdeps | ||
35420 | |||
35421 | # The library search path used internally by the compiler when linking | ||
35422 | # a shared library. | ||
35423 | compiler_lib_search_path=$lt_compiler_lib_search_path | ||
35424 | |||
35425 | # ### END LIBTOOL CONFIG | ||
35426 | |||
35427 | _LT_EOF | ||
35428 | |||
35429 | case $host_os in | ||
35430 | aix3*) | ||
35431 | cat <<\_LT_EOF >> "$cfgfile" | ||
35432 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
35433 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
35434 | # vanish in a puff of smoke. | ||
35435 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
35436 | COLLECT_NAMES= | ||
35437 | export COLLECT_NAMES | ||
35438 | fi | ||
35439 | _LT_EOF | ||
35440 | ;; | ||
35441 | esac | ||
35442 | |||
35443 | |||
35444 | ltmain="$ac_aux_dir/ltmain.sh" | ||
35445 | |||
35446 | |||
35447 | # We use sed instead of cat because bash on DJGPP gets confused if | ||
35448 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
35449 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
35450 | # is reportedly fixed, but why not run on old versions too? | ||
35451 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | ||
35452 | || (rm -f "$cfgfile"; exit 1) | ||
35453 | |||
35454 | case $xsi_shell in | ||
35455 | yes) | ||
35456 | cat << \_LT_EOF >> "$cfgfile" | ||
35457 | |||
35458 | # func_dirname file append nondir_replacement | ||
35459 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
35460 | # otherwise set result to NONDIR_REPLACEMENT. | ||
35461 | func_dirname () | ||
35462 | { | ||
35463 | case ${1} in | ||
35464 | */*) func_dirname_result="${1%/*}${2}" ;; | ||
35465 | * ) func_dirname_result="${3}" ;; | ||
35466 | esac | ||
35467 | } | ||
35468 | |||
35469 | # func_basename file | ||
35470 | func_basename () | ||
35471 | { | ||
35472 | func_basename_result="${1##*/}" | ||
35473 | } | ||
35474 | |||
35475 | # func_dirname_and_basename file append nondir_replacement | ||
35476 | # perform func_basename and func_dirname in a single function | ||
35477 | # call: | ||
35478 | # dirname: Compute the dirname of FILE. If nonempty, | ||
35479 | # add APPEND to the result, otherwise set result | ||
35480 | # to NONDIR_REPLACEMENT. | ||
35481 | # value returned in "$func_dirname_result" | ||
35482 | # basename: Compute filename of FILE. | ||
35483 | # value retuned in "$func_basename_result" | ||
35484 | # Implementation must be kept synchronized with func_dirname | ||
35485 | # and func_basename. For efficiency, we do not delegate to | ||
35486 | # those functions but instead duplicate the functionality here. | ||
35487 | func_dirname_and_basename () | ||
35488 | { | ||
35489 | case ${1} in | ||
35490 | */*) func_dirname_result="${1%/*}${2}" ;; | ||
35491 | * ) func_dirname_result="${3}" ;; | ||
35492 | esac | ||
35493 | func_basename_result="${1##*/}" | ||
35494 | } | ||
35495 | |||
35496 | # func_stripname prefix suffix name | ||
35497 | # strip PREFIX and SUFFIX off of NAME. | ||
35498 | # PREFIX and SUFFIX must not contain globbing or regex special | ||
35499 | # characters, hashes, percent signs, but SUFFIX may contain a leading | ||
35500 | # dot (in which case that matches only a dot). | ||
35501 | func_stripname () | ||
35502 | { | ||
35503 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | ||
35504 | # positional parameters, so assign one to ordinary parameter first. | ||
35505 | func_stripname_result=${3} | ||
35506 | func_stripname_result=${func_stripname_result#"${1}"} | ||
35507 | func_stripname_result=${func_stripname_result%"${2}"} | ||
35508 | } | ||
35509 | |||
35510 | # func_opt_split | ||
35511 | func_opt_split () | ||
35512 | { | ||
35513 | func_opt_split_opt=${1%%=*} | ||
35514 | func_opt_split_arg=${1#*=} | ||
35515 | } | ||
35516 | |||
35517 | # func_lo2o object | ||
35518 | func_lo2o () | ||
35519 | { | ||
35520 | case ${1} in | ||
35521 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | ||
35522 | *) func_lo2o_result=${1} ;; | ||
35523 | esac | ||
35524 | } | ||
35525 | |||
35526 | # func_xform libobj-or-source | ||
35527 | func_xform () | ||
35528 | { | ||
35529 | func_xform_result=${1%.*}.lo | ||
35530 | } | ||
35531 | |||
35532 | # func_arith arithmetic-term... | ||
35533 | func_arith () | ||
35534 | { | ||
35535 | func_arith_result=$(( $* )) | ||
35536 | } | ||
35537 | |||
35538 | # func_len string | ||
35539 | # STRING may not start with a hyphen. | ||
35540 | func_len () | ||
35541 | { | ||
35542 | func_len_result=${#1} | ||
35543 | } | ||
35544 | |||
35545 | _LT_EOF | ||
35546 | ;; | ||
35547 | *) # Bourne compatible functions. | ||
35548 | cat << \_LT_EOF >> "$cfgfile" | ||
35549 | |||
35550 | # func_dirname file append nondir_replacement | ||
35551 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
35552 | # otherwise set result to NONDIR_REPLACEMENT. | ||
35553 | func_dirname () | ||
35554 | { | ||
35555 | # Extract subdirectory from the argument. | ||
35556 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | ||
35557 | if test "X$func_dirname_result" = "X${1}"; then | ||
35558 | func_dirname_result="${3}" | ||
35559 | else | ||
35560 | func_dirname_result="$func_dirname_result${2}" | ||
35561 | fi | ||
35562 | } | ||
35563 | |||
35564 | # func_basename file | ||
35565 | func_basename () | ||
35566 | { | ||
35567 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | ||
35568 | } | ||
35569 | |||
35570 | |||
35571 | # func_stripname prefix suffix name | ||
35572 | # strip PREFIX and SUFFIX off of NAME. | ||
35573 | # PREFIX and SUFFIX must not contain globbing or regex special | ||
35574 | # characters, hashes, percent signs, but SUFFIX may contain a leading | ||
35575 | # dot (in which case that matches only a dot). | ||
35576 | # func_strip_suffix prefix name | ||
35577 | func_stripname () | ||
35578 | { | ||
35579 | case ${2} in | ||
35580 | .*) func_stripname_result=`$ECHO "X${3}" \ | ||
35581 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | ||
35582 | *) func_stripname_result=`$ECHO "X${3}" \ | ||
35583 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | ||
35584 | esac | ||
35585 | } | ||
35586 | |||
35587 | # sed scripts: | ||
35588 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | ||
35589 | my_sed_long_arg='1s/^-[^=]*=//' | ||
35590 | |||
35591 | # func_opt_split | ||
35592 | func_opt_split () | ||
35593 | { | ||
35594 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | ||
35595 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | ||
35596 | } | ||
35597 | |||
35598 | # func_lo2o object | ||
35599 | func_lo2o () | ||
35600 | { | ||
35601 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | ||
35602 | } | ||
35603 | |||
35604 | # func_xform libobj-or-source | ||
35605 | func_xform () | ||
35606 | { | ||
35607 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | ||
35608 | } | ||
35609 | |||
35610 | # func_arith arithmetic-term... | ||
35611 | func_arith () | ||
35612 | { | ||
35613 | func_arith_result=`expr "$@"` | ||
35614 | } | ||
35615 | |||
35616 | # func_len string | ||
35617 | # STRING may not start with a hyphen. | ||
35618 | func_len () | ||
35619 | { | ||
35620 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | ||
35621 | } | ||
35622 | |||
35623 | _LT_EOF | ||
35624 | esac | ||
35625 | |||
35626 | case $lt_shell_append in | ||
35627 | yes) | ||
35628 | cat << \_LT_EOF >> "$cfgfile" | ||
35629 | |||
35630 | # func_append var value | ||
35631 | # Append VALUE to the end of shell variable VAR. | ||
35632 | func_append () | ||
35633 | { | ||
35634 | eval "$1+=\$2" | ||
35635 | } | ||
35636 | _LT_EOF | ||
35637 | ;; | ||
35638 | *) | ||
35639 | cat << \_LT_EOF >> "$cfgfile" | ||
35640 | |||
35641 | # func_append var value | ||
35642 | # Append VALUE to the end of shell variable VAR. | ||
35643 | func_append () | ||
35644 | { | ||
35645 | eval "$1=\$$1\$2" | ||
35646 | } | ||
35647 | |||
35648 | _LT_EOF | ||
35649 | ;; | ||
35650 | esac | ||
35651 | |||
35652 | |||
35653 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | ||
35654 | || (rm -f "$cfgfile"; exit 1) | ||
35655 | |||
35656 | mv -f "$cfgfile" "$ofile" || | ||
35657 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
35658 | chmod +x "$ofile" | ||
35659 | |||
35660 | |||
35661 | cat <<_LT_EOF >> "$ofile" | ||
35662 | |||
35663 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | ||
35664 | |||
35665 | # The linker used to build libraries. | ||
35666 | LD=$lt_LD_CXX | ||
35667 | |||
35668 | # Commands used to build an old-style archive. | ||
35669 | old_archive_cmds=$lt_old_archive_cmds_CXX | ||
35670 | |||
35671 | # A language specific compiler. | ||
35672 | CC=$lt_compiler_CXX | ||
35673 | |||
35674 | # Is the compiler the GNU compiler? | ||
35675 | with_gcc=$GCC_CXX | ||
35676 | |||
35677 | # Compiler flag to turn off builtin functions. | ||
35678 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | ||
35679 | |||
35680 | # How to pass a linker flag through the compiler. | ||
35681 | wl=$lt_lt_prog_compiler_wl_CXX | ||
35682 | |||
35683 | # Additional compiler flags for building library objects. | ||
35684 | pic_flag=$lt_lt_prog_compiler_pic_CXX | ||
35685 | |||
35686 | # Compiler flag to prevent dynamic linking. | ||
35687 | link_static_flag=$lt_lt_prog_compiler_static_CXX | ||
35688 | |||
35689 | # Does compiler simultaneously support -c and -o options? | ||
35690 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | ||
35691 | |||
35692 | # Whether or not to add -lc for building shared libraries. | ||
35693 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | ||
35694 | |||
35695 | # Whether or not to disallow shared libs when runtime libs are static. | ||
35696 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | ||
35697 | |||
35698 | # Compiler flag to allow reflexive dlopens. | ||
35699 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | ||
35700 | |||
35701 | # Compiler flag to generate shared objects directly from archives. | ||
35702 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | ||
35703 | |||
35704 | # Whether the compiler copes with passing no objects directly. | ||
35705 | compiler_needs_object=$lt_compiler_needs_object_CXX | ||
35706 | |||
35707 | # Create an old-style archive from a shared archive. | ||
35708 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | ||
35709 | |||
35710 | # Create a temporary old-style archive to link instead of a shared archive. | ||
35711 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | ||
35712 | |||
35713 | # Commands used to build a shared archive. | ||
35714 | archive_cmds=$lt_archive_cmds_CXX | ||
35715 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | ||
35716 | |||
35717 | # Commands used to build a loadable module if different from building | ||
35718 | # a shared archive. | ||
35719 | module_cmds=$lt_module_cmds_CXX | ||
35720 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | ||
35721 | |||
35722 | # Whether we are building with GNU ld or not. | ||
35723 | with_gnu_ld=$lt_with_gnu_ld_CXX | ||
35724 | |||
35725 | # Flag that allows shared libraries with undefined symbols to be built. | ||
35726 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | ||
35727 | |||
35728 | # Flag that enforces no undefined symbols. | ||
35729 | no_undefined_flag=$lt_no_undefined_flag_CXX | ||
35730 | |||
35731 | # Flag to hardcode \$libdir into a binary during linking. | ||
35732 | # This must work even if \$libdir does not exist | ||
35733 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | ||
35734 | |||
35735 | # If ld is used when linking, flag to hardcode \$libdir into a binary | ||
35736 | # during linking. This must work even if \$libdir does not exist. | ||
35737 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | ||
35738 | |||
35739 | # Whether we need a single "-rpath" flag with a separated argument. | ||
35740 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | ||
35741 | |||
35742 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
35743 | # DIR into the resulting binary. | ||
35744 | hardcode_direct=$hardcode_direct_CXX | ||
35745 | |||
35746 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | ||
35747 | # DIR into the resulting binary and the resulting library dependency is | ||
35748 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | ||
35749 | # library is relocated. | ||
35750 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | ||
35751 | |||
35752 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | ||
35753 | # into the resulting binary. | ||
35754 | hardcode_minus_L=$hardcode_minus_L_CXX | ||
35755 | |||
35756 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | ||
35757 | # into the resulting binary. | ||
35758 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | ||
35759 | |||
35760 | # Set to "yes" if building a shared library automatically hardcodes DIR | ||
35761 | # into the library and all subsequent libraries and executables linked | ||
35762 | # against it. | ||
35763 | hardcode_automatic=$hardcode_automatic_CXX | ||
35764 | |||
35765 | # Set to yes if linker adds runtime paths of dependent libraries | ||
35766 | # to runtime path list. | ||
35767 | inherit_rpath=$inherit_rpath_CXX | ||
35768 | |||
35769 | # Whether libtool must link a program against all its dependency libraries. | ||
35770 | link_all_deplibs=$link_all_deplibs_CXX | ||
35771 | |||
35772 | # Fix the shell variable \$srcfile for the compiler. | ||
35773 | fix_srcfile_path=$lt_fix_srcfile_path_CXX | ||
35774 | |||
35775 | # Set to "yes" if exported symbols are required. | ||
35776 | always_export_symbols=$always_export_symbols_CXX | ||
35777 | |||
35778 | # The commands to list exported symbols. | ||
35779 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | ||
35780 | |||
35781 | # Symbols that should not be listed in the preloaded symbols. | ||
35782 | exclude_expsyms=$lt_exclude_expsyms_CXX | ||
35783 | |||
35784 | # Symbols that must always be exported. | ||
35785 | include_expsyms=$lt_include_expsyms_CXX | ||
35786 | |||
35787 | # Commands necessary for linking programs (against libraries) with templates. | ||
35788 | prelink_cmds=$lt_prelink_cmds_CXX | ||
35789 | |||
35790 | # Specify filename containing input files. | ||
35791 | file_list_spec=$lt_file_list_spec_CXX | ||
35792 | |||
35793 | # How to hardcode a shared library path into an executable. | ||
35794 | hardcode_action=$hardcode_action_CXX | ||
35795 | |||
35796 | # The directories searched by this compiler when creating a shared library. | ||
35797 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | ||
35798 | |||
35799 | # Dependencies to place before and after the objects being linked to | ||
35800 | # create a shared library. | ||
35801 | predep_objects=$lt_predep_objects_CXX | ||
35802 | postdep_objects=$lt_postdep_objects_CXX | ||
35803 | predeps=$lt_predeps_CXX | ||
35804 | postdeps=$lt_postdeps_CXX | ||
35805 | |||
35806 | # The library search path used internally by the compiler when linking | ||
35807 | # a shared library. | ||
35808 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | ||
35809 | |||
35810 | # ### END LIBTOOL TAG CONFIG: CXX | ||
35811 | _LT_EOF | ||
35812 | |||
35813 | ;; | ||
35814 | |||
35815 | esac | ||
35816 | done # for ac_tag | ||
35817 | |||
35818 | |||
35819 | as_fn_exit 0 | ||
35820 | _ACEOF | ||
35821 | ac_clean_files=$ac_clean_files_save | ||
35822 | |||
35823 | test $ac_write_fail = 0 || | ||
35824 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | ||
35825 | |||
35826 | |||
35827 | # configure is writing to config.log, and then calls config.status. | ||
35828 | # config.status does its own redirection, appending to config.log. | ||
35829 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
35830 | # by configure, so config.status won't be able to write to it; its | ||
35831 | # output is simply discarded. So we exec the FD to /dev/null, | ||
35832 | # effectively closing config.log, so it can be properly (re)opened and | ||
35833 | # appended to by config.status. When coming back to configure, we | ||
35834 | # need to make the FD available again. | ||
35835 | if test "$no_create" != yes; then | ||
35836 | ac_cs_success=: | ||
35837 | ac_config_status_args= | ||
35838 | test "$silent" = yes && | ||
35839 | ac_config_status_args="$ac_config_status_args --quiet" | ||
35840 | exec 5>/dev/null | ||
35841 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
35842 | exec 5>>config.log | ||
35843 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
35844 | # would make configure fail if this is the last instruction. | ||
35845 | $ac_cs_success || as_fn_exit 1 | ||
35846 | fi | ||
35847 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | ||
35848 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | ||
35849 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | ||
35850 | fi | ||
35851 | |||
35852 | |||
35853 | ##################################################################### | ||
35854 | ## Sanity Checks | ||
35855 | |||
35856 | if test "x$build_pthreads" = "xno" ; then | ||
35857 | if test "x$build_async_render" = "xyes" ; then | ||
35858 | echo "ERROR: PThreads off, but async rendering on. Async rendering" | ||
35859 | echo " needs thread support." | ||
35860 | exit 1 | ||
35861 | fi | ||
35862 | if test "x$build_pipe_render" = "xyes" ; then | ||
35863 | echo "ERROR: PThreads off, but pipe rendering on. Pipe rendering" | ||
35864 | echo " needs thread support." | ||
35865 | exit 1 | ||
35866 | fi | ||
35867 | fi | ||
35868 | |||
35869 | if test "x${has_pthreads}" = "xno" ; then | ||
35870 | if test "x$build_async_preload" = "xyes" ; then | ||
35871 | echo "ERROR: PThreads off, but Async Preload on. Async Preload" | ||
35872 | echo " needs thread support." | ||
35873 | exit 1 | ||
35874 | fi | ||
35875 | fi | ||
35876 | |||
35877 | ##################################################################### | ||
35878 | ## Info | ||
35879 | |||
35880 | echo | ||
35881 | echo | ||
35882 | echo | ||
35883 | echo "------------------------------------------------------------------------" | ||
35884 | echo "$PACKAGE $VERSION" | ||
35885 | echo "------------------------------------------------------------------------" | ||
35886 | echo | ||
35887 | echo "Configuration Options Summary:" | ||
35888 | echo | ||
35889 | echo "Engines:" | ||
35890 | echo " Software Memory Buffer.....: $have_evas_engine_buffer" | ||
35891 | echo " Software X11...............: $have_evas_engine_software_x11 (Xlib: $have_evas_engine_software_xlib) (XCB: $have_evas_engine_software_xcb)" | ||
35892 | echo $ECHO_N " OpenGL X11.................: $have_evas_engine_gl_x11 (Xlib: $have_evas_engine_gl_xlib) (XCB: $have_evas_engine_gl_xcb) $ECHO_C" | ||
35893 | if test "x$have_evas_engine_gl_x11" = "xyes"; then | ||
35894 | echo "(GLES: $gl_flavor_gles) (SGX: $gles_variety_sgx) (s3c6410: $gles_variety_s3c6410)" | ||
35895 | else | ||
35896 | echo | ||
35897 | fi | ||
35898 | echo " Software GDI...............: $have_evas_engine_software_gdi" | ||
35899 | echo " Software DirectDraw........: $have_evas_engine_software_ddraw" | ||
35900 | echo " Direct3d...................: $have_evas_engine_direct3d" | ||
35901 | echo " OpenGL SDL.................: $have_evas_engine_gl_sdl $ECHO_C" | ||
35902 | if test "x$have_evas_engine_gl_sdl" = "xyes"; then | ||
35903 | echo "(GLES: $gl_flavor_gles) (SGX: $gles_variety_sgx) (s3c6410: $gles_variety_s3c6410)" | ||
35904 | else | ||
35905 | echo | ||
35906 | fi | ||
35907 | echo " OpenGL Cocoa...............: $have_evas_engine_gl_cocoa" | ||
35908 | echo " Software Framebuffer.......: $have_evas_engine_fb" | ||
35909 | echo " DirectFB...................: $have_evas_engine_directfb" | ||
35910 | echo " PSL1GHT....................: $have_evas_engine_psl1ght" | ||
35911 | echo " Software 8bit grayscale....: $have_evas_engine_software_8" | ||
35912 | # FIXME: kill software 16bit | ||
35913 | echo " Software 16bit ............: $have_evas_engine_software_16" | ||
35914 | echo " Software 16bit X11.........: $have_evas_engine_software_16_x11" | ||
35915 | echo " Software 16bit Directdraw..: $have_evas_engine_software_16_ddraw" | ||
35916 | echo " Software 16bit WinCE.......: $have_evas_engine_software_16_wince" | ||
35917 | echo " Software 16bit SDL.........: $have_evas_engine_software_16_sdl (primitive: $sdl_primitive)" | ||
35918 | echo " Wayland Shm................: $have_evas_engine_wayland_shm" | ||
35919 | echo " Wayland Egl................: $have_evas_engine_wayland_egl" | ||
35920 | echo | ||
35921 | echo "Image Loaders:" | ||
35922 | echo " BMP.....................: $have_evas_image_loader_bmp" | ||
35923 | echo " EDB.....................: $have_evas_image_loader_edb" | ||
35924 | echo " EET.....................: $have_evas_image_loader_eet" | ||
35925 | echo " GENERIC.................: $have_evas_image_loader_generic" | ||
35926 | echo " GIF.....................: $have_evas_image_loader_gif" | ||
35927 | echo " ICO.....................: $have_evas_image_loader_ico" | ||
35928 | echo " JPEG....................: $have_evas_image_loader_jpeg (region: $have_jpeg_region)" | ||
35929 | echo " PMAPS...................: $have_evas_image_loader_pmaps" | ||
35930 | echo " PNG.....................: $have_evas_image_loader_png" | ||
35931 | echo " PSD.....................: $have_evas_image_loader_psd" | ||
35932 | echo " SVG.....................: $have_evas_image_loader_svg" | ||
35933 | echo " TGA.....................: $have_evas_image_loader_tga" | ||
35934 | echo " TIFF....................: $have_evas_image_loader_tiff" | ||
35935 | echo " WBMP....................: $have_evas_image_loader_wbmp" | ||
35936 | echo " XPM.....................: $have_evas_image_loader_xpm" | ||
35937 | echo | ||
35938 | echo "Font Sourcing Systems:" | ||
35939 | echo " EET.....................: $have_evas_font_loader_eet" | ||
35940 | echo | ||
35941 | echo "Font Searching Systems:" | ||
35942 | echo " Fontconfig..............: $have_fontconfig" | ||
35943 | echo | ||
35944 | echo "Font Rendering Helpers:" | ||
35945 | echo " Fribidi.................: $have_fribidi" | ||
35946 | echo " Harfbuzz................: $have_harfbuzz" | ||
35947 | echo " liblinebreak............: $have_linebreak" | ||
35948 | # FIXME: add non freetype2 font engine support | ||
35949 | # FIXME: make freetype2 optional | ||
35950 | echo | ||
35951 | echo "CPU Specific Extensions:" | ||
35952 | echo " Fallback C Code.........: $build_cpu_c" | ||
35953 | echo " MMX.....................: $build_cpu_mmx" | ||
35954 | echo " SSE.....................: $build_cpu_sse" | ||
35955 | echo " SSE3....................: $build_cpu_sse3" | ||
35956 | echo " ALTIVEC.................: $build_cpu_altivec" | ||
35957 | echo " NEON....................: $build_cpu_neon" | ||
35958 | echo " Thread Support..........: $build_pthreads" | ||
35959 | echo | ||
35960 | echo "Features:" | ||
35961 | echo " MAGIC_DEBUG.............: $want_evas_magic_debug" | ||
35962 | echo " Cache Server............: $want_evas_cserve" | ||
35963 | echo | ||
35964 | echo " Threaded Pipe Rendering.: $build_pipe_render" | ||
35965 | echo " Async Pipe Rendering....: $build_async_render" | ||
35966 | echo " Async Events............: $build_async_events" | ||
35967 | echo " Async Image Preload.....: $build_async_preload" | ||
35968 | echo | ||
35969 | echo " Word Cache..............: $want_word_cache" | ||
35970 | echo " Metric Cache............: $want_metric_cache" | ||
35971 | echo | ||
35972 | echo " Pixman..................: $have_pixman" | ||
35973 | echo " Pixman Fonts............: $have_pixman_font" | ||
35974 | echo " Pixman Rects............: $have_pixman_rect" | ||
35975 | echo " Pixman Lines............: $have_pixman_line" | ||
35976 | echo " Pixman Polygons.........: $have_pixman_poly" | ||
35977 | echo " Pixman Images...........: $have_pixman_image" | ||
35978 | echo " Pixman Image ScaleSample: $have_pixman_image_scale_sample" | ||
35979 | echo | ||
35980 | echo " Tiled 32BPP rotate......: $have_tile_rotate" | ||
35981 | echo | ||
35982 | echo "ARGB Software Engine Options:" | ||
35983 | echo " Sampling Scaler.........: $scaler_sample" | ||
35984 | echo " Smooth Scaler...........: $scaler_smooth" | ||
35985 | # FIXME: add an mmx scaler routine | ||
35986 | echo " YUV Converter...........: $conv_yuv" | ||
35987 | # FIXME: add more YUV format and colorvariant support | ||
35988 | echo | ||
35989 | echo "ARGB Conversion Options:" | ||
35990 | echo " Smaller Dither Mask.....: $conv_small_dither" | ||
35991 | echo " Line Dither Mask........: $conv_line_dither" | ||
35992 | echo " No Dither Mask for 16bpp: $conv_no_dither" | ||
35993 | echo " 8bpp RGB 332............: $conv_8_rgb_332" | ||
35994 | echo " 8bpp RGB 666............: $conv_8_rgb_666" | ||
35995 | echo " 8bpp RGB 232............: $conv_8_rgb_232" | ||
35996 | echo " 8bpp RGB 222............: $conv_8_rgb_222" | ||
35997 | echo " 8bpp RGB 221............: $conv_8_rgb_221" | ||
35998 | echo " 8bpp RGB 121............: $conv_8_rgb_121" | ||
35999 | echo " 8bpp RGB 111............: $conv_8_rgb_111" | ||
36000 | echo " 8bpp Grayscale (256)....: $conv_8_gry_1" | ||
36001 | echo " 8bpp Grayscale (16).....: $conv_8_gry_16" | ||
36002 | echo " 8bpp Grayscale 64-pal...: $conv_8_grayscale_64" | ||
36003 | # FIXME: add grayscale and B&W support to standard x converters | ||
36004 | echo " 16bpp RGB 565...........: $conv_16_rgb_565" | ||
36005 | echo " 16bpp BGR 565...........: $conv_16_bgr_565" | ||
36006 | echo " 16bpp RGB 555...........: $conv_16_rgb_555" | ||
36007 | echo " 16bpp RGB 444...........: $conv_16_rgb_444" | ||
36008 | echo " 16bpp RGB 565 (444 ipaq): $conv_16_rgb_ipq" | ||
36009 | # FIXME: add 555 (444 ipaq) support | ||
36010 | # FIXME: add 30bpp support | ||
36011 | # FIXME: add palletted support (ugh!) | ||
36012 | # FIXME: add 8bpp and below rotation | ||
36013 | echo " 16bpp Rotation 0........: $conv_16_rgb_rot_0" | ||
36014 | echo " 16bpp Rotation 90.......: $conv_16_rgb_rot_90" | ||
36015 | echo " 16bpp Rotation 180......: $conv_16_rgb_rot_180" | ||
36016 | echo " 16bpp Rotation 270......: $conv_16_rgb_rot_270" | ||
36017 | echo " 24bpp RGB 888...........: $conv_24_rgb_888" | ||
36018 | echo " 24bpp BGR 888...........: $conv_24_bgr_888" | ||
36019 | echo " 24bpp RGB 666 (666 ezx).: $conv_24_rgb_ezx" | ||
36020 | # FIXME: add 24bpp rotation | ||
36021 | echo " 32bpp RGB 8888..........: $conv_32_rgb_8888" | ||
36022 | echo " 32bpp RGBX 8888.........: $conv_32_rgbx_8888" | ||
36023 | echo " 32bpp BGR 8888..........: $conv_32_bgr_8888" | ||
36024 | echo " 32bpp BGRX 8888.........: $conv_32_bgrx_8888" | ||
36025 | echo " 32bpp RGB 666 (666 ezx).: $conv_32_rgb_ezx" | ||
36026 | echo " 32bpp Rotation 0........: $conv_32_rgb_rot_0" | ||
36027 | echo " 32bpp Rotation 90.......: $conv_32_rgb_rot_90" | ||
36028 | echo " 32bpp Rotation 180......: $conv_32_rgb_rot_180" | ||
36029 | echo " 32bpp Rotation 270......: $conv_32_rgb_rot_270" | ||
36030 | echo | ||
36031 | echo "Documentation.............: ${build_doc}" | ||
36032 | echo "Examples..................: install:${install_examples} build:${build_examples}" | ||
36033 | if test "x${enable_tests}" = "xyes" ; then | ||
36034 | echo "Tests.....................: ${enable_tests} (make check)" | ||
36035 | else | ||
36036 | echo "Tests.....................: ${enable_tests}" | ||
36037 | fi | ||
36038 | if test "x${enable_coverage}" = "xyes" ; then | ||
36039 | echo "Coverage..................: ${enable_coverage} (make coverage)" | ||
36040 | else | ||
36041 | echo "Coverage..................: ${enable_coverage}" | ||
36042 | fi | ||
36043 | echo | ||
36044 | echo "Compilation............: make (or gmake)" | ||
36045 | echo " CPPFLAGS.............: $CPPFLAGS" | ||
36046 | echo " CFLAGS...............: $CFLAGS" | ||
36047 | echo " CXXFLAGS.............: $CXXFLAGS" | ||
36048 | echo " LDFLAGS..............: $LDFLAGS" | ||
36049 | echo | ||
36050 | echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')" | ||
36051 | echo " prefix...............: $prefix" | ||
36052 | echo | ||
36053 | if test "x${have_static_module}" = "xyes" ; then | ||
36054 | echo -e "\0033\01331;31mWarning\0033\01331;0m: You are trying to link statically one or more modules to Evas." | ||
36055 | echo " You must know what you are doing, or else you will have a lot of" | ||
36056 | echo " problems. And Kenny will be killed." | ||
36057 | echo " Think about that." | ||
36058 | echo | ||
36059 | fi | ||